@ -54,9 +54,9 @@
_ _webpack _require _ _ ( 4 ) ;
$ = _ _webpack _require _ _ ( 8 ) ;
$ = _ _webpack _require _ _ ( 7 ) ;
autosize = _ _webpack _require _ _ ( 7 ) ;
autosize = _ _webpack _require _ _ ( 8 ) ;
marked = _ _webpack _require _ _ ( 6 ) ;
@ -86,11 +86,11 @@
var $ , data _object , filePicked , prettyUnits , reinitializeUploader , triggerError , updateUploadProgress , uploadDone ;
$ = _ _webpack _require _ _ ( 8 ) ;
$ = _ _webpack _require _ _ ( 7 ) ;
prettyUnits = _ _webpack _require _ _ ( 9 ) ;
prettyUnits = _ _webpack _require _ _ ( 10 ) ;
_ _webpack _require _ _ ( 1 0 ) ;
_ _webpack _require _ _ ( 1 1 ) ;
data _object = null ;
@ -252,7 +252,7 @@
var $ , castBoolean , updateEmbedCode ;
$ = _ _webpack _require _ _ ( 8 ) ;
$ = _ _webpack _require _ _ ( 7 ) ;
castBoolean = function ( value ) {
if ( value === true ) {
@ -289,9 +289,9 @@
var $ ;
$ = _ _webpack _require _ _ ( 8 ) ;
$ = _ _webpack _require _ _ ( 7 ) ;
_ _webpack _require _ _ ( 11 ) ;
_ _webpack _require _ _ ( 9 ) ;
$ ( function ( ) {
var paymentMethodHandlers , paypalHandler , pulsateRemove , selectedAmount , selectedHasPrice , selectedMethod , setCustomValue , showInstructions ;
@ -414,7 +414,7 @@
var $ ;
$ = _ _webpack _require _ _ ( 8 ) ;
$ = _ _webpack _require _ _ ( 7 ) ;
$ ( function ( ) {
$ ( ".popup" ) . hide ( ) ;
@ -438,7 +438,7 @@
var $ ;
$ = _ _webpack _require _ _ ( 8 ) ;
$ = _ _webpack _require _ _ ( 7 ) ;
module . exports = function ( jqueryObj ) {
return jqueryObj . each ( function ( ) {
@ -1770,188 +1770,6 @@
/***/ } ,
/* 7 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _FACTORY _ _ , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
Autosize 3.0 . 0
license : MIT
http : //www.jacklmoore.com/autosize
* /
( function ( global , factory ) {
if ( true ) {
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ exports , module ] , _ _WEBPACK _AMD _DEFINE _FACTORY _ _ = ( factory ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( typeof _ _WEBPACK _AMD _DEFINE _FACTORY _ _ === 'function' ? ( _ _WEBPACK _AMD _DEFINE _FACTORY _ _ . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ) : _ _WEBPACK _AMD _DEFINE _FACTORY _ _ ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else if ( typeof exports !== 'undefined' && typeof module !== 'undefined' ) {
factory ( exports , module ) ;
} else {
var mod = {
exports : { }
} ;
factory ( mod . exports , mod ) ;
global . autosize = mod . exports ;
}
} ) ( this , function ( exports , module ) {
'use strict' ;
function assign ( ta ) {
if ( ! ta || ! ta . nodeName || ta . nodeName !== 'TEXTAREA' || ta . hasAttribute ( 'data-autosize-on' ) ) {
return ;
} var maxHeight ;
var heightOffset ;
function init ( ) {
var style = window . getComputedStyle ( ta , null ) ;
if ( style . resize === 'vertical' ) {
ta . style . resize = 'none' ;
} else if ( style . resize === 'both' ) {
ta . style . resize = 'horizontal' ;
}
// Chrome/Safari-specific fix:
// When the textarea y-over is hidden, Chrome/Safari doesn't reflow the text to account for the space
// made available by removing the scrollbar. This workaround will cause the text to reflow.
var width = ta . style . width ;
ta . style . width = '0px' ;
// Force reflow:
/* jshint ignore:start */
ta . offsetWidth ;
/* jshint ignore:end */
ta . style . width = width ;
maxHeight = style . maxHeight !== 'none' ? parseFloat ( style . maxHeight ) : false ;
if ( style . boxSizing === 'content-box' ) {
heightOffset = - ( parseFloat ( style . paddingTop ) + parseFloat ( style . paddingBottom ) ) ;
} else {
heightOffset = parseFloat ( style . borderTopWidth ) + parseFloat ( style . borderBottomWidth ) ;
}
update ( ) ;
}
function update ( ) {
var startHeight = ta . style . height ;
var htmlTop = document . documentElement . scrollTop ;
var bodyTop = document . body . scrollTop ;
ta . style . height = 'auto' ;
var endHeight = ta . scrollHeight + heightOffset ;
if ( maxHeight !== false && maxHeight < endHeight ) {
endHeight = maxHeight ;
if ( ta . style . overflowY !== 'scroll' ) {
ta . style . overflowY = 'scroll' ;
}
} else if ( ta . style . overflowY !== 'hidden' ) {
ta . style . overflowY = 'hidden' ;
}
ta . style . height = endHeight + 'px' ;
// prevents scroll-position jumping
document . documentElement . scrollTop = htmlTop ;
document . body . scrollTop = bodyTop ;
if ( startHeight !== ta . style . height ) {
var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( 'autosize:resized' , true , false ) ;
ta . dispatchEvent ( evt ) ;
}
}
ta . addEventListener ( 'autosize:destroy' , ( function ( style ) {
window . removeEventListener ( 'resize' , update ) ;
ta . removeEventListener ( 'input' , update ) ;
ta . removeEventListener ( 'keyup' , update ) ;
ta . removeAttribute ( 'data-autosize-on' ) ;
ta . removeEventListener ( 'autosize:destroy' ) ;
Object . keys ( style ) . forEach ( function ( key ) {
ta . style [ key ] = style [ key ] ;
} ) ;
} ) . bind ( ta , {
height : ta . style . height ,
overflowY : ta . style . overflowY ,
resize : ta . style . resize
} ) ) ;
// IE9 does not fire onpropertychange or oninput for deletions,
// so binding to onkeyup to catch most of those events.
// There is no way that I know of to detect something like 'cut' in IE9.
if ( 'onpropertychange' in ta && 'oninput' in ta ) {
ta . addEventListener ( 'keyup' , update ) ;
}
window . addEventListener ( 'resize' , update ) ;
ta . addEventListener ( 'input' , update ) ;
ta . addEventListener ( 'autosize:update' , update ) ;
ta . setAttribute ( 'data-autosize-on' , true ) ;
ta . style . overflowY = 'hidden' ;
init ( ) ;
}
function destroy ( ta ) {
if ( ! ta || ! ta . nodeName || ta . nodeName !== 'TEXTAREA' ) {
return ;
} var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( 'autosize:destroy' , true , false ) ;
ta . dispatchEvent ( evt ) ;
}
function update ( ta ) {
if ( ! ( ta && ta . nodeName && ta . nodeName === 'TEXTAREA' ) ) {
return ;
} var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( 'autosize:update' , true , false ) ;
ta . dispatchEvent ( evt ) ;
}
var autosize ;
// Do nothing in IE8 or lower
if ( typeof window . getComputedStyle !== 'function' ) {
autosize = function ( el ) {
return el ;
} ;
autosize . destroy = function ( el ) {
return el ;
} ;
autosize . update = function ( el ) {
return el ;
} ;
} else {
autosize = function ( el ) {
if ( el && el . length ) {
Array . prototype . forEach . call ( el , assign ) ;
} else if ( el && el . nodeName ) {
assign ( el ) ;
}
return el ;
} ;
autosize . destroy = function ( el ) {
if ( el && el . length ) {
Array . prototype . forEach . call ( el , destroy ) ;
} else if ( el && el . nodeName ) {
destroy ( el ) ;
}
return el ;
} ;
autosize . update = function ( el ) {
if ( el && el . length ) {
Array . prototype . forEach . call ( el , update ) ;
} else if ( el && el . nodeName ) {
update ( el ) ;
}
return el ;
} ;
}
module . exports = autosize ;
} ) ;
/***/ } ,
/* 8 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
@ -11162,40 +10980,289 @@
/***/ } ,
/* 9 */
/* 8 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var prefixes = _ _webpack _require _ _ ( 12 ) ;
var _ _WEBPACK _AMD _DEFINE _FACTORY _ _ , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
Autosize 3.0 . 0
license : MIT
http : //www.jacklmoore.com/autosize
* /
( function ( global , factory ) {
if ( true ) {
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ exports , module ] , _ _WEBPACK _AMD _DEFINE _FACTORY _ _ = ( factory ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( typeof _ _WEBPACK _AMD _DEFINE _FACTORY _ _ === 'function' ? ( _ _WEBPACK _AMD _DEFINE _FACTORY _ _ . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ) : _ _WEBPACK _AMD _DEFINE _FACTORY _ _ ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else if ( typeof exports !== 'undefined' && typeof module !== 'undefined' ) {
factory ( exports , module ) ;
} else {
var mod = {
exports : { }
} ;
factory ( mod . exports , mod ) ;
global . autosize = mod . exports ;
}
} ) ( this , function ( exports , module ) {
'use strict' ;
/ * *
* Pretty format a number with SI prefixes .
*
* @ param { Number } number a number
* @ param { Number } exp custom exponent of 10
* /
module . exports = function prettyUnits ( number , exp ) {
exp = exp || 0 ;
number = exp ? number * Math . pow ( 10 , exp ) : number ;
function assign ( ta ) {
if ( ! ta || ! ta . nodeName || ta . nodeName !== 'TEXTAREA' || ta . hasAttribute ( 'data-autosize-on' ) ) {
return ;
} var maxHeight ;
var heightOffset ;
// immediately return for zero
if ( number === 0 ) return '0 ' ;
function init ( ) {
var style = window . getComputedStyle ( ta , null ) ;
// adjust number
var prefixIndex = prefixes . getPrefixIndex ( number ) ;
var adjusted = prefixes . adjustNumber ( number , prefixIndex ) ;
if ( style . resize === 'vertical' ) {
ta . style . resize = 'none' ;
} else if ( style . resize === 'both' ) {
ta . style . resize = 'horizontal' ;
}
// provide some failover for small numbers (not support due to 2 decimal rounding scheme)
if ( adjusted === 0 ) adjusted = '< ' + ( number > 0 ? '' : '-' ) + '0.01' ;
// Chrome/Safari-specific fix:
// When the textarea y-over is hidden, Chrome/Safari doesn't reflow the text to account for the space
// made available by removing the scrollbar. This workaround will cause the text to reflow.
var width = ta . style . width ;
ta . style . width = '0px' ;
// Force reflow:
/* jshint ignore:start */
ta . offsetWidth ;
/* jshint ignore:end */
ta . style . width = width ;
// get my prefix
var prefix = prefixes [ prefixIndex ] [ prefixProp ] ;
maxHeight = style . maxHeight !== 'none' ? parseFloat ( style . maxHeight ) : false ;
return adjusted + ' ' + prefix ;
} ;
if ( style . boxSizing === 'content-box' ) {
heightOffset = - ( parseFloat ( style . paddingTop ) + parseFloat ( style . paddingBottom ) ) ;
} else {
heightOffset = parseFloat ( style . borderTopWidth ) + parseFloat ( style . borderBottomWidth ) ;
}
var verbose = false ;
var prefixProp = 'symbol' ;
Object . defineProperty ( module . exports , 'verbose' , {
update ( ) ;
}
function update ( ) {
var startHeight = ta . style . height ;
var htmlTop = document . documentElement . scrollTop ;
var bodyTop = document . body . scrollTop ;
ta . style . height = 'auto' ;
var endHeight = ta . scrollHeight + heightOffset ;
if ( maxHeight !== false && maxHeight < endHeight ) {
endHeight = maxHeight ;
if ( ta . style . overflowY !== 'scroll' ) {
ta . style . overflowY = 'scroll' ;
}
} else if ( ta . style . overflowY !== 'hidden' ) {
ta . style . overflowY = 'hidden' ;
}
ta . style . height = endHeight + 'px' ;
// prevents scroll-position jumping
document . documentElement . scrollTop = htmlTop ;
document . body . scrollTop = bodyTop ;
if ( startHeight !== ta . style . height ) {
var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( 'autosize:resized' , true , false ) ;
ta . dispatchEvent ( evt ) ;
}
}
ta . addEventListener ( 'autosize:destroy' , ( function ( style ) {
window . removeEventListener ( 'resize' , update ) ;
ta . removeEventListener ( 'input' , update ) ;
ta . removeEventListener ( 'keyup' , update ) ;
ta . removeAttribute ( 'data-autosize-on' ) ;
ta . removeEventListener ( 'autosize:destroy' ) ;
Object . keys ( style ) . forEach ( function ( key ) {
ta . style [ key ] = style [ key ] ;
} ) ;
} ) . bind ( ta , {
height : ta . style . height ,
overflowY : ta . style . overflowY ,
resize : ta . style . resize
} ) ) ;
// IE9 does not fire onpropertychange or oninput for deletions,
// so binding to onkeyup to catch most of those events.
// There is no way that I know of to detect something like 'cut' in IE9.
if ( 'onpropertychange' in ta && 'oninput' in ta ) {
ta . addEventListener ( 'keyup' , update ) ;
}
window . addEventListener ( 'resize' , update ) ;
ta . addEventListener ( 'input' , update ) ;
ta . addEventListener ( 'autosize:update' , update ) ;
ta . setAttribute ( 'data-autosize-on' , true ) ;
ta . style . overflowY = 'hidden' ;
init ( ) ;
}
function destroy ( ta ) {
if ( ! ta || ! ta . nodeName || ta . nodeName !== 'TEXTAREA' ) {
return ;
} var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( 'autosize:destroy' , true , false ) ;
ta . dispatchEvent ( evt ) ;
}
function update ( ta ) {
if ( ! ( ta && ta . nodeName && ta . nodeName === 'TEXTAREA' ) ) {
return ;
} var evt = document . createEvent ( 'Event' ) ;
evt . initEvent ( 'autosize:update' , true , false ) ;
ta . dispatchEvent ( evt ) ;
}
var autosize ;
// Do nothing in IE8 or lower
if ( typeof window . getComputedStyle !== 'function' ) {
autosize = function ( el ) {
return el ;
} ;
autosize . destroy = function ( el ) {
return el ;
} ;
autosize . update = function ( el ) {
return el ;
} ;
} else {
autosize = function ( el ) {
if ( el && el . length ) {
Array . prototype . forEach . call ( el , assign ) ;
} else if ( el && el . nodeName ) {
assign ( el ) ;
}
return el ;
} ;
autosize . destroy = function ( el ) {
if ( el && el . length ) {
Array . prototype . forEach . call ( el , destroy ) ;
} else if ( el && el . nodeName ) {
destroy ( el ) ;
}
return el ;
} ;
autosize . update = function ( el ) {
if ( el && el . length ) {
Array . prototype . forEach . call ( el , update ) ;
} else if ( el && el . nodeName ) {
update ( el ) ;
}
return el ;
} ;
}
module . exports = autosize ;
} ) ;
/***/ } ,
/* 9 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
; ( function ( ) {
var object = true ? exports : this ; // #8: web workers
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' ;
function InvalidCharacterError ( message ) {
this . message = message ;
}
InvalidCharacterError . prototype = new Error ;
InvalidCharacterError . prototype . name = 'InvalidCharacterError' ;
// encoder
// [https://gist.github.com/999166] by [https://github.com/nignag]
object . btoa || (
object . btoa = function ( input ) {
var str = String ( input ) ;
for (
// initialize result and counter
var block , charCode , idx = 0 , map = chars , output = '' ;
// if the next str index does not exist:
// change the mapping table to "="
// check if d has no fractional digits
str . charAt ( idx | 0 ) || ( map = '=' , idx % 1 ) ;
// "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
output += map . charAt ( 63 & block >> 8 - idx % 1 * 8 )
) {
charCode = str . charCodeAt ( idx += 3 / 4 ) ;
if ( charCode > 0xFF ) {
throw new InvalidCharacterError ( "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range." ) ;
}
block = block << 8 | charCode ;
}
return output ;
} ) ;
// decoder
// [https://gist.github.com/1020396] by [https://github.com/atk]
object . atob || (
object . atob = function ( input ) {
var str = String ( input ) . replace ( /=+$/ , '' ) ;
if ( str . length % 4 == 1 ) {
throw new InvalidCharacterError ( "'atob' failed: The string to be decoded is not correctly encoded." ) ;
}
for (
// initialize result and counters
var bc = 0 , bs , buffer , idx = 0 , output = '' ;
// get next character
buffer = str . charAt ( idx ++ ) ;
// character found in table? initialize bit storage and add its ascii value;
~ buffer && ( bs = bc % 4 ? bs * 64 + buffer : buffer ,
// and if not first of each 4 characters,
// convert the first 8 bits to one ascii character
bc ++ % 4 ) ? output += String . fromCharCode ( 255 & bs >> ( - 2 * bc & 6 ) ) : 0
) {
// try to find character in table (0-63, not found => -1)
buffer = chars . indexOf ( buffer ) ;
}
return output ;
} ) ;
} ( ) ) ;
/***/ } ,
/* 10 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var prefixes = _ _webpack _require _ _ ( 13 ) ;
/ * *
* Pretty format a number with SI prefixes .
*
* @ param { Number } number a number
* @ param { Number } exp custom exponent of 10
* /
module . exports = function prettyUnits ( number , exp ) {
exp = exp || 0 ;
number = exp ? number * Math . pow ( 10 , exp ) : number ;
// immediately return for zero
if ( number === 0 ) return '0 ' ;
// adjust number
var prefixIndex = prefixes . getPrefixIndex ( number ) ;
var adjusted = prefixes . adjustNumber ( number , prefixIndex ) ;
// provide some failover for small numbers (not support due to 2 decimal rounding scheme)
if ( adjusted === 0 ) adjusted = '< ' + ( number > 0 ? '' : '-' ) + '0.01' ;
// get my prefix
var prefix = prefixes [ prefixIndex ] [ prefixProp ] ;
return adjusted + ' ' + prefix ;
} ;
var verbose = false ;
var prefixProp = 'symbol' ;
Object . defineProperty ( module . exports , 'verbose' , {
set : function ( bool ) {
verbose = ! ! bool ;
prefixProp = verbose ? 'prefix' : 'symbol' ;
@ -11204,7 +11271,7 @@
/***/ } ,
/* 1 0 */
/* 1 1 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
/*** IMPORTS FROM imports-loader ***/
@ -11235,8 +11302,8 @@
} else if ( true ) {
// Node/CommonJS:
factory (
_ _webpack _require _ _ ( 8 ) ,
_ _webpack _require _ _ ( 1 3 )
_ _webpack _require _ _ ( 7 ) ,
_ _webpack _require _ _ ( 1 2 )
) ;
} else {
// Browser globals:
@ -12679,144 +12746,8 @@
} ) ) ;
/***/ } ,
/* 11 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
; ( function ( ) {
var object = true ? exports : this ; // #8: web workers
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' ;
function InvalidCharacterError ( message ) {
this . message = message ;
}
InvalidCharacterError . prototype = new Error ;
InvalidCharacterError . prototype . name = 'InvalidCharacterError' ;
// encoder
// [https://gist.github.com/999166] by [https://github.com/nignag]
object . btoa || (
object . btoa = function ( input ) {
var str = String ( input ) ;
for (
// initialize result and counter
var block , charCode , idx = 0 , map = chars , output = '' ;
// if the next str index does not exist:
// change the mapping table to "="
// check if d has no fractional digits
str . charAt ( idx | 0 ) || ( map = '=' , idx % 1 ) ;
// "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
output += map . charAt ( 63 & block >> 8 - idx % 1 * 8 )
) {
charCode = str . charCodeAt ( idx += 3 / 4 ) ;
if ( charCode > 0xFF ) {
throw new InvalidCharacterError ( "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range." ) ;
}
block = block << 8 | charCode ;
}
return output ;
} ) ;
// decoder
// [https://gist.github.com/1020396] by [https://github.com/atk]
object . atob || (
object . atob = function ( input ) {
var str = String ( input ) . replace ( /=+$/ , '' ) ;
if ( str . length % 4 == 1 ) {
throw new InvalidCharacterError ( "'atob' failed: The string to be decoded is not correctly encoded." ) ;
}
for (
// initialize result and counters
var bc = 0 , bs , buffer , idx = 0 , output = '' ;
// get next character
buffer = str . charAt ( idx ++ ) ;
// character found in table? initialize bit storage and add its ascii value;
~ buffer && ( bs = bc % 4 ? bs * 64 + buffer : buffer ,
// and if not first of each 4 characters,
// convert the first 8 bits to one ascii character
bc ++ % 4 ) ? output += String . fromCharCode ( 255 & bs >> ( - 2 * bc & 6 ) ) : 0
) {
// try to find character in table (0-63, not found => -1)
buffer = chars . indexOf ( buffer ) ;
}
return output ;
} ) ;
} ( ) ) ;
/***/ } ,
/* 12 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var util = _ _webpack _require _ _ ( 14 ) ;
/ * *
* SI Prefix Dictionary
* /
var prefixes = [
{ pow10 : Math . pow ( 10 , - 24 ) , prefix : 'yocto' , symbol : 'y' } ,
{ pow10 : Math . pow ( 10 , - 21 ) , prefix : 'zepto' , symbol : 'z' } ,
{ pow10 : Math . pow ( 10 , - 18 ) , prefix : 'atto' , symbol : 'a' } ,
{ pow10 : Math . pow ( 10 , - 15 ) , prefix : 'femto' , symbol : 'f' } ,
{ pow10 : Math . pow ( 10 , - 12 ) , prefix : 'pico' , symbol : 'p' } ,
{ pow10 : Math . pow ( 10 , - 9 ) , prefix : 'nano' , symbol : 'n' } ,
{ pow10 : Math . pow ( 10 , - 6 ) , prefix : 'micro' , symbol : 'μ' } ,
{ pow10 : Math . pow ( 10 , - 3 ) , prefix : 'milli' , symbol : 'm' } ,
{ pow10 : Math . pow ( 10 , 0 ) , prefix : '' , symbol : '' } ,
{ pow10 : Math . pow ( 10 , 3 ) , prefix : 'kilo' , symbol : 'k' } ,
{ pow10 : Math . pow ( 10 , 6 ) , prefix : 'mega' , symbol : 'M' } ,
{ pow10 : Math . pow ( 10 , 9 ) , prefix : 'giga' , symbol : 'G' } ,
{ pow10 : Math . pow ( 10 , 12 ) , prefix : 'tera' , symbol : 'T' } ,
{ pow10 : Math . pow ( 10 , 15 ) , prefix : 'peta' , symbol : 'P' } ,
{ pow10 : Math . pow ( 10 , 18 ) , prefix : 'exa' , symbol : 'E' } ,
{ pow10 : Math . pow ( 10 , 21 ) , prefix : 'zetta' , symbol : 'Z' } ,
{ pow10 : Math . pow ( 10 , 24 ) , prefix : 'yotta' , symbol : 'Y' }
] ;
module . exports = prefixes ;
/ * *
* Adjust the magnitude of a number to that indicated by the prefix at prefixIndex .
* /
function adjustNumber ( number , prefixIndex ) {
return util . round ( number / prefixes [ prefixIndex ] . pow10 , 2 ) ;
}
module . exports . adjustNumber = adjustNumber ;
/ * *
* Get the most "best match" prefix index for a given number /
* /
function getPrefixIndex ( number ) {
// use absolute value for comparisons
var abs = Math . abs ( number ) ;
// attempt to match extremities
if ( abs <= prefixes [ 0 ] . pow10 ) return 0 ;
else if ( abs >= prefixes [ prefixes . length - 1 ] . pow10 ) return prefixes . length - 1 ;
// find best match
for ( var i = getInitialPrefixIterPos ( ) ; i < prefixes . length ; i ++ ) {
if ( abs < prefixes [ i ] . pow10 ) return i - 1 ;
}
return 8 ;
}
module . exports . getPrefixIndex = getPrefixIndex ;
/ * *
* A crude optimization so that we can get a good iterator start position .
*
* Assumes absNumb is an the absolute value of a number .
* /
function getInitialPrefixIterPos ( absNum ) {
return absNum >= prefixes [ 8 ] . pow10 ? 8 : 0 ;
}
module . exports . getInitialPrefixIterPos = getInitialPrefixIterPos ;
/***/ } ,
/* 13 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _FACTORY _ _ , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * ! j Q u e r y U I - v 1 . 1 1 . 1 + C o m m o n J S - 2 0 1 4 - 0 9 - 1 7
@ -12828,7 +12759,7 @@
if ( true ) {
// AMD. Register as an anonymous module.
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ _ _webpack _require _ _ ( 8 ) ] , _ _WEBPACK _AMD _DEFINE _FACTORY _ _ = ( factory ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( typeof _ _WEBPACK _AMD _DEFINE _FACTORY _ _ === 'function' ? ( _ _WEBPACK _AMD _DEFINE _FACTORY _ _ . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ) : _ _WEBPACK _AMD _DEFINE _FACTORY _ _ ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ _ _webpack _require _ _ ( 7 ) ] , _ _WEBPACK _AMD _DEFINE _FACTORY _ _ = ( factory ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( typeof _ _WEBPACK _AMD _DEFINE _FACTORY _ _ === 'function' ? ( _ _WEBPACK _AMD _DEFINE _FACTORY _ _ . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ) : _ _WEBPACK _AMD _DEFINE _FACTORY _ _ ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else if ( typeof exports === "object" ) {
// Node/CommonJS:
@ -13384,6 +13315,75 @@
} ) ) ;
/***/ } ,
/* 13 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {
var util = _ _webpack _require _ _ ( 14 ) ;
/ * *
* SI Prefix Dictionary
* /
var prefixes = [
{ pow10 : Math . pow ( 10 , - 24 ) , prefix : 'yocto' , symbol : 'y' } ,
{ pow10 : Math . pow ( 10 , - 21 ) , prefix : 'zepto' , symbol : 'z' } ,
{ pow10 : Math . pow ( 10 , - 18 ) , prefix : 'atto' , symbol : 'a' } ,
{ pow10 : Math . pow ( 10 , - 15 ) , prefix : 'femto' , symbol : 'f' } ,
{ pow10 : Math . pow ( 10 , - 12 ) , prefix : 'pico' , symbol : 'p' } ,
{ pow10 : Math . pow ( 10 , - 9 ) , prefix : 'nano' , symbol : 'n' } ,
{ pow10 : Math . pow ( 10 , - 6 ) , prefix : 'micro' , symbol : 'μ' } ,
{ pow10 : Math . pow ( 10 , - 3 ) , prefix : 'milli' , symbol : 'm' } ,
{ pow10 : Math . pow ( 10 , 0 ) , prefix : '' , symbol : '' } ,
{ pow10 : Math . pow ( 10 , 3 ) , prefix : 'kilo' , symbol : 'k' } ,
{ pow10 : Math . pow ( 10 , 6 ) , prefix : 'mega' , symbol : 'M' } ,
{ pow10 : Math . pow ( 10 , 9 ) , prefix : 'giga' , symbol : 'G' } ,
{ pow10 : Math . pow ( 10 , 12 ) , prefix : 'tera' , symbol : 'T' } ,
{ pow10 : Math . pow ( 10 , 15 ) , prefix : 'peta' , symbol : 'P' } ,
{ pow10 : Math . pow ( 10 , 18 ) , prefix : 'exa' , symbol : 'E' } ,
{ pow10 : Math . pow ( 10 , 21 ) , prefix : 'zetta' , symbol : 'Z' } ,
{ pow10 : Math . pow ( 10 , 24 ) , prefix : 'yotta' , symbol : 'Y' }
] ;
module . exports = prefixes ;
/ * *
* Adjust the magnitude of a number to that indicated by the prefix at prefixIndex .
* /
function adjustNumber ( number , prefixIndex ) {
return util . round ( number / prefixes [ prefixIndex ] . pow10 , 2 ) ;
}
module . exports . adjustNumber = adjustNumber ;
/ * *
* Get the most "best match" prefix index for a given number /
* /
function getPrefixIndex ( number ) {
// use absolute value for comparisons
var abs = Math . abs ( number ) ;
// attempt to match extremities
if ( abs <= prefixes [ 0 ] . pow10 ) return 0 ;
else if ( abs >= prefixes [ prefixes . length - 1 ] . pow10 ) return prefixes . length - 1 ;
// find best match
for ( var i = getInitialPrefixIterPos ( ) ; i < prefixes . length ; i ++ ) {
if ( abs < prefixes [ i ] . pow10 ) return i - 1 ;
}
return 8 ;
}
module . exports . getPrefixIndex = getPrefixIndex ;
/ * *
* A crude optimization so that we can get a good iterator start position .
*
* Assumes absNumb is an the absolute value of a number .
* /
function getInitialPrefixIterPos ( absNum ) {
return absNum >= prefixes [ 8 ] . pow10 ? 8 : 0 ;
}
module . exports . getInitialPrefixIterPos = getInitialPrefixIterPos ;
/***/ } ,
/* 14 */
/***/ function ( module , exports , _ _webpack _require _ _ ) {