aptechka 0.44.0 → 0.44.2
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-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -2
- 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 +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +57 -57
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +21 -21
- package/lib/scroll-segment/ScrollSegmentDefaultContainer.d.ts +11 -0
- package/lib/scroll-segment/ScrollSegmentElement.d.ts +78 -0
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.d.ts +2 -79
- package/lib/scroll-segment/index.js +193 -164
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +5 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- 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 +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-Bn9ZrvT3.cjs +0 -1
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
var I = (i) => {
|
|
2
|
-
throw TypeError(i);
|
|
3
|
-
};
|
|
4
|
-
var S = (i, r, t) => r.has(i) || I("Cannot " + t);
|
|
5
|
-
var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(i)), a = (i, r, t) => r.has(i) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, t), h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t), P = (i, r, t) => (S(i, r, "access private method"), t);
|
|
6
|
-
import { S as q } from "./Store-Cm3LPXlx.js";
|
|
7
|
-
import { c as y } from "./math-BOBiC4TN.js";
|
|
8
|
-
import { p as z, n as F } from "./polyfills-CxfUK5OU.js";
|
|
9
|
-
import { ticker as O } from "./ticker/index.js";
|
|
10
|
-
import { TICK_ORDER as N } from "./order/index.js";
|
|
11
|
-
var f, d, A, l, b, s, n, m, c, g, M, R, x;
|
|
12
|
-
class K extends q {
|
|
13
|
-
constructor(t, u) {
|
|
14
|
-
super(t || 0, u);
|
|
15
|
-
a(this, M);
|
|
16
|
-
a(this, f);
|
|
17
|
-
a(this, d, N.ANIMATION);
|
|
18
|
-
a(this, A);
|
|
19
|
-
a(this, l, new q(!1));
|
|
20
|
-
a(this, b, 0);
|
|
21
|
-
a(this, s, 0);
|
|
22
|
-
a(this, n, -1 / 0);
|
|
23
|
-
a(this, m, 1 / 0);
|
|
24
|
-
a(this, c, 0);
|
|
25
|
-
a(this, g, null);
|
|
26
|
-
a(this, x, (t) => {
|
|
27
|
-
this.handleAnimationFrame(t);
|
|
28
|
-
});
|
|
29
|
-
h(this, s, this.current);
|
|
30
|
-
}
|
|
31
|
-
get direction() {
|
|
32
|
-
return e(this, b);
|
|
33
|
-
}
|
|
34
|
-
get target() {
|
|
35
|
-
return e(this, s);
|
|
36
|
-
}
|
|
37
|
-
get min() {
|
|
38
|
-
return e(this, n);
|
|
39
|
-
}
|
|
40
|
-
set min(t) {
|
|
41
|
-
h(this, n, t), this.set(e(this, s), {
|
|
42
|
-
equalize: !0
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
get max() {
|
|
46
|
-
return e(this, m);
|
|
47
|
-
}
|
|
48
|
-
set max(t) {
|
|
49
|
-
h(this, m, t), this.set(e(this, s), {
|
|
50
|
-
equalize: !0
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
get from() {
|
|
54
|
-
return e(this, c);
|
|
55
|
-
}
|
|
56
|
-
get isRunning() {
|
|
57
|
-
return e(this, l);
|
|
58
|
-
}
|
|
59
|
-
get delta() {
|
|
60
|
-
return Math.abs(e(this, s) - e(this, c));
|
|
61
|
-
}
|
|
62
|
-
get deltaProgress() {
|
|
63
|
-
return this.delta ? z(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
|
|
64
|
-
}
|
|
65
|
-
get distance() {
|
|
66
|
-
return Math.abs(e(this, m) - e(this, n));
|
|
67
|
-
}
|
|
68
|
-
get distanceProgress() {
|
|
69
|
-
return this.distance ? z(Math.abs(this.current - e(this, n)) / this.distance, 6) : 0;
|
|
70
|
-
}
|
|
71
|
-
set(t, u) {
|
|
72
|
-
(e(this, s) !== t || u != null && u.restart) && (h(this, g, t), this.updateOptions(u), h(this, g, null), e(this, s) !== this.current && this.start());
|
|
73
|
-
}
|
|
74
|
-
shift(t, u) {
|
|
75
|
-
this.set(e(this, s) + t, u);
|
|
76
|
-
}
|
|
77
|
-
reset() {
|
|
78
|
-
super.reset(), this.set(this.initial, { equalize: !0 });
|
|
79
|
-
}
|
|
80
|
-
close() {
|
|
81
|
-
super.close(), this.reset(), this.unlistenAnimationFrame();
|
|
82
|
-
}
|
|
83
|
-
listenAnimationFrame() {
|
|
84
|
-
e(this, l).current || (e(this, l).current = !0, O.subscribe(e(this, x), {
|
|
85
|
-
maxFPS: e(this, f),
|
|
86
|
-
order: e(this, d),
|
|
87
|
-
culling: e(this, A)
|
|
88
|
-
}));
|
|
89
|
-
}
|
|
90
|
-
unlistenAnimationFrame() {
|
|
91
|
-
e(this, l).current && (e(this, l).current = !1, O.unsubscribe(e(this, x)));
|
|
92
|
-
}
|
|
93
|
-
updateOptions(t) {
|
|
94
|
-
h(this, f, F(t == null ? void 0 : t.maxFPS, e(this, f))), h(this, d, F(t == null ? void 0 : t.order, e(this, d))), h(this, A, F(t == null ? void 0 : t.culling, e(this, A))), h(this, n, F(t == null ? void 0 : t.min, e(this, n))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), P(this, M, R).call(this, typeof e(this, g) == "number" ? e(this, g) : e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
|
|
95
|
-
}
|
|
96
|
-
start() {
|
|
97
|
-
this.listenAnimationFrame();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
f = new WeakMap(), d = new WeakMap(), A = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), n = new WeakMap(), m = new WeakMap(), c = new WeakMap(), g = new WeakMap(), M = new WeakSet(), R = function(t) {
|
|
101
|
-
h(this, b, Math.sign(t - e(this, s))), h(this, s, y(t, e(this, n), e(this, m))), h(this, c, this.current);
|
|
102
|
-
}, x = new WeakMap();
|
|
103
|
-
export {
|
|
104
|
-
K as A
|
|
105
|
-
};
|
package/lib/Damped-CHZ314Rn.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty,y=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))O.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))v.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>y(t,C(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),u=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const w=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-BANSrI_m.cjs"),B=require("./Animation-CMiBKrwE.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);u(this,i);u(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*m),this.current+=a(this,i)*m}else this.current=w.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
|
package/lib/Store-C2J4Q87x.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=r=>{throw TypeError(r)};var w=(r,e,t)=>e.has(r)||A("Cannot "+t);var i=(r,e,t)=>(w(r,e,"read from private field"),t?t.call(r):e.get(r)),c=(r,e,t)=>e.has(r)?A("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),h=(r,e,t,a)=>(w(r,e,"write to private field"),a?a.call(r,t):e.set(r,t),t),k=(r,e,t)=>(w(r,e,"access private method"),t);const E=require("./browser-CpzFX2xg.cjs");var f;class M{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),E.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,f)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,f,JSON.parse(e)):h(this,f,e),l.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){l.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=i(this,f))==null?void 0:t.stores))return e;if(e.name){const v=(a=i(this,f))==null?void 0:a.stores.find(z=>z.name===e.name);v&&(e.current=v.value)}return e}getState(){const e={stores:[]};return l.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}f=new WeakMap;const N=new M;var d,s,S,u,m,n,g,b,y,q;class _{constructor(e,t){c(this,y);c(this,d);c(this,s);c(this,S);c(this,u,new Set);c(this,m);c(this,n);c(this,g);c(this,b);h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,v)=>a===v)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,g,(t==null?void 0:t.notifyAndClose)||!1),h(this,b,(t==null?void 0:t.invisible)||!1),h(this,m,(t==null?void 0:t.skipSubscribeNotification)||!1),i(this,d)&&N.updateStore(this)}get name(){return i(this,d)}get initial(){return i(this,s).initial}get previous(){return i(this,s).previous}get current(){return i(this,s).current}set current(e){if(!i(this,S).call(this,i(this,s).current,e)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const t of i(this,n))e=t(e);i(this,s).current=e,k(this,y,q).call(this),i(this,g)&&this.close()}}get subscribers(){return i(this,u)}addMiddleware(e){i(this,n)||h(this,n,new Set),i(this,n).add(e)}removeMiddleware(e){var t,a;(t=i(this,n))==null||t.delete(e),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(e){return!i(this,b)&&!i(this,u).size&&R(this),i(this,u).add(e),i(this,m)||e(i(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){i(this,u).delete(e),i(this,u).size||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,u).clear(),i(this,s).previous=void 0,i(this,s).current=i(this,s).initial,C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap,y=new WeakSet,q=function(){for(const e of i(this,u))e(i(this,s))};const l=new _([],{invisible:!0});function R(r){l.current.includes(r)||(l.current=[...l.current,r])}function C(r){l.current.includes(r)&&(l.current=l.current.filter(e=>e!==r))}exports.Store=_;exports.activeStores=l;exports.storeRegistry=N;
|
package/lib/Tweened-Dn6CMA-p.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty,O=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,a,e)=>a in i?y(i,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[a]=e,g=(i,a)=>{for(var e in a||(a={}))w.call(a,e)&&m(i,e,a[e]);if(h)for(var e of h(a))S.call(a,e)&&m(i,e,a[e]);return i},f=(i,a)=>O(i,b(a));var A=(i,a,e)=>a.has(i)||d("Cannot "+e);var s=(i,a,e)=>(A(i,a,"read from private field"),e?e.call(i):a.get(i)),l=(i,a,e)=>a.has(i)?d("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,e),c=(i,a,e,r)=>(A(i,a,"write to private field"),r?r.call(i,e):a.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),T=require("./math-GDWEqu7y.cjs"),q=require("./polyfills-BANSrI_m.cjs"),x=require("./Animation-CMiBKrwE.cjs");var n,t;class z extends x.Animation{constructor(e,r){super(e||0,r);l(this,n,u.linear);l(this,t,1e3);this.updateOptions(f(g({},r),{equalize:!0}))}updateOptions(e){super.updateOptions(e),c(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),c(this,t,(e==null?void 0:e.duration)===!1?0:q.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const r=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,F=s(this,n).call(this,T.clamp(r,0,1));this.current=q.preciseNumber(this.from+(this.target-this.from)*F,6),r>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=z;
|
package/lib/browser-0zX67oeU.js
DELETED
package/lib/browser-CpzFX2xg.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=typeof window!="undefined"&&typeof window.document!="undefined";exports.isBrowser=e;
|
package/lib/jss-GJLvaNfT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./browser-CpzFX2xg.cjs"),c=require("./string-DhgS_iFl.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+=`${c.camelToKebab(r)}: ${n};`}return e}function l(t){if(o.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(s(t)),e}return null}exports.createStylesheet=l;exports.styleToString=s;
|
package/lib/url-Bn9ZrvT3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var P=Object.defineProperty,S=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var c=(t,s,a)=>s in t?P(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,i=(t,s)=>{for(var a in s||(s={}))u.call(s,a)&&c(t,a,s[a]);if(n)for(var a of n(s))p.call(s,a)&&c(t,a,s[a]);return t},o=(t,s)=>S(t,W(s));function y(t,s="",a=!1){s=s.endsWith("/")?s.slice(0,-1):s,t=t.replace(s,""),t.startsWith("/")&&(t=t.slice(1));const h=t.split("#"),e=h[0].split("?");let r=e[0].startsWith("/")?e[0]:"/"+e[0];a?r=!r.endsWith("/")&&r!=="/"?r+"/":r:r=r.endsWith("/")&&r!=="/"?r.slice(0,-1):r;const f=s+r,m=e==null?void 0:e[1],l=h==null?void 0:h[1];return{leaf:r,pathname:f,parameters:m,hash:l}}function d(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function g(t){const s=(t==null?void 0:t.searchParameters)||location.search,a=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",h=s?s.startsWith("?")?s:"?"+s:"",e=`${t.pathname}${a}${h}`,r=o(i({},t.state),{path:e});t.action==="push"?history.pushState(r,"",e):t.action==="replace"&&history.replaceState(r,"",e)}function $(t){const s=new URLSearchParams(t),a={};for(const[h,e]of s)a[h]=e;return a}function w(t,s){const a=new URL(location.href),h=(s==null?void 0:s.toString())||"";a.searchParams.set(t,h),history.replaceState(history.state,"",a.href)}exports.changeHistory=g;exports.normalizeBase=d;exports.parseSearchParameters=$;exports.splitPath=y;exports.updateSearchParameter=w;
|