function addErrorLog(n){SGAAjax.post("/Shared/AddErrorLog",{Log:n},null,null,null)}function addStrRes(n,t){_strings[n]=t}function getPageImgSize(n,t,i,r,u){(typeof t=="undefined"||t===null||t.length===0)&&(t=n?[768,800,750,1200,1536,1125,1800,1242,2048,1440,1440]:[1024,1280,1366,1400,1680,1920,2048,2560,3840,4860,7680]);(typeof i=="undefined"||i===null||i.length===0)&&(i=n?[1024,1280,1334,1920,2048,2436,2560,2688,2732,2960,3040]:[768,720,768,788,945,1080,1152,1440,2160,2734,4320]);r=SGANumber.tryParseFloat(r,$(window).width());u=SGANumber.tryParseFloat(u,$(window).height());for(let f=0;f<t.length;f++)if(t[f]>=r&&i[f]>=u)return n?i[f]:t[f];return n?i[i.length-1]:t[t.length-1]}function getStrRes(n){if(n in _strings){let t=_strings[n];return t===null?null:SGACommon.htmlDecode(_strings[n])}return""}function gotoUrl(n,t,i,r){t!==null&&showPageLoading(t);SGACommon.gotoUrl(n,i,r)}function hidePageLoading(){$("#pageLoading").hide()}function logout(){showPageLoading();document.getElementById("frmLogout").submit()}function showPageLoading(n,t){let i=$("#pageLoading");SGANumber.isInt(t,!1)&&i.css("zIndex",t);i.show().find('[data-name="msg"]').html(SGAString.isNullOrWhitespace(n)?"":n)}function initSGAToolTip(n){let t=SGACommon.isNullOrUndefined;n.each(function(){let n=$(this).data("placement"),r=$(this).data("trigger"),u={viewport:"body",container:"body",html:!0,trigger:t(r)?"manual":r,selector:'[rel="popover"]',placement:function(n,t){let i=$(t).position();return i.left>400?"left":i.left<400?"right":i.top<110?"bottom":"top"},content:function(){return $("#popover-content").html()}};SGAString.isNullOrWhitespace(n)||(n.indexOf("auto")<0&&(n="auto "+n),u.placement=n);let i=$(this).popover(u);if(t(r))i.on("mouseenter",function(){i.popover("show");$(".popover").on("mouseleave",function(){i.popover("hide")})}).on("mouseleave",function(){setTimeout(function(){$(".popover:hover").length||i.popover("hide")},300)})})}function updateTopMenu(n,t,i,r){if(!t.is(":disabled")){t.prop("disabled",!0);let o=function(n,t){let i=function(n,t){let r=Math.floor(n/86400),u=Math.floor(n%86400/3600),f=Math.floor(n%3600/60),e=n%60,i=n=>n.toString().padStart(2,"0");r>1?t.html(`${r} Days ${i(u)}:${i(f)}:${i(e)}`):r>0?t.html(`${r} Day ${i(u)}:${i(f)}:${i(e)}`):t.html(`${i(u)}:${i(f)}:${i(e)}`)};i(n--,t);let r=setInterval(()=>{n<=0&&(t.next().removeClass("disabled"),t.parent().parent().removeClass("disabled"),t.remove(),clearInterval(r)),i(n--,t)},1e3)},u=n.find(".load-status"),f=getStrRes("load_providers"),e='<div class="failed">   <div class="icon"><span><i class="fa fa-exclamation-triangle"><\/i><\/span><\/div>   <div class="description">'+getStrRes("msg_failed_to_load_xxx_please_try_again").replace("{0}",getStrRes("providers").toLowerCase())+" ["+getStrRes("error_code")+": {0}]<\/div><\/div>";u.prepend('<div class="loading">   <div class="icon"><span><i class="fas fa-spinner fa-spin"><\/i><\/span><\/div>   <div class="description">'+getStrRes("msg_loading_xxx_please_wait").replace("{0}",getStrRes("providers").toLowerCase())+"<\/div><\/div>").find(".failed").remove();SGAAjax.post("/Shared/GetListMenuGroupItems",{MenuGroupId:i,LangCulture:LANG_CULTURE,IsMobile:SGABrowser.isMobileOrTablet()},null,function(i){if(t.prop("disabled",!1),i.ErrCode===0){let f=i.Recs,r="";if(!SGAArray.isNullOrEmpty(f)){for(let n=0;n<f.length;n++){let t=f[n];r+=t.MaintenanceType===E_MaintenanceScheduleType.UrgentNoETA?'<div class="col-xl-3 col-6">   <div class="maintenance-notice" data-name="maintenance-notice">'+getStrRes("under_maintenance")+'<\/div>   <a class="disabled" href="'+t.Url+'"'+(t.IsOpenNewWindows?' target="_blank"':"")+(t.Url==="#"?' onclick="'+(HASLOGIN?"openSuspendDlg()":"openLoginDlg()")+'"':"")+">       <p>"+SGAHtmlRender.renderImage(t.LogoUrl,t.LogoAltText,t.LogoTitle,"img-fluid")+(t.IsNewProvider?'<span class="notify-badge-layout text-uppercase">'+getStrRes("new")+"<\/span>":"")+"       <\/p>       <p>"+t.DisplayName+"<\/p>   <\/a><\/div>":t.MaintenanceType===E_MaintenanceScheduleType.Scheduled||t.MaintenanceType===E_MaintenanceScheduleType.Urgent?'<div class="col-xl-3 col-6" data-maintenance-time="'+t.MaintenanceTime+'">   <div class="maintenance-notice" data-name="maintenance-notice"><\/div>   <a class="disabled" href="'+t.Url+'"'+(t.IsOpenNewWindows?' target="_blank"':"")+(t.Url==="#"?' onclick="'+(HASLOGIN?"openSuspendDlg()":"openLoginDlg()")+'"':"")+">       <p>"+SGAHtmlRender.renderImage(t.LogoUrl,t.LogoAltText,t.LogoTitle,"img-fluid")+(t.IsNewProvider?'<span class="notify-badge-layout text-uppercase">'+getStrRes("new")+"<\/span>":"")+"       <\/p>       <p>"+t.DisplayName+"<\/p>   <\/a><\/div>":'<div class="col-xl-3 col-6">   <a href="'+t.Url+'"'+(t.IsOpenNewWindows?' target="_blank"':"")+(t.Url==="#"?' onclick="'+(HASLOGIN?"openSuspendDlg()":"openLoginDlg()")+'"':"")+">       <p>"+SGAHtmlRender.renderImage(t.LogoUrl,t.LogoAltText,t.LogoTitle,"img-fluid")+(t.IsNewProvider?'<span class="notify-badge-layout text-uppercase">'+getStrRes("new")+"<\/span>":"")+"       <\/p>       <p>"+t.DisplayName+"<\/p>   <\/a><\/div>"}n.find(".row").append(r);n.find("[data-maintenance-time]").each(function(){o($(this).data("maintenance-time"),$(this).find('[data-name="maintenance-notice"]'))})}t.remove();u.remove()}else u.find(".loading").replaceWith(e.replace("{0}",i.ErrCode)),r&&E_ErrCode.showDlg(i.ErrCode,f)},function(n){t.prop("disabled",!1);u.find(".loading").replaceWith(e.replace("{0}",res.ErrCode));r&&E_ErrCode.showAjaxDlg(f,n)})}}(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!ti(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,ti(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function er(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(nu(t).text=n.text,tu(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),"none"!==t&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,r,u,f){function o(h){var c;return e[h]=!0,i.each(n[h]||[],function(n,i){var h=i(r,u,f);return"string"!=typeof h||s||e[h]?s?!(c=h):t:(r.dataTypes.unshift(h),o(h),!1)}),c}var e={},s=n===yi;return o(r.dataTypes[0])||!e["*"]&&o("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;"*"===u[0];)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}return f?(f!==u[0]&&u.unshift(f),r[f]):t}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(bo(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),null==e.unqueued&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==au(n.nodeName)?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||"toggle"===a,a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start="width"===u||"height"===u?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||"load"===n.type||"complete"===r.readyState)&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null==n?this.toArray():0>n?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))for(e in s)u=n[e],r=s[e],n!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(r){return n.JSON&&n.JSON.parse?n.JSON.parse(r):null===r?r:"string"==typeof r&&(r=i.trim(r),r&&pf.test(r.replace(bf,"@").replace(kf,"]").replace(wf,"")))?Function("return "+r)():(i.error("Invalid JSON: "+r),t)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return null==n?"":dt.call(n)}:function(n){return null==n?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(gt(Object(n))?i.merge(r,"string"==typeof n?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if("number"==typeof f)for(;f>r;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;e>r;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;l>h;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),"complete"===r.readyState)setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||"string"!=typeof n)return i;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=9===l&&n,1===l&&"object"!==t.nodeName.toLowerCase()){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=di++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,e))return!0}else while(t=t[r])if(1===t.nodeType||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:bt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];e>t;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;e>i;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:" "===n[t-2].type?"*":""})).replace(vt,"$1"),u,i>t&&si(n.slice(t,i)),e>i&&si(n=n.slice(i)),e>i&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=null!=a,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=null==it?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);null!=(y=ut[v]);v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&1===h.length){if(f=h[0]=h[0].slice(0),f.length>2&&"ID"===(o=f[0]).type&&e.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=RegExp("^"+f+"*,"+f+"*"),rr=RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=RegExp(f+"*[+~]"),ur=RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=RegExp(ni),er=RegExp("^"+pi+"$"),yt={ID:RegExp("^#("+et+")"),CLASS:RegExp("^\\.("+et+")"),TAG:RegExp("^("+et.replace("w","w*")+")"),ATTR:RegExp("^"+wi),PSEUDO:RegExp("^"+ni),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:RegExp("^(?:"+gt+")$","i"),needsContext:RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};e=u.support={};nt=u.setDocument=function(n){var i=n?n.ownerDocument||n:y,u=i.defaultView;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,a=i.documentElement,v=!hi(i),u&&u.attachEvent&&u!==u.top&&u.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),e.getById=l(function(n){return a.appendChild(n).id=o,!i.getElementsByName||!i.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,i){return typeof i.getElementsByTagName!==st?i.getElementsByTagName(n):t}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,i){return typeof i.getElementsByClassName!==st&&v?i.getElementsByClassName(n):t},tt=[],h=[],(e.qsa=ii.test(i.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&RegExp(h.join("|")),tt=tt.length&&RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,t){if(n===t)return ft=!0,0;var r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t);return r?1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||ot(y,n)?-1:t===i||ot(y,t)?1:g?it.call(g,n)-it.call(g,t):0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return ft=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:g?it.call(g,n)-it.call(g,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},i):s};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),!(!e.matchesSelector||!v||tt&&tt.test(t)||h&&h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||0==l%r&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||3===n.nodeType||4===n.nodeType)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[0>i?i+t:i]}),even:rt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=0>i?i+t:i;t>++r;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return 1&n.compareDocumentPosition(s.createElement("div"))});l(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ui("type|href|height|width",function(n,i,r){return r?t:n.getAttribute(i,"type"===i.toLowerCase()?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ui("value",function(n,i,r){return r||"input"!==n.nodeName.toLowerCase()?t:n.defaultValue});l(function(n){return null==n.getAttribute("disabled")})||ui(gt,function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.specified?u.value:n[i]===!0?i.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);ni={};i.Callbacks=function(n){n="string"==typeof n?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&e>o;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(e>=u&&e--,o>=u&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!(!r||!r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return!r||c&&!u||(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=Array(r),c=Array(r),s=Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute="t"!==u.className;t.leadingWhitespace=3===u.firstChild.nodeType;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized="/a"===e.getAttribute("href");t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=""===f.getAttribute("value");f.value="t";f.setAttribute("type","radio");t.radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===u.style.backgroundClip;for(s in i(t))break;return t.ownLast="0"!==s,i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&0===f[0].offsetHeight,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===u.offsetWidth}),n.getComputedStyle&&(t.pixelPosition="1%"!==(n.getComputedStyle(u,null)||{}).top,t.boxSizingReliable="4px"===(n.getComputedStyle(u,null)||{width:"4px"}).width,e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===u.offsetWidth,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==u.offsetWidth,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&1!==n.nodeType&&9!==n.nodeType)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;e.length>s;s++)f=e[s].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,r,u){var f;return n?(r=(r||"fx")+"queue",f=i._data(n,r),u&&(!f||i.isArray(u)?f=i._data(n,r,i.makeArray(u)):f.push(u)),f||[]):t},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return"string"!=typeof n&&(r=n,n="fx",u--),u>arguments.length?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):" ")){for(o=0;u=e[o++];)0>r.indexOf(" "+u+" ")&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):"")){for(o=0;u=e[o++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;1===this.nodeType&&(f=e?n.call(this,u,i(this).val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,"string"==typeof u?u.replace(ie,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&3!==s&&8!==s&&2!==s)return typeof n.getAttribute===o?i.prop(n,r,u):(1===s&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u===t?f&&"get"in f&&null!==(e=f.get(n,r))?e:(e=i.find.attr(n,r),null==e?t:e):null!==u?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&null!==(e=f.get(n,r))?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,r,u){return i.nodeName(n,"input")?(n.defaultValue=r,t):d&&d.set(n,r,u)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&""!==u.value?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,r){i.attrHooks[r]={set:function(n,i){return""===i?(n.setAttribute(r,"auto"),i):t}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,r){return i.isArray(r)?n.checked=i.inArray(i(n).val(),r)>=0:t}};i.support.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i===o||n&&i.event.triggered===n.type?t:i.event.dispatch.apply(l.elem,arguments)},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if(s=c=e=e||r,3!==e.nodeType&&8!==e.nodeType&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=0>h.indexOf(":")&&"on"+h,u=u[i.expando]?u:new i.Event(h,"object"==typeof u&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return r.length>h&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return null==n.pageX&&null!=i.clientX&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=1&e?1:2&e?3:4&e?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){return this===cr()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return i.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,r){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n,r&&i.extend(this,r),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,t):new i.Event(n,r)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:(i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))}),t)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),t)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return ui.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):(i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))}),t)},handle:function(n){var i=n.target;return this!==i||n.isSimulated||n.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?n.handleObj.handler.apply(this,arguments):t},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,r){var u=this[0];return u?i.event.trigger(n,r,u,!0):t}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(11>r.nodeType&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r="string"==typeof n?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;null!=(r=e[f]);f++)t||1!==r.nodeType||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return 1===r.nodeType?r.innerHTML.replace(ce,""):t;if(!("string"!=typeof n||ae.test(n)||!i.support.htmlSerialize&&pr.test(n)||!i.support.leadingWhitespace&&ei.test(n)||e[(br.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(wr,"<$1><\/$2>");try{for(;o>f;f++)r=this[f]||{},1===r.nodeType&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(1>=l||"string"!=typeof a||i.support.checkClone)&&ve.test(a))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;l>e;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;c>e;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),!(i.support.noCloneEvent&&i.support.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o="table"!==y||kr.test(o)?"<table>"!==l[1]||kr.test(o)?0:s:s.firstChild,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||-1===i.inArray(o,f))&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=RegExp("^("+st+")(.*)$","i"),lt=RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;e>f;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),"normal"===e&&r in fu&&(e=fu[r]),""===u||u?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(""!==e||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return null==u&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,r){i.cssHooks[r]={get:function(n,u,f){return u?0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,r,f)}):lu(n,r,f):t},set:function(n,t,u){var f=u&&v(n);return hu(n,t,u?cu(n,r,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ci,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,r){return r?i.swap(n,{display:"inline-block"},y,[n,"marginRight"]):t}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,r){i.cssHooks[r]={get:function(n,u){return u?(u=y(n,r),lt.test(u)?i(n).position()[r]+"px":u):t}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return 0>=n.offsetWidth&&0>=n.offsetHeight||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():null==t?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if("string"!=typeof n&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&"object"==typeof r&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&300>n||304===n,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),204===n||"HEAD"===u.type?l="nocontent":304===n?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",0>n&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,v&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return y&&y.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=nf(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,k)}catch(et){if(!(2>o))throw et;k(-1,et)}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){u&&u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");return h||"jsonp"===r.dataTypes[0]?(e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"):t});tf=0;vt=n.ActiveXObject&&function(){for(var n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();n.length>r;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return r=s.documentElement,i.contains(r,u)?(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));null!=t.top&&(u.top=t.top-o.top+h);null!=t.left&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);return e===t?o?r in o?o[r]:o.document.documentElement[f]:n[f]:(o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e,t)},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||"boolean"!=typeof f),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:9===r.nodeType?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n.jQuery=n.$=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}))})(window);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).firebase=t()}(this,function(){"use strict";function et(n,t,i,r){return new(i=i||Promise)(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){var t;n.done?u(n.value):((t=n.value)instanceof i?t:new i(function(n){n(t)})).then(o,s)}e((r=r.apply(n,t||[])).next())})}function bt(n,t){function e(e){return function(o){return function(e){if(f)throw new TypeError("Generator is already executing.");for(;r;)try{if(f=1,u&&(i=2&e[0]?u.return:e[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,e[1])).done)return i;switch(u=0,(e=i?[2&e[0],i.value]:e)[0]){case 0:case 1:i=e;break;case 4:return r.label++,{value:e[1],done:!1};case 5:r.label++;u=e[1];e=[0];continue;case 7:e=r.ops.pop();r.trys.pop();continue;default:if(!(i=0<(i=r.trys).length&&i[i.length-1])&&(6===e[0]||2===e[0])){r=0;continue}if(3===e[0]&&(!i||e[1]>i[0]&&e[1]<i[3])){r.label=e[1];break}if(6===e[0]&&r.label<i[1]){r.label=i[1];i=e;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(e);break}i[2]&&r.ops.pop();r.trys.pop();continue}e=t.call(n,r)}catch(o){e=[6,o];u=0}finally{f=i=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,o])}}var f,u,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o={next:e(0),"throw":e(1),"return":e(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o}function d(n){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&n[t],r=0;if(i)return i.call(n);if(n&&"number"==typeof n.length)return{next:function(){return{value:(n=n&&r>=n.length?void 0:n)&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.");}function p(n,t){var i="function"==typeof Symbol&&n[Symbol.iterator],r,f,u,e;if(!i)return n;u=i.call(n);e=[];try{for(;(void 0===t||0<t--)&&!(r=u.next()).done;)e.push(r.value)}catch(n){f={error:n}}finally{try{r&&!r.done&&(i=u.return)&&i.call(u)}finally{if(f)throw f.error;}}return e}function u(n,t){for(var i=0,u=t.length,r=n.length;i<u;i++,r++)n[r]=t[i];return n}function l(n,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===n&&(n={});break;case Array:n=[];break;default:return t}for(var i in t)t.hasOwnProperty(i)&&"__proto__"!==i&&(n[i]=l(n[i],t[i]));return n}function ot(){var n=this;this.reject=function(){};this.resolve=function(){};this.promise=new Promise(function(t,i){n.resolve=t;n.reject=i})}function g(n,t,i){return t=st.call(this,t)||this,t.code=n,t.customData=i,t.name=dt,Object.setPrototypeOf(t,g.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,nt.prototype.create),t}function ht(n,t,i){this.service=n;this.serviceName=t;this.errors=i}function ct(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function ti(n,t){return t=new ii(n,t),t.subscribe.bind(t)}function o(n,t){var i=this;this.observers=[];this.unsubscribes=[];this.observerCount=0;this.task=Promise.resolve();this.finalized=!1;this.onNoObservers=t;this.task.then(function(){n(i)}).catch(function(n){i.error(n)})}function tt(){}function a(n,t,i){this.name=n;this.instanceFactory=t;this.type=i;this.multipleInstances=!1;this.serviceProps={};this.instantiationMode="LAZY";this.onInstanceCreated=null}function i(n,t){this.name=n;this.container=t;this.component=null;this.instances=new Map;this.instancesDeferred=new Map;this.instancesOptions=new Map;this.onInitCallbacks=new Map}function v(n){this.name=n;this.providers=new Map}function fi(n,t){for(var e,f,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!(t<n.logLevel)){if(e=(new Date).toISOString(),f=oi[t],!f)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[f].apply(console,u(["["+e+"]  "+n.name+":"],r))}}function e(n){this.name=n;this._logLevel=ei;this._logHandler=fi;this._userLogHandler=null;rt.push(this)}function si(n){rt.forEach(function(t){t.setLogLevel(n)})}function hi(n,i){for(var r=0,u=rt;r<u.length;r++)!function(r){var u=null;i&&i.level&&(u=lt[i.level]);r.userLogHandler=null===n?null:function(i,r){for(var o,e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];o=e.map(function(n){if(null==n)return null;if("string"==typeof n)return n;if("number"==typeof n||"boolean"==typeof n)return n.toString();if(n instanceof Error)return n.message;try{return JSON.stringify(n)}catch(n){return null}}).filter(function(n){return n}).join(" ");r>=(null!=u?u:i.logLevel)&&n({level:t[r].toLowerCase(),message:o,args:e,type:i.name})}}(u[r])}function f(n,t,i){var r=this;this.firebase_=i;this.isDeleted_=!1;this.name_=t.name;this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1;this.options_=l(void 0,n);this.container=new ui(t.name);this._addComponent(new it("app",function(){return r},"PUBLIC"));this.firebase_.INTERNAL.components.forEach(function(n){return r._addComponent(n)})}function li(n){function u(n){if(!ct(t,n=n||w))throw h.create("no-app",{appName:n});return t[n]}function f(f){var s,e=f.name,o,a,v;if(r.has(e))return c.debug("There were multiple attempts to register component "+e+"."),"PUBLIC"===f.type?i[e]:null;for(r.set(e,f),"PUBLIC"===f.type&&(s=function(n){if("function"!=typeof(n=void 0===n?u():n)[e])throw h.create("invalid-app-argument",{appName:e});return n[e]()},void 0!==f.serviceProps&&l(s,f.serviceProps),i[e]=s,n.prototype[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this._getService.bind(this,e).apply(this,f.multipleInstances?t:[])}),o=0,a=Object.keys(t);o<a.length;o++)v=a[o],t[v]._addComponent(f);return"PUBLIC"===f.type?i[e]:null}var t={},r=new Map,i={__esModule:!0,initializeApp:function(r,u){void 0===u&&(u={});"object"==typeof u&&null!==u||(u={name:u});var f=u;if(void 0===f.name&&(f.name=w),u=f.name,"string"!=typeof u||!u)throw h.create("bad-app-name",{appName:String(u)});if(ct(t,u))throw h.create("duplicate-app",{appName:u});return f=new n(r,f,i),t[u]=f},app:u,registerVersion:function(n,t,i){var u=null!==(r=ci[n])&&void 0!==r?r:n,r,n;i&&(u+="-"+i);r=u.match(/\s|\//);n=t.match(/\s|\//);r||n?(i=['Unable to register library "'+u+'" with version "'+t+'":'],r&&i.push('library name "'+u+'" contains illegal characters (whitespace or "/")'),r&&n&&i.push("and"),n&&i.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),c.warn(i.join(" "))):f(new it(u+"-version",function(){return{library:u,version:t}},"VERSION"))},setLogLevel:si,onLog:function(n,t){if(null!==n&&"function"!=typeof n)throw h.create("invalid-log-argument");hi(n,t)},apps:null,SDK_VERSION:vt,INTERNAL:{registerComponent:f,removeApp:function(n){delete t[n]},components:r,useAsService:function(n,t){return"serverAuth"!==t?t:null}}};return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(t).map(function(n){return t[n]})}}),u.App=n,i}function pt(n){this.container=n}var ft=function(n,t){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},k=function(){return(k=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},kt=(ot.prototype.wrapCallback=function(n){var t=this;return function(i,r){i?t.reject(i):t.resolve(r);"function"==typeof n&&(t.promise.catch(function(){}),1===n.length?n(i):n(i,r))}},ot),st,dt="FirebaseError",gt=(function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ft(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(g,st=Error),g),nt=(ht.prototype.create=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];var r,u=i[0]||{},f=this.service+"/"+n,n=this.errors[n],n=n?(r=u,n.replace(ni,function(n,t){var i=r[t];return null!=i?String(i):"<"+t+"?>"})):"Error",n=this.serviceName+": "+n+" ("+f+").";return new gt(f,n,u)},ht),ni=/\{\$([^}]+)}/g,ii=(o.prototype.next=function(n){this.forEachObserver(function(t){t.next(n)})},o.prototype.error=function(n){this.forEachObserver(function(t){t.error(n)});this.close(n)},o.prototype.complete=function(){this.forEachObserver(function(n){n.complete()});this.close()},o.prototype.subscribe=function(n,t,i){var r,u=this;if(void 0===n&&void 0===t&&void 0===i)throw new Error("Missing Observer.");return void 0===(r=function(n,t){var i,r,u;if("object"!=typeof n||null===n)return!1;for(i=0,r=t;i<r.length;i++)if(u=r[i],u in n&&"function"==typeof n[u])return!0;return!1}(n,["next","error","complete"])?n:{next:n,error:t,complete:i}).next&&(r.next=tt),void 0===r.error&&(r.error=tt),void 0===r.complete&&(r.complete=tt),i=this.unsubscribeOne.bind(this,this.observers.length),this.finalized&&this.task.then(function(){try{u.finalError?r.error(u.finalError):r.complete()}catch(n){}}),this.observers.push(r),i},o.prototype.unsubscribeOne=function(n){void 0!==this.observers&&void 0!==this.observers[n]&&(delete this.observers[n],--this.observerCount,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},o.prototype.forEachObserver=function(n){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,n)},o.prototype.sendOne=function(n,t){var i=this;this.task.then(function(){if(void 0!==i.observers&&void 0!==i.observers[n])try{t(i.observers[n])}catch(n){"undefined"!=typeof console&&console.error&&console.error(n)}})},o.prototype.close=function(n){var t=this;this.finalized||(this.finalized=!0,void 0!==n&&(this.finalError=n),this.task.then(function(){t.observers=void 0;t.onNoObservers=void 0}))},o),it=(a.prototype.setInstantiationMode=function(n){return this.instantiationMode=n,this},a.prototype.setMultipleInstances=function(n){return this.multipleInstances=n,this},a.prototype.setServiceProps=function(n){return this.serviceProps=n,this},a.prototype.setInstanceCreatedCallback=function(n){return this.onInstanceCreated=n,this},a),s="[DEFAULT]",ri=(i.prototype.get=function(n){var t=this.normalizeInstanceIdentifier(n),i;if(!this.instancesDeferred.has(t)&&(n=new kt,this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize()))try{i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch(n){}return this.instancesDeferred.get(t).promise},i.prototype.getImmediate=function(n){var t=this.normalizeInstanceIdentifier(null==n?void 0:n.identifier),n=null!==(n=null==n?void 0:n.optional)&&void 0!==n&&n;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(n)return null;throw Error("Service "+this.name+" is not available");}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(t){if(n)return null;throw t;}},i.prototype.getComponent=function(){return this.component},i.prototype.setComponent=function(n){var r,u,i,t,e;if(n.name!==this.name)throw Error("Mismatching Component "+n.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=n,this.shouldAutoInitialize()){if("EAGER"===n.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:s})}catch(n){}try{for(i=d(this.instancesDeferred.entries()),t=i.next();!t.done;t=i.next()){var f=p(t.value,2),o=f[0],h=f[1],c=this.normalizeInstanceIdentifier(o);try{e=this.getOrInitializeService({instanceIdentifier:c});h.resolve(e)}catch(n){}}}catch(n){r={error:n}}finally{try{t&&!t.done&&(u=i.return)&&u.call(i)}finally{if(r)throw r.error;}}}},i.prototype.clearInstance=function(n){this.instancesDeferred.delete(n=void 0===n?s:n);this.instancesOptions.delete(n);this.instances.delete(n)},i.prototype.delete=function(){return et(this,void 0,void 0,function(){var n;return bt(this,function(t){switch(t.label){case 0:return n=Array.from(this.instances.values()),[4,Promise.all(u(u([],p(n.filter(function(n){return"INTERNAL"in n}).map(function(n){return n.INTERNAL.delete()}))),p(n.filter(function(n){return"_delete"in n}).map(function(n){return n._delete()}))))];case 1:return t.sent(),[2]}})})},i.prototype.isComponentSet=function(){return null!=this.component},i.prototype.isInitialized=function(n){return this.instances.has(n=void 0===n?s:n)},i.prototype.getOptions=function(n){return this.instancesOptions.get(n=void 0===n?s:n)||{}},i.prototype.initialize=function(n){var u,o,f=(n=void 0===n?{}:n).options,f=void 0===f?{}:f,r=this.normalizeInstanceIdentifier(n.instanceIdentifier),e,i,t;if(this.isInitialized(r))throw Error(this.name+"("+r+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");e=this.getOrInitializeService({instanceIdentifier:r,options:f});try{for(i=d(this.instancesDeferred.entries()),t=i.next();!t.done;t=i.next()){var s=p(t.value,2),h=s[0],c=s[1];r===this.normalizeInstanceIdentifier(h)&&c.resolve(e)}}catch(n){u={error:n}}finally{try{t&&!t.done&&(o=i.return)&&o.call(i)}finally{if(u)throw u.error;}}return e},i.prototype.onInit=function(n,t){var i=this.normalizeInstanceIdentifier(t),r=null!==(t=this.onInitCallbacks.get(i))&&void 0!==t?t:new Set;return r.add(n),this.onInitCallbacks.set(i,r),t=this.instances.get(i),t&&n(t,i),function(){r.delete(n)}},i.prototype.invokeOnInitCallbacks=function(n,t){var u,f,e=this.onInitCallbacks.get(t),r,i,o;if(e)try{for(r=d(e),i=r.next();!i.done;i=r.next()){o=i.value;try{o(n,t)}catch(n){}}}catch(n){u={error:n}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(u)throw u.error;}}},i.prototype.getOrInitializeService=function(n){var t=n.instanceIdentifier,i=n.options,r=void 0===i?{}:i,n=this.instances.get(t);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t)===s?void 0:i,options:r}),this.instances.set(t,n),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(n,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,n)}catch(n){}return n||null},i.prototype.normalizeInstanceIdentifier=function(n){return void 0===n&&(n=s),!this.component||this.component.multipleInstances?n:s},i.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},i),ui=(v.prototype.addComponent=function(n){var t=this.getProvider(n.name);if(t.isComponentSet())throw new Error("Component "+n.name+" has already been registered with "+this.name);t.setComponent(n)},v.prototype.addOrOverwriteComponent=function(n){this.getProvider(n.name).isComponentSet()&&this.providers.delete(n.name);this.addComponent(n)},v.prototype.getProvider=function(n){if(this.providers.has(n))return this.providers.get(n);var t=new ri(n,this);return this.providers.set(n,t),t},v.prototype.getProviders=function(){return Array.from(this.providers.values())},v),t,rt=[],vt,n,yt,wt,ut,ai,y;(r=t=t||{})[r.DEBUG=0]="DEBUG";r[r.VERBOSE=1]="VERBOSE";r[r.INFO=2]="INFO";r[r.WARN=3]="WARN";r[r.ERROR=4]="ERROR";r[r.SILENT=5]="SILENT";var lt={debug:t.DEBUG,verbose:t.VERBOSE,info:t.INFO,warn:t.WARN,error:t.ERROR,silent:t.SILENT},ei=t.INFO,oi=((n={})[t.DEBUG]="log",n[t.VERBOSE]="log",n[t.INFO]="info",n[t.WARN]="warn",n[t.ERROR]="error",n),r=(Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(n){if(!(n in t))throw new TypeError('Invalid value "'+n+'" assigned to `logLevel`');this._logLevel=n},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(n){this._logLevel="string"==typeof n?lt[n]:n},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(n){if("function"!=typeof n)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(n){this._userLogHandler=n},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,u([this,t.DEBUG],i));this._logHandler.apply(this,u([this,t.DEBUG],i))},e.prototype.log=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,u([this,t.VERBOSE],i));this._logHandler.apply(this,u([this,t.VERBOSE],i))},e.prototype.info=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,u([this,t.INFO],i));this._logHandler.apply(this,u([this,t.INFO],i))},e.prototype.warn=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,u([this,t.WARN],i));this._logHandler.apply(this,u([this,t.WARN],i))},e.prototype.error=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,u([this,t.ERROR],i));this._logHandler.apply(this,u([this,t.ERROR],i))},e);var n=((n={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",n["bad-app-name"]="Illegal App name: '{$appName}",n["duplicate-app"]="Firebase App named '{$appName}' already exists",n["app-deleted"]="Firebase App named '{$appName}' already deleted",n["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",n["invalid-log-argument"]="First argument to `onLog` must be null or a function.",n),h=new nt("app","Firebase",n),at="@firebase/app",w="[DEFAULT]",ci=((n={})[at]="fire-core",n["@firebase/analytics"]="fire-analytics",n["@firebase/app-check"]="fire-app-check",n["@firebase/auth"]="fire-auth",n["@firebase/database"]="fire-rtdb",n["@firebase/functions"]="fire-fn",n["@firebase/installations"]="fire-iid",n["@firebase/messaging"]="fire-fcm",n["@firebase/performance"]="fire-perf",n["@firebase/remote-config"]="fire-rc",n["@firebase/storage"]="fire-gcs",n["@firebase/firestore"]="fire-fst",n["fire-js"]="fire-js",n["firebase-wrapper"]="fire-js-all",n),c=new r("@firebase/app"),b=(Object.defineProperty(f.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(n){this.checkDestroyed_();this.automaticDataCollectionEnabled_=n},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),f.prototype.delete=function(){var n=this;return new Promise(function(t){n.checkDestroyed_();t()}).then(function(){return n.firebase_.INTERNAL.removeApp(n.name_),Promise.all(n.container.getProviders().map(function(n){return n.delete()}))}).then(function(){n.isDeleted_=!0})},f.prototype._getService=function(n,t){void 0===t&&(t=w);this.checkDestroyed_();var i=this.container.getProvider(n);return i.isInitialized()||"EXPLICIT"!==(null===(n=i.getComponent())||void 0===n?void 0:n.instantiationMode)||i.initialize(),i.getImmediate({identifier:t})},f.prototype._removeServiceInstance=function(n,t){void 0===t&&(t=w);this.container.getProvider(n).clearInstance(t)},f.prototype._addComponent=function(n){try{this.container.addComponent(n)}catch(t){c.debug("Component "+n.name+" failed to register with FirebaseApp "+this.name,t)}},f.prototype._addOrOverwriteComponent=function(n){this.container.addOrOverwriteComponent(n)},f.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},f.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw h.create("app-deleted",{appName:this.name_});},f);return b.prototype.name&&b.prototype.options||b.prototype.delete||console.log("dc"),vt="8.10.0",n=function et(){var n=li(b);return n.INTERNAL=k(k({},n.INTERNAL),{createFirebaseNamespace:et,extendNamespace:function(t){l(n,t)},createSubscribe:ti,ErrorFactory:nt,deepExtend:l}),n}(),yt=(pt.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(n){return function(n){return n=n.getComponent(),"VERSION"===(null==n?void 0:n.type)}(n)?(n=n.getImmediate(),n.library+"/"+n.version):null}).filter(function(n){return n}).join(" ")},pt),"object"==typeof self&&self.self===self&&void 0!==self.firebase&&(c.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  "),(r=self.firebase.SDK_VERSION)&&0<=r.indexOf("LITE")&&c.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")),wt=n.initializeApp,n.initializeApp=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(n){return}}()&&c.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),wt.apply(void 0,t)},y=n,(ut=y).INTERNAL.registerComponent(new it("platform-logger",function(n){return new yt(n)},"PRIVATE")),ut.registerVersion(at,"0.6.30",ai),ut.registerVersion("fire-js",""),y.registerVersion("firebase","8.10.0","app"),y.SDK_VERSION="8.10.0",y});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).firebase)}(this,function(n){"use strict";try{!function(){function vu(n){return n&&"object"==typeof n&&"default"in n?n:{"default":n}}function t(n,t,i,r){return new(i=i||Promise)(function(u,f){function o(n){try{e(r.next(n))}catch(n){f(n)}}function s(n){try{e(r.throw(n))}catch(n){f(n)}}function e(n){var t;n.done?u(n.value):((t=n.value)instanceof i?t:new i(function(n){n(t)})).then(o,s)}e((r=r.apply(n,t||[])).next())})}function i(n,t){function e(e){return function(o){return function(e){if(f)throw new TypeError("Generator is already executing.");for(;r;)try{if(f=1,u&&(i=2&e[0]?u.return:e[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,e[1])).done)return i;switch(u=0,(e=i?[2&e[0],i.value]:e)[0]){case 0:case 1:i=e;break;case 4:return r.label++,{value:e[1],done:!1};case 5:r.label++;u=e[1];e=[0];continue;case 7:e=r.ops.pop();r.trys.pop();continue;default:if(!(i=0<(i=r.trys).length&&i[i.length-1])&&(6===e[0]||2===e[0])){r=0;continue}if(3===e[0]&&(!i||e[1]>i[0]&&e[1]<i[3])){r.label=e[1];break}if(6===e[0]&&r.label<i[1]){r.label=i[1];i=e;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(e);break}i[2]&&r.ops.pop();r.trys.pop();continue}e=t.call(n,r)}catch(o){e=[6,o];u=0}finally{f=i=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,o])}}var f,u,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o={next:e(0),"throw":e(1),"return":e(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o}function d(n){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&n[t],r=0;if(i)return i.call(n);if(n&&"number"==typeof n.length)return{next:function(){return{value:(n=n&&r>=n.length?void 0:n)&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.");}function yi(n,t){var i="function"==typeof Symbol&&n[Symbol.iterator],r,f,u,e;if(!i)return n;u=i.call(n);e=[];try{for(;(void 0===t||0<t--)&&!(r=u.next()).done;)e.push(r.value)}catch(n){f={error:n}}finally{try{r&&!r.done&&(i=u.return)&&i.call(u)}finally{if(f)throw f.error;}}return e}function pi(n,t){for(var i=0,u=t.length,r=n.length;i<u;i++,r++)n[r]=t[i];return n}function at(n,t,i){return t=wi.call(this,t)||this,t.code=n,t.customData=i,t.name=yu,Object.setPrototypeOf(t,at.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,vt.prototype.create),t}function ki(n,t,i){this.service=n;this.serviceName=t;this.errors=i}function g(n,t,i){this.name=n;this.instanceFactory=t;this.type=i;this.multipleInstances=!1;this.serviceProps={};this.instantiationMode="LAZY";this.onInstanceCreated=null}function gi(n){return new Promise(function(t,i){n.onsuccess=function(){t(n.result)};n.onerror=function(){i(n.error)}})}function ut(n,t,i){var r,u=new Promise(function(u,f){gi(r=n[t].apply(n,i)).then(u,f)});return u.request=r,u}function w(n,t,i){i.forEach(function(i){Object.defineProperty(n.prototype,i,{get:function(){return this[t][i]},set:function(n){this[t][i]=n}})})}function yt(n,t,i,r){r.forEach(function(r){r in i.prototype&&(n.prototype[r]=function(){return ut(this[t],r,arguments)})})}function ft(n,t,i,r){r.forEach(function(r){r in i.prototype&&(n.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})})}function nr(n,t,i,r){r.forEach(function(r){r in i.prototype&&(n.prototype[r]=function(){return n=this[t],(i=ut(n,r,arguments)).then(function(n){if(n)return new nt(n,i.request)});var n,i})})}function c(n){this._index=n}function nt(n,t){this._cursor=n;this._request=t}function s(n){this._store=n}function tt(n){this._tx=n;this.complete=new Promise(function(t,i){n.oncomplete=function(){t()};n.onerror=function(){i(n.error)};n.onabort=function(){i(n.error)}})}function et(n,t,i){this._db=n;this.oldVersion=t;this.transaction=new tt(i)}function ot(n){this._db=n}function pt(n,t,i){var t=ut(indexedDB,"open",[n,t]),r=t.request;return r&&(r.onupgradeneeded=function(n){i&&i(new et(r.result,n.oldVersion,r.transaction))}),t.then(function(n){return new ot(n)})}function wt(n){return ut(indexedDB,"deleteDatabase",[n])}function fr(n){return n instanceof bi&&n.code.includes("request-failed")}function bt(n){return n=n.projectId,wu+"/projects/"+n+"/installations"}function er(n){return{token:n.token,requestStatus:2,expiresIn:(n=n.expiresIn,Number(n.replace("s","000"))),creationTime:Date.now()}}function kt(n,r){return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return[4,r.json()];case 1:return t=i.sent(),t=t.error,[2,h.create("request-failed",{requestName:n,serverCode:t.code,serverMessage:t.message,serverStatus:t.status})]}})})}function or(n){return n=n.apiKey,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n})}function sr(n,t){return t=t.refreshToken,n=or(n),n.append("Authorization",ur+" "+t),n}function dt(n){return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return 500<=(t=i.sent()).status&&t.status<600?[2,n()]:[2,t]}})})}function hr(n){return new Promise(function(t){setTimeout(t,n)})}function ku(){var n,t;try{return n=new Uint8Array(17),(self.crypto||self.msCrypto).getRandomValues(n),n[0]=112+n[0]%16,t=function(n){return btoa(String.fromCharCode.apply(String,pi([],yi(n)))).replace(/\+/g,"-").replace(/\//g,"_")}(n).substr(0,22),cr.test(t)?t:st}catch(n){return st}}function b(n){return n.appName+"!"+n.appId}function lr(n,t){n=b(n);ar(n,t),function(n,t){var i=vr();i&&i.postMessage({key:n,fid:t});yr()}(n,t)}function ar(n,t){var u,f,n=l.get(n),r,i;if(n)try{for(r=d(n),i=r.next();!i.done;i=r.next())i.value(t)}catch(n){u={error:n}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(u)throw u.error;}}}function vr(){return!a&&"BroadcastChannel"in self&&((a=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(n){ar(n.data.key,n.data.fid)}),a}function yr(){0===l.size&&a&&(a.close(),a=null)}function gt(){return wr=wr||pt(du,gu,function(n){0===n.oldVersion&&n.createObjectStore(v)})}function ht(n,r){return t(this,void 0,void 0,function(){var u,f,t,e;return i(this,function(i){switch(i.label){case 0:return u=b(n),[4,gt()];case 1:return t=i.sent(),f=t.transaction(v,"readwrite"),[4,(t=f.objectStore(v)).get(u)];case 2:return e=i.sent(),[4,t.put(r,u)];case 3:return i.sent(),[4,f.complete];case 4:return i.sent(),e&&e.fid===r.fid||lr(n,r.fid),[2,r]}})})}function ni(n){return t(this,void 0,void 0,function(){var r,t;return i(this,function(i){switch(i.label){case 0:return r=b(n),[4,gt()];case 1:return t=i.sent(),[4,(t=t.transaction(v,"readwrite")).objectStore(v).delete(r)];case 2:return i.sent(),[4,t.complete];case 3:return i.sent(),[2]}})})}function it(n,r){return t(this,void 0,void 0,function(){var f,o,u,e,t;return i(this,function(i){switch(i.label){case 0:return f=b(n),[4,gt()];case 1:return u=i.sent(),o=u.transaction(v,"readwrite"),[4,(u=o.objectStore(v)).get(f)];case 2:return e=i.sent(),void 0!==(t=r(e))?[3,4]:[4,u.delete(f)];case 3:return i.sent(),[3,6];case 4:return[4,u.put(t,f)];case 5:i.sent();i.label=6;case 6:return[4,o.complete];case 7:return i.sent(),!t||e&&e.fid===t.fid||lr(n,t.fid),[2,t]}})})}function ti(n){return t(this,void 0,void 0,function(){var r,f,u;return i(this,function(e){switch(e.label){case 0:return[4,it(n,function(u){return u=kr(u||{fid:ku(),registrationStatus:0}),u=function(n,r){if(0!==r.registrationStatus)return 1===r.registrationStatus?{installationEntry:r,registrationPromise:function(n){return t(this,void 0,void 0,function(){var t,u,r;return i(this,function(i){switch(i.label){case 0:return[4,br(n)];case 1:t=i.sent();i.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,hr(100)];case 3:return i.sent(),[4,br(n)];case 4:return t=i.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,ti(n)];case 6:return r=i.sent(),u=r.installationEntry,(r=r.registrationPromise)?[2,r]:[2,u];case 7:return[2,t]}})})}(n)}:{installationEntry:r};if(!navigator.onLine){var u=Promise.reject(h.create("app-offline"));return{installationEntry:r,registrationPromise:u}}return r={fid:r.fid,registrationStatus:1,registrationTime:Date.now()},n=function(n,r){return t(this,void 0,void 0,function(){var f,u;return i(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,7]),[4,function(n,r){var u=r.fid;return t(this,void 0,void 0,function(){var f,e,o,r,t;return i(this,function(i){switch(i.label){case 0:return f=bt(n),e=or(n),t={fid:u,authVersion:ur,appId:n.appId,sdkVersion:rr},o={method:"POST",headers:e,body:JSON.stringify(t)},[4,dt(function(){return fetch(f,o)})];case 1:return(r=i.sent()).ok?[4,r.json()]:[3,3];case 2:return t=i.sent(),[2,{fid:t.fid||u,registrationStatus:2,refreshToken:t.refreshToken,authToken:er(t.authToken)}];case 3:return[4,kt("Create Installation",r)];case 4:throw i.sent();}})})}(n,r)];case 1:return f=e.sent(),[2,ht(n,f)];case 2:return fr(u=e.sent())&&409===u.customData.serverCode?[4,ni(n)]:[3,4];case 3:return e.sent(),[3,6];case 4:return[4,ht(n,{fid:r.fid,registrationStatus:0})];case 5:e.sent();e.label=6;case 6:throw u;case 7:return[2]}})})}(n,r),{installationEntry:r,registrationPromise:n}}(n,u),r=u.registrationPromise,u.installationEntry})];case 1:return(f=e.sent()).fid!==st?[3,3]:(u={},[4,r]);case 2:return[2,(u.installationEntry=e.sent(),u)];case 3:return[2,{installationEntry:f,registrationPromise:r}]}})})}function br(n){return it(n,function(n){if(!n)throw h.create("installation-not-found");return kr(n)})}function kr(n){return 1===(t=n).registrationStatus&&t.registrationTime+ir<Date.now()?{fid:n.fid,registrationStatus:0}:n;var t}function nf(n,r){var u=n.appConfig,f=n.platformLoggerProvider;return t(this,void 0,void 0,function(){var o,t,s,e,n;return i(this,function(i){switch(i.label){case 0:return o=function(n,t){return t=t.fid,bt(n)+"/"+t+"/authTokens:generate"}(u,r),t=sr(u,r),(n=f.getImmediate({optional:!0}))&&t.append("x-firebase-client",n.getPlatformInfoString()),n={installation:{sdkVersion:rr}},s={method:"POST",headers:t,body:JSON.stringify(n)},[4,dt(function(){return fetch(o,s)})];case 1:return(e=i.sent()).ok?[4,e.json()]:[3,3];case 2:return n=i.sent(),[2,er(n)];case 3:return[4,kt("Generate Auth Token",e)];case 4:throw i.sent();}})})}function ii(n,r){return void 0===r&&(r=!1),t(this,void 0,void 0,function(){var u,e,f;return i(this,function(s){switch(s.label){case 0:return[4,it(n.appConfig,function(f){if(!gr(f))throw h.create("not-registered");var s,e=f.authToken;if(r||2!==(s=e).requestStatus||function(n){var t=Date.now();return t<n.creationTime||n.creationTime+n.expiresIn<t+bu}(s)){if(1===e.requestStatus)return u=function(n,r){return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return[4,dr(n.appConfig)];case 1:t=i.sent();i.label=2;case 2:return 1!==t.authToken.requestStatus?[3,5]:[4,hr(100)];case 3:return i.sent(),[4,dr(n.appConfig)];case 4:return t=i.sent(),[3,2];case 5:return 0===(t=t.authToken).requestStatus?[2,ii(n,r)]:[2,t]}})})}(n,r),f;if(!navigator.onLine)throw h.create("app-offline");return e=(s=f,e={requestStatus:1,requestTime:Date.now()},o(o({},s),{authToken:e})),u=function(n,r){return t(this,void 0,void 0,function(){var f,t,u;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,8]),[4,nf(n,r)];case 1:return f=i.sent(),u=o(o({},r),{authToken:f}),[4,ht(n.appConfig,u)];case 2:return i.sent(),[2,f];case 3:return!fr(t=i.sent())||401!==t.customData.serverCode&&404!==t.customData.serverCode?[3,5]:[4,ni(n.appConfig)];case 4:return i.sent(),[3,7];case 5:return u=o(o({},r),{authToken:{requestStatus:0}}),[4,ht(n.appConfig,u)];case 6:i.sent();i.label=7;case 7:throw t;case 8:return[2]}})})}(n,e),e}return f})];case 1:return e=s.sent(),u?[4,u]:[3,3];case 2:return f=s.sent(),[3,4];case 3:f=e.authToken;s.label=4;case 4:return[2,f]}})})}function dr(n){return it(n,function(n){if(!gr(n))throw h.create("not-registered");var t=n.authToken;return 1===(t=t).requestStatus&&t.requestTime+ir<Date.now()?o(o({},n),{authToken:{requestStatus:0}}):n})}function gr(n){return void 0!==n&&2===n.registrationStatus}function tf(n,r){return void 0===r&&(r=!1),t(this,void 0,void 0,function(){return i(this,function(u){switch(u.label){case 0:return[4,function(n){return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return[4,ti(n)];case 1:return(t=i.sent().registrationPromise)?[4,t]:[3,3];case 2:i.sent();i.label=3;case 3:return[2]}})})}(n.appConfig)];case 1:return u.sent(),[4,ii(n,r)];case 2:return[2,u.sent().token]}})})}function rf(n,r){return t(this,void 0,void 0,function(){var u,f,t;return i(this,function(i){switch(i.label){case 0:return u=function(n,t){return t=t.fid,bt(n)+"/"+t}(n,r),t=sr(n,r),f={method:"DELETE",headers:t},[4,dt(function(){return fetch(u,f)})];case 1:return(t=i.sent()).ok?[3,3]:[4,kt("Delete Installation",t)];case 2:throw i.sent();case 3:return[2]}})})}function uf(n,t){var i=n.appConfig;return function(n,t){vr();var i=b(n);(n=l.get(i))||(n=new Set,l.set(i,n));n.add(t)}(i,t),function(){var n,u,r;u=t;r=b(n=i);(n=l.get(r))&&(n.delete(u),0===n.size&&l.delete(r),yr())}}function ri(n){return h.create("missing-app-config-values",{valueName:n})}function k(n){return n=new Uint8Array(n),btoa(String.fromCharCode.apply(String,pi([],yi(n)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function of(n){return t(this,void 0,void 0,function(){var u,r,f=this;return i(this,function(e){switch(e.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(u=e.sent(),!u.map(function(n){return n.name}).includes(ui))return[2,null];e.label=2;case 2:return r=null,[4,pt(ui,ef,function(u){return t(f,void 0,void 0,function(){var e,t,f;return i(this,function(i){switch(i.label){case 0:return u.oldVersion<2?[2]:u.objectStoreNames.contains(iu)?[4,(f=u.transaction.objectStore(iu)).index("fcmSenderId").get(n)]:[2];case 1:return e=i.sent(),[4,f.clear()];case 2:if(i.sent(),!e)return[2];if(2===u.oldVersion){if(!(t=e).auth||!t.p256dh||!t.endpoint)return[2];r={token:t.fcmToken,createTime:null!==(f=t.createTime)&&void 0!==f?f:Date.now(),subscriptionOptions:{auth:t.auth,p256dh:t.p256dh,endpoint:t.endpoint,swScope:t.swScope,vapidKey:"string"==typeof t.vapidKey?t.vapidKey:k(t.vapidKey)}}}else(3===u.oldVersion||4===u.oldVersion)&&(r={token:(t=e).fcmToken,createTime:t.createTime,subscriptionOptions:{auth:k(t.auth),p256dh:k(t.p256dh),endpoint:t.endpoint,swScope:t.swScope,vapidKey:k(t.vapidKey)}});return[2]}})})})];case 3:return e.sent().close(),[4,wt(ui)];case 4:return e.sent(),[4,wt("fcm_vapid_details_db")];case 5:return e.sent(),[4,wt("undefined")];case 6:return e.sent(),[2,function(n){if(!n||!n.subscriptionOptions)return!1;var t=n.subscriptionOptions;return"number"==typeof n.createTime&&0<n.createTime&&"string"==typeof n.token&&0<n.token.length&&"string"==typeof t.auth&&0<t.auth.length&&"string"==typeof t.p256dh&&0<t.p256dh.length&&"string"==typeof t.endpoint&&0<t.endpoint.length&&"string"==typeof t.swScope&&0<t.swScope.length&&"string"==typeof t.vapidKey&&0<t.vapidKey.length}(r)?r:null]}})})}function fi(){return ru=ru||pt(sf,hf,function(n){0===n.oldVersion&&n.createObjectStore(p)})}function lt(n){return t(this,void 0,void 0,function(){var t,r;return i(this,function(i){switch(i.label){case 0:return t=oi(n),[4,fi()];case 1:return[4,i.sent().transaction(p).objectStore(p).get(t)];case 2:return(t=i.sent())?[2,t]:[3,3];case 3:return[4,of(n.appConfig.senderId)];case 4:return(r=i.sent())?[4,ei(n,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}})})}function ei(n,r){return t(this,void 0,void 0,function(){var u,t;return i(this,function(i){switch(i.label){case 0:return u=oi(n),[4,fi()];case 1:return t=i.sent(),[4,(t=t.transaction(p,"readwrite")).objectStore(p).put(r,u)];case 2:return i.sent(),[4,t.complete];case 3:return i.sent(),[2,r]}})})}function oi(n){return n.appConfig.appId}function uu(n,r){return t(this,void 0,void 0,function(){var t,f;return i(this,function(i){switch(i.label){case 0:return[4,hi(n)];case 1:t=i.sent();t={method:"DELETE",headers:t};i.label=2;case 2:return i.trys.push([2,5,,6]),[4,fetch(si(n.appConfig)+"/"+r,t)];case 3:return[4,i.sent().json()];case 4:if((t=i.sent()).error)throw f=t.error.message,u.create("token-unsubscribe-failed",{errorInfo:f});return[3,6];case 5:throw f=i.sent(),u.create("token-unsubscribe-failed",{errorInfo:f});case 6:return[2]}})})}function si(n){return n=n.projectId,ff+"/projects/"+n+"/registrations"}function hi(n){var r=n.appConfig,u=n.installations;return t(this,void 0,void 0,function(){var n;return i(this,function(t){switch(t.label){case 0:return[4,u.getToken()];case 1:return n=t.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r.apiKey,"x-goog-firebase-installations-auth":"FIS "+n})]}})})}function fu(n){var t=n.p256dh,i=n.auth,r=n.endpoint,n=n.vapidKey,t={web:{endpoint:r,auth:i,p256dh:t}};return n!==ct&&(t.web.applicationPubKey=n),t}function ci(n,r,f){return t(this,void 0,void 0,function(){var s,e,h;return i(this,function(c){switch(c.label){case 0:if("granted"!==Notification.permission)throw u.create("permission-blocked");return[4,function(n,r){return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return[4,n.pushManager.getSubscription()];case 1:return(t=i.sent())?[2,t]:[2,n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(n){for(var n=(n+"=".repeat((4-n.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),r=new Uint8Array(i.length),t=0;t<i.length;++t)r[t]=i.charCodeAt(t);return r}(r)})]}})})}(r,f)];case 1:return h=c.sent(),[4,lt(n)];case 2:return s=c.sent(),e={vapidKey:f,swScope:r.scope,endpoint:h.endpoint,auth:k(h.getKey("auth")),p256dh:k(h.getKey("p256dh"))},s?[3,3]:[2,eu(n,e)];case 3:if(l=s.subscriptionOptions,a=e.vapidKey===l.vapidKey,v=e.endpoint===l.endpoint,y=e.auth===l.auth,l=e.p256dh===l.p256dh,a&&v&&y&&l)return[3,8];c.label=4;case 4:return c.trys.push([4,6,,7]),[4,uu(n,s.token)];case 5:return c.sent(),[3,7];case 6:return h=c.sent(),console.warn(h),[3,7];case 7:return[2,eu(n,e)];case 8:return Date.now()>=s.createTime+6048e5?[2,function(n,r,f){return t(this,void 0,void 0,function(){var e,s,h;return i(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,5]),[4,function(n,r){return t(this,void 0,void 0,function(){var o,f,t,e;return i(this,function(i){switch(i.label){case 0:return[4,hi(n)];case 1:o=i.sent();f=fu(r.subscriptionOptions);f={method:"PATCH",headers:o,body:JSON.stringify(f)};i.label=2;case 2:return i.trys.push([2,5,,6]),[4,fetch(si(n.appConfig)+"/"+r.token,f)];case 3:return[4,i.sent().json()];case 4:return t=i.sent(),[3,6];case 5:throw e=i.sent(),u.create("token-update-failed",{errorInfo:e});case 6:if(t.error)throw e=t.error.message,u.create("token-update-failed",{errorInfo:e});if(!t.token)throw u.create("token-update-no-token");return[2,t.token]}})})}(r,n)];case 1:return e=c.sent(),s=o(o({},n),{token:e,createTime:Date.now()}),[4,ei(r,s)];case 2:return c.sent(),[2,e];case 3:return h=c.sent(),[4,rt(r,f)];case 4:throw c.sent(),h;case 5:return[2]}})})}({token:s.token,createTime:Date.now(),subscriptionOptions:e},n,r)]:[2,s.token];case 9:return[2]}var l,a,v,y})})}function rt(n,r){return t(this,void 0,void 0,function(){var u;return i(this,function(f){switch(f.label){case 0:return[4,lt(n)];case 1:return(u=f.sent())?[4,uu(n,u.token)]:[3,4];case 2:return f.sent(),[4,function(n){return t(this,void 0,void 0,function(){var r,t;return i(this,function(i){switch(i.label){case 0:return r=oi(n),[4,fi()];case 1:return t=i.sent(),[4,(t=t.transaction(p,"readwrite")).objectStore(p).delete(r)];case 2:return i.sent(),[4,t.complete];case 3:return i.sent(),[2]}})})}(n)];case 3:f.sent();f.label=4;case 4:return[4,r.pushManager.getSubscription()];case 5:return(u=f.sent())?[2,u.unsubscribe()]:[2,!0]}})})}function eu(n,r){return t(this,void 0,void 0,function(){var f;return i(this,function(e){switch(e.label){case 0:return[4,function(n,r){return t(this,void 0,void 0,function(){var o,f,t,e;return i(this,function(i){switch(i.label){case 0:return[4,hi(n)];case 1:o=i.sent();f=fu(r);f={method:"POST",headers:o,body:JSON.stringify(f)};i.label=2;case 2:return i.trys.push([2,5,,6]),[4,fetch(si(n.appConfig),f)];case 3:return[4,i.sent().json()];case 4:return t=i.sent(),[3,6];case 5:throw e=i.sent(),u.create("token-subscribe-failed",{errorInfo:e});case 6:if(t.error)throw e=t.error.message,u.create("token-subscribe-failed",{errorInfo:e});if(!t.token)throw u.create("token-subscribe-no-token");return[2,t.token]}})})}(n,r)];case 1:return f=e.sent(),f={token:f,createTime:Date.now(),subscriptionOptions:r},[4,ei(n,f)];case 2:return e.sent(),[2,f.token]}})})}function ou(n){return"object"==typeof n&&n&&tu in n}function su(n){return new Promise(function(t){setTimeout(t,n)})}function e(n){var t=this;this.firebaseDependencies=n;this.isOnBackgroundMessageUsed=null;this.vapidKey=null;this.bgMessageHandler=null;self.addEventListener("push",function(n){n.waitUntil(t.onPush(n))});self.addEventListener("pushsubscriptionchange",function(n){n.waitUntil(t.onSubChange(n))});self.addEventListener("notificationclick",function(n){n.waitUntil(t.onNotificationClick(n))})}function cu(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function f(n){var t=this;this.firebaseDependencies=n;this.vapidKey=null;this.onMessageCallback=null;navigator.serviceWorker.addEventListener("message",function(n){return t.messageEventListener(n)})}function li(n){return u.create("missing-app-config-values",{valueName:n})}function au(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}var ai=vu(n),vi=function(n,t){return(vi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])})(n,t)},o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},wi,yu="FirebaseError",bi=(function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vi(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(at,wi=Error),at),vt=(ki.prototype.create=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];var r,u=i[0]||{},f=this.service+"/"+n,n=this.errors[n],n=n?(r=u,n.replace(pu,function(n,t){var i=r[t];return null!=i?String(i):"<"+t+"?>"})):"Error",n=this.serviceName+": "+n+" ("+f+").";return new bi(f,n,u)},ki),pu=/\{\$([^}]+)}/g,di=(g.prototype.setInstantiationMode=function(n){return this.instantiationMode=n,this},g.prototype.setMultipleInstances=function(n){return this.multipleInstances=n,this},g.prototype.setServiceProps=function(n){return this.serviceProps=n,this},g.prototype.setInstanceCreatedCallback=function(n){return this.onInstanceCreated=n,this},g),cr,st,l,a,hu,lu;w(c,"_index",["name","keyPath","multiEntry","unique"]);yt(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]);nr(c,"_index",IDBIndex,["openCursor","openKeyCursor"]);w(nt,"_cursor",["direction","key","primaryKey","value"]);yt(nt,"_cursor",IDBCursor,["update","delete"]);["advance","continue","continuePrimaryKey"].forEach(function(n){n in IDBCursor.prototype&&(nt.prototype[n]=function(){var t=this,i=arguments;return Promise.resolve().then(function(){return t._cursor[n].apply(t._cursor,i),gi(t._request).then(function(n){if(n)return new nt(n,t._request)})})})});s.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))};s.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))};w(s,"_store",["name","keyPath","indexNames","autoIncrement"]);yt(s,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]);nr(s,"_store",IDBObjectStore,["openCursor","openKeyCursor"]);ft(s,"_store",IDBObjectStore,["deleteIndex"]);tt.prototype.objectStore=function(){return new s(this._tx.objectStore.apply(this._tx,arguments))};w(tt,"_tx",["objectStoreNames","mode"]);ft(tt,"_tx",IDBTransaction,["abort"]);et.prototype.createObjectStore=function(){return new s(this._db.createObjectStore.apply(this._db,arguments))};w(et,"_db",["name","version","objectStoreNames"]);ft(et,"_db",IDBDatabase,["deleteObjectStore","close"]);ot.prototype.transaction=function(){return new tt(this._db.transaction.apply(this._db,arguments))};w(ot,"_db",["name","version","objectStoreNames"]);ft(ot,"_db",IDBDatabase,["close"]);["openCursor","openKeyCursor"].forEach(function(n){[s,c].forEach(function(t){n in t.prototype&&(t.prototype[n.replace("open","iterate")]=function(){var i=(t=arguments,Array.prototype.slice.call(t)),u=i[i.length-1],t=this._store||this._index,r=t[n].apply(t,i.slice(0,-1));r.onsuccess=function(){u(r.result)}})})});[c,s].forEach(function(n){n.prototype.getAll||(n.prototype.getAll=function(n,t){var r=this,i=[];return new Promise(function(u){r.iterateCursor(n,function(n){n?(i.push(n.value),void 0===t||i.length!=t?n.continue():u(i)):u(i)})})})});var tr="0.4.32",ir=1e4,rr="w:"+tr,ur="FIS_v2",wu="https://firebaseinstallations.googleapis.com/v1",bu=36e5,r=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),h=new vt("installations","Installations",r);cr=/^[cdef][\w-]{21}$/;st="";l=new Map;a=null;var pr,du="firebase-installations-database",gu=1,v="firebase-installations-store",wr=null;(pr=ai.default).INTERNAL.registerComponent(new di("installations",function(n){var u=n.getProvider("app").getImmediate(),r={appConfig:function(n){var r,f,i,t,u;if(!n||!n.options)throw ri("App Configuration");if(!n.name)throw ri("App Name");try{for(i=d(["projectId","apiKey","appId"]),t=i.next();!t.done;t=i.next())if(u=t.value,!n.options[u])throw ri(u);}catch(n){r={error:n}}finally{try{t&&!t.done&&(f=i.return)&&f.call(i)}finally{if(r)throw r.error;}}return{appName:n.name,projectId:n.options.projectId,apiKey:n.options.apiKey,appId:n.options.appId}}(u),platformLoggerProvider:n.getProvider("platform-logger")};return{app:u,getId:function(){return function(n){return t(this,void 0,void 0,function(){var t,r;return i(this,function(i){switch(i.label){case 0:return[4,ti(n.appConfig)];case 1:return t=i.sent(),r=t.installationEntry,(t.registrationPromise||ii(n)).catch(console.error),[2,r.fid]}})})}(r)},getToken:function(n){return tf(r,n)},"delete":function(){return function(n){return t(this,void 0,void 0,function(){var r,t;return i(this,function(i){switch(i.label){case 0:return[4,it(r=n.appConfig,function(n){if(!n||0!==n.registrationStatus)return n})];case 1:if(!(t=i.sent()))return[3,6];if(1!==t.registrationStatus)return[3,2];throw h.create("delete-pending-registration");case 2:if(2!==t.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw h.create("app-offline");case 3:return[4,rf(r,t)];case 4:return i.sent(),[4,ni(r)];case 5:i.sent();i.label=6;case 6:return[2]}})})}(r)},onIdChange:function(n){return uf(r,n)}}},"PUBLIC"));pr.registerVersion("@firebase/installations",tr);var y,r=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r),u=new vt("messaging","Messaging",r),ct="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ff="https://fcmregistrations.googleapis.com/v1",nu="FCM_MSG",tu="google.c.a.c_id";(r=y=y||{}).PUSH_RECEIVED="push-received";r.NOTIFICATION_CLICKED="notification-clicked";var ui="fcm_token_details_db",ef=5,iu="fcm_token_object_Store";var sf="firebase-messaging-database",hf=1,p="firebase-messaging-store",ru=null;hu=(Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(n){if(this.isOnBackgroundMessageUsed=!1,!n||"function"!=typeof n)throw u.create("invalid-bg-handler");this.bgMessageHandler=n},e.prototype.onBackgroundMessage=function(n){var t=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=n,function(){t.bgMessageHandler=null}},e.prototype.getToken=function(){var n;return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return this.vapidKey?[3,2]:[4,lt(this.firebaseDependencies)];case 1:t=i.sent();this.vapidKey=null!==(n=null===(n=null==t?void 0:t.subscriptionOptions)||void 0===n?void 0:n.vapidKey)&&void 0!==n?n:ct;i.label=2;case 2:return[2,ci(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},e.prototype.deleteToken=function(){return rt(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw u.create("only-available-in-window");},e.prototype.usePublicVapidKey=function(n){if(null!==this.vapidKey)throw u.create("use-vapid-key-after-get-token");if("string"!=typeof n||0===n.length)throw u.create("invalid-vapid-key");this.vapidKey=n},e.prototype.useServiceWorker=function(){throw u.create("only-available-in-window");},e.prototype.onMessage=function(){throw u.create("only-available-in-window");},e.prototype.onTokenRefresh=function(){throw u.create("only-available-in-window");},e.prototype.onPush=function(n){return t(this,void 0,void 0,function(){var u,r,t;return i(this,function(i){switch(i.label){case 0:return(t=function(n){if(n=n.data,!n)return null;try{return n.json()}catch(n){return null}}(n))?[4,cu()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return(u=i.sent()).some(function(n){return"visible"===n.visibilityState&&!n.url.startsWith("chrome-extension://")})?[2,function(n,t){var u,f,r,i;t.isFirebaseMessaging=!0;t.messageType=y.PUSH_RECEIVED;try{for(r=d(n),i=r.next();!i.done;i=r.next())i.value.postMessage(t)}catch(n){u={error:n}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(u)throw u.error;}}}(u,t)]:(r=!1,t.notification?[4,function(n){var i=n.actions,t=Notification.maxActions;return i&&t&&i.length>t&&console.warn("This browser only supports "+t+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(t=n.title)&&void 0!==t?t:"",n)}(((h=o({},(e=t).notification)).data=((f={})[nu]=e,f),h))]:[3,3]);case 2:i.sent();r=!0;i.label=3;case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(c={from:(s=t).from,collapseKey:s.collapse_key,messageId:s.fcm_message_id},e=c,(f=s).notification&&(e.notification={},(h=f.notification.title)&&(e.notification.title=h),(h=f.notification.body)&&(e.notification.body=h),(f=f.notification.image)&&(e.notification.image=f)),e=c,(f=s).data&&(e.data=f.data),e=c,(f=s).fcmOptions&&(e.fcmOptions={},(s=f.fcmOptions.link)&&(e.fcmOptions.link=s),(f=f.fcmOptions.analytics_label)&&(e.fcmOptions.analyticsLabel=f)),t=c,"function"==typeof this.bgMessageHandler?this.bgMessageHandler(t):this.bgMessageHandler.next(t)),[4,su(1e3)]);case 4:return i.sent(),[2]}var s,c,e,f,h})})},e.prototype.onSubChange=function(n){var r;return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return n.newSubscription?[3,2]:[4,rt(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,lt(this.firebaseDependencies)];case 3:return t=i.sent(),[4,rt(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,ci(this.firebaseDependencies,self.registration,null!==(r=null===(r=null==t?void 0:t.subscriptionOptions)||void 0===r?void 0:r.vapidKey)&&void 0!==r?r:ct)];case 5:return i.sent(),[2]}})})},e.prototype.onNotificationClick=function(n){var r;return t(this,void 0,void 0,function(){var f,e,o,s,u;return i(this,function(h){switch(h.label){case 0:return(f=null===(r=null===(r=n.notification)||void 0===r?void 0:r.data)||void 0===r?void 0:r[nu])?n.action?[2]:(n.stopImmediatePropagation(),n.notification.close(),(e=function(n){var t,i=null!==(t=null===(t=n.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==t?t:null===(i=n.notification)||void 0===i?void 0:i.click_action;return i?i:ou(n.data)?self.location.origin:null}(f))?(o=new URL(e,self.location.href),s=new URL(self.location.origin),o.host!==s.host?[2]:[4,function(n){return t(this,void 0,void 0,function(){var e,r,t,u,o,f,s;return i(this,function(i){switch(i.label){case 0:return[4,cu()];case 1:e=i.sent();try{for(r=d(e),t=r.next();!t.done;t=r.next())if(u=t.value,o=new URL(u.url,self.location.href),n.host===o.host)return[2,u]}catch(i){f={error:i}}finally{try{t&&!t.done&&(s=r.return)&&s.call(r)}finally{if(f)throw f.error;}}return[2,null]}})})}(o)]):[2]):[2];case 1:return(u=h.sent())?[3,4]:[4,self.clients.openWindow(e)];case 2:return u=h.sent(),[4,su(3e3)];case 3:return h.sent(),[3,6];case 4:return[4,u.focus()];case 5:u=h.sent();h.label=6;case 6:return u?(f.messageType=y.NOTIFICATION_CLICKED,f.isFirebaseMessaging=!0,[2,u.postMessage(f)]):[2]}})})},e);lu=(Object.defineProperty(f.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),f.prototype.messageEventListener=function(n){return t(this,void 0,void 0,function(){var t,r;return i(this,function(i){switch(i.label){case 0:return(t=n.data).isFirebaseMessaging?(this.onMessageCallback&&t.messageType===y.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback((delete(u=Object.assign({},t)).messageType,delete u.isFirebaseMessaging,u)):this.onMessageCallback.next(Object.assign({},t))),ou(r=t.data)&&"1"===r["google.c.a.e"]?[4,this.logEvent(t.messageType,r)]:[3,2]):[2];case 1:i.sent();i.label=2;case 2:return[2]}var u})})},f.prototype.getVapidKey=function(){return this.vapidKey},f.prototype.getSwReg=function(){return this.swRegistration},f.prototype.getToken=function(n){return t(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:t.sent();t.label=2;case 2:if("granted"!==Notification.permission)throw u.create("permission-blocked");return[4,this.updateVapidKey(null==n?void 0:n.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(null==n?void 0:n.serviceWorkerRegistration)];case 4:return t.sent(),[2,ci(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},f.prototype.updateVapidKey=function(n){return t(this,void 0,void 0,function(){return i(this,function(){return n?this.vapidKey=n:this.vapidKey||(this.vapidKey=ct),[2]})})},f.prototype.updateSwReg=function(n){return t(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return n||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent();t.label=2;case 2:if(!n&&this.swRegistration)return[2];if(!(n instanceof ServiceWorkerRegistration))throw u.create("invalid-sw-registration");return this.swRegistration=n,[2]}})})},f.prototype.registerDefaultSw=function(){return t(this,void 0,void 0,function(){var n;return i(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),n=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return n.swRegistration=t.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw n=t.sent(),u.create("failed-service-worker-registration",{browserErrorMessage:n.message});case 3:return[2]}})})},f.prototype.deleteToken=function(){return t(this,void 0,void 0,function(){return i(this,function(n){switch(n.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:n.sent();n.label=2;case 2:return[2,rt(this.firebaseDependencies,this.swRegistration)]}})})},f.prototype.requestPermission=function(){return t(this,void 0,void 0,function(){var n;return i(this,function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(n=t.sent()))return[2];throw"denied"===n?u.create("permission-blocked"):u.create("permission-default");}})})},f.prototype.usePublicVapidKey=function(n){if(null!==this.vapidKey)throw u.create("use-vapid-key-after-get-token");if("string"!=typeof n||0===n.length)throw u.create("invalid-vapid-key");this.vapidKey=n},f.prototype.useServiceWorker=function(n){if(!(n instanceof ServiceWorkerRegistration))throw u.create("invalid-sw-registration");if(this.swRegistration)throw u.create("use-sw-after-get-token");this.swRegistration=n},f.prototype.onMessage=function(n){var t=this;return this.onMessageCallback=n,function(){t.onMessageCallback=null}},f.prototype.setBackgroundMessageHandler=function(){throw u.create("only-available-in-sw");},f.prototype.onBackgroundMessage=function(){throw u.create("only-available-in-sw");},f.prototype.onTokenRefresh=function(){return function(){}},f.prototype.logEvent=function(n,r){return t(this,void 0,void 0,function(){var t;return i(this,function(i){switch(i.label){case 0:return t=function(n){switch(n){case y.NOTIFICATION_CLICKED:return"notification_open";case y.PUSH_RECEIVED:return"notification_foreground";default:throw new Error;}}(n),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return i.sent().logEvent(t,{message_id:r[tu],message_name:r["google.c.a.c_l"],message_time:r["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},f);r={isSupported:au};ai.default.INTERNAL.registerComponent(new di("messaging",function(n){var t=n.getProvider("app").getImmediate(),n={app:t,appConfig:function(n){var u,e,t,r,i,f;if(!n||!n.options)throw li("App Configuration Object");if(!n.name)throw li("App Name");t=n.options;try{for(r=d(["projectId","apiKey","appId","messagingSenderId"]),i=r.next();!i.done;i=r.next())if(f=i.value,!t[f])throw li(f);}catch(n){u={error:n}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(u)throw u.error;}}return{appName:n.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(t),installations:n.getProvider("installations").getImmediate(),analyticsProvider:n.getProvider("analytics-internal")};if(!au())throw u.create("unsupported-browser");return new(self&&"ServiceWorkerGlobalScope"in self?hu:lu)(n)},"PUBLIC").setServiceProps(r))}.apply(this,arguments)}catch(t){throw console.error(t),new Error("Cannot instantiate firebase-messaging.js - be sure to load firebase-app.js first.");}});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((n=n||self).bootstrap={},n.jQuery)}(this,function(n,t){"use strict";function hi(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function f(n,t,i){return t&&hi(n.prototype,t),i&&hi(n,i),n}function yr(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function ci(n,t){var r=Object.keys(n),i;return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function r(n){for(var i,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},t%2?ci(Object(i),!0).forEach(function(t){yr(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):ci(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function pr(n){var u=this,r=!1;return t(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},n),this}function vi(n){return n&&"[object Function]"==={}.toString.call(n)}function h(n,t){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return t?i[t]:i}function kt(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function ot(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=h(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll|overlay)/.test(i+u+r)?n:ot(kt(n))}function yi(n){return n&&n.referenceNode?n.referenceNode:n}function k(n){return 11===n?dt:10===n?gt:dt||gt}function d(n){var r,t,i;if(!n)return document.documentElement;for(r=k(10)?document.body:null,t=n.offsetParent||null;t===r&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===h(t,"position")?d(t):t:n?n.ownerDocument.documentElement:document.documentElement}function ni(n){return null!==n.parentNode?ni(n.parentNode):n}function lt(n,t){var u,h,i,f;if(!(n&&n.nodeType&&t&&t.nodeType))return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?"BODY"===(h=(u=i).nodeName)||"HTML"!==h&&d(u.firstElementChild)!==u?d(i):i:(f=ni(n),f.host?lt(f.host,t):lt(n,ni(t).host))}function g(n){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function ru(n,t){var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),u=g(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function pi(n,t){var i="x"===t?"Left":"Top",r="Left"===i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function wi(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],k(10)?parseInt(i["offset"+n])+parseInt(r["margin"+("Height"===n?"Top":"Left")])+parseInt(r["margin"+("Height"===n?"Bottom":"Right")]):0)}function bi(n){var i=n.body,t=n.documentElement,r=k(10)&&getComputedStyle(t);return{height:wi("Height",i,t,r),width:wi("Width",i,t,r)}}function e(n){return u({},n,{right:n.left+n.width,bottom:n.top+n.height})}function ti(n){var t={},r,u,s;try{k(10)?(t=n.getBoundingClientRect(),r=g(n,"top"),u=g(n,"left"),t.top+=r,t.left+=u,t.bottom+=r,t.right+=u):t=n.getBoundingClientRect()}catch(n){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},c="HTML"===n.nodeName?bi(n.ownerDocument):{},l=c.width||n.clientWidth||i.width,a=c.height||n.clientHeight||i.height,f=n.offsetWidth-l,o=n.offsetHeight-a;return(f||o)&&(s=h(n),f-=pi(s,"x"),o-=pi(s,"y"),i.width-=f,i.height-=o),e(i)}function ii(n,t){var v=arguments.length>2&&void 0!==arguments[2]&&arguments[2],y=k(10),p="HTML"===t.nodeName,u=ti(n),r=ti(t),c=ot(n),f=h(t),l=parseFloat(f.borderTopWidth,10),a=parseFloat(f.borderLeftWidth,10),i,o,s;return v&&p&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0)),i=e({top:u.top-r.top-l,left:u.left-r.left-a,width:u.width,height:u.height}),(i.marginTop=0,i.marginLeft=0,!y&&p)&&(o=parseFloat(f.marginTop,10),s=parseFloat(f.marginLeft,10),i.top-=l-o,i.bottom-=l-o,i.left-=a-s,i.right-=a-s,i.marginTop=o,i.marginLeft=s),(y&&!v?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(i=ru(i,t)),i}function eu(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=ii(n,t),u=Math.max(t.clientWidth,window.innerWidth||0),f=Math.max(t.clientHeight,window.innerHeight||0),o=r?0:g(t),s=r?0:g(t,"left"),h={top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:u,height:f};return e(h)}function ki(n){var i=n.nodeName,t;return"BODY"===i||"HTML"===i?!1:"fixed"===h(n,"position")?!0:(t=kt(n),!!t&&ki(t))}function di(n){if(!n||!n.parentElement||k())return document.documentElement;for(var t=n.parentElement;t&&"none"===h(t,"transform");)t=t.parentElement;return t||document.documentElement}function ri(n,t,i,r){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},h=s?di(n):lt(n,yi(t)),e,f,o;if("viewport"===r)u=eu(h,s);else if(e=void 0,"scrollParent"===r?"BODY"===(e=ot(kt(t))).nodeName&&(e=n.ownerDocument.documentElement):e="window"===r?n.ownerDocument.documentElement:r,f=ii(e,h,s),"HTML"!==e.nodeName||ki(h))u=f;else{var c=bi(n.ownerDocument),l=c.height,a=c.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return o="number"==typeof(i=i||0),u.left+=o?i:i.left||0,u.top+=o?i:i.top||0,u.right-=o?i:i.right||0,u.bottom-=o?i:i.bottom||0,u}function ou(n){return n.width*n.height}function gi(n,t,i,r,f){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var e=ri(i,r,l,f),o={top:{width:e.width,height:t.top-e.top},right:{width:e.right-t.right,height:e.height},bottom:{width:e.width,height:e.bottom-t.bottom},left:{width:t.left-e.left,height:e.height}},s=Object.keys(o).map(function(n){return u({key:n},o[n],{area:ou(o[n])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=n.split("-")[1];return a+(c?"-"+c:"")}function nr(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=r?di(t):lt(t,yi(i));return ii(i,u,r)}function tr(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function at(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function ir(n,t,i){i=i.split("-")[0];var r=tr(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[at(f)],e}function st(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function rr(n,t,i){return(void 0===i?n:n.slice(0,function(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=st(n,function(n){return n[t]===i});return n.indexOf(r)}(n,"name",i))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&vi(i)&&(t.offsets.popper=e(t.offsets.popper),t.offsets.reference=e(t.offsets.reference),t=i(t,n))}),t}function su(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=nr(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=gi(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=ir(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=rr(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function ur(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function ui(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function hu(){return this.state.isDestroyed=!0,ur(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ui("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function fr(n){var t=n.ownerDocument;return t?t.defaultView:window}function cu(n,t,i,r){i.updateBound=r;fr(n).addEventListener("resize",i.updateBound,{passive:!0});var u=ot(n);return function n(t,i,r,u){var e="BODY"===t.nodeName,f=e?t.ownerDocument.defaultView:t;f.addEventListener(i,r,{passive:!0});e||n(ot(f.parentNode),i,r,u);u.push(f)}(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function lu(){this.state.eventsEnabled||(this.state=cu(this.reference,this.options,this.state,this.scheduleUpdate))}function au(){var t,n;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,n=this.state,fr(t).removeEventListener("resize",n.updateBound),n.scrollParents.forEach(function(t){t.removeEventListener("scroll",n.updateBound)}),n.updateBound=null,n.scrollParents=[],n.scrollElement=null,n.eventsEnabled=!1,n))}function fi(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function ei(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&fi(t[i])&&(r="px");n.style[i]=t[i]+r})}function or(n,t,i){var u=st(n,function(n){return n.name===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function sr(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=vt.indexOf(n),i=vt.slice(t+1).concat(vt.slice(0,t));return r?i.reverse():i}function wu(n,t,i,r){var h=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(st(u,function(n){return-1!==n.search(/,|\s/)})),o,s;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,s=-1!==f?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],(s=s.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return function(n,t,i,r){var s=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),f=+s[1],u=s[2],o;if(!f)return n;if(0===u.indexOf("%")){o=void 0;switch(u){case"%p":o=i;break;case"%":case"%r":default:o=r}return e(o)[t]/100*f}return"vh"===u||"vw"===u?("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*f:f}(n,f,t,i)})})).forEach(function(n,t){n.forEach(function(i,r){fi(i)&&(h[t]+=i*("-"===n[r-1]?-1:1))})}),h}function cr(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===rf.indexOf(i)||Boolean(n.nodeValue.match(uf)||n.nodeValue.match(ff));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(i.match(u[r]))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var i,li,y,dt,gt,er,oi,vt,hr,o,ar,rt;t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var i=t(n).css("transition-duration"),r=t(n).css("transition-delay"),u=parseFloat(i),f=parseFloat(r);return u||f?(i=i.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(i)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,r){var u,f;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var o=r[u],e=t[u],s=e&&i.isElement(e)?"element":null===(f=e)||"undefined"==typeof f?""+f:{}.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+s+'" but expected type "'+o+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"==typeof n.getRootNode){var t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?i.findShadowRoot(n.parentNode):null},jQueryDetection:function(){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||n[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}};i.jQueryDetection();t.fn.emulateTransitionEnd=pr;t.event.special[i.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var ut="alert",wr=t.fn[ut],v=function(){function n(n){this._element=n}var r=n.prototype;return r.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){t.removeData(this._element,"bs.alert");this._element=null},r._getRootElement=function(n){var u=i.getSelectorFromElement(n),r=!1;return u&&(r=document.querySelector(u)),r||(r=t(n).closest(".alert")[0]),r},r._triggerCloseEvent=function(n){var i=t.Event("close.bs.alert");return t(n).trigger(i),i},r._removeElement=function(n){var u=this,r;(t(n).removeClass("show"),t(n).hasClass("fade"))?(r=i.getTransitionDurationFromElement(n),t(n).one(i.TRANSITION_END,function(t){return u._destroyElement(n,t)}).emulateTransitionEnd(r)):this._destroyElement(n)},r._destroyElement=function(n){t(n).detach().trigger("closed.bs.alert").remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data("bs.alert");r||(r=new n(this),u.data("bs.alert",r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),n}();t(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',v._handleDismiss(new v));t.fn[ut]=v._jQueryInterface;t.fn[ut].Constructor=v;t.fn[ut].noConflict=function(){return t.fn[ut]=wr,v._jQueryInterface};li=t.fn.button;y=function(){function n(n){this._element=n}var i=n.prototype;return i.toggle=function(){var i=!0,u=!0,f=t(this._element).closest('[data-toggle="buttons"]')[0],n,r;f&&(n=this._element.querySelector('input:not([type="hidden"])'),n&&("radio"===n.type&&(n.checked&&this._element.classList.contains("active")?i=!1:(r=f.querySelector(".active"),r&&t(r).removeClass("active"))),i&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains("active")),t(n).trigger("change")),n.focus(),u=!1));this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(u&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),i&&t(this._element).toggleClass("active"))},i.dispose=function(){t.removeData(this._element,"bs.button");this._element=null},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data("bs.button");r||(r=new n(this),t(this).data("bs.button",r));"toggle"===i&&r[i]()})},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),n}();t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=n.target,u=i,r;if(t(i).hasClass("btn")||(i=t(i).closest(".btn")[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))n.preventDefault();else{if(r=i.querySelector('input:not([type="hidden"])'),r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void n.preventDefault();"LABEL"===u.tagName&&r&&"checkbox"===r.type&&n.preventDefault();y._jQueryInterface.call(t(i),"toggle")}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn")[0];t(i).toggleClass("focus",/^focus(in)?$/.test(n.type))});t(window).on("load.bs.button.data-api",function(){for(var t,f,i,e,r,n=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),u=0,o=n.length;u<o;u++)t=n[u],f=t.querySelector('input:not([type="hidden"])'),f.checked||f.hasAttribute("checked")?t.classList.add("active"):t.classList.remove("active");for(i=0,e=(n=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;i<e;i++)r=n[i],"true"===r.getAttribute("aria-pressed")?r.classList.add("active"):r.classList.remove("active")});t.fn.button=y._jQueryInterface;t.fn.button.Constructor=y;t.fn.button.noConflict=function(){return t.fn.button=li,y._jQueryInterface};var p="carousel",br=".bs.carousel",kr=t.fn[p],wt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},dr={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ai={TOUCH:"touch",PEN:"pen"},w=function(){function u(n,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=n;this._indicatorsElement=this._element.querySelector(".carousel-indicators");this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var n=u.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(i.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(n){var u=this,i,r;if(this._activeElement=this._element.querySelector(".active.carousel-item"),i=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one("slid.bs.carousel",function(){return u.to(n)});else{if(i===n)return this.pause(),void this.cycle();r=n>i?"next":"prev";this._slide(r,this._items[n])}},n.dispose=function(){t(this._element).off(br);t.removeData(this._element,"bs.carousel");this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=r(r({},wt),n),i.typeCheckConfig(p,n,dr),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,this.touchDeltaX=0,n>0&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on("keydown.bs.carousel",function(t){return n._keydown(t)});"hover"===this._config.pause&&t(this._element).on("mouseenter.bs.carousel",function(t){return n.pause(t)}).on("mouseleave.bs.carousel",function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,i,r;this._touchSupported&&(i=function(t){n._pointerEvent&&ai[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){n._pointerEvent&&ai[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},t(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",function(n){return n.preventDefault()}),this._pointerEvent?(t(this._element).on("pointerdown.bs.carousel",function(n){return i(n)}),t(this._element).on("pointerup.bs.carousel",function(n){return r(n)}),this._element.classList.add("pointer-event")):(t(this._element).on("touchstart.bs.carousel",function(n){return i(n)}),t(this._element).on("touchmove.bs.carousel",function(t){return function(t){n.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-n.touchStartX}(t)}),t(this._element).on("touchend.bs.carousel",function(n){return r(n)})))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u="next"===n,f="prev"===n,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+("prev"===n?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(".active.carousel-item")),r=t.Event("slide.bs.carousel",{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(n){var r,i;this._indicatorsElement&&(r=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),t(r).removeClass("active"),i=this._indicatorsElement.children[this._getItemIndex(n)],i&&t(i).addClass("active"))},n._slide=function(n,r){var e,o,s,l=this,f=this._element.querySelector(".active.carousel-item"),y=this._getItemIndex(f),u=r||f&&this._getItemByDirection(n,f),p=this._getItemIndex(u),a=Boolean(this._interval),h,c,v;("next"===n?(e="carousel-item-left",o="carousel-item-next",s="left"):(e="carousel-item-right",o="carousel-item-prev",s="right"),u&&t(u).hasClass("active"))?this._isSliding=!1:!this._triggerSlideEvent(u,s).isDefaultPrevented()&&f&&u&&(this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(u),h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s,from:y,to:p}),t(this._element).hasClass("slide")?(t(u).addClass(o),i.reflow(u),t(f).addClass(e),t(u).addClass(e),c=parseInt(u.getAttribute("data-interval"),10),c?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=c):this._config.interval=this._config.defaultInterval||this._config.interval,v=i.getTransitionDurationFromElement(f),t(f).one(i.TRANSITION_END,function(){t(u).removeClass(e+" "+o).addClass("active");t(f).removeClass("active "+o+" "+e);l._isSliding=!1;setTimeout(function(){return t(l._element).trigger(h)},0)}).emulateTransitionEnd(v)):(t(f).removeClass("active"),t(u).addClass("active"),this._isSliding=!1,t(this._element).trigger(h)),a&&this.cycle())},u._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.carousel"),f=r(r({},wt),t(this).data()),e;if("object"==typeof n&&(f=r(r({},f),n)),e="string"==typeof n?n:f.slide,i||(i=new u(this,f),t(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}else f.interval&&f.ride&&(i.pause(),i.cycle())})},u._dataApiClickHandler=function(n){var s=i.getSelectorFromElement(this),f,o,e;s&&(f=t(s)[0],f&&t(f).hasClass("carousel")&&(o=r(r({},t(f).data()),t(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),u._jQueryInterface.call(t(f),o),e&&t(f).data("bs.carousel").to(e),n.preventDefault()))},f(u,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return wt}}]),u}();t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler);t(window).on("load.bs.carousel.data-api",function(){for(var i,r=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,u=r.length;n<u;n++)i=t(r[n]),w._jQueryInterface.call(i,i.data())});t.fn[p]=w._jQueryInterface;t.fn[p].Constructor=w;t.fn[p].noConflict=function(){return t.fn[p]=kr,w._jQueryInterface};var b="collapse",gr=t.fn[b],bt={toggle:!0,parent:""},nu={toggle:"boolean",parent:"(string|element)"},ft=function(){function u(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),r=0,o=f.length;r<o;r++){var e=f[r],u=i.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(u)).filter(function(t){return t===n});null!==u&&s.length>0&&(this._selector=u,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=u.prototype;return n.toggle=function(){t(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,e,r=this,o,f,s,h;this._isTransitioning||t(this._element).hasClass("show")||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(n){return"string"==typeof r._config.parent?n.getAttribute("data-parent")===r._config.parent:n.classList.contains("collapse")})).length&&(n=null),n&&(e=t(n).not(this._selector).data("bs.collapse"))&&e._isTransitioning)||(o=t.Event("show.bs.collapse"),(t(this._element).trigger(o),o.isDefaultPrevented())||(n&&(u._jQueryInterface.call(t(n).not(this._selector),"hide"),e||t(n).data("bs.collapse",null)),f=this._getDimension(),t(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(){t(r._element).removeClass("collapsing").addClass("collapse show");r._element.style[f]="";r.setTransitioning(!1);t(r._element).trigger("shown.bs.collapse")}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,u,n,f,r,e,o,h;if(!this._isTransitioning&&t(this._element).hasClass("show")&&(u=t.Event("hide.bs.collapse"),t(this._element).trigger(u),!u.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",i.reflow(this._element),t(this._element).addClass("collapsing").removeClass("collapse show"),f=this._triggerArray.length,f>0)for(r=0;r<f;r++)e=this._triggerArray[r],o=i.getSelectorFromElement(e),null!==o&&(t([].slice.call(document.querySelectorAll(o))).hasClass("show")||t(e).addClass("collapsed").attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=i.getTransitionDurationFromElement(this._element);t(this._element).one(i.TRANSITION_END,function(){s.setTransitioning(!1);t(s._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){t.removeData(this._element,"bs.collapse");this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=r(r({},bt),n)).toggle=Boolean(n.toggle),i.typeCheckConfig(b,n,nu),n},n._getDimension=function(){return t(this._element).hasClass("width")?"width":"height"},n._getParent=function(){var n,e=this,r,f;return i.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(r)),t(f).each(function(n,t){e._addAriaAndCollapsedClass(u._getTargetFromElement(t),[t])}),n},n._addAriaAndCollapsedClass=function(n,i){var r=t(n).hasClass("show");i.length&&t(i).toggleClass("collapsed",!r).attr("aria-expanded",r)},u._getTargetFromElement=function(n){var t=i.getSelectorFromElement(n);return t?document.querySelector(t):null},u._jQueryInterface=function(n){return this.each(function(){var f=t(this),i=f.data("bs.collapse"),e=r(r(r({},bt),f.data()),"object"==typeof n&&n?n:{});if(!i&&e.toggle&&"string"==typeof n&&/show|hide/.test(n)&&(e.toggle=!1),i||(i=new u(this,e),f.data("bs.collapse",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},f(u,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return bt}}]),u}();t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var r=t(this),u=i.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(u));t(f).each(function(){var n=t(this),i=n.data("bs.collapse")?"toggle":r.data();ft._jQueryInterface.call(n,i)})});t.fn[b]=ft._jQueryInterface;t.fn[b].Constructor=ft;t.fn[b].noConflict=function(){return t.fn[b]=gr,ft._jQueryInterface};var et="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,tu=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(et&&navigator.userAgent.indexOf(t[n])>=0)return 1;return 0}(),iu=et&&window.Promise?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},tu))}};dt=et&&!(!window.MSInputMethodContext||!document.documentMode);gt=et&&/MSIE 10/.test(navigator.userAgent);var uu=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},fu=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),nt=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},u=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};er=et&&/Firefox/i.test(navigator.userAgent);oi=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];vt=oi.slice(3);var vu="flip",yu="clockwise",pu="counterclockwise";hr={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(n){var r=n.placement,c=r.split("-")[0],f=r.split("-")[1];if(f){var e=n.offsets,i=e.reference,o=e.popper,s=-1!==["bottom","top"].indexOf(c),t=s?"left":"top",h=s?"width":"height",l={start:nt({},t,i[t]),end:nt({},t,i[t]+i[h]-o[h])};n.offsets.popper=u({},o,l[f])}return n}},offset:{order:200,enabled:!0,fn:function(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=fi(+f)?[+f,0]:wu(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(n,t){var e=t.boundariesElement||d(n.instance.popper),f;n.instance.reference===e&&(e=d(e));var o=ui("transform"),r=n.instance.popper.style,s=r.top,h=r.left,c=r[o];r.top="";r.left="";r[o]="";f=ri(n.instance.popper,n.instance.reference,t.padding,e,n.positionFixed);r.top=s;r.left=h;r[o]=c;t.boundaries=f;var l=t.priority,i=n.offsets.popper,a={primary:function(n){var r=i[n];return i[n]<f[n]&&!t.escapeWithReference&&(r=Math.max(i[n],f[n])),nt({},n,r)},secondary:function(n){var r="right"===n?"left":"top",u=i[r];return i[n]>f[n]&&!t.escapeWithReference&&(u=Math.min(i[r],f[n]-("right"===n?i.width:i.height))),nt({},r,u)}};return l.forEach(function(n){var t=-1!==["left","top"].indexOf(n)?"primary":"secondary";i=u({},i,a[t](n))}),n.offsets.popper=i,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,t){var l,r;if(!or(n.instance.modifiers,"arrow","keepTogether"))return n;if(r=t.element,"string"==typeof r){if(!(r=n.instance.popper.querySelector(r)))return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var b=n.placement.split("-")[0],p=n.offsets,o=p.popper,u=p.reference,s=-1!==["left","right"].indexOf(b),a=s?"height":"width",v=s?"Top":"Left",i=v.toLowerCase(),k=s?"left":"top",c=s?"bottom":"right",f=tr(r)[a];u[c]-f<o[i]&&(n.offsets.popper[i]-=o[i]-(u[c]-f));u[i]+f>o[c]&&(n.offsets.popper[i]+=u[i]+f-o[c]);n.offsets.popper=e(n.offsets.popper);var d=u[i]+u[a]/2-f/2,w=h(n.instance.popper),g=parseFloat(w["margin"+v],10),tt=parseFloat(w["border"+v+"Width"],10),y=d-n.offsets.popper[i]-g-tt;return y=Math.max(Math.min(o[a]-f,y),0),n.arrowElement=r,n.offsets.arrow=(nt(l={},i,Math.round(y)),nt(l,k,""),l),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(n,t){if(ur(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var e=ri(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],o=at(i),r=n.placement.split("-")[1]||"",f=[];switch(t.behavior){case vu:f=[i,o];break;case yu:f=sr(i);break;case pu:f=sr(i,!0);break;default:f=t.behavior}return f.forEach(function(s,h){if(i!==s||f.length===h+1)return n;i=n.placement.split("-")[0];o=at(i);var l=n.offsets.popper,v=n.offsets.reference,c=Math.floor,k="left"===i&&c(l.right)>c(v.left)||"right"===i&&c(l.left)<c(v.right)||"top"===i&&c(l.bottom)>c(v.top)||"bottom"===i&&c(l.top)<c(v.bottom),y=c(l.left)<c(e.left),p=c(l.right)>c(e.right),w=c(l.top)<c(e.top),b=c(l.bottom)>c(e.bottom),d="left"===i&&y||"right"===i&&p||"top"===i&&w||"bottom"===i&&b,a=-1!==["top","bottom"].indexOf(i),nt=!!t.flipVariations&&(a&&"start"===r&&y||a&&"end"===r&&p||!a&&"start"===r&&w||!a&&"end"===r&&b),tt=!!t.flipVariationsByContent&&(a&&"start"===r&&p||a&&"end"===r&&y||!a&&"start"===r&&b||!a&&"end"===r&&w),g=nt||tt;(k||d||g)&&(n.flipped=!0,(k||d)&&(i=f[h+1]),g&&(r=function(n){return"end"===n?"start":"start"===n?"end":n}(r)),n.placement=i+(r?"-"+r:""),n.offsets.popper=u({},n.offsets.popper,ir(n.instance.popper,n.offsets.reference,n.placement)),n=rr(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(n){var r=n.placement,t=r.split("-")[0],u=n.offsets,i=u.popper,o=u.reference,f=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return i[f?"left":"top"]=o[t]-(s?i[f?"width":"height"]:0),n.placement=at(r),n.offsets.popper=e(i),n}},hide:{order:800,enabled:!0,fn:function(n){if(!or(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=st(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(n,t){var w=t.x,b=t.y,k=n.offsets.popper,s=st(n.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,v,y,p;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var g=void 0!==s?s:t.gpuAcceleration,f=d(n.instance.popper),l=ti(f),i={position:k.position},r=function(n,t){var u=n.offsets,i=u.popper,l=u.reference,r=Math.round,a=Math.floor,f=function(n){return n},e=r(l.width),o=r(i.width),v=-1!==["left","right"].indexOf(n.placement),s=-1!==n.placement.indexOf("-"),h=t?v||s||e%2==o%2?r:a:f,c=t?r:f;return{left:h(e%2==1&&o%2==1&&!s&&t?i.left-1:i.left),top:c(i.top),bottom:c(i.bottom),right:h(i.right)}}(n,window.devicePixelRatio<2||!er),e="bottom"===w?"top":"bottom",o="right"===b?"left":"right",a=ui("transform"),h=void 0,c=void 0;return(c="bottom"===e?"HTML"===f.nodeName?-f.clientHeight+r.bottom:-l.height+r.bottom:r.top,h="right"===o?"HTML"===f.nodeName?-f.clientWidth+r.right:-l.width+r.right:r.left,g&&a)?(i[a]="translate3d("+h+"px, "+c+"px, 0)",i[e]=0,i[o]=0,i.willChange="transform"):(v="bottom"===e?-1:1,y="right"===o?-1:1,i[e]=c*v,i[o]=h*y,i.willChange=e+", "+o),p={"x-placement":n.placement},n.attributes=u({},p,n.attributes),n.styles=u({},i,n.styles),n.arrowStyles=u({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){var i,t;return ei(n.instance.popper,n.styles),i=n.instance.popper,t=n.attributes,Object.keys(t).forEach(function(n){!1!==t[n]?i.setAttribute(n,t[n]):i.removeAttribute(n)}),n.arrowElement&&Object.keys(n.arrowStyles).length&&ei(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=nr(u,t,n,i.positionFixed),e=gi(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),ei(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}};o=function(){function n(t,i){var r=this,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e;uu(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=iu(this.update.bind(this));this.options=u({},n.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=i&&i.jquery?i[0]:i;this.options.modifiers={};Object.keys(u({},n.Defaults.modifiers,f.modifiers)).forEach(function(t){r.options.modifiers[t]=u({},n.Defaults.modifiers[t]||{},f.modifiers?f.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return u({name:n},r.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&vi(n.onLoad)&&n.onLoad(r.reference,r.popper,r.options,n,r.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return fu(n,[{key:"update",value:function(){return su.call(this)}},{key:"destroy",value:function(){return hu.call(this)}},{key:"enableEventListeners",value:function(){return lu.call(this)}},{key:"disableEventListeners",value:function(){return au.call(this)}}]),n}();o.Utils=("undefined"!=typeof window?window:global).PopperUtils;o.placements=oi;o.Defaults=hr;var tt="dropdown",bu=t.fn[tt],ku=new RegExp("38|40|27"),du={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},gu={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},s=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var u=n.prototype;return u.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass("disabled")){var i=t(this._menu).hasClass("show");n._clearMenus();i||this.show(!0)}},u.show=function(r){var f;if(void 0===r&&(r=!1),!(this._element.disabled||t(this._element).hasClass("disabled")||t(this._menu).hasClass("show"))){var e={relatedTarget:this._element},s=t.Event("show.bs.dropdown",e),u=n._getParentFromElement(this._element);if(t(u).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&r){if("undefined"==typeof o)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");f=this._element;"parent"===this._config.reference?f=u:i.isElement(this._config.reference)&&(f=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(f=this._config.reference[0]));"scrollParent"!==this._config.boundary&&t(u).addClass("position-static");this._popper=new o(f,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(u).closest(".navbar-nav").length&&t(document.body).children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass("show");t(u).toggleClass("show").trigger(t.Event("shown.bs.dropdown",e))}}},u.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass("disabled")&&t(this._menu).hasClass("show")){var i={relatedTarget:this._element},r=t.Event("hide.bs.dropdown",i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass("show"),t(u).toggleClass("show").trigger(t.Event("hidden.bs.dropdown",i)))}},u.dispose=function(){t.removeData(this._element,"bs.dropdown");t(this._element).off(".bs.dropdown");this._element=null;this._menu=null;null!==this._popper&&(this._popper.destroy(),this._popper=null)},u.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},u._addEventListeners=function(){var n=this;t(this._element).on("click.bs.dropdown",function(t){t.preventDefault();t.stopPropagation();n.toggle()})},u._getConfig=function(n){return n=r(r(r({},this.constructor.Default),t(this._element).data()),n),i.typeCheckConfig(tt,n,this.constructor.DefaultType),n},u._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(".dropdown-menu"))}return this._menu},u._getPlacement=function(){var i=t(this._element.parentNode),n="bottom-start";return i.hasClass("dropup")?n=t(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":i.hasClass("dropright")?n="right-start":i.hasClass("dropleft")?n="left-start":t(this._menu).hasClass("dropdown-menu-right")&&(n="bottom-end"),n},u._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},u._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=r(r({},n.offsets),t._config.offset(n.offsets,t._element)||{}),n}:n.offset=this._config.offset,n},u._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),r(r({},n),this._config.popperConfig)},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data("bs.dropdown");if(r||(r=new n(this,"object"==typeof i?i:null),t(this).data("bs.dropdown",r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},n._clearMenus=function(i){var h,s;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(var u=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),r=0,c=u.length;r<c;r++){var f=n._getParentFromElement(u[r]),e=t(u[r]).data("bs.dropdown"),o={relatedTarget:u[r]};(i&&"click"===i.type&&(o.clickEvent=i),e)&&(h=e._menu,!t(f).hasClass("show")||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(f,i.target)||(s=t.Event("hide.bs.dropdown",o),t(f).trigger(s),s.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),e._popper&&e._popper.destroy(),t(h).removeClass("show"),t(f).removeClass("show").trigger(t.Event("hidden.bs.dropdown",o)))))}},n._getParentFromElement=function(n){var t,r=i.getSelectorFromElement(n);return r&&(t=document.querySelector(r)),t||n.parentNode},n._dataApiKeydownHandler=function(i){var f,e,u,r;if(!(/input|textarea/i.test(i.target.tagName)?32===i.which||27!==i.which&&(40!==i.which&&38!==i.which||t(i.target).closest(".dropdown-menu").length):!ku.test(i.which))&&!this.disabled&&!t(this).hasClass("disabled")&&(f=n._getParentFromElement(this),e=t(f).hasClass("show"),e||27!==i.which)){if(i.preventDefault(),i.stopPropagation(),!e||e&&(27===i.which||32===i.which))return 27===i.which&&t(f.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void t(this).trigger("click");u=[].slice.call(f.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(n){return t(n).is(":visible")});0!==u.length&&(r=u.indexOf(i.target),38===i.which&&r>0&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())}},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return du}},{key:"DefaultType",get:function(){return gu}}]),n}();t(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',s._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",s._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",s._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',function(n){n.preventDefault();n.stopPropagation();s._jQueryInterface.call(t(this),"toggle")}).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()});t.fn[tt]=s._jQueryInterface;t.fn[tt].Constructor=s;t.fn[tt].noConflict=function(){return t.fn[tt]=bu,s._jQueryInterface};var nf=t.fn.modal,si={backdrop:!0,keyboard:!0,focus:!0,show:!0},tf={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},ht=function(){function u(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(".modal-dialog");this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=u.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var i=this,r;this._isShown||this._isTransitioning||(t(this._element).hasClass("fade")&&(this._isTransitioning=!0),r=t.Event("show.bs.modal",{relatedTarget:n}),t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',function(n){return i.hide(n)}),t(this._dialog).on("mousedown.dismiss.bs.modal",function(){t(i._element).one("mouseup.dismiss.bs.modal",function(n){t(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(n)})))},n.hide=function(n){var e=this,r,u,f;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(r=t.Event("hide.bs.modal"),(t(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented())&&(this._isShown=!1,u=t(this._element).hasClass("fade"),(u&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off("focusin.bs.modal"),t(this._element).removeClass("show"),t(this._element).off("click.dismiss.bs.modal"),t(this._dialog).off("mousedown.dismiss.bs.modal"),u)?(f=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(n){return e._hideModal(n)}).emulateTransitionEnd(f)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return t(n).off(".bs.modal")});t(document).off("focusin.bs.modal");t.removeData(this._element,"bs.modal");this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=r(r({},si),n),i.typeCheckConfig("modal",n,tf),n},n._triggerBackdropTransition=function(){var u=this,n,r;if("static"===this._config.backdrop){if(n=t.Event("hidePrevented.bs.modal"),t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add("modal-static");r=i.getTransitionDurationFromElement(this._element);t(this._element).one(i.TRANSITION_END,function(){u._element.classList.remove("modal-static")}).emulateTransitionEnd(r);this._element.focus()}else this.hide()},n._showElement=function(n){var r=this,f=t(this._element).hasClass("fade"),e=this._dialog?this._dialog.querySelector(".modal-body"):null,o,u,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.setAttribute("aria-modal",!0);t(this._dialog).hasClass("modal-dialog-scrollable")&&e?e.scrollTop=0:this._element.scrollTop=0;f&&i.reflow(this._element);t(this._element).addClass("show");this._config.focus&&this._enforceFocus();o=t.Event("shown.bs.modal",{relatedTarget:n});u=function(){r._config.focus&&r._element.focus();r._isTransitioning=!1;t(r._element).trigger(o)};f?(s=i.getTransitionDurationFromElement(this._dialog),t(this._dialog).one(i.TRANSITION_END,u).emulateTransitionEnd(s)):u()},n._enforceFocus=function(){var n=this;t(document).off("focusin.bs.modal").on("focusin.bs.modal",function(i){document!==i.target&&n._element!==i.target&&0===t(n._element).has(i.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown?t(this._element).on("keydown.dismiss.bs.modal",function(t){n._config.keyboard&&27===t.which?(t.preventDefault(),n.hide()):n._config.keyboard||27!==t.which||n._triggerBackdropTransition()}):this._isShown||t(this._element).off("keydown.dismiss.bs.modal")},n._setResizeEvent=function(){var n=this;this._isShown?t(window).on("resize.bs.modal",function(t){return n.handleUpdate(t)}):t(window).off("resize.bs.modal")},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._element.removeAttribute("aria-modal");this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass("modal-open");n._resetAdjustments();n._resetScrollbar();t(n._element).trigger("hidden.bs.modal")})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var r=this,u=t(this._element).hasClass("fade")?"fade":"",e,f,o;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",u&&this._backdrop.classList.add(u),t(this._backdrop).appendTo(document.body),t(this._element).on("click.dismiss.bs.modal",function(n){r._ignoreBackdropClick?r._ignoreBackdropClick=!1:n.target===n.currentTarget&&r._triggerBackdropTransition()}),u&&i.reflow(this._backdrop),t(this._backdrop).addClass("show"),!n)return;if(!u)return void n();e=i.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(i.TRANSITION_END,n).emulateTransitionEnd(e)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass("show"),f=function(){r._removeBackdrop();n&&n()},t(this._element).hasClass("fade")?(o=i.getTransitionDurationFromElement(this._backdrop),t(this._backdrop).one(i.TRANSITION_END,f).emulateTransitionEnd(o)):f()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(n.left+n.right)<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),r=[].slice.call(document.querySelectorAll(".sticky-top")),t(i).each(function(i,r){var u=r.style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(r).each(function(i,r){var u=r.style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=t(document.body).css("padding-right"),t(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));t(document.body).addClass("modal-open")},n._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n,i;t(r).each(function(n,i){var r=t(i).data("padding-right");t(i).removeData("padding-right");i.style.paddingRight=r||""});n=[].slice.call(document.querySelectorAll(".sticky-top"));t(n).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});i=t(document.body).data("padding-right");t(document.body).removeData("padding-right");document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},u._jQueryInterface=function(n,i){return this.each(function(){var f=t(this).data("bs.modal"),e=r(r(r({},si),t(this).data()),"object"==typeof n&&n?n:{});if(f||(f=new u(this,e),t(this).data("bs.modal",f)),"string"==typeof n){if("undefined"==typeof f[n])throw new TypeError('No method named "'+n+'"');f[n](i)}else e.show&&f.show(i)})},f(u,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return si}}]),u}();t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var u,f=this,e=i.getSelectorFromElement(this),o,s;e&&(u=document.querySelector(e));o=t(u).data("bs.modal")?"toggle":r(r({},t(u).data()),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();s=t(u).one("show.bs.modal",function(n){n.isDefaultPrevented()||s.one("hidden.bs.modal",function(){t(f).is(":visible")&&f.focus()})});ht._jQueryInterface.call(t(u),o,this)});t.fn.modal=ht._jQueryInterface;t.fn.modal.Constructor=ht;t.fn.modal.noConflict=function(){return t.fn.modal=nf,ht._jQueryInterface};var rf=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],uf=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,ff=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;var c="tooltip",ef=t.fn[c],of=new RegExp("(^|\\s)bs-tooltip\\S+","g"),sf=["sanitize","whiteList","sanitizeFn"],hf={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},cf={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},lf={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},af={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},l=function(){function u(n,t){if("undefined"==typeof o)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=u.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},n.show=function(){var n=this,u,f,c,r,e,l,s,a,h,v;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(u=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(u),f=i.findShadowRoot(this.element),c=t.contains(null!==f?f:this.element.ownerDocument.documentElement,this.element),u.isDefaultPrevented()||!c)return;r=this.getTipElement();e=i.getUID(this.constructor.NAME);r.setAttribute("id",e);this.element.setAttribute("aria-describedby",e);this.setContent();this.config.animation&&t(r).addClass("fade");l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement;s=this._getAttachment(l);this.addAttachmentClass(s);a=this._getContainer();t(r).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(a);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new o(this.element,r,this._getPopperConfig(s));t(r).addClass("show");"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);h=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);"out"===i&&n._leave(null,n)};t(this.tip).hasClass("fade")?(v=i.getTransitionDurationFromElement(this.tip),t(this.tip).one(i.TRANSITION_END,h).emulateTransitionEnd(v)):h()}},n.hide=function(n){var r=this,u=this.getTipElement(),f=t.Event(this.constructor.Event.HIDE),e=function(){"show"!==r._hoverState&&u.parentNode&&u.parentNode.removeChild(u);r._cleanTipClass();r.element.removeAttribute("aria-describedby");t(r.element).trigger(r.constructor.Event.HIDDEN);null!==r._popper&&r._popper.destroy();n&&n()},o;(t(this.element).trigger(f),f.isDefaultPrevented())||((t(u).removeClass("show"),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,t(this.tip).hasClass("fade"))?(o=i.getTransitionDurationFromElement(u),t(u).one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-tooltip-"+n)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(t(n.querySelectorAll(".tooltip-inner")),this.getTitle());t(n).removeClass("fade show")},n.setElementContent=function(n,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=cr(i,this.config.whiteList,this.config.sanitizeFn)),n.html(i)):n.text(i):this.config.html?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text())},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getPopperConfig=function(n){var t=this;return r(r({},{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){return t._handlePopperPlacementChange(n)}}),this.config.popperConfig)},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=r(r({},n.offsets),t.config.offset(n.offsets,t.element)||{}),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:i.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(n){return cf[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if("manual"!==i){var r="hover"===i?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u="hover"===i?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}});this._hideModalHandler=function(){n.element&&n.hide()};t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);this.config.selector?this.config=r(r({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?"focus":"hover"]=!0);t(i.getTipElement()).hasClass("show")||"show"===i._hoverState?i._hoverState="show":(clearTimeout(i._timeout),i._hoverState="show",i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){"show"===i._hoverState&&i.show()},i.config.delay.show):i.show())},n._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?"focus":"hover"]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState="out",i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){"out"===i._hoverState&&i.hide()},i.config.delay.hide):i.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var u=t(this.element).data();return Object.keys(u).forEach(function(n){-1!==sf.indexOf(n)&&delete u[n]}),"number"==typeof(n=r(r(r({},this.constructor.Default),u),"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),i.typeCheckConfig(c,n,this.constructor.DefaultType),n.sanitize&&(n.template=cr(n.template,n.whiteList,n.sanitizeFn)),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(of);null!==n&&n.length&&i.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){this.tip=n.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},u._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.tooltip"),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new u(this,r),t(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},f(u,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return lf}},{key:"NAME",get:function(){return c}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return af}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return hf}}]),u}();t.fn[c]=l._jQueryInterface;t.fn[c].Constructor=l;t.fn[c].noConflict=function(){return t.fn[c]=ef,l._jQueryInterface};var it="popover",vf=t.fn[it],yf=new RegExp("(^|\\s)bs-popover\\S+","g"),pf=r(r({},l.Default),{},{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),wf=r(r({},l.DefaultType),{},{content:"(string|element|function)"}),bf={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},yt=function(n){function r(){return n.apply(this,arguments)||this}var u,e,i;return e=n,(u=r).prototype=Object.create(e.prototype),u.prototype.constructor=u,u.__proto__=e,i=r.prototype,i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-popover-"+n)},i.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},i.setContent=function(){var i=t(this.getTipElement()),n;this.setElementContent(i.find(".popover-header"),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(i.find(".popover-body"),n);i.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(yf);null!==n&&n.length>0&&i.removeClass(n.join(""))},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.popover"),u="object"==typeof n?n:null;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data("bs.popover",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},f(r,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return pf}},{key:"NAME",get:function(){return it}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return bf}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return wf}}]),r}(l);t.fn[it]=yt._jQueryInterface;t.fn[it].Constructor=yt;t.fn[it].noConflict=function(){return t.fn[it]=vf,yt._jQueryInterface};var a="scrollspy",kf=t.fn[a],lr={offset:10,method:"auto",target:""},df={offset:"number",method:"string",target:"(string|element)"},ct=function(){function u(n,i){var r=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item";this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on("scroll.bs.scrollspy",function(n){return r._process(n)});this.refresh();this._process()}var n=u.prototype;return n.refresh=function(){var n=this,u=this._scrollElement===this._scrollElement.window?"offset":"position",r="auto"===this._config.method?u:this._config.method,f="position"===r?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var u,e=i.getSelectorFromElement(n),o;return(e&&(u=document.querySelector(e)),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[r]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,"bs.scrollspy");t(this._scrollElement).off(".bs.scrollspy");this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=r(r({},lr),"object"==typeof n&&n?n:{})).target&&i.isElement(n.target)){var u=t(n.target).attr("id");u||(u=i.getUID(a),t(n.target).attr("id",u));n.target="#"+u}return i.typeCheckConfig(a,n,df),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),t>=u)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){this._activeTarget=n;this._clear();var r=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),i=t([].slice.call(document.querySelectorAll(r.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active"));t(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains("active")}).forEach(function(n){return n.classList.remove("active")})},u._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.scrollspy");if(i||(i=new u(this,"object"==typeof n&&n),t(this).data("bs.scrollspy",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},f(u,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return lr}}]),u}();t(window).on("load.bs.scrollspy.data-api",function(){for(var r,n=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),i=n.length;i--;)r=t(n[i]),ct._jQueryInterface.call(r,r.data())});t.fn[a]=ct._jQueryInterface;t.fn[a].Constructor=ct;t.fn[a].noConflict=function(){return t.fn[a]=kf,ct._jQueryInterface};ar=t.fn.tab;rt=function(){function n(n){this._element=n}var r=n.prototype;return r.show=function(){var h=this,u,n,r,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass("active")||t(this._element).hasClass("disabled")||(r=t(this._element).closest(".nav, .list-group")[0],f=i.getSelectorFromElement(this._element),r&&(c="UL"===r.nodeName||"OL"===r.nodeName?"> li > .active":".active",n=(n=t.makeArray(t(r).find(c)))[n.length-1]),e=t.Event("hide.bs.tab",{relatedTarget:this._element}),o=t.Event("show.bs.tab",{relatedTarget:n}),(n&&t(n).trigger(e),t(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(u=document.querySelector(f)),this._activate(this._element,r),s=function(){var i=t.Event("hidden.bs.tab",{relatedTarget:h._element}),r=t.Event("shown.bs.tab",{relatedTarget:n});t(n).trigger(i);t(h._element).trigger(r)},u?this._activate(u,u.parentNode,s):s()))},r.dispose=function(){t.removeData(this._element,"bs.tab");this._element=null},r._activate=function(n,r,u){var s=this,f=(!r||"UL"!==r.nodeName&&"OL"!==r.nodeName?t(r).children(".active"):t(r).find("> li > .active"))[0],h=u&&f&&t(f).hasClass("fade"),e=function(){return s._transitionComplete(n,f,u)},o;f&&h?(o=i.getTransitionDurationFromElement(f),t(f).removeClass("show").one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e()},r._transitionComplete=function(n,r,u){var f,e,o;r&&(t(r).removeClass("active"),f=t(r.parentNode).find("> .dropdown-menu .active")[0],f&&t(f).removeClass("active"),"tab"===r.getAttribute("role")&&r.setAttribute("aria-selected",!1));(t(n).addClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),i.reflow(n),n.classList.contains("fade")&&n.classList.add("show"),n.parentNode&&t(n.parentNode).hasClass("dropdown-menu"))&&(e=t(n).closest(".dropdown")[0],e&&(o=[].slice.call(e.querySelectorAll(".dropdown-toggle")),t(o).addClass("active")),n.setAttribute("aria-expanded",!0));u&&u()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data("bs.tab");if(r||(r=new n(this),u.data("bs.tab",r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},f(n,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),n}();t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();rt._jQueryInterface.call(t(this),"show")});t.fn.tab=rt._jQueryInterface;t.fn.tab.Constructor=rt;t.fn.tab.noConflict=function(){return t.fn.tab=ar,rt._jQueryInterface};var gf=t.fn.toast,ne={animation:"boolean",autohide:"boolean",delay:"number"},vr={animation:!0,autohide:!0,delay:500},pt=function(){function u(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=u.prototype;return n.show=function(){var n=this,u=t.Event("show.bs.toast"),r,f;(t(this._element).trigger(u),u.isDefaultPrevented())||(this._config.animation&&this._element.classList.add("fade"),r=function(){n._element.classList.remove("showing");n._element.classList.add("show");t(n._element).trigger("shown.bs.toast");n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},(this._element.classList.remove("hide"),i.reflow(this._element),this._element.classList.add("showing"),this._config.animation)?(f=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(f)):r())},n.hide=function(){if(this._element.classList.contains("show")){var n=t.Event("hide.bs.toast");t(this._element).trigger(n);n.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout);this._timeout=null;this._element.classList.contains("show")&&this._element.classList.remove("show");t(this._element).off("click.dismiss.bs.toast");t.removeData(this._element,"bs.toast");this._element=null;this._config=null},n._getConfig=function(n){return n=r(r(r({},vr),t(this._element).data()),"object"==typeof n&&n?n:{}),i.typeCheckConfig("toast",n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;t(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',function(){return n.hide()})},n._close=function(){var n=this,r=function(){n._element.classList.add("hide");t(n._element).trigger("hidden.bs.toast")},u;(this._element.classList.remove("show"),this._config.animation)?(u=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(u)):r()},u._jQueryInterface=function(n){return this.each(function(){var r=t(this),i=r.data("bs.toast");if(i||(i=new u(this,"object"==typeof n&&n),r.data("bs.toast",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}})},f(u,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return ne}},{key:"Default",get:function(){return vr}}]),u}();t.fn.toast=pt._jQueryInterface;t.fn.toast.Constructor=pt;t.fn.toast.noConflict=function(){return t.fn.toast=gf,pt._jQueryInterface};n.Alert=v;n.Button=y;n.Carousel=w;n.Collapse=ft;n.Dropdown=s;n.Modal=ht;n.Popover=yt;n.Scrollspy=ct;n.Tab=rt;n.Toast=pt;n.Tooltip=l;n.Util=i;Object.defineProperty(n,"__esModule",{value:!0})}),function(n,t){var i,g,nt,tt,it,r,h,v,c,rt,y,f,u,p,e,l,w,b,ut,k,o,a,d,s;i=function(n){return new i.prototype.init(n)};typeof require!="undefined"&&typeof exports!="undefined"&&typeof module!="undefined"?module.exports=i:n.Globalize=i;i.cultures={};i.prototype={constructor:i,init:function(n){return this.cultures=i.cultures,this.cultureSelector=n,this}};i.prototype.init.prototype=i.prototype;i.cultures["default"]={name:"en",englishName:"English",nativeName:"English",isRTL:!1,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",NaN:"NaN",negativeInfinity:"-Infinity",positiveInfinity:"Infinity",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}},messages:{}};i.cultures["default"].calendar=i.cultures["default"].calendars.standard;i.cultures.en=i.cultures["default"];i.cultureSelector="en";g=/^0x[a-f0-9]+$/i;nt=/^[+\-]?infinity$/i;tt=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/;it=/^\s+|\s+$/g;r=function(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1};h=function(n,t){return n.substr(n.length-t.length)===t};v=function(){var e,u,r,i,o,s,n=arguments[0]||{},f=1,l=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[1]||{},f=2),typeof n=="object"||rt(n)||(n={});f<l;f++)if((e=arguments[f])!=null)for(u in e)(r=n[u],i=e[u],n!==i)&&(h&&i&&(y(i)||(o=c(i)))?(o?(o=!1,s=r&&c(r)?r:[]):s=r&&y(r)?r:{},n[u]=v(h,s,i)):i!==t&&(n[u]=i));return n};c=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"};rt=function(n){return Object.prototype.toString.call(n)==="[object Function]"};y=function(n){return Object.prototype.toString.call(n)==="[object Object]"};f=function(n,t){return n.indexOf(t)===0};u=function(n){return(n+"").replace(it,"")};p=function(n){return isNaN(n)?NaN:Math[n<0?"ceil":"floor"](n)};e=function(n,t,i){for(var r=n.length;r<t;r+=1)n=i?"0"+n:n+"0";return n};l=function(n,t){for(var u,f=0,i=!1,r=0,e=n.length;r<e;r++){u=n.charAt(r);switch(u){case"'":i?t.push("'"):f++;i=!1;break;case"\\":i&&t.push("\\");i=!i;break;default:t.push(u);i=!1}}return f};w=function(n,t){t=t||"F";var i,u=n.patterns,r=t.length;if(r===1){if(i=u[t],!i)throw"Invalid date format string '"+t+"'.";t=i}else r===2&&t.charAt(0)==="%"&&(t=t.charAt(1));return t};b=function(n,t,i){function e(n,t){var i,r=n+"";return t>1&&r.length<t?(i=st[t-2]+r,i.substr(i.length-t,t)):r}function ct(){return c||ut?c:(c=ht.test(t),ut=!0,c)}function it(n,t){if(v)return v[t];switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();default:throw"Invalid part value "+t;}}var u=i.calendar,d=u.convert,r,g,rt,nt,tt,p,f,ot,h;if(!t||!t.length||t==="i")return i&&i.name.length?d?r=b(n,u.patterns.F,i):(g=new Date(n.getTime()),rt=o(n,u.eras),g.setFullYear(a(n,u,rt)),r=g.toLocaleString()):r=n.toString(),r;nt=u.eras;tt=t==="s";t=w(u,t);r=[];var s,st=["0","00","000"],c,ut,ht=/([^d]|^)(d|dd)([^d]|$)/g,ft=0,et=k(),v;for(!tt&&d&&(v=d.fromGregorian(n));;){var lt=et.lastIndex,y=et.exec(t),at=t.slice(lt,y?y.index:t.length);if(ft+=l(at,r),!y)break;if(ft%2){r.push(y[0]);continue}p=y[0];f=p.length;switch(p){case"ddd":case"dddd":ot=f===3?u.days.namesAbbr:u.days.names;r.push(ot[n.getDay()]);break;case"d":case"dd":c=!0;r.push(e(it(n,2),f));break;case"MMM":case"MMMM":h=it(n,1);r.push(u.monthsGenitive&&ct()?u.monthsGenitive[f===3?"namesAbbr":"names"][h]:u.months[f===3?"namesAbbr":"names"][h]);break;case"M":case"MM":r.push(e(it(n,1)+1,f));break;case"y":case"yy":case"yyyy":h=v?v[0]:a(n,u,o(n,nt),tt);f<4&&(h=h%100);r.push(e(h,f));break;case"h":case"hh":s=n.getHours()%12;s===0&&(s=12);r.push(e(s,f));break;case"H":case"HH":r.push(e(n.getHours(),f));break;case"m":case"mm":r.push(e(n.getMinutes(),f));break;case"s":case"ss":r.push(e(n.getSeconds(),f));break;case"t":case"tt":h=n.getHours()<12?u.AM?u.AM[0]:" ":u.PM?u.PM[0]:" ";r.push(f===1?h.charAt(0):h);break;case"f":case"ff":case"fff":r.push(e(n.getMilliseconds(),3).substr(0,f));break;case"z":case"zz":s=n.getTimezoneOffset()/60;r.push((s<=0?"+":"-")+e(Math.floor(Math.abs(s)),f));break;case"zzz":s=n.getTimezoneOffset()/60;r.push((s<=0?"+":"-")+e(Math.floor(Math.abs(s)),2)+":"+e(Math.abs(n.getTimezoneOffset()%60),2));break;case"g":case"gg":u.eras&&r.push(u.eras[o(n,nt)].name);break;case"/":r.push(u["/"]);break;default:throw"Invalid date format pattern '"+p+"'.";}}return r.join("")},function(){var n;n=function(n,t,i){var l=i.groupSizes,c=l[0],a=1,p=Math.pow(10,t),v=Math.round(n*p)/p;isFinite(v)||(v=n);n=v;var r=n+"",u="",o=r.split(/e/i),f=o.length>1?parseInt(o[1],10):0;r=o[0];o=r.split(".");r=o[0];u=o.length>1?o[1]:"";f>0?(u=e(u,f,!1),r+=u.slice(0,f),u=u.substr(f)):f<0&&(f=-f,r=e(r,f+1,!0),u=r.slice(-f,r.length)+u,r=r.slice(0,-f));u=t>0?i["."]+(u.length>t?u.slice(0,t):e(u,t)):"";for(var s=r.length-1,y=i[","],h="";s>=0;){if(c===0||c>s)return r.slice(0,s+1)+(h.length?y+h+u:u);h=r.slice(s-c+1,s+1)+(h.length?y+h:"");s-=c;a<l.length&&(c=l[a],a++)}return r.slice(0,s+1)+y+h+u};ut=function(t,i,r){var a,f,v,o,y,l;if(!isFinite(t))return t===Infinity?r.numberFormat.positiveInfinity:t===-Infinity?r.numberFormat.negativeInfinity:r.numberFormat.NaN;if(!i||i==="i")return r.name.length?t.toLocaleString():t.toString();i=i||"D";var s=r.numberFormat,u=Math.abs(t),h=-1,c;i.length>1&&(h=parseInt(i.slice(1),10));a=i.charAt(0).toUpperCase();switch(a){case"D":c="n";u=p(u);h!==-1&&(u=e(""+u,h,!0));t<0&&(u="-"+u);break;case"N":f=s;case"C":f=f||s.currency;case"P":f=f||s.percent;c=t<0?f.pattern[0]:f.pattern[1]||"n";h===-1&&(h=f.decimals);u=n(u*(a==="P"?100:1),h,f);break;default:throw"Bad number format specifier: "+a;}for(v=/n|\$|-|%/g,o="";;){if(y=v.lastIndex,l=v.exec(c),o+=c.slice(y,l?l.index:c.length),!l)break;switch(l[0]){case"n":o+=u;break;case"$":o+=s.currency.symbol;break;case"-":/[1-9]/.test(u)&&(o+=s["-"]);break;case"%":o+=s.percent.symbol}}return o}}();k=function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g};o=function(n,t){var r,u,i,f;if(!t)return 0;for(u=n.getTime(),i=0,f=t.length;i<f;i++)if(r=t[i].start,r===null||u>=r)return i;return 0};a=function(n,t,i,r){var u=n.getFullYear();return!r&&t.eras&&(u-=t.eras[i].offset),u},function(){var e,s,h,c,n,i,t;e=function(n,t){if(t<100){var r=new Date,f=o(r),u=a(r,n,f),i=n.twoDigitYearMax;i=typeof i=="string"?(new Date).getFullYear()%100+parseInt(i,10):i;t+=u-u%100;t>i&&(t-=100)}return t};s=function(n,u,f){var e,s=n.days,o=n._upperDays;return o||(n._upperDays=o=[t(s.names),t(s.namesAbbr),t(s.namesShort)]),u=i(u),f?(e=r(o[1],u),e===-1&&(e=r(o[2],u))):e=r(o[0],u),e};h=function(n,u,f){var h=n.months,c=n.monthsGenitive||n.months,e=n._upperMonths,s=n._upperMonthsGen,o;return e||(n._upperMonths=e=[t(h.names),t(h.namesAbbr)],n._upperMonthsGen=s=[t(c.names),t(c.namesAbbr)]),u=i(u),o=r(f?e[1]:e[0],u),o<0&&(o=r(f?s[1]:s[0],u)),o};c=function(n,t){var f=n._parseRegExp,o,y,e,p,i,b,d;if(f){if(o=f[t],o)return o}else n._parseRegExp=f={};for(var s=w(n,t).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),r=["^"],c=[],h=0,a=0,v=k(),u;(u=v.exec(s))!==null;){if(y=s.slice(h,u.index),h=v.lastIndex,a+=l(y,r),a%2){r.push(u[0]);continue}e=u[0];p=e.length;switch(e){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":i="(\\D+)";break;case"tt":case"t":i="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":i="(\\d{"+p+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i="(\\d\\d?)";break;case"zzz":i="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i="([+-]?\\d\\d?)";break;case"/":i="(\\/)";break;default:throw"Invalid date format pattern '"+e+"'.";}i&&r.push(i);c.push(u[0])}return l(s.slice(h),r),r.push("$"),b=r.join("").replace(/\s+/g,"\\s+"),d={regExp:b,groups:c},f[t]=d};n=function(n,t,i){return n<t||n>i};i=function(n){return n.split(" ").join(" ").toUpperCase()};t=function(n){for(var r=[],t=0,u=n.length;t<u;t++)r[t]=i(n[t]);return r};d=function(t,i,r){var d,wt,l,ft,et,g,nt,kt,a,dt,tt,at;t=u(t);var o=r.calendar,vt=c(o,i),yt=new RegExp(vt.regExp).exec(t);if(yt===null)return null;var pt=vt.groups,ot=null,w=null,p=null,b=null,it=null,y=0,k,st=0,ht=0,ct=0,rt=null,lt=!1;for(d=0,wt=pt.length;d<wt;d++)if(l=yt[d+1],l){var bt=pt[d],ut=bt.length,v=parseInt(l,10);switch(bt){case"dd":case"d":if(b=v,n(b,1,31))return null;break;case"MMM":case"MMMM":if(p=h(o,l,ut===3),n(p,0,11))return null;break;case"M":case"MM":if(p=v-1,n(p,0,11))return null;break;case"y":case"yy":case"yyyy":if(w=ut<4?e(o,v):v,n(w,0,9999))return null;break;case"h":case"hh":if(y=v,y===12&&(y=0),n(y,0,11))return null;break;case"H":case"HH":if(y=v,n(y,0,23))return null;break;case"m":case"mm":if(st=v,n(st,0,59))return null;break;case"s":case"ss":if(ht=v,n(ht,0,59))return null;break;case"tt":case"t":if(lt=o.PM&&(l===o.PM[0]||l===o.PM[1]||l===o.PM[2]),!lt&&(!o.AM||l!==o.AM[0]&&l!==o.AM[1]&&l!==o.AM[2]))return null;break;case"f":case"ff":case"fff":if(ct=v*Math.pow(10,3-ut),n(ct,0,999))return null;break;case"ddd":case"dddd":if(it=s(o,l,ut===3),n(it,0,6))return null;break;case"zzz":if((ft=l.split(/:/),ft.length!==2)||(k=parseInt(ft[0],10),n(k,-12,13))||(et=parseInt(ft[1],10),n(et,0,59)))return null;rt=k*60+(f(l,"-")?-et:et);break;case"z":case"zz":if(k=v,n(k,-12,13))return null;rt=k*60;break;case"g":case"gg":if(g=l,!g||!o.eras)return null;for(g=u(g.toLowerCase()),nt=0,kt=o.eras.length;nt<kt;nt++)if(g===o.eras[nt].name.toLowerCase()){ot=nt;break}if(ot===null)return null}}if(a=new Date,tt=o.convert,dt=tt?tt.fromGregorian(a)[0]:a.getFullYear(),w===null?w=dt:o.eras&&(w+=o.eras[ot||0].offset),p===null&&(p=0),b===null&&(b=1),tt){if(a=tt.toGregorian(w,p,b),a===null)return null}else if((a.setFullYear(w,p,b),a.getDate()!==b)||it!==null&&a.getDay()!==it)return null;return lt&&y<12&&(y+=12),a.setHours(y,st,ht,ct),rt!==null&&(at=a.getMinutes()-(rt+a.getTimezoneOffset()),a.setHours(a.getHours()+parseInt(at/60,10),at%60)),a}}();s=function(n,t,i){var r=t["-"],u=t["+"],e;switch(i){case"n -":r=" "+r;u=" "+u;case"n-":h(n,r)?e=["-",n.substr(0,n.length-r.length)]:h(n,u)&&(e=["+",n.substr(0,n.length-u.length)]);break;case"- n":r+=" ";u+=" ";case"-n":f(n,r)?e=["-",n.substr(r.length)]:f(n,u)&&(e=["+",n.substr(u.length)]);break;case"(n)":f(n,"(")&&h(n,")")&&(e=["-",n.substr(1,n.length-2)])}return e||["",n]};i.prototype.findClosestCulture=function(n){return i.findClosestCulture.call(this,n)};i.prototype.format=function(n,t,r){return i.format.call(this,n,t,r)};i.prototype.localize=function(n,t){return i.localize.call(this,n,t)};i.prototype.parseInt=function(n,t,r){return i.parseInt.call(this,n,t,r)};i.prototype.parseFloat=function(n,t,r){return i.parseFloat.call(this,n,t,r)};i.prototype.culture=function(n){return i.culture.call(this,n)};i.addCultureInfo=function(n,t,i){var r={},u=!1;typeof n!="string"?(i=n,n=this.culture().name,r=this.cultures[n]):typeof t!="string"?(i=t,u=this.cultures[n]==null,r=this.cultures[n]||this.cultures["default"]):(u=!0,r=this.cultures[t]);this.cultures[n]=v(!0,{},r,i);u&&(this.cultures[n].calendar=this.cultures[n].calendars.standard)};i.findClosestCulture=function(n){var r,f,h,l,y,a;if(!n)return this.findClosestCulture(this.cultureSelector)||this.cultures["default"];if(typeof n=="string"&&(n=n.split(",")),c(n)){for(var i,o=this.cultures,v=n,s=v.length,e=[],t=0;t<s;t++)n=u(v[t]),h=n.split(";"),i=u(h[0]),h.length===1?f=1:(n=u(h[1]),n.indexOf("q=")===0?(n=n.substr(2),f=parseFloat(n),f=isNaN(f)?0:f):f=1),e.push({lang:i,pri:f});for(e.sort(function(n,t){return n.pri<t.pri?1:n.pri>t.pri?-1:0}),t=0;t<s;t++)if(i=e[t].lang,r=o[i],r)return r;for(t=0;t<s;t++){i=e[t].lang;do{if(l=i.lastIndexOf("-"),l===-1)break;if(i=i.substr(0,l),r=o[i],r)return r}while(1)}for(t=0;t<s;t++){i=e[t].lang;for(y in o)if(a=o[y],a.language==i)return a}}else if(typeof n=="object")return n;return r||null};i.format=function(n,t,i){var r=this.findClosestCulture(i);return n instanceof Date?n=b(n,t,r):typeof n=="number"&&(n=ut(n,t,r)),n};i.localize=function(n,t){return this.findClosestCulture(t).messages[n]||this.cultures["default"].messages[n]};i.parseDate=function(n,t,i){var r,o,f,u,s,e;if(i=this.findClosestCulture(i),t){if(typeof t=="string"&&(t=[t]),t.length)for(u=0,s=t.length;u<s;u++)if(e=t[u],e&&(r=d(n,e,i),r))break}else{f=i.calendar.patterns;for(o in f)if(r=d(n,f[o],i),r)break}return r||null};i.parseInt=function(n,t,r){return p(i.parseFloat(n,t,r))};i.parseFloat=function(n,t,i){var y,c,l,h,p,k,w,b,d,a,it;typeof t!="number"&&(i=t,t=10);var f=this.findClosestCulture(i),v=NaN,r=f.numberFormat;if(n.indexOf(f.numberFormat.currency.symbol)>-1&&(n=n.replace(f.numberFormat.currency.symbol,""),n=n.replace(f.numberFormat.currency["."],f.numberFormat["."])),n.indexOf(f.numberFormat.percent.symbol)>-1&&(n=n.replace(f.numberFormat.percent.symbol,"")),n=n.replace(/ /g,""),nt.test(n))v=parseFloat(n);else if(!t&&g.test(n))v=parseInt(n,16);else{var u=s(n,r,r.pattern[0]),e=u[0],o=u[1];e===""&&r.pattern[0]!=="(n)"&&(u=s(n,r,"(n)"),e=u[0],o=u[1]);e===""&&r.pattern[0]!=="-n"&&(u=s(n,r,"-n"),e=u[0],o=u[1]);e=e||"+";l=o.indexOf("e");l<0&&(l=o.indexOf("E"));l<0?(c=o,y=null):(c=o.substr(0,l),y=o.substr(l+1));k=r["."];w=c.indexOf(k);w<0?(h=c,p=null):(h=c.substr(0,w),p=c.substr(w+k.length));b=r[","];h=h.split(b).join("");d=b.replace(/\u00A0/g," ");b!==d&&(h=h.split(d).join(""));a=e+h;p!==null&&(a+="."+p);y!==null&&(it=s(y,r,"-n"),a+="e"+(it[0]||"+")+it[1]);tt.test(a)&&(v=parseFloat(a))}return v};i.culture=function(n){return typeof n!="undefined"&&(this.cultureSelector=n),this.findClosestCulture(n)||this.cultures["default"]}}(this);const E_MaintenanceScheduleType=Object.freeze({Scheduled:0,Urgent:1,UrgentNoETA:2,translate:function(n){switch(n){case E_MaintenanceScheduleType.Scheduled:return getStrRes("scheduled");case E_MaintenanceScheduleType.Urgent:return getStrRes("urgent");case E_MaintenanceScheduleType.UrgentNoETA:return getStrRes("urgent_no_estimated_timeframe")}return""}});(function(n){var i=n.fn.append,t;n.fn.append=function(){return i.apply(this,arguments).trigger("append",arguments)};t=n.fn.remove;n.fn.remove=function(){return n(this).trigger("remove"),t.apply(this,arguments)};n.propHooks.disabled={set:function(t,i){return t instanceof Element&&t.disabled!==i&&(t.hasAttribute("data-forcedisabled")&&!i&&(i=!0),t.disabled=i,n(t).trigger("disabled",[i])),i}}})(jQuery);var _strings={};$(document).ready(function(){hidePageLoading();Globalize.culture($('meta[name="page-culture"]').attr("content"));$('[data-type="loading"]').each(function(){$(this).click(function(n){n.stopPropagation()})});initSGAToolTip($('a[data-toggle="sgatooltip"]'));let t=$("#frmLogout"),n=SGANumber.tryParseFloat(t.data("sessiontimeout"),null),i=SGACommon.isNullOrUndefined;if(n!==null&&n>0)var r=setInterval(function(){SGAAjax.post("/Shared/IsSessionExpired",null,null,function(n){n.ErrCode!==0?addErrorLog('contents/scripts/sga/sga-1.0.0.js: Warning! Warning!! Warning!!! Error has occurred when post AJAX to url "/Shared/IsSessionExpired" with error code #'+(i(n.ErrCode)?"NULL":n.ErrCode)):i(n.Expired)?addErrorLog('contents/scripts/sga/sga-1.0.0.js: BUG! BUG!! BUG!!! AJAX post to url "/Shared/IsSessionExpired" has returned invalid JSON.'):n.Expired&&(clearInterval(r),SGADialog.showModal("Session Expired",getStrRes("msg_your_browser_session_has_expired_we_will_reload_your_browser_to_refresh_your_session"),"warn","ok",null,null,function(){SGAAjax.post(t.attr("action"),{IsTimeout:!0},null,function(){location.reload()},function(){location.reload()})}))},function(n){let t=E_ErrCode.getErrCode(n);t===E_ErrCode.InvalidAntiForgeryToken&&(clearInterval(r),E_ErrCode.showDlg(t,"Session Expired"))})},(n>20?20:n)*6e4)});const SGACommon=Object.freeze({PASS_STR:"|<PASS_STR>|",coalesce:function(n,t){return SGACommon.isNullOrUndefined(n)?t:n},copyToClipboard:function(n){let t=$("<textarea><\/textarea>");$("body").append(t);t.val(n).select();document.execCommand("copy");t.remove()},createObjectURL:function(n){return window.URL?window.URL.createObjectURL(n):window.webkitURL.createObjectURL(n)},formatBytes:function(n,t=2){if(n===0)return"0 Bytes";const i=1024,u=t<0?0:t,r=Math.floor(Math.log(n)/Math.log(i));return parseFloat((n/Math.pow(i,r)).toFixed(u))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]},getCountryCode:function(n){if(SGAString.isNullOrWhitespace(n))return"";let t=n.trim().split("-").filter(function(n){return n});if(t.length===0)return n;let i=t[t.length-1].toLowerCase();return i==="chs"?"tw":i==="cht"?"cn":i},getFullName:function(n,t){let i=SGAString.coalesceNullOrWhitespace;return SGAString.trim(i(n)+" "+i(t))},gotoHtmlPage:function(n,t){if(t){let t=window.open();t.document.open();t.document.write(n);t.document.close()}else document.open(),document.write(n),document.close()},gotoUrl:function(n,t,i){let r=window;return t?(r=window.open(n,"_blank"),i&&r.focus()):r.location.href=n,r},gotoUrlPopup:function(n,t,i,r){var u=screen.width/2-i/2,f=screen.height/2-r/2;return window.open(n,t,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width="+i+", height="+r+", top="+f+", left="+u)},hasLock:function(n){return n.data("sga-locked")?!0:!1},hideDlg:function(n,t){if(SGABootstrap)SGABootstrap.hideDlg(n,t);else{if(n.off("hidden.bs.modal"),t)n.on("hidden.bs.modal",function(){t()});n.modal("hide")}return n},htmlDecode:function(n){return $("<textarea>").html(n).text()},htmlEncode:function(n){return new String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},isEmptyObject:function(n){if(!SGACommon.isNullOrUndefined(n))for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},isJQueryObject:function(n){return n!==null&&n!==undefined&&n instanceof jQuery&&n.length>0},isNullOrUndefined:function(n){return typeof n=="undefined"||n===null},isValidImageExt:function(n,t){const i=["bmp","gif","jpeg","jpg","png","tif","tiff","webp"];return(Array.isArray(n)&&(n=n[0]),SGAString.isNullOrWhitespace(n))?!1:(SGAArray.isNullOrEmpty(t)?i:i.concat(t)).includes(n.replace(".","").toLowerCase())},isValidImageFile:function(n,t){return SGAString.isNullOrWhitespace(n)?!1:SGACommon.isValidImageExt(n.toLowerCase().match(/\.[0-9a-z]+$/i),t)},isValidPassword:function(n){return!SGACommon.isNullOrUndefined(n)&&n.length>=6&&!/\s/.test(n)},isValidSecurityPin:function(n){return!SGACommon.isNullOrUndefined(n)&&n.length>=4&&n.length<=6&&!/\s/.test(n)&&/^\d+$/.test(n)},isValidUserName:function(n){return!SGACommon.isNullOrUndefined(n)&&n.length>=3&&/^[a-zA-Z0-9_]+$/.test(n)},lock:function(n,t,i){return SGACommon.hasLock(n)?!1:(t&&SGADlgProg.hideBtn().setLabel(i).show(),n.data("sga-locked",!0).addClass("disabled").prop("disabled",!0),!0)},releaseLock:function(n,t){return t&&SGADlgProg.hide(),n.removeData("sga-locked").removeClass("disabled").prop("disabled",!1)},reloadPage:function(){window.location.reload(!0)},showDlg:function(n,t,i){if(SGABootstrap)SGABootstrap.showDlg(n,t,i);else{if(n.off("shown.bs.modal"),i)n.on("shown.bs.modal",function(){i()});n.modal("show")}return n}}),JSONMAX=5242880,SGAAjax=Object.freeze({addSubmitHandler:function(n,t,i,r,u){n.submit(function(){return t&&t(),SGAAjax.postForm($(this).attr("action"),$(this).serialize(),null,null,i,r,u),!1})},createGet:function(n,t,i,r,u){let f={url:n,type:"GET",dataType:"html",beforeSend:function(n){i&&i(n)},success:function(n){r&&r(n)},error:function(n,t,i){u&&u(n,t,i)}};return t&&(f.xhrFields={withCredentials:!0}),f},createPost:function(n,t,i,r,u,f){let e={url:n,type:"POST",data:JSON.stringify(t),datatype:"json",contentType:"application/json",beforeSend:function(n){r&&r(n)},success:function(n){u&&u(n)},error:function(n,t,i){f&&f(n,t,i)}},o=SGAAjax.getAntiForgeryToken();return SGAString.isNullOrWhitespace(o)||(e.headers={__RequestVerificationToken:o}),i&&(e.xhrFields={withCredentials:!0}),e},createPostForm:function(n,t,i,r,u,f,e){let o={url:n,type:"POST",data:t,processData:SGACommon.isNullOrUndefined(i)?!0:i,contentType:SGAString.isNullOrWhitespace(r)?"application/x-www-form-urlencoded; charset=UTF-8":r,beforeSend:function(n){u&&u(n)},success:function(n){f&&f(n)},error:function(n,t,i){e&&e(n,t,i)}},s=SGAAjax.getAntiForgeryToken();return SGAString.isNullOrWhitespace(s)||(o.headers={__RequestVerificationToken:s}),o},getAntiForgeryToken:function(){return $("input[name=__RequestVerificationToken]").val()},getHtml:function(n,t,i,r){return $.ajax(SGAAjax.createGet(n,!1,t,i,r))},post:function(n,t,i,r,u){return $.ajax(SGAAjax.createPost(n,t,!1,i,r,u))},postWithCred:function(n,t,i,r,u){return $.ajax(SGAAjax.createPost(n,t,!0,i,r,u))},postForm:function(n,t,i,r,u,f,e){return $.ajax(SGAAjax.createPostForm(n,t,i,r,u,f,e))}}),SGAArray=Object.freeze({clone:function(n){return SGACommon.isNullOrUndefined(n)?null:JSON.parse(JSON.stringify(n))},cloneDistinct:function(n){if(SGACommon.isNullOrUndefined(n))return null;let t=[];for(let i=0;i<n.length;i++)t.indexOf(n[i])===-1&&t.push(n[i]);return t},coalesce:function(n,t){return SGAArray.isNullOrEmpty(n)?t:n},contains:function(n,t){return SGAArray.isNullOrEmpty(n)?!1:n.indexOf(t)>-1},getAttrMax:function(n,t){var i=null;return n.each(function(){let n=parseInt($(this).attr(t));(i===null||n>i)&&(i=n)}),i},getAttrMin:function(n,t){var i=null;return n.each(function(){let n=parseInt($(this).attr(t));(i===null||n<i)&&(i=n)}),i},getDataMax:function(n,t){var i=null;return n.each(function(){let n=$(this).data(t);(i===null||n>i)&&(i=n)}),i},getDataMin:function(n,t){var i=null;return n.each(function(){let n=$(this).data(t);(i===null||n<i)&&(i=n)}),i},getMax:function(n){if(SGAArray.isNullOrEmpty(n))return 0;for(var t=n.length,i=-Infinity;t--;)n[t]>i&&(i=n[t]);return i},getMin:function(n){if(SGAArray.isNullOrEmpty(n))return 0;for(var t=n.length,i=Infinity;t--;)n[t]<i&&(i=n[t]);return i},isNullOrEmpty:function(n){return SGACommon.isNullOrUndefined(n)||n.length===0},remove:function(n,t){return SGAArray.isNullOrEmpty(n)?n:n.filter(function(n){return n!==t})},removeDuplicate:function(n,t){return SGAArray.isNullOrEmpty(n)?n:SGACommon.isNullOrUndefined(t)?n.filter(function(t,i){return n.indexOf(t)===i}):n.filter(function(n){return t.indexOf(n)<0})}}),SGABool=Object.freeze({parseBool:function(n){if(SGAString.isNullOrWhitespace(n))return!1;let t=+n;return n!==null&&(isNaN(t)?!!String(n).toLowerCase().replace(!1,""):!!t)},tryParseBool:function(n,t){return SGAString.isNullOrWhitespace(n)?t:SGABool.parseBool(n)}}),SGABootstrap=Object.freeze({addNotification:function(n,t,i,r,u){switch(i){case"err":case"error":i="danger";break;case"ok":i="success";break;case"information":i="info";break;case"warn":i="warning"}const f='<button type="button" class="close" data-dismiss="alert">&times;<\/button>';var e=n.find(".dlg-notifications-group"),o=e.find('div[data-id="'+t+'"]');o.length>0?o.attr("class","mb-0 alert alert-"+i).html(f+r):e.append('<div class="mb-0 alert alert-'+i+'" data-id="'+t+'">'+f+r+"<\/div>");u=SGANumber.tryParseInt(u,0);u>0&&setTimeout(function(){SGAEditPopup.deleteNotification(t)},u)},clearNotification:function(n){return n.find(".dlg-notifications-group").html(""),n},deleteNotification:function(n,t){n.find(".dlg-notifications-group").find('div[data-id="'+t+'"]').remove()},getDlgMaxZIdx:function(){var n=-1;return $(".modal").each(function(){let t=SGANumber.tryParseInt($(this).css("z-index"),-1);t>n&&(n=t)}),n},hideDlg:function(n,t){let r=n.data("sga-dialog-state"),i=function(){n.off("hidden.bs.modal").on("hidden.bs.modal",function(){n.off("hidden.bs.modal").data("sga-dialog-state","").addClass("fade");let i=n.data("bs.modal");i&&$(i._backdrop).css({zIndex:-1});n.css({zIndex:-1});t&&t()}).modal("hide")};if(r!=="open")i();else n.off("shown.bs.modal").on("shown.bs.modal",function(){n.removeClass("fade");i()});return n.data("sga-dialog-state","close")},showDlg:function(n,t,i){let u=n.data("bs.modal"),r=-1;u?(u._config.keyboard=!t,u._config.backdrop=t?"static":!0):n.modal({backdrop:t?"static":!0,keyboard:!t});let e=n.data("sga-dialog-state"),f=function(){n.off("shown.bs.modal").on("shown.bs.modal",function(){n.off("shown.bs.modal").data("sga-dialog-state","").addClass("fade");u||(u=n.data("bs.modal"));r=parseInt(n.css("zIndex"));r<0&&(r=SGABootstrap.getDlgMaxZIdx()+1,n.css({zIndex:r}));$(u._backdrop).css({zIndex:r-1});i&&i()}).modal("show")};if(e!=="close")f();else n.off("hidden.bs.modal").on("hidden.bs.modal",function(){n.removeClass("fade");f()});return r=SGABootstrap.getDlgMaxZIdx()+1,n.css({zIndex:r}).data("sga-dialog-state","open")}}),SGABrowser=Object.freeze({getBodyHeight:function(){return document.documentElement.clientHeight},getBodyWidth:function(){return document.documentElement.clientWidth},getScreenHeight:function(){return $(window).height()},getScreenWidth:function(){return $(window).width()},getScrollMaxY:function(){let t=window.innerHeight||document.body.clientHeight,n=0;return n=window.innerHeight&&window.scrollMaxY?window.innerHeight+window.scrollMaxY:document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:document.body.offsetHeight,n-t},isIE:function(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):window.navigator.appName==="Microsoft Internet Explorer"},isMobile:function(){let n=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n},isMobileOrTablet:function(){let n=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n},scrollToBottom:function(){window.scrollTo(0,document.body.scrollHeight)}}),SGADate=Object.freeze({dateDiff:function(n,t){return(t-n)/864e5},getTimeSinceMidnightInSeconds:function(n){return(n.getTime()-SGADate.removeTime(n).getTime())/1e3},isDate:function(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&n.getMonth&&typeof n.getMonth=="function"},removeTime:function(n){return new Date(n.toDateString())},removeYearFromPattern:function(n){return SGAString.trim(n.replace("-yyyy","").replace("-yy","").replace("/yyyy","").replace("/yy","").replace(" yyyy","").replace(" yy","").replace("yyyy-","").replace("yy-","").replace("yyyy/","").replace("yy/","").replace("yyyy ","").replace("yy ",""))}}),SGAJQuery=Object.freeze({calcRemainingHeight:function(n){let t=SGAJQuery.getOffsetTop(n),i=SGAJQuery.getPadding(n.parent(),!0),r=SGAJQuery.getMaxMargin(n.parent(),!0),u=SGABrowser.getScreenHeight();return u-t-(i.bottom+r.bottom+1)},copyEvent:function(n,t,i){SGAString.coalesce(i,"click")==="click"?t.click(n.data("events").click[0].handler):i==="change"&&t.change(n.data("events").change[0].handler)},getOffsetTop:function(n){let i=0,t=n.length===0?null:n.get(0);while(t)i+=t.offsetTop,t=t.offsetParent;return i},getPadding:function(n,t){let u=SGACommon.isJQueryObject,f=u(n)?n.parent():null,r=t&&u(f)?SGAJQuery.getPadding(f,t):null,i=u(n)&&u(f)?n.css("padding"):null,e=0,o=0,s=0,h=0;return r!==null&&(e=r.top,o=r.right,s=r.bottom,h=r.left),i=SGAString.isNullOrWhitespace(i)?[]:i.replace(/px/g,"").split(" "),{top:(i.length>0?SGANumber.tryParseFloat(i[0],0):0)+e,right:(i.length>1?SGANumber.tryParseFloat(i[1],0):i[0]?SGANumber.tryParseFloat(i[0],0):0)+o,bottom:(i.length>2?SGANumber.tryParseFloat(i[2],0):i[0]?SGANumber.tryParseFloat(i[0],0):0)+s,left:(i.length>3?SGANumber.tryParseFloat(i[3],0):i.length>1?SGANumber.tryParseFloat(i[1],0):i.length>0?SGANumber.tryParseFloat(i[0],0):0)+h}},getMaxMargin:function(n,t){let u=SGACommon.isJQueryObject,f=u(n)?n.parent():null,r=t&&u(n)?SGAJQuery.getMaxMargin(f,t):null,i=u(n)&&u(f)?n.css("margin"):null,e=0,o=0,s=0,h=0;return r!==null&&(e=r.top,o=r.right,s=r.bottom,h=r.left),i=SGAString.isNullOrWhitespace(i)?[]:i.replace(/px/g,"").split(" "),{top:Math.max(i.length>0?SGANumber.tryParseFloat(i[0],0):0,e),right:Math.max(i.length>1?SGANumber.tryParseFloat(i[1],0):i[0]?SGANumber.tryParseFloat(i[0],0):0,o),bottom:Math.max(i.length>2?SGANumber.tryParseFloat(i[2],0):i[0]?SGANumber.tryParseFloat(i[0],0):0,s),left:Math.max(i.length>3?SGANumber.tryParseFloat(i[3],0):i.length>1?SGANumber.tryParseFloat(i[1],0):i.length>0?SGANumber.tryParseFloat(i[0],0):0,h)}},getMaxHeight:function(n){let t=n.css("max-height");return SGAString.isNullOrWhitespace(t)?0:SGANumber.tryParseFloat(t.replace(/px/g,"").trim(),0)},getRealHeight:function(n){let t=n.height();n.css("height","auto");let i=n.height();return n.css("height",t+"px"),i},getScrollParent:function(n,t){let u=n.get(0),i=getComputedStyle(u),f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,e=i.position==="absolute";if(i.position==="fixed")return document.body;for(var r=u;r=r.parentElement;)if(i=getComputedStyle(r),e&&i.position==="static")continue;else if(f.test(i.overflow+i.overflowY+i.overflowX))return $(r);return $(document.body)},isInViewport:function(n,t,i){if(SGACommon.isJQueryObject(t)||(t=$(window)),i){let i=n.offset().left,u=i+n.outerWidth(),r=t.offset().left,f=r+t.width();return i>r&&u<f}let r=n.offset().top,f=r+n.outerHeight(),u=t.scrollTop(),e=u+t.height();return f>u&&r<e},isVisible:function(n){return n.length>0&&n.css("visibility")!=="hidden"&&n.css("display")!=="none"},scrollTo:function(n){let t=SGAJQuery.getScrollParent(n);return t.scrollTop(n.offset().top-t.offset().top+t.scrollTop()),this}}),SGANumber=Object.freeze({getRandom:function(n,t){return Math.random()*(t-n)+n},getRandomInt:function(n,t){return Math.floor(SGANumber.getRandom(Math.ceil(n),Math.floor(t)))},isFloat:function(n,t){if(t){if(isNaN(n))return!1;typeof n=="string"&&(n=+n)}return Number.isFloat?Number.isFloat(n):Number(n)===n},isInt:function(n,t){if(t){if(isNaN(n))return!1;typeof n=="string"&&(n=+n)}return Number.isInteger?Number.isInteger(n):typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},isLong:function(n,t){if(t){if(isNaN(n))return!1;typeof n=="string"&&(n=+n)}return Number.isLong?Number.isLong(n):typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},tryParseFloat:function(n,t){return SGANumber.isFloat(n)?n:SGAString.isNullOrWhitespace(n)||isNaN(n)||!SGANumber.isFloat(n,!0)?t:parseFloat(n)},tryParseInt:function(n,t){return SGANumber.isInt(n)?n:SGAString.isNullOrWhitespace(n)||isNaN(n)||!SGANumber.isInt(n,!0)?t:parseInt(n)},tryParseLong:function(n,t){return SGANumber.isLong(n)?n:SGAString.isNullOrWhitespace(n)||isNaN(n)||!SGANumber.isLong(n,!0)?t:Number(n)}}),SGAString=Object.freeze({coalesceEqual:function(n,t,i){return n===t?i:n},coalesce:function(n,t){return SGAString.isNullOrEmpty(n)?t:n},coalesceNullOrWhitespace:function(n,t){return SGAString.isNullOrWhitespace(n)?t:n},createQueryStr:function(n){let t=encodeURIComponent;return Object.keys(n).map(function(i){if(Array.isArray(n[i])){let r=t(i)+"="+t(n[i][0]);for(let u=1;u<n[i].length;u++)r+="&"+t(i)+"="+t(n[i][u]);return r}return t(i)+"="+t(n[i])}).join("&")},equalsNullAsEmpty:function(n,t){return SGACommon.isNullOrUndefined(n)&&(n=""),SGACommon.isNullOrUndefined(t)&&(t=""),String(n)===String(t)},getLength:function(n,t){return SGACommon.isNullOrUndefined(n)?0:t?SGAString.trim(n).length:String(n).length},isEqual:function(n,t){let i=SGACommon.isNullOrUndefined;return i(n)&&i(t)?!0:!i(n)&&i(t)?!1:i(n)&&!i(t)?!1:new String(n).valueOf()===new String(t).valueOf()},isEqualIgnoreCase:function(n,t){let i=SGACommon.isNullOrUndefined;return i(n)&&i(t)?!0:!i(n)&&i(t)?!1:i(n)&&!i(t)?!1:new String(n).valueOf().toUpperCase()===new String(t).valueOf().toUpperCase()},isNullOrEmpty:function(n){return SGACommon.isNullOrUndefined(n)?!0:(typeof n=="string"?n:String(n))===""},isNullOrWhitespace:function(n){return SGACommon.isNullOrUndefined(n)?!0:(typeof n=="string"?n:String(n)).replace(/\s/g,"").length<1},isValidEmail:function(n){if(SGAString.trim(n).length===0)return!1;return/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(n)},isValidPassword:function(n,t){return n.indexOf(" ")>=0||n.length<t?!1:!0},isValidPemPublicKey:function(n){if(SGAString.isNullOrWhitespace(n))return!1;return/^-----BEGIN PUBLIC KEY-----[\s\S]+-----END PUBLIC KEY-----$/.test(n)},limitChar:function(n,t){return SGAString.getLength(n)>t?n.slice(0,t)+"…":n},padLeft:function(n,t,i){let r=SGAString.isNullOrEmpty;if(r(i))return n;n=r(n)?"":String(n);let u=n.length;if(t<=u)return n;i=i[0];for(let t=0;t<u;t++)n=i+n;return n},padRight:function(n,t,i){let r=SGAString.isNullOrEmpty;if(r(i))return n;n=r(n)?"":String(n);let u=n.length;if(t<=u)return n;i=i[0];for(let r=u;r<t;r++)n+=i;return n},parseQueryStr:function(n){let t={},i=decodeURIComponent;if(SGACommon.isNullOrUndefined(n)&&(n=window.location.search.substring(1)),!SGAString.isNullOrWhitespace(n)){let r=new String(n).split("&");for(let n=0;n<r.length;n++){let u=r[n].split("=");u.length===2&&(t[i(u[0])]=i(u[1]))}}return t},replaceAll:function(n,t,i){return n?String(n).replace(new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),i):n},trim:function(n){return n?String(n).replace(/^\s+|\s+$/g,""):n===0?"0":""}}),WDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SGAGlobal=Object.freeze({convertToLocalDate:function(n,t){if(SGAGlobal.isJSDate(n)===!0){var i=SGAGlobal.parseDate(n,"yyyy-MM-dd");return i||(i=SGAGlobal.parseDate(n,"yyyy/MM/dd")),(SGAString.isNullOrWhitespace(t)||t.length===1)&&(t=SGAGlobal.getDatepickerPattern(t)),SGAString.trim(i.format(t))}return""},convertToLocalDateTime:function(n,t,i,r){if(t=t===null||t===undefined||typeof t!="boolean"?!1:t,SGAGlobal.isJSDateTime(n)===!0){var u=null;return t&&(u=new Date(n),(!u||isNaN(u.getTime()))&&(u=SGAGlobal.parseDate(n.split(".")[0]+(n.includes("Z")?"Z":""),"yyyy-MM-ddTHH:mm:ssZ"),u||(u=SGAGlobal.parseDate(n.split(".")[0]+(n.includes("Z")?"Z":""),"yyyy/MM/ddTHH:mm:ssZ")))),u||(u=SGAGlobal.parseDate(n.split(".")[0],"yyyy-MM-ddTHH:mm:ss"),u||(u=SGAGlobal.parseDate(n.split(".")[0],"yyyy/MM/ddTHH:mm:ss"))),SGAString.isNullOrWhitespace(r)&&(r=i?SGAGlobal.getDateTimeSecPattern():SGAGlobal.getDateTimePattern()),SGAString.trim(Globalize.format(t?new Date(u):u,r))}return""},convertToLocalTime:function(n,t,i){if(SGAGlobal.isJSDateTime(n)===!0){var r=SGAGlobal.parseDate(n.split(".")[0],"yyyy-MM-ddTHH:mm:ss");return r||(r=SGAGlobal.parseDate(n.split(".")[0],"yyyy/MM/ddTHH:mm:ss")),SGAString.isNullOrWhitespace(i)&&(i=SGAGlobal.getTimePattern(t?"T":"t")),SGAString.trim(Globalize.format(r,i))}return""},convertToTimeCounter:function(n,t){if(SGAGlobal.isInt(n)){var r=parseInt(n),u=Math.floor(r/86400),f=Math.floor(r/3600)%24,e=Math.floor(r/60)%60,o=r%60,i=[];return u>0&&i.push(u),f>=0&&i.push(f),e>=0&&i.push(e),(t||u>0&&o>=0)&&i.push(o),$.map(i,function(n){return(n<10?"0":"")+n}).join(":")}return""},format:function(n,t){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),n===null)return!1;typeof n=="string"&&(n=SGAGlobal.parseFloat(n));var i=Globalize.format(n,t);if(i!==null&&t!==null&&t.length>0)switch(t.toLowerCase().charAt(0)){case"c":i=i.replace(Globalize.culture().numberFormat.currency.symbol,Globalize.culture().numberFormat.currency.symbol+" ")}return i},getDatePattern:function(n){var t=Globalize.culture(),i=n||"d";return t.calendars.standard.patterns[i]?t.calendars.standard.patterns[i]:t.calendar.patterns[i]},getDatepickerPattern:function(n){var t=Globalize.culture(),i=n||"d";return t.calendars.standard.patterns[i]?t.calendars.standard.patterns[i].toLowerCase():t.calendar.patterns[i].toLowerCase()},getDateTimePattern:function(n){var t=Globalize.culture(),i=n||"d",r=n||"t";return t.calendars.standard.patterns[i]?t.calendars.standard.patterns[r]?t.calendars.standard.patterns[i]+" "+t.calendars.standard.patterns[r]:t.calendars.standard.patterns[i]+" "+t.calendar.patterns[r]:t.calendar.patterns[i]+" "+t.calendar.patterns[r]},getDateTimeSecPattern:function(n){let t=Globalize.culture(),i=n||"d",r=n||"T";return t.calendars.standard.patterns[i]?t.calendars.standard.patterns[r]?t.calendars.standard.patterns[i]+" "+t.calendars.standard.patterns[r]:t.calendars.standard.patterns[i]+" "+t.calendar.patterns[r]:t.calendar.patterns[i]+" "+t.calendar.patterns[r]},getDayName:function(n){var t=Globalize.culture(),i;return t.calendars.standard.days&&t.calendars.standard.days.names?(i=t.calendars.standard.days.names,i.length>n.getDay()?i[n.getDay()]:WDAYS[n.getDay()]):WDAYS[n.getDay()]},getValue:function(n){if(SGACommon.isJQueryObject(n)){let r=n.data("type"),t=n.val(),i=SGAString.isNullOrEmpty;if(i(t)&&(t=n.html(),i(t)))return t?t:n;if(!SGAString.isNullOrWhitespace(r))switch(r.toLowerCase()){case"currency":let r=n.data("glb-symbol");return i(r)?t:t.replace(r,"")}return t}return n},getTimePattern:function(n){var t=Globalize.culture();return t.calendars.standard.patterns[n||"t"]?t.calendars.standard.patterns[n||"t"]:t.calendar.patterns[n||"t"]},isDate:function(n){return SGAGlobal.parseDate(n)!==null},isInt:function(n){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),n===null||n===undefined)return!1;if(typeof n=="number")return n%1==0;var t=SGAGlobal.parseFloat(n);return(t|0)===t},isJSDate:function(n){var f,i,e;if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),n!==null&&SGAString.trim(n).length>=8&&(f=/^(\d{4})(\/|-)(\d{1,2})(\/|-)(\d{1,2})$/,i=n.match(f),i!==null)){var r=parseInt(String(i[5])),t=parseInt(String(i[3])),u=parseInt(String(i[1]));return t<1||t>12?!1:r<1||r>31||(t===4||t===6||t===9||t===11)&&r===31||t===2&&(e=u%4==0&&(u%100!=0||u%400==0),r>29||r===29&&!e)?!1:!0}return!1},isJSDateTime:function(n){var o,t,l;if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),n!==null&&SGAString.trim(n).length>=8&&(o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,t=n.match(o),t!==null)){if(t.length>13&&SGACommon.isNullOrUndefined(t[13])||t.length>19&&SGACommon.isNullOrUndefined(t[19]))return!1;var u=t.length>13?t[13].split(":"):["0"],f=t.length>19?t[19].split("."):["0"],a=parseInt(f.length>1?f[1]:"0"),s=parseInt(f.length>0?f[0].replace(":",""):"0"),h=parseInt(u.length>1?u[1]:"0"),c=parseInt(u.length>0?u[0]:"0"),r=parseInt(t[7]),i=parseInt(t[5]),e=parseInt(t[1]);return i<1||i>12?!1:r<1||r>31||c<0||c>24||h<0||h>59||s<0||s>59||(i===4||i===6||i===9||i===11)&&r===31||i===2&&(l=e%4==0&&(e%100!=0||e%400==0),r>29||r===29&&!l)?!1:!0}return!1},isNumeric:function(n){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))return!1;n=String(n);var t=Globalize.parseFloat(n);return isNaN(t)?!isNaN(Globalize.parseFloat(n.replace(new RegExp("("+Globalize.culture().numberFormat.currency.symbol+")","gi"),Globalize.culture().numberFormat.currency.symbol))):!0},isTime:function(n,t){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))return!1;var i=t?/(?:[01]\d|2[0-3]):(?:[0-5]\d):(?:[0-5]\d)/:/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/;return n.search(i)>=0},parseDate:function(n,t){return(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))?null:t?Globalize.parseDate(String(n),t):Globalize.parseDate(String(n))},parseJSDate:function(n){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAGlobal.isJSDate(n)===!0){var t=SGAGlobal.parseDate(n,"yyyy-MM-dd");return t?t:SGAGlobal.parseDate(n,"yyyy/MM/dd")}return null},parseJSDateTime:function(n){let t=null;return SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAGlobal.isJSDateTime(n)===!0&&(t=new Date(n),(!t||isNaN(t.getTime()))&&(t=SGAGlobal.parseDate(n.split(".")[0]+(n.includes("Z")?"Z":""),"yyyy-MM-ddTHH:mm:ssZ"),(!t||isNaN(t.getTime()))&&(t=SGAGlobal.parseDate(n.split(".")[0]+(n.includes("Z")?"Z":""),"yyyy/MM/ddTHH:mm:ssZ"),(!t||isNaN(t.getTime()))&&(t=null)))),t},parseFloat:function(n){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))return null;n=String(n);var t=Globalize.parseFloat(n);return isNaN(t)&&(t=Globalize.parseFloat(n.replace(new RegExp("("+Globalize.culture().numberFormat.currency.symbol+")","gi"),Globalize.culture().numberFormat.currency.symbol))),t},parseInt:function(n){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))return null;n=String(n);var t=Globalize.parseInt(n);return isNaN(t)&&(t=Globalize.parseInt(n.replace(new RegExp("("+Globalize.culture().numberFormat.currency.symbol+")","gi"),Globalize.culture().numberFormat.currency.symbol))),t},parseTime:function(n){return(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))?null:SGAGlobal.convertToLocalDateTime("1970-01-01T"+n+":00")},parseTimeCounter:function(n){if(SGACommon.isJQueryObject(n)&&(n=SGAGlobal.getValue(n)),SGAString.isNullOrWhitespace(n))return-1;let t=n.split(":"),e=0,r=0,u=0,f=0,i=SGANumber.tryParseInt;if(t.length===2)r=i(t[0],-1),u=i(t[1],-1);else if(t.length===3)r=i(t[0],-1),u=i(t[1],-1),f=i(t[2],-1);else if(t.length===4)e=i(t[0],-1),r=i(t[1],-1),u=i(t[2],-1),f=i(t[3],-1);else return-1;return e<0||r<0||u<0||f<0?-1:e*86400+r*3600+u*60+f}}),SGAHtmlRender=Object.freeze({renderImage:function(n,t=null,i=null,r=null){let u=SGAString.isNullOrWhitespace;return'<img src="'+n+'"'+(u(t)?"":' alt="{0}"'.replace("{0}",t))+(u(i)?"":' title="{0}"'.replace("{0}",i))+(u(r)?"":' class="{0}"'.replace("{0}",r))+" />"}}),SGADialog=Object.freeze({getDlg:function(){return $("#sgaDlg")},hide:function(){SGACommon.hideDlg(SGADialog.getDlg())},initDlg:function(n,t,i,r,u,f,e,o){var s,h,v,a,y;SGAString.isNullOrWhitespace(i)&&(i="info");SGAString.isNullOrWhitespace(r)&&(r="ok");s=SGADialog.getDlg();s.attr("data-dtype",SGAString.isNullOrWhitespace(i)?"info":i);s.find('.modal-title[data-dtext="title"]').html(n);s.find('.modal-msg[data-dtext="msg"]').html(t);var c=s.find(".modal-header"),b=s.find(".modal-footer").show(),p=s.find('button[data-btype="yes"]').hide().html(getStrRes("yes")),w=s.find('button[data-btype="no"]').hide().html(getStrRes("no")),l=s.find('button[data-btype="ok"]').hide().html(getStrRes("ok")),k=s.find('button[data-btype="cancel"]').hide().html(getStrRes("cancel"));if(s.find("button[data-btype]").each(function(){let n=$(this);n.data("fnclick")?n.click(n.data("fnclick")):n.data("fnclick",n[0].click)}),h=[],v=null,!SGAString.isNullOrWhitespace(r)&&(a=r.split("|"),a.length>0)){for(y=0;y<a.length;y++)h.push(s.find('button[data-btype="'+a[y]+'"]'));a.includes("ok")?v=function(){l.focus()}:a.includes("yes")&&(v=function(){p.focus()})}c.attr("class","modal-header");switch(i.toLowerCase()){case"err":case"error":c.addClass("bg-danger text-white");h.length===0&&h.push(l);break;case"ques":case"question":c.addClass("bg-primary text-white");h.length===0&&h.push(p,w);break;case"succ":case"success":c.addClass("bg-success text-white");h.length===0&&h.push(l);break;case"warn":case"warning":c.addClass("bg-warning text-dark");h.length===0&&h.push(l);break;case"info":case"information":default:c.addClass("bg-primary text-white");h.length===0&&h.push(l)}h.length===0?b.hide():h.forEach(function(n){n.show()});p.off("click").on("click",function(n){if(u&&u(n)===!1)return!1;SGACommon.hideDlg(s)});w.off("click").on("click",function(n){if(f&&f(n)===!1)return!1;SGACommon.hideDlg(s)});l.off("click").on("click",function(n){if(e&&e(n)===!1)return!1;SGACommon.hideDlg(s)});k.off("click").on("click",function(n){if(o&&o(n)===!1)return!1;SGACommon.hideDlg(s)});return{$dlg:s,fnOnShown:v}},setBtnText:function(n,t){return SGADialog.getDlg().find('button[data-btype="'+n+'"]').html(t),this},show:function(n,t,i,r,u,f,e,o){let s=SGADialog.initDlg(n,t,i,r,u,f,e,o);return SGACommon.showDlg(s.$dlg,!1,s.fnOnShown),this},showInternalErr:function(n){return SGADialog.show(getStrRes("internal_error"),n,"err","ok"),this},showModal:function(n,t,i,r,u,f,e,o){let s=SGADialog.initDlg(n,t,i,r,u,f,e,o);return SGACommon.showDlg(s.$dlg,!0,s.fnOnShown),this}}),SGADlgProg=Object.freeze({getDlg:function(){return $("#sgaDlgProg")},getProgBar:function(){return SGADlgProg.getDlg().find("div.progress-bar")},hide:function(){return SGACommon.hideDlg(SGADlgProg.getDlg()),this},hideBtn:function(){return SGADlgProg.getDlg().find(".modal-header").hide(),this},setLabel:function(n){return SGADlgProg.getDlg().find(".modal-body > .text-label").html(SGAString.coalesceNullOrWhitespace(n,"")),this},setProgress:function(n,t,i){let r=SGADlgProg.getDlg();if(SGACommon.isNullOrUndefined(t)?t=SGANumber.tryParseFloat(r.data("min"),0):r.data("min",t),SGACommon.isNullOrUndefined(i)?i=SGANumber.tryParseFloat(r.data("max"),100):r.data("max",i),i!==0){let r=Math.round((t+n)*100/i);SGADlgProg.getProgBar().width(r+"%").removeClass("indeterminate")}return this},show:function(n,t,i){let r=SGADlgProg.getDlg(),u=SGADlgProg.getProgBar();return SGACommon.isNullOrUndefined(n)?(n=t=i=0,u.addClass("indeterminate")):u.removeClass("indeterminate"),r.data("progress",n).data("min",t).data("max",i),i!==0&&SGADlgProg.setProgress(n),SGACommon.showDlg(r),this},showBtn:function(){return SGADlgProg.getDlg().find(".modal-header").show(),this}});$(document).ready(function(){let t=$(".provider"),n=!1;if($(".main-menu li[data-id]").mouseenter(function(){n=!0;$(".top-menu").hide();let t=SGANumber.tryParseInt($(this).data("id"),-1);if(t!==-1){let i=$('.top-menu[data-id="'+t+'"]');SGAArray.isNullOrEmpty(i)&&(i=$('<div class="top-menu" data-id="'+t+'">   <div class="row">       <div class="col-12">           <div class="load-status"><\/div>           <button type="button" class="btn btn-robotic btn-pill btn-primary btn-refresh">'+getStrRes("refresh")+"<\/button>       <\/div>   <\/div><\/div>").mouseenter(function(){n=!0}).mouseleave(function(){n=!1;$(this).hide()}),$(".top-menu-container").append(i),updateTopMenu(i,i.find(".btn-refresh").click(function(){updateTopMenu(i,$(this),t,!0)}),t,!1));i.show()}}).mouseleave(function(){n=!1;setTimeout(function(){n||$(".top-menu").hide()},250)}),$(".btn-left").click(function(){event.preventDefault();$(".main-menu .inner").animate({scrollLeft:"-=450px"})}),$(".btn-right").click(function(){event.preventDefault();$(".main-menu .inner").animate({scrollLeft:"+=450px"})}),!SGAArray.isNullOrEmpty(t)){let n=document.querySelector(".provider"),i=new IntersectionObserver(function(r){r.forEach(function(r){r.isIntersecting&&(SGAAjax.post("/Shared/GetListMenuGroupProviderLogos",null,null,function(n){if(n.ErrCode===0){let i=n.Recs,r="";SGAArray.isNullOrEmpty(Object.keys(i))||(Object.entries(i).forEach(function([n,t]){let i="";for(let n=0;n<t.length;n++){let r=t[n],u=r.LogoUrl,f=r.DisplayName;i+=SGAString.isNullOrWhitespace(u)?"<span>"+f+"<\/span>":SGAHtmlRender.renderImage(u,r.AltText,r.LogoTitle)}r+='<div class="container"><div class="row"><span>'+n+'<\/span><\/div><div class="row">'+i+"<\/div><\/div>"}),t.append(r))}else $(".provider-title").remove()},function(){$(".provider-title").remove()}),i.unobserve(n))})},{threshold:.1});i.observe(n)}})