var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(I,N,G){if(I==Array.prototype||I==Object.prototype)return I;I[N]=G.value;return I};
$jscomp.getGlobal=function(I){I=["object"==typeof globalThis&&globalThis,I,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var N=0;N<I.length;++N){var G=I[N];if(G&&G.Math==Math)return G}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(I,N){var G=$jscomp.propertyToPolyfillSymbol[N];if(null==G)return I[N];G=I[G];return void 0!==G?G:I[N]};$jscomp.polyfill=function(I,N,G,K){N&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(I,N,G,K):$jscomp.polyfillUnisolated(I,N,G,K))};
$jscomp.polyfillUnisolated=function(I,N,G,K){G=$jscomp.global;I=I.split(".");for(K=0;K<I.length-1;K++){var Q=I[K];if(!(Q in G))return;G=G[Q]}I=I[I.length-1];K=G[I];N=N(K);N!=K&&null!=N&&$jscomp.defineProperty(G,I,{configurable:!0,writable:!0,value:N})};
$jscomp.polyfillIsolated=function(I,N,G,K){var Q=I.split(".");I=1===Q.length;K=Q[0];K=!I&&K in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var ka=0;ka<Q.length-1;ka++){var la=Q[ka];if(!(la in K))return;K=K[la]}Q=Q[Q.length-1];G=$jscomp.IS_SYMBOL_NATIVE&&"es6"===G?K[Q]:null;N=N(G);null!=N&&(I?$jscomp.defineProperty($jscomp.polyfills,Q,{configurable:!0,writable:!0,value:N}):N!==G&&(void 0===$jscomp.propertyToPolyfillSymbol[Q]&&(G=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[Q]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(Q):$jscomp.POLYFILL_PREFIX+G+"$"+Q),$jscomp.defineProperty(K,$jscomp.propertyToPolyfillSymbol[Q],{configurable:!0,writable:!0,value:N})))};$jscomp.polyfill("Array.prototype.fill",function(I){return I?I:function(N,G,K){var Q=this.length||0;0>G&&(G=Math.max(0,Q+G));if(null==K||K>Q)K=Q;K=Number(K);0>K&&(K=Math.max(0,Q+K));for(G=Number(G||0);G<K;G++)this[G]=N;return this}},"es6","es3");$jscomp.typedArrayFill=function(I){return I?I:Array.prototype.fill};
$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
(function(){function I(){var g,a,c,b=!1;this.setFilePath=function(d){g=d};this.setFileSize=function(d,e){a=d;c=e};this.setIsDoubleSize=function(d){b=d};this.createDescription=function(d,e){return[g,b,a,c,d,e]}}function N(){var g=this,a,c;this.background=function(d,e){if(null===e)d.css("background-image","none");else{!a&&b();var l=a[e];if(l){e=l[1];var m=l[2],k=l[3],u=l[4],r=l[5];l=wa.getIconUrl(l[0]);var t=e?2:1;m=m/t+"px "+k/t+"px";d.css({"background-image":l,"background-position":u/t+"px "+r/t+
"px","background-repeat":"no-repeat"});e&&d.css("background-size",m)}else d.css("background-image","url(data:image/gif;base64,R0lGODlhDAAMAJEDAKOjo+fn5////////yH5BAEAAAMALAAAAAAMAAwAAAImnI8ZwBDqgljPUIGXMw7PCHDeJYRDRy5cQH4WI3nby37VocHJjhQAOw==)"),d.css("background-repeat","no-repeat"),d.css("background-position","center")}};this.regist=function(d,e){!a&&b();if(a[d])throw Error("Duplicate definition.");a[d]=e};var b=function(){a={};c=new I;g.protectedInit(a,c)};this.protectedInit=function(d,e){};this.protectedMethod=
{registIcon:function(d,e,l){d=c.createDescription(d,e);a[l]=d}}}function G(){var g=this,a;this.setUserObject=function(c){a=c};this.getUserObject=function(){return a};this.setTooltips=function(c){g.getJqUi().attr("title",c)};this.getJqUi=function(){throw Error("Override me.");};this.protectedMethod={createBorder:function(c){var b=$("<div>");b.addClass("sa-ctrl-common-border");b.appendTo(c)},setUiForegroundEnabled:function(c,b){b?(c.addClass("sa-ctrl-common-foreground-enabled"),c.removeClass("sa-ctrl-common-foreground-disabled")):
(c.removeClass("sa-ctrl-common-foreground-enabled"),c.addClass("sa-ctrl-common-foreground-disabled"))},setUiBackgroundEnabled:function(c,b){b?(c.addClass("sa-ctrl-common-background-enabled"),c.removeClass("sa-ctrl-common-background-disabled")):(c.removeClass("sa-ctrl-common-background-enabled"),c.addClass("sa-ctrl-common-background-disabled"))}}}function K(g){G.call(this);var a=this.protectedMethod,c=$("<div>");c.text(g);c.addClass("sa-ctrl-label");a.setUiForegroundEnabled(c,!0);this.getJqUi=function(){return c};
this.setEnabled=function(b){a.setUiForegroundEnabled(c,b)};this.setText=function(b){c.text(b)}}function Q(){G.call(this);var g=this,a,c,b=$("<div>"),d=!1,e=[],l=function(){a=$("<div>");a.addClass("lapp-checkbox");a.on("click",k);c=$("<div>");c.addClass("lapp-checkbox-icon");X.background(c,"icon_checkbox_unchecked");c.appendTo(a);b.addClass("lapp-checkbox-text");b.appendTo(a)};this.addCheckedListener=function(r){e.push(r)};this.setText=function(r){b.text(r)};this.setChecked=function(r){r!==d&&(d=r,
m(),u(!1))};this.isChecked=function(){return d};this.getJqUi=function(){a||l();return a};this.setCustomStyle=function(r,t){b.css(r,t)};var m=function(){d?X.background(c,"icon_checkbox_checked"):X.background(c,"icon_checkbox_unchecked")},k=function(r){d=!d;m();u(!0)},u=function(r){for(var t=0;t<e.length;t++)(0,e[t])(g,r)};l()}function ka(){var g=[],a=[];this.addChangedListener=function(b){a.push(b)};this.addElement=function(b){g.push(b);b.addCheckedListener(c)};this.getElements=function(){return g};
this.clearAllChecked=function(){for(var b=0;b<g.length;b++)g[b].setChecked(!1)};var c=function(b,d){if(b.isChecked()){for(var e=0;e<g.length;e++){var l=g[e];l!=b&&l.setChecked(!1)}for(e=0;e<a.length;e++)(0,a[e])(b,d)}}}function la(){var g=this,a,c,b,d,e=44;this.getJqUi=function(){if(!a){a=$("<div>");a.addClass("lapp-datesliderselector");c=$("<div>");c.addClass("lapp-datesliderselector-head");c.appendTo(a);var k=$("<div>");k.addClass("lapp-datesliderselector-head-ok");k.text(O.get("OK","\u786e\u5b9a"));
k.on("click",l);k.appendTo(c);k=$("<div>");k.addClass("lapp-datesliderselector-head-cancel");k.text(O.get("cancel","\u53d6\u6d88"));k.on("click",m);k.appendTo(c);k=$("<div>");k.addClass("lapp-datesliderselector-content");k.css("height",5*e+"px");k.appendTo(a);g.protectedInitContent(k)}return a};this.setOkListener=function(k){b=k};this.setCancelListener=function(k){d=k};this.getSelectedDateMs=function(){throw Error("overwrite me");};this.setDateMs=function(k){throw Error("Overwrite me");};this.setSliderItemHeight=
function(k){e=k};this.hideHead=function(){c.hide()};this.protectedInitContent=function(k){throw Error("Implement me");};var l=function(){b(g)},m=function(){d(g)};this.protectedMethod={getSliderObject:function(){var k=R.isMobile()?new xa:new ya;k.setItemHeight(e);return k},createSelectableItems:function(k,u){for(var r=[];k<=u;k++)r.push(k);return r}}}function V(g){la.call(this);var a=this.protectedMethod,c=g,b=[],d,e,l,m=[],k;this.getSelectedDateMs=function(){if(c==V.YEAR_MODE){var t=d.getValue();
var z=new Date(t,0,1);t=new Date(t,11,31)}else if(c==V.YEAR_MONTH_MODE){t=d.getValue();var f=e.getValue()-1;z=new Date(t,f,1);t=new Date(t,f+1,0)}else if(c=V.YEAR_MONTH_DAY_MODE){t=d.getValue();f=e.getValue()-1;var q=l.getValue();z=new Date(t,f,q);t=new Date(t,f,q)}if(z&&t)return z.setHours(0,0,0,0),t.setHours(23,59,59,999),[z.getTime(),t.getTime()]};this.setDateMs=function(t){t=new Date(t[0]);d.selectDataIndex(t.getFullYear()-1800);e&&e.selectDataIndex(t.getMonth());l&&l.selectDataIndex(t.getDate()-
1)};this.protectedInitContent=function(t){var z=new Date;d=a.getSliderObject();d.getJqUi().appendTo(t);d.setSelectedText(O.get("dateSliderSelectorYear","\u5e74"));d.setChangeListener(function(){u();k&&k()});d.setLoop(!1);var f=a.createSelectableItems(1800,2800);d.setData(f);d.selectDataIndex(z.getFullYear()-1800);m.push(d);c&V.HAS_MONTH&&(e=a.getSliderObject(),e.getJqUi().appendTo(t),e.setSelectedText(O.get("dateSliderSelectorMonth","\u6708")),e.setChangeListener(function(){u();k&&k()}),f=a.createSelectableItems(1,
12),e.setData(f),e.selectDataIndex(z.getMonth()),m.push(e));c&V.HAS_DAY&&(l=a.getSliderObject(),l.getJqUi().appendTo(t),l.setSelectedText(O.get("dateSliderSelectorDay","\u65e5")),u(),l.setChangeListener(function(){k&&k()}),l.setData(b),l.selectDataIndex(z.getDate()-1),m.push(l));r(m)};this.setValueChangeListener=function(t){k=t};var u=function(){if(l){var t=d.getValue(),z=e.getValue();t=(new Date(t,z,0)).getDate();z=l.getDataIdx();t!=b.length&&(b=a.createSelectableItems(1,t),l.setData(b),l.selectDataIndex(z))}},
r=function(t){for(var z=t.length,f=100/z+"%",q=0;q<z;q++){var h=t[q];h.getJqUi().css("width",f);h.setSelectedTextLeftMargin(55);1<=q&&h.setSelectedTextLeftMargin(35)}}}function ya(){var g=this,a,c,b,d,e=44,l,m,k=0,u,r=!1,t=!0;this.getJqUi=function(){c||(a=$("<div>"),a.addClass("lapp-datesliderselector-slider"),a.css("overflow-y","scroll"),a.css("width","100%"),a.css("z-index","1"),c=$("<div>"),c.addClass("lapp-datesliderselector-slider"),d&&c.css("width",d),c.append(a),z());return c};var z=function(){var h,
n;a.scroll(function(B){var C=a.prop("scrollTop");B=Math.round(C/e)+2;f(B);k=B%l.length;r||(clearTimeout(h),h=setTimeout(function(){if(t){var y=e,H=e*(m.length-6),P=a.prop("scrollTop");if(P>H)q(l);else if(P<y){for(y=l.length-1;0<=y;y--)H=$("<div>"),H.addClass("lapp-datesliderselector-slider-item"),H.css({height:e,"line-height":e+"px"}),H.text(l[y]),H.prependTo(a),m.unshift(H);a.scrollTop(P+l.length*e)}}},100),clearTimeout(n),n=setTimeout(function(){var y=a.prop("scrollTop");C==y&&(g.selectDataIndex(k),
u&&u())},400))});var w,p,x=!1,D=function(B){r=x=!1;B=a.prop("scrollTop");a.scrollTop(B+1)};a.on(R.start(),function(B){w=R.getMousePos(B)[1];p=a.prop("scrollTop");r=x=!0});a.on(R.move(),function(B){x&&(B=R.getMousePos(B)[1],a.scrollTop(p-(B-w)))});a.on(R.end(),D);a.on(R.leave(),D)},f=function(h){var n=["19px","16px","13px"],w=[1,.6,.2],p=0<=h-2?h-2:0,x=h+2<m.length?h+2:m.length-1;for(m[h].css({"font-size":n[0],opacity:w[0]});p<=x;p++){var D=Math.abs(h-p);m[p].css({"font-size":n[D],opacity:w[D]})}};
this.setSelectedText=function(h){var n=$("<div>");n.addClass("lapp-datesliderselector-item-selected");n.appendTo(c);n.css({position:"absolute",height:e+"px",width:"100%","line-height":e+"px",top:2*e+"px","background-color":"rgba(69, 152, 240, 0.1)",margin:"auto","text-align":"center"});b=$("<div>");b.text(h);b.addClass("lapp-datesliderselector-item-selected-text");b.appendTo(n)};this.setChangeListener=function(h){u=h};this.setLoop=function(h){t=h};this.setData=function(h){if(m)for(var n=0;n<m.length;n++)m[n].remove();
l=h;m=[];q(l);t&&(q(l),q(l))};this.setWidth=function(h){d=h};this.setItemHeight=function(h){e=h};this.setSelectedTextLeftMargin=function(h){b.css("margin-left",h+"px")};var q=function(h){for(var n=0;n<h.length;n++){var w=$("<div>");w.addClass("lapp-datesliderselector-slider-item");w.css({height:e,"line-height":e+"px"});w.text(h[n]);w.appendTo(a);m.push(w)}};this.selectDataIndex=function(h){k=h;h-=2;t&&(h+=l.length);h*=e;r=!0;a.scrollTop(h);r=!1};this.getValue=function(){return l[k]};this.getDataIdx=
function(){return k}}function xa(){var g=this,a,c,b,d,e,l,m=0,k=!0,u=44,r=!0,t;this.setChangeListener=function(p){t=p};this.setLoop=function(p){k=p};this.getJqUi=function(){a||(a=$("<div>"),a.addClass("lapp-datesliderselector-slider"),l&&a.css("width",l),c=$("<div>"),c.addClass("lapp-datesliderselector-slider-panel"),c.appendTo(a),q());return a};this.setSelectedText=function(p){var x=$("<div>");x.addClass("lapp-datesliderselector-item-selected");x.css({position:"absolute",height:u+"px",width:"100%",
"line-height":u+"px",top:2*u+"px","background-color":"rgba(69, 152, 240, 0.1)",margin:"auto","text-align":"center"});x.appendTo(a);b=$("<div>");b.text(p);b.addClass("lapp-datesliderselector-item-selected-text");b.appendTo(x)};this.getDataIdx=function(){return e?k?3>m?e.length-3+m:m>=e.length+3?m-e.length-3:m-3:m:0};this.selectDataIndex=function(p){p>=e.length&&(p=e.length-1);k?f(p+3):f(p)};this.getValue=function(){var p=g.getDataIdx();return e[p]};this.setData=function(p){c.empty();e=p;d=[];k?(z(e.slice(e.length-
3,e.length)),z(e),z(e.slice(0,3))):z(e)};this.setWidth=function(p){l=p};this.setItemHeight=function(p){u=p};this.setSelectedTextLeftMargin=function(p){b.css("margin-left",p+"px")};this.setZeroFillBefore=function(p){r=p};var z=function(p){for(var x=0;x<p.length;x++){var D=$("<div>");D.addClass("lapp-datesliderselector-slider-item");D.css({height:u,"line-height":u+"px"});var B=D,C=B.text;var y=p[x];y=10>y&&r?"0"+y:y.toString();C.call(B,y);D.appendTo(c);d.push(D)}},f=function(p){h(-p*u+2*u);n(p);m=p},
q=function(){var p=!1,x,D,B=0,C,y,H=function(W){W=w(W);m!=W&&(n(W),m=W)},P=function(W){clearInterval(y);y=setInterval(function(){B*=.9;var T=c.position().top;h(T+B);H(T);1>Math.abs(B)&&(B=0);0==B&&(clearInterval(y),p=!1,T=c.position().top,T=w(T),f(T),t&&t())},30)};a.on(R.start(),function(W){x=R.getMousePos(W)[1];D=c.position().top;p=!0;clearInterval(y);C=x});a.on(R.move(),function(W){var T=R.getMousePos(W)[1];if(p){h(T-x+D);var na=c.position().top;H(na);B=T-C;C=T}W.preventDefault()});a.on(R.end(),
P);a.on(R.leave(),P)},h=function(p){if(k)x=-d.length*u+5*u,D=0,p=p>D?D-e.length*u:p<x?x+e.length*u:p;else{var x=-u*(d.length-3),D=2*u;p<=x&&(p=x);p>=D&&(p=D)}c.css("top",p)},n=function(p){var x=["19px","16px","13px"],D=[1,.6,.2],B=0<=p-2?p-2:0,C=p+2<d.length?p+2:d.length-1;for(d[p].css({"font-size":x[0],opacity:D[0]});B<=C;B++){var y=Math.abs(p-B);d[B].css({"font-size":x[y],opacity:D[y]})}},w=function(p){if(0<=p){var x=p%u<=u/2?-parseInt(p/u)+2:-parseInt(p/u)+1;p>=2*u&&(x=0)}else x=-p%u<=u/2?parseInt(-p/
u)+2:parseInt(-p/u)+3,p<=-u*(d.length-3)&&(x=d.length-1);return x}}function ra(){var g=this,a,c,b,d,e,l=0,m,k,u,r;this.setItemHeight=function(h){c=h};this.setItemCount=function(h){b=h};this.setCreateItemUiFunc=function(h){d=h};this.getJqUi=function(){a||(a=$("<div>"),a.css({"overflow-x":"hidden","overflow-y":"auto"}),a.scroll(z));return a};this.getPaintSectionUi=function(){var h=[];a.children("[name^=lazy_update_scroller]").each(function(n){h.push($(a.children("[name^=lazy_update_scroller]")[n]))});
return h};this.repaint=function(h){a.empty();var n=a.prop("clientHeight");n||(n=window.screen.height);r=n;m=.5*r;k=1*r;u||(u=$('<div style="position:absolute; left:0px; width:20px; height:1px; overflow:hidden">'));u.css("top",b*c+"px");u.appendTo(a);h?(n=a.prop("scrollHeight")-2-r,h=h>n?n:h,a.prop("scrollTop",h),n=t(h-k),h=t(h+r+k),q(0,n,0,h)):q(0,0,0,t(r+k));l=a.prop("scrollTop")};this.keepState=function(){a.data("myScrollTop",a.prop("scrollTop"))};this.restoreState=function(){var h=a.data("myScrollTop");
g.repaint(h)};var t=function(h){h=Math.ceil(h/c);return 0>h?0:h},z=function(h){clearTimeout(e);e=setTimeout(function(){var n=a.prop("scrollTop");if(n<l-m||n>l+m){var w=t(l-k);var p=a.prop("scrollTop");p=[p-k,p+r+k];var x=p[0],D=p[1];p=t(l+r+k);x=t(x);D=t(D);q(w,p,x,D);l=n}a.prop("scrollTop")},50)},f=function(h){return"lazy_update_scroller_"+h},q=function(h,n,w,p){var x=$(document.createDocumentFragment()),D,B;if(p>n){var C=p;for(var y=w>n?w:n;y<C;y++)if(y<b){var H=d(y);H.css("top",y*c);H.attr("name",
f(y));H.appendTo(x)}x.appendTo(a);setTimeout(function(){D=h;B=w>n?n:w;for(var P=D;P<B;P++)a.children("[name='"+f(P)+"']").remove()},100)}else{C=h>p?p:h;for(y=w;y<C;y++)y<b&&(H=d(y),H.css("top",y*c),H.attr("name",f(y)),H.appendTo(x));x.prependTo(a);setTimeout(function(){B=n;for(var P=D=h>p?h:p;P<B;P++)P<b&&a.children("[name='"+f(P)+"']").remove()},100)}}}function za(){var g=this,a=$("<div>"),c,b,d,e,l=[];this.addTab=function(r,t,z){c||(c=$("<div>"),c.addClass("lapp-tab-head-container"),c.appendTo(a));
var f=$("<div>");f.text(r);f.addClass("lapp-tab-head");f.appendTo(c);f.on("click",function(h){k(f,t)});var q=$("<span>");q.addClass("lapp-tab-border");q.appendTo(c);z&&(b?k(f,t):d=[r,t])};this.getCurrentTabPane=function(){return e};this.getJqUi=function(){if(!b&&(b=$("<div>"),b.addClass("lapp-tab-container"),b.appendTo(a),d)){var r=d[0],t=d[1];d=null;for(var z=c.children(".lapp-tab-head"),f=0;f<z.length;f++){var q=$(z[f]);q.text()==r&&k(q,t)}}return a};this.getJqHeadContainer=function(){return c};
this.getJqTabContainer=function(){return b};this.addTabChangedListener=function(r){l.push(r)};var m=function(r){for(var t=0;t<l.length;t++)(0,l[t])(g,r)},k=function(r,t){e=t;c.children(".lapp-tab-head").removeClass("lapp-tab-head_selected");r.addClass("lapp-tab-head_selected");r=t.getJqUi();for(var z=b.children(),f=!1,q=0;q<z.length;q++)z[q]==r[0]?(f=!0,$(z[q]).css("display","block"),u(t)):$(z[q]).css("display","none");f||(aa.layoutCtrlWithLRTB(r,0,0,null,0,0,null),r.appendTo(b),u(t))},u=function(r){aa.isInDomTree(r.getJqUi()[0])?
(r.into(),m(r)):setTimeout(function(){r.into();m(r)},10)}}function Aa(){var g,a=0;this.isHasButtonInMenu=function(){return 0<a};this.countDownButtonInMenu=function(){0<a&&--a};this.addButtonInMenu=function(b,d,e,l){a+=1;c();b=new Ha(b,d,e,l);b.getJqUi().appendTo(g);return b};this.getJqUi=function(){c();return g};this.hide=function(){g.hide()};this.show=function(){g.show()};var c=function(){g||(g=$("<div>"),g.addClass("lapp-secondary-menubar"))}}function Ha(g,a,c,b){var d=this,e,l,m;this.getJqUi=function(){if(!e){e=
$("<div>");e.addClass("lapp-texticonbtn-button");b&&e.css("width",b);e.on("click",k);var u=$("<div>");u.addClass("lapp-texticonbtn-wrapper");l=$("<span>");l.addClass("lapp-texticonbtn-icon");X.background(l,g);m=$("<span>");m.addClass("lapp-texticonbtn-text");m.text(a);var r=$("<div>");r.addClass("lapp-texticonbtn-border");l.appendTo(u);m.appendTo(u);u.appendTo(e);r.appendTo(e)}return e};this.getJqIcon=function(){return l};this.getJqText=function(){return m};var k=function(){c(d)}}function Ba(){var g=
[],a=[],c,b,d,e,l,m,k,u;this.setItemModels=function(h){g=h};this.setDestroyListener=function(h){e=h};this.setSelectedItemModel=function(h){k=h};this.show=function(){c||(c=$("<div>"),c.addClass("lapp-ctrl-common-modallayer"),c.on("click",f),b=$("<div>"),b.addClass("lapp-ctrl-bottomselector"),a=g,r(),u=new ra,u.setItemHeight(45),u.getJqUi().addClass("lapp-ctrl-bottomselector-content"),u.getJqUi().appendTo(b),u.setCreateItemUiFunc(t),u.setItemCount(a.length),u.repaint(),b.appendTo(c),c.appendTo($(document.body)))};
this.setSelectedListener=function(h){d=h};this.getJqUi=function(){return b};var r=function(){l=new sa;l.setSearchListenerDelay(800);l.addSearchListener(q);var h=l.getJqUi(),n=$("<div class='lapp-ctrl-bottomselector-searchbox'>");n.on("click",function(w){w.stopPropagation()});h.appendTo(n);n.appendTo(b)},t=function(h){var n=a[h],w=$("<div>");w.addClass("lapp-ctrl-f7selector-item");var p=$("<div>");p.appendTo(w);p.addClass("lapp-ctrl-bottomselector-item");k&&k.getValue()==n.getValue()&&p.css("background-color",
"rgba(69, 152, 240, 0.2)");n.getText()?p.text(n.getText()):p.text(n.getValue());p.data("model",n);p.on("click",z);h!==g.length-1&&(h=$("<div>"),h.addClass("lapp-ctrl-combox-border"),h.appendTo(p));return w},z=function(h){h=$(h.target).data("model");h!=k&&d(h);f()},f=function(){c.remove();c=null;e&&e()},q=function(){m&&m.hide();b.css("height",b.height());a=l.getText().trim()?$.grep(g,function(h){var n=!1;-1<h.getDisplayText().toUpperCase().indexOf(l.getText().toUpperCase())&&(n=!0);return n}):g;0==
a.length&&(m||(m=$("<div>"),m.addClass("lapp-ctrl-no-search-result-prompt"),m.appendTo(b)),m.show(),m.text(O.get("noMatchedSearch","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")));u.setItemCount(a.length);u.repaint()}}function ma(){var g,a=new Ia,c;this.setIconType=function(b){c=b};this.getJqUi=function(){if(!g){if(g=$("<div>"))if(c==ma.ICON_TYPE_QUESTION)X.background(g,"icon_help"),g.addClass("lapp-sa-ctrl-helpicon-question");else if(c==ma.ICON_TYPE_INFO)X.background(g,"icon_about"),
g.addClass("lapp-sa-ctrl-helpicon-info");else throw Error("The icon type error, please set first.");a.mounting(g)}return g};this.setTipsSize=function(b,d){a.setSize(b,d)};this.setTipsHtml=function(b){a.setHtml(b)};this.setTipsText=function(b){a.setText(b)};this.setTipsPosition=function(b){a.setPosition(b)};this.setContainer=function(b){a.setContainer(b)};this.setContentMaxWidth=function(b){a.setMaxWidth(b)};this.removeTips=function(){a&&a.remove()}}function Ia(){var g=$("<div class='lapp-sa-ctrl-tips-content'>"),
a=$("<div class='lapp-sa-ctrl-tips-arrow'>"),c="auto",b="auto",d,e,l,m=$(document.body);this.setSize=function(f,q){c=f?f:c;b=q?q:b};this.mounting=function(f){d=f;d.off("mouseenter",z);d.off("mouseleave",r);d.off("click",z);d.on("mouseenter",z);d.on("mouseleave",r);d.on("click",z)};this.remove=function(){t()};this.setHtml=function(f){g.html(f)};this.setText=function(f){g.text(f)};this.setPosition=function(f){g.css("position",f);a.css("position",f)};this.setContainer=function(f){m=f};this.setMaxWidth=
function(f){l=f;g.css("max-width",l+"px")};var k=function(f){clearTimeout(e);t()},u=function(f){clearTimeout(e)},r=function(f){clearTimeout(e);e=setTimeout(function(){t()},50)},t=function(){g&&g.remove();a&&a.remove()},z=function(f){clearTimeout(e);a&&a.remove();a.appendTo(m);a.on("mouseenter",u);a.on("mouseleave",k);g&&g.remove();"auto"==c&&g.css("width","auto");"auto"==b&&g.css("height","auto");g.appendTo(m);g.on("mouseenter",u);g.on("mouseleave",k);var q=d.width()/2,h=d.height()/2;f=aa.upwardCoordinate(d[0],
[q,h],m[0]);var n=f[0],w=f[1],p=c,x=b;"auto"==c&&(p=g.outerWidth(!0)+1);"auto"==b&&(x=g.outerHeight(!0)+1);var D=g.outerWidth(!0)-g.width(),B=g.outerHeight(!0)-g.height(),C=m.innerWidth(),y=m.innerHeight();if(f[0]+p<=C&&f[1]+8+x<=y){var H="none";n=f[0]-8-10;w=f[1]+h+8}else f[1]+8+x<=y?(H="oBottom",n=f[0]-n-p+C,w=f[1]+h+8,n>f[0]-8-10?n=f[0]-8-10:n+p<f[0]+8+10?n=f[0]+8+10-p:10>n&&(p=p+n-10,n=10),w+x+10>y&&(x=y-w-10)):f[0]+8+p<=C?(H="oRight",n=f[0]+q+8,w=f[1]-w-x+y,n+p+10>C&&(p=C-n-10),w>f[1]-8-10?w=
f[1]-8-10:w+x<f[1]+8+10?w=f[1]+8+10-x:10>w&&(x=x+w-10,w=10)):(n=n+p-C,w=w+x-y,n>=w?(f[0]>C/2?(H="left",n=f[0]-p-q-8,10>n&&(p=p+n-10,n=10)):(H="right",n=f[0]+q+8,n+p+10>C&&(p=C-n-10)),w=f[1]-w,w>f[1]-8-10?w=f[1]-8-10:w+x<f[1]+8+10?w=f[1]+8+10-x:10>w&&(x=x+w-10,w=10)):(f[1]>y/2?(H="top",w=f[1]-x-h-8,10>w&&(x=x+w-10,w=10)):(H="bottom",w=f[1]+h+8,w+x+10>y&&(x=y-w-10)),n=f[0]-n,n>f[0]-8-10?n=f[0]-8-10:n+p<f[0]+8+10?n=f[0]+8+10-p:10>n&&(p=p+n-10,n=10)));if("none"==H||"oBottom"==H)q=n,C-=n+p,q>C&&(n=Math.max(f[0]+
8+10-p,(q+C)/2));n=Math.max(1,n);C=w=Math.max(1,w);q=p;h=x;g.css("left",n+"px");g.css("top",C+"px");g.css("width",q-D+"px");g.css("height",h-B+"px");g.css("display","block");C=D=0;B="rotate(0deg)";"none"==H?(B="rotate(0deg)",D=f[0],C=w):"oBottom"==H?(B="rotate(0deg)",D=f[0],C=w):"oRight"==H?(B="rotate(-90deg)",D=n,C=f[1]):"left"==H?(B="rotate(90deg)",D=n+p,C=f[1]):"right"==H?(B="rotate(-90deg)",D=n,C=f[1]):"top"==H?(B="rotate(180deg)",D=f[0],C=w+x):"bottom"==H&&(B="rotate(0deg)",D=f[0],C=w);f=C;p=
B;a.css("left",D+"px");a.css("top",f+"px");a.css("display","block");a.css("transform",p);a.css("-ms-transform",p);a.css("-moz-transform",p);a.css("-webkit-transform",p);a.css("-o-transform",p)}}function sa(){var g=this,a,c=[],b,d,e,l,m=0,k;this.getJqUi=function(){a||u();return a};this.clearFnShowInput=function(f){a.off("click");f&&a.on("click",f)};this.setFnShowInput=function(){a.off("click");a.on("click",r)};this.addSearchListener=function(f){c.push(f)};this.setSearchListenerDelay=function(f){m=
f};var u=function(){a=$("<div>");a.addClass("lapp-search-input-container");a.on("click",r);e=$("<span>");e.addClass("lapp-search-icon");X.background(e,"icon_search");e.appendTo(a);l=$("<span>");l.addClass("lapp-search-text");l.text(O.get("search","\u641c\u7d22"));l.appendTo(a);d=$("<div>");d.attr("title",O.get("clear","\u6e05\u9664"));d.addClass("lapp-search-close");d.text("\u00d7");d.on("click",function(){g.clear()})},r=function(){l.css("display","none");b?b.css("display",""):(b=$("<input>"),b.addClass("lapp-search-input"),
b.attr("placeholder",O.get("search","\u641c\u7d22")),b.on("input",function(f){t(m)}),b.on("blur",function(){var f=g.getText();if(null==f||0==f.replace(/(^[\s\u3000]*)|([\s\u3000]*$)/g,"").length)l.css("display",""),b.css("display","none")}),b.appendTo(a));b.focus()};this.getText=function(){return b?$.trim(b.val()):""};this.setText=function(f){r();b.val(f)};this.clearText=function(){b&&b.val("");$(b).blur();d&&d.detach()};this.clear=function(){b&&b.val("");t(0);d&&d.detach();b&&b.focus()};this.setFoucs=
function(){b.focus()};var t=function(f){var q=g.getText();null!=q&&""!=q?d.appendTo(a):d.detach();z(f)},z=function(f){clearTimeout(k);k=setTimeout(function(){for(var q=0;q<c.length;q++)(0,c[q])(g)},f)}}function Ca(){var g=0,a=0,c=300,b=300,d,e,l,m=O.get("close","\u5173\u95ed"),k=!0,u,r,t=[];this.setHeight=function(q){b=q};this.setWidth=function(q){c=q};this.setY=function(q){a=q};this.setClosedListener=function(q){t.push(q)};this.showDialog=function(){var q=$(document.body);e=$("<div>");e.addClass("lapp-ctrl-common-modallayer");
e.appendTo(q);k&&e.on("click",z);var h=q.prop("clientWidth");q=q.prop("clientHeight");g=Math.max(0,h-c>>1);a=Math.max(0,q-b>>1);d=$("<div>");aa.layoutCtrlWithLRTB(d,g,null,c,a,null,b);d.appendTo(e);d.css("background-color","#fff");d.css("user-select","none");d.css("box-shadow","0 2px 8px 0 rgba(0,0,0,0.15)");d.css("border-radius","5px");if(l){var n=$("<div>");n.addClass("lapp-info-dialog-title");aa.makeTextOmissible(n);n.text(l);n.attr("title",l);aa.layoutCtrlWithLRTB(n,20,20,null,0,null,40);n.appendTo(d)}h=
u();n?aa.layoutCtrlWithLRTB(h,20,20,null,40,40,null):aa.layoutCtrlWithLRTB(h,20,20,null,20,20,null);h.appendTo(d);n=$("<div>");n.addClass("lapp-info-dialog-bottom");r?r(n):(h=$("<div>"),h.text(m),h.appendTo(n));n.on("click",f);aa.layoutCtrlWithLRTB(n,0,0,c,null,0,40);n.appendTo(d)};this.setTitle=function(q){l=q};this.setBottomText=function(q){m=q};this.setContentCreator=function(q){u=q};var z=function(q){aa.isDescendent(q.target,d[0])||f()},f=function(){e&&e.remove();t.length&&t.forEach(function(q){q()})};
this.protectedMethod={setFooterCreator:function(q){r=q},preventTouchOutsideToClose:function(){k=!1}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.component&&(com.kingdee.bos.qing.lapp.component={});var L=com.kingdee.bos.qing.lapp.component;
L.Label=K;L.CheckBox=Q;L.CheckBar=function(){G.call(this);var g=this,a,c,b=$("<div>"),d=!1,e=[],l=function(){a=$("<div>");a.addClass("lapp-checkbar");a.on("click",m);c=$("<div>");c.addClass("lapp-checkbar-icon");X.background(c,"icon_checkbox_unchecked");c.appendTo(a);b.addClass("lapp-checkbar-text");b.appendTo(a)};this.addCheckedListener=function(k){e.push(k)};this.setText=function(k){b.text(k)};this.setChecked=function(k){k!==d&&((d=k)?(b.css("color","#349CF4"),X.background(c,"icon_checkbox_checked")):
(b.css("color","#3F3F3F"),X.background(c,"icon_checkbox_unchecked")))};this.isChecked=function(){return d};this.getJqUi=function(){a||l();return a};this.setCustomStyle=function(k,u){b.css(k,u)};var m=function(k){for(k=0;k<e.length;k++)(0,e[k])(g)};l()};L.RadioBarGroup=ka;L.RadioBar=function(){G.call(this);ka.Element.call(this);var g=this,a,c,b=$("<div>"),d=!1,e=[],l=function(){a=$("<div>");a.addClass("lapp-checkbar");a.on("click",k);c=$("<div>");c.addClass("lapp-checkbar-icon");c.appendTo(a);b.addClass("lapp-checkbar-text");
b.appendTo(a)};this.addCheckedListener=function(r){e.push(r)};this.setText=function(r){b.text(r)};this.setChecked=function(r){r!==d&&(d=r,m(),u(!1))};this.isChecked=function(){return d};this.getJqUi=function(){a||l();return a};this.setCustomStyle=function(r,t){b.css(r,t)};var m=function(){d?(b.css("color","#349CF4"),X.background(c,"icon_radiobar_checked")):(b.css("color","#3F3F3F"),c.css("background-image",""))},k=function(r){d=!0;m();u(!0)},u=function(r){for(var t=0;t<e.length;t++)(0,e[t])(g,r)};
l()};L.DateSelectBar=function(g,a){var c;this.getJqUi=function(){if(!c){c=$("<div>");c.addClass("lapp-dateselectbar");var b=$("<div>");b.addClass("lapp-checkbar-text");b.text(g);b.appendTo(c);b=$("<div>");b.addClass("lapp-dateselectbar-content");b.appendTo(c);a.appendTo(b)}return c}};L.DateSelectBox=function(g){var a=this,c,b;this.getJqUi=function(){c||(c=$("<div>"),c.addClass("lapp-dateselectbox"),c.on("click",d));return c};this.setDateText=function(e){b||(b=$("<div>"),b.addClass("lapp-dateselectbox-label"),
c.append(b));b.text(e)};var d=function(){g(a)}};L.DateSliderSelector=V;L.DateRangeSelector=function(){la.call(this);var g,a,c;this.getSelectedDateMs=function(){var b=g.getSelectedDateMs()[0],d=a.getSelectedDateMs()[1];return[b,d]};this.setDateMs=function(b){g.setDateMs([b[0]]);a.setDateMs([b[1]])};this.protectedInitContent=function(b){b.css("height","348px");c=$("<div>");c.addClass("lapp-datesliderselector-label");c.appendTo(b);c.hide();g=new V(V.YEAR_MONTH_DAY_MODE);g.setSliderItemHeight(30);var d=
g.getJqUi();d.appendTo(b);d.css("top","0px");g.hideHead();g.setLabel(O.get("fromDate","\u5f00\u59cb\u65e5\u671f"));a=new V(V.YEAR_MONTH_DAY_MODE);a.setSliderItemHeight(30);a.getJqUi().appendTo(b);a.hideHead();a.setLabel(O.get("toDate","\u7ed3\u675f\u65e5\u671f"))};this.setLabel=function(b){c.text(b);c.show()}};L.DateRangeTabSelector=function(){la.call(this);var g,a,c,b,d;this.getSelectedDateMs=function(){var m=c.getSelectedDateMs()[0],k=b.getSelectedDateMs()[1];return[m,k]};this.setDateMs=function(m){c.setDateMs([m[0]]);
g.text(l(m[0]));b.setDateMs([m[1]]);a.text(l(m[1]));d=m};this.protectedInitContent=function(m){e(m);m.css("height","280px");c=new V(V.YEAR_MONTH_DAY_MODE);c.setValueChangeListener(function(){var u=c.getSelectedDateMs()[0];g.text(l(u))});var k=c.getJqUi();k.appendTo(m);c.hideHead();aa.layoutCtrlWithLRTB(k,null,null,null,56,null,null);b=new V(V.YEAR_MONTH_DAY_MODE);b.setValueChangeListener(function(){var u=b.getSelectedDateMs()[1];a.text(l(u))});k=b.getJqUi();k.appendTo(m);b.hideHead();k.hide();aa.layoutCtrlWithLRTB(k,
null,null,null,56,null,null)};var e=function(m){var k=$("<div>");k.addClass("lapp-daterange-tab-container");k.appendTo(m);var u=$("<div>");u.addClass("lapp-daterange-selector-lefttab");u.addClass("lapp-daterange-selector-selected-tab");u.appendTo(k);u.on("click",function(t){c.getJqUi().show();b.getJqUi().hide();u.addClass("lapp-daterange-selector-selected-tab");r.removeClass("lapp-daterange-selector-selected-tab")});m=$("<div>");m.text(O.get("fromDate","\u5f00\u59cb\u65e5\u671f"));m.appendTo(u);g=
$("<div>");g.appendTo(u);g.css({position:"relative",top:"5px"});m=$("<div>");m.addClass("lapp-daterange-selector-tab-parting-line");m.appendTo(k);var r=$("<div>");r.addClass("lapp-daterange-selector-righttab");r.appendTo(k);r.on("click",function(t){b.getJqUi().show();c.getJqUi().hide();r.addClass("lapp-daterange-selector-selected-tab");u.removeClass("lapp-daterange-selector-selected-tab");d&&(b.setDateMs([d[1]]),a.text(l(d[1])),d=null)});k=$("<div>");k.text(O.get("toDate","\u7ed3\u675f\u65e5\u671f"));
k.appendTo(r);a=$("<div>");a.appendTo(r);a.css({position:"relative",top:"5px"})},l=function(m){var k=new Date(m);m=k.getFullYear();var u=k.getMonth()+1;k=k.getDate();return m+O.get("calendarYearCharacter","\u5e74")+u+O.get("calendarMonthCharacter","\u6708")+k+O.get("calendarDay","\u65e5")}};L.DateOfYearQuarterSelector=function(){la.call(this);var g=this.protectedMethod,a,c,b=[];this.getSelectedDateMs=function(){var d=a.getValue(),e=3*(c.getValue()-1),l=new Date;l.setFullYear(d,e,1);l.setHours(0,0,
0,0);var m=new Date;m.setFullYear(d,e+3,0);m.setHours(23,59,59,999);return[l.getTime(),m.getTime()]};this.setDateMs=function(d){d=new Date(d[0]);a.selectDataIndex(d.getFullYear()-1800);d=Math.floor(d.getMonth()/3);c.selectDataIndex(d)};this.protectedInitContent=function(d){var e=new Date;a=g.getSliderObject();a.getJqUi().appendTo(d);a.setSelectedText(O.get("dateSliderSelectorYear","\u5e74"));a.setLoop(!1);a.getJqUi().css("width","50%");a.setSelectedTextLeftMargin(55);var l=g.createSelectableItems(1800,
2800);a.setData(l);a.selectDataIndex(e.getFullYear()-1800);b.push(a);c=g.getSliderObject();c.setZeroFillBefore(!1);c.getJqUi().appendTo(d);c.setSelectedText(O.get("dateSliderQuarter","\u5b63\u5ea6"));c.getJqUi().css("width","50%");c.setSelectedTextLeftMargin(40);d=g.createSelectableItems(1,4);c.setData(d);c.selectDataIndex(Math.floor(e.getMonth()/3));b.push(c)}};L.DynamicScroller=ra;L.RegionSlider=function(){var g=this,a=[],c,b,d,e,l,m,k,u=!1,r,t,z,f,q,h;this.setFormatString=function(v){c=new qa;
c.setFormatString(v);v=v.split(";");v=(new qa).parseString(v[0]);b=(new qa).parseString("0.00");b.setDecimal(v.getDecimal())};this.setLimited=function(v,J){d=v;e=J;l=e-d;p()};this.setValue=function(v,J){m=v;k=J;p();r&&(y(q,m),y(h,k),setTimeout(x,0))};this.getValue=function(){return[m,k]};this.getJqUi=function(){if(!r){r=$("<div>");r.addClass("lapp-regionslider");q=new K;var v=q.getJqUi();v.addClass("lapp-regionslider-label lapp-regionslider-label-low");v.appendTo(r);ha(q,function(){return m},da);
h=new K;v=h.getJqUi();v.addClass("lapp-regionslider-label lapp-regionslider-label-high");v.appendTo(r);ha(h,function(){return k},ia);void 0!==m&&(y(q,m),y(h,k),setTimeout(x,0))}return r};this.addValueChangedListener=function(v){a.push(v)};var n=function(){for(var v=0;v<a.length;v++)(0,a[v])(g)},w=function(v){v.getJqUi().addClass("lapp-filter-text-selected")},p=function(){void 0!==d&&void 0!==e&&void 0!==m&&void 0!==k&&(d<=m&&m<=e&&d<=k&&k<=e||(u=!0))},x=function(){z=r.innerWidth();f=z-44;t||(t=$(ta.createCanvas()),
t.addClass("lapp-regionslider-canvas"),t.appendTo(r),Ja(t));t.css({width:z,height:30});var v=C(P(),!0),J=C(T(),!1);D(v,J);B(v,11,-10);B(J,11,10)},D=function(v,J){var S=ta.createContext2d(t[0],z,30);S.lineWidth=1;S.strokeStyle="#666";S.strokeRect(21,8,f,5);S.fillStyle="#E5E5E5";S.fillRect(21,8,f,5);0<l&&(S.fillStyle="#4598F0",S.fillRect(v,8,J-v,5))},B=function(v,J,S){var E=t[0].getContext("2d");E.strokeStyle="#666";E.beginPath();E.arc(v+S,J,10,0,2*Math.PI);E.closePath();E.stroke();E.fillStyle="white";
E.fill();E.fillStyle="#4598F0";E.beginPath();E.arc(v+S,J,5,0,2*Math.PI);E.fill()},C=function(v,J){return 22+(0==l?J?0:f:Math.floor((v-d)/l*f))},y=function(v,J){J=c&&c.format(J);v.setText(J)},H=function(v){m=b?parseFloat(b.format(v)):v},P=function(){return Math.max(Math.min(m,e),d)},W=function(v){k=b?parseFloat(b.format(v)):v},T=function(){return Math.max(Math.min(k,e),d)},na=function(){return u?(u=!1,d<=m&&m<=e||(m=d,y(q,m)),d<=k&&k<=e||(k=e,y(h,k)),!0):!1},oa=function(v,J,S,E){v?(v=d,J=v+(T()-P())):
J?(J=e,v=J-(T()-P())):(v=d+S/f*l,J=v+(T()-P()));y(q,v);y(h,J);w(q);w(h);E||(H(v),W(J),n())},A=function(v,J,S,E){v?v=d:J?v=T():(v=d+S/f*l,v=Math.max(v,d),v=Math.min(v,T()));y(q,v);w(q);E||(H(v),n())},M=function(v,J,S,E){v?v=P():J?v=e:(v=d+S/f*l,v=Math.min(v,e),v=Math.max(v,P()));y(h,v);w(h);E||(W(v),n())},da=function(v){isNaN(v)?y(q,m):(v=parseFloat(v),v=Math.max(v,d),v=Math.min(v,T()),H(v),y(q,v),w(q),x(),n())},ia=function(v){isNaN(v)?y(h,k):(v=parseFloat(v),v=Math.min(v,e),v=Math.max(v,P()),W(v),
y(h,v),w(h),x(),n())},ha=function(v,J,S){var E,pa=function(U){U.target!=v.getJqUi()[0]&&U.target!=E[0]&&(U=E.val(),S(U),ca())},ja=function(U){13==U.keyCode||9==U.keyCode?(U=E.val(),S(U),ca()):27==U.keyCode&&ca()},ca=function(){$(document.body).off(R.end(),pa);E[0].blur();E.remove()};v.getJqUi().mousedown(function(U){na();E=$("<input>");E.val(J());E.data("value",v.getUserObject());E.addClass("lapp-regionslider-editor");E.css("left",v.getJqUi().prop("offsetLeft"));E.css("width",v.getJqUi().prop("offsetWidth")-
4);E.css("padding-left",2);E.css("padding-right",2);E.appendTo(r);setTimeout(function(){E[0].focus()},0);$(document.body).on(R.end(),pa);E.on("keydown",ja)})},Ja=function(v){var J=!1,S=!1,E=0,pa,ja,ca,U,Y,ea,Z,ba;v.on(R.start(),function(F){E=Da(F);F=R.getEvent(F);S=na();J=!0;pa=F.screenX;ja=0;ca=C(P(),!0);U=C(T(),!1);Y=C(d,!0);ea=C(e,!1);Z=Y;ba=ea;$(document.body);v.on(R.end(),Ea);v.on(R.leave(),Ka)});v.on(R.move(),function(F){F=R.getEvent(F);if(J){S=!0;ja=F.screenX-pa;if(1==E)F=ca,F=Math.max(F+ja,
Y),Z=F=Math.min(F,U),ba=U,A(Z==Y,Z==U,Z-Y,!0);else if(2==E)Z=ca,F=U,F=Math.min(F+ja,ea),ba=F=Math.max(F,ca),M(ba==ca,ba==ea,ba-Y,!0);else if(3==E){F=ca+ja;if(F<Y)F=[Y,Y+(U-ca)];else{var fa=U+ja;F=fa>ea?[ea-(U-ca),ea]:[F,fa]}Z=F[0];ba=F[1];oa(Z==Y,ba==ea,Z-Y,!0)}D(Z,ba);B(Z,11,-10);B(ba,11,10)}else F=Da(F),E!=F&&(E=F,v.css("cursor",1==F||2==F?"e-resize":3==F?"pointer":"default"))});var Ea=function(F){S&&(3==E?oa(Z==Y,ba==ea,Z-Y):1==E?A(Z==Y,Z==U,Z-Y):2==E&&M(ba==ca,ba==ea,ba-Y));Fa()},Ka=function(F){Fa();
y(q,m);y(h,k)},Fa=function(){S=J=!1;$(document.body);v.off(R.end(),Ea);x()},Da=function(F){var fa=R.getCurrentTargetPosition(F);F=fa[0];fa=fa[1];if(1>fa||21<fa)return 0;var ua=C(P(),!0);if((0<l||u)&&ua-10-10<=F&&F<=ua+10)return 1;var va=C(T(),!1);return(0<l||u)&&va-10<=F&&F<=va+10+10?2:(0<l||u)&&(0<l||u)&&ua<F&&F<va&&8<=fa&&13>=fa?3:0}}};L.BottomBar=function(){var g,a=[];this.getJqUi=function(){if(!g){g=$("<div>");g.addClass("lapp-bottom-bar");for(var c=0;c<a.length;c++)if(a[c].getJqUi().appendTo(g),
c!=a.length-1){var b=$("<div>");b.addClass("lapp-bottom-bar-border");b.appendTo(g)}}return g};this.addButton=function(c){a.push(c)}};L.BottomButton=function(g,a,c,b){var d=this,e;this.getJqUi=function(){e||(e=$("<span>"),e.addClass("lapp-bottom-button"),e.css("color",a),e.css("background-color",c),e.on("click",l),e.text(g));return e};var l=function(){b(d)}};L.TabContainer=za;L.HeadBar=function(){var g=this,a,c,b=$("<div>"),d=$("<div>"),e,l,m=!1,k=!1,u=!0,r,t;this.setTitle=function(f){d.text(f)};this.setDescription=
function(f){z();var q=new ma;q.setIconType(ma.ICON_TYPE_QUESTION);q.setTipsText(f);f=q.getJqUi();f.css({position:"absolute",margin:"13px 5px",display:"inline-block"});f.appendTo(b)};this.setHamburgerMode=function(){m=!0};this.setBackButtonShow=function(f){u=f;c&&(u?c.show():c.hide())};this.setRightText=function(f,q){z();var h=$("<span>");h.text(f);h.addClass("lapp-head-rightbtn");h.on("click",q);h.appendTo(a);return h};this.addRightIconButton=function(f,q){z();var h=$("<div>");h.addClass("lapp-head-righticon-container");
var n=$("<span>");n.addClass("lapp-head-righticon");X.background(n,f);h.on("click",q);n.prependTo(h);h.prependTo(a);return n};this.addRightIconTextButton=function(f,q,h){z();q=$("<div>");q.addClass("lapp-head-right-icontext");q.on("click",h);h=$("<span>");h.addClass("lapp-head-finish-icon");X.background(h,f);f=$("<span>");f.text("\u5b8c\u6210");f.addClass("lapp-head-finish-text");h.appendTo(q);f.appendTo(q);q.prependTo(a);return q};this.addButtonInMenu=function(f,q,h,n){if(m)return z(),l.addButtonInMenu(f,
q,h,n)};this.setBackListener=function(f){r=f};this.setHeadBarResizeListener=function(f){m&&(t=f)};this.getJqUi=function(){z();return a};this.getJqBack=function(){z();return c};this.isMenuShowed=function(){return k};this.detach=function(){a.detach()};var z=function(){if(!a){a=$("<div>");a.addClass("lapp-head-bar");c=$("<div>");c.addClass("lapp-head-triangle-container");c.on("click",r);var f=$("<span>");f.addClass("lapp-head-triangle");X.background(f,"icon_back");f.appendTo(c);c.appendTo(a);!u&&c.hide();
b.addClass("lapp-head-title");d.addClass("lapp-head-title-text");d.appendTo(b);u||m||(b.css("left",0),b.css("right",0));b.appendTo(a);m&&(f=$("<div>"),f.addClass("lapp-head-righticon-container"),e=$("<span>"),e.addClass("lapp-head-righticon"),X.background(e,"btn_list"),e.on("click",g.toggleMenu),e.appendTo(f),f.appendTo(a),l=new Aa,f=l.getJqUi(),f.css("top","44px"),l.hide(),f.appendTo(a))}};this.toggleMenu=function(){k?(a.css("height","44px"),X.background(e,"btn_list"),l.hide()):(a.css("height","88px"),
X.background(e,"btn_listing"),l.show());t&&t(a.height());k=!k}};L.SecondaryMenuBar=Aa;L.BottomSelector=Ba;L.HelpIcon=ma;L.F7Selector=function(){var g,a,c,b,d,e,l,m,k,u,r,t,z,f=[],q=[],h={},n=[];this.setItemModels=function(A){f=A};this.setDestroyListener=function(A){z=A};this.setConfirmListener=function(A){t=A};this.setCancelListener=function(A){};this.setSelectedItemModels=function(A){n=A};this.getSelectedItemModels=function(){return n};this.show=function(){g||w()};this.getJqUi=function(){return a};
this.adjustPosition=function(A){(void 0).css("top",A+88);d.css("bottom","0px");d.css("top",A+88-88);e.css("bottom","0px");e.css("top",A+88-44);(void 0).css("max-height","300px")};var w=function(){g=$("<div>");g.addClass("lapp-ctrl-common-modallayer");a=$("<div>");a.addClass("lapp-ctrl-f7selector");q=f;x();d=$("<div>");d.addClass("lapp-f7selector-head");d.appendTo(a);c=$("<div>");c.addClass("lapp-datesliderselector-head-ok");c.text(O.get("OK","\u786e\u5b9a"));c.on("click",T);c.appendTo(d);b=$("<div>");
b.addClass("lapp-datesliderselector-head-cancel");b.text(O.get("cancel","\u53d6\u6d88"));b.on("click",na);b.appendTo(d);D();B();r=new ra;r.setItemHeight(44);r.getJqUi().addClass("lapp-ctrl-f7selector-content");r.getJqUi().appendTo(a);r.setCreateItemUiFunc(p);r.setItemCount(q.length);r.repaint();a.appendTo(g);g.appendTo($(document.body));g.on("click",function(A){"lapp-ctrl-common-modallayer"==A.target.className&&oa()})},p=function(A){var M=$("<div>");M.addClass("lapp-ctrl-f7selector-item");var da=
q[A],ia=new Q;da.getText()?ia.setText(da.getText()):ia.setText(da.getValue());var ha=ia.getJqUi();ha.addClass("lapp-ctrl-f7selector-item-checkbox");ia.addCheckedListener(P);ha.data("object",da);ha.data("model",ia);ha.attr("name",da.getText());ha.appendTo(M);ia.setChecked(h[da.getValue()]);A!=q.length-1&&(A=$("<div>"),A.addClass("lapp-ctrl-f7selector-border"),A.appendTo(M));return M},x=function(){for(var A=0;A<n.length;A++)h[n[A].getValue()]=!0;H()},D=function(){m=new sa;m.setSearchListenerDelay(800);
m.addSearchListener(C);var A=m.getJqUi(),M=$("<div class='lapp-f7selector-searchbox'>");A.appendTo(M);M.appendTo(a)},B=function(){e=$("<div class='lapp-f7selector-checkbox-all-item'>");u=new Q;u.setText(O.get("selectAll","\u5168\u9009"));u.addCheckedListener(y);n.length==q.length&&u.setChecked(!0);var A=u.getJqUi();A.appendTo(e);A.addClass("lapp-f7selector-checkbox-all");k=new K;A=O.get("selectedCount","\uff08\u5df2\u9009\u62e9#1\u9879\uff09").replace("#1",n.length);var M=k.getJqUi();M.addClass("lapp-f7selector-summary");
k.setText(A);M.appendTo(e);e.appendTo(a)},C=function(){l&&l.hide();q=m.getText().trim()?$.grep(f,function(A){var M=!1;-1<A.getDisplayText().toUpperCase().indexOf(m.getText().toUpperCase())&&(M=!0);return M}):f;0==q.length&&(l||(l=$("<div>"),l.addClass("lapp-ctrl-no-search-result-prompt"),l.appendTo(void 0),l.css("top","0px")),l.show(),l.text(O.get("noMatchedSearch","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")));W();r.setItemCount(q.length);r.repaint()},y=function(A,M){if(M){for(M=
0;M<q.length;M++)h[q[M].getValue()]=A.isChecked();H();W();A=O.get("selectedCount","\uff08\u5df2\u9009\u62e9#1\u9879\uff09").replace("#1",n.length);k.setText(A);r.keepState();r.repaint();r.restoreState()}},H=function(){n=[];for(var A=0;A<f.length;A++){var M=f[A];h[M.getValue()]&&n.push(M)}},P=function(A,M){var da=A.getJqUi().data("object");M&&(h[da.getValue()]=A.isChecked(),H(),W(),r.keepState(),r.repaint(),r.restoreState(),A=O.get("selectedCount","\uff08\u5df2\u9009\u62e9#1\u9879\uff09").replace("#1",
n.length),k.setText(A))},W=function(){var A=!0;if(0<q.length){for(var M=0;M<q.length;M++)if(!h[q[M].getValue()]){A=!1;break}u.setChecked(A)}},T=function(){oa();t()},na=function(){oa()},oa=function(){g.remove();g=null;z&&z()}};L.SearchBox=sa;L.InfoDialog=Ca;L.MobileDialog=function(){Ca.call(this);var g=this,a=this.protectedMethod,c,b;a.preventTouchOutsideToClose();this.createFooterWithTwoBtn=function(d,e,l,m){g.creatNormalFooterWithTwoBtn(l,m);d&&c.text(d);e&&b.text(e)};this.creatNormalFooterWithTwoBtn=
function(d,e){c=$("<div>");c.addClass("lapp-dialog-cancle-btn");c.text(O.get("cancle","\u53d6\u6d88"));d&&c.on("click",d);b=$("<div>");b.addClass("lapp-dialog-ok-btn");b.text(O.get("ok","\u786e\u5b9a"));e&&b.on("click",e);a.setFooterCreator(function(l){c&&c.appendTo(l);b&&b.appendTo(l)})};this.setFooterCreator=function(d){a.setFooterCreator(d)}};L.Toast=function(){var g=$("<div class= 'lapp-ctrl-common-modallayer'>"),a=$("<div class= 'lapp-ctrl-toast'>"),c=0;this.show=function(b,d){a.text(b);a.appendTo(g);
g.css("background","rgba(255,255,255,0)");g.appendTo($(document.body));c&&clearTimeout(c);c=setTimeout(function(){clearTimeout(c);c=0;g.remove()},d)}};L.Slider=xa;L.DeskSlider=ya;var qa,aa,ta,O,wa,Ga;(function(){var g=com.kingdee.bos.qing.common;qa=g.NumberFormater;aa=g.DomUtil;ta=g.CanvasUtil;g=com.kingdee.bos.qing.framework.common;O=g.MultilanguageManager.createPackageAccessor(L);wa=g.Resource;g=com.kingdee.bos.qing.lapp.integration;Ga=g.EnvUtil})();var X=new function(){N.call(this);var g=this.protectedMethod;
this.protectedInit=function(c,b){c=com.kingdee.bos.qing.lapp.ComboIcon;if(!c)throw Error("com.kingdee.bos.qing.lapp.ComboIcon not found.");c.define(b,"lapp-sprite");b.setIsDoubleSize(!0);b.setFileSize(782,40);a(0,0,"icon_follow");a(-32,0,"icon_followed");a(-64,0,"icon_turn_horizontal");a(-96,0,"icon_turn_vertical");a(-128,0,"icon_share");a(-160,0,"icon_about");a(-192,0,"icon_filter");a(-224,0,"icon_refresh");a(-256,0,"icon_back");a(-296,0,"icon_checkbox_unchecked");a(-336,0,"icon_checkbox_checked");
a(-376,0,"icon_praise");a(-412,0,"icon_praised");a(-448,0,"icon_comment");a(-484,0,"icon_rollout");a(-516,0,"icon_search");a(-546,0,"icon_fullscreen");a(-574,0,"icon_fullscreenexit");a(-602,0,"btn_list");a(-638,0,"btn_listing");a(-674,0,"icon_help");a(-706,0,"errorClose");a(-742,0,"icon_radiobar_checked");b.setIsDoubleSize(!1);c.define(b,"dashboard_building");b.setIsDoubleSize(!1);a(0,0,"icon_dashboard_building");c.define(b,"chart_building");b.setIsDoubleSize(!1);a(0,0,"icon_chart_building");c.define(b,
"loading");b.setIsDoubleSize(!1);a(0,0,"loading")};var a=function(c,b,d){g.registIcon(c,b,d)}};L.Icons=X;var R=new function(){var g=Ga.isMobile();this.isMobile=function(){return g};this.start=function(){return g?"touchstart":"mousedown"};this.move=function(){return g?"touchmove":"mousemove"};this.end=function(){return g?"touchend":"mouseup"};this.leave=function(){return"mouseleave"};this.getEvent=function(a){return g?a.originalEvent.touches[0]:a};this.getCurrentTargetPosition=function(a){if(g){var c=
a.target,b=c.getBoundingClientRect();return[(a.originalEvent.touches[0].clientX-b.left)*c.width/window.devicePixelRatio/b.width,(a.originalEvent.touches[0].clientY-b.top)*c.height/window.devicePixelRatio/b.height]}return aa.getCurrentTargetPosition(a)};this.getMousePos=function(a){if(g)return a=a.originalEvent.touches[0],[a.screenX,a.screenY];a=event||window.event;var c=document.documentElement.scrollLeft||document.body.scrollLeft,b=document.documentElement.scrollTop||document.body.scrollTop;return[a.pageX||
a.clintX+c,a.pageY||a.clientY+b]}};L.EventAction=R;ka.Element=function(){this.isChecked=function(){throw Error("Override me.");};this.setChecked=function(g){throw Error("Override me.");};this.addCheckedListener=function(g){throw Error("Override me.");}};V.YEAR_MONTH_DAY_MODE=7;V.YEAR_MONTH_MODE=6;V.YEAR_MODE=4;V.HAS_MONTH=2;V.HAS_DAY=1;za.AbstractTabPane=function(){this.getJqUi=function(){};this.into=function(){}};Ba.AbstractModel=function(){this.getText=function(){throw Error("Override me.");}};
ma.ICON_TYPE_QUESTION="question";ma.ICON_TYPE_INFO="info";L.Toast.LENGTH_SHORT=2E3;L.Toast.LENGTH_LONG=3500})();
//qingVersionTag: 20250415