//
// User preferences
//

export const defaultBorderSettings = Object.freeze({
	borderType: 'momentary',
	borderColour: '#ff2f92',
	borderFontSize: '16'
})

export const defaultDebugSettings = Object.freeze({
	debugInfo: false
})

export const defaultInterfaceSettings = Object.freeze({
	interface: 'popup'
})

let _defaultSettings

switch (BROWSER) {
	case 'firefox':
	case 'opera':
		_defaultSettings = Object.freeze(Object.assign({},
			defaultBorderSettings,
			defaultDebugSettings,
			defaultInterfaceSettings))
		break
	case 'chrome':
	case 'edge':
		_defaultSettings = Object.freeze(Object.assign({},
			defaultBorderSettings,
			defaultDebugSettings))
		break
	default:
		throw Error(`Landmarks: invalid browser ${BROWSER} given.`)
}

export const defaultSettings = _defaultSettings


//
// Dismissal state of user interface messages
//

let _dismissalStates

if (BROWSER === 'firefox' || BROWSER === 'opera') {
	_dismissalStates = Object.freeze({
		dismissedSidebarNotAlone: false
	})
}

export const dismissalStates = _dismissalStates

@@ -256,32 +256,84 @@
 erfaceSettings =
+%0A%09(BROWSER === 'firefox' %7C%7C BROWSER === 'opera')%0A%09%09?
  Object.freeze(%7B
@@ -332,18 +332,17 @@
 freeze(%7B
-%0A%09
+ 
 interfac
@@ -355,84 +355,99 @@
 pup'
-%0A%7D)%0A%0Alet _defaultSettings%0A%0Aswitch (BROWSER) %7B%0A%09case 'firefox':%0A%09case
+ %7D)%0A%09%09: null%0A%0Aexport const defaultSettings =%0A%09(BROWSER === 'firefox' %7C%7C BROWSER ===
  'opera'
 :%0A%09%09
@@ -442,38 +442,21 @@
  'opera'
-:%0A%09%09_defaultSettings =
+)%0A%09%09?
  Object.
@@ -567,64 +567,9 @@
 )%0A%09%09
-break%0A%09case 'chrome':%0A%09case 'edge':%0A%09%09_defaultSettings =
+:
  Obj
@@ -653,139 +653,8 @@
 s))%0A
-%09%09break%0A%09default:%0A%09%09throw Error(%60Landmarks: invalid browser $%7BBROWSER%7D given.%60)%0A%7D%0A%0Aexport const defaultSettings = _defaultSettings%0A
 %0A%0A//
@@ -708,13 +708,21 @@
 //%0A%0A
-let _
+export const 
 dism
@@ -736,13 +736,12 @@
 ates
-%0A%0Aif 
+ =%0A%09
 (BRO
@@ -786,30 +786,12 @@
 ra')
- %7B%0A%09_dismissalStates =
+%0A%09%09?
  Obj
@@ -802,19 +802,17 @@
 freeze(%7B
-%0A%09%09
+ 
 dismisse
@@ -838,60 +838,17 @@
 alse
-%0A%09%7D)%0A%7D%0A%0Aexport const dismissalStates = _dismissalStates
+ %7D)%0A%09%09: null
 %0A

Clean up defaults definitions