hof 23.0.4-session-timeout-beta → 23.0.4-session-timeout-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## 2026-03-25, Version 23.0.4 (Stable), @PaolaDMadd-Pro
2
+
3
+ ### Fixed
4
+ - Decoupled session timeout keep alive from analytics configuration.
5
+ - Updated CSP defaults to always include `connect-src 'self'` so same-origin keep alive requests are allowed.
6
+ - Updated GA CSP behavior to **extend** `connect-src` with analytics endpoints when `gaTagId` is set, rather than replacing defaults.
7
+
8
+ ### Changed
9
+ - Improved timeout dialog refresh behavior:
10
+ * On keep alive success, `timeSessionRefreshed` is updated and timeout controller logic is restarted.
11
+ * On keep alive failure a console.error is triggered.
12
+
13
+ ### Tests
14
+ - Added integration regression coverage for CSP:
15
+ * `gaTagId` set: GA and region analytics `connect-src` endpoints are present.
16
+ * `gaTagId` not set: default `connect-src 'self'` remains and GA region endpoints are absent.
17
+ - Added frontend Jest coverage for timeout refresh behavior:
18
+ * Success path (`$.get().done`) updates refresh time and calls controller.
19
+ * Failure path (`$.get().fail`) triggers a console.error and does not call controller.
20
+
21
+
1
22
  ## 2026-03-18, Version 23.0.3 (Stable), @vinodhasamiyappan-ho
2
23
 
3
24
  ### Security
package/README.md CHANGED
@@ -1407,8 +1407,8 @@ This feature allows you to customise the content related to the session timeout
1407
1407
 
1408
1408
  ### Usage
1409
1409
 
1410
- By default, the session timeout is set to the redis session ttl. To bypass this and display the session timeout message before the redis session ttl the following evironment variables must be set:
1411
- `CUSTOM_SESSION_EXPIRY` - e.g. `600`. Configure to expire before thte project's redis session ttl.
1410
+ By default, the session timeout is set to the redis session ttl. To bypass this and display the session timeout message before the redis session ttl the following environment variables must be set:
1411
+ `CUSTOM_SESSION_EXPIRY` - e.g. `600`. Configure to expire before the project's redis session ttl.
1412
1412
  `USE_CUSTOM_SESSION_TIMEOUT` - `false` by default. When set to `true` the '/session-timeout' page can run before the session expires without triggering a `404` middleware error.
1413
1413
 
1414
1414
  To enable and customise the session timeout behaviour, you need to set the component and translations in your project's `hof.settings.json` file:
@@ -1437,7 +1437,7 @@ To override the default session-timeout page completely, the path to the session
1437
1437
  "hof/components/session-timeout-warning"
1438
1438
  ],
1439
1439
  "translations": "./apps/common/translations",
1440
- "views": ["./apps/common/views"], // allows you to overide the HOF default session-timeout page and use a custom one from the specified views
1440
+ "views": ["./apps/common/views"], // allows you to override the HOF default session-timeout page and use a custom one from the specified views
1441
1441
  ...
1442
1442
  ```
1443
1443
  or in the project's `server.js` e.g.
@@ -1445,6 +1445,23 @@ or in the project's `server.js` e.g.
1445
1445
  settings.views = path.resolve(__dirname, './apps/common/views');
1446
1446
  ```
1447
1447
 
1448
+
1449
+ ### Session Timeout Keep-alive and CSP
1450
+
1451
+ From version 23.0.4 , session timeout keep alive is now independent of analytics tags.
1452
+
1453
+ - Default CSP always includes: `connect-src 'self'`
1454
+ - If `GA_TAG` (`gaTagId`) is configured:
1455
+ - Google Analytics endpoints are added to `connect-src`.
1456
+ - If `GA_TAG` is not configured: Only default same-origin `connect-src` is used (no GA region endpoints).
1457
+
1458
+ ### Timeout Dialog Behavior
1459
+ When a user clicks **Stay on this page** in the timeout dialog:
1460
+
1461
+ - If keep-alive succeeds: session refresh timestamp is updated and the timeout countdown/controller is restarted.
1462
+ - If keep-alive fails: a ```console.error``` is flagged by default.
1463
+
1464
+
1448
1465
  ### Customising content in `pages.json`
1449
1466
  Once the variables are set, you can customise the session timeout warning and exit messages in your project's pages.json:
1450
1467
 
@@ -278,13 +278,13 @@ window.GOVUK.sessionDialog = {
278
278
 
279
279
  refreshSession: function () {
280
280
  $.get('')
281
- .done(function () {
282
- window.GOVUK.sessionDialog.timeSessionRefreshed = new Date();
283
- window.GOVUK.sessionDialog.controller();
284
- })
285
- .fail(function () {
286
- window.GOVUK.sessionDialog.redirect();
287
- });
281
+ .done(function () {
282
+ window.GOVUK.sessionDialog.timeSessionRefreshed = new Date();
283
+ window.GOVUK.sessionDialog.controller();
284
+ })
285
+ .fail(function () {
286
+ console.error('Session refresh failed.');
287
+ });
288
288
  },
289
289
 
290
290
  redirect: function () {
package/index.js CHANGED
@@ -93,7 +93,6 @@ const getContentSecurityPolicy = (config, res) => {
93
93
  'www.google.co.uk/ads/ga-audiences'
94
94
  ],
95
95
  connectSrc: [
96
- "'self'",
97
96
  'https://www.google-analytics.com',
98
97
  'https://region1.google-analytics.com',
99
98
  'https://region1.analytics.google.com'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "23.0.4-session-timeout-beta",
4
+ "version": "23.0.4-session-timeout-beta-2",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -21,7 +21,7 @@ function print() { __p += __j.call(arguments, '') }
21
21
  `):e)),n};var mr=/^(?:focusinfocus|focusoutblur)$/,yr=function(e){e.stopPropagation()};o.extend(o.event,{trigger:function(e,n,r,s){var u,f,l,v,p,E,B,j,R=[r||b],V=xe.call(e,"type")?e.type:e,se=xe.call(e,"namespace")?e.namespace.split("."):[];if(f=j=l=r=r||b,!(r.nodeType===3||r.nodeType===8)&&!mr.test(V+o.event.triggered)&&(V.indexOf(".")>-1&&(se=V.split("."),V=se.shift(),se.sort()),p=V.indexOf(":")<0&&"on"+V,e=e[o.expando]?e:new o.Event(V,typeof e=="object"&&e),e.isTrigger=s?2:3,e.namespace=se.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+se.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=n==null?[e]:o.makeArray(n,[e]),B=o.event.special[V]||{},!(!s&&B.trigger&&B.trigger.apply(r,n)===!1))){if(!s&&!B.noBubble&&!k(r)){for(v=B.delegateType||V,mr.test(v+V)||(f=f.parentNode);f;f=f.parentNode)R.push(f),l=f;l===(r.ownerDocument||b)&&R.push(l.defaultView||l.parentWindow||C)}for(u=0;(f=R[u++])&&!e.isPropagationStopped();)j=f,e.type=u>1?v:B.bindType||V,E=(ie.get(f,"events")||Object.create(null))[e.type]&&ie.get(f,"handle"),E&&E.apply(f,n),E=p&&f[p],E&&E.apply&&$t(f)&&(e.result=E.apply(f,n),e.result===!1&&e.preventDefault());return e.type=V,!s&&!e.isDefaultPrevented()&&(!B._default||B._default.apply(R.pop(),n)===!1)&&$t(r)&&p&&y(r[V])&&!k(r)&&(l=r[p],l&&(r[p]=null),o.event.triggered=V,e.isPropagationStopped()&&j.addEventListener(V,yr),r[V](),e.isPropagationStopped()&&j.removeEventListener(V,yr),o.event.triggered=void 0,l&&(r[p]=l)),e.result}},simulate:function(e,n,r){var s=o.extend(new o.Event,r,{type:e,isSimulated:!0});o.event.trigger(s,null,n)}}),o.fn.extend({trigger:function(e,n){return this.each(function(){o.event.trigger(e,n,this)})},triggerHandler:function(e,n){var r=this[0];if(r)return o.event.trigger(e,n,r,!0)}});var vo=/\[\]$/,Ki=/\r?\n/g,mo=/^(?:submit|button|image|reset|file)$/i,yo=/^(?:input|select|textarea|keygen)/i;function xi(e,n,r,s){var u;if(Array.isArray(n))o.each(n,function(f,l){r||vo.test(e)?s(e,l):xi(e+"["+(typeof l=="object"&&l!=null?f:"")+"]",l,r,s)});else if(!r&&S(n)==="object")for(u in n)xi(e+"["+u+"]",n[u],r,s);else s(e,n)}o.param=function(e,n){var r,s=[],u=function(f,l){var v=y(l)?l():l;s[s.length]=encodeURIComponent(f)+"="+encodeURIComponent(v??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!o.isPlainObject(e))o.each(e,function(){u(this.name,this.value)});else for(r in e)xi(r,e[r],n,u);return s.join("&")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=o.prop(this,"elements");return e?o.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!o(this).is(":disabled")&&yo.test(this.nodeName)&&!mo.test(e)&&(this.checked||!_n.test(e))}).map(function(e,n){var r=o(this).val();return r==null?null:Array.isArray(r)?o.map(r,function(s){return{name:n.name,value:s.replace(Ki,`\r
22
22
  `)}}):{name:n.name,value:r.replace(Ki,`\r
23
23
  `)}}).get()}});var bo=/%20/g,br=/#.*$/,wo=/([?&])_=[^&]*/,xo=/^(.*?):[ \t]*([^\r\n]*)$/mg,_o=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,To=/^(?:GET|HEAD)$/,Co=/^\/\//,yt={},ht={},wr="*/".concat("*"),_i=b.createElement("a");_i.href=Tn.href;function xr(e){return function(n,r){typeof n!="string"&&(r=n,n="*");var s,u=0,f=n.toLowerCase().match(Fe)||[];if(y(r))for(;s=f[u++];)s[0]==="+"?(s=s.slice(1)||"*",(e[s]=e[s]||[]).unshift(r)):(e[s]=e[s]||[]).push(r)}}function _r(e,n,r,s){var u={},f=e===ht;function l(v){var p;return u[v]=!0,o.each(e[v]||[],function(E,B){var j=B(n,r,s);if(typeof j=="string"&&!f&&!u[j])return n.dataTypes.unshift(j),l(j),!1;if(f)return!(p=j)}),p}return l(n.dataTypes[0])||!u["*"]&&l("*")}function Ti(e,n){var r,s,u=o.ajaxSettings.flatOptions||{};for(r in n)n[r]!==void 0&&((u[r]?e:s||(s={}))[r]=n[r]);return s&&o.extend(!0,e,s),e}function So(e,n,r){for(var s,u,f,l,v=e.contents,p=e.dataTypes;p[0]==="*";)p.shift(),s===void 0&&(s=e.mimeType||n.getResponseHeader("Content-Type"));if(s){for(u in v)if(v[u]&&v[u].test(s)){p.unshift(u);break}}if(p[0]in r)f=p[0];else{for(u in r){if(!p[0]||e.converters[u+" "+p[0]]){f=u;break}l||(l=u)}f=f||l}if(f)return f!==p[0]&&p.unshift(f),r[f]}function Wr(e,n,r,s){var u,f,l,v,p,E={},B=e.dataTypes.slice();if(B[1])for(l in e.converters)E[l.toLowerCase()]=e.converters[l];for(f=B.shift();f;)if(e.responseFields[f]&&(r[e.responseFields[f]]=n),!p&&s&&e.dataFilter&&(n=e.dataFilter(n,e.dataType)),p=f,f=B.shift(),f){if(f==="*")f=p;else if(p!=="*"&&p!==f){if(l=E[p+" "+f]||E["* "+f],!l){for(u in E)if(v=u.split(" "),v[1]===f&&(l=E[p+" "+v[0]]||E["* "+v[0]],l)){l===!0?l=E[u]:E[u]!==!0&&(f=v[0],B.unshift(v[1]));break}}if(l!==!0)if(l&&e.throws)n=l(n);else try{n=l(n)}catch(j){return{state:"parsererror",error:l?j:"No conversion from "+p+" to "+f}}}}return{state:"success",data:n}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:_o.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?Ti(Ti(e,o.ajaxSettings),n):Ti(o.ajaxSettings,e)},ajaxPrefilter:xr(yt),ajaxTransport:xr(ht),ajax:function(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};var r,s,u,f,l,v,p,E,B,j,R=o.ajaxSetup({},n),V=R.context||R,se=R.context&&(V.nodeType||V.jquery)?o(V):o.event,Ae=o.Deferred(),Te=o.Callbacks("once memory"),ot=R.statusCode||{},Ve={},It={},Rt="canceled",ke={readyState:0,getResponseHeader:function(Oe){var $e;if(p){if(!f)for(f={};$e=xo.exec(u);)f[$e[1].toLowerCase()+" "]=(f[$e[1].toLowerCase()+" "]||[]).concat($e[2]);$e=f[Oe.toLowerCase()+" "]}return $e==null?null:$e.join(", ")},getAllResponseHeaders:function(){return p?u:null},setRequestHeader:function(Oe,$e){return p==null&&(Oe=It[Oe.toLowerCase()]=It[Oe.toLowerCase()]||Oe,Ve[Oe]=$e),this},overrideMimeType:function(Oe){return p==null&&(R.mimeType=Oe),this},statusCode:function(Oe){var $e;if(Oe)if(p)ke.always(Oe[ke.status]);else for($e in Oe)ot[$e]=[ot[$e],Oe[$e]];return this},abort:function(Oe){var $e=Oe||Rt;return r&&r.abort($e),Yt(0,$e),this}};if(Ae.promise(ke),R.url=((e||R.url||Tn.href)+"").replace(Co,Tn.protocol+"//"),R.type=n.method||n.type||R.method||R.type,R.dataTypes=(R.dataType||"*").toLowerCase().match(Fe)||[""],R.crossDomain==null){v=b.createElement("a");try{v.href=R.url,v.href=v.href,R.crossDomain=_i.protocol+"//"+_i.host!=v.protocol+"//"+v.host}catch{R.crossDomain=!0}}if(R.data&&R.processData&&typeof R.data!="string"&&(R.data=o.param(R.data,R.traditional)),_r(yt,R,n,ke),p)return ke;E=o.event&&R.global,E&&o.active++===0&&o.event.trigger("ajaxStart"),R.type=R.type.toUpperCase(),R.hasContent=!To.test(R.type),s=R.url.replace(br,""),R.hasContent?R.data&&R.processData&&(R.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(R.data=R.data.replace(bo,"+")):(j=R.url.slice(s.length),R.data&&(R.processData||typeof R.data=="string")&&(s+=(fi.test(s)?"&":"?")+R.data,delete R.data),R.cache===!1&&(s=s.replace(wo,"$1"),j=(fi.test(s)?"&":"?")+"_="+Wi.guid+++j),R.url=s+j),R.ifModified&&(o.lastModified[s]&&ke.setRequestHeader("If-Modified-Since",o.lastModified[s]),o.etag[s]&&ke.setRequestHeader("If-None-Match",o.etag[s])),(R.data&&R.hasContent&&R.contentType!==!1||n.contentType)&&ke.setRequestHeader("Content-Type",R.contentType),ke.setRequestHeader("Accept",R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", "+wr+"; q=0.01":""):R.accepts["*"]);for(B in R.headers)ke.setRequestHeader(B,R.headers[B]);if(R.beforeSend&&(R.beforeSend.call(V,ke,R)===!1||p))return ke.abort();if(Rt="abort",Te.add(R.complete),ke.done(R.success),ke.fail(R.error),r=_r(ht,R,n,ke),!r)Yt(-1,"No Transport");else{if(ke.readyState=1,E&&se.trigger("ajaxSend",[ke,R]),p)return ke;R.async&&R.timeout>0&&(l=C.setTimeout(function(){ke.abort("timeout")},R.timeout));try{p=!1,r.send(Ve,Yt)}catch(Oe){if(p)throw Oe;Yt(-1,Oe)}}function Yt(Oe,$e,Mn,li){var Dt,mn,kt,Ut,Kt,_t=$e;p||(p=!0,l&&C.clearTimeout(l),r=void 0,u=li||"",ke.readyState=Oe>0?4:0,Dt=Oe>=200&&Oe<300||Oe===304,Mn&&(Ut=So(R,ke,Mn)),!Dt&&o.inArray("script",R.dataTypes)>-1&&o.inArray("json",R.dataTypes)<0&&(R.converters["text script"]=function(){}),Ut=Wr(R,Ut,ke,Dt),Dt?(R.ifModified&&(Kt=ke.getResponseHeader("Last-Modified"),Kt&&(o.lastModified[s]=Kt),Kt=ke.getResponseHeader("etag"),Kt&&(o.etag[s]=Kt)),Oe===204||R.type==="HEAD"?_t="nocontent":Oe===304?_t="notmodified":(_t=Ut.state,mn=Ut.data,kt=Ut.error,Dt=!kt)):(kt=_t,(Oe||!_t)&&(_t="error",Oe<0&&(Oe=0))),ke.status=Oe,ke.statusText=($e||_t)+"",Dt?Ae.resolveWith(V,[mn,_t,ke]):Ae.rejectWith(V,[ke,_t,kt]),ke.statusCode(ot),ot=void 0,E&&se.trigger(Dt?"ajaxSuccess":"ajaxError",[ke,R,Dt?mn:kt]),Te.fireWith(V,[ke,_t]),E&&(se.trigger("ajaxComplete",[ke,R]),--o.active||o.event.trigger("ajaxStop")))}return ke},getJSON:function(e,n,r){return o.get(e,n,r,"json")},getScript:function(e,n){return o.get(e,void 0,n,"script")}}),o.each(["get","post"],function(e,n){o[n]=function(r,s,u,f){return y(s)&&(f=f||u,u=s,s=void 0),o.ajax(o.extend({url:r,type:n,dataType:f,data:s,success:u},o.isPlainObject(r)&&r))}}),o.ajaxPrefilter(function(e){var n;for(n in e.headers)n.toLowerCase()==="content-type"&&(e.contentType=e.headers[n]||"")}),o._evalUrl=function(e,n,r){return o.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(s){o.globalEval(s,n,r)}})},o.fn.extend({wrapAll:function(e){var n;return this[0]&&(y(e)&&(e=e.call(this[0])),n=o(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var r=this;r.firstElementChild;)r=r.firstElementChild;return r}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(n){o(this).wrapInner(e.call(this,n))}):this.each(function(){var n=o(this),r=n.contents();r.length?r.wrapAll(e):n.append(e)})},wrap:function(e){var n=y(e);return this.each(function(r){o(this).wrapAll(n?e.call(this,r):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){o(this).replaceWith(this.childNodes)}),this}}),o.expr.pseudos.hidden=function(e){return!o.expr.pseudos.visible(e)},o.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},o.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch{}};var Eo={0:200,1223:204},xt=o.ajaxSettings.xhr();A.cors=!!xt&&"withCredentials"in xt,A.ajax=xt=!!xt,o.ajaxTransport(function(e){var n,r;if(A.cors||xt&&!e.crossDomain)return{send:function(s,u){var f,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(f in e.xhrFields)l[f]=e.xhrFields[f];e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),!e.crossDomain&&!s["X-Requested-With"]&&(s["X-Requested-With"]="XMLHttpRequest");for(f in s)l.setRequestHeader(f,s[f]);n=function(v){return function(){n&&(n=r=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,v==="abort"?l.abort():v==="error"?typeof l.status!="number"?u(0,"error"):u(l.status,l.statusText):u(Eo[l.status]||l.status,l.statusText,(l.responseType||"text")!=="text"||typeof l.responseText!="string"?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),r=l.onerror=l.ontimeout=n("error"),l.onabort!==void 0?l.onabort=r:l.onreadystatechange=function(){l.readyState===4&&C.setTimeout(function(){n&&r()})},n=n("abort");try{l.send(e.hasContent&&e.data||null)}catch(v){if(n)throw v}},abort:function(){n&&n()}}}),o.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return o.globalEval(e),e}}}),o.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),o.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var n,r;return{send:function(s,u){n=o("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(f){n.remove(),r=null,f&&u(f.type==="error"?404:200,f.type)}),b.head.appendChild(n[0])},abort:function(){r&&r()}}}});var Ci=[],vn=/(=)\?(?=&|$)|\?\?/;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ci.pop()||o.expando+"_"+Wi.guid++;return this[e]=!0,e}}),o.ajaxPrefilter("json jsonp",function(e,n,r){var s,u,f,l=e.jsonp!==!1&&(vn.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&vn.test(e.data)&&"data");if(l||e.dataTypes[0]==="jsonp")return s=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(vn,"$1"+s):e.jsonp!==!1&&(e.url+=(fi.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return f||o.error(s+" was not called"),f[0]},e.dataTypes[0]="json",u=C[s],C[s]=function(){f=arguments},r.always(function(){u===void 0?o(C).removeProp(s):C[s]=u,e[s]&&(e.jsonpCallback=n.jsonpCallback,Ci.push(s)),f&&y(u)&&u(f[0]),f=u=void 0}),"script"}),A.createHTMLDocument=(function(){var e=b.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2})(),o.parseHTML=function(e,n,r){if(typeof e!="string")return[];typeof n=="boolean"&&(r=n,n=!1);var s,u,f;return n||(A.createHTMLDocument?(n=b.implementation.createHTMLDocument(""),s=n.createElement("base"),s.href=b.location.href,n.head.appendChild(s)):n=b),u=me.exec(e),f=!r&&[],u?[n.createElement(u[1])]:(u=rr([e],n,f),f&&f.length&&o(f).remove(),o.merge([],u.childNodes))},o.fn.load=function(e,n,r){var s,u,f,l=this,v=e.indexOf(" ");return v>-1&&(s=Qt(e.slice(v)),e=e.slice(0,v)),y(n)?(r=n,n=void 0):n&&typeof n=="object"&&(u="POST"),l.length>0&&o.ajax({url:e,type:u||"GET",dataType:"html",data:n}).done(function(p){f=arguments,l.html(s?o("<div>").append(o.parseHTML(p)).find(s):p)}).always(r&&function(p,E){l.each(function(){r.apply(this,f||[p.responseText,E,p])})}),this},o.expr.pseudos.animated=function(e){return o.grep(o.timers,function(n){return e===n.elem}).length},o.offset={setOffset:function(e,n,r){var s,u,f,l,v,p,E,B=o.css(e,"position"),j=o(e),R={};B==="static"&&(e.style.position="relative"),v=j.offset(),f=o.css(e,"top"),p=o.css(e,"left"),E=(B==="absolute"||B==="fixed")&&(f+p).indexOf("auto")>-1,E?(s=j.position(),l=s.top,u=s.left):(l=parseFloat(f)||0,u=parseFloat(p)||0),y(n)&&(n=n.call(e,r,o.extend({},v))),n.top!=null&&(R.top=n.top-v.top+l),n.left!=null&&(R.left=n.left-v.left+u),"using"in n?n.using.call(e,R):j.css(R)}},o.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(u){o.offset.setOffset(this,e,u)});var n,r,s=this[0];if(s)return s.getClientRects().length?(n=s.getBoundingClientRect(),r=s.ownerDocument.defaultView,{top:n.top+r.pageYOffset,left:n.left+r.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,n,r,s=this[0],u={top:0,left:0};if(o.css(s,"position")==="fixed")n=s.getBoundingClientRect();else{for(n=this.offset(),r=s.ownerDocument,e=s.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&o.css(e,"position")==="static";)e=e.parentNode;e&&e!==s&&e.nodeType===1&&(u=o(e).offset(),u.top+=o.css(e,"borderTopWidth",!0),u.left+=o.css(e,"borderLeftWidth",!0))}return{top:n.top-u.top-o.css(s,"marginTop",!0),left:n.left-u.left-o.css(s,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&o.css(e,"position")==="static";)e=e.offsetParent;return e||Wt})}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=n==="pageYOffset";o.fn[e]=function(s){return St(this,function(u,f,l){var v;if(k(u)?v=u:u.nodeType===9&&(v=u.defaultView),l===void 0)return v?v[n]:u[f];v?v.scrollTo(r?v.pageXOffset:l,r?l:v.pageYOffset):u[f]=l},e,s,arguments.length)}}),o.each(["top","left"],function(e,n){o.cssHooks[n]=si(A.pixelPosition,function(r,s){if(s)return s=Rn(r,n),mi.test(s)?o(r).position()[n]+"px":s})}),o.each({Height:"height",Width:"width"},function(e,n){o.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,s){o.fn[s]=function(u,f){var l=arguments.length&&(r||typeof u!="boolean"),v=r||(u===!0||f===!0?"margin":"border");return St(this,function(p,E,B){var j;return k(p)?s.indexOf("outer")===0?p["inner"+e]:p.document.documentElement["client"+e]:p.nodeType===9?(j=p.documentElement,Math.max(p.body["scroll"+e],j["scroll"+e],p.body["offset"+e],j["offset"+e],j["client"+e])):B===void 0?o.css(p,E,v):o.style(p,E,B,v)},n,l?u:void 0,l)}})}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,n){o.fn[n]=function(r){return this.on(n,r)}}),o.fn.extend({bind:function(e,n,r){return this.on(e,null,n,r)},unbind:function(e,n){return this.off(e,null,n)},delegate:function(e,n,r,s){return this.on(n,e,r,s)},undelegate:function(e,n,r){return arguments.length===1?this.off(e,"**"):this.off(n,e||"**",r)},hover:function(e,n){return this.on("mouseenter",e).on("mouseleave",n||e)}}),o.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){o.fn[n]=function(r,s){return arguments.length>0?this.on(n,null,r,s):this.trigger(n)}});var Kr=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;o.proxy=function(e,n){var r,s,u;if(typeof n=="string"&&(r=e[n],n=e,e=r),!!y(e))return s=ee.call(arguments,2),u=function(){return e.apply(n||this,s.concat(ee.call(arguments)))},u.guid=e.guid=e.guid||o.guid++,u},o.holdReady=function(e){e?o.readyWait++:o.ready(!0)},o.isArray=Array.isArray,o.parseJSON=JSON.parse,o.nodeName=J,o.isFunction=y,o.isWindow=k,o.camelCase=bt,o.type=S,o.now=Date.now,o.isNumeric=function(e){var n=o.type(e);return(n==="number"||n==="string")&&!isNaN(e-parseFloat(e))},o.trim=function(e){return e==null?"":(e+"").replace(Kr,"$1")};var Tr=C.jQuery,fn=C.$;return o.noConflict=function(e){return C.$===o&&(C.$=fn),e&&C.jQuery===o&&(C.jQuery=Tr),o},typeof c>"u"&&(C.jQuery=C.$=o),o})})(Wo)),Wo.exports}var Pr=window.CustomEvent;(!Pr||typeof Pr=="object")&&(Pr=function(C,c){c=c||{};var W=document.createEvent("CustomEvent");return W.initCustomEvent(C,!!c.bubbles,!!c.cancelable,c.detail||null),W},Pr.prototype=window.Event.prototype);function za($,C){var c="on"+C.type.toLowerCase();return typeof $[c]=="function"&&$[c](C),$.dispatchEvent(C)}function gl($){for(;$&&$!==document.body;){var C=window.getComputedStyle($),c=function(W,Z){return!(C[W]===void 0||C[W]===Z)};if(C.opacity<1||c("zIndex","auto")||c("transform","none")||c("mixBlendMode","normal")||c("filter","none")||c("perspective","none")||C.isolation==="isolate"||C.position==="fixed"||C.webkitOverflowScrolling==="touch")return!0;$=$.parentElement}return!1}function oo($){for(;$;){if($.localName==="dialog")return $;$.parentElement?$=$.parentElement:$.parentNode?$=$.parentNode.host:$=null}return null}function Qa($){for(;$&&$.shadowRoot&&$.shadowRoot.activeElement;)$=$.shadowRoot.activeElement;$&&$.blur&&$!==document.body&&$.blur()}function vl($,C){for(var c=0;c<$.length;++c)if($[c]===C)return!0;return!1}function Ms($){return!$||!$.hasAttribute("method")?!1:$.getAttribute("method").toLowerCase()==="dialog"}function Xa($){var C=["button","input","keygen","select","textarea"],c=C.map(function(he){return he+":not([disabled])"});c.push('[tabindex]:not([disabled]):not([tabindex=""])');var W=$.querySelector(c.join(", "));if(!W&&"attachShadow"in Element.prototype)for(var Z=$.querySelectorAll("*"),ee=0;ee<Z.length&&!(Z[ee].tagName&&Z[ee].shadowRoot&&(W=Xa(Z[ee].shadowRoot),W));ee++);return W}function Ya($){return $.isConnected||document.body.contains($)}function Ja($){if($.submitter)return $.submitter;var C=$.target;if(!(C instanceof HTMLFormElement))return null;var c=pt.formSubmitter;if(!c){var W=$.target,Z="getRootNode"in W&&W.getRootNode()||document;c=Z.activeElement}return!c||c.form!==C?null:c}function ml($){if(!$.defaultPrevented){var C=$.target,c=pt.imagemapUseValue,W=Ja($);c===null&&W&&(c=W.value);var Z=oo(C);if(Z){var ee=W&&W.getAttribute("formmethod")||C.getAttribute("method");ee==="dialog"&&($.preventDefault(),c!=null?Z.close(c):Z.close())}}}function Za($){if(this.dialog_=$,this.replacedStyleTop_=!1,this.openAsModal_=!1,$.hasAttribute("role")||$.setAttribute("role","dialog"),$.show=this.show.bind(this),$.showModal=this.showModal.bind(this),$.close=this.close.bind(this),$.addEventListener("submit",ml,!1),"returnValue"in $||($.returnValue=""),"MutationObserver"in window){var C=new MutationObserver(this.maybeHideModal.bind(this));C.observe($,{attributes:!0,attributeFilter:["open"]})}else{var c=!1,W=(function(){c?this.downgradeModal():this.maybeHideModal(),c=!1}).bind(this),Z,ee=function(he){if(he.target===$){var Ee="DOMNodeRemoved";c|=he.type.substr(0,Ee.length)===Ee,window.clearTimeout(Z),Z=window.setTimeout(W,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(he){$.addEventListener(he,ee)})}Object.defineProperty($,"open",{set:this.setOpen.bind(this),get:$.hasAttribute.bind($,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}Za.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&Ya(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),pt.dm.removeDialog(this))},setOpen:function($){$?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function($){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var C=document.createElement("div");this.dialog_.insertBefore(C,this.dialog_.firstChild),C.tabIndex=-1,C.focus(),this.dialog_.removeChild(C)}var c=document.createEvent("MouseEvents");c.initMouseEvent($.type,$.bubbles,$.cancelable,window,$.detail,$.screenX,$.screenY,$.clientX,$.clientY,$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget),this.dialog_.dispatchEvent(c),$.stopPropagation()},focus_:function(){var $=this.dialog_.querySelector("[autofocus]:not([disabled])");!$&&this.dialog_.tabIndex>=0&&($=this.dialog_),$||($=Xa(this.dialog_)),Qa(document.activeElement),$&&$.focus()},updateZIndex:function($,C){if($<C)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=$,this.backdrop_.style.zIndex=C},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!Ya(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!pt.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");gl(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,pt.needsCentering(this.dialog_)?(pt.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function($){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),$!==void 0&&(this.dialog_.returnValue=$);var C=new Pr("close",{bubbles:!1,cancelable:!1});za(this.dialog_,C)}};var pt={};if(pt.reposition=function($){var C=document.body.scrollTop||document.documentElement.scrollTop,c=C+(window.innerHeight-$.offsetHeight)/2;$.style.top=Math.max(C,c)+"px"},pt.isInlinePositionSetByStylesheet=function($){for(var C=0;C<document.styleSheets.length;++C){var c=document.styleSheets[C],W=null;try{W=c.cssRules}catch{}if(W)for(var Z=0;Z<W.length;++Z){var ee=W[Z],he=null;try{he=document.querySelectorAll(ee.selectorText)}catch{}if(!(!he||!vl(he,$))){var Ee=ee.style.getPropertyValue("top"),ye=ee.style.getPropertyValue("bottom");if(Ee&&Ee!=="auto"||ye&&ye!=="auto")return!0}}}return!1},pt.needsCentering=function($){var C=window.getComputedStyle($);return C.position!=="absolute"||$.style.top!=="auto"&&$.style.top!==""||$.style.bottom!=="auto"&&$.style.bottom!==""?!1:!pt.isInlinePositionSetByStylesheet($)},pt.forceRegisterDialog=function($){if((window.HTMLDialogElement||$.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",$),$.localName!=="dialog")throw new Error("Failed to register dialog: The element is not a dialog.");new Za($)},pt.registerDialog=function($){$.showModal||pt.forceRegisterDialog($)},pt.DialogManager=function(){this.pendingDialogStack=[];var $=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(C){this.forwardTab_=void 0,C.stopPropagation(),$([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(C){var c=[];C.forEach(function(W){for(var Z=0,ee;ee=W.removedNodes[Z];++Z){if(ee instanceof Element)ee.localName==="dialog"&&c.push(ee);else continue;c=c.concat(ee.querySelectorAll("dialog"))}}),c.length&&$(c)}))},pt.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},pt.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},pt.DialogManager.prototype.updateStacking=function(){for(var $=this.zIndexHigh_,C=0,c;c=this.pendingDialogStack[C];++C)c.updateZIndex(--$,--$),C===0&&(this.overlay.style.zIndex=--$);var W=this.pendingDialogStack[0];if(W){var Z=W.dialog.parentNode||document.body;Z.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},pt.DialogManager.prototype.containedByTopDialog_=function($){for(;$=oo($);){for(var C=0,c;c=this.pendingDialogStack[C];++C)if(c.dialog===$)return C===0;$=$.parentElement}return!1},pt.DialogManager.prototype.handleFocus_=function($){var C=$.composedPath?$.composedPath()[0]:$.target;if(!this.containedByTopDialog_(C)&&document.activeElement!==document.documentElement&&($.preventDefault(),$.stopPropagation(),Qa(C),this.forwardTab_!==void 0)){var c=this.pendingDialogStack[0],W=c.dialog,Z=W.compareDocumentPosition(C);return Z&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?c.focus_():C!==document.documentElement&&document.documentElement.focus()),!1}},pt.DialogManager.prototype.handleKey_=function($){if(this.forwardTab_=void 0,$.keyCode===27){$.preventDefault(),$.stopPropagation();var C=new Pr("cancel",{bubbles:!1,cancelable:!0}),c=this.pendingDialogStack[0];c&&za(c.dialog,C)&&c.dialog.close()}else $.keyCode===9&&(this.forwardTab_=!$.shiftKey)},pt.DialogManager.prototype.checkDOM_=function($){var C=this.pendingDialogStack.slice();C.forEach(function(c){$.indexOf(c.dialog)!==-1?c.downgradeModal():c.maybeHideModal()})},pt.DialogManager.prototype.pushDialog=function($){var C=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=C?!1:(this.pendingDialogStack.unshift($)===1&&this.blockDocument(),this.updateStacking(),!0)},pt.DialogManager.prototype.removeDialog=function($){var C=this.pendingDialogStack.indexOf($);C!==-1&&(this.pendingDialogStack.splice(C,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},pt.dm=new pt.DialogManager,pt.formSubmitter=null,pt.imagemapUseValue=null,window.HTMLDialogElement===void 0){var eu=document.createElement("form");if(eu.setAttribute("method","dialog"),eu.method!=="dialog"){var qr=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(qr){var yl=qr.get;qr.get=function(){return Ms(this)?"dialog":yl.call(this)};var bl=qr.set;qr.set=function($){return typeof $=="string"&&$.toLowerCase()==="dialog"?this.setAttribute("method",$):bl.call(this,$)},Object.defineProperty(HTMLFormElement.prototype,"method",qr)}}document.addEventListener("click",function($){if(pt.formSubmitter=null,pt.imagemapUseValue=null,!$.defaultPrevented){var C=$.target;if("composedPath"in $){var c=$.composedPath();C=c.shift()||C}if(!(!C||!Ms(C.form))){var W=C.type==="submit"&&["button","input"].indexOf(C.localName)>-1;if(!W){if(!(C.localName==="input"&&C.type==="image"))return;pt.imagemapUseValue=$.offsetX+","+$.offsetY}var Z=oo(C);Z&&(pt.formSubmitter=C)}}},!1),document.addEventListener("submit",function($){var C=$.target,c=oo(C);if(!c){var W=Ja($),Z=W&&W.getAttribute("formmethod")||C.getAttribute("method");Z==="dialog"&&$.preventDefault()}});var wl=HTMLFormElement.prototype.submit,xl=function(){if(!Ms(this))return wl.call(this);var $=oo(this);$&&$.close()};HTMLFormElement.prototype.submit=xl}const _l=el(Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"})));var tu;function Tl(){if(tu)return Ga;tu=1;const $=pl();return window.dialogPolyfill=_l,window.GOVUK.sessionDialog={el:document.getElementById("js-modal-dialog"),$el:$("#js-modal-dialog"),$lastFocusedEl:null,$closeButton:$(".modal-dialog .js-dialog-close"),$fallBackElement:$(".govuk-timeout-warning-fallback"),dialogIsOpenClass:"dialog-is-open",timers:[],warningTextPrefix:$(".dialog-text-prefix").text(),warningTextSuffix:".",warningText:$(".dialog-text").text(),warningTextExtra:"",$timer:$("#js-modal-dialog .timer"),$accessibleTimer:$("#js-modal-dialog .at-timer"),secondsSessionTimeout:parseInt($("#js-modal-dialog").data("session-timeout"),10),secondsTimeoutWarning:parseInt($("#js-modal-dialog").data("session-timeout-warning"),10),timeoutRedirectUrl:$("#js-modal-dialog").data("url-redirect"),timeSessionRefreshed:new Date,bindUIElements:function(){window.GOVUK.sessionDialog.$closeButton.on("click",function(C){C.preventDefault(),window.GOVUK.sessionDialog.closeDialog()}),$(document).keydown(function(C){window.GOVUK.sessionDialog.isDialogOpen()&&C.keyCode===27&&window.GOVUK.sessionDialog.closeDialog()})},isDialogOpen:function(){return window.GOVUK.sessionDialog.el&&window.GOVUK.sessionDialog.el.open},isConfigured:function(){return window.GOVUK.sessionDialog.$timer.length>0&&window.GOVUK.sessionDialog.$accessibleTimer.length>0&&window.GOVUK.sessionDialog.secondsSessionTimeout&&window.GOVUK.sessionDialog.secondsTimeoutWarning&&window.GOVUK.sessionDialog.timeoutRedirectUrl},openDialog:function(){window.GOVUK.sessionDialog.isDialogOpen()||($("html, body").addClass(window.GOVUK.sessionDialog.dialogIsOpenClass),window.GOVUK.sessionDialog.saveLastFocusedEl(),window.GOVUK.sessionDialog.makePageContentInert(),window.GOVUK.sessionDialog.el.showModal(),window.GOVUK.sessionDialog.el.open=!0)},closeDialog:function(){window.GOVUK.sessionDialog.isDialogOpen()&&($("html, body").removeClass(window.GOVUK.sessionDialog.dialogIsOpenClass),window.GOVUK.sessionDialog.el.close(),window.GOVUK.sessionDialog.el.open=!1,window.GOVUK.sessionDialog.setFocusOnLastFocusedEl(),window.GOVUK.sessionDialog.removeInertFromPageContent(),window.GOVUK.sessionDialog.refreshSession())},saveLastFocusedEl:function(){window.GOVUK.sessionDialog.$lastFocusedEl=document.activeElement,!window.GOVUK.sessionDialog.$lastFocusedEl||window.GOVUK.sessionDialog.$lastFocusedEl===document.body?window.GOVUK.sessionDialog.$lastFocusedEl=null:document.querySelector&&(window.GOVUK.sessionDialog.$lastFocusedEl=document.querySelector(":focus"))},setFocusOnLastFocusedEl:function(){window.GOVUK.sessionDialog.$lastFocusedEl&&window.setTimeout(function(){window.GOVUK.sessionDialog.$lastFocusedEl.focus()},0)},makePageContentInert:function(){document.querySelector("#content")&&(document.querySelector("#content").inert=!0,document.querySelector("#content").setAttribute("aria-hidden","true"))},removeInertFromPageContent:function(){document.querySelector("#content")&&(document.querySelector("#content").inert=!1,document.querySelector("#content").setAttribute("aria-hidden","false"))},numberToWords:function(C){const c=C.toString();let W,Z,ee,he,Ee,ye="and";if(parseInt(c,10)===0)return"zero";const we=["","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],qe=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],xe=["","thousand","million","billion","trillion","quadrillion","quintillion","sextillion","septillion","octillion","nonillion","decillion","undecillion","duodecillion","tredecillion","quatttuor-decillion","quindecillion","sexdecillion","septen-decillion","octodecillion","novemdecillion","vigintillion","centillion"];W=c.length;const _e=[];for(;W>0;)Z=W,_e.push(c.slice(W=Math.max(0,W-3),Z));const D=_e.length;if(D>xe.length)return"";for(ye=[],Ee=0;Ee<D;Ee++)ee=parseInt(_e[Ee],10),ee&&(he=_e[Ee].split("").reverse().map(parseFloat),he[1]===1&&(he[0]+=10),xe[Ee]&&ye.push(xe[Ee]),we[he[0]]&&ye.push(we[he[0]]),qe[he[1]]&&ye.push(qe[he[1]]),we[he[2]]&&ye.push(we[he[2]]+" hundred"));return ye.reverse().join(" ")},timeToWords:function(C,c){let W;if(C>0){try{W=window.GOVUK.sessionDialog.numberToWords(C)}catch{W=C}W=W+" "+window.GOVUK.sessionDialog.pluralise(C,c)}else W="";return W},pluralise:function(C,c){return C===1?c:c+"s"},numericSpan:function(C,c){return'<span class="tabular-numbers">'+C+"</span> "+window.GOVUK.sessionDialog.pluralise(C,c)},countdownText:function(C,c){const W=window.GOVUK.sessionDialog.numericSpan(C,"minute"),Z=window.GOVUK.sessionDialog.numericSpan(c,"second");return C>0?W:Z},countdownAtText:function(C,c){const W=window.GOVUK.sessionDialog.timeToWords(C,"minute"),Z=window.GOVUK.sessionDialog.timeToWords(c,"second");return C>0?W:Z},startCountdown:function(){const C=window.GOVUK.sessionDialog.$timer,c=window.GOVUK.sessionDialog.$accessibleTimer;let W=!1;const Z=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,he=window.GOVUK.sessionDialog.secondsUntilSessionTimeout()/60;C.text(he+" minute"+(he>1?"s":"")),(function Ee(){const ye=window.GOVUK.sessionDialog.secondsUntilSessionTimeout();if(!(ye<=0)){const qe=parseInt(ye/60,10),xe=parseInt(ye%60,10),_e=window.GOVUK.sessionDialog.countdownText(qe,xe),D=window.GOVUK.sessionDialog.warningTextPrefix+"<strong>"+_e+"</strong>"+window.GOVUK.sessionDialog.warningTextSuffix+"<p>"+window.GOVUK.sessionDialog.warningText+"</p>",A=window.GOVUK.sessionDialog.countdownAtText(qe,xe),y=window.GOVUK.sessionDialog.warningTextPrefix+A+window.GOVUK.sessionDialog.warningTextSuffix+" "+window.GOVUK.sessionDialog.warningText,k=`
24
- `+window.GOVUK.sessionDialog.warningTextExtra;C.html(D+" "+k),xe%20===0&&(!W&&!Z?(c.text(y+k),W=!0):c.text(y)),window.GOVUK.sessionDialog.addTimer(Ee,20)}})()},clearTimers:function(){for(let C=0;C<window.GOVUK.sessionDialog.timers.length;C++)clearInterval(window.GOVUK.sessionDialog.timers[C])},refreshSession:function(){$.get("").done(function(){window.GOVUK.sessionDialog.timeSessionRefreshed=new Date,window.GOVUK.sessionDialog.controller()}).fail(function(){window.GOVUK.sessionDialog.redirect()})},redirect:function(){window.location=window.GOVUK.sessionDialog.timeoutRedirectUrl},addTimer:function(C,c){window.GOVUK.sessionDialog.timers.push(setInterval(C,c*1e3))},secondsSinceRefresh:function(){return Math.round(Math.abs((window.GOVUK.sessionDialog.timeSessionRefreshed-new Date)/1e3))},secondsUntilSessionTimeout:function(){return window.GOVUK.sessionDialog.secondsSessionTimeout-window.GOVUK.sessionDialog.secondsSinceRefresh()},secondsUntilTimeoutWarning:function(){return window.GOVUK.sessionDialog.secondsUntilSessionTimeout()-window.GOVUK.sessionDialog.secondsTimeoutWarning},controller:function(){window.GOVUK.sessionDialog.clearTimers();const C=window.GOVUK.sessionDialog.secondsUntilSessionTimeout();C<=0?window.GOVUK.sessionDialog.redirect():C<=window.GOVUK.sessionDialog.secondsTimeoutWarning?(window.GOVUK.sessionDialog.openDialog(),window.GOVUK.sessionDialog.startCountdown(),window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller,window.GOVUK.sessionDialog.secondsUntilSessionTimeout())):window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller,window.GOVUK.sessionDialog.secondsUntilTimeoutWarning())},init:function(C){if($.extend(window.GOVUK.sessionDialog,C),window.GOVUK.sessionDialog.el&&window.GOVUK.sessionDialog.isConfigured()){if(typeof HTMLDialogElement!="function")try{return window.dialogPolyfill.registerDialog(window.GOVUK.sessionDialog.el),!0}catch{return window.GOVUK.sessionDialog.$fallBackElement.classList.add("govuk-!-display-block"),!1}return window.GOVUK.sessionDialog.bindUIElements(),window.GOVUK.sessionDialog.controller(),!0}return!1}},window.GOVUK.sessionDialog.init(),Ga}var nu;function Cl(){if(nu)return Oa;nu=1;var $=al(),C=$.helpers,c=$.progressiveReveal,W=$.formFocus,Z=$.characterCount,ee=$.validation,he=fl();he.initAll(),window.GOVUK=he,ll(),cl();var Ee=hl();return Tl(),$.detailsSummary(),C.documentReady(c),C.documentReady(W),C.documentReady(Ee.initialiseCookieBanner),C.documentReady(Ee.initialiseCookiePage),C.documentReady(Ee.onLoad),C.documentReady(Z),C.documentReady(ee),Oa}var Ko={exports:{}};var Sl=Ko.exports,iu;function Go(){return iu||(iu=1,(function($){(function(C,c){$.exports=C.document?c(C,!0):function(W){if(!W.document)throw new Error("jQuery requires a window with a document");return c(W)}})(typeof window<"u"?window:Sl,function(C,c){var W=[],Z=Object.getPrototypeOf,ee=W.slice,he=W.flat?function(e){return W.flat.call(e)}:function(e){return W.concat.apply([],e)},Ee=W.push,ye=W.indexOf,we={},qe=we.toString,xe=we.hasOwnProperty,_e=xe.toString,D=_e.call(Object),A={},y=function(n){return typeof n=="function"&&typeof n.nodeType!="number"&&typeof n.item!="function"},k=function(n){return n!=null&&n===n.window},b=C.document,T={type:!0,src:!0,nonce:!0,noModule:!0};function g(e,n,r){r=r||b;var s,u,f=r.createElement("script");if(f.text=e,n)for(s in T)u=n[s]||n.getAttribute&&n.getAttribute(s),u&&f.setAttribute(s,u);r.head.appendChild(f).parentNode.removeChild(f)}function S(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?we[qe.call(e)]||"object":typeof e}var H="3.7.1",K=/HTML$/i,o=function(e,n){return new o.fn.init(e,n)};o.fn=o.prototype={jquery:H,constructor:o,length:0,toArray:function(){return ee.call(this)},get:function(e){return e==null?ee.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=o.merge(this.constructor(),e);return n.prevObject=this,n},each:function(e){return o.each(this,e)},map:function(e){return this.pushStack(o.map(this,function(n,r){return e.call(n,r,n)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(o.grep(this,function(e,n){return(n+1)%2}))},odd:function(){return this.pushStack(o.grep(this,function(e,n){return n%2}))},eq:function(e){var n=this.length,r=+e+(e<0?n:0);return this.pushStack(r>=0&&r<n?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:Ee,sort:W.sort,splice:W.splice},o.extend=o.fn.extend=function(){var e,n,r,s,u,f,l=arguments[0]||{},v=1,p=arguments.length,E=!1;for(typeof l=="boolean"&&(E=l,l=arguments[v]||{},v++),typeof l!="object"&&!y(l)&&(l={}),v===p&&(l=this,v--);v<p;v++)if((e=arguments[v])!=null)for(n in e)s=e[n],!(n==="__proto__"||l===s)&&(E&&s&&(o.isPlainObject(s)||(u=Array.isArray(s)))?(r=l[n],u&&!Array.isArray(r)?f=[]:!u&&!o.isPlainObject(r)?f={}:f=r,u=!1,l[n]=o.extend(E,f,s)):s!==void 0&&(l[n]=s));return l},o.extend({expando:"jQuery"+(H+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var n,r;return!e||qe.call(e)!=="[object Object]"?!1:(n=Z(e),n?(r=xe.call(n,"constructor")&&n.constructor,typeof r=="function"&&_e.call(r)===D):!0)},isEmptyObject:function(e){var n;for(n in e)return!1;return!0},globalEval:function(e,n,r){g(e,{nonce:n&&n.nonce},r)},each:function(e,n){var r,s=0;if(Y(e))for(r=e.length;s<r&&n.call(e[s],s,e[s])!==!1;s++);else for(s in e)if(n.call(e[s],s,e[s])===!1)break;return e},text:function(e){var n,r="",s=0,u=e.nodeType;if(!u)for(;n=e[s++];)r+=o.text(n);return u===1||u===11?e.textContent:u===9?e.documentElement.textContent:u===3||u===4?e.nodeValue:r},makeArray:function(e,n){var r=n||[];return e!=null&&(Y(Object(e))?o.merge(r,typeof e=="string"?[e]:e):Ee.call(r,e)),r},inArray:function(e,n,r){return n==null?-1:ye.call(n,e,r)},isXMLDoc:function(e){var n=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!K.test(n||r&&r.nodeName||"HTML")},merge:function(e,n){for(var r=+n.length,s=0,u=e.length;s<r;s++)e[u++]=n[s];return e.length=u,e},grep:function(e,n,r){for(var s,u=[],f=0,l=e.length,v=!r;f<l;f++)s=!n(e[f],f),s!==v&&u.push(e[f]);return u},map:function(e,n,r){var s,u,f=0,l=[];if(Y(e))for(s=e.length;f<s;f++)u=n(e[f],f,r),u!=null&&l.push(u);else for(f in e)u=n(e[f],f,r),u!=null&&l.push(u);return he(l)},guid:1,support:A}),typeof Symbol=="function"&&(o.fn[Symbol.iterator]=W[Symbol.iterator]),o.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,n){we["[object "+n+"]"]=n.toLowerCase()});function Y(e){var n=!!e&&"length"in e&&e.length,r=S(e);return y(e)||k(e)?!1:r==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function J(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()}var fe=W.pop,Ie=W.sort,nt=W.splice,Ce="[\\x20\\t\\r\\n\\f]",Tt=new RegExp("^"+Ce+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ce+"+$","g");o.contains=function(e,n){var r=n&&n.parentNode;return e===r||!!(r&&r.nodeType===1&&(e.contains?e.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16))};var it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function On(e,n){return n?e==="\0"?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}o.escapeSelector=function(e){return(e+"").replace(it,On)};var m=b,N=Ee;(function(){var e,n,r,s,u,f=N,l,v,p,E,B,j=o.expando,R=0,V=0,se=$n(),Ae=$n(),Te=$n(),ot=$n(),Ve=function(d,_){return d===_&&(u=!0),0},It="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Rt="(?:\\\\[\\da-fA-F]{1,6}"+Ce+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ke="\\["+Ce+"*("+Rt+")(?:"+Ce+"*([*^$|!~]?=)"+Ce+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Rt+"))|)"+Ce+"*\\]",Yt=":("+Rt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ke+")*)|.*)\\)|)",Oe=new RegExp(Ce+"+","g"),$e=new RegExp("^"+Ce+"*,"+Ce+"*"),Mn=new RegExp("^"+Ce+"*([>+~]|"+Ce+")"+Ce+"*"),li=new RegExp(Ce+"|>"),Dt=new RegExp(Yt),mn=new RegExp("^"+Rt+"$"),kt={ID:new RegExp("^#("+Rt+")"),CLASS:new RegExp("^\\.("+Rt+")"),TAG:new RegExp("^("+Rt+"|[*])"),ATTR:new RegExp("^"+ke),PSEUDO:new RegExp("^"+Yt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ce+"*(even|odd|(([+-]|)(\\d*)n|)"+Ce+"*(?:([+-]|)"+Ce+"*(\\d+)|))"+Ce+"*\\)|)","i"),bool:new RegExp("^(?:"+It+")$","i"),needsContext:new RegExp("^"+Ce+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ce+"*((?:-\\d)?\\d*)"+Ce+"*\\)|)(?=[^-]|$)","i")},Ut=/^(?:input|select|textarea|button)$/i,Kt=/^h\d$/i,_t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Jn=/[+~]/,Ht=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ce+"?|\\\\([^\\r\\n\\f])","g"),Mt=function(d,_){var I="0x"+d.slice(1)-65536;return _||(I<0?String.fromCharCode(I+65536):String.fromCharCode(I>>10|55296,I&1023|56320))},on=function(){Gt()},Cr=Sn(function(d){return d.disabled===!0&&J(d,"fieldset")},{dir:"parentNode",next:"legend"});function Si(){try{return l.activeElement}catch{}}try{f.apply(W=ee.call(m.childNodes),m.childNodes),W[m.childNodes.length].nodeType}catch{f={apply:function(_,I){N.apply(_,ee.call(I))},call:function(_){N.apply(_,ee.call(arguments,1))}}}function Ne(d,_,I,M){var w,P,q,z,Q,de,ae,oe=_&&_.ownerDocument,Se=_?_.nodeType:9;if(I=I||[],typeof d!="string"||!d||Se!==1&&Se!==9&&Se!==11)return I;if(!M&&(Gt(_),_=_||l,p)){if(Se!==11&&(Q=_t.exec(d)))if(w=Q[1]){if(Se===9)if(q=_.getElementById(w)){if(q.id===w)return f.call(I,q),I}else return I;else if(oe&&(q=oe.getElementById(w))&&Ne.contains(_,q)&&q.id===w)return f.call(I,q),I}else{if(Q[2])return f.apply(I,_.getElementsByTagName(d)),I;if((w=Q[3])&&_.getElementsByClassName)return f.apply(I,_.getElementsByClassName(w)),I}if(!ot[d+" "]&&(!E||!E.test(d))){if(ae=d,oe=_,Se===1&&(li.test(d)||Mn.test(d))){for(oe=Jn.test(d)&&Ei(_.parentNode)||_,(oe!=_||!A.scope)&&((z=_.getAttribute("id"))?z=o.escapeSelector(z):_.setAttribute("id",z=j)),de=Cn(d),P=de.length;P--;)de[P]=(z?"#"+z:":scope")+" "+Jt(de[P]);ae=de.join(",")}try{return f.apply(I,oe.querySelectorAll(ae)),I}catch{ot(d,!0)}finally{z===j&&_.removeAttribute("id")}}}return Er(d.replace(Tt,"$1"),_,I,M)}function $n(){var d=[];function _(I,M){return d.push(I+" ")>n.cacheLength&&delete _[d.shift()],_[I+" "]=M}return _}function Lt(d){return d[j]=!0,d}function yn(d){var _=l.createElement("fieldset");try{return!!d(_)}catch{return!1}finally{_.parentNode&&_.parentNode.removeChild(_),_=null}}function Ao(d){return function(_){return J(_,"input")&&_.type===d}}function ko(d){return function(_){return(J(_,"input")||J(_,"button"))&&_.type===d}}function Sr(d){return function(_){return"form"in _?_.parentNode&&_.disabled===!1?"label"in _?"label"in _.parentNode?_.parentNode.disabled===d:_.disabled===d:_.isDisabled===d||_.isDisabled!==!d&&Cr(_)===d:_.disabled===d:"label"in _?_.disabled===d:!1}}function Pt(d){return Lt(function(_){return _=+_,Lt(function(I,M){for(var w,P=d([],I.length,_),q=P.length;q--;)I[w=P[q]]&&(I[w]=!(M[w]=I[w]))})})}function Ei(d){return d&&typeof d.getElementsByTagName<"u"&&d}function Gt(d){var _,I=d?d.ownerDocument||d:m;return I==l||I.nodeType!==9||!I.documentElement||(l=I,v=l.documentElement,p=!o.isXMLDoc(l),B=v.matches||v.webkitMatchesSelector||v.msMatchesSelector,v.msMatchesSelector&&m!=l&&(_=l.defaultView)&&_.top!==_&&_.addEventListener("unload",on),A.getById=yn(function(M){return v.appendChild(M).id=o.expando,!l.getElementsByName||!l.getElementsByName(o.expando).length}),A.disconnectedMatch=yn(function(M){return B.call(M,"*")}),A.scope=yn(function(){return l.querySelectorAll(":scope")}),A.cssHas=yn(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),A.getById?(n.filter.ID=function(M){var w=M.replace(Ht,Mt);return function(P){return P.getAttribute("id")===w}},n.find.ID=function(M,w){if(typeof w.getElementById<"u"&&p){var P=w.getElementById(M);return P?[P]:[]}}):(n.filter.ID=function(M){var w=M.replace(Ht,Mt);return function(P){var q=typeof P.getAttributeNode<"u"&&P.getAttributeNode("id");return q&&q.value===w}},n.find.ID=function(M,w){if(typeof w.getElementById<"u"&&p){var P,q,z,Q=w.getElementById(M);if(Q){if(P=Q.getAttributeNode("id"),P&&P.value===M)return[Q];for(z=w.getElementsByName(M),q=0;Q=z[q++];)if(P=Q.getAttributeNode("id"),P&&P.value===M)return[Q]}return[]}}),n.find.TAG=function(M,w){return typeof w.getElementsByTagName<"u"?w.getElementsByTagName(M):w.querySelectorAll(M)},n.find.CLASS=function(M,w){if(typeof w.getElementsByClassName<"u"&&p)return w.getElementsByClassName(M)},E=[],yn(function(M){var w;v.appendChild(M).innerHTML="<a id='"+j+"' href='' disabled='disabled'></a><select id='"+j+"-\r\\' disabled='disabled'><option selected=''></option></select>",M.querySelectorAll("[selected]").length||E.push("\\["+Ce+"*(?:value|"+It+")"),M.querySelectorAll("[id~="+j+"-]").length||E.push("~="),M.querySelectorAll("a#"+j+"+*").length||E.push(".#.+[+~]"),M.querySelectorAll(":checked").length||E.push(":checked"),w=l.createElement("input"),w.setAttribute("type","hidden"),M.appendChild(w).setAttribute("name","D"),v.appendChild(M).disabled=!0,M.querySelectorAll(":disabled").length!==2&&E.push(":enabled",":disabled"),w=l.createElement("input"),w.setAttribute("name",""),M.appendChild(w),M.querySelectorAll("[name='']").length||E.push("\\["+Ce+"*name"+Ce+"*="+Ce+`*(?:''|"")`)}),A.cssHas||E.push(":has"),E=E.length&&new RegExp(E.join("|")),Ve=function(M,w){if(M===w)return u=!0,0;var P=!M.compareDocumentPosition-!w.compareDocumentPosition;return P||(P=(M.ownerDocument||M)==(w.ownerDocument||w)?M.compareDocumentPosition(w):1,P&1||!A.sortDetached&&w.compareDocumentPosition(M)===P?M===l||M.ownerDocument==m&&Ne.contains(m,M)?-1:w===l||w.ownerDocument==m&&Ne.contains(m,w)?1:s?ye.call(s,M)-ye.call(s,w):0:P&4?-1:1)}),l}Ne.matches=function(d,_){return Ne(d,null,null,_)},Ne.matchesSelector=function(d,_){if(Gt(d),p&&!ot[_+" "]&&(!E||!E.test(_)))try{var I=B.call(d,_);if(I||A.disconnectedMatch||d.document&&d.document.nodeType!==11)return I}catch{ot(_,!0)}return Ne(_,l,null,[d]).length>0},Ne.contains=function(d,_){return(d.ownerDocument||d)!=l&&Gt(d),o.contains(d,_)},Ne.attr=function(d,_){(d.ownerDocument||d)!=l&&Gt(d);var I=n.attrHandle[_.toLowerCase()],M=I&&xe.call(n.attrHandle,_.toLowerCase())?I(d,_,!p):void 0;return M!==void 0?M:d.getAttribute(_)},Ne.error=function(d){throw new Error("Syntax error, unrecognized expression: "+d)},o.uniqueSort=function(d){var _,I=[],M=0,w=0;if(u=!A.sortStable,s=!A.sortStable&&ee.call(d,0),Ie.call(d,Ve),u){for(;_=d[w++];)_===d[w]&&(M=I.push(w));for(;M--;)nt.call(d,I[M],1)}return s=null,d},o.fn.uniqueSort=function(){return this.pushStack(o.uniqueSort(ee.apply(this)))},n=o.expr={cacheLength:50,createPseudo:Lt,match:kt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(d){return d[1]=d[1].replace(Ht,Mt),d[3]=(d[3]||d[4]||d[5]||"").replace(Ht,Mt),d[2]==="~="&&(d[3]=" "+d[3]+" "),d.slice(0,4)},CHILD:function(d){return d[1]=d[1].toLowerCase(),d[1].slice(0,3)==="nth"?(d[3]||Ne.error(d[0]),d[4]=+(d[4]?d[5]+(d[6]||1):2*(d[3]==="even"||d[3]==="odd")),d[5]=+(d[7]+d[8]||d[3]==="odd")):d[3]&&Ne.error(d[0]),d},PSEUDO:function(d){var _,I=!d[6]&&d[2];return kt.CHILD.test(d[0])?null:(d[3]?d[2]=d[4]||d[5]||"":I&&Dt.test(I)&&(_=Cn(I,!0))&&(_=I.indexOf(")",I.length-_)-I.length)&&(d[0]=d[0].slice(0,_),d[2]=I.slice(0,_)),d.slice(0,3))}},filter:{TAG:function(d){var _=d.replace(Ht,Mt).toLowerCase();return d==="*"?function(){return!0}:function(I){return J(I,_)}},CLASS:function(d){var _=se[d+" "];return _||(_=new RegExp("(^|"+Ce+")"+d+"("+Ce+"|$)"))&&se(d,function(I){return _.test(typeof I.className=="string"&&I.className||typeof I.getAttribute<"u"&&I.getAttribute("class")||"")})},ATTR:function(d,_,I){return function(M){var w=Ne.attr(M,d);return w==null?_==="!=":_?(w+="",_==="="?w===I:_==="!="?w!==I:_==="^="?I&&w.indexOf(I)===0:_==="*="?I&&w.indexOf(I)>-1:_==="$="?I&&w.slice(-I.length)===I:_==="~="?(" "+w.replace(Oe," ")+" ").indexOf(I)>-1:_==="|="?w===I||w.slice(0,I.length+1)===I+"-":!1):!0}},CHILD:function(d,_,I,M,w){var P=d.slice(0,3)!=="nth",q=d.slice(-4)!=="last",z=_==="of-type";return M===1&&w===0?function(Q){return!!Q.parentNode}:function(Q,de,ae){var oe,Se,pe,Re,dt,ft=P!==q?"nextSibling":"previousSibling",vt=Q.parentNode,Et=z&&Q.nodeName.toLowerCase(),Zt=!ae&&!z,Me=!1;if(vt){if(P){for(;ft;){for(pe=Q;pe=pe[ft];)if(z?J(pe,Et):pe.nodeType===1)return!1;dt=ft=d==="only"&&!dt&&"nextSibling"}return!0}if(dt=[q?vt.firstChild:vt.lastChild],q&&Zt){for(Se=vt[j]||(vt[j]={}),oe=Se[d]||[],Re=oe[0]===R&&oe[1],Me=Re&&oe[2],pe=Re&&vt.childNodes[Re];pe=++Re&&pe&&pe[ft]||(Me=Re=0)||dt.pop();)if(pe.nodeType===1&&++Me&&pe===Q){Se[d]=[R,Re,Me];break}}else if(Zt&&(Se=Q[j]||(Q[j]={}),oe=Se[d]||[],Re=oe[0]===R&&oe[1],Me=Re),Me===!1)for(;(pe=++Re&&pe&&pe[ft]||(Me=Re=0)||dt.pop())&&!((z?J(pe,Et):pe.nodeType===1)&&++Me&&(Zt&&(Se=pe[j]||(pe[j]={}),Se[d]=[R,Me]),pe===Q)););return Me-=w,Me===M||Me%M===0&&Me/M>=0}}},PSEUDO:function(d,_){var I,M=n.pseudos[d]||n.setFilters[d.toLowerCase()]||Ne.error("unsupported pseudo: "+d);return M[j]?M(_):M.length>1?(I=[d,d,"",_],n.setFilters.hasOwnProperty(d.toLowerCase())?Lt(function(w,P){for(var q,z=M(w,_),Q=z.length;Q--;)q=ye.call(w,z[Q]),w[q]=!(P[q]=z[Q])}):function(w){return M(w,0,I)}):M}},pseudos:{not:Lt(function(d){var _=[],I=[],M=Li(d.replace(Tt,"$1"));return M[j]?Lt(function(w,P,q,z){for(var Q,de=M(w,null,z,[]),ae=w.length;ae--;)(Q=de[ae])&&(w[ae]=!(P[ae]=Q))}):function(w,P,q){return _[0]=w,M(_,null,q,I),_[0]=null,!I.pop()}}),has:Lt(function(d){return function(_){return Ne(d,_).length>0}}),contains:Lt(function(d){return d=d.replace(Ht,Mt),function(_){return(_.textContent||o.text(_)).indexOf(d)>-1}}),lang:Lt(function(d){return mn.test(d||"")||Ne.error("unsupported lang: "+d),d=d.replace(Ht,Mt).toLowerCase(),function(_){var I;do if(I=p?_.lang:_.getAttribute("xml:lang")||_.getAttribute("lang"))return I=I.toLowerCase(),I===d||I.indexOf(d+"-")===0;while((_=_.parentNode)&&_.nodeType===1);return!1}}),target:function(d){var _=C.location&&C.location.hash;return _&&_.slice(1)===d.id},root:function(d){return d===v},focus:function(d){return d===Si()&&l.hasFocus()&&!!(d.type||d.href||~d.tabIndex)},enabled:Sr(!1),disabled:Sr(!0),checked:function(d){return J(d,"input")&&!!d.checked||J(d,"option")&&!!d.selected},selected:function(d){return d.parentNode&&d.parentNode.selectedIndex,d.selected===!0},empty:function(d){for(d=d.firstChild;d;d=d.nextSibling)if(d.nodeType<6)return!1;return!0},parent:function(d){return!n.pseudos.empty(d)},header:function(d){return Kt.test(d.nodeName)},input:function(d){return Ut.test(d.nodeName)},button:function(d){return J(d,"input")&&d.type==="button"||J(d,"button")},text:function(d){var _;return J(d,"input")&&d.type==="text"&&((_=d.getAttribute("type"))==null||_.toLowerCase()==="text")},first:Pt(function(){return[0]}),last:Pt(function(d,_){return[_-1]}),eq:Pt(function(d,_,I){return[I<0?I+_:I]}),even:Pt(function(d,_){for(var I=0;I<_;I+=2)d.push(I);return d}),odd:Pt(function(d,_){for(var I=1;I<_;I+=2)d.push(I);return d}),lt:Pt(function(d,_,I){var M;for(I<0?M=I+_:I>_?M=_:M=I;--M>=0;)d.push(M);return d}),gt:Pt(function(d,_,I){for(var M=I<0?I+_:I;++M<_;)d.push(M);return d})}},n.pseudos.nth=n.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=Ao(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ko(e);function Ai(){}Ai.prototype=n.filters=n.pseudos,n.setFilters=new Ai;function Cn(d,_){var I,M,w,P,q,z,Q,de=Ae[d+" "];if(de)return _?0:de.slice(0);for(q=d,z=[],Q=n.preFilter;q;){(!I||(M=$e.exec(q)))&&(M&&(q=q.slice(M[0].length)||q),z.push(w=[])),I=!1,(M=Mn.exec(q))&&(I=M.shift(),w.push({value:I,type:M[0].replace(Tt," ")}),q=q.slice(I.length));for(P in n.filter)(M=kt[P].exec(q))&&(!Q[P]||(M=Q[P](M)))&&(I=M.shift(),w.push({value:I,type:P,matches:M}),q=q.slice(I.length));if(!I)break}return _?q.length:q?Ne.error(d):Ae(d,z).slice(0)}function Jt(d){for(var _=0,I=d.length,M="";_<I;_++)M+=d[_].value;return M}function Sn(d,_,I){var M=_.dir,w=_.next,P=w||M,q=I&&P==="parentNode",z=V++;return _.first?function(Q,de,ae){for(;Q=Q[M];)if(Q.nodeType===1||q)return d(Q,de,ae);return!1}:function(Q,de,ae){var oe,Se,pe=[R,z];if(ae){for(;Q=Q[M];)if((Q.nodeType===1||q)&&d(Q,de,ae))return!0}else for(;Q=Q[M];)if(Q.nodeType===1||q)if(Se=Q[j]||(Q[j]={}),w&&J(Q,w))Q=Q[M]||Q;else{if((oe=Se[P])&&oe[0]===R&&oe[1]===z)return pe[2]=oe[2];if(Se[P]=pe,pe[2]=d(Q,de,ae))return!0}return!1}}function ki(d){return d.length>1?function(_,I,M){for(var w=d.length;w--;)if(!d[w](_,I,M))return!1;return!0}:d[0]}function Lo(d,_,I){for(var M=0,w=_.length;M<w;M++)Ne(d,_[M],I);return I}function Zn(d,_,I,M,w){for(var P,q=[],z=0,Q=d.length,de=_!=null;z<Q;z++)(P=d[z])&&(!I||I(P,M,w))&&(q.push(P),de&&_.push(z));return q}function En(d,_,I,M,w,P){return M&&!M[j]&&(M=En(M)),w&&!w[j]&&(w=En(w,P)),Lt(function(q,z,Q,de){var ae,oe,Se,pe,Re=[],dt=[],ft=z.length,vt=q||Lo(_||"*",Q.nodeType?[Q]:Q,[]),Et=d&&(q||!_)?Zn(vt,Re,d,Q,de):vt;if(I?(pe=w||(q?d:ft||M)?[]:z,I(Et,pe,Q,de)):pe=Et,M)for(ae=Zn(pe,dt),M(ae,[],Q,de),oe=ae.length;oe--;)(Se=ae[oe])&&(pe[dt[oe]]=!(Et[dt[oe]]=Se));if(q){if(w||d){if(w){for(ae=[],oe=pe.length;oe--;)(Se=pe[oe])&&ae.push(Et[oe]=Se);w(null,pe=[],ae,de)}for(oe=pe.length;oe--;)(Se=pe[oe])&&(ae=w?ye.call(q,Se):Re[oe])>-1&&(q[ae]=!(z[ae]=Se))}}else pe=Zn(pe===z?pe.splice(ft,pe.length):pe),w?w(null,z,pe,de):f.apply(z,pe)})}function Vt(d){for(var _,I,M,w=d.length,P=n.relative[d[0].type],q=P||n.relative[" "],z=P?1:0,Q=Sn(function(oe){return oe===_},q,!0),de=Sn(function(oe){return ye.call(_,oe)>-1},q,!0),ae=[function(oe,Se,pe){var Re=!P&&(pe||Se!=r)||((_=Se).nodeType?Q(oe,Se,pe):de(oe,Se,pe));return _=null,Re}];z<w;z++)if(I=n.relative[d[z].type])ae=[Sn(ki(ae),I)];else{if(I=n.filter[d[z].type].apply(null,d[z].matches),I[j]){for(M=++z;M<w&&!n.relative[d[M].type];M++);return En(z>1&&ki(ae),z>1&&Jt(d.slice(0,z-1).concat({value:d[z-2].type===" "?"*":""})).replace(Tt,"$1"),I,z<M&&Vt(d.slice(z,M)),M<w&&Vt(d=d.slice(M)),M<w&&Jt(d))}ae.push(I)}return ki(ae)}function Gr(d,_){var I=_.length>0,M=d.length>0,w=function(P,q,z,Q,de){var ae,oe,Se,pe=0,Re="0",dt=P&&[],ft=[],vt=r,Et=P||M&&n.find.TAG("*",de),Zt=R+=vt==null?1:Math.random()||.1,Me=Et.length;for(de&&(r=q==l||q||de);Re!==Me&&(ae=Et[Re])!=null;Re++){if(M&&ae){for(oe=0,!q&&ae.ownerDocument!=l&&(Gt(ae),z=!p);Se=d[oe++];)if(Se(ae,q||l,z)){f.call(Q,ae);break}de&&(R=Zt)}I&&((ae=!Se&&ae)&&pe--,P&&dt.push(ae))}if(pe+=Re,I&&Re!==pe){for(oe=0;Se=_[oe++];)Se(dt,ft,q,z);if(P){if(pe>0)for(;Re--;)dt[Re]||ft[Re]||(ft[Re]=fe.call(Q));ft=Zn(ft)}f.apply(Q,ft),de&&!P&&ft.length>0&&pe+_.length>1&&o.uniqueSort(Q)}return de&&(R=Zt,r=vt),dt};return I?Lt(w):w}function Li(d,_){var I,M=[],w=[],P=Te[d+" "];if(!P){for(_||(_=Cn(d)),I=_.length;I--;)P=Vt(_[I]),P[j]?M.push(P):w.push(P);P=Te(d,Gr(w,M)),P.selector=d}return P}function Er(d,_,I,M){var w,P,q,z,Q,de=typeof d=="function"&&d,ae=!M&&Cn(d=de.selector||d);if(I=I||[],ae.length===1){if(P=ae[0]=ae[0].slice(0),P.length>2&&(q=P[0]).type==="ID"&&_.nodeType===9&&p&&n.relative[P[1].type]){if(_=(n.find.ID(q.matches[0].replace(Ht,Mt),_)||[])[0],_)de&&(_=_.parentNode);else return I;d=d.slice(P.shift().value.length)}for(w=kt.needsContext.test(d)?0:P.length;w--&&(q=P[w],!n.relative[z=q.type]);)if((Q=n.find[z])&&(M=Q(q.matches[0].replace(Ht,Mt),Jn.test(P[0].type)&&Ei(_.parentNode)||_))){if(P.splice(w,1),d=M.length&&Jt(P),!d)return f.apply(I,M),I;break}}return(de||Li(d,ae))(M,_,!p,I,!_||Jn.test(d)&&Ei(_.parentNode)||_),I}A.sortStable=j.split("").sort(Ve).join("")===j,Gt(),A.sortDetached=yn(function(d){return d.compareDocumentPosition(l.createElement("fieldset"))&1}),o.find=Ne,o.expr[":"]=o.expr.pseudos,o.unique=o.uniqueSort,Ne.compile=Li,Ne.select=Er,Ne.setDocument=Gt,Ne.tokenize=Cn,Ne.escape=o.escapeSelector,Ne.getText=o.text,Ne.isXML=o.isXMLDoc,Ne.selectors=o.expr,Ne.support=o.support,Ne.uniqueSort=o.uniqueSort})();var F=function(e,n,r){for(var s=[],u=r!==void 0;(e=e[n])&&e.nodeType!==9;)if(e.nodeType===1){if(u&&o(e).is(r))break;s.push(e)}return s},ne=function(e,n){for(var r=[];e;e=e.nextSibling)e.nodeType===1&&e!==n&&r.push(e);return r},re=o.expr.match.needsContext,me=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ce(e,n,r){return y(n)?o.grep(e,function(s,u){return!!n.call(s,u,s)!==r}):n.nodeType?o.grep(e,function(s){return s===n!==r}):typeof n!="string"?o.grep(e,function(s){return ye.call(n,s)>-1!==r}):o.filter(n,e,r)}o.filter=function(e,n,r){var s=n[0];return r&&(e=":not("+e+")"),n.length===1&&s.nodeType===1?o.find.matchesSelector(s,e)?[s]:[]:o.find.matches(e,o.grep(n,function(u){return u.nodeType===1}))},o.fn.extend({find:function(e){var n,r,s=this.length,u=this;if(typeof e!="string")return this.pushStack(o(e).filter(function(){for(n=0;n<s;n++)if(o.contains(u[n],this))return!0}));for(r=this.pushStack([]),n=0;n<s;n++)o.find(e,u[n],r);return s>1?o.uniqueSort(r):r},filter:function(e){return this.pushStack(ce(this,e||[],!1))},not:function(e){return this.pushStack(ce(this,e||[],!0))},is:function(e){return!!ce(this,typeof e=="string"&&re.test(e)?o(e):e||[],!1).length}});var te,be=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ge=o.fn.init=function(e,n,r){var s,u;if(!e)return this;if(r=r||te,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?s=[null,e,null]:s=be.exec(e),s&&(s[1]||!n))if(s[1]){if(n=n instanceof o?n[0]:n,o.merge(this,o.parseHTML(s[1],n&&n.nodeType?n.ownerDocument||n:b,!0)),me.test(s[1])&&o.isPlainObject(n))for(s in n)y(this[s])?this[s](n[s]):this.attr(s,n[s]);return this}else return u=b.getElementById(s[2]),u&&(this[0]=u,this.length=1),this;else return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(y(e))return r.ready!==void 0?r.ready(e):e(o)}return o.makeArray(e,this)};ge.prototype=o.fn,te=o(b);var De=/^(?:parents|prev(?:Until|All))/,Ke={children:!0,contents:!0,next:!0,prev:!0};o.fn.extend({has:function(e){var n=o(e,this),r=n.length;return this.filter(function(){for(var s=0;s<r;s++)if(o.contains(this,n[s]))return!0})},closest:function(e,n){var r,s=0,u=this.length,f=[],l=typeof e!="string"&&o(e);if(!re.test(e)){for(;s<u;s++)for(r=this[s];r&&r!==n;r=r.parentNode)if(r.nodeType<11&&(l?l.index(r)>-1:r.nodeType===1&&o.find.matchesSelector(r,e))){f.push(r);break}}return this.pushStack(f.length>1?o.uniqueSort(f):f)},index:function(e){return e?typeof e=="string"?ye.call(o(e),this[0]):ye.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(o.uniqueSort(o.merge(this.get(),o(e,n))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Ge(e,n){for(;(e=e[n])&&e.nodeType!==1;);return e}o.each({parent:function(e){var n=e.parentNode;return n&&n.nodeType!==11?n:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,n,r){return F(e,"parentNode",r)},next:function(e){return Ge(e,"nextSibling")},prev:function(e){return Ge(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,n,r){return F(e,"nextSibling",r)},prevUntil:function(e,n,r){return F(e,"previousSibling",r)},siblings:function(e){return ne((e.parentNode||{}).firstChild,e)},children:function(e){return ne(e.firstChild)},contents:function(e){return e.contentDocument!=null&&Z(e.contentDocument)?e.contentDocument:(J(e,"template")&&(e=e.content||e),o.merge([],e.childNodes))}},function(e,n){o.fn[e]=function(r,s){var u=o.map(this,n,r);return e.slice(-5)!=="Until"&&(s=r),s&&typeof s=="string"&&(u=o.filter(s,u)),this.length>1&&(Ke[e]||o.uniqueSort(u),De.test(e)&&u.reverse()),this.pushStack(u)}});var Fe=/[^\x20\t\r\n\f]+/g;function He(e){var n={};return o.each(e.match(Fe)||[],function(r,s){n[s]=!0}),n}o.Callbacks=function(e){e=typeof e=="string"?He(e):o.extend({},e);var n,r,s,u,f=[],l=[],v=-1,p=function(){for(u=u||e.once,s=n=!0;l.length;v=-1)for(r=l.shift();++v<f.length;)f[v].apply(r[0],r[1])===!1&&e.stopOnFalse&&(v=f.length,r=!1);e.memory||(r=!1),n=!1,u&&(r?f=[]:f="")},E={add:function(){return f&&(r&&!n&&(v=f.length-1,l.push(r)),(function B(j){o.each(j,function(R,V){y(V)?(!e.unique||!E.has(V))&&f.push(V):V&&V.length&&S(V)!=="string"&&B(V)})})(arguments),r&&!n&&p()),this},remove:function(){return o.each(arguments,function(B,j){for(var R;(R=o.inArray(j,f,R))>-1;)f.splice(R,1),R<=v&&v--}),this},has:function(B){return B?o.inArray(B,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return u=l=[],f=r="",this},disabled:function(){return!f},lock:function(){return u=l=[],!r&&!n&&(f=r=""),this},locked:function(){return!!u},fireWith:function(B,j){return u||(j=j||[],j=[B,j.slice?j.slice():j],l.push(j),n||p()),this},fire:function(){return E.fireWith(this,arguments),this},fired:function(){return!!s}};return E};function Ze(e){return e}function Qe(e){throw e}function Be(e,n,r,s){var u;try{e&&y(u=e.promise)?u.call(e).done(n).fail(r):e&&y(u=e.then)?u.call(e,n,r):n.apply(void 0,[e].slice(s))}catch(f){r.apply(void 0,[f])}}o.extend({Deferred:function(e){var n=[["notify","progress",o.Callbacks("memory"),o.Callbacks("memory"),2],["resolve","done",o.Callbacks("once memory"),o.Callbacks("once memory"),0,"resolved"],["reject","fail",o.Callbacks("once memory"),o.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return u.done(arguments).fail(arguments),this},catch:function(f){return s.then(null,f)},pipe:function(){var f=arguments;return o.Deferred(function(l){o.each(n,function(v,p){var E=y(f[p[4]])&&f[p[4]];u[p[1]](function(){var B=E&&E.apply(this,arguments);B&&y(B.promise)?B.promise().progress(l.notify).done(l.resolve).fail(l.reject):l[p[0]+"With"](this,E?[B]:arguments)})}),f=null}).promise()},then:function(f,l,v){var p=0;function E(B,j,R,V){return function(){var se=this,Ae=arguments,Te=function(){var Ve,It;if(!(B<p)){if(Ve=R.apply(se,Ae),Ve===j.promise())throw new TypeError("Thenable self-resolution");It=Ve&&(typeof Ve=="object"||typeof Ve=="function")&&Ve.then,y(It)?V?It.call(Ve,E(p,j,Ze,V),E(p,j,Qe,V)):(p++,It.call(Ve,E(p,j,Ze,V),E(p,j,Qe,V),E(p,j,Ze,j.notifyWith))):(R!==Ze&&(se=void 0,Ae=[Ve]),(V||j.resolveWith)(se,Ae))}},ot=V?Te:function(){try{Te()}catch(Ve){o.Deferred.exceptionHook&&o.Deferred.exceptionHook(Ve,ot.error),B+1>=p&&(R!==Qe&&(se=void 0,Ae=[Ve]),j.rejectWith(se,Ae))}};B?ot():(o.Deferred.getErrorHook?ot.error=o.Deferred.getErrorHook():o.Deferred.getStackHook&&(ot.error=o.Deferred.getStackHook()),C.setTimeout(ot))}}return o.Deferred(function(B){n[0][3].add(E(0,B,y(v)?v:Ze,B.notifyWith)),n[1][3].add(E(0,B,y(f)?f:Ze)),n[2][3].add(E(0,B,y(l)?l:Qe))}).promise()},promise:function(f){return f!=null?o.extend(f,s):s}},u={};return o.each(n,function(f,l){var v=l[2],p=l[5];s[l[1]]=v.add,p&&v.add(function(){r=p},n[3-f][2].disable,n[3-f][3].disable,n[0][2].lock,n[0][3].lock),v.add(l[3].fire),u[l[0]]=function(){return u[l[0]+"With"](this===u?void 0:this,arguments),this},u[l[0]+"With"]=v.fireWith}),s.promise(u),e&&e.call(u,u),u},when:function(e){var n=arguments.length,r=n,s=Array(r),u=ee.call(arguments),f=o.Deferred(),l=function(v){return function(p){s[v]=this,u[v]=arguments.length>1?ee.call(arguments):p,--n||f.resolveWith(s,u)}};if(n<=1&&(Be(e,f.done(l(r)).resolve,f.reject,!n),f.state()==="pending"||y(u[r]&&u[r].then)))return f.then();for(;r--;)Be(u[r],l(r),f.reject);return f.promise()}});var et=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;o.Deferred.exceptionHook=function(e,n){C.console&&C.console.warn&&e&&et.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},o.readyException=function(e){C.setTimeout(function(){throw e})};var Ye=o.Deferred();o.fn.ready=function(e){return Ye.then(e).catch(function(n){o.readyException(n)}),this},o.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--o.readyWait:o.isReady)||(o.isReady=!0,!(e!==!0&&--o.readyWait>0)&&Ye.resolveWith(b,[o]))}}),o.ready.then=Ye.then;function rt(){b.removeEventListener("DOMContentLoaded",rt),C.removeEventListener("load",rt),o.ready()}b.readyState==="complete"||b.readyState!=="loading"&&!b.documentElement.doScroll?C.setTimeout(o.ready):(b.addEventListener("DOMContentLoaded",rt),C.addEventListener("load",rt));var St=function(e,n,r,s,u,f,l){var v=0,p=e.length,E=r==null;if(S(r)==="object"){u=!0;for(v in r)St(e,n,v,r[v],!0,f,l)}else if(s!==void 0&&(u=!0,y(s)||(l=!0),E&&(l?(n.call(e,s),n=null):(E=n,n=function(B,j,R){return E.call(o(B),R)})),n))for(;v<p;v++)n(e[v],r,l?s:s.call(e[v],v,n(e[v],r)));return u?e:E?n.call(e):p?n(e[0],r):f},ii=/^-ms-/,Vn=/-([a-z])/g;function tn(e,n){return n.toUpperCase()}function bt(e){return e.replace(ii,"ms-").replace(Vn,tn)}var $t=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function jt(){this.expando=o.expando+jt.uid++}jt.uid=1,jt.prototype={cache:function(e){var n=e[this.expando];return n||(n={},$t(e)&&(e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,configurable:!0}))),n},set:function(e,n,r){var s,u=this.cache(e);if(typeof n=="string")u[bt(n)]=r;else for(s in n)u[bt(s)]=n[s];return u},get:function(e,n){return n===void 0?this.cache(e):e[this.expando]&&e[this.expando][bt(n)]},access:function(e,n,r){return n===void 0||n&&typeof n=="string"&&r===void 0?this.get(e,n):(this.set(e,n,r),r!==void 0?r:n)},remove:function(e,n){var r,s=e[this.expando];if(s!==void 0){if(n!==void 0)for(Array.isArray(n)?n=n.map(bt):(n=bt(n),n=n in s?[n]:n.match(Fe)||[]),r=n.length;r--;)delete s[n[r]];(n===void 0||o.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var n=e[this.expando];return n!==void 0&&!o.isEmptyObject(n)}};var ie=new jt,ut=new jt,pi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ri=/[A-Z]/g;function Ji(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:pi.test(e)?JSON.parse(e):e}function gi(e,n,r){var s;if(r===void 0&&e.nodeType===1)if(s="data-"+n.replace(ri,"-$&").toLowerCase(),r=e.getAttribute(s),typeof r=="string"){try{r=Ji(r)}catch{}ut.set(e,n,r)}else r=void 0;return r}o.extend({hasData:function(e){return ut.hasData(e)||ie.hasData(e)},data:function(e,n,r){return ut.access(e,n,r)},removeData:function(e,n){ut.remove(e,n)},_data:function(e,n,r){return ie.access(e,n,r)},_removeData:function(e,n){ie.remove(e,n)}}),o.fn.extend({data:function(e,n){var r,s,u,f=this[0],l=f&&f.attributes;if(e===void 0){if(this.length&&(u=ut.get(f),f.nodeType===1&&!ie.get(f,"hasDataAttrs"))){for(r=l.length;r--;)l[r]&&(s=l[r].name,s.indexOf("data-")===0&&(s=bt(s.slice(5)),gi(f,s,u[s])));ie.set(f,"hasDataAttrs",!0)}return u}return typeof e=="object"?this.each(function(){ut.set(this,e)}):St(this,function(v){var p;if(f&&v===void 0)return p=ut.get(f,e),p!==void 0||(p=gi(f,e),p!==void 0)?p:void 0;this.each(function(){ut.set(this,e,v)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ut.remove(this,e)})}}),o.extend({queue:function(e,n,r){var s;if(e)return n=(n||"fx")+"queue",s=ie.get(e,n),r&&(!s||Array.isArray(r)?s=ie.access(e,n,o.makeArray(r)):s.push(r)),s||[]},dequeue:function(e,n){n=n||"fx";var r=o.queue(e,n),s=r.length,u=r.shift(),f=o._queueHooks(e,n),l=function(){o.dequeue(e,n)};u==="inprogress"&&(u=r.shift(),s--),u&&(n==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(e,l,f)),!s&&f&&f.empty.fire()},_queueHooks:function(e,n){var r=n+"queueHooks";return ie.get(e,r)||ie.access(e,r,{empty:o.Callbacks("once memory").add(function(){ie.remove(e,[n+"queue",r])})})}}),o.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?o.queue(this[0],e):n===void 0?this:this.each(function(){var s=o.queue(this,e,n);o._queueHooks(this,e),e==="fx"&&s[0]!=="inprogress"&&o.dequeue(this,e)})},dequeue:function(e){return this.each(function(){o.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,s=1,u=o.Deferred(),f=this,l=this.length,v=function(){--s||u.resolveWith(f,[f])};for(typeof e!="string"&&(n=e,e=void 0),e=e||"fx";l--;)r=ie.get(f[l],e+"queueHooks"),r&&r.empty&&(s++,r.empty.add(v));return v(),u.promise(n)}});var vi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,hn=new RegExp("^(?:([+-])=|)("+vi+")([a-z%]*)$","i"),Ot=["Top","Right","Bottom","Left"],Wt=b.documentElement,nn=function(e){return o.contains(e.ownerDocument,e)},Zi={composed:!0};Wt.getRootNode&&(nn=function(e){return o.contains(e.ownerDocument,e)||e.getRootNode(Zi)===e.ownerDocument});var In=function(e,n){return e=n||e,e.style.display==="none"||e.style.display===""&&nn(e)&&o.css(e,"display")==="none"};function er(e,n,r,s){var u,f,l=20,v=s?function(){return s.cur()}:function(){return o.css(e,n,"")},p=v(),E=r&&r[3]||(o.cssNumber[n]?"":"px"),B=e.nodeType&&(o.cssNumber[n]||E!=="px"&&+p)&&hn.exec(o.css(e,n));if(B&&B[3]!==E){for(p=p/2,E=E||B[3],B=+p||1;l--;)o.style(e,n,B+E),(1-f)*(1-(f=v()/p||.5))<=0&&(l=0),B=B/f;B=B*2,o.style(e,n,B+E),r=r||[]}return r&&(B=+B||+p||0,u=r[1]?B+(r[1]+1)*r[2]:+r[2],s&&(s.unit=E,s.start=B,s.end=u)),u}var tr={};function so(e){var n,r=e.ownerDocument,s=e.nodeName,u=tr[s];return u||(n=r.body.appendChild(r.createElement(s)),u=o.css(n,"display"),n.parentNode.removeChild(n),u==="none"&&(u="block"),tr[s]=u,u)}function an(e,n){for(var r,s,u=[],f=0,l=e.length;f<l;f++)s=e[f],s.style&&(r=s.style.display,n?(r==="none"&&(u[f]=ie.get(s,"display")||null,u[f]||(s.style.display="")),s.style.display===""&&In(s)&&(u[f]=so(s))):r!=="none"&&(u[f]="none",ie.set(s,"display",r)));for(f=0;f<l;f++)u[f]!=null&&(e[f].style.display=u[f]);return e}o.fn.extend({show:function(){return an(this,!0)},hide:function(){return an(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){In(this)?o(this).show():o(this).hide()})}});var _n=/^(?:checkbox|radio)$/i,nr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ir=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=b.createDocumentFragment(),n=e.appendChild(b.createElement("div")),r=b.createElement("input");r.setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),n.appendChild(r),A.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,n.innerHTML="<option></option>",A.option=!!n.lastChild})();var Ct={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,A.option||(Ct.optgroup=Ct.option=[1,"<select multiple='multiple'>","</select>"]);function mt(e,n){var r;return typeof e.getElementsByTagName<"u"?r=e.getElementsByTagName(n||"*"):typeof e.querySelectorAll<"u"?r=e.querySelectorAll(n||"*"):r=[],n===void 0||n&&J(e,n)?o.merge([e],r):r}function oi(e,n){for(var r=0,s=e.length;r<s;r++)ie.set(e[r],"globalEval",!n||ie.get(n[r],"globalEval"))}var ao=/<|&#?\w+;/;function rr(e,n,r,s,u){for(var f,l,v,p,E,B,j=n.createDocumentFragment(),R=[],V=0,se=e.length;V<se;V++)if(f=e[V],f||f===0)if(S(f)==="object")o.merge(R,f.nodeType?[f]:f);else if(!ao.test(f))R.push(n.createTextNode(f));else{for(l=l||j.appendChild(n.createElement("div")),v=(nr.exec(f)||["",""])[1].toLowerCase(),p=Ct[v]||Ct._default,l.innerHTML=p[1]+o.htmlPrefilter(f)+p[2],B=p[0];B--;)l=l.lastChild;o.merge(R,l.childNodes),l=j.firstChild,l.textContent=""}for(j.textContent="",V=0;f=R[V++];){if(s&&o.inArray(f,s)>-1){u&&u.push(f);continue}if(E=nn(f),l=mt(j.appendChild(f),"script"),E&&oi(l),r)for(B=0;f=l[B++];)ir.test(f.type||"")&&r.push(f)}return j}var or=/^([^.]*)(?:\.(.+)|)/;function rn(){return!0}function dn(){return!1}function zn(e,n,r,s,u,f){var l,v;if(typeof n=="object"){typeof r!="string"&&(s=s||r,r=void 0);for(v in n)zn(e,v,r,s,n[v],f);return e}if(s==null&&u==null?(u=r,s=r=void 0):u==null&&(typeof r=="string"?(u=s,s=void 0):(u=s,s=r,r=void 0)),u===!1)u=dn;else if(!u)return e;return f===1&&(l=u,u=function(p){return o().off(p),l.apply(this,arguments)},u.guid=l.guid||(l.guid=o.guid++)),e.each(function(){o.event.add(this,n,u,s,r)})}o.event={global:{},add:function(e,n,r,s,u){var f,l,v,p,E,B,j,R,V,se,Ae,Te=ie.get(e);if($t(e))for(r.handler&&(f=r,r=f.handler,u=f.selector),u&&o.find.matchesSelector(Wt,u),r.guid||(r.guid=o.guid++),(p=Te.events)||(p=Te.events=Object.create(null)),(l=Te.handle)||(l=Te.handle=function(ot){return typeof o<"u"&&o.event.triggered!==ot.type?o.event.dispatch.apply(e,arguments):void 0}),n=(n||"").match(Fe)||[""],E=n.length;E--;)v=or.exec(n[E])||[],V=Ae=v[1],se=(v[2]||"").split(".").sort(),V&&(j=o.event.special[V]||{},V=(u?j.delegateType:j.bindType)||V,j=o.event.special[V]||{},B=o.extend({type:V,origType:Ae,data:s,handler:r,guid:r.guid,selector:u,needsContext:u&&o.expr.match.needsContext.test(u),namespace:se.join(".")},f),(R=p[V])||(R=p[V]=[],R.delegateCount=0,(!j.setup||j.setup.call(e,s,se,l)===!1)&&e.addEventListener&&e.addEventListener(V,l)),j.add&&(j.add.call(e,B),B.handler.guid||(B.handler.guid=r.guid)),u?R.splice(R.delegateCount++,0,B):R.push(B),o.event.global[V]=!0)},remove:function(e,n,r,s,u){var f,l,v,p,E,B,j,R,V,se,Ae,Te=ie.hasData(e)&&ie.get(e);if(!(!Te||!(p=Te.events))){for(n=(n||"").match(Fe)||[""],E=n.length;E--;){if(v=or.exec(n[E])||[],V=Ae=v[1],se=(v[2]||"").split(".").sort(),!V){for(V in p)o.event.remove(e,V+n[E],r,s,!0);continue}for(j=o.event.special[V]||{},V=(s?j.delegateType:j.bindType)||V,R=p[V]||[],v=v[2]&&new RegExp("(^|\\.)"+se.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=f=R.length;f--;)B=R[f],(u||Ae===B.origType)&&(!r||r.guid===B.guid)&&(!v||v.test(B.namespace))&&(!s||s===B.selector||s==="**"&&B.selector)&&(R.splice(f,1),B.selector&&R.delegateCount--,j.remove&&j.remove.call(e,B));l&&!R.length&&((!j.teardown||j.teardown.call(e,se,Te.handle)===!1)&&o.removeEvent(e,V,Te.handle),delete p[V])}o.isEmptyObject(p)&&ie.remove(e,"handle events")}},dispatch:function(e){var n,r,s,u,f,l,v=new Array(arguments.length),p=o.event.fix(e),E=(ie.get(this,"events")||Object.create(null))[p.type]||[],B=o.event.special[p.type]||{};for(v[0]=p,n=1;n<arguments.length;n++)v[n]=arguments[n];if(p.delegateTarget=this,!(B.preDispatch&&B.preDispatch.call(this,p)===!1)){for(l=o.event.handlers.call(this,p,E),n=0;(u=l[n++])&&!p.isPropagationStopped();)for(p.currentTarget=u.elem,r=0;(f=u.handlers[r++])&&!p.isImmediatePropagationStopped();)(!p.rnamespace||f.namespace===!1||p.rnamespace.test(f.namespace))&&(p.handleObj=f,p.data=f.data,s=((o.event.special[f.origType]||{}).handle||f.handler).apply(u.elem,v),s!==void 0&&(p.result=s)===!1&&(p.preventDefault(),p.stopPropagation()));return B.postDispatch&&B.postDispatch.call(this,p),p.result}},handlers:function(e,n){var r,s,u,f,l,v=[],p=n.delegateCount,E=e.target;if(p&&E.nodeType&&!(e.type==="click"&&e.button>=1)){for(;E!==this;E=E.parentNode||this)if(E.nodeType===1&&!(e.type==="click"&&E.disabled===!0)){for(f=[],l={},r=0;r<p;r++)s=n[r],u=s.selector+" ",l[u]===void 0&&(l[u]=s.needsContext?o(u,this).index(E)>-1:o.find(u,this,null,[E]).length),l[u]&&f.push(s);f.length&&v.push({elem:E,handlers:f})}}return E=this,p<n.length&&v.push({elem:E,handlers:n.slice(p)}),v},addProp:function(e,n){Object.defineProperty(o.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(r){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}})},fix:function(e){return e[o.expando]?e:new o.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var n=this||e;return _n.test(n.type)&&n.click&&J(n,"input")&&Qn(n,"click",!0),!1},trigger:function(e){var n=this||e;return _n.test(n.type)&&n.click&&J(n,"input")&&Qn(n,"click"),!0},_default:function(e){var n=e.target;return _n.test(n.type)&&n.click&&J(n,"input")&&ie.get(n,"click")||J(n,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function Qn(e,n,r){if(!r){ie.get(e,n)===void 0&&o.event.add(e,n,rn);return}ie.set(e,n,!1),o.event.add(e,n,{namespace:!1,handler:function(s){var u,f=ie.get(this,n);if(s.isTrigger&1&&this[n]){if(f)(o.event.special[n]||{}).delegateType&&s.stopPropagation();else if(f=ee.call(arguments),ie.set(this,n,f),this[n](),u=ie.get(this,n),ie.set(this,n,!1),f!==u)return s.stopImmediatePropagation(),s.preventDefault(),u}else f&&(ie.set(this,n,o.event.trigger(f[0],f.slice(1),this)),s.stopPropagation(),s.isImmediatePropagationStopped=rn)}})}o.removeEvent=function(e,n,r){e.removeEventListener&&e.removeEventListener(n,r)},o.Event=function(e,n){if(!(this instanceof o.Event))return new o.Event(e,n);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?rn:dn,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,n&&o.extend(this,n),this.timeStamp=e&&e.timeStamp||Date.now(),this[o.expando]=!0},o.Event.prototype={constructor:o.Event,isDefaultPrevented:dn,isPropagationStopped:dn,isImmediatePropagationStopped:dn,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=rn,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=rn,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=rn,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},o.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},o.event.addProp),o.each({focus:"focusin",blur:"focusout"},function(e,n){function r(s){if(b.documentMode){var u=ie.get(this,"handle"),f=o.event.fix(s);f.type=s.type==="focusin"?"focus":"blur",f.isSimulated=!0,u(s),f.target===f.currentTarget&&u(f)}else o.event.simulate(n,s.target,o.event.fix(s))}o.event.special[e]={setup:function(){var s;if(Qn(this,e,!0),b.documentMode)s=ie.get(this,n),s||this.addEventListener(n,r),ie.set(this,n,(s||0)+1);else return!1},trigger:function(){return Qn(this,e),!0},teardown:function(){var s;if(b.documentMode)s=ie.get(this,n)-1,s?ie.set(this,n,s):(this.removeEventListener(n,r),ie.remove(this,n));else return!1},_default:function(s){return ie.get(s.target,e)},delegateType:n},o.event.special[n]={setup:function(){var s=this.ownerDocument||this.document||this,u=b.documentMode?this:s,f=ie.get(u,n);f||(b.documentMode?this.addEventListener(n,r):s.addEventListener(e,r,!0)),ie.set(u,n,(f||0)+1)},teardown:function(){var s=this.ownerDocument||this.document||this,u=b.documentMode?this:s,f=ie.get(u,n)-1;f?ie.set(u,n,f):(b.documentMode?this.removeEventListener(n,r):s.removeEventListener(e,r,!0),ie.remove(u,n))}}}),o.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){o.event.special[e]={delegateType:n,bindType:n,handle:function(r){var s,u=this,f=r.relatedTarget,l=r.handleObj;return(!f||f!==u&&!o.contains(u,f))&&(r.type=l.origType,s=l.handler.apply(this,arguments),r.type=n),s}}}),o.fn.extend({on:function(e,n,r,s){return zn(this,e,n,r,s)},one:function(e,n,r,s){return zn(this,e,n,r,s,1)},off:function(e,n,r){var s,u;if(e&&e.preventDefault&&e.handleObj)return s=e.handleObj,o(e.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if(typeof e=="object"){for(u in e)this.off(u,n,e[u]);return this}return(n===!1||typeof n=="function")&&(r=n,n=void 0),r===!1&&(r=dn),this.each(function(){o.event.remove(this,e,r,n)})}});var uo=/<script|<style|<link/i,fo=/checked\s*(?:[^=]|=\s*.checked.)/i,lo=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function sr(e,n){return J(e,"table")&&J(n.nodeType!==11?n:n.firstChild,"tr")&&o(e).children("tbody")[0]||e}function co(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function ho(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ar(e,n){var r,s,u,f,l,v,p;if(n.nodeType===1){if(ie.hasData(e)&&(f=ie.get(e),p=f.events,p)){ie.remove(n,"handle events");for(u in p)for(r=0,s=p[u].length;r<s;r++)o.event.add(n,u,p[u][r])}ut.hasData(e)&&(l=ut.access(e),v=o.extend({},l),ut.set(n,v))}}function Hr(e,n){var r=n.nodeName.toLowerCase();r==="input"&&_n.test(e.type)?n.checked=e.checked:(r==="input"||r==="textarea")&&(n.defaultValue=e.defaultValue)}function pn(e,n,r,s){n=he(n);var u,f,l,v,p,E,B=0,j=e.length,R=j-1,V=n[0],se=y(V);if(se||j>1&&typeof V=="string"&&!A.checkClone&&fo.test(V))return e.each(function(Ae){var Te=e.eq(Ae);se&&(n[0]=V.call(this,Ae,Te.html())),pn(Te,n,r,s)});if(j&&(u=rr(n,e[0].ownerDocument,!1,e,s),f=u.firstChild,u.childNodes.length===1&&(u=f),f||s)){for(l=o.map(mt(u,"script"),co),v=l.length;B<j;B++)p=u,B!==R&&(p=o.clone(p,!0,!0),v&&o.merge(l,mt(p,"script"))),r.call(e[B],p,B);if(v)for(E=l[l.length-1].ownerDocument,o.map(l,ho),B=0;B<v;B++)p=l[B],ir.test(p.type||"")&&!ie.access(p,"globalEval")&&o.contains(E,p)&&(p.src&&(p.type||"").toLowerCase()!=="module"?o._evalUrl&&!p.noModule&&o._evalUrl(p.src,{nonce:p.nonce||p.getAttribute("nonce")},E):g(p.textContent.replace(lo,""),p,E))}return e}function ur(e,n,r){for(var s,u=n?o.filter(n,e):e,f=0;(s=u[f])!=null;f++)!r&&s.nodeType===1&&o.cleanData(mt(s)),s.parentNode&&(r&&nn(s)&&oi(mt(s,"script")),s.parentNode.removeChild(s));return e}o.extend({htmlPrefilter:function(e){return e},clone:function(e,n,r){var s,u,f,l,v=e.cloneNode(!0),p=nn(e);if(!A.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!o.isXMLDoc(e))for(l=mt(v),f=mt(e),s=0,u=f.length;s<u;s++)Hr(f[s],l[s]);if(n)if(r)for(f=f||mt(e),l=l||mt(v),s=0,u=f.length;s<u;s++)ar(f[s],l[s]);else ar(e,v);return l=mt(v,"script"),l.length>0&&oi(l,!p&&mt(e,"script")),v},cleanData:function(e){for(var n,r,s,u=o.event.special,f=0;(r=e[f])!==void 0;f++)if($t(r)){if(n=r[ie.expando]){if(n.events)for(s in n.events)u[s]?o.event.remove(r,s):o.removeEvent(r,s,n.handle);r[ie.expando]=void 0}r[ut.expando]&&(r[ut.expando]=void 0)}}}),o.fn.extend({detach:function(e){return ur(this,e,!0)},remove:function(e){return ur(this,e)},text:function(e){return St(this,function(n){return n===void 0?o.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,e,arguments.length)},append:function(){return pn(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var n=sr(this,e);n.appendChild(e)}})},prepend:function(){return pn(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var n=sr(this,e);n.insertBefore(e,n.firstChild)}})},before:function(){return pn(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return pn(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,n=0;(e=this[n])!=null;n++)e.nodeType===1&&(o.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,n){return e=e??!1,n=n??e,this.map(function(){return o.clone(this,e,n)})},html:function(e){return St(this,function(n){var r=this[0]||{},s=0,u=this.length;if(n===void 0&&r.nodeType===1)return r.innerHTML;if(typeof n=="string"&&!uo.test(n)&&!Ct[(nr.exec(n)||["",""])[1].toLowerCase()]){n=o.htmlPrefilter(n);try{for(;s<u;s++)r=this[s]||{},r.nodeType===1&&(o.cleanData(mt(r,!1)),r.innerHTML=n);r=0}catch{}}r&&this.empty().append(n)},null,e,arguments.length)},replaceWith:function(){var e=[];return pn(this,arguments,function(n){var r=this.parentNode;o.inArray(this,e)<0&&(o.cleanData(mt(this)),r&&r.replaceChild(n,this))},e)}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,n){o.fn[e]=function(r){for(var s,u=[],f=o(r),l=f.length-1,v=0;v<=l;v++)s=v===l?this:this.clone(!0),o(f[v])[n](s),Ee.apply(u,s.get());return this.pushStack(u)}});var mi=new RegExp("^("+vi+")(?!px)[a-z%]+$","i"),yi=/^--/,Xn=function(e){var n=e.ownerDocument.defaultView;return(!n||!n.opener)&&(n=C),n.getComputedStyle(e)},fr=function(e,n,r){var s,u,f={};for(u in n)f[u]=e.style[u],e.style[u]=n[u];s=r.call(e);for(u in n)e.style[u]=f[u];return s},Bi=new RegExp(Ot.join("|"),"i");(function(){function e(){if(E){p.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",E.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Wt.appendChild(p).appendChild(E);var B=C.getComputedStyle(E);r=B.top!=="1%",v=n(B.marginLeft)===12,E.style.right="60%",f=n(B.right)===36,s=n(B.width)===36,E.style.position="absolute",u=n(E.offsetWidth/3)===12,Wt.removeChild(p),E=null}}function n(B){return Math.round(parseFloat(B))}var r,s,u,f,l,v,p=b.createElement("div"),E=b.createElement("div");E.style&&(E.style.backgroundClip="content-box",E.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle=E.style.backgroundClip==="content-box",o.extend(A,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),f},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),v},scrollboxSize:function(){return e(),u},reliableTrDimensions:function(){var B,j,R,V;return l==null&&(B=b.createElement("table"),j=b.createElement("tr"),R=b.createElement("div"),B.style.cssText="position:absolute;left:-11111px;border-collapse:separate",j.style.cssText="box-sizing:content-box;border:1px solid",j.style.height="1px",R.style.height="9px",R.style.display="block",Wt.appendChild(B).appendChild(j).appendChild(R),V=C.getComputedStyle(j),l=parseInt(V.height,10)+parseInt(V.borderTopWidth,10)+parseInt(V.borderBottomWidth,10)===j.offsetHeight,Wt.removeChild(B)),l}}))})();function Rn(e,n,r){var s,u,f,l,v=yi.test(n),p=e.style;return r=r||Xn(e),r&&(l=r.getPropertyValue(n)||r[n],v&&l&&(l=l.replace(Tt,"$1")||void 0),l===""&&!nn(e)&&(l=o.style(e,n)),!A.pixelBoxStyles()&&mi.test(l)&&Bi.test(n)&&(s=p.width,u=p.minWidth,f=p.maxWidth,p.minWidth=p.maxWidth=p.width=l,l=r.width,p.width=s,p.minWidth=u,p.maxWidth=f)),l!==void 0?l+"":l}function si(e,n){return{get:function(){if(e()){delete this.get;return}return(this.get=n).apply(this,arguments)}}}var lr=["Webkit","Moz","ms"],cr=b.createElement("div").style,hr={};function Br(e){for(var n=e[0].toUpperCase()+e.slice(1),r=lr.length;r--;)if(e=lr[r]+n,e in cr)return e}function ai(e){var n=o.cssProps[e]||hr[e];return n||(e in cr?e:hr[e]=Br(e)||e)}var Fr=/^(none|table(?!-c[ea]).+)/,po={position:"absolute",visibility:"hidden",display:"block"},dr={letterSpacing:"0",fontWeight:"400"};function pr(e,n,r){var s=hn.exec(n);return s?Math.max(0,s[2]-(r||0))+(s[3]||"px"):n}function bi(e,n,r,s,u,f){var l=n==="width"?1:0,v=0,p=0,E=0;if(r===(s?"border":"content"))return 0;for(;l<4;l+=2)r==="margin"&&(E+=o.css(e,r+Ot[l],!0,u)),s?(r==="content"&&(p-=o.css(e,"padding"+Ot[l],!0,u)),r!=="margin"&&(p-=o.css(e,"border"+Ot[l]+"Width",!0,u))):(p+=o.css(e,"padding"+Ot[l],!0,u),r!=="padding"?p+=o.css(e,"border"+Ot[l]+"Width",!0,u):v+=o.css(e,"border"+Ot[l]+"Width",!0,u));return!s&&f>=0&&(p+=Math.max(0,Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-f-p-v-.5))||0),p+E}function Fi(e,n,r){var s=Xn(e),u=!A.boxSizingReliable()||r,f=u&&o.css(e,"boxSizing",!1,s)==="border-box",l=f,v=Rn(e,n,s),p="offset"+n[0].toUpperCase()+n.slice(1);if(mi.test(v)){if(!r)return v;v="auto"}return(!A.boxSizingReliable()&&f||!A.reliableTrDimensions()&&J(e,"tr")||v==="auto"||!parseFloat(v)&&o.css(e,"display",!1,s)==="inline")&&e.getClientRects().length&&(f=o.css(e,"boxSizing",!1,s)==="border-box",l=p in e,l&&(v=e[p])),v=parseFloat(v)||0,v+bi(e,n,r||(f?"border":"content"),l,s,v)+"px"}o.extend({cssHooks:{opacity:{get:function(e,n){if(n){var r=Rn(e,"opacity");return r===""?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,n,r,s){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var u,f,l,v=bt(n),p=yi.test(n),E=e.style;if(p||(n=ai(v)),l=o.cssHooks[n]||o.cssHooks[v],r!==void 0){if(f=typeof r,f==="string"&&(u=hn.exec(r))&&u[1]&&(r=er(e,n,u),f="number"),r==null||r!==r)return;f==="number"&&!p&&(r+=u&&u[3]||(o.cssNumber[v]?"":"px")),!A.clearCloneStyle&&r===""&&n.indexOf("background")===0&&(E[n]="inherit"),(!l||!("set"in l)||(r=l.set(e,r,s))!==void 0)&&(p?E.setProperty(n,r):E[n]=r)}else return l&&"get"in l&&(u=l.get(e,!1,s))!==void 0?u:E[n]}},css:function(e,n,r,s){var u,f,l,v=bt(n),p=yi.test(n);return p||(n=ai(v)),l=o.cssHooks[n]||o.cssHooks[v],l&&"get"in l&&(u=l.get(e,!0,r)),u===void 0&&(u=Rn(e,n,s)),u==="normal"&&n in dr&&(u=dr[n]),r===""||r?(f=parseFloat(u),r===!0||isFinite(f)?f||0:u):u}}),o.each(["height","width"],function(e,n){o.cssHooks[n]={get:function(r,s,u){if(s)return Fr.test(o.css(r,"display"))&&(!r.getClientRects().length||!r.getBoundingClientRect().width)?fr(r,po,function(){return Fi(r,n,u)}):Fi(r,n,u)},set:function(r,s,u){var f,l=Xn(r),v=!A.scrollboxSize()&&l.position==="absolute",p=v||u,E=p&&o.css(r,"boxSizing",!1,l)==="border-box",B=u?bi(r,n,u,E,l):0;return E&&v&&(B-=Math.ceil(r["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(l[n])-bi(r,n,"border",!1,l)-.5)),B&&(f=hn.exec(s))&&(f[3]||"px")!=="px"&&(r.style[n]=s,s=o.css(r,n)),pr(r,s,B)}}}),o.cssHooks.marginLeft=si(A.reliableMarginLeft,function(e,n){if(n)return(parseFloat(Rn(e,"marginLeft"))||e.getBoundingClientRect().left-fr(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),o.each({margin:"",padding:"",border:"Width"},function(e,n){o.cssHooks[e+n]={expand:function(r){for(var s=0,u={},f=typeof r=="string"?r.split(" "):[r];s<4;s++)u[e+Ot[s]+n]=f[s]||f[s-2]||f[0];return u}},e!=="margin"&&(o.cssHooks[e+n].set=pr)}),o.fn.extend({css:function(e,n){return St(this,function(r,s,u){var f,l,v={},p=0;if(Array.isArray(s)){for(f=Xn(r),l=s.length;p<l;p++)v[s[p]]=o.css(r,s[p],!1,f);return v}return u!==void 0?o.style(r,s,u):o.css(r,s)},e,n,arguments.length>1)}});function gt(e,n,r,s,u){return new gt.prototype.init(e,n,r,s,u)}o.Tween=gt,gt.prototype={constructor:gt,init:function(e,n,r,s,u,f){this.elem=e,this.prop=r,this.easing=u||o.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=s,this.unit=f||(o.cssNumber[r]?"":"px")},cur:function(){var e=gt.propHooks[this.prop];return e&&e.get?e.get(this):gt.propHooks._default.get(this)},run:function(e){var n,r=gt.propHooks[this.prop];return this.options.duration?this.pos=n=o.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=n=e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):gt.propHooks._default.set(this),this}},gt.prototype.init.prototype=gt.prototype,gt.propHooks={_default:{get:function(e){var n;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(n=o.css(e.elem,e.prop,""),!n||n==="auto"?0:n)},set:function(e){o.fx.step[e.prop]?o.fx.step[e.prop](e):e.elem.nodeType===1&&(o.cssHooks[e.prop]||e.elem.style[ai(e.prop)]!=null)?o.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},gt.propHooks.scrollTop=gt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},o.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},o.fx=gt.prototype.init,o.fx.step={};var un,Nn,go=/^(?:toggle|show|hide)$/,$r=/queueHooks$/;function Fn(){Nn&&(b.hidden===!1&&C.requestAnimationFrame?C.requestAnimationFrame(Fn):C.setTimeout(Fn,o.fx.interval),o.fx.tick())}function $i(){return C.setTimeout(function(){un=void 0}),un=Date.now()}function Yn(e,n){var r,s=0,u={height:e};for(n=n?1:0;s<4;s+=2-n)r=Ot[s],u["margin"+r]=u["padding"+r]=e;return n&&(u.opacity=u.width=e),u}function ji(e,n,r){for(var s,u=(At.tweeners[n]||[]).concat(At.tweeners["*"]),f=0,l=u.length;f<l;f++)if(s=u[f].call(r,n,e))return s}function jr(e,n,r){var s,u,f,l,v,p,E,B,j="width"in n||"height"in n,R=this,V={},se=e.style,Ae=e.nodeType&&In(e),Te=ie.get(e,"fxshow");r.queue||(l=o._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,v=l.empty.fire,l.empty.fire=function(){l.unqueued||v()}),l.unqueued++,R.always(function(){R.always(function(){l.unqueued--,o.queue(e,"fx").length||l.empty.fire()})}));for(s in n)if(u=n[s],go.test(u)){if(delete n[s],f=f||u==="toggle",u===(Ae?"hide":"show"))if(u==="show"&&Te&&Te[s]!==void 0)Ae=!0;else continue;V[s]=Te&&Te[s]||o.style(e,s)}if(p=!o.isEmptyObject(n),!(!p&&o.isEmptyObject(V))){j&&e.nodeType===1&&(r.overflow=[se.overflow,se.overflowX,se.overflowY],E=Te&&Te.display,E==null&&(E=ie.get(e,"display")),B=o.css(e,"display"),B==="none"&&(E?B=E:(an([e],!0),E=e.style.display||E,B=o.css(e,"display"),an([e]))),(B==="inline"||B==="inline-block"&&E!=null)&&o.css(e,"float")==="none"&&(p||(R.done(function(){se.display=E}),E==null&&(B=se.display,E=B==="none"?"":B)),se.display="inline-block")),r.overflow&&(se.overflow="hidden",R.always(function(){se.overflow=r.overflow[0],se.overflowX=r.overflow[1],se.overflowY=r.overflow[2]})),p=!1;for(s in V)p||(Te?"hidden"in Te&&(Ae=Te.hidden):Te=ie.access(e,"fxshow",{display:E}),f&&(Te.hidden=!Ae),Ae&&an([e],!0),R.done(function(){Ae||an([e]),ie.remove(e,"fxshow");for(s in V)o.style(e,s,V[s])})),p=ji(Ae?Te[s]:0,s,R),s in Te||(Te[s]=p.start,Ae&&(p.end=p.start,p.start=0))}}function gr(e,n){var r,s,u,f,l;for(r in e)if(s=bt(r),u=n[s],f=e[r],Array.isArray(f)&&(u=f[1],f=e[r]=f[0]),r!==s&&(e[s]=f,delete e[r]),l=o.cssHooks[s],l&&"expand"in l){f=l.expand(f),delete e[s];for(r in f)r in e||(e[r]=f[r],n[r]=u)}else n[s]=u}function At(e,n,r){var s,u,f=0,l=At.prefilters.length,v=o.Deferred().always(function(){delete p.elem}),p=function(){if(u)return!1;for(var j=un||$i(),R=Math.max(0,E.startTime+E.duration-j),V=R/E.duration||0,se=1-V,Ae=0,Te=E.tweens.length;Ae<Te;Ae++)E.tweens[Ae].run(se);return v.notifyWith(e,[E,se,R]),se<1&&Te?R:(Te||v.notifyWith(e,[E,1,0]),v.resolveWith(e,[E]),!1)},E=v.promise({elem:e,props:o.extend({},n),opts:o.extend(!0,{specialEasing:{},easing:o.easing._default},r),originalProperties:n,originalOptions:r,startTime:un||$i(),duration:r.duration,tweens:[],createTween:function(j,R){var V=o.Tween(e,E.opts,j,R,E.opts.specialEasing[j]||E.opts.easing);return E.tweens.push(V),V},stop:function(j){var R=0,V=j?E.tweens.length:0;if(u)return this;for(u=!0;R<V;R++)E.tweens[R].run(1);return j?(v.notifyWith(e,[E,1,0]),v.resolveWith(e,[E,j])):v.rejectWith(e,[E,j]),this}}),B=E.props;for(gr(B,E.opts.specialEasing);f<l;f++)if(s=At.prefilters[f].call(E,e,B,E.opts),s)return y(s.stop)&&(o._queueHooks(E.elem,E.opts.queue).stop=s.stop.bind(s)),s;return o.map(B,ji,E),y(E.opts.start)&&E.opts.start.call(e,E),E.progress(E.opts.progress).done(E.opts.done,E.opts.complete).fail(E.opts.fail).always(E.opts.always),o.fx.timer(o.extend(p,{elem:e,anim:E,queue:E.opts.queue})),E}o.Animation=o.extend(At,{tweeners:{"*":[function(e,n){var r=this.createTween(e,n);return er(r.elem,e,hn.exec(n),r),r}]},tweener:function(e,n){y(e)?(n=e,e=["*"]):e=e.match(Fe);for(var r,s=0,u=e.length;s<u;s++)r=e[s],At.tweeners[r]=At.tweeners[r]||[],At.tweeners[r].unshift(n)},prefilters:[jr],prefilter:function(e,n){n?At.prefilters.unshift(e):At.prefilters.push(e)}}),o.speed=function(e,n,r){var s=e&&typeof e=="object"?o.extend({},e):{complete:r||!r&&n||y(e)&&e,duration:e,easing:r&&n||n&&!y(n)&&n};return o.fx.off?s.duration=0:typeof s.duration!="number"&&(s.duration in o.fx.speeds?s.duration=o.fx.speeds[s.duration]:s.duration=o.fx.speeds._default),(s.queue==null||s.queue===!0)&&(s.queue="fx"),s.old=s.complete,s.complete=function(){y(s.old)&&s.old.call(this),s.queue&&o.dequeue(this,s.queue)},s},o.fn.extend({fadeTo:function(e,n,r,s){return this.filter(In).css("opacity",0).show().end().animate({opacity:n},e,r,s)},animate:function(e,n,r,s){var u=o.isEmptyObject(e),f=o.speed(n,r,s),l=function(){var v=At(this,o.extend({},e),f);(u||ie.get(this,"finish"))&&v.stop(!0)};return l.finish=l,u||f.queue===!1?this.each(l):this.queue(f.queue,l)},stop:function(e,n,r){var s=function(u){var f=u.stop;delete u.stop,f(r)};return typeof e!="string"&&(r=n,n=e,e=void 0),n&&this.queue(e||"fx",[]),this.each(function(){var u=!0,f=e!=null&&e+"queueHooks",l=o.timers,v=ie.get(this);if(f)v[f]&&v[f].stop&&s(v[f]);else for(f in v)v[f]&&v[f].stop&&$r.test(f)&&s(v[f]);for(f=l.length;f--;)l[f].elem===this&&(e==null||l[f].queue===e)&&(l[f].anim.stop(r),u=!1,l.splice(f,1));(u||!r)&&o.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var n,r=ie.get(this),s=r[e+"queue"],u=r[e+"queueHooks"],f=o.timers,l=s?s.length:0;for(r.finish=!0,o.queue(this,e,[]),u&&u.stop&&u.stop.call(this,!0),n=f.length;n--;)f[n].elem===this&&f[n].queue===e&&(f[n].anim.stop(!0),f.splice(n,1));for(n=0;n<l;n++)s[n]&&s[n].finish&&s[n].finish.call(this);delete r.finish})}}),o.each(["toggle","show","hide"],function(e,n){var r=o.fn[n];o.fn[n]=function(s,u,f){return s==null||typeof s=="boolean"?r.apply(this,arguments):this.animate(Yn(n,!0),s,u,f)}}),o.each({slideDown:Yn("show"),slideUp:Yn("hide"),slideToggle:Yn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){o.fn[e]=function(r,s,u){return this.animate(n,r,s,u)}}),o.timers=[],o.fx.tick=function(){var e,n=0,r=o.timers;for(un=Date.now();n<r.length;n++)e=r[n],!e()&&r[n]===e&&r.splice(n--,1);r.length||o.fx.stop(),un=void 0},o.fx.timer=function(e){o.timers.push(e),o.fx.start()},o.fx.interval=13,o.fx.start=function(){Nn||(Nn=!0,Fn())},o.fx.stop=function(){Nn=null},o.fx.speeds={slow:600,fast:200,_default:400},o.fn.delay=function(e,n){return e=o.fx&&o.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(r,s){var u=C.setTimeout(r,e);s.stop=function(){C.clearTimeout(u)}})},(function(){var e=b.createElement("input"),n=b.createElement("select"),r=n.appendChild(b.createElement("option"));e.type="checkbox",A.checkOn=e.value!=="",A.optSelected=r.selected,e=b.createElement("input"),e.value="t",e.type="radio",A.radioValue=e.value==="t"})();var Ui,gn=o.expr.attrHandle;o.fn.extend({attr:function(e,n){return St(this,o.attr,e,n,arguments.length>1)},removeAttr:function(e){return this.each(function(){o.removeAttr(this,e)})}}),o.extend({attr:function(e,n,r){var s,u,f=e.nodeType;if(!(f===3||f===8||f===2)){if(typeof e.getAttribute>"u")return o.prop(e,n,r);if((f!==1||!o.isXMLDoc(e))&&(u=o.attrHooks[n.toLowerCase()]||(o.expr.match.bool.test(n)?Ui:void 0)),r!==void 0){if(r===null){o.removeAttr(e,n);return}return u&&"set"in u&&(s=u.set(e,r,n))!==void 0?s:(e.setAttribute(n,r+""),r)}return u&&"get"in u&&(s=u.get(e,n))!==null?s:(s=o.find.attr(e,n),s??void 0)}},attrHooks:{type:{set:function(e,n){if(!A.radioValue&&n==="radio"&&J(e,"input")){var r=e.value;return e.setAttribute("type",n),r&&(e.value=r),n}}}},removeAttr:function(e,n){var r,s=0,u=n&&n.match(Fe);if(u&&e.nodeType===1)for(;r=u[s++];)e.removeAttribute(r)}}),Ui={set:function(e,n,r){return n===!1?o.removeAttr(e,r):e.setAttribute(r,r),r}},o.each(o.expr.match.bool.source.match(/\w+/g),function(e,n){var r=gn[n]||o.find.attr;gn[n]=function(s,u,f){var l,v,p=u.toLowerCase();return f||(v=gn[p],gn[p]=l,l=r(s,u,f)!=null?p:null,gn[p]=v),l}});var vr=/^(?:input|select|textarea|button)$/i,ui=/^(?:a|area)$/i;o.fn.extend({prop:function(e,n){return St(this,o.prop,e,n,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[o.propFix[e]||e]})}}),o.extend({prop:function(e,n,r){var s,u,f=e.nodeType;if(!(f===3||f===8||f===2))return(f!==1||!o.isXMLDoc(e))&&(n=o.propFix[n]||n,u=o.propHooks[n]),r!==void 0?u&&"set"in u&&(s=u.set(e,r,n))!==void 0?s:e[n]=r:u&&"get"in u&&(s=u.get(e,n))!==null?s:e[n]},propHooks:{tabIndex:{get:function(e){var n=o.find.attr(e,"tabindex");return n?parseInt(n,10):vr.test(e.nodeName)||ui.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(o.propHooks.selected={get:function(e){var n=e.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(e){var n=e.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});function Qt(e){var n=e.match(Fe)||[];return n.join(" ")}function Xt(e){return e.getAttribute&&e.getAttribute("class")||""}function wi(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Fe)||[]:[]}o.fn.extend({addClass:function(e){var n,r,s,u,f,l;return y(e)?this.each(function(v){o(this).addClass(e.call(this,v,Xt(this)))}):(n=wi(e),n.length?this.each(function(){if(s=Xt(this),r=this.nodeType===1&&" "+Qt(s)+" ",r){for(f=0;f<n.length;f++)u=n[f],r.indexOf(" "+u+" ")<0&&(r+=u+" ");l=Qt(r),s!==l&&this.setAttribute("class",l)}}):this)},removeClass:function(e){var n,r,s,u,f,l;return y(e)?this.each(function(v){o(this).removeClass(e.call(this,v,Xt(this)))}):arguments.length?(n=wi(e),n.length?this.each(function(){if(s=Xt(this),r=this.nodeType===1&&" "+Qt(s)+" ",r){for(f=0;f<n.length;f++)for(u=n[f];r.indexOf(" "+u+" ")>-1;)r=r.replace(" "+u+" "," ");l=Qt(r),s!==l&&this.setAttribute("class",l)}}):this):this.attr("class","")},toggleClass:function(e,n){var r,s,u,f,l=typeof e,v=l==="string"||Array.isArray(e);return y(e)?this.each(function(p){o(this).toggleClass(e.call(this,p,Xt(this),n),n)}):typeof n=="boolean"&&v?n?this.addClass(e):this.removeClass(e):(r=wi(e),this.each(function(){if(v)for(f=o(this),u=0;u<r.length;u++)s=r[u],f.hasClass(s)?f.removeClass(s):f.addClass(s);else(e===void 0||l==="boolean")&&(s=Xt(this),s&&ie.set(this,"__className__",s),this.setAttribute&&this.setAttribute("class",s||e===!1?"":ie.get(this,"__className__")||""))}))},hasClass:function(e){var n,r,s=0;for(n=" "+e+" ";r=this[s++];)if(r.nodeType===1&&(" "+Qt(Xt(r))+" ").indexOf(n)>-1)return!0;return!1}});var Ur=/\r/g;o.fn.extend({val:function(e){var n,r,s,u=this[0];return arguments.length?(s=y(e),this.each(function(f){var l;this.nodeType===1&&(s?l=e.call(this,f,o(this).val()):l=e,l==null?l="":typeof l=="number"?l+="":Array.isArray(l)&&(l=o.map(l,function(v){return v==null?"":v+""})),n=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],(!n||!("set"in n)||n.set(this,l,"value")===void 0)&&(this.value=l))})):u?(n=o.valHooks[u.type]||o.valHooks[u.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(u,"value"))!==void 0?r:(r=u.value,typeof r=="string"?r.replace(Ur,""):r??"")):void 0}}),o.extend({valHooks:{option:{get:function(e){var n=o.find.attr(e,"value");return n??Qt(o.text(e))}},select:{get:function(e){var n,r,s,u=e.options,f=e.selectedIndex,l=e.type==="select-one",v=l?null:[],p=l?f+1:u.length;for(f<0?s=p:s=l?f:0;s<p;s++)if(r=u[s],(r.selected||s===f)&&!r.disabled&&(!r.parentNode.disabled||!J(r.parentNode,"optgroup"))){if(n=o(r).val(),l)return n;v.push(n)}return v},set:function(e,n){for(var r,s,u=e.options,f=o.makeArray(n),l=u.length;l--;)s=u[l],(s.selected=o.inArray(o.valHooks.option.get(s),f)>-1)&&(r=!0);return r||(e.selectedIndex=-1),f}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(e,n){if(Array.isArray(n))return e.checked=o.inArray(o(e).val(),n)>-1}},A.checkOn||(o.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Tn=C.location,Wi={guid:Date.now()},fi=/\?/;o.parseXML=function(e){var n,r;if(!e||typeof e!="string")return null;try{n=new C.DOMParser().parseFromString(e,"text/xml")}catch{}return r=n&&n.getElementsByTagName("parsererror")[0],(!n||r)&&o.error("Invalid XML: "+(r?o.map(r.childNodes,function(s){return s.textContent}).join(`
24
+ `+window.GOVUK.sessionDialog.warningTextExtra;C.html(D+" "+k),xe%20===0&&(!W&&!Z?(c.text(y+k),W=!0):c.text(y)),window.GOVUK.sessionDialog.addTimer(Ee,20)}})()},clearTimers:function(){for(let C=0;C<window.GOVUK.sessionDialog.timers.length;C++)clearInterval(window.GOVUK.sessionDialog.timers[C])},refreshSession:function(){$.get("").done(function(){window.GOVUK.sessionDialog.timeSessionRefreshed=new Date,window.GOVUK.sessionDialog.controller()}).fail(function(){console.error("Session refresh failed.")})},redirect:function(){window.location=window.GOVUK.sessionDialog.timeoutRedirectUrl},addTimer:function(C,c){window.GOVUK.sessionDialog.timers.push(setInterval(C,c*1e3))},secondsSinceRefresh:function(){return Math.round(Math.abs((window.GOVUK.sessionDialog.timeSessionRefreshed-new Date)/1e3))},secondsUntilSessionTimeout:function(){return window.GOVUK.sessionDialog.secondsSessionTimeout-window.GOVUK.sessionDialog.secondsSinceRefresh()},secondsUntilTimeoutWarning:function(){return window.GOVUK.sessionDialog.secondsUntilSessionTimeout()-window.GOVUK.sessionDialog.secondsTimeoutWarning},controller:function(){window.GOVUK.sessionDialog.clearTimers();const C=window.GOVUK.sessionDialog.secondsUntilSessionTimeout();C<=0?window.GOVUK.sessionDialog.redirect():C<=window.GOVUK.sessionDialog.secondsTimeoutWarning?(window.GOVUK.sessionDialog.openDialog(),window.GOVUK.sessionDialog.startCountdown(),window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller,window.GOVUK.sessionDialog.secondsUntilSessionTimeout())):window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller,window.GOVUK.sessionDialog.secondsUntilTimeoutWarning())},init:function(C){if($.extend(window.GOVUK.sessionDialog,C),window.GOVUK.sessionDialog.el&&window.GOVUK.sessionDialog.isConfigured()){if(typeof HTMLDialogElement!="function")try{return window.dialogPolyfill.registerDialog(window.GOVUK.sessionDialog.el),!0}catch{return window.GOVUK.sessionDialog.$fallBackElement.classList.add("govuk-!-display-block"),!1}return window.GOVUK.sessionDialog.bindUIElements(),window.GOVUK.sessionDialog.controller(),!0}return!1}},window.GOVUK.sessionDialog.init(),Ga}var nu;function Cl(){if(nu)return Oa;nu=1;var $=al(),C=$.helpers,c=$.progressiveReveal,W=$.formFocus,Z=$.characterCount,ee=$.validation,he=fl();he.initAll(),window.GOVUK=he,ll(),cl();var Ee=hl();return Tl(),$.detailsSummary(),C.documentReady(c),C.documentReady(W),C.documentReady(Ee.initialiseCookieBanner),C.documentReady(Ee.initialiseCookiePage),C.documentReady(Ee.onLoad),C.documentReady(Z),C.documentReady(ee),Oa}var Ko={exports:{}};var Sl=Ko.exports,iu;function Go(){return iu||(iu=1,(function($){(function(C,c){$.exports=C.document?c(C,!0):function(W){if(!W.document)throw new Error("jQuery requires a window with a document");return c(W)}})(typeof window<"u"?window:Sl,function(C,c){var W=[],Z=Object.getPrototypeOf,ee=W.slice,he=W.flat?function(e){return W.flat.call(e)}:function(e){return W.concat.apply([],e)},Ee=W.push,ye=W.indexOf,we={},qe=we.toString,xe=we.hasOwnProperty,_e=xe.toString,D=_e.call(Object),A={},y=function(n){return typeof n=="function"&&typeof n.nodeType!="number"&&typeof n.item!="function"},k=function(n){return n!=null&&n===n.window},b=C.document,T={type:!0,src:!0,nonce:!0,noModule:!0};function g(e,n,r){r=r||b;var s,u,f=r.createElement("script");if(f.text=e,n)for(s in T)u=n[s]||n.getAttribute&&n.getAttribute(s),u&&f.setAttribute(s,u);r.head.appendChild(f).parentNode.removeChild(f)}function S(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?we[qe.call(e)]||"object":typeof e}var H="3.7.1",K=/HTML$/i,o=function(e,n){return new o.fn.init(e,n)};o.fn=o.prototype={jquery:H,constructor:o,length:0,toArray:function(){return ee.call(this)},get:function(e){return e==null?ee.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=o.merge(this.constructor(),e);return n.prevObject=this,n},each:function(e){return o.each(this,e)},map:function(e){return this.pushStack(o.map(this,function(n,r){return e.call(n,r,n)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(o.grep(this,function(e,n){return(n+1)%2}))},odd:function(){return this.pushStack(o.grep(this,function(e,n){return n%2}))},eq:function(e){var n=this.length,r=+e+(e<0?n:0);return this.pushStack(r>=0&&r<n?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:Ee,sort:W.sort,splice:W.splice},o.extend=o.fn.extend=function(){var e,n,r,s,u,f,l=arguments[0]||{},v=1,p=arguments.length,E=!1;for(typeof l=="boolean"&&(E=l,l=arguments[v]||{},v++),typeof l!="object"&&!y(l)&&(l={}),v===p&&(l=this,v--);v<p;v++)if((e=arguments[v])!=null)for(n in e)s=e[n],!(n==="__proto__"||l===s)&&(E&&s&&(o.isPlainObject(s)||(u=Array.isArray(s)))?(r=l[n],u&&!Array.isArray(r)?f=[]:!u&&!o.isPlainObject(r)?f={}:f=r,u=!1,l[n]=o.extend(E,f,s)):s!==void 0&&(l[n]=s));return l},o.extend({expando:"jQuery"+(H+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var n,r;return!e||qe.call(e)!=="[object Object]"?!1:(n=Z(e),n?(r=xe.call(n,"constructor")&&n.constructor,typeof r=="function"&&_e.call(r)===D):!0)},isEmptyObject:function(e){var n;for(n in e)return!1;return!0},globalEval:function(e,n,r){g(e,{nonce:n&&n.nonce},r)},each:function(e,n){var r,s=0;if(Y(e))for(r=e.length;s<r&&n.call(e[s],s,e[s])!==!1;s++);else for(s in e)if(n.call(e[s],s,e[s])===!1)break;return e},text:function(e){var n,r="",s=0,u=e.nodeType;if(!u)for(;n=e[s++];)r+=o.text(n);return u===1||u===11?e.textContent:u===9?e.documentElement.textContent:u===3||u===4?e.nodeValue:r},makeArray:function(e,n){var r=n||[];return e!=null&&(Y(Object(e))?o.merge(r,typeof e=="string"?[e]:e):Ee.call(r,e)),r},inArray:function(e,n,r){return n==null?-1:ye.call(n,e,r)},isXMLDoc:function(e){var n=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!K.test(n||r&&r.nodeName||"HTML")},merge:function(e,n){for(var r=+n.length,s=0,u=e.length;s<r;s++)e[u++]=n[s];return e.length=u,e},grep:function(e,n,r){for(var s,u=[],f=0,l=e.length,v=!r;f<l;f++)s=!n(e[f],f),s!==v&&u.push(e[f]);return u},map:function(e,n,r){var s,u,f=0,l=[];if(Y(e))for(s=e.length;f<s;f++)u=n(e[f],f,r),u!=null&&l.push(u);else for(f in e)u=n(e[f],f,r),u!=null&&l.push(u);return he(l)},guid:1,support:A}),typeof Symbol=="function"&&(o.fn[Symbol.iterator]=W[Symbol.iterator]),o.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,n){we["[object "+n+"]"]=n.toLowerCase()});function Y(e){var n=!!e&&"length"in e&&e.length,r=S(e);return y(e)||k(e)?!1:r==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function J(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()}var fe=W.pop,Ie=W.sort,nt=W.splice,Ce="[\\x20\\t\\r\\n\\f]",Tt=new RegExp("^"+Ce+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ce+"+$","g");o.contains=function(e,n){var r=n&&n.parentNode;return e===r||!!(r&&r.nodeType===1&&(e.contains?e.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16))};var it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function On(e,n){return n?e==="\0"?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}o.escapeSelector=function(e){return(e+"").replace(it,On)};var m=b,N=Ee;(function(){var e,n,r,s,u,f=N,l,v,p,E,B,j=o.expando,R=0,V=0,se=$n(),Ae=$n(),Te=$n(),ot=$n(),Ve=function(d,_){return d===_&&(u=!0),0},It="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Rt="(?:\\\\[\\da-fA-F]{1,6}"+Ce+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ke="\\["+Ce+"*("+Rt+")(?:"+Ce+"*([*^$|!~]?=)"+Ce+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Rt+"))|)"+Ce+"*\\]",Yt=":("+Rt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ke+")*)|.*)\\)|)",Oe=new RegExp(Ce+"+","g"),$e=new RegExp("^"+Ce+"*,"+Ce+"*"),Mn=new RegExp("^"+Ce+"*([>+~]|"+Ce+")"+Ce+"*"),li=new RegExp(Ce+"|>"),Dt=new RegExp(Yt),mn=new RegExp("^"+Rt+"$"),kt={ID:new RegExp("^#("+Rt+")"),CLASS:new RegExp("^\\.("+Rt+")"),TAG:new RegExp("^("+Rt+"|[*])"),ATTR:new RegExp("^"+ke),PSEUDO:new RegExp("^"+Yt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ce+"*(even|odd|(([+-]|)(\\d*)n|)"+Ce+"*(?:([+-]|)"+Ce+"*(\\d+)|))"+Ce+"*\\)|)","i"),bool:new RegExp("^(?:"+It+")$","i"),needsContext:new RegExp("^"+Ce+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ce+"*((?:-\\d)?\\d*)"+Ce+"*\\)|)(?=[^-]|$)","i")},Ut=/^(?:input|select|textarea|button)$/i,Kt=/^h\d$/i,_t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Jn=/[+~]/,Ht=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ce+"?|\\\\([^\\r\\n\\f])","g"),Mt=function(d,_){var I="0x"+d.slice(1)-65536;return _||(I<0?String.fromCharCode(I+65536):String.fromCharCode(I>>10|55296,I&1023|56320))},on=function(){Gt()},Cr=Sn(function(d){return d.disabled===!0&&J(d,"fieldset")},{dir:"parentNode",next:"legend"});function Si(){try{return l.activeElement}catch{}}try{f.apply(W=ee.call(m.childNodes),m.childNodes),W[m.childNodes.length].nodeType}catch{f={apply:function(_,I){N.apply(_,ee.call(I))},call:function(_){N.apply(_,ee.call(arguments,1))}}}function Ne(d,_,I,M){var w,P,q,z,Q,de,ae,oe=_&&_.ownerDocument,Se=_?_.nodeType:9;if(I=I||[],typeof d!="string"||!d||Se!==1&&Se!==9&&Se!==11)return I;if(!M&&(Gt(_),_=_||l,p)){if(Se!==11&&(Q=_t.exec(d)))if(w=Q[1]){if(Se===9)if(q=_.getElementById(w)){if(q.id===w)return f.call(I,q),I}else return I;else if(oe&&(q=oe.getElementById(w))&&Ne.contains(_,q)&&q.id===w)return f.call(I,q),I}else{if(Q[2])return f.apply(I,_.getElementsByTagName(d)),I;if((w=Q[3])&&_.getElementsByClassName)return f.apply(I,_.getElementsByClassName(w)),I}if(!ot[d+" "]&&(!E||!E.test(d))){if(ae=d,oe=_,Se===1&&(li.test(d)||Mn.test(d))){for(oe=Jn.test(d)&&Ei(_.parentNode)||_,(oe!=_||!A.scope)&&((z=_.getAttribute("id"))?z=o.escapeSelector(z):_.setAttribute("id",z=j)),de=Cn(d),P=de.length;P--;)de[P]=(z?"#"+z:":scope")+" "+Jt(de[P]);ae=de.join(",")}try{return f.apply(I,oe.querySelectorAll(ae)),I}catch{ot(d,!0)}finally{z===j&&_.removeAttribute("id")}}}return Er(d.replace(Tt,"$1"),_,I,M)}function $n(){var d=[];function _(I,M){return d.push(I+" ")>n.cacheLength&&delete _[d.shift()],_[I+" "]=M}return _}function Lt(d){return d[j]=!0,d}function yn(d){var _=l.createElement("fieldset");try{return!!d(_)}catch{return!1}finally{_.parentNode&&_.parentNode.removeChild(_),_=null}}function Ao(d){return function(_){return J(_,"input")&&_.type===d}}function ko(d){return function(_){return(J(_,"input")||J(_,"button"))&&_.type===d}}function Sr(d){return function(_){return"form"in _?_.parentNode&&_.disabled===!1?"label"in _?"label"in _.parentNode?_.parentNode.disabled===d:_.disabled===d:_.isDisabled===d||_.isDisabled!==!d&&Cr(_)===d:_.disabled===d:"label"in _?_.disabled===d:!1}}function Pt(d){return Lt(function(_){return _=+_,Lt(function(I,M){for(var w,P=d([],I.length,_),q=P.length;q--;)I[w=P[q]]&&(I[w]=!(M[w]=I[w]))})})}function Ei(d){return d&&typeof d.getElementsByTagName<"u"&&d}function Gt(d){var _,I=d?d.ownerDocument||d:m;return I==l||I.nodeType!==9||!I.documentElement||(l=I,v=l.documentElement,p=!o.isXMLDoc(l),B=v.matches||v.webkitMatchesSelector||v.msMatchesSelector,v.msMatchesSelector&&m!=l&&(_=l.defaultView)&&_.top!==_&&_.addEventListener("unload",on),A.getById=yn(function(M){return v.appendChild(M).id=o.expando,!l.getElementsByName||!l.getElementsByName(o.expando).length}),A.disconnectedMatch=yn(function(M){return B.call(M,"*")}),A.scope=yn(function(){return l.querySelectorAll(":scope")}),A.cssHas=yn(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),A.getById?(n.filter.ID=function(M){var w=M.replace(Ht,Mt);return function(P){return P.getAttribute("id")===w}},n.find.ID=function(M,w){if(typeof w.getElementById<"u"&&p){var P=w.getElementById(M);return P?[P]:[]}}):(n.filter.ID=function(M){var w=M.replace(Ht,Mt);return function(P){var q=typeof P.getAttributeNode<"u"&&P.getAttributeNode("id");return q&&q.value===w}},n.find.ID=function(M,w){if(typeof w.getElementById<"u"&&p){var P,q,z,Q=w.getElementById(M);if(Q){if(P=Q.getAttributeNode("id"),P&&P.value===M)return[Q];for(z=w.getElementsByName(M),q=0;Q=z[q++];)if(P=Q.getAttributeNode("id"),P&&P.value===M)return[Q]}return[]}}),n.find.TAG=function(M,w){return typeof w.getElementsByTagName<"u"?w.getElementsByTagName(M):w.querySelectorAll(M)},n.find.CLASS=function(M,w){if(typeof w.getElementsByClassName<"u"&&p)return w.getElementsByClassName(M)},E=[],yn(function(M){var w;v.appendChild(M).innerHTML="<a id='"+j+"' href='' disabled='disabled'></a><select id='"+j+"-\r\\' disabled='disabled'><option selected=''></option></select>",M.querySelectorAll("[selected]").length||E.push("\\["+Ce+"*(?:value|"+It+")"),M.querySelectorAll("[id~="+j+"-]").length||E.push("~="),M.querySelectorAll("a#"+j+"+*").length||E.push(".#.+[+~]"),M.querySelectorAll(":checked").length||E.push(":checked"),w=l.createElement("input"),w.setAttribute("type","hidden"),M.appendChild(w).setAttribute("name","D"),v.appendChild(M).disabled=!0,M.querySelectorAll(":disabled").length!==2&&E.push(":enabled",":disabled"),w=l.createElement("input"),w.setAttribute("name",""),M.appendChild(w),M.querySelectorAll("[name='']").length||E.push("\\["+Ce+"*name"+Ce+"*="+Ce+`*(?:''|"")`)}),A.cssHas||E.push(":has"),E=E.length&&new RegExp(E.join("|")),Ve=function(M,w){if(M===w)return u=!0,0;var P=!M.compareDocumentPosition-!w.compareDocumentPosition;return P||(P=(M.ownerDocument||M)==(w.ownerDocument||w)?M.compareDocumentPosition(w):1,P&1||!A.sortDetached&&w.compareDocumentPosition(M)===P?M===l||M.ownerDocument==m&&Ne.contains(m,M)?-1:w===l||w.ownerDocument==m&&Ne.contains(m,w)?1:s?ye.call(s,M)-ye.call(s,w):0:P&4?-1:1)}),l}Ne.matches=function(d,_){return Ne(d,null,null,_)},Ne.matchesSelector=function(d,_){if(Gt(d),p&&!ot[_+" "]&&(!E||!E.test(_)))try{var I=B.call(d,_);if(I||A.disconnectedMatch||d.document&&d.document.nodeType!==11)return I}catch{ot(_,!0)}return Ne(_,l,null,[d]).length>0},Ne.contains=function(d,_){return(d.ownerDocument||d)!=l&&Gt(d),o.contains(d,_)},Ne.attr=function(d,_){(d.ownerDocument||d)!=l&&Gt(d);var I=n.attrHandle[_.toLowerCase()],M=I&&xe.call(n.attrHandle,_.toLowerCase())?I(d,_,!p):void 0;return M!==void 0?M:d.getAttribute(_)},Ne.error=function(d){throw new Error("Syntax error, unrecognized expression: "+d)},o.uniqueSort=function(d){var _,I=[],M=0,w=0;if(u=!A.sortStable,s=!A.sortStable&&ee.call(d,0),Ie.call(d,Ve),u){for(;_=d[w++];)_===d[w]&&(M=I.push(w));for(;M--;)nt.call(d,I[M],1)}return s=null,d},o.fn.uniqueSort=function(){return this.pushStack(o.uniqueSort(ee.apply(this)))},n=o.expr={cacheLength:50,createPseudo:Lt,match:kt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(d){return d[1]=d[1].replace(Ht,Mt),d[3]=(d[3]||d[4]||d[5]||"").replace(Ht,Mt),d[2]==="~="&&(d[3]=" "+d[3]+" "),d.slice(0,4)},CHILD:function(d){return d[1]=d[1].toLowerCase(),d[1].slice(0,3)==="nth"?(d[3]||Ne.error(d[0]),d[4]=+(d[4]?d[5]+(d[6]||1):2*(d[3]==="even"||d[3]==="odd")),d[5]=+(d[7]+d[8]||d[3]==="odd")):d[3]&&Ne.error(d[0]),d},PSEUDO:function(d){var _,I=!d[6]&&d[2];return kt.CHILD.test(d[0])?null:(d[3]?d[2]=d[4]||d[5]||"":I&&Dt.test(I)&&(_=Cn(I,!0))&&(_=I.indexOf(")",I.length-_)-I.length)&&(d[0]=d[0].slice(0,_),d[2]=I.slice(0,_)),d.slice(0,3))}},filter:{TAG:function(d){var _=d.replace(Ht,Mt).toLowerCase();return d==="*"?function(){return!0}:function(I){return J(I,_)}},CLASS:function(d){var _=se[d+" "];return _||(_=new RegExp("(^|"+Ce+")"+d+"("+Ce+"|$)"))&&se(d,function(I){return _.test(typeof I.className=="string"&&I.className||typeof I.getAttribute<"u"&&I.getAttribute("class")||"")})},ATTR:function(d,_,I){return function(M){var w=Ne.attr(M,d);return w==null?_==="!=":_?(w+="",_==="="?w===I:_==="!="?w!==I:_==="^="?I&&w.indexOf(I)===0:_==="*="?I&&w.indexOf(I)>-1:_==="$="?I&&w.slice(-I.length)===I:_==="~="?(" "+w.replace(Oe," ")+" ").indexOf(I)>-1:_==="|="?w===I||w.slice(0,I.length+1)===I+"-":!1):!0}},CHILD:function(d,_,I,M,w){var P=d.slice(0,3)!=="nth",q=d.slice(-4)!=="last",z=_==="of-type";return M===1&&w===0?function(Q){return!!Q.parentNode}:function(Q,de,ae){var oe,Se,pe,Re,dt,ft=P!==q?"nextSibling":"previousSibling",vt=Q.parentNode,Et=z&&Q.nodeName.toLowerCase(),Zt=!ae&&!z,Me=!1;if(vt){if(P){for(;ft;){for(pe=Q;pe=pe[ft];)if(z?J(pe,Et):pe.nodeType===1)return!1;dt=ft=d==="only"&&!dt&&"nextSibling"}return!0}if(dt=[q?vt.firstChild:vt.lastChild],q&&Zt){for(Se=vt[j]||(vt[j]={}),oe=Se[d]||[],Re=oe[0]===R&&oe[1],Me=Re&&oe[2],pe=Re&&vt.childNodes[Re];pe=++Re&&pe&&pe[ft]||(Me=Re=0)||dt.pop();)if(pe.nodeType===1&&++Me&&pe===Q){Se[d]=[R,Re,Me];break}}else if(Zt&&(Se=Q[j]||(Q[j]={}),oe=Se[d]||[],Re=oe[0]===R&&oe[1],Me=Re),Me===!1)for(;(pe=++Re&&pe&&pe[ft]||(Me=Re=0)||dt.pop())&&!((z?J(pe,Et):pe.nodeType===1)&&++Me&&(Zt&&(Se=pe[j]||(pe[j]={}),Se[d]=[R,Me]),pe===Q)););return Me-=w,Me===M||Me%M===0&&Me/M>=0}}},PSEUDO:function(d,_){var I,M=n.pseudos[d]||n.setFilters[d.toLowerCase()]||Ne.error("unsupported pseudo: "+d);return M[j]?M(_):M.length>1?(I=[d,d,"",_],n.setFilters.hasOwnProperty(d.toLowerCase())?Lt(function(w,P){for(var q,z=M(w,_),Q=z.length;Q--;)q=ye.call(w,z[Q]),w[q]=!(P[q]=z[Q])}):function(w){return M(w,0,I)}):M}},pseudos:{not:Lt(function(d){var _=[],I=[],M=Li(d.replace(Tt,"$1"));return M[j]?Lt(function(w,P,q,z){for(var Q,de=M(w,null,z,[]),ae=w.length;ae--;)(Q=de[ae])&&(w[ae]=!(P[ae]=Q))}):function(w,P,q){return _[0]=w,M(_,null,q,I),_[0]=null,!I.pop()}}),has:Lt(function(d){return function(_){return Ne(d,_).length>0}}),contains:Lt(function(d){return d=d.replace(Ht,Mt),function(_){return(_.textContent||o.text(_)).indexOf(d)>-1}}),lang:Lt(function(d){return mn.test(d||"")||Ne.error("unsupported lang: "+d),d=d.replace(Ht,Mt).toLowerCase(),function(_){var I;do if(I=p?_.lang:_.getAttribute("xml:lang")||_.getAttribute("lang"))return I=I.toLowerCase(),I===d||I.indexOf(d+"-")===0;while((_=_.parentNode)&&_.nodeType===1);return!1}}),target:function(d){var _=C.location&&C.location.hash;return _&&_.slice(1)===d.id},root:function(d){return d===v},focus:function(d){return d===Si()&&l.hasFocus()&&!!(d.type||d.href||~d.tabIndex)},enabled:Sr(!1),disabled:Sr(!0),checked:function(d){return J(d,"input")&&!!d.checked||J(d,"option")&&!!d.selected},selected:function(d){return d.parentNode&&d.parentNode.selectedIndex,d.selected===!0},empty:function(d){for(d=d.firstChild;d;d=d.nextSibling)if(d.nodeType<6)return!1;return!0},parent:function(d){return!n.pseudos.empty(d)},header:function(d){return Kt.test(d.nodeName)},input:function(d){return Ut.test(d.nodeName)},button:function(d){return J(d,"input")&&d.type==="button"||J(d,"button")},text:function(d){var _;return J(d,"input")&&d.type==="text"&&((_=d.getAttribute("type"))==null||_.toLowerCase()==="text")},first:Pt(function(){return[0]}),last:Pt(function(d,_){return[_-1]}),eq:Pt(function(d,_,I){return[I<0?I+_:I]}),even:Pt(function(d,_){for(var I=0;I<_;I+=2)d.push(I);return d}),odd:Pt(function(d,_){for(var I=1;I<_;I+=2)d.push(I);return d}),lt:Pt(function(d,_,I){var M;for(I<0?M=I+_:I>_?M=_:M=I;--M>=0;)d.push(M);return d}),gt:Pt(function(d,_,I){for(var M=I<0?I+_:I;++M<_;)d.push(M);return d})}},n.pseudos.nth=n.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=Ao(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ko(e);function Ai(){}Ai.prototype=n.filters=n.pseudos,n.setFilters=new Ai;function Cn(d,_){var I,M,w,P,q,z,Q,de=Ae[d+" "];if(de)return _?0:de.slice(0);for(q=d,z=[],Q=n.preFilter;q;){(!I||(M=$e.exec(q)))&&(M&&(q=q.slice(M[0].length)||q),z.push(w=[])),I=!1,(M=Mn.exec(q))&&(I=M.shift(),w.push({value:I,type:M[0].replace(Tt," ")}),q=q.slice(I.length));for(P in n.filter)(M=kt[P].exec(q))&&(!Q[P]||(M=Q[P](M)))&&(I=M.shift(),w.push({value:I,type:P,matches:M}),q=q.slice(I.length));if(!I)break}return _?q.length:q?Ne.error(d):Ae(d,z).slice(0)}function Jt(d){for(var _=0,I=d.length,M="";_<I;_++)M+=d[_].value;return M}function Sn(d,_,I){var M=_.dir,w=_.next,P=w||M,q=I&&P==="parentNode",z=V++;return _.first?function(Q,de,ae){for(;Q=Q[M];)if(Q.nodeType===1||q)return d(Q,de,ae);return!1}:function(Q,de,ae){var oe,Se,pe=[R,z];if(ae){for(;Q=Q[M];)if((Q.nodeType===1||q)&&d(Q,de,ae))return!0}else for(;Q=Q[M];)if(Q.nodeType===1||q)if(Se=Q[j]||(Q[j]={}),w&&J(Q,w))Q=Q[M]||Q;else{if((oe=Se[P])&&oe[0]===R&&oe[1]===z)return pe[2]=oe[2];if(Se[P]=pe,pe[2]=d(Q,de,ae))return!0}return!1}}function ki(d){return d.length>1?function(_,I,M){for(var w=d.length;w--;)if(!d[w](_,I,M))return!1;return!0}:d[0]}function Lo(d,_,I){for(var M=0,w=_.length;M<w;M++)Ne(d,_[M],I);return I}function Zn(d,_,I,M,w){for(var P,q=[],z=0,Q=d.length,de=_!=null;z<Q;z++)(P=d[z])&&(!I||I(P,M,w))&&(q.push(P),de&&_.push(z));return q}function En(d,_,I,M,w,P){return M&&!M[j]&&(M=En(M)),w&&!w[j]&&(w=En(w,P)),Lt(function(q,z,Q,de){var ae,oe,Se,pe,Re=[],dt=[],ft=z.length,vt=q||Lo(_||"*",Q.nodeType?[Q]:Q,[]),Et=d&&(q||!_)?Zn(vt,Re,d,Q,de):vt;if(I?(pe=w||(q?d:ft||M)?[]:z,I(Et,pe,Q,de)):pe=Et,M)for(ae=Zn(pe,dt),M(ae,[],Q,de),oe=ae.length;oe--;)(Se=ae[oe])&&(pe[dt[oe]]=!(Et[dt[oe]]=Se));if(q){if(w||d){if(w){for(ae=[],oe=pe.length;oe--;)(Se=pe[oe])&&ae.push(Et[oe]=Se);w(null,pe=[],ae,de)}for(oe=pe.length;oe--;)(Se=pe[oe])&&(ae=w?ye.call(q,Se):Re[oe])>-1&&(q[ae]=!(z[ae]=Se))}}else pe=Zn(pe===z?pe.splice(ft,pe.length):pe),w?w(null,z,pe,de):f.apply(z,pe)})}function Vt(d){for(var _,I,M,w=d.length,P=n.relative[d[0].type],q=P||n.relative[" "],z=P?1:0,Q=Sn(function(oe){return oe===_},q,!0),de=Sn(function(oe){return ye.call(_,oe)>-1},q,!0),ae=[function(oe,Se,pe){var Re=!P&&(pe||Se!=r)||((_=Se).nodeType?Q(oe,Se,pe):de(oe,Se,pe));return _=null,Re}];z<w;z++)if(I=n.relative[d[z].type])ae=[Sn(ki(ae),I)];else{if(I=n.filter[d[z].type].apply(null,d[z].matches),I[j]){for(M=++z;M<w&&!n.relative[d[M].type];M++);return En(z>1&&ki(ae),z>1&&Jt(d.slice(0,z-1).concat({value:d[z-2].type===" "?"*":""})).replace(Tt,"$1"),I,z<M&&Vt(d.slice(z,M)),M<w&&Vt(d=d.slice(M)),M<w&&Jt(d))}ae.push(I)}return ki(ae)}function Gr(d,_){var I=_.length>0,M=d.length>0,w=function(P,q,z,Q,de){var ae,oe,Se,pe=0,Re="0",dt=P&&[],ft=[],vt=r,Et=P||M&&n.find.TAG("*",de),Zt=R+=vt==null?1:Math.random()||.1,Me=Et.length;for(de&&(r=q==l||q||de);Re!==Me&&(ae=Et[Re])!=null;Re++){if(M&&ae){for(oe=0,!q&&ae.ownerDocument!=l&&(Gt(ae),z=!p);Se=d[oe++];)if(Se(ae,q||l,z)){f.call(Q,ae);break}de&&(R=Zt)}I&&((ae=!Se&&ae)&&pe--,P&&dt.push(ae))}if(pe+=Re,I&&Re!==pe){for(oe=0;Se=_[oe++];)Se(dt,ft,q,z);if(P){if(pe>0)for(;Re--;)dt[Re]||ft[Re]||(ft[Re]=fe.call(Q));ft=Zn(ft)}f.apply(Q,ft),de&&!P&&ft.length>0&&pe+_.length>1&&o.uniqueSort(Q)}return de&&(R=Zt,r=vt),dt};return I?Lt(w):w}function Li(d,_){var I,M=[],w=[],P=Te[d+" "];if(!P){for(_||(_=Cn(d)),I=_.length;I--;)P=Vt(_[I]),P[j]?M.push(P):w.push(P);P=Te(d,Gr(w,M)),P.selector=d}return P}function Er(d,_,I,M){var w,P,q,z,Q,de=typeof d=="function"&&d,ae=!M&&Cn(d=de.selector||d);if(I=I||[],ae.length===1){if(P=ae[0]=ae[0].slice(0),P.length>2&&(q=P[0]).type==="ID"&&_.nodeType===9&&p&&n.relative[P[1].type]){if(_=(n.find.ID(q.matches[0].replace(Ht,Mt),_)||[])[0],_)de&&(_=_.parentNode);else return I;d=d.slice(P.shift().value.length)}for(w=kt.needsContext.test(d)?0:P.length;w--&&(q=P[w],!n.relative[z=q.type]);)if((Q=n.find[z])&&(M=Q(q.matches[0].replace(Ht,Mt),Jn.test(P[0].type)&&Ei(_.parentNode)||_))){if(P.splice(w,1),d=M.length&&Jt(P),!d)return f.apply(I,M),I;break}}return(de||Li(d,ae))(M,_,!p,I,!_||Jn.test(d)&&Ei(_.parentNode)||_),I}A.sortStable=j.split("").sort(Ve).join("")===j,Gt(),A.sortDetached=yn(function(d){return d.compareDocumentPosition(l.createElement("fieldset"))&1}),o.find=Ne,o.expr[":"]=o.expr.pseudos,o.unique=o.uniqueSort,Ne.compile=Li,Ne.select=Er,Ne.setDocument=Gt,Ne.tokenize=Cn,Ne.escape=o.escapeSelector,Ne.getText=o.text,Ne.isXML=o.isXMLDoc,Ne.selectors=o.expr,Ne.support=o.support,Ne.uniqueSort=o.uniqueSort})();var F=function(e,n,r){for(var s=[],u=r!==void 0;(e=e[n])&&e.nodeType!==9;)if(e.nodeType===1){if(u&&o(e).is(r))break;s.push(e)}return s},ne=function(e,n){for(var r=[];e;e=e.nextSibling)e.nodeType===1&&e!==n&&r.push(e);return r},re=o.expr.match.needsContext,me=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ce(e,n,r){return y(n)?o.grep(e,function(s,u){return!!n.call(s,u,s)!==r}):n.nodeType?o.grep(e,function(s){return s===n!==r}):typeof n!="string"?o.grep(e,function(s){return ye.call(n,s)>-1!==r}):o.filter(n,e,r)}o.filter=function(e,n,r){var s=n[0];return r&&(e=":not("+e+")"),n.length===1&&s.nodeType===1?o.find.matchesSelector(s,e)?[s]:[]:o.find.matches(e,o.grep(n,function(u){return u.nodeType===1}))},o.fn.extend({find:function(e){var n,r,s=this.length,u=this;if(typeof e!="string")return this.pushStack(o(e).filter(function(){for(n=0;n<s;n++)if(o.contains(u[n],this))return!0}));for(r=this.pushStack([]),n=0;n<s;n++)o.find(e,u[n],r);return s>1?o.uniqueSort(r):r},filter:function(e){return this.pushStack(ce(this,e||[],!1))},not:function(e){return this.pushStack(ce(this,e||[],!0))},is:function(e){return!!ce(this,typeof e=="string"&&re.test(e)?o(e):e||[],!1).length}});var te,be=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ge=o.fn.init=function(e,n,r){var s,u;if(!e)return this;if(r=r||te,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?s=[null,e,null]:s=be.exec(e),s&&(s[1]||!n))if(s[1]){if(n=n instanceof o?n[0]:n,o.merge(this,o.parseHTML(s[1],n&&n.nodeType?n.ownerDocument||n:b,!0)),me.test(s[1])&&o.isPlainObject(n))for(s in n)y(this[s])?this[s](n[s]):this.attr(s,n[s]);return this}else return u=b.getElementById(s[2]),u&&(this[0]=u,this.length=1),this;else return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(y(e))return r.ready!==void 0?r.ready(e):e(o)}return o.makeArray(e,this)};ge.prototype=o.fn,te=o(b);var De=/^(?:parents|prev(?:Until|All))/,Ke={children:!0,contents:!0,next:!0,prev:!0};o.fn.extend({has:function(e){var n=o(e,this),r=n.length;return this.filter(function(){for(var s=0;s<r;s++)if(o.contains(this,n[s]))return!0})},closest:function(e,n){var r,s=0,u=this.length,f=[],l=typeof e!="string"&&o(e);if(!re.test(e)){for(;s<u;s++)for(r=this[s];r&&r!==n;r=r.parentNode)if(r.nodeType<11&&(l?l.index(r)>-1:r.nodeType===1&&o.find.matchesSelector(r,e))){f.push(r);break}}return this.pushStack(f.length>1?o.uniqueSort(f):f)},index:function(e){return e?typeof e=="string"?ye.call(o(e),this[0]):ye.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(o.uniqueSort(o.merge(this.get(),o(e,n))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Ge(e,n){for(;(e=e[n])&&e.nodeType!==1;);return e}o.each({parent:function(e){var n=e.parentNode;return n&&n.nodeType!==11?n:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,n,r){return F(e,"parentNode",r)},next:function(e){return Ge(e,"nextSibling")},prev:function(e){return Ge(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,n,r){return F(e,"nextSibling",r)},prevUntil:function(e,n,r){return F(e,"previousSibling",r)},siblings:function(e){return ne((e.parentNode||{}).firstChild,e)},children:function(e){return ne(e.firstChild)},contents:function(e){return e.contentDocument!=null&&Z(e.contentDocument)?e.contentDocument:(J(e,"template")&&(e=e.content||e),o.merge([],e.childNodes))}},function(e,n){o.fn[e]=function(r,s){var u=o.map(this,n,r);return e.slice(-5)!=="Until"&&(s=r),s&&typeof s=="string"&&(u=o.filter(s,u)),this.length>1&&(Ke[e]||o.uniqueSort(u),De.test(e)&&u.reverse()),this.pushStack(u)}});var Fe=/[^\x20\t\r\n\f]+/g;function He(e){var n={};return o.each(e.match(Fe)||[],function(r,s){n[s]=!0}),n}o.Callbacks=function(e){e=typeof e=="string"?He(e):o.extend({},e);var n,r,s,u,f=[],l=[],v=-1,p=function(){for(u=u||e.once,s=n=!0;l.length;v=-1)for(r=l.shift();++v<f.length;)f[v].apply(r[0],r[1])===!1&&e.stopOnFalse&&(v=f.length,r=!1);e.memory||(r=!1),n=!1,u&&(r?f=[]:f="")},E={add:function(){return f&&(r&&!n&&(v=f.length-1,l.push(r)),(function B(j){o.each(j,function(R,V){y(V)?(!e.unique||!E.has(V))&&f.push(V):V&&V.length&&S(V)!=="string"&&B(V)})})(arguments),r&&!n&&p()),this},remove:function(){return o.each(arguments,function(B,j){for(var R;(R=o.inArray(j,f,R))>-1;)f.splice(R,1),R<=v&&v--}),this},has:function(B){return B?o.inArray(B,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return u=l=[],f=r="",this},disabled:function(){return!f},lock:function(){return u=l=[],!r&&!n&&(f=r=""),this},locked:function(){return!!u},fireWith:function(B,j){return u||(j=j||[],j=[B,j.slice?j.slice():j],l.push(j),n||p()),this},fire:function(){return E.fireWith(this,arguments),this},fired:function(){return!!s}};return E};function Ze(e){return e}function Qe(e){throw e}function Be(e,n,r,s){var u;try{e&&y(u=e.promise)?u.call(e).done(n).fail(r):e&&y(u=e.then)?u.call(e,n,r):n.apply(void 0,[e].slice(s))}catch(f){r.apply(void 0,[f])}}o.extend({Deferred:function(e){var n=[["notify","progress",o.Callbacks("memory"),o.Callbacks("memory"),2],["resolve","done",o.Callbacks("once memory"),o.Callbacks("once memory"),0,"resolved"],["reject","fail",o.Callbacks("once memory"),o.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return u.done(arguments).fail(arguments),this},catch:function(f){return s.then(null,f)},pipe:function(){var f=arguments;return o.Deferred(function(l){o.each(n,function(v,p){var E=y(f[p[4]])&&f[p[4]];u[p[1]](function(){var B=E&&E.apply(this,arguments);B&&y(B.promise)?B.promise().progress(l.notify).done(l.resolve).fail(l.reject):l[p[0]+"With"](this,E?[B]:arguments)})}),f=null}).promise()},then:function(f,l,v){var p=0;function E(B,j,R,V){return function(){var se=this,Ae=arguments,Te=function(){var Ve,It;if(!(B<p)){if(Ve=R.apply(se,Ae),Ve===j.promise())throw new TypeError("Thenable self-resolution");It=Ve&&(typeof Ve=="object"||typeof Ve=="function")&&Ve.then,y(It)?V?It.call(Ve,E(p,j,Ze,V),E(p,j,Qe,V)):(p++,It.call(Ve,E(p,j,Ze,V),E(p,j,Qe,V),E(p,j,Ze,j.notifyWith))):(R!==Ze&&(se=void 0,Ae=[Ve]),(V||j.resolveWith)(se,Ae))}},ot=V?Te:function(){try{Te()}catch(Ve){o.Deferred.exceptionHook&&o.Deferred.exceptionHook(Ve,ot.error),B+1>=p&&(R!==Qe&&(se=void 0,Ae=[Ve]),j.rejectWith(se,Ae))}};B?ot():(o.Deferred.getErrorHook?ot.error=o.Deferred.getErrorHook():o.Deferred.getStackHook&&(ot.error=o.Deferred.getStackHook()),C.setTimeout(ot))}}return o.Deferred(function(B){n[0][3].add(E(0,B,y(v)?v:Ze,B.notifyWith)),n[1][3].add(E(0,B,y(f)?f:Ze)),n[2][3].add(E(0,B,y(l)?l:Qe))}).promise()},promise:function(f){return f!=null?o.extend(f,s):s}},u={};return o.each(n,function(f,l){var v=l[2],p=l[5];s[l[1]]=v.add,p&&v.add(function(){r=p},n[3-f][2].disable,n[3-f][3].disable,n[0][2].lock,n[0][3].lock),v.add(l[3].fire),u[l[0]]=function(){return u[l[0]+"With"](this===u?void 0:this,arguments),this},u[l[0]+"With"]=v.fireWith}),s.promise(u),e&&e.call(u,u),u},when:function(e){var n=arguments.length,r=n,s=Array(r),u=ee.call(arguments),f=o.Deferred(),l=function(v){return function(p){s[v]=this,u[v]=arguments.length>1?ee.call(arguments):p,--n||f.resolveWith(s,u)}};if(n<=1&&(Be(e,f.done(l(r)).resolve,f.reject,!n),f.state()==="pending"||y(u[r]&&u[r].then)))return f.then();for(;r--;)Be(u[r],l(r),f.reject);return f.promise()}});var et=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;o.Deferred.exceptionHook=function(e,n){C.console&&C.console.warn&&e&&et.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},o.readyException=function(e){C.setTimeout(function(){throw e})};var Ye=o.Deferred();o.fn.ready=function(e){return Ye.then(e).catch(function(n){o.readyException(n)}),this},o.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--o.readyWait:o.isReady)||(o.isReady=!0,!(e!==!0&&--o.readyWait>0)&&Ye.resolveWith(b,[o]))}}),o.ready.then=Ye.then;function rt(){b.removeEventListener("DOMContentLoaded",rt),C.removeEventListener("load",rt),o.ready()}b.readyState==="complete"||b.readyState!=="loading"&&!b.documentElement.doScroll?C.setTimeout(o.ready):(b.addEventListener("DOMContentLoaded",rt),C.addEventListener("load",rt));var St=function(e,n,r,s,u,f,l){var v=0,p=e.length,E=r==null;if(S(r)==="object"){u=!0;for(v in r)St(e,n,v,r[v],!0,f,l)}else if(s!==void 0&&(u=!0,y(s)||(l=!0),E&&(l?(n.call(e,s),n=null):(E=n,n=function(B,j,R){return E.call(o(B),R)})),n))for(;v<p;v++)n(e[v],r,l?s:s.call(e[v],v,n(e[v],r)));return u?e:E?n.call(e):p?n(e[0],r):f},ii=/^-ms-/,Vn=/-([a-z])/g;function tn(e,n){return n.toUpperCase()}function bt(e){return e.replace(ii,"ms-").replace(Vn,tn)}var $t=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function jt(){this.expando=o.expando+jt.uid++}jt.uid=1,jt.prototype={cache:function(e){var n=e[this.expando];return n||(n={},$t(e)&&(e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,configurable:!0}))),n},set:function(e,n,r){var s,u=this.cache(e);if(typeof n=="string")u[bt(n)]=r;else for(s in n)u[bt(s)]=n[s];return u},get:function(e,n){return n===void 0?this.cache(e):e[this.expando]&&e[this.expando][bt(n)]},access:function(e,n,r){return n===void 0||n&&typeof n=="string"&&r===void 0?this.get(e,n):(this.set(e,n,r),r!==void 0?r:n)},remove:function(e,n){var r,s=e[this.expando];if(s!==void 0){if(n!==void 0)for(Array.isArray(n)?n=n.map(bt):(n=bt(n),n=n in s?[n]:n.match(Fe)||[]),r=n.length;r--;)delete s[n[r]];(n===void 0||o.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var n=e[this.expando];return n!==void 0&&!o.isEmptyObject(n)}};var ie=new jt,ut=new jt,pi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ri=/[A-Z]/g;function Ji(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:pi.test(e)?JSON.parse(e):e}function gi(e,n,r){var s;if(r===void 0&&e.nodeType===1)if(s="data-"+n.replace(ri,"-$&").toLowerCase(),r=e.getAttribute(s),typeof r=="string"){try{r=Ji(r)}catch{}ut.set(e,n,r)}else r=void 0;return r}o.extend({hasData:function(e){return ut.hasData(e)||ie.hasData(e)},data:function(e,n,r){return ut.access(e,n,r)},removeData:function(e,n){ut.remove(e,n)},_data:function(e,n,r){return ie.access(e,n,r)},_removeData:function(e,n){ie.remove(e,n)}}),o.fn.extend({data:function(e,n){var r,s,u,f=this[0],l=f&&f.attributes;if(e===void 0){if(this.length&&(u=ut.get(f),f.nodeType===1&&!ie.get(f,"hasDataAttrs"))){for(r=l.length;r--;)l[r]&&(s=l[r].name,s.indexOf("data-")===0&&(s=bt(s.slice(5)),gi(f,s,u[s])));ie.set(f,"hasDataAttrs",!0)}return u}return typeof e=="object"?this.each(function(){ut.set(this,e)}):St(this,function(v){var p;if(f&&v===void 0)return p=ut.get(f,e),p!==void 0||(p=gi(f,e),p!==void 0)?p:void 0;this.each(function(){ut.set(this,e,v)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ut.remove(this,e)})}}),o.extend({queue:function(e,n,r){var s;if(e)return n=(n||"fx")+"queue",s=ie.get(e,n),r&&(!s||Array.isArray(r)?s=ie.access(e,n,o.makeArray(r)):s.push(r)),s||[]},dequeue:function(e,n){n=n||"fx";var r=o.queue(e,n),s=r.length,u=r.shift(),f=o._queueHooks(e,n),l=function(){o.dequeue(e,n)};u==="inprogress"&&(u=r.shift(),s--),u&&(n==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(e,l,f)),!s&&f&&f.empty.fire()},_queueHooks:function(e,n){var r=n+"queueHooks";return ie.get(e,r)||ie.access(e,r,{empty:o.Callbacks("once memory").add(function(){ie.remove(e,[n+"queue",r])})})}}),o.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?o.queue(this[0],e):n===void 0?this:this.each(function(){var s=o.queue(this,e,n);o._queueHooks(this,e),e==="fx"&&s[0]!=="inprogress"&&o.dequeue(this,e)})},dequeue:function(e){return this.each(function(){o.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,s=1,u=o.Deferred(),f=this,l=this.length,v=function(){--s||u.resolveWith(f,[f])};for(typeof e!="string"&&(n=e,e=void 0),e=e||"fx";l--;)r=ie.get(f[l],e+"queueHooks"),r&&r.empty&&(s++,r.empty.add(v));return v(),u.promise(n)}});var vi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,hn=new RegExp("^(?:([+-])=|)("+vi+")([a-z%]*)$","i"),Ot=["Top","Right","Bottom","Left"],Wt=b.documentElement,nn=function(e){return o.contains(e.ownerDocument,e)},Zi={composed:!0};Wt.getRootNode&&(nn=function(e){return o.contains(e.ownerDocument,e)||e.getRootNode(Zi)===e.ownerDocument});var In=function(e,n){return e=n||e,e.style.display==="none"||e.style.display===""&&nn(e)&&o.css(e,"display")==="none"};function er(e,n,r,s){var u,f,l=20,v=s?function(){return s.cur()}:function(){return o.css(e,n,"")},p=v(),E=r&&r[3]||(o.cssNumber[n]?"":"px"),B=e.nodeType&&(o.cssNumber[n]||E!=="px"&&+p)&&hn.exec(o.css(e,n));if(B&&B[3]!==E){for(p=p/2,E=E||B[3],B=+p||1;l--;)o.style(e,n,B+E),(1-f)*(1-(f=v()/p||.5))<=0&&(l=0),B=B/f;B=B*2,o.style(e,n,B+E),r=r||[]}return r&&(B=+B||+p||0,u=r[1]?B+(r[1]+1)*r[2]:+r[2],s&&(s.unit=E,s.start=B,s.end=u)),u}var tr={};function so(e){var n,r=e.ownerDocument,s=e.nodeName,u=tr[s];return u||(n=r.body.appendChild(r.createElement(s)),u=o.css(n,"display"),n.parentNode.removeChild(n),u==="none"&&(u="block"),tr[s]=u,u)}function an(e,n){for(var r,s,u=[],f=0,l=e.length;f<l;f++)s=e[f],s.style&&(r=s.style.display,n?(r==="none"&&(u[f]=ie.get(s,"display")||null,u[f]||(s.style.display="")),s.style.display===""&&In(s)&&(u[f]=so(s))):r!=="none"&&(u[f]="none",ie.set(s,"display",r)));for(f=0;f<l;f++)u[f]!=null&&(e[f].style.display=u[f]);return e}o.fn.extend({show:function(){return an(this,!0)},hide:function(){return an(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){In(this)?o(this).show():o(this).hide()})}});var _n=/^(?:checkbox|radio)$/i,nr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ir=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=b.createDocumentFragment(),n=e.appendChild(b.createElement("div")),r=b.createElement("input");r.setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),n.appendChild(r),A.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,n.innerHTML="<option></option>",A.option=!!n.lastChild})();var Ct={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,A.option||(Ct.optgroup=Ct.option=[1,"<select multiple='multiple'>","</select>"]);function mt(e,n){var r;return typeof e.getElementsByTagName<"u"?r=e.getElementsByTagName(n||"*"):typeof e.querySelectorAll<"u"?r=e.querySelectorAll(n||"*"):r=[],n===void 0||n&&J(e,n)?o.merge([e],r):r}function oi(e,n){for(var r=0,s=e.length;r<s;r++)ie.set(e[r],"globalEval",!n||ie.get(n[r],"globalEval"))}var ao=/<|&#?\w+;/;function rr(e,n,r,s,u){for(var f,l,v,p,E,B,j=n.createDocumentFragment(),R=[],V=0,se=e.length;V<se;V++)if(f=e[V],f||f===0)if(S(f)==="object")o.merge(R,f.nodeType?[f]:f);else if(!ao.test(f))R.push(n.createTextNode(f));else{for(l=l||j.appendChild(n.createElement("div")),v=(nr.exec(f)||["",""])[1].toLowerCase(),p=Ct[v]||Ct._default,l.innerHTML=p[1]+o.htmlPrefilter(f)+p[2],B=p[0];B--;)l=l.lastChild;o.merge(R,l.childNodes),l=j.firstChild,l.textContent=""}for(j.textContent="",V=0;f=R[V++];){if(s&&o.inArray(f,s)>-1){u&&u.push(f);continue}if(E=nn(f),l=mt(j.appendChild(f),"script"),E&&oi(l),r)for(B=0;f=l[B++];)ir.test(f.type||"")&&r.push(f)}return j}var or=/^([^.]*)(?:\.(.+)|)/;function rn(){return!0}function dn(){return!1}function zn(e,n,r,s,u,f){var l,v;if(typeof n=="object"){typeof r!="string"&&(s=s||r,r=void 0);for(v in n)zn(e,v,r,s,n[v],f);return e}if(s==null&&u==null?(u=r,s=r=void 0):u==null&&(typeof r=="string"?(u=s,s=void 0):(u=s,s=r,r=void 0)),u===!1)u=dn;else if(!u)return e;return f===1&&(l=u,u=function(p){return o().off(p),l.apply(this,arguments)},u.guid=l.guid||(l.guid=o.guid++)),e.each(function(){o.event.add(this,n,u,s,r)})}o.event={global:{},add:function(e,n,r,s,u){var f,l,v,p,E,B,j,R,V,se,Ae,Te=ie.get(e);if($t(e))for(r.handler&&(f=r,r=f.handler,u=f.selector),u&&o.find.matchesSelector(Wt,u),r.guid||(r.guid=o.guid++),(p=Te.events)||(p=Te.events=Object.create(null)),(l=Te.handle)||(l=Te.handle=function(ot){return typeof o<"u"&&o.event.triggered!==ot.type?o.event.dispatch.apply(e,arguments):void 0}),n=(n||"").match(Fe)||[""],E=n.length;E--;)v=or.exec(n[E])||[],V=Ae=v[1],se=(v[2]||"").split(".").sort(),V&&(j=o.event.special[V]||{},V=(u?j.delegateType:j.bindType)||V,j=o.event.special[V]||{},B=o.extend({type:V,origType:Ae,data:s,handler:r,guid:r.guid,selector:u,needsContext:u&&o.expr.match.needsContext.test(u),namespace:se.join(".")},f),(R=p[V])||(R=p[V]=[],R.delegateCount=0,(!j.setup||j.setup.call(e,s,se,l)===!1)&&e.addEventListener&&e.addEventListener(V,l)),j.add&&(j.add.call(e,B),B.handler.guid||(B.handler.guid=r.guid)),u?R.splice(R.delegateCount++,0,B):R.push(B),o.event.global[V]=!0)},remove:function(e,n,r,s,u){var f,l,v,p,E,B,j,R,V,se,Ae,Te=ie.hasData(e)&&ie.get(e);if(!(!Te||!(p=Te.events))){for(n=(n||"").match(Fe)||[""],E=n.length;E--;){if(v=or.exec(n[E])||[],V=Ae=v[1],se=(v[2]||"").split(".").sort(),!V){for(V in p)o.event.remove(e,V+n[E],r,s,!0);continue}for(j=o.event.special[V]||{},V=(s?j.delegateType:j.bindType)||V,R=p[V]||[],v=v[2]&&new RegExp("(^|\\.)"+se.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=f=R.length;f--;)B=R[f],(u||Ae===B.origType)&&(!r||r.guid===B.guid)&&(!v||v.test(B.namespace))&&(!s||s===B.selector||s==="**"&&B.selector)&&(R.splice(f,1),B.selector&&R.delegateCount--,j.remove&&j.remove.call(e,B));l&&!R.length&&((!j.teardown||j.teardown.call(e,se,Te.handle)===!1)&&o.removeEvent(e,V,Te.handle),delete p[V])}o.isEmptyObject(p)&&ie.remove(e,"handle events")}},dispatch:function(e){var n,r,s,u,f,l,v=new Array(arguments.length),p=o.event.fix(e),E=(ie.get(this,"events")||Object.create(null))[p.type]||[],B=o.event.special[p.type]||{};for(v[0]=p,n=1;n<arguments.length;n++)v[n]=arguments[n];if(p.delegateTarget=this,!(B.preDispatch&&B.preDispatch.call(this,p)===!1)){for(l=o.event.handlers.call(this,p,E),n=0;(u=l[n++])&&!p.isPropagationStopped();)for(p.currentTarget=u.elem,r=0;(f=u.handlers[r++])&&!p.isImmediatePropagationStopped();)(!p.rnamespace||f.namespace===!1||p.rnamespace.test(f.namespace))&&(p.handleObj=f,p.data=f.data,s=((o.event.special[f.origType]||{}).handle||f.handler).apply(u.elem,v),s!==void 0&&(p.result=s)===!1&&(p.preventDefault(),p.stopPropagation()));return B.postDispatch&&B.postDispatch.call(this,p),p.result}},handlers:function(e,n){var r,s,u,f,l,v=[],p=n.delegateCount,E=e.target;if(p&&E.nodeType&&!(e.type==="click"&&e.button>=1)){for(;E!==this;E=E.parentNode||this)if(E.nodeType===1&&!(e.type==="click"&&E.disabled===!0)){for(f=[],l={},r=0;r<p;r++)s=n[r],u=s.selector+" ",l[u]===void 0&&(l[u]=s.needsContext?o(u,this).index(E)>-1:o.find(u,this,null,[E]).length),l[u]&&f.push(s);f.length&&v.push({elem:E,handlers:f})}}return E=this,p<n.length&&v.push({elem:E,handlers:n.slice(p)}),v},addProp:function(e,n){Object.defineProperty(o.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(r){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}})},fix:function(e){return e[o.expando]?e:new o.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var n=this||e;return _n.test(n.type)&&n.click&&J(n,"input")&&Qn(n,"click",!0),!1},trigger:function(e){var n=this||e;return _n.test(n.type)&&n.click&&J(n,"input")&&Qn(n,"click"),!0},_default:function(e){var n=e.target;return _n.test(n.type)&&n.click&&J(n,"input")&&ie.get(n,"click")||J(n,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function Qn(e,n,r){if(!r){ie.get(e,n)===void 0&&o.event.add(e,n,rn);return}ie.set(e,n,!1),o.event.add(e,n,{namespace:!1,handler:function(s){var u,f=ie.get(this,n);if(s.isTrigger&1&&this[n]){if(f)(o.event.special[n]||{}).delegateType&&s.stopPropagation();else if(f=ee.call(arguments),ie.set(this,n,f),this[n](),u=ie.get(this,n),ie.set(this,n,!1),f!==u)return s.stopImmediatePropagation(),s.preventDefault(),u}else f&&(ie.set(this,n,o.event.trigger(f[0],f.slice(1),this)),s.stopPropagation(),s.isImmediatePropagationStopped=rn)}})}o.removeEvent=function(e,n,r){e.removeEventListener&&e.removeEventListener(n,r)},o.Event=function(e,n){if(!(this instanceof o.Event))return new o.Event(e,n);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?rn:dn,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,n&&o.extend(this,n),this.timeStamp=e&&e.timeStamp||Date.now(),this[o.expando]=!0},o.Event.prototype={constructor:o.Event,isDefaultPrevented:dn,isPropagationStopped:dn,isImmediatePropagationStopped:dn,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=rn,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=rn,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=rn,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},o.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},o.event.addProp),o.each({focus:"focusin",blur:"focusout"},function(e,n){function r(s){if(b.documentMode){var u=ie.get(this,"handle"),f=o.event.fix(s);f.type=s.type==="focusin"?"focus":"blur",f.isSimulated=!0,u(s),f.target===f.currentTarget&&u(f)}else o.event.simulate(n,s.target,o.event.fix(s))}o.event.special[e]={setup:function(){var s;if(Qn(this,e,!0),b.documentMode)s=ie.get(this,n),s||this.addEventListener(n,r),ie.set(this,n,(s||0)+1);else return!1},trigger:function(){return Qn(this,e),!0},teardown:function(){var s;if(b.documentMode)s=ie.get(this,n)-1,s?ie.set(this,n,s):(this.removeEventListener(n,r),ie.remove(this,n));else return!1},_default:function(s){return ie.get(s.target,e)},delegateType:n},o.event.special[n]={setup:function(){var s=this.ownerDocument||this.document||this,u=b.documentMode?this:s,f=ie.get(u,n);f||(b.documentMode?this.addEventListener(n,r):s.addEventListener(e,r,!0)),ie.set(u,n,(f||0)+1)},teardown:function(){var s=this.ownerDocument||this.document||this,u=b.documentMode?this:s,f=ie.get(u,n)-1;f?ie.set(u,n,f):(b.documentMode?this.removeEventListener(n,r):s.removeEventListener(e,r,!0),ie.remove(u,n))}}}),o.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){o.event.special[e]={delegateType:n,bindType:n,handle:function(r){var s,u=this,f=r.relatedTarget,l=r.handleObj;return(!f||f!==u&&!o.contains(u,f))&&(r.type=l.origType,s=l.handler.apply(this,arguments),r.type=n),s}}}),o.fn.extend({on:function(e,n,r,s){return zn(this,e,n,r,s)},one:function(e,n,r,s){return zn(this,e,n,r,s,1)},off:function(e,n,r){var s,u;if(e&&e.preventDefault&&e.handleObj)return s=e.handleObj,o(e.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if(typeof e=="object"){for(u in e)this.off(u,n,e[u]);return this}return(n===!1||typeof n=="function")&&(r=n,n=void 0),r===!1&&(r=dn),this.each(function(){o.event.remove(this,e,r,n)})}});var uo=/<script|<style|<link/i,fo=/checked\s*(?:[^=]|=\s*.checked.)/i,lo=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function sr(e,n){return J(e,"table")&&J(n.nodeType!==11?n:n.firstChild,"tr")&&o(e).children("tbody")[0]||e}function co(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function ho(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ar(e,n){var r,s,u,f,l,v,p;if(n.nodeType===1){if(ie.hasData(e)&&(f=ie.get(e),p=f.events,p)){ie.remove(n,"handle events");for(u in p)for(r=0,s=p[u].length;r<s;r++)o.event.add(n,u,p[u][r])}ut.hasData(e)&&(l=ut.access(e),v=o.extend({},l),ut.set(n,v))}}function Hr(e,n){var r=n.nodeName.toLowerCase();r==="input"&&_n.test(e.type)?n.checked=e.checked:(r==="input"||r==="textarea")&&(n.defaultValue=e.defaultValue)}function pn(e,n,r,s){n=he(n);var u,f,l,v,p,E,B=0,j=e.length,R=j-1,V=n[0],se=y(V);if(se||j>1&&typeof V=="string"&&!A.checkClone&&fo.test(V))return e.each(function(Ae){var Te=e.eq(Ae);se&&(n[0]=V.call(this,Ae,Te.html())),pn(Te,n,r,s)});if(j&&(u=rr(n,e[0].ownerDocument,!1,e,s),f=u.firstChild,u.childNodes.length===1&&(u=f),f||s)){for(l=o.map(mt(u,"script"),co),v=l.length;B<j;B++)p=u,B!==R&&(p=o.clone(p,!0,!0),v&&o.merge(l,mt(p,"script"))),r.call(e[B],p,B);if(v)for(E=l[l.length-1].ownerDocument,o.map(l,ho),B=0;B<v;B++)p=l[B],ir.test(p.type||"")&&!ie.access(p,"globalEval")&&o.contains(E,p)&&(p.src&&(p.type||"").toLowerCase()!=="module"?o._evalUrl&&!p.noModule&&o._evalUrl(p.src,{nonce:p.nonce||p.getAttribute("nonce")},E):g(p.textContent.replace(lo,""),p,E))}return e}function ur(e,n,r){for(var s,u=n?o.filter(n,e):e,f=0;(s=u[f])!=null;f++)!r&&s.nodeType===1&&o.cleanData(mt(s)),s.parentNode&&(r&&nn(s)&&oi(mt(s,"script")),s.parentNode.removeChild(s));return e}o.extend({htmlPrefilter:function(e){return e},clone:function(e,n,r){var s,u,f,l,v=e.cloneNode(!0),p=nn(e);if(!A.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!o.isXMLDoc(e))for(l=mt(v),f=mt(e),s=0,u=f.length;s<u;s++)Hr(f[s],l[s]);if(n)if(r)for(f=f||mt(e),l=l||mt(v),s=0,u=f.length;s<u;s++)ar(f[s],l[s]);else ar(e,v);return l=mt(v,"script"),l.length>0&&oi(l,!p&&mt(e,"script")),v},cleanData:function(e){for(var n,r,s,u=o.event.special,f=0;(r=e[f])!==void 0;f++)if($t(r)){if(n=r[ie.expando]){if(n.events)for(s in n.events)u[s]?o.event.remove(r,s):o.removeEvent(r,s,n.handle);r[ie.expando]=void 0}r[ut.expando]&&(r[ut.expando]=void 0)}}}),o.fn.extend({detach:function(e){return ur(this,e,!0)},remove:function(e){return ur(this,e)},text:function(e){return St(this,function(n){return n===void 0?o.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,e,arguments.length)},append:function(){return pn(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var n=sr(this,e);n.appendChild(e)}})},prepend:function(){return pn(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var n=sr(this,e);n.insertBefore(e,n.firstChild)}})},before:function(){return pn(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return pn(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,n=0;(e=this[n])!=null;n++)e.nodeType===1&&(o.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,n){return e=e??!1,n=n??e,this.map(function(){return o.clone(this,e,n)})},html:function(e){return St(this,function(n){var r=this[0]||{},s=0,u=this.length;if(n===void 0&&r.nodeType===1)return r.innerHTML;if(typeof n=="string"&&!uo.test(n)&&!Ct[(nr.exec(n)||["",""])[1].toLowerCase()]){n=o.htmlPrefilter(n);try{for(;s<u;s++)r=this[s]||{},r.nodeType===1&&(o.cleanData(mt(r,!1)),r.innerHTML=n);r=0}catch{}}r&&this.empty().append(n)},null,e,arguments.length)},replaceWith:function(){var e=[];return pn(this,arguments,function(n){var r=this.parentNode;o.inArray(this,e)<0&&(o.cleanData(mt(this)),r&&r.replaceChild(n,this))},e)}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,n){o.fn[e]=function(r){for(var s,u=[],f=o(r),l=f.length-1,v=0;v<=l;v++)s=v===l?this:this.clone(!0),o(f[v])[n](s),Ee.apply(u,s.get());return this.pushStack(u)}});var mi=new RegExp("^("+vi+")(?!px)[a-z%]+$","i"),yi=/^--/,Xn=function(e){var n=e.ownerDocument.defaultView;return(!n||!n.opener)&&(n=C),n.getComputedStyle(e)},fr=function(e,n,r){var s,u,f={};for(u in n)f[u]=e.style[u],e.style[u]=n[u];s=r.call(e);for(u in n)e.style[u]=f[u];return s},Bi=new RegExp(Ot.join("|"),"i");(function(){function e(){if(E){p.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",E.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Wt.appendChild(p).appendChild(E);var B=C.getComputedStyle(E);r=B.top!=="1%",v=n(B.marginLeft)===12,E.style.right="60%",f=n(B.right)===36,s=n(B.width)===36,E.style.position="absolute",u=n(E.offsetWidth/3)===12,Wt.removeChild(p),E=null}}function n(B){return Math.round(parseFloat(B))}var r,s,u,f,l,v,p=b.createElement("div"),E=b.createElement("div");E.style&&(E.style.backgroundClip="content-box",E.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle=E.style.backgroundClip==="content-box",o.extend(A,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),f},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),v},scrollboxSize:function(){return e(),u},reliableTrDimensions:function(){var B,j,R,V;return l==null&&(B=b.createElement("table"),j=b.createElement("tr"),R=b.createElement("div"),B.style.cssText="position:absolute;left:-11111px;border-collapse:separate",j.style.cssText="box-sizing:content-box;border:1px solid",j.style.height="1px",R.style.height="9px",R.style.display="block",Wt.appendChild(B).appendChild(j).appendChild(R),V=C.getComputedStyle(j),l=parseInt(V.height,10)+parseInt(V.borderTopWidth,10)+parseInt(V.borderBottomWidth,10)===j.offsetHeight,Wt.removeChild(B)),l}}))})();function Rn(e,n,r){var s,u,f,l,v=yi.test(n),p=e.style;return r=r||Xn(e),r&&(l=r.getPropertyValue(n)||r[n],v&&l&&(l=l.replace(Tt,"$1")||void 0),l===""&&!nn(e)&&(l=o.style(e,n)),!A.pixelBoxStyles()&&mi.test(l)&&Bi.test(n)&&(s=p.width,u=p.minWidth,f=p.maxWidth,p.minWidth=p.maxWidth=p.width=l,l=r.width,p.width=s,p.minWidth=u,p.maxWidth=f)),l!==void 0?l+"":l}function si(e,n){return{get:function(){if(e()){delete this.get;return}return(this.get=n).apply(this,arguments)}}}var lr=["Webkit","Moz","ms"],cr=b.createElement("div").style,hr={};function Br(e){for(var n=e[0].toUpperCase()+e.slice(1),r=lr.length;r--;)if(e=lr[r]+n,e in cr)return e}function ai(e){var n=o.cssProps[e]||hr[e];return n||(e in cr?e:hr[e]=Br(e)||e)}var Fr=/^(none|table(?!-c[ea]).+)/,po={position:"absolute",visibility:"hidden",display:"block"},dr={letterSpacing:"0",fontWeight:"400"};function pr(e,n,r){var s=hn.exec(n);return s?Math.max(0,s[2]-(r||0))+(s[3]||"px"):n}function bi(e,n,r,s,u,f){var l=n==="width"?1:0,v=0,p=0,E=0;if(r===(s?"border":"content"))return 0;for(;l<4;l+=2)r==="margin"&&(E+=o.css(e,r+Ot[l],!0,u)),s?(r==="content"&&(p-=o.css(e,"padding"+Ot[l],!0,u)),r!=="margin"&&(p-=o.css(e,"border"+Ot[l]+"Width",!0,u))):(p+=o.css(e,"padding"+Ot[l],!0,u),r!=="padding"?p+=o.css(e,"border"+Ot[l]+"Width",!0,u):v+=o.css(e,"border"+Ot[l]+"Width",!0,u));return!s&&f>=0&&(p+=Math.max(0,Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-f-p-v-.5))||0),p+E}function Fi(e,n,r){var s=Xn(e),u=!A.boxSizingReliable()||r,f=u&&o.css(e,"boxSizing",!1,s)==="border-box",l=f,v=Rn(e,n,s),p="offset"+n[0].toUpperCase()+n.slice(1);if(mi.test(v)){if(!r)return v;v="auto"}return(!A.boxSizingReliable()&&f||!A.reliableTrDimensions()&&J(e,"tr")||v==="auto"||!parseFloat(v)&&o.css(e,"display",!1,s)==="inline")&&e.getClientRects().length&&(f=o.css(e,"boxSizing",!1,s)==="border-box",l=p in e,l&&(v=e[p])),v=parseFloat(v)||0,v+bi(e,n,r||(f?"border":"content"),l,s,v)+"px"}o.extend({cssHooks:{opacity:{get:function(e,n){if(n){var r=Rn(e,"opacity");return r===""?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,n,r,s){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var u,f,l,v=bt(n),p=yi.test(n),E=e.style;if(p||(n=ai(v)),l=o.cssHooks[n]||o.cssHooks[v],r!==void 0){if(f=typeof r,f==="string"&&(u=hn.exec(r))&&u[1]&&(r=er(e,n,u),f="number"),r==null||r!==r)return;f==="number"&&!p&&(r+=u&&u[3]||(o.cssNumber[v]?"":"px")),!A.clearCloneStyle&&r===""&&n.indexOf("background")===0&&(E[n]="inherit"),(!l||!("set"in l)||(r=l.set(e,r,s))!==void 0)&&(p?E.setProperty(n,r):E[n]=r)}else return l&&"get"in l&&(u=l.get(e,!1,s))!==void 0?u:E[n]}},css:function(e,n,r,s){var u,f,l,v=bt(n),p=yi.test(n);return p||(n=ai(v)),l=o.cssHooks[n]||o.cssHooks[v],l&&"get"in l&&(u=l.get(e,!0,r)),u===void 0&&(u=Rn(e,n,s)),u==="normal"&&n in dr&&(u=dr[n]),r===""||r?(f=parseFloat(u),r===!0||isFinite(f)?f||0:u):u}}),o.each(["height","width"],function(e,n){o.cssHooks[n]={get:function(r,s,u){if(s)return Fr.test(o.css(r,"display"))&&(!r.getClientRects().length||!r.getBoundingClientRect().width)?fr(r,po,function(){return Fi(r,n,u)}):Fi(r,n,u)},set:function(r,s,u){var f,l=Xn(r),v=!A.scrollboxSize()&&l.position==="absolute",p=v||u,E=p&&o.css(r,"boxSizing",!1,l)==="border-box",B=u?bi(r,n,u,E,l):0;return E&&v&&(B-=Math.ceil(r["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(l[n])-bi(r,n,"border",!1,l)-.5)),B&&(f=hn.exec(s))&&(f[3]||"px")!=="px"&&(r.style[n]=s,s=o.css(r,n)),pr(r,s,B)}}}),o.cssHooks.marginLeft=si(A.reliableMarginLeft,function(e,n){if(n)return(parseFloat(Rn(e,"marginLeft"))||e.getBoundingClientRect().left-fr(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),o.each({margin:"",padding:"",border:"Width"},function(e,n){o.cssHooks[e+n]={expand:function(r){for(var s=0,u={},f=typeof r=="string"?r.split(" "):[r];s<4;s++)u[e+Ot[s]+n]=f[s]||f[s-2]||f[0];return u}},e!=="margin"&&(o.cssHooks[e+n].set=pr)}),o.fn.extend({css:function(e,n){return St(this,function(r,s,u){var f,l,v={},p=0;if(Array.isArray(s)){for(f=Xn(r),l=s.length;p<l;p++)v[s[p]]=o.css(r,s[p],!1,f);return v}return u!==void 0?o.style(r,s,u):o.css(r,s)},e,n,arguments.length>1)}});function gt(e,n,r,s,u){return new gt.prototype.init(e,n,r,s,u)}o.Tween=gt,gt.prototype={constructor:gt,init:function(e,n,r,s,u,f){this.elem=e,this.prop=r,this.easing=u||o.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=s,this.unit=f||(o.cssNumber[r]?"":"px")},cur:function(){var e=gt.propHooks[this.prop];return e&&e.get?e.get(this):gt.propHooks._default.get(this)},run:function(e){var n,r=gt.propHooks[this.prop];return this.options.duration?this.pos=n=o.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=n=e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):gt.propHooks._default.set(this),this}},gt.prototype.init.prototype=gt.prototype,gt.propHooks={_default:{get:function(e){var n;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(n=o.css(e.elem,e.prop,""),!n||n==="auto"?0:n)},set:function(e){o.fx.step[e.prop]?o.fx.step[e.prop](e):e.elem.nodeType===1&&(o.cssHooks[e.prop]||e.elem.style[ai(e.prop)]!=null)?o.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},gt.propHooks.scrollTop=gt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},o.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},o.fx=gt.prototype.init,o.fx.step={};var un,Nn,go=/^(?:toggle|show|hide)$/,$r=/queueHooks$/;function Fn(){Nn&&(b.hidden===!1&&C.requestAnimationFrame?C.requestAnimationFrame(Fn):C.setTimeout(Fn,o.fx.interval),o.fx.tick())}function $i(){return C.setTimeout(function(){un=void 0}),un=Date.now()}function Yn(e,n){var r,s=0,u={height:e};for(n=n?1:0;s<4;s+=2-n)r=Ot[s],u["margin"+r]=u["padding"+r]=e;return n&&(u.opacity=u.width=e),u}function ji(e,n,r){for(var s,u=(At.tweeners[n]||[]).concat(At.tweeners["*"]),f=0,l=u.length;f<l;f++)if(s=u[f].call(r,n,e))return s}function jr(e,n,r){var s,u,f,l,v,p,E,B,j="width"in n||"height"in n,R=this,V={},se=e.style,Ae=e.nodeType&&In(e),Te=ie.get(e,"fxshow");r.queue||(l=o._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,v=l.empty.fire,l.empty.fire=function(){l.unqueued||v()}),l.unqueued++,R.always(function(){R.always(function(){l.unqueued--,o.queue(e,"fx").length||l.empty.fire()})}));for(s in n)if(u=n[s],go.test(u)){if(delete n[s],f=f||u==="toggle",u===(Ae?"hide":"show"))if(u==="show"&&Te&&Te[s]!==void 0)Ae=!0;else continue;V[s]=Te&&Te[s]||o.style(e,s)}if(p=!o.isEmptyObject(n),!(!p&&o.isEmptyObject(V))){j&&e.nodeType===1&&(r.overflow=[se.overflow,se.overflowX,se.overflowY],E=Te&&Te.display,E==null&&(E=ie.get(e,"display")),B=o.css(e,"display"),B==="none"&&(E?B=E:(an([e],!0),E=e.style.display||E,B=o.css(e,"display"),an([e]))),(B==="inline"||B==="inline-block"&&E!=null)&&o.css(e,"float")==="none"&&(p||(R.done(function(){se.display=E}),E==null&&(B=se.display,E=B==="none"?"":B)),se.display="inline-block")),r.overflow&&(se.overflow="hidden",R.always(function(){se.overflow=r.overflow[0],se.overflowX=r.overflow[1],se.overflowY=r.overflow[2]})),p=!1;for(s in V)p||(Te?"hidden"in Te&&(Ae=Te.hidden):Te=ie.access(e,"fxshow",{display:E}),f&&(Te.hidden=!Ae),Ae&&an([e],!0),R.done(function(){Ae||an([e]),ie.remove(e,"fxshow");for(s in V)o.style(e,s,V[s])})),p=ji(Ae?Te[s]:0,s,R),s in Te||(Te[s]=p.start,Ae&&(p.end=p.start,p.start=0))}}function gr(e,n){var r,s,u,f,l;for(r in e)if(s=bt(r),u=n[s],f=e[r],Array.isArray(f)&&(u=f[1],f=e[r]=f[0]),r!==s&&(e[s]=f,delete e[r]),l=o.cssHooks[s],l&&"expand"in l){f=l.expand(f),delete e[s];for(r in f)r in e||(e[r]=f[r],n[r]=u)}else n[s]=u}function At(e,n,r){var s,u,f=0,l=At.prefilters.length,v=o.Deferred().always(function(){delete p.elem}),p=function(){if(u)return!1;for(var j=un||$i(),R=Math.max(0,E.startTime+E.duration-j),V=R/E.duration||0,se=1-V,Ae=0,Te=E.tweens.length;Ae<Te;Ae++)E.tweens[Ae].run(se);return v.notifyWith(e,[E,se,R]),se<1&&Te?R:(Te||v.notifyWith(e,[E,1,0]),v.resolveWith(e,[E]),!1)},E=v.promise({elem:e,props:o.extend({},n),opts:o.extend(!0,{specialEasing:{},easing:o.easing._default},r),originalProperties:n,originalOptions:r,startTime:un||$i(),duration:r.duration,tweens:[],createTween:function(j,R){var V=o.Tween(e,E.opts,j,R,E.opts.specialEasing[j]||E.opts.easing);return E.tweens.push(V),V},stop:function(j){var R=0,V=j?E.tweens.length:0;if(u)return this;for(u=!0;R<V;R++)E.tweens[R].run(1);return j?(v.notifyWith(e,[E,1,0]),v.resolveWith(e,[E,j])):v.rejectWith(e,[E,j]),this}}),B=E.props;for(gr(B,E.opts.specialEasing);f<l;f++)if(s=At.prefilters[f].call(E,e,B,E.opts),s)return y(s.stop)&&(o._queueHooks(E.elem,E.opts.queue).stop=s.stop.bind(s)),s;return o.map(B,ji,E),y(E.opts.start)&&E.opts.start.call(e,E),E.progress(E.opts.progress).done(E.opts.done,E.opts.complete).fail(E.opts.fail).always(E.opts.always),o.fx.timer(o.extend(p,{elem:e,anim:E,queue:E.opts.queue})),E}o.Animation=o.extend(At,{tweeners:{"*":[function(e,n){var r=this.createTween(e,n);return er(r.elem,e,hn.exec(n),r),r}]},tweener:function(e,n){y(e)?(n=e,e=["*"]):e=e.match(Fe);for(var r,s=0,u=e.length;s<u;s++)r=e[s],At.tweeners[r]=At.tweeners[r]||[],At.tweeners[r].unshift(n)},prefilters:[jr],prefilter:function(e,n){n?At.prefilters.unshift(e):At.prefilters.push(e)}}),o.speed=function(e,n,r){var s=e&&typeof e=="object"?o.extend({},e):{complete:r||!r&&n||y(e)&&e,duration:e,easing:r&&n||n&&!y(n)&&n};return o.fx.off?s.duration=0:typeof s.duration!="number"&&(s.duration in o.fx.speeds?s.duration=o.fx.speeds[s.duration]:s.duration=o.fx.speeds._default),(s.queue==null||s.queue===!0)&&(s.queue="fx"),s.old=s.complete,s.complete=function(){y(s.old)&&s.old.call(this),s.queue&&o.dequeue(this,s.queue)},s},o.fn.extend({fadeTo:function(e,n,r,s){return this.filter(In).css("opacity",0).show().end().animate({opacity:n},e,r,s)},animate:function(e,n,r,s){var u=o.isEmptyObject(e),f=o.speed(n,r,s),l=function(){var v=At(this,o.extend({},e),f);(u||ie.get(this,"finish"))&&v.stop(!0)};return l.finish=l,u||f.queue===!1?this.each(l):this.queue(f.queue,l)},stop:function(e,n,r){var s=function(u){var f=u.stop;delete u.stop,f(r)};return typeof e!="string"&&(r=n,n=e,e=void 0),n&&this.queue(e||"fx",[]),this.each(function(){var u=!0,f=e!=null&&e+"queueHooks",l=o.timers,v=ie.get(this);if(f)v[f]&&v[f].stop&&s(v[f]);else for(f in v)v[f]&&v[f].stop&&$r.test(f)&&s(v[f]);for(f=l.length;f--;)l[f].elem===this&&(e==null||l[f].queue===e)&&(l[f].anim.stop(r),u=!1,l.splice(f,1));(u||!r)&&o.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var n,r=ie.get(this),s=r[e+"queue"],u=r[e+"queueHooks"],f=o.timers,l=s?s.length:0;for(r.finish=!0,o.queue(this,e,[]),u&&u.stop&&u.stop.call(this,!0),n=f.length;n--;)f[n].elem===this&&f[n].queue===e&&(f[n].anim.stop(!0),f.splice(n,1));for(n=0;n<l;n++)s[n]&&s[n].finish&&s[n].finish.call(this);delete r.finish})}}),o.each(["toggle","show","hide"],function(e,n){var r=o.fn[n];o.fn[n]=function(s,u,f){return s==null||typeof s=="boolean"?r.apply(this,arguments):this.animate(Yn(n,!0),s,u,f)}}),o.each({slideDown:Yn("show"),slideUp:Yn("hide"),slideToggle:Yn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){o.fn[e]=function(r,s,u){return this.animate(n,r,s,u)}}),o.timers=[],o.fx.tick=function(){var e,n=0,r=o.timers;for(un=Date.now();n<r.length;n++)e=r[n],!e()&&r[n]===e&&r.splice(n--,1);r.length||o.fx.stop(),un=void 0},o.fx.timer=function(e){o.timers.push(e),o.fx.start()},o.fx.interval=13,o.fx.start=function(){Nn||(Nn=!0,Fn())},o.fx.stop=function(){Nn=null},o.fx.speeds={slow:600,fast:200,_default:400},o.fn.delay=function(e,n){return e=o.fx&&o.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(r,s){var u=C.setTimeout(r,e);s.stop=function(){C.clearTimeout(u)}})},(function(){var e=b.createElement("input"),n=b.createElement("select"),r=n.appendChild(b.createElement("option"));e.type="checkbox",A.checkOn=e.value!=="",A.optSelected=r.selected,e=b.createElement("input"),e.value="t",e.type="radio",A.radioValue=e.value==="t"})();var Ui,gn=o.expr.attrHandle;o.fn.extend({attr:function(e,n){return St(this,o.attr,e,n,arguments.length>1)},removeAttr:function(e){return this.each(function(){o.removeAttr(this,e)})}}),o.extend({attr:function(e,n,r){var s,u,f=e.nodeType;if(!(f===3||f===8||f===2)){if(typeof e.getAttribute>"u")return o.prop(e,n,r);if((f!==1||!o.isXMLDoc(e))&&(u=o.attrHooks[n.toLowerCase()]||(o.expr.match.bool.test(n)?Ui:void 0)),r!==void 0){if(r===null){o.removeAttr(e,n);return}return u&&"set"in u&&(s=u.set(e,r,n))!==void 0?s:(e.setAttribute(n,r+""),r)}return u&&"get"in u&&(s=u.get(e,n))!==null?s:(s=o.find.attr(e,n),s??void 0)}},attrHooks:{type:{set:function(e,n){if(!A.radioValue&&n==="radio"&&J(e,"input")){var r=e.value;return e.setAttribute("type",n),r&&(e.value=r),n}}}},removeAttr:function(e,n){var r,s=0,u=n&&n.match(Fe);if(u&&e.nodeType===1)for(;r=u[s++];)e.removeAttribute(r)}}),Ui={set:function(e,n,r){return n===!1?o.removeAttr(e,r):e.setAttribute(r,r),r}},o.each(o.expr.match.bool.source.match(/\w+/g),function(e,n){var r=gn[n]||o.find.attr;gn[n]=function(s,u,f){var l,v,p=u.toLowerCase();return f||(v=gn[p],gn[p]=l,l=r(s,u,f)!=null?p:null,gn[p]=v),l}});var vr=/^(?:input|select|textarea|button)$/i,ui=/^(?:a|area)$/i;o.fn.extend({prop:function(e,n){return St(this,o.prop,e,n,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[o.propFix[e]||e]})}}),o.extend({prop:function(e,n,r){var s,u,f=e.nodeType;if(!(f===3||f===8||f===2))return(f!==1||!o.isXMLDoc(e))&&(n=o.propFix[n]||n,u=o.propHooks[n]),r!==void 0?u&&"set"in u&&(s=u.set(e,r,n))!==void 0?s:e[n]=r:u&&"get"in u&&(s=u.get(e,n))!==null?s:e[n]},propHooks:{tabIndex:{get:function(e){var n=o.find.attr(e,"tabindex");return n?parseInt(n,10):vr.test(e.nodeName)||ui.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(o.propHooks.selected={get:function(e){var n=e.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(e){var n=e.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});function Qt(e){var n=e.match(Fe)||[];return n.join(" ")}function Xt(e){return e.getAttribute&&e.getAttribute("class")||""}function wi(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Fe)||[]:[]}o.fn.extend({addClass:function(e){var n,r,s,u,f,l;return y(e)?this.each(function(v){o(this).addClass(e.call(this,v,Xt(this)))}):(n=wi(e),n.length?this.each(function(){if(s=Xt(this),r=this.nodeType===1&&" "+Qt(s)+" ",r){for(f=0;f<n.length;f++)u=n[f],r.indexOf(" "+u+" ")<0&&(r+=u+" ");l=Qt(r),s!==l&&this.setAttribute("class",l)}}):this)},removeClass:function(e){var n,r,s,u,f,l;return y(e)?this.each(function(v){o(this).removeClass(e.call(this,v,Xt(this)))}):arguments.length?(n=wi(e),n.length?this.each(function(){if(s=Xt(this),r=this.nodeType===1&&" "+Qt(s)+" ",r){for(f=0;f<n.length;f++)for(u=n[f];r.indexOf(" "+u+" ")>-1;)r=r.replace(" "+u+" "," ");l=Qt(r),s!==l&&this.setAttribute("class",l)}}):this):this.attr("class","")},toggleClass:function(e,n){var r,s,u,f,l=typeof e,v=l==="string"||Array.isArray(e);return y(e)?this.each(function(p){o(this).toggleClass(e.call(this,p,Xt(this),n),n)}):typeof n=="boolean"&&v?n?this.addClass(e):this.removeClass(e):(r=wi(e),this.each(function(){if(v)for(f=o(this),u=0;u<r.length;u++)s=r[u],f.hasClass(s)?f.removeClass(s):f.addClass(s);else(e===void 0||l==="boolean")&&(s=Xt(this),s&&ie.set(this,"__className__",s),this.setAttribute&&this.setAttribute("class",s||e===!1?"":ie.get(this,"__className__")||""))}))},hasClass:function(e){var n,r,s=0;for(n=" "+e+" ";r=this[s++];)if(r.nodeType===1&&(" "+Qt(Xt(r))+" ").indexOf(n)>-1)return!0;return!1}});var Ur=/\r/g;o.fn.extend({val:function(e){var n,r,s,u=this[0];return arguments.length?(s=y(e),this.each(function(f){var l;this.nodeType===1&&(s?l=e.call(this,f,o(this).val()):l=e,l==null?l="":typeof l=="number"?l+="":Array.isArray(l)&&(l=o.map(l,function(v){return v==null?"":v+""})),n=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],(!n||!("set"in n)||n.set(this,l,"value")===void 0)&&(this.value=l))})):u?(n=o.valHooks[u.type]||o.valHooks[u.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(u,"value"))!==void 0?r:(r=u.value,typeof r=="string"?r.replace(Ur,""):r??"")):void 0}}),o.extend({valHooks:{option:{get:function(e){var n=o.find.attr(e,"value");return n??Qt(o.text(e))}},select:{get:function(e){var n,r,s,u=e.options,f=e.selectedIndex,l=e.type==="select-one",v=l?null:[],p=l?f+1:u.length;for(f<0?s=p:s=l?f:0;s<p;s++)if(r=u[s],(r.selected||s===f)&&!r.disabled&&(!r.parentNode.disabled||!J(r.parentNode,"optgroup"))){if(n=o(r).val(),l)return n;v.push(n)}return v},set:function(e,n){for(var r,s,u=e.options,f=o.makeArray(n),l=u.length;l--;)s=u[l],(s.selected=o.inArray(o.valHooks.option.get(s),f)>-1)&&(r=!0);return r||(e.selectedIndex=-1),f}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(e,n){if(Array.isArray(n))return e.checked=o.inArray(o(e).val(),n)>-1}},A.checkOn||(o.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Tn=C.location,Wi={guid:Date.now()},fi=/\?/;o.parseXML=function(e){var n,r;if(!e||typeof e!="string")return null;try{n=new C.DOMParser().parseFromString(e,"text/xml")}catch{}return r=n&&n.getElementsByTagName("parsererror")[0],(!n||r)&&o.error("Invalid XML: "+(r?o.map(r.childNodes,function(s){return s.textContent}).join(`
25
25
  `):e)),n};var mr=/^(?:focusinfocus|focusoutblur)$/,yr=function(e){e.stopPropagation()};o.extend(o.event,{trigger:function(e,n,r,s){var u,f,l,v,p,E,B,j,R=[r||b],V=xe.call(e,"type")?e.type:e,se=xe.call(e,"namespace")?e.namespace.split("."):[];if(f=j=l=r=r||b,!(r.nodeType===3||r.nodeType===8)&&!mr.test(V+o.event.triggered)&&(V.indexOf(".")>-1&&(se=V.split("."),V=se.shift(),se.sort()),p=V.indexOf(":")<0&&"on"+V,e=e[o.expando]?e:new o.Event(V,typeof e=="object"&&e),e.isTrigger=s?2:3,e.namespace=se.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+se.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=n==null?[e]:o.makeArray(n,[e]),B=o.event.special[V]||{},!(!s&&B.trigger&&B.trigger.apply(r,n)===!1))){if(!s&&!B.noBubble&&!k(r)){for(v=B.delegateType||V,mr.test(v+V)||(f=f.parentNode);f;f=f.parentNode)R.push(f),l=f;l===(r.ownerDocument||b)&&R.push(l.defaultView||l.parentWindow||C)}for(u=0;(f=R[u++])&&!e.isPropagationStopped();)j=f,e.type=u>1?v:B.bindType||V,E=(ie.get(f,"events")||Object.create(null))[e.type]&&ie.get(f,"handle"),E&&E.apply(f,n),E=p&&f[p],E&&E.apply&&$t(f)&&(e.result=E.apply(f,n),e.result===!1&&e.preventDefault());return e.type=V,!s&&!e.isDefaultPrevented()&&(!B._default||B._default.apply(R.pop(),n)===!1)&&$t(r)&&p&&y(r[V])&&!k(r)&&(l=r[p],l&&(r[p]=null),o.event.triggered=V,e.isPropagationStopped()&&j.addEventListener(V,yr),r[V](),e.isPropagationStopped()&&j.removeEventListener(V,yr),o.event.triggered=void 0,l&&(r[p]=l)),e.result}},simulate:function(e,n,r){var s=o.extend(new o.Event,r,{type:e,isSimulated:!0});o.event.trigger(s,null,n)}}),o.fn.extend({trigger:function(e,n){return this.each(function(){o.event.trigger(e,n,this)})},triggerHandler:function(e,n){var r=this[0];if(r)return o.event.trigger(e,n,r,!0)}});var vo=/\[\]$/,Ki=/\r?\n/g,mo=/^(?:submit|button|image|reset|file)$/i,yo=/^(?:input|select|textarea|keygen)/i;function xi(e,n,r,s){var u;if(Array.isArray(n))o.each(n,function(f,l){r||vo.test(e)?s(e,l):xi(e+"["+(typeof l=="object"&&l!=null?f:"")+"]",l,r,s)});else if(!r&&S(n)==="object")for(u in n)xi(e+"["+u+"]",n[u],r,s);else s(e,n)}o.param=function(e,n){var r,s=[],u=function(f,l){var v=y(l)?l():l;s[s.length]=encodeURIComponent(f)+"="+encodeURIComponent(v??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!o.isPlainObject(e))o.each(e,function(){u(this.name,this.value)});else for(r in e)xi(r,e[r],n,u);return s.join("&")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=o.prop(this,"elements");return e?o.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!o(this).is(":disabled")&&yo.test(this.nodeName)&&!mo.test(e)&&(this.checked||!_n.test(e))}).map(function(e,n){var r=o(this).val();return r==null?null:Array.isArray(r)?o.map(r,function(s){return{name:n.name,value:s.replace(Ki,`\r
26
26
  `)}}):{name:n.name,value:r.replace(Ki,`\r
27
27
  `)}}).get()}});var bo=/%20/g,br=/#.*$/,wo=/([?&])_=[^&]*/,xo=/^(.*?):[ \t]*([^\r\n]*)$/mg,_o=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,To=/^(?:GET|HEAD)$/,Co=/^\/\//,yt={},ht={},wr="*/".concat("*"),_i=b.createElement("a");_i.href=Tn.href;function xr(e){return function(n,r){typeof n!="string"&&(r=n,n="*");var s,u=0,f=n.toLowerCase().match(Fe)||[];if(y(r))for(;s=f[u++];)s[0]==="+"?(s=s.slice(1)||"*",(e[s]=e[s]||[]).unshift(r)):(e[s]=e[s]||[]).push(r)}}function _r(e,n,r,s){var u={},f=e===ht;function l(v){var p;return u[v]=!0,o.each(e[v]||[],function(E,B){var j=B(n,r,s);if(typeof j=="string"&&!f&&!u[j])return n.dataTypes.unshift(j),l(j),!1;if(f)return!(p=j)}),p}return l(n.dataTypes[0])||!u["*"]&&l("*")}function Ti(e,n){var r,s,u=o.ajaxSettings.flatOptions||{};for(r in n)n[r]!==void 0&&((u[r]?e:s||(s={}))[r]=n[r]);return s&&o.extend(!0,e,s),e}function So(e,n,r){for(var s,u,f,l,v=e.contents,p=e.dataTypes;p[0]==="*";)p.shift(),s===void 0&&(s=e.mimeType||n.getResponseHeader("Content-Type"));if(s){for(u in v)if(v[u]&&v[u].test(s)){p.unshift(u);break}}if(p[0]in r)f=p[0];else{for(u in r){if(!p[0]||e.converters[u+" "+p[0]]){f=u;break}l||(l=u)}f=f||l}if(f)return f!==p[0]&&p.unshift(f),r[f]}function Wr(e,n,r,s){var u,f,l,v,p,E={},B=e.dataTypes.slice();if(B[1])for(l in e.converters)E[l.toLowerCase()]=e.converters[l];for(f=B.shift();f;)if(e.responseFields[f]&&(r[e.responseFields[f]]=n),!p&&s&&e.dataFilter&&(n=e.dataFilter(n,e.dataType)),p=f,f=B.shift(),f){if(f==="*")f=p;else if(p!=="*"&&p!==f){if(l=E[p+" "+f]||E["* "+f],!l){for(u in E)if(v=u.split(" "),v[1]===f&&(l=E[p+" "+v[0]]||E["* "+v[0]],l)){l===!0?l=E[u]:E[u]!==!0&&(f=v[0],B.unshift(v[1]));break}}if(l!==!0)if(l&&e.throws)n=l(n);else try{n=l(n)}catch(j){return{state:"parsererror",error:l?j:"No conversion from "+p+" to "+f}}}}return{state:"success",data:n}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:_o.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?Ti(Ti(e,o.ajaxSettings),n):Ti(o.ajaxSettings,e)},ajaxPrefilter:xr(yt),ajaxTransport:xr(ht),ajax:function(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};var r,s,u,f,l,v,p,E,B,j,R=o.ajaxSetup({},n),V=R.context||R,se=R.context&&(V.nodeType||V.jquery)?o(V):o.event,Ae=o.Deferred(),Te=o.Callbacks("once memory"),ot=R.statusCode||{},Ve={},It={},Rt="canceled",ke={readyState:0,getResponseHeader:function(Oe){var $e;if(p){if(!f)for(f={};$e=xo.exec(u);)f[$e[1].toLowerCase()+" "]=(f[$e[1].toLowerCase()+" "]||[]).concat($e[2]);$e=f[Oe.toLowerCase()+" "]}return $e==null?null:$e.join(", ")},getAllResponseHeaders:function(){return p?u:null},setRequestHeader:function(Oe,$e){return p==null&&(Oe=It[Oe.toLowerCase()]=It[Oe.toLowerCase()]||Oe,Ve[Oe]=$e),this},overrideMimeType:function(Oe){return p==null&&(R.mimeType=Oe),this},statusCode:function(Oe){var $e;if(Oe)if(p)ke.always(Oe[ke.status]);else for($e in Oe)ot[$e]=[ot[$e],Oe[$e]];return this},abort:function(Oe){var $e=Oe||Rt;return r&&r.abort($e),Yt(0,$e),this}};if(Ae.promise(ke),R.url=((e||R.url||Tn.href)+"").replace(Co,Tn.protocol+"//"),R.type=n.method||n.type||R.method||R.type,R.dataTypes=(R.dataType||"*").toLowerCase().match(Fe)||[""],R.crossDomain==null){v=b.createElement("a");try{v.href=R.url,v.href=v.href,R.crossDomain=_i.protocol+"//"+_i.host!=v.protocol+"//"+v.host}catch{R.crossDomain=!0}}if(R.data&&R.processData&&typeof R.data!="string"&&(R.data=o.param(R.data,R.traditional)),_r(yt,R,n,ke),p)return ke;E=o.event&&R.global,E&&o.active++===0&&o.event.trigger("ajaxStart"),R.type=R.type.toUpperCase(),R.hasContent=!To.test(R.type),s=R.url.replace(br,""),R.hasContent?R.data&&R.processData&&(R.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(R.data=R.data.replace(bo,"+")):(j=R.url.slice(s.length),R.data&&(R.processData||typeof R.data=="string")&&(s+=(fi.test(s)?"&":"?")+R.data,delete R.data),R.cache===!1&&(s=s.replace(wo,"$1"),j=(fi.test(s)?"&":"?")+"_="+Wi.guid+++j),R.url=s+j),R.ifModified&&(o.lastModified[s]&&ke.setRequestHeader("If-Modified-Since",o.lastModified[s]),o.etag[s]&&ke.setRequestHeader("If-None-Match",o.etag[s])),(R.data&&R.hasContent&&R.contentType!==!1||n.contentType)&&ke.setRequestHeader("Content-Type",R.contentType),ke.setRequestHeader("Accept",R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", "+wr+"; q=0.01":""):R.accepts["*"]);for(B in R.headers)ke.setRequestHeader(B,R.headers[B]);if(R.beforeSend&&(R.beforeSend.call(V,ke,R)===!1||p))return ke.abort();if(Rt="abort",Te.add(R.complete),ke.done(R.success),ke.fail(R.error),r=_r(ht,R,n,ke),!r)Yt(-1,"No Transport");else{if(ke.readyState=1,E&&se.trigger("ajaxSend",[ke,R]),p)return ke;R.async&&R.timeout>0&&(l=C.setTimeout(function(){ke.abort("timeout")},R.timeout));try{p=!1,r.send(Ve,Yt)}catch(Oe){if(p)throw Oe;Yt(-1,Oe)}}function Yt(Oe,$e,Mn,li){var Dt,mn,kt,Ut,Kt,_t=$e;p||(p=!0,l&&C.clearTimeout(l),r=void 0,u=li||"",ke.readyState=Oe>0?4:0,Dt=Oe>=200&&Oe<300||Oe===304,Mn&&(Ut=So(R,ke,Mn)),!Dt&&o.inArray("script",R.dataTypes)>-1&&o.inArray("json",R.dataTypes)<0&&(R.converters["text script"]=function(){}),Ut=Wr(R,Ut,ke,Dt),Dt?(R.ifModified&&(Kt=ke.getResponseHeader("Last-Modified"),Kt&&(o.lastModified[s]=Kt),Kt=ke.getResponseHeader("etag"),Kt&&(o.etag[s]=Kt)),Oe===204||R.type==="HEAD"?_t="nocontent":Oe===304?_t="notmodified":(_t=Ut.state,mn=Ut.data,kt=Ut.error,Dt=!kt)):(kt=_t,(Oe||!_t)&&(_t="error",Oe<0&&(Oe=0))),ke.status=Oe,ke.statusText=($e||_t)+"",Dt?Ae.resolveWith(V,[mn,_t,ke]):Ae.rejectWith(V,[ke,_t,kt]),ke.statusCode(ot),ot=void 0,E&&se.trigger(Dt?"ajaxSuccess":"ajaxError",[ke,R,Dt?mn:kt]),Te.fireWith(V,[ke,_t]),E&&(se.trigger("ajaxComplete",[ke,R]),--o.active||o.event.trigger("ajaxStop")))}return ke},getJSON:function(e,n,r){return o.get(e,n,r,"json")},getScript:function(e,n){return o.get(e,void 0,n,"script")}}),o.each(["get","post"],function(e,n){o[n]=function(r,s,u,f){return y(s)&&(f=f||u,u=s,s=void 0),o.ajax(o.extend({url:r,type:n,dataType:f,data:s,success:u},o.isPlainObject(r)&&r))}}),o.ajaxPrefilter(function(e){var n;for(n in e.headers)n.toLowerCase()==="content-type"&&(e.contentType=e.headers[n]||"")}),o._evalUrl=function(e,n,r){return o.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(s){o.globalEval(s,n,r)}})},o.fn.extend({wrapAll:function(e){var n;return this[0]&&(y(e)&&(e=e.call(this[0])),n=o(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var r=this;r.firstElementChild;)r=r.firstElementChild;return r}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(n){o(this).wrapInner(e.call(this,n))}):this.each(function(){var n=o(this),r=n.contents();r.length?r.wrapAll(e):n.append(e)})},wrap:function(e){var n=y(e);return this.each(function(r){o(this).wrapAll(n?e.call(this,r):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){o(this).replaceWith(this.childNodes)}),this}}),o.expr.pseudos.hidden=function(e){return!o.expr.pseudos.visible(e)},o.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},o.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch{}};var Eo={0:200,1223:204},xt=o.ajaxSettings.xhr();A.cors=!!xt&&"withCredentials"in xt,A.ajax=xt=!!xt,o.ajaxTransport(function(e){var n,r;if(A.cors||xt&&!e.crossDomain)return{send:function(s,u){var f,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(f in e.xhrFields)l[f]=e.xhrFields[f];e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),!e.crossDomain&&!s["X-Requested-With"]&&(s["X-Requested-With"]="XMLHttpRequest");for(f in s)l.setRequestHeader(f,s[f]);n=function(v){return function(){n&&(n=r=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,v==="abort"?l.abort():v==="error"?typeof l.status!="number"?u(0,"error"):u(l.status,l.statusText):u(Eo[l.status]||l.status,l.statusText,(l.responseType||"text")!=="text"||typeof l.responseText!="string"?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),r=l.onerror=l.ontimeout=n("error"),l.onabort!==void 0?l.onabort=r:l.onreadystatechange=function(){l.readyState===4&&C.setTimeout(function(){n&&r()})},n=n("abort");try{l.send(e.hasContent&&e.data||null)}catch(v){if(n)throw v}},abort:function(){n&&n()}}}),o.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return o.globalEval(e),e}}}),o.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),o.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var n,r;return{send:function(s,u){n=o("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(f){n.remove(),r=null,f&&u(f.type==="error"?404:200,f.type)}),b.head.appendChild(n[0])},abort:function(){r&&r()}}}});var Ci=[],vn=/(=)\?(?=&|$)|\?\?/;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ci.pop()||o.expando+"_"+Wi.guid++;return this[e]=!0,e}}),o.ajaxPrefilter("json jsonp",function(e,n,r){var s,u,f,l=e.jsonp!==!1&&(vn.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&vn.test(e.data)&&"data");if(l||e.dataTypes[0]==="jsonp")return s=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(vn,"$1"+s):e.jsonp!==!1&&(e.url+=(fi.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return f||o.error(s+" was not called"),f[0]},e.dataTypes[0]="json",u=C[s],C[s]=function(){f=arguments},r.always(function(){u===void 0?o(C).removeProp(s):C[s]=u,e[s]&&(e.jsonpCallback=n.jsonpCallback,Ci.push(s)),f&&y(u)&&u(f[0]),f=u=void 0}),"script"}),A.createHTMLDocument=(function(){var e=b.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2})(),o.parseHTML=function(e,n,r){if(typeof e!="string")return[];typeof n=="boolean"&&(r=n,n=!1);var s,u,f;return n||(A.createHTMLDocument?(n=b.implementation.createHTMLDocument(""),s=n.createElement("base"),s.href=b.location.href,n.head.appendChild(s)):n=b),u=me.exec(e),f=!r&&[],u?[n.createElement(u[1])]:(u=rr([e],n,f),f&&f.length&&o(f).remove(),o.merge([],u.childNodes))},o.fn.load=function(e,n,r){var s,u,f,l=this,v=e.indexOf(" ");return v>-1&&(s=Qt(e.slice(v)),e=e.slice(0,v)),y(n)?(r=n,n=void 0):n&&typeof n=="object"&&(u="POST"),l.length>0&&o.ajax({url:e,type:u||"GET",dataType:"html",data:n}).done(function(p){f=arguments,l.html(s?o("<div>").append(o.parseHTML(p)).find(s):p)}).always(r&&function(p,E){l.each(function(){r.apply(this,f||[p.responseText,E,p])})}),this},o.expr.pseudos.animated=function(e){return o.grep(o.timers,function(n){return e===n.elem}).length},o.offset={setOffset:function(e,n,r){var s,u,f,l,v,p,E,B=o.css(e,"position"),j=o(e),R={};B==="static"&&(e.style.position="relative"),v=j.offset(),f=o.css(e,"top"),p=o.css(e,"left"),E=(B==="absolute"||B==="fixed")&&(f+p).indexOf("auto")>-1,E?(s=j.position(),l=s.top,u=s.left):(l=parseFloat(f)||0,u=parseFloat(p)||0),y(n)&&(n=n.call(e,r,o.extend({},v))),n.top!=null&&(R.top=n.top-v.top+l),n.left!=null&&(R.left=n.left-v.left+u),"using"in n?n.using.call(e,R):j.css(R)}},o.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(u){o.offset.setOffset(this,e,u)});var n,r,s=this[0];if(s)return s.getClientRects().length?(n=s.getBoundingClientRect(),r=s.ownerDocument.defaultView,{top:n.top+r.pageYOffset,left:n.left+r.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,n,r,s=this[0],u={top:0,left:0};if(o.css(s,"position")==="fixed")n=s.getBoundingClientRect();else{for(n=this.offset(),r=s.ownerDocument,e=s.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&o.css(e,"position")==="static";)e=e.parentNode;e&&e!==s&&e.nodeType===1&&(u=o(e).offset(),u.top+=o.css(e,"borderTopWidth",!0),u.left+=o.css(e,"borderLeftWidth",!0))}return{top:n.top-u.top-o.css(s,"marginTop",!0),left:n.left-u.left-o.css(s,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&o.css(e,"position")==="static";)e=e.offsetParent;return e||Wt})}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=n==="pageYOffset";o.fn[e]=function(s){return St(this,function(u,f,l){var v;if(k(u)?v=u:u.nodeType===9&&(v=u.defaultView),l===void 0)return v?v[n]:u[f];v?v.scrollTo(r?v.pageXOffset:l,r?l:v.pageYOffset):u[f]=l},e,s,arguments.length)}}),o.each(["top","left"],function(e,n){o.cssHooks[n]=si(A.pixelPosition,function(r,s){if(s)return s=Rn(r,n),mi.test(s)?o(r).position()[n]+"px":s})}),o.each({Height:"height",Width:"width"},function(e,n){o.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,s){o.fn[s]=function(u,f){var l=arguments.length&&(r||typeof u!="boolean"),v=r||(u===!0||f===!0?"margin":"border");return St(this,function(p,E,B){var j;return k(p)?s.indexOf("outer")===0?p["inner"+e]:p.document.documentElement["client"+e]:p.nodeType===9?(j=p.documentElement,Math.max(p.body["scroll"+e],j["scroll"+e],p.body["offset"+e],j["offset"+e],j["client"+e])):B===void 0?o.css(p,E,v):o.style(p,E,B,v)},n,l?u:void 0,l)}})}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,n){o.fn[n]=function(r){return this.on(n,r)}}),o.fn.extend({bind:function(e,n,r){return this.on(e,null,n,r)},unbind:function(e,n){return this.off(e,null,n)},delegate:function(e,n,r,s){return this.on(n,e,r,s)},undelegate:function(e,n,r){return arguments.length===1?this.off(e,"**"):this.off(n,e||"**",r)},hover:function(e,n){return this.on("mouseenter",e).on("mouseleave",n||e)}}),o.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){o.fn[n]=function(r,s){return arguments.length>0?this.on(n,null,r,s):this.trigger(n)}});var Kr=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;o.proxy=function(e,n){var r,s,u;if(typeof n=="string"&&(r=e[n],n=e,e=r),!!y(e))return s=ee.call(arguments,2),u=function(){return e.apply(n||this,s.concat(ee.call(arguments)))},u.guid=e.guid=e.guid||o.guid++,u},o.holdReady=function(e){e?o.readyWait++:o.ready(!0)},o.isArray=Array.isArray,o.parseJSON=JSON.parse,o.nodeName=J,o.isFunction=y,o.isWindow=k,o.camelCase=bt,o.type=S,o.now=Date.now,o.isNumeric=function(e){var n=o.type(e);return(n==="number"||n==="string")&&!isNaN(e-parseFloat(e))},o.trim=function(e){return e==null?"":(e+"").replace(Kr,"$1")};var Tr=C.jQuery,fn=C.$;return o.noConflict=function(e){return C.$===o&&(C.$=fn),e&&C.jQuery===o&&(C.jQuery=Tr),o},typeof c>"u"&&(C.jQuery=C.$=o),o})})(Ko)),Ko.exports}var Vo={exports:{}};var El=Vo.exports,ru;function Al(){return ru||(ru=1,(function($){(function(C,c){$.exports?$.exports=c(Go()):C.Bloodhound=c(C.jQuery)})(El,function(C){var c=(function(){return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(D){return!D||/^\s*$/.test(D)},escapeRegExChars:function(D){return D.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(D){return typeof D=="string"},isNumber:function(D){return typeof D=="number"},isArray:C.isArray,isFunction:C.isFunction,isObject:C.isPlainObject,isUndefined:function(D){return typeof D>"u"},isElement:function(D){return!!(D&&D.nodeType===1)},isJQuery:function(D){return D instanceof C},toStr:function(A){return c.isUndefined(A)||A===null?"":A+""},bind:C.proxy,each:function(D,A){C.each(D,y);function y(k,b){return A(b,k)}},map:C.map,filter:C.grep,every:function(D,A){var y=!0;return D?(C.each(D,function(k,b){if(!(y=A.call(null,b,k,D)))return!1}),!!y):y},some:function(D,A){var y=!1;return D?(C.each(D,function(k,b){if(y=A.call(null,b,k,D))return!1}),!!y):y},mixin:C.extend,identity:function(D){return D},clone:function(D){return C.extend(!0,{},D)},getIdGenerator:function(){var D=0;return function(){return D++}},templatify:function(A){return C.isFunction(A)?A:y;function y(){return String(A)}},defer:function(D){setTimeout(D,0)},debounce:function(D,A,y){var k,b;return function(){var T=this,g=arguments,S,H;return S=function(){k=null,y||(b=D.apply(T,g))},H=y&&!k,clearTimeout(k),k=setTimeout(S,A),H&&(b=D.apply(T,g)),b}},throttle:function(D,A){var y,k,b,T,g,S;return g=0,S=function(){g=new Date,b=null,T=D.apply(y,k)},function(){var H=new Date,K=A-(H-g);return y=this,k=arguments,K<=0?(clearTimeout(b),b=null,g=H,T=D.apply(y,k)):b||(b=setTimeout(S,K)),T}},stringify:function(D){return c.isString(D)?D:JSON.stringify(D)},guid:function(){function D(A){var y=(Math.random().toString(16)+"000000000").substr(2,8);return A?"-"+y.substr(0,4)+"-"+y.substr(4,4):y}return"tt-"+D()+D(!0)+D(!0)+D()},noop:function(){}}})(),W="1.0.4",Z=(function(){return{nonword:A,whitespace:D,ngram:y,obj:{nonword:k(A),whitespace:k(D),ngram:k(y)}};function D(b){return b=c.toStr(b),b?b.split(/\s+/):[]}function A(b){return b=c.toStr(b),b?b.split(/\W+/):[]}function y(b){b=c.toStr(b);var T=[],g="";return c.each(b.split(""),function(S){S.match(/\s+/)?g="":(T.push(g+S),g+=S)}),T}function k(b){return function(g){return g=c.isArray(g)?g:[].slice.call(arguments,0),function(H){var K=[];return c.each(g,function(o){K=K.concat(b(c.toStr(H[o])))}),K}}}})(),ee=(function(){function D(k){this.maxSize=c.isNumber(k)?k:100,this.reset(),this.maxSize<=0&&(this.set=this.get=C.noop)}c.mixin(D.prototype,{set:function(b,T){var g=this.list.tail,S;this.size>=this.maxSize&&(this.list.remove(g),delete this.hash[g.key],this.size--),(S=this.hash[b])?(S.val=T,this.list.moveToFront(S)):(S=new y(b,T),this.list.add(S),this.hash[b]=S,this.size++)},get:function(b){var T=this.hash[b];if(T)return this.list.moveToFront(T),T.val},reset:function(){this.size=0,this.hash={},this.list=new A}});function A(){this.head=this.tail=null}c.mixin(A.prototype,{add:function(b){this.head&&(b.next=this.head,this.head.prev=b),this.head=b,this.tail=this.tail||b},remove:function(b){b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev},moveToFront:function(k){this.remove(k),this.add(k)}});function y(k,b){this.key=k,this.val=b,this.prev=this.next=null}return D})(),he=(function(){var D;try{D=window.localStorage,D.setItem("~~~","!"),D.removeItem("~~~")}catch{D=null}function A(g,S){this.prefix=["__",g,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+c.escapeRegExChars(this.prefix)),this.ls=S||D,!this.ls&&this._noop()}return c.mixin(A.prototype,{_prefix:function(g){return this.prefix+g},_ttlKey:function(g){return this._prefix(g)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=c.noop},_safeSet:function(g,S){try{this.ls.setItem(g,S)}catch(H){H.name==="QuotaExceededError"&&(this.clear(),this._noop())}},get:function(g){return this.isExpired(g)&&this.remove(g),b(this.ls.getItem(this._prefix(g)))},set:function(g,S,H){return c.isNumber(H)?this._safeSet(this._ttlKey(g),k(y()+H)):this.ls.removeItem(this._ttlKey(g)),this._safeSet(this._prefix(g),k(S))},remove:function(g){return this.ls.removeItem(this._ttlKey(g)),this.ls.removeItem(this._prefix(g)),this},clear:function(){var g,S=T(this.keyMatcher);for(g=S.length;g--;)this.remove(S[g]);return this},isExpired:function(g){var S=b(this.ls.getItem(this._ttlKey(g)));return!!(c.isNumber(S)&&y()>S)}}),A;function y(){return new Date().getTime()}function k(g){return JSON.stringify(c.isUndefined(g)?null:g)}function b(g){return C.parseJSON(g)}function T(g){var S,H,K=[],o=D.length;for(S=0;S<o;S++)(H=D.key(S)).match(g)&&K.push(H.replace(g,""));return K}})(),Ee=(function(){var D=0,A={},y=new ee(10);function k(b){b=b||{},this.maxPendingRequests=b.maxPendingRequests||6,this.cancelled=!1,this.lastReq=null,this._send=b.transport,this._get=b.limiter?b.limiter(this._get):this._get,this._cache=b.cache===!1?new ee(0):y}return k.setMaxPendingRequests=function(T){this.maxPendingRequests=T},k.resetCache=function(){y.reset()},c.mixin(k.prototype,{_fingerprint:function(T){return T=T||{},T.url+T.type+C.param(T.data||{})},_get:function(b,T){var g=this,S,H;if(S=this._fingerprint(b),this.cancelled||S!==this.lastReq)return;(H=A[S])?H.done(K).fail(o):D<this.maxPendingRequests?(D++,A[S]=this._send(b).done(K).fail(o).always(Y)):this.onDeckRequestArgs=[].slice.call(arguments,0);function K(J){T(null,J),g._cache.set(S,J)}function o(){T(!0)}function Y(){D--,delete A[S],g.onDeckRequestArgs&&(g._get.apply(g,g.onDeckRequestArgs),g.onDeckRequestArgs=null)}},get:function(b,T){var g,S;T=T||C.noop,b=c.isString(b)?{url:b}:b||{},S=this._fingerprint(b),this.cancelled=!1,this.lastReq=S,(g=this._cache.get(S))?T(null,g):this._get(b,T)},cancel:function(){this.cancelled=!0}}),k})(),ye=window.SearchIndex=(function(){var D="c",A="i";function y(S){S=S||{},(!S.datumTokenizer||!S.queryTokenizer)&&C.error("datumTokenizer and queryTokenizer are both required"),this.identify=S.identify||c.stringify,this.datumTokenizer=S.datumTokenizer,this.queryTokenizer=S.queryTokenizer,this.matchAnyQueryToken=S.matchAnyQueryToken,this.reset()}return c.mixin(y.prototype,{bootstrap:function(H){this.datums=H.datums,this.trie=H.trie},add:function(S){var H=this;S=c.isArray(S)?S:[S],c.each(S,function(K){var o,Y;H.datums[o=H.identify(K)]=K,Y=k(H.datumTokenizer(K)),c.each(Y,function(J){var fe,Ie,nt;for(fe=H.trie,Ie=J.split("");nt=Ie.shift();)fe=fe[D][nt]||(fe[D][nt]=b()),fe[A].push(o)})})},get:function(H){var K=this;return c.map(H,function(o){return K.datums[o]})},search:function(H){var K=this,o,Y;return o=k(this.queryTokenizer(H)),c.each(o,function(J){var fe,Ie,nt,Ce;if(Y&&Y.length===0&&!K.matchAnyQueryToken)return!1;for(fe=K.trie,Ie=J.split("");fe&&(nt=Ie.shift());)fe=fe[D][nt];if(fe&&Ie.length===0)Ce=fe[A].slice(0),Y=Y?g(Y,Ce):Ce;else if(!K.matchAnyQueryToken)return Y=[],!1}),Y?c.map(T(Y),function(J){return K.datums[J]}):[]},all:function(){var H=[];for(var K in this.datums)H.push(this.datums[K]);return H},reset:function(){this.datums={},this.trie=b()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),y;function k(S){return S=c.filter(S,function(H){return!!H}),S=c.map(S,function(H){return H.toLowerCase()}),S}function b(){var S={};return S[A]=[],S[D]={},S}function T(S){for(var H={},K=[],o=0,Y=S.length;o<Y;o++)H[S[o]]||(H[S[o]]=!0,K.push(S[o]));return K}function g(S,H){var K=0,o=0,Y=[];S=S.sort(),H=H.sort();for(var J=S.length,fe=H.length;K<J&&o<fe;)S[K]<H[o]?K++:(S[K]>H[o]||(Y.push(S[K]),K++),o++);return Y}})(),we=(function(){var D;D={data:"data",protocol:"protocol",thumbprint:"thumbprint"};function A(y){this.url=y.url,this.ttl=y.ttl,this.cache=y.cache,this.prepare=y.prepare,this.transform=y.transform,this.transport=y.transport,this.thumbprint=y.thumbprint,this.storage=new he(y.cacheKey)}return c.mixin(A.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(k){this.cache&&(this.storage.set(D.data,k,this.ttl),this.storage.set(D.protocol,location.protocol,this.ttl),this.storage.set(D.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var k={},b;return this.cache?(k.data=this.storage.get(D.data),k.protocol=this.storage.get(D.protocol),k.thumbprint=this.storage.get(D.thumbprint),b=k.thumbprint!==this.thumbprint||k.protocol!==location.protocol,k.data&&!b?k.data:null):null},fromNetwork:function(y){var k=this,b;if(!y)return;b=this.prepare(this._settings()),this.transport(b).fail(T).done(g);function T(){y(!0)}function g(S){y(null,k.transform(S))}},clear:function(){return this.storage.clear(),this}}),A})(),qe=(function(){function D(A){this.url=A.url,this.prepare=A.prepare,this.transform=A.transform,this.indexResponse=A.indexResponse,this.transport=new Ee({cache:A.cache,limiter:A.limiter,transport:A.transport,maxPendingRequests:A.maxPendingRequests})}return c.mixin(D.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(y,k){var b=this,T;if(!k)return;return y=y||"",T=this.prepare(y,this._settings()),this.transport.get(T,g);function g(S,H){k(S?[]:b.transform(H))}},cancelLastRequest:function(){this.transport.cancel()}}),D})(),xe=(function(){return function(g){var S,H;return S={initialize:!0,identify:c.stringify,datumTokenizer:null,queryTokenizer:null,matchAnyQueryToken:!1,sufficient:5,indexRemote:!1,sorter:null,local:[],prefetch:null,remote:null},g=c.mixin(S,g||{}),!g.datumTokenizer&&C.error("datumTokenizer is required"),!g.queryTokenizer&&C.error("queryTokenizer is required"),H=g.sorter,g.sorter=H?function(K){return K.sort(H)}:c.identity,g.local=c.isFunction(g.local)?g.local():g.local,g.prefetch=D(g.prefetch),g.remote=A(g.remote),g};function D(T){var g;return T?(g={url:null,ttl:1440*60*1e3,cache:!0,cacheKey:null,thumbprint:"",prepare:c.identity,transform:c.identity,transport:null},T=c.isString(T)?{url:T}:T,T=c.mixin(g,T),!T.url&&C.error("prefetch requires url to be set"),T.transform=T.filter||T.transform,T.cacheKey=T.cacheKey||T.url,T.thumbprint=W+T.thumbprint,T.transport=T.transport?b(T.transport):C.ajax,T):null}function A(T){var g;if(T)return g={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:c.identity,transport:null},T=c.isString(T)?{url:T}:T,T=c.mixin(g,T),!T.url&&C.error("remote requires url to be set"),T.transform=T.filter||T.transform,T.prepare=y(T),T.limiter=k(T),T.transport=T.transport?b(T.transport):C.ajax,delete T.replace,delete T.wildcard,delete T.rateLimitBy,delete T.rateLimitWait,T}function y(T){var g,S,H;if(g=T.prepare,S=T.replace,H=T.wildcard,g)return g;return S?g=K:T.wildcard?g=o:g=Y,g;function K(J,fe){return fe.url=S(fe.url,J),fe}function o(J,fe){return fe.url=fe.url.replace(H,encodeURIComponent(J)),fe}function Y(J,fe){return fe}}function k(T){var g,S,H;return g=T.limiter,S=T.rateLimitBy,H=T.rateLimitWait,g||(g=/^throttle$/i.test(S)?o(H):K(H)),g;function K(Y){return function(fe){return c.debounce(fe,Y)}}function o(Y){return function(fe){return c.throttle(fe,Y)}}}function b(T){return function(S){var H=C.Deferred();return T(S,K,o),H;function K(Y){c.defer(function(){H.resolve(Y)})}function o(Y){c.defer(function(){H.reject(Y)})}}}})(),_e=(function(){var D;D=window&&window.Bloodhound;function A(y){y=xe(y),this.sorter=y.sorter,this.identify=y.identify,this.sufficient=y.sufficient,this.indexRemote=y.indexRemote,this.local=y.local,this.remote=y.remote?new qe(y.remote):null,this.prefetch=y.prefetch?new we(y.prefetch):null,this.index=new ye({identify:this.identify,datumTokenizer:y.datumTokenizer,queryTokenizer:y.queryTokenizer}),y.initialize!==!1&&this.initialize()}return A.noConflict=function(){return window&&(window.Bloodhound=D),A},A.tokenizers=Z,c.mixin(A.prototype,{__ttAdapter:function(){var k=this;return this.remote?b:T;function b(g,S,H){return k.search(g,S,H)}function T(g,S){return k.search(g,S)}},_loadPrefetch:function(){var k=this,b,T;return b=C.Deferred(),this.prefetch?(T=this.prefetch.fromCache())?(this.index.bootstrap(T),b.resolve()):this.prefetch.fromNetwork(g):b.resolve(),b.promise();function g(S,H){if(S)return b.reject();k.add(H),k.prefetch.store(k.index.serialize()),b.resolve()}},_initialize:function(){var k=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(b),this.initPromise;function b(){k.add(k.local)}},initialize:function(k){return!this.initPromise||k?this._initialize():this.initPromise},add:function(k){return this.index.add(k),this},get:function(k){return k=c.isArray(k)?k:[].slice.call(arguments),this.index.get(k)},search:function(k,b,T){var g=this,S;return b=b||c.noop,T=T||c.noop,S=this.sorter(this.index.search(k)),b(this.remote?S.slice():S),this.remote&&S.length<this.sufficient?this.remote.get(k,H):this.remote&&this.remote.cancelLastRequest(),this;function H(K){var o=[];c.each(K,function(Y){!c.some(S,function(J){return g.identify(Y)===g.identify(J)})&&o.push(Y)}),g.indexRemote&&g.add(o),T(o)}},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return Ee.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),A})();return _e})})(Vo)),Vo.exports}var zo={exports:{}};var ou=zo.exports,su;function kl(){return su||(su=1,(function($){(function(C,c){$.exports?$.exports=c(Go()):C.Bloodhound=c(C.jQuery)})(ou,function(C){var c=(function(){return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(D){return!D||/^\s*$/.test(D)},escapeRegExChars:function(D){return D.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(D){return typeof D=="string"},isNumber:function(D){return typeof D=="number"},isArray:C.isArray,isFunction:C.isFunction,isObject:C.isPlainObject,isUndefined:function(D){return typeof D>"u"},isElement:function(D){return!!(D&&D.nodeType===1)},isJQuery:function(D){return D instanceof C},toStr:function(A){return c.isUndefined(A)||A===null?"":A+""},bind:C.proxy,each:function(D,A){C.each(D,y);function y(k,b){return A(b,k)}},map:C.map,filter:C.grep,every:function(D,A){var y=!0;return D?(C.each(D,function(k,b){if(!(y=A.call(null,b,k,D)))return!1}),!!y):y},some:function(D,A){var y=!1;return D?(C.each(D,function(k,b){if(y=A.call(null,b,k,D))return!1}),!!y):y},mixin:C.extend,identity:function(D){return D},clone:function(D){return C.extend(!0,{},D)},getIdGenerator:function(){var D=0;return function(){return D++}},templatify:function(A){return C.isFunction(A)?A:y;function y(){return String(A)}},defer:function(D){setTimeout(D,0)},debounce:function(D,A,y){var k,b;return function(){var T=this,g=arguments,S,H;return S=function(){k=null,y||(b=D.apply(T,g))},H=y&&!k,clearTimeout(k),k=setTimeout(S,A),H&&(b=D.apply(T,g)),b}},throttle:function(D,A){var y,k,b,T,g,S;return g=0,S=function(){g=new Date,b=null,T=D.apply(y,k)},function(){var H=new Date,K=A-(H-g);return y=this,k=arguments,K<=0?(clearTimeout(b),b=null,g=H,T=D.apply(y,k)):b||(b=setTimeout(S,K)),T}},stringify:function(D){return c.isString(D)?D:JSON.stringify(D)},guid:function(){function D(A){var y=(Math.random().toString(16)+"000000000").substr(2,8);return A?"-"+y.substr(0,4)+"-"+y.substr(4,4):y}return"tt-"+D()+D(!0)+D(!0)+D()},noop:function(){}}})(),W="1.0.4",Z=(function(){return{nonword:A,whitespace:D,ngram:y,obj:{nonword:k(A),whitespace:k(D),ngram:k(y)}};function D(b){return b=c.toStr(b),b?b.split(/\s+/):[]}function A(b){return b=c.toStr(b),b?b.split(/\W+/):[]}function y(b){b=c.toStr(b);var T=[],g="";return c.each(b.split(""),function(S){S.match(/\s+/)?g="":(T.push(g+S),g+=S)}),T}function k(b){return function(g){return g=c.isArray(g)?g:[].slice.call(arguments,0),function(H){var K=[];return c.each(g,function(o){K=K.concat(b(c.toStr(H[o])))}),K}}}})(),ee=(function(){function D(k){this.maxSize=c.isNumber(k)?k:100,this.reset(),this.maxSize<=0&&(this.set=this.get=C.noop)}c.mixin(D.prototype,{set:function(b,T){var g=this.list.tail,S;this.size>=this.maxSize&&(this.list.remove(g),delete this.hash[g.key],this.size--),(S=this.hash[b])?(S.val=T,this.list.moveToFront(S)):(S=new y(b,T),this.list.add(S),this.hash[b]=S,this.size++)},get:function(b){var T=this.hash[b];if(T)return this.list.moveToFront(T),T.val},reset:function(){this.size=0,this.hash={},this.list=new A}});function A(){this.head=this.tail=null}c.mixin(A.prototype,{add:function(b){this.head&&(b.next=this.head,this.head.prev=b),this.head=b,this.tail=this.tail||b},remove:function(b){b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev},moveToFront:function(k){this.remove(k),this.add(k)}});function y(k,b){this.key=k,this.val=b,this.prev=this.next=null}return D})(),he=(function(){var D;try{D=window.localStorage,D.setItem("~~~","!"),D.removeItem("~~~")}catch{D=null}function A(g,S){this.prefix=["__",g,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+c.escapeRegExChars(this.prefix)),this.ls=S||D,!this.ls&&this._noop()}return c.mixin(A.prototype,{_prefix:function(g){return this.prefix+g},_ttlKey:function(g){return this._prefix(g)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=c.noop},_safeSet:function(g,S){try{this.ls.setItem(g,S)}catch(H){H.name==="QuotaExceededError"&&(this.clear(),this._noop())}},get:function(g){return this.isExpired(g)&&this.remove(g),b(this.ls.getItem(this._prefix(g)))},set:function(g,S,H){return c.isNumber(H)?this._safeSet(this._ttlKey(g),k(y()+H)):this.ls.removeItem(this._ttlKey(g)),this._safeSet(this._prefix(g),k(S))},remove:function(g){return this.ls.removeItem(this._ttlKey(g)),this.ls.removeItem(this._prefix(g)),this},clear:function(){var g,S=T(this.keyMatcher);for(g=S.length;g--;)this.remove(S[g]);return this},isExpired:function(g){var S=b(this.ls.getItem(this._ttlKey(g)));return!!(c.isNumber(S)&&y()>S)}}),A;function y(){return new Date().getTime()}function k(g){return JSON.stringify(c.isUndefined(g)?null:g)}function b(g){return C.parseJSON(g)}function T(g){var S,H,K=[],o=D.length;for(S=0;S<o;S++)(H=D.key(S)).match(g)&&K.push(H.replace(g,""));return K}})(),Ee=(function(){var D=0,A={},y=new ee(10);function k(b){b=b||{},this.maxPendingRequests=b.maxPendingRequests||6,this.cancelled=!1,this.lastReq=null,this._send=b.transport,this._get=b.limiter?b.limiter(this._get):this._get,this._cache=b.cache===!1?new ee(0):y}return k.setMaxPendingRequests=function(T){this.maxPendingRequests=T},k.resetCache=function(){y.reset()},c.mixin(k.prototype,{_fingerprint:function(T){return T=T||{},T.url+T.type+C.param(T.data||{})},_get:function(b,T){var g=this,S,H;if(S=this._fingerprint(b),this.cancelled||S!==this.lastReq)return;(H=A[S])?H.done(K).fail(o):D<this.maxPendingRequests?(D++,A[S]=this._send(b).done(K).fail(o).always(Y)):this.onDeckRequestArgs=[].slice.call(arguments,0);function K(J){T(null,J),g._cache.set(S,J)}function o(){T(!0)}function Y(){D--,delete A[S],g.onDeckRequestArgs&&(g._get.apply(g,g.onDeckRequestArgs),g.onDeckRequestArgs=null)}},get:function(b,T){var g,S;T=T||C.noop,b=c.isString(b)?{url:b}:b||{},S=this._fingerprint(b),this.cancelled=!1,this.lastReq=S,(g=this._cache.get(S))?T(null,g):this._get(b,T)},cancel:function(){this.cancelled=!0}}),k})(),ye=window.SearchIndex=(function(){var D="c",A="i";function y(S){S=S||{},(!S.datumTokenizer||!S.queryTokenizer)&&C.error("datumTokenizer and queryTokenizer are both required"),this.identify=S.identify||c.stringify,this.datumTokenizer=S.datumTokenizer,this.queryTokenizer=S.queryTokenizer,this.matchAnyQueryToken=S.matchAnyQueryToken,this.reset()}return c.mixin(y.prototype,{bootstrap:function(H){this.datums=H.datums,this.trie=H.trie},add:function(S){var H=this;S=c.isArray(S)?S:[S],c.each(S,function(K){var o,Y;H.datums[o=H.identify(K)]=K,Y=k(H.datumTokenizer(K)),c.each(Y,function(J){var fe,Ie,nt;for(fe=H.trie,Ie=J.split("");nt=Ie.shift();)fe=fe[D][nt]||(fe[D][nt]=b()),fe[A].push(o)})})},get:function(H){var K=this;return c.map(H,function(o){return K.datums[o]})},search:function(H){var K=this,o,Y;return o=k(this.queryTokenizer(H)),c.each(o,function(J){var fe,Ie,nt,Ce;if(Y&&Y.length===0&&!K.matchAnyQueryToken)return!1;for(fe=K.trie,Ie=J.split("");fe&&(nt=Ie.shift());)fe=fe[D][nt];if(fe&&Ie.length===0)Ce=fe[A].slice(0),Y=Y?g(Y,Ce):Ce;else if(!K.matchAnyQueryToken)return Y=[],!1}),Y?c.map(T(Y),function(J){return K.datums[J]}):[]},all:function(){var H=[];for(var K in this.datums)H.push(this.datums[K]);return H},reset:function(){this.datums={},this.trie=b()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),y;function k(S){return S=c.filter(S,function(H){return!!H}),S=c.map(S,function(H){return H.toLowerCase()}),S}function b(){var S={};return S[A]=[],S[D]={},S}function T(S){for(var H={},K=[],o=0,Y=S.length;o<Y;o++)H[S[o]]||(H[S[o]]=!0,K.push(S[o]));return K}function g(S,H){var K=0,o=0,Y=[];S=S.sort(),H=H.sort();for(var J=S.length,fe=H.length;K<J&&o<fe;)S[K]<H[o]?K++:(S[K]>H[o]||(Y.push(S[K]),K++),o++);return Y}})(),we=(function(){var D;D={data:"data",protocol:"protocol",thumbprint:"thumbprint"};function A(y){this.url=y.url,this.ttl=y.ttl,this.cache=y.cache,this.prepare=y.prepare,this.transform=y.transform,this.transport=y.transport,this.thumbprint=y.thumbprint,this.storage=new he(y.cacheKey)}return c.mixin(A.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(k){this.cache&&(this.storage.set(D.data,k,this.ttl),this.storage.set(D.protocol,location.protocol,this.ttl),this.storage.set(D.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var k={},b;return this.cache?(k.data=this.storage.get(D.data),k.protocol=this.storage.get(D.protocol),k.thumbprint=this.storage.get(D.thumbprint),b=k.thumbprint!==this.thumbprint||k.protocol!==location.protocol,k.data&&!b?k.data:null):null},fromNetwork:function(y){var k=this,b;if(!y)return;b=this.prepare(this._settings()),this.transport(b).fail(T).done(g);function T(){y(!0)}function g(S){y(null,k.transform(S))}},clear:function(){return this.storage.clear(),this}}),A})(),qe=(function(){function D(A){this.url=A.url,this.prepare=A.prepare,this.transform=A.transform,this.indexResponse=A.indexResponse,this.transport=new Ee({cache:A.cache,limiter:A.limiter,transport:A.transport,maxPendingRequests:A.maxPendingRequests})}return c.mixin(D.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(y,k){var b=this,T;if(!k)return;return y=y||"",T=this.prepare(y,this._settings()),this.transport.get(T,g);function g(S,H){k(S?[]:b.transform(H))}},cancelLastRequest:function(){this.transport.cancel()}}),D})(),xe=(function(){return function(g){var S,H;return S={initialize:!0,identify:c.stringify,datumTokenizer:null,queryTokenizer:null,matchAnyQueryToken:!1,sufficient:5,indexRemote:!1,sorter:null,local:[],prefetch:null,remote:null},g=c.mixin(S,g||{}),!g.datumTokenizer&&C.error("datumTokenizer is required"),!g.queryTokenizer&&C.error("queryTokenizer is required"),H=g.sorter,g.sorter=H?function(K){return K.sort(H)}:c.identity,g.local=c.isFunction(g.local)?g.local():g.local,g.prefetch=D(g.prefetch),g.remote=A(g.remote),g};function D(T){var g;return T?(g={url:null,ttl:1440*60*1e3,cache:!0,cacheKey:null,thumbprint:"",prepare:c.identity,transform:c.identity,transport:null},T=c.isString(T)?{url:T}:T,T=c.mixin(g,T),!T.url&&C.error("prefetch requires url to be set"),T.transform=T.filter||T.transform,T.cacheKey=T.cacheKey||T.url,T.thumbprint=W+T.thumbprint,T.transport=T.transport?b(T.transport):C.ajax,T):null}function A(T){var g;if(T)return g={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:c.identity,transport:null},T=c.isString(T)?{url:T}:T,T=c.mixin(g,T),!T.url&&C.error("remote requires url to be set"),T.transform=T.filter||T.transform,T.prepare=y(T),T.limiter=k(T),T.transport=T.transport?b(T.transport):C.ajax,delete T.replace,delete T.wildcard,delete T.rateLimitBy,delete T.rateLimitWait,T}function y(T){var g,S,H;if(g=T.prepare,S=T.replace,H=T.wildcard,g)return g;return S?g=K:T.wildcard?g=o:g=Y,g;function K(J,fe){return fe.url=S(fe.url,J),fe}function o(J,fe){return fe.url=fe.url.replace(H,encodeURIComponent(J)),fe}function Y(J,fe){return fe}}function k(T){var g,S,H;return g=T.limiter,S=T.rateLimitBy,H=T.rateLimitWait,g||(g=/^throttle$/i.test(S)?o(H):K(H)),g;function K(Y){return function(fe){return c.debounce(fe,Y)}}function o(Y){return function(fe){return c.throttle(fe,Y)}}}function b(T){return function(S){var H=C.Deferred();return T(S,K,o),H;function K(Y){c.defer(function(){H.resolve(Y)})}function o(Y){c.defer(function(){H.reject(Y)})}}}})(),_e=(function(){var D;D=window&&window.Bloodhound;function A(y){y=xe(y),this.sorter=y.sorter,this.identify=y.identify,this.sufficient=y.sufficient,this.indexRemote=y.indexRemote,this.local=y.local,this.remote=y.remote?new qe(y.remote):null,this.prefetch=y.prefetch?new we(y.prefetch):null,this.index=new ye({identify:this.identify,datumTokenizer:y.datumTokenizer,queryTokenizer:y.queryTokenizer}),y.initialize!==!1&&this.initialize()}return A.noConflict=function(){return window&&(window.Bloodhound=D),A},A.tokenizers=Z,c.mixin(A.prototype,{__ttAdapter:function(){var k=this;return this.remote?b:T;function b(g,S,H){return k.search(g,S,H)}function T(g,S){return k.search(g,S)}},_loadPrefetch:function(){var k=this,b,T;return b=C.Deferred(),this.prefetch?(T=this.prefetch.fromCache())?(this.index.bootstrap(T),b.resolve()):this.prefetch.fromNetwork(g):b.resolve(),b.promise();function g(S,H){if(S)return b.reject();k.add(H),k.prefetch.store(k.index.serialize()),b.resolve()}},_initialize:function(){var k=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(b),this.initPromise;function b(){k.add(k.local)}},initialize:function(k){return!this.initPromise||k?this._initialize():this.initPromise},add:function(k){return this.index.add(k),this},get:function(k){return k=c.isArray(k)?k:[].slice.call(arguments),this.index.get(k)},search:function(k,b,T){var g=this,S;return b=b||c.noop,T=T||c.noop,S=this.sorter(this.index.search(k)),b(this.remote?S.slice():S),this.remote&&S.length<this.sufficient?this.remote.get(k,H):this.remote&&this.remote.cancelLastRequest(),this;function H(K){var o=[];c.each(K,function(Y){!c.some(S,function(J){return g.identify(Y)===g.identify(J)})&&o.push(Y)}),g.indexRemote&&g.add(o),T(o)}},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return Ee.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),A})();return _e}),(function(C,c){$.exports?$.exports=c(Go()):c(C.jQuery)})(ou,function(C){var c=(function(){return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(D){return!D||/^\s*$/.test(D)},escapeRegExChars:function(D){return D.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(D){return typeof D=="string"},isNumber:function(D){return typeof D=="number"},isArray:C.isArray,isFunction:C.isFunction,isObject:C.isPlainObject,isUndefined:function(D){return typeof D>"u"},isElement:function(D){return!!(D&&D.nodeType===1)},isJQuery:function(D){return D instanceof C},toStr:function(A){return c.isUndefined(A)||A===null?"":A+""},bind:C.proxy,each:function(D,A){C.each(D,y);function y(k,b){return A(b,k)}},map:C.map,filter:C.grep,every:function(D,A){var y=!0;return D?(C.each(D,function(k,b){if(!(y=A.call(null,b,k,D)))return!1}),!!y):y},some:function(D,A){var y=!1;return D?(C.each(D,function(k,b){if(y=A.call(null,b,k,D))return!1}),!!y):y},mixin:C.extend,identity:function(D){return D},clone:function(D){return C.extend(!0,{},D)},getIdGenerator:function(){var D=0;return function(){return D++}},templatify:function(A){return C.isFunction(A)?A:y;function y(){return String(A)}},defer:function(D){setTimeout(D,0)},debounce:function(D,A,y){var k,b;return function(){var T=this,g=arguments,S,H;return S=function(){k=null,y||(b=D.apply(T,g))},H=y&&!k,clearTimeout(k),k=setTimeout(S,A),H&&(b=D.apply(T,g)),b}},throttle:function(D,A){var y,k,b,T,g,S;return g=0,S=function(){g=new Date,b=null,T=D.apply(y,k)},function(){var H=new Date,K=A-(H-g);return y=this,k=arguments,K<=0?(clearTimeout(b),b=null,g=H,T=D.apply(y,k)):b||(b=setTimeout(S,K)),T}},stringify:function(D){return c.isString(D)?D:JSON.stringify(D)},guid:function(){function D(A){var y=(Math.random().toString(16)+"000000000").substr(2,8);return A?"-"+y.substr(0,4)+"-"+y.substr(4,4):y}return"tt-"+D()+D(!0)+D(!0)+D()},noop:function(){}}})(),W=(function(){var D={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return A;function A(T){var g,S;return S=c.mixin({},D,T),g={css:b(),classes:S,html:y(S),selectors:k(S)},{css:g.css,html:g.html,classes:g.classes,selectors:g.selectors,mixin:function(H){c.mixin(H,g)}}}function y(T){return{wrapper:'<span class="'+T.wrapper+'"></span>',menu:'<div role="listbox" class="'+T.menu+'"></div>'}}function k(T){var g={};return c.each(T,function(S,H){g[H]="."+S}),g}function b(){var T={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return c.isMsie()&&c.mixin(T.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),T}})(),Z=(function(){var D,A;D="typeahead:",A={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"};function y(k){(!k||!k.el)&&C.error("EventBus initialized without el"),this.$el=C(k.el)}return c.mixin(y.prototype,{_trigger:function(k,b){var T=C.Event(D+k);return this.$el.trigger.call(this.$el,T,b||[]),T},before:function(k){var b,T;return b=[].slice.call(arguments,1),T=this._trigger("before"+k,b),T.isDefaultPrevented()},trigger:function(k){var b;this._trigger(k,[].slice.call(arguments,1)),(b=A[k])&&this._trigger(b,[].slice.call(arguments,1))}}),y})(),ee=(function(){var D=/\s+/,A=H();return{onSync:b,onAsync:k,off:T,trigger:g};function y(o,Y,J,fe){var Ie;if(!J)return this;for(Y=Y.split(D),J=fe?K(J,fe):J,this._callbacks=this._callbacks||{};Ie=Y.shift();)this._callbacks[Ie]=this._callbacks[Ie]||{sync:[],async:[]},this._callbacks[Ie][o].push(J);return this}function k(o,Y,J){return y.call(this,"async",o,Y,J)}function b(o,Y,J){return y.call(this,"sync",o,Y,J)}function T(o){var Y;if(!this._callbacks)return this;for(o=o.split(D);Y=o.shift();)delete this._callbacks[Y];return this}function g(o){var Y,J,fe,Ie,nt;if(!this._callbacks)return this;for(o=o.split(D),fe=[].slice.call(arguments,1);(Y=o.shift())&&(J=this._callbacks[Y]);)Ie=S(J.sync,this,[Y].concat(fe)),nt=S(J.async,this,[Y].concat(fe)),Ie()&&A(nt);return this}function S(o,Y,J){return fe;function fe(){for(var Ie,nt=0,Ce=o.length;!Ie&&nt<Ce;nt+=1)Ie=o[nt].apply(Y,J)===!1;return!Ie}}function H(){var o;return window.setImmediate?o=function(J){setImmediate(function(){J()})}:o=function(J){setTimeout(function(){J()},0)},o}function K(o,Y){return o.bind?o.bind(Y):function(){o.apply(Y,[].slice.call(arguments,0))}}})(),he=(function(D){var A={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1,diacriticInsensitive:!1},y={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"};return function(g){var S;if(g=c.mixin({},A,g),!g.node||!g.pattern)return;g.pattern=c.isArray(g.pattern)?g.pattern:[g.pattern],S=b(g.pattern,g.caseSensitive,g.wordsOnly,g.diacriticInsensitive),K(g.node,H);function H(o){var Y,J,fe;return(Y=S.exec(o.data))&&(fe=D.createElement(g.tagName),g.className&&(fe.className=g.className),J=o.splitText(Y.index),J.splitText(Y[0].length),fe.appendChild(J.cloneNode(!0)),o.parentNode.replaceChild(fe,J)),!!Y}function K(o,Y){for(var J,fe=3,Ie=0;Ie<o.childNodes.length;Ie++)J=o.childNodes[Ie],J.nodeType===fe?Ie+=Y(J)?1:0:K(J,Y)}};function k(T){return y[T.toUpperCase()]||T}function b(T,g,S,H){for(var K=[],o,Y=0,J=T.length;Y<J;Y++){var fe=c.escapeRegExChars(T[Y]);H&&(fe=fe.replace(/\S/g,k)),K.push(fe)}return o=S?"\\b("+K.join("|")+")\\b":"("+K.join("|")+")",g?new RegExp(o):new RegExp(o,"i")}})(window.document),Ee=(function(){var D;D={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};function A(T,g){T=T||{},T.input||C.error("input is missing"),g.mixin(this),this.$hint=C(T.hint),this.$input=C(T.input),this.$input.attr({"aria-activedescendant":"","aria-owns":this.$input.attr("id")+"_listbox",role:"combobox","aria-readonly":"true","aria-autocomplete":"list"}),C(g.menu).attr("id",this.$input.attr("id")+"_listbox"),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=y(this.$input),this._checkLanguageDirection(),this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=c.noop),this.onSync("cursorchange",this._updateDescendent)}return A.normalizeQuery=function(T){return c.toStr(T).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},c.mixin(A.prototype,ee,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(g){var S=D[g.which||g.keyCode];this._managePreventDefault(S,g),S&&this._shouldTrigger(S,g)&&this.trigger(S+"Keyed",g)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(g,S){var H;switch(g){case"up":case"down":H=!b(S);break;default:H=!1}H&&S.preventDefault()},_shouldTrigger:function(g,S){var H;return g==="tab"?H=!b(S):H=!0,H},_checkLanguageDirection:function(){var g=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==g&&(this.dir=g,this.$hint.attr("dir",g),this.trigger("langDirChanged",g))},_setQuery:function(g,S){var H,K;H=k(g,this.query),K=H?this.query.length!==g.length:!1,this.query=g,!S&&!H?this.trigger("queryChanged",this.query):!S&&K&&this.trigger("whitespaceChanged",this.query)},_updateDescendent:function(g,S){this.$input.attr("aria-activedescendant",S)},bind:function(){var T=this,g,S,H,K;return g=c.bind(this._onBlur,this),S=c.bind(this._onFocus,this),H=c.bind(this._onKeydown,this),K=c.bind(this._onInput,this),this.$input.on("blur.tt",g).on("focus.tt",S).on("keydown.tt",H),!c.isMsie()||c.isMsie()>9?this.$input.on("input.tt",K):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(o){D[o.which||o.keyCode]||c.defer(c.bind(T._onInput,T,o))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(g,S){this.setInputValue(g),this._setQuery(g,S)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(g){this.$input.val(g),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(g){this.$hint.val(g)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var g,S,H,K;g=this.getInputValue(),S=this.getHint(),H=g!==S&&S.indexOf(g)===0,K=g!==""&&H&&!this.hasOverflow(),!K&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var g=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=g},isCursorAtEnd:function(){var T,g,S;return T=this.$input.val().length,g=this.$input[0].selectionStart,c.isNumber(g)?g===T:document.selection?(S=document.selection.createRange(),S.moveStart("character",-T),T===S.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=C("<div>")}}),A;function y(T){return C('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:T.css("font-family"),fontSize:T.css("font-size"),fontStyle:T.css("font-style"),fontVariant:T.css("font-variant"),fontWeight:T.css("font-weight"),wordSpacing:T.css("word-spacing"),letterSpacing:T.css("letter-spacing"),textIndent:T.css("text-indent"),textRendering:T.css("text-rendering"),textTransform:T.css("text-transform")}).insertAfter(T)}function k(T,g){return A.normalizeQuery(T)===A.normalizeQuery(g)}function b(T){return T.altKey||T.ctrlKey||T.metaKey||T.shiftKey}})(),ye=(function(){var D,A;D={dataset:"tt-selectable-dataset",val:"tt-selectable-display",obj:"tt-selectable-object"},A=c.getIdGenerator();function y(g,S){g=g||{},g.templates=g.templates||{},g.templates.notFound=g.templates.notFound||g.templates.empty,g.source||C.error("missing source"),g.node||C.error("missing node"),g.name&&!T(g.name)&&C.error("invalid dataset name: "+g.name),S.mixin(this),this.highlight=!!g.highlight,this.name=c.toStr(g.name||A()),this.limit=g.limit||5,this.displayFn=k(g.display||g.displayKey),this.templates=b(g.templates,this.displayFn),this.source=g.source.__ttAdapter?g.source.__ttAdapter():g.source,this.async=c.isUndefined(g.async)?this.source.length>2:!!g.async,this._resetLastSuggestion(),this.$el=C(g.node).attr("role","presentation").addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}return y.extractData=function(S){var H=C(S);return H.data(D.obj)?{dataset:H.data(D.dataset)||"",val:H.data(D.val)||"",obj:H.data(D.obj)||null}:null},c.mixin(y.prototype,ee,{_overwrite:function(S,H){H=H||[],H.length?this._renderSuggestions(S,H):this.async&&this.templates.pending?this._renderPending(S):!this.async&&this.templates.notFound?this._renderNotFound(S):this._empty(),this.trigger("rendered",H,!1,this.name)},_append:function(S,H){H=H||[],H.length&&this.$lastSuggestion.length?this._appendSuggestions(S,H):H.length?this._renderSuggestions(S,H):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(S),this.trigger("rendered",H,!0,this.name)},_renderSuggestions:function(S,H){var K;K=this._getSuggestionsFragment(S,H),this.$lastSuggestion=K.children().last(),this.$el.html(K).prepend(this._getHeader(S,H)).append(this._getFooter(S,H))},_appendSuggestions:function(S,H){var K,o;K=this._getSuggestionsFragment(S,H),o=K.children().last(),this.$lastSuggestion.after(K),this.$lastSuggestion=o},_renderPending:function(S){var H=this.templates.pending;this._resetLastSuggestion(),H&&this.$el.html(H({query:S,dataset:this.name}))},_renderNotFound:function(S){var H=this.templates.notFound;this._resetLastSuggestion(),H&&this.$el.html(H({query:S,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(S,H){var K=this,o;return o=document.createDocumentFragment(),c.each(H,function(J){var fe,Ie;Ie=K._injectQuery(S,J),fe=C(K.templates.suggestion(Ie)).data(D.dataset,K.name).data(D.obj,J).data(D.val,K.displayFn(J)).addClass(K.classes.suggestion+" "+K.classes.selectable),o.appendChild(fe[0])}),this.highlight&&he({className:this.classes.highlight,node:o,pattern:S}),C(o)},_getFooter:function(S,H){return this.templates.footer?this.templates.footer({query:S,suggestions:H,dataset:this.name}):null},_getHeader:function(S,H){return this.templates.header?this.templates.header({query:S,suggestions:H,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=C()},_injectQuery:function(S,H){return c.isObject(H)?c.mixin({_query:S},H):H},update:function(S){var H=this,K=!1,o=!1,Y=0;this.cancel(),this.cancel=function(){K=!0,H.cancel=C.noop,H.async&&H.trigger("asyncCanceled",S,H.name)},this.source(S,J,fe),!o&&J([]);function J(Ie){o||(o=!0,Ie=(Ie||[]).slice(0,H.limit),Y=Ie.length,H._overwrite(S,Ie),Y<H.limit&&H.async&&H.trigger("asyncRequested",S,H.name))}function fe(Ie){if(Ie=Ie||[],!K&&Y<H.limit){H.cancel=C.noop;var nt=Math.abs(Y-H.limit);Y+=nt,H._append(S,Ie.slice(0,nt)),H.async&&H.trigger("asyncReceived",S,H.name)}}},cancel:C.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=C("<div>")}}),y;function k(g){return g=g||c.stringify,c.isFunction(g)?g:S;function S(H){return H[g]}}function b(g,S){return{notFound:g.notFound&&c.templatify(g.notFound),pending:g.pending&&c.templatify(g.pending),header:g.header&&c.templatify(g.header),footer:g.footer&&c.templatify(g.footer),suggestion:g.suggestion||H};function H(K){return C('<div role="option">').attr("id",c.guid()).text(S(K))}}function T(g){return/^[_a-zA-Z0-9-]+$/.test(g)}})(),we=(function(){function D(A,y){var k=this;A=A||{},A.node||C.error("node is required"),y.mixin(this),this.$node=C(A.node),this.query=null,this.datasets=c.map(A.datasets,b);function b(T){var g=k.$node.find(T.node).first();return T.node=g.length?g:C("<div>").appendTo(k.$node),new ye(T,y)}}return c.mixin(D.prototype,ee,{_onSelectableClick:function(y){this.trigger("selectableClicked",C(y.currentTarget))},_onRendered:function(y,k,b,T){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",k,b,T)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return c.every(this.datasets,c.bind(function(k){var b=k.isEmpty();return this.$node.attr("aria-expanded",!b),b},this))},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var y=this.getActiveSelectable();y&&y.removeClass(this.classes.cursor)},_ensureVisible:function(y){var k,b,T,g;k=y.position().top,b=k+y.outerHeight(!0),T=this.$node.scrollTop(),g=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),k<0?this.$node.scrollTop(T+k):g<b&&this.$node.scrollTop(T+(b-g))},bind:function(){var A=this,y;return y=c.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,y),this.$node.on("mouseover",this.selectors.selectable,function(){A.setCursor(C(this))}),this.$node.on("mouseleave",function(){A._removeCursor()}),c.each(this.datasets,function(k){k.onSync("asyncRequested",A._propagate,A).onSync("asyncCanceled",A._propagate,A).onSync("asyncReceived",A._propagate,A).onSync("rendered",A._onRendered,A).onSync("cleared",A._onCleared,A)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.scrollTop(0),this.$node.addClass(this.classes.open)},close:function(){this.$node.attr("aria-expanded",!1),this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(y){this.$node.attr("dir",y)},selectableRelativeToCursor:function(y){var k,b,T,g;return b=this.getActiveSelectable(),k=this._getSelectables(),T=b?k.index(b):-1,g=T+y,g=(g+1)%(k.length+1)-1,g=g<-1?k.length-1:g,g===-1?null:k.eq(g)},setCursor:function(y){this._removeCursor(),(y=y&&y.first())&&(y.addClass(this.classes.cursor),this._ensureVisible(y))},getSelectableData:function(y){return y&&y.length?ye.extractData(y):null},getActiveSelectable:function(){var y=this._getSelectables().filter(this.selectors.cursor).first();return y.length?y:null},getTopSelectable:function(){var y=this._getSelectables().first();return y.length?y:null},update:function(y){var k=y!==this.query;return k&&(this.query=y,c.each(this.datasets,b)),k;function b(T){T.update(y)}},empty:function(){c.each(this.datasets,y),this.query=null,this.$node.addClass(this.classes.empty);function y(k){k.clear()}},destroy:function(){this.$node.off(".tt"),this.$node=C("<div>"),c.each(this.datasets,y);function y(k){k.destroy()}}}),D})(),qe=(function(){function D(A){this.el='<span role="status" aria-live="polite" class="visuallyhidden"></span>',this.$el=C(this.el),A.$input.after(this.$el),c.each(A.menu.datasets,c.bind(function(y){y.onSync&&(y.onSync("rendered",c.bind(this.update,this)),y.onSync("cleared",c.bind(this.cleared,this)))},this))}return c.mixin(D.prototype,{update:function(y,k){var b=k.length,T;b===1?T={result:"result",is:"is"}:T={result:"results",is:"are"},this.$el.text(b+" "+T.result+" "+T.is+" available, use up and down arrow keys to navigate.")},cleared:function(){this.$el.text("")}}),D})(),xe=(function(){var D=we.prototype;function A(){we.apply(this,[].slice.call(arguments,0))}return c.mixin(A.prototype,we.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),D.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),D.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),D._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),D._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(k){return this.$node.css(k==="ltr"?this.css.ltr:this.css.rtl),D.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),A})(),_e=(function(){function D(y,k){var b,T,g,S,H,K,o,Y,J,fe,Ie;y=y||{},y.input||C.error("missing input"),y.menu||C.error("missing menu"),y.eventBus||C.error("missing event bus"),k.mixin(this),this.eventBus=y.eventBus,this.minLength=c.isNumber(y.minLength)?y.minLength:1,this.input=y.input,this.menu=y.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),b=A(this,"activate","open","_onFocused"),T=A(this,"deactivate","_onBlurred"),g=A(this,"isActive","isOpen","_onEnterKeyed"),S=A(this,"isActive","isOpen","_onTabKeyed"),H=A(this,"isActive","_onEscKeyed"),K=A(this,"isActive","open","_onUpKeyed"),o=A(this,"isActive","open","_onDownKeyed"),Y=A(this,"isActive","isOpen","_onLeftKeyed"),J=A(this,"isActive","isOpen","_onRightKeyed"),fe=A(this,"_openIfActive","_onQueryChanged"),Ie=A(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",b,this).onSync("blurred",T,this).onSync("enterKeyed",g,this).onSync("tabKeyed",S,this).onSync("escKeyed",H,this).onSync("upKeyed",K,this).onSync("downKeyed",o,this).onSync("leftKeyed",Y,this).onSync("rightKeyed",J,this).onSync("queryChanged",fe,this).onSync("whitespaceChanged",Ie,this).onSync("langDirChanged",this._onLangDirChanged,this)}return c.mixin(D.prototype,{_hacks:function(){var k,b;k=this.input.$input||C("<div>"),b=this.menu.$node||C("<div>"),k.on("blur.tt",function(T){var g,S,H;g=document.activeElement,S=b.is(g),H=b.has(g).length>0,c.isMsie()&&(S||H)&&(T.preventDefault(),T.stopImmediatePropagation(),c.defer(function(){k.focus()}))}),b.on("mousedown.tt",function(T){T.preventDefault()})},_onSelectableClicked:function(k,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(k,b,T,g){this._updateHint(),this.eventBus.trigger("render",b,T,g)},_onAsyncRequested:function(k,b,T){this.eventBus.trigger("asyncrequest",T,b)},_onAsyncCanceled:function(k,b,T){this.eventBus.trigger("asynccancel",T,b)},_onAsyncReceived:function(k,b,T){this.eventBus.trigger("asyncreceive",T,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(k,b){var T;(T=this.menu.getActiveSelectable())&&this.select(T)&&(b.preventDefault(),b.stopPropagation())},_onTabKeyed:function(k,b){var T;(T=this.menu.getActiveSelectable())?this.select(T)&&b.preventDefault():(T=this.menu.getTopSelectable())&&this.autocomplete(T)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){this.dir==="rtl"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onRightKeyed:function(){this.dir==="ltr"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onQueryChanged:function(k,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(k,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(k){return k=c.isString(k)?k:this.input.getQuery()||"",k.length>=this.minLength},_updateHint:function(){var k,b,T,g,S,H,K;k=this.menu.getTopSelectable(),b=this.menu.getSelectableData(k),T=this.input.getInputValue(),b&&!c.isBlankString(T)&&!this.input.hasOverflow()?(g=Ee.normalizeQuery(T),S=c.escapeRegExChars(g),H=new RegExp("^(?:"+S+")(.+$)","i"),K=H.exec(b.val),K&&this.input.setHint(T+K[1])):this.input.clearHint()},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return!this.isOpen()&&!this.eventBus.before("open")&&(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(k){this.input.setQuery(c.toStr(k))},getVal:function(){return this.input.getQuery()},select:function(k){var b=this.menu.getSelectableData(k);return b&&!this.eventBus.before("select",b.obj,b.dataset)?(this.input.setQuery(b.val,!0),this.eventBus.trigger("select",b.obj,b.dataset),this.close(),!0):!1},autocomplete:function(k){var b,T,g;return b=this.input.getQuery(),T=this.menu.getSelectableData(k),g=T&&b!==T.val,g&&!this.eventBus.before("autocomplete",T.obj,T.dataset)?(this.input.setQuery(T.val),this.eventBus.trigger("autocomplete",T.obj,T.dataset),!0):!1},moveCursor:function(k){var b,T,g,S,H,K,o;return b=this.input.getQuery(),T=this.menu.selectableRelativeToCursor(k),g=this.menu.getSelectableData(T),S=g?g.obj:null,H=g?g.dataset:null,o=T?T.attr("id"):null,this.input.trigger("cursorchange",o),K=this._minLengthMet()&&this.menu.update(b),!K&&!this.eventBus.before("cursorchange",S,H)?(this.menu.setCursor(T),g?this.input.setInputValue(g.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",S,H),!0):!1},destroy:function(){this.input.destroy(),this.menu.destroy()}}),D;function A(y){var k=[].slice.call(arguments,1);return function(){var b=[].slice.call(arguments);c.each(k,function(T){return y[T].apply(y,b)})}}})();(function(){var D,A,y;D=C.fn.typeahead,A={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},y={initialize:function(o,Y){var J;return Y=c.isArray(Y)?Y:[].slice.call(arguments,1),o=o||{},J=W(o.classNames),this.each(fe);function fe(){var Ie,nt,Ce,Tt,it,On,m,N,F,ne,re;c.each(Y,function(me){me.highlight=!!o.highlight}),Ie=C(this),nt=C(J.html.wrapper),Ce=H(o.hint),Tt=H(o.menu),it=o.hint!==!1&&!Ce,On=o.menu!==!1&&!Tt,it&&(Ce=b(Ie,J)),On&&(Tt=C(J.html.menu).css(J.css.menu)),Ce&&Ce.val(""),Ie=T(Ie,J),(it||On)&&(nt.css(J.css.wrapper),Ie.css(it?J.css.input:J.css.inputWithNoHint),Ie.wrap(nt).parent().prepend(it?Ce:null).append(On?Tt:null)),re=On?xe:we,m=new Z({el:Ie}),N=new Ee({hint:Ce,input:Ie},J),F=new re({node:Tt,datasets:Y},J),new qe({$input:Ie,menu:F}),ne=new _e({input:N,menu:F,eventBus:m,minLength:o.minLength},J),Ie.data(A.www,J),Ie.data(A.typeahead,ne)}},isEnabled:function(){var o;return k(this.first(),function(Y){o=Y.isEnabled()}),o},enable:function(){return k(this,function(o){o.enable()}),this},disable:function(){return k(this,function(o){o.disable()}),this},isActive:function(){var o;return k(this.first(),function(Y){o=Y.isActive()}),o},activate:function(){return k(this,function(o){o.activate()}),this},deactivate:function(){return k(this,function(o){o.deactivate()}),this},isOpen:function(){var o;return k(this.first(),function(Y){o=Y.isOpen()}),o},open:function(){return k(this,function(o){o.open()}),this},close:function(){return k(this,function(o){o.close()}),this},select:function(o){var Y=!1,J=C(o);return k(this.first(),function(fe){Y=fe.select(J)}),Y},autocomplete:function(o){var Y=!1,J=C(o);return k(this.first(),function(fe){Y=fe.autocomplete(J)}),Y},moveCursor:function(o){var Y=!1;return k(this.first(),function(J){Y=J.moveCursor(o)}),Y},val:function(o){var Y;return arguments.length?(k(this,function(J){J.setVal(c.toStr(o))}),this):(k(this.first(),function(J){Y=J.getVal()}),Y)},destroy:function(){return k(this,function(o,Y){S(Y),o.destroy()}),this}},C.fn.typeahead=function(K){return y[K]?y[K].apply(this,[].slice.call(arguments,1)):y.initialize.apply(this,arguments)},C.fn.typeahead.noConflict=function(){return C.fn.typeahead=D,this};function k(K,o){K.each(function(){var Y=C(this),J;(J=Y.data(A.typeahead))&&o(J,Y)})}function b(K,o){return K.clone().addClass(o.classes.hint).removeData().css(o.css.hint).css(g(K)).prop("readonly",!0).removeAttr("id name placeholder required").attr({spellcheck:"false",tabindex:-1})}function T(K,o){K.data(A.attrs,{dir:K.attr("dir"),autocomplete:K.attr("autocomplete"),spellcheck:K.attr("spellcheck"),style:K.attr("style")}),K.addClass(o.classes.input).attr({spellcheck:!1});try{!K.attr("dir")&&K.attr("dir","auto")}catch{}return K}function g(K){return{backgroundAttachment:K.css("background-attachment"),backgroundClip:K.css("background-clip"),backgroundColor:K.css("background-color"),backgroundImage:K.css("background-image"),backgroundOrigin:K.css("background-origin"),backgroundPosition:K.css("background-position"),backgroundRepeat:K.css("background-repeat"),backgroundSize:K.css("background-size")}}function S(K){var o,Y;o=K.data(A.www),Y=K.parent().filter(o.selectors.wrapper),c.each(K.data(A.attrs),function(J,fe){c.isUndefined(J)?K.removeAttr(fe):K.attr(fe,J)}),K.removeData(A.typeahead).removeData(A.www).removeData(A.attr).removeClass(o.classes.input),Y.length&&(K.detach().insertAfter(Y),Y.remove())}function H(K){var o,Y;return o=c.isJQuery(K)||c.isElement(K),Y=o?C(K).first():[],Y.length?Y:null}})()})})(zo)),zo.exports}var Ps,au;function uu(){return au||(au=1,Ps={Bloodhound:Al(),loadjQueryPlugin:function(){kl()}}),Ps}var fu;function Ll(){if(fu)return Da;fu=1,Cl();var $=Go(),C=uu(),c=uu().Bloodhound;return C.loadjQueryPlugin(),$(".typeahead").each(function(){var Z=$(this),ee=Z.parent(),he=Z.prop("attributes"),Ee=$("<input/>"),ye=Z.val(),we=Z.find("option").map(function(){if(this.value!=="")return this.value}).get();Z.remove(),$.each(he,function(){Ee.attr(this.name,this.value)}),Ee.removeClass("js-hidden"),Ee.addClass("form-control"),Ee.val(ye),ee.append(Ee),Ee.typeahead({hint:!1},{source:new c({datumTokenizer:c.tokenizers.whitespace,queryTokenizer:c.tokenizers.whitespace,local:we,sorter:function(xe,_e){var D=Ee.val(),A=function(g){return g.toLowerCase().substr(0,D.length)===D.toLowerCase()?-1:1},y=function(g,S){var H=g<S?-1:1;return g===S?0:H},k=function(g,S){var H=A(g),K=A(S);return H===K?0:H},b=k(xe,_e);return b===0?y(xe,_e):b}}),limit:100})}),Da}Ll()})();