var tq={lVa:function(a){u.assert(null!=a);var b=q.oa(),d=a.g(),e=I.j(d,tq.$K),d=I.j(d,tq.HK),e=b.getElementById(e),b=b.getElementById(d);e&&(d=C.Dc(e.firstChild).length,e=tq.SKa(e),"auto"==e&&(e=d*parseInt(tq.GAa)+"px"),a.Bjb=e);b&&(e=C.Dc(b.firstChild).length,b=tq.SKa(b),"auto"==b&&(b=e*parseInt(tq.GAa)+"px"),a.zjb=b)}};m("AdfSwipeToRevealUtils.setUpSwipeActions",tq.lVa);
tq.Ata=function(a){u.assert(null!=a);var b=q.oa(),d=a.g();a=I.j(d,tq.$K);d=I.j(d,tq.HK);a=b.getElementById(a);b=b.getElementById(d);return a||b};m("AdfSwipeToRevealUtils.isSwipeEnabled",tq.Ata);tq.Md=function(a,b,d,e){u.assert(null!=a);u.assert(null!=b);u.Tc(a);u.Tc(b);u.Ja(d);u.Ja(e);var f=q.b.Xb(b);a.qu={zI:f.x,AI:f.y,spb:!0};A.c.Md(b,d,e,void 0,!1)};m("AdfSwipeToRevealUtils.startDrag",tq.Md);
tq.Vy=function(a,b,d){u.assert(null!=b);u.assert(null!=a);var e=a.pageX,f=a.pageY;a.targetTouches&&(f=a.targetTouches,e=f[0].pageX,f=f[0].pageY);if(b.qu){var g=q.b.Dd()?10:3;if(Math.abs(b.qu.zI-e)>g||Math.abs(b.qu.AI-f)>g)return v.l.fine("Drag recognized for:",a),a;tq.Oaa(b,d)}else b.qu={zI:e,AI:f,spb:!0}};m("AdfSwipeToRevealUtils.recognizeDrag",tq.Vy);
tq.eTa=function(a,b,d,e){u.assert(null!=a);u.assert(null!=b);u.Da(d);u.Da(e);var f=b.firstChild;e=tq.xeb(d,e);var g=q.oa(),h=a.g(),l=A.c.Ka().La(),n=a.qu;A.c.H();if(e!=tq.fBa&&e!=tq.dBa){var t=I.j(h,tq.$K),h=I.j(h,tq.HK),y=f.style.transform.replace(/translate3d|px|\(|\)/gi,"").split(",");d=Number(y[0])+d;if(0<Math.abs(d)){h=g.getElementById(h);t=(g=g.getElementById(t))&&"flex"==g.style.display;y=h&&"flex"==h.style.display;if(e==tq.CS&&0>d){if(!l&&t){delete n.yF;return}if(l&&y){delete n.yF;return}}if(e==
tq.ES&&0<d){if(!l&&y){delete n.yF;return}if(l&&t){delete n.yF;return}}t=h&&"flex"==h.style.display?h:g;tq.Mmb(a,b,t)?(a=tq.eKa(t,!0),n.zU=a):(n.zU&&delete n.zU,tq.eKa(t,!1));l?e==tq.CS?tq.gLa(g,h,d):e==tq.ES&&tq.eLa(g,h,d):e==tq.CS?tq.eLa(g,h,d):e==tq.ES&&tq.gLa(g,h,d);t=g&&"flex"==g.style.display;y=h&&"flex"==h.style.display;if(t||y)f.style.transform="translate3d("+d+"px, 0px, 0px)"}}};m("AdfSwipeToRevealUtils.handleDrag",tq.eTa);
tq.eLa=function(a,b,d){a&&"flex"==a.style.display?a.style.width=""+Math.abs(d)+"px":b&&(b.style.display="flex",b.style.width=""+Math.abs(d)+"px")};tq.gLa=function(a,b,d){b&&"flex"==b.style.display?b.style.width=""+Math.abs(d)+"px":a&&(a.style.display="flex",a.style.width=""+Math.abs(d)+"px",isStartFacetDisplayed=!0)};
tq.fTa=function(a,b){u.assert(null!=a);u.assert(null!=b);var d=b.firstChild,e=a.g(),f=q.oa(),g=A.c.Ka().La(),h=a.qu,l=A.c.H();C.w(d,l.getStyleClass(tq.hBa));h.zU||(h=I.j(e,tq.$K),e=I.j(e,tq.HK),e=f.getElementById(e),f=f.getElementById(h),h=parseInt(window.getComputedStyle(b,null).getPropertyValue("width"),10),e&&"flex"==e.style.display?tq.hLa(e,d,a.zjb,h,!1,g):f&&"flex"==f.style.display&&tq.hLa(f,d,a.Bjb,h,!0,g))};m("AdfSwipeToRevealUtils.handleDrop",tq.fTa);tq.omb=function(a){a.style.display="none"};
tq.nlb=function(a,b){var d=A.c.H();C.O(a,d.getStyleClass(tq.hBa));C.O(b,d.getStyleClass(tq.gBa))};
tq.hLa=function(a,b,d,e,f,g){var h=A.c.H();C.w(a,h.getStyleClass(tq.gBa));var h=parseInt(a.style.width,10),l=parseInt(d,10);if(h>=l||h>=.25*e)b.style.transform=g?f?"translate3d("+-l+"px, 0px, 0px)":"translate3d("+l+"px, 0px, 0px)":f?"translate3d("+l+"px, 0px, 0px)":"translate3d("+-l+"px, 0px, 0px)",a.style.width=d;else{b.style.transform="translate3d(0px, 0px, 0px)";a.style.width=d;var n=function(){tq.omb(a);tq.nlb(this,a);this.removeEventListener("transitionend",n)};b.addEventListener("transitionend",
n)}};tq.dTa=function(a){a=a.qu;null!=a.zU&&(a=a.zU,ab.F(a,a.getPartialSubmit()))};m("AdfSwipeToRevealUtils.handleDefaultAction",tq.dTa);tq.Oaa=function(a,b){u.assert(null!=a);u.assert(null!=b);delete a.qu;tq.BUa(a,b)};m("AdfSwipeToRevealUtils.tearDownSwipeActions",tq.Oaa);
tq.BUa=function(a,b){u.assert(null!=a);u.assert(null!=b);var d=q.oa(),e=a.g(),f=b.firstChild,g=I.j(e,tq.$K),e=I.j(e,tq.HK),g=d.getElementById(g),d=d.getElementById(e);""!=f.style.transform&&(f.style.transform="translate3d(0px, 0px, 0px)");g&&"none"!=g.style.display&&(g.style.display="none");d&&"none"!=d.style.display&&(d.style.display="none")};m("AdfSwipeToRevealUtils.restoreListItemView",tq.BUa);
tq.BTa=function(a,b){u.assert(null!=a);u.assert(null!=b);var d=q.b,e=b.g(),f=a.U(),g=I.j(e,tq.$K),e=I.j(e,tq.HK),g=d.getElementById(g),e=d.getElementById(e),h;g&&(h=d.Dh(f,g));!h&&e&&(h=d.Dh(f,e));return h};m("AdfSwipeToRevealUtils.isEventInFacet",tq.BTa);tq.SKa=function(a){a=a.firstChild.children;var b=0;for(i=0;i<a.length;i++){var d=window.getComputedStyle(a[i],null).getPropertyValue("width");if(!d||"auto"==d)return"auto";b+=parseInt(d,10)}return""+b+"px"};
tq.xeb=function(a,b){var d=180/3.14*Math.atan2(b,a);if(Math.abs(a)>Math.abs(b)&&0<a)return tq.ES;if(Math.abs(a)>Math.abs(b)&&0>a)return tq.CS;if(Math.abs(b)>Math.abs(a)&&0<b)return tq.KHa(a,d)||tq.fBa;if(Math.abs(b)>Math.abs(a)&&0>b)return tq.KHa(a,d)||tq.dBa};tq.KHa=function(a,b){return 0<a&&Math.abs(b)<tq.yCa?tq.ES:0>a&&Math.abs(b)>Number(180-tq.yCa)?tq.CS:null};
tq.Mmb=function(a,b,d){if(!d)return!1;var e=0,e=parseInt(window.getComputedStyle(b,null).getPropertyValue("width"),10);a=a.qu;e=50*e/100;a.Swb=e;return parseInt(d.style.width)>e?!0:!1};tq.eKa=function(a,b){if(a){var d=a.firstChild.children,e;for(i=0;i<d.length;i++)C.sa(d[i],tq.q_a)?(e&&v.l.warning("Duplicate default item, one of the action item has already beenmarked as default.",d[i]),e=d[i]):d[i].style.maxWidth=b?"0":"100%";e&&(e=A.c.m(e.getElementsByTagName("A")[0].id));return e}};tq.$K="stFct";
tq.HK="ndFct";tq.CS="left";tq.ES="right";tq.fBa="up";tq.dBa="down";tq.q_a="AFDefaultTrigger";tq.GAa="75px";tq.yCa=40;tq.hBa="AFDropAnimation";tq.gBa="AFDropActionsWidthAnimation";