stimulsoft-dashboards-js-angular
Version:
Stimulsoft Dashboards.JS is a dashboards tool for Angular
7 lines • 1.61 MB
JavaScript
/*
Stimulsoft.Reports.JS
Version: 2025.4.1
Build date: 2025.10.06
License: https://www.stimulsoft.com/en/licensing/reports
*/
import{Stimulsoft}from"./stimulsoft.reports.engine.mjs";function defaultsDeep(e,t){for(var i in t)i in e?defaultsDeep(e[i],t[i]):e[i]=t[i];return e}defaultsDeep(Stimulsoft||{},{Viewer:{Helpers:{Dashboards:{}}}});var __={};function StiJsViewer(e,t){var i=this,o;if(this.defaultParameters=Stimulsoft.System.decompressLiteral("\bIQBa_\bmzހ"),this.options=e.options,this.options.isTouchDevice="Auto"==this.options.appearance.interfaceType?this.IsTouchDevice()&&this.IsMobileDevice():"Touch"==this.options.appearance.interfaceType||"Mobile"==this.options.appearance.interfaceType,this.options.isMobileDevice=!1!==this.options.appearance.allowMobileMode&&("Auto"==this.options.appearance.interfaceType&&0==this.options.reportDesignerMode?this.IsTouchDevice()&&this.IsMobileDevice():"Mobile"==this.options.appearance.interfaceType),this.options.menuAnimDuration=150,this.options.formAnimDuration=200,this.options.scrollDuration=350,this.options.menuHideDelay=250,this.options.server.timeoutAutoUpdateCache=18e4,this.options.toolbar.backgroundColor=this.getHTMLColor(this.options.toolbar.backgroundColor),this.options.toolbar.borderColor=this.getHTMLColor(this.options.toolbar.borderColor),this.options.toolbar.fontColor=this.getHTMLColor(this.options.toolbar.fontColor),this.options.appearance.pageBorderColor=this.getHTMLColor(this.options.appearance.pageBorderColor),this.options.exports.defaultSettings=e.defaultExportSettings,this.options.parametersValues={},this.options.parameterRowHeight=this.options.isTouchDevice?26:23,this.options.osWin11=this.checkWin11(),this.options.customThemeAccent=this.options.cloudMode?StiJsViewer.GetCookie("StimulsoftCustomThemeAccent"):this.options.customThemeAccentColor||this.options.appearance.customThemeAccentColor,this.options.viewerIsFocused=!0,this.proxy=document["proxy"+this.options.viewerId],this.proxy&&(this.proxy.jsObject=this),this.collections=Stimulsoft.System.decompressLiteral("\bIQBa_\bmzހ"),t&&(this.collections=t),e.loc&&this.collections.loc&&(this.collections.loc=e.loc),this.controls={},this.controls.forms={},this.controls.head=document.getElementsByTagName("head")[0],this.controls.viewer=document.getElementById(this.options.viewerId),this.controls.mainPanel=document.getElementById(this.options.viewerId+"_JsViewerMainPanel"),this.controls.findHelper={findLabels:[]},this.reportParams={type:"Auto",pageNumber:0,pagesCount:0,zoom:this.options.toolbar.zoom,viewMode:this.options.toolbar.viewMode,reportFileName:null,pagesArray:[],collapsingStates:null,bookmarksContent:null,editableParameters:null,drillDownGuid:null,dashboardDrillDownGuid:null,drillDownParameters:[]},this.service={},this.service.resizeTimer=null,this.service.refreshReportTimer=null,this.service.isRequestInProcess=!1,this.service.elementRefreshTimers={},this.options.actions.getReport||(this.options.actions.getReport=this.options.actions.viewerEvent),this.options.actions.printReport||(this.options.actions.printReport=this.options.actions.viewerEvent),this.options.actions.openReport||(this.options.actions.openReport=this.options.actions.viewerEvent),this.options.actions.exportReport||(this.options.actions.exportReport=this.options.actions.viewerEvent),this.options.actions.interaction||(this.options.actions.interaction=this.options.actions.viewerEvent),window.File&&window.FileReader&&window.FileList&&window.Blob||(this.options.toolbar.showOpenButton=!1),"Auto"==this.options.theme&&this.ApplyAutoTheme(),this.ApplyViewerBackColor(),(this.options.requestResourcesUrl||this.options.appearance.customStylesUrl)&&(o=this.options.appearance.customStylesUrl||this.GetResourceUrl("styles"),this.options.customThemeAccent&&(o+="&stiweb_customaccent="+this.options.customThemeAccent.replace("#","")),this.LoadStyle(o)),this.options.stimulsoftFontContent&&this.addCustomFontStyles([{contentForCss:this.options.stimulsoftFontContent,originalFontFamily:"Stimulsoft"}]),this.options.customOpenTypeFonts&&!i.options.reportDesignerMode&&this.addCustomFontStyles(this.options.customOpenTypeFonts),this.options.imagesScalingFactor=this.getImagesScalingFactor(),this.collections.images)this.InitializeViewerControls();else{var a={method:"GET",imagesScalingFactor:this.options.imagesScalingFactor,useCompression:this.options.server.useCompression,iconSet:this.options.appearance.iconSet},s=("StiCloudShareViewer"!=this.options.viewerId&&"StiCloudReportsShareViewer"!=this.options.viewerId||(a.sharingLocalization=StiJsViewer.GetCookie("sti_CloudLocalization")||this.getDefaultLocalization()),i.GetResourceUrl("images")),n;for(n in a)"method"!=n&&(s+="&stiweb_"+n.toLowerCase()+"="+a[n]);this.postAjax(s,a,function(e){e&&(i.options.server.useCompression&&(e=StiGZipHelper.unpack(e)),(e=JSON.parse(e)).images&&(i.collections.images=e.images),e.localizationItems)&&(i.collections.loc=e.localizationItems),i.InitializeViewerControls(function(){i.options.reportDesignerMode||("complete"==document.readyState?i.postAction():i.addEvent(window,"load",function(){i.postAction()}))})})}}__.a=Stimulsoft.Viewer,__.b=__.a.Helpers,__.c=__.b.Dashboards,StiJsViewer.setImageSource=function(e,t,i,o,a,s){if(i.controlsWithImages||(i.controlsWithImages={}),s||(e.id||(e.id=StiJsViewer.prototype.newGuid()),i.controlsWithImages[e.id]={imageControl:e,imageName:o}),"IMG"==e.tagName)e.src=i.images[o];else if("image"==e.tagName)e.href.baseVal=i.images[o];else{if("DIV"!=e.tagName)throw"";e.style.backgroundImage="url("+i.images[o]+")"}},StiJsViewer.checkImageSource=function(e,t,i){return null!=t.images[i]},StiJsViewer.getImageSource=function(e,t,i){return t.images[i]},StiJsViewer.prototype.LoadStyle=function(e,t){if(t){for(var i=this.controls.head.childNodes,o=0;o<i.length;o++)if(i[o].tagName&&"link"==i[o].tagName.toLowerCase()&&"stimulsoft"==i[o].getAttribute("stimulsoft")&&"viewer"==i[o].getAttribute("component")){i[o].setAttribute("href",e);break}}else{var a=document.createElement(this.proxy?"style":"link");a.setAttribute("rel","stylesheet"),a.setAttribute("type","text/css"),a.setAttribute("stimulsoft","stimulsoft"),a.setAttribute("component","viewer"),this.proxy?this.proxy.getText(e).then(function(e){a.innerHTML=e}):a.setAttribute("href",e),this.controls.head.appendChild(a)}},StiJsViewer.prototype.GetResourceUrl=function(e){var t=this.getActionRequestUrl(this.options.requestResourcesUrl,this.options.actions.viewerEvent);return t=(t=(t=(t+=0<t.indexOf("?")?"&":"?")+("stiweb_component=Viewer&stiweb_action=Resource&stiweb_data="+e+"&stiweb_theme="+this.options.theme))+("&stiweb_cachemode="+(this.options.server.useCacheForResources?"ObjectSession"==this.options.server.cacheMode||"StringSession"==this.options.server.cacheMode?"session":"cache":"none")))+("&stiweb_version="+this.options.shortProductVersion)},StiJsViewer.prototype.InitializeViewerControls=function(e){var t=this;this.options.isMobileDevice?this.InitializeMobile():this.options.toolbar.showPinToolbarButton=!1,this.InitializeJsViewer(),this.InitializeDashboardsPanel(),this.InitializeToolBar(),this.options.toolbar.showFindButton&&this.InitializeFindPanel(),this.InitializeDrillDownPanel(),this.options.toolbar.showResourcesButton&&this.InitializeResourcesPanel(),this.InitializeDisabledPanels(),this.InitializeAboutPanel(),this.InitializeReportPanel(),this.InitializeProcessImage(),this.InitializeDatePicker(),this.InitializeToolTip(),"Separated"==this.options.toolbar.displayMode&&this.options.toolbar.visible&&this.InitializeNavigatePanel(),this.options.toolbar.showSaveButton&&this.options.toolbar.visible&&this.InitializeSaveMenu(),this.options.toolbar.showSendEmailButton&&this.options.toolbar.visible&&this.InitializeSendEmailMenu(),this.options.toolbar.showPrintButton&&this.options.toolbar.visible&&this.InitializePrintMenu(),this.options.toolbar.showZoomButton&&(this.options.toolbar.visible||"Separated"==this.options.toolbar.displayMode)&&this.InitializeZoomMenu(),this.options.toolbar.showViewModeButton&&this.options.toolbar.visible&&this.InitializeViewModeMenu(),(this.options.exports.showExportDialog||this.options.email.showExportDialog)&&this.InitializeExportForm(),this.options.toolbar.showSendEmailButton&&this.options.email.showEmailDialog&&this.options.toolbar.visible&&this.InitializeSendEmailForm(),this.addHoverEventsToMenus(),this.InitializeEvents(),this.options.reportDesignerMode||this.showTrLog(),this.options.serverMode&&this.InitializeFolderReportsPanel(),this.addEvent(document,"mouseup",function(e){t.DocumentMouseUp(e)}),this.addEvent(document,"mousemove",function(e){t.DocumentMouseMove(e)}),this.addEvent(document,"mousedown",function(e){t.DocumentMouseDown(e)}),document.all&&!document.querySelector&&alert("Your web browser is not supported by our application. Please upgrade your browser!"),this.controls.viewer.style.top=0,this.controls.viewer.style.right=0,this.controls.viewer.style.bottom=0,this.controls.viewer.style.left=0,this.changeFullScreenMode(this.options.appearance.fullScreenMode),this.onready&&this.onready(),this.onreadyasync?this.onreadyasync(e):e&&e()},StiJsViewer.prototype.InitializeMobile=function(){for(var e=!1,t=this.controls.head.getElementsByTagName("meta"),i=0,o;i<t.length;i++)if(t[i].name&&"viewport"==t[i].name.toLowerCase()){e=!0;break}e||((o=document.createElement("meta")).id="viewport",o.name="viewport",o.content="initial-scale=1.0,width=device-width,user-scalable=0",o.setAttribute("stimulsoft","stimulsoft"),this.controls.head.appendChild(o)),this.options.appearance.fullScreenMode=!0,this.options.appearance.scrollbarsMode=!0,this.options.appearance.parametersPanelPosition="Left",this.options.appearance.parametersPanelColumnsCount=1,this.options.toolbar.displayMode="Separated",this.options.toolbar.viewMode="SinglePage",this.options.toolbar.showZoomButton=!1;var a=-2==this.options.toolbar.zoom?-2:-1;this.options.toolbar.zoom=this.reportParams.zoom=a,this.options.toolbar.showButtonCaptions=!1,this.options.toolbar.showOpenButton=!1,this.options.toolbar.showFindButton=!1,this.options.toolbar.showFullScreenButton=!1,this.options.toolbar.showAboutButton=!1,this.options.toolbar.showViewModeButton=!1,this.InitializeCenterText()},StiJsViewer.prototype.mergeOptions=function(e,t){for(var i in e)void 0===t[i]||"object"!=typeof t[i]?t[i]=e[i]:this.mergeOptions(e[i],t[i])},StiJsViewer.prototype.clearViewerState=function(e){this.reportParams.type="Auto",this.reportParams.pageNumber=0,this.reportParams.pagesCount=0,this.reportParams.pagesArray=[],this.reportParams.originalPageNumber=0,this.reportParams.drillDownGuid=null,this.reportParams.dashboardDrillDownGuid=null,this.reportParams.collapsingStates=null,this.reportParams.bookmarksContent=null,this.reportParams.editableParameters=null,this.reportParams.resources=null,this.reportParams.drillDownParameters=[],this.reportParams.elementName=null,this.reportParams.variablesValues=null,this.reportParams.tableOfContentsPointers=[],this.reportParams.isSignedReport=null,this.reportParams.isParametersRequested=null,this.options.paramsVariables=null,this.options.multiFilterStates=null,this.options.tablesColumnsOrder={},this.options.isParametersReceived=!1,this.options.drillDownInProgress=!1,this.options.signatureInProgress=!1,this.options.paramsVariablesStartValues=null,this.options.isAutoHeight=null,this.options.isFullScreenHeight=null,this.options.displayModeFromReport=null,this.options.currentParametersPanelDisplayMode=null,this.options.currentParameterWidth=null,this.options.currentParameterAlignment="Left",this.options.previewSettingsRepToolbarAlign=null,this.options.previewSettingsRepToolbarReverse=null,this.options.previewSettingsRepHorScrollBar=null,this.options.previewSettingsRepVertScrollBar=null,this.options.previewSettingsDbsToolbarAlign=null,this.options.previewSettingsDbsToolbarReverse=null,this.controls.mainPanel.style.background="",this.tableElementGridStates={},this.tableElementHiddenColumns={},this.tableElementGridPageNumbers={},this.framesCollection=[],this.signaturesCompleted={},this.currentOpeningData=null,this.removeDocToolTip(),clearTimeout(this.customTooltipTimer),clearTimeout(window._stiTooltipTimer),clearTimeout(window._stiTooltipTimer2),this.options.toolBarRebuilded&&(this.InitializeToolBar(),this.options.toolBarRebuilded=!1),this.options.dashboardsPanelRebuilded&&(this.InitializeDashboardsPanel(),this.options.dashboardsPanelRebuilded=!1),this.reportParams.prevPageNumber&&(this.reportParams.pageNumber=this.reportParams.prevPageNumber,delete this.reportParams.prevPageNumber),this.InitializeBookmarksPanel(),this.InitializeParametersPanel();var t=this.controls.dashboardsPanel,i;for(i in t&&(t.changeVisibleState(!1),t.dashboardsCount=0,t.reportsCount=0,t.clear()),this.controls.drillDownPanel&&this.controls.drillDownPanel.reset(),this.controls.findPanel&&this.controls.findPanel.changeVisibleState(!1),e&&(this.options.isParametersReceived=!1,this.options.isReportRecieved=!1),this.options.currentMenu&&this.options.currentMenu.changeVisibleState(!1),this.options.currentDatePicker&&this.options.currentDatePicker.changeVisibleState(!1),this.options.currentForm&&this.options.currentForm.visible&&"errorMessageForm"!=this.options.currentForm.name&&this.options.currentForm.changeVisibleState(!1),this.service.elementRefreshTimers)clearInterval(this.service.elementRefreshTimers[i])};var StiBase64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){if("undefined"!=typeof unescape)e=unescape(encodeURIComponent(e));else{e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?t+=String.fromCharCode(o):t=127<o&&o<2048?(t+=String.fromCharCode(o>>6|192))+String.fromCharCode(63&o|128):(t=(t+=String.fromCharCode(o>>12|224))+String.fromCharCode(o>>6&63|128))+String.fromCharCode(63&o|128)}e=t}if(void 0!==window.btoa)return window.btoa(e);var a="",s,n,l,r,A,p,c,g=0;while(g<e.length)r=(s=e.charCodeAt(g++))>>2,A=(3&s)<<4|(n=e.charCodeAt(g++))>>4,p=(15&n)<<2|(l=e.charCodeAt(g++))>>6,c=63&l,isNaN(n)?p=c=64:isNaN(l)&&(c=64),a=a+this._keyStr.charAt(r)+this._keyStr.charAt(A)+this._keyStr.charAt(p)+this._keyStr.charAt(c);return a},decode:function(e){if(null==e)return"";var t="";if(void 0!==window.atob)t=window.atob(e);else{var i,o,a,s,n,l,r,A=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(A<e.length)s=this._keyStr.indexOf(e.charAt(A++)),o=(15&(n=this._keyStr.indexOf(e.charAt(A++))))<<4|(l=this._keyStr.indexOf(e.charAt(A++)))>>2,a=(3&l)<<6|(r=this._keyStr.indexOf(e.charAt(A++))),t+=String.fromCharCode(i=s<<2|n>>4),64!=l&&(t+=String.fromCharCode(o)),64!=r&&(t+=String.fromCharCode(a))}if("undefined"!=typeof escape)return decodeURIComponent(escape(t));var p="",A=0,c=0,g=0,h=0,d=0;while(A<t.length)(c=t.charCodeAt(A))<128?(p+=String.fromCharCode(c),A++):191<c&&c<224?(h=t.charCodeAt(A+1),p+=String.fromCharCode((31&c)<<6|63&h),A+=2):(h=t.charCodeAt(A+1),d=t.charCodeAt(A+2),p+=String.fromCharCode((15&c)<<12|(63&h)<<6|63&d),A+=3);return p}},StiGZipHelper=(()=>{function h(){}var d,e,i,o,t,a,T,I,u,m,s,b,n;function l(){this.fc=0,this.dl=0}function r(){this.dynamicTree=null,this.staticTree=null,this.extraBits=null,this.extraBase=0,this.elements=0,this.maxLength=0,this.maxCode=0}function A(e,t,i,o){this.goodLength=e,this.maxLazy=t,this.niceLength=i,this.maxChain=o}function p(){this.next=null,this.length=0,this.ptr=new Array(m.outBufferSize),this.offset=0}function c(){this.next=null,this.list=null}function g(){this.e=0,this.b=0,this.n=0,this.t=null}function x(e,t,i,o,a,s){var n,l,r,A,p=(this.status=0,this.root=null,this.m=0,new Array(x.bMax+1)),c=new Array(x.bMax+1),g,h=new I,d=new Array(x.bMax),u=new Array(x.nMax),m=new Array(x.bMax+1),b=null;for(this.root=null,n=0;n<p.length;n++)p[n]=0;for(n=0;n<c.length;n++)c[n]=0;for(n=0;n<d.length;n++)d[n]=null;for(n=0;n<u.length;n++)u[n]=0;for(n=0;n<m.length;n++)m[n]=0;var f=256<t?e[256]:x.bMax,S=e,w=0,n=t;do{p[S[w]]++,w++}while(0<--n);if(p[0]==t)return this.root=null,this.m=0,void(this.status=0);for(l=1;l<=x.bMax;l++)if(0!=p[l])break;var C=l;for(s<l&&(s=l),n=x.bMax;0!=n;n--)if(0!=p[n])break;var B=n;for(n<s&&(s=n),r=1<<l;l<n;l++,r<<=1)if((r-=p[l])<0)return this.status=2,void(this.m=s);if((r-=p[n])<0)return this.status=2,void(this.m=s);p[n]+=r,m[1]=l=0;var S=p,w=1,E=2;while(0<--n)m[E++]=l+=S[w++];S=e,n=w=0;do{0!=(l=S[w++])&&(u[m[l]++]=n)}while(++n<t);t=m[B],m[0]=n=0,S=u;for(var y=-1,v=c[w=0]=0,D=0,k,R,g=null;C<=B;C++){k=p[C];while(0<k--){while(C>v+c[1+y]){if(v+=c[1+y],y++,D=(D=B-v)>s?s:D,(R=1<<(l=C-v))>k+1){R-=k+1,E=C;while(++l<D){if((R<<=1)<=p[++E])break;R-=p[E]}}for(D=1<<(l=f<v+l&&v<f?f-v:l),c[1+y]=l,g=new Array(D),A=0;A<D;A++)g[A]=new I;(b=null==b?this.root=new T:b.next=new T).next=null,b.list=g,d[y]=g,0<y&&(m[y]=n,h.b=c[y],h.e=16+l,h.t=g,l=(n&(1<<v)-1)>>v-c[y],d[y-1][l].e=h.e,d[y-1][l].b=h.b,d[y-1][l].n=h.n,d[y-1][l].t=h.t)}for(h.b=C-v,t<=w?h.e=99:S[w]<i?(h.e=S[w]<256?16:15,h.n=S[w++]):(h.e=a[S[w]-i],h.n=o[S[w++]-i]),R=1<<C-v,l=n>>v;l<D;l+=R)g[l].e=h.e,g[l].b=h.b,g[l].n=h.n,g[l].t=h.t;for(l=1<<C-1;0!=(n&l);l>>=1)n^=l;n^=l;while((n&(1<<v)-1)!=m[y])v-=c[y],y--}}this.m=c[1],this.status=0!=r&&1!=B?1:0}function f(){}function S(){this._outBuffer=null,this._fixedTL=null}return e=d=d||{},i=l,o=r,t=A,a=p,T=c,I=g,x.bMax=16,x.nMax=288,u=x,f.wSize=32768,f.storedBlock=0,f.staticTrees=1,f.dynamicTrees=2,f.defaultLevel=6,f.fullSearch=!0,f.lBits=9,f.dBits=6,f.inBufferSize=32768,f.inBufferExtra=64,f.outBufferSize=1024*8,f.windowSize=2*f.wSize,f.minMatch=3,f.maxMatch=258,f.bits=16,f.distBufferSize=f.litBufferSize=8192,f.hashMask=(f.hashSize=1<<(f.hashBits=13))-1,f.wMask=f.wSize-1,f.nil=0,f.tooFar=4096,f.maxDist=f.wSize-(f.minLookahead=f.maxMatch+f.minMatch+1),f.smallest=1,f.maxBits=15,f.maxBLBits=7,f.lengthCodes=29,f.literals=256,f.endBlock=256,f.lCodes=f.literals+1+f.lengthCodes,f.dCodes=30,f.blCodes=19,f.rep_3_6=16,f.repz_3_10=17,f.repz_11_138=18,f.heapSize=2*f.lCodes+1,f.hShift=parseInt(((f.hashBits+f.minMatch-1)/f.minMatch).toString()),f.bufferSize=16,f.maskBits=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],f.cplens=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f.cplext=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99],f.cpdist=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],f.cpdext=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f.border=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f.extraLBits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],f.extraDBits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f.extraBLBits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f.blOrder=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f.configTable=[new t(0,0,0,0),new t(4,4,8,4),new t(4,5,16,8),new t(4,6,32,32),new t(4,4,16,16),new t(8,16,32,32),new t(8,16,128,128),new t(8,32,128,256),new t(32,128,258,1024),new t(32,258,258,4096)],m=f,S.deflate=function(e,t){if(null==e||void 0===e)return null;if(null==this._helper&&(this._helper=new S),"string"==typeof e)return this._helper.deflate(e.toUnicodeString().toBytesArray(),t);return this._helper.deflate(e,t)},S.inflate=function(e){return null==this._helper&&(this._helper=new S),this._helper.inflate(e)},S.prototype.deflateStart=function(e){var t;if(e?e<1?e=1:9<e&&(e=9):e=m.defaultLevel,this._compressLevel=e,this._initFlag=!1,this._eoFile=!1,null!=this._outBuffer)return;for(this._freeQueue=null,this._qHead=null,this._qTail=null,this._outBuffer=new Array(m.outBufferSize),this._window=new Array(m.windowSize),this._dBuffer=new Array(m.distBufferSize),this._lBuffer=new Array(m.inBufferSize+m.inBufferExtra),this._prev=new Array(1<<m.bits),this._dynamicLtree=new Array(m.heapSize),t=0;t<m.heapSize;t++)this._dynamicLtree[t]=new i;for(this._dynamicDtree=new Array(2*m.dCodes+1),t=0;t<2*m.dCodes+1;t++)this._dynamicDtree[t]=new i;for(this._staticLtree=new Array(m.lCodes+2),t=0;t<m.lCodes+2;t++)this._staticLtree[t]=new i;for(this._staticDtree=new Array(m.dCodes),t=0;t<m.dCodes;t++)this._staticDtree[t]=new i;for(this._blTree=new Array(2*m.blCodes+1),t=0;t<2*m.blCodes+1;t++)this._blTree[t]=new i;this._lDesc=new o,this._dDesc=new o,this._blDesc=new o,this._blCount=new Array(m.maxBits+1),this._heap=new Array(2*m.lCodes+1),this._depth=new Array(2*m.lCodes+1),this._lengthCode=new Array(m.maxMatch-m.minMatch+1),this._distCode=new Array(512),this._baseLength=new Array(m.lengthCodes),this._baseDist=new Array(m.dCodes),this._flagBuf=new Array(parseInt((m.litBufferSize/8).toString()))},S.prototype.deflateEnd=function(){this._freeQueue=null,this._qHead=null,this._qTail=null,this._outBuffer=null,this._window=null,this._dBuffer=null,this._lBuffer=null,this._prev=null,this._dynamicLtree=null,this._dynamicDtree=null,this._staticLtree=null,this._staticDtree=null,this._blTree=null,this._lDesc=null,this._dDesc=null,this._blDesc=null,this._blCount=null,this._heap=null,this._depth=null,this._lengthCode=null,this._distCode=null,this._baseLength=null,this._baseDist=null,this._flagBuf=null},S.prototype.reuseQueue=function(e){e.next=this._freeQueue,this._freeQueue=e},S.prototype.newQueue=function(){var e;return null!=this._freeQueue?(e=this._freeQueue,this._freeQueue=this._freeQueue.next):e=new a,e.next=null,e.length=0,e.offset=0,e},S.prototype.head1=function(e){return this._prev[m.wSize+e]},S.prototype.head2=function(e,t){return this._prev[m.wSize+e]=t},S.prototype.putByte=function(e){this._outBuffer[this._outOffset+this._outCount++]=e,this._outOffset+this._outCount==m.outBufferSize&&this.qOutBuffer()},S.prototype.putShort=function(e){e&=65535,this._outOffset+this._outCount<m.outBufferSize-2?(this._outBuffer[this._outOffset+this._outCount++]=255&e,this._outBuffer[this._outOffset+this._outCount++]=e>>>8):(this.putByte(255&e),this.putByte(e>>>8))},S.prototype.insertString=function(){this._insH=(this._insH<<m.hShift^255&this._window[this._strStart+m.minMatch-1])&m.hashMask,this._hashHead=this.head1(this._insH),this._prev[this._strStart&m.wMask]=this._hashHead,this.head2(this._insH,this._strStart)},S.prototype.sendCode=function(e,t){this.sendBits(t[e].fc,t[e].dl)},S.prototype.dCode=function(e){return 255&(e<256?this._distCode[e]:this._distCode[256+(e>>7)])},S.prototype.smaller=function(e,t,i){return e[t].fc<e[i].fc||e[t].fc==e[i].fc&&this._depth[t]<=this._depth[i]},S.prototype.readBuffer=function(e,t,i){for(var o,o=0;o<i&&this._deflatePos<this._deflateData.length;o++)e[t+o]=255&this._deflateData[this._deflatePos++];return o},S.prototype.lmInit=function(){for(var e,e=0;e<m.hashSize;e++)this._prev[m.wSize+e]=0;if(this._maxLazyMatch=m.configTable[this._compressLevel].maxLazy,this._goodMatch=m.configTable[this._compressLevel].goodLength,m.fullSearch||(this._niceMatch=m.configTable[this._compressLevel].niceLength),this._maxChainLength=m.configTable[this._compressLevel].maxChain,this._strStart=0,this._blockStart=0,this._lookahead=this.readBuffer(this._window,0,2*m.wSize),this._lookahead<=0)return this._eoFile=!0,void(this._lookahead=0);this._eoFile=!1;while(this._lookahead<m.minLookahead&&!this._eoFile)this.fillWindow();for(this._insH=0,e=0;e<m.minMatch-1;e++)this._insH=(this._insH<<m.hShift^255&this._window[e])&m.hashMask},S.prototype.longestMatch=function(e){var t=this._maxChainLength,i=this._strStart,o,a,s=this._prevLength,n=this._strStart>m.maxDist?this._strStart-m.maxDist:m.nil,l=this._strStart+m.maxMatch,r=this._window[i+s-1],A=this._window[i+s];this._prevLength>=this._goodMatch&&(t>>=2);do{if(o=e,this._window[o+s]!=A||this._window[o+s-1]!=r||this._window[o]!=this._window[i]||this._window[++o]!=this._window[i+1])continue;i+=2,o++;do{}while(this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&this._window[++i]==this._window[++o]&&i<l);if(a=m.maxMatch-(l-i),i=l-m.maxMatch,s<a){if(this._matchStart=e,s=a,m.fullSearch){if(a>=m.maxMatch)break}else if(a>=this._niceMatch)break;r=this._window[i+s-1],A=this._window[i+s]}}while((e=this._prev[e&m.wMask])>n&&0!=--t);return s},S.prototype.fillWindow=function(){var e,t,i=m.windowSize-this._lookahead-this._strStart;if(-1==i)i--;else if(this._strStart>=m.wSize+m.maxDist){for(e=0;e<m.wSize;e++)this._window[e]=this._window[e+m.wSize];for(this._matchStart-=m.wSize,this._strStart-=m.wSize,this._blockStart-=m.wSize,e=0;e<m.hashSize;e++)t=this.head1(e),this.head2(e,t>=m.wSize?t-m.wSize:m.nil);for(e=0;e<m.wSize;e++)t=this._prev[e],this._prev[e]=t>=m.wSize?t-m.wSize:m.nil;i+=m.wSize}this._eoFile||((e=this.readBuffer(this._window,this._strStart+this._lookahead,i))<=0?this._eoFile=!0:this._lookahead+=e)},S.prototype.deflateFast=function(){while(0!=this._lookahead&&null==this._qHead){var e=void 0;if(this.insertString(),this._hashHead!=m.nil&&this._strStart-this._hashHead<=m.maxDist&&(this._matchLength=this.longestMatch(this._hashHead),this._matchLength>this._lookahead)&&(this._matchLength=this._lookahead),this._matchLength>=m.minMatch)if(e=this.ctTally(this._strStart-this._matchStart,this._matchLength-m.minMatch),this._lookahead-=this._matchLength,this._matchLength<=this._maxLazyMatch){this._matchLength--;do{this._strStart++,this.insertString()}while(0!=--this._matchLength);this._strStart++}else this._strStart+=this._matchLength,this._matchLength=0,this._insH=255&this._window[this._strStart],this._insH=(this._insH<<m.hShift^255&this._window[this._strStart+1])&m.hashMask;else e=this.ctTally(0,255&this._window[this._strStart]),this._lookahead--,this._strStart++;e&&(this.flushBlock(0),this._blockStart=this._strStart);while(this._lookahead<m.minLookahead&&!this._eoFile)this.fillWindow()}},S.prototype.deflateBetter=function(){while(0!=this._lookahead&&null==this._qHead){if(this.insertString(),this._prevLength=this._matchLength,this._prevMatch=this._matchStart,this._matchLength=m.minMatch-1,this._hashHead!=m.nil&&this._prevLength<this._maxLazyMatch&&this._strStart-this._hashHead<=m.maxDist&&(this._matchLength=this.longestMatch(this._hashHead),this._matchLength>this._lookahead&&(this._matchLength=this._lookahead),this._matchLength==m.minMatch)&&this._strStart-this._matchStart>m.tooFar&&this._matchLength--,this._prevLength>=m.minMatch&&this._matchLength<=this._prevLength){var e=this.ctTally(this._strStart-1-this._prevMatch,this._prevLength-m.minMatch);this._lookahead-=this._prevLength-1,this._prevLength-=2;do{this._strStart++,this.insertString()}while(0!=--this._prevLength);this._matchAvailable=0,this._matchLength=m.minMatch-1,this._strStart++,e&&(this.flushBlock(0),this._blockStart=this._strStart)}else 0!=this._matchAvailable?this.ctTally(0,255&this._window[this._strStart-1])&&(this.flushBlock(0),this._blockStart=this._strStart):this._matchAvailable=1,this._strStart++,this._lookahead--;while(this._lookahead<m.minLookahead&&!this._eoFile)this.fillWindow()}},S.prototype.initDeflate=function(){if(this._eoFile)return;this._biBuffer=0,this._biValid=0,this.ctInit(),this.lmInit(),this._qHead=null,this._outCount=0,this._outOffset=0,this._matchAvailable=0,this._compressLevel<=3?(this._prevLength=m.minMatch-1,this._matchLength=0):(this._matchLength=m.minMatch-1,this._matchAvailable=0,this._matchAvailable=0),this._complete=!1},S.prototype.deflateInternal=function(e,t,i){var o;if(!this._initFlag&&(this.initDeflate(),this._initFlag=!0,0==this._lookahead))return this._complete=!0,0;if((o=this.qCopy(e,t,i))==i)return i;if(this._complete)return o;return this._compressLevel<=3?this.deflateFast():this.deflateBetter(),0==this._lookahead&&(0!=this._matchAvailable&&this.ctTally(0,255&this._window[this._strStart-1]),this.flushBlock(1),this._complete=!0),o+this.qCopy(e,o+t,i-o)},S.prototype.qCopy=function(e,t,i){var o=0,a,s,n;while(null!=this._qHead&&o<i){for((a=i-o)>this._qHead.length&&(a=this._qHead.length),s=0;s<a;s++)e[t+o+s]=this._qHead.ptr[this._qHead.offset+s];this._qHead.offset+=a,this._qHead.length-=a,o+=a,0==this._qHead.length&&(n=this._qHead,this._qHead=this._qHead.next,this.reuseQueue(n))}if(o==i)return o;if(this._outOffset<this._outCount){for((a=i-o)>this._outCount-this._outOffset&&(a=this._outCount-this._outOffset),s=0;s<a;s++)e[t+o+s]=this._outBuffer[this._outOffset+s];this._outOffset+=a,o+=a,this._outCount==this._outOffset&&(this._outCount=this._outOffset=0)}return o},S.prototype.ctInit=function(){var e,t;if(0!=this._staticDtree[0].dl)return;this._lDesc.dynamicTree=this._dynamicLtree,this._lDesc.staticTree=this._staticLtree,this._lDesc.extraBits=m.extraLBits,this._lDesc.extraBase=m.literals+1,this._lDesc.elements=m.lCodes,this._lDesc.maxLength=m.maxBits,this._lDesc.maxCode=0,this._dDesc.dynamicTree=this._dynamicDtree,this._dDesc.staticTree=this._staticDtree,this._dDesc.extraBits=m.extraDBits,this._dDesc.extraBase=0,this._dDesc.elements=m.dCodes,this._dDesc.maxLength=m.maxBits,this._dDesc.maxCode=0,this._blDesc.dynamicTree=this._blTree,this._blDesc.staticTree=null,this._blDesc.extraBits=m.extraBLBits,this._blDesc.extraBase=0,this._blDesc.elements=m.blCodes,this._blDesc.maxLength=m.maxBLBits,this._blDesc.maxCode=0;for(var i=0,t=0;t<m.lengthCodes-1;t++)for(this._baseLength[t]=i,e=0;e<1<<m.extraLBits[t];e++)this._lengthCode[i++]=t;this._lengthCode[i-1]=t;var o=0;for(t=0;t<16;t++)for(this._baseDist[t]=o,e=0;e<1<<m.extraDBits[t];e++)this._distCode[o++]=t;for(o>>=7;t<m.dCodes;t++)for(this._baseDist[t]=o<<7,e=0;e<1<<m.extraDBits[t]-7;e++)this._distCode[256+o++]=t;for(var a=0;a<=m.maxBits;a++)this._blCount[a]=0;e=0;while(e<=143)this._staticLtree[e++].dl=8,this._blCount[8]++;while(e<=255)this._staticLtree[e++].dl=9,this._blCount[9]++;while(e<=279)this._staticLtree[e++].dl=7,this._blCount[7]++;while(e<=287)this._staticLtree[e++].dl=8,this._blCount[8]++;for(this.genCodes(this._staticLtree,m.lCodes+1),e=0;e<m.dCodes;e++)this._staticDtree[e].dl=5,this._staticDtree[e].fc=this.biReverse(e,5);this.initBlock()},S.prototype.initBlock=function(){for(var e,e=0;e<m.lCodes;e++)this._dynamicLtree[e].fc=0;for(e=0;e<m.dCodes;e++)this._dynamicDtree[e].fc=0;for(e=0;e<m.blCodes;e++)this._blTree[e].fc=0;this._dynamicLtree[m.endBlock].fc=1,this._optLen=this._staticLen=0,this._lastLit=this._lastDist=this._lastFlags=0,this._flags=0,this._flagBit=1},S.prototype.pqDownHeap=function(e,t){var i=this._heap[t],o=t<<1;while(o<=this._heapLen){if(o<this._heapLen&&this.smaller(e,this._heap[o+1],this._heap[o])&&o++,this.smaller(e,i,this._heap[o]))break;this._heap[t]=this._heap[o],t=o,o<<=1}this._heap[t]=i},S.prototype.genBitLength=function(e){for(var t=e.dynamicTree,i=e.extraBits,o=e.extraBase,a=e.maxCode,s=e.maxLength,n=e.staticTree,l,r,A,p,c,g,h=0,p=0;p<=m.maxBits;p++)this._blCount[p]=0;for(t[this._heap[this._heapMax]].dl=0,l=this._heapMax+1;l<m.heapSize;l++){if(s<(p=t[t[r=this._heap[l]].dl].dl+1)&&(p=s,h++),t[r].dl=p,a<r)continue;this._blCount[p]++,c=0,o<=r&&(c=i[r-o]),g=t[r].fc,this._optLen+=g*(p+c),null!=n&&(this._staticLen+=g*(n[r].dl+c))}if(0==h)return;do{p=s-1;while(0==this._blCount[p])p--;this._blCount[p]--,this._blCount[p+1]+=2,this._blCount[s]--,h-=2}while(0<h);for(p=s;0!=p;p--){r=this._blCount[p];while(0!=r){if(a<(A=this._heap[--l]))continue;t[A].dl!=p&&(this._optLen+=(p-t[A].dl)*t[A].fc,t[A].fc=p),r--}}},S.prototype.genCodes=function(e,t){for(var i=new Array(m.maxBits+1),o=0,a=1;a<=m.maxBits;a++)o=o+this._blCount[a-1]<<1,i[a]=o;for(var s=0;s<=t;s++){var n=e[s].dl;if(0==n)continue;e[s].fc=this.biReverse(i[n]++,n)}},S.prototype.buildTree=function(e){var t=e.dynamicTree,i=e.staticTree,o=e.elements,a,s,n=-1,l=o;for(this._heapLen=0,this._heapMax=m.heapSize,a=0;a<o;a++)0!=t[a].fc?(this._heap[++this._heapLen]=n=a,this._depth[a]=0):t[a].dl=0;while(this._heapLen<2){var r=this._heap[++this._heapLen]=n<2?++n:0;t[r].fc=1,this._depth[r]=0,this._optLen--,null!=i&&(this._staticLen-=i[r].dl)}for(e.maxCode=n,a=this._heapLen>>1;1<=a;a--)this.pqDownHeap(t,a);do{a=this._heap[m.smallest],this._heap[m.smallest]=this._heap[this._heapLen--],this.pqDownHeap(t,m.smallest),s=this._heap[m.smallest],this._heap[--this._heapMax]=a,this._heap[--this._heapMax]=s,t[l].fc=t[a].fc+t[s].fc,this._depth[a]>this._depth[s]+1?this._depth[l]=this._depth[a]:this._depth[l]=this._depth[s]+1,t[a].dl=t[s].dl=l,this._heap[m.smallest]=l++,this.pqDownHeap(t,m.smallest)}while(2<=this._heapLen);this._heap[--this._heapMax]=this._heap[m.smallest],this.genBitLength(e),this.genCodes(t,n)},S.prototype.scanTree=function(e,t){var i=-1,o,a=e[0].dl,s=0,n=4,l=7;0==a&&(n=3,l=138),e[t+1].dl=65535;for(var r=0;r<=t;r++){if(o=a,a=e[r+1].dl,++s<l&&o==a)continue;s<n?this._blTree[o].fc+=s:0!=o?(o!=i&&this._blTree[o].fc++,this._blTree[m.rep_3_6].fc++):s<=10?this._blTree[m.repz_3_10].fc++:this._blTree[m.repz_11_138].fc++,i=o,l=(s=0)==a?(n=3,138):o==a?(n=3,6):(n=4,7)}},S.prototype.sendTree=function(e,t){var i=-1,o,a=e[0].dl,s=0,n=4,l=7;0==a&&(n=3,l=138);for(var r=0;r<=t;r++){if(o=a,a=e[r+1].dl,++s<l&&o==a)continue;if(s<n)do{this.sendCode(o,this._blTree)}while(0!=--s);else 0!=o?(o!=i&&(this.sendCode(o,this._blTree),s--),this.sendCode(m.rep_3_6,this._blTree),this.sendBits(s-3,2)):s<=10?(this.sendCode(m.repz_3_10,this._blTree),this.sendBits(s-3,3)):(this.sendCode(m.repz_11_138,this._blTree),this.sendBits(s-11,7));i=o,l=(s=0)==a?(n=3,138):o==a?(n=3,6):(n=4,7)}},S.prototype.buildBlTree=function(){var e;for(this.scanTree(this._dynamicLtree,this._lDesc.maxCode),this.scanTree(this._dynamicDtree,this._dDesc.maxCode),this.buildTree(this._blDesc),e=m.blCodes-1;3<=e;e--)if(0!=this._blTree[m.blOrder[e]].dl)break;return this._optLen+=3*(e+1)+5+5+4,e},S.prototype.sendAllTrees=function(e,t,i){this.sendBits(e-257,5),this.sendBits(t-1,5),this.sendBits(i-4,4);for(var o=0;o<i;o++)this.sendBits(this._blTree[m.blOrder[o]].dl,3);this.sendTree(this._dynamicLtree,e-1),this.sendTree(this._dynamicDtree,t-1)},S.prototype.flushBlock=function(e){var t=this._strStart-this._blockStart,i=(this._flagBuf[this._lastFlags]=this._flags,this.buildTree(this._lDesc),this.buildTree(this._dDesc),this.buildBlTree()),o=this._optLen+3+7>>3,a=this._staticLen+3+7>>3;if(t+4<=(o=a<=o?a:o)&&0<=this._blockStart){this.sendBits((m.storedBlock<<1)+e,3),this.biWindup(),this.putShort(t),this.putShort(~t);for(var s=0;s<t;s++)this.putByte(this._window[this._blockStart+s])}else a==o?(this.sendBits((m.staticTrees<<1)+e,3),this.compressBlock(this._staticLtree,this._staticDtree)):(this.sendBits((m.dynamicTrees<<1)+e,3),this.sendAllTrees(this._lDesc.maxCode+1,this._dDesc.maxCode+1,i+1),this.compressBlock(this._dynamicLtree,this._dynamicDtree));this.initBlock(),0!=e&&this.biWindup()},S.prototype.ctTally=function(e,t){if(this._lBuffer[this._lastLit++]=t,0==e?this._dynamicLtree[t].fc++:(e--,this._dynamicLtree[this._lengthCode[t]+m.literals+1].fc++,this._dynamicDtree[this.dCode(e)].fc++,this._dBuffer[this._lastDist++]=e,this._flags|=this._flagBit),this._flagBit<<=1,0==(7&this._lastLit)&&(this._flagBuf[this._lastFlags++]=this._flags,this._flags=0,this._flagBit=1),2<this._compressLevel&&0==(4095&this._lastLit)){for(var i=8*this._lastLit,o=this._strStart-this._blockStart,a=0;a<m.dCodes;a++)i+=this._dynamicDtree[a].fc*(5+m.extraDBits[a]);if(i>>=3,this._lastDist<parseInt((this._lastLit/2).toString())&&i<parseInt((o/2).toString()))return!0}return this._lastLit==m.litBufferSize-1||this._lastDist==m.distBufferSize},S.prototype.compressBlock=function(e,t){var i=0,o=0,a=0,s=0,n,l,r,A;if(0!=this._lastLit)do{0==(7&i)&&(s=this._flagBuf[a++]),n=255&this._lBuffer[i++],0==(1&s)?this.sendCode(n,e):(l=this._lengthCode[n],this.sendCode(l+m.literals+1,e),0!=(r=m.extraLBits[l])&&(n-=this._baseLength[l],this.sendBits(n,r)),A=this._dBuffer[o++],l=this.dCode(A),this.sendCode(l,t),0!=(r=m.extraDBits[l])&&(A-=this._baseDist[l],this.sendBits(A,r))),s>>=1}while(i<this._lastLit);this.sendCode(m.endBlock,e)},S.prototype.sendBits=function(e,t){this._biValid>m.bufferSize-t?(this._biBuffer|=e<<this._biValid,this.putShort(this._biBuffer),this._biBuffer=e>>m.bufferSize-this._biValid,this._biValid+=t-m.bufferSize):(this._biBuffer|=e<<this._biValid,this._biValid+=t)},S.prototype.biReverse=function(e,t){var i=0;do{i|=1&e,e>>=1,i<<=1}while(0<--t);return i>>1},S.prototype.biWindup=function(){8<this._biValid?this.putShort(this._biBuffer):0<this._biValid&&this.putByte(this._biBuffer),this._biBuffer=0,this._biValid=0},S.prototype.qOutBuffer=function(){if(0!=this._outCount){var e=this.newQueue();null==this._qHead?this._qHead=this._qTail=e:this._qTail=this._qTail.next=e,e.length=this._outCount-this._outOffset;for(var t=0;t<e.length;t++)e.ptr[t]=this._outBuffer[this._outOffset+t];this._outCount=this._outOffset=0}},S.prototype.deflate=function(e,t){var i,o=(void 0===t&&(t=m.defaultLevel),this._deflateData=e,this._deflatePos=0,this.deflateStart(t),new Array(1024)),a=[];while(0<(i=this.deflateInternal(o,0,o.length)))for(var s=0;s<i;s++)a[a.length]=o[s];return this._deflateData=null,a},S.prototype.getByte=function(){if(this._inflateData.length==this._inflatePos)return-1;return 255&this._inflateData[this._inflatePos++]},S.prototype.needBits=function(e){while(this._bitLength<e)this._bitBuffer|=this.getByte()<<this._bitLength,this._bitLength+=8},S.prototype.getBits=function(e){return this._bitBuffer&m.maskBits[e]},S.prototype.dumpBits=function(e){this._bitBuffer>>=e,this._bitLength-=e},S.prototype.inflateCodes=function(e,t,i){var o,a,s=0;if(0==i)return 0;for(;;){this.needBits(this._bl),o=(a=this._tl.list[this.getBits(this._bl)]).e;while(16<o){if(99==o)return-1;this.dumpBits(a.b),o-=16,this.needBits(o),o=(a=a.t[this.getBits(o)]).e}if(this.dumpBits(a.b),16==o){if(this._wp&=m.wSize-1,e[t+s++]=this._slide[this._wp++]=a.n,s==i)return i;continue}if(15==o)break;this.needBits(o),this._copyLength=a.n+this.getBits(o),this.dumpBits(o),this.needBits(this._bd),o=(a=this._td.list[this.getBits(this._bd)]).e;while(16<o){if(99==o)return-1;this.dumpBits(a.b),o-=16,this.needBits(o),o=(a=a.t[this.getBits(o)]).e}this.dumpBits(a.b),this.needBits(o),this._copyDist=this._wp-a.n-this.getBits(o),this.dumpBits(o);while(0<this._copyLength&&s<i)this._copyLength--,this._copyDist&=m.wSize-1,this._wp&=m.wSize-1,e[t+s++]=this._slide[this._wp++]=this._slide[this._copyDist++];if(s==i)return i}return this._method=-1,s},S.prototype.inflateStored=function(e,t,i){var o=7&this._bitLength;if(this.dumpBits(o),this.needBits(16),o=this.getBits(16),this.dumpBits(16),this.needBits(16),o!=(65535&~this._bitBuffer))return-1;this.dumpBits(16),this._copyLength=o,o=0;while(0<this._copyLength&&o<i)this._copyLength--,this._wp&=m.wSize-1,this.needBits(8),e[t+o++]=this._slide[this._wp++]=this.getBits(8),this.dumpBits(8);return 0==this._copyLength&&(this._method=-1),o},S.prototype.inflateFixed=function(e,t,i){if(null==this._fixedTL){for(var o=void 0,a=new Array(288),o=0;o<144;o++)a[o]=8;for(;o<256;o++)a[o]=9;for(;o<280;o++)a[o]=7;for(;o<288;o++)a[o]=8;this._fixedBL=7;var s=new u(a,288,257,m.cplens,m.cplext,this._fixedBL);if(0!=s.status)throw"Error: "+s.status;for(this._fixedTL=s.root,this._fixedBL=s.m,o=0;o<30;o++)a[o]=5;if(this._fixedBD=5,1<(s=new u(a,30,0,m.cpdist,m.cpdext,this._fixedBD)).status)throw this._fixedTL=null,"Error: "+s.status;this._fixedTD=s.root,this._fixedBD=s.m}return this._tl=this._fixedTL,this._td=this._fixedTD,this._bl=this._fixedBL,this._bd=this._fixedBD,this.inflateCodes(e,t,i)},S.prototype.inflateDynamic=function(e,t,i){for(var o,a,s=new Array(286+30),o=0;o<s.length;o++)s[o]=0;this.needBits(5);var n=257+this.getBits(5),l=(this.dumpBits(5),this.needBits(5),1+this.getBits(5)),r=(this.dumpBits(5),this.needBits(4),4+this.getBits(4));if(this.dumpBits(4),286<n||30<l)return-1;for(a=0;a<r;a++)this.needBits(3),s[m.border[a]]=this.getBits(3),this.dumpBits(3);for(;a<19;a++)s[m.border[a]]=0;this._bl=7;var A=new u(s,19,19,null,null,this._bl);if(0!=A.status)return-1;this._tl=A.root,this._bl=A.m;var p=n+l,c=o=0,g;while(o<p)if(this.needBits(this._bl),a=(g=this._tl.list[this.getBits(this._bl)]).b,this.dumpBits(a),(a=g.n)<16)s[o++]=c=a;else if(16==a){if(this.needBits(2),a=3+this.getBits(2),this.dumpBits(2),p<o+a)return-1;while(0<a--)s[o++]=c}else{if(17==a){if(this.needBits(3),a=3+this.getBits(3),this.dumpBits(3),p<o+a)return-1}else if(this.needBits(7),a=11+this.getBits(7),this.dumpBits(7),p<o+a)return-1;while(0<a--)s[o++]=0;c=0}if(this._bl=m.lBits,A=new u(s,n,257,m.cplens,m.cplext,this._bl),0==this._bl&&(A.status=1),0!=A.status)return-1;for(this._tl=A.root,this._bl=A.m,o=0;o<l;o++)s[o]=s[o+n];if(this._bd=m.dBits,A=new u(s,l,0,m.cpdist,m.cpdext,this._bd),this._td=A.root,this._bd=A.m,0==this._bd&&257<n)return-1;if(0!=A.status)return-1;return this.inflateCodes(e,t,i)},S.prototype.inflateStart=function(){null==this._slide&&(this._slide=new Array(2*m.wSize)),this._wp=0,this._bitBuffer=0,this._bitLength=0,this._method=-1,this._eof=!1,this._copyLength=0,this._copyDist=0,this._tl=null},S.prototype.inflateInternal=function(e,t,i){var o=0;while(o<i){if(this._eof&&-1==this._method)return o;if(0<this._copyLength){if(this._method!=m.storedBlock)while(0<this._copyLength&&o<i)this._copyLength--,this._copyDist&=m.wSize-1,this._wp&=m.wSize-1,e[t+o++]=this._slide[this._wp++]=this._slide[this._copyDist++];else{while(0<this._copyLength&&o<i)this._copyLength--,this._wp&=m.wSize-1,this.needBits(8),e[t+o++]=this._slide[this._wp++]=this.getBits(8),this.dumpBits(8);0==this._copyLength&&(this._method=-1)}if(o==i)return o}if(-1==this._method){if(this._eof)break;this.needBits(1),0!=this.getBits(1)&&(this._eof=!0),this.dumpBits(1),this.needBits(2),this._method=this.getBits(2),this.dumpBits(2),this._tl=null,this._copyLength=0}var a=void 0;switch(this._method){case 0:a=this.inflateStored(e,t+o,i-o);break;case 1:a=null!=this._tl?this.inflateCodes(e,t+o,i-o):this.inflateFixed(e,t+o,i-o);break;case 2:a=null!=this._tl?this.inflateCodes(e,t+o,i-o):this.inflateDynamic(e,t+o,i-o);break;default:a=-1;break}if(-1==a){if(this._eof)return 0;return-1}o+=a}return o},S.prototype.inflate=function(e){var t,i,o=(this._inflateData=e,this._inflatePos=0,this.inflateStart(),new Array(1024)),a=[];while(0<(t=this.inflateInternal(o,0,o.length)))for(i=0;i<t;i++)a[a.length]=o[i];return this._inflateData=null,a},e.Helper=S,(n=b=b||{})[n["FText"]=1]="FText",n[n["FHcrc"]=2]="FHcrc",n[n["FExtra"]=4]="FExtra",n[n["FName"]=8]="FName",n[n["FComment"]=16]="FComment",Object.defineProperty(h,"crcTable",{get:function(){if(null==this._crcTable){this._crcTable=new Array(256);for(var e=void 0,t=0;t<256;t++){for(var e=t,i=0;i<8;i++)e=0!=(1&e)?3988292384^e>>>1:e>>>1;this._crcTable[t]=e}}return this._crcTable},enumerable:!0,configurable:!0}),h.crc32=function(e){for(var t=0^-1,i=0;i<e.length;i++)t=t>>>8^this.crcTable[255&(t^e[i])];return(-1^t)>>>0},h.putByte=function(e,t){t.push(255&e)},h.putShort=function(e,t){t.push(255&e),t.push(e>>>8)},h.putLong=function(e,t){h.putShort(65535&e,t),h.putShort(e>>>16,t)},h.putString=function(e,t){for(var i=0;i<e.length;i+=1)h.putByte(e.charCodeAt(i),t)},h.readByte=function(e){return e.shift()},h.readShort=function(e){return e.shift()|e.shift()<<8},h.readLong=function(e){var t=h.readShort(e),i=h.readShort(e);if(32768<i)return((i-=32768)<<16|t)+32768*Math.pow(2,16);return i<<16|t},h.readString=function(e){var t=[];while(0!==e[0])t.push(String.fromCharCode(e.shift()));return e.shift(),t.join("")},h.readBytes=function(e,t){for(var i=[],o=0;o<t;o+=1)i.push(e.shift());return i},h.pack=function(e,t){if(null==e||void 0===e)return null;var i=0,o=[],a=e,s=("string"==typeof e&&(a=Array.prototype.map.call(unescape(encodeURIComponent(e)),function(e){return e.charCodeAt(0)})),h.putByte(h.ID1,o),h.putByte(h.ID2,o),h.putByte(h.DefaultMethod,o),void 0!==t&&null!=t&&""!=t&&(i|=b.FName),h.putByte(i,o),h.putLong(parseInt((Date.now()/1e3).toString(),10),o),h.putByte(1==h.DefaultLevel?4:9==h.DefaultLevel?2:0,o),-1!=navigator.appVersion.indexOf("Win")?h.putByte(11,o):h.putByte(3,o),void 0!==t&&null!=t&&""!=t&&(h.putString(t.substring(t.lastIndexOf("/")+1),o),h.putByte(0,o)),d.Helper.deflate(a,h.DefaultLevel).forEach(function(e){h.putByte(e,o)}),h.putLong(h.crc32(a),o),h.putLong(a.length,o),new Uint8Array(o));e="";for(var n=0;n<s.byteLength;n++)e+=String.fromCharCode(s[n]);return window.btoa(e)},h.unpack=function(e){var t=e,i,t,o=("string"==typeof e&&(i=window&&window.atob?window.atob(e.split("\r\n").join("\n").split("\n").join("")):StiBase64.decode(e),t=Array.prototype.map.call(i,function(e){return e.charCodeAt(0)})),h.readByte(t)!==h.ID1||h.readByte(t)!==h.ID2?alert("The stream is not a GZip file"):8!==h.readByte(t)&&alert("Unsupported GZip compression method"),h.readByte(t)),a=h.readLong(t),s=h.readByte(t),n=h.readByte(t),l,r=(o&b.FExtra&&(l=h.readShort(t),h.readBytes(t,l)),o&b.FName&&h.readString(t),o&b.FComment&&h.readString(t),o&b.FHcrc&&h.readShort(t),d.Helper.inflate(t.splice(0,t.length-8)));if(h.readLong(t)!==h.crc32(r)&&alert("GZip checksum does not match"),h.readLong(t)!==r.length&&alert("Size of GZip decompressed file not correct"),Array.isArray(e))return r;for(var A="",p=0,c=r;p<c.length;p++){var g=c[p];A+=String.fromCharCode(g)}return decodeURIComponent(escape(A))},h.DefaultLevel=6,h.DefaultMethod=8,h.ID1=31,h.ID2=139,h._crcTable=null,h})(),hexcase=0;function hex_md5(e){return rstr2hex(rstr_md5(str2rstr_utf8(e)))}function hex_hmac_md5(e,t){return rstr2hex(rstr_hmac_md5(str2rstr_utf8(e),str2rstr_utf8(t)))}function md5_vm_test(){return"900150983cd24fb0d6963f7d28e17f72"==hex_md5("abc").toLowerCase()}function rstr_md5(e){return binl2rstr(binl_md5(rstr2binl(e),8*e.length))}function rstr_hmac_md5(e,t){for(var i=rstr2binl(e),o=(16<i.length&&(i=binl_md5(i,8*e.length)),Array(16)),a=Array(16),s=0;s<16;s++)o[s]=909522486^i[s],a[s]=1549556828^i[s];var n=binl_md5(o.concat(rstr2binl(t)),512+8*t.length);return binl2rstr(binl_md5(a.concat(n),512+128))}function rstr2hex(e){try{}catch(e){hexcase=0}for(var t=hexcase?"0123456789ABCDEF":"0123456789abcdef",i="",o,a=0;a<e.length;a++)o=e.charCodeAt(a),i+=t.charAt(o>>>4&15)+t.charAt(15&o);return i}function str2rstr_utf8(e){var t="",i=-1,o,a;while(++i<e.length)o=e.charCodeAt(i),a=i+1<e.length?e.charCodeAt(i+1):0,55296<=o&&o<=56319&&56320<=a&&a<=57343&&(o=65536+((1023&o)<<10)+(1023&a),i++),o<=127?t+=String.fromCharCode(o):o<=2047?t+=String.fromCharCode(192|o>>>6&31,128|63&o):o<=65535?t+=String.fromCharCode(224|o>>>12&15,128|o>>>6&63,128|63&o):o<=2097151&&(t+=String.fromCharCode(240|o>>>18&7,128|o>>>12&63,128|o>>>6&63,128|63&o));return t}function rstr2binl(e){for(var t=Array(e.length>>2),i=0;i<t.length;i++)t[i]=0;for(var i=0;i<8*e.length;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}function binl2rstr(e){for(var t="",i=0;i<32*e.length;i+=8)t+=String.fromCharCode(e[i>>5]>>>i%32&255);return t}function binl_md5(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;for(var i=1732584193,o=-271733879,a=-1732584194,s=271733878,n=0;n<e.length;n+=16){var l=i,r=o,A=a,p=s,i=md5_ff(i,o,a,s,e[n+0],7,-680876936),s=md5_ff(s,i,o,a,e[n+1],12,-389564586),a=md5_ff(a,s,i,o,e[n+2],17,606105819),o=md5_ff(o,a,s,i,e[n+3],22,-1044525330);i=md5_ff(i,o,a,s,e[n+4],7,-176418897),s=md5_ff(s,i,o,a,e[n+5],12,1200080426),a=md5_ff(a,s,i,o,e[n+6],17,-1473231341),o=md5_ff(o,a,s,i,e[n+7],22,-45705983),i=md5_ff(i,o,a,s,e[n+8],7,1770035416),s=md5_ff(s,i,o,a,e[n+9],12,-1958414417),a=md5_ff(a,s,i,o,e[n+10],17,-42063),o=md5_ff(o,a,s,i,e[n+11],22,-1990404162),i=md5_ff(i,o,a,s,e[n+12],7,1804603682),s=md5_ff(s,i,o,a,e[n+13],12,-40341101),a=md5_ff(a,s,i,o,e[n+14],17,-1502002290),i=md5_gg(i,o=md5_ff(o,a,s,i,e[n+15],22,1236535329),a,s,e[n+1],5,-165796510),s=md5_gg(s,i,o,a,e[n+6],9,-1069501632),a=md5_gg(a,s,i,o,e[n+11],14,643717713),o=md5_gg(o,a,s,i,e[n+0],20,-373897302),i=md5_gg(i,o,a,s,e[n+5],5,-701558691),s=md5_gg(s,i,o,a,e[n+10],9,38016083),a=md5_gg(a,s,i,o,e[n+15],14,-660478335),o=md5_gg(o,a,s,i,e[n+4],20,-405537848),i=md5_gg(i,o,a,s,e[n+9],5,568446438),s=md5_gg(s,i,o,a,e[n+14],9,-1019803690),a=md5_gg(a,s,i,o,e[n+3],14,-187363961),o=md5_gg(o,a,s,i,e[n+8],20,1163531501),i=md5_gg(i,o,a,s,e[n+13],5,-1444681467),s=md5_gg(s,i,o,a,e[n+2],9,-51403784),a=md5_gg(a,s,i,o,e[n+7],14,1735328473),i=md5_hh(i,o=md5_gg(o,a,s,i,e[n+12],20,-1926607734),a,s,e[n+5],4,-378558),s=md5_hh(s,i,o,a,e[n+8],11,-2022574463),a=md5_hh(a,s,i,o,e[n+11],16,1839030562),o=md5_hh(o,a,s,i,e[n+14],23,-35309556),i=md5_hh(i,o,a,s,e[n+1],4,-1530992060),s=md5_hh(s,i,o,a,e[n+4],11,1272893353),a=md5_hh(a,s,i,o,e[n+7],16,-155497632),o=md5_hh(o,a,s,i,e[n+10],23,-1094730640),i=md5_hh(i,o,a,s,e[n+13],4,681279174),s=md5_hh(s,i,o,a,e[n+0],11,-358537222),a=md5_hh(a,s,i,o,e[n+3],16,-722521979),o=md5_hh(o,a,s,i,e[n+6],23,76029189),i=md5_hh(i,o,a,s,e[n+9],4,-640364487),s=md5_hh(s,i,o,a,e[n+12],11,-421815835),a=md5_hh(a,s,i,o,e[n+15],16,530742520),i=md5_ii(i,o=md5_hh(o,a,s,i,e[n+2],23,-995338651),a,s,e[n+0],6,-198630844),s=md5_ii(s,i,o,a,e[n+7],10,1126891415),a=md5_ii(a,s,i,o,e[n+14],15,-1416354905),o=md5_ii(o,a,s,i,e[n+5],21,-57434055),i=md5_ii(i,o,a,s,e[n+12],6,1700485571),s=md5_ii(s,i,o,a,e[n+3],10,-1894986606),a=md5_ii(a,s,i,o,e[n+10],15,-1051523),o=md5_ii(o,a,s,i,e[n+1],21,-2054922799),i=md5_ii(i,o,a,s,e[n+8],6,1873313359),s=md5_ii(s,i,o,a,e[n+15],10,-30611744),a=md5_ii(a,s,i,o,e[n+6],15,-1560198380),o=md5_ii(o,a,s,i,e[n+13],21,1309151649),i=md5_ii(i,o,a,s,e[n+4],6,-145523070),s=md5_ii(s,i,o,a,e[n+11],10,-1120210379),a=md5_ii(a,s,i,o,e[n+2],15,718787259),o=md5_ii(o,a,s,i,e[n+9],21,-343485551),i=safe_add(i,l),o=safe_add(o,r),a=safe_add(a,A),s=safe_add(s,p)}return Array(i,o,a,s)}function md5_cmn(e,t,i,o,a,s){return safe_add(bit_rol(safe_add(safe_add(t,e),safe_add(o,s)),a),i)}function md5_ff(e,t,i,o,a,s,n){return md5_cmn(t&i|~t&o,e,t,a,s,n)}function md5_gg(e,t,i,o,a,s,n){return md5_cmn(t&o|i&~o,e,t,a,s,n)}function md5_hh(e,t,i,o,a,s,n){return md5_cmn(t^i^o,e,t,a,s,n)}function md5_ii(e,t,i,o,a,s,n){return md5_cmn(i^(t|~o),e,t,a,s,n)}function safe_add(e,t){var i=(65535&e)+(65535&t),o;return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function bit_rol(e,t){return e<<t|e>>>32-t}function stiTreeNode(e,t,i,o,a,s){if(i&&stiTree.prototype.checkXSSEvents(i)||o&&stiTree.prototype.checkXSSEvents(o))return;this.i