function encode(e){function o(e){for(i=0;i=0?(e%=2147483648,e>>=o,e+=1073741824>>o-1):e>>=o,e}function r(e){return e%=2147483648,!0&e?(e-=1073741824,e*=2,e+=2147483648):e*=2,e}function n(e,o){e=s(e),o=s(o);for(var t=0;t=0?r>=0?2147483648+(t&r):t&o:r>=0?e&r:e&o}function d(e,o){e=s(e),o=s(o);var t=e-2147483648,r=o-2147483648;return t>=0?r>=0?2147483648+(t|r):2147483648+(t|o):r>=0?2147483648+(e|r):e|o}function a(e,o){e=s(e),o=s(o);var t=e-2147483648,r=o-2147483648;return t>=0?r>=0?t^r:2147483648+(t^o):r>=0?2147483648+(e^r):e^o}function u(e){return 4294967295-(e=s(e))}function m(e,o,s){return d(l(e,o),l(u(e),s))}function c(e,o,s){return d(l(e,s),l(o,u(s)))}function w(e,o,s){return a(a(e,o),s)}function v(e,o,s){return a(o,d(e,u(s)))}function p(e,o){return d(n(e,o),t(e,32-o))}function g(e,o,s,t,r,n,i){return e=e+m(o,s,t)+r+i,e=p(e,n),e+=o}function h(e,o,s,t,r,n,i){return e=e+c(o,s,t)+r+i,e=p(e,n),e+=o}function f(e,o,s,t,r,n,i){return e=e+w(o,s,t)+r+i,e=p(e,n),e+=o}function y(e,o,s,t,r,n,i){return e=e+v(o,s,t)+r+i,e=p(e,n),e+=o}function x(e,o){var s=0,t=0,r=0,d=0,a=A;for(s=q[0],t=q[1],r=q[2],d=q[3],i=0;i<16;i++)for(a[i]=l(e[4*i+o],255),j=1;j<4;j++)a[i]+=n(l(e[4*i+j+o],255),8*j);s=g(s,t,r,d,a[0],L,3614090360),d=g(d,s,t,r,a[1],b,3905402710),r=g(r,d,s,t,a[2],P,606105819),t=g(t,r,d,s,a[3],D,3250441966),s=g(s,t,r,d,a[4],L,4118548399),d=g(d,s,t,r,a[5],b,1200080426),r=g(r,d,s,t,a[6],P,2821735955),t=g(t,r,d,s,a[7],D,4249261313),s=g(s,t,r,d,a[8],L,1770035416),d=g(d,s,t,r,a[9],b,2336552879),r=g(r,d,s,t,a[10],P,4294925233),t=g(t,r,d,s,a[11],D,2304563134),s=g(s,t,r,d,a[12],L,1804603682),d=g(d,s,t,r,a[13],b,4254626195),r=g(r,d,s,t,a[14],P,2792965006),t=g(t,r,d,s,a[15],D,1236535329),s=h(s,t,r,d,a[1],E,4129170786),d=h(d,s,t,r,a[6],R,3225465664),r=h(r,d,s,t,a[11],$,643717713),t=h(t,r,d,s,a[0],O,3921069994),s=h(s,t,r,d,a[5],E,3593408605),d=h(d,s,t,r,a[10],R,38016083),r=h(r,d,s,t,a[15],$,3634488961),t=h(t,r,d,s,a[4],O,3889429448),s=h(s,t,r,d,a[9],E,568446438),d=h(d,s,t,r,a[14],R,3275163606),r=h(r,d,s,t,a[3],$,4107603335),t=h(t,r,d,s,a[8],O,1163531501),s=h(s,t,r,d,a[13],E,2850285829),d=h(d,s,t,r,a[2],R,4243563512),r=h(r,d,s,t,a[7],$,1735328473),t=h(t,r,d,s,a[12],O,2368359562),s=f(s,t,r,d,a[5],W,4294588738),d=f(d,s,t,r,a[8],B,2272392833),r=f(r,d,s,t,a[11],F,1839030562),t=f(t,r,d,s,a[14],G,4259657740),s=f(s,t,r,d,a[1],W,2763975236),d=f(d,s,t,r,a[4],B,1272893353),r=f(r,d,s,t,a[7],F,4139469664),t=f(t,r,d,s,a[10],G,3200236656),s=f(s,t,r,d,a[13],W,681279174),d=f(d,s,t,r,a[0],B,3936430074),r=f(r,d,s,t,a[3],F,3572445317),t=f(t,r,d,s,a[6],G,76029189),s=f(s,t,r,d,a[9],W,3654602809),d=f(d,s,t,r,a[12],B,3873151461),r=f(r,d,s,t,a[15],F,530742520),t=f(t,r,d,s,a[2],G,3299628645),s=y(s,t,r,d,a[0],U,4096336452),d=y(d,s,t,r,a[7],z,1126891415),r=y(r,d,s,t,a[14],H,2878612391),t=y(t,r,d,s,a[5],V,4237533241),s=y(s,t,r,d,a[12],U,1700485571),d=y(d,s,t,r,a[3],z,2399980690),r=y(r,d,s,t,a[10],H,4293915773),t=y(t,r,d,s,a[1],V,2240044497),s=y(s,t,r,d,a[8],U,1873313359),d=y(d,s,t,r,a[15],z,4264355552),r=y(r,d,s,t,a[6],H,2734768916),t=y(t,r,d,s,a[13],V,1309151649),s=y(s,t,r,d,a[4],U,4149444226),d=y(d,s,t,r,a[11],z,3174756917),r=y(r,d,s,t,a[2],H,718787259),t=y(t,r,d,s,a[9],V,3951481745),q[0]+=s,q[1]+=t,q[2]+=r,q[3]+=d}function S(){for(C[0]=C[1]=0,q[0]=1732584193,q[1]=4023233417,q[2]=2562383102,q[3]=271733878,i=0;i=63&&x(T,0)}function k(){var e,s=new o(8),r=0,n=0,i=0;for(r=0;r<4;r++)s[r]=l(t(C[0],8*r),255);for(r=0;r<4;r++)s[r+4]=l(t(C[1],8*r),255);for(n=l(t(C[0],3),63),i=n<56?56-n:120-n,e=new o(64),e[0]=128,r=0;r?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";return function(e){var o,s,t,r,l,d;for(S(),s=0;s0?n:i.length>0?i:e("#index-view-container"),d=l.offset(),a=l.width();"string"===e.type(o)&&r.text(o),s.addClass("show").show();var u=t.offset(),m=t.outerWidth();u.left-d.left+m>a&&t.css({right:0})}}} ;for(var s in o)if(o.hasOwnProperty(s))for(var t in o[s])o[s].hasOwnProperty(t)&&e.fn[s]&&(e.fn[s][t]=o[s][t])},n.prototype.override=function(){e.su.Model.prototype.beforeLoad=function(e){var o=this;e=e||{},e&&e.ajax&&e.ajax.type||(e=e||{},e.ajax=e.ajax||{},e.ajax.type="GET",e.ajax.contentType="application/x-www-form-urlencoded",!!e.url&&(e.ajax.url=e.url)),e.params=e.params||{};var s=e.fail;e.fail=function(e,t,r){!!s&&s(e,t,r),r&&o.trigger("ev_model_load_error",r)};var t=e.error;return e.error=function(e,s){!!t&&t(e,s),o.trigger("ev_model_ajax_error",[e,s])},e},e.su.Model.prototype.submit=function(e){if(!0!==this.validate())return null;var o=!(e&&!1===e.submitOnlyDirty);if(!this.isDirty()&&o)return null;var s;s=e&&e.submitDisabledData?this.getData():this.getData("submit");if(e=e||{},s){var t=this.beforeSubmit(s,e);this.proxy.update(t)}},e.su.Model.prototype.beforeSubmit=function(o,s){var t=this,r=t._name;return e.su.serviceManager.get("loading").show(r),{ajax:{url:s.url||void 0,contentType:"application/x-www-form-urlencoded"},data:t.modelSerialize(o),params:s.params||{},success:function(o,n){o.model&&n.data&&(t.loadData(o.model,!0),t.record()),e.su.serviceManager.get("loading").hide(r),!!s.success&&s.success(o.model,n),t.fireEvent("ev_model_submit")},fail:function(o,n,i){o.model&&n.data&&(t.loadData(o.model,!0),t.record()),e.su.serviceManager.get("loading").hide(r),i&&t.trigger("ev_model_submit_error",i),!!s.fail&&s.fail(n,i)},error:function(o,n){e.su.serviceManager.get("loading").hide(r),!!s.error&&s.error(o,n),t.trigger("ev_model_ajax_error",[o,n])}}},e.su.Store.prototype.beforeInsert=function(o,s,t){t=t||{};var r=this,n={};for(var i in s)s.hasOwnProperty(i)&&(n[i]=r.storeSerialize(s[i].model)[0]);return{ajax:e.extend({},t.ajax,{url:t.url||void 0}),data:t.data||n,params:e.extend({},{option:"add"},t.params),success:function(e){r.loadData(e.model,!0),!!t.success&&t.success(e),r.fireEvent("ev_store_operation")},fail:function(e,o,s){r.loadData(r.snapshot),!!t.fail&&t.fail(o,s),s&&r.trigger("ev_store_sync_error",s)},error:function(e,o){r.loadData(r.snapshot),!!t.error&&t.error(e,o),r.trigger("ev_store_ajax_error",[e,o])}}},e.su.Store.prototype.beforeLoad=function(e){var o=this;e&&e.ajax&&e.ajax.type||(e=e||{},e.ajax=e.ajax||{},e.ajax.type="GET",e.ajax.contentType="application/x-www-form-urlencoded"),e.params=e.params||{option:"get"};var s=e.fail;e.fail=function(e,t,r){!!s&&s(e,t,r),r&&o.trigger("ev_store_sync_error",r)};var t=e.error;return e.error=function(e,s){!!t&&t(e,s),o.trigger("ev_store_ajax_error",[e,s])},e},e.su.Store.prototype.beforeUpdate=function(o,s,t){t=t||{};var r=this,n={};for(var i in s)s.hasOwnProperty(i)&&(n[i]=r.storeSerialize(s[i].model)[0]);return{ajax:e.extend({},t.ajax,{url:t.url||void 0}),data:t.data||n,params:e.extend({},{option:"edit"},t.params),success:function(e){r.loadData(e.model,!0),!!t.success&&t.success(e),r.fireEvent("ev_store_operation")},fail:function(e,o,s){r.loadData(r.snapshot),!!t.fail&&t.fail(o,s),s&&r.trigger("ev_store_sync_error",s)},error:function(e,o){r.loadData(r.snapshot),!!t.error&&t.error(e,o),r.trigger("ev_store_ajax_error",[e,o])}}},e.su.Store.prototype.beforeRemove=function(o,s,t){t=t||{};var r=this,n={};for(var i in s)s.hasOwnProperty(i)&&(n[i]=r.storeSerialize(s[i].oldModel)[0]);return{ajax:e.extend({},t.ajax,{url:t.url||void 0}),data:t.data||n,params:e.extend({},{option:"delete"},t.params),success:function(e,o){r.loadData(e.model,!0),!!t.success&&t.success(e),r.fireEvent("ev_store_operation")},fail:function(e,o,s){r.loadData(r.snapshot),!!t.fail&&t.fail(o,s),s&&r.trigger("ev_store_sync_error",s)},error:function(e,o){r.loadData(r.snapshot),!!t.error&&t.error(e,o),r.trigger("ev_store_ajax_error",[e,o])}}},e.su.Error.handle=function(o){switch(o.type){case"proxy_fail":if(o.errorCode&&51203!=o.errorCode){var s=o.errorCode+"";s="e"==s.substr(0,1)?s:"e"+s;var t=e.su.CHAR.ERRCODE[s]||e.su.CHAR.ERRCODE.EDEFAULT;e.su.moduleManager.query("index").showError(t)}break;case"model_ajax_error":case"store_ajax_error":case"ajax_service_error":var r=e.su.CHAR.ALERT.FAIL_GET_DATA;e.su.moduleManager.query("index").showError(r)}return!0}},n.prototype.reset=function(){},n.prototype.reload=function(o){e.su.Error.handle=function(){return!0},location=o||location},n.prototype.getInfo=function(){},n}()}(jQuery),$.su.LanguageService=function(){var e=function(){this.init(),this.name="language",$.su.Service.call(this)};return $.su.inherit($.su.Service,e),e.prototype.init=function(){},e.prototype.getLocale=function(e,o){$.su.language.getLocale(e,o)},e.prototype.switchTo=function(e,o,s){$.su.language.switchTo(e,o,s)},e}();