@gardenfi/utils 2.4.4 → 2.4.5
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/index100.cjs +1 -1
- package/dist/index100.js +6 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +50 -35
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +16 -9
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -7
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +5 -26
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +14 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +3 -14
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +25 -116
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +4 -81
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +6 -177
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +87 -5
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +125 -13
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +6 -12
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +20 -94
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +16 -74
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +39 -88
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +20 -137
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +10 -68
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +6 -23
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +103 -106
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +3 -7
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +4 -51
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +9 -17
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -11
- package/dist/index124.cjs +2 -1
- package/dist/index124.js +3 -6
- package/dist/index125.cjs +20 -1
- package/dist/index125.js +326 -14
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +13 -3
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +4 -26
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -5
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +7 -6
- package/dist/index130.cjs +3 -1
- package/dist/index130.js +211 -84
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +30 -124
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +21 -7
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -21
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +73 -17
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +5 -40
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +5 -21
- package/dist/index137.cjs +9 -1
- package/dist/index137.js +35 -11
- package/dist/index138.cjs +3 -1
- package/dist/index138.js +110 -6
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +3 -107
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +24 -3
- package/dist/index141.cjs +3 -1
- package/dist/index141.js +452 -4
- package/dist/index142.cjs +2 -1
- package/dist/index142.js +55 -9
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +27 -2
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +34 -3
- package/dist/index145.cjs +1 -20
- package/dist/index145.js +29 -320
- package/dist/index146.cjs +4 -1
- package/dist/index146.js +192 -11
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +8 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +13 -2
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +17 -6
- package/dist/index150.cjs +1 -3
- package/dist/index150.js +19 -207
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +9 -32
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +55 -21
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +45 -5
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +8 -73
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +7 -5
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +16 -5
- package/dist/index157.cjs +1 -9
- package/dist/index157.js +16 -33
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +21 -110
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +52 -3
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +11 -23
- package/dist/index161.cjs +1 -3
- package/dist/index161.js +161 -451
- package/dist/index162.cjs +1 -2
- package/dist/index162.js +20 -53
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +126 -25
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +33 -28
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -35
- package/dist/index166.cjs +1 -4
- package/dist/index166.js +27 -194
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +189 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -19
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +60 -23
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +3 -9
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +20 -7
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +16 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +23 -18
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +11 -21
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +33 -50
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +3 -12
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +18 -161
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +26 -126
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +35 -37
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +10 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +25 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +27 -190
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +66 -4
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +9 -64
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +34 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +24 -20
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +24 -16
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -23
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +14 -34
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +104 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +80 -18
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -27
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -36
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +27 -10
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +39 -25
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +13 -28
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +39 -62
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -9
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +11 -24
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +19 -24
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +78 -3
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +2 -15
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +33 -76
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +111 -5
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +48 -26
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +30 -40
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +8 -5
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +6 -11
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +6 -19
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +11 -78
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +11 -2
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +12 -36
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +28 -107
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +5 -50
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +7 -32
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +20 -6
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +31 -6
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +20 -11
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +3 -10
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +17 -13
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +10 -32
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +22 -5
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +22 -7
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +5 -8
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +5 -20
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +8 -31
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +104 -20
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +3 -4
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +18 -17
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +170 -9
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -20
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +10 -22
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +16 -5
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +22 -8
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +29 -103
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -3
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +13 -18
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +11 -16
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +47 -10
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +10 -15
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +7 -22
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -30
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +14 -2
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +14 -13
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +9 -12
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +24 -47
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +12 -11
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +24 -7
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +12 -8
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +15 -13
- package/dist/index252.cjs +2 -1
- package/dist/index252.js +22 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +52 -9
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +25 -24
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +13 -12
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +15 -24
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +5 -13
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +13 -15
- package/dist/index259.cjs +1 -2
- package/dist/index259.js +10 -24
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +16 -52
- package/dist/index261.cjs +2 -1
- package/dist/index261.js +40 -223
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +2 -140
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +5 -146
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +10 -103
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +19 -6
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +8 -42
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +62 -74
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +66 -2
- package/dist/index269.cjs +1 -2
- package/dist/index269.js +185 -40
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +23 -2
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +42 -5
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +75 -9
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +38 -17
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +16 -8
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +13 -66
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +11 -64
- package/dist/index277.cjs +2 -1
- package/dist/index277.js +16 -184
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +13 -21
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +11 -42
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +98 -71
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +6 -40
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +223 -15
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +6 -13
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +7 -13
- package/dist/index285.cjs +1 -2
- package/dist/index285.js +26 -18
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +18 -13
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +146 -11
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +3 -6
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +141 -7
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +155 -26
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +9 -19
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +113 -3
- package/dist/index293.cjs +2 -1
- package/dist/index293.js +122 -128
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +137 -153
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +42 -9
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +72 -107
- package/dist/index297.cjs +1 -2
- package/dist/index297.js +2 -135
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +1 -1
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +68 -698
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +675 -178
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +200 -67
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +1 -1
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +2 -2
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +1 -1
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +2 -2
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +2 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +45 -5
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -45
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +7 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +31 -45
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +28 -24
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +16 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +33 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +44 -15
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +151 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +34 -12
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -9
- package/dist/index41.cjs +2 -1
- package/dist/index41.js +58 -11
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +37 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +15 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +8 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -56
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +45 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +31 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +3 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -170
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +64 -99
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +28 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +71 -7
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +17 -29
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +110 -29
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +60 -16
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +20 -29
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +37 -41
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +35 -149
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +54 -31
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +161 -33
- package/dist/index62.cjs +1 -2
- package/dist/index62.js +39 -58
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -37
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +36 -15
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +9 -8
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +51 -2
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +82 -42
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +40 -30
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -9
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -68
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +8 -28
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +13 -71
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +7 -19
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +9 -110
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +43 -57
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -24
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +16 -40
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +13 -37
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +6 -58
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +33 -164
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -40
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +7 -8
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +26 -36
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +10 -9
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -50
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +113 -81
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +77 -37
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +177 -8
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +5 -5
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -17
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -8
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +95 -13
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +75 -7
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +89 -9
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +137 -45
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +69 -13
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +22 -15
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +109 -13
- package/package.json +1 -1
package/dist/index293.js
CHANGED
|
@@ -1,143 +1,137 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} catch (e) {
|
|
13
|
-
return typeof e == "object" && typeof e.response < "u" || !globalThis.hasOwnProperty("Image") ? !1 : new Promise((n) => {
|
|
14
|
-
const r = new Image();
|
|
15
|
-
r.onload = () => {
|
|
16
|
-
n(!0);
|
|
17
|
-
}, r.onerror = () => {
|
|
18
|
-
n(!1);
|
|
19
|
-
}, r.src = t;
|
|
1
|
+
import { assert as p } from "./index308.js";
|
|
2
|
+
import { BaseError as u } from "./index303.js";
|
|
3
|
+
import { size as y, padLeft as f, fromString as x, fromBoolean as w, fromNumber as E, padRight as P, concat as g } from "./index290.js";
|
|
4
|
+
import { integerRegex as A, bytesRegex as $, arrayRegex as L } from "./index309.js";
|
|
5
|
+
import { prepareParameters as z, encode as I } from "./index310.js";
|
|
6
|
+
function N(n, e, t) {
|
|
7
|
+
const { checksumAddress: r = !1 } = {};
|
|
8
|
+
if (n.length !== e.length)
|
|
9
|
+
throw new b({
|
|
10
|
+
expectedLength: n.length,
|
|
11
|
+
givenLength: e.length
|
|
20
12
|
});
|
|
21
|
-
|
|
13
|
+
const a = z({
|
|
14
|
+
checksumAddress: r,
|
|
15
|
+
parameters: n,
|
|
16
|
+
values: e
|
|
17
|
+
}), s = I(a);
|
|
18
|
+
return s.length === 0 ? "0x" : s;
|
|
22
19
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return e != null && e.arweave && (I = t.replace(/https:\/\/arweave.net/g, e == null ? void 0 : e.arweave)), { uri: I, isOnChain: !1, isEncoded: !1 };
|
|
20
|
+
function m(n, e) {
|
|
21
|
+
if (n.length !== e.length)
|
|
22
|
+
throw new b({
|
|
23
|
+
expectedLength: n.length,
|
|
24
|
+
givenLength: e.length
|
|
25
|
+
});
|
|
26
|
+
const t = [];
|
|
27
|
+
for (let r = 0; r < n.length; r++) {
|
|
28
|
+
const a = n[r], s = e[r];
|
|
29
|
+
t.push(m.encode(a, s));
|
|
34
30
|
}
|
|
35
|
-
|
|
36
|
-
return {
|
|
37
|
-
uri: `${r}/${u ? "ipns" : "ipfs"}/${s}${m}`,
|
|
38
|
-
isOnChain: !1,
|
|
39
|
-
isEncoded: !1
|
|
40
|
-
};
|
|
41
|
-
if (o === "ar:/" && s)
|
|
42
|
-
return {
|
|
43
|
-
uri: `${a}/${s}${m || ""}`,
|
|
44
|
-
isOnChain: !1,
|
|
45
|
-
isEncoded: !1
|
|
46
|
-
};
|
|
47
|
-
let c = t.replace(C, "");
|
|
48
|
-
if (c.startsWith("<svg") && (c = `data:image/svg+xml;base64,${btoa(c)}`), c.startsWith("data:") || c.startsWith("{"))
|
|
49
|
-
return {
|
|
50
|
-
uri: c,
|
|
51
|
-
isOnChain: !0,
|
|
52
|
-
isEncoded: !1
|
|
53
|
-
};
|
|
54
|
-
throw new d({ uri: t });
|
|
31
|
+
return g(...t);
|
|
55
32
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
33
|
+
(function(n) {
|
|
34
|
+
function e(t, r, a = !1) {
|
|
35
|
+
if (t === "address") {
|
|
36
|
+
const i = r;
|
|
37
|
+
return p(i), f(i.toLowerCase(), a ? 32 : 0);
|
|
38
|
+
}
|
|
39
|
+
if (t === "string")
|
|
40
|
+
return x(r);
|
|
41
|
+
if (t === "bytes")
|
|
42
|
+
return r;
|
|
43
|
+
if (t === "bool")
|
|
44
|
+
return f(w(r), a ? 32 : 1);
|
|
45
|
+
const s = t.match(A);
|
|
46
|
+
if (s) {
|
|
47
|
+
const [i, o, c = "256"] = s, h = Number.parseInt(c) / 8;
|
|
48
|
+
return E(r, {
|
|
49
|
+
size: a ? 32 : h,
|
|
50
|
+
signed: o === "int"
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const d = t.match($);
|
|
54
|
+
if (d) {
|
|
55
|
+
const [i, o] = d;
|
|
56
|
+
if (Number.parseInt(o) !== (r.length - 2) / 2)
|
|
57
|
+
throw new M({
|
|
58
|
+
expectedSize: Number.parseInt(o),
|
|
59
|
+
value: r
|
|
60
|
+
});
|
|
61
|
+
return P(r, a ? 32 : 0);
|
|
62
|
+
}
|
|
63
|
+
const l = t.match(L);
|
|
64
|
+
if (l && Array.isArray(r)) {
|
|
65
|
+
const [i, o] = l, c = [];
|
|
66
|
+
for (let h = 0; h < r.length; h++)
|
|
67
|
+
c.push(e(o, r[h], !0));
|
|
68
|
+
return c.length === 0 ? "0x" : g(...c);
|
|
69
|
+
}
|
|
70
|
+
throw new j(t);
|
|
71
|
+
}
|
|
72
|
+
n.encode = e;
|
|
73
|
+
})(m || (m = {}));
|
|
74
|
+
class R extends u {
|
|
75
|
+
constructor({ expectedLength: e, givenLength: t, type: r }) {
|
|
76
|
+
super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`), Object.defineProperty(this, "name", {
|
|
77
|
+
enumerable: !0,
|
|
78
|
+
configurable: !0,
|
|
79
|
+
writable: !0,
|
|
80
|
+
value: "AbiParameters.ArrayLengthMismatchError"
|
|
67
81
|
});
|
|
68
|
-
} catch {
|
|
69
|
-
throw new d({ uri: e });
|
|
70
82
|
}
|
|
71
83
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
class M extends u {
|
|
85
|
+
constructor({ expectedSize: e, value: t }) {
|
|
86
|
+
super(`Size of bytes "${t}" (bytes${y(t)}) does not match expected size (bytes${e}).`), Object.defineProperty(this, "name", {
|
|
87
|
+
enumerable: !0,
|
|
88
|
+
configurable: !0,
|
|
89
|
+
writable: !0,
|
|
90
|
+
value: "AbiParameters.BytesSizeMismatchError"
|
|
91
|
+
});
|
|
92
|
+
}
|
|
77
93
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
class b extends u {
|
|
95
|
+
constructor({ expectedLength: e, givenLength: t }) {
|
|
96
|
+
super([
|
|
97
|
+
"ABI encoding parameters/values length mismatch.",
|
|
98
|
+
`Expected length (parameters): ${e}`,
|
|
99
|
+
`Given length (values): ${t}`
|
|
100
|
+
].join(`
|
|
101
|
+
`)), Object.defineProperty(this, "name", {
|
|
102
|
+
enumerable: !0,
|
|
103
|
+
configurable: !0,
|
|
104
|
+
writable: !0,
|
|
105
|
+
value: "AbiParameters.LengthMismatchError"
|
|
89
106
|
});
|
|
90
|
-
|
|
91
|
-
throw new f({ reason: "Token ID not found" });
|
|
92
|
-
if (!p)
|
|
93
|
-
throw new f({ reason: "ERC namespace not found" });
|
|
94
|
-
return {
|
|
95
|
-
chainID: Number.parseInt(o),
|
|
96
|
-
namespace: p.toLowerCase(),
|
|
97
|
-
contractAddress: s,
|
|
98
|
-
tokenID: a
|
|
99
|
-
};
|
|
107
|
+
}
|
|
100
108
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
type: "function",
|
|
109
|
-
stateMutability: "view",
|
|
110
|
-
inputs: [{ name: "tokenId", type: "uint256" }],
|
|
111
|
-
outputs: [{ name: "", type: "string" }]
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
functionName: "tokenURI",
|
|
115
|
-
args: [BigInt(e.tokenID)]
|
|
109
|
+
class _ extends u {
|
|
110
|
+
constructor(e) {
|
|
111
|
+
super(`Value \`${e}\` is not a valid array.`), Object.defineProperty(this, "name", {
|
|
112
|
+
enumerable: !0,
|
|
113
|
+
configurable: !0,
|
|
114
|
+
writable: !0,
|
|
115
|
+
value: "AbiParameters.InvalidArrayError"
|
|
116
116
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
outputs: [{ name: "", type: "string" }]
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
functionName: "uri",
|
|
130
|
-
args: [BigInt(e.tokenID)]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
class j extends u {
|
|
120
|
+
constructor(e) {
|
|
121
|
+
super(`Type \`${e}\` is not a valid ABI Type.`), Object.defineProperty(this, "name", {
|
|
122
|
+
enumerable: !0,
|
|
123
|
+
configurable: !0,
|
|
124
|
+
writable: !0,
|
|
125
|
+
value: "AbiParameters.InvalidTypeError"
|
|
131
126
|
});
|
|
132
|
-
|
|
127
|
+
}
|
|
133
128
|
}
|
|
134
129
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
N as resolveAvatarUri
|
|
130
|
+
R as ArrayLengthMismatchError,
|
|
131
|
+
M as BytesSizeMismatchError,
|
|
132
|
+
_ as InvalidArrayError,
|
|
133
|
+
j as InvalidTypeError,
|
|
134
|
+
b as LengthMismatchError,
|
|
135
|
+
N as encode,
|
|
136
|
+
m as encodePacked
|
|
143
137
|
};
|
package/dist/index294.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index287.cjs");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const d=BigInt(0),g=BigInt(1);function T(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function x(e){const t=e.toString(16);return t.length&1?"0"+t:t}function w(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?d:BigInt("0x"+e)}function v(e){return w(i.bytesToHex(e))}function U(e){return i.abytes(e),w(i.bytesToHex(Uint8Array.from(e).reverse()))}function h(e,t){return i.hexToBytes(e.toString(16).padStart(t*2,"0"))}function H(e,t){return h(e,t).reverse()}function A(e,t,r){let o;if(typeof t=="string")try{o=i.hexToBytes(t)}catch(n){throw new Error(e+" must be hex string or Uint8Array, cause: "+n)}else if(i.isBytes(t))o=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=o.length;if(typeof r=="number"&&s!==r)throw new Error(e+" of length "+r+" expected, got "+s);return o}const m=e=>typeof e=="bigint"&&d<=e;function p(e,t,r){return m(e)&&m(t)&&m(r)&&t<=e&&e<r}function I(e,t,r,o){if(!p(t,r,o))throw new Error("expected valid "+e+": "+r+" <= n < "+o+", got "+t)}function j(e){let t;for(t=0;e>d;e>>=g,t+=1);return t}const k=e=>(g<<BigInt(e))-g;function N(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const o=u=>new Uint8Array(u),s=u=>Uint8Array.of(u);let n=o(e),c=o(e),f=0;const a=()=>{n.fill(1),c.fill(0),f=0},b=(...u)=>r(c,n,...u),B=(u=o(0))=>{c=b(s(0),u),n=b(),u.length!==0&&(c=b(s(1),u),n=b())},E=()=>{if(f++>=1e3)throw new Error("drbg: tried 1000 values");let u=0;const y=[];for(;u<t;){n=b();const l=n.slice();y.push(l),u+=n.length}return i.concatBytes(...y)};return(u,y)=>{a(),B(u);let l;for(;!(l=y(E()));)B();return a(),l}}function O(e,t,r={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function o(s,n,c){const f=e[s];if(c&&f===void 0)return;const a=typeof f;if(a!==n||f===null)throw new Error(`param "${s}" is invalid: expected ${n}, got ${a}`)}Object.entries(t).forEach(([s,n])=>o(s,n,!1)),Object.entries(r).forEach(([s,n])=>o(s,n,!0))}function S(e){const t=new WeakMap;return(r,...o)=>{const s=t.get(r);if(s!==void 0)return s;const n=e(r,...o);return t.set(r,n),n}}exports.abytes=i.abytes;exports.anumber=i.anumber;exports.bytesToHex=i.bytesToHex;exports.concatBytes=i.concatBytes;exports.hexToBytes=i.hexToBytes;exports.isBytes=i.isBytes;exports.randomBytes=i.randomBytes;exports.utf8ToBytes=i.utf8ToBytes;exports._validateObject=O;exports.aInRange=I;exports.abool=T;exports.bitLen=j;exports.bitMask=k;exports.bytesToNumberBE=v;exports.bytesToNumberLE=U;exports.createHmacDrbg=N;exports.ensureBytes=A;exports.hexToNumber=w;exports.inRange=p;exports.memoized=S;exports.numberToBytesBE=h;exports.numberToBytesLE=H;exports.numberToHexUnpadded=x;
|
package/dist/index294.js
CHANGED
|
@@ -1,158 +1,142 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { hexToBytes as p, isBytes as B, abytes as v, bytesToHex as d, concatBytes as U } from "./index287.js";
|
|
2
|
+
import { anumber as W, randomBytes as C, utf8ToBytes as G } from "./index287.js";
|
|
3
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4
|
+
const y = /* @__PURE__ */ BigInt(0), g = /* @__PURE__ */ BigInt(1);
|
|
5
|
+
function k(t, r) {
|
|
6
|
+
if (typeof r != "boolean")
|
|
7
|
+
throw new Error(t + " boolean expected, got " + r);
|
|
8
|
+
}
|
|
9
|
+
function j(t) {
|
|
10
|
+
const r = t.toString(16);
|
|
11
|
+
return r.length & 1 ? "0" + r : r;
|
|
12
|
+
}
|
|
13
|
+
function h(t) {
|
|
9
14
|
if (typeof t != "string")
|
|
10
|
-
throw new
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
18
|
-
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
'Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).'
|
|
101
|
-
]
|
|
102
|
-
}), Object.defineProperty(this, "name", {
|
|
103
|
-
enumerable: !0,
|
|
104
|
-
configurable: !0,
|
|
105
|
-
writable: !0,
|
|
106
|
-
value: "Hex.InvalidHexValueError"
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
class _ extends o {
|
|
111
|
-
constructor({ givenSize: e, maxSize: r }) {
|
|
112
|
-
super(`Size cannot exceed \`${r}\` bytes. Given size: \`${e}\` bytes.`), Object.defineProperty(this, "name", {
|
|
113
|
-
enumerable: !0,
|
|
114
|
-
configurable: !0,
|
|
115
|
-
writable: !0,
|
|
116
|
-
value: "Hex.SizeOverflowError"
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
class M extends o {
|
|
121
|
-
constructor({ offset: e, position: r, size: n }) {
|
|
122
|
-
super(`Slice ${r === "start" ? "starting" : "ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
|
|
123
|
-
enumerable: !0,
|
|
124
|
-
configurable: !0,
|
|
125
|
-
writable: !0,
|
|
126
|
-
value: "Hex.SliceOffsetOutOfBoundsError"
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
class R extends o {
|
|
131
|
-
constructor({ size: e, targetSize: r, type: n }) {
|
|
132
|
-
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
133
|
-
enumerable: !0,
|
|
134
|
-
configurable: !0,
|
|
135
|
-
writable: !0,
|
|
136
|
-
value: "Hex.SizeExceedsPaddingSizeError"
|
|
137
|
-
});
|
|
15
|
+
throw new Error("hex string expected, got " + typeof t);
|
|
16
|
+
return t === "" ? y : BigInt("0x" + t);
|
|
17
|
+
}
|
|
18
|
+
function H(t) {
|
|
19
|
+
return h(d(t));
|
|
20
|
+
}
|
|
21
|
+
function O(t) {
|
|
22
|
+
return v(t), h(d(Uint8Array.from(t).reverse()));
|
|
23
|
+
}
|
|
24
|
+
function x(t, r) {
|
|
25
|
+
return p(t.toString(16).padStart(r * 2, "0"));
|
|
26
|
+
}
|
|
27
|
+
function S(t, r) {
|
|
28
|
+
return x(t, r).reverse();
|
|
29
|
+
}
|
|
30
|
+
function _(t, r, n) {
|
|
31
|
+
let o;
|
|
32
|
+
if (typeof r == "string")
|
|
33
|
+
try {
|
|
34
|
+
o = p(r);
|
|
35
|
+
} catch (e) {
|
|
36
|
+
throw new Error(t + " must be hex string or Uint8Array, cause: " + e);
|
|
37
|
+
}
|
|
38
|
+
else if (B(r))
|
|
39
|
+
o = Uint8Array.from(r);
|
|
40
|
+
else
|
|
41
|
+
throw new Error(t + " must be hex string or Uint8Array");
|
|
42
|
+
const i = o.length;
|
|
43
|
+
if (typeof n == "number" && i !== n)
|
|
44
|
+
throw new Error(t + " of length " + n + " expected, got " + i);
|
|
45
|
+
return o;
|
|
46
|
+
}
|
|
47
|
+
const w = (t) => typeof t == "bigint" && y <= t;
|
|
48
|
+
function T(t, r, n) {
|
|
49
|
+
return w(t) && w(r) && w(n) && r <= t && t < n;
|
|
50
|
+
}
|
|
51
|
+
function $(t, r, n, o) {
|
|
52
|
+
if (!T(r, n, o))
|
|
53
|
+
throw new Error("expected valid " + t + ": " + n + " <= n < " + o + ", got " + r);
|
|
54
|
+
}
|
|
55
|
+
function M(t) {
|
|
56
|
+
let r;
|
|
57
|
+
for (r = 0; t > y; t >>= g, r += 1)
|
|
58
|
+
;
|
|
59
|
+
return r;
|
|
60
|
+
}
|
|
61
|
+
const N = (t) => (g << BigInt(t)) - g;
|
|
62
|
+
function R(t, r, n) {
|
|
63
|
+
if (typeof t != "number" || t < 2)
|
|
64
|
+
throw new Error("hashLen must be a number");
|
|
65
|
+
if (typeof r != "number" || r < 2)
|
|
66
|
+
throw new Error("qByteLen must be a number");
|
|
67
|
+
if (typeof n != "function")
|
|
68
|
+
throw new Error("hmacFn must be a function");
|
|
69
|
+
const o = (u) => new Uint8Array(u), i = (u) => Uint8Array.of(u);
|
|
70
|
+
let e = o(t), s = o(t), f = 0;
|
|
71
|
+
const c = () => {
|
|
72
|
+
e.fill(1), s.fill(0), f = 0;
|
|
73
|
+
}, l = (...u) => n(s, e, ...u), m = (u = o(0)) => {
|
|
74
|
+
s = l(i(0), u), e = l(), u.length !== 0 && (s = l(i(1), u), e = l());
|
|
75
|
+
}, E = () => {
|
|
76
|
+
if (f++ >= 1e3)
|
|
77
|
+
throw new Error("drbg: tried 1000 values");
|
|
78
|
+
let u = 0;
|
|
79
|
+
const a = [];
|
|
80
|
+
for (; u < r; ) {
|
|
81
|
+
e = l();
|
|
82
|
+
const b = e.slice();
|
|
83
|
+
a.push(b), u += e.length;
|
|
84
|
+
}
|
|
85
|
+
return U(...a);
|
|
86
|
+
};
|
|
87
|
+
return (u, a) => {
|
|
88
|
+
c(), m(u);
|
|
89
|
+
let b;
|
|
90
|
+
for (; !(b = a(E())); )
|
|
91
|
+
m();
|
|
92
|
+
return c(), b;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function z(t, r, n = {}) {
|
|
96
|
+
if (!t || typeof t != "object")
|
|
97
|
+
throw new Error("expected valid options object");
|
|
98
|
+
function o(i, e, s) {
|
|
99
|
+
const f = t[i];
|
|
100
|
+
if (s && f === void 0)
|
|
101
|
+
return;
|
|
102
|
+
const c = typeof f;
|
|
103
|
+
if (c !== e || f === null)
|
|
104
|
+
throw new Error(`param "${i}" is invalid: expected ${e}, got ${c}`);
|
|
138
105
|
}
|
|
106
|
+
Object.entries(r).forEach(([i, e]) => o(i, e, !1)), Object.entries(n).forEach(([i, e]) => o(i, e, !0));
|
|
107
|
+
}
|
|
108
|
+
function D(t) {
|
|
109
|
+
const r = /* @__PURE__ */ new WeakMap();
|
|
110
|
+
return (n, ...o) => {
|
|
111
|
+
const i = r.get(n);
|
|
112
|
+
if (i !== void 0)
|
|
113
|
+
return i;
|
|
114
|
+
const e = t(n, ...o);
|
|
115
|
+
return r.set(n, e), e;
|
|
116
|
+
};
|
|
139
117
|
}
|
|
140
118
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
M as
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
119
|
+
z as _validateObject,
|
|
120
|
+
$ as aInRange,
|
|
121
|
+
k as abool,
|
|
122
|
+
v as abytes,
|
|
123
|
+
W as anumber,
|
|
124
|
+
M as bitLen,
|
|
125
|
+
N as bitMask,
|
|
126
|
+
d as bytesToHex,
|
|
127
|
+
H as bytesToNumberBE,
|
|
128
|
+
O as bytesToNumberLE,
|
|
129
|
+
U as concatBytes,
|
|
130
|
+
R as createHmacDrbg,
|
|
131
|
+
_ as ensureBytes,
|
|
132
|
+
p as hexToBytes,
|
|
133
|
+
h as hexToNumber,
|
|
134
|
+
T as inRange,
|
|
135
|
+
B as isBytes,
|
|
136
|
+
D as memoized,
|
|
137
|
+
x as numberToBytesBE,
|
|
138
|
+
S as numberToBytesLE,
|
|
139
|
+
j as numberToHexUnpadded,
|
|
140
|
+
C as randomBytes,
|
|
141
|
+
G as utf8ToBytes
|
|
158
142
|
};
|
package/dist/index295.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index287.cjs");class r extends i.Hash{constructor(t,h){super(),this.finished=!1,this.destroyed=!1,i.ahash(t);const n=i.toBytes(h);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,e=new Uint8Array(a);e.set(n.length>a?t.create().update(n).digest():n);for(let s=0;s<e.length;s++)e[s]^=54;this.iHash.update(e),this.oHash=t.create();for(let s=0;s<e.length;s++)e[s]^=106;this.oHash.update(e),i.clean(e)}update(t){return i.aexists(this),this.iHash.update(t),this}digestInto(t){i.aexists(this),i.abytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:h,iHash:n,finished:a,destroyed:e,blockLen:s,outputLen:d}=this;return t=t,t.finished=a,t.destroyed=e,t.blockLen=s,t.outputLen=d,t.oHash=h._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const c=(o,t,h)=>new r(o,t).update(h).digest();c.create=(o,t)=>new r(o,t);exports.HMAC=r;exports.hmac=c;
|