aptechka 0.82.4 → 0.82.6
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/lib/{Animation-DxtCzFP3.js → Animation-BzTjZIE-.js} +2 -2
- package/lib/{Animation-jmvFcNfM.cjs → Animation-C39Ah-LM.cjs} +1 -1
- package/lib/{Composed-DtS09lSU.js → Composed-C-mnUGX6.js} +2 -2
- package/lib/{Composed-CSeUTRCg.cjs → Composed-RFcm2x5c.cjs} +1 -1
- package/lib/{Damped-DMnIOXpC.js → Damped-CRusiRIV.js} +2 -2
- package/lib/{Damped-77Urmi3q.cjs → Damped-Prr0iKu1.cjs} +1 -1
- package/lib/{DerivedArray-B8A0-8uT.cjs → DerivedArray-DdCR-Oy7.cjs} +1 -1
- package/lib/{DerivedArray-DG9iR0mf.js → DerivedArray-opbeygTL.js} +1 -1
- package/lib/{DragControls-BlL26P1V.cjs → DragControls-8rNZwQrs.cjs} +1 -1
- package/lib/{DragControls-DCC8iEOR.js → DragControls-DBNdMBA4.js} +4 -4
- package/lib/{LocalLinks-Bua7BGRF.cjs → LocalLinks-Baf0xWZ3.cjs} +1 -1
- package/lib/{LocalLinks-TQkTpAMx.js → LocalLinks-Z9pxKguG.js} +2 -2
- package/lib/{PageAnnouncerElement-sfh0_4vl.js → PageAnnouncerElement-0LxZjtVH.js} +1 -1
- package/lib/{PageAnnouncerElement-C4k2kDJ5.cjs → PageAnnouncerElement-AQ0Ja6HM.cjs} +1 -1
- package/lib/{PageScroll-cQ3B5-6N.js → PageScroll-0LxFblry.js} +1 -1
- package/lib/{PageScroll-C7QBpx0G.cjs → PageScroll-BXJUQwG7.cjs} +1 -1
- package/lib/{SourceElement-TzgPNQOd.cjs → SourceElement-BHqPFbna.cjs} +1 -1
- package/lib/{SourceElement-BQ7g2KWK.js → SourceElement-DjbHjynf.js} +2 -2
- package/lib/{Store-1JrMCgdX.cjs → Store-Blf4msDz.cjs} +1 -1
- package/lib/{Store-CgQ3ReoB.js → Store-ZThXYBQd.js} +1 -1
- package/lib/{Tweened-lT68VACv.js → Tweened-Bw1Cn1PJ.js} +2 -2
- package/lib/{Tweened-CXQrFQth.cjs → Tweened-DWtk9E-O.cjs} +1 -1
- package/lib/{Viewport-Cx50Hufs.cjs → Viewport-BxCr0GlB.cjs} +1 -1
- package/lib/{Viewport-DGnJ31b4.js → Viewport-Dt-d9DPi.js} +2 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/dom-BETkVSSZ.js +82 -0
- package/lib/dom-CBLlqORw.cjs +1 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +3 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +4 -4
- package/lib/{index-CKTweR3M.cjs → index-OE2INULi.cjs} +1 -1
- package/lib/{index-LReFyN6i.js → index-e9eDuagL.js} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.js +6 -6
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +1 -1
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +2 -2
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +293 -300
- package/lib/{morph-BQErz7qP.js → morph-D_ybmXWR.js} +8 -8
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +3 -3
- package/lib/page-announcer/index.cjs +1 -1
- package/lib/page-announcer/index.js +1 -1
- package/lib/page-scroll/index.cjs +1 -1
- package/lib/page-scroll/index.js +1 -1
- package/lib/pixel-perfect/index.cjs +1 -1
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +4 -4
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/render-1u700s93.js +212 -0
- package/lib/render-BIOfUddT.cjs +1 -0
- package/lib/router/Route.d.ts +9 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +154 -139
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +8 -8
- package/lib/{scroll-DxcPU0vk.cjs → scroll-BA2WnUrb.cjs} +1 -1
- package/lib/{scroll-jcbHDexr.js → scroll-DY5senkF.js} +2 -2
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +1 -1
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +4 -4
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +3 -3
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +5 -5
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +3 -3
- package/lib/{stylesheet-BcwbfhBp.cjs → stylesheet-5_o7PFzM.cjs} +1 -1
- package/lib/{stylesheet-DbHOxtjw.js → stylesheet-DdBzowZY.js} +1 -1
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/utils/dom.d.ts +3 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +129 -126
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +3 -3
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +3 -3
- package/package.json +1 -1
- package/lib/dom-BIeVMHfK.js +0 -57
- package/lib/dom-hTEdqeoj.cjs +0 -1
- package/lib/render-B3Hf-O7M.js +0 -205
- package/lib/render-BWjKu0M_.cjs +0 -1
package/lib/store/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as s, a as o, s as a } from "../Store-
|
|
2
|
-
import { C as i, D as m, R as p } from "../Composed-
|
|
3
|
-
import { D as d } from "../DerivedArray-
|
|
1
|
+
import { S as s, a as o, s as a } from "../Store-ZThXYBQd.js";
|
|
2
|
+
import { C as i, D as m, R as p } from "../Composed-C-mnUGX6.js";
|
|
3
|
+
import { D as d } from "../DerivedArray-opbeygTL.js";
|
|
4
4
|
export {
|
|
5
5
|
i as Composed,
|
|
6
6
|
m as Derived,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("construct-style-sheets-polyfill");const i=require("./index-
|
|
1
|
+
"use strict";require("construct-style-sheets-polyfill");const i=require("./index-OE2INULi.cjs"),o=require("./string-DUXXtU8v.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${o.camelToKebab(r)}: ${n};`}return e}function c(t){if(i.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(typeof t=="string"?t:s(t)),e}return null}exports.createStylesheet=c;exports.styleToString=s;
|
package/lib/ticker/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=h=>{throw TypeError(h)};var B=(h,e,s)=>e.has(h)||I("Cannot "+s);var i=(h,e,s)=>(B(h,e,"read from private field"),s?s.call(h):e.get(h)),r=(h,e,s)=>e.has(h)?I("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),t=(h,e,s,n)=>(B(h,e,"write to private field"),n?n.call(h,s):e.set(h,s),s),E=(h,e,s)=>(B(h,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-
|
|
1
|
+
"use strict";var I=h=>{throw TypeError(h)};var B=(h,e,s)=>e.has(h)||I("Cannot "+s);var i=(h,e,s)=>(B(h,e,"read from private field"),s?s.call(h):e.get(h)),r=(h,e,s)=>e.has(h)?I("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),t=(h,e,s,n)=>(B(h,e,"write to private field"),n?n.call(h,s):e.set(h,s),s),E=(h,e,s)=>(B(h,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-OE2INULi.cjs"),j=require("../dom-CBLlqORw.cjs");require("construct-style-sheets-polyfill");var g,u,v,k,b,m,w,l,d,y,A;class C{constructor(e,s){r(this,g);r(this,u);r(this,v);r(this,k,0);r(this,b,0);r(this,m,0);r(this,w,0);r(this,l,0);r(this,d,!1);r(this,y,null);r(this,A,e=>{const s=e[0];t(this,d,s.isIntersecting),i(this,d)&&t(this,w,i(this,k))});if(t(this,g,e),t(this,u,s==null?void 0:s.maxFPS),t(this,v,(s==null?void 0:s.order)||0),s!=null&&s.culling&&L.isBrowser){const n=j.getElement(s.culling);n&&(t(this,y,new IntersectionObserver(i(this,A))),i(this,y).observe(n))}else t(this,d,!0)}get callback(){return i(this,g)}get order(){return i(this,v)}sync(e){t(this,b,e-i(this,l))}tick(e){if(t(this,k,e),t(this,l,Math.max(0,e-i(this,b))),i(this,m)||t(this,m,e),i(this,u))if(i(this,l)>=1e3/i(this,u))t(this,b,e-i(this,l)%i(this,u));else return;else t(this,b,e);i(this,d)&&i(this,g).call(this,{timeBetweenFrames:i(this,l),timestamp:e,subscribeTimestamp:i(this,m),timeElapsedSinceSubscription:e-i(this,m),timeElapsedSinceIntersection:e-i(this,w)})}destroy(){var e;(e=i(this,y))==null||e.disconnect()}}g=new WeakMap,u=new WeakMap,v=new WeakMap,k=new WeakMap,b=new WeakMap,m=new WeakMap,w=new WeakMap,l=new WeakMap,d=new WeakMap,y=new WeakMap,A=new WeakMap;var T,f,a,F,c,o,P,x,S,q;class O{constructor(){r(this,o);r(this,T,0);r(this,f,0);r(this,a);r(this,F,!1);r(this,c,[]);r(this,S,e=>{if(i(this,F)){t(this,F,!1),t(this,T,e-i(this,f));for(const s of i(this,c))s.sync(i(this,f))}t(this,a,requestAnimationFrame(i(this,S))),t(this,f,e-i(this,T));for(const s of i(this,c))s.tick(i(this,f))});r(this,q,()=>{document.hidden&&t(this,F,!0)});L.isBrowser&&document.addEventListener("visibilitychange",i(this,q))}subscribe(e,s){if(!i(this,c).find(n=>n.callback===e)){const n=new C(e,s);n.sync(performance.now()),i(this,c).push(n),t(this,c,i(this,c).sort((M,V)=>M.order-V.order))}return E(this,o,P).call(this),()=>this.unsubscribe(e)}unsubscribe(e){const s=i(this,c).filter(n=>n.callback===e);s.length&&(s.forEach(n=>n.destroy()),t(this,c,i(this,c).filter(n=>n.callback!==e)),i(this,c).length||E(this,o,x).call(this))}destroy(){L.isBrowser&&(E(this,o,x).call(this),document.removeEventListener("visibilitychange",i(this,q)))}}T=new WeakMap,f=new WeakMap,a=new WeakMap,F=new WeakMap,c=new WeakMap,o=new WeakSet,P=function(){i(this,c).length&&!i(this,a)&&t(this,a,requestAnimationFrame(i(this,S)))},x=function(){i(this,a)&&(cancelAnimationFrame(i(this,a)),t(this,a,void 0))},S=new WeakMap,q=new WeakMap;const D=new O;exports.Ticker=O;exports.ticker=D;
|
package/lib/ticker/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var B = (h) => {
|
|
|
3
3
|
};
|
|
4
4
|
var x = (h, s, e) => s.has(h) || B("Cannot " + e);
|
|
5
5
|
var i = (h, s, e) => (x(h, s, "read from private field"), e ? e.call(h) : s.get(h)), r = (h, s, e) => s.has(h) ? B("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(h) : s.set(h, e), t = (h, s, e, n) => (x(h, s, "write to private field"), n ? n.call(h, e) : s.set(h, e), e), A = (h, s, e) => (x(h, s, "access private method"), e);
|
|
6
|
-
import { i as I } from "../index-
|
|
7
|
-
import { g as C } from "../dom-
|
|
6
|
+
import { i as I } from "../index-e9eDuagL.js";
|
|
7
|
+
import { g as C } from "../dom-BETkVSSZ.js";
|
|
8
8
|
import "construct-style-sheets-polyfill";
|
|
9
9
|
var g, m, v, k, u, b, w, l, f, F, L;
|
|
10
10
|
class D {
|
package/lib/utils/dom.d.ts
CHANGED
|
@@ -5,3 +5,6 @@ export declare function findScrollParentElement(node: Node | null, _initial?: No
|
|
|
5
5
|
export declare function getAllParentElements(node: Node): HTMLElement[];
|
|
6
6
|
export declare function traverseNodes(node: Node, callback: (node: Node) => void): void;
|
|
7
7
|
export declare function traverseShadowRoots(root: Element, callback: (element: Element) => void, includeShadowRoots?: boolean): void;
|
|
8
|
+
export declare function intersectElements(elements: Array<Element>, elementsToIntersect: Array<Element>): Element[];
|
|
9
|
+
export declare function excludeElements(elements: Array<Element>, elementsToExclude: Array<Element>): Element[];
|
|
10
|
+
export declare function createScriptElement(element: HTMLScriptElement): HTMLScriptElement;
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../attributes-Bf2svn4j.cjs"),y=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../attributes-Bf2svn4j.cjs"),y=require("../index-OE2INULi.cjs"),C=require("../canvas-CU5Xjahf.cjs"),b=require("../coordinates-D8Np3cPD.cjs"),v=require("../custom-elements-Dh4TWRDJ.cjs"),u=require("../dom-CBLlqORw.cjs"),s=require("../easings-GegIwET5.cjs"),D=require("../element-yhcBhsho.cjs"),q=require("../events-KVanG9sR.cjs"),N=require("../file-DSpfWdd9.cjs"),P=require("../function-MthRj-GJ.cjs"),w=require("../gestures-C7gbKx11.cjs"),A=require("../stylesheet-5_o7PFzM.cjs"),O=require("../layout-Ctc2p3uz.cjs"),l=require("../math-GDWEqu7y.cjs"),M=require("../metadata-BcYZ5w3T.cjs"),a=require("../morph-B6sGhLCi.cjs"),p=require("../number-ChAm68cm.cjs"),d=require("../object-baN9pgbU.cjs"),S=require("../polyfills-Df4r-ETT.cjs"),x=require("../scroll-BA2WnUrb.cjs"),c=require("../string-DUXXtU8v.cjs"),R=require("../style-At6aDoqG.cjs"),m=require("../url-CPgw9bd5.cjs");function Q(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function B(t,e){const n=t.length;e=e%n;const o=new Array(n);for(let r=0;r<n;r++){const i=(r+e)%n;o[i]=t[r]}return o}function U(t,e=2){if(!+t)return"0 Bytes";const n=1024,o=e<0?0:e,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,i)).toFixed(o))} ${r[i]}`}function z(t){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{console.log("Text copied to clipboard successfully!")}).catch(e=>{console.error("Failed to copy text to clipboard:",e)});else{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.top="0",e.style.left="0",document.body.appendChild(e),e.select();try{document.execCommand("copy")?console.log("Text copied to clipboard successfully!"):console.error("Failed to copy text to clipboard.")}catch(n){console.error("Failed to copy text to clipboard:",n)}document.body.removeChild(e)}}function V(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function L(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function j(t,e){let n=!1;const{x:o,y:r}=t;for(let i=0,E=e.length-1;i<e.length;E=i++){const T=e[i].x,f=e[i].y,h=e[E].x,g=e[E].y;f>r!=g>r&&o<(h-T)*(r-f)/(g-f)+T&&(n=!n)}return n}function _(t,e){const n=t.style.getPropertyValue(e);if(n){const o=n.toString();return o.startsWith("var")?_(t,o.slice(4,-1)):o}}function Y(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(o=>{o instanceof CSSStyleRule&&o.selectorText===":root"&&t.forEach(r=>{const i=_(o,r);i&&(e[r]=i)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function k(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function F(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}const $=/^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/,H=/^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;function K(t){let e,n;return H.test(t)?(e=`mailto:${t.trim()}`,n="email"):$.test(t)&&(e=`tel:${t.replace(/[^0-9\\.\\+]+/g,"")}`,n="phone"),{href:e,type:n,contact:t}}function W(t,e){if(t){const o=t.content.cloneNode(!0).firstElementChild;return o&&(e==null||e(o)),o}return null}function Z(t,e,n,o){let r,i=!1,E=0;const T=()=>{clearInterval(r),o!=null&&o.restartCounter&&(E=0),i&&(r=setInterval(()=>{n(E++)},e))},f=y.intersector.subscribe(t,h=>{i=h.isIntersecting,T()});return()=>{f(),clearInterval(r)}}exports.parseAttribute=I.parseAttribute;exports.parseAttributeValue=I.parseAttributeValue;exports.isBrowser=y.isBrowser;exports.contain=C.contain;exports.cover=C.cover;exports.fixPosition=C.fixPosition;exports.measureText=C.measureText;exports.getPointerPosition=b.getPointerPosition;exports.normalize=b.normalize;exports.screenToCartesian=b.screenToCartesian;exports.whenDefined=v.whenDefined;exports.createScriptElement=u.createScriptElement;exports.excludeElements=u.excludeElements;exports.findParentElement=u.findParentElement;exports.findScrollParentElement=u.findScrollParentElement;exports.getAllParentElements=u.getAllParentElements;exports.getElement=u.getElement;exports.intersectElements=u.intersectElements;exports.traverseNodes=u.traverseNodes;exports.traverseShadowRoots=u.traverseShadowRoots;exports.easeInCubic=s.easeInCubic;exports.easeInExpo=s.easeInExpo;exports.easeInOutCubic=s.easeInOutCubic;exports.easeInOutExpo=s.easeInOutExpo;exports.easeInOutQuad=s.easeInOutQuad;exports.easeInOutQuart=s.easeInOutQuart;exports.easeInOutQuint=s.easeInOutQuint;exports.easeInQuad=s.easeInQuad;exports.easeInQuart=s.easeInQuart;exports.easeInQuint=s.easeInQuint;exports.easeOutCubic=s.easeOutCubic;exports.easeOutExpo=s.easeOutExpo;exports.easeOutQuad=s.easeOutQuad;exports.easeOutQuart=s.easeOutQuart;exports.easeOutQuint=s.easeOutQuint;exports.linear=s.linear;exports.isElementVisible=D.isElementVisible;exports.dispatchEvent=q.dispatchEvent;exports.createJSONAndSave=N.createJSONAndSave;exports.downloadURI=N.downloadURI;exports.debounce=P.debounce;exports.throttle=P.throttle;exports.setupDrag=w.setupDrag;exports.createStylesheet=A.createStylesheet;exports.styleToString=A.styleToString;exports.getCumulativeOffsetLeft=O.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=O.getCumulativeOffsetTop;exports.getCumulativePosition=O.getCumulativePosition;exports.getStickyOffset=O.getStickyOffset;exports.calculateDistance=l.calculateDistance;exports.calculateDistanceWithRadius=l.calculateDistanceWithRadius;exports.clamp=l.clamp;exports.damp=l.damp;exports.lerp=l.lerp;exports.mapRange=l.mapRange;exports.round=l.round;exports.smootherstep=l.smootherstep;exports.smoothstep=l.smoothstep;exports.step=l.step;exports.formatMediaDuration=M.formatMediaDuration;exports.ACTION_CREATE=a.ACTION_CREATE;exports.ACTION_PRESERVE=a.ACTION_PRESERVE;exports.ACTION_REMOVE=a.ACTION_REMOVE;exports.ACTION_REMOVE_ATTR=a.ACTION_REMOVE_ATTR;exports.ACTION_REPLACE=a.ACTION_REPLACE;exports.ACTION_SET_ATTR=a.ACTION_SET_ATTR;exports.ACTION_SKIP=a.ACTION_SKIP;exports.ACTION_UPDATE=a.ACTION_UPDATE;exports.NODE_TYPE_COMMENT=a.NODE_TYPE_COMMENT;exports.NODE_TYPE_DOCUMENT=a.NODE_TYPE_DOCUMENT;exports.NODE_TYPE_ELEMENT=a.NODE_TYPE_ELEMENT;exports.NODE_TYPE_TEXT=a.NODE_TYPE_TEXT;exports.diff=a.diff;exports.morph=a.morph;exports.patch=a.patch;exports.beautifyNumber=p.beautifyNumber;exports.loopNumber=p.loopNumber;exports.preciseNumber=p.preciseNumber;exports.roundNumberTo=p.roundNumberTo;exports.toStep=p.toStep;exports.cloneDeep=d.cloneDeep;exports.compareObjects=d.compareObjects;exports.isESClass=d.isESClass;exports.isNullish=d.isNullish;exports.isObject=d.isObject;exports.mergeDeep=d.mergeDeep;exports.mixin=d.mixin;exports.omit=d.omit;exports.pick=d.pick;exports.nullishCoalescing=S.nullishCoalescing;exports.requestIdleCallback=S.requestIdleCallback;exports.scrollToElement=x.scrollToElement;exports.wait=x.wait;exports.camelToKebab=c.camelToKebab;exports.capitalize=c.capitalize;exports.declension=c.declension;exports.decodeHtmlEntities=c.decodeHtmlEntities;exports.generateId=c.generateId;exports.isUppercase=c.isUppercase;exports.kebabToCamel=c.kebabToCamel;exports.snakeToDotted=c.snakeToDotted;exports.toPascalCase=c.toPascalCase;exports.uncapitalize=c.uncapitalize;exports.getElementTransitionDurationMS=R.getElementTransitionDurationMS;exports.getElementTransitionDurationS=R.getElementTransitionDurationS;exports.changeHistory=m.changeHistory;exports.isLocalUrl=m.isLocalUrl;exports.normalizeBase=m.normalizeBase;exports.normalizeRelativeURLs=m.normalizeRelativeURLs;exports.normalizeURL=m.normalizeURL;exports.parseSearchParameters=m.parseSearchParameters;exports.splitPath=m.splitPath;exports.updateSearchParameter=m.updateSearchParameter;exports.cloneTemplateContent=W;exports.copyTextToClipboard=z;exports.decode=F;exports.dotCircleCollision=L;exports.dotPolygonCollision=j;exports.dotRectCollision=V;exports.encode=k;exports.formatBytes=U;exports.getRootVariables=Y;exports.insert=Q;exports.setIntervalOnIntersection=Z;exports.shiftArray=B;exports.tryCreateHrefFromContact=K;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { a as _, p as D } from "../attributes-69we3byR.js";
|
|
2
|
-
import { a as d } from "../index-
|
|
3
|
-
import { i as B } from "../index-
|
|
2
|
+
import { a as d } from "../index-e9eDuagL.js";
|
|
3
|
+
import { i as B } from "../index-e9eDuagL.js";
|
|
4
4
|
import { a as Q, c as U, f as V, m as j } from "../canvas-DeZ0SLUJ.js";
|
|
5
5
|
import { g as F, n as L, s as k } from "../coordinates-CgdGoSYs.js";
|
|
6
6
|
import { w as q } from "../custom-elements-DBnCK7Zx.js";
|
|
7
|
-
import {
|
|
8
|
-
import { d as
|
|
9
|
-
import { i as
|
|
10
|
-
import { d as
|
|
11
|
-
import { c as
|
|
12
|
-
import { d as
|
|
13
|
-
import { s as
|
|
14
|
-
import { c as
|
|
15
|
-
import { g as
|
|
16
|
-
import { e as
|
|
17
|
-
import { f as
|
|
18
|
-
import { A as
|
|
19
|
-
import { b as
|
|
20
|
-
import { c as
|
|
21
|
-
import { n as
|
|
22
|
-
import { s as
|
|
23
|
-
import { c as
|
|
24
|
-
import { g as
|
|
25
|
-
import { c as
|
|
7
|
+
import { c as K, e as Z, b as W, f as G, a as J, g as X, i as ee, t as te, d as se } from "../dom-BETkVSSZ.js";
|
|
8
|
+
import { d as oe, o as re, g as ne, q as ie, c as ce, j as le, n as ue, a as fe, h as de, k as me, f as pe, p as xe, b as Ee, i as he, m as Te, l as be } from "../easings-BEmRlrDd.js";
|
|
9
|
+
import { i as Ce } from "../element-CGVl1jA-.js";
|
|
10
|
+
import { d as Ie } from "../events-CsVF98U6.js";
|
|
11
|
+
import { c as Ae, d as Ne } from "../file-GHShUlue.js";
|
|
12
|
+
import { d as ve, t as Pe } from "../function-C10DGppn.js";
|
|
13
|
+
import { s as we } from "../gestures-CcXV6fCp.js";
|
|
14
|
+
import { c as De, s as Me } from "../stylesheet-DdBzowZY.js";
|
|
15
|
+
import { g as ze, a as Qe, c as Ue, b as Ve } from "../layout-BSMtwCga.js";
|
|
16
|
+
import { e as $e, f as Fe, c as Le, d as ke, l as Ye, m as qe, r as He, b as Ke, a as Ze, s as We } from "../math-BOBiC4TN.js";
|
|
17
|
+
import { f as Je } from "../metadata-jfowcCyz.js";
|
|
18
|
+
import { A as et, k as tt, e as st, i as at, f as ot, h as rt, j as nt, g as it, b as ct, c as lt, N as ut, a as ft, d as dt, m as mt, p as pt } from "../morph-D_ybmXWR.js";
|
|
19
|
+
import { b as Et, l as ht, p as Tt, r as bt, t as gt } from "../number-CumqY64S.js";
|
|
20
|
+
import { c as yt, d as It, i as Ot, b as At, a as Nt, m as St, e as vt, o as Pt, p as Rt } from "../object-CcMK4y_r.js";
|
|
21
|
+
import { n as _t, r as Dt } from "../polyfills-DJrTJQky.js";
|
|
22
|
+
import { s as Bt, w as zt } from "../scroll-DY5senkF.js";
|
|
23
|
+
import { c as Ut, a as Vt, b as jt, d as $t, g as Ft, i as Lt, k as kt, s as Yt, t as qt, u as Ht } from "../string-BlMQbe8b.js";
|
|
24
|
+
import { g as Zt, a as Wt } from "../style-j2TwriJ_.js";
|
|
25
|
+
import { c as Jt, i as Xt, a as es, b as ts, n as ss, p as as, s as os, u as rs } from "../url-DAl-mgbC.js";
|
|
26
26
|
function h(t, e, ...s) {
|
|
27
27
|
return [...t.slice(0, e), ...s, ...t.slice(e)];
|
|
28
28
|
}
|
|
@@ -113,18 +113,18 @@ function N(t) {
|
|
|
113
113
|
return window.btoa(e);
|
|
114
114
|
}
|
|
115
115
|
const m = /^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/, p = /^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;
|
|
116
|
-
function
|
|
116
|
+
function S(t) {
|
|
117
117
|
let e, s;
|
|
118
118
|
return p.test(t) ? (e = `mailto:${t.trim()}`, s = "email") : m.test(t) && (e = `tel:${t.replace(/[^0-9\\.\\+]+/g, "")}`, s = "phone"), { href: e, type: s, contact: t };
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function v(t, e) {
|
|
121
121
|
if (t) {
|
|
122
122
|
const a = t.content.cloneNode(!0).firstElementChild;
|
|
123
123
|
return a && (e == null || e(a)), a;
|
|
124
124
|
}
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function P(t, e, s, a) {
|
|
128
128
|
let o, r = !1, n = 0;
|
|
129
129
|
const c = () => {
|
|
130
130
|
clearInterval(o), a != null && a.restartCounter && (n = 0), r && (o = setInterval(() => {
|
|
@@ -138,127 +138,130 @@ function R(t, e, s, a) {
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
141
|
+
et as ACTION_CREATE,
|
|
142
|
+
tt as ACTION_PRESERVE,
|
|
143
|
+
st as ACTION_REMOVE,
|
|
144
|
+
at as ACTION_REMOVE_ATTR,
|
|
145
|
+
ot as ACTION_REPLACE,
|
|
146
|
+
rt as ACTION_SET_ATTR,
|
|
147
|
+
nt as ACTION_SKIP,
|
|
148
|
+
it as ACTION_UPDATE,
|
|
149
|
+
ct as NODE_TYPE_COMMENT,
|
|
150
|
+
lt as NODE_TYPE_DOCUMENT,
|
|
151
|
+
ut as NODE_TYPE_ELEMENT,
|
|
152
|
+
ft as NODE_TYPE_TEXT,
|
|
153
|
+
Et as beautifyNumber,
|
|
154
|
+
$e as calculateDistance,
|
|
155
|
+
Fe as calculateDistanceWithRadius,
|
|
156
|
+
Ut as camelToKebab,
|
|
157
|
+
Vt as capitalize,
|
|
158
|
+
Jt as changeHistory,
|
|
159
|
+
Le as clamp,
|
|
160
|
+
yt as cloneDeep,
|
|
161
|
+
v as cloneTemplateContent,
|
|
162
|
+
It as compareObjects,
|
|
163
163
|
Q as contain,
|
|
164
164
|
g as copyTextToClipboard,
|
|
165
165
|
U as cover,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
Ae as createJSONAndSave,
|
|
167
|
+
K as createScriptElement,
|
|
168
|
+
De as createStylesheet,
|
|
169
|
+
ke as damp,
|
|
170
|
+
ve as debounce,
|
|
171
|
+
jt as declension,
|
|
171
172
|
N as decode,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
$t as decodeHtmlEntities,
|
|
174
|
+
dt as diff,
|
|
175
|
+
Ie as dispatchEvent,
|
|
175
176
|
y as dotCircleCollision,
|
|
176
177
|
I as dotPolygonCollision,
|
|
177
178
|
C as dotRectCollision,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
179
|
+
Ne as downloadURI,
|
|
180
|
+
oe as easeInCubic,
|
|
181
|
+
re as easeInExpo,
|
|
182
|
+
ne as easeInOutCubic,
|
|
183
|
+
ie as easeInOutExpo,
|
|
184
|
+
ce as easeInOutQuad,
|
|
185
|
+
le as easeInOutQuart,
|
|
186
|
+
ue as easeInOutQuint,
|
|
187
|
+
fe as easeInQuad,
|
|
188
|
+
de as easeInQuart,
|
|
189
|
+
me as easeInQuint,
|
|
190
|
+
pe as easeOutCubic,
|
|
191
|
+
xe as easeOutExpo,
|
|
192
|
+
Ee as easeOutQuad,
|
|
193
|
+
he as easeOutQuart,
|
|
194
|
+
Te as easeOutQuint,
|
|
194
195
|
A as encode,
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
Z as excludeElements,
|
|
197
|
+
W as findParentElement,
|
|
198
|
+
G as findScrollParentElement,
|
|
197
199
|
V as fixPosition,
|
|
198
200
|
b as formatBytes,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
Je as formatMediaDuration,
|
|
202
|
+
Ft as generateId,
|
|
203
|
+
J as getAllParentElements,
|
|
204
|
+
ze as getCumulativeOffsetLeft,
|
|
205
|
+
Qe as getCumulativeOffsetTop,
|
|
206
|
+
Ue as getCumulativePosition,
|
|
207
|
+
X as getElement,
|
|
208
|
+
Zt as getElementTransitionDurationMS,
|
|
209
|
+
Wt as getElementTransitionDurationS,
|
|
208
210
|
F as getPointerPosition,
|
|
209
211
|
O as getRootVariables,
|
|
210
|
-
|
|
212
|
+
Ve as getStickyOffset,
|
|
211
213
|
h as insert,
|
|
214
|
+
ee as intersectElements,
|
|
212
215
|
B as isBrowser,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
Ot as isESClass,
|
|
217
|
+
Ce as isElementVisible,
|
|
218
|
+
Xt as isLocalUrl,
|
|
219
|
+
At as isNullish,
|
|
220
|
+
Nt as isObject,
|
|
221
|
+
Lt as isUppercase,
|
|
222
|
+
kt as kebabToCamel,
|
|
223
|
+
Ye as lerp,
|
|
224
|
+
be as linear,
|
|
225
|
+
ht as loopNumber,
|
|
226
|
+
qe as mapRange,
|
|
224
227
|
j as measureText,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
+
St as mergeDeep,
|
|
229
|
+
vt as mixin,
|
|
230
|
+
mt as morph,
|
|
228
231
|
L as normalize,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
es as normalizeBase,
|
|
233
|
+
ts as normalizeRelativeURLs,
|
|
234
|
+
ss as normalizeURL,
|
|
235
|
+
_t as nullishCoalescing,
|
|
236
|
+
Pt as omit,
|
|
234
237
|
_ as parseAttribute,
|
|
235
238
|
D as parseAttributeValue,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
as as parseSearchParameters,
|
|
240
|
+
pt as patch,
|
|
241
|
+
Rt as pick,
|
|
242
|
+
Tt as preciseNumber,
|
|
243
|
+
Dt as requestIdleCallback,
|
|
244
|
+
He as round,
|
|
245
|
+
bt as roundNumberTo,
|
|
243
246
|
k as screenToCartesian,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
Bt as scrollToElement,
|
|
248
|
+
P as setIntervalOnIntersection,
|
|
249
|
+
we as setupDrag,
|
|
247
250
|
T as shiftArray,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
251
|
+
Ke as smootherstep,
|
|
252
|
+
Ze as smoothstep,
|
|
253
|
+
Yt as snakeToDotted,
|
|
254
|
+
os as splitPath,
|
|
255
|
+
We as step,
|
|
256
|
+
Me as styleToString,
|
|
257
|
+
Pe as throttle,
|
|
258
|
+
qt as toPascalCase,
|
|
259
|
+
gt as toStep,
|
|
260
|
+
te as traverseNodes,
|
|
261
|
+
se as traverseShadowRoots,
|
|
262
|
+
S as tryCreateHrefFromContact,
|
|
263
|
+
Ht as uncapitalize,
|
|
264
|
+
rs as updateSearchParameter,
|
|
265
|
+
zt as wait,
|
|
263
266
|
q as whenDefined
|
|
264
267
|
};
|
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var d=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||d("Cannot "+e);var i=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>s.has(t)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,m)=>(E(t,s,"write to private field"),m?m.call(t,e):s.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../SourceElement-
|
|
1
|
+
"use strict";var d=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||d("Cannot "+e);var i=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>s.has(t)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,m)=>(E(t,s,"write to private field"),m?m.call(t,e):s.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../SourceElement-BHqPFbna.cjs");require("../window-resizer/index.cjs");require("../Store-Blf4msDz.cjs");const f=require("../index-OE2INULi.cjs"),y=require("../events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");const h=require("../ticker/index.cjs");var r,u,c,o,l;class p extends b.SourceElement{constructor(){super(...arguments);a(this,r,0);a(this,u,!1);a(this,c,this);a(this,o,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e!==i(this,r)&&y.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}}),e>i(this,r)&&n(this,r,e),this.consumerElement.readyState===4&&(h.ticker.unsubscribe(i(this,o)),i(this,u)&&this.sourceManager.current&&this.consumerElement.play())});a(this,l,()=>{this.hasAttribute("click-controls")&&(this.consumerElement.paused?this.consumerElement.play():this.hasAttribute("controls")||this.consumerElement.pause())})}connectedCallback(){super.connectedCallback();const e=this.getAttribute("click-controls");e&&(e==="parent"?n(this,c,this.parentElement):n(this,c,document.querySelector(e)||this)),this.addEventListener("sourceCapture",()=>{n(this,u,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():n(this,u,!0)),h.ticker.subscribe(i(this,o))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&this.consumerElement.pause(),this.hasAttribute("release-pause")&&this.consumerElement.pause(),this.hasAttribute("release-stop")&&(this.consumerElement.pause(),this.consumerElement.currentTime=0),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")}),i(this,c).addEventListener("click",i(this,l))}disconnectedCallback(){super.disconnectedCallback(),h.ticker.unsubscribe(i(this,o)),n(this,r,0),i(this,c).removeEventListener("click",i(this,l))}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||"",e&&this.hasAttribute("volume")&&(this.consumerElement.volume=parseFloat(this.getAttribute("volume")||"1"))}}r=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakMap,l=new WeakMap;f.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",p);exports.VideoElement=p;
|
package/lib/video/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var d = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var p = (t, s, e) => s.has(t) || d("Cannot " + e);
|
|
5
5
|
var i = (t, s, e) => (p(t, s, "read from private field"), e ? e.call(t) : s.get(t)), c = (t, s, e) => s.has(t) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), a = (t, s, e, m) => (p(t, s, "write to private field"), m ? m.call(t, e) : s.set(t, e), e);
|
|
6
|
-
import { a as E } from "../SourceElement-
|
|
6
|
+
import { a as E } from "../SourceElement-DjbHjynf.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import { i as f } from "../index-
|
|
8
|
+
import "../Store-ZThXYBQd.js";
|
|
9
|
+
import { i as f } from "../index-e9eDuagL.js";
|
|
10
10
|
import { d as b } from "../events-CsVF98U6.js";
|
|
11
11
|
import "construct-style-sheets-polyfill";
|
|
12
12
|
import { ticker as h } from "../ticker/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-
|
|
1
|
+
"use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-OE2INULi.cjs"),R=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,e=>{t(this,r)||(c(this,r,!0),t(this,d).call(this,e))});u(this,d,R.debounce(e=>{this.notify(e),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(e,o){const z=super.subscribe(e,o);return t(this,r)||e(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
|
|
@@ -4,7 +4,7 @@ var h = (e) => {
|
|
|
4
4
|
var c = (e, i, s) => i.has(e) || h("Cannot " + s);
|
|
5
5
|
var t = (e, i, s) => (c(e, i, "read from private field"), s ? s.call(e) : i.get(e)), u = (e, i, s) => i.has(e) ? h("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), f = (e, i, s, n) => (c(e, i, "write to private field"), n ? n.call(e, s) : i.set(e, s), s);
|
|
6
6
|
import { Notifier as p } from "../notifier/index.js";
|
|
7
|
-
import { i as w } from "../index-
|
|
7
|
+
import { i as w } from "../index-e9eDuagL.js";
|
|
8
8
|
import { d as z } from "../function-C10DGppn.js";
|
|
9
9
|
import "construct-style-sheets-polyfill";
|
|
10
10
|
var r, o, d;
|
package/lib/youtube/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../SourceElement-
|
|
1
|
+
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../SourceElement-BHqPFbna.cjs");require("../window-resizer/index.cjs");require("../Store-Blf4msDz.cjs");const L=require("../index-OE2INULi.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
|
package/lib/youtube/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var L = (s) => {
|
|
|
3
3
|
};
|
|
4
4
|
var b = (s, r, t) => r.has(s) || L("Cannot " + t);
|
|
5
5
|
var e = (s, r, t) => (b(s, r, "read from private field"), t ? t.call(s) : r.get(s)), o = (s, r, t) => r.has(s) ? L("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), u = (s, r, t, a) => (b(s, r, "write to private field"), a ? a.call(s, t) : r.set(s, t), t), E = (s, r, t) => (b(s, r, "access private method"), t);
|
|
6
|
-
import { a as g } from "../SourceElement-
|
|
6
|
+
import { a as g } from "../SourceElement-DjbHjynf.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import { i as v } from "../index-
|
|
8
|
+
import "../Store-ZThXYBQd.js";
|
|
9
|
+
import { i as v } from "../index-e9eDuagL.js";
|
|
10
10
|
import { d as T } from "../events-CsVF98U6.js";
|
|
11
11
|
import { g as V } from "../string-BlMQbe8b.js";
|
|
12
12
|
import "construct-style-sheets-polyfill";
|
package/package.json
CHANGED
package/lib/dom-BIeVMHfK.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
function u(e, t) {
|
|
2
|
-
if (!e)
|
|
3
|
-
return null;
|
|
4
|
-
let n = e.parentElement;
|
|
5
|
-
return e.parentElement instanceof t || (n = u(e.parentElement, t)), n;
|
|
6
|
-
}
|
|
7
|
-
function l(e, t = document) {
|
|
8
|
-
return typeof e == "string" ? t.querySelector(e) : e;
|
|
9
|
-
}
|
|
10
|
-
function f(e, t = null) {
|
|
11
|
-
if (t = t || e, !e || !(e instanceof HTMLElement))
|
|
12
|
-
return document.body;
|
|
13
|
-
if (t !== e) {
|
|
14
|
-
const n = getComputedStyle(e);
|
|
15
|
-
if (n.overflow.includes("auto") || n.overflow.includes("scroll"))
|
|
16
|
-
return e;
|
|
17
|
-
}
|
|
18
|
-
return f(e.parentNode, t);
|
|
19
|
-
}
|
|
20
|
-
function i(e) {
|
|
21
|
-
let t = [];
|
|
22
|
-
return document.documentElement.addEventListener(
|
|
23
|
-
"__illuminate-tree",
|
|
24
|
-
(n) => {
|
|
25
|
-
n.composedPath().forEach((r) => {
|
|
26
|
-
r instanceof HTMLElement && t.push(r);
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
{ once: !0 }
|
|
30
|
-
), e.dispatchEvent(
|
|
31
|
-
new CustomEvent("__illuminate-tree", {
|
|
32
|
-
bubbles: !0,
|
|
33
|
-
composed: !0
|
|
34
|
-
})
|
|
35
|
-
), t;
|
|
36
|
-
}
|
|
37
|
-
function a(e, t) {
|
|
38
|
-
t(e), e.childNodes.forEach((n) => {
|
|
39
|
-
a(n, t);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function c(e, t, n = !0) {
|
|
43
|
-
e.shadowRoot && (t(e), n && o(e.shadowRoot, t, n)), o(e, t, n);
|
|
44
|
-
}
|
|
45
|
-
function o(e, t, n) {
|
|
46
|
-
const s = e.children || (e instanceof ShadowRoot ? e.children : []);
|
|
47
|
-
for (const r of Array.from(s))
|
|
48
|
-
c(r, t, n);
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
i as a,
|
|
52
|
-
u as b,
|
|
53
|
-
c,
|
|
54
|
-
f,
|
|
55
|
-
l as g,
|
|
56
|
-
a as t
|
|
57
|
-
};
|
package/lib/dom-hTEdqeoj.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function u(e,t){if(!e)return null;let n=e.parentElement;return e.parentElement instanceof t||(n=u(e.parentElement,t)),n}function c(e,t=document){return typeof e=="string"?t.querySelector(e):e}function l(e,t=null){if(t=t||e,!e||!(e instanceof HTMLElement))return document.body;if(t!==e){const n=getComputedStyle(e);if(n.overflow.includes("auto")||n.overflow.includes("scroll"))return e}return l(e.parentNode,t)}function i(e){let t=[];return document.documentElement.addEventListener("__illuminate-tree",n=>{n.composedPath().forEach(r=>{r instanceof HTMLElement&&t.push(r)})},{once:!0}),e.dispatchEvent(new CustomEvent("__illuminate-tree",{bubbles:!0,composed:!0})),t}function f(e,t){t(e),e.childNodes.forEach(n=>{f(n,t)})}function a(e,t,n=!0){e.shadowRoot&&(t(e),n&&s(e.shadowRoot,t,n)),s(e,t,n)}function s(e,t,n){const o=e.children||(e instanceof ShadowRoot?e.children:[]);for(const r of Array.from(o))a(r,t,n)}exports.findParentElement=u;exports.findScrollParentElement=l;exports.getAllParentElements=i;exports.getElement=c;exports.traverseNodes=f;exports.traverseShadowRoots=a;
|