"use strict";var V=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var _=(a,e)=>{for(var t in e)V(a,t,{get:e[t],enumerable:!0})},ee=(a,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of J(e))!Z.call(a,s)&&s!==t&&V(a,s,{get:()=>e[s],enumerable:!(n=Q(e,s))||n.enumerable});return a};var te=a=>ee(V({},"__esModule",{value:!0}),a);var de={};_(de,{CylinderPickerEvent:()=>G,HTMLCylinderPicker:()=>j});module.exports=te(de);var Y={name:"cylinder-picker",version:"1.0.75",description:"The cylinder-picker library is a customizable, interactive cylindrical item picker for web applications, supporting features like infinite scroll, touch gestures, and dynamic updates.",scripts:{test:'echo "Error: no test specified" && exit 1',build:"node build.js"},author:"",license:"MIT",type:"module",main:"dist/index.cjs",require:"./dist/index.cjs",module:"dist/index.mjs",umd:"./dist/index.umd.js",types:"dist/index.d.ts",exports:{".":{import:"./dist/index.mjs",require:"./dist/index.cjs",umd:"./dist/index.umd.js",types:"./dist/index.d.ts"}},repository:{type:"git",url:"git+https://github.com/pjy0509/cylinder-picker.git"},homepage:"https://pjy0509.github.io/example/cylinder-picker/",keywords:["cylinder","ios","picker","ui"],dependencies:{"eventlistener-manager":"^1.0.44"},devDependencies:{esbuild:"^0.21.4",glob:"^10.4.1","html-webpack-plugin":"^5.6.0","ts-loader":"^9.5.1",typescript:"^5.4.5"},bugs:{url:"https://github.com/pjy0509/cylinder-picker/issues"}};var K=(()=>{if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self})();var f=(()=>{if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self})(),ie=class y{static{this.vendors=["","webkit","moz","ms","MS","o","O"]}static{this.polyfillEventTypeMap={wheel:["wheel","mousewheel","DOMMouseScroll"],pointerlockchange:y.withVendor("pointer","lock","change"),pointerlockerror:y.withVendor("pointer","lock","error"),pointercancel:y.withVendor("pointer","cancel"),pointerdown:y.withVendor("pointer","down"),pointerhover:y.withVendor("pointer","hover"),pointermove:y.withVendor("pointer","move"),pointerout:y.withVendor("pointer","out"),pointerover:y.withVendor("pointer","over"),pointerup:y.withVendor("pointer","up"),lostpointercapture:y.withVendor("lost","pointer","capture"),gotpointercapture:y.withVendor("got","pointer","capture"),fullscreenchange:y.withVendor("fullscreen","change"),fullscreenerror:y.withVendor("fullscreen","error"),transitionstart:y.withVendor("transition","start"),transitionrun:y.withVendor("transition","run"),transitionend:y.withVendor("transition","end"),transitioncancel:y.withVendor("transition","cancel"),animationstart:y.withVendor("animation","start"),animationiteration:y.withVendor("animation","iteration"),animationend:y.withVendor("animation","end"),animationcancel:y.withVendor("animation","cancel")}}static withVendor(...e){return y.vendors.flatMap(t=>[t+e.join(""),t+e.map(n=>y.capitalize(n)).join("")])}static capitalize(e){return e.replace(/\b[a-z]/,t=>t.toUpperCase())}static get(e,t){let n=y.polyfillEventTypeMap[t];if(n){for(let s of n)if("on"+s in e)return s}else if("on"+t in e)return t}},se=class{constructor(a){this.lastExecutionTime=0,this.scheduledTask=null,this.rafId=null,this.delayThreshold=a;let e=Date.now||function(){return new Date().getTime()},t=e();this.now=()=>f.performance&&f.performance.now?f.performance.now():e()-t;let n=0;this.requestAnimationFrame=f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||(s=>{let r=this.now(),c=Math.max(0,16-(r-n)),o=window.setTimeout(function(){s(r+c)},c);return n=r+c,o}),this.cancelAnimationFrame=f.cancelAnimationFrame||f.webkitCancelAnimationFrame||f.webkitCancelRequestAnimationFrame||f.mozCancelAnimationFrame||f.mozCancelRequestAnimationFrame||f.oCancelAnimationFrame||f.oCancelRequestAnimationFrame||f.msCancelAnimationFrame||f.msCancelRequestAnimationFrame||(s=>{clearTimeout(s)})}scheduleTask(a){this.now()-this.lastExecutionTime>=this.delayThreshold?(this.rafId!==null&&(this.cancelAnimationFrame(this.rafId),this.rafId=null),this.executeTask(a)):(this.scheduledTask=a,this.rafId===null&&(this.rafId=this.requestAnimationFrame(()=>this.runScheduledTask())))}executeTask(a){this.lastExecutionTime=this.now(),a()}runScheduledTask(){this.scheduledTask&&(this.executeTask(this.scheduledTask),this.scheduledTask=null,this.rafId=null)}},I=class C{constructor(e){this.addEventListener=(t,n,s)=>{if("addEventListener"in this.target){this.target.addEventListener(t,n,s);return}if("attachEvent"in this.target){this.target.attachEvent("on"+t,n);return}if("addListener"in this.target){this.target.addListener(n);return}},this.removeEventListener=(t,n,s)=>{if("removeEventListener"in this.target){this.target.removeEventListener(t,n,s);return}if("detachEvent"in this.target){this.target.detachEvent("on"+t,n);return}if("removeListener"in this.target){this.target.removeListener(n);return}return()=>{}},this.dispatchEvent=t=>{if("dispatchEvent"in this.target){this.target.dispatchEvent(t);return}if("fireEvent"in this.target){this.target.fireEvent("on"+t.type);return}},this.target=e,this.checkSupportedOptions(e)}static{this.passiveSupported=new Map}static{this.onceSupported=new Map}checkSupportedOptions(e){if(C.onceSupported.get(e.constructor)===void 0||C.passiveSupported.get(e.constructor)===void 0){C.passiveSupported.set(e.constructor,!1),C.onceSupported.set(e.constructor,!1);try{let t=()=>{},n=Object.create({},{passive:{get(){C.passiveSupported.set(e.constructor,!0)}},once:{get(){C.onceSupported.set(e.constructor,!0)}}});this.addEventListener("test",t,n),this.removeEventListener("test",t,n)}catch{}}}},S=class m{static{this.meta=new WeakMap}static{this.isActivePreventDefaultPinchGesture=!1}static{this.isActivePreventDefaultPanGesture=!1}static{this.isActivePreventDefaultSelectGesture=!1}static{this.preventDefault=e=>{(!("cancelable"in e)||e.cancelable)&&e.preventDefault()}}static{this.emptyPromise=new Promise(()=>{})}static{this.documentEventRegister=new I(document)}static activePreventDefaultPinchGesture(){return m.isActivePreventDefaultPinchGesture?m.emptyPromise:(m.isActivePreventDefaultPinchGesture=!0,m.documentEventRegister.addEventListener("touchmove",m.preventDefault,{passive:!1}),m.documentEventRegister.addEventListener("touchstart",m.preventDefault,{passive:!1}),new Promise(async e=>{let t=document.querySelectorAll('meta[name="viewport"]');if(t.length===0){let n=document.createElement("meta");n.setAttribute("name","viewport"),n.setAttribute("content","user-scalable=no"),document.head.append(n),m.meta.set(n,{})}t.forEach(n=>{let s=n.getAttribute("content");if(s){let r=m.splitViewportContent(s);m.meta.set(n,r),r["user-scalable"]="no",n.setAttribute("content",m.joinViewportContent(r))}}),setTimeout(e)}))}static inactivePreventDefaultPinchGesture(){m.isActivePreventDefaultPinchGesture&&(m.isActivePreventDefaultPinchGesture=!1,m.documentEventRegister.removeEventListener("touchmove",m.preventDefault),m.documentEventRegister.removeEventListener("touchstart",m.preventDefault),document.querySelectorAll('meta[name="viewport"]').forEach(e=>{if(m.meta.has(e)){let t=m.meta.get(e);Object.keys(t).length===0?e.remove():e.setAttribute("content",m.joinViewportContent(t))}}))}static activePreventDefaultPanGesture(){return m.isActivePreventDefaultPanGesture?m.emptyPromise:(m.isActivePreventDefaultPanGesture=!0,new Promise(e=>{m.documentEventRegister.addEventListener("touchstart",m.preventDefault,{passive:!1}),setTimeout(e)}))}static inactivePreventDefaultPanGesture(){m.isActivePreventDefaultPanGesture&&(m.isActivePreventDefaultPanGesture=!1,m.documentEventRegister.removeEventListener("touchstart",m.preventDefault))}static activePreventDefaultSelectGesture(){return m.isActivePreventDefaultSelectGesture?m.emptyPromise:(m.isActivePreventDefaultSelectGesture=!0,m.documentEventRegister.addEventListener("touchstart",m.preventDefault,{passive:!1}),new Promise(e=>{m.getStyleSheet().insertRule("html{-webkit-touch-callout: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);outline-style: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none;-webkit-user-drag: none;-khtml-user-drag: none;-moz-user-drag: none;-ms-user-drag: none;-o-user-drag: none;user-drag: none;-webkit-app-region: none;-khtml-app-region: none;-moz-app-region: none;-ms-app-region: none;-o-app-region: none;app-region: none;}"),setTimeout(e)}))}static inactivePreventDefaultSelectGesture(){if(m.isActivePreventDefaultSelectGesture){m.isActivePreventDefaultSelectGesture=!1,m.documentEventRegister.removeEventListener("touchstart",m.preventDefault);try{m.getStyleSheet().deleteRule(0)}catch{}}}static getStyleSheet(){if(!m.styleSheet){let e=document.createElement("style");document.head.append(e),m.styleSheet=e.sheet}return m.styleSheet}static splitViewportContent(e){return e.split(",").map(t=>{let n=t.trim().split("=");return{[n[0]]:n[1]}}).reduce((t,n)=>Object.assign(t,n),{})}static joinViewportContent(e){return Object.keys(e).map(t=>t+"="+e[t]).join(", ")}},re=class{constructor(){this.map=new Map}get(a,e){let t=this.parseOptions(e),n=this.map.get(a);return t.capture?n?.capture:n?.release}set(a,e,t,n){let s=this.parseCallback(t),r=this.parseOptions(n),c=I.passiveSupported.get(a.constructor),o=I.onceSupported.get(a.constructor),h=function(u){!c&&r.passive&&(u.preventDefault=function(){}),s(u),!o&&r.once&&a.removeEventListener(u.type,h)};return c&&o&&(h=s),r.capture?this.map.set(t,{capture:h,release:this.map.get(t)?.release}):this.map.set(t,{capture:this.map.get(t)?.capture,release:h}),s}delete(a,e){let t=this.parseOptions(e),n=this.map.get(a);t.capture?delete n?.capture:delete n?.release,n&&(Object.keys(n).length===0?this.map.delete(a):this.map.set(a,n))}keys(){return this.map.keys()}size(){return this.map.size}parseCallback(a){return typeof a=="function"?a:a.handleEvent}parseOptions(a){return a===void 0?{}:typeof a=="boolean"?{capture:a}:a}},me=(()=>{if(typeof f.TouchEvent>"u"){class a extends UIEvent{constructor(t,n){super(t,n)}}f.TouchEvent=a}if(!f.WeakMap){let a=Object.prototype.hasOwnProperty,e=(()=>{try{return Object.defineProperty({},"x",{value:1}).x===1}catch{return!1}})(),t=(s,r,c)=>{e?Object.defineProperty(s,r,{configurable:!0,writable:!0,value:c}):s[r]=c};f.WeakMap=function(){class s{constructor(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(this._id=c("_WeakMap"),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}delete(u){if(r(this,"delete"),!n(u))return!1;let d=u[this._id];return d&&d[0]===u?(delete u[this._id],!0):!1}get(u){if(r(this,"get"),!n(u))return;let d=u[this._id];if(d&&d[0]===u)return d[1]}has(u){if(r(this,"has"),!n(u))return!1;let d=u[this._id];return!!(d&&d[0]===u)}set(u,d){if(r(this,"set"),!n(u))throw new TypeError("Invalid value used as weak map key");let p=u[this._id];return p&&p[0]===u?(p[1]=d,this):(t(u,this._id,[u,d]),this)}}function r(h,u){if(!n(h)||!a.call(h,"_id"))throw new TypeError(`${u} method called on incompatible receiver ${typeof h}`)}function c(h){return`${h}_${o()}.${o()}`}function o(){return Math.random().toString().substring(2)}return t(s,"_polyfill",!0),s}();let n=s=>Object(s)===s}f.matchMedia||(f.matchMedia=function(a){let e=f.styleMedia||f.media;if(!e){let t=document.createElement("style"),n=null;t.type="text/css",t.setAttribute("data-match-media-query","true"),document.head.appendChild(t),n="getComputedStyle"in window&&window.getComputedStyle(t)||t.currentStyle,e={matchMedium:function(s){let r="@media "+s+"{ [data-match-media-query] { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=r:t.textContent=r,document.head.removeChild(t),n.width==="1px"}}}return{matches:e.matchMedium(a),media:a}})})(),ae={name:"eventlistener-manager",version:"1.0.44",description:"The EventManager is capable of handling both native and custom events seamlessly, providing a robust solution for event management in complex applications.",scripts:{test:'echo "Error: no test specified" && exit 1',build:"node build.js"},author:"",license:"MIT",type:"module",main:"dist/index.cjs",require:"dist/index.cjs",module:"dist/index.mjs",umd:"dist/index.umd.js",types:"dist/src/index.d.ts",exports:{".":{import:"./dist/index.mjs",require:"./dist/index.cjs",umd:"./dist/index.umd.js",types:"./dist/src/index.d.ts"}},repository:{type:"git",url:"https://github.com/pjy0509/eventlistener-manager"},homepage:"https://pjy0509.github.io/example/eventlistener-manager/",keywords:["event","eventlistener","listener","gesture","longpress","pan","pinch","javascript","typescript"],devDependencies:{esbuild:"^0.21.4",glob:"^10.4.1","html-webpack-plugin":"^5.6.0","ts-loader":"^9.5.1",typescript:"^5.4.5"}},oe={mouselongpressstart:"mouselongpress",mouselongpressmove:"mouselongpress",mouselongpressend:"mouselongpress",mouselongpressleave:"mouselongpress",mousepanstart:"mousepan",mousepanmove:"mousepan",mousepanleft:"mousepan",mousepanright:"mousepan",mousepanup:"mousepan",mousepandown:"mousepan",mousepanend:"mousepan",mousepanleave:"mousepan"},ce={touchlongpressstart:"touchlongpress",touchlongpressmove:"touchlongpress",touchlongpressend:"touchlongpress",touchlongpresscancel:"touchlongpress",touchpanstart:"touchpan",touchpanmove:"touchpan",touchpanleft:"touchpan",touchpanright:"touchpan",touchpanup:"touchpan",touchpandown:"touchpan",touchpanend:"touchpan",touchpancancel:"touchpan",touchpinchstart:"touchpinch",touchpinchmove:"touchpinch",touchpinchend:"touchpinch",touchpinchcancel:"touchpinch"},ue={appearancechange:"appearancechange",orientationchange:"orientationchange",resize:"resize",intersectionchange:"intersection"},he={...oe,...ce,...ue},q=class k{static{this.U=0}static{this.UR=1}static{this.R=2}static{this.DR=3}static{this.D=4}static{this.DL=5}static{this.L=6}static{this.UL=7}static{this.Unknown=-1}static get4Direction(e){return e>=0&&e<=45?k.R:e>45&&e<=135?k.D:e>135&&e<=180||e>=-180&&e<=-135?k.L:e>-135&&e<=-45?k.U:e>-45&&e<=-0?k.R:k.Unknown}static get8Direction(e){return e>=0&&e<=22.5?k.R:e>22.5&&e<=67.5?k.DR:e>67.5&&e<=112.5?k.D:e>112.5&&e<=157.5?k.DL:e>157.5&&e<=180||e>=-180&&e<=-157.5?k.L:e>-157.5&&e<=-112.5?k.UL:e>-112.5&&e<=-67.5?k.U:e>-67.5&&e<=-22.5?k.UR:e>-22.5&&e<=-0?k.R:k.Unknown}},L=class O{constructor(...e){this.t=new Date().getTime();let t=e[0],n=e[1];t instanceof MouseEvent?(this.x=t.clientX,this.y=t.clientY):t instanceof TouchEvent&&typeof n=="number"&&t.touches.length>n?(this.x=t.touches[n].clientX,this.y=t.touches[n].clientY):typeof t=="number"&&typeof n=="number"?(this.x=t,this.y=n):(this.x=NaN,this.y=NaN)}static fromMouseEvent(e){return new O(e)}static fromTouchEvent(e,t=0){return new O(e,t)}static fromCoordinate(e,t){return new O(e,t)}static center(e,t){return new O((e.x+t.x)/2,(e.y+t.y)/2)}distance(e){let t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}timeDiff(e){return Math.abs(this.t-e.t)}},b=class{constructor(a,e){this.start=a,this.end=e,this.center=L.center(a,e),this.dx=e.x-a.x,this.dy=e.y-a.y,this.distance=e.distance(a),this.time=e.t-a.t,this.speed=this.distance/this.time,this.radian=Math.atan2(this.dy,this.dx),this.degree=this.radian*(180/Math.PI),this.direction=q.get8Direction(this.degree)}equals(a){return this.start.x===a.start.x&&this.end.x===a.end.x&&this.start.y===a.start.y&&this.end.y===a.end.y}},H=class extends Array{constructor(a){super(),a.length>0&&(this.push(...a),this.first=a[0],this.last=a[this.length-1])}item(a){if(this.length>a)return this[a]}dPath(a,e){if(a<1)return;let t=this.item(a),n=this.item(a-1);if(t&&n){let s=t[e],r=n[e];if(s instanceof L&&r instanceof L)return new b(s,r)}}dNumber(a,e){if(a<1)return;let t=this.item(a),n=this.item(a-1);if(t&&n){let s=t[e],r=n[e];if(typeof s=="number"&&typeof r=="number")return r-s}}dStart(a){return this.dPath(a,"start")}dEnd(a){return this.dPath(a,"end")}dCenter(a){return this.dPath(a,"center")}dDistance(a){return this.dNumber(a,"distance")}dRadian(a){return this.dNumber(a,"radian")}dDegree(a){return this.dNumber(a,"degree")}},F=class{static{this.Dark=0}static{this.Light=1}},W=class{static{this.Portrait=0}static{this.Landscape=1}},U=class{constructor(a){this.width=a.outerWidth||a.offsetWidth||a.width||NaN,this.height=a.outerHeight||a.offsetHeight||a.height||NaN}},B=class{static clone(a){return Object.assign({},a)}},A=class extends MouseEvent{constructor(a,e,t=[]){super(a,B.clone(e)),this.paths=new H(t)}},P=class extends TouchEvent{constructor(a,e,t=[]){super(a,B.clone(e)),this.paths=new H(t)}},R=class extends UIEvent{constructor(a,e,t){super(a,B.clone(e)),this.property=t}},$=new se(5),N=class i{static{this.instance={generalEventInstance:new WeakMap,extendedEventInstance:new WeakMap}}static{this.options={strict:!0,mouseLongpressTimeRequired:750,mouseLongpressBelowDistance:15,touchLongpressTimeRequired:750,touchLongpressBelowDistance:30,callWhenAddedUIEvent:!0}}static{this.resizeObserver=void 0}static{this.intersectionObserver=void 0}static{this.version=ae.version}static on(e,t,n,s){for(let r of i.toArray(t))if(i.extendedEventKey(r))i.addExtendedEventListener(e,t,n,s);else{if(!ie.get(e,r))continue;i.addEventListener(e,r,n,s)}}static addEventListener(e,t,n,s){new I(e).addEventListener(t,i.storeEventListener(e,t,n,s),s)}static removeEventListener(e,t,n,s){i.off(e,t,n,s)}static dispatchEvent(e,t){new I(e).dispatchEvent(t)}static extendedEventKey(e){return he[e]}static addExtendedEventListener(e,t,n,s){for(let r of i.toArray(t))switch(i.addEventListener(e,r,n,s),i.extendedEventKey(r)){case"mouselongpress":i.addMouseLongpressEvent(e);break;case"mousepan":i.addMousePanEvent(e);break;case"touchlongpress":i.addTouchLongpressEvent(e);break;case"touchpan":i.addTouchPanEvent(e);break;case"touchpinch":i.addTouchPinchEvent(e);break;case"appearancechange":i.addAppearanceChange(e);break;case"orientationchange":i.addOrientationChange(e);break;case"resize":i.addResize(e);break;case"intersection":i.addIntersection(e);break}}static off(e,t,n,s){let r=i.instance.generalEventInstance.get(e);if(r)if(t)i.removeEventListenerFromType(e,t,n,s);else{let c=r.keys(),o=c.next();for(;!o.done;){let h=o.value;i.removeEventListenerFromType(e,h,n,s),o=c.next()}}}static removeEventListenerFromType(e,t,n,s){let r=i.instance.generalEventInstance.get(e);if(r)for(let c of i.toArray(t)){let o=[],h=r.get(c);if(h){let d=h.keys(),p=d.next();for(;!p.done;){let g=h.get(p.value,s);if(g){let T=i.matchAndRemoveListener(e,c,g,n,s);T&&o.push(T)}p=d.next()}for(let g of o)h.delete(g,s);h.size()===0&&r.delete(t)}r.size===0&&i.instance.generalEventInstance.delete(e);let u=i.extendedEventKey(c);if(u){let d=r.keys(),p=d.next(),g=!0;e:for(;!p.done;){let T=p.value;for(let v of i.toArray(T))if(u===i.extendedEventKey(v)){g=!1;break e}p=d.next()}g&&i.removeExtendedEvent(e,u,s)}}}static matchAndRemoveListener(e,t,n,s,r){if(!s||s===n)return i.removeEventListenerOne(e,t,n,r)}static removeEventListenerOne(e,t,n,s){let r=i.instance.generalEventInstance.get(e)?.get(t)?.get(n,s);return r&&(new I(e).removeEventListener(t,r,s),i.instance.generalEventInstance.get(e)?.get(t)?.delete(n,s)),n}static storeEventListener(e,t,n,s){let r=i.getOrCreateListenerMap(e,t),c=r.set(e,t,n,s);return i.getOrCreateEventListenerEventMap(e).set(t,r),c}static getOrCreateListenerMap(e,t){let n=i.getOrCreateEventListenerEventMap(e),s=n.get(t);if(s)return s;{let r=new re;return n.set(t,r),r}}static getOrCreateEventListenerEventMap(e){let t=i.instance.generalEventInstance.get(e);if(t)return t;{let n=new Map;return i.instance.generalEventInstance.set(e,n),n}}static getExtendedEvent(e){return i.instance.extendedEventInstance.get(e)}static addExtendedEvent(e,t,n){let s=i.getExtendedEvent(e)||{};i.instance.extendedEventInstance.set(e,{...s,[t]:n})}static hasExtendedEventImplementation(e,t){return!!i.getExtendedEvent(e)?.[t]}static removeExtendedEvent(e,t,n){let s=i.getExtendedEvent(e);if(s){let r=s[t];if(r)for(let c in r){let o=r[c];if(o instanceof Array)for(let h of o)i.removeEventListener(e,c,h,n);else typeof o=="function"&&o()}delete s[t],Object.keys(s).length===0&&i.instance.extendedEventInstance.delete(e)}}static addMouseLongpressEvent(e){if(!i.hasExtendedEventImplementation(e,"mouselongpress")){let t,n,s=!1,r=()=>{i.removeEventListener(e,"mousemove",d),i.removeEventListener(e,"mouseup",o),i.removeEventListener(e,"mouseleave",h),n&&clearTimeout(n)},c=p=>{s=!0,t=L.fromMouseEvent(p),r(),i.addEventListener(e,"mousemove",d,{passive:!1}),n=setTimeout(()=>{i.dispatchEvent(e,new A("mouselongpressstart",p)),i.removeEventListener(e,"mouseup",r),i.removeEventListener(e,"mouseleave",r),i.addEventListener(e,"mouseup",o,{passive:!1}),i.addEventListener(e,"mouseleave",h,{passive:!1})},i.options.mouseLongpressTimeRequired)},o=p=>{t&&i.dispatchEvent(e,new A("mouselongpressend",p,[new b(t,L.fromMouseEvent(p))])),r()},h=p=>{t&&i.dispatchEvent(e,new A("mouselongpressleave",p,[new b(t,L.fromMouseEvent(p))])),r()},u=()=>{s=!1},d=p=>{if(!s){r();return}if(t){let g=L.fromMouseEvent(p);t.timeDiff(g)i.options.mouseLongpressBelowDistance?r():t.timeDiff(g)>=i.options.mouseLongpressTimeRequired&&(i.options.strict?i.dispatchEvent(e,new A("mouselongpressmove",p,[new b(t,g)])):$.scheduleTask(()=>{s&&i.dispatchEvent(e,new A("mouselongpressmove",p,[new b(t,g)]))}))}};i.addEventListener(e,"mousedown",c,{passive:!1}),i.addEventListener(e,"mouseup",r,{passive:!1}),i.addEventListener(e,"mouseleave",r,{passive:!1}),i.addEventListener(e,"mouseup",u,{passive:!1}),i.addEventListener(e,"mouseleave",u,{passive:!1}),i.addExtendedEvent(e,"mouselongpress",{mousedown:[c],mouseup:[o,u,r],mouseleave:[o,u,r],mousemove:[d]})}}static addMousePanEvent(e){if(!i.hasExtendedEventImplementation(e,"mousepan")){let t,n,s=[],r=!1,c=!1,o=()=>{s=[],r=!1,i.removeEventListener(e,"mousemove",T),i.removeEventListener(e,"mouseup",u),i.removeEventListener(e,"mouseleave",d)},h=v=>{c=!0,t=L.fromMouseEvent(v),n=t,o(),i.addEventListener(e,"mousemove",T,{passive:!1}),i.addEventListener(e,"mouseup",u,{passive:!1}),i.addEventListener(e,"mouseleave",d,{passive:!1})},u=v=>{r&&t&&(g(v),i.dispatchEvent(e,new A("mousepanend",v,[new b(t,L.fromMouseEvent(v))]))),o()},d=v=>{r&&t&&(g(v),i.dispatchEvent(e,new A("mousepanleave",v,[new b(t,L.fromMouseEvent(v))]))),o()},p=()=>{c=!1},g=v=>{if(t){let l=[],w;for(let x of s){w||(w=x.start);let M=new b(w,x.end);M.distance>=25&&(l.push(M),w=null)}let E=new Set(l.map(x=>q.get4Direction(x.degree)));if(E.size===1){let x;E.has(0)?x="mousepanup":E.has(2)?x="mousepanright":E.has(4)?x="mousepandown":E.has(6)&&(x="mousepanleft"),x&&i.dispatchEvent(e,new A(x,v,l))}}},T=v=>{if(n&&t){let l=L.fromMouseEvent(v),w=new b(n,l),E=s.length;n=l,E===0&&w.distance>0&&i.dispatchEvent(e,new A("mousepanstart",v,s)),w.distance>0&&(r=!0,s.push(w),i.options.strict?i.dispatchEvent(e,new A("mousepanmove",v,s)):$.scheduleTask(()=>{c&&i.dispatchEvent(e,new A("mousepanmove",v,s))}))}};i.addEventListener(e,"mousedown",h,{passive:!1}),i.addEventListener(e,"mouseup",p,{passive:!1}),i.addEventListener(e,"mouseleave",p,{passive:!1}),i.addExtendedEvent(e,"mousepan",{mousedown:[h],mouseup:[u,p],mouseleave:[d,p],mousemove:[T]})}}static addTouchLongpressEvent(e){if(!i.hasExtendedEventImplementation(e,"touchlongpress")){let t,n,s,r=!1,c=!1,o=()=>{r=!1,i.removeEventListener(e,"touchmove",g),i.removeEventListener(e,"touchend",u),i.removeEventListener(e,"touchcancel",d),s&&clearTimeout(s)},h=v=>{v instanceof TouchEvent&&v.touches.length===1?S.activePreventDefaultSelectGesture().then(()=>{c=!0,t=L.fromTouchEvent(v,0),n=t,o(),i.addEventListener(e,"touchmove",g,{passive:!1}),s=setTimeout(()=>{c&&(r=!0,i.dispatchEvent(e,new P("touchlongpressstart",v)),i.removeEventListener(e,"touchend",o),i.removeEventListener(e,"touchcancel",o),i.addEventListener(e,"touchend",u,{passive:!1}),i.addEventListener(e,"touchcancel",d,{passive:!1}))},i.options.touchLongpressTimeRequired)}):r?d(v):o()},u=v=>{t&&n&&i.dispatchEvent(e,new P("touchlongpressend",v,[new b(t,n)])),o()},d=v=>{t&&n&&i.dispatchEvent(e,new P("touchlongpresscancel",v,[new b(t,n)])),o()},p=()=>{c=!1,S.inactivePreventDefaultSelectGesture()},g=v=>{if(v instanceof TouchEvent&&v.touches.length===1){if(!c){o();return}if(t){let l=L.fromTouchEvent(v,0);if(t.timeDiff(l)i.options.touchLongpressBelowDistance)o();else if(t.timeDiff(l)>=i.options.touchLongpressTimeRequired&&n){let w=L.fromTouchEvent(v,0);new b(n,w).distance>0&&(i.options.strict?i.dispatchEvent(e,new P("touchlongpressmove",v,[new b(t,w)])):$.scheduleTask(()=>{c&&i.dispatchEvent(e,new P("touchlongpressmove",v,[new b(t,w)]))}))}n=l}}},T=v=>{(!("cancelable"in v)||v.cancelable)&&v.preventDefault()};i.addEventListener(e,"contextmenu",T,{passive:!1}),i.addEventListener(e,"touchstart",h,{passive:!1}),i.addEventListener(e,"touchend",o,{passive:!1}),i.addEventListener(e,"touchcancel",o,{passive:!1}),i.addEventListener(e,"touchend",p,{passive:!1}),i.addEventListener(e,"touchcancel",p,{passive:!1}),i.addExtendedEvent(e,"touchlongpress",{contextmenu:[T],touchstart:[h],touchend:[u,p,o],touchcancel:[d,p,o],touchmove:[g]})}}static addTouchPanEvent(e){if(!i.hasExtendedEventImplementation(e,"touchpan")){let t,n,s=[],r=!1,c=!1,o=()=>{s=[],r=!1,i.removeEventListener(e,"touchmove",T),i.removeEventListener(e,"touchend",u),i.removeEventListener(e,"touchcancel",d)},h=l=>{l instanceof TouchEvent&&l.touches.length===1?(S.activePreventDefaultPanGesture().then(),c=!0,t=L.fromTouchEvent(l,0),n=t,o(),i.addEventListener(e,"touchmove",T,{passive:!1}),i.addEventListener(e,"touchend",u,{passive:!1}),i.addEventListener(e,"touchcancel",d,{passive:!1})):r&&d(l)},u=l=>{r&&t&&n&&(g(l),i.dispatchEvent(e,new P("touchpanend",l,[new b(t,n)]))),o()},d=l=>{r&&t&&n&&i.dispatchEvent(e,new P("touchpancancel",l,[new b(t,n)])),o()},p=()=>{c=!1,S.inactivePreventDefaultPanGesture()},g=l=>{if(t){let w=[],E;for(let M of s){E||(E=M.start);let D=new b(E,M.end);D.distance>=25&&(w.push(D),E=null)}let x=new Set(w.map(M=>q.get4Direction(M.degree)));if(x.size===1){let M;x.has(0)?M="touchpanup":x.has(2)?M="touchpanright":x.has(4)?M="touchpandown":x.has(6)&&(M="touchpanleft"),M&&i.dispatchEvent(e,new A(M,l,w))}}},T=l=>{if(l instanceof TouchEvent&&l.touches.length===1&&n&&t){let w=L.fromTouchEvent(l,0),E=new b(n,w),x=s.length;n=w,x===0&&E.distance>0&&i.dispatchEvent(e,new P("touchpanstart",l,s)),E.distance>0&&(r=!0,s.push(E),i.options.strict?i.dispatchEvent(e,new P("touchpanmove",l,s)):$.scheduleTask(()=>{c&&i.dispatchEvent(e,new P("touchpanmove",l,s))}))}},v=l=>{(!("cancelable"in l)||l.cancelable)&&l.preventDefault()};i.addEventListener(e,"contextmenu",v,{passive:!1}),i.addEventListener(e,"touchstart",h,{passive:!1}),i.addEventListener(e,"touchend",p,{passive:!1}),i.addEventListener(e,"touchcancel",p,{passive:!1}),i.addExtendedEvent(e,"touchpan",{contextmenu:[v],touchstart:[h],touchend:[u,p],touchcancel:[d,p],touchmove:[T]})}}static addTouchPinchEvent(e){if(!i.hasExtendedEventImplementation(e,"touchpinch")){let t=[],n,s=[],r=[],c=!1,o=!1,h=()=>{t=[],s=[],r=[],c=!1,i.removeEventListener(e,"touchmove",T),i.removeEventListener(e,"touchend",d),i.removeEventListener(e,"touchcancel",p),S.inactivePreventDefaultPinchGesture()},u=l=>{if(l instanceof TouchEvent&&l.touches.length>1){S.activePreventDefaultPinchGesture().then();let w=l.touches.length;o=!0,h();for(let E=0;E{c&&t&&s&&i.dispatchEvent(e,new P("touchpinchend",l,[new b(L.center(t[0],t[1]),L.center(s[0],s[1]))])),h()},p=l=>{c&&t&&s&&i.dispatchEvent(e,new P("touchpinchcancel",l,[new b(L.center(t[0],t[1]),L.center(s[0],s[1]))])),h()},g=()=>{o=!1,S.inactivePreventDefaultPinchGesture()},T=l=>{if(s.length>1&&t.length>1&&n&&l instanceof TouchEvent&&l.touches.length>1){let w=l.touches.length,E=[],x=[],M=r.length;for(let z=0;z0&&r[M-1].equals(D))&&(c=!0,r.push(D),i.options.strict?i.dispatchEvent(e,new P("touchpinchmove",l,r)):$.scheduleTask(()=>{o&&i.dispatchEvent(e,new P("touchpinchmove",l,r))}))}},v=l=>{(!("cancelable"in l)||l.cancelable)&&l.preventDefault()};i.addEventListener(e,"contextmenu",v,{passive:!1}),i.addEventListener(e,"touchstart",u,{passive:!1}),i.addEventListener(e,"touchend",g,{passive:!1}),i.addEventListener(e,"touchcancel",g,{passive:!1}),i.addExtendedEvent(e,"touchpinch",{contextmenu:[v],touchstart:[u],touchend:[d,g],touchcancel:[p,g],touchmove:[T]})}}static addAppearanceChange(e){let t=matchMedia("(prefers-color-scheme: dark)"),n=r=>r.matches?F.Dark:F.Light,s=r=>{i.dispatchEvent(e,new R("appearancechange",r,{appearance:n(r)}))};t.addEventListener("change",s,{passive:!1}),i.options.callWhenAddedUIEvent&&i.dispatchEvent(e,new R("appearancechange",new MediaQueryListEvent("change"),{appearance:n(t)})),i.addExtendedEvent(t,"appearancechange",{change:[s]})}static addOrientationChange(e){let t=matchMedia("(orientation: portrait)"),n=r=>r.matches?W.Portrait:W.Landscape,s=r=>{i.dispatchEvent(e,new R("orientationchange",r,{orientation:n(r)}))};t.addEventListener("change",s,{passive:!1}),i.options.callWhenAddedUIEvent&&i.dispatchEvent(e,new R("appearancechange",new MediaQueryListEvent("change"),{appearance:n(t)})),i.addExtendedEvent(t,"orientationchange",{change:[s]})}static addResize(e){if(e===window||!("ResizeObserver"in window))return;let t=e,n=c=>{let o=()=>i.dispatchEvent(e,new R("resize",new Event("resize"),{size:new U(c)}));i.options.strict?o():$.scheduleTask(o)},s=!1,r;i.resizeObserver?r=i.resizeObserver:(r=new ResizeObserver(()=>{(s||i.options.callWhenAddedUIEvent)&&n(t),s=!0}),i.resizeObserver=r),r.observe(t),i.addExtendedEvent(e,"resize",{callback:()=>r.unobserve(t)})}static addIntersection(e){if(e===window||!("IntersectionObserver"in window))return;let t=e,n=c=>{let o=()=>i.dispatchEvent(e,new R("intersectionchange",new Event("intersectionchange"),{size:new U(c.intersectionRect),ration:c.intersectionRatio}));i.options.strict?o():$.scheduleTask(o)},s=!1,r;i.intersectionObserver?r=i.intersectionObserver:(r=new IntersectionObserver(c=>{if((s||i.options.callWhenAddedUIEvent)&&c.length>0){let o=c[0];n(o)}s=!0},{threshold:Array.from({length:1001},(c,o)=>o/1e3)}),i.intersectionObserver=r),r.observe(t),i.addExtendedEvent(e,"intersection",{callback:()=>{r.unobserve(t)}})}static toArray(e){return Array.isArray(e)?e:[e]}};f.ExtendedMouseEvent=A,f.ExtendedTouchEvent=P,f.ExtendedUIEvent=R,f.EventManager=N,f.EventPath=b,f.EventPathList=H,f.EventPosition=L,f.Direction=q,f.Appearance=F,f.Orientation=W,f.Size=U,EventTarget.prototype.on=function(a,e,t){N.on(this,a,e,t)},EventTarget.prototype.off=function(a,e,t){N.off(this,a,e,t)};var G=class extends Event{constructor(e,t){super("change"),this.value=t,this.elementValue=e[this.value]}},j=class a extends HTMLElement{constructor(){super(...arguments);this.loopSize=0;this.isRendering=!1;this.isPanning=!1;this.$isAnimating=!1;this.$length=0;this.$value=0;this.$curvature=20;this.$disabled=!1;this.$infinite=!1}static{this.TAG="cylinder-picker"}static{this.version=Y.version}get elementValue(){return this.querySelectorAll("li")[this.value]}get length(){return this.$length}get isAnimating(){return this.$isAnimating}get value(){return this.$value}set value(t){this.$value=t,this.render(t)}get curvature(){return this.$curvature}set curvature(t){this.$curvature=t,this.render()}get disabled(){return this.$disabled}set disabled(t){this.$disabled=t,this.render()}get infinite(){return this.$infinite}set infinite(t){this.$infinite=t,this.render()}set list(t){this.innerHTML="";let n="";for(let s of t)n+=`
  • ${s}
  • `;this.innerHTML+=n}set inertiaPanCallback(t){this.$inertiaPanCallback=t}getAttributeBoolean(t){return this.hasAttribute(t)&&this.getAttribute(t)!=="false"}getAttributeNumber(t,n){if(this.hasAttribute(t)){let s=Number(this.getAttribute(t));return isNaN(s)?n:s}return n}connectedCallback(){this.attachShadow({mode:"open"}),this.observer=new MutationObserver(t=>this.handleMutations(t)),this.observer.observe(this,{childList:!0,subtree:!0,attributes:!0}),this.value=this.getAttributeNumber("value",0),this.curvature=this.getAttributeNumber("curvature",20),this.disabled=this.getAttributeBoolean("disabled"),this.infinite=this.getAttributeBoolean("infinite")}disconnectedCallback(){this.observer?.disconnect()}static get observedAttributes(){return[]}handleMutations(t){t.forEach(n=>{switch(n.type){case"attributes":switch(n.attributeName){case"value":this.value=this.getAttributeNumber("value",0);break;case"curvature":this.curvature=this.getAttributeNumber("curvature",20);break;case"disabled":this.disabled=this.getAttributeBoolean("disabled");break;case"infinite":this.infinite=this.getAttributeBoolean("infinite");break;default:break}break;case"childList":this.render()}})}getStyle(){let t=u=>Math.cos(u*this.curvature*(Math.PI/180)),n=u=>{let d=t(u);return Number((d/(Math.abs(u)+1)**.5).toFixed(2))},s=u=>{let d=t(u);return Number((Math.sign(u)*(-100+50*d*2**d)).toFixed(2))},r=u=>{let d=t(u);return Number((.75*(1-d)).toFixed(2))},c=!0,o=0;for(;c;)o++,c=n(o)>0&&Math.abs(s(o))<90;let h=r(1+o);return`:host [data-cylinder] {top: 0;position: relative;display: inline-block;list-style: none;margin: 0 ${h}em 0 0;padding: 0;transition: opacity 0.1s;}:host [data-cylinder] [data-cylinder-depth]{opacity:0;transform:perspective(12.5em) rotateX(-90deg) translateX(${h}em);transform-origin: bottom left;}:host [data-cylinder] [data-cylinder-depth^="-"]{opacity:0;transform:perspective(12.5em) rotateX(90deg) translateX(${h}em);transform-origin: top right;}`+Array.from({length:o*2-1},(u,d)=>d-o+1).map(u=>`:host [data-cylinder] [data-cylinder-depth="${u}"]{opacity: ${Math.max(0,n(u))};transform: perspective(12.5em) rotateX(${Math.max(-90,Math.min(90,s(u)))}deg) translateX(${r(u)}em);transform-origin: ${u<0?"bottom right":u>0?"top right":"unset"};}`).join("")}static defineElement(){customElements.define(this.TAG,this)}render(t=this.value){this.didLoad().then(()=>{if(!this.shadowRoot)return;this.isRendering=!0;let n=Array.from(this.querySelectorAll("li"));this.$length=n.length,this.shadowRoot.innerHTML=`
      ${n.map(s=>{let r=document.styleSheets,c=s.getAttribute("style"),o="";for(let h=0;hh).map(h=>{let u=h.split(":"),d=u.splice(0,1).join("").trim(),p=u.join("").trim(),g=p.endsWith("!important");return{key:d,value:p,important:g}}).reduce((h,u)=>((u.important||!h[u.key])&&(h[u.key]=u.value),h),{})).map(h=>h[0]+":"+h[1]+";").join("")),s.outerHTML}).join("")}
    `,this.cylinder=this.shadowRoot.querySelector("[data-cylinder]"),this.setupCylinder(t),this.removeEvent(),this.disabled||this.addEvent()}).then(()=>this.isRendering=!0)}setupCylinder(t){if(!this.cylinder)return;let n=async s=>{if(!this.cylinder)return;if(this.isPanning){this.isPanning=!1;return}this.inertiaPan=void 0;let r=this.cylinder.querySelector('[data-cylinder-depth="0"]');if(r){let c=Array.from(this.cylinder.children),o=c.findIndex(u=>!u.hasAttribute("data-cylinder-padding")&&u===s),h=c.findIndex(u=>u===r);o>-1&&h>-1&&await this.next(o-h)}};if(this.inertiaPan&&(this.animationEndCallback=()=>this.updateCylinderChildren(0)),this.$isAnimating=!1,this.infinite){let s=[];this.loopSize=2**(3-Math.min(Number(this.$length).toString(2).length,3));for(let c=0;cthis.cylinder?.append(c)),this.adjustInfiniteCylinder(t);let r=0;for(let c of Array.from(this.cylinder.children))c instanceof HTMLElement&&(c.setAttribute("data-cylinder-depth",String(r-this.$length*this.loopSize)),r++,this.$disabled||(c.onclick=c.ontouchend=()=>n(c)));this.cylinder.style.transform=`translateY(calc(-${this.loopSize/(this.loopSize*2+1)*100}% + 4.425em))`}else{for(let r=0;r<3;r++){let c=document.createElement("li");c.setAttribute("data-cylinder-padding","true"),this.cylinder.insertBefore(c,this.cylinder.firstChild)}for(let r=0;r<3;r++){let c=document.createElement("li");c.setAttribute("data-cylinder-padding","true"),this.cylinder.append(c)}let s=0;for(let r of Array.from(this.cylinder.children))r instanceof HTMLElement&&(r.setAttribute("data-cylinder-depth",String(s-3-t)),s++,this.$disabled||(r.onclick=r.ontouchend=()=>n(r)));this.cylinder.style.transform=`translateY(${-.75-this.$value*1.724328}em)`}}stopInertia(){return new Promise(t=>{this.inertiaPan?(this.$inertiaPanCallback=()=>new Promise(()=>{t()}),this.inertiaPan=void 0):t()})}didLoad(){return Promise.all([new Promise(t=>{if(document.readyState==="complete")t();else{let n=()=>{window.off("load",n),t()};window.on("load",n)}}),customElements.whenDefined(a.TAG)])}updateCylinderChildren(t=0){this.cylinder&&Array.from(this.cylinder.children).forEach((n,s)=>{n.setAttribute("data-cylinder-depth",String(this.$infinite?s-(this.$length*this.loopSize+t):s-(3+this.$value)))})}updateCylinderPosition(t=0){this.cylinder&&(this.$infinite?this.cylinder.style.transform=`translateY(calc(-${this.loopSize/(this.loopSize*2+1)*100}% + ${4.425-t*1.724328}em))`:this.cylinder.style.transform=`translateY(${-.75-this.$value*1.724328}em)`)}up(t){if(this.cylinder)for(let n=0;nn?this.$value-n:this.$value+this.$length-n,r=this.$length-s;return s{if(!s&&(!this.cylinder||this.$length===0||this.$isAnimating)){r(this);return}this.$isAnimating=!0;let c=Math.sign(t);t=Math.round(t),this.$infinite?t=this.calculateDelta(t):t=Math.min(this.$length-this.$value-1,Math.max(-this.$value,t));let o=this.$length===1?c:t%this.$length;this.$value=(this.$value+o+this.$length)%this.$length;let h=Math.abs(t)*n;this.updateAnimationSpeed(h),this.updateCylinderChildren(o),this.updateCylinderPosition(o),setTimeout(()=>{this.infinite&&this.adjustInfiniteCylinder(o),o!==0&&this.dispatchEvent(new G(this.querySelectorAll("li"),this.value)),this.animationEndCallback&&(this.animationEndCallback(),this.animationEndCallback=void 0),setTimeout(()=>{this.$isAnimating=!1,this.updateCylinderChildren(0),r(this)})},h)})}adjustInfiniteCylinder(t){this.cylinder&&(t>0?this.down(t):t<0&&this.up(t),this.updateAnimationSpeed(0),this.$infinite?this.cylinder.style.transform=`translateY(calc(-${this.loopSize/(this.loopSize*2+1)*100}% + 4.425em))`:this.cylinder.style.transform=`translateY(${-.75+-this.$value*1.724328}em)`)}addEvent(){this.removeEvent();let t=0,n=0;this.onMouseAndTouchPanMove=o=>{if(o instanceof A||o instanceof P){let h=o.paths.last;if(h&&(t=h.dy,n+=t,Math.abs(n)>=10)){o instanceof P&&(this.isPanning=!0),n=0,s(t,100).then();return}}},this.onMouseAndTouchPanEnd=o=>{this.inertiaPan=()=>c()},this.onMouseDownOrTouchStart=o=>{this.inertiaPan=void 0},this.onWheel=o=>{o.preventDefault(),o instanceof WheelEvent&&(this.inertiaPan=void 0,r(o.deltaY).then())},this.on(["mousepanmove","touchpanmove"],this.onMouseAndTouchPanMove,{passive:!0}),this.on(["mousepanend","mousepanleave","touchpancancel","touchpanend"],this.onMouseAndTouchPanEnd,{passive:!0}),this.on(["mousedown","touchstart"],this.onMouseDownOrTouchStart,{passive:!0}),this.on(["wheel"],this.onWheel,{passive:!1});let s=async(o,h)=>{h||(h=125/Math.abs(o)),await this.next(-Math.sign(o),h),this.inertiaPan&&await this.inertiaPan()},r=async o=>{await this.next(Math.sign(o),Math.min(100,1e4/Math.abs(o)))},c=async()=>{Math.abs(t)===1/0&&(t=10*Math.sign(t)),Math.abs(t)>.5?(t=t*.875,await s(t)):(t=0,this.inertiaPan=void 0,this.$inertiaPanCallback&&(await this.$inertiaPanCallback(),this.$inertiaPanCallback=void 0))}}removeEvent(){this.onMouseAndTouchPanMove&&this.off(["mousepanmove","touchpanmove"],this.onMouseAndTouchPanMove,{passive:!0}),this.onMouseAndTouchPanEnd&&this.off(["mousepanend","mousepanleave","touchpancancel","touchpanend"],this.onMouseAndTouchPanEnd,{passive:!0}),this.onMouseDownOrTouchStart&&this.on(["mousedown","touchstart"],this.onMouseDownOrTouchStart,{passive:!0}),this.onWheel&&this.off(["wheel"],this.onWheel,{passive:!0})}};j.defineElement();K.HTMLCylinderPicker=j; //# sourceMappingURL=index.cjs.map