@anoki/fse-ui 1.0.760 → 1.0.761
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs121.js.map +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs371.js +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs416.js +2 -0
- package/dist/index.cjs416.js.map +1 -0
- package/dist/index.cjs417.js +2 -0
- package/dist/index.cjs417.js.map +1 -0
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs421.js.map +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs422.js.map +1 -1
- package/dist/{index.cjs428.js → index.cjs435.js} +1 -1
- package/dist/{index.cjs428.js.map → index.cjs435.js.map} +1 -1
- package/dist/{index.cjs429.js → index.cjs436.js} +2 -2
- package/dist/{index.cjs429.js.map → index.cjs436.js.map} +1 -1
- package/dist/{index.cjs430.js → index.cjs437.js} +1 -1
- package/dist/{index.cjs430.js.map → index.cjs437.js.map} +1 -1
- package/dist/{index.cjs431.js → index.cjs438.js} +2 -2
- package/dist/{index.cjs431.js.map → index.cjs438.js.map} +1 -1
- package/dist/{index.cjs432.js → index.cjs439.js} +2 -2
- package/dist/{index.cjs432.js.map → index.cjs439.js.map} +1 -1
- package/dist/{index.cjs433.js → index.cjs440.js} +1 -1
- package/dist/{index.cjs433.js.map → index.cjs440.js.map} +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +2 -0
- package/dist/index.cjs467.js.map +1 -0
- package/dist/index.cjs468.js +2 -0
- package/dist/index.cjs468.js.map +1 -0
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/index.cjs483.js +1 -1
- package/dist/index.cjs483.js.map +1 -1
- package/dist/index.cjs484.js +2 -0
- package/dist/index.cjs484.js.map +1 -0
- package/dist/index.cjs485.js +2 -0
- package/dist/index.cjs485.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es276.js +7 -7
- package/dist/index.es342.js +1 -1
- package/dist/index.es370.js +2 -2
- package/dist/index.es371.js +3 -3
- package/dist/index.es399.js +1 -1
- package/dist/index.es400.js +1 -1
- package/dist/index.es401.js +12 -12
- package/dist/index.es402.js +1 -1
- package/dist/index.es408.js +1 -1
- package/dist/index.es409.js +1 -1
- package/dist/index.es416.js +128 -0
- package/dist/index.es416.js.map +1 -0
- package/dist/index.es417.js +138 -0
- package/dist/index.es417.js.map +1 -0
- package/dist/index.es418.js +13 -124
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +14 -134
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +7 -12
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es421.js +50 -15
- package/dist/index.es421.js.map +1 -1
- package/dist/index.es422.js +53 -9
- package/dist/index.es422.js.map +1 -1
- package/dist/{index.es428.js → index.es435.js} +1 -1
- package/dist/{index.es428.js.map → index.es435.js.map} +1 -1
- package/dist/{index.es429.js → index.es436.js} +2 -2
- package/dist/{index.es429.js.map → index.es436.js.map} +1 -1
- package/dist/{index.es430.js → index.es437.js} +1 -1
- package/dist/{index.es430.js.map → index.es437.js.map} +1 -1
- package/dist/{index.es431.js → index.es438.js} +3 -3
- package/dist/{index.es431.js.map → index.es438.js.map} +1 -1
- package/dist/{index.es432.js → index.es439.js} +4 -4
- package/dist/{index.es432.js.map → index.es439.js.map} +1 -1
- package/dist/{index.es433.js → index.es440.js} +1 -1
- package/dist/{index.es433.js.map → index.es440.js.map} +1 -1
- package/dist/index.es441.js +1 -1
- package/dist/index.es457.js +1 -1
- package/dist/index.es458.js +1 -1
- package/dist/index.es465.js +20 -25
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +12 -4
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +31 -0
- package/dist/index.es467.js.map +1 -0
- package/dist/index.es468.js +8 -0
- package/dist/index.es468.js.map +1 -0
- package/dist/index.es469.js +2 -2
- package/dist/index.es479.js +3 -3
- package/dist/index.es482.js +9 -3
- package/dist/index.es482.js.map +1 -1
- package/dist/index.es483.js +171 -126
- package/dist/index.es483.js.map +1 -1
- package/dist/index.es484.js +7 -0
- package/dist/index.es484.js.map +1 -0
- package/dist/index.es485.js +136 -0
- package/dist/index.es485.js.map +1 -0
- package/package.json +1 -1
- package/dist/index.cjs423.js +0 -2
- package/dist/index.cjs423.js.map +0 -1
- package/dist/index.cjs424.js +0 -2
- package/dist/index.cjs424.js.map +0 -1
- package/dist/index.cjs463.js +0 -2
- package/dist/index.cjs463.js.map +0 -1
- package/dist/index.cjs464.js +0 -2
- package/dist/index.cjs464.js.map +0 -1
- package/dist/index.cjs480.js +0 -2
- package/dist/index.cjs480.js.map +0 -1
- package/dist/index.cjs481.js +0 -2
- package/dist/index.cjs481.js.map +0 -1
- package/dist/index.es423.js +0 -53
- package/dist/index.es423.js.map +0 -1
- package/dist/index.es424.js +0 -56
- package/dist/index.es424.js.map +0 -1
- package/dist/index.es463.js +0 -26
- package/dist/index.es463.js.map +0 -1
- package/dist/index.es464.js +0 -16
- package/dist/index.es464.js.map +0 -1
- package/dist/index.es480.js +0 -13
- package/dist/index.es480.js.map +0 -1
- package/dist/index.es481.js +0 -181
- package/dist/index.es481.js.map +0 -1
package/dist/index.cjs481.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs483.js");function y(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function S(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function E(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function T(){return Date.now()}function b(e){const t=a.a();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function x(e,t){t===void 0&&(t="x");const r=a.a();let n,o,l;const s=b(e);return r.WebKitCSSMatrix?(o=s.transform||s.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(i=>i.replace(",",".")).join(", ")),l=new r.WebKitCSSMatrix(o==="none"?"":o)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),t==="y"&&(r.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function u(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function M(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const n=r<0||arguments.length<=r?void 0:arguments[r];if(n!=null&&!M(n)){const o=Object.keys(Object(n)).filter(l=>t.indexOf(l)<0);for(let l=0,s=o.length;l<s;l+=1){const i=o[l],f=Object.getOwnPropertyDescriptor(n,i);f!==void 0&&f.enumerable&&(u(e[i])&&u(n[i])?n[i].__swiper__?e[i]=n[i]:p(e[i],n[i]):!u(e[i])&&u(n[i])?(e[i]={},n[i].__swiper__?e[i]=n[i]:p(e[i],n[i])):e[i]=n[i])}}}return e}function v(e,t,r){e.style.setProperty(t,r)}function C(e){let{swiper:t,targetPosition:r,side:n}=e;const o=a.a(),l=-t.translate;let s=null,i;const f=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const h=r>l?"next":"prev",w=(m,d)=>h==="next"&&m>=d||h==="prev"&&m<=d,g=()=>{i=new Date().getTime(),s===null&&(s=i);const m=Math.max(Math.min((i-s)/f,1),0),d=.5-Math.cos(m*Math.PI)/2;let c=l+d*(r-l);if(w(c,r)&&(c=r),t.wrapperEl.scrollTo({[n]:c}),w(c,r)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:c})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(g)};g()}function O(e,t){t===void 0&&(t="");const r=a.a(),n=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(o=>o.matches(t)):n}function P(e,t){const r=[t];for(;r.length>0;){const n=r.shift();if(e===n)return!0;r.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function j(e,t){const r=a.a();let n=t.contains(e);return!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=P(e,t))),n}function _(e){try{console.warn(e);return}catch{}}function F(e,t){t===void 0&&(t=[]);const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:y(t)),r}function A(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function I(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function k(e,t){return a.a().getComputedStyle(e,null).getPropertyValue(t)}function H(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function L(e,t){const r=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&r.push(n):r.push(n),n=n.parentElement;return r}function W(e,t,r){const n=a.a();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function D(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}exports.a=L;exports.c=F;exports.d=T;exports.e=O;exports.f=W;exports.h=H;exports.i=y;exports.j=x;exports.l=u;exports.m=D;exports.n=E;exports.p=k;exports.q=I;exports.r=A;exports.s=v;exports.t=C;exports.u=_;exports.v=j;exports.w=p;exports.x=S;
|
2
|
-
//# sourceMappingURL=index.cjs481.js.map
|
package/dist/index.cjs481.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs481.js","sources":["../node_modules/swiper/shared/utils.mjs"],"sourcesContent":["import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction classesToTokens(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return classes.trim().split(' ').filter(c => !!c.trim());\n}\n\nfunction deleteProps(obj) {\n const object = obj;\n Object.keys(object).forEach(key => {\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction nextTick(callback, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setTimeout(callback, delay);\n}\nfunction now() {\n return Date.now();\n}\nfunction getComputedStyle(el) {\n const window = getWindow();\n let style;\n if (window.getComputedStyle) {\n style = window.getComputedStyle(el, null);\n }\n if (!style && el.currentStyle) {\n style = el.currentStyle;\n }\n if (!style) {\n style = el.style;\n }\n return style;\n}\nfunction getTranslate(el, axis) {\n if (axis === void 0) {\n axis = 'x';\n }\n const window = getWindow();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = getComputedStyle(el);\n if (window.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(',').length > 6) {\n curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n }\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n matrix = transformMatrix.toString().split(',');\n }\n if (axis === 'x') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === 'y') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction isObject(o) {\n return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n return node instanceof HTMLElement;\n }\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend() {\n const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n for (let i = 1; i < arguments.length; i += 1) {\n const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);\n for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n }\n return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll(_ref) {\n let {\n swiper,\n targetPosition,\n side\n } = _ref;\n const window = getWindow();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = 'none';\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? 'next' : 'prev';\n const isOutOfBound = (current, target) => {\n return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n };\n const animate = () => {\n time = new Date().getTime();\n if (startTime === null) {\n startTime = time;\n }\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) {\n currentPosition = targetPosition;\n }\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.scrollSnapType = '';\n setTimeout(() => {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction getSlideTransformEl(slideEl) {\n return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector) {\n if (selector === void 0) {\n selector = '';\n }\n const window = getWindow();\n const children = [...element.children];\n if (window.HTMLSlotElement && element instanceof HTMLSlotElement) {\n children.push(...element.assignedElements());\n }\n if (!selector) {\n return children;\n }\n return children.filter(el => el.matches(selector));\n}\nfunction elementIsChildOfSlot(el, slot) {\n // Breadth-first search through all parent's children and assigned elements\n const elementsQueue = [slot];\n while (elementsQueue.length > 0) {\n const elementToCheck = elementsQueue.shift();\n if (el === elementToCheck) {\n return true;\n }\n elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []), ...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []));\n }\n}\nfunction elementIsChildOf(el, parent) {\n const window = getWindow();\n let isChild = parent.contains(el);\n if (!isChild && window.HTMLSlotElement && parent instanceof HTMLSlotElement) {\n const children = [...parent.assignedElements()];\n isChild = children.includes(el);\n if (!isChild) {\n isChild = elementIsChildOfSlot(el, parent);\n }\n }\n return isChild;\n}\nfunction showWarning(text) {\n try {\n console.warn(text);\n return;\n } catch (err) {\n // err\n }\n}\nfunction createElement(tag, classes) {\n if (classes === void 0) {\n classes = [];\n }\n const el = document.createElement(tag);\n el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));\n return el;\n}\nfunction elementOffset(el) {\n const window = getWindow();\n const document = getDocument();\n const box = el.getBoundingClientRect();\n const body = document.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window ? window.scrollY : el.scrollTop;\n const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction elementPrevAll(el, selector) {\n const prevEls = [];\n while (el.previousElementSibling) {\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction elementNextAll(el, selector) {\n const nextEls = [];\n while (el.nextElementSibling) {\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction elementStyle(el, prop) {\n const window = getWindow();\n return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while ((child = child.previousSibling) !== null) {\n if (child.nodeType === 1) i += 1;\n }\n return i;\n }\n return undefined;\n}\nfunction elementParents(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while (parent) {\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else {\n parents.push(parent);\n }\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener('transitionend', fireCallBack);\n }\n if (callback) {\n el.addEventListener('transitionend', fireCallBack);\n }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n const window = getWindow();\n if (includeMargins) {\n return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n }\n return el.offsetWidth;\n}\nfunction makeElementsArray(el) {\n return (Array.isArray(el) ? el : [el]).filter(e => !!e);\n}\nfunction getRotateFix(swiper) {\n return v => {\n if (Math.abs(v) > 0 && swiper.browser && swiper.browser.need3dFix && Math.abs(v) % 90 === 0) {\n return v + 0.001;\n }\n return v;\n };\n}\n\nexport { elementParents as a, elementOffset as b, createElement as c, now as d, elementChildren as e, elementOuterSize as f, getSlideTransformEl as g, elementIndex as h, classesToTokens as i, getTranslate as j, elementTransitionEnd as k, isObject as l, makeElementsArray as m, nextTick as n, getRotateFix as o, elementStyle as p, elementNextAll as q, elementPrevAll as r, setCSSProperty as s, animateCSSModeScroll as t, showWarning as u, elementIsChildOf as v, extend as w, deleteProps as x };\n"],"names":["classesToTokens","classes","c","deleteProps","obj","object","key","nextTick","callback","delay","now","getComputedStyle","el","window","getWindow","style","getTranslate","axis","matrix","curTransform","transformMatrix","curStyle","a","isObject","o","isNode","node","extend","to","noExtend","i","nextSource","keysArray","nextIndex","len","nextKey","desc","setCSSProperty","varName","varValue","animateCSSModeScroll","_ref","swiper","targetPosition","side","startPosition","startTime","time","duration","dir","isOutOfBound","current","target","animate","progress","easeProgress","currentPosition","elementChildren","element","selector","children","elementIsChildOfSlot","slot","elementsQueue","elementToCheck","elementIsChildOf","parent","isChild","showWarning","text","createElement","tag","elementPrevAll","prevEls","prev","elementNextAll","nextEls","next","elementStyle","prop","elementIndex","child","elementParents","parents","elementOuterSize","size","includeMargins","makeElementsArray","e"],"mappings":"qHAEA,SAASA,EAAgBC,EAAS,CAChC,OAAIA,IAAY,SACdA,EAAU,IAELA,EAAQ,OAAO,MAAM,GAAG,EAAE,OAAOC,GAAK,CAAC,CAACA,EAAE,KAAI,CAAE,CACzD,CAEA,SAASC,EAAYC,EAAK,CACxB,MAAMC,EAASD,EACf,OAAO,KAAKC,CAAM,EAAE,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,EAAQ,KAAKjB,CAAM,EAEjDiB,EAAQ,KAAKjB,CAAM,EAErBA,EAASA,EAAO,cAElB,OAAOiB,CACT,CAWA,SAASC,EAAiBxE,EAAIyE,EAAMC,EAAgB,CAClD,MAAMzE,EAASC,EAAAA,EAAW,EAExB,OAAOF,EAAGyE,IAAS,QAAU,cAAgB,cAAc,EAAI,WAAWxE,EAAO,iBAAiBD,EAAI,IAAI,EAAE,iBAAiByE,IAAS,QAAU,eAAiB,YAAY,CAAC,EAAI,WAAWxE,EAAO,iBAAiBD,EAAI,IAAI,EAAE,iBAAiByE,IAAS,QAAU,cAAgB,eAAe,CAAC,CAGvS,CACA,SAASE,EAAkB3E,EAAI,CAC7B,OAAQ,MAAM,QAAQA,CAAE,EAAIA,EAAK,CAACA,CAAE,GAAG,OAAO4E,GAAK,CAAC,CAACA,CAAC,CACxD","x_google_ignoreList":[0]}
|
package/dist/index.es423.js
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
var S = function(r) {
|
2
|
-
if (typeof document > "u")
|
3
|
-
return null;
|
4
|
-
var u = Array.isArray(r) ? r[0] : r;
|
5
|
-
return u.ownerDocument.body;
|
6
|
-
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
7
|
-
return r && (r.host || W(r.parentNode));
|
8
|
-
}, D = function(r, u) {
|
9
|
-
return u.map(function(e) {
|
10
|
-
if (r.contains(e))
|
11
|
-
return e;
|
12
|
-
var n = W(e);
|
13
|
-
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
14
|
-
}).filter(function(e) {
|
15
|
-
return !!e;
|
16
|
-
});
|
17
|
-
}, E = function(r, u, e, n) {
|
18
|
-
var i = D(u, Array.isArray(r) ? r : [r]);
|
19
|
-
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
20
|
-
var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
21
|
-
!t || s.has(t) || (s.add(t), y(t.parentNode));
|
22
|
-
};
|
23
|
-
i.forEach(y);
|
24
|
-
var A = function(t) {
|
25
|
-
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
26
|
-
if (s.has(a))
|
27
|
-
A(a);
|
28
|
-
else
|
29
|
-
try {
|
30
|
-
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
|
31
|
-
f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
32
|
-
} catch (k) {
|
33
|
-
console.error("aria-hidden: cannot operate on ", a, k);
|
34
|
-
}
|
35
|
-
});
|
36
|
-
};
|
37
|
-
return A(u), s.clear(), h++, function() {
|
38
|
-
l.forEach(function(t) {
|
39
|
-
var a = f.get(t) - 1, c = o.get(t) - 1;
|
40
|
-
f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
41
|
-
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
42
|
-
};
|
43
|
-
}, C = function(r, u, e) {
|
44
|
-
e === void 0 && (e = "data-aria-hidden");
|
45
|
-
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
46
|
-
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
|
47
|
-
return null;
|
48
|
-
};
|
49
|
-
};
|
50
|
-
export {
|
51
|
-
C as hideOthers
|
52
|
-
};
|
53
|
-
//# sourceMappingURL=index.es423.js.map
|
package/dist/index.es423.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es423.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EACF,IAAI,SAAUC,GAAQ;AACvB,QAAIF,EAAO,SAASE,CAAM;AACtB,aAAOA;AAEX,QAAIC,IAAkBN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l from "react";
|
2
|
-
import { composeRefs as y } from "./index.es397.js";
|
3
|
-
import { j as f } from "./index.es216.js";
|
4
|
-
// @__NO_SIDE_EFFECTS__
|
5
|
-
function b(e) {
|
6
|
-
const t = /* @__PURE__ */ S(e), o = l.forwardRef((n, r) => {
|
7
|
-
const { children: i, ...a } = n, s = l.Children.toArray(i), p = s.find(g);
|
8
|
-
if (p) {
|
9
|
-
const c = p.props.children, m = s.map((u) => u === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
10
|
-
return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: l.isValidElement(c) ? l.cloneElement(c, void 0, m) : null });
|
11
|
-
}
|
12
|
-
return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: i });
|
13
|
-
});
|
14
|
-
return o.displayName = `${e}.Slot`, o;
|
15
|
-
}
|
16
|
-
// @__NO_SIDE_EFFECTS__
|
17
|
-
function S(e) {
|
18
|
-
const t = l.forwardRef((o, n) => {
|
19
|
-
const { children: r, ...i } = o;
|
20
|
-
if (l.isValidElement(r)) {
|
21
|
-
const a = x(r), s = E(i, r.props);
|
22
|
-
return r.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(r, s);
|
23
|
-
}
|
24
|
-
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
25
|
-
});
|
26
|
-
return t.displayName = `${e}.SlotClone`, t;
|
27
|
-
}
|
28
|
-
var d = Symbol("radix.slottable");
|
29
|
-
// @__NO_SIDE_EFFECTS__
|
30
|
-
function h(e) {
|
31
|
-
const t = ({ children: o }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: o });
|
32
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
|
33
|
-
}
|
34
|
-
function g(e) {
|
35
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
|
36
|
-
}
|
37
|
-
function E(e, t) {
|
38
|
-
const o = { ...t };
|
39
|
-
for (const n in t) {
|
40
|
-
const r = e[n], i = t[n];
|
41
|
-
/^on[A-Z]/.test(n) ? r && i ? o[n] = (...s) => {
|
42
|
-
i(...s), r(...s);
|
43
|
-
} : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
|
44
|
-
}
|
45
|
-
return { ...e, ...o };
|
46
|
-
}
|
47
|
-
function x(e) {
|
48
|
-
var n, r;
|
49
|
-
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
50
|
-
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
51
|
-
}
|
52
|
-
export {
|
53
|
-
b as createSlot,
|
54
|
-
h as createSlottable
|
55
|
-
};
|
56
|
-
//# sourceMappingURL=index.es424.js.map
|
package/dist/index.es424.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es424.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,QAAID,GAAW;AACb,YAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,aAAuBC,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAA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AAE,GAAGD,EAAY;AACvC,aAAWE,KAAYF,GAAY;AACjC,UAAMG,IAAgBpB,EAAUmB,CAAQ,GAClCE,IAAiBJ,EAAWE,CAAQ;AAE1C,IADkB,WAAW,KAAKA,CAAQ,IAEpCC,KAAiBC,IACnBH,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,MAAAD,EAAe,GAAGC,CAAI,GACtBF,EAAc,GAAGE,CAAI;AAAA,IACtB,IACQF,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAgB,IACxDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGrB,GAAW,GAAGkB,EAAe;AAC3C;AACA,SAAST,EAAcc,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
package/dist/index.es463.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
var a = {
|
2
|
-
left: 0,
|
3
|
-
top: 0,
|
4
|
-
right: 0,
|
5
|
-
gap: 0
|
6
|
-
}, e = function(t) {
|
7
|
-
return parseInt(t || "", 10) || 0;
|
8
|
-
}, o = function(t) {
|
9
|
-
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
10
|
-
return [e(i), e(r), e(d)];
|
11
|
-
}, f = function(t) {
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
13
|
-
return a;
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
15
|
-
return {
|
16
|
-
left: n[0],
|
17
|
-
top: n[1],
|
18
|
-
right: n[2],
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
20
|
-
};
|
21
|
-
};
|
22
|
-
export {
|
23
|
-
f as getGapWidth,
|
24
|
-
a as zeroGap
|
25
|
-
};
|
26
|
-
//# sourceMappingURL=index.es463.js.map
|
package/dist/index.es463.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es463.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAI,GAC3DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EACzE;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es464.js
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
import * as o from "react";
|
2
|
-
import { stylesheetSingleton as r } from "./index.es465.js";
|
3
|
-
var i = function() {
|
4
|
-
var t = r();
|
5
|
-
return function(e, n) {
|
6
|
-
o.useEffect(function() {
|
7
|
-
return t.add(e), function() {
|
8
|
-
t.remove();
|
9
|
-
};
|
10
|
-
}, [e && n]);
|
11
|
-
};
|
12
|
-
};
|
13
|
-
export {
|
14
|
-
i as styleHookSingleton
|
15
|
-
};
|
16
|
-
//# sourceMappingURL=index.es464.js.map
|
package/dist/index.es464.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es464.js","sources":["../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAqB;AACjC,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAQ;AAAA,MACjB;AAAA,IACb,GAAW,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC3B;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es480.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { e as i, c as m } from "./index.es481.js";
|
2
|
-
function o(f, a, n, l) {
|
3
|
-
return f.params.createElements && Object.keys(l).forEach((e) => {
|
4
|
-
if (!n[e] && n.auto === !0) {
|
5
|
-
let t = i(f.el, `.${l[e]}`)[0];
|
6
|
-
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
7
|
-
}
|
8
|
-
}), n;
|
9
|
-
}
|
10
|
-
export {
|
11
|
-
o as c
|
12
|
-
};
|
13
|
-
//# sourceMappingURL=index.es480.js.map
|
package/dist/index.es480.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es480.js","sources":["../node_modules/swiper/shared/create-element-if-not-defined.mjs"],"sourcesContent":["import { e as elementChildren, c as createElement } from './utils.mjs';\n\nfunction createElementIfNotDefined(swiper, originalParams, params, checkProps) {\n if (swiper.params.createElements) {\n Object.keys(checkProps).forEach(key => {\n if (!params[key] && params.auto === true) {\n let element = elementChildren(swiper.el, `.${checkProps[key]}`)[0];\n if (!element) {\n element = createElement('div', checkProps[key]);\n element.className = checkProps[key];\n swiper.el.append(element);\n }\n params[key] = element;\n originalParams[key] = element;\n }\n });\n }\n return params;\n}\n\nexport { createElementIfNotDefined as c };\n"],"names":["createElementIfNotDefined","swiper","originalParams","params","checkProps","key","element","elementChildren","createElement"],"mappings":";AAEA,SAASA,EAA0BC,GAAQC,GAAgBC,GAAQC,GAAY;AAC7E,SAAIH,EAAO,OAAO,kBAChB,OAAO,KAAKG,CAAU,EAAE,QAAQ,CAAAC,MAAO;AACrC,QAAI,CAACF,EAAOE,CAAG,KAAKF,EAAO,SAAS,IAAM;AACxC,UAAIG,IAAUC,EAAgBN,EAAO,IAAI,IAAIG,EAAWC,CAAG,CAAC,EAAE,EAAE,CAAC;AACjE,MAAKC,MACHA,IAAUE,EAAc,OAAOJ,EAAWC,CAAG,CAAC,GAC9CC,EAAQ,YAAYF,EAAWC,CAAG,GAClCJ,EAAO,GAAG,OAAOK,CAAO,IAE1BH,EAAOE,CAAG,IAAIC,GACdJ,EAAeG,CAAG,IAAIC;AAAA,IAC9B;AAAA,EACA,CAAK,GAEIH;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es481.js
DELETED
@@ -1,181 +0,0 @@
|
|
1
|
-
import { a } from "./index.es483.js";
|
2
|
-
function y(e) {
|
3
|
-
return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
|
4
|
-
}
|
5
|
-
function b(e) {
|
6
|
-
const t = e;
|
7
|
-
Object.keys(t).forEach((r) => {
|
8
|
-
try {
|
9
|
-
t[r] = null;
|
10
|
-
} catch {
|
11
|
-
}
|
12
|
-
try {
|
13
|
-
delete t[r];
|
14
|
-
} catch {
|
15
|
-
}
|
16
|
-
});
|
17
|
-
}
|
18
|
-
function M(e, t) {
|
19
|
-
return t === void 0 && (t = 0), setTimeout(e, t);
|
20
|
-
}
|
21
|
-
function C() {
|
22
|
-
return Date.now();
|
23
|
-
}
|
24
|
-
function S(e) {
|
25
|
-
const t = a();
|
26
|
-
let r;
|
27
|
-
return t.getComputedStyle && (r = t.getComputedStyle(e, null)), !r && e.currentStyle && (r = e.currentStyle), r || (r = e.style), r;
|
28
|
-
}
|
29
|
-
function v(e, t) {
|
30
|
-
t === void 0 && (t = "x");
|
31
|
-
const r = a();
|
32
|
-
let n, o, s;
|
33
|
-
const l = S(e);
|
34
|
-
return r.WebKitCSSMatrix ? (o = l.transform || l.webkitTransform, o.split(",").length > 6 && (o = o.split(", ").map((i) => i.replace(",", ".")).join(", ")), s = new r.WebKitCSSMatrix(o === "none" ? "" : o)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = s.toString().split(",")), t === "x" && (r.WebKitCSSMatrix ? o = s.m41 : n.length === 16 ? o = parseFloat(n[12]) : o = parseFloat(n[4])), t === "y" && (r.WebKitCSSMatrix ? o = s.m42 : n.length === 16 ? o = parseFloat(n[13]) : o = parseFloat(n[5])), o || 0;
|
35
|
-
}
|
36
|
-
function d(e) {
|
37
|
-
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
38
|
-
}
|
39
|
-
function E(e) {
|
40
|
-
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
41
|
-
}
|
42
|
-
function g() {
|
43
|
-
const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
|
44
|
-
for (let r = 1; r < arguments.length; r += 1) {
|
45
|
-
const n = r < 0 || arguments.length <= r ? void 0 : arguments[r];
|
46
|
-
if (n != null && !E(n)) {
|
47
|
-
const o = Object.keys(Object(n)).filter((s) => t.indexOf(s) < 0);
|
48
|
-
for (let s = 0, l = o.length; s < l; s += 1) {
|
49
|
-
const i = o[s], u = Object.getOwnPropertyDescriptor(n, i);
|
50
|
-
u !== void 0 && u.enumerable && (d(e[i]) && d(n[i]) ? n[i].__swiper__ ? e[i] = n[i] : g(e[i], n[i]) : !d(e[i]) && d(n[i]) ? (e[i] = {}, n[i].__swiper__ ? e[i] = n[i] : g(e[i], n[i])) : e[i] = n[i]);
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
return e;
|
55
|
-
}
|
56
|
-
function O(e, t, r) {
|
57
|
-
e.style.setProperty(t, r);
|
58
|
-
}
|
59
|
-
function P(e) {
|
60
|
-
let {
|
61
|
-
swiper: t,
|
62
|
-
targetPosition: r,
|
63
|
-
side: n
|
64
|
-
} = e;
|
65
|
-
const o = a(), s = -t.translate;
|
66
|
-
let l = null, i;
|
67
|
-
const u = t.params.speed;
|
68
|
-
t.wrapperEl.style.scrollSnapType = "none", o.cancelAnimationFrame(t.cssModeFrameID);
|
69
|
-
const p = r > s ? "next" : "prev", h = (f, m) => p === "next" && f >= m || p === "prev" && f <= m, w = () => {
|
70
|
-
i = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = i);
|
71
|
-
const f = Math.max(Math.min((i - l) / u, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
|
72
|
-
let c = s + m * (r - s);
|
73
|
-
if (h(c, r) && (c = r), t.wrapperEl.scrollTo({
|
74
|
-
[n]: c
|
75
|
-
}), h(c, r)) {
|
76
|
-
t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
77
|
-
t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
|
78
|
-
[n]: c
|
79
|
-
});
|
80
|
-
}), o.cancelAnimationFrame(t.cssModeFrameID);
|
81
|
-
return;
|
82
|
-
}
|
83
|
-
t.cssModeFrameID = o.requestAnimationFrame(w);
|
84
|
-
};
|
85
|
-
w();
|
86
|
-
}
|
87
|
-
function j(e, t) {
|
88
|
-
t === void 0 && (t = "");
|
89
|
-
const r = a(), n = [...e.children];
|
90
|
-
return r.HTMLSlotElement && e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((o) => o.matches(t)) : n;
|
91
|
-
}
|
92
|
-
function T(e, t) {
|
93
|
-
const r = [t];
|
94
|
-
for (; r.length > 0; ) {
|
95
|
-
const n = r.shift();
|
96
|
-
if (e === n)
|
97
|
-
return !0;
|
98
|
-
r.push(...n.children, ...n.shadowRoot ? n.shadowRoot.children : [], ...n.assignedElements ? n.assignedElements() : []);
|
99
|
-
}
|
100
|
-
}
|
101
|
-
function F(e, t) {
|
102
|
-
const r = a();
|
103
|
-
let n = t.contains(e);
|
104
|
-
return !n && r.HTMLSlotElement && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n || (n = T(e, t))), n;
|
105
|
-
}
|
106
|
-
function _(e) {
|
107
|
-
try {
|
108
|
-
console.warn(e);
|
109
|
-
return;
|
110
|
-
} catch {
|
111
|
-
}
|
112
|
-
}
|
113
|
-
function A(e, t) {
|
114
|
-
t === void 0 && (t = []);
|
115
|
-
const r = document.createElement(e);
|
116
|
-
return r.classList.add(...Array.isArray(t) ? t : y(t)), r;
|
117
|
-
}
|
118
|
-
function I(e, t) {
|
119
|
-
const r = [];
|
120
|
-
for (; e.previousElementSibling; ) {
|
121
|
-
const n = e.previousElementSibling;
|
122
|
-
t ? n.matches(t) && r.push(n) : r.push(n), e = n;
|
123
|
-
}
|
124
|
-
return r;
|
125
|
-
}
|
126
|
-
function k(e, t) {
|
127
|
-
const r = [];
|
128
|
-
for (; e.nextElementSibling; ) {
|
129
|
-
const n = e.nextElementSibling;
|
130
|
-
t ? n.matches(t) && r.push(n) : r.push(n), e = n;
|
131
|
-
}
|
132
|
-
return r;
|
133
|
-
}
|
134
|
-
function H(e, t) {
|
135
|
-
return a().getComputedStyle(e, null).getPropertyValue(t);
|
136
|
-
}
|
137
|
-
function L(e) {
|
138
|
-
let t = e, r;
|
139
|
-
if (t) {
|
140
|
-
for (r = 0; (t = t.previousSibling) !== null; )
|
141
|
-
t.nodeType === 1 && (r += 1);
|
142
|
-
return r;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
function W(e, t) {
|
146
|
-
const r = [];
|
147
|
-
let n = e.parentElement;
|
148
|
-
for (; n; )
|
149
|
-
t ? n.matches(t) && r.push(n) : r.push(n), n = n.parentElement;
|
150
|
-
return r;
|
151
|
-
}
|
152
|
-
function D(e, t, r) {
|
153
|
-
const n = a();
|
154
|
-
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
155
|
-
}
|
156
|
-
function K(e) {
|
157
|
-
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
158
|
-
}
|
159
|
-
export {
|
160
|
-
W as a,
|
161
|
-
A as c,
|
162
|
-
C as d,
|
163
|
-
j as e,
|
164
|
-
D as f,
|
165
|
-
L as h,
|
166
|
-
y as i,
|
167
|
-
v as j,
|
168
|
-
d as l,
|
169
|
-
K as m,
|
170
|
-
M as n,
|
171
|
-
H as p,
|
172
|
-
k as q,
|
173
|
-
I as r,
|
174
|
-
O as s,
|
175
|
-
P as t,
|
176
|
-
_ as u,
|
177
|
-
F as v,
|
178
|
-
g as w,
|
179
|
-
b as x
|
180
|
-
};
|
181
|
-
//# sourceMappingURL=index.es481.js.map
|
package/dist/index.es481.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es481.js","sources":["../node_modules/swiper/shared/utils.mjs"],"sourcesContent":["import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction classesToTokens(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return classes.trim().split(' ').filter(c => !!c.trim());\n}\n\nfunction deleteProps(obj) {\n const object = obj;\n Object.keys(object).forEach(key => {\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction nextTick(callback, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setTimeout(callback, delay);\n}\nfunction now() {\n return Date.now();\n}\nfunction getComputedStyle(el) {\n const window = getWindow();\n let style;\n if (window.getComputedStyle) {\n style = window.getComputedStyle(el, null);\n }\n if (!style && el.currentStyle) {\n style = el.currentStyle;\n }\n if (!style) {\n style = el.style;\n }\n return style;\n}\nfunction getTranslate(el, axis) {\n if (axis === void 0) {\n axis = 'x';\n }\n const window = getWindow();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = getComputedStyle(el);\n if (window.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(',').length > 6) {\n curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n }\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n matrix = transformMatrix.toString().split(',');\n }\n if (axis === 'x') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === 'y') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction isObject(o) {\n return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n return node instanceof HTMLElement;\n }\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend() {\n const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n for (let i = 1; i < arguments.length; i += 1) {\n const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);\n for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n }\n return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll(_ref) {\n let {\n swiper,\n targetPosition,\n side\n } = _ref;\n const window = getWindow();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = 'none';\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? 'next' : 'prev';\n const isOutOfBound = (current, target) => {\n return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n };\n const animate = () => {\n time = new Date().getTime();\n if (startTime === null) {\n startTime = time;\n }\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) {\n currentPosition = targetPosition;\n }\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.scrollSnapType = '';\n setTimeout(() => {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction getSlideTransformEl(slideEl) {\n return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector) {\n if (selector === void 0) {\n selector = '';\n }\n const window = getWindow();\n const children = [...element.children];\n if (window.HTMLSlotElement && element instanceof HTMLSlotElement) {\n children.push(...element.assignedElements());\n }\n if (!selector) {\n return children;\n }\n return children.filter(el => el.matches(selector));\n}\nfunction elementIsChildOfSlot(el, slot) {\n // Breadth-first search through all parent's children and assigned elements\n const elementsQueue = [slot];\n while (elementsQueue.length > 0) {\n const elementToCheck = elementsQueue.shift();\n if (el === elementToCheck) {\n return true;\n }\n elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []), ...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []));\n }\n}\nfunction elementIsChildOf(el, parent) {\n const window = getWindow();\n let isChild = parent.contains(el);\n if (!isChild && window.HTMLSlotElement && parent instanceof HTMLSlotElement) {\n const children = [...parent.assignedElements()];\n isChild = children.includes(el);\n if (!isChild) {\n isChild = elementIsChildOfSlot(el, parent);\n }\n }\n return isChild;\n}\nfunction showWarning(text) {\n try {\n console.warn(text);\n return;\n } catch (err) {\n // err\n }\n}\nfunction createElement(tag, classes) {\n if (classes === void 0) {\n classes = [];\n }\n const el = document.createElement(tag);\n el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));\n return el;\n}\nfunction elementOffset(el) {\n const window = getWindow();\n const document = getDocument();\n const box = el.getBoundingClientRect();\n const body = document.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window ? window.scrollY : el.scrollTop;\n const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction elementPrevAll(el, selector) {\n const prevEls = [];\n while (el.previousElementSibling) {\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction elementNextAll(el, selector) {\n const nextEls = [];\n while (el.nextElementSibling) {\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction elementStyle(el, prop) {\n const window = getWindow();\n return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while ((child = child.previousSibling) !== null) {\n if (child.nodeType === 1) i += 1;\n }\n return i;\n }\n return undefined;\n}\nfunction elementParents(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while (parent) {\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else {\n parents.push(parent);\n }\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener('transitionend', fireCallBack);\n }\n if (callback) {\n el.addEventListener('transitionend', fireCallBack);\n }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n const window = getWindow();\n if (includeMargins) {\n return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n }\n return el.offsetWidth;\n}\nfunction makeElementsArray(el) {\n return (Array.isArray(el) ? el : [el]).filter(e => !!e);\n}\nfunction getRotateFix(swiper) {\n return v => {\n if (Math.abs(v) > 0 && swiper.browser && swiper.browser.need3dFix && Math.abs(v) % 90 === 0) {\n return v + 0.001;\n }\n return v;\n };\n}\n\nexport { elementParents as a, elementOffset as b, createElement as c, now as d, elementChildren as e, elementOuterSize as f, getSlideTransformEl as g, elementIndex as h, classesToTokens as i, getTranslate as j, elementTransitionEnd as k, isObject as l, makeElementsArray as m, nextTick as n, getRotateFix as o, elementStyle as p, elementNextAll as q, elementPrevAll as r, setCSSProperty as s, animateCSSModeScroll as t, showWarning as u, elementIsChildOf as v, extend as w, deleteProps as x };\n"],"names":["classesToTokens","classes","c","deleteProps","obj","object","key","nextTick","callback","delay","now","getComputedStyle","el","window","getWindow","style","getTranslate","axis","matrix","curTransform","transformMatrix","curStyle","a","isObject","o","isNode","node","extend","to","noExtend","i","nextSource","keysArray","nextIndex","len","nextKey","desc","setCSSProperty","varName","varValue","animateCSSModeScroll","_ref","swiper","targetPosition","side","startPosition","startTime","time","duration","dir","isOutOfBound","current","target","animate","progress","easeProgress","currentPosition","elementChildren","element","selector","children","elementIsChildOfSlot","slot","elementsQueue","elementToCheck","elementIsChildOf","parent","isChild","showWarning","text","createElement","tag","elementPrevAll","prevEls","prev","elementNextAll","nextEls","next","elementStyle","prop","elementIndex","child","elementParents","parents","elementOuter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