New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bpui/libs

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpui/libs - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

dist/style.css

2

dist/index.common.min.js
/*!
* bpui libs v0.2.1
* bpui libs v0.2.2
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* Released under the MIT License.
*/'use strict';function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var febs=_interopDefault(require("febs-browser"));function parseUrl(e){for(var t={},n=0==e.length?[]:e.split("&"),o=0;o<n.length;o++)if(!febs.string.isEmpty(n[o])){var r=n[o].split("=");if(!febs.string.isEmpty(r[0])){var s=decodeURIComponent(r[0]),a=febs.string.isEmpty(r[1])?"":decodeURIComponent(r[1]);t[s]=a}}return t}function stringifyUrl(e,t){if(t){var n="";for(var o in t){var i=t[o];0<n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(i)}if(0<n.length){var r=e.indexOf("?");e+=0>r?"?"+n:r==e.length-1?n:"&"+n}}return e}var GlobalRouter=Symbol("GlobalRouter"),GlobalRouterBase=Symbol("GlobalRouterBase"),GlobalRouter404=Symbol("GlobalRouter404");function registerApp(e,t){window[GlobalRouter]||(window[GlobalRouter]=[]),0>window[GlobalRouter].indexOf(e)&&window[GlobalRouter].push(e),t?"/"==t[t.length-1]&&(t=t.substr(0,t.length-1)):t="",window[GlobalRouterBase]=t;for(var n,o=0;o<window[GlobalRouter].length;o++){n=window[GlobalRouter][o];for(var r=0;r<n.length;r++)if("*"==n[r].path){window[GlobalRouter404]=n[r].component;break}}}function getBasePath(){return window[GlobalRouterBase]}function getMatchedComponent(e,t,n){window[GlobalRouter]||(window[GlobalRouter]=[]);for(var o,r=function(o){for(var i,r=window[GlobalRouter][o],s=function(o){if(r[o].path==e.path)return r[o].component?t(r[o].component,function(e){r[o].component=e}):n&&n(new Error("cannot find component: "+r[o].path)),{value:void 0}},a=0;a<r.length;a++)if(i=s(a),"object"==typeof i)return i},s=0;s<window[GlobalRouter].length;s++)if(o=r(s),"object"==typeof o)return o.value;return window[GlobalRouter404]&&t(window[GlobalRouter404],function(e){window[GlobalRouter404]=e}),null}var InstanceOnRoute=Symbol("InstanceOnRoute"),Html5History=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return window.history.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"basePath",{get:function(){return getBasePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentRoute",{get:function(){var e=window.location.search||"";"?"==e[0]&&(e=e.substr(1));var t=parseUrl(e);return{path:window.location.pathname,query:t,state:window.history.state?febs.utils.mergeMap(window.history.state):null}},enumerable:!0,configurable:!0}),e.prototype.push=function(e,t){var n=this;void 0===t&&(t=!0);var o="string"==typeof e?{path:e}:e;var i=o.path;if(o.path=stringifyUrl(o.path,o.query),window.history.pushState(o.state,null,o.path),t){var r={path:i,query:o.query,state:o.state};setTimeout(function(){n._triggerRouteChanged(r,null)},0)}},e.prototype.replace=function(e,t){var n=this;void 0===t&&(t=!0);var o="string"==typeof e?{path:e}:e;var i=o.path;if(o.path=stringifyUrl(o.path,o.query),window.history.replaceState(o.state,null,o.path),t){var r={path:i,query:o.query,state:o.state};setTimeout(function(){n._triggerRouteChanged(r,1)},0)}},e.prototype.back=function(){window.history.back()},e.prototype.forward=function(){window.history.forward()},e.prototype.go=function(e){window.history.go(e)},e.prototype.getMatchedComponent=function(e,t,n){return getMatchedComponent(e,t,n)},e.prototype.on=function(e,t){var n=this;"routeChanged"==e&&(!window[InstanceOnRoute]&&(window[InstanceOnRoute]=[],window.addEventListener("popstate",function(){var e=parseUrl(window.location.search),t={path:window.location.pathname,query:febs.utils.mergeMap(e),state:history.state};n._triggerRouteChanged(t,null)})),window[InstanceOnRoute].push(t))},e.prototype.off=function(e,t){if("routeChanged"==e&&window[InstanceOnRoute]){var n=window[InstanceOnRoute].indexOf(t);0<=n&&window[InstanceOnRoute].splice(n,1)}},e.prototype._triggerRouteChanged=function(e,t){if(window[InstanceOnRoute])for(var n=window[InstanceOnRoute],o=0;o<n.length;o++)n[o]({path:e.path,query:febs.utils.mergeMap(e.query),state:febs.utils.mergeMap(e.state)},t)},e}(),router=new Html5History;function isVueObject(e){return!!(e&&"object"==typeof e&&e._isVue)}function isVueComponent(e){return!!(e&&"object"==typeof e&&"function"==typeof e.render&&e._compiled)}function getDomHtmlString(e){if(e)if(febs.dom.isDom(e))e=$("<div></div>").append(e),e=e.html();else if(isVueObject(e))e=$(e.$el),e=$("div").append(e),e=e.html();else if("string"!=typeof e)throw new Error("getDomHtmlString obj only can be vue object, Dom or string");return e}const isHtmlDom=febs.dom.isDom,getViewPort=febs.dom.getViewPort,getDocumentPort=febs.dom.getDocumentPort,getDocumentOffset=febs.dom.getDocumentOffset,getElementOffset=febs.dom.getElementOffset,addEventListener=febs.dom.addEventListener,removeEventListener=febs.dom.removeEventListener;function probeDom(e,t,n,o){if(!o)o=Date.now();else if(Date.now()-o>=e)return void(n&&n());t&&requestAnimationFrame(function(){t()?n&&n():probeDom(e,t,n,o)})}var dom=Object.freeze({__proto__:null,isVueObject:isVueObject,isVueComponent:isVueComponent,isHtmlDom:isHtmlDom,getDomHtmlString:getDomHtmlString,getViewPort:getViewPort,getDocumentPort:getDocumentPort,getDocumentOffset:getDocumentOffset,getElementOffset:getElementOffset,addEventListener:addEventListener,removeEventListener:removeEventListener,probeDom:probeDom});function vibrate(e){if(navigator){let t=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate;!t&&__debug&&console.log("vibrate not supported"),navigator.vibrate(e)}}const browserIsMobile=febs.utils.browserIsMobile,browserIsIOS=febs.utils.browserIsIOS,browserIsPhone=febs.utils.browserIsPhone,browserIsWeixin=febs.utils.browserIsWeixin,browserIsIE=febs.utils.browserIsIE,browserIEVer=febs.utils.browserIEVer,browserIsSupportHtml5=febs.utils.browserIsSupportHtml5;var device=Object.freeze({__proto__:null,vibrate:vibrate,browserIsMobile:browserIsMobile,browserIsIOS:browserIsIOS,browserIsPhone:browserIsPhone,browserIsWeixin:browserIsWeixin,browserIsIE:browserIsIE,browserIEVer:browserIEVer,browserIsSupportHtml5:browserIsSupportHtml5});class Timer{constructor(){this._timeoutList=[],this._requestAniList=[],this._intervalList=[]}dispose(){this.clearAll()}sleep(e){var t=this;return new Promise(function(n,o){try{if(0<=e){let o=setTimeout(function(){let e=t._timeoutList.indexOf(o);0<=e&&t._timeoutList.splice(e,1),n()},e);t._timeoutList.push(o)}else n()}catch(e){o(e)}})}setTimeout(e,n){let o=this,r=setTimeout(function(){e();let t=o._timeoutList.indexOf(r);0<=t&&o._timeoutList.splice(t,1)},n);return r&&this._timeoutList.push(r),r}clearTimeout(e){if(e){clearTimeout(e);let t=this._timeoutList.indexOf(e);0<=t&&this._timeoutList.splice(t,1)}}setInterval(e,n){let o=setInterval(function(){e()},n);return o&&this._intervalList.push(o),o}clearInterval(e){if(e){clearInterval(e);let t=this._intervalList.indexOf(e);0<=t&&this._intervalList.splice(t,1)}}requestAnimationFrame(e){if(!e)return null;let n=this,o=requestAnimationFrame(function(t){e(t);let r=n._requestAniList.indexOf(o);0<=r&&n._requestAniList.splice(r,1)});return o&&this._requestAniList.push(o),o}cancelAnimationFrame(e){if(e){cancelAnimationFrame(e);let t=this._requestAniList.indexOf(e);0<=t&&this._requestAniList.splice(t,1)}}clearAllTimeout(){for(let e of this._timeoutList)e&&clearTimeout(e);this._timeoutList=[]}clearAllInterval(){for(let e of this._intervalList)e&&clearInterval(e);this._intervalList=[]}clearAllAnimationFrame(){for(let e of this._requestAniList)e&&Timer.cancelAnimationFrame(e);this._requestAniList=[]}clearAll(){this.clearAllTimeout(),this.clearAllAnimationFrame(),this.clearAllInterval()}}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var hammer=createCommonjsModule(function(e){(function(t,n,o,r){var ge=Math.abs;function s(e,t,n){return setTimeout(u(e,n),t)}function a(e,t,n){return!!Array.isArray(e)&&(l(e,n[t],n),!0)}function l(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(o=0;o<e.length;)t.call(n,e[o],o,e),o++;else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function p(n,o,i){return function(){var r=new Error("get-stack-trace"),e=r&&r.stack?r.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,"DEPRECATED METHOD: "+o+"\n"+i+" AT \n",e),n.apply(this,arguments)}}function c(e,t,n){var o,i=t.prototype;o=e.prototype=Object.create(i),o.constructor=e,o._super=i,n&&he(o,n)}function u(e,t){return function(){return e.apply(t,arguments)}}function d(e,t){return"function"==typeof e?e.apply(t?t[0]||r:r,t):e}function g(e,t){return e===r?t:e}function h(e,t,n){l(v(t),function(t){e.addEventListener(t,n,!1)})}function m(e,t,n){l(v(t),function(t){e.removeEventListener(t,n,!1)})}function f(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return-1<e.indexOf(t)}function v(e){return e.trim().split(/\s+/g)}function b(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var o=0;o<e.length;){if(n&&e[o][n]==t||!n&&e[o]===t)return o;o++}return-1}function R(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var o,r=[],s=[],a=0;a<e.length;)o=t?e[a][t]:e[a],0>b(s,o)&&r.push(e[a]),s[a]=o,a++;return n&&(t?r=r.sort(function(e,n){return e[t]>n[t]}):r=r.sort()),r}function _(e,t){for(var n,o,s=t[0].toUpperCase()+t.slice(1),a=0;a<me.length;){if(n=me[a],o=n?n+s:t,o in e)return o;a++}return r}function z(){return _e++}function E(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function I(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){d(e.options.enable,[e])&&n.handler(t)},this.init()}function w(e){var t,n=e.options.inputClass;return t=n?n:Ie?N:we?V:Ee?j:Y,new t(e,P)}function P(e,t,n){var o=n.pointers.length,i=n.changedPointers.length,r=t&1&&0==o-i;n.isFirst=!!r,n.isFinal=!!(t&12&&0==o-i),r&&(e.session={}),n.eventType=t,C(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function C(e,t){var n=e.session,o=t.pointers,i=o.length;n.firstInput||(n.firstInput=S(t)),1<i&&!n.firstMultiple?n.firstMultiple=S(t):1===i&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=t.center=x(o);t.timeStamp=be(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=H(a,l),t.distance=q(a,l),A(n,t),t.offsetDirection=L(t.deltaX,t.deltaY);var p=D(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=ve(p.x)>ve(p.y)?p.x:p.y,t.scale=s?X(s.pointers,o):1,t.rotation=s?F(s.pointers,o):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,O(n,t);var c=e.element;f(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function A(e,t){var n=t.center,o=e.offsetDelta||{},i=e.prevDelta||{},r=e.prevInput||{};(t.eventType===1||r.eventType===4)&&(i=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-o.x),t.deltaY=i.y+(n.y-o.y)}function O(e,t){var n,o,i,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=8&&(l>25||a.velocity===r)){var p=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=D(l,p,c);o=u.x,i=u.y,n=ve(u.x)>ve(u.y)?u.x:u.y,s=L(p,c),e.lastInterval=t}else n=a.velocity,o=a.velocityX,i=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=o,t.velocityY=i,t.direction=s}function S(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ye(e.pointers[n].clientX),clientY:ye(e.pointers[n].clientY)},n++;return{timeStamp:be(),pointers:t,center:x(t),deltaX:e.deltaX,deltaY:e.deltaY}}function x(e){var t=e.length;if(1===t)return{x:ye(e[0].clientX),y:ye(e[0].clientY)};for(var n=0,o=0,r=0;r<t;)n+=e[r].clientX,o+=e[r].clientY,r++;return{x:ye(n/t),y:ye(o/t)}}function D(e,t,n){return{x:t/e||0,y:n/e||0}}function L(e,t){return e===t?1:ve(e)>=ve(t)?0>e?2:4:0>t?8:16}function q(e,t,n){n||(n=Ge);var o=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(o*o+i*i)}function H(e,t,n){n||(n=Ge);var o=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,o)/Math.PI}function F(e,t){return H(t[1],t[0],Me)+H(e[1],e[0],Me)}function X(e,t){return q(t[0],t[1],Me)/q(e[0],e[1],Me)}function Y(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,I.apply(this,arguments)}function N(){this.evEl=We,this.evWin=Be,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function G(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,I.apply(this,arguments)}function M(e,t){var n=R(e.touches),o=R(e.changedTouches);return 12&t&&(n=T(n.concat(o),"identifier",!0)),[n,o]}function V(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},I.apply(this,arguments)}function k(e,t){var n=R(e.touches),o=this.targetIds;if(3&t&&1===n.length)return o[n[0].identifier]=!0,[n,n];var r,s,a=R(e.changedTouches),l=[],p=this.target;if(s=n.filter(function(e){return f(e.target,p)}),1===t)for(r=0;r<s.length;)o[s[r].identifier]=!0,r++;for(r=0;r<a.length;)o[a[r].identifier]&&l.push(a[r]),12&t&&delete o[a[r].identifier],r++;return l.length?[T(s.concat(l),"identifier",!0),l]:void 0}function j(){I.apply(this,arguments);var e=u(this.handler,this);this.touch=new V(this.manager,e),this.mouse=new Y(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function W(e,t){e&1?(this.primaryTouch=t.changedPointers[0].identifier,B.call(this,t)):e&12&&B.call(this,t)}function B(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var o=this.lastTouches,i=function(){var e=o.indexOf(n);-1<e&&o.splice(e,1)};setTimeout(i,2500)}}function U(e){for(var n=e.srcEvent.clientX,o=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var s=this.lastTouches[r],t=ge(n-s.x),a=ge(o-s.y);if(t<=25&&a<=25)return!0}return!1}function K(e,t){this.manager=e,this.set(t)}function Z(e){if(y(e,"none"))return"none";var t=y(e,"pan-x"),n=y(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":y(e,"manipulation")?"manipulation":"auto"}function J(e){this.options=he({},this.defaults,e||{}),this.id=z(),this.manager=null,this.options.enable=g(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Q(e){if(e&16)return"cancel";return 8&e?"end":4&e?"move":2&e?"start":""}function ee(e){if(e==16)return"down";return 8==e?"up":2==e?"left":4==e?"right":""}function te(e,t){var n=t.manager;return n?n.get(e):e}function ne(){J.apply(this,arguments)}function oe(){ne.apply(this,arguments),this.pX=null,this.pY=null}function ie(){ne.apply(this,arguments)}function re(){J.apply(this,arguments),this._timer=null,this._input=null}function se(){ne.apply(this,arguments)}function ae(){ne.apply(this,arguments)}function le(){J.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function pe(e,t){return t=t||{},t.recognizers=g(t.recognizers,pe.defaults.preset),new ce(e,t)}function ce(e,t){this.options=he({},pe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=w(this),this.touchAction=new K(this,this.options.touchAction),ue(this,!0),l(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ue(e,t){var n=e.element;if(n.style){var o;l(e.options.cssProps,function(i,r){o=_(n.style,r),t?(e.oldCssProps[o]=n.style[o],n.style[o]=i):n.style[o]=e.oldCssProps[o]||""}),t||(e.oldCssProps={})}}function de(e,t){var o=n.createEvent("Event");o.initEvent(e,!0,!0),o.gesture=t,t.target.dispatchEvent(o)}var he,me=["","webkit","Moz","MS","ms","o"],fe=n.createElement("div"),ye=Math.round,ve=ge,be=Date.now;he="function"==typeof Object.assign?Object.assign:function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t,n=Object(e),o=1;o<arguments.length;o++)if(t=arguments[o],t!==r&&null!==t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n};var Re=p(function(e,t,n){for(var o=Object.keys(t),s=0;s<o.length;)(!n||n&&e[o[s]]===r)&&(e[o[s]]=t[o[s]]),s++;return e},"extend","Use `assign`."),Te=p(function(e,t){return Re(e,t,!0)},"merge","Use `assign`."),_e=1,ze=/mobile|tablet|ip(ad|hone|od)|android/i,Ee="ontouchstart"in t,Ie=_(t,"PointerEvent")!==r,we=Ee&&ze.test(navigator.userAgent),Pe="touch",Ce="mouse",Ae=1,Oe=2,Se=4,xe=8,De=1,Le=2,qe=4,He=8,Fe=16,Xe=Le|qe,Ye=He|Fe,Ne=Xe|Ye,Ge=["x","y"],Me=["clientX","clientY"];I.prototype={handler:function(){},init:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(E(this.element),this.evWin,this.domHandler)}};var Ve={mousedown:Ae,mousemove:Oe,mouseup:Se};c(Y,I,{handler:function(e){var t=Ve[e.type];t&Ae&&0===e.button&&(this.pressed=!0),t&Oe&&1!==e.which&&(t=Se);this.pressed&&(t&Se&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Ce,srcEvent:e}))}});var ke={pointerdown:Ae,pointermove:Oe,pointerup:Se,pointercancel:xe,pointerout:xe},je={2:Pe,3:"pen",4:Ce,5:"kinect"},We="pointerdown",Be="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(We="MSPointerDown",Be="MSPointerMove MSPointerUp MSPointerCancel"),c(N,I,{handler:function(e){var t=this.store,n=!1,o=e.type.toLowerCase().replace("ms",""),i=ke[o],r=je[e.pointerType]||e.pointerType,s=b(t,e.pointerId,"pointerId");i&Ae&&(0===e.button||r==Pe)?0>s&&(t.push(e),s=t.length-1):i&(Se|xe)&&(n=!0);0>s||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(s,1))}});var Ue={touchstart:Ae,touchmove:Oe,touchend:Se,touchcancel:xe};c(G,I,{handler:function(e){var t=Ue[e.type];if(t===Ae&&(this.started=!0),!!this.started){var n=M.call(this,e,t);t&(Se|xe)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Pe,srcEvent:e})}}});var $e={touchstart:Ae,touchmove:Oe,touchend:Se,touchcancel:xe};c(V,I,{handler:function(e){var t=$e[e.type],n=k.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Pe,srcEvent:e})}});c(j,I,{handler:function(e,t,n){var o=n.pointerType==Pe,i=n.pointerType==Ce;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)W.call(this,t,n);else if(i&&U.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=_(fe.style,"touchAction"),Ze=Ke!==r,Je="compute",Qe="none",et="pan-x",tt="pan-y",nt=function(){if(!Ze)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(o){e[o]=!n||t.CSS.supports("touch-action",o)}),e}();K.prototype={set:function(e){e==Je&&(e=this.compute()),Ze&&this.manager.element.style&&nt[e]&&(this.manager.element.style[Ke]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return l(this.manager.recognizers,function(t){d(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),Z(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var o=this.actions,i=y(o,Qe)&&!nt[Qe],r=y(o,tt)&&!nt[tt],s=y(o,et)&&!nt[et];if(i){var a=1===e.pointers.length,l=2>e.distance,p=250>e.deltaTime;if(a&&l&&p)return}return s&&r?void 0:i||r&&n&Xe||s&&n&Ye?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ot=2,it=4,rt=8,st=rt,at=16,lt=32;J.prototype={defaults:{},set:function(e){return he(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(a(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=te(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return a(e,"dropRecognizeWith",this)?this:(e=te(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(a(e,"requireFailure",this))return this;var t=this.requireFail;return e=te(e,this),-1===b(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(a(e,"dropRequireFailure",this))return this;e=te(e,this);var t=b(this.requireFail,e);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,o=this.state;o<rt&&t(n.options.event+Q(o)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),o>=rt&&t(n.options.event+Q(o))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=lt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(lt|1)))return!1;e++}return!0},recognize:function(e){var t=he({},e);return d(this.options.enable,[this,t])?void(this.state&(st|at|lt)&&(this.state=1),this.state=this.process(t),this.state&(ot|it|rt|at)&&this.tryEmit(t)):(this.reset(),void(this.state=lt))},process:function(){},getTouchAction:function(){},reset:function(){}},c(ne,J,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,o=t&(ot|it),i=this.attrTest(e);if(o&&(n&xe||!i))return t|at;return o||i?n&Se?t|rt:t&ot?t|it:ot:lt}}),c(oe,ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ne},getTouchAction:function(){var e=this.options.direction,t=[];return e&Xe&&t.push(tt),e&Ye&&t.push(et),t},directionTest:function(e){var t=this.options,n=!0,o=e.distance,i=e.direction,r=e.deltaX,s=e.deltaY;return i&t.direction||(t.direction&Xe?(i=0===r?De:0>r?Le:qe,n=r!=this.pX,o=ge(e.deltaX)):(i=0===s?De:0>s?He:Fe,n=s!=this.pY,o=ge(e.deltaY))),e.direction=i,n&&o>t.threshold&&i&t.direction},attrTest:function(e){return ne.prototype.attrTest.call(this,e)&&(this.state&ot||!(this.state&ot)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ee(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),c(ie,ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Qe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(ge(e.scale-1)>this.options.threshold||this.state&ot)},emit:function(e){if(1!==e.scale){var t=1>e.scale?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),c(re,J,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!o||!n||e.eventType&(Se|xe)&&!i)this.reset();else if(e.eventType&Ae)this.reset(),this._timer=s(function(){this.state=st,this.tryEmit()},t.time,this);else if(e.eventType&Se)return st;return lt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state!==st||(e&&e.eventType&Se?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=be(),this.manager.emit(this.options.event,this._input)))}}),c(se,ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Qe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(ge(e.rotation)>this.options.threshold||this.state&ot)}}),c(ae,ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Xe|Ye,pointers:1},getTouchAction:function(){return oe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Xe|Ye)?t=e.overallVelocity:n&Xe?t=e.overallVelocityX:n&Ye&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&ve(t)>this.options.velocity&&e.eventType&Se},emit:function(e){var t=ee(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),c(le,J,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&Ae&&0===this.count)return this.failTimeout();if(o&&i&&n){if(e.eventType!=Se)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,a&&r?this.count+=1:this.count=1,this._input=e;var l=this.count%t.taps;if(0==l)return this.hasRequireFailures()?(this._timer=s(function(){this.state=st,this.tryEmit()},t.interval,this),ot):st}return lt},failTimeout:function(){return this._timer=s(function(){this.state=lt},this.options.interval,this),lt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==st&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),pe.VERSION="2.0.7",pe.defaults={domEvents:!1,touchAction:Je,enable:!0,inputTarget:null,inputClass:null,preset:[[se,{enable:!1}],[ie,{enable:!1},["rotate"]],[ae,{direction:Xe}],[oe,{direction:Xe},["swipe"]],[le],[le,{event:"doubletap",taps:2},["tap"]],[re]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var pt=2;ce.prototype={set:function(e){return he(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?pt:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,o=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&st)&&(r=t.curRecognizer=null);for(var s=0;s<o.length;)n=o[s],t.stopped!==pt&&(!r||n==r||n.canRecognizeWith(r))?n.recognize(e):n.reset(),!r&&n.state&(ot|it|rt)&&(r=t.curRecognizer=n),s++}},get:function(e){if(e instanceof J)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(a(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(a(e,"remove",this))return this;if(e=this.get(e),e){var t=this.recognizers,n=b(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return l(v(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==r){var n=this.handlers;return l(v(e),function(e){t?n[e]&&n[e].splice(b(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&de(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](t),o++}},destroy:function(){this.element&&ue(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},he(pe,{INPUT_START:Ae,INPUT_MOVE:Oe,INPUT_END:Se,INPUT_CANCEL:xe,STATE_POSSIBLE:1,STATE_BEGAN:ot,STATE_CHANGED:it,STATE_ENDED:rt,STATE_RECOGNIZED:st,STATE_CANCELLED:at,STATE_FAILED:lt,DIRECTION_NONE:De,DIRECTION_LEFT:Le,DIRECTION_RIGHT:qe,DIRECTION_UP:He,DIRECTION_DOWN:Fe,DIRECTION_HORIZONTAL:Xe,DIRECTION_VERTICAL:Ye,DIRECTION_ALL:Ne,Manager:ce,Input:I,TouchAction:K,TouchInput:V,MouseInput:Y,PointerEventInput:N,TouchMouseInput:j,SingleTouchInput:G,Recognizer:J,AttrRecognizer:ne,Tap:le,Pan:oe,Swipe:ae,Pinch:ie,Rotate:se,Press:re,on:h,off:m,each:l,merge:Te,extend:Re,assign:he,inherit:c,bindFn:u,prefixed:_});var ct="undefined"==typeof t?"undefined"==typeof self?{}:self:t;ct.Hammer=pe,"function"==typeof r&&r.amd?r(function(){return pe}):e.exports?e.exports=pe:t[o]=pe})(window,document,"Hammer")}),GestureRecognizerImp=function(){function e(e){this.recognizer=e}return e.prototype.requireFailure=function(e){this.recognizer.requireFailure(e.recognizer)},e}(),GestureImp=function(){function e(e){this.ges=new hammer.Manager(e),this.tapHandles=new Map,this.tapRecognizers=[null,null,null],this.panHandles=new Map,this.panRecognizers=[null,null,null,null],this.pinchHandles=new Map,this.rotateHandles=new Map,this.pressHandles=new Map,this.swipeHandles=new Map,this.swipeRecognizers=[null,null,null]}return e.prototype.on=function(e,t){var n;switch(e){case"tap":n=this.tapHandles;break;case"pan":n=this.panHandles;break;case"pinch":n=this.pinchHandles;break;case"rotate":n=this.rotateHandles;break;case"press":n=this.pressHandles;break;case"swipe":n=this.swipeHandles;break;default:throw new Error("bp.Gesture.on error param event");}if(n.has(t))return this;var o=function(n){t(n)};return n.set(t,o),this.ges.on(e,o),this},e.prototype.off=function(e,t){var n;switch(e){case"tap":n=this.tapHandles;break;case"pan":n=this.panHandles;break;case"pinch":n=this.pinchHandles;break;case"rotate":n=this.rotateHandles;break;case"press":n=this.pressHandles;break;case"swipe":n=this.swipeHandles;break;default:throw new Error("bp.Gesture.off error param event");}if(t){var o=n.get(t);o&&(n.delete(t),this.ges.off(e,o))}else this.ges.off(e),n.clear();return this},e.prototype.enableTapRecognizer=function(e){if(e||(e={tapCount:1}),e.tapCount||(e.tapCount=1),1>e.tapCount||3<e.tapCount)throw new Error("bp.Gesture.addTapGesture error params: "+e.tapCount);if(this.tapRecognizers[e.tapCount-1])return this.tapRecognizers[e.tapCount-1];var t=this.ges.add(new hammer.Tap({event:"tap",taps:e.tapCount}));return this.tapRecognizers[e.tapCount-1]=new GestureRecognizerImp(t),this._concurrenceRecognizers(),this._requireFailure(this.tapRecognizers),this._setupDefaultRequireFailure(),this.tapRecognizers[e.tapCount-1]},e.prototype.disableTapRecognizer=function(e){if(e||(e={tapCount:1}),e.tapCount||(e.tapCount=1),this.tapRecognizers[e.tapCount-1]){var t=this.tapRecognizers[e.tapCount-1];this.tapRecognizers[e.tapCount-1]=null,this.ges.remove(t.recognizer)}},e.prototype.enablePanRecognizer=function(e){e.pointers||(e.pointers=1);var t=e.pointers;if(0>t||3<t)throw new Error("bp.Gesture.enablePanRecognizer error param pointers, must in [1,3]");browserIsMobile()||browserIsPhone()||(e.pointers=1,t=1);var n=t-1;if(this.panRecognizers[n])return this.panRecognizers[n];var o=this.ges.add(new hammer.Pan({event:"pan"}));return this.panRecognizers[n]=new GestureRecognizerImp(o),this._concurrenceRecognizers(),this._requireFailure(this.panRecognizers),this._setupDefaultRequireFailure(),this.panRecognizers[n]},e.prototype.disablePanRecognizer=function(e){var t=e.pointers;browserIsMobile()||browserIsPhone()||(e.pointers=1,t=1),this.panRecognizers[t-1]&&(this.ges.remove(this.panRecognizers[t-1].recognizer),this.panRecognizers[t-1]=null)},e.prototype.enablePinchRecognizer=function(){if(this.pinchRecognizer)return this.pinchRecognizer;var e=this.ges.add(new hammer.Pinch({event:"pinch"}));return this.pinchRecognizer=new GestureRecognizerImp(e),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.pinchRecognizer},e.prototype.disablePinchRecognizer=function(){this.pinchRecognizer&&(this.ges.remove(this.pinchRecognizer.recognizer),this.pinchRecognizer=null)},e.prototype.enableRotateRecognizer=function(){if(this.rotateRecognizer)return this.rotateRecognizer;var e=this.ges.add(new hammer.Rotate({event:"rotate"}));return this.rotateRecognizer=new GestureRecognizerImp(e),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.rotateRecognizer},e.prototype.disableRotateRecognizer=function(){this.rotateRecognizer&&(this.ges.remove(this.rotateRecognizer.recognizer),this.rotateRecognizer=null)},e.prototype.enablePressRecognizer=function(e){if(this.pressRecognizer)return this.pressRecognizer;var t=this.ges.add(new hammer.Rotate({event:"press",time:e.duration}));return this.pressRecognizer=new GestureRecognizerImp(t),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.pressRecognizer},e.prototype.disablePressRecognizer=function(){this.pressRecognizer&&(this.ges.remove(this.pressRecognizer.recognizer),this.pressRecognizer=null)},e.prototype.enableSwipeRecognizer=function(e){e||(e={}),e.velocity||(e.velocity=.3),e.distance||(e.distance=10),e.pointers||(e.pointers=1);var t=e.pointers;if(0>t||3<t)throw new Error("bp.Gesture.enableSwipeRecognizer error param pointers, must in [1,3]");if(browserIsMobile()||browserIsPhone()||(e.pointers=1,t=1),this.swipeRecognizers[t-1])return this.swipeRecognizers[t-1].recognizer.set({velocity:e.velocity,threshold:e.distance,pointers:e.pointers}),this.swipeRecognizers[t-1];var n=this.ges.add(new hammer.Swipe({event:"swipe",velocity:e.velocity,threshold:e.distance,pointers:e.pointers}));return this.swipeRecognizers[t-1]=new GestureRecognizerImp(n),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.swipeRecognizers[t-1]},e.prototype.disableSwipeRecognizer=function(e){e||(e={}),e.pointers||(e.pointers=1);var t=e.pointers;0<t&&4>t&&(!(browserIsMobile()||browserIsPhone())&&(e.pointers=1,t=1),this.swipeRecognizers[t-1]&&(this.ges.remove(this.swipeRecognizers[t-1].recognizer),this.swipeRecognizers[t-1]=null))},e.prototype._concurrenceRecognizers=function(){for(var e=this.panRecognizers.concat(this.tapRecognizers).concat(this.pinchRecognizer).concat(this.pressRecognizer).concat(this.rotateRecognizer).concat(this.swipeRecognizers),t=null,n=0;n<e.length;n++)e[n]&&(t?(t.recognizer.recognizeWith(e[n].recognizer),t=e[n]):t=e[n])},e.prototype._requireFailure=function(e){for(var t=null,n=0;n<e.length;n++)e[n]&&(e[n].recognizer.requireFail=[],t?(t.recognizer.requireFailure(e[n].recognizer),t=e[n]):t=e[n])},e.prototype._setupDefaultRequireFailure=function(){},e}(),GlobalIcons="GlobalIcons",Instance=function(){return window[GlobalIcons]||(window[GlobalIcons]=new IconsData),window[GlobalIcons]},IconsData=function(){return function(){this.installed=!1,this.icons=new Set,this.icons_svgPath=new Map,this.icons_alias=new Map,this.icons_font=new Map}}();function clearIcon(e){Instance().icons_font.delete(e),Instance().icons_svgPath.delete(e),Instance().icons_alias.delete(e)}function list(){return Instance().icons.keys()}function getIcon(e){var t=Instance().icons_alias.get(e);if(t&&(e=t),Instance().icons.has(e)){var n={},o=Instance().icons_font.get(e);if(o)return n.type="font",n.value=o,n;var i=Instance().icons_svgPath.get(e);if(i)return n.type="svg",n.value=i,n}return null}function registerSvgIcon(e,t){clearIcon(e),Instance().icons.add(e),Instance().icons_svgPath.set(e,t)}function registerFontIcon(e,t){clearIcon(e),Instance().icons.add(e);var n=[];return Instance().icons_font.set(e,{className:t,children:n}),n}function registerAliasIcon(e,t){if(!Instance().icons.has(t))throw new Error("icon name `"+t+"` isn't existed!");Instance().icons.has(e)||Instance().icons_alias.set(e,t)}function registerDefault(){Instance().installed||(registerFontIcon("arrowDown","bp-iconArrowDown"),registerFontIcon("arrowLeft","bp-iconArrowLeft"),registerFontIcon("arrowRight","bp-iconArrowRight"),registerFontIcon("arrowUp","bp-iconArrowUp"),registerFontIcon("cancel","bp-iconCancel"),registerFontIcon("delete","bp-iconDelete"),registerFontIcon("edit","bp-iconEdit"),registerFontIcon("heartFill","bp-iconHeartFill"),registerFontIcon("heart","bp-iconHeart"),registerFontIcon("locationPin","bp-iconLocationPin"),registerFontIcon("location","bp-iconLocation"),registerFontIcon("menu","bp-iconMenu"),registerFontIcon("minus","bp-iconMinus"),registerFontIcon("more","bp-iconMore"),registerFontIcon("ok","bp-iconOk"),registerFontIcon("plus","bp-iconPlus"),registerFontIcon("setting","bp-iconSetting"),registerFontIcon("starFill","bp-iconStarFill"),registerFontIcon("star","bp-iconStar"),registerFontIcon("user","bp-iconUser"),registerFontIcon("loading","bp-iconLoading").push("path1","path2","path3","path4","path5","path6","path7","path8","path9","path10","path11","path12"),Instance().installed=!0)}registerDefault();var Icons={list:list,registerAliasIcon:registerAliasIcon,registerFontIcon:registerFontIcon,registerSvgIcon:registerSvgIcon,registerDefault:registerDefault,getIcon:getIcon};const bpLibs={};Object.defineProperty(bpLibs,"router",{get(){return router}}),Object.defineProperty(bpLibs,"dom",{get(){return dom}}),Object.defineProperty(bpLibs,"device",{get(){return device}}),Object.defineProperty(bpLibs,"icons",{get(){return Icons}}),Object.defineProperty(bpLibs,"registerApp",{get(){return registerApp}}),Object.defineProperty(bpLibs,"Timer",{get(){return Timer}}),Object.defineProperty(bpLibs,"Gesture",{get(){return GestureImp}});var smoothscroll=createCommonjsModule(function(e){(function(){function t(){function e(e){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(e)}function t(e,t){this.scrollLeft=e,this.scrollTop=t}function n(e){return .5*(1-Math.cos(Math.PI*e))}function o(e){if(null===e||"object"!=typeof e||e.behavior===void 0||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(e,t){return"Y"===t?e.clientHeight+m<e.scrollHeight:"X"===t?e.clientWidth+m<e.scrollWidth:void 0}function r(e,t){var n=c.getComputedStyle(e,null)["overflow"+t];return"auto"===n||"scroll"===n}function s(e){var t=i(e,"Y")&&r(e,"Y"),n=i(e,"X")&&r(e,"X");return t||n}function a(e){for(;e!==u.body&&!1===s(e);)e=e.parentNode||e.host;return e}function l(e){var t,o,i,r=h(),s=(r-e.startTime)/468;s=1<s?1:s,t=n(s),o=e.startX+(e.x-e.startX)*t,i=e.startY+(e.y-e.startY)*t,e.method.call(e.scrollable,o,i),(o!==e.x||i!==e.y)&&c.requestAnimationFrame(l.bind(c,e))}function p(e,n,o){var i,r,s,a,p=h();e===u.body?(i=c,r=c.scrollX||c.pageXOffset,s=c.scrollY||c.pageYOffset,a=g.scroll):(i=e,r=e.scrollLeft,s=e.scrollTop,a=t),l({scrollable:i,method:a,startTime:p,startX:r,startY:s,x:n,y:o})}var c=window,u=document;if(!("scrollBehavior"in u.documentElement.style&&!0!==c.__forceSmoothScrollPolyfill__)){var d=c.HTMLElement||c.Element,g={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:d.prototype.scroll||t,scrollIntoView:d.prototype.scrollIntoView},h=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,m=e(c.navigator.userAgent)?1:0;c.scroll=c.scrollTo=function(){return void 0===arguments[0]?void 0:!0===o(arguments[0])?void g.scroll.call(c,void 0===arguments[0].left?"object"==typeof arguments[0]?c.scrollX||c.pageXOffset:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?c.scrollY||c.pageYOffset:arguments[1]:arguments[0].top):void p.call(c,u.body,void 0===arguments[0].left?c.scrollX||c.pageXOffset:~~arguments[0].left,void 0===arguments[0].top?c.scrollY||c.pageYOffset:~~arguments[0].top)},c.scrollBy=function(){return void 0===arguments[0]?void 0:o(arguments[0])?void g.scrollBy.call(c,void 0===arguments[0].left?"object"==typeof arguments[0]?0:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?0:arguments[1]:arguments[0].top):void p.call(c,u.body,~~arguments[0].left+(c.scrollX||c.pageXOffset),~~arguments[0].top+(c.scrollY||c.pageYOffset))},d.prototype.scroll=d.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===o(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void g.elementScroll.call(this,void 0===arguments[0].left?"object"==typeof arguments[0]?this.scrollLeft:~~arguments[0]:~~arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?this.scrollTop:~~arguments[1]:~~arguments[0].top)}var e=arguments[0].left,t=arguments[0].top;p.call(this,this,"undefined"==typeof e?this.scrollLeft:~~e,"undefined"==typeof t?this.scrollTop:~~t)}},d.prototype.scrollBy=function(){return void 0===arguments[0]?void 0:!0===o(arguments[0])?void g.elementScroll.call(this,void 0===arguments[0].left?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,void 0===arguments[0].top?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},d.prototype.scrollIntoView=function(){if(!0===o(arguments[0]))return void g.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var e=a(this),t=e.getBoundingClientRect(),n=this.getBoundingClientRect();e===u.body?c.scrollBy({left:n.left,top:n.top,behavior:"smooth"}):(p.call(this,e,e.scrollLeft+n.left-t.left,e.scrollTop+n.top-t.top),"fixed"!==c.getComputedStyle(e).position&&c.scrollBy({left:t.left,top:t.top,behavior:"smooth"}))}}}e.exports={polyfill:t}})()}),smoothscroll_1=smoothscroll.polyfill;function install(e,t,n){!!n.navigator.userAgent.toLowerCase().match(/chrome/)||n.$srcScrollTo||(n.$srcScrollTo=(window||window).scrollTo,smoothscroll.polyfill())}var s_timer=Symbol("s_timer");function beforeCreate(e,t){t[s_timer]||(t[s_timer]=new Timer,Object.defineProperty(t,"$timer",{get:function(){return t[s_timer]}}))}function beforeDestroy(e,t){t[s_timer]&&(t[s_timer].dispose(),t[s_timer]=null)}var bpIcon={name:"bpIcon",props:{name:{type:String,required:!0},width:{type:String,required:!1},height:{type:String,required:!1},color:{type:String,required:!1},event:{validator:function(e){return!e||"string"===typeof e||Array.isArray(e)},default:"click"}},mounted(){},render(e){let t=Icons.getIcon(this.name);if(!t)return console.log("icon: "+this.name+" isn't registered"),e("i",{class:["bp-icon"],style:{}},this.$slots.default);t=t||{value:""};let n={class:["bp-icon"],style:{}};this.width&&(n.style.width=this.width),this.height&&(n.style.height=this.height),n.style.width&&!n.style.height?n.style.height=n.style.width:!n.style.width&&n.style.height&&(n.style.width=n.style.height);const o=t=>n=>{this.$emit(t,n)},i={};if(Array.isArray(this.event)?this.event.forEach(t=>{i[t]=o(t)}):i[this.event]=o(this.event),n.on=i,"svg"==t.type)return n.style.backgroundImage=`url(${t.value})`,e("i",n,this.$slots.default);else{n.class.push(t.value.className);let o=[];for(let n,r=0;r<t.value.children.length;r++)n={class:[]},n.class=[t.value.children[r]],o.push(e("i",n));return this.$slots.default&&o.push(this.$slots.default),n.style.width&&(n.style.fontSize=n.style.width),this.color&&(n.style.color=this.color),e("i",n,o)}}};let _Vue;function makeInstall(){return function e(t){if(!(e.installed&&_Vue===t)){e.installed=!0,_Vue=t;let n=window||window;install(t,this,n),t.mixin({mounted(){},beforeCreate(){beforeCreate(t,this)},created(){},beforeDestroy(){beforeDestroy(t,this)}}),Object.defineProperty(t.prototype,"$bpLibs",{get:function(){return bpLibs}}),t.component("bpIcon",bpIcon)}}}function VuePlugin(){return bpLibs.icons.registerDefault(),{install:makeInstall()}}bpLibs.VuePlugin=VuePlugin,bpLibs.VueObject={bpIcon:bpIcon},module.exports=bpLibs;
/*!
* bpui libs v0.2.1
* bpui libs v0.2.2
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* Released under the MIT License.
*/import febs from"febs-browser";function parseUrl(e){for(var t={},n=0==e.length?[]:e.split("&"),o=0;o<n.length;o++)if(!febs.string.isEmpty(n[o])){var r=n[o].split("=");if(!febs.string.isEmpty(r[0])){var s=decodeURIComponent(r[0]),a=febs.string.isEmpty(r[1])?"":decodeURIComponent(r[1]);t[s]=a}}return t}function stringifyUrl(e,t){if(t){var n="";for(var o in t){var i=t[o];0<n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(i)}if(0<n.length){var r=e.indexOf("?");e+=0>r?"?"+n:r==e.length-1?n:"&"+n}}return e}var GlobalRouter=Symbol("GlobalRouter"),GlobalRouterBase=Symbol("GlobalRouterBase"),GlobalRouter404=Symbol("GlobalRouter404");function registerApp(e,t){window[GlobalRouter]||(window[GlobalRouter]=[]),0>window[GlobalRouter].indexOf(e)&&window[GlobalRouter].push(e),t?"/"==t[t.length-1]&&(t=t.substr(0,t.length-1)):t="",window[GlobalRouterBase]=t;for(var n,o=0;o<window[GlobalRouter].length;o++){n=window[GlobalRouter][o];for(var r=0;r<n.length;r++)if("*"==n[r].path){window[GlobalRouter404]=n[r].component;break}}}function getBasePath(){return window[GlobalRouterBase]}function getMatchedComponent(e,t,n){window[GlobalRouter]||(window[GlobalRouter]=[]);for(var o,r=function(o){for(var i,r=window[GlobalRouter][o],s=function(o){if(r[o].path==e.path)return r[o].component?t(r[o].component,function(e){r[o].component=e}):n&&n(new Error("cannot find component: "+r[o].path)),{value:void 0}},a=0;a<r.length;a++)if(i=s(a),"object"==typeof i)return i},s=0;s<window[GlobalRouter].length;s++)if(o=r(s),"object"==typeof o)return o.value;return window[GlobalRouter404]&&t(window[GlobalRouter404],function(e){window[GlobalRouter404]=e}),null}var InstanceOnRoute=Symbol("InstanceOnRoute"),Html5History=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return window.history.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"basePath",{get:function(){return getBasePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentRoute",{get:function(){var e=window.location.search||"";"?"==e[0]&&(e=e.substr(1));var t=parseUrl(e);return{path:window.location.pathname,query:t,state:window.history.state?febs.utils.mergeMap(window.history.state):null}},enumerable:!0,configurable:!0}),e.prototype.push=function(e,t){var n=this;void 0===t&&(t=!0);var o="string"==typeof e?{path:e}:e;var i=o.path;if(o.path=stringifyUrl(o.path,o.query),window.history.pushState(o.state,null,o.path),t){var r={path:i,query:o.query,state:o.state};setTimeout(function(){n._triggerRouteChanged(r,null)},0)}},e.prototype.replace=function(e,t){var n=this;void 0===t&&(t=!0);var o="string"==typeof e?{path:e}:e;var i=o.path;if(o.path=stringifyUrl(o.path,o.query),window.history.replaceState(o.state,null,o.path),t){var r={path:i,query:o.query,state:o.state};setTimeout(function(){n._triggerRouteChanged(r,1)},0)}},e.prototype.back=function(){window.history.back()},e.prototype.forward=function(){window.history.forward()},e.prototype.go=function(e){window.history.go(e)},e.prototype.getMatchedComponent=function(e,t,n){return getMatchedComponent(e,t,n)},e.prototype.on=function(e,t){var n=this;"routeChanged"==e&&(!window[InstanceOnRoute]&&(window[InstanceOnRoute]=[],window.addEventListener("popstate",function(){var e=parseUrl(window.location.search),t={path:window.location.pathname,query:febs.utils.mergeMap(e),state:history.state};n._triggerRouteChanged(t,null)})),window[InstanceOnRoute].push(t))},e.prototype.off=function(e,t){if("routeChanged"==e&&window[InstanceOnRoute]){var n=window[InstanceOnRoute].indexOf(t);0<=n&&window[InstanceOnRoute].splice(n,1)}},e.prototype._triggerRouteChanged=function(e,t){if(window[InstanceOnRoute])for(var n=window[InstanceOnRoute],o=0;o<n.length;o++)n[o]({path:e.path,query:febs.utils.mergeMap(e.query),state:febs.utils.mergeMap(e.state)},t)},e}(),router=new Html5History;function isVueObject(e){return!!(e&&"object"==typeof e&&e._isVue)}function isVueComponent(e){return!!(e&&"object"==typeof e&&"function"==typeof e.render&&e._compiled)}function getDomHtmlString(e){if(e)if(febs.dom.isDom(e))e=$("<div></div>").append(e),e=e.html();else if(isVueObject(e))e=$(e.$el),e=$("div").append(e),e=e.html();else if("string"!=typeof e)throw new Error("getDomHtmlString obj only can be vue object, Dom or string");return e}const isHtmlDom=febs.dom.isDom,getViewPort=febs.dom.getViewPort,getDocumentPort=febs.dom.getDocumentPort,getDocumentOffset=febs.dom.getDocumentOffset,getElementOffset=febs.dom.getElementOffset,addEventListener=febs.dom.addEventListener,removeEventListener=febs.dom.removeEventListener;function probeDom(e,t,n,o){if(!o)o=Date.now();else if(Date.now()-o>=e)return void(n&&n());t&&requestAnimationFrame(function(){t()?n&&n():probeDom(e,t,n,o)})}var dom=Object.freeze({__proto__:null,isVueObject:isVueObject,isVueComponent:isVueComponent,isHtmlDom:isHtmlDom,getDomHtmlString:getDomHtmlString,getViewPort:getViewPort,getDocumentPort:getDocumentPort,getDocumentOffset:getDocumentOffset,getElementOffset:getElementOffset,addEventListener:addEventListener,removeEventListener:removeEventListener,probeDom:probeDom});function vibrate(e){if(navigator){let t=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate;!t&&__debug&&console.log("vibrate not supported"),navigator.vibrate(e)}}const browserIsMobile=febs.utils.browserIsMobile,browserIsIOS=febs.utils.browserIsIOS,browserIsPhone=febs.utils.browserIsPhone,browserIsWeixin=febs.utils.browserIsWeixin,browserIsIE=febs.utils.browserIsIE,browserIEVer=febs.utils.browserIEVer,browserIsSupportHtml5=febs.utils.browserIsSupportHtml5;var device=Object.freeze({__proto__:null,vibrate:vibrate,browserIsMobile:browserIsMobile,browserIsIOS:browserIsIOS,browserIsPhone:browserIsPhone,browserIsWeixin:browserIsWeixin,browserIsIE:browserIsIE,browserIEVer:browserIEVer,browserIsSupportHtml5:browserIsSupportHtml5});class Timer{constructor(){this._timeoutList=[],this._requestAniList=[],this._intervalList=[]}dispose(){this.clearAll()}sleep(e){var t=this;return new Promise(function(n,o){try{if(0<=e){let o=setTimeout(function(){let e=t._timeoutList.indexOf(o);0<=e&&t._timeoutList.splice(e,1),n()},e);t._timeoutList.push(o)}else n()}catch(e){o(e)}})}setTimeout(e,n){let o=this,r=setTimeout(function(){e();let t=o._timeoutList.indexOf(r);0<=t&&o._timeoutList.splice(t,1)},n);return r&&this._timeoutList.push(r),r}clearTimeout(e){if(e){clearTimeout(e);let t=this._timeoutList.indexOf(e);0<=t&&this._timeoutList.splice(t,1)}}setInterval(e,n){let o=setInterval(function(){e()},n);return o&&this._intervalList.push(o),o}clearInterval(e){if(e){clearInterval(e);let t=this._intervalList.indexOf(e);0<=t&&this._intervalList.splice(t,1)}}requestAnimationFrame(e){if(!e)return null;let n=this,o=requestAnimationFrame(function(t){e(t);let r=n._requestAniList.indexOf(o);0<=r&&n._requestAniList.splice(r,1)});return o&&this._requestAniList.push(o),o}cancelAnimationFrame(e){if(e){cancelAnimationFrame(e);let t=this._requestAniList.indexOf(e);0<=t&&this._requestAniList.splice(t,1)}}clearAllTimeout(){for(let e of this._timeoutList)e&&clearTimeout(e);this._timeoutList=[]}clearAllInterval(){for(let e of this._intervalList)e&&clearInterval(e);this._intervalList=[]}clearAllAnimationFrame(){for(let e of this._requestAniList)e&&Timer.cancelAnimationFrame(e);this._requestAniList=[]}clearAll(){this.clearAllTimeout(),this.clearAllAnimationFrame(),this.clearAllInterval()}}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var hammer=createCommonjsModule(function(e){(function(t,n,o,r){var ge=Math.abs;function s(e,t,n){return setTimeout(u(e,n),t)}function a(e,t,n){return!!Array.isArray(e)&&(l(e,n[t],n),!0)}function l(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(o=0;o<e.length;)t.call(n,e[o],o,e),o++;else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function p(n,o,i){return function(){var r=new Error("get-stack-trace"),e=r&&r.stack?r.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,"DEPRECATED METHOD: "+o+"\n"+i+" AT \n",e),n.apply(this,arguments)}}function c(e,t,n){var o,i=t.prototype;o=e.prototype=Object.create(i),o.constructor=e,o._super=i,n&&he(o,n)}function u(e,t){return function(){return e.apply(t,arguments)}}function d(e,t){return"function"==typeof e?e.apply(t?t[0]||r:r,t):e}function g(e,t){return e===r?t:e}function h(e,t,n){l(v(t),function(t){e.addEventListener(t,n,!1)})}function m(e,t,n){l(v(t),function(t){e.removeEventListener(t,n,!1)})}function f(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return-1<e.indexOf(t)}function v(e){return e.trim().split(/\s+/g)}function b(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var o=0;o<e.length;){if(n&&e[o][n]==t||!n&&e[o]===t)return o;o++}return-1}function R(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var o,r=[],s=[],a=0;a<e.length;)o=t?e[a][t]:e[a],0>b(s,o)&&r.push(e[a]),s[a]=o,a++;return n&&(t?r=r.sort(function(e,n){return e[t]>n[t]}):r=r.sort()),r}function _(e,t){for(var n,o,s=t[0].toUpperCase()+t.slice(1),a=0;a<me.length;){if(n=me[a],o=n?n+s:t,o in e)return o;a++}return r}function z(){return _e++}function E(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function I(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){d(e.options.enable,[e])&&n.handler(t)},this.init()}function w(e){var t,n=e.options.inputClass;return t=n?n:Ie?N:we?V:Ee?j:Y,new t(e,P)}function P(e,t,n){var o=n.pointers.length,i=n.changedPointers.length,r=t&1&&0==o-i;n.isFirst=!!r,n.isFinal=!!(t&12&&0==o-i),r&&(e.session={}),n.eventType=t,C(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function C(e,t){var n=e.session,o=t.pointers,i=o.length;n.firstInput||(n.firstInput=S(t)),1<i&&!n.firstMultiple?n.firstMultiple=S(t):1===i&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=t.center=x(o);t.timeStamp=be(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=H(a,l),t.distance=q(a,l),A(n,t),t.offsetDirection=L(t.deltaX,t.deltaY);var p=D(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=ve(p.x)>ve(p.y)?p.x:p.y,t.scale=s?X(s.pointers,o):1,t.rotation=s?F(s.pointers,o):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,O(n,t);var c=e.element;f(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function A(e,t){var n=t.center,o=e.offsetDelta||{},i=e.prevDelta||{},r=e.prevInput||{};(t.eventType===1||r.eventType===4)&&(i=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-o.x),t.deltaY=i.y+(n.y-o.y)}function O(e,t){var n,o,i,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=8&&(l>25||a.velocity===r)){var p=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=D(l,p,c);o=u.x,i=u.y,n=ve(u.x)>ve(u.y)?u.x:u.y,s=L(p,c),e.lastInterval=t}else n=a.velocity,o=a.velocityX,i=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=o,t.velocityY=i,t.direction=s}function S(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ye(e.pointers[n].clientX),clientY:ye(e.pointers[n].clientY)},n++;return{timeStamp:be(),pointers:t,center:x(t),deltaX:e.deltaX,deltaY:e.deltaY}}function x(e){var t=e.length;if(1===t)return{x:ye(e[0].clientX),y:ye(e[0].clientY)};for(var n=0,o=0,r=0;r<t;)n+=e[r].clientX,o+=e[r].clientY,r++;return{x:ye(n/t),y:ye(o/t)}}function D(e,t,n){return{x:t/e||0,y:n/e||0}}function L(e,t){return e===t?1:ve(e)>=ve(t)?0>e?2:4:0>t?8:16}function q(e,t,n){n||(n=Ge);var o=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(o*o+i*i)}function H(e,t,n){n||(n=Ge);var o=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,o)/Math.PI}function F(e,t){return H(t[1],t[0],Me)+H(e[1],e[0],Me)}function X(e,t){return q(t[0],t[1],Me)/q(e[0],e[1],Me)}function Y(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,I.apply(this,arguments)}function N(){this.evEl=We,this.evWin=Be,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function G(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,I.apply(this,arguments)}function M(e,t){var n=R(e.touches),o=R(e.changedTouches);return 12&t&&(n=T(n.concat(o),"identifier",!0)),[n,o]}function V(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},I.apply(this,arguments)}function k(e,t){var n=R(e.touches),o=this.targetIds;if(3&t&&1===n.length)return o[n[0].identifier]=!0,[n,n];var r,s,a=R(e.changedTouches),l=[],p=this.target;if(s=n.filter(function(e){return f(e.target,p)}),1===t)for(r=0;r<s.length;)o[s[r].identifier]=!0,r++;for(r=0;r<a.length;)o[a[r].identifier]&&l.push(a[r]),12&t&&delete o[a[r].identifier],r++;return l.length?[T(s.concat(l),"identifier",!0),l]:void 0}function j(){I.apply(this,arguments);var e=u(this.handler,this);this.touch=new V(this.manager,e),this.mouse=new Y(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function W(e,t){e&1?(this.primaryTouch=t.changedPointers[0].identifier,B.call(this,t)):e&12&&B.call(this,t)}function B(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var o=this.lastTouches,i=function(){var e=o.indexOf(n);-1<e&&o.splice(e,1)};setTimeout(i,2500)}}function U(e){for(var n=e.srcEvent.clientX,o=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var s=this.lastTouches[r],t=ge(n-s.x),a=ge(o-s.y);if(t<=25&&a<=25)return!0}return!1}function K(e,t){this.manager=e,this.set(t)}function Z(e){if(y(e,"none"))return"none";var t=y(e,"pan-x"),n=y(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":y(e,"manipulation")?"manipulation":"auto"}function J(e){this.options=he({},this.defaults,e||{}),this.id=z(),this.manager=null,this.options.enable=g(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Q(e){if(e&16)return"cancel";return 8&e?"end":4&e?"move":2&e?"start":""}function ee(e){if(e==16)return"down";return 8==e?"up":2==e?"left":4==e?"right":""}function te(e,t){var n=t.manager;return n?n.get(e):e}function ne(){J.apply(this,arguments)}function oe(){ne.apply(this,arguments),this.pX=null,this.pY=null}function ie(){ne.apply(this,arguments)}function re(){J.apply(this,arguments),this._timer=null,this._input=null}function se(){ne.apply(this,arguments)}function ae(){ne.apply(this,arguments)}function le(){J.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function pe(e,t){return t=t||{},t.recognizers=g(t.recognizers,pe.defaults.preset),new ce(e,t)}function ce(e,t){this.options=he({},pe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=w(this),this.touchAction=new K(this,this.options.touchAction),ue(this,!0),l(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ue(e,t){var n=e.element;if(n.style){var o;l(e.options.cssProps,function(i,r){o=_(n.style,r),t?(e.oldCssProps[o]=n.style[o],n.style[o]=i):n.style[o]=e.oldCssProps[o]||""}),t||(e.oldCssProps={})}}function de(e,t){var o=n.createEvent("Event");o.initEvent(e,!0,!0),o.gesture=t,t.target.dispatchEvent(o)}var he,me=["","webkit","Moz","MS","ms","o"],fe=n.createElement("div"),ye=Math.round,ve=ge,be=Date.now;he="function"==typeof Object.assign?Object.assign:function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t,n=Object(e),o=1;o<arguments.length;o++)if(t=arguments[o],t!==r&&null!==t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n};var Re=p(function(e,t,n){for(var o=Object.keys(t),s=0;s<o.length;)(!n||n&&e[o[s]]===r)&&(e[o[s]]=t[o[s]]),s++;return e},"extend","Use `assign`."),Te=p(function(e,t){return Re(e,t,!0)},"merge","Use `assign`."),_e=1,ze=/mobile|tablet|ip(ad|hone|od)|android/i,Ee="ontouchstart"in t,Ie=_(t,"PointerEvent")!==r,we=Ee&&ze.test(navigator.userAgent),Pe="touch",Ce="mouse",Ae=1,Oe=2,Se=4,xe=8,De=1,Le=2,qe=4,He=8,Fe=16,Xe=Le|qe,Ye=He|Fe,Ne=Xe|Ye,Ge=["x","y"],Me=["clientX","clientY"];I.prototype={handler:function(){},init:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(E(this.element),this.evWin,this.domHandler)}};var Ve={mousedown:Ae,mousemove:Oe,mouseup:Se};c(Y,I,{handler:function(e){var t=Ve[e.type];t&Ae&&0===e.button&&(this.pressed=!0),t&Oe&&1!==e.which&&(t=Se);this.pressed&&(t&Se&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Ce,srcEvent:e}))}});var ke={pointerdown:Ae,pointermove:Oe,pointerup:Se,pointercancel:xe,pointerout:xe},je={2:Pe,3:"pen",4:Ce,5:"kinect"},We="pointerdown",Be="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(We="MSPointerDown",Be="MSPointerMove MSPointerUp MSPointerCancel"),c(N,I,{handler:function(e){var t=this.store,n=!1,o=e.type.toLowerCase().replace("ms",""),i=ke[o],r=je[e.pointerType]||e.pointerType,s=b(t,e.pointerId,"pointerId");i&Ae&&(0===e.button||r==Pe)?0>s&&(t.push(e),s=t.length-1):i&(Se|xe)&&(n=!0);0>s||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(s,1))}});var Ue={touchstart:Ae,touchmove:Oe,touchend:Se,touchcancel:xe};c(G,I,{handler:function(e){var t=Ue[e.type];if(t===Ae&&(this.started=!0),!!this.started){var n=M.call(this,e,t);t&(Se|xe)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Pe,srcEvent:e})}}});var $e={touchstart:Ae,touchmove:Oe,touchend:Se,touchcancel:xe};c(V,I,{handler:function(e){var t=$e[e.type],n=k.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Pe,srcEvent:e})}});c(j,I,{handler:function(e,t,n){var o=n.pointerType==Pe,i=n.pointerType==Ce;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)W.call(this,t,n);else if(i&&U.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=_(fe.style,"touchAction"),Ze=Ke!==r,Je="compute",Qe="none",et="pan-x",tt="pan-y",nt=function(){if(!Ze)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(o){e[o]=!n||t.CSS.supports("touch-action",o)}),e}();K.prototype={set:function(e){e==Je&&(e=this.compute()),Ze&&this.manager.element.style&&nt[e]&&(this.manager.element.style[Ke]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return l(this.manager.recognizers,function(t){d(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),Z(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var o=this.actions,i=y(o,Qe)&&!nt[Qe],r=y(o,tt)&&!nt[tt],s=y(o,et)&&!nt[et];if(i){var a=1===e.pointers.length,l=2>e.distance,p=250>e.deltaTime;if(a&&l&&p)return}return s&&r?void 0:i||r&&n&Xe||s&&n&Ye?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ot=2,it=4,rt=8,st=rt,at=16,lt=32;J.prototype={defaults:{},set:function(e){return he(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(a(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=te(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return a(e,"dropRecognizeWith",this)?this:(e=te(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(a(e,"requireFailure",this))return this;var t=this.requireFail;return e=te(e,this),-1===b(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(a(e,"dropRequireFailure",this))return this;e=te(e,this);var t=b(this.requireFail,e);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,o=this.state;o<rt&&t(n.options.event+Q(o)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),o>=rt&&t(n.options.event+Q(o))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=lt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(lt|1)))return!1;e++}return!0},recognize:function(e){var t=he({},e);return d(this.options.enable,[this,t])?void(this.state&(st|at|lt)&&(this.state=1),this.state=this.process(t),this.state&(ot|it|rt|at)&&this.tryEmit(t)):(this.reset(),void(this.state=lt))},process:function(){},getTouchAction:function(){},reset:function(){}},c(ne,J,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,o=t&(ot|it),i=this.attrTest(e);if(o&&(n&xe||!i))return t|at;return o||i?n&Se?t|rt:t&ot?t|it:ot:lt}}),c(oe,ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ne},getTouchAction:function(){var e=this.options.direction,t=[];return e&Xe&&t.push(tt),e&Ye&&t.push(et),t},directionTest:function(e){var t=this.options,n=!0,o=e.distance,i=e.direction,r=e.deltaX,s=e.deltaY;return i&t.direction||(t.direction&Xe?(i=0===r?De:0>r?Le:qe,n=r!=this.pX,o=ge(e.deltaX)):(i=0===s?De:0>s?He:Fe,n=s!=this.pY,o=ge(e.deltaY))),e.direction=i,n&&o>t.threshold&&i&t.direction},attrTest:function(e){return ne.prototype.attrTest.call(this,e)&&(this.state&ot||!(this.state&ot)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ee(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),c(ie,ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Qe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(ge(e.scale-1)>this.options.threshold||this.state&ot)},emit:function(e){if(1!==e.scale){var t=1>e.scale?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),c(re,J,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!o||!n||e.eventType&(Se|xe)&&!i)this.reset();else if(e.eventType&Ae)this.reset(),this._timer=s(function(){this.state=st,this.tryEmit()},t.time,this);else if(e.eventType&Se)return st;return lt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state!==st||(e&&e.eventType&Se?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=be(),this.manager.emit(this.options.event,this._input)))}}),c(se,ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Qe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(ge(e.rotation)>this.options.threshold||this.state&ot)}}),c(ae,ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Xe|Ye,pointers:1},getTouchAction:function(){return oe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Xe|Ye)?t=e.overallVelocity:n&Xe?t=e.overallVelocityX:n&Ye&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&ve(t)>this.options.velocity&&e.eventType&Se},emit:function(e){var t=ee(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),c(le,J,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&Ae&&0===this.count)return this.failTimeout();if(o&&i&&n){if(e.eventType!=Se)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,a&&r?this.count+=1:this.count=1,this._input=e;var l=this.count%t.taps;if(0==l)return this.hasRequireFailures()?(this._timer=s(function(){this.state=st,this.tryEmit()},t.interval,this),ot):st}return lt},failTimeout:function(){return this._timer=s(function(){this.state=lt},this.options.interval,this),lt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==st&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),pe.VERSION="2.0.7",pe.defaults={domEvents:!1,touchAction:Je,enable:!0,inputTarget:null,inputClass:null,preset:[[se,{enable:!1}],[ie,{enable:!1},["rotate"]],[ae,{direction:Xe}],[oe,{direction:Xe},["swipe"]],[le],[le,{event:"doubletap",taps:2},["tap"]],[re]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var pt=2;ce.prototype={set:function(e){return he(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?pt:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,o=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&st)&&(r=t.curRecognizer=null);for(var s=0;s<o.length;)n=o[s],t.stopped!==pt&&(!r||n==r||n.canRecognizeWith(r))?n.recognize(e):n.reset(),!r&&n.state&(ot|it|rt)&&(r=t.curRecognizer=n),s++}},get:function(e){if(e instanceof J)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(a(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(a(e,"remove",this))return this;if(e=this.get(e),e){var t=this.recognizers,n=b(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return l(v(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==r){var n=this.handlers;return l(v(e),function(e){t?n[e]&&n[e].splice(b(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&de(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](t),o++}},destroy:function(){this.element&&ue(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},he(pe,{INPUT_START:Ae,INPUT_MOVE:Oe,INPUT_END:Se,INPUT_CANCEL:xe,STATE_POSSIBLE:1,STATE_BEGAN:ot,STATE_CHANGED:it,STATE_ENDED:rt,STATE_RECOGNIZED:st,STATE_CANCELLED:at,STATE_FAILED:lt,DIRECTION_NONE:De,DIRECTION_LEFT:Le,DIRECTION_RIGHT:qe,DIRECTION_UP:He,DIRECTION_DOWN:Fe,DIRECTION_HORIZONTAL:Xe,DIRECTION_VERTICAL:Ye,DIRECTION_ALL:Ne,Manager:ce,Input:I,TouchAction:K,TouchInput:V,MouseInput:Y,PointerEventInput:N,TouchMouseInput:j,SingleTouchInput:G,Recognizer:J,AttrRecognizer:ne,Tap:le,Pan:oe,Swipe:ae,Pinch:ie,Rotate:se,Press:re,on:h,off:m,each:l,merge:Te,extend:Re,assign:he,inherit:c,bindFn:u,prefixed:_});var ct="undefined"==typeof t?"undefined"==typeof self?{}:self:t;ct.Hammer=pe,"function"==typeof r&&r.amd?r(function(){return pe}):e.exports?e.exports=pe:t[o]=pe})(window,document,"Hammer")}),GestureRecognizerImp=function(){function e(e){this.recognizer=e}return e.prototype.requireFailure=function(e){this.recognizer.requireFailure(e.recognizer)},e}(),GestureImp=function(){function e(e){this.ges=new hammer.Manager(e),this.tapHandles=new Map,this.tapRecognizers=[null,null,null],this.panHandles=new Map,this.panRecognizers=[null,null,null,null],this.pinchHandles=new Map,this.rotateHandles=new Map,this.pressHandles=new Map,this.swipeHandles=new Map,this.swipeRecognizers=[null,null,null]}return e.prototype.on=function(e,t){var n;switch(e){case"tap":n=this.tapHandles;break;case"pan":n=this.panHandles;break;case"pinch":n=this.pinchHandles;break;case"rotate":n=this.rotateHandles;break;case"press":n=this.pressHandles;break;case"swipe":n=this.swipeHandles;break;default:throw new Error("bp.Gesture.on error param event");}if(n.has(t))return this;var o=function(n){t(n)};return n.set(t,o),this.ges.on(e,o),this},e.prototype.off=function(e,t){var n;switch(e){case"tap":n=this.tapHandles;break;case"pan":n=this.panHandles;break;case"pinch":n=this.pinchHandles;break;case"rotate":n=this.rotateHandles;break;case"press":n=this.pressHandles;break;case"swipe":n=this.swipeHandles;break;default:throw new Error("bp.Gesture.off error param event");}if(t){var o=n.get(t);o&&(n.delete(t),this.ges.off(e,o))}else this.ges.off(e),n.clear();return this},e.prototype.enableTapRecognizer=function(e){if(e||(e={tapCount:1}),e.tapCount||(e.tapCount=1),1>e.tapCount||3<e.tapCount)throw new Error("bp.Gesture.addTapGesture error params: "+e.tapCount);if(this.tapRecognizers[e.tapCount-1])return this.tapRecognizers[e.tapCount-1];var t=this.ges.add(new hammer.Tap({event:"tap",taps:e.tapCount}));return this.tapRecognizers[e.tapCount-1]=new GestureRecognizerImp(t),this._concurrenceRecognizers(),this._requireFailure(this.tapRecognizers),this._setupDefaultRequireFailure(),this.tapRecognizers[e.tapCount-1]},e.prototype.disableTapRecognizer=function(e){if(e||(e={tapCount:1}),e.tapCount||(e.tapCount=1),this.tapRecognizers[e.tapCount-1]){var t=this.tapRecognizers[e.tapCount-1];this.tapRecognizers[e.tapCount-1]=null,this.ges.remove(t.recognizer)}},e.prototype.enablePanRecognizer=function(e){e.pointers||(e.pointers=1);var t=e.pointers;if(0>t||3<t)throw new Error("bp.Gesture.enablePanRecognizer error param pointers, must in [1,3]");browserIsMobile()||browserIsPhone()||(e.pointers=1,t=1);var n=t-1;if(this.panRecognizers[n])return this.panRecognizers[n];var o=this.ges.add(new hammer.Pan({event:"pan"}));return this.panRecognizers[n]=new GestureRecognizerImp(o),this._concurrenceRecognizers(),this._requireFailure(this.panRecognizers),this._setupDefaultRequireFailure(),this.panRecognizers[n]},e.prototype.disablePanRecognizer=function(e){var t=e.pointers;browserIsMobile()||browserIsPhone()||(e.pointers=1,t=1),this.panRecognizers[t-1]&&(this.ges.remove(this.panRecognizers[t-1].recognizer),this.panRecognizers[t-1]=null)},e.prototype.enablePinchRecognizer=function(){if(this.pinchRecognizer)return this.pinchRecognizer;var e=this.ges.add(new hammer.Pinch({event:"pinch"}));return this.pinchRecognizer=new GestureRecognizerImp(e),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.pinchRecognizer},e.prototype.disablePinchRecognizer=function(){this.pinchRecognizer&&(this.ges.remove(this.pinchRecognizer.recognizer),this.pinchRecognizer=null)},e.prototype.enableRotateRecognizer=function(){if(this.rotateRecognizer)return this.rotateRecognizer;var e=this.ges.add(new hammer.Rotate({event:"rotate"}));return this.rotateRecognizer=new GestureRecognizerImp(e),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.rotateRecognizer},e.prototype.disableRotateRecognizer=function(){this.rotateRecognizer&&(this.ges.remove(this.rotateRecognizer.recognizer),this.rotateRecognizer=null)},e.prototype.enablePressRecognizer=function(e){if(this.pressRecognizer)return this.pressRecognizer;var t=this.ges.add(new hammer.Rotate({event:"press",time:e.duration}));return this.pressRecognizer=new GestureRecognizerImp(t),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.pressRecognizer},e.prototype.disablePressRecognizer=function(){this.pressRecognizer&&(this.ges.remove(this.pressRecognizer.recognizer),this.pressRecognizer=null)},e.prototype.enableSwipeRecognizer=function(e){e||(e={}),e.velocity||(e.velocity=.3),e.distance||(e.distance=10),e.pointers||(e.pointers=1);var t=e.pointers;if(0>t||3<t)throw new Error("bp.Gesture.enableSwipeRecognizer error param pointers, must in [1,3]");if(browserIsMobile()||browserIsPhone()||(e.pointers=1,t=1),this.swipeRecognizers[t-1])return this.swipeRecognizers[t-1].recognizer.set({velocity:e.velocity,threshold:e.distance,pointers:e.pointers}),this.swipeRecognizers[t-1];var n=this.ges.add(new hammer.Swipe({event:"swipe",velocity:e.velocity,threshold:e.distance,pointers:e.pointers}));return this.swipeRecognizers[t-1]=new GestureRecognizerImp(n),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.swipeRecognizers[t-1]},e.prototype.disableSwipeRecognizer=function(e){e||(e={}),e.pointers||(e.pointers=1);var t=e.pointers;0<t&&4>t&&(!(browserIsMobile()||browserIsPhone())&&(e.pointers=1,t=1),this.swipeRecognizers[t-1]&&(this.ges.remove(this.swipeRecognizers[t-1].recognizer),this.swipeRecognizers[t-1]=null))},e.prototype._concurrenceRecognizers=function(){for(var e=this.panRecognizers.concat(this.tapRecognizers).concat(this.pinchRecognizer).concat(this.pressRecognizer).concat(this.rotateRecognizer).concat(this.swipeRecognizers),t=null,n=0;n<e.length;n++)e[n]&&(t?(t.recognizer.recognizeWith(e[n].recognizer),t=e[n]):t=e[n])},e.prototype._requireFailure=function(e){for(var t=null,n=0;n<e.length;n++)e[n]&&(e[n].recognizer.requireFail=[],t?(t.recognizer.requireFailure(e[n].recognizer),t=e[n]):t=e[n])},e.prototype._setupDefaultRequireFailure=function(){},e}(),GlobalIcons="GlobalIcons",Instance=function(){return window[GlobalIcons]||(window[GlobalIcons]=new IconsData),window[GlobalIcons]},IconsData=function(){return function(){this.installed=!1,this.icons=new Set,this.icons_svgPath=new Map,this.icons_alias=new Map,this.icons_font=new Map}}();function clearIcon(e){Instance().icons_font.delete(e),Instance().icons_svgPath.delete(e),Instance().icons_alias.delete(e)}function list(){return Instance().icons.keys()}function getIcon(e){var t=Instance().icons_alias.get(e);if(t&&(e=t),Instance().icons.has(e)){var n={},o=Instance().icons_font.get(e);if(o)return n.type="font",n.value=o,n;var i=Instance().icons_svgPath.get(e);if(i)return n.type="svg",n.value=i,n}return null}function registerSvgIcon(e,t){clearIcon(e),Instance().icons.add(e),Instance().icons_svgPath.set(e,t)}function registerFontIcon(e,t){clearIcon(e),Instance().icons.add(e);var n=[];return Instance().icons_font.set(e,{className:t,children:n}),n}function registerAliasIcon(e,t){if(!Instance().icons.has(t))throw new Error("icon name `"+t+"` isn't existed!");Instance().icons.has(e)||Instance().icons_alias.set(e,t)}function registerDefault(){Instance().installed||(registerFontIcon("arrowDown","bp-iconArrowDown"),registerFontIcon("arrowLeft","bp-iconArrowLeft"),registerFontIcon("arrowRight","bp-iconArrowRight"),registerFontIcon("arrowUp","bp-iconArrowUp"),registerFontIcon("cancel","bp-iconCancel"),registerFontIcon("delete","bp-iconDelete"),registerFontIcon("edit","bp-iconEdit"),registerFontIcon("heartFill","bp-iconHeartFill"),registerFontIcon("heart","bp-iconHeart"),registerFontIcon("locationPin","bp-iconLocationPin"),registerFontIcon("location","bp-iconLocation"),registerFontIcon("menu","bp-iconMenu"),registerFontIcon("minus","bp-iconMinus"),registerFontIcon("more","bp-iconMore"),registerFontIcon("ok","bp-iconOk"),registerFontIcon("plus","bp-iconPlus"),registerFontIcon("setting","bp-iconSetting"),registerFontIcon("starFill","bp-iconStarFill"),registerFontIcon("star","bp-iconStar"),registerFontIcon("user","bp-iconUser"),registerFontIcon("loading","bp-iconLoading").push("path1","path2","path3","path4","path5","path6","path7","path8","path9","path10","path11","path12"),Instance().installed=!0)}registerDefault();var Icons={list:list,registerAliasIcon:registerAliasIcon,registerFontIcon:registerFontIcon,registerSvgIcon:registerSvgIcon,registerDefault:registerDefault,getIcon:getIcon};const bpLibs={};Object.defineProperty(bpLibs,"router",{get(){return router}}),Object.defineProperty(bpLibs,"dom",{get(){return dom}}),Object.defineProperty(bpLibs,"device",{get(){return device}}),Object.defineProperty(bpLibs,"icons",{get(){return Icons}}),Object.defineProperty(bpLibs,"registerApp",{get(){return registerApp}}),Object.defineProperty(bpLibs,"Timer",{get(){return Timer}}),Object.defineProperty(bpLibs,"Gesture",{get(){return GestureImp}});var smoothscroll=createCommonjsModule(function(e){(function(){function t(){function e(e){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(e)}function t(e,t){this.scrollLeft=e,this.scrollTop=t}function n(e){return .5*(1-Math.cos(Math.PI*e))}function o(e){if(null===e||"object"!=typeof e||e.behavior===void 0||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(e,t){return"Y"===t?e.clientHeight+m<e.scrollHeight:"X"===t?e.clientWidth+m<e.scrollWidth:void 0}function r(e,t){var n=c.getComputedStyle(e,null)["overflow"+t];return"auto"===n||"scroll"===n}function s(e){var t=i(e,"Y")&&r(e,"Y"),n=i(e,"X")&&r(e,"X");return t||n}function a(e){for(;e!==u.body&&!1===s(e);)e=e.parentNode||e.host;return e}function l(e){var t,o,i,r=h(),s=(r-e.startTime)/468;s=1<s?1:s,t=n(s),o=e.startX+(e.x-e.startX)*t,i=e.startY+(e.y-e.startY)*t,e.method.call(e.scrollable,o,i),(o!==e.x||i!==e.y)&&c.requestAnimationFrame(l.bind(c,e))}function p(e,n,o){var i,r,s,a,p=h();e===u.body?(i=c,r=c.scrollX||c.pageXOffset,s=c.scrollY||c.pageYOffset,a=g.scroll):(i=e,r=e.scrollLeft,s=e.scrollTop,a=t),l({scrollable:i,method:a,startTime:p,startX:r,startY:s,x:n,y:o})}var c=window,u=document;if(!("scrollBehavior"in u.documentElement.style&&!0!==c.__forceSmoothScrollPolyfill__)){var d=c.HTMLElement||c.Element,g={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:d.prototype.scroll||t,scrollIntoView:d.prototype.scrollIntoView},h=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,m=e(c.navigator.userAgent)?1:0;c.scroll=c.scrollTo=function(){return void 0===arguments[0]?void 0:!0===o(arguments[0])?void g.scroll.call(c,void 0===arguments[0].left?"object"==typeof arguments[0]?c.scrollX||c.pageXOffset:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?c.scrollY||c.pageYOffset:arguments[1]:arguments[0].top):void p.call(c,u.body,void 0===arguments[0].left?c.scrollX||c.pageXOffset:~~arguments[0].left,void 0===arguments[0].top?c.scrollY||c.pageYOffset:~~arguments[0].top)},c.scrollBy=function(){return void 0===arguments[0]?void 0:o(arguments[0])?void g.scrollBy.call(c,void 0===arguments[0].left?"object"==typeof arguments[0]?0:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?0:arguments[1]:arguments[0].top):void p.call(c,u.body,~~arguments[0].left+(c.scrollX||c.pageXOffset),~~arguments[0].top+(c.scrollY||c.pageYOffset))},d.prototype.scroll=d.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===o(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void g.elementScroll.call(this,void 0===arguments[0].left?"object"==typeof arguments[0]?this.scrollLeft:~~arguments[0]:~~arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?this.scrollTop:~~arguments[1]:~~arguments[0].top)}var e=arguments[0].left,t=arguments[0].top;p.call(this,this,"undefined"==typeof e?this.scrollLeft:~~e,"undefined"==typeof t?this.scrollTop:~~t)}},d.prototype.scrollBy=function(){return void 0===arguments[0]?void 0:!0===o(arguments[0])?void g.elementScroll.call(this,void 0===arguments[0].left?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,void 0===arguments[0].top?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},d.prototype.scrollIntoView=function(){if(!0===o(arguments[0]))return void g.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var e=a(this),t=e.getBoundingClientRect(),n=this.getBoundingClientRect();e===u.body?c.scrollBy({left:n.left,top:n.top,behavior:"smooth"}):(p.call(this,e,e.scrollLeft+n.left-t.left,e.scrollTop+n.top-t.top),"fixed"!==c.getComputedStyle(e).position&&c.scrollBy({left:t.left,top:t.top,behavior:"smooth"}))}}}e.exports={polyfill:t}})()}),smoothscroll_1=smoothscroll.polyfill;function install(e,t,n){!!n.navigator.userAgent.toLowerCase().match(/chrome/)||n.$srcScrollTo||(n.$srcScrollTo=(window||window).scrollTo,smoothscroll.polyfill())}var s_timer=Symbol("s_timer");function beforeCreate(e,t){t[s_timer]||(t[s_timer]=new Timer,Object.defineProperty(t,"$timer",{get:function(){return t[s_timer]}}))}function beforeDestroy(e,t){t[s_timer]&&(t[s_timer].dispose(),t[s_timer]=null)}var bpIcon={name:"bpIcon",props:{name:{type:String,required:!0},width:{type:String,required:!1},height:{type:String,required:!1},color:{type:String,required:!1},event:{validator:function(e){return!e||"string"===typeof e||Array.isArray(e)},default:"click"}},mounted(){},render(e){let t=Icons.getIcon(this.name);if(!t)return console.log("icon: "+this.name+" isn't registered"),e("i",{class:["bp-icon"],style:{}},this.$slots.default);t=t||{value:""};let n={class:["bp-icon"],style:{}};this.width&&(n.style.width=this.width),this.height&&(n.style.height=this.height),n.style.width&&!n.style.height?n.style.height=n.style.width:!n.style.width&&n.style.height&&(n.style.width=n.style.height);const o=t=>n=>{this.$emit(t,n)},i={};if(Array.isArray(this.event)?this.event.forEach(t=>{i[t]=o(t)}):i[this.event]=o(this.event),n.on=i,"svg"==t.type)return n.style.backgroundImage=`url(${t.value})`,e("i",n,this.$slots.default);else{n.class.push(t.value.className);let o=[];for(let n,r=0;r<t.value.children.length;r++)n={class:[]},n.class=[t.value.children[r]],o.push(e("i",n));return this.$slots.default&&o.push(this.$slots.default),n.style.width&&(n.style.fontSize=n.style.width),this.color&&(n.style.color=this.color),e("i",n,o)}}};let _Vue;function makeInstall(){return function e(t){if(!(e.installed&&_Vue===t)){e.installed=!0,_Vue=t;let n=window||window;install(t,this,n),t.mixin({mounted(){},beforeCreate(){beforeCreate(t,this)},created(){},beforeDestroy(){beforeDestroy(t,this)}}),Object.defineProperty(t.prototype,"$bpLibs",{get:function(){return bpLibs}}),t.component("bpIcon",bpIcon)}}}function VuePlugin(){return bpLibs.icons.registerDefault(),{install:makeInstall()}}bpLibs.VuePlugin=VuePlugin,bpLibs.VueObject={bpIcon:bpIcon};export default bpLibs;
/*!
* bpui libs v0.2.1
* bpui libs v0.2.2
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* Released under the MIT License.
*/(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("febs-browser")):"function"==typeof define&&define.amd?define(["febs-browser"],t):(e=e||self,e.bpLibs=t(e.febs))})(this,function(e){'use strict';var v=Math.PI;function t(t){for(var n={},o=0==t.length?[]:t.split("&"),r=0;r<o.length;r++)if(!e.string.isEmpty(o[r])){var s=o[r].split("=");if(!e.string.isEmpty(s[0])){var a=decodeURIComponent(s[0]),l=e.string.isEmpty(s[1])?"":decodeURIComponent(s[1]);n[a]=l}}return n}function n(e,t){if(t){var n="";for(var o in t){var i=t[o];0<n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(i)}if(0<n.length){var r=e.indexOf("?");e+=0>r?"?"+n:r==e.length-1?n:"&"+n}}return e}function o(e,t){window[b]||(window[b]=[]),0>window[b].indexOf(e)&&window[b].push(e),t?"/"==t[t.length-1]&&(t=t.substr(0,t.length-1)):t="",window[R]=t;for(var n,o=0;o<window[b].length;o++){n=window[b][o];for(var r=0;r<n.length;r++)if("*"==n[r].path){window[T]=n[r].component;break}}}function i(){return window[R]}function r(e,t,n){window[b]||(window[b]=[]);for(var o,r=function(o){for(var i,r=window[b][o],s=function(o){if(r[o].path==e.path)return r[o].component?t(r[o].component,function(e){r[o].component=e}):n&&n(new Error("cannot find component: "+r[o].path)),{value:void 0}},a=0;a<r.length;a++)if(i=s(a),"object"==typeof i)return i},s=0;s<window[b].length;s++)if(o=r(s),"object"==typeof o)return o.value;return window[T]&&t(window[T],function(e){window[T]=e}),null}function s(e){return!!(e&&"object"==typeof e&&e._isVue)}function a(t){if(t)if(e.dom.isDom(t))t=$("<div></div>").append(t),t=t.html();else if(s(t))t=$(t.$el),t=$("div").append(t),t=t.html();else if("string"!=typeof t)throw new Error("getDomHtmlString obj only can be vue object, Dom or string");return t}function l(e,t,n,o){if(!o)o=Date.now();else if(Date.now()-o>=e)return void(n&&n());t&&requestAnimationFrame(function(){t()?n&&n():l(e,t,n,o)})}function p(e,t){return t={exports:{}},e(t,t.exports),t.exports}function c(e){W().icons_font.delete(e),W().icons_svgPath.delete(e),W().icons_alias.delete(e)}function u(e,t){c(e),W().icons.add(e);var n=[];return W().icons_font.set(e,{className:t,children:n}),n}function d(){W().installed||(u("arrowDown","bp-iconArrowDown"),u("arrowLeft","bp-iconArrowLeft"),u("arrowRight","bp-iconArrowRight"),u("arrowUp","bp-iconArrowUp"),u("cancel","bp-iconCancel"),u("delete","bp-iconDelete"),u("edit","bp-iconEdit"),u("heartFill","bp-iconHeartFill"),u("heart","bp-iconHeart"),u("locationPin","bp-iconLocationPin"),u("location","bp-iconLocation"),u("menu","bp-iconMenu"),u("minus","bp-iconMinus"),u("more","bp-iconMore"),u("ok","bp-iconOk"),u("plus","bp-iconPlus"),u("setting","bp-iconSetting"),u("starFill","bp-iconStarFill"),u("star","bp-iconStar"),u("user","bp-iconUser"),u("loading","bp-iconLoading").push("path1","path2","path3","path4","path5","path6","path7","path8","path9","path10","path11","path12"),W().installed=!0)}function h(e,t,n){!!n.navigator.userAgent.toLowerCase().match(/chrome/)||n.$srcScrollTo||(n.$srcScrollTo=(window||window).scrollTo,Z.polyfill())}function m(e,t){t[Q]||(t[Q]=new G,Object.defineProperty(t,"$timer",{get:function(){return t[Q]}}))}function f(e,t){t[Q]&&(t[Q].dispose(),t[Q]=null)}function y(){return function e(t){if(!(e.installed&&te===t)){e.installed=!0,te=t;let n=window||window;h(t,this,n),t.mixin({mounted(){},beforeCreate(){m(t,this)},created(){},beforeDestroy(){f(t,this)}}),Object.defineProperty(t.prototype,"$bpLibs",{get:function(){return K}}),t.component("bpIcon",ee)}}}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;var b=Symbol("GlobalRouter"),R=Symbol("GlobalRouterBase"),T=Symbol("GlobalRouter404"),_=Symbol("InstanceOnRoute"),z=function(){function o(){}return Object.defineProperty(o.prototype,"length",{get:function(){return window.history.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"basePath",{get:function(){return i()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"currentRoute",{get:function(){var n=window.location.search||"";"?"==n[0]&&(n=n.substr(1));var o=t(n);return{path:window.location.pathname,query:o,state:window.history.state?e.utils.mergeMap(window.history.state):null}},enumerable:!0,configurable:!0}),o.prototype.push=function(e,t){var o=this;void 0===t&&(t=!0);var i="string"==typeof e?{path:e}:e;var r=i.path;if(i.path=n(i.path,i.query),window.history.pushState(i.state,null,i.path),t){var s={path:r,query:i.query,state:i.state};setTimeout(function(){o._triggerRouteChanged(s,null)},0)}},o.prototype.replace=function(e,t){var o=this;void 0===t&&(t=!0);var i="string"==typeof e?{path:e}:e;var r=i.path;if(i.path=n(i.path,i.query),window.history.replaceState(i.state,null,i.path),t){var s={path:r,query:i.query,state:i.state};setTimeout(function(){o._triggerRouteChanged(s,1)},0)}},o.prototype.back=function(){window.history.back()},o.prototype.forward=function(){window.history.forward()},o.prototype.go=function(e){window.history.go(e)},o.prototype.getMatchedComponent=function(e,t,n){return r(e,t,n)},o.prototype.on=function(n,o){var i=this;"routeChanged"==n&&(!window[_]&&(window[_]=[],window.addEventListener("popstate",function(){var n=t(window.location.search),o={path:window.location.pathname,query:e.utils.mergeMap(n),state:history.state};i._triggerRouteChanged(o,null)})),window[_].push(o))},o.prototype.off=function(e,t){if("routeChanged"==e&&window[_]){var n=window[_].indexOf(t);0<=n&&window[_].splice(n,1)}},o.prototype._triggerRouteChanged=function(t,n){if(window[_])for(var o=window[_],r=0;r<o.length;r++)o[r]({path:t.path,query:e.utils.mergeMap(t.query),state:e.utils.mergeMap(t.state)},n)},o}(),E=new z;const I=e.dom.isDom,w=e.dom.getViewPort,P=e.dom.getDocumentPort,C=e.dom.getDocumentOffset,A=e.dom.getElementOffset,O=e.dom.addEventListener,S=e.dom.removeEventListener;var x=Object.freeze({__proto__:null,isVueObject:s,isVueComponent:function(e){return!!(e&&"object"==typeof e&&"function"==typeof e.render&&e._compiled)},isHtmlDom:I,getDomHtmlString:a,getViewPort:w,getDocumentPort:P,getDocumentOffset:C,getElementOffset:A,addEventListener:O,removeEventListener:S,probeDom:l});const L=e.utils.browserIsMobile,D=e.utils.browserIsIOS,q=e.utils.browserIsPhone,H=e.utils.browserIsWeixin,F=e.utils.browserIsIE,X=e.utils.browserIEVer,Y=e.utils.browserIsSupportHtml5;var N=Object.freeze({__proto__:null,vibrate:function(e){if(navigator){let t=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate;!t&&__debug&&console.log("vibrate not supported"),navigator.vibrate(e)}},browserIsMobile:L,browserIsIOS:D,browserIsPhone:q,browserIsWeixin:H,browserIsIE:F,browserIEVer:X,browserIsSupportHtml5:Y});class G{constructor(){this._timeoutList=[],this._requestAniList=[],this._intervalList=[]}dispose(){this.clearAll()}sleep(e){var t=this;return new Promise(function(n,o){try{if(0<=e){let o=setTimeout(function(){let e=t._timeoutList.indexOf(o);0<=e&&t._timeoutList.splice(e,1),n()},e);t._timeoutList.push(o)}else n()}catch(e){o(e)}})}setTimeout(e,n){let o=this,r=setTimeout(function(){e();let t=o._timeoutList.indexOf(r);0<=t&&o._timeoutList.splice(t,1)},n);return r&&this._timeoutList.push(r),r}clearTimeout(e){if(e){clearTimeout(e);let t=this._timeoutList.indexOf(e);0<=t&&this._timeoutList.splice(t,1)}}setInterval(e,n){let o=setInterval(function(){e()},n);return o&&this._intervalList.push(o),o}clearInterval(e){if(e){clearInterval(e);let t=this._intervalList.indexOf(e);0<=t&&this._intervalList.splice(t,1)}}requestAnimationFrame(e){if(!e)return null;let n=this,o=requestAnimationFrame(function(t){e(t);let r=n._requestAniList.indexOf(o);0<=r&&n._requestAniList.splice(r,1)});return o&&this._requestAniList.push(o),o}cancelAnimationFrame(e){if(e){cancelAnimationFrame(e);let t=this._requestAniList.indexOf(e);0<=t&&this._requestAniList.splice(t,1)}}clearAllTimeout(){for(let e of this._timeoutList)e&&clearTimeout(e);this._timeoutList=[]}clearAllInterval(){for(let e of this._intervalList)e&&clearInterval(e);this._intervalList=[]}clearAllAnimationFrame(){for(let e of this._requestAniList)e&&G.cancelAnimationFrame(e);this._requestAniList=[]}clearAll(){this.clearAllTimeout(),this.clearAllAnimationFrame(),this.clearAllInterval()}}var M=p(function(e){(function(t,n,o,r){var he=Math.round,me=Math.abs;function s(e,t,n){return setTimeout(u(e,n),t)}function a(e,t,n){return!!Array.isArray(e)&&(l(e,n[t],n),!0)}function l(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(o=0;o<e.length;)t.call(n,e[o],o,e),o++;else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function p(n,o,i){return function(){var r=new Error("get-stack-trace"),e=r&&r.stack?r.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,"DEPRECATED METHOD: "+o+"\n"+i+" AT \n",e),n.apply(this,arguments)}}function c(e,t,n){var o,i=t.prototype;o=e.prototype=Object.create(i),o.constructor=e,o._super=i,n&&fe(o,n)}function u(e,t){return function(){return e.apply(t,arguments)}}function d(e,t){return"function"==typeof e?e.apply(t?t[0]||r:r,t):e}function g(e,t){return e===r?t:e}function h(e,t,n){l(b(t),function(t){e.addEventListener(t,n,!1)})}function m(e,t,n){l(b(t),function(t){e.removeEventListener(t,n,!1)})}function f(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return-1<e.indexOf(t)}function b(e){return e.trim().split(/\s+/g)}function R(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var o=0;o<e.length;){if(n&&e[o][n]==t||!n&&e[o]===t)return o;o++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function _(e,t,n){for(var o,r=[],s=[],a=0;a<e.length;)o=t?e[a][t]:e[a],0>R(s,o)&&r.push(e[a]),s[a]=o,a++;return n&&(t?r=r.sort(function(e,n){return e[t]>n[t]}):r=r.sort()),r}function z(e,t){for(var n,o,s=t[0].toUpperCase()+t.slice(1),a=0;a<ye.length;){if(n=ye[a],o=n?n+s:t,o in e)return o;a++}return r}function E(){return Ee++}function I(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function w(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){d(e.options.enable,[e])&&n.handler(t)},this.init()}function P(e){var t,n=e.options.inputClass;return t=n?n:Pe?G:Ce?k:we?W:N,new t(e,C)}function C(e,t,n){var o=n.pointers.length,i=n.changedPointers.length,r=1&t&&0==o-i;n.isFirst=!!r,n.isFinal=!!(12&t&&0==o-i),r&&(e.session={}),n.eventType=t,A(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function A(e,t){var n=e.session,o=t.pointers,i=o.length;n.firstInput||(n.firstInput=x(t)),1<i&&!n.firstMultiple?n.firstMultiple=x(t):1===i&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=t.center=L(o);t.timeStamp=Te(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=F(a,l),t.distance=H(a,l),O(n,t),t.offsetDirection=q(t.deltaX,t.deltaY);var p=D(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=Re(p.x)>Re(p.y)?p.x:p.y,t.scale=s?Y(s.pointers,o):1,t.rotation=s?X(s.pointers,o):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,S(n,t);var c=e.element;f(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function O(e,t){var n=t.center,o=e.offsetDelta||{},i=e.prevDelta||{},r=e.prevInput||{};(1===t.eventType||4===r.eventType)&&(i=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-o.x),t.deltaY=i.y+(n.y-o.y)}function S(e,t){var n,o,i,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(25<l||a.velocity===r)){var p=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=D(l,p,c);o=u.x,i=u.y,n=Re(u.x)>Re(u.y)?u.x:u.y,s=q(p,c),e.lastInterval=t}else n=a.velocity,o=a.velocityX,i=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=o,t.velocityY=i,t.direction=s}function x(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:be(e.pointers[n].clientX),clientY:be(e.pointers[n].clientY)},n++;return{timeStamp:Te(),pointers:t,center:L(t),deltaX:e.deltaX,deltaY:e.deltaY}}function L(e){var t=e.length;if(1===t)return{x:be(e[0].clientX),y:be(e[0].clientY)};for(var n=0,o=0,r=0;r<t;)n+=e[r].clientX,o+=e[r].clientY,r++;return{x:be(n/t),y:be(o/t)}}function D(e,t,n){return{x:t/e||0,y:n/e||0}}function q(e,t){return e===t?1:Re(e)>=Re(t)?0>e?2:4:0>t?8:16}function H(e,t,n){var o=Math.sqrt;n||(n=Ve);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return o(i*i+r*r)}function F(e,t,n){var o=Math.atan2;n||(n=Ve);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*o(r,i)/v}function X(e,t){return F(t[1],t[0],ke)+F(e[1],e[0],ke)}function Y(e,t){return H(t[0],t[1],ke)/H(e[0],e[1],ke)}function N(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,w.apply(this,arguments)}function G(){this.evEl=Ue,this.evWin=$e,w.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function M(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,w.apply(this,arguments)}function V(e,t){var n=T(e.touches),o=T(e.changedTouches);return 12&t&&(n=_(n.concat(o),"identifier",!0)),[n,o]}function k(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},w.apply(this,arguments)}function j(e,t){var n=T(e.touches),o=this.targetIds;if(3&t&&1===n.length)return o[n[0].identifier]=!0,[n,n];var r,s,a=T(e.changedTouches),l=[],p=this.target;if(s=n.filter(function(e){return f(e.target,p)}),1===t)for(r=0;r<s.length;)o[s[r].identifier]=!0,r++;for(r=0;r<a.length;)o[a[r].identifier]&&l.push(a[r]),12&t&&delete o[a[r].identifier],r++;return l.length?[_(s.concat(l),"identifier",!0),l]:void 0}function W(){w.apply(this,arguments);var e=u(this.handler,this);this.touch=new k(this.manager,e),this.mouse=new N(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function B(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,U.call(this,t)):12&e&&U.call(this,t)}function U(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var o=this.lastTouches,i=function(){var e=o.indexOf(n);-1<e&&o.splice(e,1)};setTimeout(i,2500)}}function K(e){for(var n=e.srcEvent.clientX,o=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var s=this.lastTouches[r],t=me(n-s.x),a=me(o-s.y);if(25>=t&&25>=a)return!0}return!1}function Z(e,t){this.manager=e,this.set(t)}function J(e){if(y(e,"none"))return"none";var t=y(e,"pan-x"),n=y(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":y(e,"manipulation")?"manipulation":"auto"}function Q(e){this.options=fe({},this.defaults,e||{}),this.id=E(),this.manager=null,this.options.enable=g(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ee(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function te(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ne(e,t){var n=t.manager;return n?n.get(e):e}function oe(){Q.apply(this,arguments)}function ie(){oe.apply(this,arguments),this.pX=null,this.pY=null}function re(){oe.apply(this,arguments)}function se(){Q.apply(this,arguments),this._timer=null,this._input=null}function ae(){oe.apply(this,arguments)}function le(){oe.apply(this,arguments)}function pe(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ce(e,t){return t=t||{},t.recognizers=g(t.recognizers,ce.defaults.preset),new ue(e,t)}function ue(e,t){this.options=fe({},ce.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=P(this),this.touchAction=new Z(this,this.options.touchAction),de(this,!0),l(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function de(e,t){var n=e.element;if(n.style){var o;l(e.options.cssProps,function(i,r){o=z(n.style,r),t?(e.oldCssProps[o]=n.style[o],n.style[o]=i):n.style[o]=e.oldCssProps[o]||""}),t||(e.oldCssProps={})}}function ge(e,t){var o=n.createEvent("Event");o.initEvent(e,!0,!0),o.gesture=t,t.target.dispatchEvent(o)}var fe,ye=["","webkit","Moz","MS","ms","o"],ve=n.createElement("div"),be=he,Re=me,Te=Date.now;fe="function"==typeof Object.assign?Object.assign:function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t,n=Object(e),o=1;o<arguments.length;o++)if(t=arguments[o],t!==r&&null!==t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n};var _e=p(function(e,t,n){for(var o=Object.keys(t),s=0;s<o.length;)(!n||n&&e[o[s]]===r)&&(e[o[s]]=t[o[s]]),s++;return e},"extend","Use `assign`."),ze=p(function(e,t){return _e(e,t,!0)},"merge","Use `assign`."),Ee=1,Ie=/mobile|tablet|ip(ad|hone|od)|android/i,we="ontouchstart"in t,Pe=z(t,"PointerEvent")!==r,Ce=we&&Ie.test(navigator.userAgent),Ae="touch",Oe="mouse",Se=1,xe=2,Le=4,De=8,qe=1,He=2,Fe=4,Xe=8,Ye=16,Ne=He|Fe,Ge=Xe|Ye,Me=Ne|Ge,Ve=["x","y"],ke=["clientX","clientY"];w.prototype={handler:function(){},init:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(I(this.element),this.evWin,this.domHandler)}};var je={mousedown:Se,mousemove:xe,mouseup:Le};c(N,w,{handler:function(e){var t=je[e.type];t&Se&&0===e.button&&(this.pressed=!0),t&xe&&1!==e.which&&(t=Le),this.pressed&&(t&Le&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Oe,srcEvent:e}))}});var We={pointerdown:Se,pointermove:xe,pointerup:Le,pointercancel:De,pointerout:De},Be={2:Ae,3:"pen",4:Oe,5:"kinect"},Ue="pointerdown",$e="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Ue="MSPointerDown",$e="MSPointerMove MSPointerUp MSPointerCancel"),c(G,w,{handler:function(e){var t=this.store,n=!1,o=e.type.toLowerCase().replace("ms",""),i=We[o],r=Be[e.pointerType]||e.pointerType,s=R(t,e.pointerId,"pointerId");i&Se&&(0===e.button||r==Ae)?0>s&&(t.push(e),s=t.length-1):i&(Le|De)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(s,1))}});var Ke={touchstart:Se,touchmove:xe,touchend:Le,touchcancel:De};c(M,w,{handler:function(e){var t=Ke[e.type];if(t===Se&&(this.started=!0),!!this.started){var n=V.call(this,e,t);t&(Le|De)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Ae,srcEvent:e})}}});var Ze={touchstart:Se,touchmove:xe,touchend:Le,touchcancel:De};c(k,w,{handler:function(e){var t=Ze[e.type],n=j.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Ae,srcEvent:e})}});c(W,w,{handler:function(e,t,n){var o=n.pointerType==Ae,i=n.pointerType==Oe;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)B.call(this,t,n);else if(i&&K.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Je=z(ve.style,"touchAction"),Qe=Je!==r,et="compute",tt="none",nt="pan-x",ot="pan-y",it=function(){if(!Qe)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(o){e[o]=!n||t.CSS.supports("touch-action",o)}),e}();Z.prototype={set:function(e){e==et&&(e=this.compute()),Qe&&this.manager.element.style&&it[e]&&(this.manager.element.style[Je]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return l(this.manager.recognizers,function(t){d(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),J(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var o=this.actions,i=y(o,tt)&&!it[tt],r=y(o,ot)&&!it[ot],s=y(o,nt)&&!it[nt];if(i){var a=1===e.pointers.length,l=2>e.distance,p=250>e.deltaTime;if(a&&l&&p)return}return s&&r?void 0:i||r&&n&Ne||s&&n&Ge?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var rt=2,st=4,at=8,lt=at,pt=16,ct=32;Q.prototype={defaults:{},set:function(e){return fe(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(a(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=ne(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return a(e,"dropRecognizeWith",this)?this:(e=ne(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(a(e,"requireFailure",this))return this;var t=this.requireFail;return e=ne(e,this),-1===R(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(a(e,"dropRequireFailure",this))return this;e=ne(e,this);var t=R(this.requireFail,e);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,o=this.state;o<at&&t(n.options.event+ee(o)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),o>=at&&t(n.options.event+ee(o))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=ct)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(1|ct)))return!1;e++}return!0},recognize:function(e){var t=fe({},e);return d(this.options.enable,[this,t])?void(this.state&(lt|pt|ct)&&(this.state=1),this.state=this.process(t),this.state&(rt|st|at|pt)&&this.tryEmit(t)):(this.reset(),void(this.state=ct))},process:function(){},getTouchAction:function(){},reset:function(){}},c(oe,Q,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,o=t&(rt|st),i=this.attrTest(e);return o&&(n&De||!i)?t|pt:o||i?n&Le?t|at:t&rt?t|st:rt:ct}}),c(ie,oe,{defaults:{event:"pan",threshold:10,pointers:1,direction:Me},getTouchAction:function(){var e=this.options.direction,t=[];return e&Ne&&t.push(ot),e&Ge&&t.push(nt),t},directionTest:function(e){var t=this.options,n=!0,o=e.distance,i=e.direction,r=e.deltaX,s=e.deltaY;return i&t.direction||(t.direction&Ne?(i=0===r?qe:0>r?He:Fe,n=r!=this.pX,o=me(e.deltaX)):(i=0===s?qe:0>s?Xe:Ye,n=s!=this.pY,o=me(e.deltaY))),e.direction=i,n&&o>t.threshold&&i&t.direction},attrTest:function(e){return oe.prototype.attrTest.call(this,e)&&(this.state&rt||!(this.state&rt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=te(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),c(re,oe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[tt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(me(e.scale-1)>this.options.threshold||this.state&rt)},emit:function(e){if(1!==e.scale){var t=1>e.scale?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),c(se,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!o||!n||e.eventType&(Le|De)&&!i)this.reset();else if(e.eventType&Se)this.reset(),this._timer=s(function(){this.state=lt,this.tryEmit()},t.time,this);else if(e.eventType&Le)return lt;return ct},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state!==lt||(e&&e.eventType&Le?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=Te(),this.manager.emit(this.options.event,this._input)))}}),c(ae,oe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[tt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(me(e.rotation)>this.options.threshold||this.state&rt)}}),c(le,oe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ne|Ge,pointers:1},getTouchAction:function(){return ie.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Ne|Ge)?t=e.overallVelocity:n&Ne?t=e.overallVelocityX:n&Ge&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&Re(t)>this.options.velocity&&e.eventType&Le},emit:function(e){var t=te(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),c(pe,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&Se&&0===this.count)return this.failTimeout();if(o&&i&&n){if(e.eventType!=Le)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||H(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,a&&r?this.count+=1:this.count=1,this._input=e;var l=this.count%t.taps;if(0==l)return this.hasRequireFailures()?(this._timer=s(function(){this.state=lt,this.tryEmit()},t.interval,this),rt):lt}return ct},failTimeout:function(){return this._timer=s(function(){this.state=ct},this.options.interval,this),ct},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==lt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ce.VERSION="2.0.7",ce.defaults={domEvents:!1,touchAction:et,enable:!0,inputTarget:null,inputClass:null,preset:[[ae,{enable:!1}],[re,{enable:!1},["rotate"]],[le,{direction:Ne}],[ie,{direction:Ne},["swipe"]],[pe],[pe,{event:"doubletap",taps:2},["tap"]],[se]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ut=2;ue.prototype={set:function(e){return fe(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?ut:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,o=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&lt)&&(r=t.curRecognizer=null);for(var s=0;s<o.length;)n=o[s],t.stopped!==ut&&(!r||n==r||n.canRecognizeWith(r))?n.recognize(e):n.reset(),!r&&n.state&(rt|st|at)&&(r=t.curRecognizer=n),s++}},get:function(e){if(e instanceof Q)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(a(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(a(e,"remove",this))return this;if(e=this.get(e),e){var t=this.recognizers,n=R(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return l(b(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==r){var n=this.handlers;return l(b(e),function(e){t?n[e]&&n[e].splice(R(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&ge(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](t),o++}},destroy:function(){this.element&&de(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},fe(ce,{INPUT_START:Se,INPUT_MOVE:xe,INPUT_END:Le,INPUT_CANCEL:De,STATE_POSSIBLE:1,STATE_BEGAN:rt,STATE_CHANGED:st,STATE_ENDED:at,STATE_RECOGNIZED:lt,STATE_CANCELLED:pt,STATE_FAILED:ct,DIRECTION_NONE:qe,DIRECTION_LEFT:He,DIRECTION_RIGHT:Fe,DIRECTION_UP:Xe,DIRECTION_DOWN:Ye,DIRECTION_HORIZONTAL:Ne,DIRECTION_VERTICAL:Ge,DIRECTION_ALL:Me,Manager:ue,Input:w,TouchAction:Z,TouchInput:k,MouseInput:N,PointerEventInput:G,TouchMouseInput:W,SingleTouchInput:M,Recognizer:Q,AttrRecognizer:oe,Tap:pe,Pan:ie,Swipe:le,Pinch:re,Rotate:ae,Press:se,on:h,off:m,each:l,merge:ze,extend:_e,assign:fe,inherit:c,bindFn:u,prefixed:z});var dt="undefined"==typeof t?"undefined"==typeof self?{}:self:t;dt.Hammer=ce,"function"==typeof r&&r.amd?r(function(){return ce}):e.exports?e.exports=ce:t[o]=ce})(window,document,"Hammer")}),V=function(){function e(e){this.recognizer=e}return e.prototype.requireFailure=function(e){this.recognizer.requireFailure(e.recognizer)},e}(),k=function(){function e(e){this.ges=new M.Manager(e),this.tapHandles=new Map,this.tapRecognizers=[null,null,null],this.panHandles=new Map,this.panRecognizers=[null,null,null,null],this.pinchHandles=new Map,this.rotateHandles=new Map,this.pressHandles=new Map,this.swipeHandles=new Map,this.swipeRecognizers=[null,null,null]}return e.prototype.on=function(e,t){var n;switch(e){case"tap":n=this.tapHandles;break;case"pan":n=this.panHandles;break;case"pinch":n=this.pinchHandles;break;case"rotate":n=this.rotateHandles;break;case"press":n=this.pressHandles;break;case"swipe":n=this.swipeHandles;break;default:throw new Error("bp.Gesture.on error param event");}if(n.has(t))return this;var o=function(n){t(n)};return n.set(t,o),this.ges.on(e,o),this},e.prototype.off=function(e,t){var n;switch(e){case"tap":n=this.tapHandles;break;case"pan":n=this.panHandles;break;case"pinch":n=this.pinchHandles;break;case"rotate":n=this.rotateHandles;break;case"press":n=this.pressHandles;break;case"swipe":n=this.swipeHandles;break;default:throw new Error("bp.Gesture.off error param event");}if(t){var o=n.get(t);o&&(n.delete(t),this.ges.off(e,o))}else this.ges.off(e),n.clear();return this},e.prototype.enableTapRecognizer=function(e){if(e||(e={tapCount:1}),e.tapCount||(e.tapCount=1),1>e.tapCount||3<e.tapCount)throw new Error("bp.Gesture.addTapGesture error params: "+e.tapCount);if(this.tapRecognizers[e.tapCount-1])return this.tapRecognizers[e.tapCount-1];var t=this.ges.add(new M.Tap({event:"tap",taps:e.tapCount}));return this.tapRecognizers[e.tapCount-1]=new V(t),this._concurrenceRecognizers(),this._requireFailure(this.tapRecognizers),this._setupDefaultRequireFailure(),this.tapRecognizers[e.tapCount-1]},e.prototype.disableTapRecognizer=function(e){if(e||(e={tapCount:1}),e.tapCount||(e.tapCount=1),this.tapRecognizers[e.tapCount-1]){var t=this.tapRecognizers[e.tapCount-1];this.tapRecognizers[e.tapCount-1]=null,this.ges.remove(t.recognizer)}},e.prototype.enablePanRecognizer=function(e){e.pointers||(e.pointers=1);var t=e.pointers;if(0>t||3<t)throw new Error("bp.Gesture.enablePanRecognizer error param pointers, must in [1,3]");L()||q()||(e.pointers=1,t=1);var n=t-1;if(this.panRecognizers[n])return this.panRecognizers[n];var o=this.ges.add(new M.Pan({event:"pan"}));return this.panRecognizers[n]=new V(o),this._concurrenceRecognizers(),this._requireFailure(this.panRecognizers),this._setupDefaultRequireFailure(),this.panRecognizers[n]},e.prototype.disablePanRecognizer=function(e){var t=e.pointers;L()||q()||(e.pointers=1,t=1),this.panRecognizers[t-1]&&(this.ges.remove(this.panRecognizers[t-1].recognizer),this.panRecognizers[t-1]=null)},e.prototype.enablePinchRecognizer=function(){if(this.pinchRecognizer)return this.pinchRecognizer;var e=this.ges.add(new M.Pinch({event:"pinch"}));return this.pinchRecognizer=new V(e),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.pinchRecognizer},e.prototype.disablePinchRecognizer=function(){this.pinchRecognizer&&(this.ges.remove(this.pinchRecognizer.recognizer),this.pinchRecognizer=null)},e.prototype.enableRotateRecognizer=function(){if(this.rotateRecognizer)return this.rotateRecognizer;var e=this.ges.add(new M.Rotate({event:"rotate"}));return this.rotateRecognizer=new V(e),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.rotateRecognizer},e.prototype.disableRotateRecognizer=function(){this.rotateRecognizer&&(this.ges.remove(this.rotateRecognizer.recognizer),this.rotateRecognizer=null)},e.prototype.enablePressRecognizer=function(e){if(this.pressRecognizer)return this.pressRecognizer;var t=this.ges.add(new M.Rotate({event:"press",time:e.duration}));return this.pressRecognizer=new V(t),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.pressRecognizer},e.prototype.disablePressRecognizer=function(){this.pressRecognizer&&(this.ges.remove(this.pressRecognizer.recognizer),this.pressRecognizer=null)},e.prototype.enableSwipeRecognizer=function(e){e||(e={}),e.velocity||(e.velocity=.3),e.distance||(e.distance=10),e.pointers||(e.pointers=1);var t=e.pointers;if(0>t||3<t)throw new Error("bp.Gesture.enableSwipeRecognizer error param pointers, must in [1,3]");if(L()||q()||(e.pointers=1,t=1),this.swipeRecognizers[t-1])return this.swipeRecognizers[t-1].recognizer.set({velocity:e.velocity,threshold:e.distance,pointers:e.pointers}),this.swipeRecognizers[t-1];var n=this.ges.add(new M.Swipe({event:"swipe",velocity:e.velocity,threshold:e.distance,pointers:e.pointers}));return this.swipeRecognizers[t-1]=new V(n),this._concurrenceRecognizers(),this._setupDefaultRequireFailure(),this.swipeRecognizers[t-1]},e.prototype.disableSwipeRecognizer=function(e){e||(e={}),e.pointers||(e.pointers=1);var t=e.pointers;0<t&&4>t&&(!(L()||q())&&(e.pointers=1,t=1),this.swipeRecognizers[t-1]&&(this.ges.remove(this.swipeRecognizers[t-1].recognizer),this.swipeRecognizers[t-1]=null))},e.prototype._concurrenceRecognizers=function(){for(var e=this.panRecognizers.concat(this.tapRecognizers).concat(this.pinchRecognizer).concat(this.pressRecognizer).concat(this.rotateRecognizer).concat(this.swipeRecognizers),t=null,n=0;n<e.length;n++)e[n]&&(t?(t.recognizer.recognizeWith(e[n].recognizer),t=e[n]):t=e[n])},e.prototype._requireFailure=function(e){for(var t=null,n=0;n<e.length;n++)e[n]&&(e[n].recognizer.requireFail=[],t?(t.recognizer.requireFailure(e[n].recognizer),t=e[n]):t=e[n])},e.prototype._setupDefaultRequireFailure=function(){},e}(),j="GlobalIcons",W=function(){return window[j]||(window[j]=new B),window[j]},B=function(){return function(){this.installed=!1,this.icons=new Set,this.icons_svgPath=new Map,this.icons_alias=new Map,this.icons_font=new Map}}();d();var U={list:function(){return W().icons.keys()},registerAliasIcon:function(e,t){if(!W().icons.has(t))throw new Error("icon name `"+t+"` isn't existed!");W().icons.has(e)||W().icons_alias.set(e,t)},registerFontIcon:u,registerSvgIcon:function(e,t){c(e),W().icons.add(e),W().icons_svgPath.set(e,t)},registerDefault:d,getIcon:function(e){var t=W().icons_alias.get(e);if(t&&(e=t),W().icons.has(e)){var n={},o=W().icons_font.get(e);if(o)return n.type="font",n.value=o,n;var i=W().icons_svgPath.get(e);if(i)return n.type="svg",n.value=i,n}return null}};const K={};Object.defineProperty(K,"router",{get(){return E}}),Object.defineProperty(K,"dom",{get(){return x}}),Object.defineProperty(K,"device",{get(){return N}}),Object.defineProperty(K,"icons",{get(){return U}}),Object.defineProperty(K,"registerApp",{get(){return o}}),Object.defineProperty(K,"Timer",{get(){return G}}),Object.defineProperty(K,"Gesture",{get(){return k}});var Z=p(function(e){(function(){function t(){function e(e){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(e)}function t(e,t){this.scrollLeft=e,this.scrollTop=t}function n(e){var t=Math.cos;return .5*(1-t(v*e))}function o(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(e,t){return"Y"===t?e.clientHeight+m<e.scrollHeight:"X"===t?e.clientWidth+m<e.scrollWidth:void 0}function r(e,t){var n=c.getComputedStyle(e,null)["overflow"+t];return"auto"===n||"scroll"===n}function s(e){var t=i(e,"Y")&&r(e,"Y"),n=i(e,"X")&&r(e,"X");return t||n}function a(e){for(;e!==u.body&&!1===s(e);)e=e.parentNode||e.host;return e}function l(e){var t,o,i,r=h(),s=(r-e.startTime)/468;s=1<s?1:s,t=n(s),o=e.startX+(e.x-e.startX)*t,i=e.startY+(e.y-e.startY)*t,e.method.call(e.scrollable,o,i),(o!==e.x||i!==e.y)&&c.requestAnimationFrame(l.bind(c,e))}function p(e,n,o){var i,r,s,a,p=h();e===u.body?(i=c,r=c.scrollX||c.pageXOffset,s=c.scrollY||c.pageYOffset,a=g.scroll):(i=e,r=e.scrollLeft,s=e.scrollTop,a=t),l({scrollable:i,method:a,startTime:p,startX:r,startY:s,x:n,y:o})}var c=window,u=document;if(!("scrollBehavior"in u.documentElement.style&&!0!==c.__forceSmoothScrollPolyfill__)){var d=c.HTMLElement||c.Element,g={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:d.prototype.scroll||t,scrollIntoView:d.prototype.scrollIntoView},h=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,m=e(c.navigator.userAgent)?1:0;c.scroll=c.scrollTo=function(){return void 0===arguments[0]?void 0:!0===o(arguments[0])?void g.scroll.call(c,void 0===arguments[0].left?"object"==typeof arguments[0]?c.scrollX||c.pageXOffset:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?c.scrollY||c.pageYOffset:arguments[1]:arguments[0].top):void p.call(c,u.body,void 0===arguments[0].left?c.scrollX||c.pageXOffset:~~arguments[0].left,void 0===arguments[0].top?c.scrollY||c.pageYOffset:~~arguments[0].top)},c.scrollBy=function(){return void 0===arguments[0]?void 0:o(arguments[0])?void g.scrollBy.call(c,void 0===arguments[0].left?"object"==typeof arguments[0]?0:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?0:arguments[1]:arguments[0].top):void p.call(c,u.body,~~arguments[0].left+(c.scrollX||c.pageXOffset),~~arguments[0].top+(c.scrollY||c.pageYOffset))},d.prototype.scroll=d.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===o(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void g.elementScroll.call(this,void 0===arguments[0].left?"object"==typeof arguments[0]?this.scrollLeft:~~arguments[0]:~~arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?this.scrollTop:~~arguments[1]:~~arguments[0].top)}var e=arguments[0].left,t=arguments[0].top;p.call(this,this,"undefined"==typeof e?this.scrollLeft:~~e,"undefined"==typeof t?this.scrollTop:~~t)}},d.prototype.scrollBy=function(){return void 0===arguments[0]?void 0:!0===o(arguments[0])?void g.elementScroll.call(this,void 0===arguments[0].left?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,void 0===arguments[0].top?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},d.prototype.scrollIntoView=function(){if(!0===o(arguments[0]))return void g.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var e=a(this),t=e.getBoundingClientRect(),n=this.getBoundingClientRect();e===u.body?c.scrollBy({left:n.left,top:n.top,behavior:"smooth"}):(p.call(this,e,e.scrollLeft+n.left-t.left,e.scrollTop+n.top-t.top),"fixed"!==c.getComputedStyle(e).position&&c.scrollBy({left:t.left,top:t.top,behavior:"smooth"}))}}}e.exports={polyfill:t}})()}),J=Z.polyfill,Q=Symbol("s_timer"),ee={name:"bpIcon",props:{name:{type:String,required:!0},width:{type:String,required:!1},height:{type:String,required:!1},color:{type:String,required:!1},event:{validator:function(e){return!e||"string"===typeof e||Array.isArray(e)},default:"click"}},mounted(){},render(e){let t=U.getIcon(this.name);if(!t)return console.log("icon: "+this.name+" isn't registered"),e("i",{class:["bp-icon"],style:{}},this.$slots.default);t=t||{value:""};let n={class:["bp-icon"],style:{}};this.width&&(n.style.width=this.width),this.height&&(n.style.height=this.height),n.style.width&&!n.style.height?n.style.height=n.style.width:!n.style.width&&n.style.height&&(n.style.width=n.style.height);const o=t=>n=>{this.$emit(t,n)},i={};if(Array.isArray(this.event)?this.event.forEach(t=>{i[t]=o(t)}):i[this.event]=o(this.event),n.on=i,"svg"==t.type)return n.style.backgroundImage=`url(${t.value})`,e("i",n,this.$slots.default);else{n.class.push(t.value.className);let o=[];for(let n,r=0;r<t.value.children.length;r++)n={class:[]},n.class=[t.value.children[r]],o.push(e("i",n));return this.$slots.default&&o.push(this.$slots.default),n.style.width&&(n.style.fontSize=n.style.width),this.color&&(n.style.color=this.color),e("i",n,o)}}};let te;return K.VuePlugin=function(){return K.icons.registerDefault(),{install:y()}},K.VueObject={bpIcon:ee},K});

@@ -38,4 +38,4 @@ {

"license": "MIT",
"main": "dist/index.common.min.js",
"module": "dist/index.esm.min.js",
"main": "dist/index.common.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.min.js",

@@ -50,6 +50,6 @@ "types": "types/index.d.ts",

"scripts": {
"prepare": "node ../../scripts/bundle.js"
"prepare": "node ../../scripts/bundle.js && rm -rf dist/style.js*"
},
"name": "@bpui/libs",
"version": "0.2.1"
"version": "0.2.2"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc