@fangzhongya/utils 0.0.66 → 0.0.67
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/basic/index.cjs +21 -21
- package/dist/basic/index.js +20 -20
- package/dist/basic/object/index.cjs +12 -12
- package/dist/basic/object/index.js +18 -18
- package/dist/basic/string/index.cjs +10 -10
- package/dist/basic/string/index.js +12 -12
- package/dist/basic/string/toJsons.cjs +3 -3
- package/dist/basic/string/toJsons.js +2 -2
- package/dist/chunk-2HQDHQFP.cjs +299 -0
- package/dist/{chunk-6MSVNVC2.js → chunk-5S7QXY2L.js} +4 -4
- package/dist/{chunk-5WQXANBO.js → chunk-BBL7TBP6.js} +17 -1
- package/dist/{chunk-THCKSUIJ.cjs → chunk-BKOSCF7N.cjs} +4 -4
- package/dist/chunk-LJVOVGGV.js +299 -0
- package/dist/{chunk-E74ZD4NG.cjs → chunk-SD6NUAET.cjs} +17 -1
- package/dist/{chunk-CGDNKEYI.js → chunk-SMAXQU2I.js} +10 -10
- package/dist/{chunk-XLYPGPDB.cjs → chunk-UUMPCJJ2.cjs} +11 -11
- package/dist/css/index.cjs +5 -5
- package/dist/css/index.js +6 -6
- package/dist/date/index.cjs +4 -4
- package/dist/date/index.js +5 -5
- package/dist/dom/index.cjs +3 -3
- package/dist/dom/index.js +4 -4
- package/dist/html/index.cjs +6 -6
- package/dist/html/index.js +6 -6
- package/dist/index-B8ZJILol.d.cts +30 -0
- package/dist/index-DGgeqhym.d.ts +30 -0
- package/dist/index.cjs +56 -55
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +60 -59
- package/dist/judge/index.cjs +6 -6
- package/dist/judge/index.js +13 -13
- package/dist/tree/index.cjs +3 -3
- package/dist/tree/index.js +6 -6
- package/dist/urls/index.cjs +13 -13
- package/dist/urls/index.js +17 -17
- package/dist/window/index.cjs +18 -2
- package/dist/window/index.d.cts +1 -0
- package/dist/window/index.d.ts +1 -0
- package/dist/window/index.js +18 -2
- package/dist/window/storage.cjs +19 -0
- package/dist/window/storage.d.cts +37 -0
- package/dist/window/storage.d.ts +37 -0
- package/dist/window/storage.js +19 -0
- package/package.json +6 -1
- package/dist/index-9-f0oXM3.d.ts +0 -22
- package/dist/index-_GH04n6g.d.cts +0 -22
- package/dist/{chunk-HRBXT5L3.js → chunk-3DUFQKFF.js} +16 -16
- package/dist/{chunk-TKE7IK2M.cjs → chunk-3QB3GKVL.cjs} +2 -2
- package/dist/{chunk-JPQN3LUH.js → chunk-5VGZQLUQ.js} +4 -4
- package/dist/{chunk-FZI44Q55.cjs → chunk-7GCUYESU.cjs} +12 -12
- package/dist/{chunk-YKNGDK4I.js → chunk-7VGVDOZH.js} +12 -12
- package/dist/{chunk-PV2N6PF2.cjs → chunk-APRM3ELY.cjs} +2 -2
- package/dist/{chunk-4JXZQBCA.js → chunk-EJZIISBA.js} +3 -3
- package/dist/{chunk-Z3BZ5W5W.js → chunk-GPFPHJRZ.js} +3 -3
- package/dist/{chunk-UHKL2RG3.cjs → chunk-J2WRN55J.cjs} +5 -5
- package/dist/{chunk-7NEXCOZZ.cjs → chunk-JI6PHVDX.cjs} +3 -3
- package/dist/{chunk-ZUIHJQD6.cjs → chunk-PKFURLQT.cjs} +2 -2
- package/dist/{chunk-FLGYKRQ6.cjs → chunk-QN6KZWKM.cjs} +3 -3
- package/dist/{chunk-OVHYLUAS.js → chunk-QUIZWAFR.js} +5 -5
- package/dist/{chunk-HPVRBKIG.js → chunk-RGBFHCCJ.js} +5 -5
- package/dist/{chunk-ZADO6V3Z.js → chunk-VJKUTNCV.js} +3 -3
- package/dist/{chunk-KURDD4RK.js → chunk-XM4WSZJV.js} +17 -17
- package/dist/{chunk-2IWTROKK.cjs → chunk-YHM42KJI.cjs} +4 -4
- package/dist/{chunk-64UDCNFR.cjs → chunk-Z2QP5DBD.cjs} +11 -11
package/dist/basic/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BKOSCF7N.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZ2QP5DBDcjs = require('../chunk-Z2QP5DBD.cjs');
|
|
5
|
+
require('../chunk-NRJPCN4J.cjs');
|
|
6
|
+
require('../chunk-SLXKYTEU.cjs');
|
|
7
|
+
require('../chunk-IIKQHLKT.cjs');
|
|
8
|
+
require('../chunk-3VYRYSWK.cjs');
|
|
9
|
+
require('../chunk-SJ74DU4B.cjs');
|
|
10
|
+
require('../chunk-D3SX7OUV.cjs');
|
|
11
|
+
require('../chunk-7AIT4XSD.cjs');
|
|
12
|
+
require('../chunk-GOUC2DFA.cjs');
|
|
13
|
+
require('../chunk-UFYLVZNU.cjs');
|
|
14
|
+
require('../chunk-YTSFTRYZ.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkUUMPCJJ2cjs = require('../chunk-UUMPCJJ2.cjs');
|
|
5
18
|
require('../chunk-ZZKR5C3Y.cjs');
|
|
6
19
|
require('../chunk-K2XKKEE7.cjs');
|
|
7
|
-
require('../chunk-
|
|
20
|
+
require('../chunk-3QB3GKVL.cjs');
|
|
21
|
+
require('../chunk-A5UJF6LP.cjs');
|
|
8
22
|
require('../chunk-HLKHFBMF.cjs');
|
|
23
|
+
require('../chunk-JJ37YIPJ.cjs');
|
|
24
|
+
require('../chunk-4PUYFFPO.cjs');
|
|
9
25
|
require('../chunk-HWHYHL6J.cjs');
|
|
10
26
|
require('../chunk-J7S3KBHL.cjs');
|
|
11
27
|
require('../chunk-L7FSHU27.cjs');
|
|
12
|
-
require('../chunk-JJ37YIPJ.cjs');
|
|
13
28
|
require('../chunk-XWCRGY54.cjs');
|
|
14
|
-
require('../chunk-4PUYFFPO.cjs');
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var _chunk64UDCNFRcjs = require('../chunk-64UDCNFR.cjs');
|
|
18
|
-
require('../chunk-IIKQHLKT.cjs');
|
|
19
|
-
require('../chunk-3VYRYSWK.cjs');
|
|
20
|
-
require('../chunk-GOUC2DFA.cjs');
|
|
21
|
-
require('../chunk-NRJPCN4J.cjs');
|
|
22
|
-
require('../chunk-A5UJF6LP.cjs');
|
|
23
|
-
require('../chunk-SLXKYTEU.cjs');
|
|
24
|
-
require('../chunk-UFYLVZNU.cjs');
|
|
25
|
-
require('../chunk-YTSFTRYZ.cjs');
|
|
26
|
-
require('../chunk-SJ74DU4B.cjs');
|
|
27
|
-
require('../chunk-D3SX7OUV.cjs');
|
|
28
|
-
require('../chunk-7AIT4XSD.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunk65O7KWP4cjs = require('../chunk-65O7KWP4.cjs');
|
|
@@ -35,11 +35,11 @@ require('../chunk-TCMJPIRM.cjs');
|
|
|
35
35
|
require('../chunk-NDKOWDDX.cjs');
|
|
36
36
|
require('../chunk-XSQOJWXL.cjs');
|
|
37
37
|
require('../chunk-GD3OA7GU.cjs');
|
|
38
|
+
require('../chunk-XW3XIK3D.cjs');
|
|
38
39
|
require('../chunk-2H3KVSFA.cjs');
|
|
39
40
|
require('../chunk-ILJLXJ5O.cjs');
|
|
40
41
|
require('../chunk-OJBZ7UUC.cjs');
|
|
41
42
|
require('../chunk-JR6ZN6QD.cjs');
|
|
42
|
-
require('../chunk-XW3XIK3D.cjs');
|
|
43
43
|
require('../chunk-PW7RP73J.cjs');
|
|
44
44
|
require('../chunk-UEVMS6QD.cjs');
|
|
45
45
|
require('../chunk-OQL4GIEJ.cjs');
|
|
@@ -52,4 +52,4 @@ require('../chunk-75ZPJI57.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.array = _chunk65O7KWP4cjs.array_exports; exports.object =
|
|
55
|
+
exports.array = _chunk65O7KWP4cjs.array_exports; exports.object = _chunkZ2QP5DBDcjs.object_exports; exports.string = _chunkUUMPCJJ2cjs.string_exports;
|
package/dist/basic/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-5S7QXY2L.js";
|
|
2
|
+
import {
|
|
3
|
+
object_exports
|
|
4
|
+
} from "../chunk-XM4WSZJV.js";
|
|
5
|
+
import "../chunk-RD4EP3M5.js";
|
|
6
|
+
import "../chunk-B3IGSYZT.js";
|
|
7
|
+
import "../chunk-3LWFUVER.js";
|
|
8
|
+
import "../chunk-A6J46LQK.js";
|
|
9
|
+
import "../chunk-YMKTU42G.js";
|
|
10
|
+
import "../chunk-S42NGJ5W.js";
|
|
11
|
+
import "../chunk-ZEAT23CI.js";
|
|
12
|
+
import "../chunk-3IR2ABRO.js";
|
|
13
|
+
import "../chunk-T4BAVDTH.js";
|
|
14
|
+
import "../chunk-BRIQCC74.js";
|
|
2
15
|
import {
|
|
3
16
|
string_exports
|
|
4
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-SMAXQU2I.js";
|
|
5
18
|
import "../chunk-SE2X5XKO.js";
|
|
6
19
|
import "../chunk-TIZFQBWC.js";
|
|
7
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-VJKUTNCV.js";
|
|
21
|
+
import "../chunk-SHNH5OEU.js";
|
|
8
22
|
import "../chunk-ADPTUJSF.js";
|
|
23
|
+
import "../chunk-Q6BNW3MO.js";
|
|
24
|
+
import "../chunk-YKSVLAAK.js";
|
|
9
25
|
import "../chunk-N5Y3XGHX.js";
|
|
10
26
|
import "../chunk-7DTHADVK.js";
|
|
11
27
|
import "../chunk-VKE5JARB.js";
|
|
12
|
-
import "../chunk-Q6BNW3MO.js";
|
|
13
28
|
import "../chunk-FS4JPT23.js";
|
|
14
|
-
import "../chunk-YKSVLAAK.js";
|
|
15
|
-
import {
|
|
16
|
-
object_exports
|
|
17
|
-
} from "../chunk-KURDD4RK.js";
|
|
18
|
-
import "../chunk-3LWFUVER.js";
|
|
19
|
-
import "../chunk-A6J46LQK.js";
|
|
20
|
-
import "../chunk-3IR2ABRO.js";
|
|
21
|
-
import "../chunk-RD4EP3M5.js";
|
|
22
|
-
import "../chunk-SHNH5OEU.js";
|
|
23
|
-
import "../chunk-B3IGSYZT.js";
|
|
24
|
-
import "../chunk-T4BAVDTH.js";
|
|
25
|
-
import "../chunk-BRIQCC74.js";
|
|
26
|
-
import "../chunk-YMKTU42G.js";
|
|
27
|
-
import "../chunk-S42NGJ5W.js";
|
|
28
|
-
import "../chunk-ZEAT23CI.js";
|
|
29
29
|
import {
|
|
30
30
|
array_exports
|
|
31
31
|
} from "../chunk-PVXQ2H5H.js";
|
|
@@ -35,11 +35,11 @@ import "../chunk-Q6FMBSK4.js";
|
|
|
35
35
|
import "../chunk-WQ2PUZ2S.js";
|
|
36
36
|
import "../chunk-DBSRZCFK.js";
|
|
37
37
|
import "../chunk-ZVBCHJA5.js";
|
|
38
|
+
import "../chunk-O34QAOO7.js";
|
|
38
39
|
import "../chunk-USIMBBLW.js";
|
|
39
40
|
import "../chunk-P7AWHISY.js";
|
|
40
41
|
import "../chunk-LPMR5W6M.js";
|
|
41
42
|
import "../chunk-DMZP4RPN.js";
|
|
42
|
-
import "../chunk-O34QAOO7.js";
|
|
43
43
|
import "../chunk-A276ZDLP.js";
|
|
44
44
|
import "../chunk-4OBNLDTJ.js";
|
|
45
45
|
import "../chunk-EWJJKQIO.js";
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-Z2QP5DBD.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSLXKYTEUcjs = require('../../chunk-SLXKYTEU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIIKQHLKTcjs = require('../../chunk-IIKQHLKT.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var _chunkA5UJF6LPcjs = require('../../chunk-A5UJF6LP.cjs');
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
var _chunkSLXKYTEUcjs = require('../../chunk-SLXKYTEU.cjs');
|
|
21
19
|
|
|
22
20
|
|
|
23
|
-
var
|
|
21
|
+
var _chunkSJ74DU4Bcjs = require('../../chunk-SJ74DU4B.cjs');
|
|
24
22
|
|
|
25
23
|
|
|
26
|
-
var
|
|
24
|
+
var _chunkD3SX7OUVcjs = require('../../chunk-D3SX7OUV.cjs');
|
|
27
25
|
|
|
28
26
|
|
|
27
|
+
var _chunk7AIT4XSDcjs = require('../../chunk-7AIT4XSD.cjs');
|
|
29
28
|
|
|
30
29
|
|
|
30
|
+
var _chunkGOUC2DFAcjs = require('../../chunk-GOUC2DFA.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
var _chunkUFYLVZNUcjs = require('../../chunk-UFYLVZNU.cjs');
|
|
33
34
|
|
|
34
|
-
var _chunkSJ74DU4Bcjs = require('../../chunk-SJ74DU4B.cjs');
|
|
35
35
|
|
|
36
|
+
var _chunkYTSFTRYZcjs = require('../../chunk-YTSFTRYZ.cjs');
|
|
36
37
|
|
|
37
|
-
var _chunkD3SX7OUVcjs = require('../../chunk-D3SX7OUV.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkA5UJF6LPcjs = require('../../chunk-A5UJF6LP.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
@@ -1,29 +1,16 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import {
|
|
3
|
-
setSort
|
|
4
|
-
} from "../../chunk-3LWFUVER.js";
|
|
5
|
-
import {
|
|
6
|
-
unmergeObject
|
|
7
|
-
} from "../../chunk-A6J46LQK.js";
|
|
8
|
-
import {
|
|
9
|
-
hasOwn
|
|
10
|
-
} from "../../chunk-3IR2ABRO.js";
|
|
1
|
+
import "../../chunk-XM4WSZJV.js";
|
|
11
2
|
import {
|
|
12
3
|
mergeObject
|
|
13
4
|
} from "../../chunk-RD4EP3M5.js";
|
|
14
|
-
import {
|
|
15
|
-
getObjValue,
|
|
16
|
-
setObjValue
|
|
17
|
-
} from "../../chunk-SHNH5OEU.js";
|
|
18
5
|
import {
|
|
19
6
|
reverseObj
|
|
20
7
|
} from "../../chunk-B3IGSYZT.js";
|
|
21
8
|
import {
|
|
22
|
-
|
|
23
|
-
} from "../../chunk-
|
|
9
|
+
setSort
|
|
10
|
+
} from "../../chunk-3LWFUVER.js";
|
|
24
11
|
import {
|
|
25
|
-
|
|
26
|
-
} from "../../chunk-
|
|
12
|
+
unmergeObject
|
|
13
|
+
} from "../../chunk-A6J46LQK.js";
|
|
27
14
|
import {
|
|
28
15
|
deepCopys,
|
|
29
16
|
fastDeepCopy,
|
|
@@ -38,6 +25,19 @@ import {
|
|
|
38
25
|
import {
|
|
39
26
|
getSort
|
|
40
27
|
} from "../../chunk-ZEAT23CI.js";
|
|
28
|
+
import {
|
|
29
|
+
hasOwn
|
|
30
|
+
} from "../../chunk-3IR2ABRO.js";
|
|
31
|
+
import {
|
|
32
|
+
attrValueSort
|
|
33
|
+
} from "../../chunk-T4BAVDTH.js";
|
|
34
|
+
import {
|
|
35
|
+
deepCopy
|
|
36
|
+
} from "../../chunk-BRIQCC74.js";
|
|
37
|
+
import {
|
|
38
|
+
getObjValue,
|
|
39
|
+
setObjValue
|
|
40
|
+
} from "../../chunk-SHNH5OEU.js";
|
|
41
41
|
import {
|
|
42
42
|
isEqual,
|
|
43
43
|
isEqualEnhanced
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-UUMPCJJ2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -12,33 +12,33 @@ var _chunkK2XKKEE7cjs = require('../../chunk-K2XKKEE7.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk3QB3GKVLcjs = require('../../chunk-3QB3GKVL.cjs');
|
|
16
|
+
require('../../chunk-A5UJF6LP.cjs');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
var _chunkHLKHFBMFcjs = require('../../chunk-HLKHFBMF.cjs');
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
|
|
22
|
-
var _chunkHWHYHL6Jcjs = require('../../chunk-HWHYHL6J.cjs');
|
|
23
23
|
|
|
24
|
+
var _chunkJJ37YIPJcjs = require('../../chunk-JJ37YIPJ.cjs');
|
|
24
25
|
|
|
25
|
-
var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk4PUYFFPOcjs = require('../../chunk-4PUYFFPO.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
var _chunkHWHYHL6Jcjs = require('../../chunk-HWHYHL6J.cjs');
|
|
32
33
|
|
|
33
|
-
var _chunkJJ37YIPJcjs = require('../../chunk-JJ37YIPJ.cjs');
|
|
34
34
|
|
|
35
|
+
var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
|
|
35
36
|
|
|
36
|
-
var _chunkXWCRGY54cjs = require('../../chunk-XWCRGY54.cjs');
|
|
37
37
|
|
|
38
|
+
var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
|
|
38
39
|
|
|
39
40
|
|
|
40
|
-
var
|
|
41
|
-
require('../../chunk-A5UJF6LP.cjs');
|
|
41
|
+
var _chunkXWCRGY54cjs = require('../../chunk-XWCRGY54.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunk2H3KVSFAcjs = require('../../chunk-2H3KVSFA.cjs');
|
|
@@ -88,4 +88,4 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.deComment = _chunkXWCRGY54cjs.deComment; exports.extractParams = _chunkJJ37YIPJcjs.extractParams; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getContent = _chunk4PUYFFPOcjs.getContent; exports.getContents = _chunk4PUYFFPOcjs.getContents; exports.getFunctionFormat = _chunkJJ37YIPJcjs.getFunctionFormat; exports.getImports = _chunkHWHYHL6Jcjs.getImports; exports.getImportss = _chunkHWHYHL6Jcjs.getImportss; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.serializeCodeBlock =
|
|
91
|
+
exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.deComment = _chunkXWCRGY54cjs.deComment; exports.extractParams = _chunkJJ37YIPJcjs.extractParams; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getContent = _chunk4PUYFFPOcjs.getContent; exports.getContents = _chunk4PUYFFPOcjs.getContents; exports.getFunctionFormat = _chunkJJ37YIPJcjs.getFunctionFormat; exports.getImports = _chunkHWHYHL6Jcjs.getImports; exports.getImportss = _chunkHWHYHL6Jcjs.getImportss; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.serializeCodeBlock = _chunk3QB3GKVLcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunk3QB3GKVLcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkJJ37YIPJcjs.toFunction; exports.toFunctionParam = _chunkZZKR5C3Ycjs.toFunctionParam; exports.toFunctionParamOptions = _chunkZZKR5C3Ycjs.toFunctionParamOptions; exports.toJSONParse = _chunkK2XKKEE7cjs.toJSONParse; exports.toJSONSParse = _chunk3QB3GKVLcjs.toJSONSParse; exports.toJSONSStringify = _chunk3QB3GKVLcjs.toJSONSStringify; exports.toJSONStringify = _chunkK2XKKEE7cjs.toJSONStringify; exports.toStringParse = _chunkHLKHFBMFcjs.toStringParse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-SMAXQU2I.js";
|
|
2
2
|
import {
|
|
3
3
|
toFunctionParam,
|
|
4
4
|
toFunctionParamOptions
|
|
@@ -12,10 +12,20 @@ import {
|
|
|
12
12
|
serializeFunctionRef,
|
|
13
13
|
toJSONSParse,
|
|
14
14
|
toJSONSStringify
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-VJKUTNCV.js";
|
|
16
|
+
import "../../chunk-SHNH5OEU.js";
|
|
16
17
|
import {
|
|
17
18
|
toStringParse
|
|
18
19
|
} from "../../chunk-ADPTUJSF.js";
|
|
20
|
+
import {
|
|
21
|
+
extractParams,
|
|
22
|
+
getFunctionFormat,
|
|
23
|
+
toFunction
|
|
24
|
+
} from "../../chunk-Q6BNW3MO.js";
|
|
25
|
+
import {
|
|
26
|
+
getContent,
|
|
27
|
+
getContents
|
|
28
|
+
} from "../../chunk-YKSVLAAK.js";
|
|
19
29
|
import {
|
|
20
30
|
getImports,
|
|
21
31
|
getImportss
|
|
@@ -26,19 +36,9 @@ import {
|
|
|
26
36
|
import {
|
|
27
37
|
splitUpper
|
|
28
38
|
} from "../../chunk-VKE5JARB.js";
|
|
29
|
-
import {
|
|
30
|
-
extractParams,
|
|
31
|
-
getFunctionFormat,
|
|
32
|
-
toFunction
|
|
33
|
-
} from "../../chunk-Q6BNW3MO.js";
|
|
34
39
|
import {
|
|
35
40
|
deComment
|
|
36
41
|
} from "../../chunk-FS4JPT23.js";
|
|
37
|
-
import {
|
|
38
|
-
getContent,
|
|
39
|
-
getContents
|
|
40
|
-
} from "../../chunk-YKSVLAAK.js";
|
|
41
|
-
import "../../chunk-SHNH5OEU.js";
|
|
42
42
|
import {
|
|
43
43
|
getStrNunPosit
|
|
44
44
|
} from "../../chunk-USIMBBLW.js";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('../../chunk-JJ37YIPJ.cjs');
|
|
6
|
+
var _chunk3QB3GKVLcjs = require('../../chunk-3QB3GKVL.cjs');
|
|
8
7
|
require('../../chunk-A5UJF6LP.cjs');
|
|
8
|
+
require('../../chunk-JJ37YIPJ.cjs');
|
|
9
9
|
require('../../chunk-75ZPJI57.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.serializeCodeBlock =
|
|
15
|
+
exports.serializeCodeBlock = _chunk3QB3GKVLcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunk3QB3GKVLcjs.serializeFunctionRef; exports.toJSONSParse = _chunk3QB3GKVLcjs.toJSONSParse; exports.toJSONSStringify = _chunk3QB3GKVLcjs.toJSONSStringify;
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
serializeFunctionRef,
|
|
4
4
|
toJSONSParse,
|
|
5
5
|
toJSONSStringify
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-Q6BNW3MO.js";
|
|
6
|
+
} from "../../chunk-VJKUTNCV.js";
|
|
8
7
|
import "../../chunk-SHNH5OEU.js";
|
|
8
|
+
import "../../chunk-Q6BNW3MO.js";
|
|
9
9
|
import "../../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
serializeCodeBlock,
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// packages/window/storage.ts
|
|
2
|
+
var STORAGE = "fang-storage";
|
|
3
|
+
function getKey(key, config = {}) {
|
|
4
|
+
const { prefix, isCom = false } = config;
|
|
5
|
+
if (prefix) {
|
|
6
|
+
return `${prefix}.${key}`;
|
|
7
|
+
}
|
|
8
|
+
return isCom ? key : `${STORAGE}.${key}`;
|
|
9
|
+
}
|
|
10
|
+
function simpleEncrypt(data) {
|
|
11
|
+
return btoa(encodeURIComponent(data));
|
|
12
|
+
}
|
|
13
|
+
function simpleDecrypt(encrypted) {
|
|
14
|
+
try {
|
|
15
|
+
return decodeURIComponent(atob(encrypted));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function isExpired(expires) {
|
|
21
|
+
if (!expires) return false;
|
|
22
|
+
return Date.now() > expires;
|
|
23
|
+
}
|
|
24
|
+
function normalizeConfig(config) {
|
|
25
|
+
return {
|
|
26
|
+
isCom: false,
|
|
27
|
+
...config
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function setLocal(key, value = "", config = {}) {
|
|
31
|
+
try {
|
|
32
|
+
if (value === void 0 || value === null) value = "";
|
|
33
|
+
const normalizedConfig = normalizeConfig(config);
|
|
34
|
+
const storedData = {
|
|
35
|
+
value,
|
|
36
|
+
config: void 0
|
|
37
|
+
};
|
|
38
|
+
if (Object.keys(normalizedConfig).length > 0) {
|
|
39
|
+
storedData.config = {};
|
|
40
|
+
if (normalizedConfig.expires) {
|
|
41
|
+
let expires;
|
|
42
|
+
if (typeof normalizedConfig.expires === "string") {
|
|
43
|
+
expires = new Date(normalizedConfig.expires).getTime();
|
|
44
|
+
} else {
|
|
45
|
+
expires = Date.now() + normalizedConfig.expires;
|
|
46
|
+
}
|
|
47
|
+
storedData.config.expires = expires;
|
|
48
|
+
}
|
|
49
|
+
if (normalizedConfig.once !== void 0) {
|
|
50
|
+
storedData.config.once = normalizedConfig.once;
|
|
51
|
+
}
|
|
52
|
+
if (normalizedConfig.encrypt !== void 0) {
|
|
53
|
+
storedData.config.encrypt = normalizedConfig.encrypt;
|
|
54
|
+
}
|
|
55
|
+
if (normalizedConfig.isCom !== void 0) {
|
|
56
|
+
storedData.config.isCom = normalizedConfig.isCom;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
let dataToStore = JSON.stringify(storedData);
|
|
60
|
+
if (_optionalChain([storedData, 'access', _ => _.config, 'optionalAccess', _2 => _2.encrypt])) {
|
|
61
|
+
dataToStore = simpleEncrypt(dataToStore);
|
|
62
|
+
}
|
|
63
|
+
localStorage.setItem(getKey(key, normalizedConfig), dataToStore);
|
|
64
|
+
return true;
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.error("\u5B58\u50A8\u6570\u636E\u5931\u8D25:", error);
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function getLocal(key, config = {}) {
|
|
71
|
+
try {
|
|
72
|
+
const normalizedConfig = normalizeConfig(config);
|
|
73
|
+
const storageKey = getKey(key, normalizedConfig);
|
|
74
|
+
let storedItem = localStorage.getItem(storageKey);
|
|
75
|
+
if (!storedItem || storedItem === "null" || storedItem === "undefined") {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
let parsedData;
|
|
79
|
+
try {
|
|
80
|
+
parsedData = JSON.parse(storedItem);
|
|
81
|
+
} catch (e2) {
|
|
82
|
+
const decrypted = simpleDecrypt(storedItem);
|
|
83
|
+
if (!decrypted) return null;
|
|
84
|
+
parsedData = JSON.parse(decrypted);
|
|
85
|
+
}
|
|
86
|
+
if (_optionalChain([parsedData, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.expires]) && isExpired(parsedData.config.expires)) {
|
|
87
|
+
localStorage.removeItem(storageKey);
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
if (_optionalChain([parsedData, 'access', _5 => _5.config, 'optionalAccess', _6 => _6.once])) {
|
|
91
|
+
localStorage.removeItem(storageKey);
|
|
92
|
+
}
|
|
93
|
+
return parsedData.value;
|
|
94
|
+
} catch (error) {
|
|
95
|
+
console.error("\u83B7\u53D6\u6570\u636E\u5931\u8D25:", error);
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function clearLocal(key, config = {}) {
|
|
100
|
+
try {
|
|
101
|
+
const normalizedConfig = normalizeConfig(config);
|
|
102
|
+
if (key) {
|
|
103
|
+
localStorage.removeItem(getKey(key, normalizedConfig));
|
|
104
|
+
} else {
|
|
105
|
+
if (normalizedConfig.prefix) {
|
|
106
|
+
const prefixKey = getKey("", normalizedConfig).replace(
|
|
107
|
+
/\.$/,
|
|
108
|
+
""
|
|
109
|
+
);
|
|
110
|
+
const keysToRemove = [];
|
|
111
|
+
for (let i = 0; i < localStorage.length; i++) {
|
|
112
|
+
const storageKey = localStorage.key(i);
|
|
113
|
+
if (storageKey && storageKey.startsWith(prefixKey + ".")) {
|
|
114
|
+
keysToRemove.push(storageKey);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
keysToRemove.forEach((k) => localStorage.removeItem(k));
|
|
118
|
+
} else if (normalizedConfig.isCom) {
|
|
119
|
+
localStorage.clear();
|
|
120
|
+
} else {
|
|
121
|
+
const keysToRemove = [];
|
|
122
|
+
const privatePrefix = `${STORAGE}.`;
|
|
123
|
+
for (let i = 0; i < localStorage.length; i++) {
|
|
124
|
+
const storageKey = localStorage.key(i);
|
|
125
|
+
if (storageKey && storageKey.startsWith(privatePrefix)) {
|
|
126
|
+
keysToRemove.push(storageKey);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
keysToRemove.forEach((k) => localStorage.removeItem(k));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return true;
|
|
133
|
+
} catch (error) {
|
|
134
|
+
console.error("\u6E05\u9664\u6570\u636E\u5931\u8D25:", error);
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function setSession(key, value = "", config = {}) {
|
|
139
|
+
try {
|
|
140
|
+
if (value === void 0 || value === null) value = "";
|
|
141
|
+
const normalizedConfig = normalizeConfig(config);
|
|
142
|
+
const storedData = {
|
|
143
|
+
value,
|
|
144
|
+
config: void 0
|
|
145
|
+
};
|
|
146
|
+
if (Object.keys(normalizedConfig).length > 0) {
|
|
147
|
+
storedData.config = {};
|
|
148
|
+
if (normalizedConfig.expires) {
|
|
149
|
+
let expires;
|
|
150
|
+
if (typeof normalizedConfig.expires === "string") {
|
|
151
|
+
expires = new Date(normalizedConfig.expires).getTime();
|
|
152
|
+
} else {
|
|
153
|
+
expires = Date.now() + normalizedConfig.expires;
|
|
154
|
+
}
|
|
155
|
+
storedData.config.expires = expires;
|
|
156
|
+
}
|
|
157
|
+
if (normalizedConfig.once !== void 0) {
|
|
158
|
+
storedData.config.once = normalizedConfig.once;
|
|
159
|
+
}
|
|
160
|
+
if (normalizedConfig.encrypt !== void 0) {
|
|
161
|
+
storedData.config.encrypt = normalizedConfig.encrypt;
|
|
162
|
+
}
|
|
163
|
+
if (normalizedConfig.isCom !== void 0) {
|
|
164
|
+
storedData.config.isCom = normalizedConfig.isCom;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
let dataToStore = JSON.stringify(storedData);
|
|
168
|
+
if (_optionalChain([storedData, 'access', _7 => _7.config, 'optionalAccess', _8 => _8.encrypt])) {
|
|
169
|
+
dataToStore = simpleEncrypt(dataToStore);
|
|
170
|
+
}
|
|
171
|
+
sessionStorage.setItem(getKey(key, normalizedConfig), dataToStore);
|
|
172
|
+
return true;
|
|
173
|
+
} catch (error) {
|
|
174
|
+
console.error("\u4F1A\u8BDD\u5B58\u50A8\u6570\u636E\u5931\u8D25:", error);
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function getSession(key, config = {}) {
|
|
179
|
+
try {
|
|
180
|
+
const normalizedConfig = normalizeConfig(config);
|
|
181
|
+
const storageKey = getKey(key, normalizedConfig);
|
|
182
|
+
let storedItem = sessionStorage.getItem(storageKey);
|
|
183
|
+
if (!storedItem || storedItem === "null" || storedItem === "undefined") {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
let parsedData;
|
|
187
|
+
try {
|
|
188
|
+
parsedData = JSON.parse(storedItem);
|
|
189
|
+
} catch (e3) {
|
|
190
|
+
const decrypted = simpleDecrypt(storedItem);
|
|
191
|
+
if (!decrypted) return null;
|
|
192
|
+
parsedData = JSON.parse(decrypted);
|
|
193
|
+
}
|
|
194
|
+
if (_optionalChain([parsedData, 'access', _9 => _9.config, 'optionalAccess', _10 => _10.expires]) && isExpired(parsedData.config.expires)) {
|
|
195
|
+
sessionStorage.removeItem(storageKey);
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
if (_optionalChain([parsedData, 'access', _11 => _11.config, 'optionalAccess', _12 => _12.once])) {
|
|
199
|
+
sessionStorage.removeItem(storageKey);
|
|
200
|
+
}
|
|
201
|
+
return parsedData.value;
|
|
202
|
+
} catch (error) {
|
|
203
|
+
console.error("\u83B7\u53D6\u4F1A\u8BDD\u6570\u636E\u5931\u8D25:", error);
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function clearSession(key, config = {}) {
|
|
208
|
+
try {
|
|
209
|
+
const normalizedConfig = normalizeConfig(config);
|
|
210
|
+
if (key) {
|
|
211
|
+
sessionStorage.removeItem(getKey(key, normalizedConfig));
|
|
212
|
+
} else {
|
|
213
|
+
if (normalizedConfig.prefix) {
|
|
214
|
+
const prefixKey = getKey("", normalizedConfig).replace(
|
|
215
|
+
/\.$/,
|
|
216
|
+
""
|
|
217
|
+
);
|
|
218
|
+
const keysToRemove = [];
|
|
219
|
+
for (let i = 0; i < sessionStorage.length; i++) {
|
|
220
|
+
const storageKey = sessionStorage.key(i);
|
|
221
|
+
if (storageKey && storageKey.startsWith(prefixKey + ".")) {
|
|
222
|
+
keysToRemove.push(storageKey);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
keysToRemove.forEach((k) => sessionStorage.removeItem(k));
|
|
226
|
+
} else if (normalizedConfig.isCom) {
|
|
227
|
+
sessionStorage.clear();
|
|
228
|
+
} else {
|
|
229
|
+
const keysToRemove = [];
|
|
230
|
+
const privatePrefix = `${STORAGE}.`;
|
|
231
|
+
for (let i = 0; i < sessionStorage.length; i++) {
|
|
232
|
+
const storageKey = sessionStorage.key(i);
|
|
233
|
+
if (storageKey && storageKey.startsWith(privatePrefix)) {
|
|
234
|
+
keysToRemove.push(storageKey);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
keysToRemove.forEach((k) => sessionStorage.removeItem(k));
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return true;
|
|
241
|
+
} catch (error) {
|
|
242
|
+
console.error("\u6E05\u9664\u4F1A\u8BDD\u6570\u636E\u5931\u8D25:", error);
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function cleanupExpired() {
|
|
247
|
+
for (let i = 0; i < localStorage.length; i++) {
|
|
248
|
+
const key = localStorage.key(i);
|
|
249
|
+
if (key) {
|
|
250
|
+
try {
|
|
251
|
+
const item = localStorage.getItem(key);
|
|
252
|
+
if (item) {
|
|
253
|
+
let parsedData;
|
|
254
|
+
try {
|
|
255
|
+
parsedData = JSON.parse(item);
|
|
256
|
+
} catch (e4) {
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
if (_optionalChain([parsedData, 'access', _13 => _13.config, 'optionalAccess', _14 => _14.expires]) && isExpired(parsedData.config.expires)) {
|
|
260
|
+
localStorage.removeItem(key);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
} catch (error) {
|
|
264
|
+
console.error(`\u6E05\u7406\u8FC7\u671F\u6570\u636E\u5931\u8D25 (key: ${key}):`, error);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
for (let i = 0; i < sessionStorage.length; i++) {
|
|
269
|
+
const key = sessionStorage.key(i);
|
|
270
|
+
if (key) {
|
|
271
|
+
try {
|
|
272
|
+
const item = sessionStorage.getItem(key);
|
|
273
|
+
if (item) {
|
|
274
|
+
let parsedData;
|
|
275
|
+
try {
|
|
276
|
+
parsedData = JSON.parse(item);
|
|
277
|
+
} catch (e5) {
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
if (_optionalChain([parsedData, 'access', _15 => _15.config, 'optionalAccess', _16 => _16.expires]) && isExpired(parsedData.config.expires)) {
|
|
281
|
+
sessionStorage.removeItem(key);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
} catch (error) {
|
|
285
|
+
console.error(`\u6E05\u7406\u4F1A\u8BDD\u8FC7\u671F\u6570\u636E\u5931\u8D25 (key: ${key}):`, error);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
exports.setLocal = setLocal; exports.getLocal = getLocal; exports.clearLocal = clearLocal; exports.setSession = setSession; exports.getSession = getSession; exports.clearSession = clearSession; exports.cleanupExpired = cleanupExpired;
|