var __wxsModules={};
__wxsModules["6ce3a987"]=(()=>{var w=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var X=w((y,g)=>{var r={width:100,height:100,disabled:!1,left:0,top:0,app:!1};function l(){if(typeof navigator!="object")return!1;for(var t=navigator.userAgent,n=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],a=!0,e=0;e<n.length-1;e++)if(t.indexOf(n[e])>0){a=!1;break}return a}var s=!1;typeof window=="object"&&(s=!0);function b(t){r.width=+t.width,r.height=+t.height,r.top=+t.top,r.left=+t.left,r.disabled=+t.disabled==1,r.app=+t.app==1}function p(t,n){var a=t.instance.getState(),e=t.touches[0]||t.changedTouches[0];s&&l()&&(e=t);var i=t.instance.getDataset();a.startX=e.clientX,a.startY=e.clientY,b(i)}function v(t,n,a){if(a){var e=a.selectComponent(".fui-fab__btn-wrap");e&&e.setStyle({transform:"translate3d("+t+"px,"+n+"px,0)"})}}function d(t,n,a){if(!r.disabled){t.preventDefault&&t.preventDefault(),r.app&&event&&event.preventDefault&&event.cancelable&&event.preventDefault();var e={},i={};s&&l()?(i=t,a&&a.instance&&(e=a.instance.getState())):(i=t.touches[0]||t.changedTouches[0],e=t.instance.getState());var c=i.clientX,h=i.clientY,o=c-e.startX+(e.lastLeft||0);o=o<-r.left?-r.left:o,o=o>r.width?r.width:o,e.startX=c;var f=h-e.startY+(e.lastTop||0);f=f<-r.top?-r.top:f,f=f>r.height?r.height:f,e.startY=h,e.lastLeft=o,e.lastTop=f,v(o,f,n)}}var u=!1;function m(t,n){!s||!l()||(p(t,n),u=!0,window.onmousemove=function(a){!s||!l()||!u||d(a,n,t)},window.onmouseup=function(a){!s||!l()||!u||(u=!1)})}function S(t,n,a,e){if(t>0){var i=e.getState();i.startY=0,i.startX=0,i.lastLeft=0,i.lastTop=0,v(0,0,a)}}g.exports={touchstart:p,touchmove:d,mousedown:m,fabreset:S}});return X();})();
