!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(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={exports:{},id:t,loaded:!1};return n[t].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}return r.m=n,r.c=i,r.p="",r(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSPlugin=void 0;var i,M=function(){function i(t,e){for(var n=0;nthis[p].iMaxSplit&&(this[p].iCurrentSplit=this[p].iMaxSplit),this[r]=1,this[s]=-1,this[y]=this[p].iMaxSplit*this[p].iMaxSplit,this[h]="",this[m]=!1,this[S]=null,this[b]=null,this[w]="",this[_]="",this[P]=-1,this[C]=null,c=new I.StorageManager(this[p].szBasePath+"/transform"),d=(0,F.default)("#"+v[p].szId),this[f]=[];for(var n=0;nv[y]-1?n():v[f][o].bFrameForward?n():(v[f][o].bPlay&&v.JS_Stop(o),v[f][o].bFirstFrame=!1,v[f][o].iDecodeType=0,v[f][o].oPlayCtrl?D(i,r,o,a,s,e,n):v[f][o].oPlayCtrl=new z.JSPlayCtrl(v[p].szBasePath+"/playctrl/",function(t){"loaded"!==t.cmd||v[f][o].bLoad?"OnebyOne"===t.cmd?t.status?v[f][o].bPause&&(u.resume(v[f][o].szStreamUUID),v[f][o].bPause=!1):v[f][o].bPause||(u.pause(v[f][o].szStreamUUID),v[f][o].bPause=!0):"GetFrameData"===t.cmd&&v.EventCallback.pluginErrorHandler(o,2001):D(i,r,o,a,s,e,n)},o))})}},{key:"JS_Seek",value:function(n,i,r){return new Promise(function(t,e){n<0||n>v[y]-1?e():v[f][n].bPlay?u.seek(v[f][n].szStreamUUID,i,r).then(function(){t()},function(t){e(t)}):e()})}},{key:"JS_GetSdkVersion",value:function(){return v[f][0].oPlayCtrl.PlayM4_GetSdkVersion()}},{key:"JS_DestroyWorker",value:function(){v[f].forEach(function(t){t.bPlay&&t.oPlayCtrl.PlayM4_CloseStream(),t.oPlayCtrl&&(t.oPlayCtrl.PlayM4_Destroy(),t.oPlayCtrl=null,t.bLoad=!1)})}},{key:"JS_Stop",value:function(n){return new Promise(function(t,e){n<0||n>v[y]-1?e():(v[f][n].szStorageUUID&&v.JS_StopSave(n),v[f][n].bEZoom&&v.JS_DisableZoom(n),v[s]===n&&(v[s]=-1),u.stop(v[f][n].szStreamUUID).then(function(){v[f][n].bPlay=!1,v[f][n].bFrameForward=!1,v[f][n].iRate=1,v[f][n].oPlayCtrl&&(v[f][n].oPlayCtrl.PlayM4_Stop(),v[f][n].oPlayCtrl.PlayM4_CloseStream()),setTimeout(function(){t()},500)},function(){setTimeout(function(){e()},500)}))})}},{key:"JS_Pause",value:function(n){return new Promise(function(t,e){n<0||n>v[y]-1?e():v[f][n].bPlay?v[f][n].bFrameForward?e():u.pause(v[f][n].szStreamUUID).then(function(){v[f][n].oPlayCtrl.PlayM4_Pause(!0),v[f][n].bPause=!0,t()},function(t){e(t)}):e()})}},{key:"JS_Resume",value:function(n){return new Promise(function(t,e){n<0||n>v[y]-1?e():v[f][n].bPlay?u.resume(v[f][n].szStreamUUID).then(function(){1!==v[r]&&(v[f][n].iRate=v[r],u.setPlayRate(v[f][n].szStreamUUID,v[f][n].iRate),v[f][n].oPlayCtrl.PlayM4_PlayRate(v[f][n].iRate),1v[y]-1?e():v[f][n].bPlay&&"playback"===v[f][n].szPlayType&&-8!==v[f][n].iRate?v[f][n].bFrameForward?e():(v[f][n].iRate<0&&-8v[y]-1?e():v[f][n].bPlay&&"playback"===v[f][n].szPlayType?v[f][n].bFrameForward?e():8!==v[f][n].iRate?(-2===v[f][n].iRate?v[f][n].iRate=1:v[f][n].iRate<-2?v[f][n].iRate/=2:0v[y]-1?n():v[f][t].szStreamUUID?u.transmission(v[f][t].szStreamUUID,i).then(function(t){e(t)},function(t){n(t)}):n()})}},{key:"JS_FrameForward",value:function(n){return new Promise(function(t,e){n<0||n>v[y]-1?e():v[f][n].bPlay?(1!==v[f][n].iRate?(v[f][n].iRate=1,v[r]=v[f][n].iRate,u.setPlayRate(v[f][n].szStreamUUID,v[f][n].iRate).then(function(){v[f][n].oPlayCtrl.PlayM4_PlayRate(v[f][n].iRate),v[f][n].oPlayCtrl.PlayM4_SetDecodeFrameType(0),v[f][n].oPlayCtrl.PlayM4_OneByOne(),v[f][n].bFrameForward=!0},function(t){e(t)})):(v[f][n].oPlayCtrl.PlayM4_PlayRate(v[f][n].iRate),v[f][n].oPlayCtrl.PlayM4_SetDecodeFrameType(0),v[f][n].oPlayCtrl.PlayM4_OneByOne(),v[f][n].bFrameForward=!0),t()):e()})}},{key:"JS_GetOSDTime",value:function(e){return new Promise(function(n,t){e<0||e>v[y]-1?t(o):v[f][e].bPlay&&0===v[f][e].oPlayCtrl.PlayM4_GetOSDTime(function(t){var e=Date.parse(t.replace(/-/g," "))/1e3;n(e)})||t(o)})}},{key:"JS_OpenSound",value:function(t){return t<0||t>v[y]-1?o:v[f][t].bPlay?v[s]===t?o:(-1!==v[s]&&v[f][v[s]].oPlayCtrl.PlayM4_StopSound(),0!==v[f][t].oPlayCtrl.PlayM4_PlaySound(t)?o:(v[s]=t,0)):o}},{key:"JS_GetVolume",value:function(t,e){v[f][t].oPlayCtrl.PlayM4_GetVolume(function(t){e(t)})}},{key:"JS_SetVolume",value:function(t,e){return 0!==v[f][t].oPlayCtrl.PlayM4_SetVolume(e)?o:0}},{key:"JS_CloseSound",value:function(){var t=v[s];return t<0||t>v[y]-1?o:v[f][t].bPlay?0!==v[f][t].oPlayCtrl.PlayM4_StopSound()?o:(v[s]=-1,0):o}},{key:"JS_EnableZoom",value:function(e){return e<0||e>v[y]-1?o:v[f][e].bPlay?((0,F.default)(".draw-window").unbind(),this[g]=new A.ESCanvas("canvas_draw"+e),this[g].setShapeType("Rect"),this[g].setDrawStyle("#ff0000","",0),this[g].setDrawStatus(!0,function(t){t.startPos&&t.endPos&&(t.startPos[0]>t.endPos[0]?v[f][e].oPlayCtrl.PlayM4_SetDisplayRegion(null,!1):v[f][e].oPlayCtrl.PlayM4_SetDisplayRegion({left:t.startPos[0],top:t.startPos[1],right:t.endPos[0],bottom:t.endPos[1]},!0))}),v[f][e].bEZoom=!0,0):o}},{key:"JS_DisableZoom",value:function(t){return t<0||t>v[y]-1?o:v[f][t].bPlay?(this[g].setDrawStatus(!1),0!==this[f][t].oPlayCtrl.PlayM4_SetDisplayRegion(null,!1)?o:(this[f][t].bEZoom=!1,0)):o}},{key:"JS_Enable3DZoom",value:function(t,e){return t<0||t>v[y]-1?o:v[f][t].bPlay?((0,F.default)(".draw-window").unbind(),this[C]=e,this[g]=new A.ESCanvas("canvas_draw"+t),this[g].setShapeType("Rect"),this[g].setDrawStyle("#ff0000","",0),this[g].setDrawStatus(!0,function(t){e(t)}),v[f][t].b3DZoom=!0,0):o}},{key:"JS_Disable3DZoom",value:function(t){return t<0||t>v[y]-1?o:v[f][t].bPlay?(this[g].setDrawStatus(!1),this[f][t].b3DZoom=!1,0):o}},{key:"JS_CapturePictureData",value:function(t){return new Promise(function(e,n){t<0||t>v[y]-1?n():v[f][t].bPlay?v[f][t].oPlayCtrl.PlayM4_GetBMP(function(t){6===t?n(a):e(t)}):n()})}},{key:"JS_CapturePicture",value:function(t,i,r){return new Promise(function(e,n){t<0||t>v[y]-1?n():v[f][t].bPlay?(r||(r="JPEG"),"BMP"===r?v[f][t].oPlayCtrl.PlayM4_GetBMP(function(t){6===t?n(a):(R.oTool.downloadFile(t,i+".BMP"),e())}):"JPEG"===r&&v[f][t].oPlayCtrl.PlayM4_GetJPEG(function(t){6===t?n(a):(R.oTool.downloadFile(t,i+".jpeg"),e())})):n()})}},{key:"JS_StopRealPlayAll",value:function(){u.stopAll(),v[f].forEach(function(t,e){t.bPlay&&(t.szStorageUUID&&v.JS_StopSave(e),t.bEZoom&&v.JS_DisableZoom(e),t.oPlayCtrl.PlayM4_Stop(),t.oPlayCtrl.PlayM4_CloseStream()),t.bPlay=!1}),v[s]=-1}},{key:"JS_StartSave",value:function(r,o){return new Promise(function(e,t){if(r<0||r>v[y]-1)t();else if(v[f][r].bPlay){o.indexOf(".mp4")<0&&(o+=".mp4");var n=v[f][r].aHead,i=0;"playback"===v[f][r].szPlayType&&(i=1),c.startRecord(o,n,2,i,{cbEventHandler:function(t){v.EventCallback.pluginErrorHandler(r,t)}}).then(function(t){v[f][r].szStorageUUID=t,e()},function(){t()})}else t()})}},{key:"JS_StopSave",value:function(n){return new Promise(function(t,e){v[f][n].szStorageUUID?c.stopRecord(v[f][n].szStorageUUID).then(function(){v[f][n].szStorageUUID="",t()},function(t){e(t)}):e()})}},{key:"JS_GetLocalConfig",value:function(){return""}},{key:"JS_SetLocalConfig",value:function(){return!0}},{key:"JS_SetGridInfo",value:function(t){if(null==t)return-1;var e="#ff0000";return t.style&&t.style.drawColor&&(e=t.style.drawColor),this[g].setDrawStyle(e),this[g].setShapesInfoByType("Grid",[{szGridMap:t.gridMap,iGridColNum:t.gridColNum,iGridRowNum:t.gridRowNum}]),0}},{key:"JS_GetGridInfo",value:function(){if(!this[g])return{};var t=this[g].getShapesInfoByType("Grid")[0];return t?{gridColNum:t.iGridColNum,gridRowNum:t.iGridRowNum,gridMap:t.szGridMap}:{iGridRowNum:18,iGridColNum:22,szGridMap:""}}},{key:"JS_SetDrawShapeInfo",value:function(t,e){if(void 0===t||""===t)return-1;this[g].setShapeType(t),e.style&&this[g].setDrawStyle(e.style.szDrawColor||"",e.style.szFillColor||"",e.style.iTranslucent||0),e.iMaxShapeSupport&&0';if("Rect"===t){e+="",e+=""+this[g].m_szVideoFormat+"roi",e+=""+this[g].m_iHorizontalResolution+""+this[g].m_iVerticalResolution+"",e+=""+this[g].m_szDisplayMode+""+this[g].getMaxShapeSupport()+"",e+="";for(var n=this[g].getShapesInfoByType("Rect"),i=0,r=n.length;i",e+=""+Math.round(o[3][0]*this[g].m_iHorizontalResolution/this[g].m_iCanvasWidth)+""+(this[g].m_iVerticalResolution-Math.round(o[3][1]*this[g].m_iVerticalResolution/this[g].m_iCanvasHeight))+"",e+=""+Math.round(o[2][0]*this[g].m_iHorizontalResolution/this[g].m_iCanvasWidth)+""+(this[g].m_iVerticalResolution-Math.round(o[2][1]*this[g].m_iVerticalResolution/this[g].m_iCanvasHeight))+"",e+=""+Math.round(o[1][0]*this[g].m_iHorizontalResolution/this[g].m_iCanvasWidth)+""+(this[g].m_iVerticalResolution-Math.round(o[1][1]*this[g].m_iVerticalResolution/this[g].m_iCanvasHeight))+"",e+=""+Math.round(o[0][0]*this[g].m_iHorizontalResolution/this[g].m_iCanvasWidth)+""+(this[g].m_iVerticalResolution-Math.round(o[0][1]*this[g].m_iVerticalResolution/this[g].m_iCanvasHeight))+"",e+=""}e+="",e+=""}else if("Grid"===t){var a=this[g].getShapesInfoByType("Grid")[0];a||(a={iGridRowNum:18,iGridColNum:22,szGridMap:""}),e+="PALgrid",e+=""+a.iGridRowNum+""+a.iGridColNum+"",e+="transparent",e+=""+a.szGridMap+""}return e}},{key:"JS_SetDrawStatus",value:function(t){return this[g]?(this[g].setDrawStatus(t),0):-1}},{key:"JS_ClearRegion",value:function(){return this[g]?(this[g].clearAllShape(),0):-1}},{key:"JS_GetTextOverlay",value:function(){if(!this[g])return"";var t='';t+="",t+=""+this[g].m_iHorizontalResolution+"",t+=""+this[g].m_iVerticalResolution+"";for(var e="",n="",i="",r=this[g].getShapesInfoByType("RectOSD"),o=0,a=r.length;o"+s.szDateStyle+"",e+=""+s.szClockType+"",e+=""+s.szDisplayWeek+"",e+=""+s.szEnabled+"",e+=""+l+""+u+""):"overlay-ch"===s.szOSDType?(n+=""+s.szEnabled+"",n+=""+s.szText+"",n+=""+l+""+u+""):"overlay-text"===s.szOSDType&&(i+=""+s.szId+""+s.szEnabled+"",i+=""+s.szText+"",i+=""+l+""+u+"")}return t+=e,t+=n,t+="",t+=i,t+="",t+=""}},{key:"JS_SetTextOverlay",value:function(t){this[g].setMaxShapeSupport(20);var e=R.oTool.parseXmlFromStr(t);if(this[g].clearShapeByType("RectOSD"),0<(0,F.default)(e).find("OSD").length){if(this[g].setDrawStyle("#ff0000","#343434",.7),this[g].m_iHorizontalResolution=parseInt((0,F.default)(e).find("videoResolutionWidth").eq(0).text(),10),this[g].m_iVerticalResolution=parseInt((0,F.default)(e).find("videoResolutionHeight").eq(0).text(),10),0<(0,F.default)(e).find("channelNameOverlay").length){var n=(0,F.default)(e).find("channelNameOverlay").eq(0),i=(0,F.default)(n).find("ChannelName").eq(0).text(),r=(0,F.default)(n).find("enabled").eq(0).text(),o=Math.round((0,F.default)(n).find("positionX").eq(0).text())*this[g].m_iCanvasWidth/this[g].m_iHorizontalResolution,a=Math.round((0,F.default)(n).find("positionY").eq(0).text())*this[g].m_iCanvasHeight/this[g].m_iVerticalResolution;this[g].addOSDShape(i,r,o,a,{szOSDType:"overlay-ch"})}if(0<(0,F.default)(e).find("DateTimeOverlay").length){var s=(0,F.default)(e).find("DateTimeOverlay").eq(0),l=(0,F.default)(s).find("enabled").eq(0).text(),u=(0,F.default)(s).find("Type").eq(0).text()||(0,F.default)(s).find("type").eq(0).text(),c=(0,F.default)(s).find("displayWeek").eq(0).text(),f=(0,F.default)(s).find("clockType").eq(0).text(),h="",d="",p=new Date;switch("true"===c&&(d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][p.getDay()]),f="24hour"===f?"":"AM/PM",u){case"0":h="YYYY-MM-DD "+d+" hh:mm:ss "+f;break;case"1":h="MM-DD-YYYY "+d+" hh:mm:ss "+f;break;case"2":h="CHR-YYYY-MM-DD "+d+" hh:mm:ss "+f;break;case"3":h="CHR-MM-DD-YYYY "+d+" hh:mm:ss "+f;break;case"4":h="DD-MM-YYYY "+d+" hh:mm:ss "+f;break;case"5":h="CHR-DD-MM-YYYY "+d+" hh:mm:ss "+f}var y=Math.round((0,F.default)(s).find("positionX").eq(0).text())*this[g].m_iCanvasWidth/this[g].m_iHorizontalResolution,m=Math.round((0,F.default)(s).find("positionY").eq(0).text())*this[g].m_iCanvasHeight/this[g].m_iVerticalResolution;this[g].addOSDShape(h,l,y,m,{szOSDType:"overlay-date",szDateStyle:u,szDisplayWeek:c,szClockType:f})}0<(0,F.default)(e).find("TextOverlayList").length&&(0,F.default)(e).find("TextOverlayList").eq(0).find("TextOverlay").each(function(){var t=(0,F.default)(this).find("displayText").eq(0).text(),e=(0,F.default)(this).find("enabled").eq(0).text(),n=(0,F.default)(this).find("id").eq(0).text(),i=Math.round((0,F.default)(this).find("positionX").eq(0).text())*v[g].m_iCanvasWidth/v[g].m_iHorizontalResolution,r=Math.round((0,F.default)(this).find("positionY").eq(0).text())*v[g].m_iCanvasHeight/v[g].m_iVerticalResolution;v[g].addOSDShape(t,e,i,r,{szOSDType:"overlay-text",szId:n})})}return 0}},{key:"JS_ClearSnapInfo",value:function(t){return this[g]?(0===t?this[g].clearShapeByType("Rect"):1===t?this[g].clearShapeByType("Polygon"):2===t?this[g].clearShapeByType("Line"):3===t?(this[g].clearShapeByType("Rect"),this[g].clearShapeByType("Polygon")):this[g].clearAllShape(),0):-1}},{key:"JS_ClearTargetPolygon",value:function(t){var e=R.oTool.parseXmlFromStr(t),n=this[g].getAllShapesInfo(),i=n.length;if(0",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,l=a.length;s"+(a[s][0]/this[g].m_iCanvasWidth).toFixed(6)+""+(a[s][1]/this[g].m_iCanvasHeight).toFixed(6)+"";t+="",t+=""}return t+=""}},{key:"JS_SetSnapDrawMode",value:function(){return this[g]?(this[g].setDrawMutiShapeOneTime(!1),0):-1}},{key:"JS_SetSnapLineInfo",value:function(t){this[g].setShapeType("Line"),this[g].setMaxShapeSupport(20),this[g].setDrawStyle("#FFFF00","#FFFF00",.1);var s=R.oTool.parseXmlFromStr(t),e=this[g].getAllShapesInfo(),n=e.length;if(0",t+=""+e[n].szId+"",t+=""+e[n].iLineType+"",t+="00"+e[n].iArrowType+"",t+=""+e[n].szTips+"";var r=e[n].aPoint;t+=""+(r[0][0]/v[g].m_iCanvasWidth).toFixed(6)+""+(r[0][1]/v[g].m_iCanvasHeight).toFixed(6)+"",t+=""+(r[1][0]/v[g].m_iCanvasWidth).toFixed(6)+""+(r[1][1]/v[g].m_iCanvasHeight).toFixed(6)+"",t+="false",0"+(e[n].aCrossArrowPoint[0][0]/v[g].m_iCanvasWidth).toFixed(6)+"",t+=""+(e[n].aCrossArrowPoint[0][1]/v[g].m_iCanvasWidth).toFixed(6)+"",t+=""+(e[n].aCrossArrowPoint[1][0]/v[g].m_iCanvasWidth).toFixed(6)+"",t+=""+(e[n].aCrossArrowPoint[1][1]/v[g].m_iCanvasWidth).toFixed(6)+""),t+="false",t+=""+(e[n].szDrawColor.split(",")[0].split("(")[1]||"255")+""+(e[n].szDrawColor.split(",")[1]||"255")+""+(e[n].szDrawColor.split(",")[2].split(")")[0]||"0")+"",t+=""}return t+=""}},{key:"JS_FullScreenDisplay",value:function(t){if(t){this[m]=t;var e=(0,F.default)("#"+v[p].szId).get(0);e.requestFullScreen?e.requestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}}},{key:"JS_FullScreenSingle",value:function(t){if(v[f][t].bPlay){var e=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1,n=d.find(".parent-wnd").eq(0).children().eq(t).children().eq(0).get(0);if(e){if(d.find(".parent-wnd").eq(0).width()===(0,F.default)(window).width())return;document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}else n.requestFullScreen?n.requestFullScreen():n.webkitRequestFullScreen?n.webkitRequestFullScreen():n.mozRequestFullScreen&&n.mozRequestFullScreen(),v[S]=d.find(".parent-wnd").eq(0).children().eq(t).children().eq(0)}}},{key:"JS_StartDownload",value:function(t,e,n,i){var r=t+"?playbackURI="+(0,F.default)(R.oTool.parseXmlFromStr(i)).find("playbackURI").eq(0).text(),o=".mp4";0
  • '),(0,F.default)("#jsplugin_download_li").trigger("click"),(0,F.default)("#jsplugin_download_a").remove(),0}},{key:"JS_Resize",value:function(t,e){try{d=(0,F.default)("#"+v[p].szId),0
  • '),(0,F.default)("#jsplugin_download_li").trigger("click"),(0,F.default)("#jsplugin_download_a").remove(),0}},{key:"JS_OpenFileBrowser",value:function(t,e){var n=F.default.Deferred();v[b]=null;var i="",r=window.document.createElement("input");r.type="file","bmp"===e.toLowerCase()&&(r.accept="image/bmp"),0===t&&r.setAttribute("webkitdirectory",""),r.addEventListener("change",function(){1===t?(v[b]=r.files[0],i=r.files[0].name):0===t&&(v[b]=r.files),n.resolve(i)});var o=document.createEvent("MouseEvents");return o.initEvent("click",!0,!0),r.dispatchEvent(o),n}},{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(v[b]),r}},{key:"JS_StartAsynUpload",value:function(t){var e=new XMLHttpRequest;return e.onreadystatechange=function(){4===e.readyState&&(v[w]=e.responseText)},e.open("put",t,!0),e.send(v[b]),0}},{key:"JS_StopAsynUpload",value:function(){v[b]=null,v[w]=""}},{key:"JS_GetUploadErrorInfo",value:function(){return"string"==typeof v[w]&&0',c=0;c=Math.pow(l,2)?i:0);var f=a+(c%l==l-1?n:0),h=s+(c+l>=Math.pow(l,2)?i:0);u+='
    >>24&255,r[i++]=u>>>16&255,r[i++]=u>>>8&255,r[i++]=255&u;var c=a/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=255&c,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i++]=o>>>8|128,r[i++]=255&o;for(var f=t.node||p,h=0;h<6;++h)r[i+h]=f[h];return e||d(r)}},function(o,t){(function(t){"use strict";var e,n=t.crypto||t.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);e=function(){return n.getRandomValues(i),i}}if(!e){var r=new Array(16);e=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}o.exports=e}).call(t,function(){return this}())},function(t,e){"use strict";for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]}},function(t,e,n){"use strict";var a=n(5),s=n(6);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;++o)e[i+o]=r[o];return e||s(r)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function i(t,e){for(var n=0;n>>0).toString(16).toLocaleUpperCase().toString(16),n=e.length;n<8;n++)e="0"+e;for(var i=[0,0,0,0],r=0,o=e.length;r>=15;0<=--o;){var s=32767&this[t],l=this[t++]>>15,u=e*s+l*a;r=((s=a*s+((32767&u)<<15)+n[i]+(1073741823&r))>>>30)+(u>>>15)+e*l+(r>>>30),n[i++]=1073741823&s}return r},30):"Netscape"!=r?(y.prototype.am=function(t,e,n,i,r,o){for(;0<=--o;){var a=e*this[t++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},26):(y.prototype.am=function(t,e,n,i,r,o){var a=16383&e;for(e>>=14;0<=--o;){var s=16383&this[t],l=this[t++]>>14,u=e*s+l*a;r=((s=a*s+((16383&u)<<14)+n[i]+r)>>28)+(u>>14)+e*l,n[i++]=268435455&s}return r},28),y.prototype.DB=n,y.prototype.DM=(1<>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),t>>1!=0&&(n+=1),n}function S(t){this.m=t}function b(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function x(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function T(){}function k(t){return t}function D(t){this.r2=m(),this.q3=m(),y.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}S.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},S.prototype.revert=function(t){return t},S.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},S.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},S.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},b.prototype.convert=function(t){var e=m();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},b.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},b.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},y.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},y.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,0>r|s,s=(this[n]&o)<=this.t)e.t=0;else{var i=t%this.DB,r=this.DB-i,o=(1<>i;for(var a=n+1;a>i;0>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:0=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}0>this.F2:0),u=this.FV/l,c=(l=(1<>a)&&(i=!0,r=c(e));0<=o;)a>(a+=this.DB-t)):(e=this[o]>>(a-=t)&n,a<=0&&(a+=this.DB,--o)),02*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=m();return t.copyTo(e),this.reduce(e),e},D.prototype.revert=function(t){return t},D.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);0<=t.compareTo(this.m);)t.subTo(this.m,t)},D.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var M=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],R=67108864/M[M.length-1];function E(){}function z(){this.j=this.i=0,this.S=[]}y.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},y.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36=n&&(this.dMultiply(i),this.dAddOffset(a,0),a=o=0))}0t&&this.subTo(y.ONE.shiftLeft(t-1),this);else{var i=7&t;(n=[]).length=1+(t>>3),e.nextBytes(n),0>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=t.s}e.s=i<0?-1:0,0=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},y.prototype.multiplyLowerTo=function(t,e,n){var i,r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;0>1)&&(t=M.length);for(var r=m(),o=0;o>24},y.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},y.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},y.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(0>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(0=this.t?0!=this.s:0!=(this[e]&1<>r-l&u:(c=(t[f]&(1<>this.DB+r-l)),s=n;0==(1&c);)c>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),h)a[c].copyTo(o),h=!1;else{for(;1>>=1;return(t+n)/e},t},u=o.pow(l,6),a=o.pow(2,a),s=2*a,f(o.random(),r)}([],Math,256,0,52),E.prototype.nextBytes=function(t){var e;for(e=0;e>8&255,A[F++]^=t>>16&255,A[F++]^=t>>24&255,O<=F&&(F-=O)}if(null==A){var L;if(A=[],F=0,"Netscape"==r&&o<"5"&&window.crypto){var N=window.crypto.random(32);for(L=0;L>>8,A[F++]=255&L;F=0,B()}function q(){if(null==I){for(B(),(I=new z).init(A),F=0;F>16)+(e>>16)+(n>>16)<<16|65535&n}function g(t,e){return t>>>e|t<<32-e}return function(t){for(var e="",n=0;n<4*t.length;n++)e+="0123456789abcdef".charAt(t[n>>2]>>8*(3-n%4)+4&15)+"0123456789abcdef".charAt(t[n>>2]>>8*(3-n%4)&15);return e}(function(t,e){var n,i,r,o,a,s,l,u,c,f,h,d,p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],m=Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,c=0;c>>10,m[f-7]),g(m[f-15],7)^g(m[f-15],18)^m[f-15]>>>3),m[f-16]),h=v(v(v(v(u,g(a,6)^g(a,11)^g(a,25)),a&s^~a&l),p[f]),m[f]),d=v(g(n,2)^g(n,13)^g(n,22),n&i^n&r^i&r),u=l,l=s,s=a,a=v(o,h),o=r,r=i,i=n,n=v(h,d);y[0]=v(n,y[0]),y[1]=v(i,y[1]),y[2]=v(r,y[2]),y[3]=v(o,y[3]),y[4]=v(a,y[4]),y[5]=v(s,y[5]),y[6]=v(l,y[6]),y[7]=v(u,y[7])}return y}(function(t){for(var e=[],n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n>6|192):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128)),e+=String.fromCharCode(63&i|128))}return e}(t)),8*t.length))}(t)};var W=function(t){return function(t){function e(t,e){return t<>>32-e}function n(t){var e,n="";for(e=7;0<=e;e--)n+=(t>>>4*e&15).toString(16);return n}var i,r,o,a,s,l,u,c=Array(80),f=1732584193,h=4023233417,d=2562383102,p=271733878,y=3285377520;o=(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n>6|192):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128)),e+=String.fromCharCode(63&i|128))}return e}(t)).length;var m=[];for(i=0;i>>29),m.push(o<<3&4294967295),t=0;t>6|192):(n[--e]=63&r|128,n[--e]=r>>6&63|128,r>>12|224)}for(n[--e]=0,i=new H,r=[];2>3))?null:null==(t=this.doPublic(t))?null:0==(1&(t=t.toString(16)).length)?t:"0"+t},G.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);for(t=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(t)<0;)e=e.add(this.p);return e.subtract(t).multiply(this.coeff).mod(this.p).multiply(this.q).add(t)},G.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&0>1;this.e=parseInt(e,16);for(var r=new y(e,16);;){for(;this.p=new y(t-i,1,n),0!=this.p.subtract(y.ONE).gcd(r).compareTo(y.ONE)||!this.p.isProbablePrime(10););for(;this.q=new y(i,1,n),0!=this.q.subtract(y.ONE).gcd(r).compareTo(y.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}o=this.p.subtract(y.ONE);var a=this.q.subtract(y.ONE),s=o.multiply(a);if(0==s.gcd(r).compareTo(y.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(s),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},G.prototype.decrypt=function(t){return null==(t=this.doPrivate(U(t,16)))?null:function(t,e){for(var n=t.toByteArray(),i=0;i=n.length)return null;for(var r="";++i>3)};var V=[];V.sha1="3021300906052b0e03021a05000414",V.sha256="3031300d060960864801650304020105000420";var Y=[];function X(t,e,n){e/=4;t=(0,Y[n])(t),n="00"+V[n]+t,t="",e=e-4-n.length;for(var i=0;i>2&63),e=(3&n)<<4):1==o?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e|n>>4&15),e=(15&n)<<2):2==o&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e|n>>6&3),r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n)),3==(o+=1)&&(o=0);return 0>6-r&255)),o=e<<(r=r+2&7)&255);return i},K.b16to64=function(t){var e,n,i="";for(t.length%2==1&&(t="0"+t),e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&n)<<4));0<(3&i.length);)i+="=";return i},K.b64to16=function(t){var e,n,i="",r=0;for(e=0;e>2),n=3&v,1):1==r?(i+=c(n<<2|v>>4),n=15&v,2):2==r?(i+=c(n),i+=c(v>>2),n=3&v,3):(i+=c(n<<2|v>>4),i+=c(15&v),0));return 1==r&&(i+=c(n<<2)),i},K.string2bytes=function(t){for(var e=[],n=0;n>>32-o,e)}function n(t,e,n,i,r,o,a){return s((t=s(t,s(s(e&i|n&~i,r),a)))<>>32-o,e)}function i(t,e,n,i,r,o,a){return s((t=s(t,s(s(e^n^i,r),a)))<>>32-o,e)}function r(t,e,n,i,r,o,a){return s((t=s(t,s(s(n^(e|~i),r),a)))<>>32-o,e)}function o(t){var e,n="",i="";for(e=0;e<=3;e++)n+=(i="0"+(i=t>>>8*e&255).toString(16)).substr(i.length-2,2);return n}var a,l,u,c,f,h,d,p,y=function(t){for(var e,n=t.length,i=16*(((e=n+8)-e%64)/64+1),r=Array(i-1),o=0,a=0;a>>29,r}(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n>6|192):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128)),e+=String.fromCharCode(63&i|128))}return e}(t));for(f=1732584193,h=4023233417,d=2562383102,p=271733878,t=0;t>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else if(65535>>2]=n[r>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=s.ceil(e/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new l.init(n,e/2)}},u=o.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],i=0;i>>2]>>>24-i%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new l.init(n,e)}},c=o.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},f=n.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,n=e.words,i=e.sigBytes,r=this.blockSize,o=i/(4*r);if(t=(o=t?s.ceil(o):s.max((0|o)-this._minBufferSize,0))*r,i=s.min(4*t,i),t){for(var a=0;a>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;a<4&&r+.75*a>>6*(3-a)&63));if(e=i.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var e=t.length,n=this._map;(i=n.charAt(64))&&-1!=(i=t.indexOf(i))&&(e=i);for(var i=[],r=0,o=0;o>>6-o%4*2;i[r>>>2]|=(a|s)<<24-r%4*8,r++}return l.create(i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(o){function P(t,e,n,i,r,o,a){return((t=t+(e&n|~e&i)+r+a)<>>32-o)+e}function C(t,e,n,i,r,o,a){return((t=t+(e&i|n&~i)+r+a)<>>32-o)+e}function x(t,e,n,i,r,o,a){return((t=t+(e^n^i)+r+a)<>>32-o)+e}function T(t,e,n,i,r,o,a){return((t=t+(n^(e|~i))+r+a)<>>32-o)+e}for(var t=D,e=(i=t.lib).WordArray,n=i.Hasher,i=t.algo,k=[],r=0;r<64;r++)k[r]=4294967296*o.abs(o.sin(r+1))|0;i=i.MD5=n.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=t[a=e+n];t[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}n=this._hash.words;var r,o,a=t[e+0],s=(i=t[e+1],t[e+2]),l=t[e+3],u=t[e+4],c=t[e+5],f=t[e+6],h=t[e+7],d=t[e+8],p=t[e+9],y=t[e+10],m=t[e+11],v=t[e+12],g=t[e+13],S=t[e+14],b=t[e+15],w=n[0],_=T(_=T(_=T(_=T(_=x(_=x(_=x(_=x(_=C(_=C(_=C(_=C(_=P(_=P(_=P(_=P(_=n[1],o=P(o=n[2],r=P(r=n[3],w=P(w,_,o,r,a,7,k[0]),_,o,i,12,k[1]),w,_,s,17,k[2]),r,w,l,22,k[3]),o=P(o,r=P(r,w=P(w,_,o,r,u,7,k[4]),_,o,c,12,k[5]),w,_,f,17,k[6]),r,w,h,22,k[7]),o=P(o,r=P(r,w=P(w,_,o,r,d,7,k[8]),_,o,p,12,k[9]),w,_,y,17,k[10]),r,w,m,22,k[11]),o=P(o,r=P(r,w=P(w,_,o,r,v,7,k[12]),_,o,g,12,k[13]),w,_,S,17,k[14]),r,w,b,22,k[15]),o=C(o,r=C(r,w=C(w,_,o,r,i,5,k[16]),_,o,f,9,k[17]),w,_,m,14,k[18]),r,w,a,20,k[19]),o=C(o,r=C(r,w=C(w,_,o,r,c,5,k[20]),_,o,y,9,k[21]),w,_,b,14,k[22]),r,w,u,20,k[23]),o=C(o,r=C(r,w=C(w,_,o,r,p,5,k[24]),_,o,S,9,k[25]),w,_,l,14,k[26]),r,w,d,20,k[27]),o=C(o,r=C(r,w=C(w,_,o,r,g,5,k[28]),_,o,s,9,k[29]),w,_,h,14,k[30]),r,w,v,20,k[31]),o=x(o,r=x(r,w=x(w,_,o,r,c,4,k[32]),_,o,d,11,k[33]),w,_,m,16,k[34]),r,w,S,23,k[35]),o=x(o,r=x(r,w=x(w,_,o,r,i,4,k[36]),_,o,u,11,k[37]),w,_,h,16,k[38]),r,w,y,23,k[39]),o=x(o,r=x(r,w=x(w,_,o,r,g,4,k[40]),_,o,a,11,k[41]),w,_,l,16,k[42]),r,w,f,23,k[43]),o=x(o,r=x(r,w=x(w,_,o,r,p,4,k[44]),_,o,v,11,k[45]),w,_,b,16,k[46]),r,w,s,23,k[47]),o=T(o,r=T(r,w=T(w,_,o,r,a,6,k[48]),_,o,h,10,k[49]),w,_,S,15,k[50]),r,w,c,21,k[51]),o=T(o,r=T(r,w=T(w,_,o,r,v,6,k[52]),_,o,l,10,k[53]),w,_,y,15,k[54]),r,w,i,21,k[55]),o=T(o,r=T(r,w=T(w,_,o,r,d,6,k[56]),_,o,b,10,k[57]),w,_,f,15,k[58]),r,w,g,21,k[59]),o=T(o,r=T(r,w=T(w,_,o,r,u,6,k[60]),_,o,m,10,k[61]),w,_,s,15,k[62]),r,w,p,21,k[63]);n[0]=n[0]+w|0,n[1]=n[1]+_|0,n[2]=n[2]+o|0,n[3]=n[3]+r|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;var r=o.floor(n/4294967296);for(e[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process(),e=(t=this._hash).words,n=0;n<4;n++)i=e[n],e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.MD5=n._createHelper(i),t.HmacMD5=n._createHmacHelper(i)}(Math),o=(i=(r=D).lib).Base,u=i.WordArray,a=(i=r.algo).EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:i.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=(a=this.cfg).hasher.create(),i=u.create(),r=i.words,o=a.keySize,a=a.iterations;r.length>>2]}},e.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:c}),reset:function(){s.reset.call(this);var t=(e=this.cfg).iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var f=e.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),h=(l=(d.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?a.create([1398893684,1701076831]).concat(t).concat(e):e).toString(r)},parse:function(t){var e=(t=r.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var n=a.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return f.create({ciphertext:t,salt:n})}},e.SerializableCipher=n.extend({cfg:n.extend({format:l}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i);return e=r.finalize(e),r=r.cfg,f.create({ciphertext:e,key:n,iv:r.iv,algorithm:t,mode:r.mode,padding:r.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(n,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}})),d=(d.kdf={}).OpenSSL={execute:function(t,e,n,i){return i||(i=a.random(8)),t=o.create({keySize:e+n}).compute(t,i),n=a.create(t.words.slice(e),4*n),t.sigBytes=4*e,f.create({key:t,iv:n,salt:i})}},p=e.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:d}),encrypt:function(t,e,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize),i.iv=n.iv,(t=h.encrypt.call(this,t,e,n.key,i)).mixIn(n),t},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),n=i.kdf.execute(n,t.keySize,t.ivSize,e.salt),i.iv=n.iv,h.decrypt.call(this,t,e,n.key,i)}})}(),function(){for(var t=D,e=t.lib.BlockCipher,n=t.algo,a=[],i=[],r=[],o=[],s=[],l=[],u=[],c=[],f=[],h=[],d=[],p=0;p<256;p++)d[p]=p<128?p<<1:p<<1^283;var y=0,m=0;for(p=0;p<256;p++){var v=(v=m^m<<1^m<<2^m<<3^m<<4)>>>8^255&v^99;a[y]=v;var g=d[i[v]=y],S=d[g],b=d[S],w=257*d[v]^16843008*v;r[y]=w<<24|w>>>8,o[y]=w<<16|w>>>16,s[y]=w<<8|w>>>24,l[y]=w,w=16843009*b^65537*S^257*g^16843008*y,u[v]=w<<24|w>>>8,c[v]=w<<16|w>>>16,f[v]=w<<8|w>>>24,h[v]=w,y?(y=g^d[d[d[b^g]]],m^=d[d[m]]):y=m=1}var _=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=e.extend({_doReset:function(){for(var t=(n=this._key).words,e=n.sigBytes/4,n=4*((this._nRounds=e+6)+1),i=this._keySchedule=[],r=0;r>>24]<<24|a[o>>>16&255]<<16|a[o>>>8&255]<<8|a[255&o]):(o=a[(o=o<<8|o>>>24)>>>24]<<24|a[o>>>16&255]<<16|a[o>>>8&255]<<8|a[255&o],o^=_[r/e|0]<<24),i[r]=i[r-e]^o}for(t=this._invKeySchedule=[],e=0;e>>24]]^c[a[o>>>16&255]]^f[a[o>>>8&255]]^h[a[255&o]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,r,o,s,l,a)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,c,f,h,i),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,u=t[e]^n[0],c=t[e+1]^n[1],f=t[e+2]^n[2],h=t[e+3]^n[3],d=4,p=1;p>>24]^r[c>>>16&255]^o[f>>>8&255]^a[255&h]^n[d++],m=i[c>>>24]^r[f>>>16&255]^o[h>>>8&255]^a[255&u]^n[d++],v=i[f>>>24]^r[h>>>16&255]^o[u>>>8&255]^a[255&c]^n[d++];h=i[h>>>24]^r[u>>>16&255]^o[c>>>8&255]^a[255&f]^n[d++],u=y,c=m,f=v}y=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[d++],m=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[d++],v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[d++],h=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^n[d++],t[e]=y,t[e+1]=m,t[e+2]=v,t[e+3]=h},keySize:8});t.AES=e._createHelper(n)}(),e.default=D},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function i(t,e){for(var n=0;nf.iInputDataLen););t=f.aInputDataBuffer.splice(0,e)}var n=new Uint8Array(t),i={command:"InputData",data:n.buffer,dataSize:e};f.bPlay&&(f.bPause?f.bOnebyOne&&f.decodeWorker.postMessage(i,[i.data]):f.decodeWorker.postMessage(i,[i.data])),n=t=null},this.getPic=function(t,e){if(null==this.decodeWorker||null==this.oSuperRender)return 2;if(!this.bPlay)return 2;if(!t||"function"!=typeof t)return 1;if(this.dataCallBackFun=t,0===this.iZoomNum)this.stYUVRect.left=0,this.stYUVRect.top=0,this.stYUVRect.right=0,this.stYUVRect.bottom=0;else{if(0===this.iCanvasWidth||0===this.iCanvasHeight)this.stYUVRect.left=0,this.stYUVRect.top=0,this.stYUVRect.right=0,this.stYUVRect.bottom=0;else{var n=this.nWidth/this.iCanvasWidth,i=this.nHeight/this.iCanvasHeight;this.stYUVRect.left=Math.round(this.stDisplayRect.left*n),this.stYUVRect.top=Math.round(this.stDisplayRect.top*i),this.stYUVRect.right=Math.round(this.stDisplayRect.right*n),this.stYUVRect.bottom=Math.round(this.stDisplayRect.bottom*i)}if(this.stYUVRect.right-this.stYUVRect.left<32||this.stYUVRect.bottom-this.stYUVRect.top<32)return 1}if(null==this.aDisplayBuf)return 2;var r={command:e,data:this.arrayBufferCopy(this.aDisplayBuf).buffer,width:this.nWidth,height:this.nHeight,rect:this.stYUVRect};return this.decodeWorker.postMessage(r,[r.data]),0},this.createWorker=function(c){if(window.Worker){if(null==this.decodeWorker&&(this.decodeWorker=new Worker(f.szBasePath+"DecodeWorker.js"),null==this.decodeWorker))return 60;this.decodeWorker.onmessage=function(t){var e=null,n=t.data;switch(n.function){case"loaded":e="loaded",c.setCallBack(c,"loaded",0,0,!0);break;case"SetStreamOpenMode":e="SetStreamOpenMode";break;case"OpenStream":e="OpenStream";break;case"InputData":e="InputData",11===n.errorCode&&(f.bIsInputBufOver=!0,f.inputDataFun()),31===n.errorCode&&(f.bIsInputBufOver=!1);break;case"GetFrameData":if(e="GetFrameData",!f.bIsFirstFrame&&31===n.errorCode){f.bIsInputBufOver=!1,setTimeout(f.inputDataFun(),5);break}if(f.bIsInputBufOver?f.inputDataFun():"videoType"===n.type&&(0f.YUVBufferSize){var e=f.aVideoFrameBuffer.shift();f.aDisplayBuf=e.data;var n=new Uint8Array(f.aDisplayBuf);f.oSuperRender.SR_DisplayFrameData(f.nWidth,f.nHeight,n),n=null,f.szOSDTime=e.osdTime,e=null}}else f.bPlay||(f.aVideoFrameBuffer.splice(0,f.aVideoFrameBuffer.length),f.aAudioBuffer.splice(0,f.aAudioBuffer.length))}}return n(o,[{key:"PlayM4_SetStreamOpenMode",value:function(t){return null==t||void 0===t?1:0!==t&&1!==t?1:(this.streamOpenMode=t,0)}},{key:"PlayM4_OpenStream",value:function(t,e,n){if(null==this.decodeWorker)return 2;if(null==t||e<=0||n<=0)return 1;var i=this.checkAudioType(t);return this.bAudioTypeSupport=0===i,this.bPlay=!1,this.bPause=!1,this.bOnebyOne=!1,this.bIsFirstFrame=!0,this.bIsGetYUV=!1,this.bIsInput=!1,this.decodeWorker.postMessage({command:"SetStreamOpenMode",data:this.streamOpenMode}),this.decodeWorker.postMessage({command:"OpenStream",data:t,dataSize:e,bufPoolSize:n}),this.bOpenStream=!0,0}},{key:"PlayM4_CloseStream",value:function(){return null===this.decodeWorker||!1===this.bOpenStream?2:(this.PlayM4_Stop(),this.decodeWorker.postMessage({command:"CloseStream"}),null!==this.oSuperRender&&(this.oSuperRender.SR_Destroy(),this.oSuperRender=null),null!==this.audioRenderer&&(this.audioRenderer.Stop(),this.audioRenderer=null),this.aAudioBuffer.splice(0,this.aAudioBuffer.length),this.aVideoFrameBuffer.splice(0,this.aVideoFrameBuffer.length),this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length),this.aInputDataLens.splice(0,this.aInputDataLens.length),this.bOpenStream=!1,this.iAudioBufferSize=0)}},{key:"PlayM4_Destroy",value:function(){return null===this.decodeWorker||(this.PlayM4_CloseStream(),this.decodeWorker.terminate(),this.decodeWorker=null),0}},{key:"PlayM4_InputData",value:function(t,e){if(null===this.decodeWorker||!1===this.bOpenStream)return 2;var n=this.aInputDataBuffer.length;if(4===e){var i=new Uint8Array(t.buffer);if(1===i[0]&&2===i[1]&&3===i[2]&&4===i[3])return this.bIsFirstFrame?this.inputDataFun():this.bIsGetYUV?this.inputDataFun():this.bIsInput=!0,i=null,0}if(n>this.iInputMaxBufSize)return 11;var r=null,o=e;switch(this.streamOpenMode){case 1:r=new Uint8Array(t.buffer),this.aInputDataLens.push(e);break;case 0:o=e+4;var a=new Uint32Array([e]),s=new Uint8Array(a.buffer);(r=new Uint8Array(o)).set(s,0),r.set(t,4),s=a=null,this.aInputDataLens.push(e+4);break;default:return 16}for(var l=0;lthis.nWidth||o-r>this.nHeight)return 1;var a=document.getElementById(this.sCanvasId).getBoundingClientRect();this.iCanvasWidth=a.width,this.iCanvasHeight=a.height,0!==this.iZoomNum&&(n=Math.round(n/this.iRatio_x)+this.stDisplayRect.left,r=Math.round(r/this.iRatio_y)+this.stDisplayRect.top,i=Math.round(i/this.iRatio_x)+this.stDisplayRect.left,o=Math.round(o/this.iRatio_y)+this.stDisplayRect.top),this.stDisplayRect={top:r,left:n,right:i,bottom:o},this.oSuperRender.SR_SetDisplayRect(this.stDisplayRect);var s=i-n,l=o-r;this.iRatio_x=this.iCanvasWidth/s,this.iRatio_y=this.iCanvasHeight/l,this.iZoomNum++}else this.oSuperRender.SR_SetDisplayRect(null),this.iZoomNum=0;return(this.bPause||this.bOnebyOne||this.bPlayRateChange)&&this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,new Uint8Array(this.aDisplayBuf)),0}},{key:"PlayM4_GetBMP",value:function(t){return this.getPic(t,"GetBMP")}},{key:"PlayM4_GetJPEG",value:function(t){return this.getPic(t,"GetJPEG")}},{key:"PlayM4_SetVolume",value:function(t){return null==this.decodeWorker?2:null==this.audioRenderer?2:t<0||100=this.options.iFileSize)return void(this.options.cbEventHandler&&this.options.cbEventHandler(3001,this.szUUID));var i=new Blob([n]);t.write(i)}else setTimeout(function(){e.writeFile(t)},1e3)}},{key:"stopWriteFile",value:function(){var n=this;return this.bStart=!1,this.aStreamList.length=0,new Promise(function(e){window.requestFileSystem(window.TEMPORARY,n.options.iFileSize,function(t){t.root.getFile(n.szPath+"/"+n.szFileName,{create:!1},function(t){t.file(function(t){e(),a.oTool.downloadFile(t,t.name)})},n.errorHandler)},n.errorHandler)})}}]),r}(),f=function(){function s(t,e,n,i,r,o,a){l(this,s),this.szBasePath=t,this.szUUID=e,this.szFileName=n,this.aHeadBuf=new Uint8Array(i),this.iPackType=r,this.iStreamType=o,this.oWorker=null,this.oFileSystem=null,this.options=a}return o(s,[{key:"init",value:function(){var n=this;return new Promise(function(t,e){n.initFileSystem().then(function(){n.initWorker().then(function(){t(n.szUUID)},function(t){e(t)})},function(t){e(t)})})}},{key:"initFileSystem",value:function(){var n=this;return this.oFileSystem=new u(this.szUUID,this.szFileName,this.iStreamType,this.options),new Promise(function(t,e){n.oFileSystem.init().then(function(){t()},function(t){e(t)})})}},{key:"initWorker",value:function(){var r=this;return new Promise(function(i){r.oWorker=new Worker(r.szBasePath+"/systemTransform-worker.min.js"),r.oWorker.onmessage=function(t){var e=t.data;if("loaded"===e.type)r.oWorker.postMessage({type:"create",buf:r.aHeadBuf.buffer,len:40,packType:r.iPackType},[r.aHeadBuf.buffer]);else if("created"===e.type)i();else if("outputData"===e.type){var n=new Uint8Array(e.buf);1===e.dType?r.oFileSystem.writeFileHeader(n):r.oFileSystem.writeFileContent(n)}}})}},{key:"inputData",value:function(t){if(this.oWorker){var e=new Uint8Array(t);this.oWorker.postMessage({type:"inputData",buf:e.buffer,len:e.length},[e.buffer])}}},{key:"stopRecord",value:function(){var n=this;return new Promise(function(t,e){n.oWorker?n.oWorker.postMessage({type:"release"}):e(),n.oFileSystem?n.oFileSystem.stopWriteFile().then(function(){t()},function(){e()}):e()})}}]),s}(),s=function(){if("undefined"!=typeof Symbol){var u=Symbol("STORAGELIST");return function(){function n(t,e){l(this,n),this.szBasePath=t,this[u]={},this.options={iFileSize:1073741824},Object.assign(this.options,e)}return o(n,[{key:"startRecord",value:function(t,e,n,i,r){var o=this,a=c.default.v4(),s=Object.assign({},this.options,r),l=new f(this.szBasePath,a,t,e,n,i,s);return new Promise(function(e,n){l.init().then(function(t){o[u][t]=l,e(t)},function(t){n(t)})})}},{key:"inputData",value:function(t,e){var n=this[u][t];n&&n.inputData(e)}},{key:"stopRecord",value:function(i){var r=this;return new Promise(function(t,e){var n=r[u][i];n?n.stopRecord().then(function(){delete r[u][i],t()},function(){e()}):e()})}}]),n}()}}();e.StorageManager=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ESCanvas=void 0;var i,l=function(){function i(t,e){for(var n=0;nv.m_iCanvasWidth||this.m_aPoint[i][1]+e-this.m_iDriftStartY>v.m_iCanvasHeight||this.m_aPoint[i][0]+t-this.m_iDriftStartX<0||this.m_aPoint[i][1]+e-this.m_iDriftStartY<0)return this.m_iDriftStartX=t,void(this.m_iDriftStartY=e);for(i=0;ie!=this.m_aPoint[o][1]>e&&t<(this.m_aPoint[o][0]-this.m_aPoint[r][0])*(e-this.m_aPoint[r][1])/(this.m_aPoint[o][1]-this.m_aPoint[r][1])+this.m_aPoint[r][0]&&(n=!n);return n}},{key:"inArc",value:function(t,e,n){for(var i=!1,r=0,o=this.m_aPoint.length;rthis.m_oEdgePoints.right.x&&(this.m_oEdgePoints.right.x=t[e][0],this.m_oEdgePoints.right.y=t[e][1]),t[e][1]>this.m_oEdgePoints.bottom.y&&(this.m_oEdgePoints.bottom.x=t[e][0],this.m_oEdgePoints.bottom.y=t[e][1]),t[e][0]t[o][0]&&(e=t[o][0]),n>t[o][1]&&(n=t[o][1]),ithis.m_aPoint[3][0]&&ethis.m_aPoint[0][0]&&(this.m_aPoint[1][0]=t,this.m_aPoint[2][0]=t):5===this.m_iIndexChoosePoint?tthis.m_aPoint[1][1]&&(this.m_aPoint[3][0]=t,this.m_aPoint[3][1]=e,this.m_aPoint[0][0]=t,this.m_aPoint[2][1]=e):6===this.m_iIndexChoosePoint?e>this.m_aPoint[1][1]&&(this.m_aPoint[2][1]=e,this.m_aPoint[3][1]=e):7===this.m_iIndexChoosePoint&&t>this.m_aPoint[0][0]&&e>this.m_aPoint[0][1]&&(this.m_aPoint[2][0]=t,this.m_aPoint[2][1]=e,this.m_aPoint[1][0]=t,this.m_aPoint[3][1]=e),P())}},{key:"move",value:function(t){P(),this.m_bChoosed=!0;var e=t[0][0],n=t[0][1],i=t[1][0],r=t[1][1];this.setPointInfo([[e,n],[i,n],[i,r],[e,r]]),this.draw()}},{key:"inArc",value:function(t,e,n){for(var i=this.m_aPoint[0][0],r=this.m_aPoint[0][1],o=this.m_aPoint[2][0]-i,a=this.m_aPoint[2][1]-r,s=Math.round(o/2),l=Math.round(a/2),u=[i,i+s,i+o,i,i+o,i,i+s,i+o],c=[r,r,r,r+l,r+l,r+a,r+a,r+a],f=0;f<8;f++){if(Math.sqrt((t-u[f])*(t-u[f])+(e-c[f])*(e-c[f]))v.m_iCanvasHeight||this.m_aPoint[i][0]+t-this.m_iDriftStartX<0||this.m_aPoint[i][1]+e-this.m_iDriftStartY<0)return this.m_iDriftStartX=t,void(this.m_iDriftStartY=e);for(i=0;it[o][0]&&(e=t[o][0]),n>t[o][1]&&(n=t[o][1]),ithis.m_aPoint[3][0]&&ethis.m_aPoint[0][0]&&e>this.m_aPoint[0][1]&&(this.m_aPoint[2][0]=t,this.m_aPoint[2][1]=e,this.m_aPoint[1][0]=t,this.m_aPoint[3][1]=e):3===this.m_iIndexChoosePoint&&tthis.m_aPoint[1][1]&&(this.m_aPoint[3][0]=t,this.m_aPoint[3][1]=e,this.m_aPoint[0][0]=t,this.m_aPoint[2][1]=e),this.setPointInfo(this.m_aPoint),P())}}]),e}();return function(){function e(t){k(this,e),(v=this)[c]=(0,u.default)("#"+t),this[g]=this[c][0].getContext("2d"),this[f]=[],this[h]=!1,this[d]="Rect",this[p]=10,this[S]=!0,this[m]={},this[n]=null,this[i]={szDrawColor:"#ff0000",szFillColor:"#343434",iTranslucent:.7},this[y]=!1,this.m_iCanvasWidth=this[c].width(),this.m_iCanvasHeight=this[c].height(),this.m_iHorizontalResolution=0,this.m_iVerticalResolution=0,this.m_szDisplayMode="",this.m_szVideoFormat="",a(),this[f].length=0}return l(e,[{key:"setDrawMutiShapeOneTime",value:function(t){this[S]=t}},{key:"setMaxShapeSupport",value:function(t){this[p]=t}},{key:"getMaxShapeSupport",value:function(){return this[p]}},{key:"setDrawStatus",value:function(t,e){this[h]=t,e&&t&&(this[n]=e),t||(this[n]=null)}},{key:"setShapeType",value:function(t){this[d]=t,P()}},{key:"setCurrentShapeInfo",value:function(t){this[m]=t||{szId:"",szTips:"",iMinClosed:3,iMaxPointNum:11,iPolygonType:1}}},{key:"getShapeType",value:function(){return this[d]}},{key:"getAllShapesInfo",value:function(){for(var t=[],e=0,n=this[f].length;et&&this[f].splice(t,1),P()}},{key:"updateCanvas",value:function(t){this[c]=(0,u.default)("#"+t),this[g]=this[c][0].getContext("2d"),this.m_iCanvasWidth=this[c].width(),this.m_iCanvasHeight=this[c].height(),a()}},{key:"resizeCanvas",value:function(){this.m_iCanvasWidth=this[c].width(),this.m_iCanvasHeight=this[c].height()}},{key:"canvasRedraw",value:function(){P()}}]),e}()}function P(){v[g].clearRect(0,0,v.m_iCanvasWidth,v.m_iCanvasHeight);for(var t=0,e=v[f].length;t=l.m_iMinClosed-1&&(l.m_bClosed=!0,v[y]=!1,l.setPointInfo(l.m_aPoint),C(l),P(),r=!1,v[S]||(v[h]=!1));else if(0===t.button){if(o=t.offsetX,a=t.offsetY,s="draw",!v[y]){var e=u();if(-1!==e&&v[f][e].inArc(t.offsetX,t.offsetY,5)&&(s="stretch"),"stretch"!==s)for(var n=0,i=v[f].length;no&&t.offsetY>a?(e.startPos=l.m_aPoint[0]||[t.offsetX,t.offsetY],e.endPos=l.m_aPoint[2]||[t.offsetX,t.offsetY]):(e.startPos=l.m_aPoint[2]||[t.offsetX,t.offsetY],e.endPos=l.m_aPoint[0]||[t.offsetX,t.offsetY]),v[n]&&v[n](e),l=null,v.clearAllShape()}}else"Polygon"===v[d]&&0===l.m_iPolygonType&&v[y]&&2+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),G=new RegExp(N),V=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),tt=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)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){_()},rt=gt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{z.apply(e=I.call(g.childNodes),g.childNodes),e[g.childNodes.length].nodeType}catch(t){z={apply:e.length?function(t,e){E.apply(t,I.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,n,i){var r,o,a,s,l,u,c,f=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!i&&((e?e.ownerDocument||e:g)!==P&&_(e),e=e||P,C)){if(11!==h&&(l=K.exec(t)))if(r=l[1]){if(9===h){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&v(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return z.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&d.getElementsByClassName&&e.getElementsByClassName)return z.apply(n,e.getElementsByClassName(r)),n}if(d.qsa&&!k[t+" "]&&(!m||!m.test(t))){if(1!==h)f=e,c=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(et,nt):e.setAttribute("id",s=x),o=(u=p(t)).length;o--;)u[o]="#"+s+" "+vt(u[o]);c=u.join(","),f=Z.test(t)&&yt(e.parentNode)||e}if(c)try{return z.apply(n,f.querySelectorAll(c)),n}catch(t){}finally{s===x&&e.removeAttribute("id")}}}return y(t.replace(H,"$1"),e,n,i)}function at(){var i=[];return function t(e,n){return i.push(e+" ")>b.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function st(t){return t[x]=!0,t}function lt(t){var e=P.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=e}function ct(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 ft(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ht(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function dt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&rt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pt(a){return st(function(o){return o=+o,st(function(t,e){for(var n,i=a([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function yt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=ot.support={},r=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},_=ot.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:g;return i!==P&&9===i.nodeType&&i.documentElement&&(a=(P=i).documentElement,C=!r(P),g!==P&&(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",it,!1):n.attachEvent&&n.attachEvent("onunload",it)),d.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=lt(function(t){return t.appendChild(P.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=$.test(P.getElementsByClassName),d.getById=lt(function(t){return a.appendChild(t).id=x,!P.getElementsByName||!P.getElementsByName(x).length}),d.getById?(b.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n=e.getElementById(t);return n?[n]:[]}}):(b.filter.ID=function(t){var n=t.replace(Q,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&C)return e.getElementsByClassName(t)},s=[],m=[],(d.qsa=$.test(P.querySelectorAll))&&(lt(function(t){a.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+O+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=P.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+O+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=$.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&<(function(t){d.disconnectedMatch=c.call(t,"*"),c.call(t,"[s!='']:x"),s.push("!=",N)}),m=m.length&&new RegExp(m.join("|")),s=s.length&&new RegExp(s.join("|")),e=$.test(a.compareDocumentPosition),v=e||$.test(a.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},D=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===P||t.ownerDocument===g&&v(g,t)?-1:e===P||e.ownerDocument===g&&v(g,e)?1:l?A(l,t)-A(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===P?-1:e===P?1:r?-1:o?1:l?A(l,t)-A(l,e):0;if(r===o)return ct(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ct(a[i],s[i]):a[i]===g?-1:s[i]===g?1:0}),P},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==P&&_(t),e=e.replace(U,"='$1']"),d.matchesSelector&&C&&!k[e+" "]&&(!s||!s.test(e))&&(!m||!m.test(e)))try{var n=c.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,tt),"~="===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]||ot.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]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=p(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(Q,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=h[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&h(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(t){var e=ot.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===r:"!="===i?e!==r:"^="===i?r&&0===e.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function M(t,n,i){return x.isFunction(n)?x.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?x.grep(t,function(t){return t===n!==i}):"string"!=typeof n?x.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||R,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):x.isFunction(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:E.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),k.test(i[1])&&x.isPlainObject(e))for(i in e)x.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=C.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=x.fn,R=x(C);var z=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function A(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]+)/i,at=/^$|\/(?:java|ecma)script/i,st={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function lt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?x.merge([t],n):n}function ut(t,e){for(var n=0,i=t.length;nx",m.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue;var pt=C.documentElement,yt=/^key/,mt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vt=/^([^.]*)(?:\.(.+)|)/;function gt(){return!0}function St(){return!1}function bt(){try{return C.activeElement}catch(t){}}function wt(t,e,n,i,r,o){var a,s;if("object"===(void 0===e?"undefined":We(e))){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)wt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=St;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return x().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),t.each(function(){x.event.add(this,e,r,i,n)})}x.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,f,h,d,p,y,m=G.get(e);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(pt,r),n.guid||(n.guid=x.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(F)||[""]).length;u--;)d=y=(s=vt.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},c=x.extend({type:d,origType:y,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),x.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,f,h,d,p,y,m=G.hasData(t)&&G.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(F)||[""]).length;u--;)if(d=y=(s=vt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=x.event.special[d]||{},h=l[d=(i?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&y!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||x.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)x.event.remove(t,d+e[u],n,i,!0);x.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=x.event.fix(t),l=new Array(arguments.length),u=(G.get(this,"events")||{})[s.type]||[],c=x.event.special[s.type]||{};for(l[0]=s,e=1;e\x20\t\r\n\f]*)[^>]*)\/>/gi,Pt=/\s*$/g;function kt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&x(">tbody",t)[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){var e=xt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Rt(t,e){var n,i,r,o,a,s,l,u;if(1===e.nodeType){if(G.hasData(t)&&(o=G.access(t),a=G.set(e,o),u=o.events))for(r in delete a.handle,a.events={},u)for(n=0,i=u[r].length;n")},clone:function(t,e,n){var i,r,o,a,s,l,u,c=t.cloneNode(!0),f=x.contains(t.ownerDocument,t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=lt(c),i=0,r=(o=lt(t)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){i.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(i[0])},abort:function(){r&&r()}}});var Be,Le=[],Ne=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Le.pop()||x.expando+"_"+ye++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,a=!1!==t.jsonp&&(Ne.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=x.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ne,"$1"+i):!1!==t.jsonp&&(t.url+=(me.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||x.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=P[i],P[i]=function(){o=arguments},n.always(function(){void 0===r?x(P).removeProp(i):P[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Le.push(i)),o&&x.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),m.createHTMLDocument=((Be=C.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Be.childNodes.length),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,e.head.appendChild(i)):e=C),o=!n&&[],(r=k.exec(t))?[e.createElement(r[1])]:(r=dt([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return-1").append(x.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){x.fn[e]=function(t){return this.on(e,t)}}),x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u=x.css(t,"position"),c=x(t),f={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=x.css(t,"top"),l=x.css(t,"left"),r=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(i=c.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(l)||0),x.isFunction(e)&&(e=e.call(t,n,x.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+r),"using"in e?e.using.call(t,f):c.css(f)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,i,r,o=this[0];return o?o.getClientRects().length?(i=o.getBoundingClientRect(),n=(t=o.ownerDocument).documentElement,r=t.defaultView,{top:i.top+r.pageYOffset-n.clientTop,left:i.left+r.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===x.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),T(t[0],"html")||(i=t.offset()),i={top:i.top+x.css(t[0],"borderTopWidth",!0),left:i.left+x.css(t[0],"borderLeftWidth",!0)}),{top:e.top-i.top-x.css(n,"marginTop",!0),left:e.left-i.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||pt})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o="pageYOffset"===r;x.fn[e]=function(t){return j(this,function(t,e,n){var i;if(x.isWindow(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[r]:t[e];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),x.each(["top","left"],function(t,n){x.cssHooks[n]=Bt(m.pixelPosition,function(t,e){if(e)return e=Ot(t,n),At.test(e)?x(t).position()[n]+"px":e})}),x.each({Height:"height",Width:"width"},function(a,s){x.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){x.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return j(this,function(t,e,n){var i;return x.isWindow(t)?0===o.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+a],i["scroll"+a],t.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?x.css(t,e,r):x.style(t,e,n,r)},s,n?t:void 0,n)}})}),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=T,void 0===(Ge=function(){return x}.apply(Ue,[]))||(je.exports=Ge);var qe=P.jQuery,He=P.$;return x.noConflict=function(t){return P.$===x&&(P.$=He),t&&P.jQuery===x&&(P.jQuery=qe),x},t||(P.jQuery=P.$=x),x},"object"===We(je)&&"object"===We(je.exports)?je.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}).call(Ue,e(18)(t))},function(t,e){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}}])});