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,UAAY,EAAE,MAAM,QAAQ,WAAa,CACrD,MAAO,WACH,EAAG,MAAO,KAAM,QAAS,EAAE,KAC/B,GAEJ,EAAE,MAAM,QAAQ,WAAa,EAAE,MAAM,QAAQ,YAAc,EAAE,MAAM,QAAQ,SAE1E,CApED,CAoEG","file":"/npm/jquery.cycle2.swipe@1.0.0/jquery.cycle2.swipe.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/jquery.cycle2.swipe@1.0.0/jquery.cycle2.swipe.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*! swipe plugin for Cycle2;  version: 20121120 */\n(function($) {\n\"use strict\";\n\n// this script adds support for touch events.  the logic is lifted from jQuery Mobile.\n// if you have jQuery Mobile installed, you do NOT need this script\n\nvar supportTouch = 'ontouchend' in document;\n\n$.event.special.swipe = $.event.special.swipe || {\n    scrollSupressionThreshold: 10,   // More than this horizontal displacement, and we will suppress scrolling.\n    durationThreshold: 1000,         // More time than this, and it isn't a swipe.\n    horizontalDistanceThreshold: 30, // Swipe horizontal displacement must be more than this.\n    verticalDistanceThreshold: 75,   // Swipe vertical displacement must be less than this.\n\n    setup: function() {\n        var $this = $( this );\n\n        $this.bind( 'touchstart', function( event ) {\n            var data = event.originalEvent.touches ? event.originalEvent.touches[ 0 ] : event;\n            var stop, start = {\n                time: ( new Date() ).getTime(),\n                coords: [ data.pageX, data.pageY ],\n                origin: $( event.target )\n            };\n\n            function moveHandler( event ) {\n                if ( !start )\n                    return;\n\n                var data = event.originalEvent.touches ? event.originalEvent.touches[ 0 ] : event;\n\n                stop = {\n                    time: ( new Date() ).getTime(),\n                    coords: [ data.pageX, data.pageY ]\n                };\n\n                // prevent scrolling\n                if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {\n                    event.preventDefault();\n                }\n            }\n\n            $this.bind( 'touchmove', moveHandler )\n                .one( 'touchend', function( event ) {\n                    $this.unbind( 'touchmove', moveHandler );\n\n                    if ( start && stop ) {\n                        if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&\n                                Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&\n                                Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {\n\n                            start.origin.trigger( \"swipe\" )\n                                .trigger( start.coords[0] > stop.coords[ 0 ] ? \"swipeleft\" : \"swiperight\" );\n                        }\n                    }\n                    start = stop = undefined;\n                });\n        });\n    }\n};\n\n$.event.special.swipeleft = $.event.special.swipeleft || {\n    setup: function() {\n        $( this ).bind( 'swipe', $.noop );\n    }\n};\n$.event.special.swiperight = $.event.special.swiperight || $.event.special.swipeleft;\n\n})(jQuery);\n"]}