/*! For license information please see common.f37c007b78668a36af6a.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{105:function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(4),o=n(325),s=n(14),a=n(22);n(89);var l=r.RetryModel.extend({retryCode:ST.AJAXCODE.TOKEN_LOGIN_RETRY}),u=r.Model.extend({url:ST.ACTION.USER_GETINFO,defaults:{userId:"",userPassport:"盛天用户",displayPassport:"盛天用户",nickName:null,userEmail:"",mobile:"",ipAddress:"",status:1,icon:"https://register.stnts.com/Public/resource/images/male.jpg",loginToken:0,fileToken:null,userQuota:10737418240,userQuotaUsed:0,createTime:"2015-08-28 10:44:08",updateTime:"2015-10-15 13:30:48",rootDirId:0,forbid:ST.FORBID||[],enterInfo:{},ucInfo:{}},initialize:function(){},getDisplayName:function(){return this.get("nickName")||this.get("displayPassport")||this.get("userPassport")},checkUser:function(){var t=this.get("ucInfo"),e=this.get("userId"),n=t.UID;return n&&n===e},getInfo:function(t){var e=this;return this.fetch(t).success((function(t){var n=((t||{}).data||{}).icon;e.set("icon",n)}))},getHiddenInfo:function(){return this.fetch({url:ST.ACTION.USER_GET_HIDDEN_INFO})},ready:function(){var t=this;return new o((function(e){t.get("privilege")&&void 0!==t.get("hasL2Pwd")?e(!0):setTimeout((function(){t.ready().then((function(){return e(!0)}))}),100)}))},userInfoReady:function(){var t=this;return new o((function(e){t.get("userId")?e(!0):setTimeout((function(){t.userInfoReady().then((function(){return e(!0)}))}),100)}))},checkL2PasswordSet:function(){var t=this;return new o((function(e){t.get("hasL2Pwd")?e(!0):t.getHiddenInfo().then((function(t){t&&t.data&&t.data.hasL2Pwd?e(!0):e(!1)}))}))},getUpgradeInfo:function(){return this.fetch({url:ST.ACTION.PAY_GET_VIP_UPGRADE_INFO})},switchHiddenMode:function(t){return this.ajax({url:ST.ACTION.SWITCH_HIDDEN_MODE,data:t})},updateInfo:function(){return this.getInfo().success(s.bind((function(t){this.trigger("update:info:success",t)}),this)).error(s.bind((function(t){a.log("update info failed:",t),this.trigger("update:info:error",t)}),this))},updateEnterInfo:function(){var t=this.get("enterInfo");return this.ajax({url:ST.ACTION.LOGIN_GETUCTOKEN,data:t,success:s.bind((function(e){var n=(e=e||{}).data||{};this.set("enterInfo",{app_id:n.appId||t.app_id,timestamp:n.timestamp||t.timestamp,sign:n.sign||t.sign}),this.trigger("update:enterInfo:success",e)}),this),error:s.bind((function(t){a.log("update enter info failed:",t),this.trigger("update:enterInfo:error",t)}),this)})},getSsoEnterInfo:function(){return this.ajax({url:ST.ACTION.SSO_GET_ENTER_INFO,success:s.bind((function(t){var e=(t=t||{}).data||{};this.set("enterInfo",{app_id:e.appId,timestamp:e.timestamp,sign:e.sign}),this.trigger("get:enterInfo:success",t)}),this),error:s.bind((function(t){this.trigger("get:enterInfo:error",t)}),this)})},ssoLoginByUC:function(t){var e=this;if("object"===i(t)){var n={token:t.TOKEN,uid:t.UID};return this.ajax({url:ST.ACTION.SSO_LOGIN_BY_UC,data:n,success:function(t){e.trigger("login:success",t)},error:function(t){e.trigger("login:error",t)}})}},jumpToUC:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"account",e=this,n=window.open();return n.blur(),this.ajax({url:ST.ACTION.SSO_GET_JUMP_UC,data:{uid:e.get("userId"),type:t},success:function(t){var e=t.data;e.redirect_url=decodeURIComponent(e.redirect_url),n.focus(),n.location.href="".concat(ST.ACTION.AGENT_LOGIN,"?").concat(a.param(e))},error:function(){n.close()}})},checkLoginStatus:function(){if(this.get("enterInfo")){var t=function(t){this.trigger("nologin",t)};return this.ssoLogStatus().done(s.bind((function(e){var n=(e=e||{}).status||"";if(/success/i.test(n)){var i=e.data||{};this.set("ucInfo",i),this.checkUser()?this.trigger("login:success",e):this.verifyToken()}else t.apply(this,arguments)}),this)).fail(s.bind(t,this))}},verifyToken:function(){var t=this,e=this.get("ucInfo");if(e.UID)return this.ajax({url:ST.ACTION.VERIFYTOKEN,data:{token:e.TOKEN,uid:e.UID},success:function(e){t.trigger("login:success",e)},error:function(e){t.trigger("login:error",e)}})},logout:function(){return this.ajax({url:ST.ACTION.LOGOUT,type:"POST",success:s.bind((function(t){this.trigger("logout:success",t)}),this),error:s.bind((function(t){a.log("logout failed:",t),this.trigger("logout:error",t)}),this)})},updateQuota:function(){return this.ajax({url:ST.ACTION.USER_GETQUOTA,type:"POST",success:s.bind((function(t){var e=(t||{}).data||{};this.set({userQuota:e.quota,userQuotaUsed:e.quotaUsed}),this.trigger("update:quota:success",t)}),this),error:s.bind((function(t){a.log("update quota failed:",t),this.trigger("update:quota:error",t)}),this)})},remainQuota:function(){var t=this.get("userQuota"),e=this.get("userQuotaUsed");return Math.max(t-e,0)},tokenLogin:function(t){var e=ST.DATA.logData||{},n=e.sysinfo||{},i=n.NetBar||{},r=(n.Platform||{}).ProductVersion,o=function(e){this.trigger("login:success",e),this.startTokenRefresh(!0),this.updateInfo().success((function(){t&&t.method&&a.isFunction(t.method)&&t.method.apply(t.context||this,t.args||[])}))},u=function(t,e){a.log("token login failed:",e),this.trigger("login:error",e)},c=function(t){var e=new l({url:ST.ACTION.LOGIN_TOKEN,data:t});e.once("success",o,this),e.once("failed",u,this),e.start()};if(ST.helper.compareVersion(r,"1.10.13.0")>=0){var h={token:e.token||"",uid:e.uid||"",gid:i.UserId||""};c.call(this,h)}else this.ssoLogStatus().done(s.bind((function(t){var e=(t=t||{}).status||"";if(/success/i.test(e)){var n=t.data||{},r={token:n.APITOKEN,uid:n.UID,gid:i.UserId||""};c.call(this,r)}else u.call(this,null,t)}),this))},refreshToken:function(){var t={token:this.get("loginToken"),uid:this.get("userId")};return this.ajax({url:ST.ACTION.LOGIN_TOKEN_REFRESH,data:t,type:"POST",success:s.bind((function(t){this.trigger("token:refresh:success",t)}),this),error:s.bind((function(t){a.log("token refresh failed:",t),this.trigger("token:refresh:error",t)}),this)})},startTokenRefresh:function(t){(t||ST.refreshTokenWhenUpload)&&(this.stopTokenRefresh(!0),this.$$tokenTimer=setInterval(s.bind(this.refreshToken,this),ST.refreshTokenInterval))},stopTokenRefresh:function(t){(t||ST.refreshTokenWhenUpload)&&this.$$tokenTimer&&clearInterval(this.$$tokenTimer)},hasPermission:function(t){if(!t)return!0;var e=this.get("forbid"),n=ST.MAP.PERMISSION[t];return!n||!s.contains(e,n)},updatePermission:function(){var t=this.get("forbid");return this.ajax({url:ST.ACTION.USER_GETPERMISSION,type:"POST",success:s.bind((function(e){var n=(e||{}).data||[];this.set({forbid:[].concat(n.filter,t)}),this.trigger("update:permission:success",e)}),this),error:s.bind((function(t){a.log("update permission failed:",t),this.trigger("update:permission:error",t)}),this)})},ssoLogStatus:function(){var t=this.get("enterInfo");return!!t&&a.ajax({url:ST.ACTION.SSOLOGSTATUS,data:t,dataType:"jsonp",jsonp:"stcallback"})},ssoLogin:function(t){var e=function(e){((e=e||{}).data||{}).errCode===ST.AJAXCODE.UC_TOKEN_EXPIRE?((new r.Watcher).subscribe(this,{"update:enterInfo:success":function(){this.ssoLogin(t)},"update:enterInfo:error":function(){this.trigger("login:error",{})}},{exclusive:!0,context:this}),this.updateEnterInfo()):this.trigger("login:error",e)},n=this.get("enterInfo"),i=s.extend({},n,t);a.ajax({url:ST.ACTION.SSOLOGIN,dataType:"jsonp",jsonp:"stcallback",data:i,success:s.bind((function(t){var n=t.status||"";/success/i.test(n)?(this.set("ucInfo",t.data),this.verifyToken()):e.apply(this,arguments)}),this),error:s.bind(e,this)})},ssologout:function(t){var e=this,n=!1,i=!1,r=function(e){ST.Cookie.deleteAll(),this.trigger("logout:success",e),t&&location.reload()},o=function(e){a.log("logout failed:",e),this.trigger("logout:error",e),t&&location.reload()};a.when(this.ajax({url:ST.ACTION.LOGOUT,type:"POST",success:function(){n=!0}}),a.ajax({url:ST.ACTION.SSOLOGOUT,dataType:"jsonp",jsonp:"stcallback",success:function(t){var e=t.status||"";i=/success/i.test(e)}})).done((function(t){n&&i?r.call(e,t):o.call(e,t)})).fail((function(t){o.call(e,t)}))},updateMaxFileSize:function(){},updateUploadOptions:function(){var t=this.get("privilege");if(t&&t.maxUploadSpeed){var e=t.maxUploadSpeed>=1024?1048576:1024*t.maxUploadSpeed;ST.UPLOAD.chunkSize=e,ST.UPLOAD.maxUploadSpeed=1024*t.maxUploadSpeed}},isVip:function(){var t=this.get("privilege");return["vip","svip","cvip"].indexOf(t.packCode)>=0||t.centuryVip},getIdentity:function(){var t=this.get("privilege");if(t.centuryVip)return"世纪会员";if(t.privilegedUser)return"特权用户";switch(t.packCode){case"vip":return"标准会员";case"svip":return"超级会员";default:return"普通用户"}},containsNormalVip:function(){var t=this.get("privilege");return t&&("vip"===t.packCode||t.vipExpire)}});t.exports=u},11:function(t,e,n){var i=n(4),r=n(1661);n(13),n(1662);var o=i.Model.extend({defaults:{type:"warning",title:"",content:"",desc:"",isModal:!0,onConfirm:null,onCancel:null,onClose:null}}),s=i.View.extend({template:r,events:{"click .js-close":"onCloseClick","click .js-confirm":"confirm","click .js-cancel":"cancel"},initialize:function(){this.model=new o(this.options),this.dialog=$.popup(),this.setElement(this.dialog.$popup),this.render()},afterRender:function(){var t=this.model.get("isModal");this.dialog.open(t)},callUserCloseHandler:function(){var t=this.model.get("onClose");_.isFunction(t)&&t.call(this)},onCloseClick:function(){this.close(),this.callUserCloseHandler()},onClose:function(){this.dialog.destroy(),this.dialog=null},confirm:function(){var t=this.model.get("onConfirm");_.isFunction(t)&&0==t.call(this)||this.close()},cancel:function(){this.callUserCloseHandler();var t=this.model.get("onCancel");_.isFunction(t)&&0==t.call(this)||this.close()},getClass:function(){return this.model.get("type")&&{warning:"dialog-confirm-warning"}[this.model.get("type")]||""}});t.exports=s},115:function(t,e,n){var i=n(97);t.exports=function(t){var e={dirIds:"",fileIds:t},n=new i({prepareUrl:ST.ACTION.DOWNLOAD_PREPARE});n.on("failed",(function(t){}),this),n.start(e)}},12:function(t,e,n){var i=n(22),r=n(14),o=n(89),s=n(13),a=n(1584),l=i(document),u=i(window);function c(){return this.constructor.__base__.apply(this,arguments)}o.inherits(c,s),c.__instance=null,c.create=function(t){if("string"==typeof t){var e=arguments,n=t;t={content:n},r.isUndefined(e[1])||(t.state=e[1]),r.isUndefined(e[2])||(t.autoClose=e[2]),r.isUndefined(e[3])||(t.modal=e[3])}else t=i.extend({},t);c.destroy();var o=c.__instance=s.create.call(c,t);return o._init()},c.destroy=function(){var t=c.__instance;t&&s.destroy(t.cid)},c.setDefaults=s.setDefaults,c.setZIndex=s.setZIndex,c.defaults=i.extend({},s.defaults,a),i.extend(c.prototype,{_onCreated:function(){return this.state(this.option("state")),this.content(this.option("content")),this.open(this.option("modal")),this},_onOpened:function(){var t=this,e=parseInt(t.option("autoClose"),10)||0;return e>0&&(t.lazyDestroy||(t.lazyDestroy=r.debounce(t.destroy,e)),t.lazyDestroy()),this.option("quickClose")&&(t.option("hideOnWindowClick")?u.on("click.bee.notice"+t.cid,r.bind(t.onWindowClick,this)):setTimeout((function(){l.one("click.bee.notice",i.proxy(t.destroy,t)).one("keydown.bee.notice",(function(e){27==e.keyCode&&t.destroy()}))}),50)),t},state:function(t){var e=this;if(0==arguments.length)return o.toRealString(e.option(t));t=o.toRealString(t);var n=e.option("stateCls",[t]);return e.$popup.addClass(n),e},content:function(t){var e=this.$role("content");return(r.isElement(t)||t instanceof i)&&(t=t.length>0&&i(t)),t||"string"==typeof t?(e.empty().append(t),this.reset(),this):e.html()},$role:function(t){return this.$('[role="'+t+'"]')}});var h=i.notice;i.notice=function(){return c.create.apply(this,arguments)},i.notice.Constructor=c,i.notice.noConflict=function(){return i.notice=h,this},i.each(["defaults","setDefaults","setZIndex","destroy"],(function(t,e){i.notice[e]=c[e]})),t.exports=c},13:function(t,e,n){var i=n(22),r=n(14),o=n(89),s=n(1583),a=i(window),l=o.isIE6(),u={on:function(t,e){var n=this._callbacks(t);return n&&n.add(e),this},once:function(t,e){if(!i.isFunction(e))return this;var n=this._callbacks(t);return n.add((function t(){e.apply(this,arguments),n.remove(t)})),this},off:function(t){var e=this._callbacks(t);if(e)e.empty();else for(var n in this.__callbacks)this.off(n);return this},trigger:function(t){var e=this._callbacks(t);return e&&e.fireWith(this),this},_callbacks:function(t){var e=null;return(t="string"==typeof t&&i.trim(t))&&(this.__callbacks||(this.__callbacks={}),(e=this.__callbacks[t])||(e=this.__callbacks[t]=i.Callbacks())),e}};function c(t,e,n){var o,s,a=i(window),l=i(document),u=i(this),c="fixed"===u.css("position"),h=c?0:l.scrollLeft(),d=c?0:l.scrollTop(),p=a.width(),f=a.height(),g=u.outerWidth(),m=u.outerHeight();if(-1!==r.indexOf(["center","left","right"],i.trim(t))||parseInt(t,10)||(t="center"),-1!==r.indexOf(["center","top","bottom"],i.trim(e))||parseInt(e,10)||(e="center"),(n=i(n).eq(0).get(0))&&n.parentNode&&!i(n).is(":hidden")){var _=i(n),v=_.outerWidth(),E=_.outerHeight(),y=_.offset(),S=y.left,T=y.top;switch(t){case"left":s="center"==e?S-g:S;break;case"center":s=S+(v-g)/2;break;case"right":s="center"==e?S+v:S+v-g;break;default:s=S+parseInt(t,10)||0}switch(e){case"top":o=T-m;break;case"center":o=T+(E-m)/2;break;case"bottom":o=T+E;break;default:o=T+parseInt(e,10)||0}o=Math.round(o),s=Math.round(s)}else{for(var C=[t||0,e||0],O=0;O<2;O++)switch(C[O]){case"top":case"left":C[O]="0%";break;case"bottom":case"right":C[O]="100%";break;case"center":C[O]="50%";break;default:/%$/.test(C[O])||(C[O]=parseInt(C[O],10)||0)}t=C[0],s=/%$/.test(t)?(p-g)*parseInt(t,10)/100+h:h+t,e=C[1],o=/%$/.test(e)?(f-m)*parseInt(e,10)/100+d:d+e,o=Math.round(Math.max(o,d)),s=Math.round(Math.max(s,h))}return{top:o,left:s}}function h(t,e){this.cid=t,this.defaults=this.constructor.defaults,this.options=i.extend({},this.defaults,e),this.bindAll()}h.defaults=s,h.setDefaults=function(t){i.extend(h.defaults,t)},h.__instance={},h.get=function(t){return h.__instance[t]},h.create=function(t,e){var n;return"string"==typeof t?(t=i.trim(t),n=h.get(t)):(e=t,t=r.now()+""),n||(n=h.__instance[t]=new this(t,e)._init()),n},h.destroy=function(t){var e=h.get(t);e&&e.close(),delete h.__instance[t]},h.destroyAll=function(){var t=h.__instance;i.each(t,(function(t){h.destroy(t)})),h.__count=0},h.getZIndex=function(){return h.__zIndex+h.__count},h.setZIndex=function(t){var e=h.__zIndex;h.__zIndex=parseInt(t,10)||e},h.__count=0,h.__zIndex=2999,i.extend(h.prototype,u,{_init:function(){return this.create(),delete this._init,this},create:function(){if(!this.__isCreated){this.__cssPosition=this.option("scrolling")&&!l?"fixed":"absolute",this.triggerHandler("create");var t=i(this.option("tpl")||this.defaults.tpl);t.length>1&&(t=i(tpl).wrapInner(t)),this.$popup=t.addClass(this.option("cls")).css(i.extend({display:"none",position:this.__cssPosition},this.option("css"))).appendTo("body"),a.on("resize.bee.popup",i.proxy(this._windowResize,this)),a.on("keydown.bee.popup"+this.cid,i.proxy(this._windowKeydown,this)),this.__isCreated=!0,this.triggerHandler("created")}return this},open:function(t){return this.__isOpened||(this.__isCreated||this.create(),this.triggerHandler("open"),t&&this.openOverlay(),this.$popup&&this.$popup.fadeIn(200),this.__isOpened=!0,this._zIndex(this.options.zIndex).reset(),i("a:focus,:button:focus").blur(),this.triggerHandler("opened"),this.option("hideOnWindowClick")&&a.on("click.bee.popup"+this.cid,r.bind(this.onWindowClick,this))),this},toggle:function(){this.__isOpened?this.hide():this.open()},onWindowClick:function(t){var e=i(t.target),n=this.options.ignoreClick;n&&e&&n(e)||this.hide()},unbindWindowEvents:function(){a.off("click.bee.popup"+this.cid)},close:function(){var t=this;return t.__isCreated&&(t.triggerHandler("close"),t.$popup&&t.$popup.fadeOut(200,(function(){t.$popup&&t.$popup.remove()})),t.destroyOverlay(),a.off("resize.bee.popup"),a.off("keydown.bee.popup"+this.cid),this.unbindWindowEvents(),t.__isOpened=!1,t.__isCreated=!1,t.triggerHandler("closed")),t},hide:function(){return this.__isCreated&&this.__isOpened&&(this.triggerHandler("hide"),this.$popup&&this.$popup.fadeOut(200),this.hideOverlay(),this.__isOpened=!1,this.triggerHandler("hidden"),this.unbindWindowEvents()),this},destroy:function(){this.off(),h.destroy(this.cid)},openOverlay:function(){var t=this;return t.$overlay||(t.$overlay=i(t.option("tpl_overlay")||t.defaults.tpl_overlay).css(i.extend({display:"none",position:t.__cssPosition,top:0,left:0,width:"100%",height:"100%",background:"#000",opacity:"0.8"},t.option("overlayCss"))).insertBefore(t.$popup)),t.$overlay.fadeIn(200),t.option("closeWhenClickOverlay")&&t.$overlay.on("click",(function(){t.trigger("close"),t.destroy()})),this},hideOverlay:function(){return this.$overlay&&this.$overlay.fadeOut(200),this},destroyOverlay:function(){var t=this;return t.$overlay&&t.$overlay.fadeOut(200,(function(){t.$overlay&&t.$overlay.remove()})),delete t.$overlay,t},resizeOverlay:function(){this.$overlay&&this.$overlay.css({width:a.width(),height:a.height()})},reset:function(){return this.position()},position:function(t,e){var n,i,r;this.__isOpened&&(t=(t||this.option("align")).split(" "),e=e||this.option("alignTo"),n=t[0]||"center",i=t[1]||"center",r=this.offset(n,i,e),this.$popup&&this.$popup.css(r));return this},offset:function(){return c.apply(this.$popup,arguments)},_zIndex:function(t){if(this.__isCreated){var e=this.$popup,n=parseInt(e.css("zIndex"),10)||-1;n<(t=t||h.__zIndex+h.__count)&&(h.__count+=2,t+=2,this.$popup.css("zIndex",t),this.$overlay&&this.$overlay.css("zIndex",t-1))}return this},_windowResize:function(){this.__isCreated&&(l&&this.resizeOverlay(),this.reset())},_windowKeydown:function(t){if(27===t.keyCode){var e=Object.keys(h.__instance),n=this.cid;e.indexOf(n)===e.length-1&&(this.trigger("close"),this.destroy())}},$:function(t){return this.$popup.find(t)},bindAll:function(){var t=this;i.each(this.options,(function(e,n){if(/^on[A-Z]/.test(e)){var r=o.interface2Event(e),s=t["_"+e];i.isFunction(s)&&t.on(r,s),i.isFunction(n)&&t.on(r,n)}}))},triggerHandler:function(t,e){this.trigger(t,e||[])},option:function(t,e){return o.resultWith(this.options,t,e,this)},setOptions:function(t,e){var n={};return"string"==typeof t?null!=e&&(n[t]=e):n=t,i.extend(this.options,n),this},instance:function(){return this}});var d=i.popup;i.popup=function(t){return h.create.apply(h,arguments)},i.popup.Constructor=h,i.popup.noConflict=function(){return i.popup=d,this},i.each(["defaults","setDefaults","getZIndex","setZIndex","get","destroy","destroyAll"],(function(){i.popup[this]=h[this]})),i.align=c,t.exports=h},1577:function(t,e,n){var i=n(22),r=n(14);t.exports=i.extend(window._$||{},{isIE6:function(){return r.isUndefined(document.body.style.maxHeight)},toParam:function(t){var e={};return r.isArray(t)&&r.each(t,(function(t){var n=i.trim(t.name),o=i.trim(t.value);n&&(null!=e[n]?(r.isArray(e[n])||(e[n]=[e[n]]),e[n].push(o)):e[n]=o)})),e},toParamString:function(t){var e="";if(t){var n=[];r.each(t,(function(t,e){r.isArray(t)?r.each(t,(function(t){n.push(e+"="+t)})):n.push(e+"="+t)})),e=n.join("&")}return e},toRealString:function(t){switch(t){case void 0:case null:case NaN:t="";break;case 0:t="0"}return t.toString()},toJSON:function(t){var e=null;t=i.trim(t)||"{}";try{e=new Function("return "+t)()}catch(t){throw t}return e},truncate:function(t,e,n,i){t=_$.toRealString(t),e=parseInt(e,10)||0;var r,o=t;if(t){if(i){var s=Math.min(e,r),a=[];r=_$.byteLength(t);for(var l=0;l255?2:1)>=0;l++)a.push(t.charAt(l));o=a.join("")}else r=t.length,o=t.substring(0,e);o&&n&&r>e&&(o+=n)}return o},byteLength:function(t){var e=0;if(t=_$.toRealString(t))for(var n=0,i=t.length;n255?2:1;return e},zeroFix:function(t){var e=parseInt(t,10);return isNaN(e)?t:e<10?"0"+e:e},resultWith:function(t,e,n,o){if(r.isObject(t)){var s=r.isString(e)?t[i.trim(e)]:t;return r.isFunction(s)?s.apply(o||t,n||[]):s}},interface2Event:function(t){var e=[];if(t=i.trim(t)){var n=t.replace(/^on/,"").match(/[A-Z][a-z]+/g);r.indexOf(["before","after"],n[0])>-1&&(n.shift(),e.push(_$.capital(n[0])));for(var o=n.length-1;o>=0;o--)e.push(n[o].toLowerCase())}return e.join(":")},event2Interface:function(t){var e=[];if(t=i.trim(t)){var n=t.split(":");r.indexOf(["before","after"],n[0])>-1?(e.push(n[0]),n.shift()):e.push("on");for(var o=n.length-1;o>=0;o--){var s=n[o].toLowerCase();s=_$.capital(s),e.push(s)}}return e.join("")},inherits:function(t,e){var n=r.isFunction(e);if(r.isFunction(t)||(t=n?function(){e.apply(this,arguments)}:function(){}),n){var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.__base__=e,t.__baseproto__=e.prototype}return t},fetchTemplate:function(t,e){return((t=i.trim(t))&&e.match(new RegExp("{"+t+"}([\\s\\S]*?){/"+t+"}"))||[])[1]||""},dateFormatter:function(t,e){r.isDate(t)||(t=new Date),e||(e="yyyy-MM-dd");var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return e},matrix:function(t,e){if(!r.isArray(t))return[];var n=[],i=0;e=parseInt(e,10)||1;for(var o=0,s=t.length;o-1?o.indexOf(i.MUSIC_NO,s)>-1?n.music_no:n.music:o.indexOf(i.VIDEO,s)>-1?o.indexOf(i.VIDEO_NO,s)>-1?n.video_no:n.video:o.indexOf(i.APPLICATION,s)>-1?n.application:o.indexOf(i.IMAGE,s)>-1?n.img:o.indexOf(i.ZIP,s)>-1?o.indexOf(i.ZIP_NO,s)>-1?n.zip_no:n.zip:o.indexOf(i.DOC,s)>-1?o.indexOf(i.DOC_CODE,s)>-1?n.code:o.indexOf(i.DOC_TXT,s)>-1?n.txt:o.indexOf(i.DOC_NO,s)>-1?n.document:n.plaintext:e.download?n.download:n.defaults:e.download?n.download:n.defaults},formatSize:function(t){if(null==t||""==t)return"0 B";for(var e=0,n=parseFloat(t);n>=1024&&e<3;)e+=1,n/=1024;return this.roundFun(n,2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][e]},formatSpeed:function(t){var e;if(null==t||""==t||t<0)e="0 B";else{for(var n=0,i=parseFloat(t);i>1024;)n+=1,i/=1024;var r=this.roundFun(i,2);e=(n<2?Math.round(r):r)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}return" ("+e+"/s)"},formatPercent:function(t){return Math.min(Math.max(t,0),100).toFixed(2)+"%"},formatUsagePercent:function(t,e,n){return e=e||1,n=n||99,(t=Math.max(Math.min(t,100),0))0&&(t=e),t>n&&t<100&&(t=n),t.toFixed(2)+"%"},roundFun:function(t,e){return t>=0?parseInt(t*Math.pow(10,e)+.5)/Math.pow(10,e):-(parseInt(-t*Math.pow(10,e)+.5)/Math.pow(10,e))},processFileSize:function(t){var e,n=0;if(o.isString(t))try{var i=parseFloat(t);isNaN(i)||(t=i)}catch(t){return"NA"}for(e=t;e>1024;)n++,e=parseFloat((e/1024).toFixed(2));return 0==e?e:e+["B","KB","MB","GB","TB"][n]},jsClick:function(t,e){if(e=e||"_self",t=t||"",_$.isIframed()&&"_self"==e&&/^http:/.test(t)&&/^https:/.test(document.referrer))return!1;var n=document.createElement("a");if(n.href=t,n.target=e,document.all||"ActiveXObject"in window)$span=r("s"),r(n).append($span),$span.click();else{var i=document.createEvent("MouseEvents");i.initEvent("click",!0,!0),n.dispatchEvent(i)}return!0},tipErrorByRes:function(t){ST.helper.tipError("SERVER_ERROR",(t||{}).code,"",(t||{}).message)},getErrorMessageByRes:function(t){var e=(t||{}).code,n=(t||{}).message;return e==ST.AJAXCODE.SESSION_EXPIRE?"":ST.LRes.serverErrorTip[e]||n},tipError:function(t,e,n,i){var o;if("SERVER_ERROR"==t){if(e==ST.AJAXCODE.SESSION_EXPIRE)return!1;o=ST.LRes.serverErrorTip[e]||i||ST.LRes.optTip[n],e==ST.AJAXCODE.USER_SPACE_LESS&&(o+=","+ST.LRes.optTip[n])}else o=i||ST.LRes.optTip[t||n];o&&r.notice(o)},tipSuccess:function(t){var e=ST.LRes.optTip[t];if(e){var n=Array.prototype.slice.call(arguments,1);n.length>0&&(e=e.format.apply(e,n)),r.notice(e,"success")}},setSelectionRange:function(t,e,n){setTimeout((function(){if(t.createTextRange){var i=t.createTextRange(),r=i.duplicate();r.moveStart("character",n),r.setEndPoint("EndToStart",i),r.select()}else t.setSelectionRange&&t.setSelectionRange(e,n)}),0)},imagePreLoad:function(t,e){var n=new Image;n.onerror=n.onabort=n.onload=function(){var i=n.width||0,r=n.height||0;e&&e(i,r,t)},n.src=t},uniformScale:function(t,e,n,i){var r=n/t,o=i/e,s=1;return(r<1||o<1)&&(s=r<=o?r:o),s<1&&(t=Math.round(t*s),e=Math.round(e*s)),{width:t,height:e}},alignCenter:function(t,e,n,i){return{position:"absolute",left:Math.round((n-t)/2),top:Math.round((i-e)/2)}},locationHref:function(t,e){var n=function(){t&&t!=location.href?location.href=t:location.reload()};(e=parseInt(e,10)||0)>0?setTimeout((function(){n()}),e):n()},isIframed:function(){return top!==self},parseUrl:function(t,e){t||(t=location.href);var n=_$.toParamString(e);return[t,/\?/.test(t)?"&":"?",n].join("")},getUrlParams:function(t,e){e||(e=location.href);var n=e.replace(/.+\?/,"").replace(/#.+/,"").match(new RegExp(t+"=.[^&]*"))||"";return n&&n[0].replace(new RegExp(t+"="),"")||""},isMobile:function(){return!!navigator.userAgent.match(/AppleWebKit.*Mobile.*/)},getQueryString:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),n=new RegExp("(^|/)"+t+"/([^/]*)(/|$)","i"),i=window.location.search.substr(1).match(e)||window.location.hash.substr(1).match(e),r=window.location.pathname.substr(1).match(n);return null!=i?decodeURIComponent(i[2]):null!=r?decodeURIComponent(r[2]):null},compareVersion:function(t,e){var n=0;t=t.split("."),e=e.split(".");for(var i=0,r=t.length;i0?1:-1;break}}return n},parseRouterParams:function(t){if("string"==typeof t&&/\:/g.test(t),t=r.trim(t)){var e=("/"+t).match(/[\w-]+\:[^/]*/g),n={};o.each(e,(function(t){var e=t.match(/[\w-]+\:/g)[0];n[r.trim(e.replace(/\:/,""))]=r.trim(t.replace(e,""))})),t=n}else t=t||{};return t},objToParams:function(t,e){var n;if(r.isPlainObject(t))if(e&&e.merge)for(var i in n=App.findByCustom("model").get("params"),t){var o=i+":"+t[i],s=new RegExp(i+":[A-z0-9_]+");s.test(n)?n=n.replace(s,o):n+="/"+o}else{var a=[];for(var i in t)a.push(i+":"+t[i]);n=a.join("/")}return n},isDragable:function(){return!r.Lang.Browser.isIE||r.Lang.Browser.isIE9Plus},updateTitle:function(){r.Lang.Browser.isIE&&!r.Lang.Browser.isIE9Plus&&setTimeout((function(){document.title=s}),50)},setQuotaExceed:function(t,e){if(!t||!e)return!1;Number(e.userQuotaUsed-e.userQuota)>=0&&t.find(".js-progress-cnt").addClass("progress-warning")},setQuotaBadgeExceed:function(t,e){if(!t||!e)return!1;Number(e.userQuotaUsed-e.userQuota)>=0&&t.find(".js-badge-cnt").addClass("badge-warning")},setQuotaTextExceed:function(t,e){if(!t||!e)return!1;Number(e.userQuotaUsed-e.userQuota)>=0&&t.find(".js-text-cnt").addClass("text-warning")},getFileSuffix:function(t){var e=1*t.lastIndexOf(".");return t.substring(e+1)},isFilterFileSuffix:function(t){var e;e=["url","rtf","htm","nfo"];var n=!1;return o.filter(e,(function(e){if(e==t)return n=!0})),n},isFilterFileVolume:function(t){var e=!1;return Number(t)