废了半天劲,总算把这东西破解了。
按照网上主流方法,搜索_processItem 把相关的代码都删除
如果是append(x_processItem)改成append()
如果是字符串拼接,直接把_processItem删掉
如果是_processItem=function这样的,要把整个function全部删掉
最后找到version:"2.17.1" 这样一段,改成version:"2.17.1",running:1
就能完成破解了。
其实个版本通用。
附上2.17.1的破解版
/* b04e1ae4-b5cb-47e5-baaa-f1f05be774bd 破解*/
(function(a,t){function j(a){for(var b in a)if(O[a[b]]!==t)return!0;return!1}function u(b,c,d){var g=b;if("object"===typeof c)return b.each(function(){n[this.id]&&n[this.id].destroy();new a.mobiscroll.classes[c.component||"Scroller"](this,c)});"string"===typeof c&&b.each(function(){var a;if((a=n[this.id])&&a[c])if(a=a[c].apply(this,Array.prototype.slice.call(d,1)),a!==t)return g=a,!1});return g}function f(a){if(d.tapped&&!a.tap&&!("TEXTAREA"==a.target.nodeName&&"mousedown"==a.type))return a.stopPropagation(),
a.preventDefault(),!1}var d,y=+new Date,n={},m=a.extend,O=document.createElement("modernizr").style,b=j(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]),c=j(["flex","msFlex","WebkitBoxDirection"]),da=function(){var a=["Webkit","Moz","O","ms"],b;for(b in a)if(j([a[b]+"Transform"]))return"-"+a[b].toLowerCase()+"-";return""}(),Q=da.replace(/^\-/,"").replace(/\-$/,"").replace("moz","Moz");a.fn.mobiscroll=function(b){m(this,a.mobiscroll.components);return u(this,
b,arguments)};d=a.mobiscroll=a.mobiscroll||{version:"2.17.1",running:1,util:{prefix:da,jsPrefix:Q,has3d:b,hasFlex:c,isOldAndroid:/android [1-3]/i.test(navigator.userAgent),preventClick:function(){d.tapped++;setTimeout(function(){d.tapped--},500)},testTouch:function(b,c){if("touchstart"==b.type)a(c).attr("data-touch","1");else if(a(c).attr("data-touch"))return a(c).removeAttr("data-touch"),!1;return!0},objectToArray:function(a){var b=[],c;for(c in a)b.push(a[c]);return b},arrayToObject:function(a){var b={},
c;if(a)for(c=0;c').insertAfter(b).append(b);q&&g.find(".mbsc-input-wrap").append(q);k&&(-1!==k.indexOf("{")?d=JSON.parse(k):d[f]=k,m(d,c),g.addClass((d.right?"mbsc-ic-right ":"")+(d.left?" mbsc-ic-left":"")).find(".mbsc-input-wrap").append(d.left?'':"").append(d.right?'':""))},constrain:function(a,b,c){return Math.max(b,Math.min(a,c))},vibrate:function(a){"vibrate"in navigator&&navigator.vibrate(a||50)}},tapped:0,autoTheme:"mobiscroll",presets:{scroller:{},numpad:{},listview:{},menustrip:{}},themes:{form:{},frame:{},listview:{},menustrip:{},progress:{}},i18n:{},instances:n,classes:{},components:{},defaults:{context:"body",mousewheel:!0,vibrate:!0},
setDefaults:function(a){m(this.defaults,a)},presetShort:function(a,b,c){this.components[a]=function(g){return u(this,m(g,{component:b,preset:!1===c?t:a}),arguments)}}};a.mobiscroll.classes.Base=function(b,c){var d,g,q,f,k,i,j=a.mobiscroll,u=j.util,r=u.getCoord,h=this;h.settings={};h._presetLoad=function(){};h._init=function(a){q=h.settings;m(c,a);h._hasDef&&(i=j.defaults);m(q,h._defaults,i,c);if(h._hasTheme){k=q.theme;if("auto"==k||!k)k=j.autoTheme;"default"==k&&(k="mobiscroll");c.theme=k;f=j.themes[h._class]?
j.themes[h._class][k]:{}}h._hasLang&&(d=j.i18n[q.lang]);h._hasTheme&&h.trigger("onThemeLoad",[d,c]);m(q,f,d,i,c);if(h._hasPreset&&(h._presetLoad(q),g=j.presets[h._class][q.preset]))g=g.call(b,h),m(q,g,c)};h._destroy=function(){h.trigger("onDestroy",[]);delete n[b.id];h=null};h.tap=function(b,c,g){function i(b){if(!e&&(g&&b.preventDefault(),e=this,m=r(b,"X"),n=r(b,"Y"),j=!1,"pointerdown"==b.type))a(document).on("pointermove",d).on("pointerup",k)}function d(a){if(e&&!j&&9w?D.addClass("dw-liq"):D.removeClass("dw-liq"));!l._isFullScreen&&/modal|bubble/.test(x.display)&&(R.width(""),a(".mbsc-w-p",D).each(function(){g=a(this).outerWidth(!0);v+=g;m=g>m?g:m}),g=v>w?m:v,R.width(g+1).css("white-space",v>w?"":"nowrap"));K=e.outerWidth();P=e.outerHeight(!0);Z=P<=n&&K<=w;(l.scrollLock=Z)?ba.addClass("mbsc-fr-lock"):ba.removeClass("mbsc-fr-lock");"modal"==x.display?(d=Math.max(0,d+(w-K)/2),s=c+(n-P)/2):"bubble"==
x.display?(f=fa!==w,q=a(".dw-arrw-i",D),s=i.offset(),k=Math.abs(ba.offset().top-s.top),X=Math.abs(ba.offset().left-s.left),J=i.outerWidth(),i=i.outerHeight(),d=b(X-(e.outerWidth(!0)-J)/2,d+3,d+w-K-3),s=k-P,sc+n?(e.removeClass("dw-bubble-top").addClass("dw-bubble-bottom"),s=k+i):e.removeClass("dw-bubble-bottom").addClass("dw-bubble-top"),q=q.outerWidth(),J=b(X+J/2-(d+(K-q)/2),0,q),a(".dw-arr",D).css({left:J})):"top"==x.display?s=c:"bottom"==x.display&&(s=c+n-P);s=0>s?0:s;h.top=s;h.left=d;e.css(h);
W.height(0);h=Math.max(s+P,"body"==x.context?a(j).height():ba[0].scrollHeight);W.css({height:h});if(f&&(s+P>c+n||k>c+n))H=!0,setTimeout(function(){H=false},300),E.scrollTop(Math.min(k,s+P-n,h-n));fa=w;la=n;a(".mbsc-comp",D).each(function(){var b=a(this).mobiscroll("getInst");b!==l&&b.position&&b.position()})}};l.attachShow=function(a,b){ia.push({readOnly:a.prop("readonly"),el:a});if("inline"!==x.display){if(ha&&a.is("input"))a.prop("readonly",!0).on("mousedown.dw",function(a){a.preventDefault()});
if(x.showOnFocus)a.on("focus.dw",function(){d||h(b,a)});x.showOnTap&&(a.on("keydown.dw",function(c){if(32==c.keyCode||13==c.keyCode)c.preventDefault(),c.stopPropagation(),h(b,a)}),l.tap(a,function(){h(b,a)}))}};l.select=function(){S?l.hide(!1,"set",!1,A):A()};l.cancel=function(){S?l.hide(!1,"cancel",!1,B):A()};l.clear=function(){T("onClear",[D]);S&&l._isVisible&&!l.live?l.hide(!1,"clear",!1,ja):ja()};l.enable=function(){x.disabled=!1;l._isInput&&M.prop("disabled",!1)};l.disable=function(){x.disabled=
!0;l._isInput&&M.prop("disabled",!0)};l.show=function(b,d){var g;if(!x.disabled&&!l._isVisible){l._readValue();if(!1===T("onBeforeShow",[]))return!1;Y=da?!1:x.animate;!1!==Y&&("top"==x.display&&(Y="slidedown"),"bottom"==x.display&&(Y="slideup"));g=''+(S?'':"")+"'+("bubble"===x.display?'':"")+''+(x.headerText?''+(c(x.headerText)?x.headerText:"")+"":"")+'';g+=l._generateContent();g+="";z&&(g+='',a.each(ga,function(a,b){b=c(b)?l.buttons[b]:b;if(b.handler===
"set")b.parentClass="dwb-s";if(b.handler==="cancel")b.parentClass="dwb-c";g=g+("'+(b.text||"")+"")}),g+="");g+="";D=a(g);W=a(".dw-persp",D);w=a(".dwo",D);R=a(".dwwr",D);v=a(".dwv",D);e=a(".dw",D);ea=a(".dw-aria",D);l._markup=
D;l._header=v;l._isVisible=!0;$="orientationchange resize";l._markupReady(D);T("onMarkupReady",[D]);if(S){a(t).on("keydown",k);if(x.scrollLock)D.on("touchmove mousewheel wheel",function(a){Z&&a.preventDefault()});"Moz"!==m&&a("input,select,button",ba).each(function(){this.disabled||a(this).addClass("dwtd").prop("disabled",true)});y.activeInstance&&y.activeInstance.hide();$+=" scroll";y.activeInstance=l;D.appendTo(ba);if(x.focusTrap)E.on("focusin",F);O&&Y&&!b&&D.addClass("dw-in dw-trans").on("webkitAnimationEnd animationend",
function(){D.off("webkitAnimationEnd animationend").removeClass("dw-in dw-trans").find(".dw").removeClass("dw-"+Y);d||e.focus();l.ariaMessage(x.ariaMessage)}).find(".dw").addClass("dw-"+Y)}else M.is("div")&&!l._hasContent?M.html(D):D.insertAfter(M);l._markupInserted(D);T("onMarkupInserted",[D]);l.position();E.on($,N);D.on("selectstart mousedown",ca).on("click",".dwb-e",ca).on("keydown",".dwb-e",function(b){if(b.keyCode==32){b.preventDefault();b.stopPropagation();a(this).click()}}).on("keydown",function(b){if(b.keyCode==
32)b.preventDefault();else if(b.keyCode==9&&S&&x.focusTrap){var c=D.find('[tabindex="0"]').filter(function(){return this.offsetWidth>0||this.offsetHeight>0}),J=c.index(a(":focus",D)),e=c.length-1,g=0;if(b.shiftKey){e=0;g=-1}if(J===e){c.eq(g).focus();b.preventDefault()}}});a("input,select,textarea",D).on("selectstart mousedown",function(a){a.stopPropagation()}).on("keydown",function(a){a.keyCode==32&&a.stopPropagation()});a.each(ga,function(b,e){l.tap(a(".dwb"+b,D),function(a){e=c(e)?l.buttons[e]:
e;(c(e.handler)?l.handlers[e.handler]:e.handler).call(this,a,l)},true)});x.closeOnOverlay&&l.tap(w,function(){l.cancel()});S&&!Y&&(d||e.focus(),l.ariaMessage(x.ariaMessage));D.on("touchstart mousedown pointerdown",".dwb-e",q).on("touchend",".dwb-e",aa);l._attachEvents(D);T("onShow",[D,l._tempValue])}};l.hide=function(b,c,e,g){if(!l._isVisible||!e&&!l._isValid&&"set"==c||!e&&!1===T("onBeforeClose",[l._tempValue,c]))return!1;D&&("Moz"!==m&&a(".dwtd",ba).each(function(){a(this).prop("disabled",!1).removeClass("dwtd")}),
O&&S&&Y&&!b&&!D.hasClass("dw-trans")?D.addClass("dw-out dw-trans").on("webkitAnimationEnd animationend",function(){i(b)}).find(".dw").addClass("dw-"+Y):i(b),E.off($,N).off("focusin",F));S&&(ba.removeClass("mbsc-fr-lock"),a(t).off("keydown",k),delete y.activeInstance);g&&g();T("onClosed",[l._value])};l.ariaMessage=function(a){ea.html("");setTimeout(function(){ea.html(a)},100)};l.isVisible=function(){return l._isVisible};l.setVal=Q;l.getVal=Q;l._generateContent=Q;l._attachEvents=Q;l._readValue=Q;l._fillValue=
Q;l._markupReady=Q;l._markupInserted=Q;l._markupRemove=Q;l._processSettings=Q;l._presetLoad=function(a){a.buttons=a.buttons||("inline"!==a.display?["set","cancel"]:[]);a.headerText=a.headerText===u?"inline"!==a.display?"{value}":!1:a.headerText};l.destroy=function(){l.hide(!0,!1,!0);a.each(ia,function(a,b){b.el.off(".dw").prop("readonly",b.readOnly)});l._destroy()};l.init=function(b){b.onClose&&(b.onBeforeClose=b.onClose);l._init(b);l._isLiquid="liquid"===(x.layout||(/top|bottom/.test(x.display)?
"liquid":""));l._processSettings();M.off(".dw");ga=x.buttons||[];S="inline"!==x.display;ha=x.showOnFocus||x.showOnTap;l._window=E=a("body"==x.context?t:x.context);l._context=ba=a(x.context);l.live=!0;a.each(ga,function(a,b){if(b=="ok"||b=="set"||b.handler=="set")return l.live=false});l.buttons.set={text:x.setText,handler:"set"};l.buttons.cancel={text:l.live?x.closeText:x.cancelText,handler:"cancel"};l.buttons.clear={text:x.clearText,handler:"clear"};l._isInput=M.is("input");z=0mb?b=!0:Ma+Ea-Ea/4+d>mb&&(Ia=va.addClass("mbsc-lv-item-hl"),c=!1):Ma+Ea/2+d>mb&&(va.hasClass("mbsc-lv-back")?I.sortable.multiLevel&&(pa=va.addClass("mbsc-lv-item-hl"),c=!1):b=!0),b))db.insertAfter(va),Pa=va,va=ha(va,"next"),nb=mb,mb=va.length&&
va[0].offsetTop,Ba++;if(!b&&nb&&(I.sortable.multiLevel&&Pa.hasClass("mbsc-lv-parent")?Ma+Ea-Ea/4+dMath.abs(na)&&5>Math.abs(Ga)&&(Ca.tap&&(e=Ca.tap.call(Ra,L,ua,b,I)),Wb&&("touchend"===b.type&&m.preventClick(),L.addClass("mbsc-lv-item-active"),Aa("onItemActivate",
[L,b])),e=Aa("onItemTap",[L,ua,b]),!1!==e&&ia(L));clearTimeout(sa);setTimeout(function(){L.removeClass("mbsc-lv-item-active");Aa("onItemDeactivate",[L])},100);vb=!1;Ja=null}}function B(){if(lb=P(Ca.swipe,[L,ua,0J?"right":"left"));else if(sb&&J<=sb.percent?(Sa--,tb=
sb,sb=Eb[Sa],a=!0):tb&&J>=tb.percent&&(Sa++,sb=tb,tb=Eb[Sa],a=!0),a)if(Ja=0J?-s:s,200),f=d=!0,X=L,La=ua,a(j).on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault();R(L,!0,b)}));else if(U.quickSwipe&&!xb&&(g=new Date-fc,c=300>g&&-50>na,g=300>g&&50J?-1:1)*Fa.outerWidth(!0)/bb,200,!0),e(Ja,L,ua,!1,b)):W(Ja,L,ua,b));d||R(L,!0,b);lb=!1}function ba(){Xa=!0;pa=Ia=!1;wb=0;Ba=ua;U.vibrate&&ca();va=ha(L,"next");mb=va.length&&va[0].offsetTop;Pa=ha(L,"prev");nb=Pa.length&&Pa[0].offsetTop+Pa.outerHeight();db.height(Ea).insertAfter(L);L.css({top:Ma}).addClass("mbsc-lv-item-dragging").removeClass("mbsc-lv-item-active").appendTo(Ua);Aa("onSortStart",
[L,Ba])}function v(a,b,c,e){a.removeClass("mbsc-lv-item-dragging");db.remove();Aa("onSortStop",[a,Ba]);U.vibrate&&ca();e&&(I.addUndoAction(function(e){I.move(a,b,null,e,c,!0)},!0),Aa("onSortUpdate",[a,Ba]))}function D(){Lb||(clearTimeout(Gb),f&&a(j).trigger("touchstart"),yb&&(I.close(Ha,Ya),yb=!1,Ha=null))}function w(b,c){P(c.disabled,[L,ua,I])&&a(".mbsc-ic-"+c.icon,Da).addClass("mbsc-lv-ic-disabled")}function W(b,c,g,J){var d,s={icon:"undo2",text:U.undoText,color:"#b1b1b1",action:function(){I.undo()}};
b.undo&&(I.startActionTrack(),a.isFunction(b.undo)&&I.addUndoAction(function(){b.undo.call(Ra,c,I,g)}),Sb=c.attr("data-ref"));d=b.action.call(Ra,c,I,g);b.undo?(I.endActionTrack(),!1!==d&&ga(c,0>+c.attr("data-pos")?-100:100,200),db.height(Ea).insertAfter(c),c.css("top",Ma).addClass("mbsc-lv-item-undo"),Qa.hide(),Fa.show(),Da.append(Fa),T(s),e(s,c,g,!0,J)):R(c,d,J)}function e(b,c,e,g,J){var d,s;f=!0;a(j).off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault();
g&&S(c);R(c,!0,J)});if(!Za)Fa.off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.stopPropagation();d=da(a,"X");s=da(a,"Y")}).on("touchend.mbsc-lv-conf mouseup.mbsc-lv-conf",function(a){a.preventDefault();"touchend"===a.type&&m.preventClick();10>Math.abs(da(a,"X")-d)&&10>Math.abs(da(a,"Y")-s)&&(W(b,c,e,J),g&&(Tb=null,S(c)))})}function E(){ga(L,ec+100*na/bb);Rb=!1}function R(b,c,e){a(j).off(".mbsc-lv-conf");Fa.off(".mbsc-lv-conf");!1!==c?ga(b,0,"0"!==b.attr("data-pos")?
200:0,!1,function(){z(b,e);K(b)}):z(b,e);f=!1}function ga(a,e,g,d,s){e=Math.max("right"==lb?0:-100,Math.min(e,"left"==lb?0:100));$a=a[0].style;a.attr("data-pos",e);c?($a[b+"Transform"]="translate3d("+(d?bb*e/100+"px":e+"%")+",0,0)",$a[b+"Transition"]=O+"transform "+(g||0)+"ms"):$a.left=e+"%";s&&(jb++,setTimeout(function(){s();jb--},g));J=e}function p(a,e,g,J){e=Math.max(qb,Math.min(e,kb));$a=a[0].style;c?($a[b+"Transform"]="translate3d(0,"+e+"px,0)",$a[b+"Transition"]=O+"transform "+(g||0)+"ms ease-out"):
$a.top=Ma+e+"px";J&&(jb++,setTimeout(function(){J();jb--},g))}function Y(){clearTimeout(Pb);!qa&&I.sortable&&U.fillAnimation&&(qa=!0,xa.remove())}function T(a,b){var c=P(a.text,[L,ua,I])||"";P(a.disabled,[L,ua,I])?Da.addClass("mbsc-lv-ic-disabled"):Da.removeClass("mbsc-lv-ic-disabled");Da.css("background-color",a.color||(0===a.percent?(0J?"right":"left"));ra.attr("class"," mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-"+
(a.icon||"none"));Qb.attr("class","mbsc-lv-ic-text"+(a.icon?"":" mbsc-lv-ic-text-only")+(c?"":" mbsc-lv-ic-only")).html(c||" ");U.animateIcons&&(Kb?ra.addClass("mbsc-lv-ic-v"):setTimeout(function(){ra.addClass("mbsc-lv-ic-a")},10))}function z(a,b){ka||(ra.attr("class","mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"),Da.attr("style","").removeClass("mbsc-lv-stage-c-v"),Qb.html(""));Da.removeClass("mbsc-lv-left mbsc-lv-right");a&&(Aa("onSlideEnd",[a,ua]),b&&b())}function S(a){a.css("top","").removeClass("mbsc-lv-item-undo");
Tb?I.animate(db,"collapse",function(){db.remove()}):db.remove();z();Tb=Sb=null}function K(a){$a=a[0].style;$a[b+"Transform"]="";$a[b+"Transition"]="";$a.top="";a.removeClass("mbsc-lv-item-swiping")}function P(b,c){return a.isFunction(b)?b.apply(this,c):b}function $(b){var c;b.attr("data-ref")||(c=V++,b.attr("data-ref",c),eb[c]={item:b,child:b.children("ul,ol"),parent:b.parent(),ref:b.parent()[0]===Ra?null:b.parent().parent().attr("data-ref")});b.addClass("mbsc-lv-item");I.sortable.handle&&"list-divider"!=
b.attr("data-role")&&!b.children(".mbsc-lv-handle-c").length&&b.append(ob);if(U.enhance&&!b.hasClass("mbsc-lv-item-enhanced")){c=b.attr("data-icon");var e=b.find("img").eq(0).addClass("mbsc-lv-img");e.is(":first-child")?b.addClass("mbsc-lv-img-"+(U.rtl?"right":"left")):e.length&&b.addClass("mbsc-lv-img-"+(U.rtl?"left":"right"));b.addClass("mbsc-lv-item-enhanced").children().each(function(b,c){c=a(c);c.is("p, h1, h2, h3, h4, h5, h6")&&c.addClass("mbsc-lv-txt")});c&&b.addClass("mbsc-lv-item-ic-"+(b.attr("data-icon-align")||
(U.rtl?"right":"left"))).append('na?fa((a.actionsWidth||0).right)||fa(a.actionsWidth)||
fa(U.actionsWidth.right)||fa(U.actionsWidth):fa((a.actionsWidth||0).left)||fa(a.actionsWidth)||fa(U.actionsWidth.left)||fa(U.actionsWidth))}function l(a){a&&Oa.scrollTop(Wa?a.offset().top-Oa.offset().top+Oa.scrollTop():a.offset().top)}function M(a,b,c,e){var g=b.parent(),J=b.prev(),e=e||G;J[0]===Fa[0]&&(J=Fa.prev());ma[0]!==b[0]?(Aa("onNavStart",[zb,a,b]),$b.prepend(b.addClass("mbsc-lv-v mbsc-lv-sl-new")),l(ya),oa($b,"mbsc-lv-sl-"+a,function(){ma.removeClass("mbsc-lv-sl-curr");b.removeClass("mbsc-lv-sl-new").addClass("mbsc-lv-sl-curr");
hb&&hb.length?ma.removeClass("mbsc-lv-v").insertAfter(hb):ib.append(ma.removeClass("mbsc-lv-v"));hb=J;ib=g;ma=b;l(c);e.call(Ra,c);Aa("onNavEnd",[zb,a,b])})):(l(c),e.call(Ra,c))}function ia(a,b){jb||(a.hasClass("mbsc-lv-parent")?(zb++,M("r",eb[a.attr("data-ref")].child,null,b)):a.hasClass("mbsc-lv-back")&&(zb--,M("l",eb[a.attr("data-back")].parent,eb[a.attr("data-back")].item,b)))}function oa(a,b,e){function g(){clearTimeout(J);jb--;a.off(aa,g).removeClass(b);e.call(Ra,a)}var J,e=e||G;c&&U.animation&&
"mbsc-lv-item-none"!==b?(jb++,a.on(aa,g).addClass(b),J=setTimeout(g,500)):e.call(Ra,a)}function C(a,b){var c,e=a.attr("data-ref");c=ac[e]=ac[e]||[];b&&c.push(b);a.attr("data-action")||(b=c.shift(),a.attr("data-action",1),b(function(){a.removeAttr("data-action");c.length?C(a):delete ac[e]}))}function za(b,c,e){var g,J;b&&b.length&&(g=100/(b.length+2),a.each(b,function(a,s){s.key===u&&(s.key=bc++);s.percent===u&&(s.percent=c*g*(a+1),e&&(J=d({},s),J.key=bc++,J.percent=-g*(a+1),b.push(J),Ub[J.key]=J));
Ub[s.key]=s}))}var ka,s,sa,J,qa,X,La,ya,Ba,ta,ma,hb,ib,Db,Ja,Sa,Va,Za,Ta,na,Ga,Ia,pa,Xa,Ua,cb,rb,Fb,Aa,xa,fb,wa,Ab,Bb,Vb,o,Wa,ob,Hb,Ha,yb,Ya,gb,Gb,Ka,ab,ra,Fa,Da,bb,L,Ea,ua,pb,kb,qb,Qa,va,mb,tb,Xb,Jb,Lb,gc,Yb,db,Pa,nb,sb,Kb,ic,Rb,U,vb,xb,$b,bc,Eb,ec,fc,Nb,Ob,$a,lb,cc,jc,Wb,Qb,Pb,Ca,ub,Sb,Tb,Oa,Zb,wb,hc,I=this,Ra=i,Na=a(Ra),jb=0,zb=0,Ma=0,Ub={},ac={},eb={};n.Base.call(this,i,y,!0);I.animate=function(a,b,c){oa(a,"mbsc-lv-item-"+b,c)};I.add=function(b,c,e,g,J,d){var s,i,l,k,h,q,X="",f=J===u?Na:Z(J),qa=f,v="object"!==typeof c?a(''+c+" "):c,m=0>v.attr("data-pos")?"left":"right",w=v.attr("data-ref"),g=g||G;w||(w=V++,v.addClass("mbsc-lv-item").attr("data-ref",w));$(v);d||I.addUndoAction(function(a){k?
I.navigate(f,function(){qa.remove();f.removeClass("mbsc-lv-parent").children(".mbsc-lv-arr").remove();h.child=f.children("ul,ol");I.remove(v,null,a,true)}):I.remove(v,null,a,true)},!0);C(v,function(b){K(v.css("top","").removeClass("mbsc-lv-item-undo"));if(f.is("li")){q=f.attr("data-ref");if(!f.children("ul,ol").length){k=true;f.append("
")}}else q=f.children(".mbsc-lv-back").attr("data-back");if(h=eb[q])if(h.child.length)qa=h.child;else{f.addClass("mbsc-lv-parent").prepend(ab);qa=f.children("ul,ol").prepend(Ka).addClass("mbsc-lv");
h.child=qa;a(".mbsc-lv-back",f).attr("data-back",q)}eb[w]={item:v,child:v.children("ul,ol"),parent:qa,ref:q};l=x(qa);i=l.length;if(e===u||e===null)e=i;d&&(X="mbsc-lv-item-new-"+(d?m:""));H(v.addClass(X));if(e!==false)if(i)e=zb?"r":"l",c.parent,a,b),zb=e)};I.init=function(b){var e=Na.find("ul,ol").length?
"left":"right",g=0,d="",s="",i="";I._init(b);b=U.sort||U.sortable;"group"===b&&(b={group:!1,multiLevel:!0});!0===b&&(b={group:!0,multiLevel:!0,handle:U.sortHandle});b&&b.handle===u&&(b.handle=U.sortHandle);I.sortable=b||!1;d+='';Na.addClass("mbsc-lv mbsc-lv-v mbsc-lv-root").show();Da=a(''+d+"");Fa=a(".mbsc-lv-ic-c",
Da);Qa=a(".mbsc-lv-multi-c",Da);ra=a(".mbsc-lv-ic-s",Da);Qb=a(".mbsc-lv-ic-text",Da);db=a('');xa=a('');ya=a('
');Wa="body"!==U.context;Oa=a(Wa?U.context:t);Ua=a(".mbsc-lv-dummy",
ya);ya.insertAfter(Na);I.sortable.handle&&(o=!0===I.sortable.handle?e:I.sortable.handle,ob='",ya.addClass("mbsc-lv-handle-"+o));Oa.on("orientationchange.mbsc-lv resize.mbsc-lv",function(){clearTimeout(Va);Va=setTimeout(function(){Zb=Oa[0].innerHeight||Oa.innerHeight();hc=Wa?Oa.offset().top:0;if(ka){Ma=L[0].offsetTop;Ea=L.outerHeight();Da.css({top:Ma,
height:Ea})}},200)}).trigger("resize.mbsc-lv");ya.on("touchstart mousedown",".mbsc-lv-item",r).on("touchmove",".mbsc-lv-item",h).on("touchend touchcancel",".mbsc-lv-item",A);Ra.addEventListener&&Ra.addEventListener("click",function(a){if(Jb){a.stopPropagation();a.preventDefault();Jb=false}},!0);ya.on("touchstart mousedown",".mbsc-lv-ic-m",function(a){if(!Za){a.stopPropagation();a.preventDefault()}Nb=da(a,"X");Ob=da(a,"Y")}).on("touchend mouseup",".mbsc-lv-ic-m",function(b){if(!Za){b.type==="touchend"&&
m.preventClick();f&&!a(this).hasClass("mbsc-lv-ic-disabled")&&Math.abs(da(b,"X")-Nb)<10&&Math.abs(da(b,"Y")-Ob)<10&&W((J<0?Ca.rightMenu:Ca.leftMenu)[a(this).index()],X,La)}});$b=a(".mbsc-lv-sl-c",ya).append(Na.addClass("mbsc-lv-sl-curr")).attr("data-ref",V++);ma=Na;ib=ya;Ka=''+U.backText+' ';ab='';H(Na);bc=0;ub=U.itemGroups||
{};ub.defaults={swipeleft:U.swipeleft,swiperight:U.swiperight,stages:U.stages,actions:U.actions,actionsWidth:U.actionsWidth};a.each(ub,function(b,c){c.swipe=c.swipe||U.swipe;c.stages=c.stages||[];za(c.stages,1,true);za(c.stages.left,1);za(c.stages.right,-1);if(c.stages.left||c.stages.right)c.stages=[].concat(c.stages.left||[],c.stages.right||[]);fb=false;if(!c.stages.length){c.swipeleft&&c.stages.push({percent:-30,action:c.swipeleft});c.swiperight&&c.stages.push({percent:30,action:c.swiperight})}a.each(c.stages,
function(a,b){if(b.percent===0){fb=true;return false}});fb||c.stages.push({percent:0});c.stages.sort(function(a,b){return a.percent-b.percent});a.each(c.stages,function(a,b){if(b.percent===0){c.start=a;return false}});if(fb)c.left=c.right=c.stages[c.start];else{c.left=c.stages[c.start-1]||{};c.right=c.stages[c.start+1]||{}}if(c.actions){c.leftMenu=c.actions.left||c.actions;c.rightMenu=c.actions.right||c.leftMenu;i=s="";for(g=0;g