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

oribella

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oribella - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

0

dist/amd/doubletap.d.ts

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

1

dist/amd/doubletap.js
define(["require", "exports", "tslib", "oribella-framework", "./tap"], function (require, exports, tslib_1, oribella_framework_1, tap_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DoubletapOptions = (function (_super) {

@@ -4,0 +5,0 @@ tslib_1.__extends(DoubletapOptions, _super);

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

define(["require", "exports", "tslib", "oribella-framework", "./longtap", "./swipe"], function (require, exports, tslib_1, oribella_framework_1, longtap_1, swipe_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LongtapSwipeOptions = (function (_super) {

@@ -4,0 +5,0 @@ tslib_1.__extends(LongtapSwipeOptions, _super);

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

define(["require", "exports", "tslib", "oribella-framework"], function (require, exports, tslib_1, oribella_framework_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LongtapOptions = (function (_super) {

@@ -4,0 +5,0 @@ tslib_1.__extends(LongtapOptions, _super);

@@ -0,0 +0,0 @@ import { OribellaApi } from 'oribella-framework';

@@ -6,2 +6,3 @@ define(["require", "exports", "oribella-framework", "./tap", "./doubletap", "./longtap", "./swipe", "./longtap-swipe", "./rotate", "./pinch", "oribella-framework", "./tap", "./doubletap", "./longtap", "./swipe", "./longtap-swipe", "./rotate", "./pinch"], function (require, exports, oribella_framework_1, tap_1, doubletap_1, longtap_1, swipe_1, longtap_swipe_1, rotate_1, pinch_1, oribella_framework_2, tap_2, doubletap_2, longtap_2, swipe_2, longtap_swipe_2, rotate_2, pinch_2) {

}
Object.defineProperty(exports, "__esModule", { value: true });
__export(oribella_framework_2);

@@ -8,0 +9,0 @@ exports.oribella = new oribella_framework_1.OribellaApi();

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

define(["require", "exports", "tslib", "oribella-framework"], function (require, exports, tslib_1, oribella_framework_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PinchOptions = (function (_super) {

@@ -4,0 +5,0 @@ tslib_1.__extends(PinchOptions, _super);

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

define(["require", "exports", "tslib", "oribella-framework"], function (require, exports, tslib_1, oribella_framework_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var RotateOptions = (function (_super) {

@@ -4,0 +5,0 @@ tslib_1.__extends(RotateOptions, _super);

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

define(["require", "exports", "tslib", "oribella-framework"], function (require, exports, tslib_1, oribella_framework_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Observation = (function () {

@@ -4,0 +5,0 @@ function Observation(point, timeStamp) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

define(["require", "exports", "tslib", "oribella-framework"], function (require, exports, tslib_1, oribella_framework_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TapOptions = (function (_super) {

@@ -4,0 +5,0 @@ tslib_1.__extends(TapOptions, _super);

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi } from 'oribella-framework';

@@ -5,2 +5,3 @@ "use strict";

}
Object.defineProperty(exports, "__esModule", { value: true });
var oribella_framework_1 = require("oribella-framework");

@@ -7,0 +8,0 @@ var tap_1 = require("./tap");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

@@ -3,0 +4,0 @@ var oribella_framework_1 = require("oribella-framework");

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, RETURN_FLAG, Gesture } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, RETURN_FLAG, Gesture } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, RETURN_FLAG, Gesture, Listener, ensureProperties } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, Data, RETURN_FLAG, Gesture, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, Data, RETURN_FLAG, Gesture } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, Data, RETURN_FLAG, Gesture } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ import { Options, RETURN_FLAG, Gesture } from 'oribella-framework';

4

dist/oribella.js

@@ -1,2 +0,2 @@

define("oribella",[],function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=22)}([function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]]);return n}function o(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function s(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function a(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,u)}a((r=r.apply(t,e||[])).next())})}function c(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,u,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function p(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function d(t,e,n){function r(t){return function(e){return new Promise(function(n,r){d.push([t,e,n,r]),i()})}}function i(){!l&&d.length&&o((l=d.shift())[0],l[1])}function o(t,e){try{s(f[t](e))}catch(t){p(l[3],t)}}function s(t){t.done?p(l[2],t):"yield"===t.value[0]?p(l[2],{value:t.value[1],done:!1}):Promise.resolve(t.value[1]).then("delegate"===t.value[0]?u:a,c)}function u(t){s(t.done?t:{value:["yield",t.value],done:!1})}function a(t){o("next",t)}function c(t){o("throw",t)}function p(t,e){l=void 0,t(e),i()}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,h,f=n.apply(t,e||[]),d=[];return h={next:r("next"),throw:r("throw"),return:r("return")},h[Symbol.asyncIterator]=function(){return this},h}function g(t){function e(e,n){return function(r){return{value:["delegate",(t[e]||n).call(t,r)],done:!1}}}var n={next:e("next"),throw:e("throw",function(t){throw t}),return:e("return",function(t){return{value:t,done:!0}})};return t=v(t),n[Symbol.iterator]=function(){return this},n}function v(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof l?l(t):t[Symbol.iterator]()}Object.defineProperty(e,"__esModule",{value:!0}),e.__extends=r,n.d(e,"__assign",function(){return E}),e.__rest=i,e.__decorate=o,e.__param=s,e.__metadata=u,e.__awaiter=a,e.__generator=c,e.__exportStar=p,e.__values=l,e.__read=h,e.__spread=f,e.__asyncGenerator=d,e.__asyncDelegator=g,e.__asyncValues=v;/*! *****************************************************************************
define("oribella",[],function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=22)}([function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]]);return n}function o(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function s(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function a(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,u)}a((r=r.apply(t,e||[])).next())})}function c(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,u,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function p(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function d(t,e,n){function r(t){return function(e){return new Promise(function(n,r){d.push([t,e,n,r]),i()})}}function i(){!l&&d.length&&o((l=d.shift())[0],l[1])}function o(t,e){try{s(f[t](e))}catch(t){p(l[3],t)}}function s(t){t.done?p(l[2],t):"yield"===t.value[0]?p(l[2],{value:t.value[1],done:!1}):Promise.resolve(t.value[1]).then("delegate"===t.value[0]?u:a,c)}function u(t){s(t.done?t:{value:["yield",t.value],done:!1})}function a(t){o("next",t)}function c(t){o("throw",t)}function p(t,e){l=void 0,t(e),i()}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,h,f=n.apply(t,e||[]),d=[];return h={next:r("next"),throw:r("throw"),return:r("return")},h[Symbol.asyncIterator]=function(){return this},h}function v(t){function e(e,n){return function(r){return{value:["delegate",(t[e]||n).call(t,r)],done:!1}}}var n={next:e("next"),throw:e("throw",function(t){throw t}),return:e("return",function(t){return{value:t,done:!0}})};return t=g(t),n[Symbol.iterator]=function(){return this},n}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof l?l(t):t[Symbol.iterator]()}Object.defineProperty(e,"__esModule",{value:!0}),e.__extends=r,n.d(e,"__assign",function(){return _}),e.__rest=i,e.__decorate=o,e.__param=s,e.__metadata=u,e.__awaiter=a,e.__generator=c,e.__exportStar=p,e.__values=l,e.__read=h,e.__spread=f,e.__asyncGenerator=d,e.__asyncDelegator=v,e.__asyncValues=g;/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.

@@ -15,3 +15,3 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use

***************************************************************************** */
var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(8)),r(n(2)),r(n(7)),r(n(18)),r(n(20))},function(t,e,n){"use strict";function r(t,n){return void 0===n&&(n=e.SUPPORTS),!(!n.msPointerEnabled||t.pointerType!==t.MSPOINTER_TYPE_MOUSE)||(!(!n.pointerEnabled||"mouse"!==t.pointerType)||t.type.indexOf("mouse")!==-1)}function i(t,e){var n=t.button,r=t.which,i=r||void 0===n?r:1&n?1:2&n?3:4&n?2:0;return Array.isArray(e)?e.some(function(t){return i===t}):i===e}function o(t,e){return(t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,e)}function s(t,e){for(var n in e)e[n]&&!t[n]&&(t[n]=e[n]);return t}var u=n(0);e.GESTURE_STRATEGY_FLAG={KEEP:0,REMOVE_IF_POINTERS_GT:1},e.RETURN_FLAG={map:function(t){switch(t){case!0:t=this.REMOVE_OTHERS;break;case!1:t=this.REMOVE;break;case 1:case 2:case 4:break;default:t=0}return t},IDLE:0,START_EMITTED:1,REMOVE:2,REMOVE_OTHERS:4,REMOVE_AND_CONTINUE:8,COMPOSE:16},e.SUPPORTS={get touchEnabled(){return"ontouchstart"in window},get pointerEnabled(){return window&&window.navigator.pointerEnabled},get msPointerEnabled(){return window&&window.navigator.msPointerEnabled}},e.isMouse=r,e.isValidMouseButton=i,e.matchesSelector=o;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u.__extends(e,t),e}(Map);e.PointerDataMap=a;var c=function(){function t(){this.pointers=1,this.which=1,this.prio=100,this.strategy=e.GESTURE_STRATEGY_FLAG.KEEP}return t}();e.Options=c;var p=function(){function t(){}return t}();e.Data=p,e.ensureProperties=s},function(t,e,n){"use strict";function r(t){t.registerGesture(a,s,u)}var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radiusThreshold=2,e.timeThreshold=500,e}return i.__extends(e,t),e}(o.Options);e.LongtapOptions=s;var u=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.options=e,r.listener=o.ensureProperties(n,{timeEnd:function(){}}),r}return i.__extends(e,t),e.prototype.timeEnd=function(){return o.RETURN_FLAG.map(this.listener.timeEnd())},e}(o.Listener);e.LongtapListener=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeoutId=0,e.timeEndEmitted=!1,e}return i.__extends(e,t),e.prototype.start=function(t){var e=this,n=t.data.pointers[0].page;return this.startPoint=n,this.timeoutId=window.setTimeout(function(){e.listener.timeEnd(),e.timeEndEmitted=!0},this.listener.options.timeThreshold),this.listener.start(t)},e.prototype.update=function(t){var e=t.data.pointers[0].page;return e.distanceTo(this.startPoint)>this.listener.options.radiusThreshold?o.RETURN_FLAG.REMOVE:o.RETURN_FLAG.IDLE},e.prototype.end=function(t){return window.clearTimeout(this.timeoutId),this.timeEndEmitted?this.listener.end(t):o.RETURN_FLAG.REMOVE},e.prototype.cancel=function(){return window.clearTimeout(this.timeoutId),this.listener.cancel()},e}(o.Gesture);e.Longtap=a,e.registerLongtap=r},function(t,e,n){"use strict";function r(t){t.registerGesture(c,a,void 0,u)}var i=n(0),o=n(1),s=function(){function t(t,e){this.point=t,this.timeStamp=e}return t}();e.Observation=s;var u=function(t){function e(e){void 0===e&&(e=5);var n=t.call(this)||this;return n.maxObservations=e,n.timeSeries=[],n}return i.__extends(e,t),e.prototype.add=function(t,e){this.timeSeries.length===this.maxObservations&&this.timeSeries.shift(),this.timeSeries.push(new s(t,e))},e}(o.Data);e.SwipeData=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radiusThreshold=2,e}return i.__extends(e,t),e}(o.Options);e.SwipeOptions=a;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.start=function(t){var e=t.data,n=t.evt,r=e.pointers[0].page;return this.startPoint=r,e.add(this.startPoint,n.timeStamp),this.listener.down(this.args)},e.prototype.update=function(t){var e=t.data,n=t.evt,r=e.pointers[0].page;return r.distanceTo(this.startPoint)<this.listener.options.radiusThreshold?o.RETURN_FLAG.IDLE:(e.add(r,n.timeStamp),this.startEmitted?this.listener.update(t):this.listener.start(t))},e.prototype.end=function(t){var e=t.data,n=t.evt,r=e.pointers[0].page;return e.add(r,n.timeStamp),this.listener.end(t)},e}(o.Gesture);e.Swipe=c,e.registerSwipe=r},function(t,e,n){"use strict";function r(t){t.registerGesture(u,s)}var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radiusThreshold=2,e}return i.__extends(e,t),e}(o.Options);e.TapOptions=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.start=function(t){var e=t.data.pointers[0].page;return this.startPoint=e,this.listener.start(t)},e.prototype.update=function(t){var e=t.data.pointers[0].page;return e.distanceTo(this.startPoint)>this.listener.options.radiusThreshold?o.RETURN_FLAG.REMOVE:o.RETURN_FLAG.IDLE},e.prototype.end=function(t){return this.listener.end(t)},e}(o.Gesture);e.Tap=u,e.registerTap=r},function(t,e,n){"use strict";var r=n(0),i=function(){function t(){this.listenerMap=new Map}return t.prototype.on=function(t,e){var n=this.listenerMap.get(t)||[];return n.push(e),this.listenerMap.set(t,n),this},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.listenerMap.get(t)||[];return r.forEach(function(t){return t.apply(null,e)}),!0},t}();e.EventEmitter=i;var o=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.events=t}return t.prototype.getEvents=function(){return this.events},t}();e.EventConfig=o;var s=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r.startListen=[],r.continueListen=[],r.removeListeners=[],r.allPointers=new Map,r.changedPointers=new Map,r.pointers={all:r.allPointers,changed:r.changedPointers},r.config=n,r}return r.__extends(e,t),e.prototype.proxy=function(t,e){this.setPointers(e),t(e)},e.prototype.addDOMEventListener=function(t,e,n){var r=this.proxy.bind(this,n);return t.addEventListener(e,r,!1),this.removeDOMEventListener.bind(this,t,e,r)},e.prototype.removeDOMEventListener=function(t,e,n){t.removeEventListener(e,n,!1)},e.prototype.bind=function(t){var e=this;return this.startListen=t.start.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.start.bind(e))}),this.continueListen=t.update.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.update.bind(e))}),this.continueListen.push.apply(this.continueListen,t.end.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.end.bind(e))})),this.continueListen.push.apply(this.continueListen,t.cancel.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.cancel.bind(e))})),{startListen:this.startListen,continueListen:this.continueListen}},e.prototype.activate=function(){return this.bind(this.config).startListen.map(function(t){return t()})},e.prototype.setPointers=function(t){},e.prototype.start=function(t){this.emit("start",t,this.pointers)},e.prototype.update=function(t){this.emit("update",t,this.pointers)},e.prototype.end=function(t){this.emit("end",t,this.pointers),0===this.allPointers.size&&this.stop()},e.prototype.cancel=function(t){this.emit("cancel",t,this.pointers),this.stop()},e.prototype.continue=function(){this.removeListeners=this.continueListen.map(function(t){return t()})},e.prototype.stop=function(){this.removeListeners.forEach(function(t){return t()}),this.removeListeners=[],this.emit("stop")},e}(i);e.Flow=s},function(t,e,n){"use strict";var r=n(0),i=n(2),o=function(){function t(){}return t}();e.ListenerArgs=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(o);e.DefaultListenerArgs=s;var u=function(){function t(t,e){void 0===e&&(e={}),this.options=t,this.selector="",this.listener=i.ensureProperties(e,{selector:"",down:function(t){},start:function(t){},update:function(t){},end:function(t){},cancel:function(){},stop:function(){}})}return t.prototype.down=function(t){return i.RETURN_FLAG.map(this.listener.down(t))},t.prototype.start=function(t){var e=i.RETURN_FLAG.map(this.listener.start(t));return e&i.RETURN_FLAG.START_EMITTED||(e+=i.RETURN_FLAG.START_EMITTED),e},t.prototype.update=function(t){return i.RETURN_FLAG.map(this.listener.update(t))},t.prototype.end=function(t){return i.RETURN_FLAG.map(this.listener.end(t))},t.prototype.cancel=function(){return i.RETURN_FLAG.map(this.listener.cancel())},t.prototype.stop=function(){this.listener.stop()},t}();e.Listener=u;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(u);e.DefaultListener=a},function(t,e,n){"use strict";var r=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.distanceTo=function(t){var e=this.x-t.x,n=this.y-t.y,r=Math.sqrt(e*e+n*n);return r},t.prototype.deltaAngleTo=function(t){var e=t.x-this.x,n=t.y-this.y,r=Math.atan2(n,e),i=180*r/Math.PI;return i},t.prototype.clone=function(){return new t(this.x,this.y)},t}();e.Point=r},function(t,e,n){"use strict";function r(t){t.registerGesture(a,u)}var i=n(0),o=n(1),s=n(5),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeThreshold=250,e}return i.__extends(e,t),e}(o.Options);e.DoubletapOptions=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeoutId=0,e.count=0,e}return i.__extends(e,t),e.prototype.bind=function(t,e,n){this.unregisterTap=e(s.Tap,t,{selector:this.listener.selector,options:this.listener.options,end:this.tapEnd.bind(this)}),this.remove=n},e.prototype.unbind=function(){return this.count>1?(this.unregisterTap(),o.RETURN_FLAG.REMOVE):o.RETURN_FLAG.COMPOSE},e.prototype.tapEnd=function(t){var e=this;if(++this.count,1===this.count)this.timeoutId=window.setTimeout(function(){e.remove(),e.unregisterTap()},this.listener.options.timeThreshold);else if(2===this.count)return window.clearTimeout(this.timeoutId),this.listener.end(t);return o.RETURN_FLAG.IDLE},e}(o.Gesture);e.Doubletap=a,e.registerDoubletap=r},function(t,e,n){"use strict";function r(t){t.registerGesture(c,a)}var i=n(0),o=n(1),s=n(3),u=n(4),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeThreshold=500,e}return i.__extends(e,t),e}(o.Options);e.LongtapSwipeOptions=a;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allowSwipe=!1,e}return i.__extends(e,t),e.prototype.bind=function(t,e,n){var r=this;this.unregisterLongtap=e(s.Longtap,t,{selector:this.listener.selector,options:this.listener.options,down:function(){return r.longtapDown()},timeEnd:function(){return r.longtapTimeEnd()}}),this.unregisterSwipe=e(u.Swipe,t,{selector:this.listener.selector,options:this.listener.options,down:function(t){return r.swipeDown(t)},start:function(t){return r.swipeStart(t)},update:function(t){return r.swipeUpdate(t)},end:function(t){return r.swipeEnd(t)},cancel:function(){return r.swipeCancel()}}),this.remove=n},e.prototype.start=function(t){return o.RETURN_FLAG.IDLE},e.prototype.update=function(t){return o.RETURN_FLAG.IDLE},e.prototype.end=function(t){return o.RETURN_FLAG.IDLE},e.prototype.cancel=function(){return o.RETURN_FLAG.IDLE},e.prototype.longtapDown=function(){return this.allowSwipe=!1,o.RETURN_FLAG.IDLE},e.prototype.longtapTimeEnd=function(){return this.allowSwipe=!0,o.RETURN_FLAG.IDLE},e.prototype.swipeDown=function(t){return this.listener.down(t)},e.prototype.swipeStart=function(t){return this.allowSwipe?this.listener.start(t):(this.remove(),o.RETURN_FLAG.REMOVE)},e.prototype.swipeUpdate=function(t){return this.listener.update(t)},e.prototype.swipeEnd=function(t){return this.listener.end(t)},e.prototype.swipeCancel=function(){return this.listener.cancel()},e}(o.Gesture);e.LongtapSwipe=c,e.registerLongtapSwipe=r},function(t,e,n){"use strict";function r(t){t.registerGesture(a,s,void 0,u)}var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pointers=2,e.pinchThreshold=10,e}return i.__extends(e,t),e}(o.Options);e.PinchOptions=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.distance=0,e.scale=0,e.delta=0,e.centerPoint=new o.Point(0,0),e}return i.__extends(e,t),e}(o.Data);e.PinchData=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startDistance=0,e}return i.__extends(e,t),e.prototype.calculateDistance=function(t,e){return e.distanceTo(t)},e.prototype.calculateStartDistance=function(){return this.startDistance||(this.startDistance=this.calculateDistance(this.startPoint0,this.startPoint1))},e.prototype.calculateCurrentDistance=function(){return this.calculateDistance(this.currentPoint0,this.currentPoint1)},e.prototype.setData=function(t){this.currentPoint0=t.pointers[0].page,this.currentPoint1=t.pointers[1].page;var e=this.calculateStartDistance(),n=this.calculateCurrentDistance(),r=Math.abs(e-n);t.distance=r,t.scale=n/e,t.delta=n-e,t.centerPoint.x=(this.currentPoint0.x+this.currentPoint1.x)/2,t.centerPoint.y=(this.currentPoint0.y+this.currentPoint1.y)/2},e.prototype.start=function(t){var e=t.data.pointers,n=e[0].page,r=e[1].page;return this.startPoint0=n,this.startPoint1=r,this.listener.down(t)},e.prototype.update=function(t){var e=t.data;return this.setData(e),Math.abs(e.distance)<this.listener.options.pinchThreshold?o.RETURN_FLAG.IDLE:this.startEmitted?this.listener.update(t):this.listener.start(t)},e.prototype.end=function(t){return this.listener.end(t)},e}(o.Gesture);e.Pinch=a,e.registerPinch=r},function(t,e,n){"use strict";function r(t){t.registerGesture(a,s,void 0,u)}var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pointers=2,e.rotationThreshold=10,e}return i.__extends(e,t),e}(o.Options);e.RotateOptions=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rotation=0,e}return i.__extends(e,t),e}(o.Data);e.RotateData=u;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.calculateRotation=function(t,e,n,r){var i=t.deltaAngleTo(e),o=n.deltaAngleTo(r);return o-i},e.prototype.setData=function(t){this.currentPoint0=t.pointers[0].page,this.currentPoint1=t.pointers[1].page,t.rotation=this.calculateRotation(this.startPoint0,this.startPoint1,this.currentPoint0,this.currentPoint1)},e.prototype.start=function(t){var e=t.data.pointers,n=e[0].page,r=e[1].page;return this.startPoint0=n,this.startPoint1=r,this.listener.down(t)},e.prototype.update=function(t){var e=t.data;return this.setData(e),Math.abs(e.rotation)<this.listener.options.rotationThreshold?o.RETURN_FLAG.IDLE:this.startEmitted?this.listener.update(t):this.listener.start(t)},e.prototype.end=function(t){return this.listener.end(t)},e}(o.Gesture);e.Rotate=a,e.registerRotate=r},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(8);e.PointerConfig={start:new i.EventConfig("pointerdown"),update:new i.EventConfig("pointermove"),end:new i.EventConfig("pointerup"),cancel:new i.EventConfig("pointercancel","dragstart")};var s=function(t){function n(n,r){return void 0===r&&(r=e.PointerConfig),t.call(this,n,r)||this}return r.__extends(n,t),n.prototype.setPointers=function(t){this.changedPointers.clear();var e=new o.Point(t.pageX,t.pageY),n=new o.Point(t.clientX,t.clientY),r=t.pointerId,i={page:e,client:n};switch(this.changedPointers.set(r,i),t.type){case"pointerdown":case"pointermove":this.allPointers.set(r,i);break;default:this.allPointers.delete(r)}},n}(i.Flow);e.PointerFlow=s},function(t,e,n){"use strict";var r=n(21),i=n(7),o=n(2),s=n(19),u=function(){function t(t,e){void 0===e&&(e=new r.Registry),this.element=t,this.registry=e,this.flows=[],this.activeFlow=null,this.handles=[],this.gestures=[],this.composedGestures=[]}return t.prototype.registerGesture=function(t,e,n,r){void 0===e&&(e=o.Options),void 0===n&&(n=i.Listener),void 0===r&&(r=o.Data),this.registry.register(t,e,n,r)},t.prototype.registerFlow=function(t){var e=this;this.flows.push(t),t.on("start",function(n,r){return e.onStart(t,n,r)}),t.on("update",function(n,r){return e.onUpdate(t,n,r)}),t.on("end",function(n,r){return e.onEnd(t,n,r)}),t.on("cancel",function(n,r){return e.onCancel(t,n,r)}),t.on("stop",function(){return e.onStop()})},t.prototype.registerListener=function(t,e,n){var r=this,i=new s.ListenerHandle(t,e,n);return this.handles.push(i),function(){var t=r.handles.indexOf(i);t!==-1&&r.handles.splice(t,1)}},t.prototype.activate=function(){return this.flows.map(function(t){return t.activate()})},t.prototype.canActivateFlow=function(t){return null===this.activeFlow||this.activeFlow===t},t.prototype.getPointersDelta=function(t,e,n,r){if(o.isMouse(t)&&!o.isValidMouseButton(t,r))return{all:-1,changed:-1};var i=e.all.size-n,s=e.changed.size-n;return{all:i,changed:s}},t.prototype.removeGesture=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.startEmitted&&t.cancel(),t.unbind();for(var r;r=e.shift();){var i=r.indexOf(t);i!==-1&&r.splice(i,1)}},t.prototype.evaluateStrategyReturnFlag=function(t,e){if(e&o.RETURN_FLAG.START_EMITTED&&(t.startEmitted=!0),e&o.RETURN_FLAG.REMOVE&&this.removeGesture(t,this.gestures,this.composedGestures),e&o.RETURN_FLAG.REMOVE_OTHERS)for(var n=this.gestures.slice(),r=void 0;r=n.shift();)t!==r&&this.removeGesture(r,this.gestures,this.composedGestures)},t.prototype.whileGestures=function(t,e,n,r){for(var i;i=e.shift();){var s=i.listener.options,u=s.pointers,a=s.which,c=s.strategy,p=this.getPointersDelta(t,n,u,a);if(p.all>0&&c===o.GESTURE_STRATEGY_FLAG.REMOVE_IF_POINTERS_GT)this.removeGesture(i,this.gestures,this.composedGestures);else{var l=r({evt:t,gestures:e,gesture:i,pointers:n,pointersDelta:p});this.evaluateStrategyReturnFlag(i,l)}}},t.prototype.addPointerId=function(t,e){t.__POINTERIDS__.push(e)},t.prototype.removePointerIds=function(t,e,n){for(var r,i=this.getPointerIds(e);r=n.shift();){var o=i.indexOf(r);if(o!==-1){var s=i.splice(o,1)[0],u=this.getPointer(t,s);e.__REMOVED_POINTERS__.push(u)}}},t.prototype.getPointerIds=function(t){return t.__POINTERIDS__},t.prototype.getRemovedPointers=function(t){return t.__REMOVED_POINTERS__},t.prototype.getPointer=function(t,e){return t.get(e)},t.prototype.getPointers=function(t,e){var n=this;return e.map(function(e){return n.getPointer(t,e)})},t.prototype.isLockedPointers=function(t,e){var n=this.getPointerIds(t);return n.filter(function(t){return e.has(t)}).length===e.size},t.prototype.startStrategy=function(t){var e=this;return 0!==t.pointersDelta.all?o.RETURN_FLAG.IDLE:(t.pointers.all.forEach(function(n,r){return e.addPointerId(t.gesture,r)}),t.gesture.args.data.pointers=this.getPointers(t.pointers.all,this.getPointerIds(t.gesture)),t.gesture.args.evt=t.evt,t.gesture.start(t.gesture.args))},t.prototype.updateStrategy=function(t){return this.isLockedPointers(t.gesture,t.pointers.all)?(t.gesture.args.data.pointers=this.getPointers(t.pointers.all,this.getPointerIds(t.gesture)),t.gesture.args.evt=t.evt,t.gesture.update(t.gesture.args)):o.RETURN_FLAG.IDLE},t.prototype.endStrategy=function(t){return t.gesture.startEmitted?(this.removePointerIds(t.pointers.changed,t.gesture,Array.from(t.pointers.changed.keys())),0!==this.getPointerIds(t.gesture).length?o.RETURN_FLAG.IDLE:(t.gesture.args.data.pointers=this.getRemovedPointers(t.gesture),t.gesture.args.evt=t.evt,t.gesture.end(t.gesture.args))):(t.gesture.stop(),o.RETURN_FLAG.REMOVE)},t.prototype.cancelStrategy=function(t){return t.gesture.cancel()},t.prototype.onStart=function(t,e,n){return!!this.canActivateFlow(t)&&(this.activeFlow=t,this.activeFlow.continue(),this.gestures=this.gestures.concat(this.match(e.target,e)).sort(function(t,e){return t.listener.options.prio-e.listener.options.prio}),!!this.gestures.length&&(this.whileGestures(e,this.gestures.slice(),n,this.startStrategy.bind(this)),!0))},t.prototype.onUpdate=function(t,e,n){this.activeFlow===t&&this.whileGestures(e,this.gestures.slice(),n,this.updateStrategy.bind(this))},t.prototype.onEnd=function(t,e,n){this.activeFlow===t&&this.whileGestures(e,this.gestures.slice(),n,this.endStrategy.bind(this))},t.prototype.onCancel=function(t,e,n){this.activeFlow===t&&this.whileGestures(e,this.gestures.slice(),n,this.cancelStrategy.bind(this))},t.prototype.onStop=function(){for(var t,e=this.gestures.slice();t=e.shift();)o.RETURN_FLAG.COMPOSE===t.unbind()?this.composedGestures.push(t):t.stop();this.gestures.length=0,this.activeFlow=null},t.prototype.addGesture=function(t,e,n,r){var i=this.registry.create(t,e,n.listener);return i.bind(n.element,this.registerListener.bind(this),this.removeGesture.bind(this,i,this.gestures,this.composedGestures),r),i},t.prototype.composeGesture=function(t,e,n,r){for(var i;(i=this.composedGestures.shift())&&i.listener!==n.listener;);return i||(i=this.addGesture(t,e,n,r)),i},t.prototype.matchesHandle=function(t,e){var n=e.element,r=e.listener.selector;return!!n.contains(t)&&((!r||n!==t)&&(!(r&&!o.matchesSelector(t,r))&&!(!r&&t!==n)))},t.prototype.matchHandle=function(t,e,n,r){if(this.matchesHandle(e,n))return this.composeGesture(t,e,n,r)},t.prototype.matchHandles=function(t,e,n){for(var r=0,i=this.handles;r<i.length;r++){var o=i[r],s=this.matchHandle(o.Type,t,o,n);s&&e.push(s)}return e},t.prototype.match=function(t,e){for(var n=[],r=t;r&&1===r.nodeType&&r!==this.element;r=r.parentNode)this.matchHandles(r,n,e);return n},t}();e.Engine=u},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(8);e.MouseConfig={start:new i.EventConfig("mousedown"),update:new i.EventConfig("mousemove"),end:new i.EventConfig("mouseup"),cancel:new i.EventConfig("dragstart")};var s=function(t){function n(n){return t.call(this,n,e.MouseConfig)||this}return r.__extends(n,t),n.prototype.setPointers=function(t){var e=new o.Point(t.pageX,t.pageY),n=new o.Point(t.clientX,t.clientY);switch(this.changedPointers.set(1,{page:e,client:n}),t.type){case"mousedown":case"mousemove":this.allPointers.set(1,{page:e,client:n});break;default:this.allPointers.clear()}},n}(i.Flow);e.MouseFlow=s},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(13);e.MSPointerConfig={start:new i.EventConfig("MSPointerDown"),update:new i.EventConfig("MSPointerMove"),end:new i.EventConfig("MSPointerUp"),cancel:new i.EventConfig("MSPointerCancel","dragstart")};var s=function(t){function n(n){return t.call(this,n,e.MSPointerConfig)||this}return r.__extends(n,t),n}(o.PointerFlow);e.MSPointerFlow=s},function(t,e,n){"use strict";var r=n(0),i=n(6),o=n(8);e.TouchConfig={start:new i.EventConfig("touchstart"),update:new i.EventConfig("touchmove"),end:new i.EventConfig("touchend"),cancel:new i.EventConfig("touchcancel","dragstart")};var s=function(t){function n(n){return t.call(this,n,e.TouchConfig)||this}return r.__extends(n,t),n.prototype.setPointerMapFromList=function(t,e){var n,r=t.length;for(n=0;n<r;++n){var i=t[n],s=new o.Point(i.pageX,i.pageY),u=new o.Point(i.clientX,i.clientY),a=i.identifier,c={page:s,client:u};e.set(a,c)}},n.prototype.setPointers=function(t){this.allPointers.clear(),this.changedPointers.clear(),this.setPointerMapFromList(t.touches,this.allPointers),this.setPointerMapFromList(t.changedTouches,this.changedPointers)},n}(i.Flow);e.TouchFlow=s},function(t,e,n){"use strict";var r=n(0),i=n(2),o=function(){function t(t,e,n){this.listener=t,this.data=e,this.target=n,this.__POINTERIDS__=[],this.__REMOVED_POINTERS__=[],this.startEmitted=!1,this.args={},this.args.data=e,this.args.target=n}return t.prototype.bind=function(){},t.prototype.unbind=function(){return i.RETURN_FLAG.IDLE},t.prototype.start=function(){return i.RETURN_FLAG.IDLE},t.prototype.update=function(){return i.RETURN_FLAG.IDLE},t.prototype.end=function(){return i.RETURN_FLAG.IDLE},t.prototype.cancel=function(){return this.listener.cancel()},t.prototype.stop=function(){this.listener.stop()},t}();e.Gesture=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(o);e.DefaultGesture=s},function(t,e,n){"use strict";var r=function(){function t(t,e,n){this.Type=t,this.element=e,this.listener=n}return t}();e.ListenerHandle=r},function(t,e,n){"use strict";var r=n(14),i=n(16),o=n(13),s=n(17),u=n(15),a=n(7),c=n(2),p=function(){function t(t){void 0===t&&(t=window&&window.document),this.element=t,this.deactivateFlows=null,this.engine=new r.Engine(this.element)}return t.prototype.registerDefaultFlowStrategy=function(t){void 0===t&&(t=c.SUPPORTS),t.msPointerEnabled&&this.engine.registerFlow(new i.MSPointerFlow(this.element)),t.pointerEnabled&&this.engine.registerFlow(new o.PointerFlow(this.element)),t.touchEnabled&&this.engine.registerFlow(new s.TouchFlow(this.element)),this.engine.registerFlow(new u.MouseFlow(this.element))},t.prototype.registerGesture=function(t,e,n,r){void 0===e&&(e=c.Options),void 0===n&&(n=a.Listener),void 0===r&&(r=c.Data),this.engine.registerGesture(t,e,n,r)},t.prototype.activate=function(){this.deactivateFlows=this.engine.activate()},t.prototype.deactivate=function(){this.deactivateFlows&&(this.deactivateFlows.forEach(function(t){return t.forEach(function(t){return t()})}),this.deactivateFlows=null)},t.prototype.on=function(t,e,n){return this.engine.registerListener(t,e,n)},t}();e.OribellaApi=p},function(t,e,n){"use strict";var r=n(7),i=n(2),o=function(){function t(){this.gestures=new Map}return t.prototype.register=function(t,e,n,o){void 0===e&&(e=i.Options),void 0===n&&(n=r.Listener),void 0===o&&(o=i.Data),this.gestures.set(t,{Gesture:t,GestureOptions:e,GestureListener:n,GestureData:o})},t.prototype.getTypes=function(){return Array.from(this.gestures.keys())},t.prototype.create=function(t,e,n){var r=this.gestures.get(t);if(!r)throw new Error("The type "+typeof t+" has not been registered");var i=Object.assign(new r.GestureOptions,n.options);return new r.Gesture(new r.GestureListener(i,n),new r.GestureData,e)},t}();e.Registry=o},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=n(1),o=n(5),s=n(9),u=n(3),a=n(4),c=n(10),p=n(12),l=n(11);r(n(1)),e.oribella=new i.OribellaApi,r(n(5)),r(n(9)),r(n(3)),r(n(4)),r(n(10)),r(n(12)),r(n(11)),e.oribella.registerDefaultFlowStrategy(),e.oribella.activate(),o.registerTap(e.oribella),s.registerDoubletap(e.oribella),u.registerLongtap(e.oribella),a.registerSwipe(e.oribella),c.registerLongtapSwipe(e.oribella),p.registerRotate(e.oribella),l.registerPinch(e.oribella)}])});
var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(8)),r(n(2)),r(n(7)),r(n(18)),r(n(20))},function(t,e,n){"use strict";function r(t,n){return void 0===n&&(n=e.SUPPORTS),!(!n.msPointerEnabled||t.pointerType!==t.MSPOINTER_TYPE_MOUSE)||(!(!n.pointerEnabled||"mouse"!==t.pointerType)||t.type.indexOf("mouse")!==-1)}function i(t,e){var n=t.button,r=t.which,i=r||void 0===n?r:1&n?1:2&n?3:4&n?2:0;return Array.isArray(e)?e.some(function(t){return i===t}):i===e}function o(t,e){return(t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,e)}function s(t,e){for(var n in e)e[n]&&!t[n]&&(t[n]=e[n]);return t}Object.defineProperty(e,"__esModule",{value:!0});var u=n(0);e.GESTURE_STRATEGY_FLAG={KEEP:0,REMOVE_IF_POINTERS_GT:1},e.RETURN_FLAG={map:function(t){switch(t){case!0:t=this.REMOVE_OTHERS;break;case!1:t=this.REMOVE;break;case 1:case 2:case 4:break;default:t=0}return t},IDLE:0,START_EMITTED:1,REMOVE:2,REMOVE_OTHERS:4,REMOVE_AND_CONTINUE:8,COMPOSE:16},e.SUPPORTS={get touchEnabled(){return"ontouchstart"in window},get pointerEnabled(){return window&&window.navigator.pointerEnabled},get msPointerEnabled(){return window&&window.navigator.msPointerEnabled}},e.isMouse=r,e.isValidMouseButton=i,e.matchesSelector=o;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u.__extends(e,t),e}(Map);e.PointerDataMap=a;var c=function(){function t(){this.pointers=1,this.which=1,this.prio=100,this.strategy=e.GESTURE_STRATEGY_FLAG.KEEP}return t}();e.Options=c;var p=function(){function t(){}return t}();e.Data=p,e.ensureProperties=s},function(t,e,n){"use strict";function r(t){t.registerGesture(a,s,u)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radiusThreshold=2,e.timeThreshold=500,e}return i.__extends(e,t),e}(o.Options);e.LongtapOptions=s;var u=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.options=e,r.listener=o.ensureProperties(n,{timeEnd:function(){}}),r}return i.__extends(e,t),e.prototype.timeEnd=function(){return o.RETURN_FLAG.map(this.listener.timeEnd())},e}(o.Listener);e.LongtapListener=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeoutId=0,e.timeEndEmitted=!1,e}return i.__extends(e,t),e.prototype.start=function(t){var e=this,n=t.data.pointers[0].page;return this.startPoint=n,this.timeoutId=window.setTimeout(function(){e.listener.timeEnd(),e.timeEndEmitted=!0},this.listener.options.timeThreshold),this.listener.start(t)},e.prototype.update=function(t){return t.data.pointers[0].page.distanceTo(this.startPoint)>this.listener.options.radiusThreshold?o.RETURN_FLAG.REMOVE:o.RETURN_FLAG.IDLE},e.prototype.end=function(t){return window.clearTimeout(this.timeoutId),this.timeEndEmitted?this.listener.end(t):o.RETURN_FLAG.REMOVE},e.prototype.cancel=function(){return window.clearTimeout(this.timeoutId),this.listener.cancel()},e}(o.Gesture);e.Longtap=a,e.registerLongtap=r},function(t,e,n){"use strict";function r(t){t.registerGesture(c,a,void 0,u)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=function(){function t(t,e){this.point=t,this.timeStamp=e}return t}();e.Observation=s;var u=function(t){function e(e){void 0===e&&(e=5);var n=t.call(this)||this;return n.maxObservations=e,n.timeSeries=[],n}return i.__extends(e,t),e.prototype.add=function(t,e){this.timeSeries.length===this.maxObservations&&this.timeSeries.shift(),this.timeSeries.push(new s(t,e))},e}(o.Data);e.SwipeData=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radiusThreshold=2,e}return i.__extends(e,t),e}(o.Options);e.SwipeOptions=a;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.start=function(t){var e=t.data,n=t.evt,r=e.pointers[0].page;return this.startPoint=r,e.add(this.startPoint,n.timeStamp),this.listener.down(this.args)},e.prototype.update=function(t){var e=t.data,n=t.evt,r=e.pointers[0].page;return r.distanceTo(this.startPoint)<this.listener.options.radiusThreshold?o.RETURN_FLAG.IDLE:(e.add(r,n.timeStamp),this.startEmitted?this.listener.update(t):this.listener.start(t))},e.prototype.end=function(t){var e=t.data,n=t.evt,r=e.pointers[0].page;return e.add(r,n.timeStamp),this.listener.end(t)},e}(o.Gesture);e.Swipe=c,e.registerSwipe=r},function(t,e,n){"use strict";function r(t){t.registerGesture(u,s)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radiusThreshold=2,e}return i.__extends(e,t),e}(o.Options);e.TapOptions=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.start=function(t){var e=t.data.pointers[0].page;return this.startPoint=e,this.listener.start(t)},e.prototype.update=function(t){return t.data.pointers[0].page.distanceTo(this.startPoint)>this.listener.options.radiusThreshold?o.RETURN_FLAG.REMOVE:o.RETURN_FLAG.IDLE},e.prototype.end=function(t){return this.listener.end(t)},e}(o.Gesture);e.Tap=u,e.registerTap=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(){this.listenerMap=new Map}return t.prototype.on=function(t,e){var n=this.listenerMap.get(t)||[];return n.push(e),this.listenerMap.set(t,n),this},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return(this.listenerMap.get(t)||[]).forEach(function(t){return t.apply(null,e)}),!0},t}();e.EventEmitter=i;var o=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.events=t}return t.prototype.getEvents=function(){return this.events},t}();e.EventConfig=o;var s=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r.startListen=[],r.continueListen=[],r.removeListeners=[],r.allPointers=new Map,r.changedPointers=new Map,r.pointers={all:r.allPointers,changed:r.changedPointers},r.config=n,r}return r.__extends(e,t),e.prototype.proxy=function(t,e){this.setPointers(e),t(e)},e.prototype.addDOMEventListener=function(t,e,n){var r=this.proxy.bind(this,n);return t.addEventListener(e,r,!1),this.removeDOMEventListener.bind(this,t,e,r)},e.prototype.removeDOMEventListener=function(t,e,n){t.removeEventListener(e,n,!1)},e.prototype.bind=function(t){var e=this;return this.startListen=t.start.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.start.bind(e))}),this.continueListen=t.update.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.update.bind(e))}),this.continueListen.push.apply(this.continueListen,t.end.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.end.bind(e))})),this.continueListen.push.apply(this.continueListen,t.cancel.getEvents().map(function(t){return e.addDOMEventListener.bind(e,e.element,t,e.cancel.bind(e))})),{startListen:this.startListen,continueListen:this.continueListen}},e.prototype.activate=function(){return this.bind(this.config).startListen.map(function(t){return t()})},e.prototype.setPointers=function(t){},e.prototype.start=function(t){this.emit("start",t,this.pointers)},e.prototype.update=function(t){this.emit("update",t,this.pointers)},e.prototype.end=function(t){this.emit("end",t,this.pointers),0===this.allPointers.size&&this.stop()},e.prototype.cancel=function(t){this.emit("cancel",t,this.pointers),this.stop()},e.prototype.continue=function(){this.removeListeners=this.continueListen.map(function(t){return t()})},e.prototype.stop=function(){this.removeListeners.forEach(function(t){return t()}),this.removeListeners=[],this.emit("stop")},e}(i);e.Flow=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),o=function(){function t(){}return t}();e.ListenerArgs=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(o);e.DefaultListenerArgs=s;var u=function(){function t(t,e){void 0===e&&(e={}),this.options=t,this.selector="",this.listener=i.ensureProperties(e,{selector:"",down:function(t){},start:function(t){},update:function(t){},end:function(t){},cancel:function(){},stop:function(){}})}return t.prototype.down=function(t){return i.RETURN_FLAG.map(this.listener.down(t))},t.prototype.start=function(t){var e=i.RETURN_FLAG.map(this.listener.start(t));return e&i.RETURN_FLAG.START_EMITTED||(e+=i.RETURN_FLAG.START_EMITTED),e},t.prototype.update=function(t){return i.RETURN_FLAG.map(this.listener.update(t))},t.prototype.end=function(t){return i.RETURN_FLAG.map(this.listener.end(t))},t.prototype.cancel=function(){return i.RETURN_FLAG.map(this.listener.cancel())},t.prototype.stop=function(){this.listener.stop()},t}();e.Listener=u;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(u);e.DefaultListener=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.distanceTo=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.deltaAngleTo=function(t){var e=t.x-this.x,n=t.y-this.y;return 180*Math.atan2(n,e)/Math.PI},t.prototype.clone=function(){return new t(this.x,this.y)},t}();e.Point=r},function(t,e,n){"use strict";function r(t){t.registerGesture(a,u)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=n(5),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeThreshold=250,e}return i.__extends(e,t),e}(o.Options);e.DoubletapOptions=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeoutId=0,e.count=0,e}return i.__extends(e,t),e.prototype.bind=function(t,e,n){this.unregisterTap=e(s.Tap,t,{selector:this.listener.selector,options:this.listener.options,end:this.tapEnd.bind(this)}),this.remove=n},e.prototype.unbind=function(){return this.count>1?(this.unregisterTap(),o.RETURN_FLAG.REMOVE):o.RETURN_FLAG.COMPOSE},e.prototype.tapEnd=function(t){var e=this;if(++this.count,1===this.count)this.timeoutId=window.setTimeout(function(){e.remove(),e.unregisterTap()},this.listener.options.timeThreshold);else if(2===this.count)return window.clearTimeout(this.timeoutId),this.listener.end(t);return o.RETURN_FLAG.IDLE},e}(o.Gesture);e.Doubletap=a,e.registerDoubletap=r},function(t,e,n){"use strict";function r(t){t.registerGesture(c,a)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=n(3),u=n(4),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeThreshold=500,e}return i.__extends(e,t),e}(o.Options);e.LongtapSwipeOptions=a;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allowSwipe=!1,e}return i.__extends(e,t),e.prototype.bind=function(t,e,n){var r=this;this.unregisterLongtap=e(s.Longtap,t,{selector:this.listener.selector,options:this.listener.options,down:function(){return r.longtapDown()},timeEnd:function(){return r.longtapTimeEnd()}}),this.unregisterSwipe=e(u.Swipe,t,{selector:this.listener.selector,options:this.listener.options,down:function(t){return r.swipeDown(t)},start:function(t){return r.swipeStart(t)},update:function(t){return r.swipeUpdate(t)},end:function(t){return r.swipeEnd(t)},cancel:function(){return r.swipeCancel()}}),this.remove=n},e.prototype.start=function(t){return o.RETURN_FLAG.IDLE},e.prototype.update=function(t){return o.RETURN_FLAG.IDLE},e.prototype.end=function(t){return o.RETURN_FLAG.IDLE},e.prototype.cancel=function(){return o.RETURN_FLAG.IDLE},e.prototype.longtapDown=function(){return this.allowSwipe=!1,o.RETURN_FLAG.IDLE},e.prototype.longtapTimeEnd=function(){return this.allowSwipe=!0,o.RETURN_FLAG.IDLE},e.prototype.swipeDown=function(t){return this.listener.down(t)},e.prototype.swipeStart=function(t){return this.allowSwipe?this.listener.start(t):(this.remove(),o.RETURN_FLAG.REMOVE)},e.prototype.swipeUpdate=function(t){return this.listener.update(t)},e.prototype.swipeEnd=function(t){return this.listener.end(t)},e.prototype.swipeCancel=function(){return this.listener.cancel()},e}(o.Gesture);e.LongtapSwipe=c,e.registerLongtapSwipe=r},function(t,e,n){"use strict";function r(t){t.registerGesture(a,s,void 0,u)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pointers=2,e.pinchThreshold=10,e}return i.__extends(e,t),e}(o.Options);e.PinchOptions=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.distance=0,e.scale=0,e.delta=0,e.centerPoint=new o.Point(0,0),e}return i.__extends(e,t),e}(o.Data);e.PinchData=u;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startDistance=0,e}return i.__extends(e,t),e.prototype.calculateDistance=function(t,e){return e.distanceTo(t)},e.prototype.calculateStartDistance=function(){return this.startDistance||(this.startDistance=this.calculateDistance(this.startPoint0,this.startPoint1))},e.prototype.calculateCurrentDistance=function(){return this.calculateDistance(this.currentPoint0,this.currentPoint1)},e.prototype.setData=function(t){this.currentPoint0=t.pointers[0].page,this.currentPoint1=t.pointers[1].page;var e=this.calculateStartDistance(),n=this.calculateCurrentDistance(),r=Math.abs(e-n);t.distance=r,t.scale=n/e,t.delta=n-e,t.centerPoint.x=(this.currentPoint0.x+this.currentPoint1.x)/2,t.centerPoint.y=(this.currentPoint0.y+this.currentPoint1.y)/2},e.prototype.start=function(t){var e=t.data.pointers,n=e[0].page,r=e[1].page;return this.startPoint0=n,this.startPoint1=r,this.listener.down(t)},e.prototype.update=function(t){var e=t.data;return this.setData(e),Math.abs(e.distance)<this.listener.options.pinchThreshold?o.RETURN_FLAG.IDLE:this.startEmitted?this.listener.update(t):this.listener.start(t)},e.prototype.end=function(t){return this.listener.end(t)},e}(o.Gesture);e.Pinch=a,e.registerPinch=r},function(t,e,n){"use strict";function r(t){t.registerGesture(a,s,void 0,u)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pointers=2,e.rotationThreshold=10,e}return i.__extends(e,t),e}(o.Options);e.RotateOptions=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rotation=0,e}return i.__extends(e,t),e}(o.Data);e.RotateData=u;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.calculateRotation=function(t,e,n,r){var i=t.deltaAngleTo(e);return n.deltaAngleTo(r)-i},e.prototype.setData=function(t){this.currentPoint0=t.pointers[0].page,this.currentPoint1=t.pointers[1].page,t.rotation=this.calculateRotation(this.startPoint0,this.startPoint1,this.currentPoint0,this.currentPoint1)},e.prototype.start=function(t){var e=t.data.pointers,n=e[0].page,r=e[1].page;return this.startPoint0=n,this.startPoint1=r,this.listener.down(t)},e.prototype.update=function(t){var e=t.data;return this.setData(e),Math.abs(e.rotation)<this.listener.options.rotationThreshold?o.RETURN_FLAG.IDLE:this.startEmitted?this.listener.update(t):this.listener.start(t)},e.prototype.end=function(t){return this.listener.end(t)},e}(o.Gesture);e.Rotate=a,e.registerRotate=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(6),o=n(8);e.PointerConfig={start:new i.EventConfig("pointerdown"),update:new i.EventConfig("pointermove"),end:new i.EventConfig("pointerup"),cancel:new i.EventConfig("pointercancel","dragstart")};var s=function(t){function n(n,r){return void 0===r&&(r=e.PointerConfig),t.call(this,n,r)||this}return r.__extends(n,t),n.prototype.setPointers=function(t){this.changedPointers.clear();var e=new o.Point(t.pageX,t.pageY),n=new o.Point(t.clientX,t.clientY),r=t.pointerId,i={page:e,client:n};switch(this.changedPointers.set(r,i),t.type){case"pointerdown":case"pointermove":this.allPointers.set(r,i);break;default:this.allPointers.delete(r)}},n}(i.Flow);e.PointerFlow=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n(7),o=n(2),s=n(19),u=function(){function t(t,e){void 0===e&&(e=new r.Registry),this.element=t,this.registry=e,this.flows=[],this.activeFlow=null,this.handles=[],this.gestures=[],this.composedGestures=[]}return t.prototype.registerGesture=function(t,e,n,r){void 0===e&&(e=o.Options),void 0===n&&(n=i.Listener),void 0===r&&(r=o.Data),this.registry.register(t,e,n,r)},t.prototype.registerFlow=function(t){var e=this;this.flows.push(t),t.on("start",function(n,r){return e.onStart(t,n,r)}),t.on("update",function(n,r){return e.onUpdate(t,n,r)}),t.on("end",function(n,r){return e.onEnd(t,n,r)}),t.on("cancel",function(n,r){return e.onCancel(t,n,r)}),t.on("stop",function(){return e.onStop()})},t.prototype.registerListener=function(t,e,n){var r=this,i=new s.ListenerHandle(t,e,n);return this.handles.push(i),function(){var t=r.handles.indexOf(i);t!==-1&&r.handles.splice(t,1)}},t.prototype.activate=function(){return this.flows.map(function(t){return t.activate()})},t.prototype.canActivateFlow=function(t){return null===this.activeFlow||this.activeFlow===t},t.prototype.getPointersDelta=function(t,e,n,r){return o.isMouse(t)&&!o.isValidMouseButton(t,r)?{all:-1,changed:-1}:{all:e.all.size-n,changed:e.changed.size-n}},t.prototype.removeGesture=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.startEmitted&&t.cancel(),t.unbind();for(var r;r=e.shift();){var i=r.indexOf(t);i!==-1&&r.splice(i,1)}},t.prototype.evaluateStrategyReturnFlag=function(t,e){if(e&o.RETURN_FLAG.START_EMITTED&&(t.startEmitted=!0),e&o.RETURN_FLAG.REMOVE&&this.removeGesture(t,this.gestures,this.composedGestures),e&o.RETURN_FLAG.REMOVE_OTHERS)for(var n=this.gestures.slice(),r=void 0;r=n.shift();)t!==r&&this.removeGesture(r,this.gestures,this.composedGestures)},t.prototype.whileGestures=function(t,e,n,r){for(var i;i=e.shift();){var s=i.listener.options,u=s.pointers,a=s.which,c=s.strategy,p=this.getPointersDelta(t,n,u,a);if(p.all>0&&c===o.GESTURE_STRATEGY_FLAG.REMOVE_IF_POINTERS_GT)this.removeGesture(i,this.gestures,this.composedGestures);else{var l=r({evt:t,gestures:e,gesture:i,pointers:n,pointersDelta:p});this.evaluateStrategyReturnFlag(i,l)}}},t.prototype.addPointerId=function(t,e){t.__POINTERIDS__.push(e)},t.prototype.removePointerIds=function(t,e,n){for(var r,i=this.getPointerIds(e);r=n.shift();){var o=i.indexOf(r);if(o!==-1){var s=i.splice(o,1)[0],u=this.getPointer(t,s);e.__REMOVED_POINTERS__.push(u)}}},t.prototype.getPointerIds=function(t){return t.__POINTERIDS__},t.prototype.getRemovedPointers=function(t){return t.__REMOVED_POINTERS__},t.prototype.getPointer=function(t,e){return t.get(e)},t.prototype.getPointers=function(t,e){var n=this;return e.map(function(e){return n.getPointer(t,e)})},t.prototype.isLockedPointers=function(t,e){return this.getPointerIds(t).filter(function(t){return e.has(t)}).length===e.size},t.prototype.startStrategy=function(t){var e=this;return 0!==t.pointersDelta.all?o.RETURN_FLAG.IDLE:(t.pointers.all.forEach(function(n,r){return e.addPointerId(t.gesture,r)}),t.gesture.args.data.pointers=this.getPointers(t.pointers.all,this.getPointerIds(t.gesture)),t.gesture.args.evt=t.evt,t.gesture.start(t.gesture.args))},t.prototype.updateStrategy=function(t){return this.isLockedPointers(t.gesture,t.pointers.all)?(t.gesture.args.data.pointers=this.getPointers(t.pointers.all,this.getPointerIds(t.gesture)),t.gesture.args.evt=t.evt,t.gesture.update(t.gesture.args)):o.RETURN_FLAG.IDLE},t.prototype.endStrategy=function(t){return t.gesture.startEmitted?(this.removePointerIds(t.pointers.changed,t.gesture,Array.from(t.pointers.changed.keys())),0!==this.getPointerIds(t.gesture).length?o.RETURN_FLAG.IDLE:(t.gesture.args.data.pointers=this.getRemovedPointers(t.gesture),t.gesture.args.evt=t.evt,t.gesture.end(t.gesture.args))):(t.gesture.stop(),o.RETURN_FLAG.REMOVE)},t.prototype.cancelStrategy=function(t){return t.gesture.cancel()},t.prototype.onStart=function(t,e,n){return!!this.canActivateFlow(t)&&(this.activeFlow=t,this.activeFlow.continue(),this.gestures=this.gestures.concat(this.match(e.target,e)).sort(function(t,e){return t.listener.options.prio-e.listener.options.prio}),!!this.gestures.length&&(this.whileGestures(e,this.gestures.slice(),n,this.startStrategy.bind(this)),!0))},t.prototype.onUpdate=function(t,e,n){this.activeFlow===t&&this.whileGestures(e,this.gestures.slice(),n,this.updateStrategy.bind(this))},t.prototype.onEnd=function(t,e,n){this.activeFlow===t&&this.whileGestures(e,this.gestures.slice(),n,this.endStrategy.bind(this))},t.prototype.onCancel=function(t,e,n){this.activeFlow===t&&this.whileGestures(e,this.gestures.slice(),n,this.cancelStrategy.bind(this))},t.prototype.onStop=function(){for(var t,e=this.gestures.slice();t=e.shift();)o.RETURN_FLAG.COMPOSE===t.unbind()?this.composedGestures.push(t):t.stop();this.gestures.length=0,this.activeFlow=null},t.prototype.addGesture=function(t,e,n,r){var i=this.registry.create(t,e,n.listener);return i.bind(n.element,this.registerListener.bind(this),this.removeGesture.bind(this,i,this.gestures,this.composedGestures),r),i},t.prototype.composeGesture=function(t,e,n,r){for(var i;(i=this.composedGestures.shift())&&i.listener!==n.listener;);return i||(i=this.addGesture(t,e,n,r)),i},t.prototype.matchesHandle=function(t,e){var n=e.element,r=e.listener.selector;return!!n.contains(t)&&((!r||n!==t)&&(!(r&&!o.matchesSelector(t,r))&&!(!r&&t!==n)))},t.prototype.matchHandle=function(t,e,n,r){if(this.matchesHandle(e,n))return this.composeGesture(t,e,n,r)},t.prototype.matchHandles=function(t,e,n){for(var r=0,i=this.handles;r<i.length;r++){var o=i[r],s=this.matchHandle(o.Type,t,o,n);s&&e.push(s)}return e},t.prototype.match=function(t,e){for(var n=[],r=t;r&&1===r.nodeType&&r!==this.element;r=r.parentNode)this.matchHandles(r,n,e);return n},t}();e.Engine=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(6),o=n(8);e.MouseConfig={start:new i.EventConfig("mousedown"),update:new i.EventConfig("mousemove"),end:new i.EventConfig("mouseup"),cancel:new i.EventConfig("dragstart")};var s=function(t){function n(n){return t.call(this,n,e.MouseConfig)||this}return r.__extends(n,t),n.prototype.setPointers=function(t){var e=new o.Point(t.pageX,t.pageY),n=new o.Point(t.clientX,t.clientY);switch(this.changedPointers.set(1,{page:e,client:n}),t.type){case"mousedown":case"mousemove":this.allPointers.set(1,{page:e,client:n});break;default:this.allPointers.clear()}},n}(i.Flow);e.MouseFlow=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(6),o=n(13);e.MSPointerConfig={start:new i.EventConfig("MSPointerDown"),update:new i.EventConfig("MSPointerMove"),end:new i.EventConfig("MSPointerUp"),cancel:new i.EventConfig("MSPointerCancel","dragstart")};var s=function(t){function n(n){return t.call(this,n,e.MSPointerConfig)||this}return r.__extends(n,t),n}(o.PointerFlow);e.MSPointerFlow=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(6),o=n(8);e.TouchConfig={start:new i.EventConfig("touchstart"),update:new i.EventConfig("touchmove"),end:new i.EventConfig("touchend"),cancel:new i.EventConfig("touchcancel","dragstart")};var s=function(t){function n(n){return t.call(this,n,e.TouchConfig)||this}return r.__extends(n,t),n.prototype.setPointerMapFromList=function(t,e){var n,r=t.length;for(n=0;n<r;++n){var i=t[n],s=new o.Point(i.pageX,i.pageY),u=new o.Point(i.clientX,i.clientY),a=i.identifier,c={page:s,client:u};e.set(a,c)}},n.prototype.setPointers=function(t){this.allPointers.clear(),this.changedPointers.clear(),this.setPointerMapFromList(t.touches,this.allPointers),this.setPointerMapFromList(t.changedTouches,this.changedPointers)},n}(i.Flow);e.TouchFlow=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),o=function(){function t(t,e,n){this.listener=t,this.data=e,this.target=n,this.__POINTERIDS__=[],this.__REMOVED_POINTERS__=[],this.startEmitted=!1,this.args={},this.args.data=e,this.args.target=n}return t.prototype.bind=function(){},t.prototype.unbind=function(){return i.RETURN_FLAG.IDLE},t.prototype.start=function(){return i.RETURN_FLAG.IDLE},t.prototype.update=function(){return i.RETURN_FLAG.IDLE},t.prototype.end=function(){return i.RETURN_FLAG.IDLE},t.prototype.cancel=function(){return this.listener.cancel()},t.prototype.stop=function(){this.listener.stop()},t}();e.Gesture=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(o);e.DefaultGesture=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n){this.Type=t,this.element=e,this.listener=n}return t}();e.ListenerHandle=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(16),o=n(13),s=n(17),u=n(15),a=n(7),c=n(2),p=function(){function t(t){void 0===t&&(t=window&&window.document),this.element=t,this.deactivateFlows=null,this.engine=new r.Engine(this.element)}return t.prototype.registerDefaultFlowStrategy=function(t){void 0===t&&(t=c.SUPPORTS),t.msPointerEnabled&&this.engine.registerFlow(new i.MSPointerFlow(this.element)),t.pointerEnabled&&this.engine.registerFlow(new o.PointerFlow(this.element)),t.touchEnabled&&this.engine.registerFlow(new s.TouchFlow(this.element)),this.engine.registerFlow(new u.MouseFlow(this.element))},t.prototype.registerGesture=function(t,e,n,r){void 0===e&&(e=c.Options),void 0===n&&(n=a.Listener),void 0===r&&(r=c.Data),this.engine.registerGesture(t,e,n,r)},t.prototype.activate=function(){this.deactivateFlows=this.engine.activate()},t.prototype.deactivate=function(){this.deactivateFlows&&(this.deactivateFlows.forEach(function(t){return t.forEach(function(t){return t()})}),this.deactivateFlows=null)},t.prototype.on=function(t,e,n){return this.engine.registerListener(t,e,n)},t}();e.OribellaApi=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),i=n(2),o=function(){function t(){this.gestures=new Map}return t.prototype.register=function(t,e,n,o){void 0===e&&(e=i.Options),void 0===n&&(n=r.Listener),void 0===o&&(o=i.Data),this.gestures.set(t,{Gesture:t,GestureOptions:e,GestureListener:n,GestureData:o})},t.prototype.getTypes=function(){return Array.from(this.gestures.keys())},t.prototype.create=function(t,e,n){var r=this.gestures.get(t);if(!r)throw new Error("The type "+typeof t+" has not been registered");var i=Object.assign(new r.GestureOptions,n.options);return new r.Gesture(new r.GestureListener(i,n),new r.GestureData,e)},t}();e.Registry=o},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(5),s=n(9),u=n(3),a=n(4),c=n(10),p=n(12),l=n(11);r(n(1)),e.oribella=new i.OribellaApi,r(n(5)),r(n(9)),r(n(3)),r(n(4)),r(n(10)),r(n(12)),r(n(11)),e.oribella.registerDefaultFlowStrategy(),e.oribella.activate(),o.registerTap(e.oribella),s.registerDoubletap(e.oribella),u.registerLongtap(e.oribella),a.registerSwipe(e.oribella),c.registerLongtapSwipe(e.oribella),p.registerRotate(e.oribella),l.registerPinch(e.oribella)}])});
//# sourceMappingURL=oribella.js.map

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework", "./tap"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListener, DefaultListenerArgs } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework", "./longtap", "./swipe"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["oribella-framework", "./tap", "./doubletap", "./longtap", "./swipe", "./longtap-swipe", "./rotate", "./pinch"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, ListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework"], function (exports_1, context_1) {

@@ -0,0 +0,0 @@ import { OribellaApi, Options, Data, Gesture, Listener, DefaultListenerArgs, Point } from 'oribella-framework';

@@ -0,0 +0,0 @@ System.register(["tslib", "oribella-framework"], function (exports_1, context_1) {

{
"name": "oribella",
"version": "0.8.0",
"version": "0.8.1",
"description": "A set of preconfigured gestures like tap, longtap, doubletap, swipe, longtap-swipe, pinch, rotate",

@@ -63,3 +63,3 @@ "repository": {

"tslint": "^4.4.2",
"typescript": "^2.2.0",
"typescript": "^2.2.1",
"typings": "^2.1.0",

@@ -69,3 +69,3 @@ "webpack": "^2.2.1"

"dependencies": {
"oribella-framework": "^0.10.0"
"oribella-framework": "^0.10.1"
},

@@ -72,0 +72,0 @@ "nyc": {

# oribella
[![CircleCI](https://circleci.com/gh/oribella/oribella.svg?style=shield)](https://circleci.com/gh/oribella/oribella) [![Coverage Status](https://coveralls.io/repos/github/oribella/oribella/badge.svg)](https://coveralls.io/github/oribella/oribella)
[![npm version](https://badge.fury.io/js/oribella.svg)](https://badge.fury.io/js/oribella)
[![CircleCI](https://circleci.com/gh/oribella/oribella.svg?style=shield)](https://circleci.com/gh/oribella/oribella)
[![Coverage Status](https://coveralls.io/repos/github/oribella/oribella/badge.svg)](https://coveralls.io/github/oribella/oribella)
## Building
```shell
npm run build
```
## Tests
```shell
npm run test
```
## Developing
```shell
npm run dev;
```
## Visual Studio Code
### Tests
```shell
ctrl + alt + t
```
### Building
```shell
cmd/ctrl + shift + b
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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