!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.JSPlugin=void 0;var o=function(){function t(t,e){for(var n=0;n=Math.pow(u,2)?i:0);var c=a+(f%u===u-1?n:0),d=s+(f+u>=Math.pow(u,2)?i:0);l+='
';if("Rect"===t){e+="",e+=""+this[E].m_szVideoFormat+"roi",e+=""+this[E].m_iHorizontalResolution+""+this[E].m_iVerticalResolution+"",e+=""+this[E].m_szDisplayMode+""+this[E].getMaxShapeSupport()+"",e+="";for(var n=this[E].getShapesInfoByType("Rect"),i=0,r=n.length;i",e+=""+Math.round(o[3][0]*this[E].m_iHorizontalResolution/this[E].m_iCanvasWidth)+""+(this[E].m_iVerticalResolution-Math.round(o[3][1]*this[E].m_iVerticalResolution/this[E].m_iCanvasHeight))+"",e+=""+Math.round(o[2][0]*this[E].m_iHorizontalResolution/this[E].m_iCanvasWidth)+""+(this[E].m_iVerticalResolution-Math.round(o[2][1]*this[E].m_iVerticalResolution/this[E].m_iCanvasHeight))+"",e+=""+Math.round(o[1][0]*this[E].m_iHorizontalResolution/this[E].m_iCanvasWidth)+""+(this[E].m_iVerticalResolution-Math.round(o[1][1]*this[E].m_iVerticalResolution/this[E].m_iCanvasHeight))+"",e+=""+Math.round(o[0][0]*this[E].m_iHorizontalResolution/this[E].m_iCanvasWidth)+""+(this[E].m_iVerticalResolution-Math.round(o[0][1]*this[E].m_iVerticalResolution/this[E].m_iCanvasHeight))+"",e+=""}e+="",e+=""}else if("Grid"===t){var a=this[E].getShapesInfoByType("Grid")[0];e+="PALgrid",e+=""+a.iGridRowNum+""+a.iGridColNum+"",e+="transparent",e+=""+a.szGridMap+""}return e}},{key:"JS_SetDrawStatus",value:function(t){return this[E]?(this[E].setDrawStatus(t),0):-1}},{key:"JS_ClearRegion",value:function(){if(!this[E])return-1;var t=this[E].getShapesInfoByType("Grid");return t.length>0?this[E].clearShapeByType("Grid"):this[E].clearAllShape(),0}},{key:"JS_GetTextOverlay",value:function(){if(!this[E])return"";var t='';t+="",t+=""+this[E].m_iHorizontalResolution+"",t+=""+this[E].m_iVerticalResolution+"";for(var e="",n="",i="",r=this[E].getShapesInfoByType("RectOSD"),o=0,a=r.length;o"+s.szDateStyle+"",e+=""+s.szClockType+"",e+=""+s.szDisplayWeek+"",e+=""+s.szEnabled+"",e+=""+u+""+l+""):"overlay-ch"===s.szOSDType?(n+=""+s.szEnabled+"",n+=""+s.szText+"",n+=""+u+""+l+""):"overlay-text"===s.szOSDType&&(i+=""+s.szId+""+s.szEnabled+"",i+=""+s.szText+"",i+=""+u+""+l+"")}return t+=e,t+=n,t+="",t+=i,t+="",t+=""}},{key:"JS_SetTextOverlay",value:function(t){var e=a.oTool.parseXmlFromStr(t);if(this[E].clearShapeByType("RectOSD"),(0,h.default)(e).find("OSD").length>0){if(this[E].setDrawStyle("#ff0000","#343434",.7),this[E].m_iHorizontalResolution=parseInt((0,h.default)(e).find("videoResolutionWidth").eq(0).text(),10),this[E].m_iVerticalResolution=parseInt((0,h.default)(e).find("videoResolutionHeight").eq(0).text(),10),(0,h.default)(e).find("channelNameOverlay").length>0){var n=(0,h.default)(e).find("channelNameOverlay").eq(0),i=(0,h.default)(n).find("ChannelName").eq(0).text(),r=(0,h.default)(n).find("enabled").eq(0).text(),o=Math.round((0,h.default)(n).find("positionX").eq(0).text())*this[E].m_iCanvasWidth/this[E].m_iHorizontalResolution,s=Math.round((0,h.default)(n).find("positionY").eq(0).text())*this[E].m_iCanvasHeight/this[E].m_iVerticalResolution;this[E].addOSDShape(i,r,o,s,{szOSDType:"overlay-ch"})}if((0,h.default)(e).find("DateTimeOverlay").length>0){var u=(0,h.default)(e).find("DateTimeOverlay").eq(0),l=(0,h.default)(u).find("enabled").eq(0).text(),f=(0,h.default)(u).find("Type").eq(0).text()||(0,h.default)(u).find("type").eq(0).text(),c=(0,h.default)(u).find("displayWeek").eq(0).text(),d=(0,h.default)(u).find("clockType").eq(0).text(),y="",m="";switch("true"===c&&(m="week"),d="24hour"===d?"":"AM/PM",f){case"0":y="YYYY-MM-DD "+m+" hh:mm:ss "+d;break;case"1":y="MM-DD-YYYY "+m+" hh:mm:ss "+d;break;case"2":y="CHR-YYYY-MM-DD "+m+" hh:mm:ss "+d;break;case"3":y="CHR-MM-DD-YYYY "+m+" hh:mm:ss "+d;break;case"4":y="DD-MM-YYYY "+m+" hh:mm:ss "+d;break;case"5":y="CHR-DD-MM-YYYY "+m+" hh:mm:ss "+d}var v=Math.round((0,h.default)(u).find("positionX").eq(0).text())*this[E].m_iCanvasWidth/this[E].m_iHorizontalResolution,g=Math.round((0,h.default)(u).find("positionY").eq(0).text())*this[E].m_iCanvasHeight/this[E].m_iVerticalResolution;this[E].addOSDShape(y,l,v,g,{szOSDType:"overlay-date",szDateStyle:f,szDisplayWeek:c,szClockType:d})}(0,h.default)(e).find("TextOverlayList").length>0&&(0,h.default)(e).find("TextOverlayList").eq(0).find("TextOverlay").each(function(){var t=(0,h.default)(this).find("displayText").eq(0).text(),e=(0,h.default)(this).find("enabled").eq(0).text(),n=(0,h.default)(this).find("id").eq(0).text(),i=Math.round((0,h.default)(this).find("positionX").eq(0).text())*p[E].m_iCanvasWidth/p[E].m_iHorizontalResolution,r=Math.round((0,h.default)(this).find("positionY").eq(0).text())*p[E].m_iCanvasHeight/p[E].m_iVerticalResolution;p[E].addOSDShape(t,e,i,r,{szOSDType:"overlay-text",szId:n})})}return 0}},{key:"JS_ClearSnapInfo",value:function(){return this[E]?(this[E].clearAllShape(),0):-1}},{key:"JS_SetSnapPolygonInfo",value:function(t){this[E].setShapeType("Polygon"),this[E].setMaxShapeSupport(20),this[E].setDrawStyle("#FFFF00","#FFFF00",.1);var e=a.oTool.parseXmlFromStr(t),n=this[E].getAllShapesInfo(),i=n.length;if(i>0)for(var r=0;r0&&(0,h.default)(e).find("SnapPolygonList").eq(0).find("SnapPolygon").each(function(){var t=(0,h.default)(e).find("id").eq(0).text(),n=parseInt((0,h.default)(e).find("polygonType").eq(0).text(),10),i=(0,h.default)(e).find("Tips").eq(0).text()||(0,h.default)(e).find("tips").eq(0).text(),r=parseInt((0,h.default)(e).find("MinClosed").eq(0).text(),10),o=parseInt((0,h.default)(e).find("PointNumMax").eq(0).text(),10),a=parseInt((0,h.default)(e).find("EditType").eq(0).text(),10)||0,u="true"===(0,h.default)(e).find("isClosed").eq(0).text(),l="rgb("+(0,h.default)(e).find("r").eq(0).text()+", "+(0,h.default)(e).find("g").eq(0).text()+", "+(0,h.default)(e).find("b").eq(0).text()+")",f=l,c=.1,d=[];(0,h.default)(e).find("pointList").eq(0).find("point").each(function(t){d[t]=[],d[t][0]=Math.round((0,h.default)(this).find("x").eq(0).text()*p[E].m_iCanvasWidth),d[t][1]=Math.round((0,h.default)(this).find("y").eq(0).text()*p[E].m_iCanvasHeight)}),d.length>0?(s.push({szId:t,iPolygonType:n,iMinClosed:r,iMaxPointNum:o,iEditType:a,aPoint:d,bClosed:u,szTips:i,szDrawColor:l,szFillColor:f,iTranslucent:c}),p[E].setDrawStatus(!1)):(p[E].setCurrentShapeInfo({szId:t,szTips:i,iMinClosed:r,iMaxPointNum:o,iPolygonType:n}),p[E].setDrawStatus(!0))}),s.length>0&&this[E].setShapesInfoByType("Polygon",s),0}},{key:"JS_GetSnapPolygonInfo",value:function(){for(var t="",e=this[E].getShapesInfoByType("Polygon"),n=0,i=e.length;n",t+=""+r.szId+"",t+=""+r.iPolygonType+"",t+="";var o=r.szDrawColor.substring(4,r.szDrawColor.length-1).split(",");t+=""+o[0]+"",t+=""+o[1]+"",t+=""+o[2]+"",t+="",t+=""+r.szTips+"",t+=""+r.bClosed+"";var a=r.aPoint;t+="";for(var s=0,u=a.length;s"+(a[s][0]/this[E].m_iCanvasWidth).toFixed(6)+""+(a[s][1]/this[E].m_iCanvasHeight).toFixed(6)+"";t+="",t+=""}return t+=""}},{key:"JS_SetSnapDrawMode",value:function(){return this[E]?(this[E].setDrawMutiShapeOneTime(!1),0):-1}},{key:"JS_SetSnapLineInfo",value:function(t){this[E].setShapeType("Line"),this[E].setMaxShapeSupport(20),this[E].setDrawStyle("#FFFF00","#FFFF00",.1);var e=a.oTool.parseXmlFromStr(t),n=this[E].getAllShapesInfo(),i=n.length;if(i>0)for(var r=0;r0&&(0,h.default)(e).find("SnapLineList").eq(0).find("SnapLine").each(function(){var t=(0,h.default)(e).find("id").eq(0).text(),n=parseInt((0,h.default)(e).find("LineTypeEx").eq(0).text(),10),i=parseInt((0,h.default)(e).find("CustomType").text(),10)||0,r=(0,h.default)(e).find("Tips").eq(0).text()||(0,h.default)(e).find("tips").eq(0).text(),o="rgb("+(0,h.default)(e).find("r").eq(0).text()+", "+(0,h.default)(e).find("g").eq(0).text()+", "+(0,h.default)(e).find("b").eq(0).text()+")",a=o,u=[];u[0]=[],u[1]=[],u[0][0]=Math.round((0,h.default)(e).find("StartPos").eq(0).find("x").eq(0).text()*p[E].m_iCanvasWidth),u[0][1]=Math.round((0,h.default)(e).find("StartPos").eq(0).find("y").eq(0).text()*p[E].m_iCanvasHeight),u[1][0]=Math.round((0,h.default)(e).find("EndPos").eq(0).find("x").eq(0).text()*p[E].m_iCanvasWidth),u[1][1]=Math.round((0,h.default)(e).find("EndPos").eq(0).find("y").eq(0).text()*p[E].m_iCanvasHeight),u.length>0&&(s.push({szId:t,iLineType:n,aPoint:u,szTips:r,iDirection:i,szDrawColor:o,szFillColor:a}),p[E].setDrawStatus(!1))}),s.length>0&&this[E].setShapesInfoByType("Line",s),0}},{key:"JS_GetSnapLineInfo",value:function(){for(var t="",e=this[E].getShapesInfoByType("Line"),n=0,i=e.length;n",t+=""+e[n].szId+"",t+=""+e[n].iLineType+"",t+="000",t+=""+e[n].szTips+"";var r=e[n].aPoint;t+=""+(r[0][0]/p[E].m_iCanvasWidth).toFixed(6)+""+(r[0][1]/p[E].m_iCanvasHeight).toFixed(6)+"",t+=""+(r[1][0]/p[E].m_iCanvasWidth).toFixed(6)+""+(r[1][1]/p[E].m_iCanvasHeight).toFixed(6)+"",t+="false",t+="2552550",t+=""}return t+=""}},{key:"JS_FullScreenDisplay",value:function(t){if(t){this[A]=t;var e=(0,h.default)("#"+p[T].szId).get(0);e.requestFullScreen?e.requestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}}},{key:"JS_StartDownload",value:function(t,e,n,i){var r=(0,h.default)(a.oTool.parseXmlFromStr(i)).find("playbackURI").eq(0).text(),o=t.replace("download","downloadEx")+"?playbackURI="+r,s=".mp4";t.indexOf("picture/Streaming/tracks")>0&&(o=t,s=".jpg");var u=o.indexOf("&name=")+6,l=o.indexOf("&size=");return n=o.substring(u,l),(0,h.default)("body").append('
  • '),(0,h.default)("#jsplugin_download_li").trigger("click"),(0,h.default)("#jsplugin_download_a").remove(),0}},{key:"JS_Resize",value:function(t,e){this[A]?(t=(0,h.default)(window).width(),e=(0,h.default)(window).height(),(0,h.default)("#"+this[T].szId).css({width:t,height:e}),this[A]=!1):(0,h.default)("#"+this[T].szId).css({width:t,height:e}),this[T].iWidth=t,this[T].iHeight=e,c(),p[O]&&(t=(0,h.default)(window).width(),e=(0,h.default)(window).height(),p[O].css({width:t,height:e}),p[O].find("canvas").attr("width",t-2),p[O].find("canvas").attr("height",e-2),p[O]=null),this[E].resizeCanvas()}},{key:"JS_WndCreate",value:function(t,n,i){e(n,i),this[E].updateCanvas("canvas_draw0"),this[E].clearAllShape(),0===t?(0,h.default)("#"+this[T].szId).hide():(0,h.default)("#"+this[T].szId).show(),p.EventCallback.windowEventSelect(0)}},{key:"JS_ExportDeviceConfig",value:function(t){return(0,h.default)("body").append('
  • '),(0,h.default)("#jsplugin_download_li").trigger("click"),(0,h.default)("#jsplugin_download_a").remove(),0}},{key:"JS_OpenFileBrowser",value:function(t,e,n,i,r){p[z]=null;var o=window.document.createElement("input");o.type="file","bmp"===e.toLowerCase()&&(o.accept="image/bmp"),0===t&&o.setAttribute("webkitdirectory",""),o.addEventListener("change",function(){1===t?(p[z]=o.files[0],n[i]=o.files[0].name,r&&r.$digest(function(){n[i]=o.files[0].name})):0===t&&(p[z]=o.files)});var a=document.createEvent("MouseEvents");a.initEvent("click",!0,!0),o.dispatchEvent(a)}},{key:"JS_UploadFile",value:function(t,e,n,i){var r=0,o=new XMLHttpRequest;return o.onreadystatechange=function(){4===o.readyState&&200!==o.status&&(r=-1)},o.open("put",t,!1),o.setRequestHeader("Content-Type",i),o.send(p[z]),r}},{key:"JS_StartAsynUpload",value:function(t){var e=new XMLHttpRequest;return e.onreadystatechange=function(){4===e.readyState&&(p[F]=e.responseText)},e.open("put",t,!0),e.send(p[z]),0}},{key:"JS_StopAsynUpload",value:function(){p[z]=null,p[F]=""}},{key:"JS_GetUploadErrorInfo",value:function(){return"string"==typeof p[F]&&p[F].length>0?p[F]:""}},{key:"JS_StartUpgradeEx",value:function(t,e){var n=new Promise(function(n,i){if(!t)return i(),y;if(!e)return i(),y;p[F]=0;var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status)p[F]=100,n();else{p[F]=1;var t=a.oTool.parseXmlFromStr(r.responseText);"lowPrivilege"===(0,h.default)(t).find("subStatusCode").text()?i(403):i()}},r.open("put",t,!0),r.send(p[z]),p[B]=e,setTimeout(function(){n()},3e3); });return n}},{key:"JS_UpgradeStatus",value:function(){return 100===p[F]?0:p[F]}},{key:"JS_UpgradeProgress",value:function(){var t=0,e=new XMLHttpRequest;return e.onreadystatechange=function(){4===e.readyState&&200===e.status&&(t=parseInt((0,h.default)(a.oTool.parseXmlFromStr(e.responseText)).find("percent").text(),10))},e.open("get",p[B],!1),e.send(null),100===p[F]?100:t}},{key:"JS_StopUpgrade",value:function(){return p[z]=null,0}},{key:"JS_ExportDeviceLog",value:function(t,e){function n(t){a.push(t);var e=t.slice("");if(/^[\u4e00-\u9fa5]/.test(t))for(var n=0;n<30-2*e.length;n++)a.push(" ");else for(var i=0;i<30-e.length;i++)a.push(" ")}e="Log.txt";var i=[],r=[];i=i.concat((0,h.default)(t).find("searchMatchItem").toArray());for(var o=0;o0&&e-1 in t)}function l(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function f(t,e,n){return St.isFunction(e)?St.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?St.grep(t,function(t){return t===e!==n}):"string"!=typeof e?St.grep(t,function(t){return ht.call(e,t)>-1!==n}):Rt.test(e)?St.filter(e,t,n):(e=St.filter(e,t),St.grep(t,function(t){return ht.call(e,t)>-1!==n&&1===t.nodeType}))}function c(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function h(t){var e={};return St.each(t.match(Ft)||[],function(t,n){e[n]=!0}),e}function d(t){return t}function p(t){throw t}function y(t,e,n,i){var r;try{t&&St.isFunction(r=t.promise)?r.call(t).done(e).fail(n):t&&St.isFunction(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function m(){st.removeEventListener("DOMContentLoaded",m),o.removeEventListener("load",m),St.ready()}function v(){this.expando=St.expando+v.uid++}function g(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Wt.test(t)?JSON.parse(t):t)}function b(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Ut,"-$&").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n=g(n)}catch(t){}jt.set(t,e,n)}else n=void 0;return n}function S(t,e,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return St.css(t,e,"")},u=s(),l=n&&n[3]||(St.cssNumber[e]?"":"px"),f=(St.cssNumber[e]||"px"!==l&&+u)&&Vt.exec(St.css(t,e));if(f&&f[3]!==l){l=l||f[3],n=n||[],f=+u||1;do o=o||".5",f/=o,St.style(t,e,f+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(f=+f||+u||0,r=n[1]?f+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=f,i.end=r)),r}function w(t){var e,n=t.ownerDocument,i=t.nodeName,r=$t[i];return r?r:(e=n.body.appendChild(n.createElement(i)),r=St.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),$t[i]=r,r)}function _(t,e){for(var n,i,r=[],o=0,a=t.length;o-1)r&&r.push(o);else if(l=St.contains(o.ownerDocument,o),a=P(c.appendChild(o),"script"),l&&x(a),n)for(f=0;o=a[f++];)Qt.test(o.type||"")&&n.push(o);return c}function T(){return!0}function k(){return!1}function D(){try{return st.activeElement}catch(t){}}function M(t,e,i,r,o,a){var s,u;if("object"===("undefined"==typeof e?"undefined":n(e))){"string"!=typeof i&&(r=r||i,i=void 0);for(u in e)M(t,u,i,r,e[u],a);return t}if(null==r&&null==o?(o=i,r=i=void 0):null==o&&("string"==typeof i?(o=r,r=void 0):(o=r,r=i,i=void 0)),o===!1)o=k;else if(!o)return t;return 1===a&&(s=o,o=function(t){return St().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=St.guid++)),t.each(function(){St.event.add(this,e,o,r,i)})}function R(t,e){return l(t,"table")&&l(11!==e.nodeType?e:e.firstChild,"tr")?St(">tbody",t)[0]||t:t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function I(t){var e=le.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function A(t,e){var n,i,r,o,a,s,u,l;if(1===e.nodeType){if(Ht.hasData(t)&&(o=Ht.access(t),a=Ht.set(e,o),l=o.events)){delete a.handle,a.events={};for(r in l)for(n=0,i=l[r].length;n1&&"string"==typeof p&&!gt.checkClone&&ue.test(p))return t.each(function(r){var o=t.eq(r);y&&(e[0]=p.call(this,r,o.html())),z(o,e,n,i)});if(h&&(r=C(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=St.map(P(r,"script"),E),u=a.length;c=0&&nP.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[L]=!0,t}function r(t){var e=A.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)P.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return function(e){return"form"in e?e.parentNode&&e.disabled===!1?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&xt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function f(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function d(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var r=0,o=n.length;r-1&&(i[l]=!(a[l]=c))}}else b=v(b===a?b.splice(p,b.length):b),o?o(null,a,b,u):Z.apply(a,b)})}function b(t){for(var e,n,i,r=t.length,o=P.relative[t[0].type],a=o||P.relative[" "],s=o?1:0,u=p(function(t){return t===e},a,!0),l=p(function(t){return tt(e,t)>-1},a,!0),f=[function(t,n,i){var r=!o&&(i||n!==M)||((e=n).nodeType?u(t,n,i):l(t,n,i));return e=null,r}];s1&&y(f),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,s0,o=t.length>0,a=function(i,a,s,u,l){var f,c,h,d=0,p="0",y=i&&[],m=[],g=M,b=i||o&&P.find.TAG("*",l),S=j+=null==g?1:Math.random()||.1,w=b.length;for(l&&(M=a===A||a||l);p!==w&&null!=(f=b[p]);p++){if(o&&f){for(c=0,a||f.ownerDocument===A||(I(f),s=!z);h=t[c++];)if(h(f,a||A,s)){u.push(f);break}l&&(j=S)}r&&((f=!h&&f)&&d--,i&&y.push(f))}if(d+=p,r&&p!==d){for(c=0;h=n[c++];)h(y,m,a,s);if(i){if(d>0)for(;p--;)y[p]||m[p]||(m[p]=$.call(u));m=v(m)}Z.apply(u,m),l&&!i&&m.length>0&&d+n.length>1&&e.uniqueSort(u)}return l&&(j=S,M=g),y};return r?i(a):a}var w,_,P,x,C,T,k,D,M,R,E,I,A,O,z,F,B,q,N,L="sizzle"+1*new Date,H=t.document,j=0,W=0,U=n(),G=n(),V=n(),X=function(t,e){return t===e&&(E=!0),0},Y={}.hasOwnProperty,J=[],$=J.pop,K=J.push,Z=J.push,Q=J.slice,tt=function(t,e){for(var n=0,i=t.length;n+~]|"+nt+")"+nt+"*"),ft=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ct=new RegExp(ot),ht=new RegExp("^"+it+"$"),dt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,yt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),St=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},wt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,_t=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Pt=function(){I()},xt=p(function(t){return t.disabled===!0&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Z.apply(J=Q.call(H.childNodes),H.childNodes),J[H.childNodes.length].nodeType}catch(t){Z={apply:J.length?function(t,e){K.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}_=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:H;return i!==A&&9===i.nodeType&&i.documentElement?(A=i,O=A.documentElement,z=!C(A),H!==A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Pt,!1):n.attachEvent&&n.attachEvent("onunload",Pt)),_.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=r(function(t){return t.appendChild(A.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=mt.test(A.getElementsByClassName),_.getById=r(function(t){return O.appendChild(t).id=L,!A.getElementsByName||!A.getElementsByName(L).length}),_.getById?(P.filter.ID=function(t){var e=t.replace(bt,St);return function(t){return t.getAttribute("id")===e}},P.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&z){var n=e.getElementById(t);return n?[n]:[]}}):(P.filter.ID=function(t){var e=t.replace(bt,St);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},P.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&z){var n,i,r,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),P.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},P.find.CLASS=_.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&z)return e.getElementsByClassName(t)},B=[],F=[],(_.qsa=mt.test(A.querySelectorAll))&&(r(function(t){O.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||F.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+L+"-]").length||F.push("~="),t.querySelectorAll(":checked").length||F.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||F.push(".#.+[+~]")}),r(function(t){t.innerHTML="";var e=A.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&F.push("name"+nt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),F.push(",.*:")})),(_.matchesSelector=mt.test(q=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(t){_.disconnectedMatch=q.call(t,"*"),q.call(t,"[s!='']:x"),B.push("!=",ot)}),F=F.length&&new RegExp(F.join("|")),B=B.length&&new RegExp(B.join("|")),e=mt.test(O.compareDocumentPosition),N=e||mt.test(O.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t===A||t.ownerDocument===H&&N(H,t)?-1:e===A||e.ownerDocument===H&&N(H,e)?1:R?tt(R,t)-tt(R,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],u=[e];if(!r||!o)return t===A?-1:e===A?1:r?-1:o?1:R?tt(R,t)-tt(R,e):0;if(r===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[i]===u[i];)i++;return i?a(s[i],u[i]):s[i]===H?-1:u[i]===H?1:0},A):A},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==A&&I(t),n=n.replace(ft,"='$1']"),_.matchesSelector&&z&&!V[n+" "]&&(!B||!B.test(n))&&(!F||!F.test(n)))try{var i=q.call(t,n);if(i||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==A&&I(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==A&&I(t);var n=P.attrHandle[e.toLowerCase()],i=n&&Y.call(P.attrHandle,e.toLowerCase())?n(t,e,!z):void 0;return void 0!==i?i:_.attributes||!z?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(wt,_t)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(E=!_.detectDuplicates,R=!_.sortStable&&t.slice(0),t.sort(X),E){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return R=null,t},x=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=x(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=x(e);return n},P=e.selectors={cacheLength:50,createPseudo:i,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,St),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,St),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=T(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,St).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(at," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,u){var l,f,c,h,d,p,y=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),g=!u&&!s,b=!1;if(m){if(o){for(;y;){for(h=e;h=h[y];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=y="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&g){for(h=m,c=h[L]||(h[L]={}),f=c[h.uniqueID]||(c[h.uniqueID]={}),l=f[t]||[],d=l[0]===j&&l[1],b=d&&l[2],h=d&&m.childNodes[d];h=++d&&h&&h[y]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){f[t]=[j,d,b];break}}else if(g&&(h=e,c=h[L]||(h[L]={}),f=c[h.uniqueID]||(c[h.uniqueID]={}),l=f[t]||[],d=l[0]===j&&l[1],b=d),b===!1)for(;(h=++d&&h&&h[y]||(b=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(g&&(c=h[L]||(h[L]={}),f=c[h.uniqueID]||(c[h.uniqueID]={}),f[t]=[j,b]),h!==e)););return b-=r,b===i||b%i===0&&b/i>=0}}},PSEUDO:function(t,n){var r,o=P.pseudos[t]||P.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(n):o.length>1?(r=[t,t,"",n],P.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)i=tt(t,r[a]),t[i]=!(e[i]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=k(t.replace(st,"$1"));return r[L]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(bt,St),function(e){return(e.textContent||e.innerText||x(e)).indexOf(t)>-1}}),lang:i(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,St).toLowerCase(),function(e){var n;do if(n=z?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!P.pseudos.empty(t)},header:function(t){return yt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:f(function(){return[0]}),last:f(function(t,e){return[e-1]}),eq:f(function(t,e,n){return[n<0?n+e:n]}),even:f(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:f(function(t,e,n){for(var i=n<0?n+e:n;++i2&&"ID"===(a=o[0]).type&&9===e.nodeType&&z&&P.relative[o[1].type]){if(e=(P.find.ID(a.matches[0].replace(bt,St),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=dt.needsContext.test(t)?0:o.length;r--&&(a=o[r],!P.relative[s=a.type]);)if((u=P.find[s])&&(i=u(a.matches[0].replace(bt,St),gt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&d(o),!t)return Z.apply(n,i),n;break}}return(l||k(t,f))(i,e,!z,n,!e||gt.test(t)&&c(e.parentNode)||e),n},_.sortStable=L.split("").sort(X).join("")===L,_.detectDuplicates=!!E,I(),_.sortDetached=r(function(t){return 1&t.compareDocumentPosition(A.createElement("fieldset"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(o);St.find=Ct,St.expr=Ct.selectors,St.expr[":"]=St.expr.pseudos,St.uniqueSort=St.unique=Ct.uniqueSort,St.text=Ct.getText,St.isXMLDoc=Ct.isXML,St.contains=Ct.contains,St.escapeSelector=Ct.escape;var Tt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&St(t).is(n))break;i.push(t)}return i},kt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Dt=St.expr.match.needsContext,Mt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Rt=/^.[^:#\[\.,]*$/;St.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?St.find.matchesSelector(i,t)?[i]:[]:St.find.matches(t,St.grep(e,function(t){return 1===t.nodeType}))},St.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(St(t).filter(function(){for(e=0;e1?St.uniqueSort(n):n},filter:function(t){return this.pushStack(f(this,t||[],!1))},not:function(t){return this.pushStack(f(this,t||[],!0))},is:function(t){return!!f(this,"string"==typeof t&&Dt.test(t)?St(t):t||[],!1).length}});var Et,It=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,At=St.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Et,"string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:It.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof St?e[0]:e,St.merge(this,St.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:st,!0)),Mt.test(i[1])&&St.isPlainObject(e))for(i in e)St.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=st.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):St.isFunction(t)?void 0!==n.ready?n.ready(t):t(St):St.makeArray(t,this)};At.prototype=St.fn,Et=St(st);var Ot=/^(?:parents|prev(?:Until|All))/,zt={children:!0,contents:!0,next:!0,prev:!0};St.fn.extend({has:function(t){var e=St(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&St.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?St.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?ht.call(St(t),this[0]):ht.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(St.uniqueSort(St.merge(this.get(),St(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),St.each({parent:function t(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return Tt(t,"parentNode")},parentsUntil:function(t,e,n){return Tt(t,"parentNode",n)},next:function(t){return c(t,"nextSibling")},prev:function(t){return c(t,"previousSibling")},nextAll:function(t){return Tt(t,"nextSibling")},prevAll:function(t){return Tt(t,"previousSibling")},nextUntil:function(t,e,n){return Tt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Tt(t,"previousSibling",n)},siblings:function(t){return kt((t.parentNode||{}).firstChild,t)},children:function(t){return kt(t.firstChild)},contents:function(t){return l(t,"iframe")?t.contentDocument:(l(t,"template")&&(t=t.content||t),St.merge([],t.childNodes))}},function(t,e){St.fn[t]=function(n,i){var r=St.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=St.filter(i,r)),this.length>1&&(zt[t]||St.uniqueSort(r),Ot.test(t)&&r.reverse()),this.pushStack(r)}});var Ft=/[^\x20\t\r\n\f]+/g;St.Callbacks=function(t){t="string"==typeof t?h(t):St.extend({},t);var e,n,i,r,o=[],a=[],s=-1,u=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?St.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},St.extend({Deferred:function(t){var e=[["notify","progress",St.Callbacks("memory"),St.Callbacks("memory"),2],["resolve","done",St.Callbacks("once memory"),St.Callbacks("once memory"),0,"resolved"],["reject","fail",St.Callbacks("once memory"),St.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return St.Deferred(function(n){St.each(e,function(e,i){var r=St.isFunction(t[i[4]])&&t[i[4]];a[i[1]](function(){var t=r&&r.apply(this,arguments);t&&St.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,i,r){function a(t,e,i,r){return function(){var u=this,l=arguments,f=function(){var o,f;if(!(t=s&&(i!==p&&(u=void 0,l=[n]),e.rejectWith(u,l))}};t?c():(St.Deferred.getStackHook&&(c.stackTrace=St.Deferred.getStackHook()),o.setTimeout(c))}}var s=0;return St.Deferred(function(n){e[0][3].add(a(0,n,St.isFunction(r)?r:d,n.notifyWith)),e[1][3].add(a(0,n,St.isFunction(t)?t:d)),e[2][3].add(a(0,n,St.isFunction(i)?i:p))}).promise()},promise:function(t){return null!=t?St.extend(t,r):r}},a={};return St.each(e,function(t,n){var o=n[2],s=n[5];r[n[1]]=o.add,s&&o.add(function(){i=s},e[3-t][2].disable,e[0][2].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){var e=arguments.length,n=e,i=Array(n),r=lt.call(arguments),o=St.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?lt.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(y(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||St.isFunction(r[n]&&r[n].then)))return o.then();for(;n--;)y(r[n],a(n),o.reject);return o.promise()}});var Bt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;St.Deferred.exceptionHook=function(t,e){o.console&&o.console.warn&&t&&Bt.test(t.name)&&o.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},St.readyException=function(t){o.setTimeout(function(){throw t})};var qt=St.Deferred();St.fn.ready=function(t){return qt.then(t).catch(function(t){St.readyException(t)}),this},St.extend({isReady:!1,readyWait:1,ready:function(t){(t===!0?--St.readyWait:St.isReady)||(St.isReady=!0,t!==!0&&--St.readyWait>0||qt.resolveWith(st,[St]))}}),St.ready.then=qt.then,"complete"===st.readyState||"loading"!==st.readyState&&!st.documentElement.doScroll?o.setTimeout(St.ready):(st.addEventListener("DOMContentLoaded",m),o.addEventListener("load",m));var Nt=function t(e,n,i,r,o,a,s){var u=0,l=e.length,f=null==i;if("object"===St.type(i)){o=!0;for(u in i)t(e,n,u,i[u],!0,a,s)}else if(void 0!==r&&(o=!0,St.isFunction(r)||(s=!0),f&&(s?(n.call(e,r),n=null):(f=n,n=function(t,e,n){return f.call(St(t),n)})),n))for(;u1,null,!0)},removeData:function(t){return this.each(function(){jt.remove(this,t)})}}),St.extend({queue:function t(e,n,i){var t;if(e)return n=(n||"fx")+"queue",t=Ht.get(e,n),i&&(!t||Array.isArray(i)?t=Ht.access(e,n,St.makeArray(i)):t.push(i)),t||[]},dequeue:function(t,e){e=e||"fx";var n=St.queue(t,e),i=n.length,r=n.shift(),o=St._queueHooks(t,e),a=function(){St.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Ht.get(t,n)||Ht.access(t,n,{empty:St.Callbacks("once memory").add(function(){Ht.remove(t,[e+"queue",n])})})}}),St.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Qt=/^$|\/(?:java|ecma)script/i,te={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""] };te.optgroup=te.option,te.tbody=te.tfoot=te.colgroup=te.caption=te.thead,te.th=te.td;var ee=/<|&#?\w+;/;!function(){var t=st.createDocumentFragment(),e=t.appendChild(st.createElement("div")),n=st.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),gt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",gt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var ne=st.documentElement,ie=/^key/,re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=/^([^.]*)(?:\.(.+)|)/;St.event={global:{},add:function(t,e,n,i,r){var o,a,s,u,l,f,c,h,d,p,y,m=Ht.get(t);if(m)for(n.handler&&(o=n,n=o.handler,r=o.selector),r&&St.find.matchesSelector(ne,r),n.guid||(n.guid=St.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return"undefined"!=typeof St&&St.event.triggered!==e.type?St.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Ft)||[""],l=e.length;l--;)s=oe.exec(e[l])||[],d=y=s[1],p=(s[2]||"").split(".").sort(),d&&(c=St.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=St.event.special[d]||{},f=St.extend({type:d,origType:y,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&St.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=u[d])||(h=u[d]=[],h.delegateCount=0,c.setup&&c.setup.call(t,i,p,a)!==!1||t.addEventListener&&t.addEventListener(d,a)),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,f):h.push(f),St.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,a,s,u,l,f,c,h,d,p,y,m=Ht.hasData(t)&&Ht.get(t);if(m&&(u=m.events)){for(e=(e||"").match(Ft)||[""],l=e.length;l--;)if(s=oe.exec(e[l])||[],d=y=s[1],p=(s[2]||"").split(".").sort(),d){for(c=St.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,h=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)f=h[o],!r&&y!==f.origType||n&&n.guid!==f.guid||s&&!s.test(f.namespace)||i&&i!==f.selector&&("**"!==i||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,c.remove&&c.remove.call(t,f));a&&!h.length&&(c.teardown&&c.teardown.call(t,p,m.handle)!==!1||St.removeEvent(t,d,m.handle),delete u[d])}else for(d in u)St.event.remove(t,d+e[l],n,i,!0);St.isEmptyObject(u)&&Ht.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=St.event.fix(t),u=new Array(arguments.length),l=(Ht.get(this,"events")||{})[s.type]||[],f=St.event.special[s.type]||{};for(u[0]=s,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||l.disabled!==!0)){for(o=[],a={},n=0;n-1:St.find(r,this,null,[l]).length),a[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/\s*$/g;St.extend({htmlPrefilter:function(t){return t.replace(ae,"<$1>")},clone:function t(e,n,i){var r,o,a,s,t=e.cloneNode(!0),u=St.contains(e.ownerDocument,e);if(!(gt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||St.isXMLDoc(e)))for(s=P(t),a=P(e),r=0,o=a.length;r0&&x(s,!u&&P(e,"script")),t},cleanData:function(t){for(var e,n,i,r=St.event.special,o=0;void 0!==(n=t[o]);o++)if(Lt(n)){if(e=n[Ht.expando]){if(e.events)for(i in e.events)r[i]?St.event.remove(n,i):St.removeEvent(n,i,e.handle);n[Ht.expando]=void 0}n[jt.expando]&&(n[jt.expando]=void 0)}}}),St.fn.extend({detach:function(t){return F(this,t,!0)},remove:function(t){return F(this,t)},text:function(t){return Nt(this,function(t){return void 0===t?St.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return z(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=R(this,t);e.appendChild(t)}})},prepend:function(){return z(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=R(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return z(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return z(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(St.cleanData(P(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return St.clone(this,t,e)})},html:function(t){return Nt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!se.test(t)&&!te[(Zt.exec(t)||["",""])[1].toLowerCase()]){t=St.htmlPrefilter(t);try{for(;n1)}}),St.Tween=U,U.prototype={constructor:U,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||St.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(St.cssNumber[n]?"":"px")},cur:function(){var t=U.propHooks[this.prop];return t&&t.get?t.get(this):U.propHooks._default.get(this)},run:function(t){var e,n=U.propHooks[this.prop];return this.options.duration?this.pos=e=St.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):U.propHooks._default.set(this),this}},U.prototype.init.prototype=U.prototype,U.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=St.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){St.fx.step[t.prop]?St.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[St.cssProps[t.prop]]&&!St.cssHooks[t.prop]?t.elem[t.prop]=t.now:St.style(t.elem,t.prop,t.now+t.unit)}}},U.propHooks.scrollTop=U.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},St.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},St.fx=U.prototype.init,St.fx.step={};var Se,we,_e=/^(?:toggle|show|hide)$/,Pe=/queueHooks$/;St.Animation=St.extend(K,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return S(n.elem,t,Vt.exec(e),n),n}]},tweener:function(t,e){St.isFunction(t)?(e=t,t=["*"]):t=t.match(Ft);for(var n,i=0,r=t.length;i1)},removeAttr:function(t){return this.each(function(){St.removeAttr(this,t)})}}),St.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?St.prop(t,e,n):(1===o&&St.isXMLDoc(t)||(r=St.attrHooks[e.toLowerCase()]||(St.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void St.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=St.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!gt.radioValue&&"radio"===e&&l(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Ft);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return e===!1?St.removeAttr(t,n):t.setAttribute(n,n),n}},St.each(St.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ce[e]||St.find.attr;Ce[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=Ce[a],Ce[a]=r,r=null!=n(t,e,i)?a:null,Ce[a]=o),r}});var Te=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;St.fn.extend({prop:function(t,e){return Nt(this,St.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[St.propFix[t]||t]})}}),St.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&St.isXMLDoc(t)||(e=St.propFix[e]||e,r=St.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=St.find.attr(t,"tabindex");return e?parseInt(e,10):Te.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),gt.optSelected||(St.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),St.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){St.propFix[this.toLowerCase()]=this}),St.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,u=0;if(St.isFunction(t))return this.each(function(e){St(this).addClass(t.call(this,e,Q(this)))});if("string"==typeof t&&t)for(e=t.match(Ft)||[];n=this[u++];)if(r=Q(n),i=1===n.nodeType&&" "+Z(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=Z(i),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,u=0;if(St.isFunction(t))return this.each(function(e){St(this).removeClass(t.call(this,e,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Ft)||[];n=this[u++];)if(r=Q(n),i=1===n.nodeType&&" "+Z(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=Z(i),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var i="undefined"==typeof t?"undefined":n(t);return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):St.isFunction(t)?this.each(function(n){St(this).toggleClass(t.call(this,n,Q(this),e),e)}):this.each(function(){var e,n,r,o;if("string"===i)for(n=0,r=St(this),o=t.match(Ft)||[];e=o[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||(e=Q(this),e&&Ht.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Ht.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Z(Q(n))+" ").indexOf(e)>-1)return!0;return!1}});var De=/\r/g;St.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=St.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,St(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=St.map(r,function(t){return null==t?"":t+""})),e=St.valHooks[this.type]||St.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=St.valHooks[r.type]||St.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(De,""):null==n?"":n)}}}),St.extend({valHooks:{option:{get:function(t){var e=St.find.attr(t,"value");return null!=e?e:Z(St.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:r.length;for(i=o<0?u:a?o:0;i-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),St.each(["radio","checkbox"],function(){St.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=St.inArray(St(t).val(),e)>-1}},gt.checkOn||(St.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Me=/^(?:focusinfocus|focusoutblur)$/;St.extend(St.event,{trigger:function(t,e,i,r){var a,s,u,l,f,c,h,d=[i||st],p=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if(s=u=i=i||st,3!==i.nodeType&&8!==i.nodeType&&!Me.test(p+St.event.triggered)&&(p.indexOf(".")>-1&&(y=p.split("."),p=y.shift(),y.sort()),f=p.indexOf(":")<0&&"on"+p,t=t[St.expando]?t:new St.Event(p,"object"===("undefined"==typeof t?"undefined":n(t))&&t),t.isTrigger=r?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:St.makeArray(e,[t]),h=St.event.special[p]||{},r||!h.trigger||h.trigger.apply(i,e)!==!1)){if(!r&&!h.noBubble&&!St.isWindow(i)){for(l=h.delegateType||p,Me.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),u=s;u===(i.ownerDocument||st)&&d.push(u.defaultView||u.parentWindow||o)}for(a=0;(s=d[a++])&&!t.isPropagationStopped();)t.type=a>1?l:h.bindType||p,c=(Ht.get(s,"events")||{})[t.type]&&Ht.get(s,"handle"),c&&c.apply(s,e),c=f&&s[f],c&&c.apply&&Lt(s)&&(t.result=c.apply(s,e),t.result===!1&&t.preventDefault());return t.type=p,r||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),e)!==!1||!Lt(i)||f&&St.isFunction(i[p])&&!St.isWindow(i)&&(u=i[f],u&&(i[f]=null),St.event.triggered=p,i[p](),St.event.triggered=void 0,u&&(i[f]=u)),t.result}},simulate:function(t,e,n){var i=St.extend(new St.Event,n,{type:t,isSimulated:!0});St.event.trigger(i,null,e)}}),St.fn.extend({trigger:function(t,e){return this.each(function(){St.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return St.event.trigger(t,e,n,!0)}}),St.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){St.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),St.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),gt.focusin="onfocusin"in o,gt.focusin||St.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){St.event.simulate(e,t.target,St.event.fix(t))};St.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Ht.access(i,e);r||i.addEventListener(t,n,!0),Ht.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Ht.access(i,e)-1;r?Ht.access(i,e,r):(i.removeEventListener(t,n,!0),Ht.remove(i,e))}}});var Re=o.location,Ee=St.now(),Ie=/\?/;St.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new o.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||St.error("Invalid XML: "+t),e};var Ae=/\[\]$/,Oe=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;St.param=function(t,e){var n,i=[],r=function(t,e){var n=St.isFunction(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!St.isPlainObject(t))St.each(t,function(){r(this.name,this.value)});else for(n in t)tt(n,t[n],e,r);return i.join("&")},St.fn.extend({serialize:function(){return St.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=St.prop(this,"elements");return t?St.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!St(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Kt.test(t))}).map(function(t,e){var n=St(this).val();return null==n?null:Array.isArray(n)?St.map(n,function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}}):{name:e.name,value:n.replace(Oe,"\r\n")}}).get()}});var Be=/%20/g,qe=/#.*$/,Ne=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,je=/^(?:GET|HEAD)$/,We=/^\/\//,Ue={},Ge={},Ve="*/".concat("*"),Xe=st.createElement("a");Xe.href=Re.href,St.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Re.href,type:"GET",isLocal:He.test(Re.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":St.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?it(it(t,St.ajaxSettings),e):it(St.ajaxSettings,t)},ajaxPrefilter:et(Ue),ajaxTransport:et(Ge),ajax:function(t,e){function i(t,e,n,i){var u,f,d,p,w,_=e;c||(c=!0,l&&o.clearTimeout(l),r=void 0,s=i||"",x.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(p=rt(y,x,n)),p=ot(y,p,x,u),u?(y.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(St.lastModified[a]=w),w=x.getResponseHeader("etag"),w&&(St.etag[a]=w)),204===t||"HEAD"===y.type?_="nocontent":304===t?_="notmodified":(_=p.state,f=p.data,d=p.error,u=!d)):(d=_,!t&&_||(_="error",t<0&&(t=0))),x.status=t,x.statusText=(e||_)+"",u?g.resolveWith(m,[f,_,x]):g.rejectWith(m,[x,_,d]),x.statusCode(S),S=void 0,h&&v.trigger(u?"ajaxSuccess":"ajaxError",[x,y,u?f:d]),b.fireWith(m,[x,_]),h&&(v.trigger("ajaxComplete",[x,y]),--St.active||St.event.trigger("ajaxStop")))}"object"===("undefined"==typeof t?"undefined":n(t))&&(e=t,t=void 0),e=e||{};var r,a,s,u,l,f,c,h,d,p,y=St.ajaxSetup({},e),m=y.context||y,v=y.context&&(m.nodeType||m.jquery)?St(m):St.event,g=St.Deferred(),b=St.Callbacks("once memory"),S=y.statusCode||{},w={},_={},P="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(c){if(!u)for(u={};e=Le.exec(s);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(y.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)x.always(t[x.status]);else for(e in t)S[e]=[S[e],t[e]];return this},abort:function(t){var e=t||P;return r&&r.abort(e),i(0,e),this}};if(g.promise(x),y.url=((t||y.url||Re.href)+"").replace(We,Re.protocol+"//"),y.type=e.method||e.type||y.method||y.type,y.dataTypes=(y.dataType||"*").toLowerCase().match(Ft)||[""],null==y.crossDomain){f=st.createElement("a");try{f.href=y.url,f.href=f.href,y.crossDomain=Xe.protocol+"//"+Xe.host!=f.protocol+"//"+f.host}catch(t){y.crossDomain=!0}}if(y.data&&y.processData&&"string"!=typeof y.data&&(y.data=St.param(y.data,y.traditional)),nt(Ue,y,e,x),c)return x;h=St.event&&y.global,h&&0===St.active++&&St.event.trigger("ajaxStart"),y.type=y.type.toUpperCase(),y.hasContent=!je.test(y.type),a=y.url.replace(qe,""),y.hasContent?y.data&&y.processData&&0===(y.contentType||"").indexOf("application/x-www-form-urlencoded")&&(y.data=y.data.replace(Be,"+")):(p=y.url.slice(a.length),y.data&&(a+=(Ie.test(a)?"&":"?")+y.data,delete y.data),y.cache===!1&&(a=a.replace(Ne,"$1"),p=(Ie.test(a)?"&":"?")+"_="+Ee++ +p),y.url=a+p),y.ifModified&&(St.lastModified[a]&&x.setRequestHeader("If-Modified-Since",St.lastModified[a]),St.etag[a]&&x.setRequestHeader("If-None-Match",St.etag[a])),(y.data&&y.hasContent&&y.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",y.contentType),x.setRequestHeader("Accept",y.dataTypes[0]&&y.accepts[y.dataTypes[0]]?y.accepts[y.dataTypes[0]]+("*"!==y.dataTypes[0]?", "+Ve+"; q=0.01":""):y.accepts["*"]);for(d in y.headers)x.setRequestHeader(d,y.headers[d]);if(y.beforeSend&&(y.beforeSend.call(m,x,y)===!1||c))return x.abort();if(P="abort",b.add(y.complete),x.done(y.success),x.fail(y.error),r=nt(Ge,y,e,x)){if(x.readyState=1,h&&v.trigger("ajaxSend",[x,y]),c)return x;y.async&&y.timeout>0&&(l=o.setTimeout(function(){x.abort("timeout")},y.timeout));try{c=!1,r.send(w,i)}catch(t){if(c)throw t;i(-1,t)}}else i(-1,"No Transport");return x},getJSON:function(t,e,n){return St.get(t,e,n,"json")},getScript:function(t,e){return St.get(t,void 0,e,"script")}}),St.each(["get","post"],function(t,e){St[e]=function(t,n,i,r){return St.isFunction(n)&&(r=r||i,i=n,n=void 0),St.ajax(St.extend({url:t,type:e,dataType:r,data:n,success:i},St.isPlainObject(t)&&t))}}),St._evalUrl=function(t){return St.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},St.fn.extend({wrapAll:function(t){var e;return this[0]&&(St.isFunction(t)&&(t=t.call(this[0])),e=St(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return St.isFunction(t)?this.each(function(e){St(this).wrapInner(t.call(this,e))}):this.each(function(){var e=St(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=St.isFunction(t);return this.each(function(n){ St(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){St(this).replaceWith(this.childNodes)}),this}}),St.expr.pseudos.hidden=function(t){return!St.expr.pseudos.visible(t)},St.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},St.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(t){}};var Ye={0:200,1223:204},Je=St.ajaxSettings.xhr();gt.cors=!!Je&&"withCredentials"in Je,gt.ajax=Je=!!Je,St.ajaxTransport(function(t){var e,n;if(gt.cors||Je&&!t.crossDomain)return{send:function(i,r){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Ye[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),St.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),St.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return St.globalEval(t),t}}}),St.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),St.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=St("