var vq={pVa:function(a){u.assert(null!=a);var b=q.oa(),d=a.g(),e=I.j(d,vq.$K),d=I.j(d,vq.HK),e=b.getElementById(e),b=b.getElementById(d);e&&(d=C.Dc(e.firstChild).length,e=vq.XKa(e),"auto"==e&&(e=d*parseInt(vq.KAa)+"px"),a.Cjb=e);b&&(e=C.Dc(b.firstChild).length,b=vq.XKa(b),"auto"==b&&(b=e*parseInt(vq.KAa)+"px"),a.Ajb=b)}};m("AdfSwipeToRevealUtils.setUpSwipeActions",vq.pVa);
vq.Eta=function(a){u.assert(null!=a);var b=q.oa(),d=a.g();a=I.j(d,vq.$K);d=I.j(d,vq.HK);a=b.getElementById(a);b=b.getElementById(d);return a||b};m("AdfSwipeToRevealUtils.isSwipeEnabled",vq.Eta);vq.Md=function(a,b,d,e){u.assert(null!=a);u.assert(null!=b);u.Uc(a);u.Uc(b);u.Ja(d);u.Ja(e);var f=q.b.Xb(b);a.ru={zI:f.x,AI:f.y,spb:!0};A.c.Md(b,d,e,void 0,!1)};m("AdfSwipeToRevealUtils.startDrag",vq.Md);
vq.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.ru){var g=q.b.Dd()?10:3;if(Math.abs(b.ru.zI-e)>g||Math.abs(b.ru.AI-f)>g)return v.l.fine("Drag recognized for:",a),a;vq.Qaa(b,d)}else b.ru={zI:e,AI:f,spb:!0}};m("AdfSwipeToRevealUtils.recognizeDrag",vq.Vy);
vq.jTa=function(a,b,d,e){u.assert(null!=a);u.assert(null!=b);u.Da(d);u.Da(e);var f=b.firstChild;e=vq.yeb(d,e);var g=q.oa(),h=a.g(),l=A.c.Ka().La(),n=a.ru;A.c.H();if(e!=vq.jBa&&e!=vq.hBa){var t=I.j(h,vq.$K),h=I.j(h,vq.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==vq.CS&&0>d){if(!l&&t){delete n.yF;return}if(l&&y){delete n.yF;return}}if(e==
vq.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;vq.Mmb(a,b,t)?(a=vq.jKa(t,!0),n.zU=a):(n.zU&&delete n.zU,vq.jKa(t,!1));l?e==vq.CS?vq.lLa(g,h,d):e==vq.ES&&vq.jLa(g,h,d):e==vq.CS?vq.jLa(g,h,d):e==vq.ES&&vq.lLa(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",vq.jTa);
vq.jLa=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")};vq.lLa=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)};
vq.kTa=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.ru,l=A.c.H();C.w(d,l.getStyleClass(vq.lBa));h.zU||(h=I.j(e,vq.$K),e=I.j(e,vq.HK),e=f.getElementById(e),f=f.getElementById(h),h=parseInt(window.getComputedStyle(b,null).getPropertyValue("width"),10),e&&"flex"==e.style.display?vq.mLa(e,d,a.Ajb,h,!1,g):f&&"flex"==f.style.display&&vq.mLa(f,d,a.Cjb,h,!0,g))};m("AdfSwipeToRevealUtils.handleDrop",vq.kTa);vq.omb=function(a){a.style.display="none"};
vq.olb=function(a,b){var d=A.c.H();C.O(a,d.getStyleClass(vq.lBa));C.O(b,d.getStyleClass(vq.kBa))};
vq.mLa=function(a,b,d,e,f,g){var h=A.c.H();C.w(a,h.getStyleClass(vq.kBa));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(){vq.omb(a);vq.olb(this,a);this.removeEventListener("transitionend",n)};b.addEventListener("transitionend",
n)}};vq.iTa=function(a){a=a.ru;null!=a.zU&&(a=a.zU,ab.F(a,a.getPartialSubmit()))};m("AdfSwipeToRevealUtils.handleDefaultAction",vq.iTa);vq.Qaa=function(a,b){u.assert(null!=a);u.assert(null!=b);delete a.ru;vq.FUa(a,b)};m("AdfSwipeToRevealUtils.tearDownSwipeActions",vq.Qaa);
vq.FUa=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,vq.$K),e=I.j(e,vq.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",vq.FUa);
vq.GTa=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,vq.$K),e=I.j(e,vq.HK),g=d.getElementById(g),e=d.getElementById(e),h;g&&(h=d.$g(f,g));!h&&e&&(h=d.$g(f,e));return h};m("AdfSwipeToRevealUtils.isEventInFacet",vq.GTa);vq.XKa=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"};
vq.yeb=function(a,b){var d=180/3.14*Math.atan2(b,a);if(Math.abs(a)>Math.abs(b)&&0<a)return vq.ES;if(Math.abs(a)>Math.abs(b)&&0>a)return vq.CS;if(Math.abs(b)>Math.abs(a)&&0<b)return vq.OHa(a,d)||vq.jBa;if(Math.abs(b)>Math.abs(a)&&0>b)return vq.OHa(a,d)||vq.hBa};vq.OHa=function(a,b){return 0<a&&Math.abs(b)<vq.CCa?vq.ES:0>a&&Math.abs(b)>Number(180-vq.CCa)?vq.CS:null};
vq.Mmb=function(a,b,d){if(!d)return!1;var e=0,e=parseInt(window.getComputedStyle(b,null).getPropertyValue("width"),10);a=a.ru;e=50*e/100;a.Uwb=e;return parseInt(d.style.width)>e?!0:!1};vq.jKa=function(a,b){if(a){var d=a.firstChild.children,e;for(i=0;i<d.length;i++)C.sa(d[i],vq.v_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}};vq.$K="stFct";
vq.HK="ndFct";vq.CS="left";vq.ES="right";vq.jBa="up";vq.hBa="down";vq.v_a="AFDefaultTrigger";vq.KAa="75px";vq.CCa=40;vq.lBa="AFDropAnimation";vq.kBa="AFDropActionsWidthAnimation";