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