diff --git a/.gitignore b/.gitignore
index 65ae6f85d..098a3890c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,9 @@
#################
-## Bower Components
+## libs
#################
lib
+src/lib/bundle.min.js
!src/lib
!src/extensions/**/lib
!dist/**/lib
@@ -19,12 +20,6 @@ lib
.idea
-#################
-## VSCode
-#################
-
-##.vscode
-
#################
## Node
#################
diff --git a/.vscode/settings.json b/.vscode/settings.json
index b96a6379d..285d055ea 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -8,4 +8,6 @@
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": true
}
+,
+"typescript.check.workspaceVersion": false
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 000000000..318680fc7
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,11 @@
+
+## [2.0.1](https://github.com/universalviewer/universalviewer/compare/v2.0.0...v2.0.1) (2017-02-15)
+
+
+### Bug Fixes
+
+* **preserve zoom:** fix for [#433](https://github.com/universalviewer/universalviewer/issues/433) ([a4341e8](https://github.com/universalviewer/universalviewer/commit/a4341e8))
+* **versioning:** load package.json relative to app.html and only when dialogue is opened ([0b9500f](https://github.com/universalviewer/universalviewer/commit/0b9500f))
+
+
+
diff --git a/Gruntfile.js b/Gruntfile.js
index 481a0942c..2477aefb2 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,4 +1,3 @@
-var version = require('./tasks/version');
var configure = require('./tasks/configure');
var theme = require('./tasks/theme');
var c = require('./config');
@@ -75,6 +74,14 @@ module.exports = function (grunt) {
},
build: {
files: [
+ // package.json
+ {
+ expand: true,
+ flatten: true,
+ cwd: '.',
+ src: ['package.json'],
+ dest: '<%= config.directories.build %>'
+ },
// html
{
expand: true,
@@ -273,7 +280,7 @@ module.exports = function (grunt) {
// concatenate and compress with r.js
build: {
cmd: 'node node_modules/requirejs/bin/r.js -o app.build.js' // optimize=none'
- }
+ },
},
replace: {
@@ -371,15 +378,6 @@ module.exports = function (grunt) {
}
},
- version: {
- bump: {
- },
- apply: {
- src: './VersionTemplate.ts',
- dest: './src/_Version.ts'
- }
- },
-
configure: {
apply: {
options: {
@@ -425,15 +423,9 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-sync');
grunt.loadNpmTasks('grunt-text-replace');
- version(grunt);
configure(grunt);
theme(grunt);
- // to change version manually, edit package.json
- grunt.registerTask('bump:patch', ['version:bump', 'version:apply']);
- grunt.registerTask('bump:minor', ['version:bump:minor', 'version:apply']);
- grunt.registerTask('bump:major', ['version:bump:major', 'version:apply']);
-
grunt.registerTask('default', '', function(){
grunt.task.run(
diff --git a/README.md b/README.md
index fdde5aa4e..ed5c174b0 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,13 @@
# Universal Viewer
-test
+[![Backers on Open Collective](https://opencollective.com/universalviewer/backers/badge.svg)](#backers)
+[![Sponsors on Open Collective](https://opencollective.com/universalviewer/sponsors/badge.svg)](#sponsors)
+[![Build Status](https://travis-ci.org/UniversalViewer/universalviewer.svg?branch=master)](https://travis-ci.org/UniversalViewer/universalviewer)
+
+
-[![Build Status](https://travis-ci.org/UniversalViewer/universalviewer.svg?branch=master)](https://travis-ci.org/UniversalViewer/universalviewer) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/UniversalViewer/universalviewer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
- npm install universalviewer
-
-or
-
- bower install uv
+ npm install universalviewer --save
[Examples](http://universalviewer.io/examples/)
@@ -18,25 +17,20 @@ or
## Contributors
-![Wellcome Library](https://raw.githubusercontent.com/UniversalViewer/assets/master/wellcome_logo.png "Wellcome Library")
-![British Library](https://raw.githubusercontent.com/UniversalViewer/assets/master/bl_logo.png "British Library")
-![National Library of Wales](https://raw.githubusercontent.com/UniversalViewer/assets/master/nlw_logo.png "National Library of Wales")
-![Villanova University, Falvey Memorial Library](https://raw.githubusercontent.com/UniversalViewer/assets/master/vufalvey_logo.png "Villanova University, Falvey Memorial Library")
-![Riksarkivet](https://raw.githubusercontent.com/Riksarkivet/assets/master/logo-en.png "Riksarkivet, The Swedish National Archives")
-
-## About
+![Contributors](https://raw.githubusercontent.com/UniversalViewer/assets/master/logos.jpg "Contributors")
-The Universal Viewer is an [open source](https://github.com/UniversalViewer/universalviewer/blob/master/LICENSE.txt) project to enable cultural heritage institutions to present their digital artifacts in an [IIIF-compliant](http://iiif.io/) and highly customisable user interface.
+## Features:
-Features:
-
-- [OpenSeadragon](https://openseadragon.github.io/) image zooming using the [IIIF image API](http://iiif.io/api/image/2.0/).
-- YouTube-style embedding with deep links to specific pages/zoom regions.
-- [Themable](https://universalviewer.gitbooks.io/custom-themes/content/), fork the [UV theme](https://github.com/UniversalViewer/uv-en-GB-theme) on github to create your own.
-- Highly [configurable](https://github.com/UniversalViewer/universalviewer/wiki/Configuration) and [extensible](http://universalviewer.gitbooks.io/custom-extensions/content/).
-- Supports "IxIF" out of the box, allowing [3D](http://universalviewer.io/examples/?manifest=http://files.universalviewer.io/manifests/nelis/ecorche.json), [audio](http://universalviewer.io/examples/?manifest=http://wellcomelibrary.org/iiif/b17307922/manifest), [video](http://universalviewer.io/examples/?manifest=http://wellcomelibrary.org/iiif/b16659090/manifest), and [pdf](http://universalviewer.io/examples/?manifest=http://wellcomelibrary.org/iiif/b17502792/manifest) viewing experiences.
-- Supports search and autocomplete service integration with overlayed search results.
-- Internationalised UI using [transifex.com](https://www.transifex.com/) (currently supports English and Welsh. Volunteers for more translations gratefully accepted!)
+- **Zoomable**
+
OpenSeadragon image zooming using the IIIF image API
+- **Embeddable**
+ YouTube-style embedding with deep links to specific pages/zoom regions.
+- **Themable**
+ Fork the UV theme on github to create your own.
+- **Configurable**
+ The UV has its own visual configuration editor allowing all settings to be customised.
+- **Extensible**
+ Supports "IxIF" out of the box, allowing 3D, audio, video, and pdf viewing experiences.
[More about the Universal Viewer](https://github.com/UniversalViewer/universalviewer/wiki/About)
@@ -91,11 +85,9 @@ To build the distribution version of the UV, just run (on the command line, in t
A versioned `uv-major.minor.patch` folder along with compressed .zip and .tar files will appear in the `/dist` folder. Use these in your website, or alternatively use:
- bower install uv --save
+ npm install universalviewer --save
-which will download the distribution folder to `bower_components`.
-
-See https://github.com/UniversalViewer/demo-site for examples.
+which will download the distribution folder to `node_modules`.
### Examples
@@ -104,6 +96,80 @@ To view the examples run:
grunt
grunt examples
+
+## Backers
+
+Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/universalviewer#backer)]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Sponsors
+
+Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/universalviewer#sponsor)]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
## License
The Universal Viewer is released under the [MIT license](https://github.com/UniversalViewer/universalviewer/blob/master/LICENSE.txt).
+
diff --git a/VersionTemplate.ts b/VersionTemplate.ts
deleted file mode 100644
index f58f5e79d..000000000
--- a/VersionTemplate.ts
+++ /dev/null
@@ -1 +0,0 @@
-export var Version = '%VERSION%';
\ No newline at end of file
diff --git a/bower.json b/bower.json
index 9ed90fd7a..520f4dccd 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "Universal Viewer",
- "version": "1.8.39",
+ "version": "2.0.2",
"description": "The Universal Viewer is an open source project to enable cultural heritage institutions to present their digital artifacts in an IIIF-compliant and highly customisable user interface.",
"repository": {
"type": "git",
diff --git a/config.js b/config.js
index db2bc358a..08413a460 100644
--- a/config.js
+++ b/config.js
@@ -16,6 +16,8 @@ var Config = (function () {
],
typings: [
'node_modules/base-component/dist/base-component.d.ts',
+ 'node_modules/base-component/typings/corejs.d.ts',
+ 'node_modules/base-component/typings/jquery.d.ts',
'node_modules/jquery-plugins/typings/jquery-plugins.d.ts',
'node_modules/key-codes/dist/key-codes.d.ts',
'node_modules/manifold/dist/manifold.bundle.d.ts',
diff --git a/dist/uv-1.8.39/lib/app.js b/dist/uv-1.8.39/lib/app.js
deleted file mode 100644
index 43863e48a..000000000
--- a/dist/uv-1.8.39/lib/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var requirejs,require,define;!function(global){function commentReplace(e,t,i,n){return n||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var i;for(i=0;i-1&&(!e[i]||!t(e[i],i,e));i-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var i;for(i in e)if(hasProp(e,i)&&t(e[i],i))break}function mixin(e,t,i,n){return t&&eachProp(t,function(t,o){(i||!hasProp(e,o))&&(!n||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[o]=t:(e[o]||(e[o]={}),mixin(e[o],t,i,n)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,i,n){var o=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return o.requireType=e,o.requireModules=n,i&&(o.originalError=i),o}function newContext(e){function t(e){var t,i;for(t=0;t0&&(e.splice(t-1,2),t-=2)}}function i(e,i,n){var o,s,r,a,l,h,u,c,p,d,g,f,m=i&&i.split("/"),v=x.map,$=v&&v["*"];if(e&&(e=e.split("/"),u=e.length-1,x.nodeIdCompat&&jsSuffixRegExp.test(e[u])&&(e[u]=e[u].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&m&&(f=m.slice(0,m.length-1),e=f.concat(e)),t(e),e=e.join("/")),n&&v&&(m||$)){r=e.split("/");e:for(a=r.length;a>0;a-=1){if(h=r.slice(0,a).join("/"),m)for(l=m.length;l>0;l-=1)if(s=getOwn(v,m.slice(0,l).join("/")),s&&(s=getOwn(s,h))){c=s,p=a;break e}!d&&$&&getOwn($,h)&&(d=getOwn($,h),g=a)}!c&&d&&(c=d,p=g),c&&(r.splice(0,p,c),e=r.join("/"))}return o=getOwn(x.pkgs,e),o?o:e}function n(e){isBrowser&&each(scripts(),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===E.contextName?(t.parentNode.removeChild(t),!0):void 0})}function o(e){var t=getOwn(x.paths,e);return t&&isArray(t)&&t.length>1?(t.shift(),E.require.undef(e),E.makeRequire(null,{skipMap:!0})([e]),!0):void 0}function s(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function r(e,t,n,o){var r,a,l,h,u=null,c=t?t.name:null,p=e,d=!0,g="";return e||(d=!1,e="_@r"+(R+=1)),h=s(e),u=h[0],e=h[1],u&&(u=i(u,c,o),a=getOwn(T,u)),e&&(u?g=a&&a.normalize?a.normalize(e,function(e){return i(e,c,o)}):-1===e.indexOf("!")?i(e,c,o):e:(g=i(e,c,o),h=s(g),u=h[0],g=h[1],n=!0,r=E.nameToUrl(g))),l=!u||a||n?"":"_unnormalized"+(P+=1),{prefix:u,name:g,parentMap:t,unnormalized:!!l,url:r,originalName:p,isDefine:d,id:(u?u+"!"+g:g)+l}}function a(e){var t=e.id,i=getOwn(S,t);return i||(i=S[t]=new E.Module(e)),i}function l(e,t,i){var n=e.id,o=getOwn(S,n);!hasProp(T,n)||o&&!o.defineEmitComplete?(o=a(e),o.error&&"error"===t?i(o.error):o.on(t,i)):"defined"===t&&i(T[n])}function h(e,t){var i=e.requireModules,n=!1;t?t(e):(each(i,function(t){var i=getOwn(S,t);i&&(i.error=e,i.events.error&&(n=!0,i.emit("error",e)))}),n||req.onError(e))}function u(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(E.defQueueMap[t]=!0),I.push(e)}),globalDefQueue=[])}function c(e){delete S[e],delete C[e]}function p(e,t,i){var n=e.map.id;e.error?e.emit("error",e.error):(t[n]=!0,each(e.depMaps,function(n,o){var s=n.id,r=getOwn(S,s);!r||e.depMatched[o]||i[s]||(getOwn(t,s)?(e.defineDep(o,T[s]),e.check()):p(r,t,i))}),i[n]=!0)}function d(){var e,t,i=1e3*x.waitSeconds,s=i&&E.startTime+i<(new Date).getTime(),r=[],a=[],l=!1,u=!0;if(!$){if($=!0,eachProp(C,function(e){var i=e.map,h=i.id;if(e.enabled&&(i.isDefine||a.push(e),!e.error))if(!e.inited&&s)o(h)?(t=!0,l=!0):(r.push(h),n(h));else if(!e.inited&&e.fetched&&i.isDefine&&(l=!0,!i.prefix))return u=!1}),s&&r.length)return e=makeError("timeout","Load timeout for modules: "+r,null,r),e.contextName=E.contextName,h(e);u&&each(a,function(e){p(e,{},{})}),s&&!t||!l||!isBrowser&&!isWebWorker||y||(y=setTimeout(function(){y=0,d()},50)),$=!1}}function g(e){hasProp(T,e[0])||a(r(e[0],null,!0)).init(e[1],e[2])}function f(e,t,i,n){e.detachEvent&&!isOpera?n&&e.detachEvent(n,t):e.removeEventListener(i,t,!1)}function m(e){var t=e.currentTarget||e.srcElement;return f(t,E.onScriptLoad,"load","onreadystatechange"),f(t,E.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function v(){var e;for(u();I.length;){if(e=I.shift(),null===e[0])return h(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));g(e)}E.defQueueMap={}}var $,b,E,w,y,x={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},S={},C={},_={},I=[],T={},D={},O={},R=1,P=1;return w={require:function(e){return e.require?e.require:e.require=E.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?T[e.map.id]=e.exports:e.exports=T[e.map.id]={}:void 0},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(x.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},b=function(e){this.events=getOwn(_,e.id)||{},this.map=e,this.shim=getOwn(x.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(e,t,i,n){n=n||{},this.inited||(this.factory=t,i?this.on("error",i):this.events.error&&(i=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=i,this.inited=!0,this.ignore=n.ignore,n.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,E.startTime=(new Date).getTime();var e=this.map;return this.shim?void E.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;D[e]||(D[e]=!0,E.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,i=this.map.id,n=this.depExports,o=this.exports,s=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(s)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{o=E.execCb(i,s,n,o)}catch(r){e=r}else o=E.execCb(i,s,n,o);if(this.map.isDefine&&void 0===o&&(t=this.module,t?o=t.exports:this.usingExports&&(o=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",h(this.error=e)}else o=s;if(this.exports=o,this.map.isDefine&&!this.ignore&&(T[i]=o,req.onResourceLoad)){var a=[];each(this.depMaps,function(e){a.push(e.normalizedMap||e)}),req.onResourceLoad(E,this.map,a)}c(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(E.defQueueMap,i)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,n=r(e.prefix);this.depMaps.push(n),l(n,"defined",bind(this,function(n){var o,s,u,p=getOwn(O,this.map.id),d=this.map.name,g=this.map.parentMap?this.map.parentMap.name:null,f=E.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(n.normalize&&(d=n.normalize(d,function(e){return i(e,g,!0)})||""),s=r(e.prefix+"!"+d,this.map.parentMap),l(s,"defined",bind(this,function(e){this.map.normalizedMap=s,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),u=getOwn(S,s.id),void(u&&(this.depMaps.push(s),this.events.error&&u.on("error",bind(this,function(e){this.emit("error",e)})),u.enable()))):p?(this.map.url=E.nameToUrl(p),void this.load()):(o=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),o.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(S,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&c(e.map.id)}),h(e)}),o.fromText=bind(this,function(i,n){var s=e.name,l=r(s),u=useInteractive;n&&(i=n),u&&(useInteractive=!1),a(l),hasProp(x.config,t)&&(x.config[s]=x.config[t]);try{req.exec(i)}catch(c){return h(makeError("fromtexteval","fromText eval for "+t+" failed: "+c,c,[t]))}u&&(useInteractive=!0),this.depMaps.push(l),E.completeLoad(s),f([s],o)}),void n.load(e.name,f,o,x))})),E.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){C[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var i,n,o;if("string"==typeof e){if(e=r(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,o=getOwn(w,e.id))return void(this.depExports[t]=o(this));this.depCount+=1,l(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?l(e,"error",bind(this,this.errback)):this.events.error&&l(e,"error",bind(this,function(e){this.emit("error",e)}))}i=e.id,n=S[i],hasProp(w,i)||!n||n.enabled||E.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(S,e.id);t&&!t.enabled&&E.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var i=this.events[e];i||(i=this.events[e]=[]),i.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},E={config:x,contextName:e,registry:S,defined:T,urlFetched:D,defQueue:I,defQueueMap:{},Module:b,makeModuleMap:r,nextTick:req.nextTick,onError:h,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,i){return(-1===i.indexOf("?")?"?":"&")+t}}var i=x.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){n[t]?(x[t]||(x[t]={}),mixin(x[t],e,!0,!0)):x[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(O[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=E.makeShimExports(e)),i[t]=e}),x.shim=i),e.packages&&each(e.packages,function(e){var t,i;e="string"==typeof e?{name:e}:e,i=e.name,t=e.location,t&&(x.paths[i]=e.location),x.pkgs[i]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(S,function(e,t){e.inited||e.map.unnormalized||(e.map=r(t,null,!0))}),(e.deps||e.callback)&&E.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,o){function s(i,n,l){var u,c,p;return o.enableBuildCallback&&n&&isFunction(n)&&(n.__requireJsBuild=!0),"string"==typeof i?isFunction(n)?h(makeError("requireargs","Invalid require call"),l):t&&hasProp(w,i)?w[i](S[t.id]):req.get?req.get(E,i,t,s):(c=r(i,t,!1,!0),u=c.id,hasProp(T,u)?T[u]:h(makeError("notloaded",'Module name "'+u+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(v(),E.nextTick(function(){v(),p=a(r(null,t)),p.skipMap=o.skipMap,p.init(i,n,l,{enabled:!0}),d()}),s)}return o=o||{},mixin(s,{isBrowser:isBrowser,toUrl:function(e){var n,o=e.lastIndexOf("."),s=e.split("/")[0],r="."===s||".."===s;return-1!==o&&(!r||o>1)&&(n=e.substring(o,e.length),e=e.substring(0,o)),E.nameToUrl(i(e,t&&t.id,!0),n,!0)},defined:function(e){return hasProp(T,r(e,t,!1,!0).id)},specified:function(e){return e=r(e,t,!1,!0).id,hasProp(T,e)||hasProp(S,e)}}),t||(s.undef=function(e){u();var i=r(e,t,!0),o=getOwn(S,e);o.undefed=!0,n(e),delete T[e],delete D[i.url],delete _[e],eachReverse(I,function(t,i){t[0]===e&&I.splice(i,1)}),delete E.defQueueMap[e],o&&(o.events.defined&&(_[e]=o.events),c(e))}),s},enable:function(e){var t=getOwn(S,e.id);t&&a(e).enable()},completeLoad:function(e){var t,i,n,s=getOwn(x.shim,e)||{},r=s.exports;for(u();I.length;){if(i=I.shift(),null===i[0]){if(i[0]=e,t)break;t=!0}else i[0]===e&&(t=!0);g(i)}if(E.defQueueMap={},n=getOwn(S,e),!t&&!hasProp(T,e)&&n&&!n.inited){if(!(!x.enforceDefine||r&&getGlobal(r)))return o(e)?void 0:h(makeError("nodefine","No define call for "+e,null,[e]));g([e,s.deps||[],s.exportsFn])}d()},nameToUrl:function(e,t,i){var n,o,s,r,a,l,h,u=getOwn(x.pkgs,e);if(u&&(e=u),h=getOwn(O,e))return E.nameToUrl(h,t,i);if(req.jsExtRegExp.test(e))a=e+(t||"");else{for(n=x.paths,o=e.split("/"),s=o.length;s>0;s-=1)if(r=o.slice(0,s).join("/"),l=getOwn(n,r)){isArray(l)&&(l=l[0]),o.splice(0,s,l);break}a=o.join("/"),a+=t||(/^data\:|^blob\:|\?/.test(a)||i?"":".js"),a=("/"===a.charAt(0)||a.match(/^[\w\+\.\-]+:/)?"":x.baseUrl)+a}return x.urlArgs&&!/^blob\:/.test(a)?a+x.urlArgs(e,a):a},load:function(e,t){req.load(E,e,t)},execCb:function(e,t,i,n){return t.apply(n,i)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=m(e);E.completeLoad(t.id)}},onScriptError:function(e){var t=m(e);if(!o(t.id)){var i=[];return eachProp(S,function(e,n){0!==n.indexOf("_@r")&&each(e.depMaps,function(e){return e.id===t.id?(i.push(n),!0):void 0})}),h(makeError("scripterror",'Script error for "'+t.id+(i.length?'", needed by: '+i.join(", "):'"'),e,[t.id]))}}},E.require=E.makeRequire(),E}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){return"interactive"===e.readyState?interactiveScript=e:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.2.0",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,i,n){var o,s,r=defContextName;return isArray(e)||"string"==typeof e||(s=e,isArray(t)?(e=t,t=i,i=n):e=[]),s&&s.context&&(r=s.context),o=getOwn(contexts,r),o||(o=contexts[r]=req.s.newContext(r)),s&&o.configure(s),o.require(e,t,i)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,i){var n=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return n.type=e.scriptType||"text/javascript",n.charset="utf-8",n.async=!0,n},req.load=function(e,t,i){var n,o=e&&e.config||{};if(isBrowser)return n=req.createNode(o,t,i),n.setAttribute("data-requirecontext",e.contextName),n.setAttribute("data-requiremodule",t),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||isOpera?(n.addEventListener("load",e.onScriptLoad,!1),n.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,n.attachEvent("onreadystatechange",e.onScriptLoad)),n.src=i,o.onNodeCreated&&o.onNodeCreated(n,o,t,i),currentlyAddingScript=n,baseElement?head.insertBefore(n,baseElement):head.appendChild(n),currentlyAddingScript=null,n;if(isWebWorker)try{setTimeout(function(){},0),importScripts(i),e.completeLoad(t)}catch(s){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+i,s,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){return head||(head=e.parentNode),dataMain=e.getAttribute("data-main"),dataMain?(mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(e,t,i){var n,o;"string"!=typeof e&&(i=t,t=e,e=null),isArray(t)||(i=t,t=null),!t&&isFunction(i)&&(t=[],i.length&&(i.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,i){t.push(i)}),t=(1===i.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(n=currentlyAddingScript||getInteractiveScript(),n&&(e||(e=n.getAttribute("data-requiremodule")),o=contexts[n.getAttribute("data-requirecontext")])),o?(o.defQueue.push([e,t,i]),o.defQueueMap[e]=!0):globalDefQueue.push([e,t,i])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),define("requireLib",function(){}),define("modules/uv-shared-module/BaseCommands",["require","exports"],function(e,t){var i=function(){function e(){}return e.namespace="uv.",e.ACCEPT_TERMS=e.namespace+"onAcceptTerms",e.BOOKMARK=e.namespace+"onBookmark",e.CANVAS_INDEX_CHANGE_FAILED=e.namespace+"onCanvasIndexChangeFailed",e.CANVAS_INDEX_CHANGED=e.namespace+"onCanvasIndexChanged",e.CLICKTHROUGH=e.namespace+"onClickthrough",e.CLOSE_ACTIVE_DIALOGUE=e.namespace+"onCloseActiveDialogue",e.CLOSE_LEFT_PANEL=e.namespace+"onCloseLeftPanel",e.CLOSE_RIGHT_PANEL=e.namespace+"onCloseRightPanel",e.CREATED=e.namespace+"onCreated",e.DOWN_ARROW=e.namespace+"onDownArrow",e.DOWNLOAD=e.namespace+"onDownload",e.DROP=e.namespace+"onDrop",e.END=e.namespace+"onEnd",e.ESCAPE=e.namespace+"onEscape",e.EXTERNAL_LINK_CLICKED=e.namespace+"onExternalLinkClicked",e.FEEDBACK=e.namespace+"onFeedback",e.FORBIDDEN=e.namespace+"onForbidden",e.HIDE_CLICKTHROUGH_DIALOGUE=e.namespace+"onHideClickthroughDialogue",e.HIDE_DOWNLOAD_DIALOGUE=e.namespace+"onHideDownloadDialogue",e.HIDE_EMBED_DIALOGUE=e.namespace+"onHideEmbedDialogue",e.HIDE_EXTERNALCONTENT_DIALOGUE=e.namespace+"onHideExternalContentDialogue",e.HIDE_GENERIC_DIALOGUE=e.namespace+"onHideGenericDialogue",e.HIDE_HELP_DIALOGUE=e.namespace+"onHideHelpDialogue",e.HIDE_INFORMATION=e.namespace+"onHideInformation",e.HIDE_LOGIN_DIALOGUE=e.namespace+"onHideLoginDialogue",e.HIDE_MOREINFO_DIALOGUE=e.namespace+"onHideMoreInfoDialogue",e.HIDE_OVERLAY=e.namespace+"onHideOverlay",e.HIDE_RESTRICTED_DIALOGUE=e.namespace+"onHideRestrictedDialogue",e.HIDE_SETTINGS_DIALOGUE=e.namespace+"onHideSettingsDialogue",e.HIDE_SHARE_DIALOGUE=e.namespace+"onHideShareDialogue",e.HOME=e.namespace+"onHome",e.LEFT_ARROW=e.namespace+"onLeftArrow",e.LEFTPANEL_COLLAPSE_FULL_FINISH=e.namespace+"onLeftPanelCollapseFullFinish",e.LEFTPANEL_COLLAPSE_FULL_START=e.namespace+"onLeftPanelCollapseFullStart",e.LEFTPANEL_EXPAND_FULL_FINISH=e.namespace+"onLeftPanelExpandFullFinish",e.LEFTPANEL_EXPAND_FULL_START=e.namespace+"onLeftPanelExpandFullStart",e.LOAD_FAILED=e.namespace+"onLoadFailed",e.LOAD=e.namespace+"onLoad",e.LOGIN_FAILED=e.namespace+"onLoginFailed",e.LOGIN=e.namespace+"onLogin",e.LOGOUT=e.namespace+"onLogout",e.METRIC_CHANGED=e.namespace+"onMetricChanged",e.MINUS=e.namespace+"onMinus",e.NOT_FOUND=e.namespace+"onNotFound",e.OPEN_EXTERNAL_RESOURCE=e.namespace+"onOpenExternalResource",e.OPEN_LEFT_PANEL=e.namespace+"onOpenLeftPanel",e.OPEN_RIGHT_PANEL=e.namespace+"onOpenRightPanel",e.OPEN=e.namespace+"onOpen",e.PAGE_DOWN=e.namespace+"onPageDown",e.PAGE_UP=e.namespace+"onPageUp",e.PARENT_EXIT_FULLSCREEN=e.namespace+"onParentExitFullScreen",e.PLUS=e.namespace+"onPlus",e.REDIRECT=e.namespace+"onRedirect",e.REFRESH=e.namespace+"onRefresh",e.RESIZE=e.namespace+"onResize",e.RESOURCE_DEGRADED=e.namespace+"onResourceDegraded",e.RETRY=e.namespace+"onRetry",e.RETURN=e.namespace+"onReturn",e.RIGHT_ARROW=e.namespace+"onRightArrow",e.RIGHTPANEL_COLLAPSE_FULL_FINISH=e.namespace+"onRightPanelCollapseFullFinish",e.RIGHTPANEL_COLLAPSE_FULL_START=e.namespace+"onRightPanelCollapseFullStart",e.RIGHTPANEL_EXPAND_FULL_FINISH=e.namespace+"onRightPanelExpandFullFinish",e.RIGHTPANEL_EXPAND_FULL_START=e.namespace+"onRightPanelExpandFullStart",e.SEQUENCE_INDEX_CHANGED=e.namespace+"onSequenceIndexChanged",e.SETTINGS_CHANGED=e.namespace+"onSettingsChanged",e.SHOW_CLICKTHROUGH_DIALOGUE=e.namespace+"onShowClickThroughDialogue",e.SHOW_DOWNLOAD_DIALOGUE=e.namespace+"onShowDownloadDialogue",e.SHOW_EMBED_DIALOGUE=e.namespace+"onShowEmbedDialogue",e.SHOW_EXTERNALCONTENT_DIALOGUE=e.namespace+"onShowExternalContentDialogue",e.SHOW_GENERIC_DIALOGUE=e.namespace+"onShowGenericDialogue",e.SHOW_HELP_DIALOGUE=e.namespace+"onShowHelpDialogue",e.SHOW_INFORMATION=e.namespace+"onShowInformation",e.SHOW_LOGIN_DIALOGUE=e.namespace+"onShowLoginDialogue",e.SHOW_MOREINFO_DIALOGUE=e.namespace+"onShowMoreInfoDialogue",e.SHOW_OVERLAY=e.namespace+"onShowOverlay",e.SHOW_RESTRICTED_DIALOGUE=e.namespace+"onShowRestrictedDialogue",e.SHOW_SETTINGS_DIALOGUE=e.namespace+"onShowSettingsDialogue",e.SHOW_SHARE_DIALOGUE=e.namespace+"onShowShareDialogue",e.SHOW_TERMS_OF_USE=e.namespace+"onShowTermsOfUse",e.THUMB_SELECTED=e.namespace+"onThumbSelected",e.TOGGLE_EXPAND_LEFT_PANEL=e.namespace+"onToggleExpandLeftPanel",e.TOGGLE_EXPAND_RIGHT_PANEL=e.namespace+"onToggleExpandRightPanel",e.TOGGLE_FULLSCREEN=e.namespace+"onToggleFullScreen",e.UP_ARROW=e.namespace+"onUpArrow",e.UPDATE_SETTINGS=e.namespace+"onUpdateSettings",e.VIEW_FULL_TERMS=e.namespace+"onViewFullTerms",e.WINDOW_UNLOAD=e.namespace+"onWindowUnload",e}();return i}),define("Params",["require","exports"],function(e,t){var i;return function(e){e[e.collectionIndex=0]="collectionIndex",e[e.manifestIndex=1]="manifestIndex",e[e.sequenceIndex=2]="sequenceIndex",e[e.canvasIndex=3]="canvasIndex",e[e.zoom=4]="zoom",e[e.rotation=5]="rotation",e[e.highlight=6]="highlight",e[e.anchor=7]="anchor"}(i||(i={})),i}),define("BootstrapParams",["require","exports","./Params"],function(e,t,i){var n=function(){function e(){this.paramMap=["c","m","s","cv","z","r","h","a"],this.config=Utils.Urls.getQuerystringParameter("config"),this.domain=Utils.Urls.getQuerystringParameter("domain"),this.embedDomain=Utils.Urls.getQuerystringParameter("embedDomain"),this.embedScriptUri=Utils.Urls.getQuerystringParameter("embedScriptUri"),this.isHomeDomain="true"===Utils.Urls.getQuerystringParameter("isHomeDomain"),this.isLightbox="true"===Utils.Urls.getQuerystringParameter("isLightbox"),this.isOnlyInstance="true"===Utils.Urls.getQuerystringParameter("isOnlyInstance"),this.isReload="true"===Utils.Urls.getQuerystringParameter("isReload");var e=Utils.Urls.getQuerystringParameter("jsonp");this.jsonp=null===e?null:!("false"===e||"0"===e),this.manifestUri=Utils.Urls.getQuerystringParameter("manifestUri");var t=Utils.Urls.getQuerystringParameter("locale")||"en-GB";this.setLocale(t),this.collectionIndex=this.getParam(i.collectionIndex),this.manifestIndex=this.getParam(i.manifestIndex),this.sequenceIndex=this.getParam(i.sequenceIndex),this.canvasIndex=this.getParam(i.canvasIndex)}return e.prototype.getLocaleName=function(){return this.localeName},e.prototype.getParam=function(e){if(this.hashParamsAvailable()){var t=parseInt(Utils.Urls.getHashParameter(this.paramMap[e],parent.document));if(t||0===t)return t}return parseInt(Utils.Urls.getQuerystringParameter(this.paramMap[e]))||0},e.prototype.hashParamsAvailable=function(){return this.isHomeDomain&&!this.isReload&&this.isOnlyInstance},e.prototype.setLocale=function(e){this.locale=e,this.locales=[];for(var t=this.locale.split(","),i=0;i #app").data("bootstrapper"),e.call(this,t,i,n)}return __extends(t,e),t.prototype.create=function(){e.prototype.create.call(this),this.extension=this.bootstrapper.extension,this.config={},this.config.content={},this.config.options={},this.content=this.config.content,this.options=this.config.options;var t=this;t.modules.length&&(t.modules=t.modules.reverse(),_.each(t.modules,function(e){t.config=$.extend(!0,t.config,t.extension.config.modules[e])}))},t.prototype.init=function(){},t.prototype.setConfig=function(e){this.modules.push(e)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/Dialogue",["require","exports","./BaseView","./BaseCommands"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t,!1,!1),this.allowClose=!0,this.isActive=!1,this.isUnopened=!0}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("dialogue"),e.prototype.create.call(this),$.subscribe(n.CLOSE_ACTIVE_DIALOGUE,function(){t.isActive&&t.allowClose&&t.close()}),$.subscribe(n.ESCAPE,function(){t.isActive&&t.allowClose&&t.close()}),this.$top=$(''),this.$element.append(this.$top),this.$closeButton=$(''+this.content.close+""),this.$top.append(this.$closeButton),this.$middle=$(''),this.$element.append(this.$middle),this.$content=$(''),this.$middle.append(this.$content),this.$bottom=$(''),this.$element.append(this.$bottom),this.$closeButton.on("click",function(e){e.preventDefault(),t.close()}),this.returnFunc=this.close},t.prototype.enableClose=function(){this.allowClose=!0,this.$closeButton.show()},t.prototype.disableClose=function(){this.allowClose=!1,this.$closeButton.hide()},t.prototype.setDockedPosition=function(){var e=Math.floor(this.extension.height()-this.$element.outerHeight(!0)),t=0,i=0;if(this.$triggerButton){var n=Math.normalise(this.$triggerButton.offset().left,0,this.extension.width());t=Math.floor(this.extension.width()*n-this.$element.width()*n),i=this.$element.width()*n}this.$bottom.css("backgroundPosition",i+"px 0px"),this.$element.css({top:e,left:t})},t.prototype.open=function(e){var t=this;this.$element.show(),e&&e.length?(this.$triggerButton=e,this.$bottom.show()):this.$bottom.hide(),this.isActive=!0,setTimeout(function(){var e=t.$element.find(".default");if(e.length)e.focus();else{var i=t.$element.find("input:visible").first();i.length?i.focus():t.$closeButton.focus()}},1),$.publish(n.SHOW_OVERLAY),this.isUnopened&&(this.isUnopened=!1,this.afterFirstOpen()),this.resize()},t.prototype.afterFirstOpen=function(){},t.prototype.close=function(){this.isActive&&(this.$element.hide(),this.isActive=!1,$.publish(this.closeCommand),$.publish(n.HIDE_OVERLAY))},t.prototype.resize=function(){e.prototype.resize.call(this),this.$element.css({top:Math.floor(this.extension.height()/2-this.$element.height()/2),left:Math.floor(this.extension.width()/2-this.$element.width()/2)})},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/ClickThroughDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("clickThroughDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_CLICKTHROUGH_DIALOGUE,this.closeCommand=i.HIDE_CLICKTHROUGH_DIALOGUE,
-$.subscribe(this.openCommand,function(e,i){t.acceptCallback=i.acceptCallback,t.resource=i.resource,t.open()}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$title=$(""),this.$content.append(this.$title),this.$content.append(' '),this.$message=this.$content.find(".message"),this.$acceptTermsButton=this.$content.find(".acceptTerms"),this.$acceptTermsButton.text("Accept Terms and Open"),this.$element.hide(),this.$acceptTermsButton.on("click",function(e){e.preventDefault(),t.close(),$.publish(i.ACCEPT_TERMS),t.acceptCallback&&t.acceptCallback()})},t.prototype.open=function(){e.prototype.open.call(this),this.$title.text(this.resource.clickThroughService.getProperty("label")),this.$message.html(this.resource.clickThroughService.getProperty("description")),this.$message.targetBlank(),this.$message.find("a").on("click",function(){var e=$(this).attr("href");$.publish(i.EXTERNAL_LINK_CLICKED,[e])}),this.resize()},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return o}),define("modules/uv-shared-module/InformationArgs",["require","exports"],function(e,t){var i=function(){function e(e,t){this.informationType=e,this.param=t}return e}();return i}),define("modules/uv-shared-module/InformationType",["require","exports"],function(e,t){var i;return function(e){e[e.AUTH_CORS_ERROR=0]="AUTH_CORS_ERROR",e[e.DEGRADED_RESOURCE=1]="DEGRADED_RESOURCE"}(i||(i={})),i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/LoginDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("loginDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_LOGIN_DIALOGUE,this.closeCommand=i.HIDE_LOGIN_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.loginCallback=i.loginCallback,t.logoutCallback=i.logoutCallback,t.options=i.options,t.resource=i.resource,t.open()}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$title=$(""),this.$content.append(this.$title),this.$content.append(' '),this.$message=this.$content.find(".message"),this.$loginButton=this.$content.find(".login"),this.$loginButton.text(this.content.login),this.$logoutButton=this.$content.find(".logout"),this.$logoutButton.text(this.content.logout),this.$cancelButton=this.$content.find(".cancel"),this.$cancelButton.text(this.content.cancel),this.$element.hide(),this.$loginButton.on("click",function(e){e.preventDefault(),t.close(),t.loginCallback&&t.loginCallback()}),this.$logoutButton.on("click",function(e){e.preventDefault(),t.close(),t.logoutCallback&&t.logoutCallback()}),this.$cancelButton.on("click",function(e){e.preventDefault(),t.close()}),this.updateLogoutButton()},t.prototype.open=function(){e.prototype.open.call(this),this.$title.text(this.resource.loginService.getProperty("label"));var t=this.resource.loginService.getProperty("description");this.options.warningMessage&&(t=''+this.extension.config.content[this.options.warningMessage]+''+t+""),this.updateLogoutButton(),this.$message.html(t),this.$message.targetBlank(),this.$message.find("a").on("click",function(){var e=$(this).attr("href");$.publish(i.EXTERNAL_LINK_CLICKED,[e])}),this.options.showCancelButton?this.$cancelButton.show():this.$cancelButton.hide(),this.resize()},t.prototype.updateLogoutButton=function(){this.extension.isLoggedIn?this.$logoutButton.show():this.$logoutButton.hide()},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return o}),define("modules/uv-shared-module/LoginWarningMessages",["require","exports"],function(e,t){var i=function(){function e(){}return e.FORBIDDEN="forbiddenResourceMessage",e}();return i}),define("modules/uv-shared-module/Metric",["require","exports"],function(e,t){var i=function(){function e(e,t){this.minWidth=e,this.maxWidth=t}return e}();return i}),define("modules/uv-shared-module/Metrics",["require","exports","./Metric"],function(e,t,i){var n=function(){function e(){}return e.MOBILE_LANDSCAPE=new i(0,640),e.LAPTOP=new i(640,1/0),e}();return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/RestrictedDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("restrictedDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_RESTRICTED_DIALOGUE,this.closeCommand=i.HIDE_RESTRICTED_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.acceptCallback=i.acceptCallback,t.options=i.options,t.resource=i.resource,t.open()}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$title=$(""),this.$content.append(this.$title),this.$content.append(' '),this.$message=this.$content.find(".message"),this.$message.targetBlank(),this.$cancelButton=this.$content.find(".cancel"),this.$cancelButton.text(this.content.cancel),this.$element.hide(),this.$cancelButton.on("click",function(e){e.preventDefault(),t.close()})},t.prototype.open=function(){e.prototype.open.call(this),this.isAccepted=!1,this.$title.text(this.resource.restrictedService.getProperty("label"));var t=this.resource.restrictedService.getProperty("description");this.$message.html(t),this.$message.targetBlank(),this.$message.find("a").on("click",function(){var e=$(this).attr("href");$.publish(i.EXTERNAL_LINK_CLICKED,[e])}),this.resize()},t.prototype.close=function(){e.prototype.close.call(this),!this.isAccepted&&this.acceptCallback&&(this.isAccepted=!0,this.acceptCallback())},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/GenericDialogue",["require","exports","./BaseCommands","./Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("genericDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_GENERIC_DIALOGUE,this.closeCommand=i.HIDE_GENERIC_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.acceptCallback=i.acceptCallback,t.showMessage(i)}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$message=$(""),this.$content.append(this.$message),this.$acceptButton=$(''),this.$content.append(this.$acceptButton),this.$acceptButton.text(this.content.ok),this.$acceptButton.onPressed(function(){t.accept()}),this.returnFunc=function(){t.isActive&&t.accept()},this.$element.hide()},t.prototype.accept=function(){$.publish(i.CLOSE_ACTIVE_DIALOGUE),this.acceptCallback&&this.acceptCallback()},t.prototype.showMessage=function(e){this.$message.html(e.message),e.buttonText?this.$acceptButton.text(e.buttonText):this.$acceptButton.text(this.content.ok),e.allowClose===!1&&this.disableClose(),this.open()},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/Shell",["require","exports","./BaseCommands","./BaseView","./GenericDialogue"],function(e,t,i,n,o){var s=function(e){function t(i){t.$element=i,e.call(this,t.$element,!0,!0)}return __extends(t,e),t.prototype.create=function(){e.prototype.create.call(this),$.subscribe(i.SHOW_OVERLAY,function(){t.$overlays.show()}),$.subscribe(i.HIDE_OVERLAY,function(){t.$overlays.hide()}),t.$headerPanel=$(''),t.$element.append(t.$headerPanel),t.$mainPanel=$(''),t.$element.append(t.$mainPanel),t.$centerPanel=$(''),t.$mainPanel.append(t.$centerPanel),t.$leftPanel=$(''),t.$mainPanel.append(t.$leftPanel),t.$rightPanel=$(''),t.$mainPanel.append(t.$rightPanel),t.$footerPanel=$(''),t.$element.append(t.$footerPanel),t.$mobileFooterPanel=$(''),t.$element.append(t.$mobileFooterPanel),t.$overlays=$(''),t.$element.append(t.$overlays),t.$genericDialogue=$(''),t.$overlays.append(t.$genericDialogue),t.$overlays.on("click",function(e){$(e.target).hasClass("overlays")&&(e.preventDefault(),$.publish(i.CLOSE_ACTIVE_DIALOGUE))}),new o(t.$genericDialogue)},t.prototype.resize=function(){e.prototype.resize.call(this),t.$overlays.width(this.extension.width()),t.$overlays.height(this.extension.height());var i=this.$element.height()-parseInt(t.$mainPanel.css("marginTop"))-(t.$headerPanel.is(":visible")?t.$headerPanel.height():0)-(t.$footerPanel.is(":visible")?t.$footerPanel.height():0)-(t.$mobileFooterPanel.is(":visible")?t.$mobileFooterPanel.height():0);t.$mainPanel.height(i)},t}(n);return s}),define("modules/uv-shared-module/BaseExtension",["require","exports","./BaseCommands","../../BootstrapParams","../../modules/uv-dialogues-module/ClickThroughDialogue","./InformationArgs","./InformationType","../../modules/uv-dialogues-module/LoginDialogue","./LoginWarningMessages","../../modules/uv-shared-module/Metrics","../../Params","../../modules/uv-dialogues-module/RestrictedDialogue","./Shell"],function(e,t,i,n,o,s,r,a,l,h,u,c,p){var d=function(){function t(e){this.isCreated=!1,this.isLoggedIn=!1,this.shifted=!1,this.tabbing=!1,this.bootstrapper=e,this.config=this.bootstrapper.config,this.jsonp=this.bootstrapper.params.jsonp,this.locale=this.bootstrapper.params.getLocaleName(),this.isHomeDomain=this.bootstrapper.params.isHomeDomain,this.isReload=this.bootstrapper.params.isReload,this.embedDomain=this.bootstrapper.params.embedDomain,this.isOnlyInstance=this.bootstrapper.params.isOnlyInstance,this.embedScriptUri=this.bootstrapper.params.embedScriptUri,this.domain=this.bootstrapper.params.domain,this.isLightbox=this.bootstrapper.params.isLightbox}return t.prototype.create=function(e){var t=this,o=this;this.$element=$("#app"),this.$element.data("bootstrapper",this.bootstrapper);var s=$(window);if(this.embedWidth=s.width(),this.embedHeight=s.height(),this.$element.width(this.embedWidth),this.$element.height(this.embedHeight),!this.isReload&&Utils.Documents.isInIFrame()&&(this.bootstrapper.socket=new easyXDM.Socket({onMessage:function(e,i){e=$.parseJSON(e),t.handleParentFrameEvent(e)}})),this.triggerSocket(i.LOAD,{bootstrapper:{config:this.bootstrapper.config,params:this.bootstrapper.params},settings:this.getSettings(),preview:this.getSharePreview()}),this.$element.empty(),this.$element.removeClass(),this.$element.addClass("browser-"+window.browserDetect.browser),this.$element.addClass("browser-version-"+window.browserDetect.version),this.isHomeDomain||this.$element.addClass("embedded"),this.isLightbox&&this.$element.addClass("lightbox"),$(document).on("mousemove",function(e){t.mouseX=e.pageX,t.mouseY=e.pageY}),!this.isReload){window.onresize=function(){var e=$(window);$("body").height(e.height()),t.resize()};var r=Utils.Documents.getHiddenProp();if(r){var a=r.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(a,function(){Utils.Documents.isHidden()||t.resize()})}Utils.Bools.getBool(this.config.options.dropEnabled,!0)&&this.$element.on("drop",function(e){e.preventDefault();var o=e.originalEvent.dataTransfer.getData("URL"),s=Utils.Urls.getUrlParts(o),r=Utils.Urls.getQuerystringParameterFromString("manifest",s.search);if(r){t.triggerSocket(i.DROP,r);var a=new n;a.manifestUri=r,t.reload(a)}}),this.$element.on("dragover",function(e){e.preventDefault()}),$(document).on("keyup keydown",function(e){t.shifted=e.shiftKey,t.tabbing=e.keyCode===KeyCodes.KeyDown.Tab}),$(document).keydown(function(e){var t=null,n=!0;e.ctrlKey||e.altKey||e.shiftKey||(e.keyCode===KeyCodes.KeyDown.Enter&&(t=i.RETURN,n=!1),e.keyCode===KeyCodes.KeyDown.Escape&&(t=i.ESCAPE),e.keyCode===KeyCodes.KeyDown.PageUp&&(t=i.PAGE_UP),e.keyCode===KeyCodes.KeyDown.PageDown&&(t=i.PAGE_DOWN),e.keyCode===KeyCodes.KeyDown.End&&(t=i.END),e.keyCode===KeyCodes.KeyDown.Home&&(t=i.HOME),(e.keyCode===KeyCodes.KeyDown.NumpadPlus||171===e.keyCode||e.keyCode===KeyCodes.KeyDown.Equals)&&(t=i.PLUS,n=!1),(e.keyCode===KeyCodes.KeyDown.NumpadMinus||173===e.keyCode||e.keyCode===KeyCodes.KeyDown.Dash)&&(t=i.MINUS,n=!1),o.useArrowKeysToNavigate()&&(e.keyCode===KeyCodes.KeyDown.LeftArrow&&(t=i.LEFT_ARROW),e.keyCode===KeyCodes.KeyDown.UpArrow&&(t=i.UP_ARROW),e.keyCode===KeyCodes.KeyDown.RightArrow&&(t=i.RIGHT_ARROW),e.keyCode===KeyCodes.KeyDown.DownArrow&&(t=i.DOWN_ARROW))),t&&(n&&e.preventDefault(),$.publish(t))}),this.bootstrapper.params.isHomeDomain&&Utils.Documents.isInIFrame()&&$.subscribe(i.PARENT_EXIT_FULLSCREEN,function(){t.isOverlayActive()&&$.publish(i.ESCAPE),$.publish(i.ESCAPE),$.publish(i.RESIZE)})}this.$element.append(''),this.$element.append(''),$.subscribe(i.ACCEPT_TERMS,function(){t.triggerSocket(i.ACCEPT_TERMS)}),$.subscribe(i.LOGIN_FAILED,function(){t.triggerSocket(i.LOGIN_FAILED),t.showMessage(t.config.content.authorisationFailedMessage)}),$.subscribe(i.LOGIN,function(){t.isLoggedIn=!0,t.triggerSocket(i.LOGIN)}),$.subscribe(i.LOGOUT,function(){t.isLoggedIn=!1,t.triggerSocket(i.LOGOUT)}),$.subscribe(i.BOOKMARK,function(){t.bookmark(),t.triggerSocket(i.BOOKMARK)}),$.subscribe(i.CANVAS_INDEX_CHANGE_FAILED,function(){t.triggerSocket(i.CANVAS_INDEX_CHANGE_FAILED)}),$.subscribe(i.CANVAS_INDEX_CHANGED,function(e,n){t.triggerSocket(i.CANVAS_INDEX_CHANGED,n)}),$.subscribe(i.CLICKTHROUGH,function(){t.triggerSocket(i.CLICKTHROUGH)}),$.subscribe(i.CLOSE_ACTIVE_DIALOGUE,function(){t.triggerSocket(i.CLOSE_ACTIVE_DIALOGUE)}),$.subscribe(i.CLOSE_LEFT_PANEL,function(){t.triggerSocket(i.CLOSE_LEFT_PANEL),t.resize()}),$.subscribe(i.CLOSE_RIGHT_PANEL,function(){t.triggerSocket(i.CLOSE_RIGHT_PANEL),t.resize()}),$.subscribe(i.CREATED,function(){t.isCreated=!0,t.triggerSocket(i.CREATED)}),$.subscribe(i.DOWN_ARROW,function(){t.triggerSocket(i.DOWN_ARROW)}),$.subscribe(i.DOWNLOAD,function(e,n){t.triggerSocket(i.DOWNLOAD,n)}),$.subscribe(i.END,function(){t.triggerSocket(i.END)}),$.subscribe(i.ESCAPE,function(){t.triggerSocket(i.ESCAPE),t.isFullScreen()&&!t.isOverlayActive()&&$.publish(i.TOGGLE_FULLSCREEN)}),$.subscribe(i.EXTERNAL_LINK_CLICKED,function(e,n){t.triggerSocket(i.EXTERNAL_LINK_CLICKED,n)}),$.subscribe(i.FEEDBACK,function(){t.feedback()}),$.subscribe(i.FORBIDDEN,function(){t.triggerSocket(i.FORBIDDEN),$.publish(i.OPEN_EXTERNAL_RESOURCE)}),$.subscribe(i.HIDE_DOWNLOAD_DIALOGUE,function(){t.triggerSocket(i.HIDE_DOWNLOAD_DIALOGUE)}),$.subscribe(i.HIDE_EMBED_DIALOGUE,function(){t.triggerSocket(i.HIDE_EMBED_DIALOGUE)}),$.subscribe(i.HIDE_EXTERNALCONTENT_DIALOGUE,function(){t.triggerSocket(i.HIDE_EXTERNALCONTENT_DIALOGUE)}),$.subscribe(i.HIDE_GENERIC_DIALOGUE,function(){t.triggerSocket(i.HIDE_GENERIC_DIALOGUE)}),$.subscribe(i.HIDE_HELP_DIALOGUE,function(){t.triggerSocket(i.HIDE_HELP_DIALOGUE)}),$.subscribe(i.HIDE_INFORMATION,function(){t.triggerSocket(i.HIDE_INFORMATION)}),$.subscribe(i.HIDE_LOGIN_DIALOGUE,function(){t.triggerSocket(i.HIDE_LOGIN_DIALOGUE)}),$.subscribe(i.HIDE_OVERLAY,function(){t.triggerSocket(i.HIDE_OVERLAY)}),$.subscribe(i.HIDE_RESTRICTED_DIALOGUE,function(){t.triggerSocket(i.HIDE_RESTRICTED_DIALOGUE)}),$.subscribe(i.HIDE_SETTINGS_DIALOGUE,function(){t.triggerSocket(i.HIDE_SETTINGS_DIALOGUE)}),$.subscribe(i.HOME,function(){t.triggerSocket(i.HOME)}),$.subscribe(i.LEFT_ARROW,function(){t.triggerSocket(i.LEFT_ARROW)}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_FINISH,function(){t.triggerSocket(i.LEFTPANEL_COLLAPSE_FULL_FINISH)}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_START,function(){t.triggerSocket(i.LEFTPANEL_COLLAPSE_FULL_START)}),$.subscribe(i.LEFTPANEL_EXPAND_FULL_FINISH,function(){t.triggerSocket(i.LEFTPANEL_EXPAND_FULL_FINISH)}),$.subscribe(i.LEFTPANEL_EXPAND_FULL_START,function(){t.triggerSocket(i.LEFTPANEL_EXPAND_FULL_START)}),$.subscribe(i.LOAD_FAILED,function(){t.triggerSocket(i.LOAD_FAILED),_.isNull(o.lastCanvasIndex)||o.lastCanvasIndex===o.helper.canvasIndex||t.viewCanvas(o.lastCanvasIndex)}),$.subscribe(i.NOT_FOUND,function(){t.triggerSocket(i.NOT_FOUND)}),$.subscribe(i.OPEN,function(){t.triggerSocket(i.OPEN);var e=String.format(t.config.options.openTemplate,t.helper.iiifResourceUri);window.open(e)}),$.subscribe(i.OPEN_LEFT_PANEL,function(){t.triggerSocket(i.OPEN_LEFT_PANEL),t.resize()}),$.subscribe(i.OPEN_EXTERNAL_RESOURCE,function(){t.triggerSocket(i.OPEN_EXTERNAL_RESOURCE)}),$.subscribe(i.OPEN_RIGHT_PANEL,function(){t.triggerSocket(i.OPEN_RIGHT_PANEL),t.resize()}),$.subscribe(i.PAGE_DOWN,function(){t.triggerSocket(i.PAGE_DOWN)}),$.subscribe(i.PAGE_UP,function(){t.triggerSocket(i.PAGE_UP)}),$.subscribe(i.RESOURCE_DEGRADED,function(e,n){t.triggerSocket(i.RESOURCE_DEGRADED),t.handleDegraded(n)}),$.subscribe(i.RETURN,function(){t.triggerSocket(i.RETURN)}),$.subscribe(i.RIGHT_ARROW,function(){t.triggerSocket(i.RIGHT_ARROW)}),$.subscribe(i.RIGHTPANEL_COLLAPSE_FULL_FINISH,function(){t.triggerSocket(i.RIGHTPANEL_COLLAPSE_FULL_FINISH)}),$.subscribe(i.RIGHTPANEL_COLLAPSE_FULL_START,function(){t.triggerSocket(i.RIGHTPANEL_COLLAPSE_FULL_START)}),$.subscribe(i.RIGHTPANEL_EXPAND_FULL_FINISH,function(){t.triggerSocket(i.RIGHTPANEL_EXPAND_FULL_FINISH)}),$.subscribe(i.RIGHTPANEL_EXPAND_FULL_START,function(){t.triggerSocket(i.RIGHTPANEL_EXPAND_FULL_START)}),$.subscribe(i.SEQUENCE_INDEX_CHANGED,function(){t.triggerSocket(i.SEQUENCE_INDEX_CHANGED)}),$.subscribe(i.SETTINGS_CHANGED,function(e,n){t.triggerSocket(i.SETTINGS_CHANGED,n)}),$.subscribe(i.SHOW_DOWNLOAD_DIALOGUE,function(){t.triggerSocket(i.SHOW_DOWNLOAD_DIALOGUE)}),$.subscribe(i.SHOW_EMBED_DIALOGUE,function(){t.triggerSocket(i.SHOW_EMBED_DIALOGUE)}),$.subscribe(i.SHOW_EXTERNALCONTENT_DIALOGUE,function(){t.triggerSocket(i.SHOW_EXTERNALCONTENT_DIALOGUE)}),$.subscribe(i.SHOW_GENERIC_DIALOGUE,function(){t.triggerSocket(i.SHOW_GENERIC_DIALOGUE)}),$.subscribe(i.SHOW_HELP_DIALOGUE,function(){t.triggerSocket(i.SHOW_HELP_DIALOGUE)}),$.subscribe(i.SHOW_INFORMATION,function(){t.triggerSocket(i.SHOW_INFORMATION)}),$.subscribe(i.SHOW_LOGIN_DIALOGUE,function(){t.triggerSocket(i.SHOW_LOGIN_DIALOGUE)}),$.subscribe(i.SHOW_CLICKTHROUGH_DIALOGUE,function(){t.triggerSocket(i.SHOW_CLICKTHROUGH_DIALOGUE)}),$.subscribe(i.SHOW_RESTRICTED_DIALOGUE,function(){t.triggerSocket(i.SHOW_RESTRICTED_DIALOGUE)}),$.subscribe(i.SHOW_OVERLAY,function(){t.triggerSocket(i.SHOW_OVERLAY)}),$.subscribe(i.SHOW_SETTINGS_DIALOGUE,function(){t.triggerSocket(i.SHOW_SETTINGS_DIALOGUE)}),$.subscribe(i.SHOW_TERMS_OF_USE,function(){t.triggerSocket(i.SHOW_TERMS_OF_USE);var e=t.helper.getAttribution();t.showMessage(e)}),$.subscribe(i.THUMB_SELECTED,function(e,n){t.triggerSocket(i.THUMB_SELECTED,n.index)}),$.subscribe(i.TOGGLE_FULLSCREEN,function(){$("#top").focus(),t.bootstrapper.isFullScreen=!t.bootstrapper.isFullScreen,t.triggerSocket(i.TOGGLE_FULLSCREEN,{isFullScreen:t.bootstrapper.isFullScreen,overrideFullScreen:t.config.options.overrideFullScreen})}),$.subscribe(i.UP_ARROW,function(){t.triggerSocket(i.UP_ARROW)}),$.subscribe(i.UPDATE_SETTINGS,function(){t.triggerSocket(i.UPDATE_SETTINGS)}),$.subscribe(i.VIEW_FULL_TERMS,function(){t.triggerSocket(i.VIEW_FULL_TERMS)}),$.subscribe(i.WINDOW_UNLOAD,function(){t.triggerSocket(i.WINDOW_UNLOAD)}),this.shell=new p(this.$element),e?this.loadDependencies(e):this.getDependencies(function(e){t.loadDependencies(e)})},t.prototype.createModules=function(){this.$clickThroughDialogue=$(''),p.$overlays.append(this.$clickThroughDialogue),this.clickThroughDialogue=new o(this.$clickThroughDialogue),this.$restrictedDialogue=$(''),p.$overlays.append(this.$restrictedDialogue),this.restrictedDialogue=new c(this.$restrictedDialogue),this.$loginDialogue=$(''),p.$overlays.append(this.$loginDialogue),this.loginDialogue=new a(this.$loginDialogue)},t.prototype.modulesCreated=function(){},t.prototype.getDependencies=function(t){var i=this,n=window.DEBUG?"../../extensions/"+this.name+"/dependencies":this.name+"-dependencies",o=$("script[data-requiremodule]").filter(function(){var e=$(this).attr("data-requiremodule");return-1!=e.indexOf(i.name)&&-1!=e.indexOf("dependencies")});o.length?t(null):e([n],function(e){for(var n=window.DEBUG?"../../extensions/"+i.name+"/lib/":"",o=0;on.minWidth&&this.width()<=n.maxWidth&&this.metric!==n&&(this.metric=n,$.publish(i.METRIC_CHANGED))}},t.prototype.resize=function(){this._updateMetric(),$.publish(i.RESIZE)},t.prototype.handleParentFrameEvent=function(e){var t=this;Utils.Async.waitFor(function(){return t.isCreated},function(){switch(e.eventName){case i.TOGGLE_FULLSCREEN:$.publish(i.TOGGLE_FULLSCREEN,e.eventObject);break;case i.PARENT_EXIT_FULLSCREEN:$.publish(i.PARENT_EXIT_FULLSCREEN)}})},t.prototype.reload=function(e){var t=new n;e&&(t=$.extend(t,e)),t.isReload=!0,$.disposePubSub(),this.bootstrapper.bootstrap(t)},t.prototype.getCanvasIndexParam=function(){return this.bootstrapper.params.getParam(u.canvasIndex)},t.prototype.getSequenceIndexParam=function(){return this.bootstrapper.params.getParam(u.sequenceIndex)},t.prototype.isSeeAlsoEnabled=function(){return this.config.options.seeAlsoEnabled!==!1},t.prototype.getShareUrl=function(){if(this.isDeepLinkingEnabled())return Utils.Documents.isInIFrame()?parent.document.location.href:document.location.href;if(this.helper.hasRelatedPage()){var e=this.helper.getRelated();return e.length&&(e=e[0]),e["@id"]}return null},t.prototype.getIIIFShareUrl=function(){return this.helper.iiifResourceUri+"?manifest="+this.helper.iiifResourceUri},t.prototype.addTimestamp=function(e){return e+"?t="+Utils.Dates.getTimeStamp()},t.prototype.isDeepLinkingEnabled=function(){return this.isHomeDomain&&this.isOnlyInstance},t.prototype.isOnHomeDomain=function(){return this.isDeepLinkingEnabled()},t.prototype.getDomain=function(){var e=Utils.Urls.getUrlParts(this.helper.iiifResourceUri);return e.host},t.prototype.getEmbedDomain=function(){return this.embedDomain},t.prototype.getSettings=function(){if(Utils.Bools.getBool(this.config.options.saveUserSettings,!1)){var e=Utils.Storage.get("uv.settings",Utils.StorageType.local);if(e)return $.extend(this.config.options,e.value)}return this.config.options},t.prototype.updateSettings=function(e){if(Utils.Bools.getBool(this.config.options.saveUserSettings,!1)){var t=Utils.Storage.get("uv.settings",Utils.StorageType.local);t&&(e=$.extend(t.value,e)),Utils.Storage.set("uv.settings",e,31536e4,Utils.StorageType.local)}this.config.options=$.extend(this.config.options,e)},t.prototype.sanitize=function(e){var t=document.createElement("div"),i=$(t);i.html(e);var n=new Sanitize({elements:["a","b","br","img","p","i","span"],attributes:{a:["href"],img:["src","alt"]},protocols:{a:{href:["http","https"]}}});return i.html(n.clean_node(t)),i.html()},t.prototype.getLocales=function(){if(this.locales)return this.locales;var e=this.config.localisation.locales.clone(),t=this.bootstrapper.params.locales,i=[];_.each(t,function(t){var n=_.filter(e,function(e){return e.name===t.name});if(n.length){var o=n[0];t.label&&(o.label=t.label),o.added=!0,i.push(o)}});var n=Utils.Bools.getBool(this.config.options.limitLocales,!1);return n||_.each(e,function(e){e.added||i.push(e),delete e.added}),this.locales=i},t.prototype.getAlternateLocale=function(){for(var e,t=this.getLocales(),i=0;i0&&(t+=","),t+=n.name,n.label&&(t+=":"+n.label)}return t},t.prototype.getSerializedLocales=function(){return this.serializeLocales(this.locales)},t.prototype.getSharePreview=function(){var e={};e.title=this.helper.getLabel();var t=this.helper.getCurrentCanvas(),i=t.getProperty("thumbnail");return i&&_.isString(i)||(i=t.getCanonicalImageUri(this.config.options.bookmarkThumbWidth)),e.image=i,e},t.prototype.getPagedIndices=function(e){return"undefined"==typeof e&&(e=this.helper.canvasIndex),[e]},t.prototype.getCurrentCanvases=function(){for(var e=this.getPagedIndices(this.helper.canvasIndex),t=[],i=0;i"+this.content.title+""),this.$content.append(this.$title),this.$noneAvailable=$(''+this.content.noneAvailable+"
"),this.$content.append(this.$noneAvailable),this.$downloadOptions=$('
'),this.$content.append(this.$downloadOptions),this.$footer=$(''),this.$content.append(this.$footer),this.$termsOfUseButton=$(''+this.extension.config.content.termsOfUse+""),this.$footer.append(this.$termsOfUseButton),this.$termsOfUseButton.onPressed(function(){$.publish(i.SHOW_TERMS_OF_USE)}),this.$element.hide(),this.updateTermsOfUseButton()},t.prototype.addEntireFileDownloadOptions=function(){var e=this;if(this.isDownloadOptionAvailable(o.entireFileAsOriginal)){this.$downloadOptions.empty();var t=this.extension.helper.getCurrentCanvas(),i=!1;_.each(t.getRenderings(),function(t){var n=t.getFormat(),o="";n&&(o=n.toString()),e.addEntireFileDownloadOption(t.id,Manifesto.TranslationCollection.getValue(t.getLabel()),o),i=!0}),i||this.addEntireFileDownloadOption(t.id,null,null)}},t.prototype.addEntireFileDownloadOption=function(e,t,i){t?t+=" ({0})":t=this.content.entireFileAsOriginal;var n;n=i?Utils.Files.simplifyMimeType(i):this.getFileExtension(e),this.$downloadOptions.append(''+String.format(t,n)+"")},t.prototype.updateNoneAvailable=function(){this.$downloadOptions.find("li:visible").length?this.$noneAvailable.hide():this.$noneAvailable.show()},t.prototype.updateTermsOfUseButton=function(){var e=this.extension.helper.getAttribution();Utils.Bools.getBool(this.extension.config.options.termsOfUseEnabled,!1)&&e?this.$termsOfUseButton.show():this.$termsOfUseButton.hide()},t.prototype.getFileExtension=function(e){return e.split(".").pop()},t.prototype.isDownloadOptionAvailable=function(e){switch(e){case o.entireFileAsOriginal:this.extension.helper.manifest.getService(manifesto.ServiceProfile.uiExtensions());if(!this.extension.helper.isUIEnabled("mediaDownload"))return!1}return!0},t.prototype.close=function(){e.prototype.close.call(this)},t.prototype.resize=function(){this.setDockedPosition()},t}(n);return s});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-mediaelement-extension/DownloadDialogue",["require","exports","../../modules/uv-dialogues-module/DownloadDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("downloadDialogue"),e.prototype.create.call(this)},t.prototype.open=function(t){e.prototype.open.call(this,t),this.addEntireFileDownloadOptions(),this.updateNoneAvailable(),this.resize()},t.prototype.isDownloadOptionAvailable=function(t){return e.prototype.isDownloadOptionAvailable.call(this,t)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/ShareDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t),this.aspectRatio=.75,this.isEmbedViewVisible=!1,this.isShareViewVisible=!1,this.maxHeight=this.maxWidth*this.aspectRatio,this.maxWidth=8e3,this.minHeight=this.minWidth*this.aspectRatio,this.minWidth=200}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("shareDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_SHARE_DIALOGUE,this.closeCommand=i.HIDE_SHARE_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open(i),t.isShareAvailable()?t.openShareView():t.openEmbedView()}),$.subscribe(this.closeCommand,function(e){t.close()}),$.subscribe(i.SHOW_EMBED_DIALOGUE,function(e,i){t.open(i),t.openEmbedView()}),this.$tabs=$(''),this.$content.append(this.$tabs),this.$shareButton=$(''+this.content.share+""),this.$shareButton.prop("title",this.content.share),this.$tabs.append(this.$shareButton),this.$embedButton=$(''+this.content.embed+""),this.$embedButton.prop("title",this.content.embed),this.$tabs.append(this.$embedButton),this.$tabsContent=$(''),this.$content.append(this.$tabsContent),this.$footer=$(''),this.$content.append(this.$footer),this.$shareView=$(''),this.$tabsContent.append(this.$shareView),this.$shareHeader=$(''),this.$shareView.append(this.$shareHeader),this.$shareLink=$(''),this.$shareView.append(this.$shareLink),this.$shareInput=$(''),this.$shareView.append(this.$shareInput),this.$shareFrame=$(''),this.$shareView.append(this.$shareFrame),this.$embedView=$(''),this.$tabsContent.append(this.$embedView),this.$embedHeader=$(''),this.$embedView.append(this.$embedHeader),this.$code=$(''),this.$embedView.append(this.$code),this.$customSize=$(''),this.$embedView.append(this.$customSize),this.$size=$(''+this.content.size+""),this.$customSize.append(this.$size),this.$customSizeDropDown=$(''),this.$customSize.append(this.$customSizeDropDown),this.$customSizeDropDown.append(''),this.$customSizeDropDown.append(''),this.$customSizeDropDown.append(''),this.$customSizeDropDown.append('"),this.$widthInput=$(''),this.$customSize.append(this.$widthInput),this.$x=$('x'),this.$customSize.append(this.$x),this.$heightInput=$(''),this.$customSize.append(this.$heightInput);var n=this.extension.getIIIFShareUrl();this.$iiifButton=$(''),this.$footer.append(this.$iiifButton),this.$termsOfUseButton=$(''+this.extension.config.content.termsOfUse+""),this.$footer.append(this.$termsOfUseButton),this.$widthInput.on("keydown",function(e){return Utils.Numbers.numericalInput(e)}),this.$heightInput.on("keydown",function(e){return Utils.Numbers.numericalInput(e)}),this.$shareInput.focus(function(){$(this).select()}),this.$code.focus(function(){$(this).select()}),this.$shareButton.onPressed(function(){t.openShareView()}),this.$embedButton.onPressed(function(){t.openEmbedView()}),this.$customSizeDropDown.change(function(){t.update()}),this.$widthInput.change(function(){t.updateHeightRatio(),t.update()}),this.$heightInput.change(function(){t.updateWidthRatio(),t.update()}),this.$termsOfUseButton.onPressed(function(){$.publish(i.SHOW_TERMS_OF_USE)}),this.$element.hide(),this.updateInstructions(),this.updateShareOptions(),this.updateShareFrame(),this.updateTermsOfUseButton()},t.prototype.open=function(t){e.prototype.open.call(this,t),this.update()},t.prototype.getShareUrl=function(){return this.extension.getShareUrl()},t.prototype.isShareAvailable=function(){return!!this.getShareUrl()},t.prototype.update=function(){this.isShareAvailable()?this.$shareButton.show():this.$shareButton.hide();var e=this.getSelectedSize();"custom"===e.val()?(this.$widthInput.show(),this.$x.show(),this.$heightInput.show()):(this.$widthInput.hide(),this.$x.hide(),this.$heightInput.hide(),this.currentWidth=Number(e.data("width")),this.currentHeight=Number(e.data("height")),this.$widthInput.val(String(this.currentWidth)),this.$heightInput.val(String(this.currentHeight)))},t.prototype.updateShareOptions=function(){this.$shareInput.val(this.getShareUrl()),this.$shareLink.prop("href",this.getShareUrl()),this.$shareLink.text(this.getShareUrl()),$.browser.mobile?(this.$shareInput.hide(),this.$shareLink.show()):(this.$shareInput.show(),this.$shareLink.hide())},t.prototype.updateInstructions=function(){Utils.Bools.getBool(this.options.instructionsEnabled,!1)?(this.$shareHeader.show(),this.$embedHeader.show(),this.$shareHeader.text(this.content.shareInstructions),this.$embedHeader.text(this.content.embedInstructions)):(this.$shareHeader.hide(),this.$embedHeader.hide())},t.prototype.getSelectedSize=function(){return this.$customSizeDropDown.find(":selected")},t.prototype.updateWidthRatio=function(){this.currentHeight=Number(this.$heightInput.val()),this.currentHeightthis.maxHeight&&(this.currentHeight=this.maxHeight,this.$heightInput.val(String(this.currentHeight))),this.currentWidth=Math.floor(this.currentHeight/this.aspectRatio),this.$widthInput.val(String(this.currentWidth))},t.prototype.updateHeightRatio=function(){this.currentWidth=Number(this.$widthInput.val()),this.currentWidththis.maxWidth&&(this.currentWidth=this.maxWidth,this.$widthInput.val(String(this.currentWidth))),this.currentHeight=Math.floor(this.currentWidth*this.aspectRatio),this.$heightInput.val(String(this.currentHeight))},t.prototype.updateShareFrame=function(){var e=this.extension.helper.getShareServiceUrl();Utils.Bools.getBool(this.config.options.shareFrameEnabled,!0)&&e?(this.$shareFrame.prop("src",e),this.$shareFrame.show()):this.$shareFrame.hide()},t.prototype.updateTermsOfUseButton=function(){var e=this.extension.helper.getAttribution();Utils.Bools.getBool(this.extension.config.options.termsOfUseEnabled,!1)&&e?this.$termsOfUseButton.show():this.$termsOfUseButton.hide()},t.prototype.openShareView=function(){this.isShareViewVisible=!0,this.isEmbedViewVisible=!1,this.$embedView.hide(),this.$shareView.show(),this.$shareButton.addClass("on default"),this.$embedButton.removeClass("on default"),this.resize()},t.prototype.openEmbedView=function(){this.isShareViewVisible=!1,this.isEmbedViewVisible=!0,this.$embedView.show(),this.$shareView.hide(),this.$shareButton.removeClass("on default"),this.$embedButton.addClass("on default"),this.resize()},t.prototype.close=function(){e.prototype.close.call(this)},t.prototype.getViews=function(){return this.$tabsContent.find(".view")},t.prototype.equaliseViewHeights=function(){this.getViews().equaliseHeight(!0)},t.prototype.resize=function(){this.equaliseViewHeights(),this.setDockedPosition()},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-mediaelement-extension/ShareDialogue",["require","exports","../../modules/uv-dialogues-module/ShareDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("shareDialogue"),e.prototype.create.call(this)},t.prototype.update=function(){e.prototype.update.call(this),this.code=this.extension.getEmbedScript(this.options.embedTemplate,this.currentWidth,this.currentHeight),this.$code.val(this.code)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/FooterPanel",["require","exports","./BaseCommands","./BaseView","./Metrics"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("footerPanel"),e.prototype.create.call(this),$.subscribe(i.TOGGLE_FULLSCREEN,function(){t.updateFullScreenButton()}),$.subscribe(i.METRIC_CHANGED,function(){t.updateMinimisedButtons(),t.updateMoreInfoButton()}),$.subscribe(i.SETTINGS_CHANGED,function(){t.updateDownloadButton()}),this.$options=$(''),this.$element.append(this.$options),this.$feedbackButton=$(''+this.content.feedback+""),this.$options.prepend(this.$feedbackButton),this.$openButton=$(''+this.content.open+""),this.$options.prepend(this.$openButton),this.$bookmarkButton=$(''+this.content.bookmark+""),this.$options.prepend(this.$bookmarkButton),this.$shareButton=$(''+this.content.share+""),this.$options.append(this.$shareButton),this.$embedButton=$(''+this.content.embed+""),this.$options.append(this.$embedButton),this.$downloadButton=$(''+this.content.download+""),this.$options.prepend(this.$downloadButton),this.$moreInfoButton=$(''+this.content.moreInfo+""),this.$options.prepend(this.$moreInfoButton),this.$fullScreenBtn=$(''+this.content.fullScreen+""),this.$options.append(this.$fullScreenBtn),this.$openButton.onPressed(function(){$.publish(i.OPEN)}),this.$feedbackButton.onPressed(function(){$.publish(i.FEEDBACK)}),this.$bookmarkButton.onPressed(function(){$.publish(i.BOOKMARK)}),this.$shareButton.onPressed(function(){$.publish(i.SHOW_SHARE_DIALOGUE,[t.$shareButton])}),this.$embedButton.onPressed(function(){$.publish(i.SHOW_EMBED_DIALOGUE,[t.$embedButton])}),this.$downloadButton.onPressed(function(){$.publish(i.SHOW_DOWNLOAD_DIALOGUE,[t.$downloadButton])}),this.$moreInfoButton.onPressed(function(){$.publish(i.SHOW_MOREINFO_DIALOGUE,[t.$moreInfoButton])}),this.$fullScreenBtn.on("click",function(e){e.preventDefault(),$.publish(i.TOGGLE_FULLSCREEN)}),Utils.Bools.getBool(this.options.embedEnabled,!0)||this.$embedButton.hide(),this.updateMoreInfoButton(),this.updateOpenButton(),this.updateFeedbackButton(),this.updateBookmarkButton(),this.updateEmbedButton(),this.updateDownloadButton(),this.updateFullScreenButton(),this.updateShareButton(),this.updateMinimisedButtons()},t.prototype.updateMinimisedButtons=function(){return Utils.Bools.getBool(this.options.minimiseButtons,!1)?void this.$options.addClass("minimiseButtons"):void(this.extension.metric===o.MOBILE_LANDSCAPE?this.$options.addClass("minimiseButtons"):this.$options.removeClass("minimiseButtons"))},t.prototype.updateMoreInfoButton=function(){var e=Utils.Bools.getBool(this.options.moreInfoEnabled,!1);e&&this.extension.metric===o.MOBILE_LANDSCAPE?this.$moreInfoButton.show():this.$moreInfoButton.hide()},t.prototype.updateOpenButton=function(){var e=Utils.Bools.getBool(this.options.openEnabled,!1);e&&!this.extension.isHomeDomain?this.$openButton.show():this.$openButton.hide()},t.prototype.updateFullScreenButton=function(){Utils.Bools.getBool(this.options.fullscreenEnabled,!0)||this.$fullScreenBtn.hide(),this.extension.isLightbox&&this.$fullScreenBtn.addClass("lightbox"),this.extension.isFullScreen()?(this.$fullScreenBtn.swapClass("fullScreen","exitFullscreen"),this.$fullScreenBtn.text(this.content.exitFullScreen),this.$fullScreenBtn.attr("title",this.content.exitFullScreen)):(this.$fullScreenBtn.swapClass("exitFullscreen","fullScreen"),this.$fullScreenBtn.text(this.content.fullScreen),this.$fullScreenBtn.attr("title",this.content.fullScreen))},t.prototype.updateEmbedButton=function(){this.extension.helper.isUIEnabled("embed")&&Utils.Bools.getBool(this.options.embedEnabled,!1)?$.browser.mobile||this.$embedButton.show():this.$embedButton.hide()},t.prototype.updateShareButton=function(){this.extension.helper.isUIEnabled("share")&&Utils.Bools.getBool(this.options.shareEnabled,!0)?this.$shareButton.show():this.$shareButton.hide()},t.prototype.updateDownloadButton=function(){var e=Utils.Bools.getBool(this.options.downloadEnabled,!0);e?this.$downloadButton.show():this.$downloadButton.hide()},t.prototype.updateFeedbackButton=function(){var e=Utils.Bools.getBool(this.options.feedbackEnabled,!1);e?this.$feedbackButton.show():this.$feedbackButton.hide()},t.prototype.updateBookmarkButton=function(){var e=Utils.Bools.getBool(this.options.bookmarkEnabled,!1);e?this.$bookmarkButton.show():this.$bookmarkButton.hide()},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return s}),define("modules/uv-shared-module/Information",["require","exports"],function(e,t){var i=function(){function e(e,t){this.message=e,this.actions=t}return e}();return i}),define("modules/uv-shared-module/InformationAction",["require","exports"],function(e,t){var i=function(){function e(){}return e}();return i}),define("modules/uv-shared-module/InformationFactory",["require","exports","./BaseCommands","./Information","./InformationAction","./InformationType"],function(e,t,i,n,o,s){var r=function(){function e(e){this.extension=e}return e.prototype.Get=function(e){switch(e.informationType){case s.AUTH_CORS_ERROR:return new n(this.extension.config.content.authCORSError,[]);case s.DEGRADED_RESOURCE:var t=[],r=new o;return r.label=this.extension.config.content.degradedResourceLogin,r.action=function(){$.publish(i.HIDE_INFORMATION),$.publish(i.OPEN_EXTERNAL_RESOURCE,[[e.param]])},t.push(r),new n(this.extension.config.content.degradedResourceMessage,t)}},e}();return r});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/HeaderPanel",["require","exports","./BaseCommands","./BaseView","../uv-shared-module/InformationFactory"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t,!1,!1)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("headerPanel"),e.prototype.create.call(this),$.subscribe(i.SHOW_INFORMATION,function(e,i){t.showInformation(i)}),$.subscribe(i.HIDE_INFORMATION,function(){t.hideInformation()}),this.$options=$(''),this.$element.append(this.$options),this.$centerOptions=$(''),this.$options.append(this.$centerOptions),this.$rightOptions=$(''),this.$options.append(this.$rightOptions),this.$localeToggleButton=$(''),this.$rightOptions.append(this.$localeToggleButton),this.$settingsButton=$(''),this.$settingsButton.attr("title",this.content.settings),this.$rightOptions.append(this.$settingsButton),this.$informationBox=$(''),this.$element.append(this.$informationBox),this.$informationBox.hide(),this.$informationBox.find(".close").attr("title",this.content.close),this.$informationBox.find(".close").on("click",function(e){e.preventDefault(),$.publish(i.HIDE_INFORMATION)}),this.$localeToggleButton.on("click",function(){t.extension.changeLocale(String(t.$localeToggleButton.data("locale")))}),this.$settingsButton.onPressed(function(){$.publish(i.SHOW_SETTINGS_DIALOGUE)}),this.updateLocaleToggle(),this.updateSettingsButton()},t.prototype.updateLocaleToggle=function(){if(!this.localeToggleIsVisible())return void this.$localeToggleButton.hide();var e=this.extension.getAlternateLocale(),t=e.name.split("-")[0].toUpperCase();this.$localeToggleButton.data("locale",e.name),this.$localeToggleButton.attr("title",e.label),this.$localeToggleButton.text(t)},t.prototype.updateSettingsButton=function(){var e=Utils.Bools.getBool(this.options.settingsButtonEnabled,!0);e?this.$settingsButton.show():this.$settingsButton.hide()},t.prototype.localeToggleIsVisible=function(){return this.extension.getLocales().length>1&&Utils.Bools.getBool(this.options.localeToggleEnabled,!1)},t.prototype.showInformation=function(e){var t=new o(this.extension);this.information=t.Get(e);var i=this.$informationBox.find(".message");i.html(this.information.message).find("a").attr("target","_top");var n=this.$informationBox.find(".actions");n.empty();for(var s=0;s'+r.label+"");a.on("click",r.action),n.append(a)}this.$informationBox.show(),this.$element.addClass("showInformation"),this.extension.resize()},t.prototype.hideInformation=function(){this.$element.removeClass("showInformation"),this.$informationBox.hide(),this.extension.resize()},t.prototype.getSettings=function(){return this.extension.getSettings()},t.prototype.updateSettings=function(e){this.extension.updateSettings(e),$.publish(i.UPDATE_SETTINGS,[e])},t.prototype.resize=function(){e.prototype.resize.call(this);var t=this.$element.width(),i=t/2,n=this.$centerOptions.outerWidth(),o=i-n/2;if(this.$centerOptions.css({left:o}),this.$informationBox.is(":visible")){var s=this.$informationBox.find(".actions"),r=this.$informationBox.find(".message");r.width(this.$element.width()-r.horizontalMargins()-s.outerWidth(!0)-this.$informationBox.find(".close").outerWidth(!0)-1),r.ellipsisFill(this.information.message)}this.extension.width()"),this.$content.append(this.$title),this.$scroll=$(''),this.$content.append(this.$scroll),this.$message=$(""),this.$scroll.append(this.$message),this.$title.text(this.content.title),this.$message.html(this.content.text),this.$message.targetBlank(),this.$element.hide()},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/CenterPanel",["require","exports","./Shell","./BaseView"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t,!1,!0)}return __extends(t,e),t.prototype.create=function(){var t=this;e.prototype.create.call(this),this.$title=$(''),this.$element.append(this.$title),this.$content=$(''),this.$element.append(this.$content),this.$attribution=$(''),this.$attribution.find(".header .title").text(this.content.attribution),this.$content.append(this.$attribution),this.$attribution.hide(),this.$closeAttributionButton=this.$attribution.find(".header .close"),this.$closeAttributionButton.on("click",function(e){e.preventDefault(),t.$attribution.hide()}),Utils.Bools.getBool(this.options.titleEnabled,!0)||this.$title.hide()},t.prototype.updateAttribution=function(){var e=this,t=this.extension.helper.getAttribution(),i=Utils.Bools.getBool(this.options.attributionEnabled,!0);if(t&&i){this.$attribution.show();var n=this.$attribution.find(".attribution-text"),o=this.$attribution.find(".license"),s=this.$attribution.find(".logo");n.html(this.extension.sanitize(t)),n.find("img").one("load",function(){e.resize()}).each(function(){this.complete&&$(this).load()}),n.targetBlank(),n.toggleExpandText(this.options.trimAttributionCount,function(){e.resize()}),o.hide(),s.hide()}},t.prototype.resize=function(){e.prototype.resize.call(this);var t=i.$leftPanel.is(":visible")?Math.floor(i.$leftPanel.width()):0,n=i.$rightPanel.is(":visible")?Math.floor(i.$rightPanel.width()):0,o=Math.floor(this.$element.parent().width()-t-n);this.$element.css({left:t,width:o});var s;s=this.options&&this.options.titleEnabled===!1?0:this.$title.height(),this.$content.height(this.$element.height()-s),this.$content.width(this.$element.width()),this.$attribution&&this.$attribution.is(":visible")&&this.$attribution.css("top",this.$content.height()-this.$attribution.outerHeight()-this.$attribution.verticalMargins())},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-mediaelementcenterpanel-module/MediaElementCenterPanel",["require","exports","../uv-shared-module/BaseCommands","../../extensions/uv-mediaelement-extension/Commands","../uv-shared-module/CenterPanel"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("mediaelementCenterPanel"),e.prototype.create.call(this);var t=this;this.extension.isVideo()&&$.subscribe(i.TOGGLE_FULLSCREEN,function(e){t.bootstrapper.isFullScreen?(t.$container.css("backgroundColor","#000"),t.player.enterFullScreen(!1)):(t.$container.css("backgroundColor","transparent"),t.player.exitFullScreen(!1))}),$.subscribe(i.OPEN_EXTERNAL_RESOURCE,function(e,i){t.openMedia(i)}),this.$container=$(''),this.$content.append(this.$container),this.title=this.extension.helper.getLabel()},t.prototype.openMedia=function(e){var t=this,i=this;this.extension.getExternalResources(e).then(function(){t.$container.empty();var e=t.extension.helper.getCurrentCanvas();t.mediaHeight=t.config.defaultHeight,t.mediaWidth=t.config.defaultWidth,t.$container.height(t.mediaHeight),t.$container.width(t.mediaWidth);var o=Utils.Dates.getTimeStamp(),s=t.extension.getPosterImageUri(),r=s?' poster="'+s+'"':"",a=[];if(_.each(e.getRenderings(),function(e){a.push({type:e.getFormat().toString(),src:e.id})}),t.extension.isVideo())t.media=t.$container.append('"),t.player=new MediaElementPlayer("#"+o,{type:["video/mp4","video/webm","video/flv"],plugins:["flash"],alwaysShowControls:!1,autosizeProgress:!1,
-success:function(e){e.addEventListener("canplay",function(e){i.resize()}),e.addEventListener("play",function(e){$.publish(n.MEDIA_PLAYED,[Math.floor(i.player.media.currentTime)])}),e.addEventListener("pause",function(e){Math.floor(i.player.media.currentTime)!=Math.floor(i.player.media.duration)&&$.publish(n.MEDIA_PAUSED,[Math.floor(i.player.media.currentTime)])}),e.addEventListener("ended",function(e){$.publish(n.MEDIA_ENDED,[Math.floor(i.player.media.duration)])}),e.setSrc(a);try{e.load()}catch(t){}}});else{var l=0;for(var h in a)if("audio/mp3"===a[h].type){l=h;break}t.media=t.$container.append('"),t.player=new MediaElementPlayer("#"+o,{plugins:["flash"],alwaysShowControls:!1,autosizeProgress:!1,defaultVideoWidth:i.mediaWidth,defaultVideoHeight:i.mediaHeight,success:function(e){e.addEventListener("canplay",function(e){i.resize()}),e.addEventListener("play",function(e){$.publish(n.MEDIA_PLAYED,[Math.floor(i.player.media.currentTime)])}),e.addEventListener("pause",function(e){Math.floor(i.player.media.currentTime)!=Math.floor(i.player.media.duration)&&$.publish(n.MEDIA_PAUSED,[Math.floor(i.player.media.currentTime)])}),e.addEventListener("ended",function(e){$.publish(n.MEDIA_ENDED,[Math.floor(i.player.media.duration)])});try{e.load()}catch(t){}}})}t.resize()})},t.prototype.resize=function(){if(e.prototype.resize.call(this),"Firefox"===window.browserDetect.browser&&window.browserDetect.version<13)this.$container.width(this.mediaWidth),this.$container.height(this.mediaHeight);else{var t=Utils.Measurements.Dimensions.fitRect(this.mediaWidth,this.mediaHeight,this.$content.width(),this.$content.height());this.$container.height(t.height),this.$container.width(t.width)}this.player&&!this.extension.isFullScreen()&&this.player.resize();var i=Math.floor((this.$content.width()-this.$container.width())/2),n=Math.floor((this.$content.height()-this.$container.height())/2);this.$container.css({left:i,top:n}),this.$title.ellipsisFill(this.title)},t}(o);return s});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/BaseExpandPanel",["require","exports","./BaseView"],function(e,t,i){var n=function(e){function t(t){e.call(this,t,!1,!0),this.isExpanded=!1,this.isFullyExpanded=!1,this.isUnopened=!0,this.autoToggled=!1,this.expandFullEnabled=!0}return __extends(t,e),t.prototype.create=function(){var t=this;e.prototype.create.call(this),this.$top=$(''),this.$element.append(this.$top),this.$title=$(''),this.$title.prop("title",this.content.title),this.$top.append(this.$title),this.$expandFullButton=$(''),this.$expandFullButton.prop("title",this.content.expandFull),this.$top.append(this.$expandFullButton),Utils.Bools.getBool(this.config.options.expandFullEnabled,!0)||this.$expandFullButton.hide(),this.$collapseButton=$(''),this.$collapseButton.prop("title",this.content.collapse),this.$top.append(this.$collapseButton),this.$closed=$(''),this.$element.append(this.$closed),this.$expandButton=$(''),this.$expandButton.prop("title",this.content.expand),this.$closed.append(this.$expandButton),this.$closedTitle=$(''),this.$closedTitle.prop("title",this.content.title),this.$closed.append(this.$closedTitle),this.$main=$(''),this.$element.append(this.$main),this.$expandButton.onPressed(function(){t.toggle()}),this.$expandFullButton.onPressed(function(){t.expandFull()}),this.$closedTitle.onPressed(function(){t.toggle()}),this.$title.onPressed(function(){t.isFullyExpanded?t.collapseFull():t.toggle()}),this.$collapseButton.onPressed(function(){t.isFullyExpanded?t.collapseFull():t.toggle()}),this.$top.hide(),this.$main.hide()},t.prototype.init=function(){e.prototype.init.call(this)},t.prototype.setTitle=function(e){this.$title.text(e),this.$closedTitle.text(e)},t.prototype.toggle=function(e){var t=this;e?this.autoToggled=!0:this.autoToggled=!1,this.isExpanded&&(this.$top.hide(),this.$main.hide(),this.$closed.show()),this.$element.stop().animate({width:this.getTargetWidth(),left:this.getTargetLeft()},this.options.panelAnimationDuration,function(){t.toggled()})},t.prototype.toggled=function(){this.toggleStart(),this.isExpanded=!this.isExpanded,this.isExpanded&&(this.$closed.hide(),this.$top.show(),this.$main.show()),this.toggleFinish(),this.isUnopened=!1},t.prototype.expandFull=function(){var e=this,t=this.getFullTargetWidth(),i=this.getFullTargetLeft();this.expandFullStart(),this.$element.stop().animate({width:t,left:i},this.options.panelAnimationDuration,function(){e.expandFullFinish()})},t.prototype.collapseFull=function(){var e=this,t=this.getTargetWidth(),i=this.getTargetLeft();this.collapseFullStart(),this.$element.stop().animate({width:t,left:i},this.options.panelAnimationDuration,function(){e.collapseFullFinish()})},t.prototype.getTargetWidth=function(){return 0},t.prototype.getTargetLeft=function(){return 0},t.prototype.getFullTargetWidth=function(){return 0},t.prototype.getFullTargetLeft=function(){return 0},t.prototype.toggleStart=function(){},t.prototype.toggleFinish=function(){this.isExpanded&&!this.autoToggled?this.focusCollapseButton():this.focusExpandButton()},t.prototype.expandFullStart=function(){},t.prototype.expandFullFinish=function(){this.isFullyExpanded=!0,this.$expandFullButton.hide(),this.focusCollapseButton()},t.prototype.collapseFullStart=function(){},t.prototype.collapseFullFinish=function(){this.isFullyExpanded=!1,this.expandFullEnabled&&this.$expandFullButton.show(),this.focusExpandFullButton()},t.prototype.focusExpandButton=function(){var e=this;setTimeout(function(){e.$expandButton.focus()},1)},t.prototype.focusExpandFullButton=function(){var e=this;setTimeout(function(){e.$expandFullButton.focus()},1)},t.prototype.focusCollapseButton=function(){var e=this;setTimeout(function(){e.$collapseButton.focus()},1)},t.prototype.resize=function(){e.prototype.resize.call(this),this.$main.height(this.$element.parent().height()-this.$top.outerHeight(!0))},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/RightPanel",["require","exports","./BaseCommands","./BaseExpandPanel"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){e.prototype.create.call(this),this.$element.width(this.options.panelCollapsedWidth)},t.prototype.init=function(){var t=this;e.prototype.init.call(this),this.options.panelOpen&&this.toggle(!0),$.subscribe(i.TOGGLE_EXPAND_RIGHT_PANEL,function(){t.isFullyExpanded?t.collapseFull():t.expandFull()})},t.prototype.getTargetWidth=function(){return this.isExpanded?this.options.panelCollapsedWidth:this.options.panelExpandedWidth},t.prototype.getTargetLeft=function(){return this.isExpanded?this.$element.parent().width()-this.options.panelCollapsedWidth:this.$element.parent().width()-this.options.panelExpandedWidth},t.prototype.toggleFinish=function(){e.prototype.toggleFinish.call(this),this.isExpanded?$.publish(i.OPEN_RIGHT_PANEL):$.publish(i.CLOSE_RIGHT_PANEL)},t.prototype.resize=function(){e.prototype.resize.call(this),this.$element.css({left:Math.floor(this.$element.parent().width()-this.$element.outerWidth())})},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-moreinforightpanel-module/MoreInfoRightPanel",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/RightPanel"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("moreInfoRightPanel"),e.prototype.create.call(this),$.subscribe(i.CANVAS_INDEX_CHANGED,function(e,i){t.databind()}),this.setTitle(this.config.content.title),this.$metadata=$(''),this.$main.append(this.$metadata),this.component=new IIIFComponents.MetadataComponent(this._getOptions())},t.prototype.toggleFinish=function(){e.prototype.toggleFinish.call(this),this.databind()},t.prototype.databind=function(){this.component.options=this._getOptions(),this.component.databind()},t.prototype._getOptions=function(){var e=this;return{canvasDisplayOrder:this.config.options.canvasDisplayOrder,canvases:this.extension.getCurrentCanvases(),canvasExclude:this.config.options.canvasExclude,canvasLabels:this.extension.getCanvasLabels(this.content.page),content:this.config.content,copiedMessageDuration:2e3,copyToClipboardEnabled:Utils.Bools.getBool(this.config.options.copyToClipboardEnabled,!1),element:".rightPanel .iiif-metadata-component",helper:this.extension.helper,licenseFormatter:null,limit:this.config.options.textLimit||4,limitType:IIIFComponents.MetadataComponentOptions.LimitType.LINES,manifestDisplayOrder:this.config.options.manifestDisplayOrder,manifestExclude:this.config.options.manifestExclude,range:this.extension.getCurrentCanvasRange(),rtlLanguageCodes:this.config.options.rtlLanguageCodes,sanitizer:function(t){return e.extension.sanitize(t)},showAllLanguages:this.config.options.showAllLanguages}},t.prototype.resize=function(){e.prototype.resize.call(this),this.$main.height(this.$element.height()-this.$top.height()-this.$main.verticalMargins())},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/LeftPanel",["require","exports","./BaseCommands","./BaseExpandPanel"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;e.prototype.create.call(this),this.$element.width(this.options.panelCollapsedWidth),$.subscribe(i.TOGGLE_EXPAND_LEFT_PANEL,function(){t.isFullyExpanded?t.collapseFull():t.expandFull()})},t.prototype.init=function(){e.prototype.init.call(this),this.options.panelOpen&&this.toggle(!0)},t.prototype.getTargetWidth=function(){return this.isFullyExpanded||!this.isExpanded?this.options.panelExpandedWidth:this.options.panelCollapsedWidth},t.prototype.getFullTargetWidth=function(){return this.$element.parent().width()},t.prototype.toggleFinish=function(){e.prototype.toggleFinish.call(this),this.isExpanded?$.publish(i.OPEN_LEFT_PANEL):$.publish(i.CLOSE_LEFT_PANEL)},t.prototype.resize=function(){e.prototype.resize.call(this),this.isFullyExpanded&&this.$element.width(this.$element.parent().width())},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-shared-module/ThumbsView",["require","exports","./BaseCommands","./BaseView"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t,!0,!0),this.isCreated=!1,this.isOpen=!1}return __extends(t,e),t.prototype.create=function(){var t=this;e.prototype.create.call(this),$.subscribe(i.CANVAS_INDEX_CHANGED,function(e,i){t.selectIndex(parseInt(i))}),$.subscribe(i.LOGIN,function(){t.loadThumbs()}),$.subscribe(i.CLICKTHROUGH,function(){t.loadThumbs()}),this.$thumbs=$(''),this.$element.append(this.$thumbs),this.$thumbs.addClass(this.extension.helper.getViewingDirection().toString());var n=this;$.templates({thumbsTemplate:' {{:#index + 1}} {{>label}} {{if ~separator()}} {{/if}}'});var o=this.options.thumbsExtraHeight;$.views.helpers({separator:function(){return!1},extraHeight:function(){return o},className:function(){var e="thumb";0===this.data.index&&(e+=" first"),this.data.uri||(e+=" placeholder");var t=n.extension.helper.getViewingDirection().toString();return e+=t===manifesto.ViewingDirection.topToBottom().toString()||t===manifesto.ViewingDirection.bottomToTop().toString()?" oneCol":" twoCol"}}),this.$element.on("scroll",function(){t.scrollStop()},100),this.resize()},t.prototype.databind=function(){this.thumbs&&this.createThumbs()},t.prototype.createThumbs=function(){var e=this;if(!this.isCreated&&this.thumbs){for(var t=[],n=0;n1&&(e=1);var t=Math.floor((this.thumbs.length-1)*e);this.loadThumbs(t)},t.prototype.loadThumbs=function(e){if(this.thumbs&&this.thumbs.length){_.isUndefined(e)&&(e=this.extension.helper.canvasIndex);for(var t=e,i=this.options.thumbsLoadRange,n={start:t>i?t-i:0,end:t');$(u).hide().load(function(){$(this).fadeIn(o,function(){$(this).parent().swapClass("loading","loaded")})}).error(function(){$(this).parent().swapClass("loading","loadingFailed")}),a.append(u)}else a.addClass("hidden")}}}},t.prototype.show=function(){var e=this;this.isOpen=!0,this.$element.show(),setTimeout(function(){e.selectIndex(e.extension.helper.canvasIndex)},1)},t.prototype.hide=function(){this.isOpen=!1,this.$element.hide()},t.prototype.isPDF=function(){return this.extension.helper.getElementType().toString().contains("pdf")},t.prototype.setLabel=function(){$(this.$thumbs).find("span.index").hide(),$(this.$thumbs).find("span.label").show()},t.prototype.addSelectedClassToThumbs=function(e){this.getThumbByIndex(e).addClass("selected")},t.prototype.selectIndex=function(e){-1!=e&&this.thumbs&&this.thumbs.length&&(this.getAllThumbs().removeClass("selected"),this.$selectedThumb=this.getThumbByIndex(e),this.addSelectedClassToThumbs(e),this.lastThumbClickedIndex!=e&&this.$element.scrollTop(this.$selectedThumb.position().top),this.loadThumbs(e))},t.prototype.getAllThumbs=function(){return this._thumbsCache||(this._thumbsCache=this.$thumbs.find(".thumb")),this._thumbsCache},t.prototype.getThumbByIndex=function(e){return this.$thumbs.find('[data-index="'+e+'"]')},t.prototype.scrollToThumb=function(e){var t=this.getThumbByIndex(e);this.$element.scrollTop(t.position().top)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-resourcesleftpanel-module/ThumbsView",["require","exports","../uv-shared-module/ThumbsView"],function(e,t,i){var n=function(e){function t(){e.apply(this,arguments)}return __extends(t,e),t.prototype.create=function(){this.setConfig("resourcesLeftPanel"),e.prototype.create.call(this)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-resourcesleftpanel-module/ResourcesLeftPanel",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/LeftPanel","./ThumbsView"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("resourcesLeftPanel"),e.prototype.create.call(this),this.setTitle(this.content.title),this.$tabsContent=$(''),this.$main.append(this.$tabsContent),this.$views=$(''),this.$tabsContent.append(this.$views),this.$thumbsView=$(''),this.$views.append(this.$thumbsView),this.$resourcesView=$(''),this.$resources=$(""),this.$resourcesView.append(this.$resources),this.$views.append(this.$resourcesView),this.thumbsView=new o(this.$thumbsView),this.dataBind()},t.prototype.dataBind=function(){this.dataBindThumbsView();var e=this.extension.helper.getResources();0===e.length&&this.$resourcesView.hide();for(var t=0;t'+Manifesto.TranslationCollection.getValue(n.getLabel())+" ("+Utils.Files.simplifyMimeType(n.getFormat().toString())+")");this.$resources.append(o)}},t.prototype.dataBindThumbsView=function(){if(this.thumbsView){var e,t,i=this.extension.helper.getViewingDirection().toString();i===manifesto.ViewingDirection.topToBottom().toString()||i===manifesto.ViewingDirection.bottomToTop().toString()?(e=this.config.options.oneColThumbWidth,t=this.config.options.oneColThumbHeight):(e=this.config.options.twoColThumbWidth,t=this.config.options.twoColThumbHeight),"undefined"==typeof e&&(e=100),"undefined"==typeof t&&(t=100),this.thumbsView.thumbs=this.extension.helper.getThumbs(e,t),this.thumbsView.thumbs.length<2&&this.$thumbsView.hide(),this.thumbsView.databind()}},t.prototype.expandFullStart=function(){e.prototype.expandFullStart.call(this),$.publish(i.LEFTPANEL_EXPAND_FULL_START)},t.prototype.expandFullFinish=function(){e.prototype.expandFullFinish.call(this),$.publish(i.LEFTPANEL_EXPAND_FULL_FINISH)},t.prototype.collapseFullStart=function(){e.prototype.collapseFullStart.call(this),$.publish(i.LEFTPANEL_COLLAPSE_FULL_START)},t.prototype.collapseFullFinish=function(){e.prototype.collapseFullFinish.call(this),$.publish(i.LEFTPANEL_COLLAPSE_FULL_FINISH)},t.prototype.resize=function(){e.prototype.resize.call(this),this.$views.height(this.$main.height()),this.$resources.height(this.$main.height())},t}(n);return s}),define("_Version",["require","exports"],function(e,t){t.Version="1.8.39"});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/SettingsDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue","../../_Version"],function(e,t,i,n,o,s){var r=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("settingsDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_SETTINGS_DIALOGUE,this.closeCommand=i.HIDE_SETTINGS_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open()}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$title=$(""),this.$content.append(this.$title),this.$scroll=$(''),this.$content.append(this.$scroll),this.$version=$(''),this.$content.append(this.$version),this.$website=$(''),this.$content.append(this.$website),this.$locale=$(''),this.$scroll.append(this.$locale),this.$localeLabel=$('"),this.$locale.append(this.$localeLabel),this.$localeDropDown=$(''),this.$locale.append(this.$localeDropDown),this.$title.text(this.content.title),this.$version.text("v"+s.Version),this.$website.html(this.content.website),this.$website.targetBlank();for(var n=this.extension.getLocales(),o=0;o'+r.label+"")}this.$localeDropDown.val(this.extension.locale),this.$localeDropDown.change(function(){t.extension.changeLocale(t.$localeDropDown.val())}),this.extension.getLocales().length<2&&this.$locale.hide(),this.$element.hide()},t.prototype.getSettings=function(){return this.extension.getSettings()},t.prototype.updateSettings=function(e){this.extension.updateSettings(e),$.publish(n.UPDATE_SETTINGS,[e])},t.prototype.open=function(){e.prototype.open.call(this)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(o);return r});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-mediaelement-extension/SettingsDialogue",["require","exports","../../modules/uv-dialogues-module/SettingsDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("settingsDialogue"),e.prototype.create.call(this)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-mediaelement-extension/Extension",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-shared-module/BaseExtension","../../modules/uv-shared-module/Bookmark","./Commands","./DownloadDialogue","./ShareDialogue","../../modules/uv-shared-module/FooterPanel","../../modules/uv-shared-module/HeaderPanel","../../modules/uv-dialogues-module/HelpDialogue","../../modules/uv-mediaelementcenterpanel-module/MediaElementCenterPanel","../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel","../../modules/uv-resourcesleftpanel-module/ResourcesLeftPanel","./SettingsDialogue","../../modules/uv-shared-module/Shell"],function(e,t,i,n,o,s,r,a,l,h,u,c,p,d,g,f){var m=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(t){var n=this;e.prototype.create.call(this,t),$(window).bind("enterfullscreen",function(){$.publish(i.TOGGLE_FULLSCREEN)}),$(window).bind("exitfullscreen",function(){$.publish(i.TOGGLE_FULLSCREEN)}),$.subscribe(i.THUMB_SELECTED,function(e,t){n.viewCanvas(t)}),$.subscribe(i.LEFTPANEL_EXPAND_FULL_START,function(e){f.$centerPanel.hide(),f.$rightPanel.hide()}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_FINISH,function(e){f.$centerPanel.show(),f.$rightPanel.show(),n.resize()}),$.subscribe(s.MEDIA_ENDED,function(e){n.triggerSocket(s.MEDIA_ENDED)}),$.subscribe(s.MEDIA_PAUSED,function(e){n.triggerSocket(s.MEDIA_PAUSED)}),$.subscribe(s.MEDIA_PLAYED,function(e){n.triggerSocket(s.MEDIA_PLAYED)})},t.prototype.createModules=function(){e.prototype.createModules.call(this),this.isHeaderPanelEnabled()?this.headerPanel=new h(f.$headerPanel):f.$headerPanel.hide(),this.isLeftPanelEnabled()&&(this.leftPanel=new d(f.$leftPanel)),this.centerPanel=new c(f.$centerPanel),this.isRightPanelEnabled()&&(this.rightPanel=new p(f.$rightPanel)),this.isFooterPanelEnabled()?this.footerPanel=new l(f.$footerPanel):f.$footerPanel.hide(),this.$helpDialogue=$(''),f.$overlays.append(this.$helpDialogue),this.helpDialogue=new u(this.$helpDialogue),this.$downloadDialogue=$(''),f.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new r(this.$downloadDialogue),this.$shareDialogue=$(''),f.$overlays.append(this.$shareDialogue),this.shareDialogue=new a(this.$shareDialogue),this.$settingsDialogue=$(''),f.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new g(this.$settingsDialogue),this.isLeftPanelEnabled()&&this.leftPanel.init(),this.isRightPanelEnabled()&&this.rightPanel.init()},t.prototype.isLeftPanelEnabled=function(){return Utils.Bools.getBool(this.config.options.leftPanelEnabled,!0)&&(this.helper.isMultiCanvas()||this.helper.isMultiSequence()||this.helper.hasResources())},t.prototype.bookmark=function(){e.prototype.bookmark.call(this);var t=this.extensions.helper.getCurrentCanvas(),n=new o;n.index=this.helper.canvasIndex,n.label=Manifesto.TranslationCollection.getValue(t.getLabel()),n.path=this.getBookmarkUri(),n.thumb=t.getProperty("thumbnail"),n.title=this.helper.getLabel(),n.trackingLabel=window.trackingLabel,this.isVideo()?n.type=manifesto.ElementType.movingimage().toString():n.type=manifesto.ElementType.sound().toString(),this.triggerSocket(i.BOOKMARK,n)},t.prototype.getEmbedScript=function(e,t,i){var n=this.config.uri||"",o=String.format(e,this.getSerializedLocales(),n,this.helper.iiifResourceUri,this.helper.collectionIndex,this.helper.manifestIndex,this.helper.sequenceIndex,this.helper.canvasIndex,t,i,this.embedScriptUri);return o},t.prototype.getPosterImageUri=function(){return this.helper.getCurrentCanvas().getProperty("thumbnail")},t.prototype.isVideo=function(){var e=this.helper.getElementType();return e.toString()===manifesto.ElementType.movingimage().toString()},t}(n);return m});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-pdf-extension/DownloadDialogue",["require","exports","../../modules/uv-dialogues-module/DownloadDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("downloadDialogue"),e.prototype.create.call(this)},t.prototype.open=function(t){e.prototype.open.call(this,t),this.addEntireFileDownloadOptions(),this.$downloadOptions.find("li:visible").length?this.$noneAvailable.hide():this.$noneAvailable.show(),this.resize()},t.prototype.isDownloadOptionAvailable=function(t){return e.prototype.isDownloadOptionAvailable.call(this,t)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-pdf-extension/ShareDialogue",["require","exports","../../modules/uv-dialogues-module/ShareDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("shareDialogue"),e.prototype.create.call(this)},t.prototype.update=function(){e.prototype.update.call(this),this.code=this.extension.getEmbedScript(this.options.embedTemplate,this.currentWidth,this.currentHeight),this.$code.val(this.code)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-pdfcenterpanel-module/PDFCenterPanel",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/CenterPanel","../../Params"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("pdfCenterPanel"),e.prototype.create.call(this),$.subscribe(i.OPEN_EXTERNAL_RESOURCE,function(e,i){t.openMedia(i)})},t.prototype.openMedia=function(e){var t=this,i=this;this.extension.getExternalResources(e).then(function(){var e=t.extension.helper.getCurrentCanvas(),n=e.id,s=window.browserDetect.browser,r=window.browserDetect.version;if("Explorer"===s&&10>r||!t.config.options.usePdfJs)new PDFObject({url:n,id:"PDF"}).embed("content");else{var a;a=window.DEBUG?"modules/uv-pdfcenterpanel-module/html/viewer.html":"html/uv-pdfcenterpanel-module/viewer.html",t.$content.load(a,function(){window.DEBUG?PDFJS.workerSrc="extensions/uv-pdf-extension/lib/pdf.worker.min.js":PDFJS.workerSrc="lib/pdf.worker.min.js",PDFJS.DEFAULT_URL=n;var e=1+parseInt(i.extension.getParam(o.anchor))||0;PDFView.initialBookmark="page="+e,window.webViewerLoad(),t.resize()})}})},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(n);return s});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-pdf-extension/SettingsDialogue",["require","exports","../../modules/uv-dialogues-module/SettingsDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("settingsDialogue"),e.prototype.create.call(this)},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-pdf-extension/Extension",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-shared-module/BaseExtension","../../modules/uv-shared-module/Bookmark","./DownloadDialogue","./ShareDialogue","../../modules/uv-shared-module/FooterPanel","../../modules/uv-shared-module/HeaderPanel","../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel","../../modules/uv-pdfcenterpanel-module/PDFCenterPanel","../../modules/uv-resourcesleftpanel-module/ResourcesLeftPanel","./SettingsDialogue","../../modules/uv-shared-module/Shell"],function(e,t,i,n,o,s,r,a,l,h,u,c,p,d){var g=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(t){var n=this;e.prototype.create.call(this),$.subscribe(i.THUMB_SELECTED,function(e,t){n.viewCanvas(t.index)}),$.subscribe(i.LEFTPANEL_EXPAND_FULL_START,function(e){d.$centerPanel.hide(),d.$rightPanel.hide()}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_FINISH,function(e){d.$centerPanel.show(),d.$rightPanel.show(),n.resize()}),$.subscribe(i.SHOW_OVERLAY,function(e,t){n.IsOldIE()&&n.centerPanel.$element.hide()}),$.subscribe(i.HIDE_OVERLAY,function(e,t){n.IsOldIE()&&n.centerPanel.$element.show()})},t.prototype.IsOldIE=function(){var e=window.browserDetect.browser,t=window.browserDetect.version;return"Explorer"===e&&9>=t?!0:!1},t.prototype.createModules=function(){e.prototype.createModules.call(this),this.isHeaderPanelEnabled()?this.headerPanel=new l(d.$headerPanel):d.$headerPanel.hide(),this.isLeftPanelEnabled()&&(this.leftPanel=new c(d.$leftPanel)),this.centerPanel=new u(d.$centerPanel),this.isRightPanelEnabled()&&(this.rightPanel=new h(d.$rightPanel)),this.isFooterPanelEnabled()?this.footerPanel=new a(d.$footerPanel):d.$footerPanel.hide(),this.$downloadDialogue=$(''),d.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new s(this.$downloadDialogue),this.$shareDialogue=$(''),d.$overlays.append(this.$shareDialogue),this.shareDialogue=new r(this.$shareDialogue),
-this.$settingsDialogue=$(''),d.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new p(this.$settingsDialogue),this.isLeftPanelEnabled()&&this.leftPanel.init(),this.isRightPanelEnabled()&&this.rightPanel.init()},t.prototype.bookmark=function(){e.prototype.bookmark.call(this);var t=this.helper.getCurrentCanvas(),n=new o;n.index=this.helper.canvasIndex,n.label=Manifesto.TranslationCollection.getValue(t.getLabel()),n.path=this.getBookmarkUri(),n.thumb=t.getProperty("thumbnail"),n.title=this.helper.getLabel(),n.trackingLabel=window.trackingLabel,n.type=manifesto.ElementType.document().toString(),this.triggerSocket(i.BOOKMARK,n)},t.prototype.getEmbedScript=function(e,t,i){var n=this.config.uri||"",o=String.format(e,this.getSerializedLocales(),n,this.helper.iiifResourceUri,this.helper.collectionIndex,this.helper.manifestIndex,this.helper.sequenceIndex,this.helper.canvasIndex,t,i,this.embedScriptUri);return o},t}(n);return g}),define("extensions/uv-seadragon-extension/Commands",["require","exports"],function(e,t){var i=function(){function e(){}return e.namespace="seadragonExtension.",e.CLEAR_SEARCH=e.namespace+"onClearSearch",e.CURRENT_VIEW_URI=e.namespace+"onCurrentViewUri",e.FIRST=e.namespace+"onFirst",e.GALLERY_DECREASE_SIZE=e.namespace+"onGalleryDecreaseSize",e.GALLERY_INCREASE_SIZE=e.namespace+"onGalleryIncreaseSize",e.GALLERY_THUMB_SELECTED=e.namespace+"onGalleryThumbSelected",e.HIDE_MULTISELECT_DIALOGUE=e.namespace+"onHideMultiSelectDialogue",e.IMAGE_SEARCH=e.namespace+"onImageSearch",e.LAST=e.namespace+"onLast",e.MODE_CHANGED=e.namespace+"onModeChanged",e.MULTISELECT_CHANGE=e.namespace+"onMultiSelectChange",e.MULTISELECTION_MADE=e.namespace+"onMultiSelectionMade",e.NEXT_SEARCH_RESULT=e.namespace+"onNextSearchResult",e.NEXT=e.namespace+"onNext",e.OPEN_THUMBS_VIEW=e.namespace+"onOpenThumbsView",e.OPEN_TREE_VIEW=e.namespace+"onOpenTreeView",e.PAGE_SEARCH=e.namespace+"onPageSearch",e.PAGING_TOGGLED=e.namespace+"onPagingToggled",e.PREV_SEARCH_RESULT=e.namespace+"onPrevSearchResult",e.PREV=e.namespace+"onPrev",e.PRINT=e.namespace+"onPrint",e.ROTATE=e.namespace+"onRotate",e.SEADRAGON_ANIMATION_FINISH=e.namespace+"onAnimationfinish",e.SEADRAGON_ANIMATION_START=e.namespace+"onAnimationStart",e.SEADRAGON_ANIMATION=e.namespace+"onAnimation",e.SEADRAGON_OPEN=e.namespace+"onOpen",e.SEADRAGON_RESIZE=e.namespace+"onResize",e.SEADRAGON_ROTATION=e.namespace+"onRotation",e.SEARCH_PREVIEW_FINISH=e.namespace+"onSearchPreviewFinish",e.SEARCH_PREVIEW_START=e.namespace+"onSearchPreviewStart",e.SEARCH_RESULTS_EMPTY=e.namespace+"onSearchResultsEmpty",e.SEARCH_RESULTS=e.namespace+"onSearchResults",e.SEARCH=e.namespace+"onSearch",e.SHOW_MULTISELECT_DIALOGUE=e.namespace+"onShowMultiSelectDialogue",e.THUMB_MULTISELECTED=e.namespace+"onThumbMultiSelected",e.TREE_NODE_MULTISELECTED=e.namespace+"onTreeNodeMultiSelected",e.TREE_NODE_SELECTED=e.namespace+"onTreeNodeSelected",e.VIEW_PAGE=e.namespace+"onViewPage",e.ZOOM_IN=e.namespace+"onZoomIn",e.ZOOM_OUT=e.namespace+"onZoomOut",e}();return i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-contentleftpanel-module/GalleryView",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/BaseView","../../extensions/uv-seadragon-extension/Commands"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t,!0,!0),this.isOpen=!1}return __extends(t,e),t.prototype.create=function(){this.setConfig("contentLeftPanel"),e.prototype.create.call(this),this.$gallery=$(''),this.$element.append(this.$gallery)},t.prototype.setup=function(){this.component=new IIIFComponents.GalleryComponent(this.galleryOptions),this.component.on("thumbSelected",function(e){var t=e[0];$.publish(o.GALLERY_THUMB_SELECTED,[t]),$.publish(i.THUMB_SELECTED,[t])}),this.component.on("decreaseSize",function(){$.publish(o.GALLERY_DECREASE_SIZE)}),this.component.on("increaseSize",function(){$.publish(o.GALLERY_INCREASE_SIZE)})},t.prototype.databind=function(){this.component.options=this.galleryOptions,this.component.databind(),this.resize()},t.prototype.show=function(){var e=this;this.isOpen=!0,this.$element.show(),setTimeout(function(){e.component.selectIndex(e.extension.helper.canvasIndex)},10)},t.prototype.hide=function(){this.isOpen=!1,this.$element.hide()},t.prototype.resize=function(){e.prototype.resize.call(this);var t=$(this.galleryOptions.element),i=t.find(".main"),n=t.find(".header");i.height(this.$element.height()-n.height())},t}(n);return s}),define("extensions/uv-seadragon-extension/Mode",["require","exports"],function(e,t){var i=function(){function e(e){this.value=e}return e.prototype.toString=function(){return this.value},e.image=new e("image"),e.page=new e("page"),e}();return i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-contentleftpanel-module/ThumbsView",["require","exports","../uv-shared-module/ThumbsView","../../extensions/uv-seadragon-extension/Commands","../../extensions/uv-seadragon-extension/Mode"],function(e,t,i,n,o){var s=function(e){function t(){e.apply(this,arguments)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("contentLeftPanel"),e.prototype.create.call(this),$.subscribe(n.MODE_CHANGED,function(e,i){t.setLabel()}),$.subscribe(n.SEARCH_PREVIEW_START,function(e,i){t.searchPreviewStart(i)}),$.subscribe(n.SEARCH_PREVIEW_FINISH,function(){t.searchPreviewFinish()}),this.extension.helper.isPaged()&&this.$thumbs.addClass("paged");var i=this;$.views.helpers({separator:function(){return i.extension.helper.isVerticallyAligned()?!0:i.extension.helper.isPaged()?(this.data.index-1)%2==0?!1:!0:!1}})},t.prototype.addSelectedClassToThumbs=function(e){var t=this;if(this.extension.isPagingSettingEnabled()){var i=this.extension.getPagedIndices(e);_.each(i,function(e){t.getThumbByIndex(e).addClass("selected")})}else this.getThumbByIndex(e).addClass("selected")},t.prototype.isPageModeEnabled=function(){return"function"==typeof this.extension.getMode?this.config.options.pageModeEnabled&&this.extension.getMode().toString()===o.page.toString():this.config.options.pageModeEnabled},t.prototype.searchPreviewStart=function(e){this.scrollToThumb(e);var t=this.getThumbByIndex(e);t.addClass("searchpreview")},t.prototype.searchPreviewFinish=function(){this.scrollToThumb(this.extension.helper.canvasIndex),this.getAllThumbs().removeClass("searchpreview")},t.prototype.setLabel=function(){this.isPDF()?($(this.$thumbs).find("span.index").hide(),$(this.$thumbs).find("span.label").hide()):this.isPageModeEnabled()?($(this.$thumbs).find("span.index").hide(),$(this.$thumbs).find("span.label").show()):($(this.$thumbs).find("span.index").show(),$(this.$thumbs).find("span.label").hide())},t}(i);return s});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-contentleftpanel-module/TreeView",["require","exports","../uv-shared-module/BaseView","../../extensions/uv-seadragon-extension/Commands"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t,!0,!0),this.isOpen=!1}return __extends(t,e),t.prototype.create=function(){this.setConfig("contentLeftPanel"),e.prototype.create.call(this),this.$tree=$(''),this.$element.append(this.$tree)},t.prototype.setup=function(){this.component=new IIIFComponents.TreeComponent(this.treeOptions),this.component.on("treeNodeSelected",function(e){var t=e[0];$.publish(n.TREE_NODE_SELECTED,[t])}),this.component.on("treeNodeMultiSelected",function(e){var t=e[0];$.publish(n.TREE_NODE_MULTISELECTED,[t])})},t.prototype.databind=function(){this.component.options=this.treeOptions,this.component.databind(),this.resize()},t.prototype.show=function(){this.isOpen=!0,this.$element.show()},t.prototype.hide=function(){this.isOpen=!1,this.$element.hide()},t.prototype.selectNode=function(e){this.component.selectNode(e)},t.prototype.deselectCurrentNode=function(){this.component.deselectCurrentNode()},t.prototype.getNodeById=function(e){return this.component.getNodeById(e)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-contentleftpanel-module/ContentLeftPanel",["require","exports","../uv-shared-module/BaseCommands","../../extensions/uv-seadragon-extension/Commands","./GalleryView","../uv-shared-module/LeftPanel","../uv-shared-module/Metrics","../../extensions/uv-seadragon-extension/Mode","./ThumbsView","./TreeView"],function(e,t,i,n,o,s,r,a,l,h){var u=function(e){function t(t){e.call(this,t),this.expandFullEnabled=!1,this.isThumbsViewOpen=!1,this.isTreeViewOpen=!1,this.treeSortType=Manifold.TreeSortType.NONE}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("contentLeftPanel"),e.prototype.create.call(this);$.subscribe(i.SETTINGS_CHANGED,function(){t.databind()}),$.subscribe(n.GALLERY_THUMB_SELECTED,function(){t.collapseFull()}),$.subscribe(i.METRIC_CHANGED,function(){t.extension.metric===r.MOBILE_LANDSCAPE&&t.isFullyExpanded&&t.collapseFull()}),$.subscribe(i.CANVAS_INDEX_CHANGED,function(e,i){t.isFullyExpanded&&t.collapseFull(),t.selectCurrentTreeNode(),t.updateTreeTabBySelection()}),this.$tabs=$(''),this.$main.append(this.$tabs),this.$treeButton=$(''+this.content.index+""),this.$tabs.append(this.$treeButton),this.$thumbsButton=$(''+this.content.thumbnails+""),this.$thumbsButton.prop("title",this.content.thumbnails),this.$tabs.append(this.$thumbsButton),this.$tabsContent=$(''),this.$main.append(this.$tabsContent),this.$options=$(''),this.$tabsContent.append(this.$options),this.$topOptions=$(''),this.$options.append(this.$topOptions),this.$treeSelect=$(""),this.$topOptions.append(this.$treeSelect),this.$bottomOptions=$(''),this.$options.append(this.$bottomOptions),this.$leftOptions=$(''),this.$bottomOptions.append(this.$leftOptions),this.$rightOptions=$(''),this.$bottomOptions.append(this.$rightOptions),this.$treeViewOptions=$(''),this.$leftOptions.append(this.$treeViewOptions),this.$sortByLabel=$(''+this.content.sortBy+""),this.$treeViewOptions.append(this.$sortByLabel),this.$sortButtonGroup=$(''),this.$treeViewOptions.append(this.$sortButtonGroup),this.$sortByDateButton=$('"),this.$sortButtonGroup.append(this.$sortByDateButton),this.$sortByVolumeButton=$('"),this.$sortButtonGroup.append(this.$sortByVolumeButton),this.$views=$(''),this.$tabsContent.append(this.$views),this.$treeView=$(''),this.$views.append(this.$treeView),this.$thumbsView=$(''),this.$views.append(this.$thumbsView),this.$galleryView=$(''),this.$views.append(this.$galleryView),this.$treeSelect.hide(),this.$treeSelect.change(function(){t.databindTreeView(),t.selectCurrentTreeNode(),t.updateTreeTabBySelection()}),this.$sortByDateButton.on("click",function(){t.sortByDate()}),this.$sortByVolumeButton.on("click",function(){t.sortByVolume()}),this.$treeViewOptions.hide(),this.$treeButton.onPressed(function(){t.openTreeView(),$.publish(n.OPEN_TREE_VIEW)}),this.$thumbsButton.onPressed(function(){t.openThumbsView(),$.publish(n.OPEN_THUMBS_VIEW)}),this.setTitle(this.content.title),this.$sortByVolumeButton.addClass("on");var o=this.options.tabOrder;if(o){o=o.toLowerCase(),o=o.replace(/ /g,"");var s=o.split(",");"thumbs"===s[0]?(this.$treeButton.before(this.$thumbsButton),this.$thumbsButton.addClass("first")):this.$treeButton.addClass("first")}},t.prototype.createTreeView=function(){this.treeView=new h(this.$treeView),this.treeView.treeOptions=this.getTreeOptions(),this.treeView.setup(),this.databindTreeView();var e=this.extension.helper.getTopRanges();if(e.length>1)for(var t=0;t'+Manifesto.TranslationCollection.getValue(i.getLabel())+"")}this.updateTreeViewOptions()},t.prototype.databind=function(){this.databindThumbsView(),this.databindTreeView(),this.databindGalleryView()},t.prototype.updateTreeViewOptions=function(){var e=this.getTreeData();this.isCollection()&&this.extension.helper.treeHasNavDates(e)?this.$treeViewOptions.show():this.$treeViewOptions.hide(),this.$treeSelect.find("option").length?this.$treeSelect.show():this.$treeSelect.hide()},t.prototype.sortByDate=function(){this.treeSortType=Manifold.TreeSortType.DATE,this.treeView.treeOptions=this.getTreeOptions(),this.treeView.databind(),this.selectCurrentTreeNode(),this.$sortByDateButton.addClass("on"),this.$sortByVolumeButton.removeClass("on"),this.resize()},t.prototype.sortByVolume=function(){this.treeSortType=Manifold.TreeSortType.NONE,this.treeView.treeOptions=this.getTreeOptions(),this.treeView.databind(),this.selectCurrentTreeNode(),this.$sortByDateButton.removeClass("on"),this.$sortByVolumeButton.addClass("on"),this.resize()},t.prototype.isCollection=function(){var e=this.getTreeData();return e.data.type===manifesto.TreeNodeType.collection().toString()},t.prototype.databindTreeView=function(){this.treeView&&(this.treeView.treeOptions=this.getTreeOptions(),this.treeView.databind(),this.selectCurrentTreeNode())},t.prototype.getTreeOptions=function(){return{element:".views .treeView .iiif-tree-component",helper:this.extension.helper,topRangeIndex:this.getSelectedTopRangeIndex(),treeSortType:this.treeSortType}},t.prototype.updateTreeTabByCanvasIndex=function(){var e=this.extension.helper.getTopRanges();if(e.length>1){var t=this.getCurrentCanvasTopRangeIndex(),i=e[t];this.setTreeTabTitle(Manifesto.TranslationCollection.getValue(i.getLabel()))}else this.setTreeTabTitle(this.content.index)},t.prototype.setTreeTabTitle=function(e){this.$treeButton.text(e),this.$treeButton.prop("title",e)},t.prototype.updateTreeTabBySelection=function(){var e,t=this.extension.helper.getTopRanges();t.length>1&&(e=this.treeView?this.getSelectedTree().text():Manifesto.TranslationCollection.getValue(t[0].getLabel())),e?this.setTreeTabTitle(e):this.setTreeTabTitle(this.content.index)},t.prototype.getViewingDirection=function(){return this.extension.helper.getViewingDirection()},t.prototype.createThumbsView=function(){this.thumbsView=new l(this.$thumbsView),this.databindThumbsView()},t.prototype.databindThumbsView=function(){if(this.thumbsView){var e,t,i=this.getViewingDirection().toString();i===manifesto.ViewingDirection.topToBottom().toString()||i===manifesto.ViewingDirection.bottomToTop().toString()?(e=this.config.options.oneColThumbWidth,t=this.config.options.oneColThumbHeight):(e=this.config.options.twoColThumbWidth,t=this.config.options.twoColThumbHeight);var n=this.extension.helper.getThumbs(e,t);i===manifesto.ViewingDirection.bottomToTop().toString()&&n.reverse(),this.thumbsView.thumbs=n,this.thumbsView.databind()}},t.prototype.createGalleryView=function(){this.galleryView=new o(this.$galleryView),this.galleryView.galleryOptions=this.getGalleryOptions(),this.galleryView.setup(),this.databindGalleryView()},t.prototype.databindGalleryView=function(){this.galleryView&&(this.galleryView.galleryOptions=this.getGalleryOptions(),this.galleryView.databind())},t.prototype.getGalleryOptions=function(){return{element:".views .galleryView .iiif-gallery-component",helper:this.extension.helper,chunkedResizingEnabled:this.config.options.galleryThumbChunkedResizingEnabled,chunkedResizingThreshold:this.config.options.galleryThumbChunkedResizingThreshold,content:this.config.content,debug:!1,imageFadeInDuration:300,initialZoom:6,pageModeEnabled:this.isPageModeEnabled(),scrollStopDuration:100,sizingEnabled:Modernizr.inputtypes.range,thumbHeight:this.config.options.galleryThumbHeight,thumbLoadPadding:this.config.options.galleryThumbLoadPadding,thumbWidth:this.config.options.galleryThumbWidth,viewingDirection:this.getViewingDirection()}},t.prototype.isPageModeEnabled=function(){return"function"==typeof this.extension.getMode?Utils.Bools.getBool(this.config.options.pageModeEnabled,!0)&&this.extension.getMode().toString()===a.page.toString():Utils.Bools.getBool(this.config.options.pageModeEnabled,!0)},t.prototype.getSelectedTree=function(){return this.$treeSelect.find(":selected")},t.prototype.getSelectedTopRangeIndex=function(){var e=this.getSelectedTree().index();return-1===e&&(e=0),e},t.prototype.getTreeData=function(){var e=this.getSelectedTopRangeIndex();return this.extension.helper.getTree(e,Manifold.TreeSortType.NONE)},t.prototype.toggleFinish=function(){if(e.prototype.toggleFinish.call(this),this.isUnopened){var t=Utils.Bools.getBool(this.config.options.treeEnabled,!0),i=Utils.Bools.getBool(this.config.options.thumbsEnabled,!0),n=this.getTreeData();n&&n.nodes.length||(t=!1),t&&i||this.$tabs.hide(),i&&this.defaultToThumbsView()?this.openThumbsView():t&&this.openTreeView()}},t.prototype.defaultToThumbsView=function(){var e=Utils.Bools.getBool(this.config.options.defaultToTreeEnabled,!1),t=this.config.options.defaultToTreeIfGreaterThan||0,i=this.getTreeData();return e&&i.nodes.length>t?!1:!0},t.prototype.expandFullStart=function(){e.prototype.expandFullStart.call(this),$.publish(i.LEFTPANEL_EXPAND_FULL_START)},t.prototype.expandFullFinish=function(){e.prototype.expandFullFinish.call(this),this.$treeButton.hasClass("on")?this.openTreeView():this.$thumbsButton.hasClass("on")&&this.openThumbsView(),$.publish(i.LEFTPANEL_EXPAND_FULL_FINISH)},t.prototype.collapseFullStart=function(){e.prototype.collapseFullStart.call(this),$.publish(i.LEFTPANEL_COLLAPSE_FULL_START)},t.prototype.collapseFullFinish=function(){e.prototype.collapseFullFinish.call(this),this.$thumbsButton.hasClass("on")&&this.openThumbsView(),$.publish(i.LEFTPANEL_COLLAPSE_FULL_FINISH)},t.prototype.openTreeView=function(){this.isTreeViewOpen=!0,this.isThumbsViewOpen=!1,this.treeView||this.createTreeView(),this.$treeButton.addClass("on"),this.$thumbsButton.removeClass("on"),this.treeView.show(),this.thumbsView&&this.thumbsView.hide(),this.galleryView&&this.galleryView.hide(),this.updateTreeViewOptions(),this.selectCurrentTreeNode(),this.resize(),this.treeView.resize()},t.prototype.openThumbsView=function(){this.isTreeViewOpen=!1,this.isThumbsViewOpen=!0,this.thumbsView||this.createThumbsView(),this.isFullyExpanded&&!this.galleryView&&this.createGalleryView(),this.$treeButton.removeClass("on"),this.$thumbsButton.addClass("on"),this.treeView&&this.treeView.hide(),this.$treeSelect.hide(),this.$treeViewOptions.hide(),this.resize(),this.isFullyExpanded?(this.thumbsView.hide(),this.galleryView&&this.galleryView.show(),this.galleryView&&this.galleryView.resize()):(this.galleryView&&this.galleryView.hide(),this.thumbsView.show(),this.thumbsView.resize())},t.prototype.selectTopRangeIndex=function(e){this.$treeSelect.prop("selectedIndex",e)},t.prototype.getCurrentCanvasTopRangeIndex=function(){var e=-1,t=this.extension.getCurrentCanvasRange();return t&&(e=Number(t.path.split("/")[0])),e},t.prototype.selectCurrentTreeNode=function(){if(this.treeView){var e,t=this.getCurrentCanvasTopRangeIndex(),i=this.getSelectedTopRangeIndex(),n=t===i;if(-1!=t){var o=this.extension.getCurrentCanvasRange();o&&o.treeNode&&(e=this.treeView.getNodeById(o.treeNode.id))}e&&n?this.treeView.selectNode(e):this.treeView.deselectCurrentNode()}},t.prototype.resize=function(){e.prototype.resize.call(this),this.$tabsContent.height(this.$main.height()-(this.$tabs.is(":visible")?this.$tabs.height():0)-this.$tabsContent.verticalPadding()),this.$views.height(this.$tabsContent.height()-this.$options.outerHeight())},t}(s);return u}),define("modules/uv-shared-module/Point",["require","exports"],function(e,t){var i=function(){function e(e,t){this.x=e,this.y=t}return e}();return i}),define("extensions/uv-seadragon-extension/CroppedImageDimensions",["require","exports","../../modules/uv-shared-module/Point"],function(e,t,i){var n=Utils.Measurements.Size,o=function(){function e(){this.region=new n(0,0),this.regionPos=new i(0,0),this.size=new n(0,0)}return e}();return o}),define("extensions/uv-seadragon-extension/DownloadType",["require","exports"],function(e,t){var i=function(){function e(){}return e.CURRENTVIEW="currentView",e.ENTIREDOCUMENTASPDF="entireDocumentAsPdf",e.ENTIREDOCUMENTASTEXT="entireDocumentAsText",e.WHOLEIMAGEHIGHRES="wholeImageHighRes",e.WHOLEIMAGESHIGHRES="wholeImageHighRes",e.WHOLEIMAGELOWRES="wholeImageLowRes",e.UNKNOWN="unknown",e}();return i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/DownloadDialogue",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-dialogues-module/DownloadDialogue","./Commands","../../modules/uv-shared-module/DownloadOption","./DownloadType"],function(e,t,i,n,o,s,r){var a=Utils.Measurements.Size,l=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("downloadDialogue"),e.prototype.create.call(this),this.$imageOptionsContainer=$(''),this.$downloadOptions.append(this.$imageOptionsContainer),this.$imageOptions=$(""),this.$imageOptionsContainer.append(this.$imageOptions),this.$currentViewAsJpgButton=$(''),this.$imageOptions.append(this.$currentViewAsJpgButton),this.$currentViewAsJpgButton.hide(),this.$wholeImageHighResButton=$(''),this.$imageOptions.append(this.$wholeImageHighResButton),this.$wholeImageHighResButton.hide(),this.$wholeImagesHighResButton=$(''),this.$imageOptions.append(this.$wholeImagesHighResButton),this.$wholeImageHighResButton.hide(),this.$wholeImageLowResAsJpgButton=$('"),this.$imageOptions.append(this.$wholeImageLowResAsJpgButton),this.$wholeImageLowResAsJpgButton.hide(),this.$canvasOptionsContainer=$(''),this.$downloadOptions.append(this.$canvasOptionsContainer),this.$canvasOptions=$(""),this.$canvasOptionsContainer.append(this.$canvasOptions),this.$sequenceOptionsContainer=$(''),this.$downloadOptions.append(this.$sequenceOptionsContainer),this.$sequenceOptions=$(""),this.$sequenceOptionsContainer.append(this.$sequenceOptions),this.$selectionButton=$(''),this.$sequenceOptions.append(this.$selectionButton),this.$selectionButton.hide(),this.$buttonsContainer=$(''),this.$content.append(this.$buttonsContainer),this.$downloadButton=$(''+this.content.download+""),this.$buttonsContainer.append(this.$downloadButton),this.$explanatoryTextTemplate=$('');var n=this;this.$downloadButton.on("click",function(e){e.preventDefault();var a=n.getSelectedOption(),l=a.attr("id"),h=a.attr("title"),u=a.data("mime"),c=r.UNKNOWN,p=t.extension.helper.getCurrentCanvas();if(t.renderingUrls[l])u&&(-1!==u.toLowerCase().indexOf("pdf")?c=r.ENTIREDOCUMENTASPDF:-1!==u.toLowerCase().indexOf("txt")&&(c=r.ENTIREDOCUMENTASTEXT)),(c=r.ENTIREDOCUMENTASPDF)&&window.open(t.renderingUrls[l]);else switch(l){case s.currentViewAsJpg.toString():var d=n.extension.getViewer();window.open(n.extension.getCroppedImageUri(p,d)),c=r.CURRENTVIEW;break;case s.selection.toString():Utils.Async.waitFor(function(){return!t.isActive},function(){$.publish(o.SHOW_MULTISELECT_DIALOGUE)});break;case s.wholeImageHighRes.toString():window.open(t.getCanvasHighResImageUri(t.extension.helper.getCurrentCanvas())),c=r.WHOLEIMAGEHIGHRES;break;case s.wholeImagesHighRes.toString():for(var g=t.extension.getPagedIndices(),f=0;f=S&&x>=S?this.$currentViewAsJpgButton.hide():this.$currentViewAsJpgButton.show()}var C=this.$imageOptions.find("li.single");C=C.sort(function(e,t){var i=$(e).data("width");i?i=parseInt(i.toString()):0;var n=$(e).data("height");n?n=parseInt(n.toString()):0;var o=$(t).data("width");o?o=parseInt(o.toString()):0;var s=$(t).data("height");s?s=parseInt(s.toString()):0;var r=i*n,a=o*s;return a>r?-1:r>a?1:0}),C.detach().appendTo(this.$imageOptions);var _=this.$downloadOptions.find("li.group");_.each(function(e,t){var i=$(t);i.show(),i.find("li.option:hidden").length===i.find("li.option").length&&i.hide()}),this.$downloadOptions.find("li.group:visible").last().addClass("lastVisible"),this.$downloadOptions.find("li.option:visible").length?(this.$downloadOptions.find("li.option input:visible:first").prop("checked",!0),this.$noneAvailable.hide(),this.$downloadButton.show()):(this.$noneAvailable.show(),this.$downloadButton.hide()),this.resize()},t.prototype.resetDynamicDownloadOptions=function(){this.renderingUrls=[],this.renderingUrlsCount=0,this.$downloadOptions.find("li.dynamic").remove()},t.prototype.addDownloadOptionsForRenderings=function(e,t,i){for(var n=e.getRenderings(),o=0;o");switch(i){case s.dynamicImageRenderings:this.$imageOptions.append(u);break;case s.dynamicCanvasRenderings:this.$canvasOptions.append(u);break;case s.dynamicSequenceRenderings:this.$sequenceOptions.append(u)}}}},t.prototype.getSelectedOption=function(){return this.$downloadOptions.find("li.option input:checked")},t.prototype.getCanvasImageResource=function(e){var t=e.getImages();return t[0]?t[0].getResource():null},t.prototype.getCanvasHighResImageUri=function(e){var t=this.getCanvasComputedDimensions(e);if(t){var i=t.width,n=e.getCanonicalImageUri(i),o=n.split("/"),s=this.extension.getViewerRotation();return o[o.length-2]=String(s),n=o.join("/")}return""},t.prototype.getCanvasMimeType=function(e){var t=this.getCanvasImageResource(e),i=t.getFormat();return i?i.toString():null},t.prototype.getCanvasDimensions=function(e){return e.externalResource.data?new a(e.externalResource.data.width,e.externalResource.data.height):new a(0,0)},t.prototype.getCanvasMaxDimensions=function(e){return e.externalResource.data&&e.externalResource.data.profile[1]?new a(e.externalResource.data.profile[1].maxWidth,e.externalResource.data.profile[1].maxHeight):null},t.prototype.getCanvasComputedDimensions=function(e){var t=this.getCanvasDimensions(e),i=this.getCanvasMaxDimensions(e);if(!i)return null;var n=t.width,o=t.height;if(!_.isUndefined(i.width)&&i.width1?!0:!1;case s.wholeImageLowResAsJpg:var n=this.getCanvasComputedDimensions(this.extension.helper.getCurrentCanvas());return n?!this.extension.isPagingSettingEnabled()&&n.width>this.options.confinedImageSize:!1;case s.selection:return this.options.selectionEnabled;default:return e.prototype.isDownloadOptionAvailable.call(this,t)}},t}(n);return l});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/ExternalContentDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("externalContentDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_EXTERNALCONTENT_DIALOGUE,this.closeCommand=i.HIDE_EXTERNALCONTENT_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open(),t.$iframe.prop("src",i.uri)}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$iframe=$(""),this.$content.append(this.$iframe),this.$element.hide()},t.prototype.resize=function(){e.prototype.resize.call(this),this.$iframe.width(this.$content.width()),this.$iframe.height(this.$content.height())},t}(n);return o}),define("modules/uv-shared-module/AutoComplete",["require","exports"],function(e,t){var i=function(){function e(e,t,i,n,o,s,r){var a=this;void 0===o&&(o=300),void 0===s&&(s=2),void 0===r&&(r=!1),this.validKeyDownCodes=[KeyCodes.KeyDown.Backspace,KeyCodes.KeyDown.Spacebar,KeyCodes.KeyDown.Tab,KeyCodes.KeyDown.LeftArrow,KeyCodes.KeyDown.RightArrow,KeyCodes.KeyDown.Delete],this.lastKeyDownWasValid=!1,this.$element=e,this.autoCompleteFunc=t,this.delay=o,this.minChars=s,this.onSelect=n,this.parseResultsFunc=i,this.positionAbove=r,this.$searchResultsList=$(''),this.positionAbove?this.$element.parent().prepend(this.$searchResultsList):this.$element.parent().append(this.$searchResultsList),this.$searchResultTemplate=$('');var l=function(){var e=0;return function(t,i){clearTimeout(e),e=setTimeout(t,i)}}(),h=this;this.$element.on("keydown",function(e){var t=e.originalEvent;h.lastKeyDownWasValid=h.isValidKeyDown(t);var i=Utils.Keyboard.getCharCode(t),n=!1;i===KeyCodes.KeyDown.LeftArrow?n=!0:i===KeyCodes.KeyDown.RightArrow&&(n=!0),n&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}),this.$element.on("keypress",function(e){var t=h.isValidKeyPress(e.originalEvent);return h.lastKeyDownWasValid||t?!0:(e.preventDefault(),!1)}),this.$element.on("keyup",function(e){if(!h.getSelectedListItem().length&&e.keyCode===KeyCodes.KeyDown.Enter)return void h.onSelect(h.getTerms());if(h.$searchResultsList.is(":visible")&&h.results.length)if(e.keyCode===KeyCodes.KeyDown.Enter)h.searchForItem(h.getSelectedListItem());else{if(e.keyCode===KeyCodes.KeyDown.DownArrow)return void h.setSelectedResultIndex(1);if(e.keyCode===KeyCodes.KeyDown.UpArrow)return void h.setSelectedResultIndex(-1)}e.keyCode!==KeyCodes.KeyDown.Enter&&l(function(){var e=h.getTerms();e&&e.length>h.minChars&&!e.contains(" ")?h.search(e):(h.clearResults(),h.hideResults())},h.delay)}),$(document).on("mouseup",function(e){0===a.$searchResultsList.parent().has($(e.target)[0]).length&&(a.clearResults(),a.hideResults())}),this.hideResults()}return e.prototype.isValidKeyDown=function(e){return this.validKeyDownCodes.contains(Utils.Keyboard.getCharCode(e))},e.prototype.isValidKeyPress=function(e){var t=String.fromCharCode(Utils.Keyboard.getCharCode(e));return t.isAlphanumeric()},e.prototype.getTerms=function(){return this.$element.val().trim()},e.prototype.setSelectedResultIndex=function(e){var t;t=1===e?this.selectedResultIndex+1:this.selectedResultIndex-1;var i=this.$searchResultsList.find("li");0>t?t=i.length-1:t>i.length-1&&(t=0),this.selectedResultIndex=t,i.removeClass("selected");var n=i.eq(this.selectedResultIndex);n.addClass("selected");var o=n.outerHeight(!0)*this.selectedResultIndex;this.$searchResultsList.scrollTop(o)},e.prototype.search=function(e){this.results=[],this.clearResults(),this.showResults(),this.$searchResultsList.append(''),this.updateListPosition();var t=this;this.autoCompleteFunc(e,function(e){t.listResults(e)})},e.prototype.clearResults=function(){this.$searchResultsList.empty()},e.prototype.hideResults=function(){this.$searchResultsList.hide()},e.prototype.showResults=function(){this.selectedResultIndex=-1,this.$searchResultsList.show()},e.prototype.updateListPosition=function(){this.positionAbove?this.$searchResultsList.css({top:-1*this.$searchResultsList.outerHeight(!0)}):this.$searchResultsList.css({top:this.$element.outerHeight(!0)})},e.prototype.listResults=function(e){if(this.results=this.parseResultsFunc(e),this.clearResults(),!this.results.length)return void this.hideResults();for(var t=0;t'+this.content.print+""),this.$options.prepend(this.$printButton),this.$searchContainer=$(''),this.$element.prepend(this.$searchContainer),this.$searchOptions=$(''),this.$searchContainer.append(this.$searchOptions),this.$searchLabel=$(''+this.content.searchWithin+""),this.$searchOptions.append(this.$searchLabel),this.$searchTextContainer=$(''),this.$searchOptions.append(this.$searchTextContainer),this.$searchText=$(''),this.$searchTextContainer.append(this.$searchText),this.$searchButton=$(''),this.$searchTextContainer.append(this.$searchButton),this.$searchPagerContainer=$(''),this.$element.prepend(this.$searchPagerContainer),this.$searchPagerControls=$(''),this.$searchPagerContainer.prepend(this.$searchPagerControls),this.$previousResultButton=$(''+this.content.previousResult+""),this.$searchPagerControls.append(this.$previousResultButton),this.$searchResultsInfo=$('x \'y\'
'),this.$searchPagerControls.append(this.$searchResultsInfo),this.$clearSearchResultsButton=$(''+this.content.clearSearch+""),this.$searchResultsInfo.append(this.$clearSearchResultsButton),this.$nextResultButton=$(''+this.content.nextResult+""),this.$searchPagerControls.append(this.$nextResultButton),this.$searchResultsContainer=$(''),this.$element.prepend(this.$searchResultsContainer),this.$line=$(''),this.$searchResultsContainer.append(this.$line),this.$pagePositionMarker=$(''),this.$searchResultsContainer.append(this.$pagePositionMarker),this.$pagePositionLabel=$(''),this.$searchResultsContainer.append(this.$pagePositionLabel),this.$placemarkerDetails=$(''),this.$searchResultsContainer.append(this.$placemarkerDetails),this.$placemarkerDetailsTop=$(""),this.$placemarkerDetails.append(this.$placemarkerDetailsTop),this.$placemarkerDetailsBottom=$(""),this.$placemarkerDetails.append(this.$placemarkerDetailsBottom),this.$searchPagerContainer.hide(),this.$placemarkerDetails.hide();var n=this;this.$searchButton.on("click",function(e){e.preventDefault(),t.search(t.$searchText.val())}),this.$searchText.on("focus",function(){t.$searchText.val()===t.content.enterKeyword&&t.$searchText.val("")}),this.$placemarkerDetails.on("mouseover",function(){$.publish(o.SEARCH_PREVIEW_START,[t.currentPlacemarkerIndex])}),this.$placemarkerDetails.on("mouseleave",function(){$(this).hide(),$.publish(o.SEARCH_PREVIEW_FINISH);var e=n.getSearchResultPlacemarkers();e.removeClass("hover")}),this.$placemarkerDetails.on("click",function(e){$.publish(o.VIEW_PAGE,[t.currentPlacemarkerIndex])}),this.$previousResultButton.on("click",function(e){e.preventDefault(),$.publish(o.PREV_SEARCH_RESULT)}),this.$nextResultButton.on("click",function(e){e.preventDefault(),$.publish(o.NEXT_SEARCH_RESULT)}),this.$clearSearchResultsButton.on("click",function(e){e.preventDefault(),$.publish(o.CLEAR_SEARCH),t.clearSearchResults()}),this.extension.isSearchWithinEnabled()||(this.$searchContainer.hide(),this.$searchPagerContainer.hide(),this.$searchResultsContainer.hide(),this.$element.addClass("min"));var r=this.extension.getAutoCompleteUri();r&&new s(this.$searchText,function(e,t){$.getJSON(String.format(r,e),function(e){t(e)})},function(e){return _.map(e.terms,function(e){return e.match})},function(e){t.search(e)},300,2,!0),this.$printButton.onPressed(function(){$.publish(o.PRINT)}),this.updatePrintButton();var a=Utils.Bools.getBool(this.config.options.positionMarkerEnabled,!0);a||(this.$pagePositionMarker.hide(),this.$pagePositionLabel.hide())},t.prototype.updatePrintButton=function(){var e=Utils.Bools.getBool(this.options.printEnabled,!1);e?this.$printButton.show():this.$printButton.hide()},t.prototype.search=function(e){return this.terms=e,""===this.terms||this.terms===this.content.enterKeyword?void this.extension.showMessage(this.config.modules.genericDialogue.content.emptyValue,function(){this.$searchText.focus()}):(this.$searchText.blur(),void $.publish(o.SEARCH,[this.terms]))},t.prototype.getSearchResultPlacemarkers=function(){return this.$searchResultsContainer.find(".searchResultPlacemarker")},t.prototype.setCurrentSearchResultPlacemarker=function(){var e=this.getSearchResultPlacemarkers();e.parent().find(".current").removeClass("current");var t=$('.searchResultPlacemarker[data-index="'+this.extension.helper.canvasIndex+'"]');t.addClass("current")},t.prototype.positionSearchResultPlacemarkers=function(){var e=this.extension.searchResults;if(e.length){var t=this.getSearchResultPlacemarkers();t.remove();for(var i=this.getPageLineRatio(),n=this.$line.position().top,o=this.$line.position().left,s=this,r=0;r');h[0].ontouchstart=function(e){s.onPlacemarkerTouchStart.call(this,s)},h.click(function(e){s.onPlacemarkerClick.call(this,s)}),h.mouseenter(function(e){s.onPlacemarkerMouseEnter.call(this,s)}),h.mouseleave(function(e){s.onPlacemarkerMouseLeave.call(this,e,s)}),this.$searchResultsContainer.append(h);var u=n-h.height(),c=o+l-h.width()/2;h.css({top:u,left:c})}}},t.prototype.onPlacemarkerTouchStart=function(e){e.placemarkerTouched=!0;var t=$(this),i=parseInt(t.attr("data-index"));$.publish(o.VIEW_PAGE,[i])},t.prototype.onPlacemarkerClick=function(e){if(!e.placemarkerTouched){e.placemarkerTouched=!1;var t=$(this),i=parseInt(t.attr("data-index"));$.publish(o.VIEW_PAGE,[i])}},t.prototype.onPlacemarkerMouseEnter=function(e){if(!e.placemarkerTouched){var t=$(this);t.addClass("hover");var i=parseInt(t.attr("data-index"));$.publish(o.SEARCH_PREVIEW_START,[i]);var n=e.getSearchResultPlacemarkers(),s=n.index(t[0]);e.currentPlacemarkerIndex=i,e.$placemarkerDetails.show();var a="{0} {1}",l=e.extension.getMode();if(l.toString()===r.page.toString()){var h=e.extension.helper.getCanvasByIndex(i),u=Manifesto.TranslationCollection.getValue(h.getLabel());""===u&&(u=this.extension.helper.manifest.options.defaultLabel),a=String.format(a,e.content.pageCaps,u)}else a=String.format(a,e.content.imageCaps,i+1);e.$placemarkerDetailsTop.html(a);var c,p=e.extension.searchResults[s],d=Utils.Strings.ellipsis(e.terms,e.options.elideDetailsTermsCount);1===p.rects.length?(c=e.content.instanceFound,c=String.format(c,d)):(c=e.content.instancesFound,c=String.format(c,p.rects.length,d)),e.$placemarkerDetailsBottom.html(c);var g=t.position(),f=g.top-e.$placemarkerDetails.height(),m=g.left;me.$line.width()-e.$placemarkerDetails.width()/2?m=e.$line.width()-e.$placemarkerDetails.width()+t.width()/2:m-=e.$placemarkerDetails.width()/2,e.$placemarkerDetails.css({top:f,left:m})}},t.prototype.onPlacemarkerMouseLeave=function(e,t){$.publish(o.SEARCH_PREVIEW_FINISH);var i=$(this),n=e.toElement||e.relatedTarget,s=$(n).closest(t.$placemarkerDetails).length;n!=t.$placemarkerDetails.get(0)&&0==s&&(t.$placemarkerDetails.hide(),i.removeClass("hover"))},t.prototype.setPageMarkerPosition=function(){if(null!=this.extension.helper.canvasIndex){var e=this.getPageLineRatio(),t=this.$line.position().top,i=this.$line.position().left,n=this.extension.helper.canvasIndex*e,o=t,s=i+n;this.$pagePositionMarker.css({top:o,left:s});var r=this.$line.width();s+this.$pagePositionLabel.outerWidth(!0)>r?(s-=this.$pagePositionLabel.outerWidth(!0),this.$pagePositionLabel.removeClass("right"),this.$pagePositionLabel.addClass("left")):(this.$pagePositionLabel.removeClass("left"),this.$pagePositionLabel.addClass("right")),this.$pagePositionLabel.css({top:o,left:s})}},t.prototype.clearSearchResults=function(){this.extension.searchResults=[];var e=this.getSearchResultPlacemarkers();e.remove(),this.$searchText.val(this.content.enterKeyword),this.$searchContainer.show(),this.$searchPagerContainer.hide(),this.$searchText.focus()},t.prototype.getPageLineRatio=function(){var e=this.$line.width();return 1===this.extension.helper.getTotalCanvases()?0:e/(this.extension.helper.getTotalCanvases()-1)},t.prototype.canvasIndexChanged=function(){this.setPageMarkerPosition(),this.setPlacemarkerLabel()},t.prototype.settingsChanged=function(){this.setPlacemarkerLabel()},t.prototype.setPlacemarkerLabel=function(){var e=this.content.displaying,t=this.extension.helper.canvasIndex;if(this.isPageModeEnabled()){var i=this.extension.helper.getCanvasByIndex(t),n=Manifesto.TranslationCollection.getValue(i.getLabel());""===n&&(n=this.content.defaultLabel);var o=this.extension.helper.getLastCanvasLabel(!0);this.$pagePositionLabel.html(String.format(e,this.content.page,this.extension.sanitize(n),this.extension.sanitize(o)))}else this.$pagePositionLabel.html(String.format(e,this.content.image,t+1,this.extension.helper.getTotalCanvases()))},t.prototype.isPageModeEnabled=function(){return this.config.options.pageModeEnabled&&this.extension.getMode().toString()===r.page.toString()},t.prototype.displaySearchResults=function(e,t){if(t){this.positionSearchResultPlacemarkers(),this.$searchContainer.hide(),this.$searchPagerControls.css({left:0});var i=this.$searchPagerContainer.find(".number");i.text(t.resources.length);var n=this.$searchResultsInfo.find(".foundFor");1===t.resources.length?n.html(this.content.resultFoundFor):n.html(this.content.resultsFoundFor);var o=this.$searchPagerContainer.find(".terms");o.html(Utils.Strings.ellipsis(e,this.options.elideResultsTermsCount)),o.prop("title",e),this.$searchPagerContainer.show(),this.resize()}},t.prototype.resize=function(){e.prototype.resize.call(this),this.extension.searchResults.length&&this.positionSearchResultPlacemarkers(),this.setPageMarkerPosition(),this.$searchPagerContainer.width(this.$element.width());var t=this.$element.width()/2;this.$searchPagerControls.css({left:t-this.$searchPagerControls.width()/2}),this.$searchOptions.css({left:t-this.$searchOptions.outerWidth()/2})},t}(n);return a});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-osdmobilefooterpanel-module/MobileFooter",["require","exports","../uv-shared-module/FooterPanel","../../extensions/uv-seadragon-extension/Commands"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("mobileFooterPanel"),e.prototype.create.call(this),this.$spacer=$(''),this.$options.prepend(this.$spacer),this.$rotateButton=$(''+this.content.rotateRight+""),this.$options.prepend(this.$rotateButton),this.$zoomOutButton=$(''+this.content.zoomOut+""),this.$options.prepend(this.$zoomOutButton),this.$zoomInButton=$(''+this.content.zoomIn+""),this.$options.prepend(this.$zoomInButton),this.$zoomInButton.onPressed(function(){$.publish(n.ZOOM_IN)}),this.$zoomOutButton.onPressed(function(){$.publish(n.ZOOM_OUT)}),this.$rotateButton.onPressed(function(){$.publish(n.ROTATE)})},t.prototype.resize=function(){e.prototype.resize.call(this),this.$options.css("left",Math.floor(this.$element.width()/2-this.$options.width()/2))},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/MoreInfoDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("moreInfoDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_MOREINFO_DIALOGUE,this.closeCommand=i.HIDE_MOREINFO_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open(i)}),$.subscribe(this.closeCommand,function(e){t.close()}),this.config.content=this.extension.config.modules.moreInfoRightPanel.content,this.config.options=this.extension.config.modules.moreInfoRightPanel.options,this.$title=$(""+this.config.content.title+"
"),this.$content.append(this.$title),this.$metadata=$(''),this.$content.append(this.$metadata),this.component=new IIIFComponents.MetadataComponent(this._getOptions()),this.$element.hide()},t.prototype.open=function(t){e.prototype.open.call(this,t),this.component.databind()},t.prototype._getOptions=function(){var e=this;return{canvasDisplayOrder:this.config.options.canvasDisplayOrder,canvases:this.extension.getCurrentCanvases(),canvasExclude:this.config.options.canvasExclude,canvasLabels:"Left Page, Right Page",content:this.config.content,copiedMessageDuration:2e3,copyToClipboardEnabled:Utils.Bools.getBool(this.config.options.copyToClipboardEnabled,!1),element:".overlay.moreInfo .iiif-metadata-component",helper:this.extension.helper,licenseFormatter:null,limit:this.config.options.textLimit||4,limitType:IIIFComponents.MetadataComponentOptions.LimitType.LINES,manifestDisplayOrder:this.config.options.manifestDisplayOrder,manifestExclude:this.config.options.manifestExclude,range:this.extension.getCurrentCanvasRange(),rtlLanguageCodes:this.config.options.rtlLanguageCodes,sanitizer:function(t){return e.extension.sanitize(t)},showAllLanguages:this.config.options.showAllLanguages}},t.prototype.close=function(){e.prototype.close.call(this)},t.prototype.resize=function(){this.setDockedPosition()},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-multiselectdialogue-module/MultiSelectDialogue",["require","exports","../../extensions/uv-seadragon-extension/Commands","../../modules/uv-shared-module/Dialogue","../../extensions/uv-seadragon-extension/Mode"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("multiSelectDialogue"),e.prototype.create.call(this);var n=this;this.openCommand=i.SHOW_MULTISELECT_DIALOGUE,this.closeCommand=i.HIDE_MULTISELECT_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open();var n=t.extension.helper.getMultiSelectState();n.setEnabled(!0),t.component.databind()}),$.subscribe(this.closeCommand,function(e){t.close();var i=t.extension.helper.getMultiSelectState();i.setEnabled(!1)}),this.$title=$(""),this.$content.append(this.$title),this.$title.text(this.content.title),this.$gallery=$(''),this.$content.append(this.$gallery),this.options={element:".overlay.multiSelect .iiif-gallery-component",helper:this.extension.helper,chunkedResizingEnabled:this.config.options.galleryThumbChunkedResizingEnabled,chunkedResizingThreshold:this.config.options.galleryThumbChunkedResizingThreshold,content:this.config.content,debug:!1,imageFadeInDuration:300,initialZoom:4,pageModeEnabled:this.isPageModeEnabled(),scrollStopDuration:100,sizingEnabled:!0,thumbHeight:this.config.options.galleryThumbHeight,thumbLoadPadding:this.config.options.galleryThumbLoadPadding,thumbWidth:this.config.options.galleryThumbWidth,viewingDirection:this.extension.helper.getViewingDirection()},this.component=new IIIFComponents.GalleryComponent(this.options);var o=$(this.options.element).find("a.select");o.addClass("btn btn-primary"),this.component.on("multiSelectionMade",function(e){var t=e[0];$.publish(i.MULTISELECTION_MADE,[t]),n.close()}),this.$element.hide()},t.prototype.isPageModeEnabled=function(){return Utils.Bools.getBool(this.config.options.pageModeEnabled,!0)&&this.extension.getMode().toString()===o.page.toString()},t.prototype.open=function(){e.prototype.open.call(this)},t.prototype.close=function(){e.prototype.close.call(this)},t.prototype.resize=function(){e.prototype.resize.call(this);var t=$(this.options.element),i=t.find(".main"),n=t.find(".header");i.height(this.$content.height()-this.$title.outerHeight()-this.$title.verticalMargins()-n.height())},t}(n);return s}),define("extensions/uv-seadragon-extension/MultiSelectionArgs",["require","exports"],function(e,t){var i=function(){function e(){}return e}();return i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-pagingheaderpanel-module/PagingHeaderPanel",["require","exports","../uv-shared-module/AutoComplete","../uv-shared-module/BaseCommands","../../extensions/uv-seadragon-extension/Commands","../uv-shared-module/HeaderPanel","../../extensions/uv-seadragon-extension/Mode"],function(e,t,i,n,o,s,r){var a=function(e){function t(t){e.call(this,t),this.firstButtonEnabled=!1,this.lastButtonEnabled=!1,this.nextButtonEnabled=!1,this.prevButtonEnabled=!1}return __extends(t,e),t.prototype.create=function(){var t=this;if(this.setConfig("pagingHeaderPanel"),e.prototype.create.call(this),$.subscribe(n.CANVAS_INDEX_CHANGED,function(e,i){t.canvasIndexChanged(i)}),$.subscribe(n.SETTINGS_CHANGED,function(e){t.modeChanged(),t.updatePagingToggle()}),$.subscribe(n.CANVAS_INDEX_CHANGE_FAILED,function(e){t.setSearchFieldValue(t.extension.helper.canvasIndex)}),$.subscribe(n.LEFTPANEL_EXPAND_FULL_START,function(e){t.openGallery()}),$.subscribe(n.LEFTPANEL_COLLAPSE_FULL_START,function(e){t.closeGallery()}),this.$prevOptions=$(''),this.$centerOptions.append(this.$prevOptions),this.$firstButton=$(''),this.$prevOptions.append(this.$firstButton),this.$prevButton=$(''),this.$prevOptions.append(this.$prevButton),this.$modeOptions=$(''),this.$centerOptions.append(this.$modeOptions),this.$imageModeLabel=$('"),this.$modeOptions.append(this.$imageModeLabel),this.$imageModeOption=$(''),this.$modeOptions.append(this.$imageModeOption),this.$pageModeLabel=$(''),this.$modeOptions.append(this.$pageModeLabel),this.$pageModeOption=$(''),this.$modeOptions.append(this.$pageModeOption),this.$search=$(''),this.$centerOptions.append(this.$search),this.$searchText=$(''),this.$search.append(this.$searchText),Utils.Bools.getBool(this.options.autoCompleteBoxEnabled,!0))this.$searchText.hide(),this.$autoCompleteBox=$(''),this.$search.append(this.$autoCompleteBox),new i(this.$autoCompleteBox,function(e,i){var n=[],o=t.extension.helper.getCanvases();if(t.isPageModeEnabled())for(var s=0;s'),this.$centerOptions.append(this.$selectionBoxOptions),this.$imageSelectionBox=$(''),this.$selectionBoxOptions.append(this.$imageSelectionBox);for(var s=0;s"+l+"")}this.$imageSelectionBox.change(function(){var e=parseInt(t.$imageSelectionBox.val());$.publish(o.IMAGE_SEARCH,[e])})}this.$total=$(''),this.$search.append(this.$total),this.$searchButton=$(''+this.content.go+""),this.$search.append(this.$searchButton),this.$nextOptions=$(''),this.$centerOptions.append(this.$nextOptions),this.$nextButton=$(''),this.$nextOptions.append(this.$nextButton),this.$lastButton=$(''),this.$nextOptions.append(this.$lastButton),this.isPageModeEnabled()?(this.$pageModeOption.attr("checked","checked"),this.$pageModeOption.removeAttr("disabled"),this.$pageModeLabel.removeClass("disabled")):(this.$imageModeOption.attr("checked","checked"),this.$pageModeOption.attr("disabled","disabled"),this.$pageModeLabel.addClass("disabled")),this.extension.helper.getManifestType().toString()===manifesto.ManifestType.manuscript().toString()?this.$pageModeLabel.text(this.content.folio):this.$pageModeLabel.text(this.content.page),this.$galleryButton=$(''),this.$rightOptions.prepend(this.$galleryButton),this.$pagingToggleButtons=$(''),this.$rightOptions.prepend(this.$pagingToggleButtons),this.$oneUpButton=$(''),this.$pagingToggleButtons.append(this.$oneUpButton),this.$twoUpButton=$(''),this.$pagingToggleButtons.append(this.$twoUpButton),this.updatePagingToggle(),this.updateGalleryButton(),this.$oneUpButton.onPressed(function(){var e=!1;t.updateSettings({pagingEnabled:e}),$.publish(o.PAGING_TOGGLED,[e])}),this.$twoUpButton.onPressed(function(){var e=!0;t.updateSettings({pagingEnabled:e}),$.publish(o.PAGING_TOGGLED,[e])}),this.$galleryButton.onPressed(function(){$.publish(n.TOGGLE_EXPAND_LEFT_PANEL)}),this.setTitles(),this.setTotal();var h=this.extension.helper.getViewingDirection();1===this.extension.helper.getTotalCanvases()&&this.$centerOptions.hide(),
-this.$firstButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.topToBottom().toString():case manifesto.ViewingDirection.bottomToTop().toString():$.publish(o.FIRST);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.LAST)}}),this.$prevButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(o.PREV);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.NEXT)}}),this.$nextButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(o.NEXT);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.PREV)}}),this.$lastButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.topToBottom().toString():case manifesto.ViewingDirection.bottomToTop().toString():$.publish(o.LAST);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.FIRST)}}),this.config.options.pageModeEnabled?(this.$imageModeOption.on("click",function(e){$.publish(o.MODE_CHANGED,[r.image.toString()])}),this.$pageModeOption.on("click",function(e){$.publish(o.MODE_CHANGED,[r.page.toString()])})):(this.$imageModeOption.hide(),this.$pageModeLabel.hide(),this.$pageModeOption.hide()),this.$searchText.onEnter(function(){t.$searchText.blur(),t.search(t.$searchText.val())}),this.$searchText.click(function(){$(this).select()}),this.$searchButton.onPressed(function(){t.options.autoCompleteBoxEnabled?t.search(t.$autoCompleteBox.val()):t.search(t.$searchText.val())}),this.options.modeOptionsEnabled===!1&&(this.$modeOptions.hide(),this.$centerOptions.addClass("modeOptionsDisabled")),this.options.imageSelectionBoxEnabled===!0&&this.options.autoCompleteBoxEnabled!==!0&&this.$search.hide(),this.options.helpEnabled===!1&&this.$helpButton.hide(),Utils.Bools.getBool(this.options.pagingToggleEnabled,!0)||this.$pagingToggleButtons.hide()},t.prototype.openGallery=function(){this.$oneUpButton.removeClass("on"),this.$twoUpButton.removeClass("on"),this.$galleryButton.addClass("on")},t.prototype.closeGallery=function(){this.updatePagingToggle(),this.$galleryButton.removeClass("on")},t.prototype.isPageModeEnabled=function(){return this.config.options.pageModeEnabled&&this.extension.getMode().toString()===r.page.toString()},t.prototype.setTitles=function(){this.isPageModeEnabled()?(this.$firstButton.prop("title",this.content.firstPage),this.$prevButton.prop("title",this.content.previousPage),this.$nextButton.prop("title",this.content.nextPage),this.$lastButton.prop("title",this.content.lastPage)):(this.$firstButton.prop("title",this.content.firstImage),this.$prevButton.prop("title",this.content.previousImage),this.$nextButton.prop("title",this.content.nextImage),this.$lastButton.prop("title",this.content.lastImage)),this.$searchButton.prop("title",this.content.go)},t.prototype.updatePagingToggle=function(){return this.pagingToggleIsVisible()?void(this.extension.isPagingSettingEnabled()?(this.$oneUpButton.removeClass("on"),this.$twoUpButton.addClass("on")):(this.$twoUpButton.removeClass("on"),this.$oneUpButton.addClass("on"))):void this.$pagingToggleButtons.hide()},t.prototype.pagingToggleIsVisible=function(){return Utils.Bools.getBool(this.options.pagingToggleEnabled,!0)&&this.extension.helper.isPagingAvailable()},t.prototype.updateGalleryButton=function(){this.galleryIsVisible()||this.$galleryButton.hide()},t.prototype.galleryIsVisible=function(){return Utils.Bools.getBool(this.options.galleryButtonEnabled,!0)&&this.extension.isLeftPanelEnabled()},t.prototype.setTotal=function(){var e=this.content.of;this.isPageModeEnabled()?this.$total.html(String.format(e,this.extension.helper.getLastCanvasLabel(!0))):this.$total.html(String.format(e,this.extension.helper.getTotalCanvases()))},t.prototype.setSearchFieldValue=function(e){var t,i=this.extension.helper.getCanvasByIndex(e);if(this.isPageModeEnabled()){var n=Manifesto.TranslationCollection.getValue(i.getLabel());t="-"===n?"":n}else e+=1,t=e;this.options.autoCompleteBoxEnabled?this.$autoCompleteBox.val(t):this.$searchText.val(t)},t.prototype.search=function(e){if(!e)return this.extension.showMessage(this.content.emptyValue),void $.publish(n.CANVAS_INDEX_CHANGE_FAILED);if(this.isPageModeEnabled())$.publish(o.PAGE_SEARCH,[e]);else{var t;if(t=this.options.autoCompleteBoxEnabled?parseInt(this.$autoCompleteBox.val(),10):parseInt(this.$searchText.val(),10),t-=1,isNaN(t))return this.extension.showMessage(this.extension.config.modules.genericDialogue.content.invalidNumber),void $.publish(n.CANVAS_INDEX_CHANGE_FAILED);var i=this.extension.helper.getCanvasByIndex(t);if(!i)return this.extension.showMessage(this.extension.config.modules.genericDialogue.content.pageNotFound),void $.publish(n.CANVAS_INDEX_CHANGE_FAILED);$.publish(o.IMAGE_SEARCH,[t])}},t.prototype.canvasIndexChanged=function(e){this.setSearchFieldValue(e),this.options.imageSelectionBoxEnabled===!0&&this.options.autoCompleteBoxEnabled!==!0&&this.$imageSelectionBox.val(e);var t=this.extension.helper.getViewingDirection();t.toString()===manifesto.ViewingDirection.rightToLeft().toString()?(this.extension.helper.isFirstCanvas()?(this.disableLastButton(),this.disableNextButton()):(this.enableLastButton(),this.enableNextButton()),this.extension.helper.isLastCanvas()?(this.disableFirstButton(),this.disablePrevButton()):(this.enableFirstButton(),this.enablePrevButton())):(this.extension.helper.isFirstCanvas()?(this.disableFirstButton(),this.disablePrevButton()):(this.enableFirstButton(),this.enablePrevButton()),this.extension.helper.isLastCanvas()?(this.disableLastButton(),this.disableNextButton()):(this.enableLastButton(),this.enableNextButton()))},t.prototype.disableFirstButton=function(){this.firstButtonEnabled=!1,this.$firstButton.disable()},t.prototype.enableFirstButton=function(){this.firstButtonEnabled=!0,this.$firstButton.enable()},t.prototype.disableLastButton=function(){this.lastButtonEnabled=!1,this.$lastButton.disable()},t.prototype.enableLastButton=function(){this.lastButtonEnabled=!0,this.$lastButton.enable()},t.prototype.disablePrevButton=function(){this.prevButtonEnabled=!1,this.$prevButton.disable()},t.prototype.enablePrevButton=function(){this.prevButtonEnabled=!0,this.$prevButton.enable()},t.prototype.disableNextButton=function(){this.nextButtonEnabled=!1,this.$nextButton.disable()},t.prototype.enableNextButton=function(){this.nextButtonEnabled=!0,this.$nextButton.enable()},t.prototype.modeChanged=function(){this.setSearchFieldValue(this.extension.helper.canvasIndex),this.setTitles(),this.setTotal()},t.prototype.resize=function(){e.prototype.resize.call(this),this.extension.width()'),this.$content.prepend(this.$viewer),$.subscribe(i.OPEN_EXTERNAL_RESOURCE,function(e,i){Utils.Async.waitFor(function(){return t.isResized},function(){t.isCreated||t.createUI(),t.openMedia(i)})}),$.subscribe(n.ZOOM_IN,function(){Utils.Async.waitFor(function(){return t.isCreated},function(){t.zoomIn()})}),$.subscribe(n.ZOOM_OUT,function(){Utils.Async.waitFor(function(){return t.isCreated},function(){t.zoomOut()})}),$.subscribe(n.ROTATE,function(){Utils.Async.waitFor(function(){return t.isCreated},function(){t.rotateRight()})}),$.subscribe(i.METRIC_CHANGED,function(){Utils.Async.waitFor(function(){return t.isCreated},function(){t.updateResponsiveView()})})},t.prototype.zoomIn=function(){this.viewer.viewport.zoomTo(2*this.viewer.viewport.getZoom(!0))},t.prototype.zoomOut=function(){this.viewer.viewport.zoomTo(.5*this.viewer.viewport.getZoom(!0))},t.prototype.rotateRight=function(){this.viewer.viewport.setRotation(this.viewer.viewport.getRotation()+90)},t.prototype.updateResponsiveView=function(){this.setNavigatorVisible(),this.extension.metric===s.MOBILE_LANDSCAPE?(this.viewer.autoHideControls=!1,this.$viewportNavButtons.hide()):(this.viewer.autoHideControls=!0,this.$viewportNavButtons.show())},t.prototype.createUI=function(){var e=this;this.$spinner=$(''),this.$content.append(this.$spinner),this.updateAttribution();var t=window.DEBUG?"modules/uv-seadragoncenterpanel-module/img/":"themes/"+this.extension.config.options.theme+"/img/uv-seadragoncenterpanel-module/";window.openSeadragonViewer=this.viewer=OpenSeadragon({id:"viewer",ajaxWithCredentials:!1,showNavigationControl:!0,showNavigator:!0,showRotationControl:!0,showHomeControl:Utils.Bools.getBool(this.config.options.showHomeControl,!1),showFullPageControl:!1,defaultZoomLevel:this.config.options.defaultZoomLevel||0,controlsFadeDelay:this.config.options.controlsFadeDelay||250,controlsFadeLength:this.config.options.controlsFadeLength||250,navigatorPosition:this.config.options.navigatorPosition||"BOTTOM_RIGHT",animationTime:this.config.options.animationTime||1.2,visibilityRatio:this.config.options.visibilityRatio||.5,constrainDuringPan:Utils.Bools.getBool(this.config.options.constrainDuringPan,!1),immediateRender:Utils.Bools.getBool(this.config.options.immediateRender,!1),blendTime:this.config.options.blendTime||0,autoHideControls:Utils.Bools.getBool(this.config.options.autoHideControls,!0),prefixUrl:t,navImages:{zoomIn:{REST:"zoom_in.png",GROUP:"zoom_in.png",HOVER:"zoom_in.png",DOWN:"zoom_in.png"},zoomOut:{REST:"zoom_out.png",GROUP:"zoom_out.png",HOVER:"zoom_out.png",DOWN:"zoom_out.png"},home:{REST:"home.png",GROUP:"home.png",HOVER:"home.png",DOWN:"home.png"},rotateright:{REST:"rotate_right.png",GROUP:"rotate_right.png",HOVER:"rotate_right.png",DOWN:"rotate_right.png"},rotateleft:{REST:"pixel.gif",GROUP:"pixel.gif",HOVER:"pixel.gif",DOWN:"pixel.gif"},next:{REST:"pixel.gif",GROUP:"pixel.gif",HOVER:"pixel.gif",DOWN:"pixel.gif"},previous:{REST:"pixel.gif",GROUP:"pixel.gif",HOVER:"pixel.gif",DOWN:"pixel.gif"}}}),this.$zoomInButton=this.$viewer.find('div[title="Zoom in"]'),this.$zoomInButton.attr("tabindex",0),this.$zoomInButton.prop("title",this.content.zoomIn),this.$zoomInButton.addClass("zoomIn viewportNavButton"),this.$zoomOutButton=this.$viewer.find('div[title="Zoom out"]'),this.$zoomOutButton.attr("tabindex",0),this.$zoomOutButton.prop("title",this.content.zoomOut),this.$zoomOutButton.addClass("zoomOut viewportNavButton"),this.$goHomeButton=this.$viewer.find('div[title="Go home"]'),this.$goHomeButton.attr("tabindex",0),this.$goHomeButton.prop("title",this.content.goHome),this.$goHomeButton.addClass("goHome viewportNavButton"),this.$rotateButton=this.$viewer.find('div[title="Rotate right"]'),this.$rotateButton.attr("tabindex",0),this.$rotateButton.prop("title",this.content.rotateRight),this.$rotateButton.addClass("rotate viewportNavButton"),this.$viewportNavButtonsContainer=this.$viewer.find(".openseadragon-container > div:not(.openseadragon-canvas):first"),this.$viewportNavButtons=this.$viewportNavButtonsContainer.find(".viewportNavButton"),this.$navigator=this.$viewer.find(".navigator"),this.setNavigatorVisible(),this.$element.on("mousemove",function(t){e.controlsVisible||(e.controlsVisible=!0,e.viewer.setControlsEnabled(!0))}),this.$element.on("mouseleave",function(t){e.controlsVisible&&(e.controlsVisible=!1,e.viewer.setControlsEnabled(!1))}),this.$element.on("mousemove",function(t){if(!e.$viewer.find(".navigator").ismouseover()){if(!e.controlsVisible)return;e.controlsVisible=!1,e.viewer.setControlsEnabled(!1)}},this.config.options.controlsFadeAfterInactive),this.viewer.addHandler("tile-drawn",function(){e.$spinner.hide()}),this.viewer.addHandler("resize",function(t){$.publish(n.SEADRAGON_RESIZE,[t]),e.viewerResize(t)}),this.viewer.addHandler("animation-start",function(e){$.publish(n.SEADRAGON_ANIMATION_START,[e])}),this.viewer.addHandler("animation",function(e){$.publish(n.SEADRAGON_ANIMATION,[e])}),this.viewer.addHandler("animation-finish",function(t){e.currentBounds=e.getBounds(),$.publish(n.SEADRAGON_ANIMATION_FINISH,[t])}),this.viewer.addHandler("rotate",function(e){$.publish(n.SEADRAGON_ROTATION,[e.degrees])}),this.title=this.extension.helper.getLabel(),this.createNavigationButtons(),this.hidePrevButton(),this.hideNextButton(),this.isCreated=!0,this.resize()},t.prototype.createNavigationButtons=function(){var e=this.extension.helper.getViewingDirection();switch(this.$prevButton=$(''),this.$prevButton.prop("title",this.content.previous),this.$nextButton=$(''),this.$nextButton.prop("title",this.content.next),this.viewer.addControl(this.$prevButton[0],{anchor:OpenSeadragon.ControlAnchor.TOP_LEFT}),this.viewer.addControl(this.$nextButton[0],{anchor:OpenSeadragon.ControlAnchor.TOP_RIGHT}),e.toString()){case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():this.$prevButton.addClass("vertical"),this.$nextButton.addClass("vertical")}var t=this;this.$prevButton.onPressed(function(i){if(i.preventDefault(),OpenSeadragon.cancelEvent(i),t.prevButtonEnabled)switch(e.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(n.PREV);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(n.NEXT)}}),this.$nextButton.onPressed(function(i){if(i.preventDefault(),OpenSeadragon.cancelEvent(i),t.nextButtonEnabled)switch(e.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(n.NEXT);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(n.PREV)}})},t.prototype.openMedia=function(e){var t=this;this.$spinner.show(),this.items=[],this.extension.getExternalResources(e).then(function(e){t.viewer.close(),e=t.getPagePositions(e);for(var i=0;i1)if(2===e.length)this.extension.helper.isVerticallyAligned()?(n=e[0],n.y=0,o=e[1],o.y=n.height+this.config.options.pageGap):(t=e[0],t.x=0,i=e[1],i.x=t.width+this.config.options.pageGap);else if(this.extension.helper.isVerticallyAligned())if(this.extension.helper.isTopToBottom())for(var a=0;a0;a--)s=e[a],r=e[a-1],r.y=(s.y||0)-s.height;else if(this.extension.helper.isLeftToRight())for(var a=0;a0;a--)s=e[a],r=e[a-1],r.x=(s.x||0)-s.width;return e},t.prototype.openPagesHandler=function(){if($.publish(n.SEADRAGON_OPEN),this.isFirstLoad)this.initialRotation=this.extension.getParam(r.rotation),this.initialRotation&&this.viewer.viewport.setRotation(parseInt(this.initialRotation)),this.initialBounds=this.extension.getParam(r.zoom),this.initialBounds?(this.initialBounds=this.deserialiseBounds(this.initialBounds),this.currentBounds=this.initialBounds,this.fitToBounds(this.currentBounds)):this.goHome();else{var e=this.extension.getSettings();e.preserveViewport&&this.currentBounds?this.fitToBounds(this.currentBounds):this.goHome()}if(this.extension.helper.isMultiCanvas()&&!this.extension.helper.isContinuous()){this.showPrevButton(),this.showNextButton(),$(".navigator").addClass("extraMargin");var t=this.extension.helper.getViewingDirection();t.toString()===manifesto.ViewingDirection.rightToLeft().toString()?(this.extension.helper.isFirstCanvas()?this.disableNextButton():this.enableNextButton(),this.extension.helper.isLastCanvas()?this.disablePrevButton():this.enablePrevButton()):(this.extension.helper.isFirstCanvas()?this.disablePrevButton():this.enablePrevButton(),this.extension.helper.isLastCanvas()?this.disableNextButton():this.enableNextButton())}this.setNavigatorVisible(),this.isFirstLoad=!1,this.overlaySearchResults()},t.prototype.goHome=function(){this.viewer.viewport.goHome(!0)},t.prototype.disablePrevButton=function(){this.prevButtonEnabled=!1,this.$prevButton.addClass("disabled")},t.prototype.enablePrevButton=function(){this.prevButtonEnabled=!0,this.$prevButton.removeClass("disabled")},t.prototype.hidePrevButton=function(){this.disablePrevButton(),this.$prevButton.hide()},t.prototype.showPrevButton=function(){this.enablePrevButton(),this.$prevButton.show()},t.prototype.disableNextButton=function(){this.nextButtonEnabled=!1,this.$nextButton.addClass("disabled")},t.prototype.enableNextButton=function(){this.nextButtonEnabled=!0,this.$nextButton.removeClass("disabled")},t.prototype.hideNextButton=function(){this.disableNextButton(),this.$nextButton.hide()},t.prototype.showNextButton=function(){this.enableNextButton(),this.$nextButton.show()},t.prototype.serialiseBounds=function(e){return e.x+","+e.y+","+e.width+","+e.height},t.prototype.deserialiseBounds=function(e){var t=e.split(",");return{x:Number(t[0]),y:Number(t[1]),width:Number(t[2]),height:Number(t[3])}},t.prototype.fitToBounds=function(e){var t=new OpenSeadragon.Rect;t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,this.viewer.viewport.fitBounds(t,!0)},t.prototype.getBounds=function(){if(!this.viewer||!this.viewer.viewport)return null;var e=this.viewer.viewport.getBounds(!0);return{x:Math.roundToDecimalPlace(e.x,4),y:Math.roundToDecimalPlace(e.y,4),width:Math.roundToDecimalPlace(e.width,4),height:Math.roundToDecimalPlace(e.height,4)}},t.prototype.viewerResize=function(e){if(e.viewport){var t=e.viewport.getCenter(!0);t&&setTimeout(function(){e.viewport.panTo(t,!0)},1)}},t.prototype.overlaySearchResults=function(){var e=this.extension.searchResults;if(e.length)for(var t=this.extension.getPagedIndices(),i=0;i0&&(n=this.extension.resources[t-1].width);for(var o=0;o0?this.config.options.pageGap:0),a=Number(s.y),l=Number(s.width),h=Number(s.height),u=new OpenSeadragon.Rect(r,a,l,h);i.push(u)}return i},t.prototype.resize=function(){var t=this;if(e.prototype.resize.call(this),this.$viewer.height(this.$content.height()-this.$viewer.verticalMargins()),this.$viewer.width(this.$content.width()-this.$viewer.horizontalMargins()),this.isCreated){this.currentBounds&&this.fitToBounds(this.currentBounds),this.$title.ellipsisFill(this.extension.sanitize(this.title)),this.$spinner.css("top",this.$content.height()/2-this.$spinner.height()/2),this.$spinner.css("left",this.$content.width()/2-this.$spinner.width()/2);var i=this.extension.helper.getViewingDirection();if(this.extension.helper.isMultiCanvas()&&this.$prevButton&&this.$nextButton){var n=Math.floor(this.$content.width()/2);switch(i.toString()){case manifesto.ViewingDirection.bottomToTop().toString():this.$prevButton.addClass("down"),this.$nextButton.addClass("up"),this.$prevButton.css("left",n-this.$prevButton.outerWidth()/2),this.$prevButton.css("top",this.$content.height()-this.$prevButton.height()),this.$nextButton.css("left",-1*n-this.$nextButton.outerWidth()/2);break;case manifesto.ViewingDirection.topToBottom().toString():this.$prevButton.css("left",n-this.$prevButton.outerWidth()/2),this.$nextButton.css("left",-1*n-this.$nextButton.outerWidth()/2),this.$nextButton.css("top",this.$content.height()-this.$nextButton.height());break;default:this.$prevButton.css("top",(this.$content.height()-this.$prevButton.height())/2),this.$nextButton.css("top",(this.$content.height()-this.$nextButton.height())/2)}}setTimeout(function(){if(t.extension.helper.isContinuous())if(t.extension.helper.isHorizontallyAligned()){var e=t.$viewer.width()-t.$viewer.rightMargin();t.$navigator.width(e)}else t.$navigator.height(t.$viewer.height())},100)}},t.prototype.setFocus=function(){var e=$(this.viewer.canvas);e.is(":focus")||e.focus()},t.prototype.setNavigatorVisible=function(){var e=Utils.Bools.getBool(this.extension.getSettings().navigatorEnabled,!0)&&this.extension.metric!==s.MOBILE_LANDSCAPE;this.viewer.navigator.setVisible(e),e?this.$navigator.show():this.$navigator.hide()},t}(o);return a}),define("extensions/uv-seadragon-extension/SearchResultRect",["require","exports"],function(e,t){var i=function(){function e(e){this.index=e.resource.resultIndex;var t=e.on.match(/.*xywh=(\d*),(\d*),(\d*),(\d*)/);this.x=t[1],this.y=t[2],this.width=t[3],this.height=t[4]}return e}();return i}),define("extensions/uv-seadragon-extension/SearchResult",["require","exports","./SearchResultRect"],function(e,t,i){var n=function(){function e(e,t){this.rects=[],this.canvasIndex=t.getCanvasIndexById(e.on.match(/(.*)#/)[1]),this.addRect(e)}return e.prototype.addRect=function(e){var t=new i(e);this.rects.push(t),this.rects.sort(function(e,t){return e.index-t.index})},e}();return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/SettingsDialogue",["require","exports","../../modules/uv-dialogues-module/SettingsDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("settingsDialogue"),e.prototype.create.call(this),this.$navigatorEnabled=$(''),this.$scroll.append(this.$navigatorEnabled),this.$navigatorEnabledCheckbox=$(''),this.$navigatorEnabled.append(this.$navigatorEnabledCheckbox),this.$navigatorEnabledLabel=$('"),this.$navigatorEnabled.append(this.$navigatorEnabledLabel),this.$pagingEnabled=$(''),this.$scroll.append(this.$pagingEnabled),this.$pagingEnabledCheckbox=$(''),this.$pagingEnabled.append(this.$pagingEnabledCheckbox),this.$pagingEnabledLabel=$('"),this.$pagingEnabled.append(this.$pagingEnabledLabel),this.$preserveViewport=$(''),this.$scroll.append(this.$preserveViewport),this.$preserveViewportCheckbox=$(''),this.$preserveViewport.append(this.$preserveViewportCheckbox),this.$preserveViewportLabel=$('"),this.$preserveViewport.append(this.$preserveViewportLabel),this.$navigatorEnabledCheckbox.change(function(){var e={};t.$navigatorEnabledCheckbox.is(":checked")?e.navigatorEnabled=!0:e.navigatorEnabled=!1,t.updateSettings(e)}),this.$pagingEnabledCheckbox.change(function(){var e={};t.$pagingEnabledCheckbox.is(":checked")?e.pagingEnabled=!0:e.pagingEnabled=!1,t.updateSettings(e)}),this.$preserveViewportCheckbox.change(function(){var e={};t.$preserveViewportCheckbox.is(":checked")?e.preserveViewport=!0:e.preserveViewport=!1,t.updateSettings(e)})},t.prototype.open=function(){e.prototype.open.call(this);var t=this.getSettings();t.navigatorEnabled?this.$navigatorEnabledCheckbox.prop("checked",!0):this.$navigatorEnabledCheckbox.removeAttr("checked"),this.extension.helper.isPagingAvailable()?t.pagingEnabled?this.$pagingEnabledCheckbox.prop("checked",!0):this.$pagingEnabledCheckbox.removeAttr("checked"):this.$pagingEnabled.hide(),t.preserveViewport?this.$preserveViewportCheckbox.prop("checked",!0):this.$preserveViewportCheckbox.removeAttr("checked")},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/ShareDialogue",["require","exports","../../modules/uv-dialogues-module/ShareDialogue","./Commands"],function(e,t,i,n){var o=function(e){function t(t){var i=this;e.call(this,t),$.subscribe(n.SEADRAGON_OPEN,function(){i.update()}),$.subscribe(n.SEADRAGON_ANIMATION_FINISH,function(){i.update()})}return __extends(t,e),t.prototype.create=function(){this.setConfig("shareDialogue"),e.prototype.create.call(this)},t.prototype.update=function(){e.prototype.update.call(this);var t=this.extension.getViewerBounds(),i=this.extension.getViewerRotation();this.code=this.extension.getEmbedScript(this.options.embedTemplate,this.currentWidth,this.currentHeight,t,i),this.$code.val(this.code)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/Extension",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-shared-module/BaseExtension","../../modules/uv-shared-module/Bookmark","./Commands","../../modules/uv-contentleftpanel-module/ContentLeftPanel","./CroppedImageDimensions","./DownloadDialogue","../../modules/uv-dialogues-module/ExternalContentDialogue","../../modules/uv-searchfooterpanel-module/FooterPanel","../../modules/uv-dialogues-module/HelpDialogue","../../modules/uv-shared-module/Metrics","../../modules/uv-osdmobilefooterpanel-module/MobileFooter","./Mode","../../modules/uv-dialogues-module/MoreInfoDialogue","../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel","../../modules/uv-multiselectdialogue-module/MultiSelectDialogue","./MultiSelectionArgs","../../modules/uv-pagingheaderpanel-module/PagingHeaderPanel","../../Params","../../modules/uv-shared-module/Point","../../modules/uv-seadragoncenterpanel-module/SeadragonCenterPanel","./SearchResult","./SettingsDialogue","./ShareDialogue","../../modules/uv-shared-module/Shell"],function(e,t,i,n,o,s,r,a,l,h,u,c,p,d,g,f,m,v,b,E,w,y,x,S,C,I,T){var D=Utils.Measurements.Size,O=function(e){function t(t){e.call(this,t),this.currentRotation=0,this.iiifImageUriTemplate="{0}/{1}/{2}/{3}/{4}/{5}.jpg",this.searchResults=[]}return __extends(t,e),t.prototype.create=function(t){var n=this;e.prototype.create.call(this,t);$.subscribe(i.METRIC_CHANGED,function(){if(n.metric===p.MOBILE_LANDSCAPE){var e={};e.pagingEnabled=!1,n.updateSettings(e),$.publish(i.UPDATE_SETTINGS),T.$rightPanel.hide()}else T.$rightPanel.show()}),$.subscribe(s.CLEAR_SEARCH,function(e){n.triggerSocket(s.CLEAR_SEARCH)}),$.subscribe(i.DOWN_ARROW,function(e){n.useArrowKeysToNavigate()||n.centerPanel.setFocus()}),$.subscribe(i.END,function(e){n.viewPage(n.helper.getLastPageIndex())}),$.subscribe(s.FIRST,function(e){n.triggerSocket(s.FIRST),n.viewPage(n.helper.getFirstPageIndex())}),$.subscribe(s.GALLERY_DECREASE_SIZE,function(e){n.triggerSocket(s.GALLERY_DECREASE_SIZE)}),$.subscribe(s.GALLERY_INCREASE_SIZE,function(e){n.triggerSocket(s.GALLERY_INCREASE_SIZE)}),$.subscribe(s.GALLERY_THUMB_SELECTED,function(e){n.triggerSocket(s.GALLERY_THUMB_SELECTED)}),$.subscribe(i.HOME,function(e){n.viewPage(n.helper.getFirstPageIndex())}),$.subscribe(s.IMAGE_SEARCH,function(e,t){n.triggerSocket(s.IMAGE_SEARCH,t),n.viewPage(t)}),$.subscribe(s.LAST,function(e){n.triggerSocket(s.LAST),n.viewPage(n.helper.getLastPageIndex())}),$.subscribe(i.LEFT_ARROW,function(e){n.useArrowKeysToNavigate()?n.viewPage(n.getPrevPageIndex()):n.centerPanel.setFocus()}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_START,function(e){n.metric!==p.MOBILE_LANDSCAPE&&T.$rightPanel.show()}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_FINISH,function(e){T.$centerPanel.show(),n.resize()}),$.subscribe(i.LEFTPANEL_EXPAND_FULL_START,function(e){T.$centerPanel.hide(),T.$rightPanel.hide()}),$.subscribe(i.MINUS,function(e){n.centerPanel.setFocus()}),$.subscribe(s.MODE_CHANGED,function(e,t){n.triggerSocket(s.MODE_CHANGED,t),n.mode=new g(t);var o=n.getSettings();$.publish(i.SETTINGS_CHANGED,[o])}),$.subscribe(s.MULTISELECTION_MADE,function(e,t){var i=new b;i.manifestUri=n.helper.iiifResourceUri,i.allCanvases=t.length===n.helper.getCanvases().length,i.canvases=t,i.format=n.config.options.multiSelectionMimeType,i.sequence=n.helper.getCurrentSequence().id,n.triggerSocket(s.MULTISELECTION_MADE,i)}),$.subscribe(s.NEXT,function(e){n.triggerSocket(s.NEXT),n.viewPage(n.getNextPageIndex())}),$.subscribe(s.NEXT_SEARCH_RESULT,function(){n.triggerSocket(s.NEXT_SEARCH_RESULT),n.nextSearchResult()}),$.subscribe(s.OPEN_THUMBS_VIEW,function(e){n.triggerSocket(s.OPEN_THUMBS_VIEW)}),$.subscribe(s.OPEN_TREE_VIEW,function(e){n.triggerSocket(s.OPEN_TREE_VIEW)}),$.subscribe(i.PAGE_DOWN,function(e){n.viewPage(n.getNextPageIndex())}),$.subscribe(s.PAGE_SEARCH,function(e,t){n.triggerSocket(s.PAGE_SEARCH,t),n.viewLabel(t)}),$.subscribe(i.PAGE_UP,function(e){n.viewPage(n.getPrevPageIndex())}),$.subscribe(s.PAGING_TOGGLED,function(e,t){n.triggerSocket(s.PAGING_TOGGLED,t)}),$.subscribe(i.PLUS,function(e){n.centerPanel.setFocus()}),$.subscribe(s.PREV,function(e){n.triggerSocket(s.PREV),n.viewPage(n.getPrevPageIndex())}),$.subscribe(s.PREV_SEARCH_RESULT,function(){n.triggerSocket(s.PREV_SEARCH_RESULT),n.prevSearchResult()}),$.subscribe(s.PRINT,function(){n.print()}),$.subscribe(i.RIGHT_ARROW,function(e){n.useArrowKeysToNavigate()?n.viewPage(n.getNextPageIndex()):n.centerPanel.setFocus()}),$.subscribe(s.SEADRAGON_ANIMATION,function(){n.triggerSocket(s.SEADRAGON_ANIMATION)}),$.subscribe(s.SEADRAGON_ANIMATION_FINISH,function(e,t){n.centerPanel&&n.centerPanel.currentBounds&&n.setParam(w.zoom,n.centerPanel.serialiseBounds(n.centerPanel.currentBounds));var i=n.helper.getCurrentCanvas();n.triggerSocket(s.CURRENT_VIEW_URI,{cropUri:n.getCroppedImageUri(i,n.getViewer()),fullUri:n.getConfinedImageUri(i,i.getWidth())})}),$.subscribe(s.SEADRAGON_ANIMATION_START,function(){n.triggerSocket(s.SEADRAGON_ANIMATION_START)}),$.subscribe(s.SEADRAGON_OPEN,function(){n.useArrowKeysToNavigate()||n.centerPanel.setFocus()}),$.subscribe(s.SEADRAGON_RESIZE,function(){n.triggerSocket(s.SEADRAGON_RESIZE)}),$.subscribe(s.SEADRAGON_ROTATION,function(e,t){n.triggerSocket(s.SEADRAGON_ROTATION),n.currentRotation=t,n.setParam(w.rotation,t)}),$.subscribe(s.SEARCH,function(e,t){
-n.triggerSocket(s.SEARCH,t),n.searchWithin(t)}),$.subscribe(s.SEARCH_PREVIEW_FINISH,function(e){n.triggerSocket(s.SEARCH_PREVIEW_FINISH)}),$.subscribe(s.SEARCH_PREVIEW_START,function(e){n.triggerSocket(s.SEARCH_PREVIEW_START)}),$.subscribe(s.SEARCH_RESULTS,function(e,t){n.triggerSocket(s.SEARCH_RESULTS,t)}),$.subscribe(s.SEARCH_RESULTS_EMPTY,function(e){n.triggerSocket(s.SEARCH_RESULTS_EMPTY)}),$.subscribe(i.THUMB_SELECTED,function(e,t){n.viewPage(t.index)}),$.subscribe(s.TREE_NODE_SELECTED,function(e,t){n.triggerSocket(s.TREE_NODE_SELECTED,t.data.path),n.treeNodeSelected(t)}),$.subscribe(i.UP_ARROW,function(e){n.useArrowKeysToNavigate()||n.centerPanel.setFocus()}),$.subscribe(i.UPDATE_SETTINGS,function(e){n.viewPage(n.helper.canvasIndex,!0);var t=n.getSettings();$.publish(i.SETTINGS_CHANGED,[t])}),$.subscribe(s.VIEW_PAGE,function(e,t){n.triggerSocket(s.VIEW_PAGE,t),n.viewPage(t)}),Utils.Async.waitFor(function(){return n.centerPanel&&n.centerPanel.isCreated},function(){n.checkForSearchParam(),n.checkForRotationParam()})},t.prototype.createModules=function(){e.prototype.createModules.call(this),this.isHeaderPanelEnabled()?this.headerPanel=new E(T.$headerPanel):T.$headerPanel.hide(),this.isLeftPanelEnabled()?this.leftPanel=new r(T.$leftPanel):T.$leftPanel.hide(),this.centerPanel=new x(T.$centerPanel),this.isRightPanelEnabled()?this.rightPanel=new m(T.$rightPanel):T.$rightPanel.hide(),this.isFooterPanelEnabled()?(this.footerPanel=new u(T.$footerPanel),this.mobileFooterPanel=new d(T.$mobileFooterPanel)):T.$footerPanel.hide(),this.$helpDialogue=$(''),T.$overlays.append(this.$helpDialogue),this.helpDialogue=new c(this.$helpDialogue),this.$moreInfoDialogue=$(''),T.$overlays.append(this.$moreInfoDialogue),this.moreInfoDialogue=new f(this.$moreInfoDialogue),this.$multiSelectDialogue=$(''),T.$overlays.append(this.$multiSelectDialogue),this.multiSelectDialogue=new v(this.$multiSelectDialogue),this.$shareDialogue=$(''),T.$overlays.append(this.$shareDialogue),this.shareDialogue=new I(this.$shareDialogue),this.$downloadDialogue=$(''),T.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new l(this.$downloadDialogue),this.$settingsDialogue=$(''),T.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new C(this.$settingsDialogue),this.$externalContentDialogue=$(''),T.$overlays.append(this.$externalContentDialogue),this.externalContentDialogue=new h(this.$externalContentDialogue),this.isHeaderPanelEnabled()&&this.headerPanel.init(),this.isLeftPanelEnabled()&&this.leftPanel.init(),this.isRightPanelEnabled()&&this.rightPanel.init(),this.isFooterPanelEnabled()&&this.footerPanel.init()},t.prototype.checkForSearchParam=function(){if(this.isDeepLinkingEnabled()){var e=this.getParam(w.highlight);e&&(e.replace(/\+/g," ").replace(/"/g,""),$.publish(s.SEARCH,[e]))}},t.prototype.checkForRotationParam=function(){if(this.isDeepLinkingEnabled()){var e=Number(this.getParam(w.rotation));e&&$.publish(s.SEADRAGON_ROTATION,[e])}},t.prototype.viewPage=function(e,t){if(-1!==e){if(this.helper.isCanvasIndexOutOfRange(e)&&(this.showMessage(this.config.content.canvasIndexOutOfRange),e=0),this.isPagingSettingEnabled()&&!t){var i=this.getPagedIndices(e);if(i.contains(this.helper.canvasIndex))return void this.viewCanvas(e)}this.viewCanvas(e)}},t.prototype.getViewer=function(){return this.centerPanel.viewer},t.prototype.getMode=function(){if(this.mode)return this.mode;switch(this.helper.getManifestType().toString()){case manifesto.ManifestType.monograph().toString():return g.page;case manifesto.ManifestType.manuscript().toString():return g.page;default:return g.image}},t.prototype.getViewerBounds=function(){if(!this.centerPanel)return null;var e=this.centerPanel.getBounds();return e?this.centerPanel.serialiseBounds(e):""},t.prototype.getViewerRotation=function(){return this.centerPanel?this.currentRotation:null},t.prototype.viewRange=function(e){var t=this.helper.getRangeByPath(e);if(t){var i=t.getCanvasIds()[0],n=this.helper.getCanvasIndexById(i);this.viewPage(n)}},t.prototype.viewLabel=function(e){if(!e)return this.showMessage(this.config.modules.genericDialogue.content.emptyValue),void $.publish(i.CANVAS_INDEX_CHANGE_FAILED);var t=this.helper.getCanvasIndexByLabel(e);-1!=t?this.viewPage(t):(this.showMessage(this.config.modules.genericDialogue.content.pageNotFound),$.publish(i.CANVAS_INDEX_CHANGE_FAILED))},t.prototype.treeNodeSelected=function(e){var t=e.data;if(t.type)switch(t.type){case manifesto.IIIFResourceType.manifest().toString():this.viewManifest(t);break;case manifesto.IIIFResourceType.collection().toString():this.viewCollection(t);break;default:this.viewRange(t.path)}},t.prototype.clearSearch=function(){this.searchResults=[],this.viewPage(this.helper.canvasIndex)},t.prototype.prevSearchResult=function(){for(var e=this.searchResults.length-1;e>=0;e--){var t=this.searchResults[e];if(t.canvasIndexthis.helper.canvasIndex){this.viewPage(t.canvasIndex);break}}},t.prototype.bookmark=function(){e.prototype.bookmark.call(this);var t=this.helper.getCurrentCanvas(),n=new o;n.index=this.helper.canvasIndex,n.label=Manifesto.TranslationCollection.getValue(t.getLabel()),n.path=this.getCroppedImageUri(t,this.getViewer()),n.thumb=t.getCanonicalImageUri(this.config.options.bookmarkThumbWidth),n.title=this.helper.getLabel(),n.trackingLabel=window.trackingLabel,n.type=manifesto.ElementType.image().toString(),this.triggerSocket(i.BOOKMARK,n)},t.prototype.print=function(){window.print(),this.triggerSocket(s.PRINT)},t.prototype.getCroppedImageDimensions=function(e,t){if(!t)return null;if(!t.viewport)return null;if(!e.getHeight()||!e.getWidth())return null;var i=t.viewport.getBounds(!0),n=new a,o=Math.floor(i.width),s=Math.floor(i.height),r=Math.floor(i.x),l=Math.floor(i.y);r+o>e.getWidth()?o=e.getWidth()-r:0>r&&(o+=r,r=0),l+s>e.getHeight()?s=e.getHeight()-l:0>l&&(s+=l,l=0),o=Math.min(o,e.getWidth()),s=Math.min(s,e.getHeight());var h=o,u=s;if(e.externalResource.data&&e.externalResource.data.profile[1]){var c=new D(e.externalResource.data.profile[1].maxWidth,e.externalResource.data.profile[1].maxHeight);if(!_.isUndefined(c.width)&&!_.isUndefined(c.height)){if(o>c.width){var p=c.width;s=Math.round(p*(s/o)),o=p}if(s>c.height){var d=c.height;o=Math.round(o/s*d),s=d}}}return n.region=new D(h,u),n.regionPos=new y(r,l),n.size=new D(o,s),n},t.prototype.getCroppedImageUri=function(e,t){if(!t)return null;if(!t.viewport)return null;var i=this.getCroppedImageDimensions(e,t),n=this.getImageBaseUri(e),o=this.getImageId(e),s=i.regionPos.x+","+i.regionPos.y+","+i.region.width+","+i.region.height,r=i.size.width+","+i.size.height,a=this.getViewerRotation(),l="default";return String.format(this.iiifImageUriTemplate,n,o,s,r,a,l)},t.prototype.getConfinedImageDimensions=function(e,t){var i=new D(0,0);i.width=t;var n=Math.normalise(t,0,e.getWidth());return i.height=Math.floor(e.getHeight()*n),i},t.prototype.getConfinedImageUri=function(e,t){var i=this.getImageBaseUri(e),n=this.getImageId(e),o="full",s=this.getConfinedImageDimensions(e,t),r=s.width+","+s.height,a=this.getViewerRotation(),l="default",h=String.format(this.iiifImageUriTemplate,i,n,o,r,a,l);return h},t.prototype.getImageId=function(e){var t=this.getInfoUri(e);return t=t.substr(0,t.lastIndexOf("/")),t.substr(t.lastIndexOf("/")+1)},t.prototype.getImageBaseUri=function(e){var t=this.getInfoUri(e);return t=t.substr(0,t.lastIndexOf("/")),t.substr(0,t.lastIndexOf("/"))},t.prototype.getInfoUri=function(e){var t,i=e.getImages();if(i&&i.length)for(var n=i[0],o=n.getResource(),s=o.getServices(),r=0;rthis.helper.getTotalCanvases()-1?-1:t},t.prototype.getAutoCompleteService=function(){var e=this.helper.getSearchWithinService();return e?e.getService(manifesto.ServiceProfile.autoComplete()):null},t.prototype.getAutoCompleteUri=function(){var e=this.getAutoCompleteService();return e?e.id+"?q={0}":null},t.prototype.getSearchWithinServiceUri=function(){var e=this.helper.getSearchWithinService();if(!e)return null;var t=e.id;return t+="?q={0}"},t.prototype.searchWithin=function(e){var t=this;this.doSearchWithin(e,function(i){i.resources&&i.resources.length?($.publish(s.SEARCH_RESULTS,[{terms:e,results:i}]),t.viewPage(t.helper.canvasIndex,!0)):t.showMessage(t.config.modules.genericDialogue.content.noMatches,function(){$.publish(s.SEARCH_RESULTS_EMPTY)})})},t.prototype.doSearchWithin=function(e,t){var i=this,n=this.getSearchWithinServiceUri();n=String.format(n,e),$.getJSON(n,function(e){e.resources&&e.resources.length&&i.parseSearchWithinResults(e),t(e)})},t.prototype.parseSearchWithinResults=function(e){this.searchResults=[];for(var t=0;t'),this.$content.prepend(this.$navigation),this.$zoomInButton=$(''),this.$navigation.append(this.$zoomInButton),this.$zoomOutButton=$(''),this.$navigation.append(this.$zoomOutButton),this.$viewport=$(''),this.$content.prepend(this.$viewport),this.title=this.extension.helper.getLabel(),this.updateAttribution(),this.$zoomInButton.on("click",function(e){e.preventDefault(),t.viewport.zoomIn()}),this.$zoomOutButton.on("click",function(e){e.preventDefault(),t.viewport.zoomOut()})},t.prototype.openMedia=function(e){var t=this;this.extension.getExternalResources(e).then(function(){t.$viewport.empty();var e=t.extension.helper.getCurrentCanvas();t.viewport=virtex.create({element:"#content .virtex",object:e.id,showStats:t.options.showStats}),t.resize()})},t.prototype.resize=function(){e.prototype.resize.call(this),this.$title.ellipsisFill(this.title),this.$viewport.width(this.$content.width()),this.$viewport.height(this.$content.height())},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-virtex-extension/Extension",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-shared-module/BaseExtension","../../modules/uv-shared-module/Bookmark","../../modules/uv-contentleftpanel-module/ContentLeftPanel","./DownloadDialogue","./ShareDialogue","../../modules/uv-shared-module/FooterPanel","../../modules/uv-shared-module/HeaderPanel","../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel","./SettingsDialogue","../../modules/uv-shared-module/Shell","../../modules/uv-virtexcenterpanel-module/VirtexCenterPanel"],function(e,t,i,n,o,s,r,a,l,h,u,c,p,d){var g=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(t){var n=this;e.prototype.create.call(this,t),$.subscribe(i.THUMB_SELECTED,function(e,t){n.viewCanvas(t)})},t.prototype.createModules=function(){e.prototype.createModules.call(this),this.isHeaderPanelEnabled()?this.headerPanel=new h(p.$headerPanel):p.$headerPanel.hide(),this.isLeftPanelEnabled()&&(this.leftPanel=new s(p.$leftPanel)),this.centerPanel=new d(p.$centerPanel),this.isRightPanelEnabled()&&(this.rightPanel=new u(p.$rightPanel)),this.isFooterPanelEnabled()?this.footerPanel=new l(p.$footerPanel):p.$footerPanel.hide(),this.$downloadDialogue=$(''),p.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new r(this.$downloadDialogue),this.$shareDialogue=$(''),p.$overlays.append(this.$shareDialogue),this.shareDialogue=new a(this.$shareDialogue),this.$settingsDialogue=$(''),p.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new c(this.$settingsDialogue),this.isLeftPanelEnabled()?this.leftPanel.init():p.$leftPanel.hide(),this.isRightPanelEnabled()?this.rightPanel.init():p.$rightPanel.hide()},t.prototype.isLeftPanelEnabled=function(){return Utils.Bools.getBool(this.config.options.leftPanelEnabled,!0)&&(this.helper.isMultiCanvas()||this.helper.isMultiSequence())},t.prototype.bookmark=function(){e.prototype.bookmark.call(this);var t=this.helper.getCurrentCanvas(),n=new o;n.index=this.helper.canvasIndex,n.label=Manifesto.TranslationCollection.getValue(t.getLabel()),n.path=this.getBookmarkUri(),n.thumb=t.getProperty("thumbnail"),n.title=this.helper.getLabel(),n.trackingLabel=window.trackingLabel,n.type=manifesto.ElementType.physicalobject().toString(),this.triggerSocket(i.BOOKMARK,n)},t.prototype.getEmbedScript=function(e,t,i){var n=this.config.uri||"",o=String.format(e,this.getSerializedLocales(),n,this.helper.iiifResourceUri,this.helper.collectionIndex,this.helper.manifestIndex,this.helper.sequenceIndex,this.helper.canvasIndex,t,i,this.embedScriptUri);return o},t}(n);return g}),"function"==typeof jQuery&&define("jquery",[],function(){return jQuery}),require(["Bootstrapper","extensions/uv-mediaelement-extension/Extension","extensions/uv-pdf-extension/Extension","extensions/uv-seadragon-extension/Extension","extensions/uv-virtex-extension/Extension"],function(e,t,i,n,o){var s={};s[manifesto.ElementType.canvas().toString()]={type:n,name:"uv-seadragon-extension"},s[manifesto.ElementType.movingimage().toString()]={type:t,name:"uv-mediaelement-extension"},s[manifesto.ElementType.physicalobject().toString()]={type:o,name:"uv-virtex-extension"},s[manifesto.ElementType.sound().toString()]={type:t,name:"uv-mediaelement-extension"},s[manifesto.RenderingFormat.pdf().toString()]={type:i,name:"uv-pdf-extension"};var r=new e(s);r.bootstrap()}),define("app",function(){});
\ No newline at end of file
diff --git a/dist/uv-1.8.39/lib/bundle.min.js b/dist/uv-1.8.39/lib/bundle.min.js
deleted file mode 100644
index 6f7988441..000000000
--- a/dist/uv-1.8.39/lib/bundle.min.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function Sanitize(){var i,options;for(options=arguments[0]||{},this.config={},this.config.elements=options.elements?options.elements:[],this.config.attributes=options.attributes?options.attributes:{},this.config.attributes[Sanitize.ALL]=this.config.attributes[Sanitize.ALL]?this.config.attributes[Sanitize.ALL]:[],this.config.allow_comments=!!options.allow_comments&&options.allow_comments,this.allowed_elements={},this.config.protocols=options.protocols?options.protocols:{},this.config.add_attributes=options.add_attributes?options.add_attributes:{},this.dom=options.dom?options.dom:document,i=0;i0;)this.current_element.removeChild(this.current_element.firstChild);parent_element.appendChild(this.current_element)}if(!this.config.remove_all_contents&&!this.config.remove_element_contents[name])for(i=0;ichars){var trimmedText=text.substr(0,chars);trimmedText=trimmedText.substr(0,Math.min(trimmedText.length,trimmedText.lastIndexOf(" "))),$self.empty().html(trimmedText+"…")}})},$.fn.ellipsisFill=function(text){var textPassed=!0;return text||(textPassed=!1),this.each(function(){var $self=$(this);if(textPassed||(text=$self.text()),$self.empty(),$self.spanElem=$(''),$self.append($self.spanElem),$self.css("overflow","hidden"),$self.spanElem.css("white-space","nowrap"),$self.spanElem.html(text),$self.spanElem.width()>$self.width())for(var lastText;$self.spanElem.width()>$self.width();){var t=$self.spanElem.html();if(t=t.substring(0,t.lastIndexOf(" "))+"…",t===lastText)break;$self.spanElem.html(t),lastText=t}})},$.fn.ellipsisFixed=function(chars,buttonText){return this.each(function(){var $self=$(this),text=$self.text();$self.empty();var $span=$(""),$ellipsis=$('');if(buttonText?$ellipsis.html(buttonText):$ellipsis.html("…"),$ellipsis.click(function(e){e.preventDefault();var $this=$(this);$span.html(text),$this.remove()}),text.length>chars){var trimmedText=text.substr(0,chars);trimmedText=trimmedText.substr(0,Math.min(trimmedText.length,trimmedText.lastIndexOf(" "))),$span.html(trimmedText+" "),$span.append($ellipsis)}else $span.html(text);$self.append($span)})},$.fn.ellipsisHtmlFixed=function(chars,cb){return this.each(function(){var $self=$(this),expandedText=$self.html(),$trunc=$("");if($trunc.html($self.html().replace(/\s[\s]*/g," ").trim()),!($trunc.text().trim().length<=chars)){for(;$trunc.text().trim().length>chars;)$trunc.removeLastWord(chars);var collapsedText=$trunc.html(),expanded=!1;$self.toggle=function(){$self.empty();var $toggleButton=$('');expanded?($self.html(expandedText+" "),$toggleButton.text("less"),$toggleButton.toggleClass("less","more")):($self.html(collapsedText+"… "),$toggleButton.text("more"),$toggleButton.toggleClass("more","less")),$toggleButton.one("click",function(e){e.preventDefault(),$self.toggle()}),expanded=!expanded,$self.append($toggleButton),cb&&cb()},$self.toggle()}})},$.fn.enable=function(){return this.each(function(){var $this=$(this);$this.removeClass("disabled"),$this.attr("tabindex",$this.data("tabindex"))})},$.fn.equaliseHeight=function(reset,average){var maxHeight=-1,minHeight=Number.MAX_VALUE,heights=[];reset&&this.each(function(){$(this).height("auto")}),this.each(function(){var currentHeight=$(this).height();heights.push(currentHeight),maxHeight=maxHeight>currentHeight?maxHeight:currentHeight,minHeight=minHeightmaxTabIndex&&(maxTabIndex=tabIndex,$elementWithGreatestTabIndex=$el)}),$elementWithGreatestTabIndex},$.fn.horizontalMargins=function(){var $self=$(this);return parseInt($self.css("marginLeft"))+parseInt($self.css("marginRight"))},$.fn.leftMargin=function(){var $self=$(this);return parseInt($self.css("marginLeft"))},$.fn.rightMargin=function(){var $self=$(this);return parseInt($self.css("marginRight"))},$.fn.horizontalPadding=function(){var $self=$(this);return parseInt($self.css("paddingLeft"))+parseInt($self.css("paddingRight"))},$.fn.leftPadding=function(){var $self=$(this);return parseInt($self.css("paddingLeft"))},$.fn.rightPadding=function(){var $self=$(this);return parseInt($self.css("paddingRight"))},$.mlp={x:0,y:0},$(documentHandler),$.fn.ismouseover=function(overThis){var result=!1;return this.eq(0).each(function(){var $current=$(this).is("iframe")?$(this).contents().find("body"):$(this),offset=$current.offset();result=offset.left<=$.mlp.x&&offset.left+$current.outerWidth()>$.mlp.x&&offset.top<=$.mlp.y&&offset.top+$current.outerHeight()>$.mlp.y}),result};var timer,on=$.fn.on;$.fn.on=function(){var args=Array.apply(null,arguments),last=args[args.length-1];if(isNaN(last)||1===last&&args.pop())return on.apply(this,args);var delay=args.pop(),fn=args.pop();return args.push(function(){var self=this,params=arguments;clearTimeout(timer),timer=setTimeout(function(){fn.apply(self,params)},delay)}),on.apply(this,args)},$.fn.onEnter=function(cb){return this.each(function(){var $this=$(this);$this.on("keyup",function(e){13===e.keyCode&&(e.preventDefault(),cb())})})},$.fn.onPressed=function(cb){return this.each(function(){var $this=$(this);$this.on("touchstart click",function(e){e.preventDefault(),cb(e)}),$this.on("keyup",function(e){13===e.keyCode&&(e.preventDefault(),cb(e))})})},$.fn.removeLastWord=function(chars,depth){return"undefined"==typeof chars&&(chars=8),"undefined"==typeof depth&&(depth=0),this.each(function(){var $self=$(this);if($self.contents().length>0){var $lastElement=$self.contents().last();if(3===$lastElement[0].nodeType){var words=$lastElement.text().trim().split(" ");if(words.length>1)return words.splice(words.length-1,1),void($lastElement[0].data=words.join(" "));if("undefined"!=typeof chars&&1===words.length&&words[0].length>chars)return void($lastElement[0].data=words.join(" ").substring(0,chars))}$lastElement.removeLastWord(chars,depth+1)}else depth>0&&$self.remove()})},$.fn.swapClass=function(removeClass,addClass){return this.each(function(){$(this).removeClass(removeClass).addClass(addClass)})},$.fn.targetBlank=function(){return this.each(function(){$(this).find("a").prop("target","_blank")})},$.fn.toggleClass=function(class1,class2){return this.each(function(){var $this=$(this);$this.hasClass(class1)?$(this).removeClass(class1).addClass(class2):$(this).removeClass(class2).addClass(class1)})},$.fn.toggleExpandText=function(chars,lessText,moreText,cb){return this.each(function(){var $self=$(this),expandedText=$self.html();if(!(chars>expandedText.length)){var expanded=!1,collapsedText=expandedText.substr(0,chars);collapsedText=collapsedText.substr(0,Math.min(collapsedText.length,collapsedText.lastIndexOf(" "))),$self.toggle=function(){$self.empty();var $toggleButton=$('');expanded?($self.html(expandedText+" "),$toggleButton.text(lessText),$toggleButton.toggleClass("less","more")):($self.html(collapsedText+" "),$toggleButton.text(moreText),$toggleButton.toggleClass("more","less")),$toggleButton.one("click",function(e){e.preventDefault(),$self.toggle()}),expanded=!expanded,$self.append($toggleButton),cb&&cb()},$self.toggle()}})},$.fn.toggleExpandTextByLines=function(lines,lessText,moreText,cb){return this.each(function(){for(var $self=$(this),expandedText=$self.html(),$buttonPad=$('… morepad'),stringsByLine=[expandedText],lastHeight=$self.height();$self.text().length>0;){$self.removeLastWord();var html=$self.html();$self.append($buttonPad),lastHeight>$self.height()&&(stringsByLine.unshift(html),lastHeight=$self.height()),$buttonPad.remove()}if(stringsByLine.length<=lines)return void $self.html(expandedText);var collapsedText=stringsByLine[lines-1],expanded=!1;$self.toggle=function(){$self.empty();var $toggleButton=$('');expanded?($self.html(expandedText+" "),$toggleButton.text(lessText),$toggleButton.toggleClass("less","more")):($self.html(collapsedText+"… "),$toggleButton.text(moreText),$toggleButton.toggleClass("more","less")),$toggleButton.one("click",function(e){e.preventDefault(),$self.toggle()}),expanded=!expanded,$self.append($toggleButton),cb&&cb()},$self.toggle()})},$.fn.toggleText=function(text1,text2){return this.each(function(){var $this=$(this);$this.text()===text1?$(this).text(text2):$(this).text(text1)})},$.fn.updateAttr=function(attrName,oldVal,newVal){return this.each(function(){var $this=$(this),attr=$this.attr(attrName);attr&&0===attr.indexOf(oldVal)&&(attr=attr.replace(oldVal,newVal),$this.attr(attrName,attr))})},$.fn.verticalMargins=function(){var $self=$(this);return parseInt($self.css("marginTop"))+parseInt($self.css("marginBottom"))},$.fn.verticalPadding=function(){var $self=$(this);return parseInt($self.css("paddingTop"))+parseInt($self.css("paddingBottom"))}}(jQuery),!function(a){var b=null;a.initPubSub=function(){b=a({})},a.subscribe=function(){b||a.initPubSub(),b.on.apply(b,arguments)},a.unsubscribe=function(){b||a.initPubSub(),b.off.apply(b,arguments)},a.disposePubSub=function(){b=null},a.publish=function(){b||a.initPubSub(),b.trigger.apply(b,arguments)}}(jQuery);var KeyCodes;!function(KeyCodes){var KeyDown;!function(KeyDown){KeyDown.Backspace=8,KeyDown.Tab=9,KeyDown.Enter=13,KeyDown.Shift=16,KeyDown.Ctrl=17,KeyDown.Alt=18,KeyDown.PauseBreak=19,KeyDown.CapsLock=20,KeyDown.Escape=27,KeyDown.Spacebar=32,KeyDown.PageUp=33,KeyDown.PageDown=34,KeyDown.End=35,KeyDown.Home=36,KeyDown.LeftArrow=37,KeyDown.UpArrow=38,KeyDown.RightArrow=39,KeyDown.DownArrow=40,KeyDown.PrintScrn=44,KeyDown.Insert=45,KeyDown.Delete=46,KeyDown.Zero=48,KeyDown.One=49,KeyDown.Two=50,KeyDown.Three=51,KeyDown.Four=52,KeyDown.Five=53,KeyDown.Six=54,KeyDown.Seven=55,KeyDown.Eight=56,KeyDown.Nine=57,KeyDown.a=65,KeyDown.b=66,KeyDown.c=67,KeyDown.d=68,KeyDown.e=69,KeyDown.f=70,KeyDown.g=71,KeyDown.h=72,KeyDown.i=73,KeyDown.j=74,KeyDown.k=75,KeyDown.l=76,KeyDown.m=77,KeyDown.n=78,KeyDown.o=79,KeyDown.p=80,KeyDown.q=81,KeyDown.r=82,KeyDown.s=83,KeyDown.t=84,KeyDown.u=85,KeyDown.v=86,KeyDown.w=87,KeyDown.x=88,KeyDown.y=89,KeyDown.z=90,KeyDown.LeftWindowKey=91,KeyDown.RightWindowKey=92,KeyDown.SelectKey=93,KeyDown.Numpad0=96,KeyDown.Numpad1=97,KeyDown.Numpad2=98,KeyDown.Numpad3=99,KeyDown.Numpad4=100,KeyDown.Numpad5=101,KeyDown.Numpad6=102,KeyDown.Numpad7=103,KeyDown.Numpad8=104,KeyDown.Numpad9=105,KeyDown.Multiply=106,KeyDown.NumpadPlus=107,KeyDown.NumpadMinus=109,KeyDown.DecimalPoint=110,KeyDown.Divide=111,KeyDown.F1=112,KeyDown.F2=113,KeyDown.F3=114,KeyDown.F4=115,KeyDown.F5=116,KeyDown.F6=117,KeyDown.F7=118,KeyDown.F8=119,KeyDown.F9=120,KeyDown.F10=121,KeyDown.F11=122,KeyDown.F12=123,KeyDown.NumLock=144,
-KeyDown.ScrollLock=145,KeyDown.Semicolon=186,KeyDown.Equals=187,KeyDown.Comma=188,KeyDown.LessThan=188,KeyDown.Dash=189,KeyDown.Period=190,KeyDown.GreaterThan=190,KeyDown.ForwardSlash=191,KeyDown.QuestionMark=191,KeyDown.GraveAccent=192,KeyDown.Tilde=192,KeyDown.OpenCurlyBracket=219,KeyDown.OpenSquareBracket=219,KeyDown.BackSlash=220,KeyDown.VerticalPipe=220,KeyDown.CloseCurlyBracket=221,KeyDown.CloseSquareBracket=221,KeyDown.Quote=222,KeyDown.CommandFF=224}(KeyDown=KeyCodes.KeyDown||(KeyCodes.KeyDown={}))}(KeyCodes||(KeyCodes={}));var KeyCodes;!function(KeyCodes){var KeyPress;!function(KeyPress){KeyPress.Backspace=8,KeyPress.Enter=13,KeyPress.Spacebar=32,KeyPress.Hash=35,KeyPress.GraveAccent=39,KeyPress.ForwardSlash=32,KeyPress.Asterisk=42,KeyPress.Plus=43,KeyPress.Comma=44,KeyPress.Minus=45,KeyPress.Period=46,KeyPress.ForwardSlash=47,KeyPress.Zero=48,KeyPress.One=49,KeyPress.Two=50,KeyPress.Three=51,KeyPress.Four=52,KeyPress.Five=53,KeyPress.Six=54,KeyPress.Seven=55,KeyPress.Eight=56,KeyPress.Nine=57,KeyPress.Colon=58,KeyPress.Semicolon=59,KeyPress.LessThan=60,KeyPress.Equals=61,KeyPress.GreaterThan=62,KeyPress.QuestionMark=63,KeyPress.At=64,KeyPress.OpenSquareBracket=91,KeyPress.BackSlash=92,KeyPress.CloseSquareBracket=93,KeyPress.a=97,KeyPress.b=98,KeyPress.c=99,KeyPress.d=100,KeyPress.e=101,KeyPress.f=102,KeyPress.g=103,KeyPress.h=104,KeyPress.i=105,KeyPress.j=106,KeyPress.k=107,KeyPress.l=108,KeyPress.m=109,KeyPress.n=110,KeyPress.o=111,KeyPress.p=112,KeyPress.q=113,KeyPress.r=114,KeyPress.s=115,KeyPress.t=116,KeyPress.u=117,KeyPress.v=118,KeyPress.w=119,KeyPress.x=120,KeyPress.y=121,KeyPress.z=122,KeyPress.OpenCurlyBracket=123,KeyPress.VerticalPipe=124,KeyPress.CloseCurlyBracket=125,KeyPress.Tilde=126}(KeyPress=KeyCodes.KeyPress||(KeyCodes.KeyPress={}))}(KeyCodes||(KeyCodes={}));var exjs;!function(r){r.version="0.4.0"}(exjs||(exjs={}));var exjs;!function(r){Array.isArray||(Array.isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)})}(exjs||(exjs={}));var exjs;!function(r){var e=function(){function r(){}return r.prototype.getEnumerator=function(){return{moveNext:function(){return!1},current:void 0}},r.prototype.aggregate=function(r,e){for(var t=r,n=this.getEnumerator();n.moveNext();)t=e(t,n.current);return t},r.prototype.all=function(r){if(r)for(var e=this.getEnumerator(),t=0;e.moveNext();){if(!r(e.current,t))return!1;t++}return!0},r.prototype.any=function(r){for(var e=this.getEnumerator(),t=0;e.moveNext();){if(!r)return!0;if(r(e.current,t))return!0;t++}return!1},r.prototype.append=function(){for(var r=[],e=0;e-1&&(this._keys.splice(e,1),this._values.splice(e,1),this.size--,!0)},e.prototype.entries=function(){var e=this;return r.range(0,this.size).select(function(r){return[e._keys[r],e._values[r]]})},e.prototype.forEach=function(r,e){null==e&&(e=this);for(var t=0,n=this._keys,o=this._values,u=n.length;u>t;t++)r.call(e,o[t],n[t],this)},e.prototype.get=function(r){var e=this._keys.indexOf(r);return this._values[e]},e.prototype.has=function(r){return this._keys.indexOf(r)>-1},e.prototype.keys=function(){return this._keys.en()},e.prototype.set=function(r,e){var t=this._keys.indexOf(r);t>-1?this._values[t]=e:(this._keys.push(r),this._values.push(e),this.size++)},e.prototype.values=function(){return this._values.en()},e}();r.Map3=e,r.Enumerable.prototype.toMap=function(r,t){for(var n=new e,o=this.getEnumerator();o.moveNext();)n.set(r(o.current),t(o.current));return n},r.List&&(r.List.prototype.toMap=r.Enumerable.prototype.toMap)}(exjs||(exjs={})),function(r){r.Map||(r.Map=exjs.Map3)}("undefined"==typeof window?global:window);var exjs;!function(r){function e(e){var t=new r.Enumerable;return t.getEnumerator=function(){var r={current:void 0,moveNext:function(){return e(r)}};return r},t}r.anonymous=e}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n,o=1,u={current:void 0,moveNext:function(){if(2>o){if(t=t||r.getEnumerator(),t.moveNext())return u.current=t.current,!0;o++}return n=n||e.en().getEnumerator(),n.moveNext()?(u.current=n.current,!0):(u.current=void 0,!1)}};return u}r.Enumerable.prototype.append=function(){for(var t=this,n=[],o=0;o=e?(t.current=void 0,!1):(t.current=r[n],!0)},t}function t(){return this&&Array.isArray(this)?new n(this):new r.Enumerable}var n=function(r){function t(t){r.call(this),this.getEnumerator=function(){return e(t)},this.toArray=function(){return t.slice(0)}}return __extends(t,r),t}(r.Enumerable);try{Object.defineProperty(Array.prototype,"en",{value:t,enumerable:!1,writable:!1,configurable:!1})}catch(o){Array.prototype.en=t}}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=!1,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),o.current=void 0,t.moveNext()?(o.current=t.current,!0):!n&&(n=!0,t=e.getEnumerator(),!!t.moveNext()&&(o.current=t.current,!0))}};return o}r.Enumerable.prototype.concat=function(t){var n=this,o=t instanceof Array?t.en():t,u=new r.Enumerable;return u.getEnumerator=function(){return e(n,o)},u},r.List&&(r.List.prototype.concat=r.Enumerable.prototype.concat)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=[],o={current:void 0,moveNext:function(){if(t||(t=r.getEnumerator()),o.current=void 0,!e){for(;t.moveNext();)if(n.indexOf(t.current)<0)return n.push(o.current=t.current),!0;return!1}for(;t.moveNext();){for(var u=0,i=n.length,c=!1;i>u&&!c;u++)c=!!e(n[u],t.current);if(!c)return n.push(o.current=t.current),!0}return!1}};return o}r.Enumerable.prototype.distinct=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.List&&(r.List.prototype.distinct=r.Enumerable.prototype.distinct)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e,t){t=t||function(r,e){return r===e};var n,o={current:void 0,moveNext:function(){for(n||(n=r.getEnumerator()),o.current=void 0;n.moveNext();){for(var u=!1,i=e.getEnumerator();i.moveNext()&&!u;)u=t(n.current,i.current);if(!u)return o.current=n.current,!0}return!1}};return o}r.Enumerable.prototype.except=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.except=r.Enumerable.prototype.except)}(exjs||(exjs={})),Function.prototype.fromJson=function(r,e){function t(r,e){if(null==r)return r;if(e instanceof Function)return e(r);if(e instanceof Array){if(e=e[0],!(e instanceof Function&&r instanceof Array))return;for(var t=[],n=0;n-1)){var i=t(r[u],this.$jsonMappings[u]);void 0!==i&&(n[u]=i,o.push(u))}for(var u in r)o.indexOf(u)>-1||(n[u]=r[u]);return n};var exjs;!function(r){function e(r,e,n){var o,u=0,i={current:void 0,moveNext:function(){return o||(o=t(r,e,n)),i.current=void 0,!(u>=o.length)&&(i.current=o[u],u++,!0)}};return i}function t(r,e,t){t=t||function(r,e){return r===e};for(var o,u=[],i=[],c=r.getEnumerator();c.moveNext();){o=e(c.current);for(var a=-1,p=0,s=i.length;s>p;p++)if(t(o,i[p])){a=p;break}var f;0>a?(i.push(o),u.push(f=new n(o))):f=u[a],f._add(c.current)}return u}var n=function(r){function e(e){var t=this;r.call(this),this.key=e,this._arr=[],this.getEnumerator=function(){return t._arr.en().getEnumerator()}}return __extends(e,r),e.prototype._add=function(r){this._arr.push(r)},e}(r.Enumerable);r.Enumerable.prototype.groupBy=function(t,n){var o=this,u=new r.Enumerable;return u.getEnumerator=function(){return e(o,t,n)},u},r.List&&(r.List.prototype.groupBy=r.Enumerable.prototype.groupBy)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t,n){n=n||function(r,e){return r===e};var o,u={current:void 0,moveNext:function(){for(o||(o=r.en(e).distinct().getEnumerator()),u.current=void 0;o.moveNext();){for(var i=!1,c=t.getEnumerator();c.moveNext()&&!i;)i=n(o.current,c.current);if(i)return u.current=o.current,!0}return!1}};return u}r.Enumerable.prototype.intersect=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.intersect=r.Enumerable.prototype.intersect)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t,n,o,u,i){i=i||function(r,e){return r===e};var c,a,p=0,s={current:void 0,moveNext:function(){if(s.current=void 0,!c){if(c=e.getEnumerator(),!c.moveNext())return!1;a=r.en(t).toArray()}var f;do{for(;p=e?(t.current=void 0,!1):(t.current=r[n],!0)},t},t.prototype.remove=function(r){return this.removeWhere(function(e){return e===r}).any()},t.prototype.removeWhere=function(r){for(var e,t=[],n=this.length-1;n>=0;n--)e=this[n],r(e,n)===!0&&(this.splice(n,1),t.push(e));return t.en().reverse()}}(exjs||(exjs={}));var exjs;!function(r){function e(r,e,n,o){return new t(r,e,n,o)}var t=function(e){function t(r,t,n,o){e.call(this),this.Source=r,o=o||function(r,e){return r>e?1:e>r?-1:0};var u=n===!0?-1:1;this.Sorter=function(r,e){return u*o(t(r),t(e))}}return __extends(t,e),t.prototype.getEnumerator=function(){var e,t=this.Source,n=this.Sorter,o=0,u={current:void 0,moveNext:function(){return e||(e=r.en(t).toArray(),e.sort(n)),u.current=void 0,!(o>=e.length)&&(u.current=e[o],o++,!0)}};return u},t.prototype.thenBy=function(r,e){return new n(this,r,(!1),e)},t.prototype.thenByDescending=function(r,e){return new n(this,r,(!0),e)},t}(r.Enumerable),n=function(r){function e(e,t,n,o){r.call(this,e,t,n,o);var u=e.Sorter,i=this.Sorter;this.Sorter=function(r,e){return u(r,e)||i(r,e)}}return __extends(e,r),e}(t),o=r.Enumerable.prototype;o.orderBy=function(r,t){return e(this,r,!1,t)},o.orderByDescending=function(r,t){return e(this,r,!0,t)},r.List&&(r.List.prototype.orderBy=r.Enumerable.prototype.orderBy,r.List.prototype.orderByDescending=r.Enumerable.prototype.orderByDescending)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n,o=1,u={current:void 0,moveNext:function(){if(2>o){if(t=t||e.en().getEnumerator(),t.moveNext())return u.current=t.current,!0;o++}return n=n||r.getEnumerator(),n.moveNext()?(u.current=n.current,!0):(u.current=void 0,!1)}};return u}r.Enumerable.prototype.prepend=function(){for(var t=this,n=[],o=0;o=e)&&(o.current=n,!0)}};return o}function t(t,n,o){if(t=t||0,n=n||0,t>n)throw new Error("Start cannot be greater than end.");null==o&&(o=1);var u=new r.Enumerable;return u.getEnumerator=function(){return e(t,n,o)},u}r.range=t}(exjs||(exjs={}));var exjs;!function(r){function e(e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.en(e).toArray(),n=t.length),n--,o.current=t[n],n>=0}};return o}r.Enumerable.prototype.reverse=function(){var t=this,n=new r.Enumerable;return n.getEnumerator=function(){return e(t)},n},r.List&&(r.List.prototype.reverse=r.Enumerable.prototype.reverse)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){if(e=e||0,0===e)return Math.round(r);var t=Math.pow(10,e);return Math.round(r*t)/t}r.round=e}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),!!t.moveNext()&&(o.current=e(t.current,n),n++,!0)}};return o}function t(e,t){var n,o,u={current:void 0,moveNext:function(){for(u.current=void 0,n||(n=e.getEnumerator());!o||!o.moveNext();){if(!n.moveNext())return!1;o=r.selectorEnumerator(t(n.current))}return u.current=o.current,!0}};return u}r.Enumerable.prototype.select=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.selectMany=function(e){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return t(n,e)},o},r.List&&(r.List.prototype.select=r.Enumerable.prototype.select,r.List.prototype.selectMany=r.Enumerable.prototype.selectMany)}(exjs||(exjs={}));var exjs;!function(r){function e(r){return Array.isArray(r)?r.en().getEnumerator():null!=r&&"function"==typeof r.getEnumerator?r.getEnumerator():null}r.selectorEnumerator=e}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n={current:void 0,moveNext:function(){if(!t){t=r.getEnumerator();for(var o=0;e>o;o++)if(!t.moveNext())return!1}return t.moveNext()?(n.current=t.current,!0):(n.current=void 0,!1)}};return n}function t(r,e){var t,n={current:void 0,moveNext:function(){if(!t){t=r.getEnumerator();for(var o=0;t.moveNext();o++)if(!e(n.current=t.current,o))return!0;return n.current=void 0,!1}return t.moveNext()?(n.current=t.current,!0):(n.current=void 0,!1)}};return n}r.Enumerable.prototype.skip=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.skipWhile=function(e){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return t(n,e)},o},r.List&&(r.List.prototype.skip=r.Enumerable.prototype.skip,r.List.prototype.skipWhile=r.Enumerable.prototype.skipWhile)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),n++,!(n>e)&&(o.current=void 0,!!t.moveNext()&&(o.current=t.current,!0))}};return o}function t(r,e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),t.moveNext()&&e(t.current,n)?(n++,o.current=t.current,!0):(o.current=void 0,!1)}};return o}r.Enumerable.prototype.take=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.takeWhile=function(e){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return t(n,e)},o},r.List&&(r.List.prototype.take=r.Enumerable.prototype.take,r.List.prototype.takeWhile=r.Enumerable.prototype.takeWhile)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t){var n,o=!1,u=[],i={current:void 0,moveNext:function(){if(o){if(null==n)return!1;u.push(n),n=r.selectorEnumerator(t(i.current))}else n=e.getEnumerator(),o=!0;for(;!(n&&n.moveNext()||u.length<1);)n=u.pop();return i.current=null==n?void 0:n.current,void 0!==i.current}};return i}function t(e,t,n){var o,u=!1,i=[],c={current:void 0,moveNext:function(){if(u){if(null==o)return!1;i.push(o),o=r.selectorEnumerator(t(c.current))}else o=e.getEnumerator(),u=!0;do{for(;!(o&&o.moveNext()||i.length<1);)o=i.pop();c.current=null==o?void 0:o.current}while(n(c.current));return void 0!==c.current}};return c}r.Enumerable.prototype.traverse=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.traverseUnique=function(e,n){var o=this,u=[],i=new r.Enumerable;return n?i.getEnumerator=function(){return t(o,e,function(r){return!!u.some(function(e){return n(r,e)})||(u.push(r),!1)})}:i.getEnumerator=function(){return t(o,e,function(r){return u.indexOf(r)>-1||(u.push(r),!1)})},i},r.List&&(r.List.prototype.traverse=r.Enumerable.prototype.traverse,r.List.prototype.traverseUnique=r.Enumerable.prototype.traverseUnique)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t,n){n=n||function(r,e){return r===e};var o,u,i=[],c={current:void 0,moveNext:function(){if(o||(o=r.en(e).distinct().getEnumerator()),c.current=void 0,!u&&o.moveNext())return i.push(c.current=o.current),!0;for(u=u||r.en(t).distinct().getEnumerator();u.moveNext();){for(var a=0,p=!1,s=i.length;s>a&&!p;a++)p=n(i[a],u.current);if(!p)return c.current=u.current,!0}return!1}};return c}r.Enumerable.prototype.union=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.union=r.Enumerable.prototype.union)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n={current:void 0,moveNext:function(){t||(t=r.getEnumerator());for(var o;t.moveNext();)if(e(o=t.current))return n.current=o,!0;return!1}};return n}r.Enumerable.prototype.where=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.List&&(r.List.prototype.where=r.Enumerable.prototype.where)}(exjs||(exjs={}));var exjs;!function(r){function e(e){var n=new r.Enumerable;return n.getEnumerator=function(){return t(e)},n}function t(r){var e=r.getEnumerator(),t={current:void 0,moveNext:void 0};return t.moveNext=function(){return e.moveNext()?(t.current=e.current,!0):(t.current=void 0,!1)},t}r.en=e}(exjs||(exjs={}));var ex=exjs.en,exjs;!function(r){function e(r,e,t){var n,o,u={current:void 0,moveNext:function(){return n||(n=r.getEnumerator()),o||(o=e.getEnumerator()),u.current=void 0,!(!n.moveNext()||!o.moveNext())&&(u.current=t(n.current,o.current),!0)}};return u}r.Enumerable.prototype.zip=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.zip=r.Enumerable.prototype.zip)}(exjs||(exjs={})),Array.prototype.clone||(Array.prototype.clone=function(){return this.slice(0)}),Array.prototype.contains||(Array.prototype.contains=function(val){return this.indexOf(val)!==-1}),Array.prototype.indexOf||(Array.prototype.indexOf=function(searchElement,fromIndex){var i=fromIndex||0,j=this.length;for(i;i>>0;if("function"!=typeof callback)throw new TypeError(callback+" is not a function");for(arguments.length>1&&(T=thisArg),A=new Array(len),k=0;k-1&&this.splice(index,1)},Array.prototype.removeAt=function(index){this.splice(index,1)},Math.clamp=function(value,min,max){return Math.min(Math.max(value,min),max)},Math.constrain=function(value,low,high){return Math.clamp(value,low,high)},Math.degreesToRadians=function(degrees){return Math.TAU*(degrees/360)},Math.distanceBetween=function(x1,y1,x2,y2){return Math.sqrt(Math.sq(x2-x1)+Math.sq(y2-y1))},Math.lerp=function(start,stop,amount){return start+(stop-start)*amount},Math.mag=function(a,b,c){return Math.sqrt(a*a+b*b+c*c)},Math.map=function(value,start1,stop1,start2,stop2){return start2+(stop2-start2)*((value-start1)/(stop1-start1))},Math.median=function(values){values.sort(function(a,b){return a-b});var half=Math.floor(values.length/2);return values.length%2?values[half]:(values[half-1]+values[half])/2},Math.normalise=function(num,min,max){return(num-min)/(max-min)},Math.radiansToDegrees=function(radians){return 360*radians/Math.TAU},Math.randomBetween=function(low,high){return high||(high=low,low=0),low>=high?low:low+(high-low)*Math.random()},Math.roundToDecimalPlace=function(num,dec){return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec)},Math.sq=function(n){return n*n},Math.TAU=2*Math.PI,Number.prototype.isInteger||(Number.prototype.isInteger=function(){return this%1===0}),"function"!=typeof Object.create&&(Object.create=function(o,props){function F(){}F.prototype=o;var result=new F;if("object"==typeof props)for(var prop in props)props.hasOwnProperty(prop)&&(result[prop]=props[prop].value);return result}),Object.keys||(Object.keys=function(){var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!{toString:null}.propertyIsEnumerable("toString"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;return function(obj){if("object"!=typeof obj&&"function"!=typeof obj||null===obj)throw new TypeError("Object.keys called on non-object");var result=[];for(var prop in obj)hasOwnProperty.call(obj,prop)&&result.push(prop);if(hasDontEnumBug)for(var i=0;i=65&&c<=90?"_"+s.toLowerCase():"__"+("000"+c.toString(16)).slice(-4)})},String.prototype.toFileName=function(){return this.replace(/[^a-z0-9]/gi,"_").toLowerCase()},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}),String.prototype.utf8_to_b64=function(){return window.btoa(unescape(encodeURIComponent(this)))};var HTTPStatusCode;!function(HTTPStatusCode){HTTPStatusCode.CONTINUE=100,HTTPStatusCode.SWITCHING_PROTOCOLS=101,HTTPStatusCode.PROCESSING=102,HTTPStatusCode.OK=200,HTTPStatusCode.CREATED=201,HTTPStatusCode.ACCEPTED=202,HTTPStatusCode.NON_AUTHORITATIVE_INFORMATION=203,HTTPStatusCode.NO_CONTENT=204,HTTPStatusCode.RESET_CONTENT=205,HTTPStatusCode.PARTIAL_CONTENT=206,HTTPStatusCode.MULTI_STATUS=207,HTTPStatusCode.MULTIPLE_CHOICES=300,HTTPStatusCode.MOVED_PERMANENTLY=301,HTTPStatusCode.MOVED_TEMPORARILY=302,HTTPStatusCode.SEE_OTHER=303,HTTPStatusCode.NOT_MODIFIED=304,HTTPStatusCode.USE_PROXY=305,HTTPStatusCode.TEMPORARY_REDIRECT=307,HTTPStatusCode.BAD_REQUEST=400,HTTPStatusCode.UNAUTHORIZED=401,HTTPStatusCode.PAYMENT_REQUIRED=402,HTTPStatusCode.FORBIDDEN=403,HTTPStatusCode.NOT_FOUND=404,HTTPStatusCode.METHOD_NOT_ALLOWED=405,HTTPStatusCode.NOT_ACCEPTABLE=406,HTTPStatusCode.PROXY_AUTHENTICATION_REQUIRED=407,HTTPStatusCode.REQUEST_TIME_OUT=408,HTTPStatusCode.CONFLICT=409,HTTPStatusCode.GONE=410,HTTPStatusCode.LENGTH_REQUIRED=411,HTTPStatusCode.PRECONDITION_FAILED=412,HTTPStatusCode.REQUEST_ENTITY_TOO_LARGE=413,HTTPStatusCode.REQUEST_URI_TOO_LARGE=414,HTTPStatusCode.UNSUPPORTED_MEDIA_TYPE=415,HTTPStatusCode.REQUESTED_RANGE_NOT_SATISFIABLE=416,HTTPStatusCode.EXPECTATION_FAILED=417,HTTPStatusCode.IM_A_TEAPOT=418,HTTPStatusCode.UNPROCESSABLE_ENTITY=422,HTTPStatusCode.LOCKED=423,HTTPStatusCode.FAILED_DEPENDENCY=424,HTTPStatusCode.UNORDERED_COLLECTION=425,HTTPStatusCode.UPGRADE_REQUIRED=426,HTTPStatusCode.PRECONDITION_REQUIRED=428,HTTPStatusCode.TOO_MANY_REQUESTS=429,HTTPStatusCode.REQUEST_HEADER_FIELDS_TOO_LARGE=431,HTTPStatusCode.INTERNAL_SERVER_ERROR=500,HTTPStatusCode.NOT_IMPLEMENTED=501,HTTPStatusCode.BAD_GATEWAY=502,HTTPStatusCode.SERVICE_UNAVAILABLE=503,HTTPStatusCode.GATEWAY_TIME_OUT=504,HTTPStatusCode.HTTP_VERSION_NOT_SUPPORTED=505,
-HTTPStatusCode.VARIANT_ALSO_NEGOTIATES=506,HTTPStatusCode.INSUFFICIENT_STORAGE=507,HTTPStatusCode.BANDWIDTH_LIMIT_EXCEEDED=509,HTTPStatusCode.NOT_EXTENDED=510,HTTPStatusCode.NETWORK_AUTHENTICATION_REQUIRED=511}(HTTPStatusCode||(HTTPStatusCode={})),function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.manifesto=f()}}(function(){var define;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(quality="native");else{var images=this.getImages();if(images&&images.length){var firstImage=images[0],resource=firstImage.getResource(),services=resource.getServices();if(width||(width=resource.getWidth()),services.length){var service=services[0];id=service.id,quality=Manifesto.Utils.getImageQuality(service.getProfile())}}if(!id)return"undefined"==typeof this.__jsonld.thumbnail?null:this.__jsonld.thumbnail}size=width+",";var uri=[id,region,size,rotation,quality+".jpg"].join("/");return uri},Canvas.prototype.getImages=function(){var images=[];if(!this.__jsonld.images)return images;for(var i=0;i1},Manifest.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?new Manifesto.ViewingDirection(this.getProperty("viewingDirection")):Manifesto.ViewingDirection.LEFTTORIGHT},Manifest.prototype.getViewingHint=function(){return this.getProperty("viewingHint")?new Manifesto.ViewingHint(this.getProperty("viewingHint")):Manifesto.ViewingHint.EMPTY},Manifest}(Manifesto.IIIFResource);Manifesto.Manifest=Manifest}(Manifesto||(Manifesto={}));var Manifesto,__extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)};!function(Manifesto){var Collection=function(_super){function Collection(jsonld,options){_super.call(this,jsonld,options),this.members=[],this._collections=null,this._manifests=null,jsonld.__collection=this}return __extends(Collection,_super),Collection.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.members.en().where(function(m){return m.isCollection()}).toArray()},Collection.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.members.en().where(function(m){return m.isManifest()}).toArray()},Collection.prototype.getCollectionByIndex=function(collectionIndex){var collection=this.getCollections()[collectionIndex];return collection.options.index=collectionIndex,collection.load()},Collection.prototype.getManifestByIndex=function(manifestIndex){var manifest=this.getManifests()[manifestIndex];return manifest.options.index=manifestIndex,manifest.load()},Collection.prototype.getTotalCollections=function(){return this.getCollections().length},Collection.prototype.getTotalManifests=function(){return this.getManifests().length},Collection.prototype.getTotalMembers=function(){return this.members.length},Collection.prototype.getDefaultTree=function(){return _super.prototype.getDefaultTree.call(this),this.defaultTree.data.type=Manifesto.TreeNodeType.COLLECTION.toString(),this._parseManifests(this),this._parseCollections(this),Manifesto.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},Collection.prototype._parseManifests=function(parentCollection){if(parentCollection.getManifests()&&parentCollection.getManifests().length)for(var i=0;i=0;i--){var canvas=this.getCanvasByIndex(i),label=Manifesto.TranslationCollection.getValue(canvas.getLabel(),this.options.locale);if(alphanumeric){var regExp=/^[a-zA-Z0-9]*$/;if(regExp.test(label))return label}else if(label)return label}return this.options.defaultLabel},Sequence.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},Sequence.prototype.getNextPageIndex=function(canvasIndex,pagingEnabled){var index;if(pagingEnabled){var indices=this.getPagedIndices(canvasIndex);index=this.getViewingDirection().toString()===Manifesto.ViewingDirection.RIGHTTOLEFT.toString()?indices[0]+1:_last(indices)+1}else index=canvasIndex+1;return index>this.getLastPageIndex()?-1:index},Sequence.prototype.getPagedIndices=function(canvasIndex,pagingEnabled){var indices=[];return pagingEnabled?(indices=this.isFirstCanvas(canvasIndex)||this.isLastCanvas(canvasIndex)?[canvasIndex]:canvasIndex%2?[canvasIndex,canvasIndex+1]:[canvasIndex-1,canvasIndex],this.getViewingDirection().toString()===Manifesto.ViewingDirection.RIGHTTOLEFT.toString()&&(indices=indices.reverse())):indices.push(canvasIndex),indices},Sequence.prototype.getPrevPageIndex=function(canvasIndex,pagingEnabled){var index;if(pagingEnabled){var indices=this.getPagedIndices(canvasIndex);index=this.getViewingDirection().toString()===Manifesto.ViewingDirection.RIGHTTOLEFT.toString()?_last(indices)-1:indices[0]-1}else index=canvasIndex-1;return index},Sequence.prototype.getStartCanvasIndex=function(){var startCanvas=this.getStartCanvas();if(startCanvas)for(var i=0;ithis.getTotalCanvases()-1},Sequence.prototype.isFirstCanvas=function(canvasIndex){return 0===canvasIndex},Sequence.prototype.isLastCanvas=function(canvasIndex){return canvasIndex===this.getTotalCanvases()-1},Sequence.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},Sequence.prototype.isPagingEnabled=function(){return this.getViewingHint().toString()===Manifesto.ViewingHint.PAGED.toString()},Sequence.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2===0},Sequence}(Manifesto.ManifestResource);Manifesto.Sequence=Sequence}(Manifesto||(Manifesto={}));var Manifesto,_isString=require("lodash.isstring");!function(Manifesto){var Deserialiser=function(){function Deserialiser(){}return Deserialiser.parse=function(manifest,options){return this.parseJson(JSON.parse(manifest),options)},Deserialiser.parseJson=function(json,options){var resource;switch(options&&options.navDate&&!isNaN(options.navDate.getTime())&&(json.navDate=options.navDate.toString()),json["@type"]){case"sc:Collection":resource=this.parseCollection(json,options);break;case"sc:Manifest":resource=this.parseManifest(json,options);break;default:return null}return resource.isLoaded=!0,resource},Deserialiser.parseCollection=function(json,options){var collection=new Manifesto.Collection(json,options);return options?collection.index=options.index||0:collection.index=0,this.parseCollections(collection,options),this.parseManifests(collection,options),this.parseMembers(collection,options),collection},Deserialiser.parseCollections=function(collection,options){var children=collection.__jsonld.collections;if(children)for(var i=0;i0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===b64[len-2]?2:"="===b64[len-1]?1:0}function byteLength(b64){return 3*b64.length/4-placeHoldersCount(b64)}function toByteArray(b64){var i,j,l,tmp,placeHolders,arr,len=b64.length;placeHolders=placeHoldersCount(b64),arr=new Arr(3*len/4-placeHolders),l=placeHolders>0?len-4:len;var L=0;for(i=0,j=0;i>16&255,arr[L++]=tmp>>8&255,arr[L++]=255&tmp;return 2===placeHolders?(tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4,arr[L++]=255&tmp):1===placeHolders&&(tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2,arr[L++]=tmp>>8&255,arr[L++]=255&tmp),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[63&num]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i=start;ilen2?len2:i+maxChunkLength));return 1===extraBytes?(tmp=uint8[len-1],output+=lookup[tmp>>2],output+=lookup[tmp<<4&63],output+="=="):2===extraBytes&&(tmp=(uint8[len-2]<<8)+uint8[len-1],output+=lookup[tmp>>10],output+=lookup[tmp>>4&63],output+=lookup[tmp<<2&63],output+="="),parts.push(output),parts.join("")}exports.byteLength=byteLength,exports.toByteArray=toByteArray,exports.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;iMAX_LEN)throw new RangeError("size is too large");var enc=encoding,_fill=fill;void 0===_fill&&(enc=void 0,_fill=0);var buf=new Buffer(size);if("string"==typeof _fill)for(var fillBuf=new Buffer(_fill,enc),flen=fillBuf.length,i=-1;++iMAX_LEN)throw new RangeError("size is too large");return new Buffer(size)},exports.from=function(value,encodingOrOffset,length){if("function"==typeof Buffer.from&&(!global.Uint8Array||Uint8Array.from!==Buffer.from))return Buffer.from(value,encodingOrOffset,length);if("number"==typeof value)throw new TypeError('"value" argument must not be a number');if("string"==typeof value)return new Buffer(value,encodingOrOffset);if("undefined"!=typeof ArrayBuffer&&value instanceof ArrayBuffer){var offset=encodingOrOffset;if(1===arguments.length)return new Buffer(value);"undefined"==typeof offset&&(offset=0);var len=length;if("undefined"==typeof len&&(len=value.byteLength-offset),offset>=value.byteLength)throw new RangeError("'offset' is out of bounds");if(len>value.byteLength-offset)throw new RangeError("'length' is out of bounds");return new Buffer(value.slice(offset,offset+len))}if(Buffer.isBuffer(value)){var out=new Buffer(value.length);return value.copy(out,0,0,value.length),out}if(value){if(Array.isArray(value)||"undefined"!=typeof ArrayBuffer&&value.buffer instanceof ArrayBuffer||"length"in value)return new Buffer(value);if("Buffer"===value.type&&Array.isArray(value.data))return new Buffer(value.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},exports.allocUnsafeSlow=function(size){if("function"==typeof Buffer.allocUnsafeSlow)return Buffer.allocUnsafeSlow(size);if("number"!=typeof size)throw new TypeError("size must be a number");if(size>=MAX_LEN)throw new RangeError("size is too large");return new SlowBuffer(size)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:5}],5:[function(require,module,exports){(function(global){"use strict";function typedArraySupport(){try{var arr=new Uint8Array(1);return arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===arr.foo()&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(that,length){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(length){return+length!=length&&(length=0),Buffer.alloc(+length)}function byteLength(string,encoding){if(Buffer.isBuffer(string))return string.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer))return string.byteLength;"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":case void 0:return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if((void 0===start||start<0)&&(start=0),start>this.length)return"";if((void 0===end||end>this.length)&&(end=this.length),end<=0)return"";if(end>>>=0,start>>>=0,end<=start)return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(0===buffer.length)return-1;if("string"==typeof byteOffset?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,isNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0){if(!dir)return-1;byteOffset=0}if("string"==typeof val&&(val=Buffer.from(val,encoding)),Buffer.isBuffer(val))return 0===val.length?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if("number"==typeof val)return val=255&val,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){function read(buf,i){return 1===indexSize?buf[i]:buf.readUInt16BE(i*indexSize)}var indexSize=1,arrLength=arr.length,valLength=val.length;if(void 0!==encoding&&(encoding=String(encoding).toLowerCase(),"ucs2"===encoding||"ucs-2"===encoding||"utf16le"===encoding||"utf-16le"===encoding)){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;jremaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new TypeError("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;i239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;ilen)&&(end=len);for(var out="",i=start;ilength)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||valuebuf.length)throw new RangeError("Index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){value<0&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);i>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){value<0&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);i>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return n<16?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(codePoint<1114112))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isnan(val){return val!==val}var base64=require("base64-js"),ieee754=require("ieee754"),isArray=require("isarray");exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),exports.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(arr){return arr.__proto__=Buffer.prototype,arr},Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding)},Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)},Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)},Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),""},Buffer.prototype.compare=function(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target))throw new TypeError("Argument must be a Buffer");if(void 0===start&&(start=0),void 0===end&&(end=target?target.length:0),void 0===thisStart&&(thisStart=0),void 0===thisEnd&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;iremaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"latin1":case"binary":return latin1Write(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end0&&(mul*=256);)val+=this[offset+--byteLength]*mul;return val},Buffer.prototype.readUInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),this[offset]},Buffer.prototype.readUInt16LE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8},Buffer.prototype.readUInt16BE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]},Buffer.prototype.readUInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]},Buffer.prototype.readUInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])},Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?(255-this[offset]+1)*-1:this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,byteLength=0|byteLength,!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1,i=0;for(this[offset]=255&value;++i=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),this[offset]=255&value,offset+1},Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=255&value;++i>0)-sub&255;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)value<0&&0===sub&&0!==this[offset+i+1]&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),value<0&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end=this.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart=0;--i)target[i+targetStart]=this[i+start];else if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,end=void 0===end?this.length:end>>>0,val||(val=0);var i;if("number"==typeof val)for(i=start;i0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(position<0)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else if(listeners)for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;if(evlistener)return evlistener.length}return 0},EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type)}},{}],9:[function(require,module,exports){var http=require("http"),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(params,cb){return params||(params={}),params.scheme="https",params.protocol="https:",http.request.call(this,params,cb)}},{http:49}],10:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||0===value&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},{}],11:[function(require,module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},{}],12:[function(require,module,exports){function isBuffer(obj){return!!obj.constructor&&"function"==typeof obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)}function isSlowBuffer(obj){return"function"==typeof obj.readFloatLE&&"function"==typeof obj.slice&&isBuffer(obj.slice(0,0))}module.exports=function(obj){return null!=obj&&(isBuffer(obj)||isSlowBuffer(obj)||!!obj._isBuffer)}},{}],13:[function(require,module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},{}],14:[function(require,module,exports){function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);++indexlength?0:length+start),end=void 0===end||end>length?length:+end||0,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}var keys=require("lodash.keys"),MAX_SAFE_INTEGER=9007199254740991,baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor(),getLength=baseProperty("length");module.exports=baseEach},{"lodash.keys":31}],19:[function(require,module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function arraySome(array,predicate){for(var index=-1,length=array.length;++indexarrLength))return!1;for(;++index2?sources[length-2]:void 0,guard=length>2?sources[2]:void 0,thisArg=length>1?sources[length-1]:void 0;for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:void 0,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?void 0:customizer,
-length=1);++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}var reIsUint=/^\d+$/,MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=isIterateeCall},{}],24:[function(require,module,exports){(function(global){function checkGlobal(value){return value&&value.Object===Object?value:null}var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType?exports:void 0,freeModule=objectTypes[typeof module]&&module&&!module.nodeType?module:void 0,freeGlobal=checkGlobal(freeExports&&freeModule&&"object"==typeof global&&global),freeSelf=checkGlobal(objectTypes[typeof self]&&self),freeWindow=checkGlobal(objectTypes[typeof window]&&window),thisGlobal=checkGlobal(objectTypes[typeof this]&&this),root=freeGlobal||freeWindow!==(thisGlobal&&thisGlobal.window)&&freeWindow||freeSelf||thisGlobal||Function("return this")();module.exports=root}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],25:[function(require,module,exports){function assignWith(object,source,customizer){for(var index=-1,props=keys(source),length=props.length;++index=lower?number:lower)),number}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&objectToString.call(value)==symbolTag}function toInteger(value){if(!value)return 0===value?value:0;if(value=toNumber(value),value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER}var remainder=value%1;return value===value?remainder?value-remainder:value:0}function toNumber(value){if(isObject(value)){var other=isFunction(value.valueOf)?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toString(value){if("string"==typeof value)return value;if(null==value)return"";if(isSymbol(value))return Symbol?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function endsWith(string,target,position){string=toString(string),target="string"==typeof target?target:target+"";var length=string.length;return position=void 0===position?length:baseClamp(toInteger(position),0,length),position-=target.length,position>=0&&string.indexOf(target,position)==position}var root=require("lodash._root"),INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308,NAN=NaN,funcTag="[object Function]",genTag="[object GeneratorFunction]",symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=Symbol?symbolProto.toString:void 0;module.exports=endsWith},{"lodash._root":24}],27:[function(require,module,exports){function isArguments(value){return isArrayLikeObject(value)&&hasOwnProperty.call(value,"callee")&&(!propertyIsEnumerable.call(value,"callee")||objectToString.call(value)==argsTag)}function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",funcTag="[object Function]",genTag="[object GeneratorFunction]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,propertyIsEnumerable=objectProto.propertyIsEnumerable;module.exports=isArguments},{}],28:[function(require,module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function getNative(object,key){var value=null==object?void 0:object[key];return isNative(value)?value:void 0}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isFunction(value){return isObject(value)&&objToString.call(value)==funcTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isNative(value){return null!=value&&(isFunction(value)?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value))}var arrayTag="[object Array]",funcTag="[object Function]",reIsHostCtor=/^\[object .+?Constructor\]$/,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nativeIsArray=getNative(Array,"isArray"),MAX_SAFE_INTEGER=9007199254740991,isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag};module.exports=isArray},{}],29:[function(require,module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}var stringTag="[object String]",objectProto=Object.prototype,objToString=objectProto.toString;module.exports=isString},{}],30:[function(require,module,exports){function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObjectLike(value){return!!value&&"object"==typeof value}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objectToString.call(value)]}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var objectProto=Object.prototype,objectToString=objectProto.toString;module.exports=isTypedArray},{}],31:[function(require,module,exports){function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function isArrayLike(value){return null!=value&&isLength(getLength(value))}function isIndex(value,length){return value="number"==typeof value||reIsUint.test(value)?+value:-1,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,allowIndexes=!!length&&isLength(length)&&(isArray(object)||isArguments(object)),index=-1,result=[];++index0;++index-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;return iteratee=baseCallback(iteratee,thisArg,3),func(collection,iteratee)}var arrayMap=require("lodash._arraymap"),baseCallback=require("lodash._basecallback"),baseEach=require("lodash._baseeach"),isArray=require("lodash.isarray"),MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=map},{"lodash._arraymap":14,"lodash._basecallback":16,"lodash._baseeach":18,"lodash.isarray":28}],34:[function(require,module,exports){function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function pairs(object){object=toObject(object);for(var index=-1,props=keys(object),length=props.length,result=Array(length);++index1)for(var i=1;i1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");var labels=string.split("."),encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;counter=55296&&value<=56319&&counter65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return codePoint-48<10?codePoint-22:codePoint-65<26?codePoint-65:codePoint-97<26?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),basic<0&&(basic=0),j=0;j=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;index=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(digitfloor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;j=n&¤tValuefloor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;jmaxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(q= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;if(punycode={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return punycode});else if(freeExports&&freeModule)if(module.exports==freeExports)freeModule.exports=punycode;else for(key in punycode)punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);else root.punycode=punycode}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],39:[function(require,module,exports){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;i=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)}},{}],40:[function(require,module,exports){"use strict";function map(xs,f){if(xs.map)return xs.map(f);for(var res=[],i=0;i0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var _e=new Error("stream.unshift() after end event");stream.emit("error",_e)}else{var skipAdd;!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk),skipAdd=!state.objectMode&&0===chunk.length),addToFront||(state.reading=!1),skipAdd||(state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream))),maybeReadMore(stream,state)}else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return n<=0||0===state.length&&state.ended?0:state.objectMode?1:n!==n?state.flowing&&state.length?state.buffer.head.data.length:state.length:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n<=state.length?n:state.ended?state.length:(state.needReadable=!0,0))}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?processNextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,processNextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=state.length?(ret=state.decoder?state.buffer.join(""):1===state.buffer.length?state.buffer.head.data:state.buffer.concat(state.length),state.buffer.clear()):ret=fromListPartial(n,state.buffer,state.decoder),ret}function fromListPartial(n,list,hasStrings){var ret;return nstr.length?str.length:n;if(ret+=nb===str.length?str:str.slice(0,n),n-=nb,0===n){nb===str.length?(++c,p.next?list.head=p.next:list.head=list.tail=null):(list.head=p,p.data=str.slice(nb));break}++c}return list.length-=c,ret}function copyFromBuffer(n,list){var ret=bufferShim.allocUnsafe(n),p=list.head,c=1;for(p.data.copy(ret),n-=p.data.length;p=p.next;){var buf=p.data,nb=n>buf.length?buf.length:n;if(buf.copy(ret,ret.length-n,0,nb),n-=nb,0===n){nb===buf.length?(++c,p.next?list.head=p.next:list.head=list.tail=null):(list.head=p,p.data=buf.slice(nb));break}++c}return list.length-=c,ret}function endReadable(stream){var state=stream._readableState;if(state.length>0)throw new Error('"endReadable()" called on non-empty stream');state.endEmitted||(state.ended=!0,processNextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function forEach(xs,f){for(var i=0,l=xs.length;i=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,null===ret?(state.needReadable=!0,n=0):state.length-=n,0===state.length&&(state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&endReadable(this)),null!==ret&&this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata"),increasedAwaitDrain=!1;var ret=dest.write(chunk);!1!==ret||increasedAwaitDrain||((1===state.pipesCount&&state.pipes===dest||state.pipesCount>1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,increasedAwaitDrain=!0),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?processNextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1,increasedAwaitDrain=!1;return src.on("data",ondata),prependListener(dest,"error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var _i=0;_i-1?setImmediate:processNextTick;Writable.WritableState=WritableState;var util=require("core-util-is");util.inherits=require("inherits");var Stream,internalUtil={deprecate:require("util-deprecate")};!function(){try{Stream=require("stream")}catch(_){}finally{Stream||(Stream=require("events").EventEmitter)}}();var Buffer=require("buffer").Buffer,bufferShim=require("buffer-shims");util.inherits(Writable,Stream);var Duplex;WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(_){}}();var Duplex;Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState,ret=!1;return"function"==typeof encoding&&(cb=encoding,encoding=null),Buffer.isBuffer(chunk)?encoding="buffer":encoding||(encoding=state.defaultEncoding),"function"!=typeof cb&&(cb=nop),state.ended?writeAfterEnd(this,cb):validChunk(this,state,chunk,cb)&&(state.pendingcb++,ret=writeOrBuffer(this,state,chunk,encoding,cb)),ret},Writable.prototype.cork=function(){var state=this._writableState;state.corked++},Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,state.writing||state.corked||state.finished||state.bufferProcessing||!state.bufferedRequest||clearBuffer(this,state))},Writable.prototype.setDefaultEncoding=function(encoding){if("string"==typeof encoding&&(encoding=encoding.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((encoding+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+encoding);return this._writableState.defaultEncoding=encoding,this},Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"==typeof chunk?(cb=chunk,chunk=null,encoding=null):"function"==typeof encoding&&(cb=encoding,encoding=null),null!==chunk&&void 0!==chunk&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||state.finished||endWritable(this,state,cb)}}).call(this,require("_process"))},{"./_stream_duplex":42,_process:37,buffer:5,"buffer-shims":4,"core-util-is":7,events:8,inherits:11,"process-nextick-args":36,"util-deprecate":57}],47:[function(require,module,exports){"use strict";function BufferList(){this.head=null,this.tail=null,this.length=0}var bufferShim=(require("buffer").Buffer,require("buffer-shims"));module.exports=BufferList,BufferList.prototype.push=function(v){var entry={data:v,next:null};this.length>0?this.tail.next=entry:this.head=entry,this.tail=entry,++this.length},BufferList.prototype.unshift=function(v){var entry={data:v,next:this.head};0===this.length&&(this.tail=entry),this.head=entry,++this.length},BufferList.prototype.shift=function(){if(0!==this.length){var ret=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,ret}},BufferList.prototype.clear=function(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret},BufferList.prototype.concat=function(n){if(0===this.length)return bufferShim.alloc(0);if(1===this.length)return this.head.data;for(var ret=bufferShim.allocUnsafe(n>>>0),p=this.head,i=0;p;)p.data.copy(ret,i),i+=p.data.length,p=p.next;return ret}},{buffer:5,"buffer-shims":4}],48:[function(require,module,exports){(function(process){var Stream=function(){try{return require("stream")}catch(_){}}();exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=Stream||exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js"),!process.browser&&"disable"===process.env.READABLE_STREAM&&Stream&&(module.exports=Stream)}).call(this,require("_process"))},{"./lib/_stream_duplex.js":42,"./lib/_stream_passthrough.js":43,"./lib/_stream_readable.js":44,"./lib/_stream_transform.js":45,"./lib/_stream_writable.js":46,_process:37}],49:[function(require,module,exports){(function(global){var ClientRequest=require("./lib/request"),extend=require("xtend"),statusCodes=require("builtin-status-codes"),url=require("url"),http=exports;http.request=function(opts,cb){opts="string"==typeof opts?url.parse(opts):extend(opts);var defaultProtocol=global.location.protocol.search(/^https?:$/)===-1?"http:":"",protocol=opts.protocol||defaultProtocol,host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&host.indexOf(":")!==-1&&(host="["+host+"]"),opts.url=(host?protocol+"//"+host:"")+(port?":"+port:"")+path,opts.method=(opts.method||"GET").toUpperCase(),opts.headers=opts.headers||{};var req=new ClientRequest(opts);return cb&&req.on("response",cb),req},http.get=function(opts,cb){var req=http.request(opts,cb);return req.end(),req},http.Agent=function(){},http.Agent.defaultMaxSockets=4,http.STATUS_CODES=statusCodes,http.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":51,"builtin-status-codes":6,url:55,xtend:58}],50:[function(require,module,exports){(function(global){function checkTypeSupport(type){try{return xhr.responseType=type,xhr.responseType===type}catch(e){}return!1}function isFunction(value){return"function"==typeof value}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableStream),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var xhr=new global.XMLHttpRequest;xhr.open("GET",global.location.host?"/":"https://example.com");var haveArrayBuffer="undefined"!=typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=haveArrayBuffer&&checkTypeSupport("arraybuffer"),exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer"),exports.overrideMimeType=isFunction(xhr.overrideMimeType),exports.vbArray=isFunction(global.VBArray),xhr=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(require,module,exports){(function(process,global,Buffer){function decideMode(preferBinary,useFetch){return capability.fetch&&useFetch?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&preferBinary?"arraybuffer":capability.vbArray&&preferBinary?"text:vbarray":"text"}function statusValid(xhr){try{var status=xhr.status;return null!==status&&0!==status}catch(e){return!1}}var capability=require("./capability"),inherits=require("inherits"),response=require("./response"),stream=require("readable-stream"),toArrayBuffer=require("to-arraybuffer"),IncomingMessage=response.IncomingMessage,rStates=response.readyStates,ClientRequest=module.exports=function(opts){var self=this;stream.Writable.call(self),self._opts=opts,self._body=[],self._headers={},opts.auth&&self.setHeader("Authorization","Basic "+new Buffer(opts.auth).toString("base64")),Object.keys(opts.headers).forEach(function(name){self.setHeader(name,opts.headers[name])});var preferBinary,useFetch=!0;if("disable-fetch"===opts.mode)useFetch=!1,preferBinary=!0;else if("prefer-streaming"===opts.mode)preferBinary=!1;else if("allow-wrong-content-type"===opts.mode)preferBinary=!capability.overrideMimeType;else{if(opts.mode&&"default"!==opts.mode&&"prefer-fast"!==opts.mode)throw new Error("Invalid value for opts.mode");preferBinary=!0}self._mode=decideMode(preferBinary,useFetch),self.on("finish",function(){self._onFinish()})};inherits(ClientRequest,stream.Writable),ClientRequest.prototype.setHeader=function(name,value){var self=this,lowerName=name.toLowerCase();unsafeHeaders.indexOf(lowerName)===-1&&(self._headers[lowerName]={name:name,value:value})},ClientRequest.prototype.getHeader=function(name){var self=this;return self._headers[name.toLowerCase()].value},ClientRequest.prototype.removeHeader=function(name){var self=this;delete self._headers[name.toLowerCase()]},ClientRequest.prototype._onFinish=function(){var self=this;if(!self._destroyed){var body,opts=self._opts,headersObj=self._headers;if("POST"!==opts.method&&"PUT"!==opts.method&&"PATCH"!==opts.method||(body=capability.blobConstructor?new global.Blob(self._body.map(function(buffer){return toArrayBuffer(buffer)}),{type:(headersObj["content-type"]||{}).value||""}):Buffer.concat(self._body).toString()),"fetch"===self._mode){var headers=Object.keys(headersObj).map(function(name){return[headersObj[name].name,headersObj[name].value]});global.fetch(self._opts.url,{method:self._opts.method,headers:headers,body:body,mode:"cors",credentials:opts.withCredentials?"include":"same-origin"}).then(function(response){self._fetchResponse=response,self._connect()},function(reason){self.emit("error",reason)})}else{var xhr=self._xhr=new global.XMLHttpRequest;try{xhr.open(self._opts.method,self._opts.url,!0)}catch(err){return void process.nextTick(function(){self.emit("error",err)})}"responseType"in xhr&&(xhr.responseType=self._mode.split(":")[0]),"withCredentials"in xhr&&(xhr.withCredentials=!!opts.withCredentials),"text"===self._mode&&"overrideMimeType"in xhr&&xhr.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(headersObj).forEach(function(name){xhr.setRequestHeader(headersObj[name].name,headersObj[name].value)}),self._response=null,xhr.onreadystatechange=function(){switch(xhr.readyState){case rStates.LOADING:case rStates.DONE:self._onXHRProgress()}},"moz-chunked-arraybuffer"===self._mode&&(xhr.onprogress=function(){self._onXHRProgress()}),xhr.onerror=function(){self._destroyed||self.emit("error",new Error("XHR error"))};try{xhr.send(body)}catch(err){return void process.nextTick(function(){self.emit("error",err)})}}}},ClientRequest.prototype._onXHRProgress=function(){var self=this;statusValid(self._xhr)&&!self._destroyed&&(self._response||self._connect(),self._response._onXHRProgress())},ClientRequest.prototype._connect=function(){var self=this;self._destroyed||(self._response=new IncomingMessage(self._xhr,self._fetchResponse,self._mode),self.emit("response",self._response))},ClientRequest.prototype._write=function(chunk,encoding,cb){var self=this;self._body.push(chunk),cb()},ClientRequest.prototype.abort=ClientRequest.prototype.destroy=function(){var self=this;self._destroyed=!0,self._response&&(self._response._destroyed=!0),self._xhr&&self._xhr.abort()},ClientRequest.prototype.end=function(data,encoding,cb){var self=this;"function"==typeof data&&(cb=data,data=void 0),stream.Writable.prototype.end.call(self,data,encoding,cb)},ClientRequest.prototype.flushHeaders=function(){},ClientRequest.prototype.setTimeout=function(){},ClientRequest.prototype.setNoDelay=function(){},ClientRequest.prototype.setSocketKeepAlive=function(){};var unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,require("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},require("buffer").Buffer)},{"./capability":50,"./response":52,_process:37,buffer:5,inherits:11,"readable-stream":48,"to-arraybuffer":54}],52:[function(require,module,exports){(function(process,global,Buffer){var capability=require("./capability"),inherits=require("inherits"),stream=require("readable-stream"),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(xhr,response,mode){function read(){reader.read().then(function(result){if(!self._destroyed){if(result.done)return void self.push(null);self.push(new Buffer(result.value)),read()}})}var self=this;if(stream.Readable.call(self),self._mode=mode,self.headers={},self.rawHeaders=[],self.trailers={},self.rawTrailers=[],self.on("end",function(){process.nextTick(function(){self.emit("close")})}),"fetch"===mode){self._fetchResponse=response,self.url=response.url,self.statusCode=response.status,self.statusMessage=response.statusText;for(var header,_i,_it=response.headers[Symbol.iterator]();header=(_i=_it.next()).value,!_i.done;)self.headers[header[0].toLowerCase()]=header[1],self.rawHeaders.push(header[0],header[1]);var reader=response.body.getReader();read()}else{self._xhr=xhr,self._pos=0,self.url=xhr.responseURL,self.statusCode=xhr.status,self.statusMessage=xhr.statusText;var headers=xhr.getAllResponseHeaders().split(/\r?\n/);if(headers.forEach(function(header){var matches=header.match(/^([^:]+):\s*(.*)/);if(matches){var key=matches[1].toLowerCase();"set-cookie"===key?(void 0===self.headers[key]&&(self.headers[key]=[]),self.headers[key].push(matches[2])):void 0!==self.headers[key]?self.headers[key]+=", "+matches[2]:self.headers[key]=matches[2],self.rawHeaders.push(matches[1],matches[2])}}),self._charset="x-user-defined",!capability.overrideMimeType){var mimeType=self.rawHeaders["mime-type"];if(mimeType){var charsetMatch=mimeType.match(/;\s*charset=([^;])(;|$)/);charsetMatch&&(self._charset=charsetMatch[1].toLowerCase());
-}self._charset||(self._charset="utf-8")}}};inherits(IncomingMessage,stream.Readable),IncomingMessage.prototype._read=function(){},IncomingMessage.prototype._onXHRProgress=function(){var self=this,xhr=self._xhr,response=null;switch(self._mode){case"text:vbarray":if(xhr.readyState!==rStates.DONE)break;try{response=new global.VBArray(xhr.responseBody).toArray()}catch(e){}if(null!==response){self.push(new Buffer(response));break}case"text":try{response=xhr.responseText}catch(e){self._mode="text:vbarray";break}if(response.length>self._pos){var newData=response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(newData.length),i=0;iself._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)},reader.onload=function(){self.push(null)},reader.readAsArrayBuffer(response)}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(this,require("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},require("buffer").Buffer)},{"./capability":50,_process:37,buffer:5,inherits:11,"readable-stream":48}],53:[function(require,module,exports){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=require("buffer").Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&charCode<=56319)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived),charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1,charCode=charStr.charCodeAt(end);if(charCode>=55296&&charCode<=56319){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i=buffer.length>=3?3:buffer.length;i>0;i--){var c=buffer[buffer.length-i];if(1==i&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res}},{buffer:5}],54:[function(require,module,exports){var Buffer=require("buffer").Buffer;module.exports=function(buf){if(buf instanceof Uint8Array){if(0===buf.byteOffset&&buf.byteLength===buf.buffer.byteLength)return buf.buffer;if("function"==typeof buf.buffer.slice)return buf.buffer.slice(buf.byteOffset,buf.byteOffset+buf.byteLength)}if(Buffer.isBuffer(buf)){for(var arrayCopy=new Uint8Array(buf.length),len=buf.length,i=0;i",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=require("querystring");Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var queryIndex=url.indexOf("?"),splitter=queryIndex!==-1&&queryIndex127?"x":part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),ipv6Hostname||(this.hostname=punycode.toASCII(this.hostname));var p=this.port?":"+this.port:"",h=this.hostname||"";this.host=h+p,this.href+=this.host,ipv6Hostname&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==rest[0]&&(rest="/"+rest))}if(!unsafeProtocol[lowerProto])for(var i=0,l=autoEscape.length;i0)&&result.host.split("@");authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return result.search=relative.search,result.query=relative.query,util.isNull(result.pathname)&&util.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)last=srcPath[i],"."===last?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=!!(result.host&&result.host.indexOf("@")>0)&&result.host.split("@");authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return mustEndAbs=mustEndAbs||result.host&&srcPath.length,mustEndAbs&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),util.isNull(result.pathname)&&util.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)}},{"./util":56,punycode:38,querystring:41}],56:[function(require,module,exports){"use strict";module.exports={isString:function(arg){return"string"==typeof arg},isObject:function(arg){return"object"==typeof arg&&null!==arg},isNull:function(arg){return null===arg},isNullOrUndefined:function(arg){return null==arg}}},{}],57:[function(require,module,exports){(function(global){function deprecate(fn,msg){function deprecated(){if(!warned){if(config("throwDeprecation"))throw new Error(msg);config("traceDeprecation")?console.trace(msg):console.warn(msg),warned=!0}return fn.apply(this,arguments)}if(config("noDeprecation"))return fn;var warned=!1;return deprecated}function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[name];return null!=val&&"true"===String(val).toLowerCase()}module.exports=deprecate}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(require,module,exports){function extend(){for(var target={},i=0;i0&&msie<11)if(9===msie){var settings={url:that._options.iiifResourceUri,type:"GET",dataType:"jsonp",jsonp:"callback",jsonpCallback:"manifestCallback"};$.ajax(settings),window.manifestCallback=function(json){that._loaded(that,JSON.stringify(json),resolve,reject)}}else 10===msie&&$.getJSON(that._options.iiifResourceUri,function(json){that._loaded(that,JSON.stringify(json),resolve,reject)});else manifesto.loadManifest(that._options.iiifResourceUri).then(function(json){that._loaded(that,json,resolve,reject)})})},Bootstrapper.prototype._loaded=function(bootstrapper,json,resolve,reject){var iiifResource=manifesto.create(json,{locale:bootstrapper._options.locale});if(bootstrapper._options.iiifResource||(bootstrapper._options.iiifResource=iiifResource),iiifResource.getIIIFResourceType().toString()===manifesto.IIIFResourceType.collection().toString()){var collections=iiifResource.getCollections();collections&&collections.length?iiifResource.getCollectionByIndex(bootstrapper._options.collectionIndex).then(function(collection){collection||reject("Collection index not found"),0===collection.getTotalManifests()&&0===bootstrapper._options.manifestIndex&&collection.getTotalCollections()>0&&(bootstrapper._options.collectionIndex=0,bootstrapper._options.iiifResourceUri=collection.id,bootstrapper.bootstrap()),collection.getManifestByIndex(bootstrapper._options.manifestIndex).then(function(manifest){bootstrapper._options.manifest=manifest;var helper=new Manifold.Helper(bootstrapper._options);resolve(helper)})}):iiifResource.getManifestByIndex(bootstrapper._options.manifestIndex).then(function(manifest){bootstrapper._options.manifest=manifest;var helper=new Manifold.Helper(bootstrapper._options);resolve(helper)})}else{bootstrapper._options.manifest=iiifResource;var helper=new Manifold.Helper(bootstrapper._options);resolve(helper)}},Bootstrapper.prototype._msieversion=function(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");return msie>0?parseInt(ua.substring(msie+5,ua.indexOf(".",msie))):0},Bootstrapper}();Manifold.Bootstrapper=Bootstrapper}(Manifold||(Manifold={}));var Manifold;!function(Manifold){var ExternalResource=function(){function ExternalResource(resource,dataUriFunc){this.isResponseHandled=!1,resource.externalResource=this,this.dataUri=dataUriFunc(resource),this._parseAuthServices(resource)}return ExternalResource.prototype._parseAuthServices=function(resource){this.clickThroughService=manifesto.Utils.getService(resource,manifesto.ServiceProfile.clickThrough().toString()),this.loginService=manifesto.Utils.getService(resource,manifesto.ServiceProfile.login().toString()),this.restrictedService=manifesto.Utils.getService(resource,manifesto.ServiceProfile.restricted().toString()),this.clickThroughService?(this.logoutService=this.clickThroughService.getService(manifesto.ServiceProfile.logout().toString()),this.tokenService=this.clickThroughService.getService(manifesto.ServiceProfile.token().toString())):this.loginService?(this.logoutService=this.loginService.getService(manifesto.ServiceProfile.logout().toString()),this.tokenService=this.loginService.getService(manifesto.ServiceProfile.token().toString())):this.restrictedService&&(this.logoutService=this.restrictedService.getService(manifesto.ServiceProfile.logout().toString()),this.tokenService=this.restrictedService.getService(manifesto.ServiceProfile.token().toString()))},ExternalResource.prototype.isAccessControlled=function(){return!!(this.clickThroughService||this.loginService||this.restrictedService)},ExternalResource.prototype.hasServiceDescriptor=function(){return this.dataUri.endsWith("info.json")},ExternalResource.prototype.getData=function(accessToken){var that=this;return new Promise(function(resolve,reject){var type="GET";if(!that.hasServiceDescriptor()){if(!that.isAccessControlled())return that.status=HTTPStatusCode.OK,void resolve(that);type="HEAD"}$.ajax({url:that.dataUri,type:type,dataType:"json",beforeSend:function(xhr){accessToken&&xhr.setRequestHeader("Authorization","Bearer "+accessToken.accessToken)}}).done(function(data){if(data){var uri=unescape(data["@id"]);that.data=data,that._parseAuthServices(that.data),uri.endsWith("/info.json")&&(uri=uri.substr(0,uri.lastIndexOf("/")));var dataUri=that.dataUri;dataUri.endsWith("/info.json")&&(dataUri=dataUri.substr(0,dataUri.lastIndexOf("/"))),uri!==dataUri&&that.loginService?that.status=HTTPStatusCode.MOVED_TEMPORARILY:that.status=HTTPStatusCode.OK,resolve(that)}else that.status=HTTPStatusCode.OK,resolve(that)}).fail(function(error){that.status=error.status,that.error=error,error.responseJSON&&that._parseAuthServices(error.responseJSON),resolve(that)})})},ExternalResource}();Manifold.ExternalResource=ExternalResource}(Manifold||(Manifold={}));var Manifold;!function(Manifold){var Helper=function(){function Helper(options){this.options=options,this.iiifResource=this.options.iiifResource,this.iiifResourceUri=this.options.iiifResourceUri,this.manifest=this.options.manifest,this.collectionIndex=this.options.collectionIndex||0,this.manifestIndex=this.options.manifestIndex||0,this.sequenceIndex=this.options.sequenceIndex||0,this.canvasIndex=this.options.canvasIndex||0}return Helper.prototype.getAutoCompleteService=function(){var service=this.getSearchWithinService();return service?service.getService(manifesto.ServiceProfile.autoComplete()):null},Helper.prototype.getAttribution=function(){return Manifesto.TranslationCollection.getValue(this.manifest.getAttribution())},Helper.prototype.getCanvases=function(){return this.getCurrentSequence().getCanvases()},Helper.prototype.getCanvasById=function(id){return this.getCurrentSequence().getCanvasById(id)},Helper.prototype.getCanvasesById=function(ids){for(var canvases=[],i=0;i'},metadataItem=new Manifesto.MetadataItem(this.options.locale);metadataItem.parse(item),metadataItem.isRootLevel=!0,manifestGroup.addItem(metadataItem)}return metadataGroups.push(manifestGroup),options?this._parseMetadataOptions(options,metadataGroups):metadataGroups},Helper.prototype._parseMetadataOptions=function(options,metadataGroups){var sequence=this.getCurrentSequence(),sequenceMetadata=sequence.getMetadata();if(sequenceMetadata&&sequenceMetadata.length){var sequenceGroup=new Manifold.MetadataGroup(sequence);sequenceGroup.addMetadata(sequenceMetadata),metadataGroups.push(sequenceGroup)}if(options.range){var rangeGroups=this._getRangeMetadata([],options.range);rangeGroups=rangeGroups.reverse(),metadataGroups=metadataGroups.concat(rangeGroups)}if(options.canvases&&options.canvases.length)for(var i=0;i0},Helper.prototype.isBottomToTop=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.bottomToTop().toString()},Helper.prototype.isCanvasIndexOutOfRange=function(index){return this.getCurrentSequence().isCanvasIndexOutOfRange(index)},Helper.prototype.isContinuous=function(){return this.getViewingHint().toString()===manifesto.ViewingHint.continuous().toString()},Helper.prototype.isFirstCanvas=function(index){return"undefined"!=typeof index?this.getCurrentSequence().isFirstCanvas(index):this.getCurrentSequence().isFirstCanvas(this.canvasIndex)},Helper.prototype.isHorizontallyAligned=function(){return this.isLeftToRight()||this.isRightToLeft()},Helper.prototype.isLastCanvas=function(index){return"undefined"!=typeof index?this.getCurrentSequence().isLastCanvas(index):this.getCurrentSequence().isLastCanvas(this.canvasIndex)},Helper.prototype.isLeftToRight=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.leftToRight().toString()},Helper.prototype.isMultiCanvas=function(){return this.getCurrentSequence().isMultiCanvas()},Helper.prototype.isMultiSequence=function(){return this.manifest.isMultiSequence()},Helper.prototype.isPaged=function(){return this.getViewingHint().toString()===manifesto.ViewingHint.paged().toString()},Helper.prototype.isPagingAvailable=function(){return this.isPagingEnabled()&&this.getTotalCanvases()>2},Helper.prototype.isPagingEnabled=function(){return this.getCurrentSequence().isPagingEnabled()},Helper.prototype.isRightToLeft=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.rightToLeft().toString()},Helper.prototype.isTopToBottom=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.topToBottom().toString()},Helper.prototype.isTotalCanvasesEven=function(){return this.getCurrentSequence().isTotalCanvasesEven()},Helper.prototype.isUIEnabled=function(name){var uiExtensions=this.manifest.getService(manifesto.ServiceProfile.uiExtensions());if(uiExtensions){var disableUI=uiExtensions.getProperty("disableUI");if(disableUI&&(disableUI.contains(name)||disableUI.contains(name.toLowerCase())))return!1}return!0},Helper.prototype.isVerticallyAligned=function(){return this.isTopToBottom()||this.isBottomToTop()},Helper.prototype.createDateNodes=function(rootNode,nodes){for(var i=0;i=n.data.startYear&&year<=n.data.endYear)return n}return null},Helper.prototype.getMonthNode=function(yearNode,month){for(var i=0;i0&&this.getAllSelectedCanvases().length===this.canvases.length},MultiSelectState.prototype.allRangesSelected=function(){return this.ranges.length>0&&this.getAllSelectedRanges().length===this.ranges.length},MultiSelectState.prototype.allSelected=function(){return this.allRangesSelected()&&this.allCanvasesSelected()},MultiSelectState.prototype.getAll=function(){return this.canvases.concat(this.ranges)},MultiSelectState.prototype.getAllSelectedCanvases=function(){return this.canvases.en().where(function(c){return c.multiSelected}).toArray()},MultiSelectState.prototype.getAllSelectedRanges=function(){return this.ranges.en().where(function(r){return r.multiSelected}).toArray()},MultiSelectState.prototype.getCanvasById=function(id){return this.canvases.en().where(function(c){return c.id===id}).first()},MultiSelectState.prototype.getCanvasesByIds=function(ids){for(var canvases=[],i=0;i'+label+""},UriLabeller}();Manifold.UriLabeller=UriLabeller}(Manifold||(Manifold={}))},{}]},{},[1])(1)}),function(t,e,o){"use strict";function r(t,e,r,p){r=r||"width";var n,l,m,c=(e.match(s)||[])[2],f="px"===c?1:d[c+"toPx"],u=/r?em/i;if(f||u.test(c)&&!p)t=f?t:"rem"===c?i:"fontSize"===r?t.parentNode||t:t,f=f||parseFloat(a(t,"fontSize")),m=parseFloat(e)*f;else{n=t.style,l=n[r];try{n[r]=e}catch(x){return 0}m=n[r]?parseFloat(a(t,r)):0,n[r]=l!==o?l:null}return m}function a(t,e){var o,n,i,l,d,c=/^top|bottom/,f=["paddingTop","paddingBottom","borderTop","borderBottom"],u=4;if(o=m?m(t)[e]:(n=t.style["pixel"+e.charAt(0).toUpperCase()+e.slice(1)])?n+"px":"fontSize"===e?r(t,"1em","left",1)+"px":t.currentStyle[e],i=(o.match(s)||[])[2],"%"===i&&p)if(c.test(e)){for(l=(d=t.parentNode||t).offsetHeight;u--;)l-=parseFloat(a(d,f[u]));o=parseFloat(o)/100*l+"px"}else o=r(t,o);else("auto"===o||i&&"px"!==i)&&m?o=0:i&&"px"!==i&&!m&&(o=r(t,o)+"px");return o}var p,n=e.createElement("test"),i=e.documentElement,l=e.defaultView,m=l&&l.getComputedStyle,s=/^(-?[\d+\.\-]+)([a-z]+|%)$/i,d={},c=[1/25.4,1/2.54,1/72,1/6],f=["mm","cm","pt","pc","in","mozmm"],u=6;for(i.appendChild(n),m&&(n.style.marginTop="1%",p="1%"===m(n).marginTop);u--;)d[f[u]+"toPx"]=c[u]?c[u]*d.inToPx:r(n,"1"+f[u]);i.removeChild(n),n=o,t.Length={toPx:r}}(this,this.document);var Utils;!function(Utils){var Async=function(){function Async(){}return Async.waitFor=function(test,successCallback,failureCallback,interval,maxTries,numTries){interval||(interval=200),maxTries||(maxTries=100),numTries||(numTries=0),numTries+=1,numTries>maxTries?failureCallback&&failureCallback():test()?successCallback():setTimeout(function(){Async.waitFor(test,successCallback,failureCallback,interval,maxTries,numTries)},interval)},Async}();Utils.Async=Async}(Utils||(Utils={}));var Utils;!function(Utils){var Bools=function(){function Bools(){}return Bools.getBool=function(val,defaultVal){return null===val||"undefined"==typeof val?defaultVal:val},Bools}();Utils.Bools=Bools}(Utils||(Utils={}));var Utils;!function(Utils){var Clipboard=function(){function Clipboard(){}return Clipboard.copy=function(text){var $tempDiv=$(""),brRegex=/
/gi;text=text.replace(brRegex,"\n"),$("body").append($tempDiv),$tempDiv.append(text);var $tempInput=$("
'),this.$element.append(this.$tree)},t.prototype.setup=function(){this.component=new IIIFComponents.TreeComponent(this.treeOptions),this.component.on("treeNodeSelected",function(e){var t=e[0];$.publish(n.TREE_NODE_SELECTED,[t])}),this.component.on("treeNodeMultiSelected",function(e){var t=e[0];$.publish(n.TREE_NODE_MULTISELECTED,[t])})},t.prototype.databind=function(){this.component.options=this.treeOptions,this.component.databind(),this.resize()},t.prototype.show=function(){this.isOpen=!0,this.$element.show()},t.prototype.hide=function(){this.isOpen=!1,this.$element.hide()},t.prototype.selectNode=function(e){this.component.selectNode(e)},t.prototype.deselectCurrentNode=function(){this.component.deselectCurrentNode()},t.prototype.getNodeById=function(e){return this.component.getNodeById(e)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-contentleftpanel-module/ContentLeftPanel",["require","exports","../uv-shared-module/BaseCommands","../../extensions/uv-seadragon-extension/Commands","./GalleryView","../uv-shared-module/LeftPanel","../uv-shared-module/MetricType","../../extensions/uv-seadragon-extension/Mode","./ThumbsView","./TreeView"],function(e,t,i,n,o,s,r,a,l,h){var c=function(e){function t(t){e.call(this,t),this.expandFullEnabled=!1,this.isThumbsViewOpen=!1,this.isTreeViewOpen=!1,this.treeSortType=Manifold.TreeSortType.NONE}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("contentLeftPanel"),e.prototype.create.call(this);$.subscribe(i.SETTINGS_CHANGED,function(){t.databind()}),$.subscribe(n.GALLERY_THUMB_SELECTED,function(){t.collapseFull()}),$.subscribe(i.METRIC_CHANGED,function(){t.extension.metric.toString()===r.MetricType.MOBILELANDSCAPE.toString()&&t.isFullyExpanded&&t.collapseFull()}),$.subscribe(n.SEARCH_RESULTS,function(){t.databindThumbsView(),t.databindGalleryView()}),$.subscribe(n.SEARCH_RESULTS_CLEARED,function(){t.databindThumbsView(),t.databindGalleryView()}),$.subscribe(n.SEARCH_RESULTS_EMPTY,function(){t.databindThumbsView(),t.databindGalleryView()}),$.subscribe(i.CANVAS_INDEX_CHANGED,function(e,i){t.isFullyExpanded&&t.collapseFull(),t.selectCurrentTreeNode(),t.updateTreeTabBySelection()}),this.$tabs=$(''),this.$main.append(this.$tabs),this.$treeButton=$(''+this.content.index+""),this.$tabs.append(this.$treeButton),this.$thumbsButton=$(''+this.content.thumbnails+""),this.$thumbsButton.prop("title",this.content.thumbnails),this.$tabs.append(this.$thumbsButton),this.$tabsContent=$(''),this.$main.append(this.$tabsContent),this.$options=$(''),this.$tabsContent.append(this.$options),this.$topOptions=$(''),this.$options.append(this.$topOptions),this.$treeSelect=$(""),this.$topOptions.append(this.$treeSelect),this.$bottomOptions=$(''),this.$options.append(this.$bottomOptions),this.$leftOptions=$(''),this.$bottomOptions.append(this.$leftOptions),this.$rightOptions=$(''),this.$bottomOptions.append(this.$rightOptions),this.$treeViewOptions=$(''),this.$leftOptions.append(this.$treeViewOptions),this.$sortByLabel=$(''+this.content.sortBy+""),this.$treeViewOptions.append(this.$sortByLabel),this.$sortButtonGroup=$(''),this.$treeViewOptions.append(this.$sortButtonGroup),this.$sortByDateButton=$('"),this.$sortButtonGroup.append(this.$sortByDateButton),this.$sortByVolumeButton=$('"),this.$sortButtonGroup.append(this.$sortByVolumeButton),this.$views=$(''),this.$tabsContent.append(this.$views),this.$treeView=$(''),this.$views.append(this.$treeView),this.$thumbsView=$(''),this.$views.append(this.$thumbsView),this.$galleryView=$(''),this.$views.append(this.$galleryView),this.$treeSelect.hide(),this.$treeSelect.change(function(){t.databindTreeView(),t.selectCurrentTreeNode(),t.updateTreeTabBySelection()}),this.$sortByDateButton.on("click",function(){t.sortByDate()}),this.$sortByVolumeButton.on("click",function(){t.sortByVolume()}),this.$treeViewOptions.hide(),this.$treeButton.onPressed(function(){t.openTreeView(),$.publish(n.OPEN_TREE_VIEW)}),this.$thumbsButton.onPressed(function(){t.openThumbsView(),$.publish(n.OPEN_THUMBS_VIEW)}),this.setTitle(this.content.title),this.$sortByVolumeButton.addClass("on");var o=this.options.tabOrder;if(o){o=o.toLowerCase(),o=o.replace(/ /g,"");var s=o.split(",");"thumbs"===s[0]?(this.$treeButton.before(this.$thumbsButton),this.$thumbsButton.addClass("first")):this.$treeButton.addClass("first")}},t.prototype.createTreeView=function(){this.treeView=new h(this.$treeView),this.treeView.treeOptions=this.getTreeOptions(),this.treeView.setup(),this.databindTreeView();var e=this.extension.helper.getTopRanges();if(e.length>1)for(var t=0;t'+Manifesto.TranslationCollection.getValue(i.getLabel())+"")}this.updateTreeViewOptions()},t.prototype.databind=function(){this.databindThumbsView(),this.databindTreeView(),this.databindGalleryView()},t.prototype.updateTreeViewOptions=function(){var e=this.getTreeData();this.isCollection()&&this.extension.helper.treeHasNavDates(e)?this.$treeViewOptions.show():this.$treeViewOptions.hide(),this.$treeSelect.find("option").length?this.$treeSelect.show():this.$treeSelect.hide()},t.prototype.sortByDate=function(){this.treeSortType=Manifold.TreeSortType.DATE,this.treeView.treeOptions=this.getTreeOptions(),this.treeView.databind(),this.selectCurrentTreeNode(),this.$sortByDateButton.addClass("on"),this.$sortByVolumeButton.removeClass("on"),this.resize()},t.prototype.sortByVolume=function(){this.treeSortType=Manifold.TreeSortType.NONE,this.treeView.treeOptions=this.getTreeOptions(),this.treeView.databind(),this.selectCurrentTreeNode(),this.$sortByDateButton.removeClass("on"),this.$sortByVolumeButton.addClass("on"),this.resize()},t.prototype.isCollection=function(){var e=this.getTreeData();return e.data.type===manifesto.TreeNodeType.collection().toString()},t.prototype.databindTreeView=function(){this.treeView&&(this.treeView.treeOptions=this.getTreeOptions(),this.treeView.databind(),this.selectCurrentTreeNode())},t.prototype.getTreeOptions=function(){return{branchNodesSelectable:!1,element:".views .treeView .iiif-tree-component",helper:this.extension.helper,topRangeIndex:this.getSelectedTopRangeIndex(),treeSortType:this.treeSortType}},t.prototype.updateTreeTabByCanvasIndex=function(){var e=this.extension.helper.getTopRanges();if(e.length>1){var t=this.getCurrentCanvasTopRangeIndex(),i=e[t];this.setTreeTabTitle(Manifesto.TranslationCollection.getValue(i.getLabel()))}else this.setTreeTabTitle(this.content.index)},t.prototype.setTreeTabTitle=function(e){this.$treeButton.text(e),this.$treeButton.prop("title",e)},t.prototype.updateTreeTabBySelection=function(){var e,t=this.extension.helper.getTopRanges();t.length>1&&(e=this.treeView?this.getSelectedTree().text():Manifesto.TranslationCollection.getValue(t[0].getLabel())),e?this.setTreeTabTitle(e):this.setTreeTabTitle(this.content.index)},t.prototype.getViewingDirection=function(){return this.extension.helper.getViewingDirection()},t.prototype.createThumbsView=function(){this.thumbsView=new l(this.$thumbsView),this.databindThumbsView()},t.prototype.databindThumbsView=function(){if(this.thumbsView){var e,t,i=this.getViewingDirection().toString();i===manifesto.ViewingDirection.topToBottom().toString()||i===manifesto.ViewingDirection.bottomToTop().toString()?(e=this.config.options.oneColThumbWidth,t=this.config.options.oneColThumbHeight):(e=this.config.options.twoColThumbWidth,t=this.config.options.twoColThumbHeight);var n=this.extension.helper.getThumbs(e,t);i===manifesto.ViewingDirection.bottomToTop().toString()&&n.reverse();var o=this.extension.searchResults;if(o&&o.length)for(var s=0;st?!1:!0},t.prototype.expandFullStart=function(){e.prototype.expandFullStart.call(this),$.publish(i.LEFTPANEL_EXPAND_FULL_START)},t.prototype.expandFullFinish=function(){e.prototype.expandFullFinish.call(this),this.$treeButton.hasClass("on")?this.openTreeView():this.$thumbsButton.hasClass("on")&&this.openThumbsView(),$.publish(i.LEFTPANEL_EXPAND_FULL_FINISH)},t.prototype.collapseFullStart=function(){e.prototype.collapseFullStart.call(this),$.publish(i.LEFTPANEL_COLLAPSE_FULL_START)},t.prototype.collapseFullFinish=function(){e.prototype.collapseFullFinish.call(this),this.$thumbsButton.hasClass("on")&&this.openThumbsView(),$.publish(i.LEFTPANEL_COLLAPSE_FULL_FINISH)},t.prototype.openTreeView=function(){this.isTreeViewOpen=!0,this.isThumbsViewOpen=!1,this.treeView||this.createTreeView(),this.$treeButton.addClass("on"),this.$thumbsButton.removeClass("on"),this.treeView.show(),this.thumbsView&&this.thumbsView.hide(),this.galleryView&&this.galleryView.hide(),this.updateTreeViewOptions(),this.selectCurrentTreeNode(),this.resize(),this.treeView.resize()},t.prototype.openThumbsView=function(){this.isTreeViewOpen=!1,this.isThumbsViewOpen=!0,this.thumbsView||this.createThumbsView(),this.isFullyExpanded&&!this.galleryView&&this.createGalleryView(),this.$treeButton.removeClass("on"),this.$thumbsButton.addClass("on"),this.treeView&&this.treeView.hide(),this.$treeSelect.hide(),this.$treeViewOptions.hide(),this.resize(),this.isFullyExpanded?(this.thumbsView.hide(),this.galleryView&&this.galleryView.show(),this.galleryView&&this.galleryView.resize()):(this.galleryView&&this.galleryView.hide(),this.thumbsView.show(),this.thumbsView.resize())},t.prototype.selectTopRangeIndex=function(e){this.$treeSelect.prop("selectedIndex",e)},t.prototype.getCurrentCanvasTopRangeIndex=function(){var e=-1,t=this.extension.getCurrentCanvasRange();return t&&(e=Number(t.path.split("/")[0])),e},t.prototype.selectCurrentTreeNode=function(){if(this.treeView){var e,t=this.getCurrentCanvasTopRangeIndex(),i=this.getSelectedTopRangeIndex(),n=t===i;if(-1!=t){var o=this.extension.getCurrentCanvasRange();o&&o.treeNode&&(e=this.treeView.getNodeById(o.treeNode.id))}e&&n?this.treeView.selectNode(e):this.treeView.deselectCurrentNode()}},t.prototype.resize=function(){e.prototype.resize.call(this),this.$tabsContent.height(this.$main.height()-(this.$tabs.is(":visible")?this.$tabs.height():0)-this.$tabsContent.verticalPadding()),this.$views.height(this.$tabsContent.height()-this.$options.outerHeight())},t}(s);return c}),define("modules/uv-shared-module/Point",["require","exports"],function(e,t){var i=function(){function e(e,t){this.x=e,this.y=t}return e}();return i}),define("extensions/uv-seadragon-extension/CroppedImageDimensions",["require","exports","../../modules/uv-shared-module/Point"],function(e,t,i){var n=Utils.Measurements.Size,o=function(){function e(){this.region=new n(0,0),this.regionPos=new i(0,0),this.size=new n(0,0)}return e}();return o}),define("extensions/uv-seadragon-extension/DownloadType",["require","exports"],function(e,t){var i=function(){function e(){}return e.CURRENTVIEW="currentView",e.ENTIREDOCUMENTASPDF="entireDocumentAsPdf",e.ENTIREDOCUMENTASTEXT="entireDocumentAsText",e.WHOLEIMAGEHIGHRES="wholeImageHighRes",e.WHOLEIMAGESHIGHRES="wholeImageHighRes",e.WHOLEIMAGELOWRES="wholeImageLowRes",e.UNKNOWN="unknown",e}();return i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/DownloadDialogue",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-dialogues-module/DownloadDialogue","./Commands","../../modules/uv-shared-module/DownloadOption","./DownloadType"],function(e,t,i,n,o,s,r){var a=Utils.Measurements.Size,l=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("downloadDialogue"),e.prototype.create.call(this),this.$imageOptionsContainer=$(''),this.$downloadOptions.append(this.$imageOptionsContainer),this.$imageOptions=$(""),this.$imageOptionsContainer.append(this.$imageOptions),this.$currentViewAsJpgButton=$(''),this.$imageOptions.append(this.$currentViewAsJpgButton),this.$currentViewAsJpgButton.hide(),this.$wholeImageHighResButton=$(''),this.$imageOptions.append(this.$wholeImageHighResButton),this.$wholeImageHighResButton.hide(),this.$wholeImagesHighResButton=$(''),this.$imageOptions.append(this.$wholeImagesHighResButton),this.$wholeImageHighResButton.hide(),this.$wholeImageLowResAsJpgButton=$('"),this.$imageOptions.append(this.$wholeImageLowResAsJpgButton),this.$wholeImageLowResAsJpgButton.hide(),this.$canvasOptionsContainer=$(''),this.$downloadOptions.append(this.$canvasOptionsContainer),this.$canvasOptions=$(""),this.$canvasOptionsContainer.append(this.$canvasOptions),this.$sequenceOptionsContainer=$(''),this.$downloadOptions.append(this.$sequenceOptionsContainer),this.$sequenceOptions=$(""),this.$sequenceOptionsContainer.append(this.$sequenceOptions),this.$selectionButton=$(''),this.$sequenceOptions.append(this.$selectionButton),this.$selectionButton.hide(),this.$buttonsContainer=$(''),this.$content.append(this.$buttonsContainer),this.$downloadButton=$(''+this.content.download+""),this.$buttonsContainer.append(this.$downloadButton),this.$explanatoryTextTemplate=$('');var n=this;this.$downloadButton.on("click",function(e){e.preventDefault();var a=n.getSelectedOption(),l=a.attr("id"),h=a.attr("title"),c=a.data("mime"),u=r.UNKNOWN,p=t.extension.helper.getCurrentCanvas();if(t.renderingUrls[l])c&&(-1!==c.toLowerCase().indexOf("pdf")?u=r.ENTIREDOCUMENTASPDF:-1!==c.toLowerCase().indexOf("txt")&&(u=r.ENTIREDOCUMENTASTEXT)),(u=r.ENTIREDOCUMENTASPDF)&&window.open(t.renderingUrls[l]);else switch(l){case s.currentViewAsJpg.toString():var d=n.extension.getViewer();window.open(n.extension.getCroppedImageUri(p,d)),u=r.CURRENTVIEW;break;case s.selection.toString():Utils.Async.waitFor(function(){return!t.isActive},function(){$.publish(o.SHOW_MULTISELECT_DIALOGUE)});break;case s.wholeImageHighRes.toString():window.open(t.getCanvasHighResImageUri(t.extension.helper.getCurrentCanvas())),u=r.WHOLEIMAGEHIGHRES;break;case s.wholeImagesHighRes.toString():for(var g=t.extension.getPagedIndices(),f=0;f=S&&w>=S?this.$currentViewAsJpgButton.hide():this.$currentViewAsJpgButton.show()}var _=this.$imageOptions.find("li.single");_=_.sort(function(e,t){var i=$(e).data("width");i?i=parseInt(i.toString()):0;var n=$(e).data("height");n?n=parseInt(n.toString()):0;var o=$(t).data("width");o?o=parseInt(o.toString()):0;var s=$(t).data("height");s?s=parseInt(s.toString()):0;var r=i*n,a=o*s;return a>r?-1:r>a?1:0}),_.detach().appendTo(this.$imageOptions);var C=this.$downloadOptions.find("li.group");C.each(function(e,t){var i=$(t);i.show(),i.find("li.option:hidden").length===i.find("li.option").length&&i.hide()}),this.$downloadOptions.find("li.group:visible").last().addClass("lastVisible"),this.$downloadOptions.find("li.option:visible").length?(this.$downloadOptions.find("li.option input:visible:first").prop("checked",!0),this.$noneAvailable.hide(),this.$downloadButton.show()):(this.$noneAvailable.show(),this.$downloadButton.hide()),this.resize()},t.prototype.resetDynamicDownloadOptions=function(){this.renderingUrls=[],this.renderingUrlsCount=0,this.$downloadOptions.find("li.dynamic").remove()},t.prototype.addDownloadOptionsForRenderings=function(e,t,i){for(var n=e.getRenderings(),o=0;o");switch(i){case s.dynamicImageRenderings:this.$imageOptions.append(c);break;case s.dynamicCanvasRenderings:this.$canvasOptions.append(c);break;case s.dynamicSequenceRenderings:this.$sequenceOptions.append(c)}}}},t.prototype.getSelectedOption=function(){return this.$downloadOptions.find("li.option input:checked")},t.prototype.getCanvasImageResource=function(e){var t=e.getImages();return t[0]?t[0].getResource():null},t.prototype.getCanvasHighResImageUri=function(e){var t=this.getCanvasComputedDimensions(e);if(t){var i=t.width,n=e.getCanonicalImageUri(i),o=n.split("/"),s=this.extension.getViewerRotation();return o[o.length-2]=String(s),n=o.join("/")}return""},t.prototype.getCanvasMimeType=function(e){var t=this.getCanvasImageResource(e),i=t.getFormat();return i?i.toString():null},t.prototype.getCanvasDimensions=function(e){return e.externalResource.data?new a(e.externalResource.data.width,e.externalResource.data.height):new a(0,0)},t.prototype.getCanvasMaxDimensions=function(e){return e.externalResource.data&&e.externalResource.data.profile[1]?new a(e.externalResource.data.profile[1].maxWidth,e.externalResource.data.profile[1].maxHeight):null},t.prototype.getCanvasComputedDimensions=function(e){var t=this.getCanvasDimensions(e),i=this.getCanvasMaxDimensions(e);if(!i)return null;var n=t.width,o=t.height;if(!_.isUndefined(i.width)&&i.width1?!0:!1;case s.wholeImageLowResAsJpg:var n=this.getCanvasComputedDimensions(this.extension.helper.getCurrentCanvas());return n?!this.extension.isPagingSettingEnabled()&&n.width>this.options.confinedImageSize:!1;case s.selection:return this.options.selectionEnabled;default:return e.prototype.isDownloadOptionAvailable.call(this,t)}},t}(n);return l});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/ExternalContentDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("externalContentDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_EXTERNALCONTENT_DIALOGUE,this.closeCommand=i.HIDE_EXTERNALCONTENT_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open(),t.$iframe.prop("src",i.uri)}),$.subscribe(this.closeCommand,function(e){t.close()}),this.$iframe=$(""),this.$content.append(this.$iframe),this.$element.hide()},t.prototype.resize=function(){e.prototype.resize.call(this),this.$iframe.width(this.$content.width()),this.$iframe.height(this.$content.height())},t}(n);return o}),define("modules/uv-shared-module/AutoComplete",["require","exports"],function(e,t){var i=function(){function e(e,t,i,n,o,s,r){var a=this;void 0===o&&(o=300),void 0===s&&(s=2),void 0===r&&(r=!1),this._validKeyDownCodes=[KeyCodes.KeyDown.Backspace,KeyCodes.KeyDown.Spacebar,KeyCodes.KeyDown.Tab,KeyCodes.KeyDown.LeftArrow,KeyCodes.KeyDown.RightArrow,KeyCodes.KeyDown.Delete],this._validKeyPressCodes=[KeyCodes.KeyPress.GraveAccent,KeyCodes.KeyPress.DoubleQuote],this._lastKeyDownWasValid=!1,this._$element=e,this._autoCompleteFunc=t,this._delay=o,this._minChars=s,this._onSelect=n,this._parseResultsFunc=i,this._positionAbove=r,this._$searchResultsList=$(''),this._positionAbove?this._$element.parent().prepend(this._$searchResultsList):this._$element.parent().append(this._$searchResultsList),this._$searchResultTemplate=$('');var l=function(){var e=0;return function(t,i){clearTimeout(e),e=setTimeout(t,i)}}(),h=this;this._$element.on("keydown",function(e){var t=e.originalEvent;h._lastKeyDownWasValid=h._isValidKeyDown(t);var i=Utils.Keyboard.getCharCode(t),n=!1;i===KeyCodes.KeyDown.LeftArrow?n=!0:i===KeyCodes.KeyDown.RightArrow&&(n=!0),n&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}),this._$element.on("keypress",function(e){var t=h._isValidKeyPress(e.originalEvent);return h._lastKeyDownWasValid||t?!0:(e.preventDefault(),!1)}),this._$element.on("keyup",function(e){if(!h._getSelectedListItem().length&&e.keyCode===KeyCodes.KeyDown.Enter)return void h._onSelect(h._getTerms());if(h._$searchResultsList.is(":visible")&&h._results.length)if(e.keyCode===KeyCodes.KeyDown.Enter)h._searchForItem(h._getSelectedListItem());else{if(e.keyCode===KeyCodes.KeyDown.DownArrow)return void h._setSelectedResultIndex(1);if(e.keyCode===KeyCodes.KeyDown.UpArrow)return void h._setSelectedResultIndex(-1)}e.keyCode!==KeyCodes.KeyDown.Enter&&l(function(){var e=h._getTerms();e&&e.length>h._minChars&&!e.contains(" ")?h._search(e):(h._clearResults(),h._hideResults())},h._delay)}),$(document).on("mouseup",function(e){0===a._$searchResultsList.parent().has($(e.target)[0]).length&&(a._clearResults(),a._hideResults())}),this._hideResults()}return e.prototype._isValidKeyDown=function(e){var t=this._validKeyDownCodes.contains(Utils.Keyboard.getCharCode(e));return t},e.prototype._isValidKeyPress=function(e){var t=Utils.Keyboard.getCharCode(e),i=String.fromCharCode(t),n=i.isAlphanumeric()||this._validKeyPressCodes.contains(t);return n},e.prototype._getTerms=function(){return this._$element.val().trim()},e.prototype._setSelectedResultIndex=function(e){var t;t=1===e?this._selectedResultIndex+1:this._selectedResultIndex-1;var i=this._$searchResultsList.find("li");0>t?t=i.length-1:t>i.length-1&&(t=0),this._selectedResultIndex=t,i.removeClass("selected");var n=i.eq(this._selectedResultIndex);n.addClass("selected");var o=n.outerHeight(!0)*this._selectedResultIndex;this._$searchResultsList.scrollTop(o)},e.prototype._search=function(e){this._results=[],this._clearResults(),this._showResults(),this._$searchResultsList.append(''),this._updateListPosition();var t=this;this._autoCompleteFunc(e,function(e){t._listResults(e)})},e.prototype._clearResults=function(){this._$searchResultsList.empty()},e.prototype._hideResults=function(){this._$searchResultsList.hide()},e.prototype._showResults=function(){this._selectedResultIndex=-1,this._$searchResultsList.show()},e.prototype._updateListPosition=function(){this._positionAbove?this._$searchResultsList.css({top:-1*this._$searchResultsList.outerHeight(!0)}):this._$searchResultsList.css({top:this._$element.outerHeight(!0)})},e.prototype._listResults=function(e){if(this._results=this._parseResultsFunc(e),this._clearResults(),!this._results.length)return void this._hideResults();for(var t=0;t'+this.content.print+""),this.$options.prepend(this.$printButton),this.$searchContainer=$(''),this.$element.prepend(this.$searchContainer),this.$searchOptions=$(''),this.$searchContainer.append(this.$searchOptions),this.$searchLabel=$(''+this.content.searchWithin+""),this.$searchOptions.append(this.$searchLabel),this.$searchTextContainer=$(''),this.$searchOptions.append(this.$searchTextContainer),this.$searchText=$(''),this.$searchTextContainer.append(this.$searchText),this.$searchButton=$(''),this.$searchTextContainer.append(this.$searchButton),this.$searchPagerContainer=$(''),this.$element.prepend(this.$searchPagerContainer),this.$searchPagerControls=$(''),this.$searchPagerContainer.prepend(this.$searchPagerControls),this.$previousResultButton=$(''+this.content.previousResult+""),this.$searchPagerControls.append(this.$previousResultButton),this.$searchResultsInfo=$('x \'y\'
'),this.$searchPagerControls.append(this.$searchResultsInfo),this.$clearSearchResultsButton=$(''+this.content.clearSearch+""),this.$searchResultsInfo.append(this.$clearSearchResultsButton),this.$nextResultButton=$(''+this.content.nextResult+""),this.$searchPagerControls.append(this.$nextResultButton),this.$searchResultsContainer=$(''),this.$element.prepend(this.$searchResultsContainer),this.$line=$(''),this.$searchResultsContainer.append(this.$line),this.$pagePositionMarker=$(''),this.$searchResultsContainer.append(this.$pagePositionMarker),this.$pagePositionLabel=$(''),this.$searchResultsContainer.append(this.$pagePositionLabel),this.$placemarkerDetails=$(''),this.$searchResultsContainer.append(this.$placemarkerDetails),this.$placemarkerDetailsTop=$(""),this.$placemarkerDetails.append(this.$placemarkerDetailsTop),this.$placemarkerDetailsBottom=$(""),this.$placemarkerDetails.append(this.$placemarkerDetailsBottom),this.$searchPagerContainer.hide(),this.$placemarkerDetails.hide();var o=this;this.$searchButton.on("click",function(e){e.preventDefault(),t.search(t.$searchText.val())}),this.$searchText.on("focus",function(){t.$searchText.val()===t.content.enterKeyword&&t.$searchText.val("")}),this.$placemarkerDetails.on("mouseover",function(){$.publish(s.SEARCH_PREVIEW_START,[t.currentPlacemarkerIndex])}),this.$placemarkerDetails.on("mouseleave",function(){$(this).hide(),$.publish(s.SEARCH_PREVIEW_FINISH);var e=o.getSearchResultPlacemarkers();e.removeClass("hover")}),this.$placemarkerDetails.on("click",function(e){$.publish(s.VIEW_PAGE,[t.currentPlacemarkerIndex])}),this.$previousResultButton.on("click",function(e){e.preventDefault(),$.publish(s.PREV_SEARCH_RESULT)}),this.$nextResultButton.on("click",function(e){e.preventDefault(),$.publish(s.NEXT_SEARCH_RESULT)}),this.$clearSearchResultsButton.on("click",function(e){e.preventDefault(),$.publish(s.CLEAR_SEARCH),t.clearSearchResults()}),this.extension.isSearchWithinEnabled()||(this.$searchContainer.hide(),this.$searchPagerContainer.hide(),this.$searchResultsContainer.hide(),this.$element.addClass("min")),1===this.extension.helper.getTotalCanvases()&&this.$searchResultsContainer.hide();var r=this.extension.getAutoCompleteUri();r?new i(this.$searchText,function(e,t){$.getJSON(String.format(r,e),function(e){t(e)})},function(e){return _.map(e.terms,function(e){return e.match})},function(e){t.search(e)},300,2,!0):this.$searchText.on("keyup",function(e){e.keyCode===KeyCodes.KeyDown.Enter&&o.search(o.$searchText.val())}),this.$printButton.onPressed(function(){$.publish(s.PRINT)}),this.updatePrintButton();var a=Utils.Bools.getBool(this.config.options.positionMarkerEnabled,!0);a||(this.$pagePositionMarker.hide(),this.$pagePositionLabel.hide())},t.prototype.isZoomToSearchResultEnabled=function(){return Utils.Bools.getBool(this.extension.config.options.zoomToSearchResultEnabled,!0)},t.prototype.isPreviousButtonEnabled=function(){var e=this.extension.helper.canvasIndex,t=this.getFirstSearchResultCanvasIndex(),i=this.getCurrentSearchResultRectIndex();return this.isZoomToSearchResultEnabled()&&this.extension.currentSearchResultRect?t>e?!1:e===t&&0===i?!1:!0:e>t},t.prototype.isCanvasIndexLessThanFirstSearchResultIndex=function(){var e=this.extension.searchResults;return this.extension.helper.canvasIndex<=e[0].canvasIndex},t.prototype.isNextButtonEnabled=function(){var e=this.extension.helper.canvasIndex,t=this.getLastSearchResultCanvasIndex(),i=this.getCurrentSearchResultRectIndex();return this.isZoomToSearchResultEnabled()&&this.extension.currentSearchResultRect?e>t?!1:e===t&&i===this.getLastSearchResultRectIndex()?!1:!0:t>e},t.prototype.getSearchResults=function(){return this.extension.searchResults},t.prototype.getCurrentSearchResultRectIndex=function(){return this.extension.getCurrentSearchResultRectIndex()},t.prototype.getFirstSearchResultCanvasIndex=function(){var e=this.getSearchResults(),t=e[0].canvasIndex;return t},t.prototype.getLastSearchResultCanvasIndex=function(){var e=this.getSearchResults(),t=e[e.length-1].canvasIndex;return t},t.prototype.getLastSearchResultRectIndex=function(){return this.extension.getLastSearchResultRectIndex()},t.prototype.updateNextButton=function(){var e=this.extension.searchResults;e&&e.length&&(this.isNextButtonEnabled()?this.$nextResultButton.removeClass("disabled"):this.$nextResultButton.addClass("disabled"))},t.prototype.updatePrevButton=function(){var e=this.extension.searchResults;e&&e.length&&(this.isPreviousButtonEnabled()?this.$previousResultButton.removeClass("disabled"):this.$previousResultButton.addClass("disabled"))},t.prototype.updatePrintButton=function(){var e=Utils.Bools.getBool(this.options.printEnabled,!1);e?this.$printButton.show():this.$printButton.hide()},t.prototype.search=function(e){return this.terms=e,""===this.terms||this.terms===this.content.enterKeyword?void this.extension.showMessage(this.config.modules.genericDialogue.content.emptyValue,function(){this.$searchText.focus()}):(this.$searchText.blur(),this.showSearchSpinner(),void $.publish(s.SEARCH,[this.terms]))},t.prototype.getSearchResultPlacemarkers=function(){return this.$searchResultsContainer.find(".searchResultPlacemarker")},t.prototype.setCurrentSearchResultPlacemarker=function(){var e=this.getSearchResultPlacemarkers();e.parent().find(".current").removeClass("current");var t=$('.searchResultPlacemarker[data-index="'+this.extension.helper.canvasIndex+'"]');t.addClass("current")},t.prototype.positionSearchResultPlacemarkers=function(){var e=this.extension.searchResults;if(e.length){var t=this.getSearchResultPlacemarkers();t.remove();for(var i=this.getPageLineRatio(),n=this.$line.position().top,o=this.$line.position().left,s=this,r=0;r');h[0].ontouchstart=function(e){s.onPlacemarkerTouchStart.call(this,s)},h.click(function(e){s.onPlacemarkerClick.call(this,s)}),h.mouseenter(function(e){s.onPlacemarkerMouseEnter.call(this,s)}),h.mouseleave(function(e){s.onPlacemarkerMouseLeave.call(this,e,s)}),this.$searchResultsContainer.append(h);var c=n-h.height(),u=o+l-h.width()/2;h.css({top:c,left:u})}}},t.prototype.onPlacemarkerTouchStart=function(e){e.placemarkerTouched=!0;var t=$(this),i=parseInt(t.attr("data-index"));$.publish(s.VIEW_PAGE,[i])},t.prototype.onPlacemarkerClick=function(e){if(!e.placemarkerTouched){e.placemarkerTouched=!1;var t=$(this),i=parseInt(t.attr("data-index"));$.publish(s.VIEW_PAGE,[i])}},t.prototype.onPlacemarkerMouseEnter=function(e){if(!e.placemarkerTouched){var t=$(this);t.addClass("hover");var i=parseInt(t.attr("data-index"));$.publish(s.SEARCH_PREVIEW_START,[i]);var n=e.getSearchResultPlacemarkers(),o=n.index(t[0]);e.currentPlacemarkerIndex=i,e.$placemarkerDetails.show();var a="{0} {1}",l=e.extension.getMode();if(l.toString()===r.page.toString()){var h=e.extension.helper.getCanvasByIndex(i),c=Manifesto.TranslationCollection.getValue(h.getLabel());""===c&&(c=this.extension.helper.manifest.options.defaultLabel),a=String.format(a,e.content.pageCaps,c)}else a=String.format(a,e.content.imageCaps,i+1);e.$placemarkerDetailsTop.html(a);var u,p=e.extension.searchResults[o],d=Utils.Strings.ellipsis(e.terms,e.options.elideDetailsTermsCount);1===p.rects.length?(u=e.content.instanceFound,u=String.format(u,d)):(u=e.content.instancesFound,u=String.format(u,p.rects.length,d)),e.$placemarkerDetailsBottom.html(u);var g=t.position(),f=g.top-e.$placemarkerDetails.height(),m=g.left;me.$line.width()-e.$placemarkerDetails.width()/2?m=e.$line.width()-e.$placemarkerDetails.width()+t.width()/2:m-=e.$placemarkerDetails.width()/2,e.$placemarkerDetails.css({top:f,left:m})}},t.prototype.onPlacemarkerMouseLeave=function(e,t){$.publish(s.SEARCH_PREVIEW_FINISH);var i=$(this),n=e.toElement||e.relatedTarget,o=$(n).closest(t.$placemarkerDetails).length;n!=t.$placemarkerDetails.get(0)&&0===o&&(t.$placemarkerDetails.hide(),i.removeClass("hover"))},t.prototype.setPageMarkerPosition=function(){if(null!=this.extension.helper.canvasIndex){var e=this.getPageLineRatio(),t=this.$line.position().top,i=this.$line.position().left,n=this.extension.helper.canvasIndex*e,o=t,s=i+n;this.$pagePositionMarker.css({top:o,left:s});var r=this.$line.width();s+this.$pagePositionLabel.outerWidth(!0)>r?(s-=this.$pagePositionLabel.outerWidth(!0),this.$pagePositionLabel.removeClass("right"),this.$pagePositionLabel.addClass("left")):(this.$pagePositionLabel.removeClass("left"),this.$pagePositionLabel.addClass("right")),this.$pagePositionLabel.css({top:o,left:s})}},t.prototype.clearSearchResults=function(){this.extension.searchResults=[];var e=this.getSearchResultPlacemarkers();e.remove(),this.$searchText.val(this.content.enterKeyword),this.$searchContainer.show(),this.$searchPagerContainer.hide(),this.$searchText.focus()},t.prototype.getPageLineRatio=function(){var e=this.$line.width();return 1===this.extension.helper.getTotalCanvases()?0:e/(this.extension.helper.getTotalCanvases()-1)},t.prototype.canvasIndexChanged=function(){this.setPageMarkerPosition(),this.setPlacemarkerLabel()},t.prototype.settingsChanged=function(){this.setPlacemarkerLabel()},t.prototype.setPlacemarkerLabel=function(){var e=this.content.displaying,t=this.extension.helper.canvasIndex;if(this.isPageModeEnabled()){var i=this.extension.helper.getCanvasByIndex(t),n=Manifesto.TranslationCollection.getValue(i.getLabel());""===n&&(n=this.content.defaultLabel);var o=this.extension.helper.getLastCanvasLabel(!0);this.$pagePositionLabel.html(String.format(e,this.content.page,this.extension.sanitize(n),this.extension.sanitize(o)))}else this.$pagePositionLabel.html(String.format(e,this.content.image,t+1,this.extension.helper.getTotalCanvases()))},t.prototype.isPageModeEnabled=function(){return this.config.options.pageModeEnabled&&this.extension.getMode().toString()===r.page.toString()},t.prototype.showSearchSpinner=function(){this.$searchText.addClass("searching")},t.prototype.hideSearchSpinner=function(){this.$searchText.removeClass("searching")},t.prototype.displaySearchResults=function(e,t){if(t){this.hideSearchSpinner(),this.positionSearchResultPlacemarkers(),this.$searchContainer.hide(),this.$searchPagerControls.css({left:0});var i=this.$searchPagerContainer.find(".number");i.text(this.extension.getTotalSearchResultRects());var n=this.$searchResultsInfo.find(".foundFor");1===t.length?n.html(this.content.resultFoundFor):n.html(this.content.resultsFoundFor);var o=this.$searchPagerContainer.find(".terms");o.html(Utils.Strings.ellipsis(e,this.options.elideResultsTermsCount)),o.prop("title",e),this.$searchPagerContainer.show(),this.resize()}},t.prototype.resize=function(){e.prototype.resize.call(this);var t=this.extension.searchResults;t&&t.length&&this.positionSearchResultPlacemarkers(),this.setPageMarkerPosition(),this.$searchPagerContainer.width(this.$element.width());var i=this.$element.width()/2;this.$searchPagerControls.css({left:i-this.$searchPagerControls.width()/2}),this.$searchOptions.css({left:i-this.$searchOptions.outerWidth()/2})},t}(o);return a});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-osdmobilefooterpanel-module/MobileFooter",["require","exports","../uv-shared-module/FooterPanel","../../extensions/uv-seadragon-extension/Commands"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){this.setConfig("mobileFooterPanel"),e.prototype.create.call(this),this.$spacer=$(''),this.$options.prepend(this.$spacer),this.$rotateButton=$(''+this.content.rotateRight+""),this.$options.prepend(this.$rotateButton),this.$zoomOutButton=$(''+this.content.zoomOut+""),this.$options.prepend(this.$zoomOutButton),this.$zoomInButton=$(''+this.content.zoomIn+""),this.$options.prepend(this.$zoomInButton),this.$zoomInButton.onPressed(function(){$.publish(n.ZOOM_IN)}),this.$zoomOutButton.onPressed(function(){$.publish(n.ZOOM_OUT)}),this.$rotateButton.onPressed(function(){$.publish(n.ROTATE)})},t.prototype.resize=function(){e.prototype.resize.call(this),this.$options.css("left",Math.floor(this.$element.width()/2-this.$options.width()/2))},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-dialogues-module/MoreInfoDialogue",["require","exports","../uv-shared-module/BaseCommands","../uv-shared-module/Dialogue"],function(e,t,i,n){var o=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("moreInfoDialogue"),e.prototype.create.call(this),this.openCommand=i.SHOW_MOREINFO_DIALOGUE,this.closeCommand=i.HIDE_MOREINFO_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open(i)}),$.subscribe(this.closeCommand,function(e){t.close()}),this.config.content=this.extension.config.modules.moreInfoRightPanel.content,this.config.options=this.extension.config.modules.moreInfoRightPanel.options,this.$title=$(""+this.config.content.title+"
"),this.$content.append(this.$title),this.$metadata=$(''),this.$content.append(this.$metadata),this.component=new IIIFComponents.MetadataComponent(this._getOptions()),this.$element.hide()},t.prototype.open=function(t){e.prototype.open.call(this,t),this.component.databind()},t.prototype._getOptions=function(){var e=this;return{canvasDisplayOrder:this.config.options.canvasDisplayOrder,canvases:this.extension.getCurrentCanvases(),canvasExclude:this.config.options.canvasExclude,canvasLabels:"Left Page, Right Page",content:this.config.content,copiedMessageDuration:2e3,copyToClipboardEnabled:Utils.Bools.getBool(this.config.options.copyToClipboardEnabled,!1),element:".overlay.moreInfo .iiif-metadata-component",helper:this.extension.helper,licenseFormatter:null,limit:this.config.options.textLimit||4,limitType:IIIFComponents.MetadataComponentOptions.LimitType.LINES,manifestDisplayOrder:this.config.options.manifestDisplayOrder,manifestExclude:this.config.options.manifestExclude,range:this.extension.getCurrentCanvasRange(),rtlLanguageCodes:this.config.options.rtlLanguageCodes,sanitizer:function(t){return e.extension.sanitize(t)},showAllLanguages:this.config.options.showAllLanguages}},t.prototype.close=function(){e.prototype.close.call(this)},t.prototype.resize=function(){this.setDockedPosition()},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-multiselectdialogue-module/MultiSelectDialogue",["require","exports","../../extensions/uv-seadragon-extension/Commands","../../modules/uv-shared-module/Dialogue","../../extensions/uv-seadragon-extension/Mode"],function(e,t,i,n,o){var s=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("multiSelectDialogue"),e.prototype.create.call(this);var n=this;this.openCommand=i.SHOW_MULTISELECT_DIALOGUE,this.closeCommand=i.HIDE_MULTISELECT_DIALOGUE,$.subscribe(this.openCommand,function(e,i){t.open();var n=t.extension.helper.getMultiSelectState();n.setEnabled(!0),t.component.databind()}),$.subscribe(this.closeCommand,function(e){t.close();var i=t.extension.helper.getMultiSelectState();i.setEnabled(!1)}),this.$title=$(""),this.$content.append(this.$title),this.$title.text(this.content.title),this.$gallery=$(''),this.$content.append(this.$gallery),this.options={element:".overlay.multiSelect .iiif-gallery-component",helper:this.extension.helper,chunkedResizingThreshold:this.config.options.galleryThumbChunkedResizingThreshold,content:this.config.content,debug:!1,imageFadeInDuration:300,initialZoom:4,minLabelWidth:20,pageModeEnabled:this.isPageModeEnabled(),searchResults:[],scrollStopDuration:100,sizingEnabled:!0,thumbHeight:this.config.options.galleryThumbHeight,thumbLoadPadding:this.config.options.galleryThumbLoadPadding,thumbWidth:this.config.options.galleryThumbWidth,viewingDirection:this.extension.helper.getViewingDirection()},this.component=new IIIFComponents.GalleryComponent(this.options);var o=$(this.options.element).find("a.select");o.addClass("btn btn-primary"),this.component.on("multiSelectionMade",function(e){var t=e[0];$.publish(i.MULTISELECTION_MADE,[t]),n.close()}),this.$element.hide()},t.prototype.isPageModeEnabled=function(){return Utils.Bools.getBool(this.config.options.pageModeEnabled,!0)&&this.extension.getMode().toString()===o.page.toString()},t.prototype.open=function(){e.prototype.open.call(this)},t.prototype.close=function(){e.prototype.close.call(this)},t.prototype.resize=function(){e.prototype.resize.call(this);var t=$(this.options.element),i=t.find(".main"),n=t.find(".header");i.height(this.$content.height()-this.$title.outerHeight()-this.$title.verticalMargins()-n.height())},t}(n);return s}),define("extensions/uv-seadragon-extension/MultiSelectionArgs",["require","exports"],function(e,t){var i=function(){function e(){}return e}();return i});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("modules/uv-pagingheaderpanel-module/PagingHeaderPanel",["require","exports","../uv-shared-module/AutoComplete","../uv-shared-module/BaseCommands","../../extensions/uv-seadragon-extension/Commands","../uv-shared-module/HeaderPanel","../../extensions/uv-seadragon-extension/Mode"],function(e,t,i,n,o,s,r){var a=function(e){function t(t){e.call(this,t),this.firstButtonEnabled=!1,
+this.lastButtonEnabled=!1,this.nextButtonEnabled=!1,this.prevButtonEnabled=!1}return __extends(t,e),t.prototype.create=function(){var t=this;if(this.setConfig("pagingHeaderPanel"),e.prototype.create.call(this),$.subscribe(n.CANVAS_INDEX_CHANGED,function(e,i){t.canvasIndexChanged(i)}),$.subscribe(n.SETTINGS_CHANGED,function(e){t.modeChanged(),t.updatePagingToggle()}),$.subscribe(n.CANVAS_INDEX_CHANGE_FAILED,function(e){t.setSearchFieldValue(t.extension.helper.canvasIndex)}),$.subscribe(n.LEFTPANEL_EXPAND_FULL_START,function(e){t.openGallery()}),$.subscribe(n.LEFTPANEL_COLLAPSE_FULL_START,function(e){t.closeGallery()}),this.$prevOptions=$(''),this.$centerOptions.append(this.$prevOptions),this.$firstButton=$(''),this.$prevOptions.append(this.$firstButton),this.$prevButton=$(''),this.$prevOptions.append(this.$prevButton),this.$modeOptions=$(''),this.$centerOptions.append(this.$modeOptions),this.$imageModeLabel=$('"),this.$modeOptions.append(this.$imageModeLabel),this.$imageModeOption=$(''),this.$modeOptions.append(this.$imageModeOption),this.$pageModeLabel=$(''),this.$modeOptions.append(this.$pageModeLabel),this.$pageModeOption=$(''),this.$modeOptions.append(this.$pageModeOption),this.$search=$(''),this.$centerOptions.append(this.$search),this.$searchText=$(''),this.$search.append(this.$searchText),Utils.Bools.getBool(this.options.autoCompleteBoxEnabled,!0))this.$searchText.hide(),this.$autoCompleteBox=$(''),this.$search.append(this.$autoCompleteBox),new i(this.$autoCompleteBox,function(e,i){var n=[],o=t.extension.helper.getCanvases();if(t.isPageModeEnabled())for(var s=0;s'),this.$centerOptions.append(this.$selectionBoxOptions),this.$imageSelectionBox=$(''),this.$selectionBoxOptions.append(this.$imageSelectionBox);for(var s=0;s"+l+"")}this.$imageSelectionBox.change(function(){var e=parseInt(t.$imageSelectionBox.val());$.publish(o.IMAGE_SEARCH,[e])})}this.$total=$(''),this.$search.append(this.$total),this.$searchButton=$(''+this.content.go+""),this.$search.append(this.$searchButton),this.$nextOptions=$(''),this.$centerOptions.append(this.$nextOptions),this.$nextButton=$(''),this.$nextOptions.append(this.$nextButton),this.$lastButton=$(''),this.$nextOptions.append(this.$lastButton),this.isPageModeEnabled()?(this.$pageModeOption.attr("checked","checked"),this.$pageModeOption.removeAttr("disabled"),this.$pageModeLabel.removeClass("disabled")):(this.$imageModeOption.attr("checked","checked"),this.$pageModeOption.attr("disabled","disabled"),this.$pageModeLabel.addClass("disabled")),this.extension.helper.getManifestType().toString()===manifesto.ManifestType.manuscript().toString()?this.$pageModeLabel.text(this.content.folio):this.$pageModeLabel.text(this.content.page),this.$galleryButton=$(''),this.$rightOptions.prepend(this.$galleryButton),this.$pagingToggleButtons=$(''),this.$rightOptions.prepend(this.$pagingToggleButtons),this.$oneUpButton=$(''),this.$pagingToggleButtons.append(this.$oneUpButton),this.$twoUpButton=$(''),this.$pagingToggleButtons.append(this.$twoUpButton),this.updatePagingToggle(),this.updateGalleryButton(),this.$oneUpButton.onPressed(function(){var e=!1;t.updateSettings({pagingEnabled:e}),$.publish(o.PAGING_TOGGLED,[e])}),this.$twoUpButton.onPressed(function(){var e=!0;t.updateSettings({pagingEnabled:e}),$.publish(o.PAGING_TOGGLED,[e])}),this.$galleryButton.onPressed(function(){$.publish(n.TOGGLE_EXPAND_LEFT_PANEL)}),this.setTitles(),this.setTotal();var h=this.extension.helper.getViewingDirection();1===this.extension.helper.getTotalCanvases()&&this.$centerOptions.hide(),this.$firstButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.topToBottom().toString():case manifesto.ViewingDirection.bottomToTop().toString():$.publish(o.FIRST);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.LAST)}}),this.$prevButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(o.PREV);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.NEXT)}}),this.$nextButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(o.NEXT);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.PREV)}}),this.$lastButton.onPressed(function(){switch(h.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.topToBottom().toString():case manifesto.ViewingDirection.bottomToTop().toString():$.publish(o.LAST);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(o.FIRST)}}),this.config.options.pageModeEnabled?(this.$imageModeOption.on("click",function(e){$.publish(o.MODE_CHANGED,[r.image.toString()])}),this.$pageModeOption.on("click",function(e){$.publish(o.MODE_CHANGED,[r.page.toString()])})):(this.$imageModeOption.hide(),this.$pageModeLabel.hide(),this.$pageModeOption.hide()),this.$searchText.onEnter(function(){t.$searchText.blur(),t.search(t.$searchText.val())}),this.$searchText.click(function(){$(this).select()}),this.$searchButton.onPressed(function(){t.options.autoCompleteBoxEnabled?t.search(t.$autoCompleteBox.val()):t.search(t.$searchText.val())}),this.options.modeOptionsEnabled===!1&&(this.$modeOptions.hide(),this.$centerOptions.addClass("modeOptionsDisabled")),this.options.imageSelectionBoxEnabled===!0&&this.options.autoCompleteBoxEnabled!==!0&&this.$search.hide(),this.options.helpEnabled===!1&&this.$helpButton.hide(),Utils.Bools.getBool(this.options.pagingToggleEnabled,!0)||this.$pagingToggleButtons.hide()},t.prototype.openGallery=function(){this.$oneUpButton.removeClass("on"),this.$twoUpButton.removeClass("on"),this.$galleryButton.addClass("on")},t.prototype.closeGallery=function(){this.updatePagingToggle(),this.$galleryButton.removeClass("on")},t.prototype.isPageModeEnabled=function(){return this.config.options.pageModeEnabled&&this.extension.getMode().toString()===r.page.toString()},t.prototype.setTitles=function(){this.isPageModeEnabled()?(this.$firstButton.prop("title",this.content.firstPage),this.$prevButton.prop("title",this.content.previousPage),this.$nextButton.prop("title",this.content.nextPage),this.$lastButton.prop("title",this.content.lastPage)):(this.$firstButton.prop("title",this.content.firstImage),this.$prevButton.prop("title",this.content.previousImage),this.$nextButton.prop("title",this.content.nextImage),this.$lastButton.prop("title",this.content.lastImage)),this.$searchButton.prop("title",this.content.go)},t.prototype.updatePagingToggle=function(){return this.pagingToggleIsVisible()?void(this.extension.isPagingSettingEnabled()?(this.$oneUpButton.removeClass("on"),this.$twoUpButton.addClass("on")):(this.$twoUpButton.removeClass("on"),this.$oneUpButton.addClass("on"))):void this.$pagingToggleButtons.hide()},t.prototype.pagingToggleIsVisible=function(){return Utils.Bools.getBool(this.options.pagingToggleEnabled,!0)&&this.extension.helper.isPagingAvailable()},t.prototype.updateGalleryButton=function(){this.galleryIsVisible()||this.$galleryButton.hide()},t.prototype.galleryIsVisible=function(){return Utils.Bools.getBool(this.options.galleryButtonEnabled,!0)&&this.extension.isLeftPanelEnabled()},t.prototype.setTotal=function(){var e=this.content.of;this.isPageModeEnabled()?this.$total.html(String.format(e,this.extension.helper.getLastCanvasLabel(!0))):this.$total.html(String.format(e,this.extension.helper.getTotalCanvases()))},t.prototype.setSearchFieldValue=function(e){var t,i=this.extension.helper.getCanvasByIndex(e);if(this.isPageModeEnabled()){var n=Manifesto.TranslationCollection.getValue(i.getLabel());t="-"===n?"":n}else e+=1,t=e;this.options.autoCompleteBoxEnabled?this.$autoCompleteBox.val(t):this.$searchText.val(t)},t.prototype.search=function(e){if(!e)return this.extension.showMessage(this.content.emptyValue),void $.publish(n.CANVAS_INDEX_CHANGE_FAILED);if(this.isPageModeEnabled())$.publish(o.PAGE_SEARCH,[e]);else{var t;if(t=this.options.autoCompleteBoxEnabled?parseInt(this.$autoCompleteBox.val(),10):parseInt(this.$searchText.val(),10),t-=1,isNaN(t))return this.extension.showMessage(this.extension.config.modules.genericDialogue.content.invalidNumber),void $.publish(n.CANVAS_INDEX_CHANGE_FAILED);var i=this.extension.helper.getCanvasByIndex(t);if(!i)return this.extension.showMessage(this.extension.config.modules.genericDialogue.content.pageNotFound),void $.publish(n.CANVAS_INDEX_CHANGE_FAILED);$.publish(o.IMAGE_SEARCH,[t])}},t.prototype.canvasIndexChanged=function(e){this.setSearchFieldValue(e),this.options.imageSelectionBoxEnabled===!0&&this.options.autoCompleteBoxEnabled!==!0&&this.$imageSelectionBox.val(e);var t=this.extension.helper.getViewingDirection();t.toString()===manifesto.ViewingDirection.rightToLeft().toString()?(this.extension.helper.isFirstCanvas()?(this.disableLastButton(),this.disableNextButton()):(this.enableLastButton(),this.enableNextButton()),this.extension.helper.isLastCanvas()?(this.disableFirstButton(),this.disablePrevButton()):(this.enableFirstButton(),this.enablePrevButton())):(this.extension.helper.isFirstCanvas()?(this.disableFirstButton(),this.disablePrevButton()):(this.enableFirstButton(),this.enablePrevButton()),this.extension.helper.isLastCanvas()?(this.disableLastButton(),this.disableNextButton()):(this.enableLastButton(),this.enableNextButton()))},t.prototype.disableFirstButton=function(){this.firstButtonEnabled=!1,this.$firstButton.disable()},t.prototype.enableFirstButton=function(){this.firstButtonEnabled=!0,this.$firstButton.enable()},t.prototype.disableLastButton=function(){this.lastButtonEnabled=!1,this.$lastButton.disable()},t.prototype.enableLastButton=function(){this.lastButtonEnabled=!0,this.$lastButton.enable()},t.prototype.disablePrevButton=function(){this.prevButtonEnabled=!1,this.$prevButton.disable()},t.prototype.enablePrevButton=function(){this.prevButtonEnabled=!0,this.$prevButton.enable()},t.prototype.disableNextButton=function(){this.nextButtonEnabled=!1,this.$nextButton.disable()},t.prototype.enableNextButton=function(){this.nextButtonEnabled=!0,this.$nextButton.enable()},t.prototype.modeChanged=function(){this.setSearchFieldValue(this.extension.helper.canvasIndex),this.setTitles(),this.setTotal()},t.prototype.resize=function(){e.prototype.resize.call(this),this.extension.width()'),this.$content.prepend(this.$viewer),$.subscribe(i.SETTINGS_CHANGED,function(e,i){t.viewer.gestureSettingsMouse.clickToZoom=i.clickToZoomEnabled}),$.subscribe(i.OPEN_EXTERNAL_RESOURCE,function(e,i){t.whenResized(function(){t.isCreated||t.createUI(),t.openMedia(i)})}),$.subscribe(s.CLEAR_SEARCH,function(){t.whenCreated(function(){t.extension.currentSearchResultRect=null,t.clearSearchResults()})}),$.subscribe(s.VIEW_PAGE,function(){t.extension.previousSearchResultRect=null,t.extension.currentSearchResultRect=null}),$.subscribe(s.NEXT_SEARCH_RESULT,function(){t.whenCreated(function(){t.nextSearchResult()})}),$.subscribe(s.PREV_SEARCH_RESULT,function(){t.whenCreated(function(){t.prevSearchResult()})}),$.subscribe(s.ZOOM_IN,function(){t.whenCreated(function(){t.zoomIn()})}),$.subscribe(s.ZOOM_OUT,function(){t.whenCreated(function(){t.zoomOut()})}),$.subscribe(s.ROTATE,function(){t.whenCreated(function(){t.rotateRight()})}),$.subscribe(i.METRIC_CHANGED,function(){t.whenCreated(function(){t.updateResponsiveView()})})},t.prototype.whenResized=function(e){var t=this;Utils.Async.waitFor(function(){return t.isResized},e)},t.prototype.whenCreated=function(e){var t=this;Utils.Async.waitFor(function(){return t.isCreated},e)},t.prototype.zoomIn=function(){this.viewer.viewport.zoomTo(2*this.viewer.viewport.getZoom(!0))},t.prototype.zoomOut=function(){this.viewer.viewport.zoomTo(.5*this.viewer.viewport.getZoom(!0))},t.prototype.rotateRight=function(){this.viewer.viewport.setRotation(this.viewer.viewport.getRotation()+90)},t.prototype.updateResponsiveView=function(){this.setNavigatorVisible(),this.extension.metric.toString()===r.MetricType.MOBILELANDSCAPE.toString()?(this.viewer.autoHideControls=!1,this.$viewportNavButtons.hide()):(this.viewer.autoHideControls=!0,this.$viewportNavButtons.show())},t.prototype.createUI=function(){var e=this;this.$spinner=$(''),this.$content.append(this.$spinner),this.updateAttribution();var t=window.DEBUG?"modules/uv-seadragoncenterpanel-module/img/":"themes/"+this.extension.config.options.theme+"/img/uv-seadragoncenterpanel-module/";window.openSeadragonViewer=this.viewer=OpenSeadragon({id:"viewer",ajaxWithCredentials:!1,showNavigationControl:!0,showNavigator:!0,showRotationControl:!0,showHomeControl:Utils.Bools.getBool(this.config.options.showHomeControl,!1),showFullPageControl:!1,defaultZoomLevel:this.config.options.defaultZoomLevel||0,maxZoomPixelRatio:this.config.options.maxZoomPixelRatio||2,controlsFadeDelay:this.config.options.controlsFadeDelay||250,controlsFadeLength:this.config.options.controlsFadeLength||250,navigatorPosition:this.config.options.navigatorPosition||"BOTTOM_RIGHT",animationTime:this.config.options.animationTime||1.2,visibilityRatio:this.config.options.visibilityRatio||.5,constrainDuringPan:Utils.Bools.getBool(this.config.options.constrainDuringPan,!1),immediateRender:Utils.Bools.getBool(this.config.options.immediateRender,!1),blendTime:this.config.options.blendTime||0,autoHideControls:Utils.Bools.getBool(this.config.options.autoHideControls,!0),prefixUrl:t,gestureSettingsMouse:{clickToZoom:!!this.extension.config.options.clickToZoomEnabled},navImages:{zoomIn:{REST:"zoom_in.png",GROUP:"zoom_in.png",HOVER:"zoom_in.png",DOWN:"zoom_in.png"},zoomOut:{REST:"zoom_out.png",GROUP:"zoom_out.png",HOVER:"zoom_out.png",DOWN:"zoom_out.png"},home:{REST:"home.png",GROUP:"home.png",HOVER:"home.png",DOWN:"home.png"},rotateright:{REST:"rotate_right.png",GROUP:"rotate_right.png",HOVER:"rotate_right.png",DOWN:"rotate_right.png"},rotateleft:{REST:"pixel.gif",GROUP:"pixel.gif",HOVER:"pixel.gif",DOWN:"pixel.gif"},next:{REST:"pixel.gif",GROUP:"pixel.gif",HOVER:"pixel.gif",DOWN:"pixel.gif"},previous:{REST:"pixel.gif",GROUP:"pixel.gif",HOVER:"pixel.gif",DOWN:"pixel.gif"}}}),this.$zoomInButton=this.$viewer.find('div[title="Zoom in"]'),this.$zoomInButton.attr("tabindex",0),this.$zoomInButton.prop("title",this.content.zoomIn),this.$zoomInButton.addClass("zoomIn viewportNavButton"),this.$zoomOutButton=this.$viewer.find('div[title="Zoom out"]'),this.$zoomOutButton.attr("tabindex",0),this.$zoomOutButton.prop("title",this.content.zoomOut),this.$zoomOutButton.addClass("zoomOut viewportNavButton"),this.$goHomeButton=this.$viewer.find('div[title="Go home"]'),this.$goHomeButton.attr("tabindex",0),this.$goHomeButton.prop("title",this.content.goHome),this.$goHomeButton.addClass("goHome viewportNavButton"),this.$rotateButton=this.$viewer.find('div[title="Rotate right"]'),this.$rotateButton.attr("tabindex",0),this.$rotateButton.prop("title",this.content.rotateRight),this.$rotateButton.addClass("rotate viewportNavButton"),this.$viewportNavButtonsContainer=this.$viewer.find(".openseadragon-container > div:not(.openseadragon-canvas):first"),this.$viewportNavButtons=this.$viewportNavButtonsContainer.find(".viewportNavButton"),this.$canvas=$(this.viewer.canvas),window.DEBUG||this.$canvas.on("contextmenu",function(e){return!1}),this.$navigator=this.$viewer.find(".navigator"),this.setNavigatorVisible(),this.$element.on("mousemove",function(t){e.controlsVisible||(e.controlsVisible=!0,e.viewer.setControlsEnabled(!0))}),this.$element.on("mouseleave",function(t){e.controlsVisible&&(e.controlsVisible=!1,e.viewer.setControlsEnabled(!1))}),this.$element.on("mousemove",function(t){if(!e.$viewer.find(".navigator").ismouseover()){if(!e.controlsVisible)return;e.controlsVisible=!1,e.viewer.setControlsEnabled(!1)}},this.config.options.controlsFadeAfterInactive),this.viewer.addHandler("tile-drawn",function(){e.$spinner.hide()}),this.viewer.addHandler("resize",function(t){$.publish(s.SEADRAGON_RESIZE,[t]),e.viewerResize(t)}),this.viewer.addHandler("animation-start",function(e){$.publish(s.SEADRAGON_ANIMATION_START,[e])}),this.viewer.addHandler("animation",function(e){$.publish(s.SEADRAGON_ANIMATION,[e])}),this.viewer.addHandler("animation-finish",function(t){e.currentBounds=e.getViewportBounds(),e.updateVisibleSearchResultRects(),$.publish(s.SEADRAGON_ANIMATION_FINISH,[t])}),this.viewer.addHandler("rotate",function(e){$.publish(s.SEADRAGON_ROTATION,[e.degrees])}),this.title=this.extension.helper.getLabel(),this.createNavigationButtons(),this.hidePrevButton(),this.hideNextButton(),this.isCreated=!0,this.resize()},t.prototype.createNavigationButtons=function(){var e=this.extension.helper.getViewingDirection();switch(this.$prevButton=$(''),this.$prevButton.prop("title",this.content.previous),this.$nextButton=$(''),this.$nextButton.prop("title",this.content.next),this.viewer.addControl(this.$prevButton[0],{anchor:OpenSeadragon.ControlAnchor.TOP_LEFT}),this.viewer.addControl(this.$nextButton[0],{anchor:OpenSeadragon.ControlAnchor.TOP_RIGHT}),e.toString()){case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():this.$prevButton.addClass("vertical"),this.$nextButton.addClass("vertical")}var t=this;this.$prevButton.onPressed(function(i){if(i.preventDefault(),OpenSeadragon.cancelEvent(i),t.prevButtonEnabled)switch(e.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(s.PREV);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(s.NEXT)}}),this.$nextButton.onPressed(function(i){if(i.preventDefault(),OpenSeadragon.cancelEvent(i),t.nextButtonEnabled)switch(e.toString()){case manifesto.ViewingDirection.leftToRight().toString():case manifesto.ViewingDirection.bottomToTop().toString():case manifesto.ViewingDirection.topToBottom().toString():$.publish(s.NEXT);break;case manifesto.ViewingDirection.rightToLeft().toString():$.publish(s.PREV)}})},t.prototype.openMedia=function(e){var t=this;this.$spinner.show(),this.items=[],this.extension.getExternalResources(e).then(function(e){t.viewer.close(),e=t.getPagePositions(e);for(var i=0;i1)if(2===e.length)this.extension.helper.isVerticallyAligned()?(n=e[0],n.y=0,o=e[1],o.y=n.height+this.config.options.pageGap):(t=e[0],t.x=0,i=e[1],i.x=t.width+this.config.options.pageGap);else if(this.extension.helper.isVerticallyAligned())if(this.extension.helper.isTopToBottom())for(var a=0;a0;a--)s=e[a],r=e[a-1],r.y=(s.y||0)-s.height;else if(this.extension.helper.isLeftToRight())for(var a=0;a0;a--)s=e[a],r=e[a-1],r.x=(s.x||0)-s.width;return e},t.prototype.openPagesHandler=function(){if($.publish(s.SEADRAGON_OPEN),this.extension.helper.isMultiCanvas()&&!this.extension.helper.isContinuous()){this.showPrevButton(),this.showNextButton(),$(".navigator").addClass("extraMargin");var e=this.extension.helper.getViewingDirection();e.toString()===manifesto.ViewingDirection.rightToLeft().toString()?(this.extension.helper.isFirstCanvas()?this.disableNextButton():this.enableNextButton(),this.extension.helper.isLastCanvas()?this.disablePrevButton():this.enablePrevButton()):(this.extension.helper.isFirstCanvas()?this.disablePrevButton():this.enablePrevButton(),this.extension.helper.isLastCanvas()?this.disableNextButton():this.enableNextButton())}this.setNavigatorVisible(),this.overlaySearchResults(),this.updateBounds();var t=this.getInitialSearchResultRect();this.extension.previousSearchResultRect=null,this.extension.currentSearchResultRect=null,t&&this.isZoomToSearchResultEnabled()&&this.zoomToSearchResult(t),this.isFirstLoad=!1},t.prototype.updateBounds=function(){var e=this.extension.getSettings();this.isFirstLoad?(this.initialRotation=this.extension.getParam(a.rotation),this.initialRotation&&this.viewer.viewport.setRotation(parseInt(this.initialRotation)),this.initialBounds=this.extension.getParam(a.xywh),this.initialBounds&&(this.initialBounds=n.fromString(this.initialBounds),this.currentBounds=this.initialBounds,this.fitToBounds(this.currentBounds))):e.preserveViewport?this.fitToBounds(this.currentBounds):this.goHome()},t.prototype.goHome=function(){this.viewer.viewport.goHome(!0)},t.prototype.disablePrevButton=function(){this.prevButtonEnabled=!1,this.$prevButton.addClass("disabled")},t.prototype.enablePrevButton=function(){this.prevButtonEnabled=!0,this.$prevButton.removeClass("disabled")},t.prototype.hidePrevButton=function(){this.disablePrevButton(),this.$prevButton.hide()},t.prototype.showPrevButton=function(){this.enablePrevButton(),this.$prevButton.show()},t.prototype.disableNextButton=function(){this.nextButtonEnabled=!1,this.$nextButton.addClass("disabled")},t.prototype.enableNextButton=function(){this.nextButtonEnabled=!0,this.$nextButton.removeClass("disabled")},t.prototype.hideNextButton=function(){this.disableNextButton(),this.$nextButton.hide()},t.prototype.showNextButton=function(){this.enableNextButton(),this.$nextButton.show()},t.prototype.serialiseBounds=function(e){return e.x+","+e.y+","+e.width+","+e.height},t.prototype.fitToBounds=function(e,t){void 0===t&&(t=!0);var i=new OpenSeadragon.Rect;i.x=Number(e.x),i.y=Number(e.y),i.width=Number(e.w),i.height=Number(e.h),this.viewer.viewport.fitBoundsWithConstraints(i,t)},t.prototype.getCroppedImageBounds=function(){if(!this.viewer||!this.viewer.viewport)return null;var e=this.extension.helper.getCurrentCanvas(),t=this.extension.getCroppedImageDimensions(e,this.viewer),i=new n(t.regionPos.x,t.regionPos.y,t.region.width,t.region.height);return i.toString()},t.prototype.getViewportBounds=function(){if(!this.viewer||!this.viewer.viewport)return null;var e=this.viewer.viewport.getBounds(!0),t=new n(Math.floor(e.x),Math.floor(e.y),Math.floor(e.width),Math.floor(e.height));return t},t.prototype.viewerResize=function(e){if(e.viewport){var t=e.viewport.getCenter(!0);t&&setTimeout(function(){e.viewport.panTo(t,!0)},1)}},t.prototype.clearSearchResults=function(){this.$canvas.find(".searchOverlay").hide()},t.prototype.overlaySearchResults=function(){for(var e=this.getSearchResultsForCurrentImages(),t=0;tthis.extension.helper.canvasIndex?(this.extension.currentSearchResultRect=o,$.publish(s.SEARCH_RESULT_CANVAS_CHANGED,[o])):this.zoomToSearchResult(o):$.publish(s.NEXT_IMAGES_SEARCH_RESULT_UNAVAILABLE)},t.prototype.prevSearchResult=function(){for(var e,t=this.getSearchResultRectsForCurrentImages(),i=this.getSearchResultRectIndex(this.extension.currentSearchResultRect),n=i-1;n>=0;n--){var o=t[n];e=o;break}e&&this.isZoomToSearchResultEnabled()?o.canvasIndexthis.extension.helper.canvasIndex?t.en().where(function(t){return t.canvasIndex===e.extension.helper.canvasIndex}).last():t.en().where(function(t){return t.canvasIndex===e.extension.helper.canvasIndex}).first():null},t.prototype.zoomToSearchResult=function(e){this.extension.previousSearchResultRect=this.extension.currentSearchResultRect||e,this.extension.currentSearchResultRect=e,this.fitToBounds(new n(e.viewportX,e.viewportY,e.width,e.height),!1),this.highlightSearchResultRect(e),$.publish(s.SEARCH_RESULT_RECT_CHANGED)},t.prototype.highlightSearchResultRect=function(e){var t=$("#searchResult-"+e.canvasIndex+"-"+e.index);t.addClass("current"),$(".searchOverlay").not(t).removeClass("current")},t.prototype.getSearchOverlayRects=function(e){var t=[],i=this.extension.resources.en().where(function(t){return t.index===e.canvasIndex}).first(),n=this.extension.resources.indexOf(i),o=(this.extension.resources[n].width,0);n>0&&(o=this.extension.resources[n-1].width);for(var s=0;s0?this.config.options.pageGap:0),l=r.y,h=r.width,c=r.height,u=new OpenSeadragon.Rect(a,l,h,c);r.viewportX=a,r.viewportY=l,u.canvasIndex=r.canvasIndex,u.resultIndex=r.index,u.chars=r.chars,t.push(u)}return t},t.prototype.resize=function(){var t=this;if(e.prototype.resize.call(this),this.$viewer.height(this.$content.height()-this.$viewer.verticalMargins()),this.$viewer.width(this.$content.width()-this.$viewer.horizontalMargins()),this.isCreated){this.$title.ellipsisFill(this.extension.sanitize(this.title)),this.$spinner.css("top",this.$content.height()/2-this.$spinner.height()/2),this.$spinner.css("left",this.$content.width()/2-this.$spinner.width()/2);var i=this.extension.helper.getViewingDirection();if(this.extension.helper.isMultiCanvas()&&this.$prevButton&&this.$nextButton){var n=Math.floor(this.$content.width()/2);switch(i.toString()){case manifesto.ViewingDirection.bottomToTop().toString():this.$prevButton.addClass("down"),this.$nextButton.addClass("up"),this.$prevButton.css("left",n-this.$prevButton.outerWidth()/2),this.$prevButton.css("top",this.$content.height()-this.$prevButton.height()),this.$nextButton.css("left",-1*n-this.$nextButton.outerWidth()/2);break;case manifesto.ViewingDirection.topToBottom().toString():this.$prevButton.css("left",n-this.$prevButton.outerWidth()/2),this.$nextButton.css("left",-1*n-this.$nextButton.outerWidth()/2),this.$nextButton.css("top",this.$content.height()-this.$nextButton.height());break;default:this.$prevButton.css("top",(this.$content.height()-this.$prevButton.height())/2),this.$nextButton.css("top",(this.$content.height()-this.$nextButton.height())/2)}}setTimeout(function(){if(t.extension.helper.isContinuous())if(t.extension.helper.isHorizontallyAligned()){var e=t.$viewer.width()-t.$viewer.rightMargin();t.$navigator.width(e)}else t.$navigator.height(t.$viewer.height())},100)}},t.prototype.setFocus=function(){this.$canvas.is(":focus")||this.extension.config.options.allowStealFocus&&this.$canvas.focus()},t.prototype.setNavigatorVisible=function(){var e=Utils.Bools.getBool(this.extension.getSettings().navigatorEnabled,!0)&&this.extension.metric.toString()!==r.MetricType.MOBILELANDSCAPE.toString();this.viewer.navigator.setVisible(e),e?this.$navigator.show():this.$navigator.hide()},t}(o);return l});var __extends=this&&this.__extends||function(e,t){function i(){
+this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/SettingsDialogue",["require","exports","../../modules/uv-dialogues-module/SettingsDialogue"],function(e,t,i){var n=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(){var t=this;this.setConfig("settingsDialogue"),e.prototype.create.call(this),this.$navigatorEnabled=$(''),this.$scroll.append(this.$navigatorEnabled),this.$navigatorEnabledCheckbox=$(''),this.$navigatorEnabled.append(this.$navigatorEnabledCheckbox),this.$navigatorEnabledLabel=$('"),this.$navigatorEnabled.append(this.$navigatorEnabledLabel),this.$pagingEnabled=$(''),this.$scroll.append(this.$pagingEnabled),this.$pagingEnabledCheckbox=$(''),this.$pagingEnabled.append(this.$pagingEnabledCheckbox),this.$pagingEnabledLabel=$('"),this.$pagingEnabled.append(this.$pagingEnabledLabel),this.$clickToZoomEnabled=$(''),this.$scroll.append(this.$clickToZoomEnabled),this.$clickToZoomEnabledCheckbox=$(''),this.$clickToZoomEnabled.append(this.$clickToZoomEnabledCheckbox),this.$clickToZoomEnabledLabel=$('"),this.$clickToZoomEnabled.append(this.$clickToZoomEnabledLabel),this.$preserveViewport=$(''),this.$scroll.append(this.$preserveViewport),this.$preserveViewportCheckbox=$(''),this.$preserveViewport.append(this.$preserveViewportCheckbox),this.$preserveViewportLabel=$('"),this.$preserveViewport.append(this.$preserveViewportLabel),this.$navigatorEnabledCheckbox.change(function(){var e={};t.$navigatorEnabledCheckbox.is(":checked")?e.navigatorEnabled=!0:e.navigatorEnabled=!1,t.updateSettings(e)}),this.$clickToZoomEnabledCheckbox.change(function(){var e={};t.$clickToZoomEnabledCheckbox.is(":checked")?e.clickToZoomEnabled=!0:e.clickToZoomEnabled=!1,t.updateSettings(e)}),this.$pagingEnabledCheckbox.change(function(){var e={};t.$pagingEnabledCheckbox.is(":checked")?e.pagingEnabled=!0:e.pagingEnabled=!1,t.updateSettings(e)}),this.$preserveViewportCheckbox.change(function(){var e={};t.$preserveViewportCheckbox.is(":checked")?e.preserveViewport=!0:e.preserveViewport=!1,t.updateSettings(e)})},t.prototype.open=function(){e.prototype.open.call(this);var t=this.getSettings();t.navigatorEnabled?this.$navigatorEnabledCheckbox.prop("checked",!0):this.$navigatorEnabledCheckbox.removeAttr("checked"),t.clickToZoomEnabled?this.$clickToZoomEnabledCheckbox.prop("checked",!0):this.$clickToZoomEnabledCheckbox.removeAttr("checked"),this.extension.helper.isPagingAvailable()?t.pagingEnabled?this.$pagingEnabledCheckbox.prop("checked",!0):this.$pagingEnabledCheckbox.removeAttr("checked"):this.$pagingEnabled.hide(),t.preserveViewport?this.$preserveViewportCheckbox.prop("checked",!0):this.$preserveViewportCheckbox.removeAttr("checked")},t}(i);return n});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/ShareDialogue",["require","exports","../../modules/uv-dialogues-module/ShareDialogue","./Commands"],function(e,t,i,n){var o=function(e){function t(t){var i=this;e.call(this,t),$.subscribe(n.SEADRAGON_OPEN,function(){i.update()}),$.subscribe(n.SEADRAGON_ANIMATION_FINISH,function(){i.update()})}return __extends(t,e),t.prototype.create=function(){this.setConfig("shareDialogue"),e.prototype.create.call(this)},t.prototype.update=function(){e.prototype.update.call(this);var t=this.extension.getViewportBounds(),i=this.extension.getViewerRotation();this.code=this.extension.getEmbedScript(this.options.embedTemplate,this.currentWidth,this.currentHeight,t,i),this.$code.val(this.code)},t.prototype.resize=function(){e.prototype.resize.call(this)},t}(i);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-seadragon-extension/Extension",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-shared-module/BaseExtension","../../modules/uv-shared-module/Bookmark","./Commands","../../modules/uv-contentleftpanel-module/ContentLeftPanel","./CroppedImageDimensions","./DownloadDialogue","../../modules/uv-dialogues-module/ExternalContentDialogue","../../modules/uv-searchfooterpanel-module/FooterPanel","../../modules/uv-dialogues-module/HelpDialogue","../../modules/uv-shared-module/MetricType","../../modules/uv-osdmobilefooterpanel-module/MobileFooter","./Mode","../../modules/uv-dialogues-module/MoreInfoDialogue","../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel","../../modules/uv-multiselectdialogue-module/MultiSelectDialogue","./MultiSelectionArgs","../../modules/uv-pagingheaderpanel-module/PagingHeaderPanel","../../Params","../../modules/uv-shared-module/Point","../../modules/uv-seadragoncenterpanel-module/SeadragonCenterPanel","./SettingsDialogue","./ShareDialogue","../../modules/uv-shared-module/Shell"],function(e,t,i,n,o,s,r,a,l,h,c,u,p,d,g,f,m,v,b,E,x,y,w,S,C,R){var T=Manifold.SearchResult,I=Utils.Measurements.Size,D=function(e){function t(t){e.call(this,t),this.currentRotation=0,this.isSearching=!1,this.searchResults=[]}return __extends(t,e),t.prototype.create=function(t){var n=this;e.prototype.create.call(this,t);$.subscribe(i.METRIC_CHANGED,function(){if(n.metric.toString()===p.MetricType.MOBILELANDSCAPE.toString()){var e={};e.pagingEnabled=!1,n.updateSettings(e),$.publish(i.UPDATE_SETTINGS),R.$rightPanel.hide()}else R.$rightPanel.show()}),$.subscribe(s.CLEAR_SEARCH,function(e){n.searchResults=null,$.publish(s.SEARCH_RESULTS_CLEARED),n.triggerSocket(s.CLEAR_SEARCH)}),$.subscribe(i.DOWN_ARROW,function(e){n.useArrowKeysToNavigate()||n.centerPanel.setFocus()}),$.subscribe(i.END,function(e){n.viewPage(n.helper.getLastPageIndex())}),$.subscribe(s.FIRST,function(e){n.triggerSocket(s.FIRST),n.viewPage(n.helper.getFirstPageIndex())}),$.subscribe(s.GALLERY_DECREASE_SIZE,function(e){n.triggerSocket(s.GALLERY_DECREASE_SIZE)}),$.subscribe(s.GALLERY_INCREASE_SIZE,function(e){n.triggerSocket(s.GALLERY_INCREASE_SIZE)}),$.subscribe(s.GALLERY_THUMB_SELECTED,function(e){n.triggerSocket(s.GALLERY_THUMB_SELECTED)}),$.subscribe(i.HOME,function(e){n.viewPage(n.helper.getFirstPageIndex())}),$.subscribe(s.IMAGE_SEARCH,function(e,t){n.triggerSocket(s.IMAGE_SEARCH,t),n.viewPage(t)}),$.subscribe(s.LAST,function(e){n.triggerSocket(s.LAST),n.viewPage(n.helper.getLastPageIndex())}),$.subscribe(i.LEFT_ARROW,function(e){n.useArrowKeysToNavigate()?n.viewPage(n.getPrevPageIndex()):n.centerPanel.setFocus()}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_START,function(e){n.metric.toString()!==p.MetricType.MOBILELANDSCAPE.toString()&&R.$rightPanel.show()}),$.subscribe(i.LEFTPANEL_COLLAPSE_FULL_FINISH,function(e){R.$centerPanel.show(),n.resize()}),$.subscribe(i.LEFTPANEL_EXPAND_FULL_START,function(e){R.$centerPanel.hide(),R.$rightPanel.hide()}),$.subscribe(i.MINUS,function(e){n.centerPanel.setFocus()}),$.subscribe(s.MODE_CHANGED,function(e,t){n.triggerSocket(s.MODE_CHANGED,t),n.mode=new g(t);var o=n.getSettings();$.publish(i.SETTINGS_CHANGED,[o])}),$.subscribe(s.MULTISELECTION_MADE,function(e,t){var i=new b;i.manifestUri=n.helper.iiifResourceUri,i.allCanvases=t.length===n.helper.getCanvases().length,i.canvases=t,i.format=n.config.options.multiSelectionMimeType,i.sequence=n.helper.getCurrentSequence().id,n.triggerSocket(s.MULTISELECTION_MADE,i)}),$.subscribe(s.NEXT,function(e){n.triggerSocket(s.NEXT),n.viewPage(n.getNextPageIndex())}),$.subscribe(s.NEXT_SEARCH_RESULT,function(){n.triggerSocket(s.NEXT_SEARCH_RESULT)}),$.subscribe(s.NEXT_IMAGES_SEARCH_RESULT_UNAVAILABLE,function(){n.triggerSocket(s.NEXT_IMAGES_SEARCH_RESULT_UNAVAILABLE),n.nextSearchResult()}),$.subscribe(s.PREV_IMAGES_SEARCH_RESULT_UNAVAILABLE,function(){n.triggerSocket(s.PREV_IMAGES_SEARCH_RESULT_UNAVAILABLE),n.prevSearchResult()}),$.subscribe(s.OPEN_THUMBS_VIEW,function(e){n.triggerSocket(s.OPEN_THUMBS_VIEW)}),$.subscribe(s.OPEN_TREE_VIEW,function(e){n.triggerSocket(s.OPEN_TREE_VIEW)}),$.subscribe(i.PAGE_DOWN,function(e){n.viewPage(n.getNextPageIndex())}),$.subscribe(s.PAGE_SEARCH,function(e,t){n.triggerSocket(s.PAGE_SEARCH,t),n.viewLabel(t)}),$.subscribe(i.PAGE_UP,function(e){n.viewPage(n.getPrevPageIndex())}),$.subscribe(s.PAGING_TOGGLED,function(e,t){n.triggerSocket(s.PAGING_TOGGLED,t)}),$.subscribe(i.PLUS,function(e){n.centerPanel.setFocus()}),$.subscribe(s.PREV,function(e){n.triggerSocket(s.PREV),n.viewPage(n.getPrevPageIndex())}),$.subscribe(s.PREV_SEARCH_RESULT,function(){n.triggerSocket(s.PREV_SEARCH_RESULT)}),$.subscribe(s.PRINT,function(){n.print()}),$.subscribe(i.RIGHT_ARROW,function(e){n.useArrowKeysToNavigate()?n.viewPage(n.getNextPageIndex()):n.centerPanel.setFocus()}),$.subscribe(s.SEADRAGON_ANIMATION,function(){n.triggerSocket(s.SEADRAGON_ANIMATION)}),$.subscribe(s.SEADRAGON_ANIMATION_FINISH,function(e,t){n.centerPanel&&n.centerPanel.currentBounds&&n.setParam(x.xywh,n.centerPanel.getViewportBounds().toString());var i=n.helper.getCurrentCanvas();n.triggerSocket(s.CURRENT_VIEW_URI,{cropUri:n.getCroppedImageUri(i,n.getViewer()),fullUri:n.getConfinedImageUri(i,i.getWidth())})}),$.subscribe(s.SEADRAGON_ANIMATION_START,function(){n.triggerSocket(s.SEADRAGON_ANIMATION_START)}),$.subscribe(s.SEADRAGON_OPEN,function(){n.useArrowKeysToNavigate()||n.centerPanel.setFocus()}),$.subscribe(s.SEADRAGON_RESIZE,function(){n.triggerSocket(s.SEADRAGON_RESIZE)}),$.subscribe(s.SEADRAGON_ROTATION,function(e,t){n.triggerSocket(s.SEADRAGON_ROTATION),n.currentRotation=t,n.setParam(x.rotation,t)}),$.subscribe(s.SEARCH,function(e,t){n.triggerSocket(s.SEARCH,t),n.searchWithin(t)}),$.subscribe(s.SEARCH_PREVIEW_FINISH,function(e){n.triggerSocket(s.SEARCH_PREVIEW_FINISH)}),$.subscribe(s.SEARCH_PREVIEW_START,function(e){n.triggerSocket(s.SEARCH_PREVIEW_START)}),$.subscribe(s.SEARCH_RESULTS,function(e,t){n.triggerSocket(s.SEARCH_RESULTS,t)}),$.subscribe(s.SEARCH_RESULT_CANVAS_CHANGED,function(e,t){n.viewPage(t.canvasIndex)}),$.subscribe(s.SEARCH_RESULTS_EMPTY,function(e){n.triggerSocket(s.SEARCH_RESULTS_EMPTY)}),$.subscribe(i.THUMB_SELECTED,function(e,t){n.viewPage(t.index)}),$.subscribe(s.TREE_NODE_SELECTED,function(e,t){n.triggerSocket(s.TREE_NODE_SELECTED,t.data.path),n.treeNodeSelected(t)}),$.subscribe(i.UP_ARROW,function(e){n.useArrowKeysToNavigate()||n.centerPanel.setFocus()}),$.subscribe(i.UPDATE_SETTINGS,function(e){n.viewPage(n.helper.canvasIndex,!0);var t=n.getSettings();$.publish(i.SETTINGS_CHANGED,[t])}),$.subscribe(s.VIEW_PAGE,function(e,t){n.triggerSocket(s.VIEW_PAGE,t),n.viewPage(t)}),Utils.Async.waitFor(function(){return n.centerPanel&&n.centerPanel.isCreated},function(){n.checkForSearchParam(),n.checkForRotationParam()})},t.prototype.createModules=function(){e.prototype.createModules.call(this),this.isHeaderPanelEnabled()?this.headerPanel=new E(R.$headerPanel):R.$headerPanel.hide(),this.isLeftPanelEnabled()?this.leftPanel=new r(R.$leftPanel):R.$leftPanel.hide(),this.centerPanel=new w(R.$centerPanel),this.isRightPanelEnabled()?this.rightPanel=new m(R.$rightPanel):R.$rightPanel.hide(),this.isFooterPanelEnabled()?(this.footerPanel=new c(R.$footerPanel),this.mobileFooterPanel=new d(R.$mobileFooterPanel)):R.$footerPanel.hide(),this.$helpDialogue=$(''),R.$overlays.append(this.$helpDialogue),this.helpDialogue=new u(this.$helpDialogue),this.$moreInfoDialogue=$(''),R.$overlays.append(this.$moreInfoDialogue),this.moreInfoDialogue=new f(this.$moreInfoDialogue),this.$multiSelectDialogue=$(''),R.$overlays.append(this.$multiSelectDialogue),this.multiSelectDialogue=new v(this.$multiSelectDialogue),this.$shareDialogue=$(''),R.$overlays.append(this.$shareDialogue),this.shareDialogue=new C(this.$shareDialogue),this.$downloadDialogue=$(''),R.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new l(this.$downloadDialogue),this.$settingsDialogue=$(''),R.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new S(this.$settingsDialogue),this.$externalContentDialogue=$(''),R.$overlays.append(this.$externalContentDialogue),this.externalContentDialogue=new h(this.$externalContentDialogue),this.isHeaderPanelEnabled()&&this.headerPanel.init(),this.isLeftPanelEnabled()&&this.leftPanel.init(),this.isRightPanelEnabled()&&this.rightPanel.init(),this.isFooterPanelEnabled()&&this.footerPanel.init()},t.prototype.checkForSearchParam=function(){if(this.isDeepLinkingEnabled()){var e=this.getParam(x.highlight);e&&(e.replace(/\+/g," ").replace(/"/g,""),$.publish(s.SEARCH,[e]))}},t.prototype.checkForRotationParam=function(){if(this.isDeepLinkingEnabled()){var e=Number(this.getParam(x.rotation));e&&$.publish(s.SEADRAGON_ROTATION,[e])}},t.prototype.viewPage=function(e,t){if(-1!==e){if(this.helper.isCanvasIndexOutOfRange(e)&&(this.showMessage(this.config.content.canvasIndexOutOfRange),e=0),this.isPagingSettingEnabled()&&!t){var i=this.getPagedIndices(e);if(i.contains(this.helper.canvasIndex))return void this.viewCanvas(e)}this.viewCanvas(e)}},t.prototype.getViewer=function(){return this.centerPanel.viewer},t.prototype.getMode=function(){if(this.mode)return this.mode;switch(this.helper.getManifestType().toString()){case manifesto.ManifestType.monograph().toString():return g.page;case manifesto.ManifestType.manuscript().toString():return g.page;default:return g.image}},t.prototype.getViewportBounds=function(){if(!this.centerPanel)return null;var e=this.centerPanel.getViewportBounds();return e?e.toString():null},t.prototype.getViewerRotation=function(){return this.centerPanel?this.currentRotation:null},t.prototype.viewRange=function(e){var t=this.helper.getRangeByPath(e);if(t){var i=t.getCanvasIds()[0],n=this.helper.getCanvasIndexById(i);this.viewPage(n)}},t.prototype.viewLabel=function(e){if(!e)return this.showMessage(this.config.modules.genericDialogue.content.emptyValue),void $.publish(i.CANVAS_INDEX_CHANGE_FAILED);var t=this.helper.getCanvasIndexByLabel(e);-1!=t?this.viewPage(t):(this.showMessage(this.config.modules.genericDialogue.content.pageNotFound),$.publish(i.CANVAS_INDEX_CHANGE_FAILED))},t.prototype.treeNodeSelected=function(e){var t=e.data;if(t.type)switch(t.type){case manifesto.IIIFResourceType.manifest().toString():this.viewManifest(t);break;case manifesto.IIIFResourceType.collection().toString():this.viewCollection(t);break;default:this.viewRange(t.path)}},t.prototype.clearSearch=function(){this.searchResults=[],this.viewPage(this.helper.canvasIndex)},t.prototype.prevSearchResult=function(){for(var e,t=this.searchResults.length-1;t>=0;t--){var i=this.searchResults[t];if(i.canvasIndex<=this.getPrevPageIndex()){e=i,this.viewPage(e.canvasIndex);break}}},t.prototype.nextSearchResult=function(){for(var e,t=0;t=this.getNextPageIndex()){e=i,this.viewPage(i.canvasIndex);break}}},t.prototype.bookmark=function(){e.prototype.bookmark.call(this);var t=this.helper.getCurrentCanvas(),n=new o;n.index=this.helper.canvasIndex,n.label=Manifesto.TranslationCollection.getValue(t.getLabel()),n.path=this.getCroppedImageUri(t,this.getViewer()),n.thumb=t.getCanonicalImageUri(this.config.options.bookmarkThumbWidth),n.title=this.helper.getLabel(),n.trackingLabel=window.trackingLabel,n.type=manifesto.ElementType.image().toString(),this.triggerSocket(i.BOOKMARK,n)},t.prototype.print=function(){window.print(),this.triggerSocket(s.PRINT)},t.prototype.getCroppedImageDimensions=function(e,t){if(!t)return null;if(!t.viewport)return null;if(!e.getHeight()||!e.getWidth())return null;var i=t.viewport.getBounds(!0),n=new a,o=Math.floor(i.width),s=Math.floor(i.height),r=Math.floor(i.x),l=Math.floor(i.y);r+o>e.getWidth()?o=e.getWidth()-r:0>r&&(o+=r),0>r&&(r=0),l+s>e.getHeight()?s=e.getHeight()-l:0>l&&(s+=l),0>l&&(l=0),o=Math.min(o,e.getWidth()),s=Math.min(s,e.getHeight());var h=o,c=s;if(e.externalResource.data&&e.externalResource.data.profile&&e.externalResource.data.profile[1]){var u=new I(e.externalResource.data.profile[1].maxWidth,e.externalResource.data.profile[1].maxHeight);if(!_.isUndefined(u.width)&&!_.isUndefined(u.height)){if(o>u.width){var p=u.width;s=Math.round(p*(s/o)),o=p}if(s>u.height){var d=u.height;o=Math.round(o/s*d),s=d}}}return n.region=new I(h,c),n.regionPos=new y(r,l),n.size=new I(o,s),n},t.prototype.getCroppedImageUri=function(e,t){if(!t)return null;if(!t.viewport)return null;var i=this.getCroppedImageDimensions(e,t),n=this.getImageBaseUri(e),o=this.getImageId(e),s=i.regionPos.x+","+i.regionPos.y+","+i.region.width+","+i.region.height,r=i.size.width+","+i.size.height,a=this.getViewerRotation(),l="default";return n+"/"+o+"/"+s+"/"+r+"/"+a+"/"+l+".jpg"},t.prototype.getConfinedImageDimensions=function(e,t){var i=new I(0,0);i.width=t;var n=Math.normalise(t,0,e.getWidth());return i.height=Math.floor(e.getHeight()*n),i},t.prototype.getConfinedImageUri=function(e,t){var i=this.getImageBaseUri(e),n=this.getImageId(e),o="full",s=this.getConfinedImageDimensions(e,t),r=s.width+","+s.height,a=this.getViewerRotation(),l="default";return i+"/"+n+"/"+o+"/"+r+"/"+a+"/"+l+".jpg"},t.prototype.getImageId=function(e){var t=this.getInfoUri(e);return t=t.substr(0,t.lastIndexOf("/")),t.substr(t.lastIndexOf("/")+1)},t.prototype.getImageBaseUri=function(e){var t=this.getInfoUri(e);return t=t.substr(0,t.lastIndexOf("/")),t.substr(0,t.lastIndexOf("/"))},t.prototype.getInfoUri=function(e){var t,i=e.getImages();if(i&&i.length)for(var n=i[0],o=n.getResource(),s=o.getServices(),r=0;rthis.helper.getTotalCanvases()-1?-1:t},t.prototype.getAutoCompleteService=function(){var e=this.helper.getSearchWithinService();return e?e.getService(manifesto.ServiceProfile.autoComplete()):null},t.prototype.getAutoCompleteUri=function(){var e=this.getAutoCompleteService();return e?e.id+"?q={0}":null},t.prototype.getSearchWithinServiceUri=function(){var e=this.helper.getSearchWithinService();if(!e)return null;var t=e.id;return t+="?q={0}"},t.prototype.searchWithin=function(e){var t=this;if(!this.isSearching){this.isSearching=!0,this.searchResults=[];var i=this,n=this.getSearchWithinServiceUri();n=String.format(n,e),this.getSearchResults(n,e,this.searchResults,function(n){t.isSearching=!1,n.length?(t.searchResults=n.sort(function(e,t){return e.canvasIndex-t.canvasIndex}),$.publish(s.SEARCH_RESULTS,[{terms:e,results:n}]),i.viewPage(i.helper.canvasIndex,!0)):i.showMessage(i.config.modules.genericDialogue.content.noMatches,function(){$.publish(s.SEARCH_RESULTS_EMPTY)})})}},t.prototype.getSearchResults=function(e,t,i,n){var o=this;$.getJSON(e,function(e){e.resources&&e.resources.length&&(i=i.concat(o.parseSearchJson(e,i))),e.next?o.getSearchResults(e.next,t,i,n):n(i)})},t.prototype.parseSearchJson=function(e,t){for(var i=[],n=0;n'),this.$content.prepend(this.$navigation),this.$zoomInButton=$(''),this.$navigation.append(this.$zoomInButton),this.$zoomOutButton=$(''),this.$navigation.append(this.$zoomOutButton),this.$viewport=$(''),this.$content.prepend(this.$viewport),this.title=this.extension.helper.getLabel(),this.updateAttribution(),this.$zoomInButton.on("click",function(e){e.preventDefault(),t.viewport.zoomIn()}),this.$zoomOutButton.on("click",function(e){e.preventDefault(),t.viewport.zoomOut()})},t.prototype.openMedia=function(e){var t=this;this.extension.getExternalResources(e).then(function(){t.$viewport.empty();var e=t.extension.helper.getCurrentCanvas();t.viewport=virtex.create({element:"#content .virtex",object:e.id,showStats:t.options.showStats}),t.resize()})},t.prototype.resize=function(){e.prototype.resize.call(this),this.$title.ellipsisFill(this.title),this.$viewport.width(this.$content.width()),this.$viewport.height(this.$content.height())},t}(n);return o});var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)};define("extensions/uv-virtex-extension/Extension",["require","exports","../../modules/uv-shared-module/BaseCommands","../../modules/uv-shared-module/BaseExtension","../../modules/uv-shared-module/Bookmark","../../modules/uv-contentleftpanel-module/ContentLeftPanel","./DownloadDialogue","./ShareDialogue","../../modules/uv-shared-module/FooterPanel","../../modules/uv-shared-module/HeaderPanel","../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel","./SettingsDialogue","../../modules/uv-shared-module/Shell","../../modules/uv-virtexcenterpanel-module/VirtexCenterPanel"],function(e,t,i,n,o,s,r,a,l,h,c,u,p,d){var g=function(e){function t(t){e.call(this,t)}return __extends(t,e),t.prototype.create=function(t){var n=this;e.prototype.create.call(this,t),$.subscribe(i.THUMB_SELECTED,function(e,t){n.viewCanvas(t)})},t.prototype.createModules=function(){e.prototype.createModules.call(this),this.isHeaderPanelEnabled()?this.headerPanel=new h(p.$headerPanel):p.$headerPanel.hide(),this.isLeftPanelEnabled()&&(this.leftPanel=new s(p.$leftPanel)),this.centerPanel=new d(p.$centerPanel),this.isRightPanelEnabled()&&(this.rightPanel=new c(p.$rightPanel)),this.isFooterPanelEnabled()?this.footerPanel=new l(p.$footerPanel):p.$footerPanel.hide(),this.$downloadDialogue=$(''),p.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new r(this.$downloadDialogue),this.$shareDialogue=$(''),p.$overlays.append(this.$shareDialogue),this.shareDialogue=new a(this.$shareDialogue),this.$settingsDialogue=$(''),p.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new u(this.$settingsDialogue),this.isLeftPanelEnabled()?this.leftPanel.init():p.$leftPanel.hide(),this.isRightPanelEnabled()?this.rightPanel.init():p.$rightPanel.hide()},t.prototype.isLeftPanelEnabled=function(){return Utils.Bools.getBool(this.config.options.leftPanelEnabled,!0)&&(this.helper.isMultiCanvas()||this.helper.isMultiSequence())},t.prototype.bookmark=function(){e.prototype.bookmark.call(this);var t=this.helper.getCurrentCanvas(),n=new o;n.index=this.helper.canvasIndex,n.label=Manifesto.TranslationCollection.getValue(t.getLabel()),n.path=this.getBookmarkUri(),n.thumb=t.getProperty("thumbnail"),n.title=this.helper.getLabel(),n.trackingLabel=window.trackingLabel,n.type=manifesto.ElementType.physicalobject().toString(),this.triggerSocket(i.BOOKMARK,n)},t.prototype.getEmbedScript=function(e,t,i){var n=this.config.uri||"",o=String.format(e,this.getSerializedLocales(),n,this.helper.iiifResourceUri,this.helper.collectionIndex,this.helper.manifestIndex,this.helper.sequenceIndex,this.helper.canvasIndex,t,i,this.embedScriptUri);return o},t}(n);return g}),"function"==typeof jQuery&&define("jquery",[],function(){return jQuery}),require(["Bootstrapper","extensions/uv-mediaelement-extension/Extension","extensions/uv-pdf-extension/Extension","extensions/uv-seadragon-extension/Extension","extensions/uv-virtex-extension/Extension"],function(e,t,i,n,o){var s={};s[manifesto.ElementType.canvas().toString()]={type:n,name:"uv-seadragon-extension"},s[manifesto.ElementType.movingimage().toString()]={type:t,name:"uv-mediaelement-extension"},s[manifesto.ElementType.physicalobject().toString()]={type:o,name:"uv-virtex-extension"},s[manifesto.ElementType.sound().toString()]={type:t,name:"uv-mediaelement-extension"},s[manifesto.RenderingFormat.pdf().toString()]={type:i,name:"uv-pdf-extension"};var r=new e(s);r.bootstrap()}),define("app",function(){});
\ No newline at end of file
diff --git a/dist/uv-2.0.2/lib/bundle.min.js b/dist/uv-2.0.2/lib/bundle.min.js
new file mode 100644
index 000000000..d57d7e807
--- /dev/null
+++ b/dist/uv-2.0.2/lib/bundle.min.js
@@ -0,0 +1,10 @@
+function Sanitize(){var i,options;for(options=arguments[0]||{},this.config={},this.config.elements=options.elements?options.elements:[],this.config.attributes=options.attributes?options.attributes:{},this.config.attributes[Sanitize.ALL]=this.config.attributes[Sanitize.ALL]?this.config.attributes[Sanitize.ALL]:[],this.config.allow_comments=!!options.allow_comments&&options.allow_comments,this.allowed_elements={},this.config.protocols=options.protocols?options.protocols:{},this.config.add_attributes=options.add_attributes?options.add_attributes:{},this.dom=options.dom?options.dom:document,i=0;i0;)this.current_element.removeChild(this.current_element.firstChild);parent_element.appendChild(this.current_element)}if(!this.config.remove_all_contents&&!this.config.remove_element_contents[name])for(i=0;ichars){var trimmedText=text.substr(0,chars);trimmedText=trimmedText.substr(0,Math.min(trimmedText.length,trimmedText.lastIndexOf(" "))),$self.empty().html(trimmedText+"…")}})},$.fn.ellipsisFill=function(text){var textPassed=!0;return text||(textPassed=!1),this.each(function(){var $self=$(this);textPassed||(text=$self.text()),$self.empty();var $spanElem=$('');if($self.append($spanElem),$self.css("overflow","hidden"),$spanElem.css("white-space","nowrap"),$spanElem.html(text),$spanElem.width()>$self.width())for(var lastText=null;$spanElem.width()>$self.width();){var t=$spanElem.html();if(t=t.substring(0,t.lastIndexOf(" "))+"…",t===lastText)break;$spanElem.html(t),lastText=t}})},$.fn.ellipsisHtmlFixed=function(chars,cb){return this.each(function(){var $self=$(this),expandedText=$self.html(),$trunc=$("");if($trunc.html($self.html().replace(/\s[\s]*/g," ").trim()),!($trunc.text().trim().length<=chars)){for(;$trunc.text().trim().length>chars;)$trunc.removeLastWord(chars);var collapsedText=$trunc.html(),expanded=!1;$self.toggle=function(){$self.empty();var $toggleButton=$('');expanded?($self.html(expandedText+" "),$toggleButton.text("less"),$toggleButton.toggleClass("less","more")):($self.html(collapsedText+"… "),$toggleButton.text("more"),$toggleButton.toggleClass("more","less")),$toggleButton.one("click",function(e){e.preventDefault(),$self.toggle()}),expanded=!expanded,$self.append($toggleButton),cb&&cb()},$self.toggle()}})},$.fn.enable=function(){return this.each(function(){var $self=$(this);$self.removeClass("disabled"),$self.attr("tabindex",$self.data("tabindex"))})},$.fn.equaliseHeight=function(reset,average){var maxHeight=-1,minHeight=Number.MAX_VALUE,heights=[];reset&&this.each(function(){$(this).height("auto")}),this.each(function(){var currentHeight=$(this).height();heights.push(currentHeight),maxHeight=maxHeight>currentHeight?maxHeight:currentHeight,minHeight=minHeightmaxTabIndex&&(maxTabIndex=tabIndex,$elementWithGreatestTabIndex=$el)}),$elementWithGreatestTabIndex},$.fn.horizontalMargins=function(){var $self=$(this);return parseInt($self.css("marginLeft"))+parseInt($self.css("marginRight"))},$.fn.leftMargin=function(){var $self=$(this);return parseInt($self.css("marginLeft"))},$.fn.rightMargin=function(){var $self=$(this);return parseInt($self.css("marginRight"))},$.fn.horizontalPadding=function(){var $self=$(this);return parseInt($self.css("paddingLeft"))+parseInt($self.css("paddingRight"))},$.fn.leftPadding=function(){var $self=$(this);return parseInt($self.css("paddingLeft"))},$.fn.rightPadding=function(){var $self=$(this);return parseInt($self.css("paddingRight"))},$.mlp={x:0,y:0},$(documentHandler),$.fn.ismouseover=function(){var result=!1;return this.eq(0).each(function(){var $current=$(this).is("iframe")?$(this).contents().find("body"):$(this),offset=$current.offset();result=offset.left<=$.mlp.x&&offset.left+$current.outerWidth()>$.mlp.x&&offset.top<=$.mlp.y&&offset.top+$current.outerHeight()>$.mlp.y}),result};var timer,on=$.fn.on;$.fn.on=function(){var args=Array.apply(null,arguments),last=args[args.length-1];if(isNaN(last)||1===last&&args.pop())return on.apply(this,args);var delay=args.pop(),fn=args.pop();return args.push(function(){var self=this,params=arguments;clearTimeout(timer),timer=setTimeout(function(){fn.apply(self,params)},delay)}),on.apply(this,args)},$.fn.onEnter=function(cb){return this.each(function(){var $this=$(this);$this.on("keyup",function(e){13===e.keyCode&&(e.preventDefault(),cb())})})},$.fn.onPressed=function(cb){return this.each(function(){var $this=$(this);$this.on("touchstart click",function(e){e.preventDefault(),cb(e)}),$this.on("keyup",function(e){13===e.keyCode&&(e.preventDefault(),cb(e))})})},$.fn.removeLastWord=function(chars,depth){return void 0===chars&&(chars=8),void 0===depth&&(depth=0),this.each(function(){var $self=$(this);if($self.contents().length>0){var $lastElement=$self.contents().last();if(3===$lastElement[0].nodeType){var words=$lastElement.text().trim().split(" ");if(words.length>1)return words.splice(words.length-1,1),void($lastElement[0].data=words.join(" "));if("undefined"!=typeof chars&&1===words.length&&words[0].length>chars)return void($lastElement[0].data=words.join(" ").substring(0,chars))}$lastElement.removeLastWord(chars,depth+1)}else depth>0&&$self.remove()})},$.fn.swapClass=function(removeClass,addClass){return this.each(function(){$(this).removeClass(removeClass).addClass(addClass)})},$.fn.targetBlank=function(){return this.each(function(){$(this).find("a").prop("target","_blank")})},$.fn.toggleClass=function(class1,class2){return this.each(function(){var $this=$(this);$this.hasClass(class1)?$(this).removeClass(class1).addClass(class2):$(this).removeClass(class2).addClass(class1)})},$.fn.toggleExpandText=function(chars,lessText,moreText,cb){return this.each(function(){var $self=$(this),expandedText=$self.html();if(!(chars>expandedText.length)){var expanded=!1,collapsedText=expandedText.substr(0,chars);collapsedText=collapsedText.substr(0,Math.min(collapsedText.length,collapsedText.lastIndexOf(" "))),$self.toggle=function(){$self.empty();var $toggleButton=$('');expanded?($self.html(expandedText+" "),$toggleButton.text(lessText),$toggleButton.toggleClass("less","more")):($self.html(collapsedText+" "),$toggleButton.text(moreText),$toggleButton.toggleClass("more","less")),$toggleButton.one("click",function(e){e.preventDefault(),$self.toggle()}),expanded=!expanded,$self.append($toggleButton),cb&&cb()},$self.toggle()}})},$.fn.toggleExpandTextByLines=function(lines,lessText,moreText,cb){return this.each(function(){for(var $self=$(this),expandedText=$self.html(),$buttonPad=$('… morepad'),stringsByLine=[expandedText],lastHeight=$self.height();$self.text().length>0;){$self.removeLastWord();var html=$self.html();$self.append($buttonPad),lastHeight>$self.height()&&(stringsByLine.unshift(html),lastHeight=$self.height()),$buttonPad.remove()}if(stringsByLine.length<=lines)return void $self.html(expandedText);var collapsedText=stringsByLine[lines-1],expanded=!1;$self.toggle=function(){$self.empty();var $toggleButton=$('');expanded?($self.html(expandedText+" "),$toggleButton.text(lessText),$toggleButton.toggleClass("less","more")):($self.html(collapsedText+"… "),$toggleButton.text(moreText),$toggleButton.toggleClass("more","less")),$toggleButton.one("click",function(e){e.preventDefault(),$self.toggle()}),expanded=!expanded,$self.append($toggleButton),cb&&cb()},$self.toggle()})},$.fn.toggleText=function(text1,text2){return this.each(function(){var $self=$(this);$self.text()===text1?$(this).text(text2):$(this).text(text1)})},$.fn.updateAttr=function(attrName,oldVal,newVal){return this.each(function(){var $self=$(this),attr=$self.attr(attrName);attr&&0===attr.indexOf(oldVal)&&(attr=attr.replace(oldVal,newVal),$self.attr(attrName,attr))})},$.fn.verticalMargins=function(){var $self=$(this);return parseInt($self.css("marginTop"))+parseInt($self.css("marginBottom"))},$.fn.verticalPadding=function(){var $self=$(this);return parseInt($self.css("paddingTop"))+parseInt($self.css("paddingBottom"))}}(jQuery)},{}]},{},[1])(1)}),!function(a){var b=null;a.initPubSub=function(){b=a({})},a.subscribe=function(){b||a.initPubSub(),b.on.apply(b,arguments)},a.unsubscribe=function(){b||a.initPubSub(),b.off.apply(b,arguments)},a.disposePubSub=function(){b=null},a.publish=function(){b||a.initPubSub(),b.trigger.apply(b,arguments)}}(jQuery),function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.keyCodes=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o-1&&(this._keys.splice(e,1),this._values.splice(e,1),this.size--,!0)},e.prototype.entries=function(){var e=this;return r.range(0,this.size).select(function(r){return[e._keys[r],e._values[r]]})},e.prototype.forEach=function(r,e){null==e&&(e=this);for(var t=0,n=this._keys,o=this._values,u=n.length;u>t;t++)r.call(e,o[t],n[t],this)},e.prototype.get=function(r){var e=this._keys.indexOf(r);return this._values[e]},e.prototype.has=function(r){return this._keys.indexOf(r)>-1},e.prototype.keys=function(){return this._keys.en()},e.prototype.set=function(r,e){var t=this._keys.indexOf(r);t>-1?this._values[t]=e:(this._keys.push(r),this._values.push(e),this.size++)},e.prototype.values=function(){return this._values.en()},e}();r.Map3=e,r.Enumerable.prototype.toMap=function(r,t){for(var n=new e,o=this.getEnumerator();o.moveNext();)n.set(r(o.current),t(o.current));return n},r.List&&(r.List.prototype.toMap=r.Enumerable.prototype.toMap)}(exjs||(exjs={})),function(r){r.Map||(r.Map=exjs.Map3)}("undefined"==typeof window?global:window);var exjs;!function(r){function e(e){var t=new r.Enumerable;return t.getEnumerator=function(){var r={current:void 0,moveNext:function(){return e(r)}};return r},t}r.anonymous=e}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n,o=1,u={current:void 0,moveNext:function(){if(2>o){if(t=t||r.getEnumerator(),t.moveNext())return u.current=t.current,!0;o++}return n=n||e.en().getEnumerator(),n.moveNext()?(u.current=n.current,!0):(u.current=void 0,!1)}};return u}r.Enumerable.prototype.append=function(){for(var t=this,n=[],o=0;o=e?(t.current=void 0,!1):(t.current=r[n],!0)},t}function t(){return this&&Array.isArray(this)?new n(this):new r.Enumerable}var n=function(r){function t(t){r.call(this),this.getEnumerator=function(){return e(t)},this.toArray=function(){return t.slice(0)}}return __extends(t,r),t}(r.Enumerable);try{Object.defineProperty(Array.prototype,"en",{value:t,enumerable:!1,writable:!1,configurable:!1})}catch(o){Array.prototype.en=t}}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=!1,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),o.current=void 0,t.moveNext()?(o.current=t.current,!0):!n&&(n=!0,t=e.getEnumerator(),!!t.moveNext()&&(o.current=t.current,!0))}};return o}r.Enumerable.prototype.concat=function(t){var n=this,o=t instanceof Array?t.en():t,u=new r.Enumerable;return u.getEnumerator=function(){return e(n,o)},u},r.List&&(r.List.prototype.concat=r.Enumerable.prototype.concat)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=[],o={current:void 0,moveNext:function(){if(t||(t=r.getEnumerator()),o.current=void 0,!e){for(;t.moveNext();)if(n.indexOf(t.current)<0)return n.push(o.current=t.current),!0;return!1}for(;t.moveNext();){for(var u=0,i=n.length,c=!1;i>u&&!c;u++)c=!!e(n[u],t.current);if(!c)return n.push(o.current=t.current),!0}return!1}};return o}r.Enumerable.prototype.distinct=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.List&&(r.List.prototype.distinct=r.Enumerable.prototype.distinct)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e,t){t=t||function(r,e){return r===e};var n,o={current:void 0,moveNext:function(){for(n||(n=r.getEnumerator()),o.current=void 0;n.moveNext();){for(var u=!1,i=e.getEnumerator();i.moveNext()&&!u;)u=t(n.current,i.current);if(!u)return o.current=n.current,!0}return!1}};return o}r.Enumerable.prototype.except=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.except=r.Enumerable.prototype.except)}(exjs||(exjs={})),Function.prototype.fromJson=function(r,e){function t(r,e){if(null==r)return r;if(e instanceof Function)return e(r);if(e instanceof Array){if(e=e[0],!(e instanceof Function&&r instanceof Array))return;for(var t=[],n=0;n-1)){var i=t(r[u],this.$jsonMappings[u]);void 0!==i&&(n[u]=i,o.push(u))}for(var u in r)o.indexOf(u)>-1||(n[u]=r[u]);return n};var exjs;!function(r){function e(r,e,n){var o,u=0,i={current:void 0,moveNext:function(){return o||(o=t(r,e,n)),i.current=void 0,!(u>=o.length)&&(i.current=o[u],u++,!0)}};return i}function t(r,e,t){t=t||function(r,e){return r===e};for(var o,u=[],i=[],c=r.getEnumerator();c.moveNext();){o=e(c.current);for(var a=-1,p=0,s=i.length;s>p;p++)if(t(o,i[p])){a=p;break}var f;0>a?(i.push(o),u.push(f=new n(o))):f=u[a],f._add(c.current)}return u}var n=function(r){function e(e){var t=this;r.call(this),this.key=e,this._arr=[],this.getEnumerator=function(){return t._arr.en().getEnumerator()}}return __extends(e,r),e.prototype._add=function(r){this._arr.push(r)},e}(r.Enumerable);r.Enumerable.prototype.groupBy=function(t,n){var o=this,u=new r.Enumerable;return u.getEnumerator=function(){return e(o,t,n)},u},r.List&&(r.List.prototype.groupBy=r.Enumerable.prototype.groupBy)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t,n){n=n||function(r,e){return r===e};var o,u={current:void 0,moveNext:function(){for(o||(o=r.en(e).distinct().getEnumerator()),u.current=void 0;o.moveNext();){for(var i=!1,c=t.getEnumerator();c.moveNext()&&!i;)i=n(o.current,c.current);if(i)return u.current=o.current,!0}return!1}};return u}r.Enumerable.prototype.intersect=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.intersect=r.Enumerable.prototype.intersect)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t,n,o,u,i){i=i||function(r,e){return r===e};var c,a,p=0,s={current:void 0,moveNext:function(){if(s.current=void 0,!c){if(c=e.getEnumerator(),!c.moveNext())return!1;a=r.en(t).toArray()}var f;do{for(;p=e?(t.current=void 0,!1):(t.current=r[n],!0)},t},t.prototype.remove=function(r){return this.removeWhere(function(e){return e===r}).any()},t.prototype.removeWhere=function(r){for(var e,t=[],n=this.length-1;n>=0;n--)e=this[n],r(e,n)===!0&&(this.splice(n,1),t.push(e));return t.en().reverse()}}(exjs||(exjs={}));var exjs;!function(r){function e(r,e,n,o){return new t(r,e,n,o)}var t=function(e){function t(r,t,n,o){e.call(this),this.Source=r,o=o||function(r,e){return r>e?1:e>r?-1:0};var u=n===!0?-1:1;this.Sorter=function(r,e){return u*o(t(r),t(e))}}return __extends(t,e),t.prototype.getEnumerator=function(){var e,t=this.Source,n=this.Sorter,o=0,u={current:void 0,moveNext:function(){return e||(e=r.en(t).toArray(),e.sort(n)),u.current=void 0,!(o>=e.length)&&(u.current=e[o],o++,!0)}};return u},t.prototype.thenBy=function(r,e){return new n(this,r,(!1),e)},t.prototype.thenByDescending=function(r,e){return new n(this,r,(!0),e)},t}(r.Enumerable),n=function(r){function e(e,t,n,o){r.call(this,e,t,n,o);var u=e.Sorter,i=this.Sorter;this.Sorter=function(r,e){return u(r,e)||i(r,e)}}return __extends(e,r),e}(t),o=r.Enumerable.prototype;o.orderBy=function(r,t){return e(this,r,!1,t)},o.orderByDescending=function(r,t){return e(this,r,!0,t)},r.List&&(r.List.prototype.orderBy=r.Enumerable.prototype.orderBy,r.List.prototype.orderByDescending=r.Enumerable.prototype.orderByDescending)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n,o=1,u={current:void 0,moveNext:function(){if(2>o){if(t=t||e.en().getEnumerator(),t.moveNext())return u.current=t.current,!0;o++}return n=n||r.getEnumerator(),n.moveNext()?(u.current=n.current,!0):(u.current=void 0,!1)}};return u}r.Enumerable.prototype.prepend=function(){for(var t=this,n=[],o=0;o=e)&&(o.current=n,!0)}};return o}function t(t,n,o){if(t=t||0,n=n||0,t>n)throw new Error("Start cannot be greater than end.");null==o&&(o=1);var u=new r.Enumerable;return u.getEnumerator=function(){return e(t,n,o)},u}r.range=t}(exjs||(exjs={}));var exjs;!function(r){function e(e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.en(e).toArray(),n=t.length),n--,o.current=t[n],n>=0}};return o}r.Enumerable.prototype.reverse=function(){var t=this,n=new r.Enumerable;return n.getEnumerator=function(){return e(t)},n},r.List&&(r.List.prototype.reverse=r.Enumerable.prototype.reverse)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){if(e=e||0,0===e)return Math.round(r);var t=Math.pow(10,e);return Math.round(r*t)/t}r.round=e}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),!!t.moveNext()&&(o.current=e(t.current,n),n++,!0)}};return o}function t(e,t){var n,o,u={current:void 0,moveNext:function(){for(u.current=void 0,n||(n=e.getEnumerator());!o||!o.moveNext();){if(!n.moveNext())return!1;o=r.selectorEnumerator(t(n.current))}return u.current=o.current,!0}};return u}r.Enumerable.prototype.select=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.selectMany=function(e){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return t(n,e)},o},r.List&&(r.List.prototype.select=r.Enumerable.prototype.select,r.List.prototype.selectMany=r.Enumerable.prototype.selectMany)}(exjs||(exjs={}));var exjs;!function(r){function e(r){return Array.isArray(r)?r.en().getEnumerator():null!=r&&"function"==typeof r.getEnumerator?r.getEnumerator():null}r.selectorEnumerator=e}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n={current:void 0,moveNext:function(){if(!t){t=r.getEnumerator();for(var o=0;e>o;o++)if(!t.moveNext())return!1}return t.moveNext()?(n.current=t.current,!0):(n.current=void 0,!1)}};return n}function t(r,e){var t,n={current:void 0,moveNext:function(){if(!t){t=r.getEnumerator();for(var o=0;t.moveNext();o++)if(!e(n.current=t.current,o))return!0;return n.current=void 0,!1}return t.moveNext()?(n.current=t.current,!0):(n.current=void 0,!1)}};return n}r.Enumerable.prototype.skip=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.skipWhile=function(e){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return t(n,e)},o},r.List&&(r.List.prototype.skip=r.Enumerable.prototype.skip,r.List.prototype.skipWhile=r.Enumerable.prototype.skipWhile)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),n++,!(n>e)&&(o.current=void 0,!!t.moveNext()&&(o.current=t.current,!0))}};return o}function t(r,e){var t,n=0,o={current:void 0,moveNext:function(){return t||(t=r.getEnumerator()),t.moveNext()&&e(t.current,n)?(n++,o.current=t.current,!0):(o.current=void 0,!1)}};return o}r.Enumerable.prototype.take=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.takeWhile=function(e){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return t(n,e)},o},r.List&&(r.List.prototype.take=r.Enumerable.prototype.take,r.List.prototype.takeWhile=r.Enumerable.prototype.takeWhile)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t){var n,o=!1,u=[],i={current:void 0,moveNext:function(){if(o){if(null==n)return!1;u.push(n),n=r.selectorEnumerator(t(i.current))}else n=e.getEnumerator(),o=!0;for(;!(n&&n.moveNext()||u.length<1);)n=u.pop();return i.current=null==n?void 0:n.current,void 0!==i.current}};return i}function t(e,t,n){var o,u=!1,i=[],c={current:void 0,moveNext:function(){if(u){if(null==o)return!1;i.push(o),o=r.selectorEnumerator(t(c.current))}else o=e.getEnumerator(),u=!0;do{for(;!(o&&o.moveNext()||i.length<1);)o=i.pop();c.current=null==o?void 0:o.current}while(n(c.current));return void 0!==c.current}};return c}r.Enumerable.prototype.traverse=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.Enumerable.prototype.traverseUnique=function(e,n){var o=this,u=[],i=new r.Enumerable;return n?i.getEnumerator=function(){return t(o,e,function(r){return!!u.some(function(e){return n(r,e)})||(u.push(r),!1)})}:i.getEnumerator=function(){return t(o,e,function(r){return u.indexOf(r)>-1||(u.push(r),!1)})},i},r.List&&(r.List.prototype.traverse=r.Enumerable.prototype.traverse,r.List.prototype.traverseUnique=r.Enumerable.prototype.traverseUnique)}(exjs||(exjs={}));var exjs;!function(r){function e(e,t,n){n=n||function(r,e){return r===e};var o,u,i=[],c={current:void 0,moveNext:function(){if(o||(o=r.en(e).distinct().getEnumerator()),c.current=void 0,!u&&o.moveNext())return i.push(c.current=o.current),!0;for(u=u||r.en(t).distinct().getEnumerator();u.moveNext();){for(var a=0,p=!1,s=i.length;s>a&&!p;a++)p=n(i[a],u.current);if(!p)return c.current=u.current,!0}return!1}};return c}r.Enumerable.prototype.union=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.union=r.Enumerable.prototype.union)}(exjs||(exjs={}));var exjs;!function(r){function e(r,e){var t,n={current:void 0,moveNext:function(){t||(t=r.getEnumerator());for(var o;t.moveNext();)if(e(o=t.current))return n.current=o,!0;return!1}};return n}r.Enumerable.prototype.where=function(t){var n=this,o=new r.Enumerable;return o.getEnumerator=function(){return e(n,t)},o},r.List&&(r.List.prototype.where=r.Enumerable.prototype.where)}(exjs||(exjs={}));var exjs;!function(r){function e(e){var n=new r.Enumerable;return n.getEnumerator=function(){return t(e)},n}function t(r){var e=r.getEnumerator(),t={current:void 0,moveNext:void 0};return t.moveNext=function(){return e.moveNext()?(t.current=e.current,!0):(t.current=void 0,!1)},t}r.en=e}(exjs||(exjs={}));var ex=exjs.en,exjs;!function(r){function e(r,e,t){var n,o,u={current:void 0,moveNext:function(){return n||(n=r.getEnumerator()),o||(o=e.getEnumerator()),u.current=void 0,!(!n.moveNext()||!o.moveNext())&&(u.current=t(n.current,o.current),!0)}};return u}r.Enumerable.prototype.zip=function(t,n){var o=this,u=t instanceof Array?t.en():t,i=new r.Enumerable;return i.getEnumerator=function(){return e(o,u,n)},i},r.List&&(r.List.prototype.zip=r.Enumerable.prototype.zip)}(exjs||(exjs={})),Array.prototype.clone||(Array.prototype.clone=function(){return this.slice(0)}),Array.prototype.contains||(Array.prototype.contains=function(val){return this.indexOf(val)!==-1}),Array.prototype.indexOf||(Array.prototype.indexOf=function(searchElement,fromIndex){var i=fromIndex||0,j=this.length;for(i;i>>0;if("function"!=typeof callback)throw new TypeError(callback+" is not a function");for(arguments.length>1&&(T=thisArg),A=new Array(len),k=0;k-1&&this.splice(index,1)},Array.prototype.removeAt=function(index){this.splice(index,1)},Math.clamp=function(value,min,max){return Math.min(Math.max(value,min),max)},Math.constrain=function(value,low,high){return Math.clamp(value,low,high)},Math.degreesToRadians=function(degrees){return Math.TAU*(degrees/360)},Math.distanceBetween=function(x1,y1,x2,y2){return Math.sqrt(Math.sq(x2-x1)+Math.sq(y2-y1))},Math.lerp=function(start,stop,amount){return start+(stop-start)*amount},Math.mag=function(a,b,c){return Math.sqrt(a*a+b*b+c*c)},Math.map=function(value,start1,stop1,start2,stop2){return start2+(stop2-start2)*((value-start1)/(stop1-start1))},Math.median=function(values){values.sort(function(a,b){return a-b});var half=Math.floor(values.length/2);return values.length%2?values[half]:(values[half-1]+values[half])/2},Math.normalise=function(num,min,max){return(num-min)/(max-min)},Math.radiansToDegrees=function(radians){return 360*radians/Math.TAU},Math.randomBetween=function(low,high){return high||(high=low,low=0),low>=high?low:low+(high-low)*Math.random()},Math.roundToDecimalPlace=function(num,dec){return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec)},Math.sq=function(n){return n*n},Math.TAU=2*Math.PI,Number.prototype.isInteger||(Number.prototype.isInteger=function(){return this%1===0}),"function"!=typeof Object.create&&(Object.create=function(o,props){function F(){}F.prototype=o;var result=new F;if("object"==typeof props)for(var prop in props)props.hasOwnProperty(prop)&&(result[prop]=props[prop].value);return result}),Object.keys||(Object.keys=function(){var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!{toString:null}.propertyIsEnumerable("toString"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;return function(obj){if("object"!=typeof obj&&"function"!=typeof obj||null===obj)throw new TypeError("Object.keys called on non-object");var result=[];for(var prop in obj)hasOwnProperty.call(obj,prop)&&result.push(prop);if(hasDontEnumBug)for(var i=0;i=65&&c<=90?"_"+s.toLowerCase():"__"+("000"+c.toString(16)).slice(-4)})},String.prototype.toFileName=function(){return this.replace(/[^a-z0-9]/gi,"_").toLowerCase()},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}),String.prototype.utf8_to_b64=function(){return window.btoa(unescape(encodeURIComponent(this)))};var HTTPStatusCode;!function(HTTPStatusCode){HTTPStatusCode.CONTINUE=100,HTTPStatusCode.SWITCHING_PROTOCOLS=101,HTTPStatusCode.PROCESSING=102,HTTPStatusCode.OK=200,HTTPStatusCode.CREATED=201,HTTPStatusCode.ACCEPTED=202,HTTPStatusCode.NON_AUTHORITATIVE_INFORMATION=203,HTTPStatusCode.NO_CONTENT=204,HTTPStatusCode.RESET_CONTENT=205,HTTPStatusCode.PARTIAL_CONTENT=206,HTTPStatusCode.MULTI_STATUS=207,HTTPStatusCode.MULTIPLE_CHOICES=300,HTTPStatusCode.MOVED_PERMANENTLY=301,HTTPStatusCode.MOVED_TEMPORARILY=302,HTTPStatusCode.SEE_OTHER=303,HTTPStatusCode.NOT_MODIFIED=304,HTTPStatusCode.USE_PROXY=305,HTTPStatusCode.TEMPORARY_REDIRECT=307,HTTPStatusCode.BAD_REQUEST=400,HTTPStatusCode.UNAUTHORIZED=401,HTTPStatusCode.PAYMENT_REQUIRED=402,HTTPStatusCode.FORBIDDEN=403,HTTPStatusCode.NOT_FOUND=404,HTTPStatusCode.METHOD_NOT_ALLOWED=405,HTTPStatusCode.NOT_ACCEPTABLE=406,HTTPStatusCode.PROXY_AUTHENTICATION_REQUIRED=407,HTTPStatusCode.REQUEST_TIME_OUT=408,HTTPStatusCode.CONFLICT=409,HTTPStatusCode.GONE=410,HTTPStatusCode.LENGTH_REQUIRED=411,HTTPStatusCode.PRECONDITION_FAILED=412,HTTPStatusCode.REQUEST_ENTITY_TOO_LARGE=413,HTTPStatusCode.REQUEST_URI_TOO_LARGE=414,HTTPStatusCode.UNSUPPORTED_MEDIA_TYPE=415,HTTPStatusCode.REQUESTED_RANGE_NOT_SATISFIABLE=416,HTTPStatusCode.EXPECTATION_FAILED=417,HTTPStatusCode.IM_A_TEAPOT=418,HTTPStatusCode.UNPROCESSABLE_ENTITY=422,HTTPStatusCode.LOCKED=423,HTTPStatusCode.FAILED_DEPENDENCY=424,HTTPStatusCode.UNORDERED_COLLECTION=425,HTTPStatusCode.UPGRADE_REQUIRED=426,HTTPStatusCode.PRECONDITION_REQUIRED=428,HTTPStatusCode.TOO_MANY_REQUESTS=429,HTTPStatusCode.REQUEST_HEADER_FIELDS_TOO_LARGE=431,HTTPStatusCode.INTERNAL_SERVER_ERROR=500,HTTPStatusCode.NOT_IMPLEMENTED=501,HTTPStatusCode.BAD_GATEWAY=502,HTTPStatusCode.SERVICE_UNAVAILABLE=503,HTTPStatusCode.GATEWAY_TIME_OUT=504,HTTPStatusCode.HTTP_VERSION_NOT_SUPPORTED=505,HTTPStatusCode.VARIANT_ALSO_NEGOTIATES=506,HTTPStatusCode.INSUFFICIENT_STORAGE=507,HTTPStatusCode.BANDWIDTH_LIMIT_EXCEEDED=509,HTTPStatusCode.NOT_EXTENDED=510,HTTPStatusCode.NETWORK_AUTHENTICATION_REQUIRED=511}(HTTPStatusCode||(HTTPStatusCode={})),function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{
+var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.manifesto=f()}}(function(){var define;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(quality="native");else{var images=this.getImages();if(images&&images.length){var firstImage=images[0],resource=firstImage.getResource(),services=resource.getServices();if(width||(width=resource.getWidth()),services.length){var service=services[0];id=service.id,quality=Manifesto.Utils.getImageQuality(service.getProfile())}}if(!id)return"undefined"==typeof this.__jsonld.thumbnail?null:this.__jsonld.thumbnail}size=width+",";var uri=[id,region,size,rotation,quality+".jpg"].join("/");return uri},Canvas.prototype.getImages=function(){var images=[];if(!this.__jsonld.images)return images;for(var i=0;i1},Manifest.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?new Manifesto.ViewingDirection(this.getProperty("viewingDirection")):Manifesto.ViewingDirection.LEFTTORIGHT},Manifest.prototype.getViewingHint=function(){return this.getProperty("viewingHint")?new Manifesto.ViewingHint(this.getProperty("viewingHint")):Manifesto.ViewingHint.EMPTY},Manifest}(Manifesto.IIIFResource);Manifesto.Manifest=Manifest}(Manifesto||(Manifesto={}));var Manifesto,__extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)};!function(Manifesto){var Collection=function(_super){function Collection(jsonld,options){_super.call(this,jsonld,options),this.members=[],this._collections=null,this._manifests=null,jsonld.__collection=this}return __extends(Collection,_super),Collection.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.members.en().where(function(m){return m.isCollection()}).toArray()},Collection.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.members.en().where(function(m){return m.isManifest()}).toArray()},Collection.prototype.getCollectionByIndex=function(collectionIndex){var collection=this.getCollections()[collectionIndex];return collection.options.index=collectionIndex,collection.load()},Collection.prototype.getManifestByIndex=function(manifestIndex){var manifest=this.getManifests()[manifestIndex];return manifest.options.index=manifestIndex,manifest.load()},Collection.prototype.getTotalCollections=function(){return this.getCollections().length},Collection.prototype.getTotalManifests=function(){return this.getManifests().length},Collection.prototype.getTotalMembers=function(){return this.members.length},Collection.prototype.getDefaultTree=function(){return _super.prototype.getDefaultTree.call(this),this.defaultTree.data.type=Manifesto.TreeNodeType.COLLECTION.toString(),this._parseManifests(this),this._parseCollections(this),Manifesto.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},Collection.prototype._parseManifests=function(parentCollection){if(parentCollection.getManifests()&&parentCollection.getManifests().length)for(var i=0;i=0;i--){var canvas=this.getCanvasByIndex(i),label=Manifesto.TranslationCollection.getValue(canvas.getLabel(),this.options.locale);if(alphanumeric){var regExp=/^[a-zA-Z0-9]*$/;if(regExp.test(label))return label}else if(label)return label}return this.options.defaultLabel},Sequence.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},Sequence.prototype.getNextPageIndex=function(canvasIndex,pagingEnabled){var index;if(pagingEnabled){var indices=this.getPagedIndices(canvasIndex);index=this.getViewingDirection().toString()===Manifesto.ViewingDirection.RIGHTTOLEFT.toString()?indices[0]+1:_last(indices)+1}else index=canvasIndex+1;return index>this.getLastPageIndex()?-1:index},Sequence.prototype.getPagedIndices=function(canvasIndex,pagingEnabled){var indices=[];return pagingEnabled?(indices=this.isFirstCanvas(canvasIndex)||this.isLastCanvas(canvasIndex)?[canvasIndex]:canvasIndex%2?[canvasIndex,canvasIndex+1]:[canvasIndex-1,canvasIndex],this.getViewingDirection().toString()===Manifesto.ViewingDirection.RIGHTTOLEFT.toString()&&(indices=indices.reverse())):indices.push(canvasIndex),indices},Sequence.prototype.getPrevPageIndex=function(canvasIndex,pagingEnabled){var index;if(pagingEnabled){var indices=this.getPagedIndices(canvasIndex);index=this.getViewingDirection().toString()===Manifesto.ViewingDirection.RIGHTTOLEFT.toString()?_last(indices)-1:indices[0]-1}else index=canvasIndex-1;return index},Sequence.prototype.getStartCanvasIndex=function(){var startCanvas=this.getStartCanvas();if(startCanvas)for(var i=0;ithis.getTotalCanvases()-1},Sequence.prototype.isFirstCanvas=function(canvasIndex){return 0===canvasIndex},Sequence.prototype.isLastCanvas=function(canvasIndex){return canvasIndex===this.getTotalCanvases()-1},Sequence.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},Sequence.prototype.isPagingEnabled=function(){return this.getViewingHint().toString()===Manifesto.ViewingHint.PAGED.toString()},Sequence.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2===0},Sequence}(Manifesto.ManifestResource);Manifesto.Sequence=Sequence}(Manifesto||(Manifesto={}));var Manifesto,_isString=require("lodash.isstring");!function(Manifesto){var Deserialiser=function(){function Deserialiser(){}return Deserialiser.parse=function(manifest,options){return this.parseJson(JSON.parse(manifest),options)},Deserialiser.parseJson=function(json,options){var resource;switch(options&&options.navDate&&!isNaN(options.navDate.getTime())&&(json.navDate=options.navDate.toString()),json["@type"]){case"sc:Collection":resource=this.parseCollection(json,options);break;case"sc:Manifest":resource=this.parseManifest(json,options);break;default:return null}return resource.isLoaded=!0,resource},Deserialiser.parseCollection=function(json,options){var collection=new Manifesto.Collection(json,options);return options?collection.index=options.index||0:collection.index=0,this.parseCollections(collection,options),this.parseManifests(collection,options),this.parseMembers(collection,options),collection},Deserialiser.parseCollections=function(collection,options){var children=collection.__jsonld.collections;if(children)for(var i=0;i0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===b64[len-2]?2:"="===b64[len-1]?1:0}function byteLength(b64){return 3*b64.length/4-placeHoldersCount(b64)}function toByteArray(b64){var i,j,l,tmp,placeHolders,arr,len=b64.length;placeHolders=placeHoldersCount(b64),arr=new Arr(3*len/4-placeHolders),l=placeHolders>0?len-4:len;var L=0;for(i=0,j=0;i>16&255,arr[L++]=tmp>>8&255,arr[L++]=255&tmp;return 2===placeHolders?(tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4,arr[L++]=255&tmp):1===placeHolders&&(tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2,arr[L++]=tmp>>8&255,arr[L++]=255&tmp),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[63&num]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i=start;ilen2?len2:i+maxChunkLength));return 1===extraBytes?(tmp=uint8[len-1],output+=lookup[tmp>>2],output+=lookup[tmp<<4&63],output+="=="):2===extraBytes&&(tmp=(uint8[len-2]<<8)+uint8[len-1],output+=lookup[tmp>>10],output+=lookup[tmp>>4&63],output+=lookup[tmp<<2&63],output+="="),parts.push(output),parts.join("")}exports.byteLength=byteLength,exports.toByteArray=toByteArray,exports.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;iMAX_LEN)throw new RangeError("size is too large");var enc=encoding,_fill=fill;void 0===_fill&&(enc=void 0,_fill=0);var buf=new Buffer(size);if("string"==typeof _fill)for(var fillBuf=new Buffer(_fill,enc),flen=fillBuf.length,i=-1;++iMAX_LEN)throw new RangeError("size is too large");return new Buffer(size)},exports.from=function(value,encodingOrOffset,length){if("function"==typeof Buffer.from&&(!global.Uint8Array||Uint8Array.from!==Buffer.from))return Buffer.from(value,encodingOrOffset,length);if("number"==typeof value)throw new TypeError('"value" argument must not be a number');if("string"==typeof value)return new Buffer(value,encodingOrOffset);if("undefined"!=typeof ArrayBuffer&&value instanceof ArrayBuffer){var offset=encodingOrOffset;if(1===arguments.length)return new Buffer(value);"undefined"==typeof offset&&(offset=0);var len=length;if("undefined"==typeof len&&(len=value.byteLength-offset),offset>=value.byteLength)throw new RangeError("'offset' is out of bounds");if(len>value.byteLength-offset)throw new RangeError("'length' is out of bounds");return new Buffer(value.slice(offset,offset+len))}if(Buffer.isBuffer(value)){var out=new Buffer(value.length);return value.copy(out,0,0,value.length),out}if(value){if(Array.isArray(value)||"undefined"!=typeof ArrayBuffer&&value.buffer instanceof ArrayBuffer||"length"in value)return new Buffer(value);if("Buffer"===value.type&&Array.isArray(value.data))return new Buffer(value.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},exports.allocUnsafeSlow=function(size){if("function"==typeof Buffer.allocUnsafeSlow)return Buffer.allocUnsafeSlow(size);if("number"!=typeof size)throw new TypeError("size must be a number");if(size>=MAX_LEN)throw new RangeError("size is too large");return new SlowBuffer(size)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:5}],5:[function(require,module,exports){(function(global){"use strict";function typedArraySupport(){try{var arr=new Uint8Array(1);return arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===arr.foo()&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(that,length){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(length){return+length!=length&&(length=0),Buffer.alloc(+length)}function byteLength(string,encoding){if(Buffer.isBuffer(string))return string.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer))return string.byteLength;"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":case void 0:return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if((void 0===start||start<0)&&(start=0),start>this.length)return"";if((void 0===end||end>this.length)&&(end=this.length),end<=0)return"";if(end>>>=0,start>>>=0,end<=start)return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(0===buffer.length)return-1;if("string"==typeof byteOffset?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,isNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0){if(!dir)return-1;byteOffset=0}if("string"==typeof val&&(val=Buffer.from(val,encoding)),Buffer.isBuffer(val))return 0===val.length?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if("number"==typeof val)return val=255&val,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){function read(buf,i){return 1===indexSize?buf[i]:buf.readUInt16BE(i*indexSize)}var indexSize=1,arrLength=arr.length,valLength=val.length;if(void 0!==encoding&&(encoding=String(encoding).toLowerCase(),"ucs2"===encoding||"ucs-2"===encoding||"utf16le"===encoding||"utf-16le"===encoding)){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;jremaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new TypeError("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;i239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;ilen)&&(end=len);for(var out="",i=start;ilength)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||valuebuf.length)throw new RangeError("Index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){value<0&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);i>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){value<0&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);i>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return n<16?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(codePoint<1114112))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isnan(val){return val!==val}var base64=require("base64-js"),ieee754=require("ieee754"),isArray=require("isarray");exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),exports.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(arr){return arr.__proto__=Buffer.prototype,arr},Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding)},Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)},Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)},Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),""},Buffer.prototype.compare=function(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target))throw new TypeError("Argument must be a Buffer");if(void 0===start&&(start=0),void 0===end&&(end=target?target.length:0),void 0===thisStart&&(thisStart=0),void 0===thisEnd&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;iremaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"latin1":case"binary":return latin1Write(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end0&&(mul*=256);)val+=this[offset+--byteLength]*mul;return val},Buffer.prototype.readUInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),this[offset]},Buffer.prototype.readUInt16LE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),
+this[offset]|this[offset+1]<<8},Buffer.prototype.readUInt16BE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]},Buffer.prototype.readUInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]},Buffer.prototype.readUInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])},Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?(255-this[offset]+1)*-1:this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,byteLength=0|byteLength,!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1,i=0;for(this[offset]=255&value;++i=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),this[offset]=255&value,offset+1},Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=255&value;++i>0)-sub&255;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)value<0&&0===sub&&0!==this[offset+i+1]&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),value<0&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end=this.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart=0;--i)target[i+targetStart]=this[i+start];else if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,end=void 0===end?this.length:end>>>0,val||(val=0);var i;if("number"==typeof val)for(i=start;i0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(position<0)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else if(listeners)for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;if(evlistener)return evlistener.length}return 0},EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type)}},{}],9:[function(require,module,exports){var http=require("http"),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(params,cb){return params||(params={}),params.scheme="https",params.protocol="https:",http.request.call(this,params,cb)}},{http:49}],10:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||0===value&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},{}],11:[function(require,module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},{}],12:[function(require,module,exports){function isBuffer(obj){return!!obj.constructor&&"function"==typeof obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)}function isSlowBuffer(obj){return"function"==typeof obj.readFloatLE&&"function"==typeof obj.slice&&isBuffer(obj.slice(0,0))}module.exports=function(obj){return null!=obj&&(isBuffer(obj)||isSlowBuffer(obj)||!!obj._isBuffer)}},{}],13:[function(require,module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},{}],14:[function(require,module,exports){function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);++indexlength?0:length+start),end=void 0===end||end>length?length:+end||0,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}var keys=require("lodash.keys"),MAX_SAFE_INTEGER=9007199254740991,baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor(),getLength=baseProperty("length");module.exports=baseEach},{"lodash.keys":31}],19:[function(require,module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function arraySome(array,predicate){for(var index=-1,length=array.length;++indexarrLength))return!1;for(;++index2?sources[length-2]:void 0,guard=length>2?sources[2]:void 0,thisArg=length>1?sources[length-1]:void 0;for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:void 0,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?void 0:customizer,length=1);++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}var reIsUint=/^\d+$/,MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=isIterateeCall},{}],24:[function(require,module,exports){(function(global){function checkGlobal(value){return value&&value.Object===Object?value:null}var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType?exports:void 0,freeModule=objectTypes[typeof module]&&module&&!module.nodeType?module:void 0,freeGlobal=checkGlobal(freeExports&&freeModule&&"object"==typeof global&&global),freeSelf=checkGlobal(objectTypes[typeof self]&&self),freeWindow=checkGlobal(objectTypes[typeof window]&&window),thisGlobal=checkGlobal(objectTypes[typeof this]&&this),root=freeGlobal||freeWindow!==(thisGlobal&&thisGlobal.window)&&freeWindow||freeSelf||thisGlobal||Function("return this")();module.exports=root}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],25:[function(require,module,exports){function assignWith(object,source,customizer){for(var index=-1,props=keys(source),length=props.length;++index=lower?number:lower)),number}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&objectToString.call(value)==symbolTag}function toInteger(value){if(!value)return 0===value?value:0;if(value=toNumber(value),value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER}var remainder=value%1;return value===value?remainder?value-remainder:value:0}function toNumber(value){if(isObject(value)){var other=isFunction(value.valueOf)?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toString(value){if("string"==typeof value)return value;if(null==value)return"";if(isSymbol(value))return Symbol?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function endsWith(string,target,position){string=toString(string),target="string"==typeof target?target:target+"";var length=string.length;return position=void 0===position?length:baseClamp(toInteger(position),0,length),position-=target.length,position>=0&&string.indexOf(target,position)==position}var root=require("lodash._root"),INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308,NAN=NaN,funcTag="[object Function]",genTag="[object GeneratorFunction]",symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=Symbol?symbolProto.toString:void 0;module.exports=endsWith},{"lodash._root":24}],27:[function(require,module,exports){function isArguments(value){return isArrayLikeObject(value)&&hasOwnProperty.call(value,"callee")&&(!propertyIsEnumerable.call(value,"callee")||objectToString.call(value)==argsTag)}function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",funcTag="[object Function]",genTag="[object GeneratorFunction]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,propertyIsEnumerable=objectProto.propertyIsEnumerable;module.exports=isArguments},{}],28:[function(require,module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function getNative(object,key){var value=null==object?void 0:object[key];return isNative(value)?value:void 0}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isFunction(value){return isObject(value)&&objToString.call(value)==funcTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isNative(value){return null!=value&&(isFunction(value)?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value))}var arrayTag="[object Array]",funcTag="[object Function]",reIsHostCtor=/^\[object .+?Constructor\]$/,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nativeIsArray=getNative(Array,"isArray"),MAX_SAFE_INTEGER=9007199254740991,isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag};module.exports=isArray},{}],29:[function(require,module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}var stringTag="[object String]",objectProto=Object.prototype,objToString=objectProto.toString;module.exports=isString},{}],30:[function(require,module,exports){function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObjectLike(value){return!!value&&"object"==typeof value}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objectToString.call(value)]}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var objectProto=Object.prototype,objectToString=objectProto.toString;module.exports=isTypedArray},{}],31:[function(require,module,exports){function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function isArrayLike(value){return null!=value&&isLength(getLength(value))}function isIndex(value,length){return value="number"==typeof value||reIsUint.test(value)?+value:-1,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,allowIndexes=!!length&&isLength(length)&&(isArray(object)||isArguments(object)),index=-1,result=[];++index0;++index-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;return iteratee=baseCallback(iteratee,thisArg,3),func(collection,iteratee)}var arrayMap=require("lodash._arraymap"),baseCallback=require("lodash._basecallback"),baseEach=require("lodash._baseeach"),isArray=require("lodash.isarray"),MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=map},{"lodash._arraymap":14,"lodash._basecallback":16,"lodash._baseeach":18,"lodash.isarray":28}],34:[function(require,module,exports){function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function pairs(object){object=toObject(object);for(var index=-1,props=keys(object),length=props.length,result=Array(length);++index1)for(var i=1;i1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");var labels=string.split("."),encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;counter=55296&&value<=56319&&counter65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return codePoint-48<10?codePoint-22:codePoint-65<26?codePoint-65:codePoint-97<26?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),basic<0&&(basic=0),j=0;j=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;index=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(digitfloor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;j=n&¤tValuefloor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;jmaxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(q= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;if(punycode={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return punycode});else if(freeExports&&freeModule)if(module.exports==freeExports)freeModule.exports=punycode;else for(key in punycode)punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);else root.punycode=punycode}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],39:[function(require,module,exports){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;i=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)}},{}],40:[function(require,module,exports){"use strict";function map(xs,f){if(xs.map)return xs.map(f);for(var res=[],i=0;i0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var _e=new Error("stream.unshift() after end event");stream.emit("error",_e)}else{var skipAdd;!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk),skipAdd=!state.objectMode&&0===chunk.length),addToFront||(state.reading=!1),skipAdd||(state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream))),maybeReadMore(stream,state)}else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return n<=0||0===state.length&&state.ended?0:state.objectMode?1:n!==n?state.flowing&&state.length?state.buffer.head.data.length:state.length:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n<=state.length?n:state.ended?state.length:(state.needReadable=!0,0))}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?processNextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,processNextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=state.length?(ret=state.decoder?state.buffer.join(""):1===state.buffer.length?state.buffer.head.data:state.buffer.concat(state.length),state.buffer.clear()):ret=fromListPartial(n,state.buffer,state.decoder),ret}function fromListPartial(n,list,hasStrings){var ret;return nstr.length?str.length:n;if(ret+=nb===str.length?str:str.slice(0,n),n-=nb,0===n){nb===str.length?(++c,p.next?list.head=p.next:list.head=list.tail=null):(list.head=p,p.data=str.slice(nb));break}++c}return list.length-=c,ret}function copyFromBuffer(n,list){var ret=bufferShim.allocUnsafe(n),p=list.head,c=1;for(p.data.copy(ret),n-=p.data.length;p=p.next;){var buf=p.data,nb=n>buf.length?buf.length:n;if(buf.copy(ret,ret.length-n,0,nb),n-=nb,0===n){nb===buf.length?(++c,p.next?list.head=p.next:list.head=list.tail=null):(list.head=p,p.data=buf.slice(nb));break}++c}return list.length-=c,ret}function endReadable(stream){var state=stream._readableState;if(state.length>0)throw new Error('"endReadable()" called on non-empty stream');state.endEmitted||(state.ended=!0,processNextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function forEach(xs,f){for(var i=0,l=xs.length;i=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,null===ret?(state.needReadable=!0,n=0):state.length-=n,0===state.length&&(state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&endReadable(this)),null!==ret&&this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata"),increasedAwaitDrain=!1;var ret=dest.write(chunk);!1!==ret||increasedAwaitDrain||((1===state.pipesCount&&state.pipes===dest||state.pipesCount>1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,increasedAwaitDrain=!0),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?processNextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1,increasedAwaitDrain=!1;return src.on("data",ondata),prependListener(dest,"error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var _i=0;_i-1?setImmediate:processNextTick;Writable.WritableState=WritableState;var util=require("core-util-is");util.inherits=require("inherits");var Stream,internalUtil={deprecate:require("util-deprecate")};!function(){try{Stream=require("stream")}catch(_){}finally{Stream||(Stream=require("events").EventEmitter)}}();var Buffer=require("buffer").Buffer,bufferShim=require("buffer-shims");util.inherits(Writable,Stream);var Duplex;WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(_){}}();var Duplex;Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState,ret=!1;return"function"==typeof encoding&&(cb=encoding,encoding=null),Buffer.isBuffer(chunk)?encoding="buffer":encoding||(encoding=state.defaultEncoding),"function"!=typeof cb&&(cb=nop),state.ended?writeAfterEnd(this,cb):validChunk(this,state,chunk,cb)&&(state.pendingcb++,ret=writeOrBuffer(this,state,chunk,encoding,cb)),ret},Writable.prototype.cork=function(){var state=this._writableState;state.corked++},Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,state.writing||state.corked||state.finished||state.bufferProcessing||!state.bufferedRequest||clearBuffer(this,state))},Writable.prototype.setDefaultEncoding=function(encoding){if("string"==typeof encoding&&(encoding=encoding.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((encoding+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+encoding);return this._writableState.defaultEncoding=encoding,this},Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"==typeof chunk?(cb=chunk,chunk=null,encoding=null):"function"==typeof encoding&&(cb=encoding,encoding=null),null!==chunk&&void 0!==chunk&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||state.finished||endWritable(this,state,cb)}}).call(this,require("_process"))},{"./_stream_duplex":42,_process:37,buffer:5,"buffer-shims":4,"core-util-is":7,events:8,inherits:11,"process-nextick-args":36,"util-deprecate":57}],47:[function(require,module,exports){"use strict";function BufferList(){this.head=null,this.tail=null,this.length=0}var bufferShim=(require("buffer").Buffer,require("buffer-shims"));module.exports=BufferList,BufferList.prototype.push=function(v){var entry={data:v,next:null};this.length>0?this.tail.next=entry:this.head=entry,this.tail=entry,++this.length},BufferList.prototype.unshift=function(v){var entry={data:v,next:this.head};0===this.length&&(this.tail=entry),this.head=entry,++this.length},BufferList.prototype.shift=function(){if(0!==this.length){var ret=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,ret}},BufferList.prototype.clear=function(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret},BufferList.prototype.concat=function(n){if(0===this.length)return bufferShim.alloc(0);if(1===this.length)return this.head.data;for(var ret=bufferShim.allocUnsafe(n>>>0),p=this.head,i=0;p;)p.data.copy(ret,i),i+=p.data.length,p=p.next;return ret}},{buffer:5,"buffer-shims":4}],48:[function(require,module,exports){(function(process){var Stream=function(){try{return require("stream")}catch(_){}}();exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=Stream||exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js"),!process.browser&&"disable"===process.env.READABLE_STREAM&&Stream&&(module.exports=Stream)}).call(this,require("_process"))},{"./lib/_stream_duplex.js":42,"./lib/_stream_passthrough.js":43,"./lib/_stream_readable.js":44,"./lib/_stream_transform.js":45,"./lib/_stream_writable.js":46,_process:37}],49:[function(require,module,exports){(function(global){var ClientRequest=require("./lib/request"),extend=require("xtend"),statusCodes=require("builtin-status-codes"),url=require("url"),http=exports;http.request=function(opts,cb){opts="string"==typeof opts?url.parse(opts):extend(opts);var defaultProtocol=global.location.protocol.search(/^https?:$/)===-1?"http:":"",protocol=opts.protocol||defaultProtocol,host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&host.indexOf(":")!==-1&&(host="["+host+"]"),opts.url=(host?protocol+"//"+host:"")+(port?":"+port:"")+path,opts.method=(opts.method||"GET").toUpperCase(),opts.headers=opts.headers||{};var req=new ClientRequest(opts);return cb&&req.on("response",cb),req},http.get=function(opts,cb){var req=http.request(opts,cb);return req.end(),req},http.Agent=function(){},http.Agent.defaultMaxSockets=4,http.STATUS_CODES=statusCodes,http.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":51,"builtin-status-codes":6,url:55,xtend:58}],50:[function(require,module,exports){(function(global){function checkTypeSupport(type){try{return xhr.responseType=type,xhr.responseType===type}catch(e){}return!1}function isFunction(value){return"function"==typeof value}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableStream),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var xhr=new global.XMLHttpRequest;xhr.open("GET",global.location.host?"/":"https://example.com");var haveArrayBuffer="undefined"!=typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=haveArrayBuffer&&checkTypeSupport("arraybuffer"),exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer"),exports.overrideMimeType=isFunction(xhr.overrideMimeType),exports.vbArray=isFunction(global.VBArray),xhr=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(require,module,exports){(function(process,global,Buffer){function decideMode(preferBinary,useFetch){return capability.fetch&&useFetch?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&preferBinary?"arraybuffer":capability.vbArray&&preferBinary?"text:vbarray":"text"}function statusValid(xhr){try{var status=xhr.status;return null!==status&&0!==status}catch(e){return!1}}var capability=require("./capability"),inherits=require("inherits"),response=require("./response"),stream=require("readable-stream"),toArrayBuffer=require("to-arraybuffer"),IncomingMessage=response.IncomingMessage,rStates=response.readyStates,ClientRequest=module.exports=function(opts){var self=this;stream.Writable.call(self),self._opts=opts,self._body=[],self._headers={},opts.auth&&self.setHeader("Authorization","Basic "+new Buffer(opts.auth).toString("base64")),Object.keys(opts.headers).forEach(function(name){self.setHeader(name,opts.headers[name])});var preferBinary,useFetch=!0;if("disable-fetch"===opts.mode)useFetch=!1,preferBinary=!0;else if("prefer-streaming"===opts.mode)preferBinary=!1;else if("allow-wrong-content-type"===opts.mode)preferBinary=!capability.overrideMimeType;else{if(opts.mode&&"default"!==opts.mode&&"prefer-fast"!==opts.mode)throw new Error("Invalid value for opts.mode");preferBinary=!0}self._mode=decideMode(preferBinary,useFetch),self.on("finish",function(){self._onFinish()})};inherits(ClientRequest,stream.Writable),ClientRequest.prototype.setHeader=function(name,value){var self=this,lowerName=name.toLowerCase();unsafeHeaders.indexOf(lowerName)===-1&&(self._headers[lowerName]={name:name,value:value})},ClientRequest.prototype.getHeader=function(name){var self=this;return self._headers[name.toLowerCase()].value},ClientRequest.prototype.removeHeader=function(name){var self=this;delete self._headers[name.toLowerCase()]},ClientRequest.prototype._onFinish=function(){var self=this;if(!self._destroyed){var body,opts=self._opts,headersObj=self._headers;if("POST"!==opts.method&&"PUT"!==opts.method&&"PATCH"!==opts.method||(body=capability.blobConstructor?new global.Blob(self._body.map(function(buffer){return toArrayBuffer(buffer)}),{type:(headersObj["content-type"]||{}).value||""}):Buffer.concat(self._body).toString()),"fetch"===self._mode){var headers=Object.keys(headersObj).map(function(name){return[headersObj[name].name,headersObj[name].value]});global.fetch(self._opts.url,{method:self._opts.method,headers:headers,body:body,mode:"cors",credentials:opts.withCredentials?"include":"same-origin"}).then(function(response){self._fetchResponse=response,self._connect()},function(reason){self.emit("error",reason)})}else{var xhr=self._xhr=new global.XMLHttpRequest;try{xhr.open(self._opts.method,self._opts.url,!0)}catch(err){return void process.nextTick(function(){self.emit("error",err)})}"responseType"in xhr&&(xhr.responseType=self._mode.split(":")[0]),"withCredentials"in xhr&&(xhr.withCredentials=!!opts.withCredentials),"text"===self._mode&&"overrideMimeType"in xhr&&xhr.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(headersObj).forEach(function(name){xhr.setRequestHeader(headersObj[name].name,headersObj[name].value)}),self._response=null,xhr.onreadystatechange=function(){switch(xhr.readyState){case rStates.LOADING:case rStates.DONE:self._onXHRProgress()}},"moz-chunked-arraybuffer"===self._mode&&(xhr.onprogress=function(){self._onXHRProgress()}),xhr.onerror=function(){self._destroyed||self.emit("error",new Error("XHR error"))};try{xhr.send(body)}catch(err){return void process.nextTick(function(){self.emit("error",err)})}}}},ClientRequest.prototype._onXHRProgress=function(){var self=this;statusValid(self._xhr)&&!self._destroyed&&(self._response||self._connect(),self._response._onXHRProgress())},ClientRequest.prototype._connect=function(){var self=this;self._destroyed||(self._response=new IncomingMessage(self._xhr,self._fetchResponse,self._mode),self.emit("response",self._response))},ClientRequest.prototype._write=function(chunk,encoding,cb){var self=this;self._body.push(chunk),cb()},ClientRequest.prototype.abort=ClientRequest.prototype.destroy=function(){var self=this;self._destroyed=!0,self._response&&(self._response._destroyed=!0),self._xhr&&self._xhr.abort()},ClientRequest.prototype.end=function(data,encoding,cb){var self=this;"function"==typeof data&&(cb=data,data=void 0),stream.Writable.prototype.end.call(self,data,encoding,cb)},ClientRequest.prototype.flushHeaders=function(){},ClientRequest.prototype.setTimeout=function(){},ClientRequest.prototype.setNoDelay=function(){},ClientRequest.prototype.setSocketKeepAlive=function(){};var unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,require("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},require("buffer").Buffer)},{"./capability":50,"./response":52,_process:37,buffer:5,inherits:11,"readable-stream":48,"to-arraybuffer":54}],52:[function(require,module,exports){(function(process,global,Buffer){var capability=require("./capability"),inherits=require("inherits"),stream=require("readable-stream"),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(xhr,response,mode){function read(){reader.read().then(function(result){if(!self._destroyed){if(result.done)return void self.push(null);self.push(new Buffer(result.value)),read()}})}var self=this;if(stream.Readable.call(self),self._mode=mode,self.headers={},self.rawHeaders=[],self.trailers={},self.rawTrailers=[],self.on("end",function(){process.nextTick(function(){self.emit("close")})}),"fetch"===mode){self._fetchResponse=response,self.url=response.url,self.statusCode=response.status,self.statusMessage=response.statusText;for(var header,_i,_it=response.headers[Symbol.iterator]();header=(_i=_it.next()).value,!_i.done;)self.headers[header[0].toLowerCase()]=header[1],self.rawHeaders.push(header[0],header[1]);var reader=response.body.getReader();read()}else{self._xhr=xhr,self._pos=0,self.url=xhr.responseURL,self.statusCode=xhr.status,self.statusMessage=xhr.statusText;var headers=xhr.getAllResponseHeaders().split(/\r?\n/);if(headers.forEach(function(header){var matches=header.match(/^([^:]+):\s*(.*)/);if(matches){var key=matches[1].toLowerCase();"set-cookie"===key?(void 0===self.headers[key]&&(self.headers[key]=[]),self.headers[key].push(matches[2])):void 0!==self.headers[key]?self.headers[key]+=", "+matches[2]:self.headers[key]=matches[2],self.rawHeaders.push(matches[1],matches[2])}}),self._charset="x-user-defined",!capability.overrideMimeType){var mimeType=self.rawHeaders["mime-type"];if(mimeType){var charsetMatch=mimeType.match(/;\s*charset=([^;])(;|$)/);charsetMatch&&(self._charset=charsetMatch[1].toLowerCase())}self._charset||(self._charset="utf-8")}}};inherits(IncomingMessage,stream.Readable),IncomingMessage.prototype._read=function(){},IncomingMessage.prototype._onXHRProgress=function(){var self=this,xhr=self._xhr,response=null;switch(self._mode){case"text:vbarray":if(xhr.readyState!==rStates.DONE)break;try{response=new global.VBArray(xhr.responseBody).toArray()}catch(e){}if(null!==response){
+self.push(new Buffer(response));break}case"text":try{response=xhr.responseText}catch(e){self._mode="text:vbarray";break}if(response.length>self._pos){var newData=response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(newData.length),i=0;iself._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)},reader.onload=function(){self.push(null)},reader.readAsArrayBuffer(response)}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(this,require("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},require("buffer").Buffer)},{"./capability":50,_process:37,buffer:5,inherits:11,"readable-stream":48}],53:[function(require,module,exports){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=require("buffer").Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&charCode<=56319)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived),charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1,charCode=charStr.charCodeAt(end);if(charCode>=55296&&charCode<=56319){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i=buffer.length>=3?3:buffer.length;i>0;i--){var c=buffer[buffer.length-i];if(1==i&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res}},{buffer:5}],54:[function(require,module,exports){var Buffer=require("buffer").Buffer;module.exports=function(buf){if(buf instanceof Uint8Array){if(0===buf.byteOffset&&buf.byteLength===buf.buffer.byteLength)return buf.buffer;if("function"==typeof buf.buffer.slice)return buf.buffer.slice(buf.byteOffset,buf.byteOffset+buf.byteLength)}if(Buffer.isBuffer(buf)){for(var arrayCopy=new Uint8Array(buf.length),len=buf.length,i=0;i",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=require("querystring");Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var queryIndex=url.indexOf("?"),splitter=queryIndex!==-1&&queryIndex127?"x":part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),ipv6Hostname||(this.hostname=punycode.toASCII(this.hostname));var p=this.port?":"+this.port:"",h=this.hostname||"";this.host=h+p,this.href+=this.host,ipv6Hostname&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==rest[0]&&(rest="/"+rest))}if(!unsafeProtocol[lowerProto])for(var i=0,l=autoEscape.length;i0)&&result.host.split("@");authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return result.search=relative.search,result.query=relative.query,util.isNull(result.pathname)&&util.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)last=srcPath[i],"."===last?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=!!(result.host&&result.host.indexOf("@")>0)&&result.host.split("@");authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return mustEndAbs=mustEndAbs||result.host&&srcPath.length,mustEndAbs&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),util.isNull(result.pathname)&&util.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)}},{"./util":56,punycode:38,querystring:41}],56:[function(require,module,exports){"use strict";module.exports={isString:function(arg){return"string"==typeof arg},isObject:function(arg){return"object"==typeof arg&&null!==arg},isNull:function(arg){return null===arg},isNullOrUndefined:function(arg){return null==arg}}},{}],57:[function(require,module,exports){(function(global){function deprecate(fn,msg){function deprecated(){if(!warned){if(config("throwDeprecation"))throw new Error(msg);config("traceDeprecation")?console.trace(msg):console.warn(msg),warned=!0}return fn.apply(this,arguments)}if(config("noDeprecation"))return fn;var warned=!1;return deprecated}function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[name];return null!=val&&"true"===String(val).toLowerCase()}module.exports=deprecate}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(require,module,exports){function extend(){for(var target={},i=0;i0&&msie<11)if(9===msie){var settings={url:that._options.iiifResourceUri,type:"GET",dataType:"jsonp",jsonp:"callback",jsonpCallback:"manifestCallback"};$.ajax(settings),window.manifestCallback=function(json){that._loaded(that,JSON.stringify(json),resolve,reject)}}else 10===msie&&$.getJSON(that._options.iiifResourceUri,function(json){that._loaded(that,JSON.stringify(json),resolve,reject)});else manifesto.loadManifest(that._options.iiifResourceUri).then(function(json){that._loaded(that,json,resolve,reject)})})},Bootstrapper.prototype._loaded=function(bootstrapper,json,resolve,reject){var iiifResource=manifesto.create(json,{locale:bootstrapper._options.locale});if(bootstrapper._options.iiifResource||(bootstrapper._options.iiifResource=iiifResource),iiifResource.getIIIFResourceType().toString()===manifesto.IIIFResourceType.collection().toString()){var collections=iiifResource.getCollections();collections&&collections.length?iiifResource.getCollectionByIndex(bootstrapper._options.collectionIndex).then(function(collection){collection||reject("Collection index not found"),0===collection.getTotalManifests()&&0===bootstrapper._options.manifestIndex&&collection.getTotalCollections()>0&&(bootstrapper._options.collectionIndex=0,bootstrapper._options.iiifResourceUri=collection.id,bootstrapper.bootstrap()),collection.getManifestByIndex(bootstrapper._options.manifestIndex).then(function(manifest){bootstrapper._options.manifest=manifest;var helper=new Manifold.Helper(bootstrapper._options);resolve(helper)})}):iiifResource.getManifestByIndex(bootstrapper._options.manifestIndex).then(function(manifest){bootstrapper._options.manifest=manifest;var helper=new Manifold.Helper(bootstrapper._options);resolve(helper)})}else{bootstrapper._options.manifest=iiifResource;var helper=new Manifold.Helper(bootstrapper._options);resolve(helper)}},Bootstrapper.prototype._msieversion=function(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");return msie>0?parseInt(ua.substring(msie+5,ua.indexOf(".",msie))):0},Bootstrapper}();Manifold.Bootstrapper=Bootstrapper}(Manifold||(Manifold={}));var Manifold;!function(Manifold){var ExternalResource=function(){function ExternalResource(resource,dataUriFunc){this.isResponseHandled=!1,resource.externalResource=this,this.dataUri=dataUriFunc(resource),this._parseAuthServices(resource)}return ExternalResource.prototype._parseAuthServices=function(resource){this.clickThroughService=manifesto.Utils.getService(resource,manifesto.ServiceProfile.clickThrough().toString()),this.loginService=manifesto.Utils.getService(resource,manifesto.ServiceProfile.login().toString()),this.restrictedService=manifesto.Utils.getService(resource,manifesto.ServiceProfile.restricted().toString()),this.clickThroughService?(this.logoutService=this.clickThroughService.getService(manifesto.ServiceProfile.logout().toString()),this.tokenService=this.clickThroughService.getService(manifesto.ServiceProfile.token().toString())):this.loginService?(this.logoutService=this.loginService.getService(manifesto.ServiceProfile.logout().toString()),this.tokenService=this.loginService.getService(manifesto.ServiceProfile.token().toString())):this.restrictedService&&(this.logoutService=this.restrictedService.getService(manifesto.ServiceProfile.logout().toString()),this.tokenService=this.restrictedService.getService(manifesto.ServiceProfile.token().toString()))},ExternalResource.prototype.isAccessControlled=function(){return!!(this.clickThroughService||this.loginService||this.restrictedService)},ExternalResource.prototype.hasServiceDescriptor=function(){return this.dataUri.endsWith("info.json")},ExternalResource.prototype.getData=function(accessToken){var that=this;return new Promise(function(resolve,reject){var type="GET";if(!that.hasServiceDescriptor()){if(!that.isAccessControlled())return that.status=HTTPStatusCode.OK,void resolve(that);type="HEAD"}$.ajax({url:that.dataUri,type:type,dataType:"json",beforeSend:function(xhr){accessToken&&xhr.setRequestHeader("Authorization","Bearer "+accessToken.accessToken)}}).done(function(data){if(data){var uri=unescape(data["@id"]);that.data=data,that._parseAuthServices(that.data),uri.endsWith("/info.json")&&(uri=uri.substr(0,uri.lastIndexOf("/")));var dataUri=that.dataUri;dataUri.endsWith("/info.json")&&(dataUri=dataUri.substr(0,dataUri.lastIndexOf("/"))),uri!==dataUri&&that.loginService?that.status=HTTPStatusCode.MOVED_TEMPORARILY:that.status=HTTPStatusCode.OK,resolve(that)}else that.status=HTTPStatusCode.OK,resolve(that)}).fail(function(error){that.status=error.status,that.error=error,error.responseJSON&&that._parseAuthServices(error.responseJSON),resolve(that)})})},ExternalResource}();Manifold.ExternalResource=ExternalResource}(Manifold||(Manifold={}));var Manifold;!function(Manifold){var Helper=function(){function Helper(options){this.options=options,this.iiifResource=this.options.iiifResource,this.iiifResourceUri=this.options.iiifResourceUri,this.manifest=this.options.manifest,this.collectionIndex=this.options.collectionIndex||0,this.manifestIndex=this.options.manifestIndex||0,this.sequenceIndex=this.options.sequenceIndex||0,this.canvasIndex=this.options.canvasIndex||0}return Helper.prototype.getAutoCompleteService=function(){var service=this.getSearchWithinService();return service?service.getService(manifesto.ServiceProfile.autoComplete()):null},Helper.prototype.getAttribution=function(){return Manifesto.TranslationCollection.getValue(this.manifest.getAttribution())},Helper.prototype.getCanvases=function(){return this.getCurrentSequence().getCanvases()},Helper.prototype.getCanvasById=function(id){return this.getCurrentSequence().getCanvasById(id)},Helper.prototype.getCanvasesById=function(ids){for(var canvases=[],i=0;i'},metadataItem=new Manifesto.MetadataItem(this.options.locale);metadataItem.parse(item),metadataItem.isRootLevel=!0,manifestGroup.addItem(metadataItem)}return metadataGroups.push(manifestGroup),options?this._parseMetadataOptions(options,metadataGroups):metadataGroups},Helper.prototype._parseMetadataOptions=function(options,metadataGroups){var sequence=this.getCurrentSequence(),sequenceMetadata=sequence.getMetadata();if(sequenceMetadata&&sequenceMetadata.length){var sequenceGroup=new Manifold.MetadataGroup(sequence);sequenceGroup.addMetadata(sequenceMetadata),metadataGroups.push(sequenceGroup)}if(options.range){var rangeGroups=this._getRangeMetadata([],options.range);rangeGroups=rangeGroups.reverse(),metadataGroups=metadataGroups.concat(rangeGroups)}if(options.canvases&&options.canvases.length)for(var i=0;i0},Helper.prototype.isBottomToTop=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.bottomToTop().toString()},Helper.prototype.isCanvasIndexOutOfRange=function(index){return this.getCurrentSequence().isCanvasIndexOutOfRange(index)},Helper.prototype.isContinuous=function(){return this.getViewingHint().toString()===manifesto.ViewingHint.continuous().toString()},Helper.prototype.isFirstCanvas=function(index){return"undefined"!=typeof index?this.getCurrentSequence().isFirstCanvas(index):this.getCurrentSequence().isFirstCanvas(this.canvasIndex)},Helper.prototype.isHorizontallyAligned=function(){return this.isLeftToRight()||this.isRightToLeft()},Helper.prototype.isLastCanvas=function(index){return"undefined"!=typeof index?this.getCurrentSequence().isLastCanvas(index):this.getCurrentSequence().isLastCanvas(this.canvasIndex)},Helper.prototype.isLeftToRight=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.leftToRight().toString()},Helper.prototype.isMultiCanvas=function(){return this.getCurrentSequence().isMultiCanvas()},Helper.prototype.isMultiSequence=function(){return this.manifest.isMultiSequence()},Helper.prototype.isPaged=function(){return this.getViewingHint().toString()===manifesto.ViewingHint.paged().toString()},Helper.prototype.isPagingAvailable=function(){return this.isPagingEnabled()&&this.getTotalCanvases()>2},Helper.prototype.isPagingEnabled=function(){return this.getCurrentSequence().isPagingEnabled()},Helper.prototype.isRightToLeft=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.rightToLeft().toString()},Helper.prototype.isTopToBottom=function(){return this.getViewingDirection().toString()===manifesto.ViewingDirection.topToBottom().toString()},Helper.prototype.isTotalCanvasesEven=function(){return this.getCurrentSequence().isTotalCanvasesEven()},Helper.prototype.isUIEnabled=function(name){var uiExtensions=this.manifest.getService(manifesto.ServiceProfile.uiExtensions());if(uiExtensions){var disableUI=uiExtensions.getProperty("disableUI");if(disableUI&&(disableUI.contains(name)||disableUI.contains(name.toLowerCase())))return!1}return!0},Helper.prototype.isVerticallyAligned=function(){return this.isTopToBottom()||this.isBottomToTop()},Helper.prototype.createDateNodes=function(rootNode,nodes){for(var i=0;i=n.data.startYear&&year<=n.data.endYear)return n}return null},Helper.prototype.getMonthNode=function(yearNode,month){for(var i=0;i0&&this.getAllSelectedCanvases().length===this.canvases.length},MultiSelectState.prototype.allRangesSelected=function(){return this.ranges.length>0&&this.getAllSelectedRanges().length===this.ranges.length},MultiSelectState.prototype.allSelected=function(){return this.allRangesSelected()&&this.allCanvasesSelected()},MultiSelectState.prototype.getAll=function(){return this.canvases.concat(this.ranges)},MultiSelectState.prototype.getAllSelectedCanvases=function(){return this.canvases.en().where(function(c){return c.multiSelected}).toArray()},MultiSelectState.prototype.getAllSelectedRanges=function(){return this.ranges.en().where(function(r){return r.multiSelected}).toArray()},MultiSelectState.prototype.getCanvasById=function(id){return this.canvases.en().where(function(c){return c.id===id}).first()},MultiSelectState.prototype.getCanvasesByIds=function(ids){for(var canvases=[],i=0;i'+label+""},UriLabeller}();Manifold.UriLabeller=UriLabeller}(Manifold||(Manifold={}))},{}]},{},[1])(1)}),function(t,e,o){"use strict";function r(t,e,r,p){r=r||"width";var n,l,m,c=(e.match(s)||[])[2],f="px"===c?1:d[c+"toPx"],u=/r?em/i;if(f||u.test(c)&&!p)t=f?t:"rem"===c?i:"fontSize"===r?t.parentNode||t:t,f=f||parseFloat(a(t,"fontSize")),m=parseFloat(e)*f;else{n=t.style,l=n[r];try{n[r]=e}catch(x){return 0}m=n[r]?parseFloat(a(t,r)):0,n[r]=l!==o?l:null}return m}function a(t,e){var o,n,i,l,d,c=/^top|bottom/,f=["paddingTop","paddingBottom","borderTop","borderBottom"],u=4;if(o=m?m(t)[e]:(n=t.style["pixel"+e.charAt(0).toUpperCase()+e.slice(1)])?n+"px":"fontSize"===e?r(t,"1em","left",1)+"px":t.currentStyle[e],i=(o.match(s)||[])[2],"%"===i&&p)if(c.test(e)){for(l=(d=t.parentNode||t).offsetHeight;u--;)l-=parseFloat(a(d,f[u]));o=parseFloat(o)/100*l+"px"}else o=r(t,o);else("auto"===o||i&&"px"!==i)&&m?o=0:i&&"px"!==i&&!m&&(o=r(t,o)+"px");return o}var p,n=e.createElement("test"),i=e.documentElement,l=e.defaultView,m=l&&l.getComputedStyle,s=/^(-?[\d+\.\-]+)([a-z]+|%)$/i,d={},c=[1/25.4,1/2.54,1/72,1/6],f=["mm","cm","pt","pc","in","mozmm"],u=6;for(i.appendChild(n),m&&(n.style.marginTop="1%",p="1%"===m(n).marginTop);u--;)d[f[u]+"toPx"]=c[u]?c[u]*d.inToPx:r(n,"1"+f[u]);i.removeChild(n),n=o,t.Length={toPx:r}}(this,this.document),function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.utils=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;omaxTries?failureCallback&&failureCallback():test()?successCallback():setTimeout(function(){Async.waitFor(test,successCallback,failureCallback,interval,maxTries,numTries)},interval)},Async}();Utils.Async=Async}(Utils||(Utils={}));var Utils;!function(Utils){var Bools=function(){function Bools(){}return Bools.getBool=function(val,defaultVal){return null===val||"undefined"==typeof val?defaultVal:val},Bools}();Utils.Bools=Bools}(Utils||(Utils={}));var Utils;!function(Utils){var Clipboard=function(){function Clipboard(){}return Clipboard.copy=function(text){var $tempDiv=$(""),brRegex=/
/gi;text=text.replace(brRegex,"\n"),$("body").append($tempDiv),$tempDiv.append(text);var $tempInput=$("
\
');
this._$metadataItemValueTemplate = $('');
+ this._$metadataItemURIValueTemplate = $('');
this._$copyTextTemplate = $('\
' + this.options.content.copiedToClipboard + '
\
');
@@ -282,7 +283,8 @@ var IIIFComponents;
var $metadataItem = this._$metadataItemTemplate.clone();
var $label = $metadataItem.find('.label');
var $values = $metadataItem.find('.values');
- var label = item.getLabel();
+ var originalLabel = item.getLabel();
+ var label = originalLabel;
if (label && item.isRootLevel) {
switch (label.toLowerCase()) {
case "attribution":
@@ -306,29 +308,50 @@ var IIIFComponents;
$metadataItem.addClass(label.toCssClass());
var value;
var $value;
- if (this.options.showAllLanguages && item.value && item.value.length > 1) {
- for (var i = 0; i < item.value.length; i++) {
- var translation = item.value[i];
- $value = this._buildMetadataItemValue(translation.value, translation.locale);
- $values.append($value);
- }
+ // if the value is a URI
+ if (originalLabel && originalLabel.toLowerCase() === "license") {
+ $value = this._buildMetadataItemURIValue(item.value[0].value);
+ $values.append($value);
}
else {
- $value = this._buildMetadataItemValue(item.getValue(), this._getItemLocale(item));
- $values.append($value);
+ if (this.options.showAllLanguages && item.value && item.value.length > 1) {
+ // display all values in each locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ else {
+ var itemLocale = this._getItemLocale(item);
+ var valueFound = false;
+ // display all values in the item's locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ if (itemLocale === translation.locale) {
+ valueFound = true;
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ // if no values were found in the current locale, default to the first.
+ if (!valueFound) {
+ var translation = item.value[0];
+ if (translation) {
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ }
}
- if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $value.text() && $label.text()) {
- this._addCopyButton($metadataItem, $label);
+ if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $label.text()) {
+ this._addCopyButton($metadataItem, $label, $values);
}
return $metadataItem;
};
MetadataComponent.prototype._getItemLocale = function (item) {
- if (item.value && item.value.length) {
- return item.value[0].locale;
- }
- else {
- return item.defaultLocale || this.options.helper.options.locale;
- }
+ // the item's label locale takes precedence
+ return (item.label.length && item.label[0].locale) ? item.label[0].locale : item.defaultLocale || this.options.helper.options.locale;
};
MetadataComponent.prototype._buildMetadataItemValue = function (value, locale) {
value = this._sanitize(value);
@@ -342,6 +365,13 @@ var IIIFComponents;
}
return $value;
};
+ MetadataComponent.prototype._buildMetadataItemURIValue = function (value) {
+ value = this._sanitize(value);
+ var $value = this._$metadataItemURIValueTemplate.clone();
+ $value.prop('href', value);
+ $value.text(value);
+ return $value;
+ };
MetadataComponent.prototype._addReadingDirection = function ($elem, locale) {
locale = Manifesto.Utils.getInexactLocale(locale);
var rtlLanguages = this._readCSV(this.options.rtlLanguageCodes);
@@ -351,7 +381,7 @@ var IIIFComponents;
$elem.addClass('rtl');
}
};
- MetadataComponent.prototype._addCopyButton = function ($elem, $header) {
+ MetadataComponent.prototype._addCopyButton = function ($elem, $header, $values) {
var $copyBtn = this._$copyTextTemplate.clone();
var $copiedText = $copyBtn.children();
$header.append($copyBtn);
@@ -370,20 +400,13 @@ var IIIFComponents;
});
}
var that = this;
+ var originalValue = $values.text();
$copyBtn.on('click', function (e) {
- var $this = $(this);
- var $item = $this.closest('.item');
- that._copyItemValues($this, $item);
+ that._copyItemValues($copyBtn, originalValue);
});
};
- MetadataComponent.prototype._copyItemValues = function ($copyButton, $item) {
- var $values = $item.find('.value');
- var values = "";
- for (var i = 0; i < $values.length; i++) {
- var value = $($values[i]).text();
- values.length ? values += '\n' + value : values += value;
- }
- Utils.Clipboard.copy(values);
+ MetadataComponent.prototype._copyItemValues = function ($copyButton, originalValue) {
+ Utils.Clipboard.copy(originalValue);
var $copiedText = $copyButton.find('.copiedText');
$copiedText.show();
setTimeout(function () {
diff --git a/dist/uv-1.8.39/lib/iiif-tree-component.js b/dist/uv-2.0.2/lib/iiif-tree-component.js
similarity index 95%
rename from dist/uv-1.8.39/lib/iiif-tree-component.js
rename to dist/uv-2.0.2/lib/iiif-tree-component.js
index 996b13ef8..40449ee5f 100644
--- a/dist/uv-1.8.39/lib/iiif-tree-component.js
+++ b/dist/uv-2.0.2/lib/iiif-tree-component.js
@@ -1,4 +1,4 @@
-// iiif-tree-component v1.0.1 https://github.com/viewdir/iiif-tree-component#readme
+// iiif-tree-component v1.0.7 https://github.com/viewdir/iiif-tree-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifTreeComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o=c.x&&b.x=c.y},getEvent:function(a){a?$.getEvent=function(a){return a}:$.getEvent=function(){return window.event};return $.getEvent(a)},getMousePosition:function(a){if("number"==typeof a.pageX)$.getMousePosition=function(a){var b=new $.Point;a=$.getEvent(a);b.x=a.pageX;b.y=a.pageY;return b};else{if("number"!=typeof a.clientX)throw new Error("Unknown event mouse position, no known technique.");$.getMousePosition=function(a){var b=new $.Point;a=$.getEvent(a);b.x=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;b.y=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;return b}}return $.getMousePosition(a)},getPageScroll:function(){var a=document.documentElement||{},b=document.body||{};if("number"==typeof window.pageXOffset)$.getPageScroll=function(){return new $.Point(window.pageXOffset,window.pageYOffset)};else if(b.scrollLeft||b.scrollTop)$.getPageScroll=function(){return new $.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!a.scrollLeft&&!a.scrollTop)return new $.Point(0,0);$.getPageScroll=function(){return new $.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return $.getPageScroll()},setPageScroll:function(a){if("undefined"!=typeof window.scrollTo)$.setPageScroll=function(a){window.scrollTo(a.x,a.y)};else{var b=$.getPageScroll();if(b.x===a.x&&b.y===a.y)return;document.body.scrollLeft=a.x;document.body.scrollTop=a.y;var c=$.getPageScroll();if(c.x!==b.x&&c.y!==b.y){$.setPageScroll=function(a){document.body.scrollLeft=a.x;document.body.scrollTop=a.y};return}document.documentElement.scrollLeft=a.x;document.documentElement.scrollTop=a.y;c=$.getPageScroll();if(c.x!==b.x&&c.y!==b.y){$.setPageScroll=function(a){document.documentElement.scrollLeft=a.x;document.documentElement.scrollTop=a.y};return}$.setPageScroll=function(a){}}return $.setPageScroll(a)},getWindowSize:function(){var a=document.documentElement||{},b=document.body||{};if("number"==typeof window.innerWidth)$.getWindowSize=function(){return new $.Point(window.innerWidth,window.innerHeight)};else if(a.clientWidth||a.clientHeight)$.getWindowSize=function(){return new $.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!b.clientWidth&&!b.clientHeight)throw new Error("Unknown window size, no known technique.");$.getWindowSize=function(){return new $.Point(document.body.clientWidth,document.body.clientHeight)}}return $.getWindowSize()},makeCenteredNode:function(a){a=$.getElement(a);var b=[$.makeNeutralElement("div"),$.makeNeutralElement("div"),$.makeNeutralElement("div")];$.extend(b[0].style,{display:"table",height:"100%",width:"100%"});$.extend(b[1].style,{display:"table-row"});$.extend(b[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"});b[0].appendChild(b[1]);b[1].appendChild(b[2]);b[2].appendChild(a);return b[0]},makeNeutralElement:function(a){var b=document.createElement(a),c=b.style;c.background="transparent none";c.border="none";c.margin="0px";c.padding="0px";c.position="static";return b},now:function(){Date.now?$.now=Date.now:$.now=function(){return(new Date).getTime()};return $.now()},makeTransparentImage:function(a){$.makeTransparentImage=function(a){var b=$.makeNeutralElement("img");b.src=a;return b};$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<7&&($.makeTransparentImage=function(a){var b=$.makeNeutralElement("img"),c=null;c=$.makeNeutralElement("span");c.style.display="inline-block";b.onload=function(){c.style.width=c.style.width||b.width+"px";c.style.height=c.style.height||b.height+"px";b.onload=null;b=null};b.src=a;c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"', sizingMethod='scale')";return c});return $.makeTransparentImage(a)},setElementOpacity:function(a,b,c){var d,e;a=$.getElement(a);c&&!$.Browser.alpha&&(b=Math.round(b));if($.Browser.opacity)a.style.opacity=b<1?b:"";else if(b<1){d=Math.round(100*b);e="alpha(opacity="+d+")";a.style.filter=e}else a.style.filter=""},setElementTouchActionNone:function(a){a=$.getElement(a);"undefined"!=typeof a.style.touchAction?a.style.touchAction="none":"undefined"!=typeof a.style.msTouchAction&&(a.style.msTouchAction="none")},addClass:function(a,b){a=$.getElement(a);a.className?(" "+a.className+" ").indexOf(" "+b+" ")===-1&&(a.className+=" "+b):a.className=b},indexOf:function(a,b,c){Array.prototype.indexOf?this.indexOf=function(a,b,c){return a.indexOf(b,c)}:this.indexOf=function(a,b,c){var d,e,f=c?c:0;if(!a)throw new TypeError;e=a.length;if(0===e||f>=e)return-1;f<0&&(f=e-Math.abs(f));for(d=f;d=200&&h.status<300||0===h.status&&"http:"!==g&&"https:"!==g)b(h);else{$.console.log("AJAX request returned %d: %s",h.status,a);$.isFunction(c)&&c(h)}}};try{h.open("GET",a,!0);f&&(h.responseType=f);if(e)for(var i in e)e.hasOwnProperty(i)&&e[i]&&h.setRequestHeader(i,e[i]);d&&(h.withCredentials=!0);h.send(null)}catch(d){var j=d.message;var k=$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<10;k&&"undefined"!=typeof d.number&&d.number==-2147024891&&(j+="\nSee http://msdn.microsoft.com/en-us/library/ms537505(v=vs.85).aspx#xdomain");$.console.log("%s while making AJAX request: %s",d.name,j);h.onreadystatechange=function(){};if(window.XDomainRequest){var l=new XDomainRequest;if(l){l.onload=function(a){$.isFunction(b)&&b({responseText:l.responseText,status:200,statusText:"OK"})};l.onerror=function(a){$.isFunction(c)&&c({responseText:l.responseText,status:444,statusText:"An error happened. Due to an XDomainRequest deficiency we can not extract any information about this error. Upgrade your browser."})};try{l.open("GET",a);l.send()}catch(a){$.isFunction(c)&&c(h,d)}}}else $.isFunction(c)&&c(h,d)}return h},jsonp:function(a){var b,c=a.url,d=document.head||document.getElementsByTagName("head")[0]||document.documentElement,e=a.callbackName||"openseadragon"+$.now(),f=window[e],g="$1"+e+"$2",h=a.param||"callback",i=a.callback;c=c.replace(/(\=)\?(&|$)|\?\?/i,g);c+=(/\?/.test(c)?"&":"?")+h+"="+e;window[e]=function(a){if(f)window[e]=f;else try{delete window[e]}catch(a){}i&&$.isFunction(i)&&i(a)};b=document.createElement("script");void 0===a.async&&!1===a.async||(b.async="async");a.scriptCharset&&(b.charset=a.scriptCharset);b.src=c;b.onload=b.onreadystatechange=function(a,c){if(c||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;d&&b.parentNode&&d.removeChild(b);b=void 0}};d.insertBefore(b,d.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(a){if(window.DOMParser)$.parseXml=function(a){var b,c=null;b=new DOMParser;c=b.parseFromString(a,"text/xml");return c};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");$.parseXml=function(a){var b=null;b=new ActiveXObject("Microsoft.XMLDOM");b.async=!1;b.loadXML(a);return b}}return $.parseXml(a)},parseJSON:function(string){window.JSON&&window.JSON.parse?$.parseJSON=window.JSON.parse:$.parseJSON=function(string){return eval("("+string+")")};return $.parseJSON(string)},imageFormatSupported:function(a){a=a?a:"";return!!FILEFORMATS[a.toLowerCase()]}});$.Browser={vendor:$.BROWSERS.UNKNOWN,version:0,alpha:!0};var FILEFORMATS={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},URLPARAMS={};!function(){var a,b=navigator.appVersion,c=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":if(window.attachEvent&&window.ActiveXObject){$.Browser.vendor=$.BROWSERS.IE;$.Browser.version=parseFloat(c.substring(c.indexOf("MSIE")+5,c.indexOf(";",c.indexOf("MSIE"))))}break;case"Netscape":if(window.addEventListener)if(c.indexOf("Firefox")>=0){$.Browser.vendor=$.BROWSERS.FIREFOX;$.Browser.version=parseFloat(c.substring(c.indexOf("Firefox")+8))}else if(c.indexOf("Safari")>=0){$.Browser.vendor=c.indexOf("Chrome")>=0?$.BROWSERS.CHROME:$.BROWSERS.SAFARI;$.Browser.version=parseFloat(c.substring(c.substring(0,c.indexOf("Safari")).lastIndexOf("/")+1,c.indexOf("Safari")))}else{a=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");if(null!==a.exec(c)){$.Browser.vendor=$.BROWSERS.IE;$.Browser.version=parseFloat(RegExp.$1)}}break;case"Opera":$.Browser.vendor=$.BROWSERS.OPERA;$.Browser.version=parseFloat(b)}var d,e,f,g=window.location.search.substring(1),h=g.split("&");for(f=0;f0&&(URLPARAMS[d.substring(0,e)]=decodeURIComponent(d.substring(e+1)))}$.Browser.alpha=!($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<9||$.Browser.vendor==$.BROWSERS.CHROME&&$.Browser.version<2);$.Browser.opacity=!($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<9)}();var nullfunction=function(a){};$.console=window.console||{log:nullfunction,debug:nullfunction,info:nullfunction,warn:nullfunction,error:nullfunction,assert:nullfunction};!function(a){var b=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame;var c=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame;if(b&&c){$.requestAnimationFrame=function(){return b.apply(a,arguments)};$.cancelAnimationFrame=function(){return c.apply(a,arguments)}}else{var d,e=[],f=[],g=0;$.requestAnimationFrame=function(a){e.push([++g,a]);d||(d=setInterval(function(){if(e.length){var a=$.now();var b=f;f=e;e=b;for(;f.length;)f.shift()[1](a)}else{clearInterval(d);d=void 0}},20));return g};$.cancelAnimationFrame=function(a){var b,c;for(b=0,c=e.length;b0){a.removeEvent(a.MouseTracker.captureElement,"mousemove",d.mousemovecaptured,!0);a.removeEvent(a.MouseTracker.captureElement,"mouseup",d.mouseupcaptured,!0);a.removeEvent(a.MouseTracker.captureElement,a.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",d.pointermovecaptured,!0);a.removeEvent(a.MouseTracker.captureElement,a.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",d.pointerupcaptured,!0);a.removeEvent(a.MouseTracker.captureElement,"touchmove",d.touchmovecaptured,!0);a.removeEvent(a.MouseTracker.captureElement,"touchend",d.touchendcaptured,!0);d.activePointersLists[c].captureCount=0}for(c=0;c0){for(d=0;d0){ja(a,b,f,0);c.captureCount=1;g(a,c.type);ha(a,b,f)}}}function M(b,c){var d,e,g,h,j=c.changedTouches.length,k=[],l=b.getActivePointersListByType("touch");d=a.now();if(l.getLength()>c.touches.length-j){a.console.warn("Tracked touch contact count doesn't match event.touches.length. Removing all tracked touch pointers.");L(b,c,l)}for(e=0;e8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";a.MouseTracker.supportsMouseCapture=function(){var b=document.createElement("div");return a.isFunction(b.setCapture)&&a.isFunction(b.releaseCapture)}();a.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur",a.MouseTracker.wheelEventName];"DOMMouseScroll"==a.MouseTracker.wheelEventName&&a.MouseTracker.subscribeEvents.push("MozMousePixelScroll");if(window.PointerEvent&&(window.navigator.pointerEnabled||a.Browser.vendor!==a.BROWSERS.IE)){a.MouseTracker.havePointerEvents=!0;a.MouseTracker.subscribeEvents.push("pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel");a.MouseTracker.unprefixedPointerEvents=!0;navigator.maxTouchPoints?a.MouseTracker.maxTouchPoints=navigator.maxTouchPoints:a.MouseTracker.maxTouchPoints=0;a.MouseTracker.haveMouseEnter=!1}else if(window.MSPointerEvent&&window.navigator.msPointerEnabled){a.MouseTracker.havePointerEvents=!0;a.MouseTracker.subscribeEvents.push("MSPointerOver","MSPointerOut","MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel");a.MouseTracker.unprefixedPointerEvents=!1;navigator.msMaxTouchPoints?a.MouseTracker.maxTouchPoints=navigator.msMaxTouchPoints:a.MouseTracker.maxTouchPoints=0;a.MouseTracker.haveMouseEnter=!1}else{a.MouseTracker.havePointerEvents=!1;if(a.Browser.vendor===a.BROWSERS.IE&&a.Browser.version<9){a.MouseTracker.subscribeEvents.push("mouseenter","mouseleave");a.MouseTracker.haveMouseEnter=!0}else{a.MouseTracker.subscribeEvents.push("mouseover","mouseout");a.MouseTracker.haveMouseEnter=!1}a.MouseTracker.subscribeEvents.push("mousedown","mouseup","mousemove");"ontouchstart"in window&&a.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel");"ongesturestart"in window&&a.MouseTracker.subscribeEvents.push("gesturestart","gesturechange");a.MouseTracker.mousePointerId="legacy-mouse";a.MouseTracker.maxTouchPoints=10}a.MouseTracker.GesturePointList=function(a){this._gPoints=[];this.type=a;this.buttons=0;this.contacts=0;this.clicks=0;this.captureCount=0};a.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(a){return this._gPoints.push(a)},removeById:function(a){var b,c=this._gPoints.length;for(b=0;b1&&("mouse"===this.type||"pen"===this.type)&&(this.contacts=1)},removeContact:function(){--this.contacts;this.contacts<0&&(this.contacts=0)}};var qa=function(){try{return window.self!==window.top}catch(a){return!0}}()}(OpenSeadragon);!function(a){a.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5};a.Control=function(b,c,d){var e=b.parentNode;if("number"==typeof c){a.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead. Support for this deprecated variant is scheduled for removal in December 2013");c={anchor:c}}c.attachToViewer="undefined"==typeof c.attachToViewer||c.attachToViewer;this.autoFade="undefined"==typeof c.autoFade||c.autoFade;this.element=b;this.anchor=c.anchor;this.container=d;if(this.anchor==a.ControlAnchor.ABSOLUTE){this.wrapper=a.makeNeutralElement("div");this.wrapper.style.position="absolute";this.wrapper.style.top="number"==typeof c.top?c.top+"px":c.top;this.wrapper.style.left="number"==typeof c.left?c.left+"px":c.left;this.wrapper.style.height="number"==typeof c.height?c.height+"px":c.height;this.wrapper.style.width="number"==typeof c.width?c.width+"px":c.width;this.wrapper.style.margin="0px";this.wrapper.style.padding="0px";this.element.style.position="relative";this.element.style.top="0px";this.element.style.left="0px";this.element.style.height="100%";this.element.style.width="100%"}else{this.wrapper=a.makeNeutralElement("div");this.wrapper.style.display="inline-block";this.anchor==a.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")}this.wrapper.appendChild(this.element);c.attachToViewer?this.anchor==a.ControlAnchor.TOP_RIGHT||this.anchor==a.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):e.appendChild(this.wrapper)};a.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element);this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!=this.wrapper.style.display},setVisible:function(b){this.wrapper.style.display=b?this.anchor==a.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(b){this.element[a.SIGNAL]&&a.Browser.vendor==a.BROWSERS.IE?a.setElementOpacity(this.element,b,!0):a.setElementOpacity(this.wrapper,b,!0)}}}(OpenSeadragon);!function(a){function b(a,b){var c,d=a.controls;for(c=d.length-1;c>=0;c--)if(d[c].element==b)return c;return-1}a.ControlDock=function(b){var c,d,e=["topleft","topright","bottomright","bottomleft"];a.extend(!0,this,{id:"controldock-"+a.now()+"-"+Math.floor(1e6*Math.random()),container:a.makeNeutralElement("div"),controls:[]},b);this.container.onsubmit=function(){return!1};if(this.element){this.element=a.getElement(this.element);this.element.appendChild(this.container);this.element.style.position="relative";this.container.style.width="100%";this.container.style.height="100%"}for(d=0;d=0)){switch(d.anchor){case a.ControlAnchor.TOP_RIGHT:e=this.controls.topright;c.style.position="relative";c.style.paddingRight="0px";c.style.paddingTop="0px";break;case a.ControlAnchor.BOTTOM_RIGHT:e=this.controls.bottomright;c.style.position="relative";c.style.paddingRight="0px";c.style.paddingBottom="0px";break;case a.ControlAnchor.BOTTOM_LEFT:e=this.controls.bottomleft;c.style.position="relative";c.style.paddingLeft="0px";c.style.paddingBottom="0px";break;case a.ControlAnchor.TOP_LEFT:e=this.controls.topleft;c.style.position="relative";c.style.paddingLeft="0px";c.style.paddingTop="0px";break;case a.ControlAnchor.ABSOLUTE:e=this.container;c.style.margin="0px";c.style.padding="0px";break;default:case a.ControlAnchor.NONE:e=this.container;c.style.margin="0px";c.style.padding="0px"}this.controls.push(new a.Control(c,d,e));c.style.display="inline-block"}},removeControl:function(c){c=a.getElement(c);var d=b(this,c);if(d>=0){this.controls[d].destroy();this.controls.splice(d,1)}return this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var a;for(a=this.controls.length-1;a>=0;a--)if(this.controls[a].isVisible())return!0;return!1},setControlsEnabled:function(a){var b;for(b=this.controls.length-1;b>=0;b--)this.controls[b].setVisible(a);return this}}}(OpenSeadragon);!function(a){a.Placement=a.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(OpenSeadragon);!function(a){function b(b){b=a.getElement(b);return new a.Point(0===b.clientWidth?1:b.clientWidth,0===b.clientHeight?1:b.clientHeight)}function c(b,c,d,e,f){function g(a,b){if(a.ready)e(a);else{a.addHandler("ready",function(){e(a)});a.addHandler("open-failed",function(a){f({message:a.message,source:b})})}}var h=b;if("string"==a.type(c))if(c.match(/^\s*<.*>\s*$/))c=a.parseXml(c);else if(c.match(/^\s*[\{\[].*[\}\]]\s*$/))try{var i=a.parseJSON(c);c=i}catch(a){}setTimeout(function(){if("string"==a.type(c)){c=new a.TileSource({url:c,crossOriginPolicy:void 0!==d.crossOriginPolicy?d.crossOriginPolicy:b.crossOriginPolicy,ajaxWithCredentials:b.ajaxWithCredentials,ajaxHeaders:b.ajaxHeaders,useCanvas:b.useCanvas,success:function(a){e(a.tileSource)}});c.addHandler("open-failed",function(a){f(a)})}else if(a.isPlainObject(c)||c.nodeType){void 0!==c.crossOriginPolicy||void 0===d.crossOriginPolicy&&void 0===b.crossOriginPolicy||(c.crossOriginPolicy=void 0!==d.crossOriginPolicy?d.crossOriginPolicy:b.crossOriginPolicy);void 0===c.ajaxWithCredentials&&(c.ajaxWithCredentials=b.ajaxWithCredentials);void 0===c.useCanvas&&(c.useCanvas=b.useCanvas);if(a.isFunction(c.getTileUrl)){var i=new a.TileSource(c);i.getTileUrl=c.getTileUrl;e(i)}else{var j=a.TileSource.determineType(h,c);if(!j){f({message:"Unable to load TileSource",source:c});return}var k=j.prototype.configure.apply(h,[c]);g(new j(k),c)}}else g(c,c)})}function d(b,c){if(c instanceof a.Overlay)return c;var d=null;if(c.element)d=a.getElement(c.element);else{var e=c.id?c.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());d=a.getElement(c.id);if(!d){d=document.createElement("a");d.href="#/overlay/"+e}d.id=e;a.addClass(d,c.className?c.className:"openseadragon-overlay")}var f=c.location;var g=c.width;var h=c.height;if(!f){var i=c.x;var j=c.y;if(void 0!==c.px){var k=b.viewport.imageToViewportRectangle(new a.Rect(c.px,c.py,g||0,h||0));i=k.x;j=k.y;g=void 0!==g?k.width:void 0;h=void 0!==h?k.height:void 0}f=new a.Point(i,j)}var l=c.placement;l&&"string"===a.type(l)&&(l=a.Placement[c.placement.toUpperCase()]);return new a.Overlay({element:d,location:f,placement:l,onDraw:c.onDraw,checkResize:c.checkResize,width:g,height:h,rotationMode:c.rotationMode})}function e(a,b){var c;for(c=a.length-1;c>=0;c--)if(a[c].element===b)return c;return-1}function f(b,c){return a.requestAnimationFrame(function(){c(b)})}function g(b){a.requestAnimationFrame(function(){i(b)})}function h(b){if(b.autoHideControls){b.controlsShouldFade=!0;b.controlsFadeBeginTime=a.now()+b.controlsFadeDelay;window.setTimeout(function(){g(b)},b.controlsFadeDelay)}}function i(b){var c,d,e,f;if(b.controlsShouldFade){c=a.now();d=c-b.controlsFadeBeginTime;e=1-d/b.controlsFadeLength;e=Math.min(1,e);e=Math.max(0,e);for(f=b.controls.length-1;f>=0;f--)b.controls[f].autoFade&&b.controls[f].setOpacity(e);e>0&&g(b)}}function j(a){var b;a.controlsShouldFade=!1;for(b=a.controls.length-1;b>=0;b--)a.controls[b].setOpacity(1)}function k(){j(this)}function l(){h(this)}function m(b){if(b.preventDefaultAction||b.ctrl||b.alt||b.meta)return!0;switch(b.keyCode){case 38:b.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(0,-40)));this.viewport.applyConstraints();return!1;case 40:b.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(0,40)));this.viewport.applyConstraints();return!1;case 37:this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(-40,0)));this.viewport.applyConstraints();return!1;case 39:this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(40,0)));this.viewport.applyConstraints();return!1;default:return!0}}function n(b){if(b.preventDefaultAction||b.ctrl||b.alt||b.meta)return!0;switch(b.keyCode){case 43:case 61:this.viewport.zoomBy(1.1);this.viewport.applyConstraints();return!1;case 45:this.viewport.zoomBy(.9);this.viewport.applyConstraints();return!1;case 48:this.viewport.goHome();this.viewport.applyConstraints();return!1;case 119:case 87:b.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(0,-40)));this.viewport.applyConstraints();return!1;case 115:case 83:b.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(0,40)));this.viewport.applyConstraints();return!1;case 97:this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(-40,0)));this.viewport.applyConstraints();return!1;case 100:this.viewport.panBy(this.viewport.deltaPointsFromPixels(new a.Point(40,0)));this.viewport.applyConstraints();return!1;default:return!0}}function o(a){var b;var c=document.activeElement==this.canvas;c||this.canvas.focus();var d={tracker:a.eventSource,position:a.position,quick:a.quick,shift:a.shift,originalEvent:a.originalEvent,preventDefaultAction:a.preventDefaultAction};this.raiseEvent("canvas-click",d);if(!d.preventDefaultAction&&this.viewport&&a.quick){b=this.gestureSettingsByDeviceType(a.pointerType);if(b.clickToZoom){this.viewport.zoomBy(a.shift?1/this.zoomPerClick:this.zoomPerClick,this.viewport.pointFromPixel(a.position,!0));this.viewport.applyConstraints()}}}function p(a){var b;if(!a.preventDefaultAction&&this.viewport){b=this.gestureSettingsByDeviceType(a.pointerType);if(b.dblClickToZoom){this.viewport.zoomBy(a.shift?1/this.zoomPerClick:this.zoomPerClick,this.viewport.pointFromPixel(a.position,!0));this.viewport.applyConstraints()}}this.raiseEvent("canvas-double-click",{tracker:a.eventSource,position:a.position,shift:a.shift,originalEvent:a.originalEvent})}function q(a){var b;var c={tracker:a.eventSource,position:a.position,delta:a.delta,speed:a.speed,direction:a.direction,shift:a.shift,originalEvent:a.originalEvent,preventDefaultAction:a.preventDefaultAction};this.raiseEvent("canvas-drag",c);if(!c.preventDefaultAction&&this.viewport){b=this.gestureSettingsByDeviceType(a.pointerType);this.panHorizontal||(a.delta.x=0);this.panVertical||(a.delta.y=0);if(this.constrainDuringPan){var d=this.viewport.deltaPointsFromPixels(a.delta.negate());this.viewport.centerSpringX.target.value+=d.x;this.viewport.centerSpringY.target.value+=d.y;var e=this.viewport.getBounds();var f=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=d.x;this.viewport.centerSpringY.target.value-=d.y;e.x!=f.x&&(a.delta.x=0);e.y!=f.y&&(a.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(a.delta.negate()),b.flickEnabled&&!this.constrainDuringPan)}}function r(b){if(!b.preventDefaultAction&&this.viewport){var c=this.gestureSettingsByDeviceType(b.pointerType);if(c.flickEnabled&&b.speed>=c.flickMinSpeed){var d=0;this.panHorizontal&&(d=c.flickMomentum*b.speed*Math.cos(b.direction));var e=0;this.panVertical&&(e=c.flickMomentum*b.speed*Math.sin(b.direction));var f=this.viewport.pixelFromPoint(this.viewport.getCenter(!0));var g=this.viewport.pointFromPixel(new a.Point(f.x-d,f.y-e));
+this.viewport.panTo(g,!1)}this.viewport.applyConstraints()}this.raiseEvent("canvas-drag-end",{tracker:b.eventSource,position:b.position,speed:b.speed,direction:b.direction,shift:b.shift,originalEvent:b.originalEvent})}function s(a){this.raiseEvent("canvas-enter",{tracker:a.eventSource,pointerType:a.pointerType,position:a.position,buttons:a.buttons,pointers:a.pointers,insideElementPressed:a.insideElementPressed,buttonDownAny:a.buttonDownAny,originalEvent:a.originalEvent})}function t(b){window.location!=window.parent.location&&a.MouseTracker.resetAllMouseTrackers();this.raiseEvent("canvas-exit",{tracker:b.eventSource,pointerType:b.pointerType,position:b.position,buttons:b.buttons,pointers:b.pointers,insideElementPressed:b.insideElementPressed,buttonDownAny:b.buttonDownAny,originalEvent:b.originalEvent})}function u(a){this.raiseEvent("canvas-press",{tracker:a.eventSource,pointerType:a.pointerType,position:a.position,insideElementPressed:a.insideElementPressed,insideElementReleased:a.insideElementReleased,originalEvent:a.originalEvent})}function v(a){this.raiseEvent("canvas-release",{tracker:a.eventSource,pointerType:a.pointerType,position:a.position,insideElementPressed:a.insideElementPressed,insideElementReleased:a.insideElementReleased,originalEvent:a.originalEvent})}function w(a){this.raiseEvent("canvas-nonprimary-press",{tracker:a.eventSource,position:a.position,pointerType:a.pointerType,button:a.button,buttons:a.buttons,originalEvent:a.originalEvent})}function x(a){this.raiseEvent("canvas-nonprimary-release",{tracker:a.eventSource,position:a.position,pointerType:a.pointerType,button:a.button,buttons:a.buttons,originalEvent:a.originalEvent})}function y(a){var b,c,d,e;if(!a.preventDefaultAction&&this.viewport){b=this.gestureSettingsByDeviceType(a.pointerType);if(b.pinchToZoom){c=this.viewport.pointFromPixel(a.center,!0);d=this.viewport.pointFromPixel(a.lastCenter,!0);e=d.minus(c);this.panHorizontal||(e.x=0);this.panVertical||(e.y=0);this.viewport.zoomBy(a.distance/a.lastDistance,c,!0);this.viewport.panBy(e,!0);this.viewport.applyConstraints()}if(b.pinchRotate){var f=Math.atan2(a.gesturePoints[0].currentPos.y-a.gesturePoints[1].currentPos.y,a.gesturePoints[0].currentPos.x-a.gesturePoints[1].currentPos.x);var g=Math.atan2(a.gesturePoints[0].lastPos.y-a.gesturePoints[1].lastPos.y,a.gesturePoints[0].lastPos.x-a.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(f-g)*(180/Math.PI))}}this.raiseEvent("canvas-pinch",{tracker:a.eventSource,gesturePoints:a.gesturePoints,lastCenter:a.lastCenter,center:a.center,lastDistance:a.lastDistance,distance:a.distance,shift:a.shift,originalEvent:a.originalEvent});return!1}function z(b){var c,d,e,f;e=a.now();f=e-this._lastScrollTime;if(f>this.minScrollDeltaTime){this._lastScrollTime=e;if(!b.preventDefaultAction&&this.viewport){c=this.gestureSettingsByDeviceType(b.pointerType);if(c.scrollToZoom){d=Math.pow(this.zoomPerScroll,b.scroll);this.viewport.zoomBy(d,this.viewport.pointFromPixel(b.position,!0));this.viewport.applyConstraints()}}this.raiseEvent("canvas-scroll",{tracker:b.eventSource,position:b.position,scroll:b.scroll,shift:b.shift,originalEvent:b.originalEvent});if(c&&c.scrollToZoom)return!1}else{c=this.gestureSettingsByDeviceType(b.pointerType);if(c&&c.scrollToZoom)return!1}}function A(a){U[this.hash].mouseInside=!0;j(this);this.raiseEvent("container-enter",{tracker:a.eventSource,position:a.position,buttons:a.buttons,pointers:a.pointers,insideElementPressed:a.insideElementPressed,buttonDownAny:a.buttonDownAny,originalEvent:a.originalEvent})}function B(a){if(a.pointers<1){U[this.hash].mouseInside=!1;U[this.hash].animating||h(this)}this.raiseEvent("container-exit",{tracker:a.eventSource,position:a.position,buttons:a.buttons,pointers:a.pointers,insideElementPressed:a.insideElementPressed,buttonDownAny:a.buttonDownAny,originalEvent:a.originalEvent})}function C(a){D(a);a.isOpen()?a._updateRequestId=f(a,C):a._updateRequestId=!1}function D(a){if(!a._opening){if(a.autoResize){var c=b(a.container);var d=U[a.hash].prevContainerSize;if(!c.equals(d)){var e=a.viewport;if(a.preserveImageSizeOnResize){var f=d.x/c.x;var g=e.getZoom()*f;var i=e.getCenter();e.resize(c,!1);e.zoomTo(g,null,!0);e.panTo(i,!0)}else{var k=e.getBounds();e.resize(c,!0);e.fitBoundsWithConstraints(k,!0)}U[a.hash].prevContainerSize=c;U[a.hash].forceRedraw=!0}}var l=a.viewport.update();var m=a.world.update()||l;l&&a.raiseEvent("viewport-change");a.referenceStrip&&(m=a.referenceStrip.update(a.viewport)||m);if(!U[a.hash].animating&&m){a.raiseEvent("animation-start");j(a)}if(m||U[a.hash].forceRedraw||a.world.needsDraw()){E(a);a._drawOverlays();a.navigator&&a.navigator.update(a.viewport);U[a.hash].forceRedraw=!1;m&&a.raiseEvent("animation")}if(U[a.hash].animating&&!m){a.raiseEvent("animation-finish");U[a.hash].mouseInside||h(a)}U[a.hash].animating=m}}function E(a){a.imageLoader.clear();a.drawer.clear();a.world.draw();a.raiseEvent("update-viewport",{})}function F(a,b){return a?a+b:b}function G(){U[this.hash].lastZoomTime=a.now();U[this.hash].zoomFactor=this.zoomPerSecond;U[this.hash].zooming=!0;J(this)}function H(){U[this.hash].lastZoomTime=a.now();U[this.hash].zoomFactor=1/this.zoomPerSecond;U[this.hash].zooming=!0;J(this)}function I(){U[this.hash].zooming=!1}function J(b){a.requestAnimationFrame(a.delegate(b,K))}function K(){var b,c,d;if(U[this.hash].zooming&&this.viewport){b=a.now();c=b-U[this.hash].lastZoomTime;d=Math.pow(U[this.hash].zoomFactor,c/1e3);this.viewport.zoomBy(d);this.viewport.applyConstraints();U[this.hash].lastZoomTime=b;J(this)}}function L(){if(this.viewport){U[this.hash].zooming=!1;this.viewport.zoomBy(this.zoomPerClick/1);this.viewport.applyConstraints()}}function M(){if(this.viewport){U[this.hash].zooming=!1;this.viewport.zoomBy(1/this.zoomPerClick);this.viewport.applyConstraints()}}function N(){this.buttons.emulateEnter();this.buttons.emulateExit()}function O(){this.viewport&&this.viewport.goHome()}function P(){this.isFullPage()&&!a.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage());this.buttons&&this.buttons.emulateExit();this.fullPageButton.element.focus();this.viewport&&this.viewport.applyConstraints()}function Q(){if(this.viewport){var a=this.viewport.getRotation();0===a?a=270:a-=90;this.viewport.setRotation(a)}}function R(){if(this.viewport){var a=this.viewport.getRotation();270===a?a=0:a+=90;this.viewport.setRotation(a)}}function S(){var a=this._sequenceIndex-1;this.navPrevNextWrap&&a<0&&(a+=this.tileSources.length);this.goToPage(a)}function T(){var a=this._sequenceIndex+1;this.navPrevNextWrap&&a>=this.tileSources.length&&(a=0);this.goToPage(a)}var U={};var V=1;a.Viewer=function(c){var d,e=arguments,g=this;a.isPlainObject(c)||(c={id:e[0],xmlPath:e.length>1?e[1]:void 0,prefixUrl:e.length>2?e[2]:void 0,controls:e.length>3?e[3]:void 0,overlays:e.length>4?e[4]:void 0});if(c.config){a.extend(!0,c,c.config);delete c.config}a.extend(!0,this,{id:c.id,hash:c.hash||V++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttons:null,profiler:null},a.DEFAULT_SETTINGS,c);if("undefined"==typeof this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");"undefined"!=typeof U[this.hash]&&a.console.warn("Hash "+this.hash+" has already been used.");U[this.hash]={fsBoundsDelta:new a.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null};this._sequenceIndex=0;this._firstOpen=!0;this._updateRequestId=null;this._loadQueue=[];this.currentOverlays=[];this._lastScrollTime=a.now();a.EventSource.call(this);this.addHandler("open-failed",function(b){var c=a.getString("Errors.OpenFailed",b.eventSource,b.message);g._showMessage(c)});a.ControlDock.call(this,c);this.xmlPath&&(this.tileSources=[this.xmlPath]);this.element=this.element||document.getElementById(this.id);this.canvas=a.makeNeutralElement("div");this.canvas.className="openseadragon-canvas";!function(a){a.width="100%";a.height="100%";a.overflow="hidden";a.position="absolute";a.top="0px";a.left="0px"}(this.canvas.style);a.setElementTouchActionNone(this.canvas);""!==c.tabIndex&&(this.canvas.tabIndex=void 0===c.tabIndex?0:c.tabIndex);this.container.className="openseadragon-container";!function(a){a.width="100%";a.height="100%";a.position="relative";a.overflow="hidden";a.left="0px";a.top="0px";a.textAlign="left"}(this.container.style);this.container.insertBefore(this.canvas,this.container.firstChild);this.element.appendChild(this.container);this.bodyWidth=document.body.style.width;this.bodyHeight=document.body.style.height;this.bodyOverflow=document.body.style.overflow;this.docOverflow=document.documentElement.style.overflow;this.innerTracker=new a.MouseTracker({element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,keyDownHandler:a.delegate(this,m),keyHandler:a.delegate(this,n),clickHandler:a.delegate(this,o),dblClickHandler:a.delegate(this,p),dragHandler:a.delegate(this,q),dragEndHandler:a.delegate(this,r),enterHandler:a.delegate(this,s),exitHandler:a.delegate(this,t),pressHandler:a.delegate(this,u),releaseHandler:a.delegate(this,v),nonPrimaryPressHandler:a.delegate(this,w),nonPrimaryReleaseHandler:a.delegate(this,x),scrollHandler:a.delegate(this,z),pinchHandler:a.delegate(this,y)});this.outerTracker=new a.MouseTracker({element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:a.delegate(this,A),exitHandler:a.delegate(this,B)});this.toolbar&&(this.toolbar=new a.ControlDock({element:this.toolbar}));this.bindStandardControls();U[this.hash].prevContainerSize=b(this.container);this.world=new a.World({viewer:this});this.world.addHandler("add-item",function(a){g.source=g.world.getItemAt(0).source;U[g.hash].forceRedraw=!0;g._updateRequestId||(g._updateRequestId=f(g,C))});this.world.addHandler("remove-item",function(a){g.world.getItemCount()?g.source=g.world.getItemAt(0).source:g.source=null;U[g.hash].forceRedraw=!0});this.world.addHandler("metrics-change",function(a){g.viewport&&g.viewport._setContentBounds(g.world.getHomeBounds(),g.world.getContentFactor())});this.world.addHandler("item-index-change",function(a){g.source=g.world.getItemAt(0).source});this.viewport=new a.Viewport({containerSize:U[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins});this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor());this.imageLoader=new a.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:c.timeout});this.tileCache=new a.TileCache({maxImageCacheCount:this.maxImageCacheCount});this.drawer=new a.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor});this.overlaysContainer=a.makeNeutralElement("div");this.canvas.appendChild(this.overlaysContainer);if(!this.drawer.canRotate()){if(this.rotateLeft){d=this.buttons.buttons.indexOf(this.rotateLeft);this.buttons.buttons.splice(d,1);this.buttons.element.removeChild(this.rotateLeft.element)}if(this.rotateRight){d=this.buttons.buttons.indexOf(this.rotateRight);this.buttons.buttons.splice(d,1);this.buttons.element.removeChild(this.rotateRight.element)}}this.showNavigator&&(this.navigator=new a.Navigator({id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,crossOriginPolicy:this.crossOriginPolicy}));this.sequenceMode&&this.bindSequenceControls();this.tileSources&&this.open(this.tileSources);for(d=0;d-1&&b.index=0&&a=0)return this;var i=d(this,h);this.currentOverlays.push(i);i.drawHTML(this.overlaysContainer,this.viewport);this.raiseEvent("add-overlay",{element:b,location:h.location,placement:h.placement});return this},updateOverlay:function(b,c,d){var f;b=a.getElement(b);f=e(this.currentOverlays,b);if(f>=0){this.currentOverlays[f].update(c,d);U[this.hash].forceRedraw=!0;this.raiseEvent("update-overlay",{element:b,location:c,placement:d})}return this;
+},removeOverlay:function(b){var c;b=a.getElement(b);c=e(this.currentOverlays,b);if(c>=0){this.currentOverlays[c].destroy();this.currentOverlays.splice(c,1);U[this.hash].forceRedraw=!0;this.raiseEvent("remove-overlay",{element:b})}return this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();U[this.hash].forceRedraw=!0;this.raiseEvent("clear-overlay",{});return this},getOverlayById:function(b){var c;b=a.getElement(b);c=e(this.currentOverlays,b);return c>=0?this.currentOverlays[c]:null},_updateSequenceButtons:function(a){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==a?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable());this.previousButton&&(a>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(b){this._hideMessage();var c=a.makeNeutralElement("div");c.appendChild(document.createTextNode(b));this.messageDiv=a.makeCenteredNode(c);a.addClass(this.messageDiv,"openseadragon-message");this.container.appendChild(this.messageDiv)},_hideMessage:function(){var a=this.messageDiv;if(a){a.parentNode.removeChild(a);delete this.messageDiv}},gestureSettingsByDeviceType:function(a){switch(a){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var a,b=this.currentOverlays.length;for(a=0;a1){this.referenceStrip=new a.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,viewer:this});this.referenceStrip.setFocus(this._sequenceIndex)}}else a.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')}})}(OpenSeadragon);!function(a){function b(a){if(a.quick&&this.viewer.viewport){this.viewer.viewport.panTo(this.viewport.pointFromPixel(a.position));this.viewer.viewport.applyConstraints()}}function c(a){if(this.viewer.viewport){this.panHorizontal||(a.delta.x=0);this.panVertical||(a.delta.y=0);this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(a.delta));this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints()}}function d(a){a.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function e(a){this.viewer.raiseEvent("navigator-scroll",{tracker:a.eventSource,position:a.position,scroll:a.scroll,shift:a.shift,originalEvent:a.originalEvent});return!1}function f(a,b){a.style.webkitTransform="rotate("+b+"deg)";a.style.mozTransform="rotate("+b+"deg)";a.style.msTransform="rotate("+b+"deg)";a.style.oTransform="rotate("+b+"deg)";a.style.transform="rotate("+b+"deg)"}a.Navigator=function(g){function h(a){f(l.displayRegionContainer,a);f(l.displayRegion,-a);l.viewport.setRotation(a)}var i,j,k=g.viewer,l=this;if(g.id){this.element=document.getElementById(g.id);g.controlOptions={anchor:a.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}}else{g.id="navigator-"+a.now();this.element=a.makeNeutralElement("div");g.controlOptions={anchor:a.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:g.autoFade};if(g.position)if("BOTTOM_RIGHT"==g.position)g.controlOptions.anchor=a.ControlAnchor.BOTTOM_RIGHT;else if("BOTTOM_LEFT"==g.position)g.controlOptions.anchor=a.ControlAnchor.BOTTOM_LEFT;else if("TOP_RIGHT"==g.position)g.controlOptions.anchor=a.ControlAnchor.TOP_RIGHT;else if("TOP_LEFT"==g.position)g.controlOptions.anchor=a.ControlAnchor.TOP_LEFT;else if("ABSOLUTE"==g.position){g.controlOptions.anchor=a.ControlAnchor.ABSOLUTE;g.controlOptions.top=g.top;g.controlOptions.left=g.left;g.controlOptions.height=g.height;g.controlOptions.width=g.width}}this.element.id=g.id;this.element.className+=" navigator";g=a.extend(!0,{sizeRatio:a.DEFAULT_SETTINGS.navigatorSizeRatio},g,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,autoResize:g.autoResize,minZoomImageRatio:1});g.minPixelRatio=this.minPixelRatio=k.minPixelRatio;a.setElementTouchActionNone(this.element);this.borderWidth=2;this.fudge=new a.Point(1,1);this.totalBorderWidths=new a.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge);g.controlOptions.anchor!=a.ControlAnchor.NONE&&!function(a,b){a.margin="0px";a.border=b+"px solid #555";a.padding="0px";a.background="#000";a.opacity=.8;a.overflow="hidden"}(this.element.style,this.borderWidth);this.displayRegion=a.makeNeutralElement("div");this.displayRegion.id=this.element.id+"-displayregion";this.displayRegion.className="displayregion";!function(a,b){a.position="relative";a.top="0px";a.left="0px";a.fontSize="0px";a.overflow="hidden";a.border=b+"px solid #900";a.margin="0px";a.padding="0px";a.background="transparent";a.float="left";a.cssFloat="left";a.styleFloat="left";a.zIndex=999999999;a.cursor="default"}(this.displayRegion.style,this.borderWidth);this.displayRegionContainer=a.makeNeutralElement("div");this.displayRegionContainer.id=this.element.id+"-displayregioncontainer";this.displayRegionContainer.className="displayregioncontainer";this.displayRegionContainer.style.width="100%";this.displayRegionContainer.style.height="100%";k.addControl(this.element,g.controlOptions);this._resizeWithViewer=g.controlOptions.anchor!=a.ControlAnchor.ABSOLUTE&&g.controlOptions.anchor!=a.ControlAnchor.NONE;if(this._resizeWithViewer){if(g.width&&g.height){this.element.style.height="number"==typeof g.height?g.height+"px":g.height;this.element.style.width="number"==typeof g.width?g.width+"px":g.width}else{i=a.getElementSize(k.element);this.element.style.height=Math.round(i.y*g.sizeRatio)+"px";this.element.style.width=Math.round(i.x*g.sizeRatio)+"px";this.oldViewerSize=i}j=a.getElementSize(this.element);this.elementArea=j.x*j.y}this.oldContainerSize=new a.Point(0,0);a.Viewer.apply(this,[g]);this.displayRegionContainer.appendChild(this.displayRegion);this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer);if(g.navigatorRotate){var m=g.viewer.viewport?g.viewer.viewport.getRotation():g.viewer.degrees||0;h(m);g.viewer.addHandler("rotate",function(a){h(a.degrees)})}this.innerTracker.destroy();this.innerTracker=new a.MouseTracker({element:this.element,dragHandler:a.delegate(this,c),clickHandler:a.delegate(this,b),releaseHandler:a.delegate(this,d),scrollHandler:a.delegate(this,e)});this.addHandler("reset-size",function(){l.viewport&&l.viewport.goHome(!0)});k.world.addHandler("item-index-change",function(a){window.setTimeout(function(){var b=l.world.getItemAt(a.previousIndex);l.world.setItemIndex(b,a.newIndex)},1)});k.world.addHandler("remove-item",function(a){var b=a.item;var c=l._getMatchingItem(b);c&&l.world.removeItem(c)});this.update(k.viewport)};a.extend(a.Navigator.prototype,a.EventSource.prototype,a.Viewer.prototype,{updateSize:function(){if(this.viewport){var b=new a.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);if(!b.equals(this.oldContainerSize)){this.viewport.resize(b,!0);this.viewport.goHome(!0);this.oldContainerSize=b;this.drawer.clear();this.world.draw()}}},update:function(b){var c,d,e,f,g,h;c=a.getElementSize(this.viewer.element);if(this._resizeWithViewer&&c.x&&c.y&&!c.equals(this.oldViewerSize)){this.oldViewerSize=c;if(this.maintainSizeRatio||!this.elementArea){d=c.x*this.sizeRatio;e=c.y*this.sizeRatio}else{d=Math.sqrt(this.elementArea*(c.x/c.y));e=this.elementArea/d}this.element.style.width=Math.round(d)+"px";this.element.style.height=Math.round(e)+"px";this.elementArea||(this.elementArea=d*e);this.updateSize()}if(b&&this.viewport){f=b.getBoundsNoRotate(!0);g=this.viewport.pixelFromPointNoRotate(f.getTopLeft(),!1);h=this.viewport.pixelFromPointNoRotate(f.getBottomRight(),!1).minus(this.totalBorderWidths);var i=this.displayRegion.style;i.display=this.world.getItemCount()?"block":"none";i.top=Math.round(g.y)+"px";i.left=Math.round(g.x)+"px";var j=Math.abs(g.x-h.x);var k=Math.abs(g.y-h.y);i.width=Math.round(Math.max(j,0))+"px";i.height=Math.round(Math.max(k,0))+"px"}},addTiledImage:function(b){var c=this;var d=b.originalTiledImage;delete b.original;var e=a.extend({},b,{success:function(a){function b(){c._matchBounds(g,d)}function e(){c._matchOpacity(g,d)}function f(){c._matchCompositeOperation(g,d)}var g=a.item;g._originalForNavigator=d;c._matchBounds(g,d,!0);d.addHandler("bounds-change",b);d.addHandler("clip-change",b);d.addHandler("opacity-change",e);d.addHandler("composite-operation-change",f)}});return a.Viewer.prototype.addTiledImage.apply(this,[e])},_getMatchingItem:function(a){var b=this.world.getItemCount();var c;for(var d=0;d1||b.y>1)break}return a-1},getTileAtPoint:function(b,c){var d=c.x>=0&&c.x<=1&&c.y>=0&&c.y<=1/this.aspectRatio;a.console.assert(d,"[TileSource.getTileAtPoint] must be called with a valid point.");var e=this.dimensions.x*this.getLevelScale(b);var f=c.x*e;var g=c.y*e;var h=Math.floor(f/this.getTileWidth(b));var i=Math.floor(g/this.getTileHeight(b));c.x>=1&&(h=this.getNumTiles(b).x-1);var j=1e-16;c.y>=1/this.aspectRatio-j&&(i=this.getNumTiles(b).y-1);return new a.Point(h,i)},getTileBounds:function(b,c,d){var e=this.dimensions.times(this.getLevelScale(b)),f=this.getTileWidth(b),g=this.getTileHeight(b),h=0===c?0:f*c-this.tileOverlap,i=0===d?0:g*d-this.tileOverlap,j=f+(0===c?1:2)*this.tileOverlap,k=g+(0===d?1:2)*this.tileOverlap,l=1/e.x;j=Math.min(j,e.x-h);k=Math.min(k,e.y-i);return new a.Rect(h*l,i*l,j*l,k*l)},getImageInfo:function(c){var d,e,f,g,h,i,j,k=this;if(c){h=c.split("/");i=h[h.length-1];j=i.lastIndexOf(".");j>-1&&(h[h.length-1]=i.slice(0,j))}e=function(b){"string"==typeof b&&(b=a.parseXml(b));var d=a.TileSource.determineType(k,b,c);if(d){g=d.prototype.configure.apply(k,[b,c]);void 0===g.ajaxWithCredentials&&(g.ajaxWithCredentials=k.ajaxWithCredentials);f=new d(g);k.ready=!0;k.raiseEvent("ready",{tileSource:f})}else k.raiseEvent("open-failed",{message:"Unable to load TileSource",source:c})};if(c.match(/\.js$/)){d=c.split("/").pop().replace(".js","");a.jsonp({url:c,async:!1,callbackName:d,callback:e})}else a.makeAjaxRequest({url:c,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(a){var c=b(a);e(c)},error:function(a,b){var d;try{d="HTTP "+a.status+" attempting to load TileSource"}catch(a){var e;e="undefined"!=typeof b&&b.toString?b.toString():"Unknown error";d=e+" attempting to load TileSource"}k.raiseEvent("open-failed",{message:d,source:c})}})},supports:function(a,b){return!1},configure:function(a,b){throw new Error("Method not implemented.")},getTileUrl:function(a,b,c){throw new Error("Method not implemented.")},getTileAjaxHeaders:function(a,b,c){return{}},tileExists:function(a,b,c){var d=this.getNumTiles(a);return a>=this.minLevel&&a<=this.maxLevel&&b>=0&&c>=0&&b=0;k--){l=this.displayRects[k];for(m=l.minLevel;m<=l.maxLevel;m++){this._levelRects[m]||(this._levelRects[m]=[]);this._levelRects[m].push(l)}}a.TileSource.apply(this,[n])};a.extend(a.DziTileSource.prototype,a.TileSource.prototype,{supports:function(a,b){var c;a.Image?c=a.Image.xmlns:a.documentElement&&("Image"!=a.documentElement.localName&&"Image"!=a.documentElement.tagName||(c=a.documentElement.namespaceURI));c=(c||"").toLowerCase();return c.indexOf("schemas.microsoft.com/deepzoom/2008")!==-1||c.indexOf("schemas.microsoft.com/deepzoom/2009")!==-1},configure:function(d,e){var f;f=a.isPlainObject(d)?c(this,d):b(this,d);if(e&&!f.tilesUrl){f.tilesUrl=e.replace(/([^\/]+?)(\.(dzi|xml|js)?(\?[^\/]*)?)?\/?$/,"$1_files/");e.search(/\.(dzi|xml|js)\?/)!=-1?f.queryParams=e.match(/\?.*/):f.queryParams=""}return f},getTileUrl:function(a,b,c){return[this.tilesUrl,a,"/",b,"_",c,".",this.fileFormat,this.queryParams].join("")},tileExists:function(a,b,c){var d,e,f,g,h,i,j,k=this._levelRects[a];if(!k||!k.length)return!0;for(j=k.length-1;j>=0;j--){d=k[j];if(!(ad.maxLevel)){e=this.getLevelScale(a);f=d.x*e;g=d.y*e;h=f+d.width*e;i=g+d.height*e;f=Math.floor(f/this._tileWidth);g=Math.floor(g/this._tileWidth);h=Math.ceil(h/this._tileWidth);i=Math.ceil(i/this._tileWidth);if(f<=b&&b0?d.tileSize=Math.max.apply(null,j):d.tileSize=h}else if(this.sizes&&this.sizes.length>0){this.emulateLegacyImagePyramid=!0;d.levels=c(this);a.extend(!0,d,{width:d.levels[d.levels.length-1].width,height:d.levels[d.levels.length-1].height,tileSize:Math.max(d.height,d.width),tileOverlap:0,minLevel:0,maxLevel:d.levels.length-1});this.levels=d.levels}else a.console.error("Nothing in the info.json to construct image pyramids from");d.maxLevel||this.emulateLegacyImagePyramid||(this.scale_factors?d.maxLevel=Math.floor(Math.pow(Math.max.apply(null,this.scale_factors),.5)):d.maxLevel=Number(Math.ceil(Math.log(Math.max(this.width,this.height),2))));a.TileSource.apply(this,[d])};a.extend(a.IIIFTileSource.prototype,a.TileSource.prototype,{supports:function(a,b){return!(!a.protocol||"http://iiif.io/api/image"!=a.protocol)||(!(!a["@context"]||"http://library.stanford.edu/iiif/image-api/1.1/context.json"!=a["@context"]&&"http://iiif.io/api/image/1/context.json"!=a["@context"])||(!(!a.profile||0!==a.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html"))||(!!(a.identifier&&a.width&&a.height)||!(!a.documentElement||"info"!=a.documentElement.tagName||"http://library.stanford.edu/iiif/image-api/ns/"!=a.documentElement.namespaceURI))))},configure:function(b,c){if(a.isPlainObject(b)){if(b["@context"])return b;b["@context"]="http://iiif.io/api/image/1.0/context.json";b["@id"]=c.replace("/info.json","");return b}var e=d(b);e["@context"]="http://iiif.io/api/image/1.0/context.json";e["@id"]=c.replace("/info.xml","");return e},getTileWidth:function(b){if(this.emulateLegacyImagePyramid)return a.TileSource.prototype.getTileWidth.call(this,b);var c=Math.pow(2,this.maxLevel-b);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[c]?this.tileSizePerScaleFactor[c].width:this._tileWidth},getTileHeight:function(b){if(this.emulateLegacyImagePyramid)return a.TileSource.prototype.getTileHeight.call(this,b);var c=Math.pow(2,this.maxLevel-b);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[c]?this.tileSizePerScaleFactor[c].height:this._tileHeight},getLevelScale:function(b){if(this.emulateLegacyImagePyramid){var c=NaN;this.levels.length>0&&b>=this.minLevel&&b<=this.maxLevel&&(c=this.levels[b].width/this.levels[this.maxLevel].width);return c}return a.TileSource.prototype.getLevelScale.call(this,b)},getNumTiles:function(b){if(this.emulateLegacyImagePyramid){var c=this.getLevelScale(b);return c?new a.Point(1,1):new a.Point(0,0)}return a.TileSource.prototype.getNumTiles.call(this,b)},getTileAtPoint:function(b,c){return this.emulateLegacyImagePyramid?new a.Point(0,0):a.TileSource.prototype.getTileAtPoint.call(this,b,c)},getTileUrl:function(a,b,c){if(this.emulateLegacyImagePyramid){var d=null;this.levels.length>0&&a>=this.minLevel&&a<=this.maxLevel&&(d=this.levels[a].url);return d}var e,f,g,h,i,j,k,l,m,n,o,p,q="0",r=Math.pow(.5,this.maxLevel-a),s=Math.ceil(this.width*r),t=Math.ceil(this.height*r);e=this.getTileWidth(a);f=this.getTileHeight(a);g=Math.ceil(e/r);h=Math.ceil(f/r);o=this["@context"].indexOf("/1.0/context.json")>-1||this["@context"].indexOf("/1.1/context.json")>-1||this["@context"].indexOf("/1/context.json")>-1?"native.jpg":"default.jpg";if(sj?i/256:j/256;g.maxLevel=Math.ceil(Math.log(h)/Math.log(2))-1;g.tileSize=256;g.width=i;g.height=j;a.TileSource.apply(this,[g])};a.extend(a.TmsTileSource.prototype,a.TileSource.prototype,{supports:function(a,b){return a.type&&"tiledmapservice"==a.type},configure:function(a,b){return a},getTileUrl:function(a,b,c){var d=this.getNumTiles(a).y-1;return this.tilesUrl+a+"/"+b+"/"+(d-c)+".png"}})}(OpenSeadragon);!function(a){a.ZoomifyTileSource=function(a){a.tileSize=256;var b={x:a.width,y:a.height};a.imageSizes=[{x:a.width,y:a.height}];a.gridSize=[this._getGridSize(a.width,a.height,a.tileSize)];for(;parseInt(b.x,10)>a.tileSize||parseInt(b.y,10)>a.tileSize;){b.x=Math.floor(b.x/2);b.y=Math.floor(b.y/2);a.imageSizes.push({x:b.x,y:b.y});a.gridSize.push(this._getGridSize(b.x,b.y,a.tileSize))}a.imageSizes.reverse();a.gridSize.reverse();a.minLevel=0;a.maxLevel=a.gridSize.length-1;OpenSeadragon.TileSource.apply(this,[a])};a.extend(a.ZoomifyTileSource.prototype,a.TileSource.prototype,{_getGridSize:function(a,b,c){return{x:Math.ceil(a/c),y:Math.ceil(b/c)}},_calculateAbsoluteTileNumber:function(a,b,c){var d=0;var e={};for(var f=0;f")}return e.sort(function(a,b){return a.height-b.height})}function c(b,c){if(!c||!c.documentElement)throw new Error(a.getString("Errors.Xml"));var e,f,g=c.documentElement,h=g.tagName,i=null,j=[];if("image"==h)try{i={type:g.getAttribute("type"),levels:[]};j=g.getElementsByTagName("level");for(f=0;f0){e=d.levels[d.levels.length-1].width;f=d.levels[d.levels.length-1].height}else{e=0;f=0;a.console.error("No supported image formats found")}a.extend(!0,d,{width:e,height:f,tileSize:Math.max(f,e),tileOverlap:0,minLevel:0,maxLevel:d.levels.length>0?d.levels.length-1:0});a.TileSource.apply(this,[d]);this.levels=d.levels};a.extend(a.LegacyTileSource.prototype,a.TileSource.prototype,{supports:function(a,b){return a.type&&"legacy-image-pyramid"==a.type||a.documentElement&&"legacy-image-pyramid"==a.documentElement.getAttribute("type")},configure:function(b,e){var f;f=a.isPlainObject(b)?d(this,b):c(this,b);return f},getLevelScale:function(a){var b=NaN;this.levels.length>0&&a>=this.minLevel&&a<=this.maxLevel&&(b=this.levels[a].width/this.levels[this.maxLevel].width);return b},getNumTiles:function(b){var c=this.getLevelScale(b);return c?new a.Point(1,1):new a.Point(0,0)},getTileUrl:function(a,b,c){var d=null;this.levels.length>0&&a>=this.minLevel&&a<=this.maxLevel&&(d=this.levels[a].url);return d}})}(OpenSeadragon);!function(a){a.ImageTileSource=function(b){b=a.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},b);a.TileSource.apply(this,[b])};a.extend(a.ImageTileSource.prototype,a.TileSource.prototype,{supports:function(a,b){return a.type&&"image"===a.type},configure:function(a,b){return a},getImageInfo:function(b){var c=this._image=new Image;var d=this;this.crossOriginPolicy&&(c.crossOrigin=this.crossOriginPolicy);this.ajaxWithCredentials&&(c.useCredentials=this.ajaxWithCredentials);a.addEvent(c,"load",function(){d.width=Object.prototype.hasOwnProperty.call(c,"naturalWidth")?c.naturalWidth:c.width;d.height=Object.prototype.hasOwnProperty.call(c,"naturalHeight")?c.naturalHeight:c.height;d.aspectRatio=d.width/d.height;d.dimensions=new a.Point(d.width,d.height);d._tileWidth=d.width;d._tileHeight=d.height;
+d.tileOverlap=0;d.minLevel=0;d.levels=d._buildLevels();d.maxLevel=d.levels.length-1;d.ready=!0;d.raiseEvent("ready",{tileSource:d})});a.addEvent(c,"error",function(){d.raiseEvent("open-failed",{message:"Error loading image at "+b,source:b})});c.src=b},getLevelScale:function(a){var b=NaN;a>=this.minLevel&&a<=this.maxLevel&&(b=this.levels[a].width/this.levels[this.maxLevel].width);return b},getNumTiles:function(b){var c=this.getLevelScale(b);return c?new a.Point(1,1):new a.Point(0,0)},getTileUrl:function(a,b,c){var d=null;a>=this.minLevel&&a<=this.maxLevel&&(d=this.levels[a].url);return d},getContext2D:function(a,b,c){var d=null;a>=this.minLevel&&a<=this.maxLevel&&(d=this.levels[a].context2D);return d},_buildLevels:function(){var b=[{url:this._image.src,width:Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,height:Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height}];if(!this.buildPyramid||!a.supportsCanvas||!this.useCanvas){delete this._image;return b}var c=Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width;var d=Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height;var e=document.createElement("canvas");var f=e.getContext("2d");e.width=c;e.height=d;f.drawImage(this._image,0,0,c,d);b[0].context2D=f;delete this._image;if(a.isCanvasTainted(e))return b;for(;c>=2&&d>=2;){c=Math.floor(c/2);d=Math.floor(d/2);var g=document.createElement("canvas");var h=g.getContext("2d");g.width=c;g.height=d;h.drawImage(e,0,0,c,d);b.splice(0,0,{context2D:h,width:c,height:d});e=g;f=h}return b}})}(OpenSeadragon);!function(a){a.TileSourceCollection=function(b,c,d,e){a.console.error("TileSourceCollection is deprecated; use World instead")}}(OpenSeadragon);!function(a){function b(b){a.requestAnimationFrame(function(){c(b)})}function c(c){var d,e,f;if(c.shouldFade){d=a.now();e=d-c.fadeBeginTime;f=1-e/c.fadeLength;f=Math.min(1,f);f=Math.max(0,f);c.imgGroup&&a.setElementOpacity(c.imgGroup,f,!0);f>0&&b(c)}}function d(c){c.shouldFade=!0;c.fadeBeginTime=a.now()+c.fadeDelay;window.setTimeout(function(){b(c)},c.fadeDelay)}function e(b){b.shouldFade=!1;b.imgGroup&&a.setElementOpacity(b.imgGroup,1,!0)}function f(b,c){if(!b.element.disabled){if(c>=a.ButtonState.GROUP&&b.currentState==a.ButtonState.REST){e(b);b.currentState=a.ButtonState.GROUP}if(c>=a.ButtonState.HOVER&&b.currentState==a.ButtonState.GROUP){b.imgHover&&(b.imgHover.style.visibility="");b.currentState=a.ButtonState.HOVER}if(c>=a.ButtonState.DOWN&&b.currentState==a.ButtonState.HOVER){b.imgDown&&(b.imgDown.style.visibility="");b.currentState=a.ButtonState.DOWN}}}function g(b,c){if(!b.element.disabled){if(c<=a.ButtonState.HOVER&&b.currentState==a.ButtonState.DOWN){b.imgDown&&(b.imgDown.style.visibility="hidden");b.currentState=a.ButtonState.HOVER}if(c<=a.ButtonState.GROUP&&b.currentState==a.ButtonState.HOVER){b.imgHover&&(b.imgHover.style.visibility="hidden");b.currentState=a.ButtonState.GROUP}if(c<=a.ButtonState.REST&&b.currentState==a.ButtonState.GROUP){d(b);b.currentState=a.ButtonState.REST}}}a.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3};a.Button=function(b){var c=this;a.EventSource.call(this);a.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:a.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:a.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null},b);this.element=b.element||a.makeNeutralElement("div");if(!b.element){this.imgRest=a.makeTransparentImage(this.srcRest);this.imgGroup=a.makeTransparentImage(this.srcGroup);this.imgHover=a.makeTransparentImage(this.srcHover);this.imgDown=a.makeTransparentImage(this.srcDown);this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip;this.element.style.position="relative";a.setElementTouchActionNone(this.element);this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute";this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px";this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px";this.imgHover.style.visibility=this.imgDown.style.visibility="hidden";a.Browser.vendor==a.BROWSERS.FIREFOX&&a.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="");this.element.appendChild(this.imgRest);this.element.appendChild(this.imgGroup);this.element.appendChild(this.imgHover);this.element.appendChild(this.imgDown)}this.addHandler("press",this.onPress);this.addHandler("release",this.onRelease);this.addHandler("click",this.onClick);this.addHandler("enter",this.onEnter);this.addHandler("exit",this.onExit);this.addHandler("focus",this.onFocus);this.addHandler("blur",this.onBlur);this.currentState=a.ButtonState.GROUP;this.fadeBeginTime=null;this.shouldFade=!1;this.element.style.display="inline-block";this.element.style.position="relative";this.element.title=this.tooltip;this.tracker=new a.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(b){if(b.insideElementPressed){f(c,a.ButtonState.DOWN);c.raiseEvent("enter",{originalEvent:b.originalEvent})}else b.buttonDownAny||f(c,a.ButtonState.HOVER)},focusHandler:function(a){this.enterHandler(a);c.raiseEvent("focus",{originalEvent:a.originalEvent})},exitHandler:function(b){g(c,a.ButtonState.GROUP);b.insideElementPressed&&c.raiseEvent("exit",{originalEvent:b.originalEvent})},blurHandler:function(a){this.exitHandler(a);c.raiseEvent("blur",{originalEvent:a.originalEvent})},pressHandler:function(b){f(c,a.ButtonState.DOWN);c.raiseEvent("press",{originalEvent:b.originalEvent})},releaseHandler:function(b){if(b.insideElementPressed&&b.insideElementReleased){g(c,a.ButtonState.HOVER);c.raiseEvent("release",{originalEvent:b.originalEvent})}else b.insideElementPressed?g(c,a.ButtonState.GROUP):f(c,a.ButtonState.HOVER)},clickHandler:function(a){a.quick&&c.raiseEvent("click",{originalEvent:a.originalEvent})},keyHandler:function(a){if(13===a.keyCode){c.raiseEvent("click",{originalEvent:a.originalEvent});c.raiseEvent("release",{originalEvent:a.originalEvent});return!1}return!0}});g(this,a.ButtonState.REST)};a.extend(a.Button.prototype,a.EventSource.prototype,{notifyGroupEnter:function(){f(this,a.ButtonState.GROUP)},notifyGroupExit:function(){g(this,a.ButtonState.REST)},disable:function(){this.notifyGroupExit();this.element.disabled=!0;a.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1;a.setElementOpacity(this.element,1,!0);this.notifyGroupEnter()}})}(OpenSeadragon);!function(a){a.ButtonGroup=function(b){a.extend(!0,this,{buttons:[],clickTimeThreshold:a.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:a.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},b);var c,d=this.buttons.concat([]),e=this;this.element=b.element||a.makeNeutralElement("div");if(!b.group){this.label=a.makeNeutralElement("label");this.element.style.display="inline-block";this.element.appendChild(this.label);for(c=0;c=270){g=this.getTopRight();this.x=g.x;this.y=g.y;h=this.height;this.height=this.width;this.width=h;this.degrees-=270}else if(this.degrees>=180){g=this.getBottomRight();this.x=g.x;this.y=g.y;this.degrees-=180}else if(this.degrees>=90){g=this.getBottomLeft();this.x=g.x;this.y=g.y;h=this.height;this.height=this.width;this.width=h;this.degrees-=90}};a.Rect.fromSummits=function(b,c,d){var e=b.distanceTo(c);var f=b.distanceTo(d);var g=c.minus(b);var h=Math.atan(g.y/g.x);g.x<0?h+=Math.PI:g.y<0&&(h+=2*Math.PI);return new a.Rect(b.x,b.y,e,f,h/Math.PI*180)};a.Rect.prototype={clone:function(){return new a.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new a.Point(this.x,this.y)},getBottomRight:function(){return new a.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new a.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new a.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new a.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new a.Point(this.width,this.height)},equals:function(b){return b instanceof a.Rect&&this.x===b.x&&this.y===b.y&&this.width===b.width&&this.height===b.height&&this.degrees===b.degrees},times:function(b){return new a.Rect(this.x*b,this.y*b,this.width*b,this.height*b,this.degrees)},translate:function(b){return new a.Rect(this.x+b.x,this.y+b.y,this.width,this.height,this.degrees)},union:function(b){var c=this.getBoundingBox();var d=b.getBoundingBox();var e=Math.min(c.x,d.x);var f=Math.min(c.y,d.y);var g=Math.max(c.x+c.width,d.x+d.width);var h=Math.max(c.y+c.height,d.y+d.height);return new a.Rect(e,f,g-e,h-f)},intersection:function(b){function c(b,c,e,f){var g=c.minus(b);var h=f.minus(e);var i=-h.x*g.y+g.x*h.y;if(0===i)return null;var j=(g.x*(b.y-e.y)-g.y*(b.x-e.x))/i;var k=(h.x*(b.y-e.y)-h.y*(b.x-e.x))/i;return-d<=j&&j<=1-d&&-d<=k&&k<=1-d?new a.Point(b.x+k*g.x,b.y+k*g.y):null}var d=1e-10;var e=[];var f=this.getTopLeft();b.containsPoint(f,d)&&e.push(f);var g=this.getTopRight();b.containsPoint(g,d)&&e.push(g);var h=this.getBottomLeft();b.containsPoint(h,d)&&e.push(h);var i=this.getBottomRight();b.containsPoint(i,d)&&e.push(i);var j=b.getTopLeft();this.containsPoint(j,d)&&e.push(j);var k=b.getTopRight();this.containsPoint(k,d)&&e.push(k);var l=b.getBottomLeft();this.containsPoint(l,d)&&e.push(l);var m=b.getBottomRight();this.containsPoint(m,d)&&e.push(m);var n=this._getSegments();var o=b._getSegments();for(var p=0;pv&&(v=z.x);z.yx&&(x=z.y)}return new a.Rect(u,w,v-u,x-w)},_getSegments:function(){var a=this.getTopLeft();var b=this.getTopRight();var c=this.getBottomLeft();var d=this.getBottomRight();return[[a,b],[b,d],[d,c],[c,a]]},rotate:function(b,c){b=a.positiveModulo(b,360);if(0===b)return this.clone();c=c||this.getCenter();var d=this.getTopLeft().rotate(b,c);var e=this.getTopRight().rotate(b,c);var f=e.minus(d);f=f.apply(function(a){var b=1e-15;return Math.abs(a)=-b&&(a.x-d.x)*f.x+(a.y-d.y)*f.y<=b&&(a.x-c.x)*g.x+(a.y-c.y)*g.y>=-b&&(a.x-e.x)*g.x+(a.y-e.y)*g.y<=b},toString:function(){return"["+Math.round(100*this.x)/100+", "+Math.round(100*this.y)/100+", "+Math.round(100*this.width)/100+"x"+Math.round(100*this.height)/100+", "+Math.round(100*this.degrees)/100+"deg]"}}}(OpenSeadragon);!function(a){function b(b){var c=Number(this.element.style.marginLeft.replace("px","")),e=Number(this.element.style.marginTop.replace("px","")),f=Number(this.element.style.width.replace("px","")),g=Number(this.element.style.height.replace("px","")),h=a.getElementSize(this.viewer.canvas);this.dragging=!0;if(this.element)if("horizontal"==this.scroll){if(-b.delta.x>0){if(c>-(f-h.x)){this.element.style.marginLeft=c+2*b.delta.x+"px";d(this,h.x,c+2*b.delta.x)}}else if(-b.delta.x<0&&c<0){this.element.style.marginLeft=c+2*b.delta.x+"px";d(this,h.x,c+2*b.delta.x)}}else if(-b.delta.y>0){if(e>-(g-h.y)){this.element.style.marginTop=e+2*b.delta.y+"px";d(this,h.y,e+2*b.delta.y)}}else if(-b.delta.y<0&&e<0){this.element.style.marginTop=e+2*b.delta.y+"px";d(this,h.y,e+2*b.delta.y)}return!1}function c(b){var c=Number(this.element.style.marginLeft.replace("px","")),e=Number(this.element.style.marginTop.replace("px","")),f=Number(this.element.style.width.replace("px","")),g=Number(this.element.style.height.replace("px","")),h=a.getElementSize(this.viewer.canvas);if(this.element)if("horizontal"==this.scroll){if(b.scroll>0){if(c>-(f-h.x)){this.element.style.marginLeft=c-60*b.scroll+"px";d(this,h.x,c-60*b.scroll)}}else if(b.scroll<0&&c<0){this.element.style.marginLeft=c-60*b.scroll+"px";d(this,h.x,c-60*b.scroll)}}else if(b.scroll<0){if(e>h.y-g){this.element.style.marginTop=e+60*b.scroll+"px";d(this,h.y,e+60*b.scroll)}}else if(b.scroll>0&&e<0){this.element.style.marginTop=e+60*b.scroll+"px";d(this,h.y,e+60*b.scroll)}return!1}function d(b,c,d){var e,f,g,h,i,j,k;e="horizontal"==b.scroll?b.panelWidth:b.panelHeight;f=Math.ceil(c/e)+5;g=Math.ceil((Math.abs(d)+c)/e)+1;f=g-f;f=f<0?0:f;for(j=f;jj+g.x-this.panelWidth){c=Math.min(c,h-g.x);this.element.style.marginLeft=-c+"px";d(this,g.x,-c)}else if(ck+g.y-this.panelHeight){c=Math.min(c,i-g.y);this.element.style.marginTop=-c+"px";d(this,g.y,-c)}else if(c1?c[1].springStiffness:5,animationTime:c.length>1?c[1].animationTime:1.5});a.console.assert("number"==typeof b.springStiffness&&0!==b.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number");a.console.assert("number"==typeof b.animationTime&&b.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0");if(b.exponential){this._exponential=!0;delete b.exponential}a.extend(!0,this,b);this.current={value:"number"==typeof this.initial?this.initial:this._exponential?0:1,time:a.now()};a.console.assert(!this._exponential||0!==this.current.value,"[OpenSeadragon.Spring] value must be non-zero for exponential springs");this.start={value:this.current.value,time:this.current.time};this.target={value:this.current.value,time:this.current.time};if(this._exponential){this.start._logValue=Math.log(this.start.value);this.target._logValue=Math.log(this.target.value);this.current._logValue=Math.log(this.current.value)}};a.Spring.prototype={resetTo:function(b){a.console.assert(!this._exponential||0!==b,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs");this.start.value=this.target.value=this.current.value=b;this.start.time=this.target.time=this.current.time=a.now();if(this._exponential){this.start._logValue=Math.log(this.start.value);this.target._logValue=Math.log(this.target.value);this.current._logValue=Math.log(this.current.value)}},springTo:function(b){a.console.assert(!this._exponential||0!==b,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs");this.start.value=this.current.value;this.start.time=this.current.time;this.target.value=b;this.target.time=this.start.time+1e3*this.animationTime;if(this._exponential){this.start._logValue=Math.log(this.start.value);this.target._logValue=Math.log(this.target.value)}},shiftBy:function(b){this.start.value+=b;this.target.value+=b;if(this._exponential){a.console.assert(0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs");this.start._logValue=Math.log(this.start.value);this.target._logValue=Math.log(this.target.value)}},setExponential:function(b){this._exponential=b;if(this._exponential){a.console.assert(0!==this.current.value&&0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs");this.start._logValue=Math.log(this.start.value);this.target._logValue=Math.log(this.target.value);this.current._logValue=Math.log(this.current.value)}},update:function(){this.current.time=a.now();var c,d;if(this._exponential){c=this.start._logValue;d=this.target._logValue}else{c=this.start.value;d=this.target.value}var e=this.current.time>=this.target.time?d:c+(d-c)*b(this.springStiffness,(this.current.time-this.start.time)/(this.target.time-this.start.time));var f=this.current.value;this._exponential?this.current.value=Math.exp(e):this.current.value=e;return f!=this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(OpenSeadragon);!function(a){function b(b){a.extend(!0,this,{timeout:a.DEFAULT_SETTINGS.timeout,jobId:null},b);this.image=null}function c(a,b,c){var d;a.jobsInProgress--;if((!a.jobLimit||a.jobsInProgress0){d=a.jobQueue.shift();d.start();a.jobsInProgress++}c(b.image,b.errorMsg,b.request)}b.prototype={errorMsg:null,start:function(){var b=this;var c=this.abort;this.image=new Image;this.image.onload=function(){b.finish(!0)};this.image.onabort=this.image.onerror=function(){b.errorMsg="Image load aborted";b.finish(!1)};this.jobId=window.setTimeout(function(){b.errorMsg="Image load exceeded timeout";b.finish(!1)},this.timeout);if(this.loadWithAjax){this.request=a.makeAjaxRequest({url:this.src,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,responseType:"arraybuffer",success:function(a){var c;try{c=new window.Blob([a.response])}catch(b){var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===b.name&&d){var e=new d;e.append(a.response);c=e.getBlob()}}if(0===c.size){b.errorMsg="Empty image response.";b.finish(!1)}var f=(window.URL||window.webkitURL).createObjectURL(c);b.image.src=f},error:function(a){b.errorMsg="Image load aborted - XHR error";b.finish(!1)}});this.abort=function(){b.request.abort();"function"==typeof c&&c()}}else{this.crossOriginPolicy!==!1&&(this.image.crossOrigin=this.crossOriginPolicy);this.image.src=this.src}},finish:function(a){this.image.onload=this.image.onerror=this.image.onabort=null;a||(this.image=null);this.jobId&&window.clearTimeout(this.jobId);this.callback(this)}};a.ImageLoader=function(b){a.extend(!0,this,{jobLimit:a.DEFAULT_SETTINGS.imageLoaderLimit,timeout:a.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},b)};a.ImageLoader.prototype={addJob:function(a){var d=this,e=function(b){c(d,b,a.callback)},f={src:a.src,loadWithAjax:a.loadWithAjax,ajaxHeaders:a.loadWithAjax?a.ajaxHeaders:null,crossOriginPolicy:a.crossOriginPolicy,ajaxWithCredentials:a.ajaxWithCredentials,callback:e,abort:a.abort,timeout:this.timeout},g=new b(f);if(!this.jobLimit||this.jobsInProgressc&&(c=e)}return c},needsUpdate:function(){a.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead.");return this.viewer.world.needsDraw()},numTilesLoaded:function(){a.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead.");return this.viewer.tileCache.numTilesLoaded()},reset:function(){a.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead.");this.viewer.world.resetItems();return this},update:function(){a.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead.");this.clear();this.viewer.world.draw();return this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1;this.canvas.height=1;this.sketchCanvas=null;this.sketchContext=null},clear:function(){this.canvas.innerHTML="";if(this.useCanvas){var a=this._calculateCanvasSize();if(this.canvas.width!=a.x||this.canvas.height!=a.y){this.canvas.width=a.x;this.canvas.height=a.y;if(null!==this.sketchCanvas){var b=this._calculateSketchCanvasSize();this.sketchCanvas.width=b.x;this.sketchCanvas.height=b.y}}this._clear()}},_clear:function(a,b){if(this.useCanvas){var c=this._getContext(a);if(b)c.clearRect(b.x,b.y,b.width,b.height);else{var d=c.canvas;c.clearRect(0,0,d.width,d.height)}}},viewportToDrawerRectangle:function(b){var c=this.viewport.pixelFromPointNoRotate(b.getTopLeft(),!0);var d=this.viewport.deltaPixelsFromPointsNoRotate(b.getSize(),!0);return new a.Rect(c.x*a.pixelDensityRatio,c.y*a.pixelDensityRatio,d.x*a.pixelDensityRatio,d.y*a.pixelDensityRatio)},drawTile:function(b,c,d,e,f){a.console.assert(b,"[Drawer.drawTile] tile is required");a.console.assert(c,"[Drawer.drawTile] drawingHandler is required");if(this.useCanvas){var g=this._getContext(d);e=e||1;b.drawCanvas(g,c,e,f)}else b.drawHTML(this.canvas)},_getContext:function(a){var b=this.context;if(a){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var c=this._calculateSketchCanvasSize();this.sketchCanvas.width=c.x;this.sketchCanvas.height=c.y;this.sketchContext=this.sketchCanvas.getContext("2d");if(0===this.viewport.getRotation()){var d=this;this.viewer.addHandler("rotate",function a(){if(0!==d.viewport.getRotation()){d.viewer.removeHandler("rotate",a);var b=d._calculateSketchCanvasSize();d.sketchCanvas.width=b.x;d.sketchCanvas.height=b.y}})}}b=this.sketchContext}return b},saveContext:function(a){this.useCanvas&&this._getContext(a).save()},restoreContext:function(a){this.useCanvas&&this._getContext(a).restore()},setClip:function(a,b){if(this.useCanvas){var c=this._getContext(b);c.beginPath();c.rect(a.x,a.y,a.width,a.height);c.clip()}},drawRectangle:function(a,b,c){if(this.useCanvas){var d=this._getContext(c);d.save();d.fillStyle=b;d.fillRect(a.x,a.y,a.width,a.height);d.restore()}},blendSketch:function(b,c,d,e){var f=b;a.isPlainObject(f)||(f={opacity:b,scale:c,translate:d,compositeOperation:e});if(this.useCanvas&&this.sketchCanvas){b=f.opacity;e=f.compositeOperation;var g=f.bounds;this.context.save();this.context.globalAlpha=b;e&&(this.context.globalCompositeOperation=e);if(g){if(g.x<0){g.width+=g.x;g.x=0}g.x+g.width>this.canvas.width&&(g.width=this.canvas.width-g.x);if(g.y<0){g.height+=g.y;g.y=0}g.y+g.height>this.canvas.height&&(g.height=this.canvas.height-g.y);this.context.drawImage(this.sketchCanvas,g.x,g.y,g.width,g.height,g.x,g.y,g.width,g.height)}else{c=f.scale||1;d=f.translate;var h=d instanceof a.Point?d:new a.Point(0,0);var i=0;var j=0;if(d){var k=this.sketchCanvas.width-this.canvas.width;var l=this.sketchCanvas.height-this.canvas.height;i=Math.round(k/2);j=Math.round(l/2)}this.context.drawImage(this.sketchCanvas,h.x-i*c,h.y-j*c,(this.canvas.width+2*i)*c,(this.canvas.height+2*j)*c,-i,-j,this.canvas.width+2*i,this.canvas.height+2*j)}this.context.restore()}},drawDebugInfo:function(b,c,d,e){if(this.useCanvas){var f=this.viewer.world.getIndexOfItem(e)%this.debugGridColor.length;var g=this.context;g.save();g.lineWidth=2*a.pixelDensityRatio;g.font="small-caps bold "+13*a.pixelDensityRatio+"px arial";g.strokeStyle=this.debugGridColor[f];g.fillStyle=this.debugGridColor[f];0!==this.viewport.degrees&&this._offsetForRotation({degrees:this.viewport.degrees});e.getRotation(!0)%360!==0&&this._offsetForRotation({degrees:e.getRotation(!0),point:e.viewport.pixelFromPointNoRotate(e._getRotationPoint(!0),!0)});g.strokeRect(b.position.x*a.pixelDensityRatio,b.position.y*a.pixelDensityRatio,b.size.x*a.pixelDensityRatio,b.size.y*a.pixelDensityRatio);var h=(b.position.x+b.size.x/2)*a.pixelDensityRatio;var i=(b.position.y+b.size.y/2)*a.pixelDensityRatio;g.translate(h,i);g.rotate(Math.PI/180*-this.viewport.degrees);g.translate(-h,-i);if(0===b.x&&0===b.y){g.fillText("Zoom: "+this.viewport.getZoom(),b.position.x*a.pixelDensityRatio,(b.position.y-30)*a.pixelDensityRatio);g.fillText("Pan: "+this.viewport.getBounds().toString(),b.position.x*a.pixelDensityRatio,(b.position.y-20)*a.pixelDensityRatio)}g.fillText("Level: "+b.level,(b.position.x+10)*a.pixelDensityRatio,(b.position.y+20)*a.pixelDensityRatio);g.fillText("Column: "+b.x,(b.position.x+10)*a.pixelDensityRatio,(b.position.y+30)*a.pixelDensityRatio);g.fillText("Row: "+b.y,(b.position.x+10)*a.pixelDensityRatio,(b.position.y+40)*a.pixelDensityRatio);g.fillText("Order: "+d+" of "+c,(b.position.x+10)*a.pixelDensityRatio,(b.position.y+50)*a.pixelDensityRatio);g.fillText("Size: "+b.size.toString(),(b.position.x+10)*a.pixelDensityRatio,(b.position.y+60)*a.pixelDensityRatio);g.fillText("Position: "+b.position.toString(),(b.position.x+10)*a.pixelDensityRatio,(b.position.y+70)*a.pixelDensityRatio);0!==this.viewport.degrees&&this._restoreRotationChanges();e.getRotation(!0)%360!==0&&this._restoreRotationChanges();g.restore()}},debugRect:function(b){if(this.useCanvas){var c=this.context;c.save();c.lineWidth=2*a.pixelDensityRatio;c.strokeStyle=this.debugGridColor[0];c.fillStyle=this.debugGridColor[0];c.strokeRect(b.x*a.pixelDensityRatio,b.y*a.pixelDensityRatio,b.width*a.pixelDensityRatio,b.height*a.pixelDensityRatio);c.restore()}},getCanvasSize:function(b){var c=this._getContext(b).canvas;return new a.Point(c.width,c.height)},getCanvasCenter:function(){return new a.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(b){var c=b.point?b.point.times(a.pixelDensityRatio):this.getCanvasCenter();var d=this._getContext(b.useSketch);d.save();d.translate(c.x,c.y);d.rotate(Math.PI/180*b.degrees);d.translate(-c.x,-c.y)},_restoreRotationChanges:function(a){var b=this._getContext(a);b.restore()},_calculateCanvasSize:function(){var b=a.pixelDensityRatio;var c=this.viewport.getContainerSize();return{x:c.x*b,y:c.y*b}},_calculateSketchCanvasSize:function(){var a=this._calculateCanvasSize();if(0===this.viewport.getRotation())return a;var b=Math.ceil(Math.sqrt(a.x*a.x+a.y*a.y));return{x:b,y:b}}}}(OpenSeadragon);!function(a){a.Viewport=function(b){var c=arguments;c.length&&c[0]instanceof a.Point&&(b={containerSize:c[0],contentSize:c[1],config:c[2]});if(b.config){a.extend(!0,b,b.config);delete b.config}this._margins=a.extend({left:0,top:0,right:0,bottom:0},b.margins||{});delete b.margins;a.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,viewer:null,springStiffness:a.DEFAULT_SETTINGS.springStiffness,animationTime:a.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:a.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:a.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:a.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:a.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:a.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:a.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:a.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:a.DEFAULT_SETTINGS.maxZoomLevel,degrees:a.DEFAULT_SETTINGS.degrees,homeFillsViewer:a.DEFAULT_SETTINGS.homeFillsViewer},b);this._updateContainerInnerSize();this.centerSpringX=new a.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime});this.centerSpringY=new a.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime});this.zoomSpring=new a.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime});this._oldCenterX=this.centerSpringX.current.value;this._oldCenterY=this.centerSpringY.current.value;this._oldZoom=this.zoomSpring.current.value;this._setContentBounds(new a.Rect(0,0,1,1),1);this.goHome(!0);this.update()};a.Viewport.prototype={resetContentSize:function(b){a.console.assert(b,"[Viewport.resetContentSize] contentSize is required");a.console.assert(b instanceof a.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point");a.console.assert(b.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0");a.console.assert(b.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0");this._setContentBounds(new a.Rect(0,0,1,b.y/b.x),b.x);return this},setHomeBounds:function(b,c){a.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually.");this._setContentBounds(b,c)},_setContentBounds:function(b,c){a.console.assert(b,"[Viewport._setContentBounds] bounds is required");a.console.assert(b instanceof a.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect");a.console.assert(b.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0");a.console.assert(b.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0");this._contentBoundsNoRotate=b.clone();this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(c);this._contentBounds=b.rotate(this.degrees).getBoundingBox();this._contentSize=this._contentBounds.getSize().times(c);this._contentAspectRatio=this._contentSize.x/this._contentSize.y;this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:c,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var a=this._contentAspectRatio/this.getAspectRatio();var b;b=this.homeFillsViewer?a>=1?a:1:a>=1?1:a;return b/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var b=this._contentBounds.getCenter();var c=1/this.getHomeZoom();var d=c/this.getAspectRatio();return new a.Rect(b.x-c/2,b.y-d/2,c,d)},goHome:function(a){this.viewer&&this.viewer.raiseEvent("home",{immediately:a});return this.fitBounds(this.getHomeBounds(),a)},getMinZoom:function(){var a=this.getHomeZoom(),b=this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*a;return b},getMaxZoom:function(){var a=this.maxZoomLevel;if(!a){a=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x;a/=this._contentBounds.width}return Math.max(a,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new a.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return a.extend({},this._margins)},setMargins:function(b){a.console.assert("object"===a.type(b),"[Viewport.setMargins] margins must be an object");this._margins=a.extend({left:0,top:0,right:0,bottom:0},b);this._updateContainerInnerSize();this.viewer&&this.viewer.forceRedraw()},getBounds:function(a){return this.getBoundsNoRotate(a).rotate(-this.getRotation())},getBoundsNoRotate:function(b){var c=this.getCenter(b);var d=1/this.getZoom(b);var e=d/this.getAspectRatio();return new a.Rect(c.x-d/2,c.y-e/2,d,e)},getBoundsWithMargins:function(a){return this.getBoundsNoRotateWithMargins(a).rotate(-this.getRotation(),this.getCenter(a))},getBoundsNoRotateWithMargins:function(a){var b=this.getBoundsNoRotate(a);var c=this._containerInnerSize.x*this.getZoom(a);b.x-=this._margins.left/c;b.y-=this._margins.top/c;b.width+=(this._margins.left+this._margins.right)/c;b.height+=(this._margins.top+this._margins.bottom)/c;return b},getCenter:function(b){var c,d,e,f,g,h,i,j,k=new a.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),l=new a.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);if(b)return k;if(!this.zoomPoint)return l;c=this.pixelFromPoint(this.zoomPoint,!0);d=this.getZoom();e=1/d;f=e/this.getAspectRatio();g=new a.Rect(k.x-e/2,k.y-f/2,e,f);h=this._pixelFromPoint(this.zoomPoint,g);i=h.minus(c);j=i.divide(this._containerInnerSize.x*d);return l.plus(j)},getZoom:function(a){return a?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(a){return Math.max(Math.min(a,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(b){var c=new a.Rect(b.x,b.y,b.width,b.height);if(this.wrapHorizontal);else{var d=this.visibilityRatio*c.width;var e=c.x+c.width;var f=this._contentBoundsNoRotate.x+this._contentBoundsNoRotate.width;var g=this._contentBoundsNoRotate.x-e+d;var h=f-c.x-d;d>this._contentBoundsNoRotate.width?c.x+=(g+h)/2:h<0?c.x+=h:g>0&&(c.x+=g)}if(this.wrapVertical);else{var i=this.visibilityRatio*c.height;var j=c.y+c.height;var k=this._contentBoundsNoRotate.y+this._contentBoundsNoRotate.height;var l=this._contentBoundsNoRotate.y-j+i;var m=k-c.y-i;i>this._contentBoundsNoRotate.height?c.y+=(l+m)/2:m<0?c.y+=m:l>0&&(c.y+=l)}return c},_raiseConstraintsEvent:function(a){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:a})},applyConstraints:function(a){var b=this.getZoom();var c=this._applyZoomConstraints(b);b!==c&&this.zoomTo(c,this.zoomPoint,a);var d=this.getBoundsNoRotate();var e=this._applyBoundaryConstraints(d);this._raiseConstraintsEvent(a);(d.x!==e.x||d.y!==e.y||a)&&this.fitBounds(e.rotate(-this.getRotation()),a);return this},ensureVisible:function(a){return this.applyConstraints(a)},_fitBounds:function(b,c){c=c||{};var d=c.immediately||!1;var e=c.constraints||!1;var f=this.getAspectRatio();var g=b.getCenter();var h=new a.Rect(b.x,b.y,b.width,b.height,b.degrees+this.getRotation()).getBoundingBox();h.getAspectRatio()>=f?h.height=h.width/f:h.width=h.height*f;h.x=g.x-h.width/2;h.y=g.y-h.height/2;var i=1/h.width;if(e){var j=h.getAspectRatio();var k=this._applyZoomConstraints(i);if(i!==k){i=k;h.width=1/i;h.x=g.x-h.width/2;h.height=h.width/j;h.y=g.y-h.height/2}h=this._applyBoundaryConstraints(h);g=h.getCenter();this._raiseConstraintsEvent(d)}if(d){this.panTo(g,!0);return this.zoomTo(i,null,!0)}this.panTo(this.getCenter(!0),!0);this.zoomTo(this.getZoom(!0),null,!0);var l=this.getBounds();var m=this.getZoom();if(0===m||Math.abs(i/m-1)<1e-8){this.zoomTo(i,!0);return this.panTo(g,d)}h=h.rotate(-this.getRotation());var n=h.getTopLeft().times(i).minus(l.getTopLeft().times(m)).divide(i-m);return this.zoomTo(i,n,d)},fitBounds:function(a,b){return this._fitBounds(a,{immediately:b,constraints:!1})},fitBoundsWithConstraints:function(a,b){return this._fitBounds(a,{immediately:b,constraints:!0})},fitVertically:function(b){var c=new a.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(c,b)},fitHorizontally:function(b){var c=new a.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(c,b)},getConstrainedBounds:function(a){var b,c;b=this.getBounds(a);c=this._applyBoundaryConstraints(b);return c},panBy:function(b,c){var d=new a.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(d.plus(b),c)},panTo:function(a,b){if(b){this.centerSpringX.resetTo(a.x);this.centerSpringY.resetTo(a.y)}else{this.centerSpringX.springTo(a.x);this.centerSpringY.springTo(a.y)}this.viewer&&this.viewer.raiseEvent("pan",{center:a,immediately:b});return this},zoomBy:function(a,b,c){return this.zoomTo(this.zoomSpring.target.value*a,b,c)},zoomTo:function(b,c,d){var e=this;this.zoomPoint=c instanceof a.Point&&!isNaN(c.x)&&!isNaN(c.y)?c:null;d?this._adjustCenterSpringsForZoomPoint(function(){e.zoomSpring.resetTo(b)}):this.zoomSpring.springTo(b);this.viewer&&this.viewer.raiseEvent("zoom",{zoom:b,refPoint:c,immediately:d});return this},setRotation:function(b){if(!this.viewer||!this.viewer.drawer.canRotate())return this;this.degrees=a.positiveModulo(b,360);this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor());this.viewer.forceRedraw();this.viewer.raiseEvent("rotate",{degrees:b});return this},getRotation:function(){return this.degrees},resize:function(a,b){var c,d=this.getBoundsNoRotate(),e=d;this.containerSize.x=a.x;this.containerSize.y=a.y;this._updateContainerInnerSize();if(b){c=a.x/this.containerSize.x;e.width=d.width*c;e.height=e.width/this.getAspectRatio()}this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:a,maintain:b});return this.fitBounds(e,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new a.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var a=this;this._adjustCenterSpringsForZoomPoint(function(){a.zoomSpring.update()});this.centerSpringX.update();this.centerSpringY.update();var b=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom;this._oldCenterX=this.centerSpringX.current.value;this._oldCenterY=this.centerSpringY.current.value;this._oldZoom=this.zoomSpring.current.value;return b},_adjustCenterSpringsForZoomPoint:function(a){if(this.zoomPoint){var b=this.pixelFromPoint(this.zoomPoint,!0);a();var c=this.pixelFromPoint(this.zoomPoint,!0);var d=c.minus(b);var e=this.deltaPointsFromPixels(d,!0);this.centerSpringX.shiftBy(e.x);this.centerSpringY.shiftBy(e.y);this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else a()},deltaPixelsFromPointsNoRotate:function(a,b){return a.times(this._containerInnerSize.x*this.getZoom(b))},deltaPixelsFromPoints:function(a,b){return this.deltaPixelsFromPointsNoRotate(a.rotate(this.getRotation()),b)},deltaPointsFromPixelsNoRotate:function(a,b){return a.divide(this._containerInnerSize.x*this.getZoom(b))},deltaPointsFromPixels:function(a,b){return this.deltaPointsFromPixelsNoRotate(a,b).rotate(-this.getRotation())},pixelFromPointNoRotate:function(a,b){return this._pixelFromPointNoRotate(a,this.getBoundsNoRotate(b))},pixelFromPoint:function(a,b){return this._pixelFromPoint(a,this.getBoundsNoRotate(b))},_pixelFromPointNoRotate:function(b,c){return b.minus(c.getTopLeft()).times(this._containerInnerSize.x/c.width).plus(new a.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(a,b){return this._pixelFromPointNoRotate(a.rotate(this.getRotation(),this.getCenter(!0)),b)},pointFromPixelNoRotate:function(b,c){var d=this.getBoundsNoRotate(c);return b.minus(new a.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/d.width).plus(d.getTopLeft())},pointFromPixel:function(a,b){return this.pointFromPixelNoRotate(a,b).rotate(-this.getRotation(),this.getCenter(!0))},_viewportToImageDelta:function(b,c){var d=this._contentBoundsNoRotate.width;return new a.Point(b*this._contentSizeNoRotate.x/d,c*this._contentSizeNoRotate.x/d)},viewportToImageCoordinates:function(b,c){if(b instanceof a.Point)return this.viewportToImageCoordinates(b.x,b.y);if(this.viewer){var d=this.viewer.world.getItemCount();if(d>1)a.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===d){var e=this.viewer.world.getItemAt(0);return e.viewportToImageCoordinates(b,c,!0)}}return this._viewportToImageDelta(b-this._contentBoundsNoRotate.x,c-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(b,c){var d=this._contentBoundsNoRotate.width;return new a.Point(b/this._contentSizeNoRotate.x*d,c/this._contentSizeNoRotate.x*d)},imageToViewportCoordinates:function(b,c){if(b instanceof a.Point)return this.imageToViewportCoordinates(b.x,b.y);if(this.viewer){var d=this.viewer.world.getItemCount();if(d>1)a.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===d){var e=this.viewer.world.getItemAt(0);return e.imageToViewportCoordinates(b,c,!0)}}var f=this._imageToViewportDelta(b,c);f.x+=this._contentBoundsNoRotate.x;f.y+=this._contentBoundsNoRotate.y;return f},imageToViewportRectangle:function(b,c,d,e){var f=b;f instanceof a.Rect||(f=new a.Rect(b,c,d,e));if(this.viewer){var g=this.viewer.world.getItemCount();if(g>1)a.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===g){var h=this.viewer.world.getItemAt(0);return h.imageToViewportRectangle(b,c,d,e,!0)}}var i=this.imageToViewportCoordinates(f.x,f.y);var j=this._imageToViewportDelta(f.width,f.height);return new a.Rect(i.x,i.y,j.x,j.y,f.degrees)},viewportToImageRectangle:function(b,c,d,e){var f=b;f instanceof a.Rect||(f=new a.Rect(b,c,d,e));if(this.viewer){var g=this.viewer.world.getItemCount();if(g>1)a.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===g){var h=this.viewer.world.getItemAt(0);return h.viewportToImageRectangle(b,c,d,e,!0)}}var i=this.viewportToImageCoordinates(f.x,f.y);var j=this._viewportToImageDelta(f.width,f.height);return new a.Rect(i.x,i.y,j.x,j.y,f.degrees)},viewerElementToImageCoordinates:function(a){var b=this.pointFromPixel(a,!0);return this.viewportToImageCoordinates(b)},imageToViewerElementCoordinates:function(a){var b=this.imageToViewportCoordinates(a);return this.pixelFromPoint(b,!0)},windowToImageCoordinates:function(b){a.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var c=b.minus(a.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(c)},imageToWindowCoordinates:function(b){a.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer.");var c=this.imageToViewerElementCoordinates(b);return c.plus(a.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(a){return this.pointFromPixel(a,!0)},viewportToViewerElementCoordinates:function(a){return this.pixelFromPoint(a,!0)},viewerElementToViewportRectangle:function(b){return a.Rect.fromSummits(this.pointFromPixel(b.getTopLeft(),!0),this.pointFromPixel(b.getTopRight(),!0),this.pointFromPixel(b.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(b){return a.Rect.fromSummits(this.pixelFromPoint(b.getTopLeft(),!0),this.pixelFromPoint(b.getTopRight(),!0),this.pixelFromPoint(b.getBottomLeft(),!0))},windowToViewportCoordinates:function(b){a.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var c=b.minus(a.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(c)},viewportToWindowCoordinates:function(b){a.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer.");var c=this.viewportToViewerElementCoordinates(b);return c.plus(a.getElementPosition(this.viewer.element))},viewportToImageZoom:function(b){if(this.viewer){var c=this.viewer.world.getItemCount();if(c>1)a.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===c){var d=this.viewer.world.getItemAt(0);return d.viewportToImageZoom(b)}}var e=this._contentSizeNoRotate.x;var f=this._containerInnerSize.x;var g=this._contentBoundsNoRotate.width;var h=f/e*g;return b*h},imageToViewportZoom:function(b){if(this.viewer){var c=this.viewer.world.getItemCount();if(c>1)a.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===c){var d=this.viewer.world.getItemAt(0);return d.imageToViewportZoom(b)}}var e=this._contentSizeNoRotate.x;var f=this._containerInnerSize.x;var g=this._contentBoundsNoRotate.width;var h=e/f/g;return b*h}}}(OpenSeadragon);!function(a){function b(a,b,d,e,f,g,h,i,j){var k=h.getBoundingBox().getTopLeft();var l=h.getBoundingBox().getBottomRight();a.viewer&&a.viewer.raiseEvent("update-level",{tiledImage:a,havedrawn:b,level:e,opacity:f,visibility:g,drawArea:h,topleft:k,bottomright:l,currenttime:i,best:j});m(a.coverage,e);m(a.loadingCoverage,e);var n=a._getCornerTiles(e,k,l);var o=n.topLeft;var p=n.bottomRight;var q=a.source.getNumTiles(e);var r=a.viewport.pixelFromPoint(a.viewport.getCenter());for(var s=o.x;s<=p.x;s++)for(var t=o.y;t<=p.y;t++){if(!a.wrapHorizontal&&!a.wrapVertical){var u=a.source.getTileBounds(e,s,t);if(null===h.intersection(u))continue}j=c(a,d,b,s,t,e,f,g,r,q,i,j)}return j}function c(a,b,c,e,f,j,m,o,p,q,r,s){var t=d(e,f,j,a,a.source,a.tilesMatrix,r,q,a._worldWidthCurrent,a._worldHeightCurrent),u=c;a.viewer&&a.viewer.raiseEvent("update-tile",{tiledImage:a,tile:t});l(a.coverage,j,e,f,!1);var v=t.loaded||t.loading||k(a.loadingCoverage,j,e,f);l(a.loadingCoverage,j,e,f,v);if(!t.exists)return s;b&&!u&&(k(a.coverage,j,e,f)?l(a.coverage,j,e,f,!0):u=!0);if(!u)return s;h(t,a.source.tileOverlap,a.viewport,p,o,a);if(!t.loaded)if(t.context2D)g(a,t);else{var w=a._tileCache.getImageRecord(t.cacheKey);if(w){var x=w.getImage();g(a,t,x)}}if(t.loaded){var y=i(a,t,e,f,j,m,r);y&&(a._needsDraw=!0)}else t.loading?a._tilesLoading++:v||(s=n(s,t));return s}function d(b,c,d,e,f,g,h,i,j,k){var l,m,n,o,p,q,r,s;g[d]||(g[d]={});g[d][b]||(g[d][b]={});if(!g[d][b][c]){l=(i.x+b%i.x)%i.x;m=(i.y+c%i.y)%i.y;n=f.getTileBounds(d,l,m);o=f.tileExists(d,l,m);p=f.getTileUrl(d,l,m);if(e.loadTilesWithAjax){q=f.getTileAjaxHeaders(d,l,m);a.isPlainObject(e.ajaxHeaders)&&(q=a.extend({},e.ajaxHeaders,q))}else q=null;r=f.getContext2D?f.getContext2D(d,l,m):void 0;n.x+=(b-l)/i.x;n.y+=k/j*((c-m)/i.y);s=new a.Tile(d,b,c,n,o,p,r,e.loadTilesWithAjax,q);l===i.x-1&&(s.isRightMost=!0);m===i.y-1&&(s.isBottomMost=!0);g[d][b][c]=s}s=g[d][b][c];s.lastTouchTime=h;return s}function e(a,b,c){b.loading=!0;a._imageLoader.addJob({src:b.url,loadWithAjax:b.loadWithAjax,ajaxHeaders:b.ajaxHeaders,crossOriginPolicy:a.crossOriginPolicy,ajaxWithCredentials:a.ajaxWithCredentials,callback:function(d,e,g){f(a,b,c,d,e,g)},abort:function(){b.loading=!1}})}function f(b,c,d,e,f,h){if(e)if(da.visibility?b:b.visibility==a.visibility&&b.squaredDistance1&&i>b.smoothTileEdgesMinZoom&&!b.iOSDevice&&b.getRotation(!0)%360===0&&a.supportsCanvas){e=!0;f=d.getScaleForEdgeSmoothing();g=d.getTranslationForEdgeSmoothing(f,b._drawer.getCanvasSize(!1),b._drawer.getCanvasSize(!0))}var j;if(e){f||(j=b.viewport.viewportToViewerElementRectangle(b.getClippedBounds(!0)).getIntegerBoundingBox().times(a.pixelDensityRatio));b._drawer._clear(!0,j)}if(!f){0!==b.viewport.degrees&&b._drawer._offsetForRotation({degrees:b.viewport.degrees,useSketch:e});b.getRotation(!0)%360!==0&&b._drawer._offsetForRotation({degrees:b.getRotation(!0),point:b.viewport.pixelFromPointNoRotate(b._getRotationPoint(!0),!0),useSketch:e})}var k=!1;if(b._clip){b._drawer.saveContext(e);var l=b.imageToViewportRectangle(b._clip,!0);l=l.rotate(-b.getRotation(!0),b._getRotationPoint(!0));var m=b._drawer.viewportToDrawerRectangle(l);f&&(m=m.times(f));g&&(m=m.translate(g));b._drawer.setClip(m,e);k=!0}if(b.placeholderFillStyle&&b._hasOpaqueTile===!1){var n=b._drawer.viewportToDrawerRectangle(b.getBounds(!0));f&&(n=n.times(f));g&&(n=n.translate(g));var o=null;o="function"==typeof b.placeholderFillStyle?b.placeholderFillStyle(b,b._drawer.context):b.placeholderFillStyle;b._drawer.drawRectangle(n,o,e)}for(var q=c.length-1;q>=0;q--){d=c[q];b._drawer.drawTile(d,b._drawingHandler,e,f,g);d.beingDrawn=!0;b.viewer&&b.viewer.raiseEvent("tile-drawn",{tiledImage:b,tile:d})}k&&b._drawer.restoreContext(e);if(!f){b.getRotation(!0)%360!==0&&b._drawer._restoreRotationChanges(e);0!==b.viewport.degrees&&b._drawer._restoreRotationChanges(e)}if(e){if(f){0!==b.viewport.degrees&&b._drawer._offsetForRotation({degrees:b.viewport.degrees,useSketch:!1});b.getRotation(!0)%360!==0&&b._drawer._offsetForRotation({degrees:b.getRotation(!0),point:b.viewport.pixelFromPointNoRotate(b._getRotationPoint(!0),!0),useSketch:!1})}b._drawer.blendSketch({opacity:b.opacity,scale:f,translate:g,compositeOperation:b.compositeOperation,bounds:j});if(f){b.getRotation(!0)%360!==0&&b._drawer._restoreRotationChanges(!1);0!==b.viewport.degrees&&b._drawer._restoreRotationChanges(!1)}}p(b,c)}}function p(b,c){if(b.debugMode)for(var d=c.length-1;d>=0;d--){var e=c[d];try{b._drawer.drawDebugInfo(e,c.length,d,b)}catch(b){a.console.error(b)}}}a.TiledImage=function(b){var c=this;a.console.assert(b.tileCache,"[TiledImage] options.tileCache is required");a.console.assert(b.drawer,"[TiledImage] options.drawer is required");a.console.assert(b.viewer,"[TiledImage] options.viewer is required");a.console.assert(b.imageLoader,"[TiledImage] options.imageLoader is required");a.console.assert(b.source,"[TiledImage] options.source is required");a.console.assert(!b.clip||b.clip instanceof a.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present");a.EventSource.call(this);this._tileCache=b.tileCache;delete b.tileCache;this._drawer=b.drawer;delete b.drawer;this._imageLoader=b.imageLoader;delete b.imageLoader;b.clip instanceof a.Rect&&(this._clip=b.clip.clone());delete b.clip;var d=b.x||0;delete b.x;var e=b.y||0;delete b.y;this.normHeight=b.source.dimensions.y/b.source.dimensions.x;this.contentAspectX=b.source.dimensions.x/b.source.dimensions.y;var f=1;if(b.width){f=b.width;delete b.width;if(b.height){a.console.error("specifying both width and height to a tiledImage is not supported");delete b.height}}else if(b.height){f=b.height/this.normHeight;delete b.height}var g=b.fitBounds;delete b.fitBounds;var h=b.fitBoundsPlacement||OpenSeadragon.Placement.CENTER;delete b.fitBoundsPlacement;var i=b.degrees||0;delete b.degrees;a.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:a.DEFAULT_SETTINGS.springStiffness,animationTime:a.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:a.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:a.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:a.DEFAULT_SETTINGS.wrapVertical,immediateRender:a.DEFAULT_SETTINGS.immediateRender,blendTime:a.DEFAULT_SETTINGS.blendTime,alwaysBlend:a.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:a.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:a.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:a.DEFAULT_SETTINGS.iOSDevice,debugMode:a.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:a.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:a.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:a.DEFAULT_SETTINGS.placeholderFillStyle,opacity:a.DEFAULT_SETTINGS.opacity,preload:a.DEFAULT_SETTINGS.preload,compositeOperation:a.DEFAULT_SETTINGS.compositeOperation},b);this._preload=this.preload;delete this.preload;this._fullyLoaded=!1;this._xSpring=new a.Spring({initial:d,springStiffness:this.springStiffness,animationTime:this.animationTime});this._ySpring=new a.Spring({initial:e,springStiffness:this.springStiffness,animationTime:this.animationTime});this._scaleSpring=new a.Spring({initial:f,springStiffness:this.springStiffness,animationTime:this.animationTime});this._degreesSpring=new a.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime});this._updateForScale();g&&this.fitBounds(g,h,!0);this._drawingHandler=function(b){c.viewer.raiseEvent("tile-drawing",a.extend({tiledImage:c},b))}};a.extend(a.TiledImage.prototype,a.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(a){if(a!==this._fullyLoaded){this._fullyLoaded=a;this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded})}},reset:function(){this._tileCache.clearTilesFor(this);this.lastResetTime=a.now();this._needsDraw=!0},update:function(){var a=this._xSpring.update();var b=this._ySpring.update();var c=this._scaleSpring.update();var d=this._degreesSpring.update();if(a||b||c||d){this._updateForScale();this._needsDraw=!0;return!0}return!1},draw:function(){if(0!==this.opacity||this._preload){this._midDraw=!0;this._updateViewport();this._midDraw=!1}},destroy:function(){this.reset()},getBounds:function(a){return this.getBoundsNoRotate(a).rotate(this.getRotation(a),this._getRotationPoint(a))},getBoundsNoRotate:function(b){return b?new a.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new a.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){a.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead");return this.getBounds()},getClippedBounds:function(b){var c=this.getBoundsNoRotate(b);if(this._clip){var d=b?this._worldWidthCurrent:this._worldWidthTarget;var e=d/this.source.dimensions.x;var f=this._clip.times(e);c=new a.Rect(c.x+f.x,c.y+f.y,f.width,f.height)}return c.rotate(this.getRotation(b),this._getRotationPoint(b))},getContentSize:function(){return new a.Point(this.source.dimensions.x,this.source.dimensions.y)},_viewportToImageDelta:function(b,c,d){var e=d?this._scaleSpring.current.value:this._scaleSpring.target.value;return new a.Point(b*(this.source.dimensions.x/e),c*(this.source.dimensions.y*this.contentAspectX/e))},viewportToImageCoordinates:function(b,c,d){var e;if(b instanceof a.Point){d=c;e=b}else e=new a.Point(b,c);e=e.rotate(-this.getRotation(d),this._getRotationPoint(d));return d?this._viewportToImageDelta(e.x-this._xSpring.current.value,e.y-this._ySpring.current.value):this._viewportToImageDelta(e.x-this._xSpring.target.value,e.y-this._ySpring.target.value)},_imageToViewportDelta:function(b,c,d){var e=d?this._scaleSpring.current.value:this._scaleSpring.target.value;return new a.Point(b/this.source.dimensions.x*e,c/this.source.dimensions.y/this.contentAspectX*e)},imageToViewportCoordinates:function(b,c,d){if(b instanceof a.Point){d=c;c=b.y;b=b.x}var e=this._imageToViewportDelta(b,c);if(d){e.x+=this._xSpring.current.value;e.y+=this._ySpring.current.value}else{e.x+=this._xSpring.target.value;e.y+=this._ySpring.target.value}return e.rotate(this.getRotation(d),this._getRotationPoint(d))},imageToViewportRectangle:function(b,c,d,e,f){var g=b;g instanceof a.Rect?f=c:g=new a.Rect(b,c,d,e);var h=this.imageToViewportCoordinates(g.getTopLeft(),f);var i=this._imageToViewportDelta(g.width,g.height,f);return new a.Rect(h.x,h.y,i.x,i.y,g.degrees+this.getRotation(f))},viewportToImageRectangle:function(b,c,d,e,f){var g=b;b instanceof a.Rect?f=c:g=new a.Rect(b,c,d,e);var h=this.viewportToImageCoordinates(g.getTopLeft(),f);var i=this._viewportToImageDelta(g.width,g.height,f);return new a.Rect(h.x,h.y,i.x,i.y,g.degrees-this.getRotation(f))},viewerElementToImageCoordinates:function(a){var b=this.viewport.pointFromPixel(a,!0);return this.viewportToImageCoordinates(b)},imageToViewerElementCoordinates:function(a){var b=this.imageToViewportCoordinates(a);return this.viewport.pixelFromPoint(b,!0)},windowToImageCoordinates:function(a){var b=a.minus(OpenSeadragon.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(b)},imageToWindowCoordinates:function(a){var b=this.imageToViewerElementCoordinates(a);return b.plus(OpenSeadragon.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(b){var c=this._scaleSpring.current.value;b=b.rotate(-this.getRotation(!0),this._getRotationPoint(!0));return new a.Rect((b.x-this._xSpring.current.value)/c,(b.y-this._ySpring.current.value)/c,b.width/c,b.height/c,b.degrees)},viewportToImageZoom:function(a){var b=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return b*a},imageToViewportZoom:function(a){var b=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return a/b},setPosition:function(a,b){var c=this._xSpring.target.value===a.x&&this._ySpring.target.value===a.y;if(b){if(c&&this._xSpring.current.value===a.x&&this._ySpring.current.value===a.y)return;this._xSpring.resetTo(a.x);this._ySpring.resetTo(a.y);this._needsDraw=!0}else{if(c)return;this._xSpring.springTo(a.x);this._ySpring.springTo(a.y);this._needsDraw=!0}c||this._raiseBoundsChange()},setWidth:function(a,b){this._setScale(a,b)},setHeight:function(a,b){this._setScale(a/this.normHeight,b)},fitBounds:function(b,c,d){c=c||a.Placement.CENTER;var e=a.Placement.properties[c];var f=this.contentAspectX;var g=0;var h=0;var i=1;var j=1;if(this._clip){f=this._clip.getAspectRatio();i=this._clip.width/this.source.dimensions.x;j=this._clip.height/this.source.dimensions.y;if(b.getAspectRatio()>f){g=this._clip.x/this._clip.height*b.height;h=this._clip.y/this._clip.height*b.height}else{g=this._clip.x/this._clip.width*b.width;h=this._clip.y/this._clip.width*b.width}}if(b.getAspectRatio()>f){var k=b.height/j;var l=0;e.isHorizontallyCentered?l=(b.width-b.height*f)/2:e.isRight&&(l=b.width-b.height*f);this.setPosition(new a.Point(b.x-g+l,b.y-h),d);this.setHeight(k,d)}else{var m=b.width/i;var n=0;e.isVerticallyCentered?n=(b.height-b.width/f)/2:e.isBottom&&(n=b.height-b.width/f);this.setPosition(new a.Point(b.x-g,b.y-h+n),d);this.setWidth(m,d)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(b){a.console.assert(!b||b instanceof a.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null");b instanceof a.Rect?this._clip=b.clone():this._clip=null;this._needsDraw=!0;this.raiseEvent("clip-change")},getOpacity:function(){return this.opacity},setOpacity:function(a){if(a!==this.opacity){this.opacity=a;this._needsDraw=!0;this.raiseEvent("opacity-change",{opacity:this.opacity})}},getPreload:function(){return this._preload},setPreload:function(a){this._preload=!!a;this._needsDraw=!0},getRotation:function(a){return a?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(a,b){if(this._degreesSpring.target.value!==a||!this._degreesSpring.isAtTargetValue()){b?this._degreesSpring.resetTo(a):this._degreesSpring.springTo(a);this._needsDraw=!0;this._raiseBoundsChange()}},_getRotationPoint:function(a){return this.getBoundsNoRotate(a).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(a){if(a!==this.compositeOperation){this.compositeOperation=a;this._needsDraw=!0;this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation})}},_setScale:function(a,b){var c=this._scaleSpring.target.value===a;if(b){if(c&&this._scaleSpring.current.value===a)return;this._scaleSpring.resetTo(a);this._updateForScale();this._needsDraw=!0}else{if(c)return;this._scaleSpring.springTo(a);this._updateForScale();this._needsDraw=!0}c||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value;this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value;this._worldWidthCurrent=this._scaleSpring.current.value;this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var a=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2)));var b=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value;var c=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(b/this.minPixelRatio)/Math.log(2))));a=Math.min(a,c);return{lowestLevel:a,highestLevel:c}},_updateViewport:function(){this._needsDraw=!1;this._tilesLoading=0;this.loadingCoverage={};for(;this.lastDrawn.length>0;){var c=this.lastDrawn.pop();c.beingDrawn=!1}var d=this.viewport;var f=this._viewportToTiledImageRectangle(d.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var g=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));f=f.intersection(g);if(null===f)return}var h=this._getLevelsInterval();var i=h.lowestLevel;var k=h.highestLevel;var l=null;var m=!1;var n=a.now();for(var p=k;p>=i;p--){var q=!1;var r=d.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(p),!0).x*this._scaleSpring.current.value;if(p===i||!m&&r>=this.minPixelRatio){q=!0;m=!0}else if(!m)continue;var s=d.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(p),!1).x*this._scaleSpring.current.value;var t=d.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value;var u=this.immediateRender?1:t;var v=Math.min(1,(r-.5)/.5);var w=u/Math.abs(u-s);l=b(this,m,q,p,v,w,f,n,l);if(j(this.coverage,p))break}o(this,this.lastDrawn);if(l&&!l.context2D){e(this,l,n);this._needsDraw=!0;this._setFullyLoaded(!1)}else this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(b,c,d){var e;var f;if(this.wrapHorizontal){e=a.positiveModulo(c.x,1);f=a.positiveModulo(d.x,1)}else{e=Math.max(0,c.x);f=Math.min(1,d.x)}var g;var h;var i=1/this.source.aspectRatio;if(this.wrapVertical){g=a.positiveModulo(c.y,i);h=a.positiveModulo(d.y,i)}else{g=Math.max(0,c.y);h=Math.min(i,d.y)}var j=this.source.getTileAtPoint(b,new a.Point(e,g));var k=this.source.getTileAtPoint(b,new a.Point(f,h));var l=this.source.getNumTiles(b);if(this.wrapHorizontal){j.x+=l.x*Math.floor(c.x);k.x+=l.x*Math.floor(d.x)}if(this.wrapVertical){j.y+=l.y*Math.floor(c.y/i);k.y+=l.y*Math.floor(d.y/i)}return{topLeft:j,bottomRight:k}}})}(OpenSeadragon);!function(a){var b=function(b){a.console.assert(b,"[TileCache.cacheTile] options is required");a.console.assert(b.tile,"[TileCache.cacheTile] options.tile is required");a.console.assert(b.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");this.tile=b.tile;this.tiledImage=b.tiledImage};var c=function(b){a.console.assert(b,"[ImageRecord] options is required");a.console.assert(b.image,"[ImageRecord] options.image is required");this._image=b.image;this._tiles=[]};c.prototype={destroy:function(){this._image=null;this._renderedContext=null;this._tiles=null},getImage:function(){return this._image},getRenderedContext:function(){if(!this._renderedContext){var a=document.createElement("canvas");a.width=this._image.width;a.height=this._image.height;this._renderedContext=a.getContext("2d");this._renderedContext.drawImage(this._image,0,0);this._image=null}return this._renderedContext},setRenderedContext:function(b){a.console.error("ImageRecord.setRenderedContext is deprecated. The rendered context should be created by the ImageRecord itself when calling ImageRecord.getRenderedContext.");this._renderedContext=b},addTile:function(b){a.console.assert(b,"[ImageRecord.addTile] tile is required");this._tiles.push(b)},removeTile:function(b){for(var c=0;cthis._maxImageCacheCount){var h=null;var i=-1;var j=null;var k,l,m,n,o,p;for(var q=this._tilesLoaded.length-1;q>=0;q--){p=this._tilesLoaded[q];k=p.tile;if(!(k.level<=e||k.beingDrawn))if(h){n=k.lastTouchTime;l=h.lastTouchTime;o=k.level;m=h.level;if(nm){h=k;i=q;j=p}}else{h=k;i=q;j=p}}if(h&&i>=0){this._unloadTile(j);f=i}}this._tilesLoaded[f]=new b({tile:d.tile,tiledImage:d.tiledImage})},clearTilesFor:function(b){a.console.assert(b,"[TileCache.clearTilesFor] tiledImage is required");var c;for(var d=0;d=this._items.length)throw new Error("Index bigger than number of layers.");if(c!==d&&d!==-1){this._items.splice(d,1);this._items.splice(c,0,b);this._needsDraw=!0;this.raiseEvent("item-index-change",{item:b,previousIndex:d,newIndex:c})}},removeItem:function(b){a.console.assert(b,"[World.removeItem] item is required");var c=a.indexOf(this._items,b);if(c!==-1){b.removeHandler("bounds-change",this._delegatedFigureSizes);b.removeHandler("clip-change",this._delegatedFigureSizes);b.destroy();this._items.splice(c,1);this._figureSizes();this._needsDraw=!0;this._raiseRemoveItem(b)}},removeAll:function(){this.viewer._cancelPendingImages();var a;var b;for(b=0;bn.height?g:g*(n.width/n.height);p=o*(n.height/n.width);q=new a.Point(k+(g-o)/2,l+(g-p)/2);m.setPosition(q,c);m.setWidth(o,c);"horizontal"===d?k+=i:l+=i}this.setAutoRefigureSizes(!0)},_figureSizes:function(){var b=this._homeBounds?this._homeBounds.clone():null;var c=this._contentSize?this._contentSize.clone():null;var d=this._contentFactor||0;if(this._items.length){var e=this._items[0];var f=e.getBounds();this._contentFactor=e.getContentSize().x/f.width;var g=e.getClippedBounds().getBoundingBox();var h=g.x;var i=g.y;var j=g.x+g.width;var k=g.y+g.height;for(var l=1;lmwy o wybodaeth"}},"shareDialogue":{"options":{"embedTemplate":"\n","instructionsEnabled":false,"shareFrameEnabled":true},"content":{"customSize":"dewisol","embed":"Ymgorffori","embedInstructions":"Er mwyn ymgorffori'r eitem hon ar eich gwefan, copïwch a gosodwch y cod isod.","height":"Hyd","iiif":"Maniffest IIIF","share":"Rhannu","shareInstructions":"Er mwyn rhannu'r eitem hon, copïwch y URL isod.","size":"Maint:","width":"Lled"}},"clickThroughDialogue":{"content":{"viewTerms":"Darllenwch y Telerau a'r Amodau Llawn"}},"loginDialogue":{"content":{"login":"Mewngofnodi","logout":"Allgofnodi","cancel":"Canslo"}},"mobileFooterPanel":{"content":{"rotateRight":"Cylchdroi i'r dde","moreInfo":"Mwy o Wybodaeth","zoomIn":"Closio","zoomOut":"Gwrthglosio"}},"restrictedDialogue":{"content":{"cancel":"Canslo"}}},"localisation":{"label":"Cymraeg","locales":[{"name":"cy-GB","label":"Cymraeg"},{"name":"en-GB","label":"English (GB)"}]},"content":{"authCORSError":"Mae angen diweddaru'ch porwr er mwyn galluogi rhannu adnoddau traws-safle.","authorisationFailedMessage":"Ni lwyddoch i fewngofnodi. Rhowch gynnig arni eto.","canvasIndexOutOfRange":"Canfas yn rhy fawr i'w arddangos (ceisiwch eto)","degradedResourceMessage":"Mewngofnodwch i weld ansawdd uchel.","degradedResourceLogin":"Mewngofnodi","forbiddenResourceMessage":"Nid yw'ch hawliau mynediad presennol yn ddigonol i weld y ddelwedd hon","termsOfUse":"Telerau Defnydd"}}
\ No newline at end of file
diff --git a/dist/uv-2.0.2/lib/uv-seadragon-extension.en-GB.config.json b/dist/uv-2.0.2/lib/uv-seadragon-extension.en-GB.config.json
new file mode 100644
index 000000000..b83293a35
--- /dev/null
+++ b/dist/uv-2.0.2/lib/uv-seadragon-extension.en-GB.config.json
@@ -0,0 +1 @@
+{"options":{"allowStealFocus":false,"bookmarkThumbHeight":150,"bookmarkThumbWidth":90,"dropEnabled":true,"footerPanelEnabled":true,"headerPanelEnabled":true,"leftPanelEnabled":true,"limitLocales":false,"metrics":[{"type":"mobilelandscape","minWidth":0,"maxWidth":640},{"type":"laptop","minWidth":640,"maxWidth":100000}],"multiSelectionMimeType":"application/zip","navigatorEnabled":true,"openTemplate":"http://universalviewer.io?manifest={0}","overrideFullScreen":false,"pagingEnabled":true,"pagingOptionEnabled":true,"pessimisticAccessControl":false,"preserveViewport":false,"rightPanelEnabled":true,"saveUserSettings":false,"clickToZoomEnabled":true,"searchWithinEnabled":true,"termsOfUseEnabled":false,"theme":"uv-en-GB-theme","tokenStorage":"session","useArrowKeysToNavigate":false,"zoomToSearchResultEnabled":true},"modules":{"contentLeftPanel":{"options":{"defaultToTreeEnabled":false,"defaultToTreeIfGreaterThan":0,"elideCount":40,"expandFullEnabled":true,"galleryThumbChunkedResizingThreshold":400,"galleryThumbHeight":320,"galleryThumbLoadPadding":3,"galleryThumbWidth":200,"oneColThumbHeight":320,"oneColThumbWidth":200,"pageModeEnabled":true,"panelAnimationDuration":250,"panelCollapsedWidth":30,"panelExpandedWidth":255,"panelOpen":true,"tabOrder":"","thumbsEnabled":true,"thumbsExtraHeight":8,"thumbsImageFadeInDuration":300,"thumbsLoadRange":15,"treeEnabled":true,"twoColThumbHeight":150,"twoColThumbWidth":90},"content":{"collapse":"Collapse Contents","collapseFull":"Collapse Gallery","date":"date","expand":"Expand Contents","expandFull":"Expand Gallery","index":"Index","searchResult":"{0} search result","searchResults":"{0} search results","sortBy":"Sort By:","thumbnails":"Thumbnails","title":"Contents","volume":"volume"}},"dialogue":{"content":{"close":"Close"}},"downloadDialogue":{"options":{"confinedImageSize":1000,"currentViewDisabledPercentage":90,"maxImageWidth":5000,"optionsExplanatoryTextEnabled":false,"selectionEnabled":false},"content":{"currentViewAsJpg":"Current view {0} x {1}px (jpg)","currentViewAsJpgExplanation":"Opens in a new window","download":"Download","downloadSelection":"Download Selection","downloadSelectionExplanation":"Opens a dialogue to select which pages to download.","editSettings":"Edit Settings","entireDocument":"Entire document ({0})","entireFileAsOriginal":"Entire file ({0})","noneAvailable":"No download options are available.","pagingNote":"Please turn off Two Page View for additional options.","preview":"Preview","title":"Download","wholeImageHighRes":"Whole image {0} x {1}px ({2})","wholeImageHighResExplanation":"Opens in a new window.","wholeImagesHighRes":"Whole images ({0})","wholeImagesHighResExplanation":"Opens in two new windows.","wholeImageLowResAsJpg":"Whole image {0} x {1}px (jpg)","wholeImageLowResAsJpgExplanation":"Opens in a new window."}},"footerPanel":{"options":{"bookmarkEnabled":false,"downloadEnabled":true,"embedEnabled":false,"feedbackEnabled":false,"fullscreenEnabled":true,"minimiseButtons":true,"moreInfoEnabled":true,"openEnabled":false,"printEnabled":false,"shareEnabled":true},"content":{"bookmark":"Add to bookmarks","download":"Download","embed":"Embed","feedback":"Feedback","exitFullScreen":"Exit Full Screen","fullScreen":"Full Screen","open":"Open","share":"Share"}},"genericDialogue":{"content":{"emptyValue":"please enter a value.","invalidNumber":"Please enter a valid number.","noMatches":"No matches were found.","ok":"OK","pageNotFound":"This item does not contain a page with the number you entered. Try switching the numbering mode to 'image'.","refresh":"Refresh"}},"headerPanel":{"options":{"localeToggleEnabled":false,"settingsButtonEnabled":true}},"helpDialogue":{"content":{"text":"placeholder text","title":"Help"}},"moreInfoRightPanel":{"options":{"canvasDisplayOrder":"","canvasExclude":"","copyToClipboardEnabled":false,"manifestDisplayOrder":"","manifestExclude":"","panelAnimationDuration":250,"panelCollapsedWidth":30,"panelExpandedWidth":255,"panelOpen":false,"rtlLanguageCodes":"ar, ara, dv, div, he, heb, ur, urd","showAllLanguages":false,"textLimit":4,"textLimitType":"lines"},"content":{"attribution":"Attribution","collapse":"Collapse Information","collapseFull":"Collapse Gallery","description":"Description","expand":"Expand Information","expandFull":"Expand Gallery","holdingText":"Your module goes here!","less":"less","license":"License","logo":"Logo","more":"more","noData":"No data to display","page":"Page","title":"More Information","manifestHeader":"About the item","canvasHeader":"About the image","copyToClipboard":"Copy to clipboard","copiedToClipboard":"Copied to clipboard"}},"multiSelectDialogue":{"options":{"galleryThumbChunkedResizingEnabled":true,"galleryThumbChunkedResizingThreshold":400,"galleryThumbHeight":320,"galleryThumbLoadPadding":3,"galleryThumbWidth":200,"pageModeEnabled":true},"content":{"select":"Download","selectAll":"Select All","title":"Select Pages for Download"}},"pagingHeaderPanel":{"options":{"autoCompleteBoxEnabled":true,"galleryButtonEnabled":true,"imageSelectionBoxEnabled":false,"pageModeEnabled":false,"pagingToggleEnabled":true},"content":{"close":"Close","emptyValue":"Please enter a value","first":"First","firstImage":"First Image","firstPage":"First Page","folio":"Folio","gallery":"Gallery","go":"Go","help":"Help","image":"Image","last":"Last","lastImage":"Last Image","lastPage":"Last Page","next":"Next","nextImage":"Next Image","nextPage":"Next Page","of":"of {0}","oneUp":"Single page view","page":"Page","previous":"Previous","previousImage":"Previous Image","previousPage":"Previous Page","settings":"Settings","twoUp":"Two page view"}},"seadragonCenterPanel":{"options":{"animationTime":0.15,"autoHideControls":true,"attributionEnabled":true,"blendTime":0,"constrainDuringPan":false,"controlsFadeAfterInactive":1500,"controlsFadeDelay":250,"controlsFadeLength":250,"defaultZoomLevel":0,"immediateRender":false,"maxZoomPixelRatio":1.25,"navigatorPosition":"BOTTOM_RIGHT","pageGap":50,"showHomeControl":false,"trimAttributionCount":150,"visibilityRatio":0.5},"content":{"attribution":"Attribution","goHome":"Go Home","imageUnavailable":"Image Unavailable","next":"Next","previous":"Previous","rotateRight":"Rotate Right","zoomIn":"Zoom In","zoomOut":"Zoom Out"}},"searchFooterPanel":{"options":{"elideDetailsTermsCount":20,"elideResultsTermsCount":10,"pageModeEnabled":true,"positionMarkerEnabled":true},"content":{"clearSearch":"Clear","defaultLabel":"-","displaying":"{0} {1} of {2}","enterKeyword":"Enter Keyword","image":"image","imageCaps":"Image","instanceFound":"1 instance of '{0}' found","instancesFound":"{0} instances of '{1}' found","nextResult":"Next Result","page":"page","pageCaps":"Page","previousResult":"Previous Result","print":"Print","resultFoundFor":"result found for","resultsFoundFor":"results found for","searchWithin":"Search within this item:"}},"settingsDialogue":{"content":{"locale":"Locale","navigatorEnabled":"Navigator Enabled","clickToZoomEnabled":"Mouse Click To Zoom","pagingEnabled":"Two Page View","preserveViewport":"Preserve Zoom","title":"Settings","website":"more info"}},"shareDialogue":{"options":{"embedTemplate":"\n","instructionsEnabled":false,"shareFrameEnabled":true},"content":{"customSize":"custom","embed":"Embed","embedInstructions":"To embed this item in your own website, copy and paste the code below.","height":"Height","iiif":"IIIF Manifest","share":"Share","shareInstructions":"To share this item, copy the URL below.","size":"Size:","width":"Width"}},"clickThroughDialogue":{"content":{"viewTerms":"Read Full Terms and Conditions"}},"loginDialogue":{"content":{"login":"Login","logout":"Logout","cancel":"Cancel"}},"mobileFooterPanel":{"content":{"rotateRight":"Rotate Right","moreInfo":"More Information","zoomIn":"Zoom In","zoomOut":"Zoom Out"}},"restrictedDialogue":{"content":{"cancel":"Cancel"}}},"localisation":{"label":"English (GB)","locales":[{"name":"cy-GB","label":"Cymraeg"},{"name":"en-GB","label":"English (GB)"}]},"content":{"authCORSError":"Your browser does not support CORS, please upgrade to view this content.","authorisationFailedMessage":"Your log-in attempt did not appear to be successful. Please try again.","canvasIndexOutOfRange":"Canvas index out of range.","degradedResourceMessage":"Please log in to view at full quality.","degradedResourceLogin":"log in","forbiddenResourceMessage":"Your current access rights are insufficient to view this image","termsOfUse":"Terms of Use"}}
\ No newline at end of file
diff --git a/dist/uv-1.8.39/lib/uv-virtex-extension-dependencies.js b/dist/uv-2.0.2/lib/uv-virtex-extension-dependencies.js
similarity index 100%
rename from dist/uv-1.8.39/lib/uv-virtex-extension-dependencies.js
rename to dist/uv-2.0.2/lib/uv-virtex-extension-dependencies.js
diff --git a/dist/uv-1.8.39/lib/uv-virtex-extension.cy-GB.config.json b/dist/uv-2.0.2/lib/uv-virtex-extension.cy-GB.config.json
similarity index 100%
rename from dist/uv-1.8.39/lib/uv-virtex-extension.cy-GB.config.json
rename to dist/uv-2.0.2/lib/uv-virtex-extension.cy-GB.config.json
diff --git a/dist/uv-1.8.39/lib/uv-virtex-extension.en-GB.config.json b/dist/uv-2.0.2/lib/uv-virtex-extension.en-GB.config.json
similarity index 100%
rename from dist/uv-1.8.39/lib/uv-virtex-extension.en-GB.config.json
rename to dist/uv-2.0.2/lib/uv-virtex-extension.en-GB.config.json
diff --git a/dist/uv-1.8.39/lib/viewer.js b/dist/uv-2.0.2/lib/viewer.js
similarity index 100%
rename from dist/uv-1.8.39/lib/viewer.js
rename to dist/uv-2.0.2/lib/viewer.js
diff --git a/dist/uv-1.8.39/lib/viewer.min.js b/dist/uv-2.0.2/lib/viewer.min.js
similarity index 100%
rename from dist/uv-1.8.39/lib/viewer.min.js
rename to dist/uv-2.0.2/lib/viewer.min.js
diff --git a/dist/uv-1.8.39/lib/virtex.js b/dist/uv-2.0.2/lib/virtex.js
similarity index 100%
rename from dist/uv-1.8.39/lib/virtex.js
rename to dist/uv-2.0.2/lib/virtex.js
diff --git a/dist/uv-2.0.2/package.json b/dist/uv-2.0.2/package.json
new file mode 100644
index 000000000..98977b50e
--- /dev/null
+++ b/dist/uv-2.0.2/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "universalviewer",
+ "version": "2.0.2",
+ "description": "The Universal Viewer is an open source project to enable cultural heritage institutions to present their digital artifacts in an IIIF-compliant and highly customisable user interface.",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/universalviewer/universalviewer.git"
+ },
+ "keywords": [
+ "IIIF",
+ "viewer"
+ ],
+ "author": "Edward Silverton (http://edsilv.com)",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/universalviewer/universalviewer/issues"
+ },
+ "scripts": {
+ "postinstall": "opencollective postinstall"
+ },
+ "homepage": "https://github.com/universalviewer/universalviewer",
+ "devDependencies": {
+ "async": "^0.9.0"
+ },
+ "dependencies": {
+ "opencollective": "^1.0.3",
+ "base-component": "iiif-commons/base-component#v1.0.8",
+ "chalk": "^0.5.1",
+ "cucumber": "^0.4.5",
+ "eventemitter2": "^1.0.3",
+ "exjs": "BSick7/exjs",
+ "extensions": "edsilv/extensions#v0.1.11",
+ "glob": "^4.3.5",
+ "glob-array": "^0.1.2",
+ "grunt": "^0.4.5",
+ "grunt-contrib-clean": "~0.4.0",
+ "grunt-contrib-compress": "~0.5.2",
+ "grunt-contrib-concat": "^1.0.1",
+ "grunt-contrib-connect": "~0.8.0",
+ "grunt-contrib-copy": "~0.4.1",
+ "grunt-contrib-uglify": "^1.0.1",
+ "grunt-exec": "~0.4.2",
+ "grunt-protractor-runner": "^1.1.4",
+ "grunt-sync": "^0.2.3",
+ "grunt-text-replace": "~0.3.7",
+ "grunt-typescript": "^0.8.0",
+ "hooker": "^0.2.3",
+ "http-status-codes": "edsilv/http-status-codes#v0.0.5",
+ "iiif-gallery-component": "iiif-commons/iiif-gallery-component#v1.0.6",
+ "iiif-metadata-component": "iiif-commons/iiif-metadata-component#v1.0.10",
+ "iiif-tree-component": "iiif-commons/iiif-tree-component#v1.0.7",
+ "jquery-plugins": "edsilv/jquery-plugins#v0.0.26",
+ "jquery-tiny-pubsub": "edsilv/jquery-tiny-pubsub#v0.7.2",
+ "json-schema-generator": "edsilv/json-schema-generator",
+ "key-codes": "edsilv/key-codes#v0.0.6",
+ "less": "^2.4.0",
+ "lodash": "^3.1.0",
+ "manifold": "iiif-commons/manifold#v1.1.12",
+ "ncp": "^2.0.0",
+ "openseadragon": "^2.2.1",
+ "protractor": "1.3.1",
+ "requirejs": "2.2.0",
+ "three.js": "^0.73.0",
+ "units": "edsilv/Units",
+ "utils": "edsilv/utils#v0.0.38",
+ "virtex3d": "^0.2.6"
+ },
+ "collective": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/universalviewer",
+ "logo": "https://opencollective.com/opencollective/logo.txt"
+ }
+}
\ No newline at end of file
diff --git a/dist/uv-1.8.39/schema/uv-mediaelement-extension.cy-GB.schema.json b/dist/uv-2.0.2/schema/uv-mediaelement-extension.cy-GB.schema.json
similarity index 100%
rename from dist/uv-1.8.39/schema/uv-mediaelement-extension.cy-GB.schema.json
rename to dist/uv-2.0.2/schema/uv-mediaelement-extension.cy-GB.schema.json
diff --git a/dist/uv-1.8.39/schema/uv-mediaelement-extension.en-GB.schema.json b/dist/uv-2.0.2/schema/uv-mediaelement-extension.en-GB.schema.json
similarity index 100%
rename from dist/uv-1.8.39/schema/uv-mediaelement-extension.en-GB.schema.json
rename to dist/uv-2.0.2/schema/uv-mediaelement-extension.en-GB.schema.json
diff --git a/dist/uv-1.8.39/schema/uv-pdf-extension.cy-GB.schema.json b/dist/uv-2.0.2/schema/uv-pdf-extension.cy-GB.schema.json
similarity index 100%
rename from dist/uv-1.8.39/schema/uv-pdf-extension.cy-GB.schema.json
rename to dist/uv-2.0.2/schema/uv-pdf-extension.cy-GB.schema.json
diff --git a/dist/uv-1.8.39/schema/uv-pdf-extension.en-GB.schema.json b/dist/uv-2.0.2/schema/uv-pdf-extension.en-GB.schema.json
similarity index 100%
rename from dist/uv-1.8.39/schema/uv-pdf-extension.en-GB.schema.json
rename to dist/uv-2.0.2/schema/uv-pdf-extension.en-GB.schema.json
diff --git a/dist/uv-2.0.2/schema/uv-seadragon-extension.cy-GB.schema.json b/dist/uv-2.0.2/schema/uv-seadragon-extension.cy-GB.schema.json
new file mode 100644
index 000000000..da598b928
--- /dev/null
+++ b/dist/uv-2.0.2/schema/uv-seadragon-extension.cy-GB.schema.json
@@ -0,0 +1 @@
+{"$schema":"http://json-schema.org/draft-04/schema#","description":"","type":"object","properties":{"options":{"type":"object","properties":{"allowStealFocus":{"type":"boolean"},"bookmarkThumbHeight":{"type":"number"},"bookmarkThumbWidth":{"type":"number"},"dropEnabled":{"type":"boolean"},"footerPanelEnabled":{"type":"boolean"},"headerPanelEnabled":{"type":"boolean"},"leftPanelEnabled":{"type":"boolean"},"limitLocales":{"type":"boolean"},"metrics":{"type":"array","uniqueItems":true,"minItems":1,"items":{"required":["type","minWidth","maxWidth"],"properties":{"type":{"type":"string","minLength":1},"minWidth":{"type":"number"},"maxWidth":{"type":"number"}}}},"multiSelectionMimeType":{"type":"string","minLength":1},"navigatorEnabled":{"type":"boolean"},"openTemplate":{"type":"string","minLength":1},"overrideFullScreen":{"type":"boolean"},"pagingEnabled":{"type":"boolean"},"pagingOptionEnabled":{"type":"boolean"},"pessimisticAccessControl":{"type":"boolean"},"preserveViewport":{"type":"boolean"},"rightPanelEnabled":{"type":"boolean"},"saveUserSettings":{"type":"boolean"},"clickToZoomEnabled":{"type":"boolean"},"searchWithinEnabled":{"type":"boolean"},"termsOfUseEnabled":{"type":"boolean"},"theme":{"type":"string","minLength":1},"tokenStorage":{"type":"string","minLength":1},"useArrowKeysToNavigate":{"type":"boolean"},"zoomToSearchResultEnabled":{"type":"boolean"}},"required":["allowStealFocus","bookmarkThumbHeight","bookmarkThumbWidth","dropEnabled","footerPanelEnabled","headerPanelEnabled","leftPanelEnabled","limitLocales","metrics","multiSelectionMimeType","navigatorEnabled","openTemplate","overrideFullScreen","pagingEnabled","pagingOptionEnabled","pessimisticAccessControl","preserveViewport","rightPanelEnabled","saveUserSettings","clickToZoomEnabled","searchWithinEnabled","termsOfUseEnabled","theme","tokenStorage","useArrowKeysToNavigate","zoomToSearchResultEnabled"]},"modules":{"type":"object","properties":{"contentLeftPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"defaultToTreeEnabled":{"type":"boolean"},"defaultToTreeIfGreaterThan":{"type":"number"},"elideCount":{"type":"number"},"expandFullEnabled":{"type":"boolean"},"galleryThumbChunkedResizingThreshold":{"type":"number"},"galleryThumbHeight":{"type":"number"},"galleryThumbLoadPadding":{"type":"number"},"galleryThumbWidth":{"type":"number"},"oneColThumbHeight":{"type":"number"},"oneColThumbWidth":{"type":"number"},"pageModeEnabled":{"type":"boolean"},"panelAnimationDuration":{"type":"number"},"panelCollapsedWidth":{"type":"number"},"panelExpandedWidth":{"type":"number"},"panelOpen":{"type":"boolean"},"tabOrder":{"type":"string"},"thumbsEnabled":{"type":"boolean"},"thumbsExtraHeight":{"type":"number"},"thumbsImageFadeInDuration":{"type":"number"},"thumbsLoadRange":{"type":"number"},"treeEnabled":{"type":"boolean"},"twoColThumbHeight":{"type":"number"},"twoColThumbWidth":{"type":"number"}},"required":["defaultToTreeEnabled","defaultToTreeIfGreaterThan","elideCount","expandFullEnabled","galleryThumbChunkedResizingThreshold","galleryThumbHeight","galleryThumbLoadPadding","galleryThumbWidth","oneColThumbHeight","oneColThumbWidth","pageModeEnabled","panelAnimationDuration","panelCollapsedWidth","panelExpandedWidth","panelOpen","tabOrder","thumbsEnabled","thumbsExtraHeight","thumbsImageFadeInDuration","thumbsLoadRange","treeEnabled","twoColThumbHeight","twoColThumbWidth"]},"content":{"type":"object","properties":{"collapse":{"type":"string","minLength":1},"collapseFull":{"type":"string","minLength":1},"date":{"type":"string","minLength":1},"expand":{"type":"string","minLength":1},"expandFull":{"type":"string","minLength":1},"index":{"type":"string","minLength":1},"searchResult":{"type":"string","minLength":1},"searchResults":{"type":"string","minLength":1},"sortBy":{"type":"string","minLength":1},"thumbnails":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"volume":{"type":"string","minLength":1}},"required":["collapse","collapseFull","date","expand","expandFull","index","searchResult","searchResults","sortBy","thumbnails","title","volume"]}},"required":["options","content"]},"dialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"close":{"type":"string","minLength":1}},"required":["close"]}},"required":["content"]},"downloadDialogue":{"type":"object","properties":{"options":{"type":"object","properties":{"confinedImageSize":{"type":"number"},"currentViewDisabledPercentage":{"type":"number"},"maxImageWidth":{"type":"number"},"optionsExplanatoryTextEnabled":{"type":"boolean"},"selectionEnabled":{"type":"boolean"}},"required":["confinedImageSize","currentViewDisabledPercentage","maxImageWidth","optionsExplanatoryTextEnabled","selectionEnabled"]},"content":{"type":"object","properties":{"currentViewAsJpg":{"type":"string","minLength":1},"currentViewAsJpgExplanation":{"type":"string","minLength":1},"download":{"type":"string","minLength":1},"downloadSelection":{"type":"string","minLength":1},"downloadSelectionExplanation":{"type":"string","minLength":1},"editSettings":{"type":"string","minLength":1},"entireDocument":{"type":"string","minLength":1},"entireFileAsOriginal":{"type":"string","minLength":1},"noneAvailable":{"type":"string","minLength":1},"pagingNote":{"type":"string","minLength":1},"preview":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"wholeImageHighRes":{"type":"string","minLength":1},"wholeImageHighResExplanation":{"type":"string","minLength":1},"wholeImagesHighRes":{"type":"string","minLength":1},"wholeImagesHighResExplanation":{"type":"string","minLength":1},"wholeImageLowResAsJpg":{"type":"string","minLength":1},"wholeImageLowResAsJpgExplanation":{"type":"string","minLength":1}},"required":["currentViewAsJpg","currentViewAsJpgExplanation","download","downloadSelection","downloadSelectionExplanation","editSettings","entireDocument","entireFileAsOriginal","noneAvailable","pagingNote","preview","title","wholeImageHighRes","wholeImageHighResExplanation","wholeImagesHighRes","wholeImagesHighResExplanation","wholeImageLowResAsJpg","wholeImageLowResAsJpgExplanation"]}},"required":["options","content"]},"footerPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"bookmarkEnabled":{"type":"boolean"},"downloadEnabled":{"type":"boolean"},"embedEnabled":{"type":"boolean"},"feedbackEnabled":{"type":"boolean"},"fullscreenEnabled":{"type":"boolean"},"minimiseButtons":{"type":"boolean"},"moreInfoEnabled":{"type":"boolean"},"openEnabled":{"type":"boolean"},"printEnabled":{"type":"boolean"},"shareEnabled":{"type":"boolean"}},"required":["bookmarkEnabled","downloadEnabled","embedEnabled","feedbackEnabled","fullscreenEnabled","minimiseButtons","moreInfoEnabled","openEnabled","printEnabled","shareEnabled"]},"content":{"type":"object","properties":{"bookmark":{"type":"string","minLength":1},"download":{"type":"string","minLength":1},"embed":{"type":"string","minLength":1},"feedback":{"type":"string","minLength":1},"exitFullScreen":{"type":"string","minLength":1},"fullScreen":{"type":"string","minLength":1},"open":{"type":"string","minLength":1},"share":{"type":"string","minLength":1}},"required":["bookmark","download","embed","feedback","exitFullScreen","fullScreen","open","share"]}},"required":["options","content"]},"genericDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"emptyValue":{"type":"string","minLength":1},"invalidNumber":{"type":"string","minLength":1},"noMatches":{"type":"string","minLength":1},"ok":{"type":"string","minLength":1},"pageNotFound":{"type":"string","minLength":1},"refresh":{"type":"string","minLength":1}},"required":["emptyValue","invalidNumber","noMatches","ok","pageNotFound","refresh"]}},"required":["content"]},"headerPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"localeToggleEnabled":{"type":"boolean"},"settingsButtonEnabled":{"type":"boolean"}},"required":["localeToggleEnabled","settingsButtonEnabled"]}},"required":["options"]},"helpDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"text":{"type":"string","minLength":1},"title":{"type":"string","minLength":1}},"required":["text","title"]}},"required":["content"]},"moreInfoRightPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"canvasDisplayOrder":{"type":"string"},"canvasExclude":{"type":"string"},"copyToClipboardEnabled":{"type":"boolean"},"manifestDisplayOrder":{"type":"string"},"manifestExclude":{"type":"string"},"panelAnimationDuration":{"type":"number"},"panelCollapsedWidth":{"type":"number"},"panelExpandedWidth":{"type":"number"},"panelOpen":{"type":"boolean"},"rtlLanguageCodes":{"type":"string","minLength":1},"showAllLanguages":{"type":"boolean"},"textLimit":{"type":"number"},"textLimitType":{"type":"string","minLength":1}},"required":["canvasDisplayOrder","canvasExclude","copyToClipboardEnabled","manifestDisplayOrder","manifestExclude","panelAnimationDuration","panelCollapsedWidth","panelExpandedWidth","panelOpen","rtlLanguageCodes","showAllLanguages","textLimit","textLimitType"]},"content":{"type":"object","properties":{"attribution":{"type":"string","minLength":1},"collapse":{"type":"string","minLength":1},"collapseFull":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"expand":{"type":"string","minLength":1},"expandFull":{"type":"string","minLength":1},"holdingText":{"type":"string","minLength":1},"less":{"type":"string","minLength":1},"license":{"type":"string","minLength":1},"logo":{"type":"string","minLength":1},"more":{"type":"string","minLength":1},"noData":{"type":"string","minLength":1},"page":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"manifestHeader":{"type":"string","minLength":1},"canvasHeader":{"type":"string","minLength":1},"copyToClipboard":{"type":"string","minLength":1},"copiedToClipboard":{"type":"string","minLength":1}},"required":["attribution","collapse","collapseFull","description","expand","expandFull","holdingText","less","license","logo","more","noData","page","title","manifestHeader","canvasHeader","copyToClipboard","copiedToClipboard"]}},"required":["options","content"]},"multiSelectDialogue":{"type":"object","properties":{"options":{"type":"object","properties":{"galleryThumbChunkedResizingEnabled":{"type":"boolean"},"galleryThumbChunkedResizingThreshold":{"type":"number"},"galleryThumbHeight":{"type":"number"},"galleryThumbLoadPadding":{"type":"number"},"galleryThumbWidth":{"type":"number"},"pageModeEnabled":{"type":"boolean"}},"required":["galleryThumbChunkedResizingEnabled","galleryThumbChunkedResizingThreshold","galleryThumbHeight","galleryThumbLoadPadding","galleryThumbWidth","pageModeEnabled"]},"content":{"type":"object","properties":{"select":{"type":"string","minLength":1},"selectAll":{"type":"string","minLength":1},"title":{"type":"string","minLength":1}},"required":["select","selectAll","title"]}},"required":["options","content"]},"pagingHeaderPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"autoCompleteBoxEnabled":{"type":"boolean"},"galleryButtonEnabled":{"type":"boolean"},"imageSelectionBoxEnabled":{"type":"boolean"},"pageModeEnabled":{"type":"boolean"},"pagingToggleEnabled":{"type":"boolean"}},"required":["autoCompleteBoxEnabled","galleryButtonEnabled","imageSelectionBoxEnabled","pageModeEnabled","pagingToggleEnabled"]},"content":{"type":"object","properties":{"close":{"type":"string","minLength":1},"emptyValue":{"type":"string","minLength":1},"first":{"type":"string","minLength":1},"firstImage":{"type":"string","minLength":1},"firstPage":{"type":"string","minLength":1},"folio":{"type":"string","minLength":1},"gallery":{"type":"string","minLength":1},"go":{"type":"string","minLength":1},"help":{"type":"string","minLength":1},"image":{"type":"string","minLength":1},"last":{"type":"string","minLength":1},"lastImage":{"type":"string","minLength":1},"lastPage":{"type":"string","minLength":1},"next":{"type":"string","minLength":1},"nextImage":{"type":"string","minLength":1},"nextPage":{"type":"string","minLength":1},"of":{"type":"string","minLength":1},"oneUp":{"type":"string","minLength":1},"page":{"type":"string","minLength":1},"previous":{"type":"string","minLength":1},"previousImage":{"type":"string","minLength":1},"previousPage":{"type":"string","minLength":1},"settings":{"type":"string","minLength":1},"twoUp":{"type":"string","minLength":1}},"required":["close","emptyValue","first","firstImage","firstPage","folio","gallery","go","help","image","last","lastImage","lastPage","next","nextImage","nextPage","of","oneUp","page","previous","previousImage","previousPage","settings","twoUp"]}},"required":["options","content"]},"seadragonCenterPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"animationTime":{"type":"number"},"autoHideControls":{"type":"boolean"},"attributionEnabled":{"type":"boolean"},"blendTime":{"type":"number"},"constrainDuringPan":{"type":"boolean"},"controlsFadeAfterInactive":{"type":"number"},"controlsFadeDelay":{"type":"number"},"controlsFadeLength":{"type":"number"},"defaultZoomLevel":{"type":"number"},"immediateRender":{"type":"boolean"},"maxZoomPixelRatio":{"type":"number"},"navigatorPosition":{"type":"string","minLength":1},"pageGap":{"type":"number"},"showHomeControl":{"type":"boolean"},"trimAttributionCount":{"type":"number"},"visibilityRatio":{"type":"number"}},"required":["animationTime","autoHideControls","attributionEnabled","blendTime","constrainDuringPan","controlsFadeAfterInactive","controlsFadeDelay","controlsFadeLength","defaultZoomLevel","immediateRender","maxZoomPixelRatio","navigatorPosition","pageGap","showHomeControl","trimAttributionCount","visibilityRatio"]},"content":{"type":"object","properties":{"attribution":{"type":"string","minLength":1},"goHome":{"type":"string","minLength":1},"imageUnavailable":{"type":"string","minLength":1},"next":{"type":"string","minLength":1},"previous":{"type":"string","minLength":1},"rotateRight":{"type":"string","minLength":1},"zoomIn":{"type":"string","minLength":1},"zoomOut":{"type":"string","minLength":1}},"required":["attribution","goHome","imageUnavailable","next","previous","rotateRight","zoomIn","zoomOut"]}},"required":["options","content"]},"searchFooterPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"elideDetailsTermsCount":{"type":"number"},"elideResultsTermsCount":{"type":"number"},"pageModeEnabled":{"type":"boolean"},"positionMarkerEnabled":{"type":"boolean"}},"required":["elideDetailsTermsCount","elideResultsTermsCount","pageModeEnabled","positionMarkerEnabled"]},"content":{"type":"object","properties":{"clearSearch":{"type":"string","minLength":1},"defaultLabel":{"type":"string","minLength":1},"displaying":{"type":"string","minLength":1},"enterKeyword":{"type":"string","minLength":1},"image":{"type":"string","minLength":1},"imageCaps":{"type":"string","minLength":1},"instanceFound":{"type":"string","minLength":1},"instancesFound":{"type":"string","minLength":1},"nextResult":{"type":"string","minLength":1},"page":{"type":"string","minLength":1},"pageCaps":{"type":"string","minLength":1},"previousResult":{"type":"string","minLength":1},"print":{"type":"string","minLength":1},"resultFoundFor":{"type":"string","minLength":1},"resultsFoundFor":{"type":"string","minLength":1},"searchWithin":{"type":"string","minLength":1}},"required":["clearSearch","defaultLabel","displaying","enterKeyword","image","imageCaps","instanceFound","instancesFound","nextResult","page","pageCaps","previousResult","print","resultFoundFor","resultsFoundFor","searchWithin"]}},"required":["options","content"]},"settingsDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"locale":{"type":"string","minLength":1},"navigatorEnabled":{"type":"string","minLength":1},"clickToZoomEnabled":{"type":"string","minLength":1},"pagingEnabled":{"type":"string","minLength":1},"preserveViewport":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"website":{"type":"string","minLength":1}},"required":["locale","navigatorEnabled","clickToZoomEnabled","pagingEnabled","preserveViewport","title","website"]}},"required":["content"]},"shareDialogue":{"type":"object","properties":{"options":{"type":"object","properties":{"embedTemplate":{"type":"string","minLength":1},"instructionsEnabled":{"type":"boolean"},"shareFrameEnabled":{"type":"boolean"}},"required":["embedTemplate","instructionsEnabled","shareFrameEnabled"]},"content":{"type":"object","properties":{"customSize":{"type":"string","minLength":1},"embed":{"type":"string","minLength":1},"embedInstructions":{"type":"string","minLength":1},"height":{"type":"string","minLength":1},"iiif":{"type":"string","minLength":1},"share":{"type":"string","minLength":1},"shareInstructions":{"type":"string","minLength":1},"size":{"type":"string","minLength":1},"width":{"type":"string","minLength":1}},"required":["customSize","embed","embedInstructions","height","iiif","share","shareInstructions","size","width"]}},"required":["options","content"]},"clickThroughDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"viewTerms":{"type":"string","minLength":1}},"required":["viewTerms"]}},"required":["content"]},"loginDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"login":{"type":"string","minLength":1},"logout":{"type":"string","minLength":1},"cancel":{"type":"string","minLength":1}},"required":["login","logout","cancel"]}},"required":["content"]},"mobileFooterPanel":{"type":"object","properties":{"content":{"type":"object","properties":{"rotateRight":{"type":"string","minLength":1},"moreInfo":{"type":"string","minLength":1},"zoomIn":{"type":"string","minLength":1},"zoomOut":{"type":"string","minLength":1}},"required":["rotateRight","moreInfo","zoomIn","zoomOut"]}},"required":["content"]},"restrictedDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"cancel":{"type":"string","minLength":1}},"required":["cancel"]}},"required":["content"]}},"required":["contentLeftPanel","dialogue","downloadDialogue","footerPanel","genericDialogue","headerPanel","helpDialogue","moreInfoRightPanel","multiSelectDialogue","pagingHeaderPanel","seadragonCenterPanel","searchFooterPanel","settingsDialogue","shareDialogue","clickThroughDialogue","loginDialogue","mobileFooterPanel","restrictedDialogue"]},"localisation":{"type":"object","properties":{"label":{"type":"string","minLength":1},"locales":{"type":"array","uniqueItems":true,"minItems":1,"items":{"required":["name","label"],"properties":{"name":{"type":"string","minLength":1},"label":{"type":"string","minLength":1}}}}},"required":["label","locales"]},"content":{"type":"object","properties":{"authCORSError":{"type":"string","minLength":1},"authorisationFailedMessage":{"type":"string","minLength":1},"canvasIndexOutOfRange":{"type":"string","minLength":1},"degradedResourceMessage":{"type":"string","minLength":1},"degradedResourceLogin":{"type":"string","minLength":1},"forbiddenResourceMessage":{"type":"string","minLength":1},"termsOfUse":{"type":"string","minLength":1}},"required":["authCORSError","authorisationFailedMessage","canvasIndexOutOfRange","degradedResourceMessage","degradedResourceLogin","forbiddenResourceMessage","termsOfUse"]}},"required":["options","modules","localisation","content"]}
\ No newline at end of file
diff --git a/dist/uv-2.0.2/schema/uv-seadragon-extension.en-GB.schema.json b/dist/uv-2.0.2/schema/uv-seadragon-extension.en-GB.schema.json
new file mode 100644
index 000000000..da598b928
--- /dev/null
+++ b/dist/uv-2.0.2/schema/uv-seadragon-extension.en-GB.schema.json
@@ -0,0 +1 @@
+{"$schema":"http://json-schema.org/draft-04/schema#","description":"","type":"object","properties":{"options":{"type":"object","properties":{"allowStealFocus":{"type":"boolean"},"bookmarkThumbHeight":{"type":"number"},"bookmarkThumbWidth":{"type":"number"},"dropEnabled":{"type":"boolean"},"footerPanelEnabled":{"type":"boolean"},"headerPanelEnabled":{"type":"boolean"},"leftPanelEnabled":{"type":"boolean"},"limitLocales":{"type":"boolean"},"metrics":{"type":"array","uniqueItems":true,"minItems":1,"items":{"required":["type","minWidth","maxWidth"],"properties":{"type":{"type":"string","minLength":1},"minWidth":{"type":"number"},"maxWidth":{"type":"number"}}}},"multiSelectionMimeType":{"type":"string","minLength":1},"navigatorEnabled":{"type":"boolean"},"openTemplate":{"type":"string","minLength":1},"overrideFullScreen":{"type":"boolean"},"pagingEnabled":{"type":"boolean"},"pagingOptionEnabled":{"type":"boolean"},"pessimisticAccessControl":{"type":"boolean"},"preserveViewport":{"type":"boolean"},"rightPanelEnabled":{"type":"boolean"},"saveUserSettings":{"type":"boolean"},"clickToZoomEnabled":{"type":"boolean"},"searchWithinEnabled":{"type":"boolean"},"termsOfUseEnabled":{"type":"boolean"},"theme":{"type":"string","minLength":1},"tokenStorage":{"type":"string","minLength":1},"useArrowKeysToNavigate":{"type":"boolean"},"zoomToSearchResultEnabled":{"type":"boolean"}},"required":["allowStealFocus","bookmarkThumbHeight","bookmarkThumbWidth","dropEnabled","footerPanelEnabled","headerPanelEnabled","leftPanelEnabled","limitLocales","metrics","multiSelectionMimeType","navigatorEnabled","openTemplate","overrideFullScreen","pagingEnabled","pagingOptionEnabled","pessimisticAccessControl","preserveViewport","rightPanelEnabled","saveUserSettings","clickToZoomEnabled","searchWithinEnabled","termsOfUseEnabled","theme","tokenStorage","useArrowKeysToNavigate","zoomToSearchResultEnabled"]},"modules":{"type":"object","properties":{"contentLeftPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"defaultToTreeEnabled":{"type":"boolean"},"defaultToTreeIfGreaterThan":{"type":"number"},"elideCount":{"type":"number"},"expandFullEnabled":{"type":"boolean"},"galleryThumbChunkedResizingThreshold":{"type":"number"},"galleryThumbHeight":{"type":"number"},"galleryThumbLoadPadding":{"type":"number"},"galleryThumbWidth":{"type":"number"},"oneColThumbHeight":{"type":"number"},"oneColThumbWidth":{"type":"number"},"pageModeEnabled":{"type":"boolean"},"panelAnimationDuration":{"type":"number"},"panelCollapsedWidth":{"type":"number"},"panelExpandedWidth":{"type":"number"},"panelOpen":{"type":"boolean"},"tabOrder":{"type":"string"},"thumbsEnabled":{"type":"boolean"},"thumbsExtraHeight":{"type":"number"},"thumbsImageFadeInDuration":{"type":"number"},"thumbsLoadRange":{"type":"number"},"treeEnabled":{"type":"boolean"},"twoColThumbHeight":{"type":"number"},"twoColThumbWidth":{"type":"number"}},"required":["defaultToTreeEnabled","defaultToTreeIfGreaterThan","elideCount","expandFullEnabled","galleryThumbChunkedResizingThreshold","galleryThumbHeight","galleryThumbLoadPadding","galleryThumbWidth","oneColThumbHeight","oneColThumbWidth","pageModeEnabled","panelAnimationDuration","panelCollapsedWidth","panelExpandedWidth","panelOpen","tabOrder","thumbsEnabled","thumbsExtraHeight","thumbsImageFadeInDuration","thumbsLoadRange","treeEnabled","twoColThumbHeight","twoColThumbWidth"]},"content":{"type":"object","properties":{"collapse":{"type":"string","minLength":1},"collapseFull":{"type":"string","minLength":1},"date":{"type":"string","minLength":1},"expand":{"type":"string","minLength":1},"expandFull":{"type":"string","minLength":1},"index":{"type":"string","minLength":1},"searchResult":{"type":"string","minLength":1},"searchResults":{"type":"string","minLength":1},"sortBy":{"type":"string","minLength":1},"thumbnails":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"volume":{"type":"string","minLength":1}},"required":["collapse","collapseFull","date","expand","expandFull","index","searchResult","searchResults","sortBy","thumbnails","title","volume"]}},"required":["options","content"]},"dialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"close":{"type":"string","minLength":1}},"required":["close"]}},"required":["content"]},"downloadDialogue":{"type":"object","properties":{"options":{"type":"object","properties":{"confinedImageSize":{"type":"number"},"currentViewDisabledPercentage":{"type":"number"},"maxImageWidth":{"type":"number"},"optionsExplanatoryTextEnabled":{"type":"boolean"},"selectionEnabled":{"type":"boolean"}},"required":["confinedImageSize","currentViewDisabledPercentage","maxImageWidth","optionsExplanatoryTextEnabled","selectionEnabled"]},"content":{"type":"object","properties":{"currentViewAsJpg":{"type":"string","minLength":1},"currentViewAsJpgExplanation":{"type":"string","minLength":1},"download":{"type":"string","minLength":1},"downloadSelection":{"type":"string","minLength":1},"downloadSelectionExplanation":{"type":"string","minLength":1},"editSettings":{"type":"string","minLength":1},"entireDocument":{"type":"string","minLength":1},"entireFileAsOriginal":{"type":"string","minLength":1},"noneAvailable":{"type":"string","minLength":1},"pagingNote":{"type":"string","minLength":1},"preview":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"wholeImageHighRes":{"type":"string","minLength":1},"wholeImageHighResExplanation":{"type":"string","minLength":1},"wholeImagesHighRes":{"type":"string","minLength":1},"wholeImagesHighResExplanation":{"type":"string","minLength":1},"wholeImageLowResAsJpg":{"type":"string","minLength":1},"wholeImageLowResAsJpgExplanation":{"type":"string","minLength":1}},"required":["currentViewAsJpg","currentViewAsJpgExplanation","download","downloadSelection","downloadSelectionExplanation","editSettings","entireDocument","entireFileAsOriginal","noneAvailable","pagingNote","preview","title","wholeImageHighRes","wholeImageHighResExplanation","wholeImagesHighRes","wholeImagesHighResExplanation","wholeImageLowResAsJpg","wholeImageLowResAsJpgExplanation"]}},"required":["options","content"]},"footerPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"bookmarkEnabled":{"type":"boolean"},"downloadEnabled":{"type":"boolean"},"embedEnabled":{"type":"boolean"},"feedbackEnabled":{"type":"boolean"},"fullscreenEnabled":{"type":"boolean"},"minimiseButtons":{"type":"boolean"},"moreInfoEnabled":{"type":"boolean"},"openEnabled":{"type":"boolean"},"printEnabled":{"type":"boolean"},"shareEnabled":{"type":"boolean"}},"required":["bookmarkEnabled","downloadEnabled","embedEnabled","feedbackEnabled","fullscreenEnabled","minimiseButtons","moreInfoEnabled","openEnabled","printEnabled","shareEnabled"]},"content":{"type":"object","properties":{"bookmark":{"type":"string","minLength":1},"download":{"type":"string","minLength":1},"embed":{"type":"string","minLength":1},"feedback":{"type":"string","minLength":1},"exitFullScreen":{"type":"string","minLength":1},"fullScreen":{"type":"string","minLength":1},"open":{"type":"string","minLength":1},"share":{"type":"string","minLength":1}},"required":["bookmark","download","embed","feedback","exitFullScreen","fullScreen","open","share"]}},"required":["options","content"]},"genericDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"emptyValue":{"type":"string","minLength":1},"invalidNumber":{"type":"string","minLength":1},"noMatches":{"type":"string","minLength":1},"ok":{"type":"string","minLength":1},"pageNotFound":{"type":"string","minLength":1},"refresh":{"type":"string","minLength":1}},"required":["emptyValue","invalidNumber","noMatches","ok","pageNotFound","refresh"]}},"required":["content"]},"headerPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"localeToggleEnabled":{"type":"boolean"},"settingsButtonEnabled":{"type":"boolean"}},"required":["localeToggleEnabled","settingsButtonEnabled"]}},"required":["options"]},"helpDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"text":{"type":"string","minLength":1},"title":{"type":"string","minLength":1}},"required":["text","title"]}},"required":["content"]},"moreInfoRightPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"canvasDisplayOrder":{"type":"string"},"canvasExclude":{"type":"string"},"copyToClipboardEnabled":{"type":"boolean"},"manifestDisplayOrder":{"type":"string"},"manifestExclude":{"type":"string"},"panelAnimationDuration":{"type":"number"},"panelCollapsedWidth":{"type":"number"},"panelExpandedWidth":{"type":"number"},"panelOpen":{"type":"boolean"},"rtlLanguageCodes":{"type":"string","minLength":1},"showAllLanguages":{"type":"boolean"},"textLimit":{"type":"number"},"textLimitType":{"type":"string","minLength":1}},"required":["canvasDisplayOrder","canvasExclude","copyToClipboardEnabled","manifestDisplayOrder","manifestExclude","panelAnimationDuration","panelCollapsedWidth","panelExpandedWidth","panelOpen","rtlLanguageCodes","showAllLanguages","textLimit","textLimitType"]},"content":{"type":"object","properties":{"attribution":{"type":"string","minLength":1},"collapse":{"type":"string","minLength":1},"collapseFull":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"expand":{"type":"string","minLength":1},"expandFull":{"type":"string","minLength":1},"holdingText":{"type":"string","minLength":1},"less":{"type":"string","minLength":1},"license":{"type":"string","minLength":1},"logo":{"type":"string","minLength":1},"more":{"type":"string","minLength":1},"noData":{"type":"string","minLength":1},"page":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"manifestHeader":{"type":"string","minLength":1},"canvasHeader":{"type":"string","minLength":1},"copyToClipboard":{"type":"string","minLength":1},"copiedToClipboard":{"type":"string","minLength":1}},"required":["attribution","collapse","collapseFull","description","expand","expandFull","holdingText","less","license","logo","more","noData","page","title","manifestHeader","canvasHeader","copyToClipboard","copiedToClipboard"]}},"required":["options","content"]},"multiSelectDialogue":{"type":"object","properties":{"options":{"type":"object","properties":{"galleryThumbChunkedResizingEnabled":{"type":"boolean"},"galleryThumbChunkedResizingThreshold":{"type":"number"},"galleryThumbHeight":{"type":"number"},"galleryThumbLoadPadding":{"type":"number"},"galleryThumbWidth":{"type":"number"},"pageModeEnabled":{"type":"boolean"}},"required":["galleryThumbChunkedResizingEnabled","galleryThumbChunkedResizingThreshold","galleryThumbHeight","galleryThumbLoadPadding","galleryThumbWidth","pageModeEnabled"]},"content":{"type":"object","properties":{"select":{"type":"string","minLength":1},"selectAll":{"type":"string","minLength":1},"title":{"type":"string","minLength":1}},"required":["select","selectAll","title"]}},"required":["options","content"]},"pagingHeaderPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"autoCompleteBoxEnabled":{"type":"boolean"},"galleryButtonEnabled":{"type":"boolean"},"imageSelectionBoxEnabled":{"type":"boolean"},"pageModeEnabled":{"type":"boolean"},"pagingToggleEnabled":{"type":"boolean"}},"required":["autoCompleteBoxEnabled","galleryButtonEnabled","imageSelectionBoxEnabled","pageModeEnabled","pagingToggleEnabled"]},"content":{"type":"object","properties":{"close":{"type":"string","minLength":1},"emptyValue":{"type":"string","minLength":1},"first":{"type":"string","minLength":1},"firstImage":{"type":"string","minLength":1},"firstPage":{"type":"string","minLength":1},"folio":{"type":"string","minLength":1},"gallery":{"type":"string","minLength":1},"go":{"type":"string","minLength":1},"help":{"type":"string","minLength":1},"image":{"type":"string","minLength":1},"last":{"type":"string","minLength":1},"lastImage":{"type":"string","minLength":1},"lastPage":{"type":"string","minLength":1},"next":{"type":"string","minLength":1},"nextImage":{"type":"string","minLength":1},"nextPage":{"type":"string","minLength":1},"of":{"type":"string","minLength":1},"oneUp":{"type":"string","minLength":1},"page":{"type":"string","minLength":1},"previous":{"type":"string","minLength":1},"previousImage":{"type":"string","minLength":1},"previousPage":{"type":"string","minLength":1},"settings":{"type":"string","minLength":1},"twoUp":{"type":"string","minLength":1}},"required":["close","emptyValue","first","firstImage","firstPage","folio","gallery","go","help","image","last","lastImage","lastPage","next","nextImage","nextPage","of","oneUp","page","previous","previousImage","previousPage","settings","twoUp"]}},"required":["options","content"]},"seadragonCenterPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"animationTime":{"type":"number"},"autoHideControls":{"type":"boolean"},"attributionEnabled":{"type":"boolean"},"blendTime":{"type":"number"},"constrainDuringPan":{"type":"boolean"},"controlsFadeAfterInactive":{"type":"number"},"controlsFadeDelay":{"type":"number"},"controlsFadeLength":{"type":"number"},"defaultZoomLevel":{"type":"number"},"immediateRender":{"type":"boolean"},"maxZoomPixelRatio":{"type":"number"},"navigatorPosition":{"type":"string","minLength":1},"pageGap":{"type":"number"},"showHomeControl":{"type":"boolean"},"trimAttributionCount":{"type":"number"},"visibilityRatio":{"type":"number"}},"required":["animationTime","autoHideControls","attributionEnabled","blendTime","constrainDuringPan","controlsFadeAfterInactive","controlsFadeDelay","controlsFadeLength","defaultZoomLevel","immediateRender","maxZoomPixelRatio","navigatorPosition","pageGap","showHomeControl","trimAttributionCount","visibilityRatio"]},"content":{"type":"object","properties":{"attribution":{"type":"string","minLength":1},"goHome":{"type":"string","minLength":1},"imageUnavailable":{"type":"string","minLength":1},"next":{"type":"string","minLength":1},"previous":{"type":"string","minLength":1},"rotateRight":{"type":"string","minLength":1},"zoomIn":{"type":"string","minLength":1},"zoomOut":{"type":"string","minLength":1}},"required":["attribution","goHome","imageUnavailable","next","previous","rotateRight","zoomIn","zoomOut"]}},"required":["options","content"]},"searchFooterPanel":{"type":"object","properties":{"options":{"type":"object","properties":{"elideDetailsTermsCount":{"type":"number"},"elideResultsTermsCount":{"type":"number"},"pageModeEnabled":{"type":"boolean"},"positionMarkerEnabled":{"type":"boolean"}},"required":["elideDetailsTermsCount","elideResultsTermsCount","pageModeEnabled","positionMarkerEnabled"]},"content":{"type":"object","properties":{"clearSearch":{"type":"string","minLength":1},"defaultLabel":{"type":"string","minLength":1},"displaying":{"type":"string","minLength":1},"enterKeyword":{"type":"string","minLength":1},"image":{"type":"string","minLength":1},"imageCaps":{"type":"string","minLength":1},"instanceFound":{"type":"string","minLength":1},"instancesFound":{"type":"string","minLength":1},"nextResult":{"type":"string","minLength":1},"page":{"type":"string","minLength":1},"pageCaps":{"type":"string","minLength":1},"previousResult":{"type":"string","minLength":1},"print":{"type":"string","minLength":1},"resultFoundFor":{"type":"string","minLength":1},"resultsFoundFor":{"type":"string","minLength":1},"searchWithin":{"type":"string","minLength":1}},"required":["clearSearch","defaultLabel","displaying","enterKeyword","image","imageCaps","instanceFound","instancesFound","nextResult","page","pageCaps","previousResult","print","resultFoundFor","resultsFoundFor","searchWithin"]}},"required":["options","content"]},"settingsDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"locale":{"type":"string","minLength":1},"navigatorEnabled":{"type":"string","minLength":1},"clickToZoomEnabled":{"type":"string","minLength":1},"pagingEnabled":{"type":"string","minLength":1},"preserveViewport":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"website":{"type":"string","minLength":1}},"required":["locale","navigatorEnabled","clickToZoomEnabled","pagingEnabled","preserveViewport","title","website"]}},"required":["content"]},"shareDialogue":{"type":"object","properties":{"options":{"type":"object","properties":{"embedTemplate":{"type":"string","minLength":1},"instructionsEnabled":{"type":"boolean"},"shareFrameEnabled":{"type":"boolean"}},"required":["embedTemplate","instructionsEnabled","shareFrameEnabled"]},"content":{"type":"object","properties":{"customSize":{"type":"string","minLength":1},"embed":{"type":"string","minLength":1},"embedInstructions":{"type":"string","minLength":1},"height":{"type":"string","minLength":1},"iiif":{"type":"string","minLength":1},"share":{"type":"string","minLength":1},"shareInstructions":{"type":"string","minLength":1},"size":{"type":"string","minLength":1},"width":{"type":"string","minLength":1}},"required":["customSize","embed","embedInstructions","height","iiif","share","shareInstructions","size","width"]}},"required":["options","content"]},"clickThroughDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"viewTerms":{"type":"string","minLength":1}},"required":["viewTerms"]}},"required":["content"]},"loginDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"login":{"type":"string","minLength":1},"logout":{"type":"string","minLength":1},"cancel":{"type":"string","minLength":1}},"required":["login","logout","cancel"]}},"required":["content"]},"mobileFooterPanel":{"type":"object","properties":{"content":{"type":"object","properties":{"rotateRight":{"type":"string","minLength":1},"moreInfo":{"type":"string","minLength":1},"zoomIn":{"type":"string","minLength":1},"zoomOut":{"type":"string","minLength":1}},"required":["rotateRight","moreInfo","zoomIn","zoomOut"]}},"required":["content"]},"restrictedDialogue":{"type":"object","properties":{"content":{"type":"object","properties":{"cancel":{"type":"string","minLength":1}},"required":["cancel"]}},"required":["content"]}},"required":["contentLeftPanel","dialogue","downloadDialogue","footerPanel","genericDialogue","headerPanel","helpDialogue","moreInfoRightPanel","multiSelectDialogue","pagingHeaderPanel","seadragonCenterPanel","searchFooterPanel","settingsDialogue","shareDialogue","clickThroughDialogue","loginDialogue","mobileFooterPanel","restrictedDialogue"]},"localisation":{"type":"object","properties":{"label":{"type":"string","minLength":1},"locales":{"type":"array","uniqueItems":true,"minItems":1,"items":{"required":["name","label"],"properties":{"name":{"type":"string","minLength":1},"label":{"type":"string","minLength":1}}}}},"required":["label","locales"]},"content":{"type":"object","properties":{"authCORSError":{"type":"string","minLength":1},"authorisationFailedMessage":{"type":"string","minLength":1},"canvasIndexOutOfRange":{"type":"string","minLength":1},"degradedResourceMessage":{"type":"string","minLength":1},"degradedResourceLogin":{"type":"string","minLength":1},"forbiddenResourceMessage":{"type":"string","minLength":1},"termsOfUse":{"type":"string","minLength":1}},"required":["authCORSError","authorisationFailedMessage","canvasIndexOutOfRange","degradedResourceMessage","degradedResourceLogin","forbiddenResourceMessage","termsOfUse"]}},"required":["options","modules","localisation","content"]}
\ No newline at end of file
diff --git a/dist/uv-1.8.39/schema/uv-virtex-extension.cy-GB.schema.json b/dist/uv-2.0.2/schema/uv-virtex-extension.cy-GB.schema.json
similarity index 100%
rename from dist/uv-1.8.39/schema/uv-virtex-extension.cy-GB.schema.json
rename to dist/uv-2.0.2/schema/uv-virtex-extension.cy-GB.schema.json
diff --git a/dist/uv-1.8.39/schema/uv-virtex-extension.en-GB.schema.json b/dist/uv-2.0.2/schema/uv-virtex-extension.en-GB.schema.json
similarity index 100%
rename from dist/uv-1.8.39/schema/uv-virtex-extension.en-GB.schema.json
rename to dist/uv-2.0.2/schema/uv-virtex-extension.en-GB.schema.json
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css
similarity index 97%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css
index bbec7b549..936e0cf0f 100644
--- a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-mediaelement-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -318,33 +318,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -2751,6 +2771,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -2788,47 +2815,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -2848,7 +2893,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -2858,16 +2902,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -3002,6 +3056,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css
similarity index 97%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css
index 2ac4ba824..e8569c94a 100644
--- a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-pdf-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -318,33 +318,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -3607,6 +3627,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -3644,47 +3671,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -3704,7 +3749,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -3714,16 +3758,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -3858,6 +3912,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css
similarity index 95%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css
index 4ec418dfc..61efc636b 100644
--- a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-seadragon-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -626,6 +626,9 @@
opacity: 0.5;
filter: alpha(opacity=50);
}
+#app .centerPanel .content .searchOverlay.current {
+ border: 3px solid #fff;
+}
#app .openseadragon-canvas {
outline: none;
}
@@ -669,33 +672,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -935,6 +958,10 @@
float: left;
border: none;
}
+#app .footerPanel .search .searchTextContainer .searchText.searching {
+ background: url('../../img/uv-searchfooterpanel-module/spinner.gif') no-repeat;
+ background-position: right 3px;
+}
#app .footerPanel .search .searchTextContainer a.imageButton.searchButton {
background: url('../../img/uv-searchfooterpanel-module/search.png') no-repeat;
height: 18px;
@@ -967,6 +994,19 @@
width: 585px;
}
#app .footerPanel .searchPager .controls a.previousResult {
+ -webkit-touch-callout: none;
+ /* iOS Safari */
+ -webkit-user-select: none;
+ /* Chrome/Safari/Opera */
+ -khtml-user-select: none;
+ /* Konqueror */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* Internet Explorer/Edge */
+ user-select: none;
+ /* Non-prefixed version, currently
+ not supported by any browser */
background-image: url('../../img/uv-searchfooterpanel-module/prev.png');
background-repeat: no-repeat;
height: 30px;
@@ -987,7 +1027,24 @@
color: #fff;
text-decoration: none;
}
+#app .footerPanel .searchPager .controls a.previousResult.disabled {
+ opacity: 0.25;
+ filter: alpha(opacity=25);
+}
#app .footerPanel .searchPager .controls a.nextResult {
+ -webkit-touch-callout: none;
+ /* iOS Safari */
+ -webkit-user-select: none;
+ /* Chrome/Safari/Opera */
+ -khtml-user-select: none;
+ /* Konqueror */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* Internet Explorer/Edge */
+ user-select: none;
+ /* Non-prefixed version, currently
+ not supported by any browser */
background-image: url('../../img/uv-searchfooterpanel-module/next.png');
background-repeat: no-repeat;
height: 30px;
@@ -1008,7 +1065,24 @@
color: #fff;
text-decoration: none;
}
+#app .footerPanel .searchPager .controls a.nextResult.disabled {
+ opacity: 0.25;
+ filter: alpha(opacity=25);
+}
#app .footerPanel .searchPager .controls a.clearSearch {
+ -webkit-touch-callout: none;
+ /* iOS Safari */
+ -webkit-user-select: none;
+ /* Chrome/Safari/Opera */
+ -khtml-user-select: none;
+ /* Konqueror */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* Internet Explorer/Edge */
+ user-select: none;
+ /* Non-prefixed version, currently
+ not supported by any browser */
cursor: pointer;
color: #26b5cc;
text-decoration: none;
@@ -2583,6 +2657,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -2620,47 +2701,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -2680,7 +2779,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -2690,16 +2788,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -2834,6 +2942,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css
similarity index 96%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css
index 315888ee0..f0c2ebf00 100644
--- a/dist/uv-1.8.39/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-cy-GB-theme/css/uv-virtex-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -318,33 +318,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -2028,6 +2048,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -2065,47 +2092,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -2125,7 +2170,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -2135,16 +2179,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -2279,6 +2333,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/close.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/close.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/close.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/close.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/hamburger.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/hamburger.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/hamburger.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/hamburger.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/placemarker_down.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/placemarker_down.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/placemarker_down.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/placemarker_down.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/padlock.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/padlock.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/padlock.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/padlock.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-moreinforightpanel-module/copy.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-moreinforightpanel-module/copy.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-moreinforightpanel-module/copy.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-moreinforightpanel-module/copy.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/first.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/first.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/first.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/first.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/grid.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/grid.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/grid.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/grid.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/last.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/last.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/last.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/last.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/next.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/next.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/next.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/next.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/one_up.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/one_up.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/one_up.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/one_up.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/prev.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/prev.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/prev.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/prev.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/settings.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/settings.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/settings.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/settings.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/two_up.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/two_up.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/two_up.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pagingheaderpanel-module/two_up.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grab.cur b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grab.cur
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grab.cur
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grab.cur
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/shadow.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/shadow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/shadow.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/shadow.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/texture.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/texture.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/texture.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/texture.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/home.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/home.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/home.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/home.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/next.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/next.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/next.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/next.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/prev.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/prev.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/prev.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/prev.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/search.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/search.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/search.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/search.png
diff --git a/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/spinner.gif b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/spinner.gif
new file mode 100644
index 000000000..148005da2
Binary files /dev/null and b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-searchfooterpanel-module/spinner.gif differ
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_left.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_left.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_left.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_left.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_right.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_right.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_right.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/arrows_right.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/bookmark.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/bookmark.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/bookmark.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/bookmark.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close_attribution.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close_attribution.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close_attribution.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close_attribution.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close_information_box.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close_information_box.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close_information_box.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close_information_box.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close_message_box.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close_message_box.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/close_message_box.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/close_message_box.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/copy.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/copy.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/copy.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/copy.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/dialogue_arrow.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/dialogue_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/dialogue_arrow.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/dialogue_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/download.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/download.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/download.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/download.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/embed.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/embed.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/embed.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/embed.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/error.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/error.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/error.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/error.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/exit_fullscreen.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/exit_fullscreen.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/exit_fullscreen.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/exit_fullscreen.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/feedback.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/feedback.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/feedback.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/feedback.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/fullscreen.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/fullscreen.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/fullscreen.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/fullscreen.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/hidden_thumb.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/hidden_thumb.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/hidden_thumb.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/hidden_thumb.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/iiif.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/iiif.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/iiif.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/iiif.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/minus.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/minus.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/minus.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/minus.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/modal_bg.gif b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/modal_bg.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/modal_bg.gif
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/modal_bg.gif
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/moreinfo.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/moreinfo.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/moreinfo.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/moreinfo.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/open.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/open.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/open.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/open.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/plus.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/plus.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/plus.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/plus.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/print.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/print.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/print.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/print.png
diff --git a/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/search_result.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/search_result.png
new file mode 100644
index 000000000..a0fa494bf
Binary files /dev/null and b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/search_result.png differ
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/settings.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/settings.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/settings.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/settings.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/share.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/share.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/share.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/share.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/sprite.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/sprite.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/sprite.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/sprite.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/unavailable.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/unavailable.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-shared-module/unavailable.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-shared-module/unavailable.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png
diff --git a/dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png b/dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png
rename to dist/uv-2.0.2/themes/uv-cy-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css
similarity index 97%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css
index a35e35df1..9c346dd7c 100644
--- a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-mediaelement-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -318,33 +318,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -2751,6 +2771,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -2788,47 +2815,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -2848,7 +2893,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -2858,16 +2902,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -3002,6 +3056,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css
similarity index 97%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css
index c7b580a5d..fded90e52 100644
--- a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-pdf-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -318,33 +318,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -3607,6 +3627,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -3644,47 +3671,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -3704,7 +3749,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -3714,16 +3758,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -3858,6 +3912,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css
similarity index 95%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css
index 38c5897ba..93c0fd691 100644
--- a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-seadragon-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -626,6 +626,9 @@
opacity: 0.5;
filter: alpha(opacity=50);
}
+#app .centerPanel .content .searchOverlay.current {
+ border: 3px solid #fff;
+}
#app .openseadragon-canvas {
outline: none;
}
@@ -669,33 +672,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -935,6 +958,10 @@
float: left;
border: none;
}
+#app .footerPanel .search .searchTextContainer .searchText.searching {
+ background: url('../../img/uv-searchfooterpanel-module/spinner.gif') no-repeat;
+ background-position: right 3px;
+}
#app .footerPanel .search .searchTextContainer a.imageButton.searchButton {
background: url('../../img/uv-searchfooterpanel-module/search.png') no-repeat;
height: 18px;
@@ -967,6 +994,19 @@
width: 585px;
}
#app .footerPanel .searchPager .controls a.previousResult {
+ -webkit-touch-callout: none;
+ /* iOS Safari */
+ -webkit-user-select: none;
+ /* Chrome/Safari/Opera */
+ -khtml-user-select: none;
+ /* Konqueror */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* Internet Explorer/Edge */
+ user-select: none;
+ /* Non-prefixed version, currently
+ not supported by any browser */
background-image: url('../../img/uv-searchfooterpanel-module/prev.png');
background-repeat: no-repeat;
height: 30px;
@@ -987,7 +1027,24 @@
color: #fff;
text-decoration: none;
}
+#app .footerPanel .searchPager .controls a.previousResult.disabled {
+ opacity: 0.25;
+ filter: alpha(opacity=25);
+}
#app .footerPanel .searchPager .controls a.nextResult {
+ -webkit-touch-callout: none;
+ /* iOS Safari */
+ -webkit-user-select: none;
+ /* Chrome/Safari/Opera */
+ -khtml-user-select: none;
+ /* Konqueror */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* Internet Explorer/Edge */
+ user-select: none;
+ /* Non-prefixed version, currently
+ not supported by any browser */
background-image: url('../../img/uv-searchfooterpanel-module/next.png');
background-repeat: no-repeat;
height: 30px;
@@ -1008,7 +1065,24 @@
color: #fff;
text-decoration: none;
}
+#app .footerPanel .searchPager .controls a.nextResult.disabled {
+ opacity: 0.25;
+ filter: alpha(opacity=25);
+}
#app .footerPanel .searchPager .controls a.clearSearch {
+ -webkit-touch-callout: none;
+ /* iOS Safari */
+ -webkit-user-select: none;
+ /* Chrome/Safari/Opera */
+ -khtml-user-select: none;
+ /* Konqueror */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* Internet Explorer/Edge */
+ user-select: none;
+ /* Non-prefixed version, currently
+ not supported by any browser */
cursor: pointer;
color: #26b5cc;
text-decoration: none;
@@ -2583,6 +2657,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -2620,47 +2701,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -2680,7 +2779,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -2690,16 +2788,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -2834,6 +2942,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css
similarity index 96%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css
index cf2cf358a..ab910c4aa 100644
--- a/dist/uv-1.8.39/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css
+++ b/dist/uv-2.0.2/themes/uv-en-GB-theme/css/uv-virtex-extension/theme.css
@@ -2,7 +2,7 @@
color: #000;
}
#app .overlay.share {
- width: 270px;
+ width: 280px;
padding: 0 0 30px 8px;
}
#app .overlay.share .middle .content .tabs {
@@ -318,33 +318,53 @@
#app .leftPanel .views .thumbsView .thumbs .thumb.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb span {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info {
+ overflow: hidden;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info span {
font-size: 11px;
color: #fff;
display: block;
padding: 2px 0 0 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb .label {
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .index {
+ float: left;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .label {
+ float: left;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+#app .leftPanel .views .thumbsView .thumbs .thumb .info .searchResults {
+ float: right;
+ width: 35px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ color: #14a4c3;
+ padding-left: 14px;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
#app .leftPanel .views .thumbsView .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol {
margin: 0 0 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .label {
+ width: 178px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.oneCol .wrap {
width: 208px;
max-height: 373px;
}
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol {
margin: 0 7px 7px 0;
}
-#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap,
#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .label {
+ width: 63px;
+}
+#app .leftPanel .views .thumbsView .thumbs .thumb.twoCol .wrap {
width: 98px;
max-height: 182px;
}
@@ -2028,6 +2048,13 @@ input[type=range]:focus::-ms-fill-upper {
padding: 0 10px 0 0;
overflow: auto;
}
+.iiif-gallery-component *,
+.iiif-gallery-component *:before,
+.iiif-gallery-component *:after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
.iiif-gallery-component .header {
overflow: hidden;
height: 45px;
@@ -2065,47 +2092,65 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-gallery-component .main {
overflow: auto;
overflow-x: hidden;
+ height: 1000px;
}
.iiif-gallery-component .main .thumbs {
margin-right: 10px;
overflow: hidden;
position: relative;
}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb input {
+ display: none;
+}
.iiif-gallery-component .main .thumbs.multiSelect .thumb .wrap.multiSelected {
+ background: none;
+ border: 2px solid transparent;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea input {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs.multiSelect .thumb.insideScrollArea .wrap.multiSelected {
border: 2px solid #14a4c3;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap {
+.iiif-gallery-component .main .thumbs .thumb {
+ margin: 0 7px 7px 0;
+}
+.iiif-gallery-component .main .thumbs .thumb .wrap {
border: 2px solid transparent;
+ padding: 2px;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea .wrap img {
+.iiif-gallery-component .main .thumbs .thumb .wrap img {
display: none;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea span {
+.iiif-gallery-component .main .thumbs .thumb .info span {
color: transparent;
+ padding: 2px 0 0 0;
}
-.iiif-gallery-component .main .thumbs.chunked .thumb.outsideScrollArea.selected .wrap {
- border: 2px solid transparent;
-}
-.iiif-gallery-component .main .thumbs.chunked.multiSelect .thumb.outsideScrollArea .wrap.multiSelected {
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
background: none;
- border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb {
- margin: 0 7px 7px 0;
+.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+ border: 2px solid transparent;
}
-.iiif-gallery-component .main .thumbs .thumb .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap {
border: 2px solid #373737;
- padding: 2px;
}
-.iiif-gallery-component .main .thumbs .thumb.selected .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .wrap img {
+ display: block;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info span {
+ color: #fff;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea .info .searchResults {
+ color: #14a4c3;
+ background: url('../../img/uv-shared-module/search_result.png') no-repeat 0px 3px;
+}
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.selected .wrap {
border: 2px solid #fff;
}
-.iiif-gallery-component .main .thumbs .thumb.searchpreview .wrap {
+.iiif-gallery-component .main .thumbs .thumb.insideScrollArea.searchpreview .wrap {
border: 2px solid #26b5cc;
}
-.iiif-gallery-component .main .thumbs .thumb span {
- padding: 2px 0 0 0;
-}
.iiif-gallery-component .main .thumbs .thumb {
float: left;
cursor: pointer;
@@ -2125,7 +2170,6 @@ input[type=range]:focus::-ms-fill-upper {
background: url('../../img/uv-shared-module/hidden_thumb.png') no-repeat 50% 50%;
}
.iiif-gallery-component .main .thumbs .thumb .wrap img {
- display: block;
max-width: 100%;
max-height: 100%;
}
@@ -2135,16 +2179,26 @@ input[type=range]:focus::-ms-fill-upper {
top: 0px;
left: 0px;
}
-.iiif-gallery-component .main .thumbs .thumb span {
+.iiif-gallery-component .main .thumbs .thumb .info {
+ overflow: hidden;
+}
+.iiif-gallery-component .main .thumbs .thumb .info span {
font-size: 11px;
- color: #fff;
display: block;
-}
-.iiif-gallery-component .main .thumbs .thumb .label {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+.iiif-gallery-component .main .thumbs .thumb .info .index,
+.iiif-gallery-component .main .thumbs .thumb .info .label {
+ float: left;
+}
+.iiif-gallery-component .main .thumbs .thumb .info .searchResults {
+ display: none;
+ float: right;
+ width: 32px;
+ padding-left: 14px;
+}
.iiif-gallery-component .main .thumbs .thumb.placeholder .wrap {
background: url('../../img/uv-shared-module/unavailable.png') no-repeat 50% 50%;
}
@@ -2279,6 +2333,10 @@ input[type=range]:focus::-ms-fill-upper {
.iiif-metadata-component .groups .group .items .item .value img {
max-width: 100px;
}
+.iiif-metadata-component .groups .group .items .item a.value {
+ display: block;
+ color: #26b5cc;
+}
@media only screen and (min-width: 0px) and (max-width: 640px) {
#app .headerPanel {
display: none;
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/close.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/close.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/close.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/close.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/hamburger.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/hamburger.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/hamburger.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/hamburger.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/placemarker_down.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/placemarker_down.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/placemarker_down.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/placemarker_down.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/padlock.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/padlock.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/padlock.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/padlock.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-contentleftpanel-module/thumb_placeholder.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/bigplay.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome-bg.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/controls-wellcome.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-mediaelementcenterpanel-module/loading.gif
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-moreinforightpanel-module/copy.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-moreinforightpanel-module/copy.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-moreinforightpanel-module/copy.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-moreinforightpanel-module/copy.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/rotate_right.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_in.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-osdmobilefooterpanel-module/zoom_out.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/first.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/first.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/first.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/first.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/grid.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/grid.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/grid.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/grid.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/last.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/last.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/last.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/last.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/next.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/next.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/next.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/next.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/one_up.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/one_up.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/one_up.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/one_up.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/prev.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/prev.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/prev.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/prev.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/settings.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/settings.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/settings.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/settings.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/two_up.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/two_up.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/two_up.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pagingheaderpanel-module/two_up.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-check.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-comment.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-help.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-insert.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-key.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-newparagraph.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-noicon.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-note.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/annotation-paragraph.svg
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-next@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/findbarButton-previous@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grab.cur b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grab.cur
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grab.cur
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grab.cur
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/grabbing.cur
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-icon.gif
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/loading-small.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-documentProperties@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-firstPage@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-handTool@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-lastPage@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCcw@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/secondaryToolbarButton-rotateCw@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/shadow.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/shadow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/shadow.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/shadow.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/texture.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/texture.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/texture.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/texture.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-bookmark@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-download@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-menuArrows@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-openFile@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageDown@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-pageUp@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-presentationMode@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-print@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-search@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-secondaryToolbarToggle@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-sidebarToggle@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewAttachments.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline-rtl@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewOutline@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-viewThumbnail@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomIn@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-pdfcenterpanel-module/toolbarButton-zoomOut@2x.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/down_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/home.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/home.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/home.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/home.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/left_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/pixel.gif
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/right_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/rotate_right.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/up_arrow_disabled.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_in.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-seadragoncenterpanel-module/zoom_out.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/next.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/next.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/next.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/next.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_down_hover.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/placemarker_up.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/prev.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/prev.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/prev.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/prev.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/search.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/search.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/search.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/search.png
diff --git a/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/spinner.gif b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/spinner.gif
new file mode 100644
index 000000000..148005da2
Binary files /dev/null and b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-searchfooterpanel-module/spinner.gif differ
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/arrows_left.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/arrows_left.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/arrows_left.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/arrows_left.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/arrows_right.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/arrows_right.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/arrows_right.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/arrows_right.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/bookmark.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/bookmark.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/bookmark.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/bookmark.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close_attribution.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close_attribution.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close_attribution.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close_attribution.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close_information_box.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close_information_box.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close_information_box.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close_information_box.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close_message_box.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close_message_box.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/close_message_box.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/close_message_box.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/copy.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/copy.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/copy.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/copy.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/dialogue_arrow.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/dialogue_arrow.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/dialogue_arrow.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/dialogue_arrow.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/download.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/download.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/download.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/download.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/embed.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/embed.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/embed.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/embed.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/error.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/error.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/error.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/error.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/exit_fullscreen.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/exit_fullscreen.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/exit_fullscreen.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/exit_fullscreen.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/feedback.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/feedback.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/feedback.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/feedback.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/fullscreen.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/fullscreen.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/fullscreen.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/fullscreen.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/hidden_thumb.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/hidden_thumb.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/hidden_thumb.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/hidden_thumb.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/iiif.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/iiif.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/iiif.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/iiif.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/minus.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/minus.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/minus.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/minus.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/modal_bg.gif b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/modal_bg.gif
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/modal_bg.gif
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/modal_bg.gif
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/moreinfo.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/moreinfo.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/moreinfo.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/moreinfo.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/open.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/open.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/open.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/open.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/plus.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/plus.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/plus.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/plus.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/print.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/print.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/print.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/print.png
diff --git a/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/search_result.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/search_result.png
new file mode 100644
index 000000000..a0fa494bf
Binary files /dev/null and b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/search_result.png differ
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/settings.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/settings.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/settings.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/settings.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/share.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/share.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/share.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/share.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/sprite.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/sprite.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/sprite.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/sprite.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/unavailable.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/unavailable.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-shared-module/unavailable.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-shared-module/unavailable.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_in.png
diff --git a/dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png b/dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png
similarity index 100%
rename from dist/uv-1.8.39/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png
rename to dist/uv-2.0.2/themes/uv-en-GB-theme/img/uv-virtexcenterpanel-module/zoom_out.png
diff --git a/examples b/examples
index 14ef60f67..4520cf779 160000
--- a/examples
+++ b/examples
@@ -1 +1 @@
-Subproject commit 14ef60f677126bd36a28b932484ea0d1b45957cf
+Subproject commit 4520cf77996d61ceb4e89f4530b06cc0e15e2213
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 000000000..b325bc329
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,5412 @@
+{
+ "name": "universalviewer",
+ "version": "1.8.39",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "@types/jquery": {
+ "version": "2.0.48",
+ "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-2.0.48.tgz",
+ "integrity": "sha512-nNLzUrVjaRV/Ds1eHZLYTd7IZxs38cwwLSaqMJj8OTXY8xNUbxSK69bi9cMLvQ7dm/IBeQ1wHwQ0S1uYa0rd2w==",
+ "dev": true
+ },
+ "@types/node": {
+ "version": "7.0.47",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.47.tgz",
+ "integrity": "sha512-otFGHHuTiQL7TNK/V44kSwcXuwgiQr96gM6cEKiw1trqjPtfvp9FgBDJTWd7n5aCpkfdko3QgVg9wwmxGqAE2g==",
+ "dev": true
+ },
+ "Base64": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/Base64/-/Base64-0.2.1.tgz",
+ "integrity": "sha1-ujpCMHCOGGcFBl5mur3Uw1z2ACg=",
+ "dev": true
+ },
+ "JSONStream": {
+ "version": "0.8.4",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-0.8.4.tgz",
+ "integrity": "sha1-kWV9/m/4V0gwZhMrRhi2Lo9Ih70=",
+ "dev": true,
+ "requires": {
+ "jsonparse": "0.0.5",
+ "through": "2.3.8"
+ }
+ },
+ "abbrev": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
+ "dev": true
+ },
+ "accepts": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.0.3.tgz",
+ "integrity": "sha1-krHbDU89tHsFMN9uFa6X21FNwvg=",
+ "dev": true,
+ "requires": {
+ "mime": "1.2.11",
+ "negotiator": "0.4.6"
+ }
+ },
+ "acorn": {
+ "version": "4.0.13",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz",
+ "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=",
+ "dev": true
+ },
+ "adm-zip": {
+ "version": "0.4.4",
+ "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.4.tgz",
+ "integrity": "sha1-ph7VrmkFw66lizplfSUDMJEFJzY=",
+ "dev": true
+ },
+ "ajv": {
+ "version": "4.11.8",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz",
+ "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "co": "4.6.0",
+ "json-stable-stringify": "1.0.1"
+ },
+ "dependencies": {
+ "json-stable-stringify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
+ "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "jsonify": "0.0.0"
+ }
+ }
+ }
+ },
+ "align-text": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz",
+ "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=",
+ "dev": true,
+ "requires": {
+ "kind-of": "3.2.2",
+ "longest": "1.0.1",
+ "repeat-string": "1.6.1"
+ }
+ },
+ "amdefine": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
+ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
+ "dev": true
+ },
+ "ansi-regex": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz",
+ "integrity": "sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz",
+ "integrity": "sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94=",
+ "dev": true
+ },
+ "anymatch": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz",
+ "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==",
+ "dev": true,
+ "requires": {
+ "micromatch": "2.3.11",
+ "normalize-path": "2.1.1"
+ }
+ },
+ "archiver": {
+ "version": "0.4.10",
+ "resolved": "https://registry.npmjs.org/archiver/-/archiver-0.4.10.tgz",
+ "integrity": "sha1-3w/qyPHRKV5ezrOiBVWQctIfR0c=",
+ "dev": true,
+ "requires": {
+ "iconv-lite": "0.2.11",
+ "readable-stream": "1.0.34"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "string_decoder": "0.10.31"
+ }
+ },
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
+ "dev": true
+ }
+ }
+ },
+ "argparse": {
+ "version": "0.1.16",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz",
+ "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=",
+ "dev": true,
+ "requires": {
+ "underscore": "1.7.0",
+ "underscore.string": "2.4.0"
+ },
+ "dependencies": {
+ "underscore.string": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz",
+ "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=",
+ "dev": true
+ }
+ }
+ },
+ "arr-diff": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz",
+ "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "1.1.0"
+ }
+ },
+ "arr-flatten": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz",
+ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
+ "dev": true
+ },
+ "array-find-index": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
+ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
+ "dev": true
+ },
+ "array-unique": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz",
+ "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
+ "dev": true
+ },
+ "asap": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
+ "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=",
+ "dev": true,
+ "optional": true
+ },
+ "asn1": {
+ "version": "0.1.11",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz",
+ "integrity": "sha1-VZvhg3bQik7E2+gId9J4GGObLfc=",
+ "dev": true,
+ "optional": true
+ },
+ "asn1.js": {
+ "version": "4.9.2",
+ "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.2.tgz",
+ "integrity": "sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg==",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "inherits": "2.0.3",
+ "minimalistic-assert": "1.0.0"
+ }
+ },
+ "assert": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/assert/-/assert-1.1.2.tgz",
+ "integrity": "sha1-raoExGu1jG3R8pTaPrJuYijrbkQ=",
+ "dev": true,
+ "requires": {
+ "util": "0.10.3"
+ }
+ },
+ "assert-plus": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz",
+ "integrity": "sha1-7nQAlBMALYTOxyGcasgRgS5yMWA=",
+ "dev": true,
+ "optional": true
+ },
+ "astw": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/astw/-/astw-2.2.0.tgz",
+ "integrity": "sha1-e9QXhNMkk5h66yOba04cV6hzuRc=",
+ "dev": true,
+ "requires": {
+ "acorn": "4.0.13"
+ }
+ },
+ "async": {
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz",
+ "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=",
+ "dev": true
+ },
+ "async-each": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz",
+ "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=",
+ "dev": true
+ },
+ "asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
+ "dev": true,
+ "optional": true
+ },
+ "aws-sign2": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.5.0.tgz",
+ "integrity": "sha1-xXED96F/wDfwLXwuZLYC6iI/fWM=",
+ "dev": true,
+ "optional": true
+ },
+ "aws4": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz",
+ "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=",
+ "dev": true,
+ "optional": true
+ },
+ "balanced-match": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
+ "dev": true
+ },
+ "base-component": {
+ "version": "github:viewdir/base-component#f6bb174bd06b45dea783b2e1cbd6647d1206c2fc",
+ "dev": true,
+ "requires": {
+ "@types/jquery": "2.0.48",
+ "@types/node": "7.0.47"
+ }
+ },
+ "base64-js": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.7.tgz",
+ "integrity": "sha1-VEANyR1pbOwyqKR5AvlxUi/uj0g=",
+ "dev": true
+ },
+ "basic-auth-connect": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz",
+ "integrity": "sha1-/bC0OWLKe0BFanwrtI/hc9otISI=",
+ "dev": true
+ },
+ "batch": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/batch/-/batch-0.5.0.tgz",
+ "integrity": "sha1-/S4Fp6XWlrTbkxQBPihdj/NVfsM=",
+ "dev": true
+ },
+ "bcrypt-pbkdf": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
+ "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "tweetnacl": "0.14.5"
+ }
+ },
+ "binary-extensions": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.10.0.tgz",
+ "integrity": "sha1-muuabF6IY4qtFx4Wf1kAq+JINdA=",
+ "dev": true
+ },
+ "bluebird": {
+ "version": "2.9.34",
+ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.9.34.tgz",
+ "integrity": "sha1-L3tOyAIWMoqf3evfacjUlC/v99g=",
+ "dev": true
+ },
+ "bn.js": {
+ "version": "4.11.8",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",
+ "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==",
+ "dev": true
+ },
+ "body-parser": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.3.1.tgz",
+ "integrity": "sha1-GnRRP8eJfXDbVlieDQPwoT8b+pQ=",
+ "dev": true,
+ "requires": {
+ "bytes": "1.0.0",
+ "qs": "0.6.6",
+ "raw-body": "1.1.6",
+ "type-is": "1.2.1"
+ }
+ },
+ "boom": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/boom/-/boom-0.4.2.tgz",
+ "integrity": "sha1-emNune1O/O+xnO9JR6PGffrukRs=",
+ "dev": true,
+ "requires": {
+ "hoek": "0.9.1"
+ }
+ },
+ "brace-expansion": {
+ "version": "1.1.8",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
+ "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
+ "dev": true,
+ "requires": {
+ "balanced-match": "1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "braces": {
+ "version": "1.8.5",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz",
+ "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=",
+ "dev": true,
+ "requires": {
+ "expand-range": "1.8.2",
+ "preserve": "0.2.0",
+ "repeat-element": "1.1.2"
+ }
+ },
+ "brorand": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz",
+ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=",
+ "dev": true
+ },
+ "browser-pack": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-3.2.0.tgz",
+ "integrity": "sha1-+qHLxBSHsazEdH43PhFIrf/Q4tk=",
+ "dev": true,
+ "requires": {
+ "JSONStream": "0.8.4",
+ "combine-source-map": "0.3.0",
+ "concat-stream": "1.4.10",
+ "defined": "0.0.0",
+ "through2": "0.5.1",
+ "umd": "2.1.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "string_decoder": "0.10.31"
+ }
+ },
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
+ "dev": true
+ },
+ "through2": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-0.5.1.tgz",
+ "integrity": "sha1-390BLrnHAOIyP9M084rGIqs3Lac=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.0.34",
+ "xtend": "3.0.0"
+ }
+ }
+ }
+ },
+ "browser-resolve": {
+ "version": "1.11.2",
+ "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz",
+ "integrity": "sha1-j/CbCixCFxihBRwmCzLkj0QpOM4=",
+ "dev": true,
+ "requires": {
+ "resolve": "1.1.7"
+ },
+ "dependencies": {
+ "resolve": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz",
+ "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=",
+ "dev": true
+ }
+ }
+ },
+ "browserify": {
+ "version": "5.11.1",
+ "resolved": "https://registry.npmjs.org/browserify/-/browserify-5.11.1.tgz",
+ "integrity": "sha1-E4EZ6Cro/n5tnVGO4XIJcbWSb8w=",
+ "dev": true,
+ "requires": {
+ "JSONStream": "0.8.4",
+ "assert": "1.1.2",
+ "browser-pack": "3.2.0",
+ "browser-resolve": "1.11.2",
+ "browserify-zlib": "0.1.4",
+ "buffer": "2.8.2",
+ "builtins": "0.0.7",
+ "commondir": "0.0.1",
+ "concat-stream": "1.4.10",
+ "console-browserify": "1.1.0",
+ "constants-browserify": "0.0.1",
+ "crypto-browserify": "3.12.0",
+ "deep-equal": "0.2.2",
+ "defined": "0.0.0",
+ "deps-sort": "1.3.9",
+ "domain-browser": "1.1.7",
+ "duplexer2": "0.0.2",
+ "events": "1.0.2",
+ "glob": "4.5.3",
+ "http-browserify": "1.7.0",
+ "https-browserify": "0.0.1",
+ "inherits": "2.0.3",
+ "insert-module-globals": "6.6.3",
+ "isarray": "0.0.1",
+ "labeled-stream-splicer": "1.0.2",
+ "module-deps": "3.9.1",
+ "os-browserify": "0.1.2",
+ "parents": "0.0.3",
+ "path-browserify": "0.0.0",
+ "process": "0.7.0",
+ "punycode": "1.2.4",
+ "querystring-es3": "0.2.1",
+ "readable-stream": "1.1.14",
+ "resolve": "0.7.4",
+ "shallow-copy": "0.0.1",
+ "shasum": "1.0.2",
+ "shell-quote": "0.0.1",
+ "stream-browserify": "1.0.0",
+ "stream-combiner": "0.0.4",
+ "string_decoder": "0.0.1",
+ "subarg": "0.0.1",
+ "syntax-error": "1.3.0",
+ "through2": "1.1.1",
+ "timers-browserify": "1.4.2",
+ "tty-browserify": "0.0.0",
+ "umd": "2.1.0",
+ "url": "0.10.3",
+ "util": "0.10.3",
+ "vm-browserify": "0.0.4",
+ "xtend": "3.0.0"
+ }
+ },
+ "browserify-aes": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz",
+ "integrity": "sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg==",
+ "dev": true,
+ "requires": {
+ "buffer-xor": "1.0.3",
+ "cipher-base": "1.0.4",
+ "create-hash": "1.1.3",
+ "evp_bytestokey": "1.0.3",
+ "inherits": "2.0.3",
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "browserify-cipher": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.0.tgz",
+ "integrity": "sha1-mYgkSHS/XtTijalWZtzWasj8Njo=",
+ "dev": true,
+ "requires": {
+ "browserify-aes": "1.1.1",
+ "browserify-des": "1.0.0",
+ "evp_bytestokey": "1.0.3"
+ }
+ },
+ "browserify-des": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.0.tgz",
+ "integrity": "sha1-2qJ3cXRwki7S/hhZQRihdUOXId0=",
+ "dev": true,
+ "requires": {
+ "cipher-base": "1.0.4",
+ "des.js": "1.0.0",
+ "inherits": "2.0.3"
+ }
+ },
+ "browserify-rsa": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
+ "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "randombytes": "2.0.5"
+ }
+ },
+ "browserify-sign": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz",
+ "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "browserify-rsa": "4.0.1",
+ "create-hash": "1.1.3",
+ "create-hmac": "1.1.6",
+ "elliptic": "6.4.0",
+ "inherits": "2.0.3",
+ "parse-asn1": "5.1.0"
+ }
+ },
+ "browserify-zlib": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz",
+ "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=",
+ "dev": true,
+ "requires": {
+ "pako": "0.2.9"
+ }
+ },
+ "buffer": {
+ "version": "2.8.2",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-2.8.2.tgz",
+ "integrity": "sha1-1zwhTAM0OE3CmwTuD/X1Unx5dOc=",
+ "dev": true,
+ "requires": {
+ "base64-js": "0.0.7",
+ "ieee754": "1.1.8",
+ "is-array": "1.0.1"
+ }
+ },
+ "buffer-crc32": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz",
+ "integrity": "sha1-vj5TgvwCttYySVasGvmKqYsIU0w=",
+ "dev": true
+ },
+ "buffer-xor": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz",
+ "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=",
+ "dev": true
+ },
+ "builtin-modules": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
+ "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
+ "dev": true
+ },
+ "builtins": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/builtins/-/builtins-0.0.7.tgz",
+ "integrity": "sha1-NVIZzWzxjb58Acx/0tznZc/cVJo=",
+ "dev": true
+ },
+ "bytes": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz",
+ "integrity": "sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g=",
+ "dev": true
+ },
+ "callsite": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz",
+ "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=",
+ "dev": true
+ },
+ "camelcase": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
+ "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=",
+ "dev": true
+ },
+ "camelcase-keys": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
+ "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
+ "dev": true,
+ "requires": {
+ "camelcase": "2.1.1",
+ "map-obj": "1.0.1"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
+ "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
+ "dev": true
+ }
+ }
+ },
+ "caseless": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
+ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
+ "dev": true,
+ "optional": true
+ },
+ "center-align": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz",
+ "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=",
+ "dev": true,
+ "requires": {
+ "align-text": "0.1.4",
+ "lazy-cache": "1.0.4"
+ }
+ },
+ "chalk": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz",
+ "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "1.1.0",
+ "escape-string-regexp": "1.0.5",
+ "has-ansi": "0.1.0",
+ "strip-ansi": "0.3.0",
+ "supports-color": "0.2.0"
+ }
+ },
+ "chokidar": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz",
+ "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=",
+ "dev": true,
+ "requires": {
+ "anymatch": "1.3.2",
+ "async-each": "1.0.1",
+ "glob-parent": "2.0.0",
+ "inherits": "2.0.3",
+ "is-binary-path": "1.0.1",
+ "is-glob": "2.0.1",
+ "path-is-absolute": "1.0.1",
+ "readdirp": "2.1.0"
+ }
+ },
+ "cipher-base": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
+ "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "cliui": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",
+ "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",
+ "dev": true,
+ "requires": {
+ "center-align": "0.1.3",
+ "right-align": "0.1.3",
+ "wordwrap": "0.0.2"
+ },
+ "dependencies": {
+ "wordwrap": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
+ "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
+ "dev": true
+ }
+ }
+ },
+ "co": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
+ "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
+ "dev": true,
+ "optional": true
+ },
+ "coffee-script": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.8.0.tgz",
+ "integrity": "sha1-nJ8dK0pSoADe0Vtll5FwNkgmPB0=",
+ "dev": true,
+ "requires": {
+ "mkdirp": "0.3.5"
+ }
+ },
+ "colors": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz",
+ "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=",
+ "dev": true
+ },
+ "combine-source-map": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.3.0.tgz",
+ "integrity": "sha1-2edPWT2c1DgHMSy12EbUUe+qnrc=",
+ "dev": true,
+ "requires": {
+ "convert-source-map": "0.3.5",
+ "inline-source-map": "0.3.1",
+ "source-map": "0.1.43"
+ }
+ },
+ "combined-stream": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz",
+ "integrity": "sha1-ATfmV7qlp1QcV6w3rF/AfXO03B8=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "delayed-stream": "0.0.5"
+ }
+ },
+ "commondir": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/commondir/-/commondir-0.0.1.tgz",
+ "integrity": "sha1-ifAP3NUbUZxXhzP+xWPmptp/W+I=",
+ "dev": true
+ },
+ "compressible": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/compressible/-/compressible-1.1.0.tgz",
+ "integrity": "sha1-Ek2Ke7oYoFpBCi8lutQTsblK/2c=",
+ "dev": true
+ },
+ "compression": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/compression/-/compression-1.0.7.tgz",
+ "integrity": "sha1-/Ev/Jh3043oTAAby2yqZo0iW9Vo=",
+ "dev": true,
+ "requires": {
+ "accepts": "1.0.3",
+ "bytes": "1.0.0",
+ "compressible": "1.1.0",
+ "on-headers": "0.0.0",
+ "vary": "0.1.0"
+ }
+ },
+ "concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
+ "dev": true
+ },
+ "concat-stream": {
+ "version": "1.4.10",
+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.4.10.tgz",
+ "integrity": "sha1-rMO79WAsuMyYDGrIQPp9hgPj7zY=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "readable-stream": "1.1.14",
+ "typedarray": "0.0.6"
+ }
+ },
+ "connect": {
+ "version": "2.19.6",
+ "resolved": "https://registry.npmjs.org/connect/-/connect-2.19.6.tgz",
+ "integrity": "sha1-1HP9eUnFW0I6ZPhCDb0Gnbd82dI=",
+ "dev": true,
+ "requires": {
+ "basic-auth-connect": "1.0.0",
+ "body-parser": "1.3.1",
+ "bytes": "1.0.0",
+ "compression": "1.0.7",
+ "connect-timeout": "1.1.0",
+ "cookie": "0.1.2",
+ "cookie-parser": "1.1.0",
+ "cookie-signature": "1.0.3",
+ "csurf": "1.2.1",
+ "debug": "1.0.2",
+ "errorhandler": "1.0.2",
+ "escape-html": "1.0.1",
+ "express-session": "1.2.1",
+ "fresh": "0.2.2",
+ "method-override": "2.0.2",
+ "morgan": "1.1.1",
+ "multiparty": "3.2.8",
+ "on-headers": "0.0.0",
+ "parseurl": "1.0.1",
+ "pause": "0.0.1",
+ "qs": "0.6.6",
+ "response-time": "2.0.0",
+ "serve-favicon": "2.0.1",
+ "serve-index": "1.1.1",
+ "serve-static": "1.2.3",
+ "type-is": "1.2.1",
+ "vhost": "1.0.0"
+ }
+ },
+ "connect-livereload": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.4.1.tgz",
+ "integrity": "sha1-D4oagWvJuv+uRjfM6pF0Yv41kXo=",
+ "dev": true
+ },
+ "connect-timeout": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/connect-timeout/-/connect-timeout-1.1.0.tgz",
+ "integrity": "sha1-/IBhX8els4Y70DGa8kkdLX/cXwU=",
+ "dev": true,
+ "requires": {
+ "debug": "0.8.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-0.8.1.tgz",
+ "integrity": "sha1-IP9NJvXkIstoobrLu2EDmtjBwTA=",
+ "dev": true
+ }
+ }
+ },
+ "console-browserify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz",
+ "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=",
+ "dev": true,
+ "requires": {
+ "date-now": "0.1.4"
+ }
+ },
+ "constants-browserify": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-0.0.1.tgz",
+ "integrity": "sha1-kld9tSe6bEzwpFaNhLwDH0QeIfI=",
+ "dev": true
+ },
+ "convert-source-map": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz",
+ "integrity": "sha1-8dgClQr33SYxof6+BZZVDIarMZA=",
+ "dev": true
+ },
+ "cookie": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz",
+ "integrity": "sha1-cv7D0k5Io0Mgc9kMEmQgBQYQBLE=",
+ "dev": true
+ },
+ "cookie-parser": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.1.0.tgz",
+ "integrity": "sha1-L4JlqjtVczqF7vIH8OJTDD6M9wU=",
+ "dev": true,
+ "requires": {
+ "cookie": "0.1.2",
+ "cookie-signature": "1.0.3"
+ }
+ },
+ "cookie-signature": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.3.tgz",
+ "integrity": "sha1-kc2ZfMUftkFZVzjGnNoCAyj1D/k=",
+ "dev": true
+ },
+ "core-util-is": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
+ "dev": true
+ },
+ "create-ecdh": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz",
+ "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "elliptic": "6.4.0"
+ }
+ },
+ "create-hash": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz",
+ "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=",
+ "dev": true,
+ "requires": {
+ "cipher-base": "1.0.4",
+ "inherits": "2.0.3",
+ "ripemd160": "2.0.1",
+ "sha.js": "2.4.9"
+ }
+ },
+ "create-hmac": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz",
+ "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=",
+ "dev": true,
+ "requires": {
+ "cipher-base": "1.0.4",
+ "create-hash": "1.1.3",
+ "inherits": "2.0.3",
+ "ripemd160": "2.0.1",
+ "safe-buffer": "5.1.1",
+ "sha.js": "2.4.9"
+ }
+ },
+ "cryptiles": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-0.2.2.tgz",
+ "integrity": "sha1-7ZH/HxetE9N0gohZT4pIoNJvMlw=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "boom": "0.4.2"
+ }
+ },
+ "crypto-browserify": {
+ "version": "3.12.0",
+ "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz",
+ "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==",
+ "dev": true,
+ "requires": {
+ "browserify-cipher": "1.0.0",
+ "browserify-sign": "4.0.4",
+ "create-ecdh": "4.0.0",
+ "create-hash": "1.1.3",
+ "create-hmac": "1.1.6",
+ "diffie-hellman": "5.0.2",
+ "inherits": "2.0.3",
+ "pbkdf2": "3.0.14",
+ "public-encrypt": "4.0.0",
+ "randombytes": "2.0.5",
+ "randomfill": "1.0.3"
+ }
+ },
+ "csrf-tokens": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/csrf-tokens/-/csrf-tokens-1.0.4.tgz",
+ "integrity": "sha1-SWclaLJwM0hkTqyvYc29wFS6VvI=",
+ "dev": true,
+ "requires": {
+ "rndm": "1.2.0",
+ "scmp": "0.0.3",
+ "uid2": "0.0.3"
+ }
+ },
+ "csurf": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/csurf/-/csurf-1.2.1.tgz",
+ "integrity": "sha1-OSj6I3WS7Vgkp8Ih2Fgb81ap2nY=",
+ "dev": true,
+ "requires": {
+ "csrf-tokens": "1.0.4"
+ }
+ },
+ "ctype": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz",
+ "integrity": "sha1-gsGMJGH3QRTvFsE1IkrQuRRMoS8=",
+ "dev": true,
+ "optional": true
+ },
+ "cucumber": {
+ "version": "0.4.9",
+ "resolved": "https://registry.npmjs.org/cucumber/-/cucumber-0.4.9.tgz",
+ "integrity": "sha1-HhDHJ6k/G+8/UR9oNxkUhejNsbQ=",
+ "dev": true,
+ "requires": {
+ "browserify": "5.11.1",
+ "coffee-script": "1.8.0",
+ "cucumber-html": "0.2.3",
+ "gherkin": "2.12.2",
+ "hide-stack-frames-from": "1.0.0",
+ "nopt": "3.0.1",
+ "pogo": "0.9.4",
+ "stack-chain": "1.3.7",
+ "underscore": "1.7.0",
+ "underscore.string": "2.3.3",
+ "walkdir": "0.0.7"
+ }
+ },
+ "cucumber-html": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/cucumber-html/-/cucumber-html-0.2.3.tgz",
+ "integrity": "sha1-eyqf7SFXLF0l1L1MvHU3onKxapM=",
+ "dev": true
+ },
+ "currently-unhandled": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
+ "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
+ "dev": true,
+ "requires": {
+ "array-find-index": "1.0.2"
+ }
+ },
+ "dashdash": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
+ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "assert-plus": "1.0.0"
+ },
+ "dependencies": {
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "date-now": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz",
+ "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=",
+ "dev": true
+ },
+ "dateformat": {
+ "version": "1.0.2-1.2.3",
+ "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz",
+ "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=",
+ "dev": true
+ },
+ "debug": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-1.0.2.tgz",
+ "integrity": "sha1-OElZHBDM5khHbDx8Li40FttZY8Q=",
+ "dev": true,
+ "requires": {
+ "ms": "0.6.2"
+ }
+ },
+ "decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
+ "dev": true
+ },
+ "deep-equal": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-0.2.2.tgz",
+ "integrity": "sha1-hLdFiW80xoTpjyzg5Cq69Du6AX0=",
+ "dev": true
+ },
+ "defined": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/defined/-/defined-0.0.0.tgz",
+ "integrity": "sha1-817qfXBekzuvE7LwOz+D2SFAOz4=",
+ "dev": true
+ },
+ "delayed-stream": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz",
+ "integrity": "sha1-1LH0OpPoKW3+AmlPRoC8N6MTxz8=",
+ "dev": true,
+ "optional": true
+ },
+ "deps-sort": {
+ "version": "1.3.9",
+ "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-1.3.9.tgz",
+ "integrity": "sha1-Kd//U+F7Nq7K51MK27v2IsLtGnE=",
+ "dev": true,
+ "requires": {
+ "JSONStream": "1.3.1",
+ "shasum": "1.0.2",
+ "subarg": "1.0.0",
+ "through2": "1.1.1"
+ },
+ "dependencies": {
+ "JSONStream": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz",
+ "integrity": "sha1-cH92HgHa6eFvG8+TcDt4xwlmV5o=",
+ "dev": true,
+ "requires": {
+ "jsonparse": "1.3.1",
+ "through": "2.3.8"
+ }
+ },
+ "jsonparse": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
+ "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=",
+ "dev": true
+ },
+ "subarg": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz",
+ "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=",
+ "dev": true,
+ "requires": {
+ "minimist": "1.2.0"
+ }
+ }
+ }
+ },
+ "des.js": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz",
+ "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "minimalistic-assert": "1.0.0"
+ }
+ },
+ "detective": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/detective/-/detective-4.5.0.tgz",
+ "integrity": "sha1-blqMaybmx6JUsca210kNmOyR7dE=",
+ "dev": true,
+ "requires": {
+ "acorn": "4.0.13",
+ "defined": "1.0.0"
+ },
+ "dependencies": {
+ "defined": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz",
+ "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=",
+ "dev": true
+ }
+ }
+ },
+ "diffie-hellman": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz",
+ "integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "miller-rabin": "4.0.1",
+ "randombytes": "2.0.5"
+ }
+ },
+ "domain-browser": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz",
+ "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=",
+ "dev": true
+ },
+ "duplexer": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz",
+ "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
+ "dev": true
+ },
+ "duplexer2": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",
+ "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.1.14"
+ }
+ },
+ "ecc-jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
+ "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "jsbn": "0.1.1"
+ }
+ },
+ "ee-first": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.0.3.tgz",
+ "integrity": "sha1-bJjECJq+y1p7hcGsRJqmA9Oz2r4=",
+ "dev": true
+ },
+ "elliptic": {
+ "version": "6.4.0",
+ "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",
+ "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "brorand": "1.1.0",
+ "hash.js": "1.1.3",
+ "hmac-drbg": "1.0.1",
+ "inherits": "2.0.3",
+ "minimalistic-assert": "1.0.0",
+ "minimalistic-crypto-utils": "1.0.1"
+ }
+ },
+ "errno": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz",
+ "integrity": "sha1-uJbiOp5ei6M4cfyZar02NfyaHH0=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "prr": "0.0.0"
+ }
+ },
+ "error-ex": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz",
+ "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=",
+ "dev": true,
+ "requires": {
+ "is-arrayish": "0.2.1"
+ }
+ },
+ "errorhandler": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.0.2.tgz",
+ "integrity": "sha1-WH1Hu7vEjP/hMsOs2nIVyQJVgQg=",
+ "dev": true
+ },
+ "escape-html": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz",
+ "integrity": "sha1-GBoobq05ejmpKFfPsdQwUuNWv/A=",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+ "dev": true
+ },
+ "esprima": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz",
+ "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=",
+ "dev": true
+ },
+ "eventemitter2": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-1.0.5.tgz",
+ "integrity": "sha1-+YNhBRexc3wLncZDvsqTiTwE3xg=",
+ "dev": true
+ },
+ "events": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/events/-/events-1.0.2.tgz",
+ "integrity": "sha1-dYSdz+k9EPsFfDAFWv29UdBqjiQ=",
+ "dev": true
+ },
+ "evp_bytestokey": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz",
+ "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==",
+ "dev": true,
+ "requires": {
+ "md5.js": "1.3.4",
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "exit": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
+ "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=",
+ "dev": true
+ },
+ "exjs": {
+ "version": "github:BSick7/exjs#98195810790c0e61cb5beb510da4b756528f92f2",
+ "dev": true
+ },
+ "expand-brackets": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz",
+ "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=",
+ "dev": true,
+ "requires": {
+ "is-posix-bracket": "0.1.1"
+ }
+ },
+ "expand-range": {
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz",
+ "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=",
+ "dev": true,
+ "requires": {
+ "fill-range": "2.2.3"
+ }
+ },
+ "express-session": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.2.1.tgz",
+ "integrity": "sha1-J0GhZh6zpKF6fbCkgEn78FV05GU=",
+ "dev": true,
+ "requires": {
+ "buffer-crc32": "0.2.1",
+ "cookie": "0.1.2",
+ "cookie-signature": "1.0.3",
+ "debug": "0.8.1",
+ "on-headers": "0.0.0",
+ "uid2": "0.0.3",
+ "utils-merge": "1.0.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-0.8.1.tgz",
+ "integrity": "sha1-IP9NJvXkIstoobrLu2EDmtjBwTA=",
+ "dev": true
+ }
+ }
+ },
+ "extend": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",
+ "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=",
+ "dev": true,
+ "optional": true
+ },
+ "extensions": {
+ "version": "github:edsilv/extensions#d89cc2d73827e1cab11c9071599c837ebe6c58d6",
+ "dev": true
+ },
+ "extglob": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz",
+ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=",
+ "dev": true,
+ "requires": {
+ "is-extglob": "1.0.0"
+ }
+ },
+ "extsprintf": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
+ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
+ "dev": true
+ },
+ "figures": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz",
+ "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "1.0.5",
+ "object-assign": "4.1.1"
+ }
+ },
+ "filename-regex": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz",
+ "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=",
+ "dev": true
+ },
+ "fill-range": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz",
+ "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=",
+ "dev": true,
+ "requires": {
+ "is-number": "2.1.0",
+ "isobject": "2.1.0",
+ "randomatic": "1.1.7",
+ "repeat-element": "1.1.2",
+ "repeat-string": "1.6.1"
+ }
+ },
+ "find-up": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
+ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
+ "dev": true,
+ "requires": {
+ "path-exists": "2.1.0",
+ "pinkie-promise": "2.0.1"
+ }
+ },
+ "findup-sync": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz",
+ "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=",
+ "dev": true,
+ "requires": {
+ "glob": "3.2.11",
+ "lodash": "2.4.2"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "3.2.11",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz",
+ "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "minimatch": "0.3.0"
+ }
+ },
+ "lodash": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
+ "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz",
+ "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",
+ "dev": true,
+ "requires": {
+ "lru-cache": "2.7.3",
+ "sigmund": "1.0.1"
+ }
+ }
+ }
+ },
+ "finished": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/finished/-/finished-1.2.2.tgz",
+ "integrity": "sha1-QWCOr639ZWg7RqEiC8Sx7D2u3Ng=",
+ "dev": true,
+ "requires": {
+ "ee-first": "1.0.3"
+ }
+ },
+ "for-in": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
+ "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=",
+ "dev": true
+ },
+ "for-own": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz",
+ "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=",
+ "dev": true,
+ "requires": {
+ "for-in": "1.0.2"
+ }
+ },
+ "forever-agent": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.5.2.tgz",
+ "integrity": "sha1-bQ4JxJIflKJ/Y9O0nF/v8epMUTA=",
+ "dev": true
+ },
+ "form-data": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-0.1.4.tgz",
+ "integrity": "sha1-kavXiKupcCsaq/qLwBAxoqyeOxI=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "async": "0.9.2",
+ "combined-stream": "0.0.7",
+ "mime": "1.2.11"
+ }
+ },
+ "fresh": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.2.2.tgz",
+ "integrity": "sha1-lzHc9WeMf660T7kDxPct9VGH+nc=",
+ "dev": true
+ },
+ "get-stdin": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
+ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
+ "dev": true
+ },
+ "getobject": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz",
+ "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=",
+ "dev": true
+ },
+ "getpass": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
+ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "assert-plus": "1.0.0"
+ },
+ "dependencies": {
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "gherkin": {
+ "version": "2.12.2",
+ "resolved": "https://registry.npmjs.org/gherkin/-/gherkin-2.12.2.tgz",
+ "integrity": "sha1-PHRUfkZhNKDvg/YUsa38SJtw3GI=",
+ "dev": true
+ },
+ "glob": {
+ "version": "4.5.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz",
+ "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=",
+ "dev": true,
+ "requires": {
+ "inflight": "1.0.6",
+ "inherits": "2.0.3",
+ "minimatch": "2.0.10",
+ "once": "1.4.0"
+ }
+ },
+ "glob-array": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/glob-array/-/glob-array-0.1.2.tgz",
+ "integrity": "sha1-gF7lhZDqIpaQ1j6LCL16nXcsopE=",
+ "dev": true,
+ "requires": {
+ "glob": "4.0.4"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-4.0.4.tgz",
+ "integrity": "sha1-cwzgGQ2H7KeBI5gBjiG+cStNadI=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "3.0.11",
+ "inherits": "2.0.3",
+ "minimatch": "0.3.0",
+ "once": "1.4.0"
+ }
+ },
+ "minimatch": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz",
+ "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",
+ "dev": true,
+ "requires": {
+ "lru-cache": "2.7.3",
+ "sigmund": "1.0.1"
+ }
+ }
+ }
+ },
+ "glob-base": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz",
+ "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=",
+ "dev": true,
+ "requires": {
+ "glob-parent": "2.0.0",
+ "is-glob": "2.0.1"
+ }
+ },
+ "glob-parent": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz",
+ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=",
+ "dev": true,
+ "requires": {
+ "is-glob": "2.0.1"
+ }
+ },
+ "graceful-fs": {
+ "version": "3.0.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz",
+ "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "natives": "1.1.0"
+ }
+ },
+ "grunt": {
+ "version": "0.4.5",
+ "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz",
+ "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=",
+ "dev": true,
+ "requires": {
+ "async": "0.1.22",
+ "coffee-script": "1.3.3",
+ "colors": "0.6.2",
+ "dateformat": "1.0.2-1.2.3",
+ "eventemitter2": "0.4.14",
+ "exit": "0.1.2",
+ "findup-sync": "0.1.3",
+ "getobject": "0.1.0",
+ "glob": "3.1.21",
+ "grunt-legacy-log": "0.1.3",
+ "grunt-legacy-util": "0.2.0",
+ "hooker": "0.2.3",
+ "iconv-lite": "0.2.11",
+ "js-yaml": "2.0.5",
+ "lodash": "0.9.2",
+ "minimatch": "0.2.14",
+ "nopt": "1.0.10",
+ "rimraf": "2.2.8",
+ "underscore.string": "2.2.1",
+ "which": "1.0.9"
+ },
+ "dependencies": {
+ "async": {
+ "version": "0.1.22",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz",
+ "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=",
+ "dev": true
+ },
+ "coffee-script": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz",
+ "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=",
+ "dev": true
+ },
+ "eventemitter2": {
+ "version": "0.4.14",
+ "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz",
+ "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=",
+ "dev": true
+ },
+ "glob": {
+ "version": "3.1.21",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz",
+ "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "1.2.3",
+ "inherits": "1.0.2",
+ "minimatch": "0.2.14"
+ }
+ },
+ "graceful-fs": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz",
+ "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=",
+ "dev": true
+ },
+ "inherits": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz",
+ "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=",
+ "dev": true
+ },
+ "lodash": {
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz",
+ "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "0.2.14",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz",
+ "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=",
+ "dev": true,
+ "requires": {
+ "lru-cache": "2.7.3",
+ "sigmund": "1.0.1"
+ }
+ },
+ "nopt": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz",
+ "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=",
+ "dev": true,
+ "requires": {
+ "abbrev": "1.1.1"
+ }
+ },
+ "underscore.string": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz",
+ "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=",
+ "dev": true
+ }
+ }
+ },
+ "grunt-contrib-clean": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/grunt-contrib-clean/-/grunt-contrib-clean-0.4.1.tgz",
+ "integrity": "sha1-f49G4vKnGH6cLQg6swJiqmpk4zQ=",
+ "dev": true
+ },
+ "grunt-contrib-compress": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/grunt-contrib-compress/-/grunt-contrib-compress-0.5.3.tgz",
+ "integrity": "sha1-ujtbL/Q4xFMFeeaWLKuAaWWA6+0=",
+ "dev": true,
+ "requires": {
+ "archiver": "0.4.10",
+ "lazystream": "0.1.0",
+ "prettysize": "0.0.3"
+ }
+ },
+ "grunt-contrib-concat": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/grunt-contrib-concat/-/grunt-contrib-concat-1.0.1.tgz",
+ "integrity": "sha1-YVCYYwhOhx1+ht5IwBUlntl3Rb0=",
+ "dev": true,
+ "requires": {
+ "chalk": "1.1.3",
+ "source-map": "0.5.7"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "2.2.1",
+ "escape-string-regexp": "1.0.5",
+ "has-ansi": "2.0.0",
+ "strip-ansi": "3.0.1",
+ "supports-color": "2.0.0"
+ }
+ },
+ "has-ansi": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
+ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ }
+ },
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
+ "grunt-contrib-connect": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/grunt-contrib-connect/-/grunt-contrib-connect-0.8.0.tgz",
+ "integrity": "sha1-H3AEPjpHOuj7eorL+SnOEE6vQyM=",
+ "dev": true,
+ "requires": {
+ "async": "0.9.2",
+ "connect": "2.19.6",
+ "connect-livereload": "0.4.1",
+ "open": "0.0.5",
+ "portscanner": "0.2.3"
+ }
+ },
+ "grunt-contrib-copy": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-0.4.1.tgz",
+ "integrity": "sha1-8HU7QK4hu3BtrvsLKZ4DzfX6nW4=",
+ "dev": true
+ },
+ "grunt-contrib-uglify": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-1.0.2.tgz",
+ "integrity": "sha1-rmekb5FT7dTLEYE6Vetpxw19svs=",
+ "dev": true,
+ "requires": {
+ "chalk": "1.1.3",
+ "lodash": "4.17.4",
+ "maxmin": "1.1.0",
+ "uglify-js": "2.6.4",
+ "uri-path": "1.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "async": {
+ "version": "0.2.10",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz",
+ "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "2.2.1",
+ "escape-string-regexp": "1.0.5",
+ "has-ansi": "2.0.0",
+ "strip-ansi": "3.0.1",
+ "supports-color": "2.0.0"
+ }
+ },
+ "has-ansi": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
+ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ }
+ },
+ "lodash": {
+ "version": "4.17.4",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz",
+ "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ },
+ "uglify-js": {
+ "version": "2.6.4",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.6.4.tgz",
+ "integrity": "sha1-ZeovswWck5RpLxX+2HwrNsFrmt8=",
+ "dev": true,
+ "requires": {
+ "async": "0.2.10",
+ "source-map": "0.5.7",
+ "uglify-to-browserify": "1.0.2",
+ "yargs": "3.10.0"
+ }
+ },
+ "yargs": {
+ "version": "3.10.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",
+ "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=",
+ "dev": true,
+ "requires": {
+ "camelcase": "1.2.1",
+ "cliui": "2.1.0",
+ "decamelize": "1.2.0",
+ "window-size": "0.1.0"
+ }
+ }
+ }
+ },
+ "grunt-exec": {
+ "version": "0.4.7",
+ "resolved": "https://registry.npmjs.org/grunt-exec/-/grunt-exec-0.4.7.tgz",
+ "integrity": "sha1-QAUf+k6wyWV+BTuV6I1ENSocLCU=",
+ "dev": true
+ },
+ "grunt-legacy-log": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz",
+ "integrity": "sha1-7ClCboAwIa9ZAp+H0vnNczWgVTE=",
+ "dev": true,
+ "requires": {
+ "colors": "0.6.2",
+ "grunt-legacy-log-utils": "0.1.1",
+ "hooker": "0.2.3",
+ "lodash": "2.4.2",
+ "underscore.string": "2.3.3"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
+ "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
+ "dev": true
+ }
+ }
+ },
+ "grunt-legacy-log-utils": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz",
+ "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=",
+ "dev": true,
+ "requires": {
+ "colors": "0.6.2",
+ "lodash": "2.4.2",
+ "underscore.string": "2.3.3"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
+ "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
+ "dev": true
+ }
+ }
+ },
+ "grunt-legacy-util": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz",
+ "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=",
+ "dev": true,
+ "requires": {
+ "async": "0.1.22",
+ "exit": "0.1.2",
+ "getobject": "0.1.0",
+ "hooker": "0.2.3",
+ "lodash": "0.9.2",
+ "underscore.string": "2.2.1",
+ "which": "1.0.9"
+ },
+ "dependencies": {
+ "async": {
+ "version": "0.1.22",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz",
+ "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=",
+ "dev": true
+ },
+ "lodash": {
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz",
+ "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=",
+ "dev": true
+ },
+ "underscore.string": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz",
+ "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=",
+ "dev": true
+ }
+ }
+ },
+ "grunt-protractor-runner": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/grunt-protractor-runner/-/grunt-protractor-runner-1.2.1.tgz",
+ "integrity": "sha1-cm8zIIiJIZo3wgMsKOaAslO3+Pc=",
+ "dev": true,
+ "requires": {
+ "protractor": "1.3.1",
+ "split": "0.3.3",
+ "through2": "0.5.1"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "string_decoder": "0.10.31"
+ }
+ },
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
+ "dev": true
+ },
+ "through2": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-0.5.1.tgz",
+ "integrity": "sha1-390BLrnHAOIyP9M084rGIqs3Lac=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.0.34",
+ "xtend": "3.0.0"
+ }
+ }
+ }
+ },
+ "grunt-sync": {
+ "version": "0.2.4",
+ "resolved": "https://registry.npmjs.org/grunt-sync/-/grunt-sync-0.2.4.tgz",
+ "integrity": "sha1-OfeZUO+ur+48O6N/ypjPWU68VP4=",
+ "dev": true,
+ "requires": {
+ "glob": "4.5.3",
+ "lodash": "2.4.2",
+ "promised-io": "0.3.3"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
+ "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
+ "dev": true
+ }
+ }
+ },
+ "grunt-text-replace": {
+ "version": "0.3.12",
+ "resolved": "https://registry.npmjs.org/grunt-text-replace/-/grunt-text-replace-0.3.12.tgz",
+ "integrity": "sha1-i8EGiaPgm4DxhNfdTUKj1gnPWKU=",
+ "dev": true
+ },
+ "grunt-typescript": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/grunt-typescript/-/grunt-typescript-0.8.0.tgz",
+ "integrity": "sha1-Ir3UP/xZre6bzSdNMqC4PKVQApA=",
+ "dev": true,
+ "requires": {
+ "bluebird": "2.9.34",
+ "chokidar": "1.7.0",
+ "typescript": "1.6.2"
+ }
+ },
+ "gzip-size": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-1.0.0.tgz",
+ "integrity": "sha1-Zs+LEBBHInuVus5uodoMF37Vwi8=",
+ "dev": true,
+ "requires": {
+ "browserify-zlib": "0.1.4",
+ "concat-stream": "1.4.10"
+ }
+ },
+ "har-schema": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz",
+ "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=",
+ "dev": true,
+ "optional": true
+ },
+ "har-validator": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz",
+ "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "ajv": "4.11.8",
+ "har-schema": "1.0.5"
+ }
+ },
+ "has-ansi": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz",
+ "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "0.2.1"
+ }
+ },
+ "hash-base": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz",
+ "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3"
+ }
+ },
+ "hash.js": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz",
+ "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "minimalistic-assert": "1.0.0"
+ }
+ },
+ "hawk": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz",
+ "integrity": "sha1-uQuxaYByhUEdp//LjdJZhQLTtS0=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "boom": "0.4.2",
+ "cryptiles": "0.2.2",
+ "hoek": "0.9.1",
+ "sntp": "0.2.4"
+ }
+ },
+ "hide-stack-frames-from": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/hide-stack-frames-from/-/hide-stack-frames-from-1.0.0.tgz",
+ "integrity": "sha1-Wkr0UEc5H8nNefzor2c9i3RjIp8=",
+ "dev": true,
+ "requires": {
+ "stack-chain": "1.3.7"
+ }
+ },
+ "hmac-drbg": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz",
+ "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=",
+ "dev": true,
+ "requires": {
+ "hash.js": "1.1.3",
+ "minimalistic-assert": "1.0.0",
+ "minimalistic-crypto-utils": "1.0.1"
+ }
+ },
+ "hoek": {
+ "version": "0.9.1",
+ "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz",
+ "integrity": "sha1-PTIkYrrfB3Fup+uFuviAec3c5QU=",
+ "dev": true
+ },
+ "hooker": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz",
+ "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=",
+ "dev": true
+ },
+ "hosted-git-info": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
+ "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==",
+ "dev": true
+ },
+ "http-browserify": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/http-browserify/-/http-browserify-1.7.0.tgz",
+ "integrity": "sha1-M3la3nLfiKz7/TZ3PO/tp2RzWyA=",
+ "dev": true,
+ "requires": {
+ "Base64": "0.2.1",
+ "inherits": "2.0.3"
+ }
+ },
+ "http-signature": {
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-0.10.1.tgz",
+ "integrity": "sha1-T72sEyVZqoMjEh5UB3nAoBKyfmY=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "asn1": "0.1.11",
+ "assert-plus": "0.1.5",
+ "ctype": "0.5.3"
+ }
+ },
+ "http-status-codes": {
+ "version": "github:edsilv/http-status-codes#1f8456f7af1edc92350f8a5df6d3d2887a2cad58",
+ "dev": true
+ },
+ "https-browserify": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz",
+ "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=",
+ "dev": true
+ },
+ "iconv-lite": {
+ "version": "0.2.11",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz",
+ "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=",
+ "dev": true
+ },
+ "ieee754": {
+ "version": "1.1.8",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz",
+ "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=",
+ "dev": true
+ },
+ "iiif-gallery-component": {
+ "version": "github:viewdir/iiif-gallery-component#28286739819e61fa0977d3bbd8354d39a8f1b8e9",
+ "dev": true
+ },
+ "iiif-metadata-component": {
+ "version": "github:viewdir/iiif-metadata-component#29e754fb67b33cccb63732c3576e35b47672788b",
+ "dev": true
+ },
+ "iiif-tree-component": {
+ "version": "github:viewdir/iiif-tree-component#d55bd6a333675caa82754eaf044e4c81eb9b93b1",
+ "dev": true
+ },
+ "image-size": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
+ "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=",
+ "dev": true,
+ "optional": true
+ },
+ "indent-string": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
+ "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
+ "dev": true,
+ "requires": {
+ "repeating": "2.0.1"
+ }
+ },
+ "indexof": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz",
+ "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=",
+ "dev": true
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "dev": true,
+ "requires": {
+ "once": "1.4.0",
+ "wrappy": "1.0.2"
+ }
+ },
+ "inherits": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
+ "dev": true
+ },
+ "inline-source-map": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.3.1.tgz",
+ "integrity": "sha1-pSi1FOaJ/OkNswiehw2S9Sestes=",
+ "dev": true,
+ "requires": {
+ "source-map": "0.3.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.3.0.tgz",
+ "integrity": "sha1-hYb7mloAXltQHiHNGLbyG0V60fk=",
+ "dev": true,
+ "requires": {
+ "amdefine": "1.0.1"
+ }
+ }
+ }
+ },
+ "insert-module-globals": {
+ "version": "6.6.3",
+ "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-6.6.3.tgz",
+ "integrity": "sha1-IGOOKaMPntHKLjqCX7wsulJG3fw=",
+ "dev": true,
+ "requires": {
+ "JSONStream": "1.3.1",
+ "combine-source-map": "0.6.1",
+ "concat-stream": "1.4.10",
+ "is-buffer": "1.1.6",
+ "lexical-scope": "1.2.0",
+ "process": "0.11.10",
+ "through2": "1.1.1",
+ "xtend": "4.0.1"
+ },
+ "dependencies": {
+ "JSONStream": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz",
+ "integrity": "sha1-cH92HgHa6eFvG8+TcDt4xwlmV5o=",
+ "dev": true,
+ "requires": {
+ "jsonparse": "1.3.1",
+ "through": "2.3.8"
+ }
+ },
+ "combine-source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.6.1.tgz",
+ "integrity": "sha1-m0oJwxYDPXaODxHgKfonMOB5rZY=",
+ "dev": true,
+ "requires": {
+ "convert-source-map": "1.1.3",
+ "inline-source-map": "0.5.0",
+ "lodash.memoize": "3.0.4",
+ "source-map": "0.4.4"
+ }
+ },
+ "convert-source-map": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz",
+ "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=",
+ "dev": true
+ },
+ "inline-source-map": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.5.0.tgz",
+ "integrity": "sha1-Skxd2OT7Xps82mDIIt+tyu5m4K8=",
+ "dev": true,
+ "requires": {
+ "source-map": "0.4.4"
+ }
+ },
+ "jsonparse": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
+ "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=",
+ "dev": true
+ },
+ "process": {
+ "version": "0.11.10",
+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.4.4",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
+ "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=",
+ "dev": true,
+ "requires": {
+ "amdefine": "1.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
+ "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=",
+ "dev": true
+ }
+ }
+ },
+ "is-array": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz",
+ "integrity": "sha1-6YUMwsyGDDvAl36EzPDdRkWEJ5o=",
+ "dev": true
+ },
+ "is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz",
+ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "1.10.0"
+ }
+ },
+ "is-buffer": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
+ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "dev": true
+ },
+ "is-builtin-module": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz",
+ "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=",
+ "dev": true,
+ "requires": {
+ "builtin-modules": "1.1.1"
+ }
+ },
+ "is-dotfile": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz",
+ "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=",
+ "dev": true
+ },
+ "is-equal-shallow": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz",
+ "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=",
+ "dev": true,
+ "requires": {
+ "is-primitive": "2.0.0"
+ }
+ },
+ "is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=",
+ "dev": true
+ },
+ "is-extglob": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz",
+ "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=",
+ "dev": true
+ },
+ "is-finite": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz",
+ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=",
+ "dev": true,
+ "requires": {
+ "number-is-nan": "1.0.1"
+ }
+ },
+ "is-glob": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz",
+ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=",
+ "dev": true,
+ "requires": {
+ "is-extglob": "1.0.0"
+ }
+ },
+ "is-number": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz",
+ "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=",
+ "dev": true,
+ "requires": {
+ "kind-of": "3.2.2"
+ }
+ },
+ "is-posix-bracket": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz",
+ "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=",
+ "dev": true
+ },
+ "is-primitive": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz",
+ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=",
+ "dev": true
+ },
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
+ "dev": true,
+ "optional": true
+ },
+ "is-utf8": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
+ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
+ "dev": true
+ },
+ "isarray": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
+ "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
+ "dev": true
+ },
+ "isobject": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz",
+ "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=",
+ "dev": true,
+ "requires": {
+ "isarray": "1.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+ "dev": true
+ }
+ }
+ },
+ "isstream": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
+ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
+ "dev": true,
+ "optional": true
+ },
+ "jasminewd": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/jasminewd/-/jasminewd-1.1.0.tgz",
+ "integrity": "sha1-JXUaaEXvL7Qkwvo5ZHmHrhVv1DM=",
+ "dev": true
+ },
+ "jquery-plugins": {
+ "version": "github:edsilv/jquery-plugins#5abffd80664419927e9af75ff68efa5fc35caafd",
+ "dev": true,
+ "requires": {
+ "@types/jquery": "2.0.48"
+ }
+ },
+ "jquery-tiny-pubsub": {
+ "version": "github:edsilv/jquery-tiny-pubsub#c801220363e9c021f9f16a5698a185853a4205d1",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz",
+ "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=",
+ "dev": true,
+ "requires": {
+ "argparse": "0.1.16",
+ "esprima": "1.0.4"
+ }
+ },
+ "jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
+ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
+ "dev": true,
+ "optional": true
+ },
+ "json-schema": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
+ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
+ "dev": true,
+ "optional": true
+ },
+ "json-schema-generator": {
+ "version": "github:krg7880/json-schema-generator#27d5a84721c4cd496a2a37bbefda09c07a59f6a1",
+ "dev": true,
+ "requires": {
+ "json-promise": "1.1.8",
+ "mkdirp": "0.5.1",
+ "optimist": "0.6.1",
+ "pretty-data": "0.40.0",
+ "request": "2.83.0"
+ },
+ "dependencies": {
+ "ajv": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.2.3.tgz",
+ "integrity": "sha1-wG9Zh3jETGsWGrr+NGa4GtGBTtI=",
+ "dev": true,
+ "requires": {
+ "co": "4.6.0",
+ "fast-deep-equal": "1.0.0",
+ "json-schema-traverse": "0.3.1",
+ "json-stable-stringify": "1.0.1"
+ }
+ },
+ "asn1": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
+ "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",
+ "dev": true
+ },
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true
+ },
+ "asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
+ "dev": true
+ },
+ "aws-sign2": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
+ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
+ "dev": true
+ },
+ "aws4": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz",
+ "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=",
+ "dev": true
+ },
+ "bcrypt-pbkdf": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
+ "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "tweetnacl": "0.14.5"
+ }
+ },
+ "boom": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz",
+ "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=",
+ "dev": true,
+ "requires": {
+ "hoek": "4.2.0"
+ }
+ },
+ "caseless": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
+ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
+ "dev": true
+ },
+ "co": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
+ "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
+ "dev": true
+ },
+ "combined-stream": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz",
+ "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=",
+ "dev": true,
+ "requires": {
+ "delayed-stream": "1.0.0"
+ }
+ },
+ "core-util-is": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
+ "dev": true
+ },
+ "cryptiles": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz",
+ "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=",
+ "dev": true,
+ "requires": {
+ "boom": "5.2.0"
+ },
+ "dependencies": {
+ "boom": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz",
+ "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==",
+ "dev": true,
+ "requires": {
+ "hoek": "4.2.0"
+ }
+ }
+ }
+ },
+ "dashdash": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
+ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "1.0.0"
+ }
+ },
+ "delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
+ "dev": true
+ },
+ "ecc-jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
+ "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "jsbn": "0.1.1"
+ }
+ },
+ "extend": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",
+ "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=",
+ "dev": true
+ },
+ "extsprintf": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
+ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
+ "dev": true
+ },
+ "fast-deep-equal": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz",
+ "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=",
+ "dev": true
+ },
+ "forever-agent": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
+ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
+ "dev": true
+ },
+ "form-data": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.1.tgz",
+ "integrity": "sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8=",
+ "dev": true,
+ "requires": {
+ "asynckit": "0.4.0",
+ "combined-stream": "1.0.5",
+ "mime-types": "2.1.17"
+ }
+ },
+ "getpass": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
+ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "1.0.0"
+ }
+ },
+ "har-schema": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
+ "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
+ "dev": true
+ },
+ "har-validator": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
+ "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
+ "dev": true,
+ "requires": {
+ "ajv": "5.2.3",
+ "har-schema": "2.0.0"
+ }
+ },
+ "hawk": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz",
+ "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==",
+ "dev": true,
+ "requires": {
+ "boom": "4.3.1",
+ "cryptiles": "3.1.2",
+ "hoek": "4.2.0",
+ "sntp": "2.0.2"
+ }
+ },
+ "hoek": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz",
+ "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==",
+ "dev": true
+ },
+ "http-signature": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
+ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "1.0.0",
+ "jsprim": "1.4.1",
+ "sshpk": "1.13.1"
+ }
+ },
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
+ "dev": true
+ },
+ "isstream": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
+ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
+ "dev": true
+ },
+ "jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
+ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
+ "dev": true,
+ "optional": true
+ },
+ "json-promise": {
+ "version": "1.1.8",
+ "resolved": "https://registry.npmjs.org/json-promise/-/json-promise-1.1.8.tgz",
+ "integrity": "sha1-e3QSBCLRbdtEmqMXBAP8aa1BZAI=",
+ "dev": true,
+ "requires": {
+ "bluebird": "2.2.2"
+ },
+ "dependencies": {
+ "bluebird": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.2.2.tgz",
+ "integrity": "sha1-8b8Fq8iHz5pwOIYjfChhCkOx8RQ=",
+ "dev": true
+ }
+ }
+ },
+ "json-schema": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
+ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
+ "dev": true
+ },
+ "json-schema-traverse": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
+ "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=",
+ "dev": true
+ },
+ "json-stable-stringify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
+ "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
+ "dev": true,
+ "requires": {
+ "jsonify": "0.0.0"
+ }
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
+ "dev": true
+ },
+ "jsonify": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
+ "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
+ "dev": true
+ },
+ "jsprim": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
+ "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.2.3",
+ "verror": "1.10.0"
+ }
+ },
+ "mime-db": {
+ "version": "1.30.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz",
+ "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=",
+ "dev": true
+ },
+ "mime-types": {
+ "version": "2.1.17",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz",
+ "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=",
+ "dev": true,
+ "requires": {
+ "mime-db": "1.30.0"
+ }
+ },
+ "minimist": {
+ "version": "0.0.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
+ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
+ "dev": true
+ },
+ "mkdirp": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
+ "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
+ "dev": true,
+ "requires": {
+ "minimist": "0.0.8"
+ }
+ },
+ "oauth-sign": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
+ "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=",
+ "dev": true
+ },
+ "optimist": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",
+ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
+ "dev": true,
+ "requires": {
+ "minimist": "0.0.8",
+ "wordwrap": "0.0.3"
+ }
+ },
+ "performance-now": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
+ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
+ "dev": true
+ },
+ "pretty-data": {
+ "version": "0.40.0",
+ "resolved": "https://registry.npmjs.org/pretty-data/-/pretty-data-0.40.0.tgz",
+ "integrity": "sha1-Vyqo6iNGdGerlLa1Jmpv2cj93XI=",
+ "dev": true
+ },
+ "punycode": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
+ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
+ "dev": true
+ },
+ "qs": {
+ "version": "6.5.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
+ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==",
+ "dev": true
+ },
+ "request": {
+ "version": "2.83.0",
+ "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz",
+ "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==",
+ "dev": true,
+ "requires": {
+ "aws-sign2": "0.7.0",
+ "aws4": "1.6.0",
+ "caseless": "0.12.0",
+ "combined-stream": "1.0.5",
+ "extend": "3.0.1",
+ "forever-agent": "0.6.1",
+ "form-data": "2.3.1",
+ "har-validator": "5.0.3",
+ "hawk": "6.0.2",
+ "http-signature": "1.2.0",
+ "is-typedarray": "1.0.0",
+ "isstream": "0.1.2",
+ "json-stringify-safe": "5.0.1",
+ "mime-types": "2.1.17",
+ "oauth-sign": "0.8.2",
+ "performance-now": "2.1.0",
+ "qs": "6.5.1",
+ "safe-buffer": "5.1.1",
+ "stringstream": "0.0.5",
+ "tough-cookie": "2.3.3",
+ "tunnel-agent": "0.6.0",
+ "uuid": "3.1.0"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
+ "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",
+ "dev": true
+ },
+ "sntp": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.0.2.tgz",
+ "integrity": "sha1-UGQRDwr4X3z9t9a2ekACjOUrSys=",
+ "dev": true,
+ "requires": {
+ "hoek": "4.2.0"
+ }
+ },
+ "sshpk": {
+ "version": "1.13.1",
+ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz",
+ "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=",
+ "dev": true,
+ "requires": {
+ "asn1": "0.2.3",
+ "assert-plus": "1.0.0",
+ "bcrypt-pbkdf": "1.0.1",
+ "dashdash": "1.14.1",
+ "ecc-jsbn": "0.1.1",
+ "getpass": "0.1.7",
+ "jsbn": "0.1.1",
+ "tweetnacl": "0.14.5"
+ }
+ },
+ "stringstream": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
+ "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=",
+ "dev": true
+ },
+ "tough-cookie": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz",
+ "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=",
+ "dev": true,
+ "requires": {
+ "punycode": "1.4.1"
+ }
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "tweetnacl": {
+ "version": "0.14.5",
+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
+ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
+ "dev": true,
+ "optional": true
+ },
+ "uuid": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
+ "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==",
+ "dev": true
+ },
+ "verror": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
+ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "1.3.0"
+ }
+ },
+ "wordwrap": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
+ "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=",
+ "dev": true
+ }
+ }
+ },
+ "json-stable-stringify": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz",
+ "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=",
+ "dev": true,
+ "requires": {
+ "jsonify": "0.0.0"
+ }
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
+ "dev": true
+ },
+ "jsonify": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
+ "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
+ "dev": true
+ },
+ "jsonparse": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-0.0.5.tgz",
+ "integrity": "sha1-MwVCrT8KZUZlt3jz6y2an6UHrGQ=",
+ "dev": true
+ },
+ "jsprim": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
+ "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.2.3",
+ "verror": "1.10.0"
+ },
+ "dependencies": {
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "key-codes": {
+ "version": "github:edsilv/key-codes#c836a2d38150e3803b755acdc4a9a246643d3158",
+ "dev": true
+ },
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "1.1.6"
+ }
+ },
+ "labeled-stream-splicer": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-1.0.2.tgz",
+ "integrity": "sha1-RhUzFTd4SYHo/SZOHzpDTE4N3WU=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "stream-splicer": "1.3.2"
+ }
+ },
+ "lazy-cache": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz",
+ "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=",
+ "dev": true
+ },
+ "lazystream": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-0.1.0.tgz",
+ "integrity": "sha1-GyXWPHcqTCDwpe0KnXf0hLbhaSA=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.0.34"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "string_decoder": "0.10.31"
+ }
+ },
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
+ "dev": true
+ }
+ }
+ },
+ "less": {
+ "version": "2.7.3",
+ "resolved": "https://registry.npmjs.org/less/-/less-2.7.3.tgz",
+ "integrity": "sha512-KPdIJKWcEAb02TuJtaLrhue0krtRLoRoo7x6BNJIBelO00t/CCdJQUnHW5V34OnHMWzIktSalJxRO+FvytQlCQ==",
+ "dev": true,
+ "requires": {
+ "errno": "0.1.4",
+ "graceful-fs": "4.1.11",
+ "image-size": "0.5.5",
+ "mime": "1.2.11",
+ "mkdirp": "0.5.1",
+ "promise": "7.3.1",
+ "request": "2.81.0",
+ "source-map": "0.5.7"
+ },
+ "dependencies": {
+ "assert-plus": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz",
+ "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=",
+ "dev": true,
+ "optional": true
+ },
+ "aws-sign2": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz",
+ "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=",
+ "dev": true,
+ "optional": true
+ },
+ "boom": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz",
+ "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=",
+ "dev": true,
+ "requires": {
+ "hoek": "2.16.3"
+ }
+ },
+ "combined-stream": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz",
+ "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=",
+ "dev": true,
+ "requires": {
+ "delayed-stream": "1.0.0"
+ }
+ },
+ "cryptiles": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz",
+ "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "boom": "2.10.1"
+ }
+ },
+ "delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
+ "dev": true
+ },
+ "forever-agent": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
+ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
+ "dev": true,
+ "optional": true
+ },
+ "form-data": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz",
+ "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "asynckit": "0.4.0",
+ "combined-stream": "1.0.5",
+ "mime-types": "2.1.17"
+ }
+ },
+ "graceful-fs": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
+ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
+ "dev": true,
+ "optional": true
+ },
+ "hawk": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz",
+ "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "boom": "2.10.1",
+ "cryptiles": "2.0.5",
+ "hoek": "2.16.3",
+ "sntp": "1.0.9"
+ }
+ },
+ "hoek": {
+ "version": "2.16.3",
+ "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
+ "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=",
+ "dev": true
+ },
+ "http-signature": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
+ "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "assert-plus": "0.2.0",
+ "jsprim": "1.4.1",
+ "sshpk": "1.13.1"
+ }
+ },
+ "mime-types": {
+ "version": "2.1.17",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz",
+ "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=",
+ "dev": true,
+ "requires": {
+ "mime-db": "1.30.0"
+ }
+ },
+ "minimist": {
+ "version": "0.0.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
+ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
+ "dev": true,
+ "optional": true
+ },
+ "mkdirp": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
+ "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "minimist": "0.0.8"
+ }
+ },
+ "oauth-sign": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
+ "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=",
+ "dev": true,
+ "optional": true
+ },
+ "qs": {
+ "version": "6.4.0",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz",
+ "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=",
+ "dev": true,
+ "optional": true
+ },
+ "request": {
+ "version": "2.81.0",
+ "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz",
+ "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "aws-sign2": "0.6.0",
+ "aws4": "1.6.0",
+ "caseless": "0.12.0",
+ "combined-stream": "1.0.5",
+ "extend": "3.0.1",
+ "forever-agent": "0.6.1",
+ "form-data": "2.1.4",
+ "har-validator": "4.2.1",
+ "hawk": "3.1.3",
+ "http-signature": "1.1.1",
+ "is-typedarray": "1.0.0",
+ "isstream": "0.1.2",
+ "json-stringify-safe": "5.0.1",
+ "mime-types": "2.1.17",
+ "oauth-sign": "0.8.2",
+ "performance-now": "0.2.0",
+ "qs": "6.4.0",
+ "safe-buffer": "5.1.1",
+ "stringstream": "0.0.5",
+ "tough-cookie": "2.3.3",
+ "tunnel-agent": "0.6.0",
+ "uuid": "3.1.0"
+ }
+ },
+ "sntp": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz",
+ "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "hoek": "2.16.3"
+ }
+ },
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true,
+ "optional": true
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "uuid": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
+ "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "lexical-scope": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz",
+ "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=",
+ "dev": true,
+ "requires": {
+ "astw": "2.2.0"
+ }
+ },
+ "load-json-file": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
+ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "4.1.11",
+ "parse-json": "2.2.0",
+ "pify": "2.3.0",
+ "pinkie-promise": "2.0.1",
+ "strip-bom": "2.0.0"
+ },
+ "dependencies": {
+ "graceful-fs": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
+ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
+ "dev": true
+ }
+ }
+ },
+ "lodash": {
+ "version": "3.10.1",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz",
+ "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=",
+ "dev": true
+ },
+ "lodash.memoize": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz",
+ "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=",
+ "dev": true
+ },
+ "longest": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",
+ "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=",
+ "dev": true
+ },
+ "loud-rejection": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
+ "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
+ "dev": true,
+ "requires": {
+ "currently-unhandled": "0.4.1",
+ "signal-exit": "3.0.2"
+ }
+ },
+ "lru-cache": {
+ "version": "2.7.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz",
+ "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=",
+ "dev": true
+ },
+ "manifold": {
+ "version": "github:viewdir/manifold#106ffaa762899e82153f99b361aebed68226fb79",
+ "dev": true
+ },
+ "map-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
+ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
+ "dev": true
+ },
+ "maxmin": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-1.1.0.tgz",
+ "integrity": "sha1-cTZehKmd2Piz99X94vANHn9zvmE=",
+ "dev": true,
+ "requires": {
+ "chalk": "1.1.3",
+ "figures": "1.7.0",
+ "gzip-size": "1.0.0",
+ "pretty-bytes": "1.0.4"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "2.2.1",
+ "escape-string-regexp": "1.0.5",
+ "has-ansi": "2.0.0",
+ "strip-ansi": "3.0.1",
+ "supports-color": "2.0.0"
+ }
+ },
+ "has-ansi": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
+ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
+ "md5.js": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
+ "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=",
+ "dev": true,
+ "requires": {
+ "hash-base": "3.0.4",
+ "inherits": "2.0.3"
+ },
+ "dependencies": {
+ "hash-base": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz",
+ "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "safe-buffer": "5.1.1"
+ }
+ }
+ }
+ },
+ "meow": {
+ "version": "3.7.0",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
+ "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
+ "dev": true,
+ "requires": {
+ "camelcase-keys": "2.1.0",
+ "decamelize": "1.2.0",
+ "loud-rejection": "1.6.0",
+ "map-obj": "1.0.1",
+ "minimist": "1.2.0",
+ "normalize-package-data": "2.4.0",
+ "object-assign": "4.1.1",
+ "read-pkg-up": "1.0.1",
+ "redent": "1.0.0",
+ "trim-newlines": "1.0.0"
+ }
+ },
+ "method-override": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/method-override/-/method-override-2.0.2.tgz",
+ "integrity": "sha1-AFMSeMeXiWQL8n6X4mo6Wh98ynM=",
+ "dev": true,
+ "requires": {
+ "methods": "1.0.1",
+ "parseurl": "1.0.1",
+ "vary": "0.1.0"
+ }
+ },
+ "methods": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.0.1.tgz",
+ "integrity": "sha1-dbyRlD3/19oDfPPusO1zoAN80Us=",
+ "dev": true
+ },
+ "micromatch": {
+ "version": "2.3.11",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz",
+ "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=",
+ "dev": true,
+ "requires": {
+ "arr-diff": "2.0.0",
+ "array-unique": "0.2.1",
+ "braces": "1.8.5",
+ "expand-brackets": "0.1.5",
+ "extglob": "0.3.2",
+ "filename-regex": "2.0.1",
+ "is-extglob": "1.0.0",
+ "is-glob": "2.0.1",
+ "kind-of": "3.2.2",
+ "normalize-path": "2.1.1",
+ "object.omit": "2.0.1",
+ "parse-glob": "3.0.4",
+ "regex-cache": "0.4.4"
+ }
+ },
+ "miller-rabin": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz",
+ "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "brorand": "1.1.0"
+ }
+ },
+ "mime": {
+ "version": "1.2.11",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz",
+ "integrity": "sha1-WCA+7Ybjpe8XrtK32evUfwpg3RA=",
+ "dev": true
+ },
+ "mime-db": {
+ "version": "1.30.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz",
+ "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=",
+ "dev": true
+ },
+ "mime-types": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-1.0.0.tgz",
+ "integrity": "sha1-antKavLn2S+Xr+A/BHx4AejwAdI=",
+ "dev": true
+ },
+ "minijasminenode": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/minijasminenode/-/minijasminenode-1.1.1.tgz",
+ "integrity": "sha1-f5Y31mQopTHAX08QtpoxG137YOk=",
+ "dev": true
+ },
+ "minimalistic-assert": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz",
+ "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=",
+ "dev": true
+ },
+ "minimalistic-crypto-utils": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz",
+ "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "2.0.10",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz",
+ "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "1.1.8"
+ }
+ },
+ "minimist": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
+ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
+ "dev": true
+ },
+ "mkdirp": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz",
+ "integrity": "sha1-3j5fiWHIjHh+4TaN+EmsRBPsqNc=",
+ "dev": true
+ },
+ "module-deps": {
+ "version": "3.9.1",
+ "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-3.9.1.tgz",
+ "integrity": "sha1-6nXK+RmQkNJbDVUStaysuW5/h/M=",
+ "dev": true,
+ "requires": {
+ "JSONStream": "1.3.1",
+ "browser-resolve": "1.11.2",
+ "concat-stream": "1.4.10",
+ "defined": "1.0.0",
+ "detective": "4.5.0",
+ "duplexer2": "0.0.2",
+ "inherits": "2.0.3",
+ "parents": "1.0.1",
+ "readable-stream": "1.1.14",
+ "resolve": "1.5.0",
+ "stream-combiner2": "1.0.2",
+ "subarg": "1.0.0",
+ "through2": "1.1.1",
+ "xtend": "4.0.1"
+ },
+ "dependencies": {
+ "JSONStream": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz",
+ "integrity": "sha1-cH92HgHa6eFvG8+TcDt4xwlmV5o=",
+ "dev": true,
+ "requires": {
+ "jsonparse": "1.3.1",
+ "through": "2.3.8"
+ }
+ },
+ "defined": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz",
+ "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=",
+ "dev": true
+ },
+ "jsonparse": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
+ "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=",
+ "dev": true
+ },
+ "parents": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz",
+ "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=",
+ "dev": true,
+ "requires": {
+ "path-platform": "0.11.15"
+ }
+ },
+ "resolve": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz",
+ "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==",
+ "dev": true,
+ "requires": {
+ "path-parse": "1.0.5"
+ }
+ },
+ "subarg": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz",
+ "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=",
+ "dev": true,
+ "requires": {
+ "minimist": "1.2.0"
+ }
+ },
+ "xtend": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
+ "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=",
+ "dev": true
+ }
+ }
+ },
+ "morgan": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.1.1.tgz",
+ "integrity": "sha1-zeRdLoB+vMQ5dFhG6oA5LmkJgUY=",
+ "dev": true,
+ "requires": {
+ "bytes": "1.0.0"
+ }
+ },
+ "ms": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz",
+ "integrity": "sha1-2JwhJMb9wTU9Zai3e/GqxLGTcIw=",
+ "dev": true
+ },
+ "multiparty": {
+ "version": "3.2.8",
+ "resolved": "https://registry.npmjs.org/multiparty/-/multiparty-3.2.8.tgz",
+ "integrity": "sha1-veITAdrSlChuFVsrYHEMauBK5k8=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.1.14",
+ "stream-counter": "0.2.0"
+ }
+ },
+ "natives": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
+ "integrity": "sha1-6f+EFBimsux6SV6TmYT3jxY+bjE=",
+ "dev": true,
+ "optional": true
+ },
+ "ncp": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
+ "integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=",
+ "dev": true
+ },
+ "negotiator": {
+ "version": "0.4.6",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.4.6.tgz",
+ "integrity": "sha1-9F+vn6gz7TylElDqmn3fxCZ6RLM=",
+ "dev": true
+ },
+ "node-uuid": {
+ "version": "1.4.8",
+ "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz",
+ "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=",
+ "dev": true
+ },
+ "nopt": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.1.tgz",
+ "integrity": "sha1-vOXEJEajKR9HYio3CrvxWPu6y/0=",
+ "dev": true,
+ "requires": {
+ "abbrev": "1.1.1"
+ }
+ },
+ "normalize-package-data": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
+ "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
+ "dev": true,
+ "requires": {
+ "hosted-git-info": "2.5.0",
+ "is-builtin-module": "1.0.0",
+ "semver": "5.4.1",
+ "validate-npm-package-license": "3.0.1"
+ }
+ },
+ "normalize-path": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz",
+ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=",
+ "dev": true,
+ "requires": {
+ "remove-trailing-separator": "1.1.0"
+ }
+ },
+ "number-is-nan": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
+ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
+ "dev": true
+ },
+ "oauth-sign": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz",
+ "integrity": "sha1-y1QPk7srIqfVlBaRoojWDo6pOG4=",
+ "dev": true,
+ "optional": true
+ },
+ "object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true
+ },
+ "object.omit": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz",
+ "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=",
+ "dev": true,
+ "requires": {
+ "for-own": "0.1.5",
+ "is-extendable": "0.1.1"
+ }
+ },
+ "on-headers": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-0.0.0.tgz",
+ "integrity": "sha1-7igX+DRDJXhc2cLfKyQrvBfK9MQ=",
+ "dev": true
+ },
+ "once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "dev": true,
+ "requires": {
+ "wrappy": "1.0.2"
+ }
+ },
+ "open": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/open/-/open-0.0.5.tgz",
+ "integrity": "sha1-QsPhjslUZra/DcQvOilFw/DK2Pw=",
+ "dev": true
+ },
+ "openseadragon": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/openseadragon/-/openseadragon-2.3.1.tgz",
+ "integrity": "sha1-79z+4Z2LPEbQDX992nh8cFf2g2Q=",
+ "dev": true
+ },
+ "optimist": {
+ "version": "0.3.7",
+ "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz",
+ "integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=",
+ "dev": true,
+ "requires": {
+ "wordwrap": "0.0.3"
+ }
+ },
+ "os-browserify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.1.2.tgz",
+ "integrity": "sha1-ScoCk+CxlZCl9d4Qx/JlphfY/lQ=",
+ "dev": true
+ },
+ "pako": {
+ "version": "0.2.9",
+ "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz",
+ "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=",
+ "dev": true
+ },
+ "parents": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/parents/-/parents-0.0.3.tgz",
+ "integrity": "sha1-+iEvAk2fpjGNu2tM5nbIvkk7nEM=",
+ "dev": true,
+ "requires": {
+ "path-platform": "0.0.1"
+ },
+ "dependencies": {
+ "path-platform": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.0.1.tgz",
+ "integrity": "sha1-tVhdfDxGPYmqAGDYZhHPGv1hfio=",
+ "dev": true
+ }
+ }
+ },
+ "parse-asn1": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz",
+ "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=",
+ "dev": true,
+ "requires": {
+ "asn1.js": "4.9.2",
+ "browserify-aes": "1.1.1",
+ "create-hash": "1.1.3",
+ "evp_bytestokey": "1.0.3",
+ "pbkdf2": "3.0.14"
+ }
+ },
+ "parse-glob": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz",
+ "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=",
+ "dev": true,
+ "requires": {
+ "glob-base": "0.3.0",
+ "is-dotfile": "1.0.3",
+ "is-extglob": "1.0.0",
+ "is-glob": "2.0.1"
+ }
+ },
+ "parse-json": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
+ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
+ "dev": true,
+ "requires": {
+ "error-ex": "1.3.1"
+ }
+ },
+ "parseurl": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.0.1.tgz",
+ "integrity": "sha1-Llfc5u/dN8NRhwEDCUTCK/OIt7Q=",
+ "dev": true
+ },
+ "path-browserify": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz",
+ "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=",
+ "dev": true
+ },
+ "path-exists": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
+ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
+ "dev": true,
+ "requires": {
+ "pinkie-promise": "2.0.1"
+ }
+ },
+ "path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
+ "dev": true
+ },
+ "path-parse": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz",
+ "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=",
+ "dev": true
+ },
+ "path-platform": {
+ "version": "0.11.15",
+ "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz",
+ "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=",
+ "dev": true
+ },
+ "path-type": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
+ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "4.1.11",
+ "pify": "2.3.0",
+ "pinkie-promise": "2.0.1"
+ },
+ "dependencies": {
+ "graceful-fs": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
+ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
+ "dev": true
+ }
+ }
+ },
+ "pause": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
+ "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=",
+ "dev": true
+ },
+ "pbkdf2": {
+ "version": "3.0.14",
+ "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz",
+ "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==",
+ "dev": true,
+ "requires": {
+ "create-hash": "1.1.3",
+ "create-hmac": "1.1.6",
+ "ripemd160": "2.0.1",
+ "safe-buffer": "5.1.1",
+ "sha.js": "2.4.9"
+ }
+ },
+ "performance-now": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz",
+ "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=",
+ "dev": true,
+ "optional": true
+ },
+ "pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+ "dev": true
+ },
+ "pinkie": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
+ "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
+ "dev": true
+ },
+ "pinkie-promise": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
+ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
+ "dev": true,
+ "requires": {
+ "pinkie": "2.0.4"
+ }
+ },
+ "pogo": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/pogo/-/pogo-0.9.4.tgz",
+ "integrity": "sha1-cS1xHMRGzW8xucOPbP3lkQ5B9SY=",
+ "dev": true,
+ "requires": {
+ "source-map": "0.1.43",
+ "uglify-js": "2.4.24",
+ "underscore": "1.4.4"
+ },
+ "dependencies": {
+ "underscore": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz",
+ "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=",
+ "dev": true
+ }
+ }
+ },
+ "portscanner": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-0.2.3.tgz",
+ "integrity": "sha1-QNityS4BsgWrAgqhbw44asXtGXg=",
+ "dev": true,
+ "requires": {
+ "async": "0.1.15"
+ },
+ "dependencies": {
+ "async": {
+ "version": "0.1.15",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.1.15.tgz",
+ "integrity": "sha1-IYDqyizypspSgNQcBYW+ybPkm9M=",
+ "dev": true
+ }
+ }
+ },
+ "preserve": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz",
+ "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=",
+ "dev": true
+ },
+ "pretty-bytes": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz",
+ "integrity": "sha1-CiLoIQYJrTVUL4yNXSFZr/B1HIQ=",
+ "dev": true,
+ "requires": {
+ "get-stdin": "4.0.1",
+ "meow": "3.7.0"
+ }
+ },
+ "prettysize": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/prettysize/-/prettysize-0.0.3.tgz",
+ "integrity": "sha1-FK//amReWRpN3xxykZwjtBRhgaE=",
+ "dev": true
+ },
+ "process": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/process/-/process-0.7.0.tgz",
+ "integrity": "sha1-xSIIFho0rfOBI0SuhdPmFQRpOJ0=",
+ "dev": true
+ },
+ "process-nextick-args": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz",
+ "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=",
+ "dev": true
+ },
+ "promise": {
+ "version": "7.3.1",
+ "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz",
+ "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "asap": "2.0.6"
+ }
+ },
+ "promised-io": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/promised-io/-/promised-io-0.3.3.tgz",
+ "integrity": "sha1-DqVWIYD/mJaW82r1tGIITKQWYEg=",
+ "dev": true
+ },
+ "protractor": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/protractor/-/protractor-1.3.1.tgz",
+ "integrity": "sha1-HLAWx51IJwCxe3CxAgc1ngmvX8Q=",
+ "dev": true,
+ "requires": {
+ "adm-zip": "0.4.4",
+ "glob": "3.2.11",
+ "jasminewd": "1.1.0",
+ "lodash": "2.4.2",
+ "minijasminenode": "1.1.1",
+ "optimist": "0.6.1",
+ "q": "1.0.0",
+ "request": "2.36.0",
+ "saucelabs": "0.1.1",
+ "selenium-webdriver": "2.43.5",
+ "source-map-support": "0.2.10"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "3.2.11",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz",
+ "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "minimatch": "0.3.0"
+ }
+ },
+ "lodash": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
+ "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz",
+ "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",
+ "dev": true,
+ "requires": {
+ "lru-cache": "2.7.3",
+ "sigmund": "1.0.1"
+ }
+ },
+ "minimist": {
+ "version": "0.0.10",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
+ "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
+ "dev": true
+ },
+ "optimist": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",
+ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
+ "dev": true,
+ "requires": {
+ "minimist": "0.0.10",
+ "wordwrap": "0.0.3"
+ }
+ }
+ }
+ },
+ "prr": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz",
+ "integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=",
+ "dev": true,
+ "optional": true
+ },
+ "public-encrypt": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz",
+ "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=",
+ "dev": true,
+ "requires": {
+ "bn.js": "4.11.8",
+ "browserify-rsa": "4.0.1",
+ "create-hash": "1.1.3",
+ "parse-asn1": "5.1.0",
+ "randombytes": "2.0.5"
+ }
+ },
+ "punycode": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.2.4.tgz",
+ "integrity": "sha1-VACKyXKux0F13vnLpt9/qdORh0A=",
+ "dev": true
+ },
+ "q": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/q/-/q-1.0.0.tgz",
+ "integrity": "sha1-3B+SxFh75U94U7Kdwo5tJDqISY0=",
+ "dev": true
+ },
+ "qs": {
+ "version": "0.6.6",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-0.6.6.tgz",
+ "integrity": "sha1-bgFQmP9RlouKPIGQAdXyyJvEsQc=",
+ "dev": true
+ },
+ "querystring": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
+ "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=",
+ "dev": true
+ },
+ "querystring-es3": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz",
+ "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=",
+ "dev": true
+ },
+ "randomatic": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz",
+ "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==",
+ "dev": true,
+ "requires": {
+ "is-number": "3.0.0",
+ "kind-of": "4.0.0"
+ },
+ "dependencies": {
+ "is-number": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
+ "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
+ "dev": true,
+ "requires": {
+ "kind-of": "3.2.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "1.1.6"
+ }
+ }
+ }
+ },
+ "kind-of": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz",
+ "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "1.1.6"
+ }
+ }
+ }
+ },
+ "randombytes": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz",
+ "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "randomfill": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.3.tgz",
+ "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==",
+ "dev": true,
+ "requires": {
+ "randombytes": "2.0.5",
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "range-parser": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz",
+ "integrity": "sha1-aHKCNTXGkuLCoBA4Jq/YLC4P8XU=",
+ "dev": true
+ },
+ "raw-body": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.6.tgz",
+ "integrity": "sha1-mOnfmn4t+ZSTG3zbSyprlpSnTwI=",
+ "dev": true,
+ "requires": {
+ "bytes": "1.0.0"
+ }
+ },
+ "read-pkg": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
+ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "1.1.0",
+ "normalize-package-data": "2.4.0",
+ "path-type": "1.1.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
+ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
+ "dev": true,
+ "requires": {
+ "find-up": "1.1.2",
+ "read-pkg": "1.1.0"
+ }
+ },
+ "readable-stream": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
+ "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "string_decoder": "0.10.31"
+ },
+ "dependencies": {
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
+ "dev": true
+ }
+ }
+ },
+ "readable-wrap": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/readable-wrap/-/readable-wrap-1.0.0.tgz",
+ "integrity": "sha1-O1ohHGMeEjA6VJkcgGwX564ga/8=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.1.14"
+ }
+ },
+ "readdirp": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz",
+ "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "4.1.11",
+ "minimatch": "3.0.4",
+ "readable-stream": "2.3.3",
+ "set-immediate-shim": "1.0.1"
+ },
+ "dependencies": {
+ "graceful-fs": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
+ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
+ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "1.1.8"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
+ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "1.0.0",
+ "process-nextick-args": "1.0.7",
+ "safe-buffer": "5.1.1",
+ "string_decoder": "1.0.3",
+ "util-deprecate": "1.0.2"
+ }
+ },
+ "string_decoder": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
+ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "5.1.1"
+ }
+ }
+ }
+ },
+ "redent": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
+ "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
+ "dev": true,
+ "requires": {
+ "indent-string": "2.1.0",
+ "strip-indent": "1.0.1"
+ }
+ },
+ "regex-cache": {
+ "version": "0.4.4",
+ "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz",
+ "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==",
+ "dev": true,
+ "requires": {
+ "is-equal-shallow": "0.1.3"
+ }
+ },
+ "remove-trailing-separator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
+ "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=",
+ "dev": true
+ },
+ "repeat-element": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz",
+ "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=",
+ "dev": true
+ },
+ "repeat-string": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
+ "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
+ "dev": true
+ },
+ "repeating": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
+ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
+ "dev": true,
+ "requires": {
+ "is-finite": "1.0.2"
+ }
+ },
+ "request": {
+ "version": "2.36.0",
+ "resolved": "https://registry.npmjs.org/request/-/request-2.36.0.tgz",
+ "integrity": "sha1-KMbAQmLHuf/dIbklU3RRfubZQ/U=",
+ "dev": true,
+ "requires": {
+ "aws-sign2": "0.5.0",
+ "forever-agent": "0.5.2",
+ "form-data": "0.1.4",
+ "hawk": "1.0.0",
+ "http-signature": "0.10.1",
+ "json-stringify-safe": "5.0.1",
+ "mime": "1.2.11",
+ "node-uuid": "1.4.8",
+ "oauth-sign": "0.3.0",
+ "qs": "0.6.6",
+ "tough-cookie": "2.3.3",
+ "tunnel-agent": "0.4.3"
+ }
+ },
+ "requirejs": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.2.0.tgz",
+ "integrity": "sha1-DysVOK8rjQpP///eXTZ6qc1M/oQ=",
+ "dev": true
+ },
+ "resolve": {
+ "version": "0.7.4",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.7.4.tgz",
+ "integrity": "sha1-OVqe+ehz+/4SvRRAi9kbuTYAPWk=",
+ "dev": true
+ },
+ "response-time": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/response-time/-/response-time-2.0.0.tgz",
+ "integrity": "sha1-Zcs5/VDeL0/9vdKF8YVZZr1vyzY=",
+ "dev": true,
+ "requires": {
+ "on-headers": "0.0.0"
+ }
+ },
+ "rfile": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/rfile/-/rfile-1.0.0.tgz",
+ "integrity": "sha1-WXCM+Qyh50xUw8/Fw2/bmBBDUmE=",
+ "dev": true,
+ "requires": {
+ "callsite": "1.0.0",
+ "resolve": "0.3.1"
+ },
+ "dependencies": {
+ "resolve": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.3.1.tgz",
+ "integrity": "sha1-NMY0R8ZkxwWY0cmxJvxDsqJDEKQ=",
+ "dev": true
+ }
+ }
+ },
+ "right-align": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz",
+ "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=",
+ "dev": true,
+ "requires": {
+ "align-text": "0.1.4"
+ }
+ },
+ "rimraf": {
+ "version": "2.2.8",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz",
+ "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=",
+ "dev": true
+ },
+ "ripemd160": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz",
+ "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=",
+ "dev": true,
+ "requires": {
+ "hash-base": "2.0.2",
+ "inherits": "2.0.3"
+ }
+ },
+ "rndm": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz",
+ "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=",
+ "dev": true
+ },
+ "ruglify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/ruglify/-/ruglify-1.0.0.tgz",
+ "integrity": "sha1-3Ikw4qlUSidDAcyZcldMDQmGtnU=",
+ "dev": true,
+ "requires": {
+ "rfile": "1.0.0",
+ "uglify-js": "2.2.5"
+ },
+ "dependencies": {
+ "uglify-js": {
+ "version": "2.2.5",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.2.5.tgz",
+ "integrity": "sha1-puAqcNg5eSuXgEiLe4sYTAlcmcc=",
+ "dev": true,
+ "requires": {
+ "optimist": "0.3.7",
+ "source-map": "0.1.43"
+ }
+ }
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
+ "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",
+ "dev": true
+ },
+ "saucelabs": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/saucelabs/-/saucelabs-0.1.1.tgz",
+ "integrity": "sha1-Xg6hzz1zXW6hX96Utb2mvBXSwG0=",
+ "dev": true
+ },
+ "sax": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/sax/-/sax-0.6.1.tgz",
+ "integrity": "sha1-VjsZx8HeiS4Jv8Ty/DDjwn8JUrk=",
+ "dev": true
+ },
+ "scmp": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/scmp/-/scmp-0.0.3.tgz",
+ "integrity": "sha1-NkjfLXKUZB5/eGc//CloHZutkHM=",
+ "dev": true
+ },
+ "selenium-webdriver": {
+ "version": "2.43.5",
+ "resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.43.5.tgz",
+ "integrity": "sha1-asBDAuPoHf5ZlWRUoZ+Q7q3+VXM=",
+ "dev": true,
+ "requires": {
+ "adm-zip": "0.4.4",
+ "tmp": "0.0.24",
+ "xml2js": "0.4.4"
+ }
+ },
+ "semver": {
+ "version": "5.4.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
+ "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==",
+ "dev": true
+ },
+ "send": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.4.3.tgz",
+ "integrity": "sha1-lieyO3cH+/Y3ODHKxXkzMLWUtkA=",
+ "dev": true,
+ "requires": {
+ "debug": "1.0.2",
+ "escape-html": "1.0.1",
+ "finished": "1.2.2",
+ "fresh": "0.2.2",
+ "mime": "1.2.11",
+ "range-parser": "1.0.3"
+ }
+ },
+ "serve-favicon": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.0.1.tgz",
+ "integrity": "sha1-SCaXXZ8XPKOkFY6WmBYfdd7Hr+w=",
+ "dev": true,
+ "requires": {
+ "fresh": "0.2.2"
+ }
+ },
+ "serve-index": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.1.1.tgz",
+ "integrity": "sha1-6trdj9B0E63RejAcZX9S/AXxnS8=",
+ "dev": true,
+ "requires": {
+ "accepts": "1.0.3",
+ "batch": "0.5.0"
+ }
+ },
+ "serve-static": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.2.3.tgz",
+ "integrity": "sha1-k87Lw0Dweey4WJKB0dwxwmwM0Vg=",
+ "dev": true,
+ "requires": {
+ "escape-html": "1.0.1",
+ "parseurl": "1.0.1",
+ "send": "0.4.3"
+ }
+ },
+ "set-immediate-shim": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz",
+ "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=",
+ "dev": true
+ },
+ "sha.js": {
+ "version": "2.4.9",
+ "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz",
+ "integrity": "sha512-G8zektVqbiPHrylgew9Zg1VRB1L/DtXNUVAM6q4QLy8NE3qtHlFXTf8VLL4k1Yl6c7NMjtZUTdXV+X44nFaT6A==",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "safe-buffer": "5.1.1"
+ }
+ },
+ "shallow-copy": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz",
+ "integrity": "sha1-QV9CcC1z2BAzApLMXuhurhoRoXA=",
+ "dev": true
+ },
+ "shasum": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz",
+ "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=",
+ "dev": true,
+ "requires": {
+ "json-stable-stringify": "0.0.1",
+ "sha.js": "2.4.9"
+ }
+ },
+ "shell-quote": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-0.0.1.tgz",
+ "integrity": "sha1-GkEZbzwDM8SCMjWT1ohuzxU92YY=",
+ "dev": true
+ },
+ "sigmund": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz",
+ "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=",
+ "dev": true
+ },
+ "signal-exit": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
+ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
+ "dev": true
+ },
+ "sntp": {
+ "version": "0.2.4",
+ "resolved": "https://registry.npmjs.org/sntp/-/sntp-0.2.4.tgz",
+ "integrity": "sha1-+4hfGLDzqtGJ+CSGJTa87ux1CQA=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "hoek": "0.9.1"
+ }
+ },
+ "source-map": {
+ "version": "0.1.43",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz",
+ "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=",
+ "dev": true,
+ "requires": {
+ "amdefine": "1.0.1"
+ }
+ },
+ "source-map-support": {
+ "version": "0.2.10",
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.2.10.tgz",
+ "integrity": "sha1-6lo5AKHByyUJagrozFwrSxDe09w=",
+ "dev": true,
+ "requires": {
+ "source-map": "0.1.32"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.1.32",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.32.tgz",
+ "integrity": "sha1-yLbBZ3l7pHQKjqMyUhYv8IWRsmY=",
+ "dev": true,
+ "requires": {
+ "amdefine": "1.0.1"
+ }
+ }
+ }
+ },
+ "spdx-correct": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz",
+ "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=",
+ "dev": true,
+ "requires": {
+ "spdx-license-ids": "1.2.2"
+ }
+ },
+ "spdx-expression-parse": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz",
+ "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=",
+ "dev": true
+ },
+ "spdx-license-ids": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz",
+ "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=",
+ "dev": true
+ },
+ "split": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz",
+ "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=",
+ "dev": true,
+ "requires": {
+ "through": "2.3.8"
+ }
+ },
+ "sshpk": {
+ "version": "1.13.1",
+ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz",
+ "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "asn1": "0.2.3",
+ "assert-plus": "1.0.0",
+ "bcrypt-pbkdf": "1.0.1",
+ "dashdash": "1.14.1",
+ "ecc-jsbn": "0.1.1",
+ "getpass": "0.1.7",
+ "jsbn": "0.1.1",
+ "tweetnacl": "0.14.5"
+ },
+ "dependencies": {
+ "asn1": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
+ "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",
+ "dev": true,
+ "optional": true
+ },
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "stack-chain": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/stack-chain/-/stack-chain-1.3.7.tgz",
+ "integrity": "sha1-0ZLJ/06moiyUxN1FkXHj8AzqEoU=",
+ "dev": true
+ },
+ "stream-browserify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-1.0.0.tgz",
+ "integrity": "sha1-v5tKv7QrJ011FHnkTg/yZWtvEZM=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3",
+ "readable-stream": "1.1.14"
+ }
+ },
+ "stream-combiner": {
+ "version": "0.0.4",
+ "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz",
+ "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=",
+ "dev": true,
+ "requires": {
+ "duplexer": "0.1.1"
+ }
+ },
+ "stream-combiner2": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.0.2.tgz",
+ "integrity": "sha1-unKmtQy/q/qVD8i8h2BL0B62BnE=",
+ "dev": true,
+ "requires": {
+ "duplexer2": "0.0.2",
+ "through2": "0.5.1"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "1.0.34",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
+ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "1.0.2",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "string_decoder": "0.10.31"
+ }
+ },
+ "string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
+ "dev": true
+ },
+ "through2": {
+ "version": "0.5.1",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-0.5.1.tgz",
+ "integrity": "sha1-390BLrnHAOIyP9M084rGIqs3Lac=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.0.34",
+ "xtend": "3.0.0"
+ }
+ }
+ }
+ },
+ "stream-counter": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/stream-counter/-/stream-counter-0.2.0.tgz",
+ "integrity": "sha1-3tJmVWMZyLDiIoErnPOyb6fZR94=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.1.14"
+ }
+ },
+ "stream-splicer": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-1.3.2.tgz",
+ "integrity": "sha1-PARBvhW5v04iYnXm3IOWR0VUZmE=",
+ "dev": true,
+ "requires": {
+ "indexof": "0.0.1",
+ "inherits": "2.0.3",
+ "isarray": "0.0.1",
+ "readable-stream": "1.1.14",
+ "readable-wrap": "1.0.0",
+ "through2": "1.1.1"
+ }
+ },
+ "string_decoder": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.0.1.tgz",
+ "integrity": "sha1-9UctCo0WUOyCN1LSTm/WJ7Ob8UE=",
+ "dev": true
+ },
+ "stringstream": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
+ "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=",
+ "dev": true,
+ "optional": true
+ },
+ "strip-ansi": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz",
+ "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "0.2.1"
+ }
+ },
+ "strip-bom": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
+ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
+ "dev": true,
+ "requires": {
+ "is-utf8": "0.2.1"
+ }
+ },
+ "strip-indent": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
+ "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
+ "dev": true,
+ "requires": {
+ "get-stdin": "4.0.1"
+ }
+ },
+ "subarg": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/subarg/-/subarg-0.0.1.tgz",
+ "integrity": "sha1-PVawfaz7xFu7Y/dnK0O2PkY2jjo=",
+ "dev": true,
+ "requires": {
+ "minimist": "0.0.10"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "0.0.10",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
+ "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
+ "dev": true
+ }
+ }
+ },
+ "supports-color": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz",
+ "integrity": "sha1-2S3iaU6z9nMjlz1649i1W0wiGQo=",
+ "dev": true
+ },
+ "syntax-error": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.3.0.tgz",
+ "integrity": "sha1-HtkmbE1AvnXcVb+bsct3Biu5bKE=",
+ "dev": true,
+ "requires": {
+ "acorn": "4.0.13"
+ }
+ },
+ "three": {
+ "version": "0.73.0",
+ "resolved": "https://registry.npmjs.org/three/-/three-0.73.0.tgz",
+ "integrity": "sha1-jyWKxG2BVsRa8kT+E6T4u3oEUSk=",
+ "dev": true
+ },
+ "three.js": {
+ "version": "0.73.2",
+ "resolved": "https://registry.npmjs.org/three.js/-/three.js-0.73.2.tgz",
+ "integrity": "sha1-3JARPxgT9AShjhYkqajjnGwZSpY=",
+ "dev": true,
+ "requires": {
+ "three": "0.73.0"
+ }
+ },
+ "through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
+ "dev": true
+ },
+ "through2": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-1.1.1.tgz",
+ "integrity": "sha1-CEfLxESfNAVXTb3M2buEG4OsNUU=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "1.1.14",
+ "xtend": "4.0.1"
+ },
+ "dependencies": {
+ "xtend": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
+ "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=",
+ "dev": true
+ }
+ }
+ },
+ "timers-browserify": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz",
+ "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=",
+ "dev": true,
+ "requires": {
+ "process": "0.11.10"
+ },
+ "dependencies": {
+ "process": {
+ "version": "0.11.10",
+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
+ "dev": true
+ }
+ }
+ },
+ "tmp": {
+ "version": "0.0.24",
+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.24.tgz",
+ "integrity": "sha1-1qXhmNFKmDXMby18PZ4wJCjIzxI=",
+ "dev": true
+ },
+ "tough-cookie": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz",
+ "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "punycode": "1.4.1"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
+ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "trim-newlines": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
+ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=",
+ "dev": true
+ },
+ "tty-browserify": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz",
+ "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=",
+ "dev": true
+ },
+ "tunnel-agent": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz",
+ "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=",
+ "dev": true,
+ "optional": true
+ },
+ "tweetnacl": {
+ "version": "0.14.5",
+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
+ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
+ "dev": true,
+ "optional": true
+ },
+ "type-is": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.2.1.tgz",
+ "integrity": "sha1-c9RICApPHdGKyx7v/2KWjFtdVKI=",
+ "dev": true,
+ "requires": {
+ "mime-types": "1.0.0"
+ }
+ },
+ "typedarray": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
+ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
+ "dev": true
+ },
+ "typescript": {
+ "version": "1.6.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-1.6.2.tgz",
+ "integrity": "sha1-WyclSr6xEQJ8v5RQ00MbxYQxkd0=",
+ "dev": true
+ },
+ "uglify-js": {
+ "version": "2.4.24",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz",
+ "integrity": "sha1-+tV1XB4Vd2WLsG/5q25UjJW+vW4=",
+ "dev": true,
+ "requires": {
+ "async": "0.2.10",
+ "source-map": "0.1.34",
+ "uglify-to-browserify": "1.0.2",
+ "yargs": "3.5.4"
+ },
+ "dependencies": {
+ "async": {
+ "version": "0.2.10",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz",
+ "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.1.34",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz",
+ "integrity": "sha1-p8/omux7FoLDsZjQrPtH19CQVms=",
+ "dev": true,
+ "requires": {
+ "amdefine": "1.0.1"
+ }
+ }
+ }
+ },
+ "uglify-to-browserify": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",
+ "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",
+ "dev": true
+ },
+ "uid2": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz",
+ "integrity": "sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I=",
+ "dev": true
+ },
+ "umd": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/umd/-/umd-2.1.0.tgz",
+ "integrity": "sha1-SmMHt2LxfwLSAbX6FU5nM5bCY88=",
+ "dev": true,
+ "requires": {
+ "rfile": "1.0.0",
+ "ruglify": "1.0.0",
+ "through": "2.3.8",
+ "uglify-js": "2.4.24"
+ }
+ },
+ "underscore": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz",
+ "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=",
+ "dev": true
+ },
+ "underscore.string": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz",
+ "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=",
+ "dev": true
+ },
+ "units": {
+ "version": "github:edsilv/Units#066b609412f4b5f18d1de64b5bae9968dcde821a",
+ "dev": true
+ },
+ "uri-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-1.0.0.tgz",
+ "integrity": "sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI=",
+ "dev": true
+ },
+ "url": {
+ "version": "0.10.3",
+ "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz",
+ "integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=",
+ "dev": true,
+ "requires": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",
+ "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=",
+ "dev": true
+ }
+ }
+ },
+ "util": {
+ "version": "0.10.3",
+ "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz",
+ "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.1"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
+ "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=",
+ "dev": true
+ }
+ }
+ },
+ "util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
+ "dev": true
+ },
+ "utils": {
+ "version": "github:edsilv/utils#9a907eba36f9800dac16435efa28a73c7b6f6656",
+ "dev": true,
+ "requires": {
+ "@types/jquery": "2.0.48"
+ }
+ },
+ "utils-merge": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz",
+ "integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=",
+ "dev": true
+ },
+ "validate-npm-package-license": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz",
+ "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=",
+ "dev": true,
+ "requires": {
+ "spdx-correct": "1.0.2",
+ "spdx-expression-parse": "1.0.4"
+ }
+ },
+ "vary": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-0.1.0.tgz",
+ "integrity": "sha1-3wlFiZ6TwMxb0YzIMh2dIedPYXY=",
+ "dev": true
+ },
+ "verror": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
+ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "assert-plus": "1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "1.3.0"
+ },
+ "dependencies": {
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "vhost": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/vhost/-/vhost-1.0.0.tgz",
+ "integrity": "sha1-ZUUT8omk+Jiqt0W71jPkAYDJxMA=",
+ "dev": true
+ },
+ "virtex3d": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmjs.org/virtex3d/-/virtex3d-0.2.7.tgz",
+ "integrity": "sha1-o3V57Ka4uWqYBeNVZn453eIN4TQ=",
+ "dev": true
+ },
+ "vm-browserify": {
+ "version": "0.0.4",
+ "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz",
+ "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=",
+ "dev": true,
+ "requires": {
+ "indexof": "0.0.1"
+ }
+ },
+ "walkdir": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.0.7.tgz",
+ "integrity": "sha1-BNoCcKh6d4VAFzzb8KLbSZqNnik=",
+ "dev": true
+ },
+ "which": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz",
+ "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=",
+ "dev": true
+ },
+ "window-size": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",
+ "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=",
+ "dev": true
+ },
+ "wordwrap": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
+ "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=",
+ "dev": true
+ },
+ "wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
+ "dev": true
+ },
+ "xml2js": {
+ "version": "0.4.4",
+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.4.tgz",
+ "integrity": "sha1-MREBAAMAiuGSQOuhdJe1fHKcVV0=",
+ "dev": true,
+ "requires": {
+ "sax": "0.6.1",
+ "xmlbuilder": "9.0.4"
+ }
+ },
+ "xmlbuilder": {
+ "version": "9.0.4",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.4.tgz",
+ "integrity": "sha1-UZy0ymhtAFqEINNJbz8MruzKWA8=",
+ "dev": true
+ },
+ "xtend": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-3.0.0.tgz",
+ "integrity": "sha1-XM50B7r2Qsunvs2laBEcST9ZZlo=",
+ "dev": true
+ },
+ "yargs": {
+ "version": "3.5.4",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.5.4.tgz",
+ "integrity": "sha1-2K/49mXpTDS9JZvevRv68N3TU2E=",
+ "dev": true,
+ "requires": {
+ "camelcase": "1.2.1",
+ "decamelize": "1.2.0",
+ "window-size": "0.1.0",
+ "wordwrap": "0.0.2"
+ },
+ "dependencies": {
+ "wordwrap": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
+ "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
+ "dev": true
+ }
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
index f625a5f82..98977b50e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "universalviewer",
- "version": "1.8.39",
+ "version": "2.0.2",
"description": "The Universal Viewer is an open source project to enable cultural heritage institutions to present their digital artifacts in an IIIF-compliant and highly customisable user interface.",
"repository": {
"type": "git",
@@ -15,16 +15,21 @@
"bugs": {
"url": "https://github.com/universalviewer/universalviewer/issues"
},
- "scripts": {},
+ "scripts": {
+ "postinstall": "opencollective postinstall"
+ },
"homepage": "https://github.com/universalviewer/universalviewer",
"devDependencies": {
- "async": "^0.9.0",
- "base-component": "viewdir/base-component",
+ "async": "^0.9.0"
+ },
+ "dependencies": {
+ "opencollective": "^1.0.3",
+ "base-component": "iiif-commons/base-component#v1.0.8",
"chalk": "^0.5.1",
"cucumber": "^0.4.5",
"eventemitter2": "^1.0.3",
"exjs": "BSick7/exjs",
- "extensions": "edsilv/extensions",
+ "extensions": "edsilv/extensions#v0.1.11",
"glob": "^4.3.5",
"glob-array": "^0.1.2",
"grunt": "^0.4.5",
@@ -40,25 +45,29 @@
"grunt-text-replace": "~0.3.7",
"grunt-typescript": "^0.8.0",
"hooker": "^0.2.3",
- "http-status-codes": "edsilv/http-status-codes",
- "iiif-gallery-component": "viewdir/iiif-gallery-component#v1.0.0",
- "iiif-metadata-component": "viewdir/iiif-metadata-component#v1.0.1",
- "iiif-tree-component": "viewdir/iiif-tree-component#v1.0.2",
- "jquery-plugins": "edsilv/jquery-plugins",
- "jquery-tiny-pubsub": "edsilv/jquery-tiny-pubsub",
- "json-schema-generator": "krg7880/json-schema-generator",
- "key-codes": "edsilv/key-codes",
+ "http-status-codes": "edsilv/http-status-codes#v0.0.5",
+ "iiif-gallery-component": "iiif-commons/iiif-gallery-component#v1.0.6",
+ "iiif-metadata-component": "iiif-commons/iiif-metadata-component#v1.0.10",
+ "iiif-tree-component": "iiif-commons/iiif-tree-component#v1.0.7",
+ "jquery-plugins": "edsilv/jquery-plugins#v0.0.26",
+ "jquery-tiny-pubsub": "edsilv/jquery-tiny-pubsub#v0.7.2",
+ "json-schema-generator": "edsilv/json-schema-generator",
+ "key-codes": "edsilv/key-codes#v0.0.6",
"less": "^2.4.0",
"lodash": "^3.1.0",
- "manifesto": "viewdir/manifesto#v2.0.0",
- "manifold": "viewdir/manifold#v1.1.2",
+ "manifold": "iiif-commons/manifold#v1.1.12",
"ncp": "^2.0.0",
"openseadragon": "^2.2.1",
"protractor": "1.3.1",
"requirejs": "2.2.0",
"three.js": "^0.73.0",
"units": "edsilv/Units",
- "utils": "edsilv/utils",
+ "utils": "edsilv/utils#v0.0.38",
"virtex3d": "^0.2.6"
+ },
+ "collective": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/universalviewer",
+ "logo": "https://opencollective.com/opencollective/logo.txt"
}
}
\ No newline at end of file
diff --git a/src/BootstrapParams.ts b/src/BootstrapParams.ts
index 419c7b471..e76316adb 100644
--- a/src/BootstrapParams.ts
+++ b/src/BootstrapParams.ts
@@ -17,7 +17,7 @@ class BootstrapParams {
locales: any[];
manifestIndex: number;
manifestUri: string;
- paramMap: string[] = ['c', 'm', 's', 'cv', 'z', 'r', 'h', 'a']; // todo: move z, r, h, a to their respective extensions
+ paramMap: string[] = ['c', 'm', 's', 'cv', 'xywh', 'r', 'h', 'a']; // todo: move xywh, r, h, a to their respective extensions
sequenceIndex: number;
constructor() {
@@ -46,7 +46,7 @@ class BootstrapParams {
}
getParam(param: Params): any {
- if (this.hashParamsAvailable()){
+ if (this.hashParamsAvailable()) {
// get param from parent document
var p = parseInt(Utils.Urls.getHashParameter(this.paramMap[param], parent.document));
if (p || p === 0) return p;
diff --git a/src/Bootstrapper.ts b/src/Bootstrapper.ts
index 4a0bac158..d20eb9bf2 100644
--- a/src/Bootstrapper.ts
+++ b/src/Bootstrapper.ts
@@ -58,14 +58,14 @@ class Bootstrapper{
var sequence: Manifesto.ISequence = helper.getSequenceByIndex(this.params.sequenceIndex);
- if (!sequence){
+ if (!sequence) {
this.notFound();
return;
}
var canvas: Manifesto.ICanvas = helper.getCanvasByIndex(this.params.canvasIndex);
- if (!canvas){
+ if (!canvas) {
this.notFound();
return;
}
@@ -76,13 +76,13 @@ class Bootstrapper{
var extension: IExtension = this.extensions[canvasType.toString()];
// if there isn't an extension for the canvasType, try the format
- if (!extension){
+ if (!extension) {
var format = canvas.getProperty('format');
extension = this.extensions[format];
}
// if there still isn't a matching extension, show an error.
- if (!extension){
+ if (!extension) {
alert("No matching UV extension found.");
return;
}
@@ -107,7 +107,7 @@ class Bootstrapper{
return (null === this.params.jsonp) ? Modernizr.cors : !this.params.jsonp;
}
- notFound(): void{
+ notFound(): void {
try{
parent.$(parent.document).trigger(BaseCommands.NOT_FOUND);
return;
@@ -189,12 +189,12 @@ class Bootstrapper{
// todo: use a compiler flag when available
var cssPath = (window.DEBUG)? 'extensions/' + extension.name + '/build/' + config.options.theme + '.css' : 'themes/' + config.options.theme + '/css/' + extension.name + '/theme.css';
- yepnope.injectCss(cssPath, function () {
+ yepnope.injectCss(cssPath, function() {
cb();
});
}
- createExtension(extension: any, config: any): void{
+ createExtension(extension: any, config: any): void {
this.config = config;
var helper = extension.helper;
this.extension = new extension.type(this);
diff --git a/src/Params.ts b/src/Params.ts
index 221ef2211..f13c2317b 100644
--- a/src/Params.ts
+++ b/src/Params.ts
@@ -1,9 +1,11 @@
+
+// do not change order, index is important!
enum Params {
collectionIndex,
manifestIndex,
sequenceIndex,
canvasIndex,
- zoom,
+ xywh,
rotation,
highlight,
anchor
diff --git a/src/_Version.ts b/src/_Version.ts
deleted file mode 100644
index 8159415b6..000000000
--- a/src/_Version.ts
+++ /dev/null
@@ -1 +0,0 @@
-export var Version = '1.8.39';
\ No newline at end of file
diff --git a/src/extensions/uv-mediaelement-extension/lib/iiif-metadata-component.js b/src/extensions/uv-mediaelement-extension/lib/iiif-metadata-component.js
index 1481b91e8..2223e4e5f 100644
--- a/src/extensions/uv-mediaelement-extension/lib/iiif-metadata-component.js
+++ b/src/extensions/uv-mediaelement-extension/lib/iiif-metadata-component.js
@@ -1,4 +1,4 @@
-// iiif-metadata-component v1.0.0 https://github.com/viewdir/iiif-metadata-component#readme
+// iiif-metadata-component v1.0.10 https://github.com/viewdir/iiif-metadata-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifMetadataComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\
');
this._$metadataItemValueTemplate = $('');
+ this._$metadataItemURIValueTemplate = $('');
this._$copyTextTemplate = $('\
' + this.options.content.copiedToClipboard + '
\
');
@@ -282,7 +283,8 @@ var IIIFComponents;
var $metadataItem = this._$metadataItemTemplate.clone();
var $label = $metadataItem.find('.label');
var $values = $metadataItem.find('.values');
- var label = item.getLabel();
+ var originalLabel = item.getLabel();
+ var label = originalLabel;
if (label && item.isRootLevel) {
switch (label.toLowerCase()) {
case "attribution":
@@ -306,29 +308,50 @@ var IIIFComponents;
$metadataItem.addClass(label.toCssClass());
var value;
var $value;
- if (this.options.showAllLanguages && item.value && item.value.length > 1) {
- for (var i = 0; i < item.value.length; i++) {
- var translation = item.value[i];
- $value = this._buildMetadataItemValue(translation.value, translation.locale);
- $values.append($value);
- }
+ // if the value is a URI
+ if (originalLabel && originalLabel.toLowerCase() === "license") {
+ $value = this._buildMetadataItemURIValue(item.value[0].value);
+ $values.append($value);
}
else {
- $value = this._buildMetadataItemValue(item.getValue(), this._getItemLocale(item));
- $values.append($value);
+ if (this.options.showAllLanguages && item.value && item.value.length > 1) {
+ // display all values in each locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ else {
+ var itemLocale = this._getItemLocale(item);
+ var valueFound = false;
+ // display all values in the item's locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ if (itemLocale === translation.locale) {
+ valueFound = true;
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ // if no values were found in the current locale, default to the first.
+ if (!valueFound) {
+ var translation = item.value[0];
+ if (translation) {
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ }
}
- if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $value.text() && $label.text()) {
- this._addCopyButton($metadataItem, $label);
+ if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $label.text()) {
+ this._addCopyButton($metadataItem, $label, $values);
}
return $metadataItem;
};
MetadataComponent.prototype._getItemLocale = function (item) {
- if (item.value && item.value.length) {
- return item.value[0].locale;
- }
- else {
- return item.defaultLocale || this.options.helper.options.locale;
- }
+ // the item's label locale takes precedence
+ return (item.label.length && item.label[0].locale) ? item.label[0].locale : item.defaultLocale || this.options.helper.options.locale;
};
MetadataComponent.prototype._buildMetadataItemValue = function (value, locale) {
value = this._sanitize(value);
@@ -342,6 +365,13 @@ var IIIFComponents;
}
return $value;
};
+ MetadataComponent.prototype._buildMetadataItemURIValue = function (value) {
+ value = this._sanitize(value);
+ var $value = this._$metadataItemURIValueTemplate.clone();
+ $value.prop('href', value);
+ $value.text(value);
+ return $value;
+ };
MetadataComponent.prototype._addReadingDirection = function ($elem, locale) {
locale = Manifesto.Utils.getInexactLocale(locale);
var rtlLanguages = this._readCSV(this.options.rtlLanguageCodes);
@@ -351,7 +381,7 @@ var IIIFComponents;
$elem.addClass('rtl');
}
};
- MetadataComponent.prototype._addCopyButton = function ($elem, $header) {
+ MetadataComponent.prototype._addCopyButton = function ($elem, $header, $values) {
var $copyBtn = this._$copyTextTemplate.clone();
var $copiedText = $copyBtn.children();
$header.append($copyBtn);
@@ -370,20 +400,13 @@ var IIIFComponents;
});
}
var that = this;
+ var originalValue = $values.text();
$copyBtn.on('click', function (e) {
- var $this = $(this);
- var $item = $this.closest('.item');
- that._copyItemValues($this, $item);
+ that._copyItemValues($copyBtn, originalValue);
});
};
- MetadataComponent.prototype._copyItemValues = function ($copyButton, $item) {
- var $values = $item.find('.value');
- var values = "";
- for (var i = 0; i < $values.length; i++) {
- var value = $($values[i]).text();
- values.length ? values += '\n' + value : values += value;
- }
- Utils.Clipboard.copy(values);
+ MetadataComponent.prototype._copyItemValues = function ($copyButton, originalValue) {
+ Utils.Clipboard.copy(originalValue);
var $copiedText = $copyButton.find('.copiedText');
$copiedText.show();
setTimeout(function () {
diff --git a/src/extensions/uv-pdf-extension/lib/iiif-metadata-component.js b/src/extensions/uv-pdf-extension/lib/iiif-metadata-component.js
index 1481b91e8..2223e4e5f 100644
--- a/src/extensions/uv-pdf-extension/lib/iiif-metadata-component.js
+++ b/src/extensions/uv-pdf-extension/lib/iiif-metadata-component.js
@@ -1,4 +1,4 @@
-// iiif-metadata-component v1.0.0 https://github.com/viewdir/iiif-metadata-component#readme
+// iiif-metadata-component v1.0.10 https://github.com/viewdir/iiif-metadata-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifMetadataComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\
');
this._$metadataItemValueTemplate = $('');
+ this._$metadataItemURIValueTemplate = $('');
this._$copyTextTemplate = $('\
' + this.options.content.copiedToClipboard + '
\
');
@@ -282,7 +283,8 @@ var IIIFComponents;
var $metadataItem = this._$metadataItemTemplate.clone();
var $label = $metadataItem.find('.label');
var $values = $metadataItem.find('.values');
- var label = item.getLabel();
+ var originalLabel = item.getLabel();
+ var label = originalLabel;
if (label && item.isRootLevel) {
switch (label.toLowerCase()) {
case "attribution":
@@ -306,29 +308,50 @@ var IIIFComponents;
$metadataItem.addClass(label.toCssClass());
var value;
var $value;
- if (this.options.showAllLanguages && item.value && item.value.length > 1) {
- for (var i = 0; i < item.value.length; i++) {
- var translation = item.value[i];
- $value = this._buildMetadataItemValue(translation.value, translation.locale);
- $values.append($value);
- }
+ // if the value is a URI
+ if (originalLabel && originalLabel.toLowerCase() === "license") {
+ $value = this._buildMetadataItemURIValue(item.value[0].value);
+ $values.append($value);
}
else {
- $value = this._buildMetadataItemValue(item.getValue(), this._getItemLocale(item));
- $values.append($value);
+ if (this.options.showAllLanguages && item.value && item.value.length > 1) {
+ // display all values in each locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ else {
+ var itemLocale = this._getItemLocale(item);
+ var valueFound = false;
+ // display all values in the item's locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ if (itemLocale === translation.locale) {
+ valueFound = true;
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ // if no values were found in the current locale, default to the first.
+ if (!valueFound) {
+ var translation = item.value[0];
+ if (translation) {
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ }
}
- if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $value.text() && $label.text()) {
- this._addCopyButton($metadataItem, $label);
+ if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $label.text()) {
+ this._addCopyButton($metadataItem, $label, $values);
}
return $metadataItem;
};
MetadataComponent.prototype._getItemLocale = function (item) {
- if (item.value && item.value.length) {
- return item.value[0].locale;
- }
- else {
- return item.defaultLocale || this.options.helper.options.locale;
- }
+ // the item's label locale takes precedence
+ return (item.label.length && item.label[0].locale) ? item.label[0].locale : item.defaultLocale || this.options.helper.options.locale;
};
MetadataComponent.prototype._buildMetadataItemValue = function (value, locale) {
value = this._sanitize(value);
@@ -342,6 +365,13 @@ var IIIFComponents;
}
return $value;
};
+ MetadataComponent.prototype._buildMetadataItemURIValue = function (value) {
+ value = this._sanitize(value);
+ var $value = this._$metadataItemURIValueTemplate.clone();
+ $value.prop('href', value);
+ $value.text(value);
+ return $value;
+ };
MetadataComponent.prototype._addReadingDirection = function ($elem, locale) {
locale = Manifesto.Utils.getInexactLocale(locale);
var rtlLanguages = this._readCSV(this.options.rtlLanguageCodes);
@@ -351,7 +381,7 @@ var IIIFComponents;
$elem.addClass('rtl');
}
};
- MetadataComponent.prototype._addCopyButton = function ($elem, $header) {
+ MetadataComponent.prototype._addCopyButton = function ($elem, $header, $values) {
var $copyBtn = this._$copyTextTemplate.clone();
var $copiedText = $copyBtn.children();
$header.append($copyBtn);
@@ -370,20 +400,13 @@ var IIIFComponents;
});
}
var that = this;
+ var originalValue = $values.text();
$copyBtn.on('click', function (e) {
- var $this = $(this);
- var $item = $this.closest('.item');
- that._copyItemValues($this, $item);
+ that._copyItemValues($copyBtn, originalValue);
});
};
- MetadataComponent.prototype._copyItemValues = function ($copyButton, $item) {
- var $values = $item.find('.value');
- var values = "";
- for (var i = 0; i < $values.length; i++) {
- var value = $($values[i]).text();
- values.length ? values += '\n' + value : values += value;
- }
- Utils.Clipboard.copy(values);
+ MetadataComponent.prototype._copyItemValues = function ($copyButton, originalValue) {
+ Utils.Clipboard.copy(originalValue);
var $copiedText = $copyButton.find('.copiedText');
$copiedText.show();
setTimeout(function () {
diff --git a/src/extensions/uv-seadragon-extension/Bounds.ts b/src/extensions/uv-seadragon-extension/Bounds.ts
new file mode 100644
index 000000000..18ece7209
--- /dev/null
+++ b/src/extensions/uv-seadragon-extension/Bounds.ts
@@ -0,0 +1,25 @@
+class Bounds {
+
+ public x: number;
+ public y: number;
+ public w: number;
+ public h: number;
+
+ constructor(x: number, y: number, w: number, h: number) {
+ this.x = x;
+ this.y = y;
+ this.w = w;
+ this.h = h;
+ }
+
+ toString(): string {
+ return `${this.x},${this.y},${this.w},${this.h}`
+ }
+
+ static fromString(bounds: string): Bounds {
+ var boundsArr: string[] = bounds.split(',');
+ return new Bounds(Number(boundsArr[0]), Number(boundsArr[1]), Number(boundsArr[2]), Number(boundsArr[3]));
+ }
+}
+
+export = Bounds;
\ No newline at end of file
diff --git a/src/extensions/uv-seadragon-extension/Commands.ts b/src/extensions/uv-seadragon-extension/Commands.ts
index cb82f4c59..de526e9f4 100644
--- a/src/extensions/uv-seadragon-extension/Commands.ts
+++ b/src/extensions/uv-seadragon-extension/Commands.ts
@@ -1,46 +1,51 @@
class Commands {
static namespace: string = 'seadragonExtension.';
- static CLEAR_SEARCH: string = Commands.namespace + 'onClearSearch';
- static CURRENT_VIEW_URI: string = Commands.namespace + 'onCurrentViewUri';
- static FIRST: string = Commands.namespace + 'onFirst';
- static GALLERY_DECREASE_SIZE: string = Commands.namespace + 'onGalleryDecreaseSize';
- static GALLERY_INCREASE_SIZE: string = Commands.namespace + 'onGalleryIncreaseSize';
- static GALLERY_THUMB_SELECTED: string = Commands.namespace + 'onGalleryThumbSelected';
- static HIDE_MULTISELECT_DIALOGUE: string = Commands.namespace + 'onHideMultiSelectDialogue';
- static IMAGE_SEARCH: string = Commands.namespace + 'onImageSearch';
- static LAST: string = Commands.namespace + 'onLast';
- static MODE_CHANGED: string = Commands.namespace + 'onModeChanged';
- static MULTISELECT_CHANGE: string = Commands.namespace + 'onMultiSelectChange';
- static MULTISELECTION_MADE: string = Commands.namespace + 'onMultiSelectionMade';
- static NEXT_SEARCH_RESULT: string = Commands.namespace + 'onNextSearchResult';
- static NEXT: string = Commands.namespace + 'onNext';
- static OPEN_THUMBS_VIEW: string = Commands.namespace + 'onOpenThumbsView';
- static OPEN_TREE_VIEW: string = Commands.namespace + 'onOpenTreeView';
- static PAGE_SEARCH: string = Commands.namespace + 'onPageSearch';
- static PAGING_TOGGLED: string = Commands.namespace + 'onPagingToggled';
- static PREV_SEARCH_RESULT: string = Commands.namespace + 'onPrevSearchResult';
- static PREV: string = Commands.namespace + 'onPrev';
- static PRINT: string = Commands.namespace + 'onPrint';
- static ROTATE: string = Commands.namespace + 'onRotate';
- static SEADRAGON_ANIMATION_FINISH: string = Commands.namespace + 'onAnimationfinish';
- static SEADRAGON_ANIMATION_START: string = Commands.namespace + 'onAnimationStart';
- static SEADRAGON_ANIMATION: string = Commands.namespace + 'onAnimation';
- static SEADRAGON_OPEN: string = Commands.namespace + 'onOpen';
- static SEADRAGON_RESIZE: string = Commands.namespace + 'onResize';
- static SEADRAGON_ROTATION: string = Commands.namespace + 'onRotation';
- static SEARCH_PREVIEW_FINISH: string = Commands.namespace + 'onSearchPreviewFinish';
- static SEARCH_PREVIEW_START: string = Commands.namespace + 'onSearchPreviewStart';
- static SEARCH_RESULTS_EMPTY: string = Commands.namespace + 'onSearchResultsEmpty';
- static SEARCH_RESULTS: string = Commands.namespace + 'onSearchResults';
- static SEARCH: string = Commands.namespace + 'onSearch';
- static SHOW_MULTISELECT_DIALOGUE: string = Commands.namespace + 'onShowMultiSelectDialogue';
- static THUMB_MULTISELECTED: string = Commands.namespace + 'onThumbMultiSelected';
- static TREE_NODE_MULTISELECTED: string = Commands.namespace + 'onTreeNodeMultiSelected';
- static TREE_NODE_SELECTED: string = Commands.namespace + 'onTreeNodeSelected';
- static VIEW_PAGE: string = Commands.namespace + 'onViewPage';
- static ZOOM_IN: string = Commands.namespace + 'onZoomIn';
- static ZOOM_OUT: string = Commands.namespace + 'onZoomOut';
+ static CLEAR_SEARCH: string = Commands.namespace + 'onClearSearch';
+ static CURRENT_VIEW_URI: string = Commands.namespace + 'onCurrentViewUri';
+ static FIRST: string = Commands.namespace + 'onFirst';
+ static GALLERY_DECREASE_SIZE: string = Commands.namespace + 'onGalleryDecreaseSize';
+ static GALLERY_INCREASE_SIZE: string = Commands.namespace + 'onGalleryIncreaseSize';
+ static GALLERY_THUMB_SELECTED: string = Commands.namespace + 'onGalleryThumbSelected';
+ static HIDE_MULTISELECT_DIALOGUE: string = Commands.namespace + 'onHideMultiSelectDialogue';
+ static IMAGE_SEARCH: string = Commands.namespace + 'onImageSearch';
+ static LAST: string = Commands.namespace + 'onLast';
+ static MODE_CHANGED: string = Commands.namespace + 'onModeChanged';
+ static MULTISELECT_CHANGE: string = Commands.namespace + 'onMultiSelectChange';
+ static MULTISELECTION_MADE: string = Commands.namespace + 'onMultiSelectionMade';
+ static NEXT_SEARCH_RESULT: string = Commands.namespace + 'onNextSearchResult';
+ static NEXT: string = Commands.namespace + 'onNext';
+ static NEXT_IMAGES_SEARCH_RESULT_UNAVAILABLE: string = Commands.namespace + 'onNextImagesSearchResultUnavailable';
+ static PREV_IMAGES_SEARCH_RESULT_UNAVAILABLE: string = Commands.namespace + 'onPrevImagesSearchResultUnavailable';
+ static OPEN_THUMBS_VIEW: string = Commands.namespace + 'onOpenThumbsView';
+ static OPEN_TREE_VIEW: string = Commands.namespace + 'onOpenTreeView';
+ static PAGE_SEARCH: string = Commands.namespace + 'onPageSearch';
+ static PAGING_TOGGLED: string = Commands.namespace + 'onPagingToggled';
+ static PREV_SEARCH_RESULT: string = Commands.namespace + 'onPrevSearchResult';
+ static PREV: string = Commands.namespace + 'onPrev';
+ static PRINT: string = Commands.namespace + 'onPrint';
+ static ROTATE: string = Commands.namespace + 'onRotate';
+ static SEADRAGON_ANIMATION_FINISH: string = Commands.namespace + 'onAnimationfinish';
+ static SEADRAGON_ANIMATION_START: string = Commands.namespace + 'onAnimationStart';
+ static SEADRAGON_ANIMATION: string = Commands.namespace + 'onAnimation';
+ static SEADRAGON_OPEN: string = Commands.namespace + 'onOpen';
+ static SEADRAGON_RESIZE: string = Commands.namespace + 'onResize';
+ static SEADRAGON_ROTATION: string = Commands.namespace + 'onRotation';
+ static SEARCH_PREVIEW_FINISH: string = Commands.namespace + 'onSearchPreviewFinish';
+ static SEARCH_PREVIEW_START: string = Commands.namespace + 'onSearchPreviewStart';
+ static SEARCH_RESULT_CANVAS_CHANGED: string = Commands.namespace + 'onSearchResultCanvasChanged';
+ static SEARCH_RESULT_RECT_CHANGED: string = Commands.namespace + 'onSearchResultRectChanged';
+ static SEARCH_RESULTS_EMPTY: string = Commands.namespace + 'onSearchResultsEmpty';
+ static SEARCH_RESULTS: string = Commands.namespace + 'onSearchResults';
+ static SEARCH_RESULTS_CLEARED: string = Commands.namespace + 'onSearchResultsCleared';
+ static SEARCH: string = Commands.namespace + 'onSearch';
+ static SHOW_MULTISELECT_DIALOGUE: string = Commands.namespace + 'onShowMultiSelectDialogue';
+ static THUMB_MULTISELECTED: string = Commands.namespace + 'onThumbMultiSelected';
+ static TREE_NODE_MULTISELECTED: string = Commands.namespace + 'onTreeNodeMultiSelected';
+ static TREE_NODE_SELECTED: string = Commands.namespace + 'onTreeNodeSelected';
+ static VIEW_PAGE: string = Commands.namespace + 'onViewPage';
+ static ZOOM_IN: string = Commands.namespace + 'onZoomIn';
+ static ZOOM_OUT: string = Commands.namespace + 'onZoomOut';
}
export = Commands;
\ No newline at end of file
diff --git a/src/extensions/uv-seadragon-extension/DownloadDialogue.ts b/src/extensions/uv-seadragon-extension/DownloadDialogue.ts
index 74ba44611..8076c644b 100644
--- a/src/extensions/uv-seadragon-extension/DownloadDialogue.ts
+++ b/src/extensions/uv-seadragon-extension/DownloadDialogue.ts
@@ -17,9 +17,7 @@ class DownloadDialogue extends BaseDownloadDialogue {
$explanatoryTextTemplate: JQuery;
$imageOptionsContainer: JQuery;
$imageOptions: JQuery;
- //$pagingNote: JQuery;
$selectionButton: JQuery;
- //$settingsButton: JQuery;
$sequenceOptionsContainer: JQuery;
$sequenceOptions: JQuery;
$wholeImageHighResButton: JQuery;
@@ -92,7 +90,7 @@ class DownloadDialogue extends BaseDownloadDialogue {
this.$downloadButton.on('click', (e) => {
e.preventDefault();
- var $selectedOption = that.getSelectedOption();
+ var $selectedOption: JQuery = that.getSelectedOption();
var id: string = $selectedOption.attr('id');
var label: string = $selectedOption.attr('title');
@@ -101,15 +99,15 @@ class DownloadDialogue extends BaseDownloadDialogue {
var canvas: Manifesto.ICanvas = this.extension.helper.getCurrentCanvas();
if (this.renderingUrls[id]) {
- if (mime){
- if (mime.toLowerCase().indexOf('pdf') !== -1){
+ if (mime) {
+ if (mime.toLowerCase().indexOf('pdf') !== -1) {
type = DownloadType.ENTIREDOCUMENTASPDF;
- } else if (mime.toLowerCase().indexOf('txt') !== -1){
+ } else if (mime.toLowerCase().indexOf('txt') !== -1) {
type = DownloadType.ENTIREDOCUMENTASTEXT;
}
}
- if (type = DownloadType.ENTIREDOCUMENTASPDF){
+ if (type = DownloadType.ENTIREDOCUMENTASPDF) {
//var printService: Manifesto.IService = this.extension.helper.manifest.getService(manifesto.ServiceProfile.printExtensions());
// if downloading a pdf - if there's a print service, generate an event instead of opening a new window.
@@ -120,7 +118,7 @@ class DownloadDialogue extends BaseDownloadDialogue {
//}
}
} else {
- switch (id){
+ switch (id) {
case DownloadOption.currentViewAsJpg.toString():
var viewer = (that.extension).getViewer();
window.open((that.extension).getCroppedImageUri(canvas, viewer));
@@ -549,12 +547,16 @@ class DownloadDialogue extends BaseDownloadDialogue {
case DownloadOption.dynamicCanvasRenderings:
case DownloadOption.dynamicImageRenderings:
case DownloadOption.wholeImageHighRes:
- if (!(this.extension).isPagingSettingEnabled()){
+ // if in one-up mode, or in two-up mode with a single page being shown
+ if (!(this.extension).isPagingSettingEnabled() ||
+ (this.extension).isPagingSettingEnabled() && this.extension.resources && this.extension.resources.length === 1) {
var maxSize: Size = this.getCanvasMaxDimensions(this.extension.helper.getCurrentCanvas());
- if (maxSize && _.isUndefined(maxSize.width)){
- return true;
- } else if (maxSize.width <= this.options.maxImageWidth){
- return true;
+ if (maxSize) {
+ if (_.isUndefined(maxSize.width)) {
+ return true;
+ } else if (maxSize.width <= this.options.maxImageWidth) {
+ return true;
+ }
}
}
return false;
diff --git a/src/extensions/uv-seadragon-extension/Extension.ts b/src/extensions/uv-seadragon-extension/Extension.ts
index c11eeae5d..d01c91d3d 100644
--- a/src/extensions/uv-seadragon-extension/Extension.ts
+++ b/src/extensions/uv-seadragon-extension/Extension.ts
@@ -15,7 +15,7 @@ import ISeadragonExtension = require("./ISeadragonExtension");
import IThumb = Manifold.IThumb;
import ITreeNode = Manifold.ITreeNode;
import LeftPanel = require("../../modules/uv-shared-module/LeftPanel");
-import Metrics = require("../../modules/uv-shared-module/Metrics");
+import {MetricType} from "../../modules/uv-shared-module/MetricType";
import MobileFooterPanel = require("../../modules/uv-osdmobilefooterpanel-module/MobileFooter");
import Mode = require("./Mode");
import MoreInfoDialogue = require("../../modules/uv-dialogues-module/MoreInfoDialogue");
@@ -27,8 +27,8 @@ import Params = require("../../Params");
import Point = require("../../modules/uv-shared-module/Point");
import RightPanel = require("../../modules/uv-shared-module/RightPanel");
import SeadragonCenterPanel = require("../../modules/uv-seadragoncenterpanel-module/SeadragonCenterPanel");
-import SearchResult = require("./SearchResult");
-import SearchResultRect = require("./SearchResultRect");
+import SearchResult = Manifold.SearchResult;
+import SearchResultRect = Manifold.SearchResultRect;
import Settings = require("../../modules/uv-shared-module/Settings");
import SettingsDialogue = require("./SettingsDialogue");
import ShareDialogue = require("./ShareDialogue");
@@ -46,17 +46,19 @@ class Extension extends BaseExtension implements ISeadragonExtension {
$shareDialogue: JQuery;
centerPanel: SeadragonCenterPanel;
currentRotation: number = 0;
+ currentSearchResultRect: SearchResultRect;
downloadDialogue: DownloadDialogue;
externalContentDialogue: ExternalContentDialogue;
footerPanel: FooterPanel;
headerPanel: PagingHeaderPanel;
helpDialogue: HelpDialogue;
- iiifImageUriTemplate: string = '{0}/{1}/{2}/{3}/{4}/{5}.jpg';
+ isSearching: boolean = false;
leftPanel: ContentLeftPanel;
mobileFooterPanel: MobileFooterPanel;
mode: Mode;
moreInfoDialogue: MoreInfoDialogue;
multiSelectDialogue: MultiSelectDialogue;
+ previousSearchResultRect: SearchResultRect;
rightPanel: MoreInfoRightPanel;
searchResults: SearchResult[] = [];
settingsDialogue: SettingsDialogue;
@@ -69,10 +71,10 @@ class Extension extends BaseExtension implements ISeadragonExtension {
create(overrideDependencies?: any): void {
super.create(overrideDependencies);
- var that = this;
+ const that = this;
$.subscribe(BaseCommands.METRIC_CHANGED, () => {
- if (this.metric === Metrics.MOBILE_LANDSCAPE) {
+ if (this.metric.toString() === MetricType.MOBILELANDSCAPE.toString()) {
var settings: ISettings = {};
settings.pagingEnabled = false;
this.updateSettings(settings);
@@ -84,6 +86,8 @@ class Extension extends BaseExtension implements ISeadragonExtension {
});
$.subscribe(Commands.CLEAR_SEARCH, (e) => {
+ this.searchResults = null;
+ $.publish(Commands.SEARCH_RESULTS_CLEARED);
this.triggerSocket(Commands.CLEAR_SEARCH);
});
@@ -137,7 +141,7 @@ class Extension extends BaseExtension implements ISeadragonExtension {
});
$.subscribe(BaseCommands.LEFTPANEL_COLLAPSE_FULL_START, (e) => {
- if (this.metric !== Metrics.MOBILE_LANDSCAPE) {
+ if (this.metric.toString() !== MetricType.MOBILELANDSCAPE.toString()) {
Shell.$rightPanel.show();
}
});
@@ -180,9 +184,18 @@ class Extension extends BaseExtension implements ISeadragonExtension {
$.subscribe(Commands.NEXT_SEARCH_RESULT, () => {
this.triggerSocket(Commands.NEXT_SEARCH_RESULT);
+ });
+
+ $.subscribe(Commands.NEXT_IMAGES_SEARCH_RESULT_UNAVAILABLE, () => {
+ this.triggerSocket(Commands.NEXT_IMAGES_SEARCH_RESULT_UNAVAILABLE);
this.nextSearchResult();
});
+ $.subscribe(Commands.PREV_IMAGES_SEARCH_RESULT_UNAVAILABLE, () => {
+ this.triggerSocket(Commands.PREV_IMAGES_SEARCH_RESULT_UNAVAILABLE);
+ this.prevSearchResult();
+ });
+
$.subscribe(Commands.OPEN_THUMBS_VIEW, (e) => {
this.triggerSocket(Commands.OPEN_THUMBS_VIEW);
});
@@ -219,7 +232,6 @@ class Extension extends BaseExtension implements ISeadragonExtension {
$.subscribe(Commands.PREV_SEARCH_RESULT, () => {
this.triggerSocket(Commands.PREV_SEARCH_RESULT);
- this.prevSearchResult();
});
$.subscribe(Commands.PRINT, () => {
@@ -240,7 +252,7 @@ class Extension extends BaseExtension implements ISeadragonExtension {
$.subscribe(Commands.SEADRAGON_ANIMATION_FINISH, (e, viewer) => {
if (this.centerPanel && this.centerPanel.currentBounds){
- this.setParam(Params.zoom, this.centerPanel.serialiseBounds(this.centerPanel.currentBounds));
+ this.setParam(Params.xywh, this.centerPanel.getViewportBounds().toString());
}
var canvas: Manifesto.ICanvas = this.helper.getCurrentCanvas();
@@ -289,6 +301,10 @@ class Extension extends BaseExtension implements ISeadragonExtension {
this.triggerSocket(Commands.SEARCH_RESULTS, obj);
});
+ $.subscribe(Commands.SEARCH_RESULT_CANVAS_CHANGED, (e, rect: SearchResultRect) => {
+ this.viewPage(rect.canvasIndex);
+ });
+
$.subscribe(Commands.SEARCH_RESULTS_EMPTY, (e) => {
this.triggerSocket(Commands.SEARCH_RESULTS_EMPTY);
});
@@ -327,7 +343,7 @@ class Extension extends BaseExtension implements ISeadragonExtension {
});
}
- createModules(): void{
+ createModules(): void {
super.createModules();
if (this.isHeaderPanelEnabled()){
@@ -415,6 +431,7 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
}
}
+
checkForRotationParam(): void{
// if a rotation value is in the hash params, set currentRotation
if (this.isDeepLinkingEnabled()){
@@ -438,7 +455,7 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
if (this.isPagingSettingEnabled() && !isReload){
- var indices = this.getPagedIndices(canvasIndex);
+ var indices: number[] = this.getPagedIndices(canvasIndex);
// if the page is already displayed, only advance canvasIndex.
if (indices.contains(this.helper.canvasIndex)) {
@@ -469,11 +486,13 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
}
- getViewerBounds(): string{
+ getViewportBounds(): string {
if (!this.centerPanel) return null;
- var bounds = this.centerPanel.getBounds();
- if (bounds) return this.centerPanel.serialiseBounds(bounds);
- return "";
+ const bounds = this.centerPanel.getViewportBounds();
+ if (bounds) {
+ return bounds.toString();
+ }
+ return null;
}
getViewerRotation(): number{
@@ -509,7 +528,7 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
treeNodeSelected(node: ITreeNode): void{
- var data: any = node.data;
+ const data: any = node.data;
if (!data.type) return;
@@ -518,6 +537,8 @@ class Extension extends BaseExtension implements ISeadragonExtension {
this.viewManifest(data);
break;
case manifesto.IIIFResourceType.collection().toString():
+ // note: this won't get called as the tree component now has branchNodesSelectable = false
+ // useful to keep around for reference
this.viewCollection(data);
break;
default:
@@ -534,25 +555,29 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
prevSearchResult(): void {
+ let foundResult: SearchResult;
// get the first result with a canvasIndex less than the current index.
- for (var i = this.searchResults.length - 1; i >= 0; i--) {
- var result = this.searchResults[i];
+ for (let i = this.searchResults.length - 1; i >= 0; i--) {
+ const result: SearchResult = this.searchResults[i];
- if (result.canvasIndex < this.helper.canvasIndex) {
- this.viewPage(result.canvasIndex);
+ if (result.canvasIndex <= this.getPrevPageIndex()) {
+ foundResult = result;
+ this.viewPage(foundResult.canvasIndex);
break;
}
}
}
nextSearchResult(): void {
-
+ let foundResult: SearchResult;
+
// get the first result with an index greater than the current index.
- for (var i = 0; i < this.searchResults.length; i++) {
- var result = this.searchResults[i];
+ for (let i = 0; i < this.searchResults.length; i++) {
+ const result: SearchResult = this.searchResults[i];
- if (result.canvasIndex > this.helper.canvasIndex) {
+ if (result.canvasIndex >= this.getNextPageIndex()) {
+ foundResult = result;
this.viewPage(result.canvasIndex);
break;
}
@@ -562,8 +587,8 @@ class Extension extends BaseExtension implements ISeadragonExtension {
bookmark(): void {
super.bookmark();
- var canvas: Manifesto.ICanvas = this.helper.getCurrentCanvas();
- var bookmark: Bookmark = new Bookmark();
+ const canvas: Manifesto.ICanvas = this.helper.getCurrentCanvas();
+ const bookmark: Bookmark = new Bookmark();
bookmark.index = this.helper.canvasIndex;
bookmark.label = Manifesto.TranslationCollection.getValue(canvas.getLabel());
@@ -594,20 +619,23 @@ class Extension extends BaseExtension implements ISeadragonExtension {
return null;
}
- var bounds = viewer.viewport.getBounds(true);
+ const bounds = viewer.viewport.getBounds(true);
- var dimensions: CroppedImageDimensions = new CroppedImageDimensions();
+ const dimensions: CroppedImageDimensions = new CroppedImageDimensions();
- var width: number = Math.floor(bounds.width);
- var height: number = Math.floor(bounds.height);
- var x: number = Math.floor(bounds.x);
- var y: number = Math.floor(bounds.y);
+ let width: number = Math.floor(bounds.width);
+ let height: number = Math.floor(bounds.height);
+ let x: number = Math.floor(bounds.x);
+ let y: number = Math.floor(bounds.y);
// constrain to image bounds
if (x + width > canvas.getWidth()) {
width = canvas.getWidth() - x;
} else if (x < 0){
width = width + x;
+ }
+
+ if (x < 0) {
x = 0;
}
@@ -615,34 +643,34 @@ class Extension extends BaseExtension implements ISeadragonExtension {
height = canvas.getHeight() - y;
} else if (y < 0){
height = height + y;
+ }
+
+ if (y < 0) {
y = 0;
}
width = Math.min(width, canvas.getWidth());
height = Math.min(height, canvas.getHeight());
- var regionWidth: number = width;
- var regionHeight: number = height;
+ let regionWidth: number = width;
+ let regionHeight: number = height;
- if (canvas.externalResource.data && canvas.externalResource.data.profile[1]){
- var maxSize: Size = new Size(canvas.externalResource.data.profile[1].maxWidth, canvas.externalResource.data.profile[1].maxHeight);
- if (!_.isUndefined(maxSize.width) && !_.isUndefined(maxSize.height)){
+ if (canvas.externalResource.data && canvas.externalResource.data.profile && canvas.externalResource.data.profile[1]) {
- if( width > maxSize.width ){
+ const maxSize: Size = new Size(canvas.externalResource.data.profile[1].maxWidth, canvas.externalResource.data.profile[1].maxHeight);
- var newWidth: number = maxSize.width;
- height = Math.round( newWidth * (height / width) );
- width = newWidth;
+ if (!_.isUndefined(maxSize.width) && !_.isUndefined(maxSize.height)){
+ if (width > maxSize.width) {
+ let newWidth: number = maxSize.width;
+ height = Math.round(newWidth * (height / width));
+ width = newWidth;
}
- if ( height > maxSize.height ) {
-
- var newHeight: number = maxSize.height;
- width = Math.round( (width / height) * newHeight );
+ if (height > maxSize.height) {
+ let newHeight: number = maxSize.height;
+ width = Math.round((width / height) * newHeight);
height = newHeight;
-
}
-
}
}
@@ -726,69 +754,68 @@ class Extension extends BaseExtension implements ISeadragonExtension {
if (!viewer) return null;
if (!viewer.viewport) return null;
- var dimensions: CroppedImageDimensions = this.getCroppedImageDimensions(canvas, viewer);
+ const dimensions: CroppedImageDimensions = this.getCroppedImageDimensions(canvas, viewer);
// construct uri
// {baseuri}/{id}/{region}/{size}/{rotation}/{quality}.jpg
- var baseUri = this.getImageBaseUri(canvas);
- var id = this.getImageId(canvas);
- var region = dimensions.regionPos.x + "," + dimensions.regionPos.y + "," + dimensions.region.width + "," + dimensions.region.height;
- var size = dimensions.size.width + ',' + dimensions.size.height;
- var rotation = this.getViewerRotation();
- var quality = 'default';
- return String.format(this.iiifImageUriTemplate, baseUri, id, region, size, rotation, quality);
+ const baseUri: string = this.getImageBaseUri(canvas);
+ const id: string = this.getImageId(canvas);
+ const region: string = dimensions.regionPos.x + "," + dimensions.regionPos.y + "," + dimensions.region.width + "," + dimensions.region.height;
+ const size: string = dimensions.size.width + ',' + dimensions.size.height;
+ const rotation: number = this.getViewerRotation();
+ const quality: string = 'default';
+ return `${baseUri}/${id}/${region}/${size}/${rotation}/${quality}.jpg`;
}
getConfinedImageDimensions(canvas: Manifesto.ICanvas, width: number): Size {
- var dimensions: Size = new Size(0, 0);
+ const dimensions: Size = new Size(0, 0);
dimensions.width = width;
- var normWidth = Math.normalise(width, 0, canvas.getWidth());
+ const normWidth = Math.normalise(width, 0, canvas.getWidth());
dimensions.height = Math.floor(canvas.getHeight() * normWidth);
return dimensions;
}
getConfinedImageUri(canvas: Manifesto.ICanvas, width: number): string {
- var baseUri = this.getImageBaseUri(canvas);
+ const baseUri = this.getImageBaseUri(canvas);
// {baseuri}/{id}/{region}/{size}/{rotation}/{quality}.jpg
- var id = this.getImageId(canvas);
- var region = 'full';
- var dimensions = this.getConfinedImageDimensions(canvas, width);
- var size: string = dimensions.width + ',' + dimensions.height;
- var rotation = this.getViewerRotation();
- var quality = 'default';
- var uri = String.format(this.iiifImageUriTemplate, baseUri, id, region, size, rotation, quality);
- return uri;
+ const id: string = this.getImageId(canvas);
+ const region: string = 'full';
+ const dimensions: Size = this.getConfinedImageDimensions(canvas, width);
+ const size: string = dimensions.width + ',' + dimensions.height;
+ const rotation: number = this.getViewerRotation();
+ const quality: string = 'default';
+ return `${baseUri}/${id}/${region}/${size}/${rotation}/${quality}.jpg`;
}
getImageId(canvas: Manifesto.ICanvas): string {
- var id = this.getInfoUri(canvas);
+ let id = this.getInfoUri(canvas);
// First trim off info.json, then extract ID:
id = id.substr(0, id.lastIndexOf("/"));
return id.substr(id.lastIndexOf("/") + 1);
}
getImageBaseUri(canvas: Manifesto.ICanvas): string {
- var uri = this.getInfoUri(canvas);
+ let uri = this.getInfoUri(canvas);
// First trim off info.json, then trim off ID....
uri = uri.substr(0, uri.lastIndexOf("/"));
return uri.substr(0, uri.lastIndexOf("/"));
}
getInfoUri(canvas: Manifesto.ICanvas): string{
- var infoUri: string;
+ let infoUri: string;
- var images: Manifesto.IAnnotation[] = canvas.getImages();
+ const images: Manifesto.IAnnotation[] = canvas.getImages();
if (images && images.length) {
- var firstImage = images[0];
- var resource: Manifesto.IResource = firstImage.getResource();
- var services: Manifesto.IService[] = resource.getServices();
+ let firstImage = images[0];
+ let resource: Manifesto.IResource = firstImage.getResource();
+ let services: Manifesto.IService[] = resource.getServices();
- for (var i = 0; i < services.length; i++) {
- var service: Manifesto.IService = services[i];
- var id = service.id;
+ for (let i = 0; i < services.length; i++) {
+ let service: Manifesto.IService = services[i];
+ let id = service.id;
if (!_.endsWith(id, '/')) {
id += '/';
@@ -809,18 +836,18 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
getEmbedScript(template: string, width: number, height: number, zoom: string, rotation: number): string{
- var configUri = this.config.uri || '';
- var script = String.format(template, this.getSerializedLocales(), configUri, this.helper.iiifResourceUri, this.helper.collectionIndex, this.helper.manifestIndex, this.helper.sequenceIndex, this.helper.canvasIndex, zoom, rotation, width, height, this.embedScriptUri);
+ const configUri = this.config.uri || '';
+ let script = String.format(template, this.getSerializedLocales(), configUri, this.helper.iiifResourceUri, this.helper.collectionIndex, this.helper.manifestIndex, this.helper.sequenceIndex, this.helper.canvasIndex, zoom, rotation, width, height, this.embedScriptUri);
return script;
}
getPrevPageIndex(canvasIndex?: number): number {
if (_.isUndefined(canvasIndex)) canvasIndex = this.helper.canvasIndex;
- var index;
+ let index: number;
if (this.isPagingSettingEnabled()){
- var indices = this.getPagedIndices(canvasIndex);
+ let indices: number[] = this.getPagedIndices(canvasIndex);
if (this.helper.isRightToLeft()){
index = indices.last() - 1;
@@ -858,10 +885,10 @@ class Extension extends BaseExtension implements ISeadragonExtension {
getNextPageIndex(canvasIndex?: number): number {
if (_.isUndefined(canvasIndex)) canvasIndex = this.helper.canvasIndex;
- var index;
+ let index: number;
if (this.isPagingSettingEnabled()){
- var indices = this.getPagedIndices(canvasIndex);
+ let indices: number[] = this.getPagedIndices(canvasIndex);
if (this.helper.isRightToLeft()){
index = indices[0] + 1;
@@ -881,33 +908,50 @@ class Extension extends BaseExtension implements ISeadragonExtension {
}
getAutoCompleteService(): Manifesto.IService {
- var service: Manifesto.IService = this.helper.getSearchWithinService();
+ const service: Manifesto.IService = this.helper.getSearchWithinService();
if (!service) return null;
return service.getService(manifesto.ServiceProfile.autoComplete());
}
getAutoCompleteUri(): string{
- var service = this.getAutoCompleteService();
+ const service = this.getAutoCompleteService();
if (!service) return null;
return service.id + '?q={0}';
}
getSearchWithinServiceUri(): string {
- var service: Manifesto.IService = this.helper.getSearchWithinService();
+ const service: Manifesto.IService = this.helper.getSearchWithinService();
if (!service) return null;
- var uri = service.id;
+ let uri: string = service.id;
uri = uri + "?q={0}";
return uri;
}
- searchWithin(terms): void {
+ searchWithin(terms: string): void {
- var that = this;
+ if (this.isSearching) return;
- this.doSearchWithin(terms, (results: any) => {
- if (results.resources && results.resources.length) {
+ this.isSearching = true;
+
+ // clear search results
+ this.searchResults = [];
+
+ const that = this;
+
+ let searchUri: string = this.getSearchWithinServiceUri();
+ searchUri = String.format(searchUri, terms);
+
+ this.getSearchResults(searchUri, terms, this.searchResults, (results: SearchResult[]) => {
+
+ this.isSearching = false;
+
+ if (results.length) {
+ this.searchResults = results.sort((a, b) => {
+ return a.canvasIndex - b.canvasIndex;
+ });
+
$.publish(Commands.SEARCH_RESULTS, [{terms, results}]);
// reload current index as it may contain results.
@@ -920,56 +964,80 @@ class Extension extends BaseExtension implements ISeadragonExtension {
});
}
- doSearchWithin(terms: string, cb: (results: any) => void): void {
- var that = this;
-
- var searchUri = this.getSearchWithinServiceUri();
- searchUri = String.format(searchUri, terms);
+ getSearchResults(searchUri: string,
+ terms: string,
+ searchResults: SearchResult[],
+ cb: (results: SearchResult[]) => void): void {
$.getJSON(searchUri, (results: any) => {
+
if (results.resources && results.resources.length) {
- that.parseSearchWithinResults(results);
+ searchResults = searchResults.concat(this.parseSearchJson(results, searchResults));
}
- cb(results);
+ if (results.next) {
+ this.getSearchResults(results.next, terms, searchResults, cb);
+ } else {
+ cb(searchResults);
+ }
});
}
- parseSearchWithinResults(results: any): void {
- this.searchResults = [];
-
- for (var i = 0; i < results.resources.length; i++) {
- var r = results.resources[i];
+ parseSearchJson(resultsToParse: any, searchResults: SearchResult[]): SearchResult[] {
- var sr: SearchResult = new SearchResult(r, this.helper);
+ const parsedResults: SearchResult[] = [];
- var match = this.getSearchResultByCanvasIndex(sr.canvasIndex);
+ for (let i = 0; i < resultsToParse.resources.length; i++) {
+ const resource: any = resultsToParse.resources[i];
+ const canvasIndex: number = this.helper.getCanvasIndexById(resource.on.match(/(.*)#/)[1]);
+ var searchResult: SearchResult = new SearchResult(resource, canvasIndex);
+ const match: SearchResult = parsedResults.en().where(x => x.canvasIndex === searchResult.canvasIndex).first();
- if (match){
- match.addRect(r);
+ // if there's already a SearchResult for the canvas index, add a rect to it, otherwise create a new SearchResult
+ if (match) {
+ match.addRect(resource);
} else {
- this.searchResults.push(sr);
+ parsedResults.push(searchResult);
}
}
+
+ // sort by canvasIndex
+ parsedResults.sort((a, b) => {
+ return a.canvasIndex - b.canvasIndex;
+ });
+
+ return parsedResults;
}
- getSearchResultByCanvasIndex(canvasIndex: number): SearchResult {
- for (var i = 0; i < this.searchResults.length; i++) {
- var r = this.searchResults[i];
- if (r.canvasIndex === canvasIndex){
- return r;
- }
- }
- return null;
+ getSearchResultRects(): SearchResultRect[] {
+ return this.searchResults.en().selectMany(x => x.rects).toArray();
}
- getPagedIndices(canvasIndex?: number): number[]{
+ getCurrentSearchResultRectIndex(): number {
+ const searchResultRects: SearchResultRect[] = this.getSearchResultRects();
+ return searchResultRects.indexOf(this.currentSearchResultRect);
+ }
+
+ getTotalSearchResultRects(): number {
+ const searchResultRects: SearchResultRect[] = this.getSearchResultRects();
+ return searchResultRects.length;
+ }
+
+ isFirstSearchResultRect(): boolean {
+ return this.getCurrentSearchResultRectIndex() === 0;
+ }
+
+ getLastSearchResultRectIndex(): number {
+ return this.getTotalSearchResultRects() - 1;
+ }
+
+ getPagedIndices(canvasIndex?: number): number[] {
if (_.isUndefined(canvasIndex)) canvasIndex = this.helper.canvasIndex;
- var indices = [];
+ let indices: number[] = [];
// if it's a continuous manifest, get all resources.
- if (this.helper.isContinuous()){
+ if (this.helper.isContinuous()) {
indices = _.map(this.helper.getCanvases(), (c: Manifesto.ICanvas, index: number) => {
return index;
});
@@ -977,15 +1045,15 @@ class Extension extends BaseExtension implements ISeadragonExtension {
if (!this.isPagingSettingEnabled()) {
indices.push(this.helper.canvasIndex);
} else {
- if (this.helper.isFirstCanvas(canvasIndex) || (this.helper.isLastCanvas(canvasIndex) && this.helper.isTotalCanvasesEven())){
+ if (this.helper.isFirstCanvas(canvasIndex) || (this.helper.isLastCanvas(canvasIndex) && this.helper.isTotalCanvasesEven())) {
indices = [canvasIndex];
- } else if (canvasIndex % 2){
+ } else if (canvasIndex % 2) {
indices = [canvasIndex, canvasIndex + 1];
} else {
indices = [canvasIndex - 1, canvasIndex];
}
- if (this.helper.isRightToLeft()){
+ if (this.helper.isRightToLeft()) {
indices = indices.reverse();
}
}
diff --git a/src/extensions/uv-seadragon-extension/ISeadragonExtension.ts b/src/extensions/uv-seadragon-extension/ISeadragonExtension.ts
index fddd2c8b2..5266937a0 100644
--- a/src/extensions/uv-seadragon-extension/ISeadragonExtension.ts
+++ b/src/extensions/uv-seadragon-extension/ISeadragonExtension.ts
@@ -1,29 +1,35 @@
import CroppedImageDimensions = require("./CroppedImageDimensions");
import IExtension = require("../../modules/uv-shared-module/IExtension");
import Mode = require("./Mode");
-import SearchResult = require("./SearchResult");
+import SearchResult = Manifold.SearchResult;
+import SearchResultRect = Manifold.SearchResultRect;
import Size = Utils.Measurements.Size;
interface ISeadragonExtension extends IExtension{
+ currentSearchResultRect: SearchResultRect;
getAutoCompleteUri(): string;
getConfinedImageDimensions(canvas: Manifesto.ICanvas, width: number): Size;
getConfinedImageUri(canvas: Manifesto.ICanvas, width: number, height?: number): string;
getCroppedImageDimensions(canvas: Manifesto.ICanvas, viewer: any): CroppedImageDimensions;
getCroppedImageUri(canvas: Manifesto.ICanvas, viewer: any): string;
+ getCurrentSearchResultRectIndex(): number;
getEmbedScript(template: string, width: number, height: number, zoom: string, rotation: number): string;
getImageBaseUri(canvas: Manifesto.ICanvas): string;
getImageId(canvas: Manifesto.ICanvas): string;
+ getLastSearchResultRectIndex(): number;
getMode(): Mode;
getNextPageIndex(index?: number): number;
getPrevPageIndex(index?: number): number;
- getSearchResultByCanvasIndex(index: number): SearchResult;
+ getSearchResultRects(): SearchResultRect[];
getSearchWithinServiceUri(): string;
+ getTotalSearchResultRects(): number;
getViewer(): any;
- getViewerBounds(): string;
getViewerRotation(): number;
+ getViewportBounds(): string;
+ isFirstSearchResultRect(): boolean;
isPagingSettingEnabled(): boolean;
isSearchWithinEnabled(): boolean;
- parseSearchWithinResults(results: any);
+ previousSearchResultRect: SearchResultRect;
searchResults: SearchResult[];
searchWithin(terms: string, callback: (results: any) => void): void;
}
diff --git a/src/extensions/uv-seadragon-extension/ISettings.d.ts b/src/extensions/uv-seadragon-extension/ISettings.d.ts
index f9dc6a10e..f99a53349 100644
--- a/src/extensions/uv-seadragon-extension/ISettings.d.ts
+++ b/src/extensions/uv-seadragon-extension/ISettings.d.ts
@@ -1,5 +1,8 @@
interface ISettings {
navigatorEnabled?: boolean;
pagingEnabled?: boolean;
+ leftPanelOpen?: boolean;
+ rightPanelOpen?: boolean;
preserveViewport?: boolean;
+ clickToZoomEnabled?: boolean;
}
diff --git a/src/extensions/uv-seadragon-extension/SearchResult.ts b/src/extensions/uv-seadragon-extension/SearchResult.ts
deleted file mode 100644
index dbe6f748b..000000000
--- a/src/extensions/uv-seadragon-extension/SearchResult.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import SearchResultRect = require("./SearchResultRect");
-
-class SearchResult {
- public canvasIndex: number;
- public rects: SearchResultRect[] = [];
-
- constructor(resource: any, helper: Manifold.IHelper) {
- this.canvasIndex = helper.getCanvasIndexById(resource.on.match(/(.*)#/)[1]);
- this.addRect(resource);
- }
-
- addRect(resource: any): void {
- var rect = new SearchResultRect(resource);
- this.rects.push(rect);
- // sort ascending
- this.rects.sort(function(a, b) {
- return a.index - b.index;
- });
- }
-}
-
-export = SearchResult;
\ No newline at end of file
diff --git a/src/extensions/uv-seadragon-extension/SearchResultRect.ts b/src/extensions/uv-seadragon-extension/SearchResultRect.ts
deleted file mode 100644
index 140e49b77..000000000
--- a/src/extensions/uv-seadragon-extension/SearchResultRect.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-class SearchResultRect {
- public index: number;
- public x: number;
- public y: number;
- public width: number;
- public height: number;
-
- constructor(result: any) {
- this.index = result.resource.resultIndex;
- var xywh = result.on.match(/.*xywh=(\d*),(\d*),(\d*),(\d*)/);
- this.x = xywh[1];
- this.y = xywh[2];
- this.width = xywh[3];
- this.height = xywh[4];
- }
-}
-
-export = SearchResultRect;
\ No newline at end of file
diff --git a/src/extensions/uv-seadragon-extension/SettingsDialogue.ts b/src/extensions/uv-seadragon-extension/SettingsDialogue.ts
index 5f338293a..716d102b1 100644
--- a/src/extensions/uv-seadragon-extension/SettingsDialogue.ts
+++ b/src/extensions/uv-seadragon-extension/SettingsDialogue.ts
@@ -6,6 +6,13 @@ class SettingsDialogue extends BaseSettingsDialogue {
$navigatorEnabled: JQuery;
$navigatorEnabledCheckbox: JQuery;
$navigatorEnabledLabel: JQuery;
+
+ $clickToZoomEnabled: JQuery;
+ $clickToZoomEnabledCheckbox: JQuery;
+ $clickToZoomEnabledLabel: JQuery;
+
+
+
$pagingEnabled: JQuery;
$pagingEnabledCheckbox: JQuery;
$pagingEnabledLabel: JQuery;
@@ -41,6 +48,15 @@ class SettingsDialogue extends BaseSettingsDialogue {
this.$pagingEnabledLabel = $('');
this.$pagingEnabled.append(this.$pagingEnabledLabel);
+ this.$clickToZoomEnabled = $('');
+ this.$scroll.append(this.$clickToZoomEnabled);
+
+ this.$clickToZoomEnabledCheckbox = $('');
+ this.$clickToZoomEnabled.append(this.$clickToZoomEnabledCheckbox);
+
+ this.$clickToZoomEnabledLabel = $('');
+ this.$clickToZoomEnabled.append(this.$clickToZoomEnabledLabel);
+
this.$preserveViewport = $('');
this.$scroll.append(this.$preserveViewport);
@@ -61,6 +77,18 @@ class SettingsDialogue extends BaseSettingsDialogue {
this.updateSettings(settings);
});
+
+ this.$clickToZoomEnabledCheckbox.change(() => {
+ var settings: ISettings = {};
+
+ if(this.$clickToZoomEnabledCheckbox.is(":checked")) {
+ settings.clickToZoomEnabled = true;
+ } else {
+ settings.clickToZoomEnabled = false;
+ }
+
+ this.updateSettings(settings);
+ });
this.$pagingEnabledCheckbox.change(() => {
var settings: ISettings = {};
@@ -97,6 +125,12 @@ class SettingsDialogue extends BaseSettingsDialogue {
} else {
this.$navigatorEnabledCheckbox.removeAttr("checked");
}
+
+ if (settings.clickToZoomEnabled){
+ this.$clickToZoomEnabledCheckbox.prop("checked", true);
+ } else {
+ this.$clickToZoomEnabledCheckbox.removeAttr("checked");
+ }
if (!this.extension.helper.isPagingAvailable()){
this.$pagingEnabled.hide();
diff --git a/src/extensions/uv-seadragon-extension/ShareDialogue.ts b/src/extensions/uv-seadragon-extension/ShareDialogue.ts
index c8819c2ae..88aeb71b0 100644
--- a/src/extensions/uv-seadragon-extension/ShareDialogue.ts
+++ b/src/extensions/uv-seadragon-extension/ShareDialogue.ts
@@ -27,14 +27,14 @@ class ShareDialogue extends BaseShareDialogue {
super.update();
- var zoom = (this.extension).getViewerBounds();
- var rotation = (this.extension).getViewerRotation();
+ var xywh: string = (this.extension).getViewportBounds();
+ var rotation: number = (this.extension).getViewerRotation();
this.code = (this.extension).getEmbedScript(
this.options.embedTemplate,
this.currentWidth,
this.currentHeight,
- zoom,
+ xywh,
rotation);
this.$code.val(this.code);
diff --git a/src/extensions/uv-seadragon-extension/config/en-GB.json b/src/extensions/uv-seadragon-extension/config/en-GB.json
index 8611816f5..2d628cd8e 100644
--- a/src/extensions/uv-seadragon-extension/config/en-GB.json
+++ b/src/extensions/uv-seadragon-extension/config/en-GB.json
@@ -1,5 +1,6 @@
{
"options": {
+ "allowStealFocus": false,
"bookmarkThumbHeight": 150,
"bookmarkThumbWidth": 90,
"dropEnabled": true,
@@ -7,6 +8,18 @@
"headerPanelEnabled": true,
"leftPanelEnabled": true,
"limitLocales": false,
+ "metrics": [
+ {
+ "type": "mobilelandscape",
+ "minWidth": 0,
+ "maxWidth": 640
+ },
+ {
+ "type": "laptop",
+ "minWidth": 640,
+ "maxWidth": 100000
+ }
+ ],
"multiSelectionMimeType": "application/zip",
"navigatorEnabled": true,
"openTemplate": "http://universalviewer.io?manifest={0}",
@@ -17,11 +30,13 @@
"preserveViewport": false,
"rightPanelEnabled": true,
"saveUserSettings": false,
+ "clickToZoomEnabled": true,
"searchWithinEnabled": true,
"termsOfUseEnabled": false,
"theme": "uv-en-GB-theme",
"tokenStorage": "session",
- "useArrowKeysToNavigate": false
+ "useArrowKeysToNavigate": false,
+ "zoomToSearchResultEnabled": true
},
"modules": {
"contentLeftPanel": {
@@ -30,7 +45,6 @@
"defaultToTreeIfGreaterThan": 0,
"elideCount": 40,
"expandFullEnabled": true,
- "galleryThumbChunkedResizingEnabled": true,
"galleryThumbChunkedResizingThreshold": 400,
"galleryThumbHeight": 320,
"galleryThumbLoadPadding": 3,
@@ -135,7 +149,7 @@
"controlsFadeLength": 250,
"defaultZoomLevel": 0,
"immediateRender": false,
- "maxZoomLevel": 8,
+ "maxZoomPixelRatio": 1.25,
"navigatorPosition": "BOTTOM_RIGHT",
"pageGap": 50,
"showHomeControl": false,
@@ -155,7 +169,7 @@
},
"shareDialogue": {
"options": {
- "embedTemplate": "\n",
+ "embedTemplate": "\n",
"instructionsEnabled": false,
"shareFrameEnabled": true
}
diff --git a/src/extensions/uv-seadragon-extension/l10n/cy-GB.json b/src/extensions/uv-seadragon-extension/l10n/cy-GB.json
index caea34573..915dd2913 100644
--- a/src/extensions/uv-seadragon-extension/l10n/cy-GB.json
+++ b/src/extensions/uv-seadragon-extension/l10n/cy-GB.json
@@ -1,221 +1,225 @@
{
- "localisation": {
- "label": "Cymraeg"
- },
- "content": {
- "authCORSError": "Mae angen diweddaru'ch porwr er mwyn galluogi rhannu adnoddau traws-safle.",
- "authorisationFailedMessage": "Ni lwyddoch i fewngofnodi. Rhowch gynnig arni eto.",
- "canvasIndexOutOfRange": "Canfas yn rhy fawr i'w arddangos (ceisiwch eto)",
- "degradedResourceMessage": "Mewngofnodwch i weld ansawdd uchel.",
- "degradedResourceLogin": "Mewngofnodi",
- "forbiddenResourceMessage": "Nid yw'ch hawliau mynediad presennol yn ddigonol i weld y ddelwedd hon"
- },
- "modules": {
- "clickThroughDialogue": {
- "content": {
- "viewTerms": "Darllenwch y Telerau a'r Amodau Llawn"
- }
- },
- "contentLeftPanel": {
- "content": {
- "collapse": "Lleihau'r Cynnwys",
- "collapseFull": "Lleihau'r Galeri",
- "date": "Dyddiad",
- "expand": "Ehangu'r Cynnwys",
- "expandFull": "Ehangu'r Galeri",
- "index": "Mynegai",
- "sortBy": "Trefnu yn ôl:",
- "thumbnails": "Bodluniau",
- "title": "Cynnwys",
- "volume": "cyfrol"
- }
- },
- "dialogue": {
- "content": {
- "close": "Cau"
- }
- },
- "downloadDialogue": {
- "content": {
- "currentViewAsJpg": "Delwedd ddethol {0} x {1}px (jpg)",
- "currentViewAsJpgExplanation": "Opens in a new window",
- "download": "Lawrlwytho",
- "downloadSelection": "Lawrlwytho'r detholiad",
- "downloadSelectionExplanation": "Opens a dialogue to select which pages to download.",
- "editSettings": "Golygu'r dewisiadau",
- "entireDocument": "Y Ddogfen Gyfan ({0})",
- "entireFileAsOriginal": "Y ffeil gyfan ({0})",
- "noneAvailable": "Nid oes unrhyw opsiynau lawrlwytho ar gael.",
- "pagingNote": "Dad-ddewiswch 'Arddangos Dwy Dudalen' i weld dewisiadau pellach.",
- "preview": "Rhagolwg",
- "title": "Lawrlwytho",
- "wholeImageHighRes": "Delwedd gyfan {0} x {1}px ({2})",
- "wholeImageHighResExplanation": "Opens in a new window.",
- "wholeImagesHighRes": "Delweddau gyfan ({0})",
- "wholeImagesHighResExplanation": "Opens in two new windows.",
- "wholeImageLowResAsJpg": "Delwedd gyfan {0} x {1}px (jpg)",
- "wholeImageLowResAsJpgExplanation": "Opens in a new window."
- }
- },
- "footerPanel": {
- "content": {
- "bookmark": "Ychwanegu at nodau tudalen",
- "download": "Lawrlwytho",
- "embed": "Ymgorffori",
- "feedback": "Adborth",
- "exitFullScreen": "Dianc o'r sgrin lawn",
- "fullScreen": "Sgrin lawn",
- "open": "Agor",
- "share": "Share"
- }
- },
- "genericDialogue": {
- "content": {
- "emptyValue": "rhowch rif",
- "invalidNumber": "Rhowch rif dilys",
- "noMatches": "Dim canlyniad sy'n cyfateb.",
- "ok": "GWELD",
- "pageNotFound": "Nid yw'r eitem yn cynnwys tudalen gyda'r rhif a nodwyd. Ceisiwch cyfnewid y math i 'delwedd'.",
- "refresh": "Ailosod"
- }
- },
- "helpDialogue": {
- "content": {
- "text": "testun i'w osod",
- "title": "Cymorth"
- }
- },
- "loginDialogue": {
- "content": {
- "login": "Mewngofnodi",
- "logout": "Allgofnodi",
- "cancel": "Canslo"
- }
- },
- "mobileFooterPanel": {
- "content": {
- "rotateRight": "Cylchdroi i'r dde",
- "moreInfo": "Mwy o Wybodaeth",
- "zoomIn": "Closio",
- "zoomOut": "Gwrthglosio"
- }
- },
- "moreInfoRightPanel": {
- "content": {
- "attribution": "Priodoledd",
- "collapse": "Lleihau'r Wybodaeth",
- "collapseFull": "Cuddio'r Galeri",
- "description": "Disgrifiad",
- "expand": "Ehangu'r Wybodaeth",
- "expandFull": "Ehangu'r Galeri",
- "holdingText": "Eich modiwl fan hyn!",
- "less": "llai",
- "license": "Trwydded",
- "logo": "Logo",
- "more": "mwy",
- "noData": "Nid oes data i'w arddangos",
- "page": "tudalen",
- "title": "Mwy o Wybodaeth",
- "manifestHeader": "Am yr eitem",
- "canvasHeader": "Am y ddelwedd",
- "copyToClipboard": "Copïo i'r clipfwrdd",
- "copiedToClipboard": "Copïwyd i'r clipfwrdd"
- }
- },
- "multiSelectDialogue": {
- "content": {
- "select": "Lawrlwytho",
- "selectAll": "Dewis Popeth",
- "title": "Dewiswch Tudalennau i Lawrlwytho"
- }
- },
- "pagingHeaderPanel": {
- "content": {
- "close": "Cau",
- "emptyValue": "Mewnosodwch werth",
- "first": "gyntaf",
- "firstImage": "Delwedd Gyntaf",
- "firstPage": "Tudalen gyntaf",
- "folio": "ffolio",
- "gallery": "Oriel",
- "go": "GWELD",
- "help": "Cymorth",
- "image": "Delwedd",
- "last": "Olaf",
- "lastImage": "Delwedd Olaf",
- "lastPage": "Tudalen Olaf",
- "next": "Nesaf",
- "nextImage": "Delwedd Nesaf",
- "nextPage": "Tudalen Nesaf",
- "of": "o {0}",
- "oneUp": "Gweld un dudalen ar y tro",
- "page": "Tudalen",
- "previous": "Blaenorol",
- "previousImage": "Delwedd Flaenorol",
- "previousPage": "Tudalen Flaenorol",
- "settings": "Dewisiadau",
- "twoUp": "Gweld dwy dudalen ar y tro"
- }
- },
- "restrictedDialogue": {
- "content": {
- "cancel": "Canslo"
- }
- },
- "seadragonCenterPanel": {
- "content": {
- "attribution": "Priodoliad",
- "goHome": "Gweld y maint gwreiddiol",
- "imageUnavailable": "Nid oes delwedd ar gael",
- "next": "nesaf",
- "previous": "blaenorol",
- "rotateRight": "Cylchdroi i'r dde",
- "zoomIn": "Closio",
- "zoomOut": "Gwrthglosio"
- }
- },
- "searchFooterPanel": {
- "content": {
- "clearSearch": "Gwaredu",
- "defaultLabel": "-",
- "displaying": "{0} {1} o {2}",
- "enterKeyword": "Mewnosodwch allweddair",
- "image": "delwedd",
- "imageCaps": "delwedd",
- "instanceFound": "Dangos 1 canlyniad ar gyfer '{0}' ",
- "instancesFound": "Dangos {0} canlyniad o '{1}' ",
- "nextResult": "Canlyniad nesaf",
- "page": "tudalen",
- "pageCaps": "tudalen",
- "previousResult": "Canlyniad blaenorol",
- "print": "print",
- "resultFoundFor": "canlyniad a geir ar gyfer",
- "resultsFoundFor": "canlyniad ar gyfer",
- "searchWithin": "Chwilio tu fewn i:"
- }
- },
- "settingsDialogue": {
- "content": {
- "locale": "Iaith",
- "navigatorEnabled": "Llywiwr wedi galluogi",
- "pagingEnabled": "Arddangos dwy dudalen",
- "preserveViewport": "Cadw'r lefel o glosio",
- "title": "Dewisiadau",
- "website": "mwy o wybodaeth"
- }
- },
- "shareDialogue": {
- "content": {
- "customSize": "arfer",
- "embed": "gwreiddio",
- "embedInstructions": "Er mwyn ymgorffori'r eitem hon ar eich gwefan, cop�wch a gosodwch y cod isod.",
- "height": "Hyd",
- "iiif": "IIIF Manifest",
- "share": "Rhannu",
- "shareInstructions": "I rannu yr eitem hon, copïwch y URL isod.",
- "size": "maint:",
- "width": "Lled"
- }
+ "localisation": {
+ "label": "Cymraeg"
+ },
+ "content": {
+ "authCORSError": "Mae angen diweddaru'ch porwr er mwyn galluogi rhannu adnoddau traws-safle.",
+ "authorisationFailedMessage": "Ni lwyddoch i fewngofnodi. Rhowch gynnig arni eto.",
+ "canvasIndexOutOfRange": "Canfas yn rhy fawr i'w arddangos (ceisiwch eto)",
+ "degradedResourceMessage": "Mewngofnodwch i weld ansawdd uchel.",
+ "degradedResourceLogin": "Mewngofnodi",
+ "forbiddenResourceMessage": "Nid yw'ch hawliau mynediad presennol yn ddigonol i weld y ddelwedd hon",
+ "termsOfUse": "Telerau Defnydd"
+ },
+ "modules": {
+ "clickThroughDialogue": {
+ "content": {
+ "viewTerms": "Darllenwch y Telerau a'r Amodau Llawn"
+ }
+ },
+ "contentLeftPanel": {
+ "content": {
+ "collapse": "Lleihau'r Cynnwys",
+ "collapseFull": "Lleihau'r Galeri",
+ "date": "Dyddiad",
+ "expand": "Ehangu'r Cynnwys",
+ "expandFull": "Ehangu'r Galeri",
+ "index": "Mynegai",
+ "searchResult": "{0} canlyniad chwilio",
+ "searchResults": "{0} canlyniad chwilio",
+ "sortBy": "Trefnu yn ôl:",
+ "thumbnails": "Bodluniau",
+ "title": "Cynnwys",
+ "volume": "cyfrol"
+ }
+ },
+ "dialogue": {
+ "content": {
+ "close": "Cau"
+ }
+ },
+ "downloadDialogue": {
+ "content": {
+ "currentViewAsJpg": "Delwedd ddethol {0} x {1}px (jpg)",
+ "currentViewAsJpgExplanation": "Agor mewn dwy ffenest newydd.",
+ "download": "Lawrlwytho",
+ "downloadSelection": "Lawrlwytho'r detholiad",
+ "downloadSelectionExplanation": "Agor ffenest er mwyn dewis tudalennau i'w lawrlwytho.",
+ "editSettings": "Golygu'r dewisiadau",
+ "entireDocument": "Y Ddogfen Gyfan ({0})",
+ "entireFileAsOriginal": "Y ffeil gyfan ({0})",
+ "noneAvailable": "Nid oes unrhyw opsiynau lawrlwytho ar gael.",
+ "pagingNote": "Dad-ddewiswch 'Arddangos Dwy Dudalen' i weld dewisiadau pellach.",
+ "preview": "Rhagolwg",
+ "title": "Lawrlwytho",
+ "wholeImageHighRes": "Delwedd gyfan {0} x {1}px ({2})",
+ "wholeImageHighResExplanation": "Agor mewn ffenest newydd",
+ "wholeImagesHighRes": "Delweddau cyfan ({0})",
+ "wholeImagesHighResExplanation": "Agor mewn dwy ffenest newydd.",
+ "wholeImageLowResAsJpg": "Delwedd gyfan {0} x {1}px (jpg)",
+ "wholeImageLowResAsJpgExplanation": "Agor mewn ffenest newydd"
+ }
+ },
+ "footerPanel": {
+ "content": {
+ "bookmark": "Ychwanegu at nodau tudalen",
+ "download": "Lawrlwytho",
+ "embed": "Ymgorffori",
+ "feedback": "Adborth",
+ "exitFullScreen": "Dianc o'r sgrin lawn",
+ "fullScreen": "Sgrin lawn",
+ "open": "Agor",
+ "share": "Rhannu"
+ }
+ },
+ "genericDialogue": {
+ "content": {
+ "emptyValue": "rhowch rif",
+ "invalidNumber": "Rhowch rif dilys",
+ "noMatches": "Dim canlyniad sy'n cyfateb.",
+ "ok": "GWELD",
+ "pageNotFound": "Nid yw'r eitem yn cynnwys tudalen gyda'r rhif a nodwyd. Ceisiwch cyfnewid y math i 'delwedd'.",
+ "refresh": "Ailosod"
+ }
+ },
+ "helpDialogue": {
+ "content": {
+ "text": "testun i'w osod",
+ "title": "Cymorth"
+ }
+ },
+ "loginDialogue": {
+ "content": {
+ "login": "Mewngofnodi",
+ "logout": "Allgofnodi",
+ "cancel": "Canslo"
+ }
+ },
+ "mobileFooterPanel": {
+ "content": {
+ "rotateRight": "Cylchdroi i'r dde",
+ "moreInfo": "Mwy o Wybodaeth",
+ "zoomIn": "Closio",
+ "zoomOut": "Gwrthglosio"
+ }
+ },
+ "moreInfoRightPanel": {
+ "content": {
+ "attribution": "Priodoledd",
+ "collapse": "Lleihau'r Wybodaeth",
+ "collapseFull": "Cuddio'r Galeri",
+ "description": "Disgrifiad",
+ "expand": "Ehangu'r Wybodaeth",
+ "expandFull": "Ehangu'r Galeri",
+ "holdingText": "Eich modiwl fan hyn!",
+ "less": "llai",
+ "license": "Trwydded",
+ "logo": "Logo",
+ "more": "mwy",
+ "noData": "Nid oes data i'w arddangos",
+ "page": "Tudalen",
+ "title": "Mwy o Wybodaeth",
+ "manifestHeader": "Am yr eitem",
+ "canvasHeader": "Am y ddelwedd",
+ "copyToClipboard": "Copïo i'r clipfwrdd",
+ "copiedToClipboard": "Copïwyd i'r clipfwrdd"
+ }
+ },
+ "multiSelectDialogue": {
+ "content": {
+ "select": "Lawrlwytho",
+ "selectAll": "Dewis y cyfan",
+ "title": "Dewis Tudalennau i'w Lawrlwytho"
+ }
+ },
+ "pagingHeaderPanel": {
+ "content": {
+ "close": "Cau",
+ "emptyValue": "Mewnosodwch werth",
+ "first": "gyntaf",
+ "firstImage": "Delwedd Gyntaf",
+ "firstPage": "Tudalen gyntaf",
+ "folio": "Ffolio",
+ "gallery": "Galeri",
+ "go": "GWELD",
+ "help": "Cymorth",
+ "image": "Delwedd",
+ "last": "Olaf",
+ "lastImage": "Delwedd Olaf",
+ "lastPage": "Tudalen Olaf",
+ "next": "Nesaf",
+ "nextImage": "Delwedd Nesaf",
+ "nextPage": "Tudalen Nesaf",
+ "of": "o {0}",
+ "oneUp": "Gweld un dudalen ar y tro",
+ "page": "Tudalen",
+ "previous": "Blaenorol",
+ "previousImage": "Delwedd Flaenorol",
+ "previousPage": "Tudalen Flaenorol",
+ "settings": "Dewisiadau",
+ "twoUp": "Gweld dwy dudalen ar y tro"
+ }
+ },
+ "seadragonCenterPanel": {
+ "content": {
+ "attribution": "Priodoliad",
+ "goHome": "Gweld y maint gwreiddiol",
+ "imageUnavailable": "Nid oes delwedd ar gael",
+ "next": "nesaf",
+ "previous": "blaenorol",
+ "rotateRight": "Cylchdroi i'r dde",
+ "zoomIn": "Closio",
+ "zoomOut": "Gwrthglosio"
+ }
+ },
+ "restrictedDialogue": {
+ "content": {
+ "cancel": "Canslo"
+ }
+ },
+ "searchFooterPanel": {
+ "content": {
+ "clearSearch": "Gwaredu",
+ "defaultLabel": "-",
+ "displaying": "{0} {1} o {2}",
+ "enterKeyword": "Mewnosodwch allweddair",
+ "image": "delwedd",
+ "imageCaps": "delwedd",
+ "instanceFound": "Dangos 1 canlyniad ar gyfer '{0}' ",
+ "instancesFound": "Dangos {0} canlyniad o '{1}' ",
+ "nextResult": "Canlyniad nesaf",
+ "page": "tudalen",
+ "pageCaps": "tudalen",
+ "previousResult": "Canlyniad blaenorol",
+ "print": "Argraffu",
+ "resultFoundFor": "canlyniad a geir ar gyfer",
+ "resultsFoundFor": "canlyniad ar gyfer",
+ "searchWithin": "Chwilio tu fewn i:"
+ }
+ },
+ "settingsDialogue": {
+ "content": {
+ "locale": "Iaith",
+ "navigatorEnabled": "Ffenest llywio ar gael",
+ "clickToZoomEnabled": "Cliciwch gyda'r llygoden i glosio",
+ "pagingEnabled": "Arddangos dwy dudalen",
+ "preserveViewport": "Cadw'r lefel o glosio",
+ "title": "Dewisiadau",
+ "website": "mwy o wybodaeth"
+ }
+ },
+ "shareDialogue": {
+ "content": {
+ "customSize": "dewisol",
+ "embed": "Ymgorffori",
+ "embedInstructions": "Er mwyn ymgorffori'r eitem hon ar eich gwefan, copïwch a gosodwch y cod isod.",
+ "height": "Hyd",
+ "iiif": "Maniffest IIIF",
+ "share": "Rhannu",
+ "shareInstructions": "Er mwyn rhannu'r eitem hon, copïwch y URL isod.",
+ "size": "Maint:",
+ "width": "Lled"
+ }
+ }
}
- }
-}
+}
\ No newline at end of file
diff --git a/src/extensions/uv-seadragon-extension/l10n/en-GB.json b/src/extensions/uv-seadragon-extension/l10n/en-GB.json
index 9fabe0872..224e1c251 100644
--- a/src/extensions/uv-seadragon-extension/l10n/en-GB.json
+++ b/src/extensions/uv-seadragon-extension/l10n/en-GB.json
@@ -27,6 +27,8 @@
"expand": "Expand Contents",
"expandFull": "Expand Gallery",
"index": "Index",
+ "searchResult": "{0} search result",
+ "searchResults": "{0} search results",
"sortBy": "Sort By:",
"thumbnails": "Thumbnails",
"title": "Contents",
@@ -203,6 +205,7 @@
"content": {
"locale": "Locale",
"navigatorEnabled": "Navigator Enabled",
+ "clickToZoomEnabled": "Mouse Click To Zoom",
"pagingEnabled": "Two Page View",
"preserveViewport": "Preserve Zoom",
"title": "Settings",
diff --git a/src/extensions/uv-seadragon-extension/lib/iiif-gallery-component.js b/src/extensions/uv-seadragon-extension/lib/iiif-gallery-component.js
index 81378feca..c7a1428ef 100644
--- a/src/extensions/uv-seadragon-extension/lib/iiif-gallery-component.js
+++ b/src/extensions/uv-seadragon-extension/lib/iiif-gallery-component.js
@@ -1,4 +1,4 @@
-// iiif-gallery-component v1.0.0 https://github.com/viewdir/iiif-gallery-component#readme
+// iiif-gallery-component v1.0.6 https://github.com/viewdir/iiif-gallery-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifGalleryComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\
+ \
\
{^{if multiSelectEnabled}}\
\
{{/if}}\
\
-
{{:#index + 1}}\
-
{{>label}} \
+
\
+ {{:#index + 1}}\
+ {{>label}} \
+ {{>data.searchResults}}\
+
\
'
});
+ var that = this;
$.views.helpers({
- className: function () {
+ galleryThumbClassName: function () {
var className = "thumb preLoad";
if (this.data.index === 0) {
className += " first";
@@ -103,6 +107,15 @@ var IIIFComponents;
className += " placeholder";
}
return className;
+ },
+ galleryThumbSearchResultsTitle: function () {
+ var searchResults = Number(this.data.data.searchResults);
+ if (searchResults) {
+ if (searchResults > 1) {
+ return String.format(that.options.content.searchResults, searchResults);
+ }
+ return String.format(that.options.content.searchResult, searchResults);
+ }
}
});
// use unevent to detect scroll stop.
@@ -116,9 +129,10 @@ var IIIFComponents;
};
GalleryComponent.prototype._getDefaultOptions = function () {
return {
- chunkedResizingEnabled: true,
chunkedResizingThreshold: 400,
content: {
+ searchResult: "{0} search result",
+ searchResults: "{0} search results",
select: "Select",
selectAll: "Select All"
},
@@ -126,8 +140,10 @@ var IIIFComponents;
helper: null,
imageFadeInDuration: 300,
initialZoom: 6,
+ minLabelWidth: 20,
pageModeEnabled: false,
scrollStopDuration: 100,
+ searchResults: [],
sizingEnabled: true,
thumbHeight: 320,
thumbLoadPadding: 3,
@@ -140,6 +156,17 @@ var IIIFComponents;
if (this.options.viewingDirection.toString() === manifesto.ViewingDirection.bottomToTop().toString()) {
this._thumbs.reverse();
}
+ if (this.options.searchResults && this.options.searchResults.length) {
+ for (var i = 0; i < this.options.searchResults.length; i++) {
+ var searchResult = this.options.searchResults[i];
+ // find the thumb with the same canvasIndex and add the searchResult
+ var thumb = this._thumbs.en().where(function (t) { return t.index === searchResult.canvasIndex; }).first();
+ // clone the data so searchResults isn't persisted on the canvas.
+ var data = $.extend(true, {}, thumb.data);
+ data.searchResults = searchResult.rects.length;
+ thumb.data = data;
+ }
+ }
this._thumbsCache = null; // delete cache
this._createThumbs();
this.selectIndex(this.options.helper.canvasIndex);
@@ -147,8 +174,8 @@ var IIIFComponents;
if (multiSelectState.isEnabled) {
this._$multiSelectOptions.show();
this._$thumbs.addClass("multiSelect");
- for (var j = 0; j < multiSelectState.canvases.length; j++) {
- var canvas = multiSelectState.canvases[j];
+ for (var i = 0; i < multiSelectState.canvases.length; i++) {
+ var canvas = multiSelectState.canvases[i];
var thumb = this._getThumbByCanvas(canvas);
this._setThumbMultiSelected(thumb, canvas.multiSelected);
}
@@ -156,8 +183,8 @@ var IIIFComponents;
for (var i = 0; i < multiSelectState.ranges.length; i++) {
var range = multiSelectState.ranges[i];
var thumbs = this._getThumbsByRange(range);
- for (var k = 0; k < thumbs.length; k++) {
- var thumb = thumbs[k];
+ for (var i_1 = 0; i_1 < thumbs.length; i_1++) {
+ var thumb = thumbs[i_1];
this._setThumbMultiSelected(thumb, range.multiSelected);
}
}
@@ -166,6 +193,21 @@ var IIIFComponents;
this._$multiSelectOptions.hide();
this._$thumbs.removeClass("multiSelect");
}
+ this._update();
+ };
+ GalleryComponent.prototype._update = function () {
+ var multiSelectState = this._getMultiSelectState();
+ if (multiSelectState.isEnabled) {
+ // check/uncheck Select All checkbox
+ this._$selectAllButtonCheckbox.prop("checked", multiSelectState.allSelected());
+ var anySelected = multiSelectState.getAll().en().where(function (t) { return t.multiSelected; }).toArray().length > 0;
+ if (!anySelected) {
+ this._$selectButton.hide();
+ }
+ else {
+ this._$selectButton.show();
+ }
+ }
};
GalleryComponent.prototype._getMultiSelectState = function () {
return this.options.helper.getMultiSelectState();
@@ -177,9 +219,6 @@ var IIIFComponents;
return;
this._$thumbs.undelegate('.thumb', 'click');
this._$thumbs.empty();
- if (this._isChunkedResizingEnabled()) {
- this._$thumbs.addClass("chunked");
- }
var multiSelectState = this._getMultiSelectState();
// set initial thumb sizes
var heights = [];
@@ -193,8 +232,8 @@ var IIIFComponents;
thumb.multiSelectEnabled = multiSelectState.isEnabled;
}
var medianHeight = Math.median(heights);
- for (var j = 0; j < this._thumbs.length; j++) {
- var thumb = this._thumbs[j];
+ for (var i = 0; i < this._thumbs.length; i++) {
+ var thumb = this._thumbs[i];
thumb.initialHeight = medianHeight;
}
this._$thumbs.link($.templates.galleryThumbsTemplate, this._thumbs);
@@ -223,26 +262,52 @@ var IIIFComponents;
else {
multiSelectState.selectCanvas(thumb.data, thumb.multiSelected);
}
+ that._update();
that._emit(GalleryComponent.Events.THUMB_MULTISELECTED, thumb);
});
});
}
- this._setLabel();
- this._updateThumbs();
};
GalleryComponent.prototype._getThumbByCanvas = function (canvas) {
return this._thumbs.en().where(function (c) { return c.data.id === canvas.id; }).first();
};
GalleryComponent.prototype._sizeThumb = function ($thumb) {
- var $wrap = $thumb.find('.wrap');
- var width = Number($thumb.data().initialwidth);
- var height = Number($thumb.data().initialheight);
- var $label = $thumb.find('.label');
+ var initialWidth = $thumb.data().initialwidth;
+ var initialHeight = $thumb.data().initialheight;
+ var width = Number(initialWidth);
+ var height = Number(initialHeight);
var newWidth = Math.floor(width * this._range);
var newHeight = Math.floor(height * this._range);
+ var $wrap = $thumb.find('.wrap');
+ var $label = $thumb.find('.label');
+ var $index = $thumb.find('.index');
+ var $searchResults = $thumb.find('.searchResults');
+ var newLabelWidth = newWidth;
+ // if search results are visible, size index/label to accommodate it.
+ // if the resulting size is below options.minLabelWidth, hide search results.
+ if (this.options.searchResults && this.options.searchResults.length) {
+ $searchResults.show();
+ newLabelWidth = newWidth - $searchResults.outerWidth();
+ if (newLabelWidth < this.options.minLabelWidth) {
+ $searchResults.hide();
+ newLabelWidth = newWidth;
+ }
+ else {
+ $searchResults.show();
+ }
+ }
+ if (this.options.pageModeEnabled) {
+ $index.hide();
+ $label.show();
+ }
+ else {
+ $index.show();
+ $label.hide();
+ }
$wrap.outerWidth(newWidth);
$wrap.outerHeight(newHeight);
- $label.outerWidth(newWidth);
+ $index.outerWidth(newLabelWidth);
+ $label.outerWidth(newLabelWidth);
};
GalleryComponent.prototype._loadThumb = function ($thumb, cb) {
var $wrap = $thumb.find('.wrap');
@@ -255,16 +320,16 @@ var IIIFComponents;
if (visible !== "false") {
$wrap.addClass('loading');
var src = $thumb.attr('data-src');
- var img = $('');
+ var $img = $('');
// fade in on load.
- $(img).hide().load(function () {
+ $img.hide().load(function () {
$(this).fadeIn(fadeDuration, function () {
$(this).parent().swapClass('loading', 'loaded');
});
});
- $wrap.prepend(img);
+ $wrap.prepend($img);
if (cb)
- cb(img);
+ cb($img);
}
else {
$wrap.addClass('hidden');
@@ -294,45 +359,37 @@ var IIIFComponents;
}
// test which thumbs are scrolled into view
var thumbs = this._getAllThumbs();
+ var numToUpdate = 0;
for (var i = 0; i < thumbs.length; i++) {
var $thumb = $(thumbs[i]);
var thumbTop = $thumb.position().top;
var thumbHeight = $thumb.outerHeight();
var thumbBottom = thumbTop + thumbHeight;
- if (debug) {
- var $label = $thumb.find('span:visible');
- $label.empty().append('t: ' + thumbTop + ', b: ' + thumbBottom);
- }
- // if chunked resizing isn't enabled, resize all thumbs
- if (!this._isChunkedResizingEnabled()) {
- this._sizeThumb($thumb);
- }
var padding = thumbHeight * this.options.thumbLoadPadding;
// check all thumbs to see if they are within the scroll area plus padding
if (thumbTop <= scrollBottom + padding && thumbBottom >= scrollTop - padding) {
- // if chunked resizing is enabled, only resize, equalise, and show thumbs in the scroll area
- if (this._isChunkedResizingEnabled()) {
- this._sizeThumb($thumb);
- }
- $thumb.removeClass('outsideScrollArea');
- if (debug) {
- $label.append(', i: true');
- }
+ numToUpdate += 1;
+ var $label = $thumb.find('span:visible').not('.searchResults');
+ // if (debug) {
+ // $thumb.addClass('debug');
+ // $label.empty().append('t: ' + thumbTop + ', b: ' + thumbBottom);
+ // } else {
+ // $thumb.removeClass('debug');
+ // }
+ this._sizeThumb($thumb);
+ $thumb.addClass('insideScrollArea');
+ // if (debug) {
+ // $label.append(', i: true');
+ // }
this._loadThumb($thumb);
}
else {
- $thumb.addClass('outsideScrollArea');
- if (debug) {
- $label.append(', i: false');
- }
+ $thumb.removeClass('insideScrollArea');
}
}
- };
- GalleryComponent.prototype._isChunkedResizingEnabled = function () {
- if (this.options.chunkedResizingEnabled && this._thumbs.length > this.options.chunkedResizingThreshold) {
- return true;
+ if (debug) {
+ console.log('number of thumbs to update: ' + numToUpdate);
}
- return false;
};
GalleryComponent.prototype._getSelectedThumbIndex = function () {
return Number(this._$selectedThumb.data('index'));
@@ -350,15 +407,16 @@ var IIIFComponents;
var $thumb = this._getThumbByIndex(canvasIndex);
this._$main.scrollTop($thumb.position().top);
};
- GalleryComponent.prototype._searchPreviewStart = function (canvasIndex) {
- this._scrollToThumb(canvasIndex);
- var $thumb = this._getThumbByIndex(canvasIndex);
- $thumb.addClass('searchpreview');
- };
- GalleryComponent.prototype._searchPreviewFinish = function () {
- this._scrollToThumb(this.options.helper.canvasIndex);
- this._getAllThumbs().removeClass('searchpreview');
- };
+ // these don't work well because thumbs are loaded in chunks
+ // public searchPreviewStart(canvasIndex: number): void {
+ // this._scrollToThumb(canvasIndex);
+ // const $thumb: JQuery = this._getThumbByIndex(canvasIndex);
+ // $thumb.addClass('searchpreview');
+ // }
+ // public searchPreviewFinish(): void {
+ // this._scrollToThumb(this.options.helper.canvasIndex);
+ // this._getAllThumbs().removeClass('searchpreview');
+ // }
GalleryComponent.prototype.selectIndex = function (index) {
if (!this._thumbs || !this._thumbs.length)
return;
@@ -369,16 +427,6 @@ var IIIFComponents;
// make sure visible images are loaded.
this._updateThumbs();
};
- GalleryComponent.prototype._setLabel = function () {
- if (this.options.pageModeEnabled) {
- $(this._$thumbs).find('span.index').hide();
- $(this._$thumbs).find('span.label').show();
- }
- else {
- $(this._$thumbs).find('span.index').show();
- $(this._$thumbs).find('span.label').hide();
- }
- };
GalleryComponent.prototype._setRange = function () {
var norm = Math.normalise(Number(this._$sizeRange.val()), 0, 10);
this._range = Math.clamp(norm, 0.05, 1);
diff --git a/src/extensions/uv-seadragon-extension/lib/iiif-metadata-component.js b/src/extensions/uv-seadragon-extension/lib/iiif-metadata-component.js
index 1481b91e8..2223e4e5f 100644
--- a/src/extensions/uv-seadragon-extension/lib/iiif-metadata-component.js
+++ b/src/extensions/uv-seadragon-extension/lib/iiif-metadata-component.js
@@ -1,4 +1,4 @@
-// iiif-metadata-component v1.0.0 https://github.com/viewdir/iiif-metadata-component#readme
+// iiif-metadata-component v1.0.10 https://github.com/viewdir/iiif-metadata-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifMetadataComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\
');
this._$metadataItemValueTemplate = $('');
+ this._$metadataItemURIValueTemplate = $('');
this._$copyTextTemplate = $('\
' + this.options.content.copiedToClipboard + '
\
');
@@ -282,7 +283,8 @@ var IIIFComponents;
var $metadataItem = this._$metadataItemTemplate.clone();
var $label = $metadataItem.find('.label');
var $values = $metadataItem.find('.values');
- var label = item.getLabel();
+ var originalLabel = item.getLabel();
+ var label = originalLabel;
if (label && item.isRootLevel) {
switch (label.toLowerCase()) {
case "attribution":
@@ -306,29 +308,50 @@ var IIIFComponents;
$metadataItem.addClass(label.toCssClass());
var value;
var $value;
- if (this.options.showAllLanguages && item.value && item.value.length > 1) {
- for (var i = 0; i < item.value.length; i++) {
- var translation = item.value[i];
- $value = this._buildMetadataItemValue(translation.value, translation.locale);
- $values.append($value);
- }
+ // if the value is a URI
+ if (originalLabel && originalLabel.toLowerCase() === "license") {
+ $value = this._buildMetadataItemURIValue(item.value[0].value);
+ $values.append($value);
}
else {
- $value = this._buildMetadataItemValue(item.getValue(), this._getItemLocale(item));
- $values.append($value);
+ if (this.options.showAllLanguages && item.value && item.value.length > 1) {
+ // display all values in each locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ else {
+ var itemLocale = this._getItemLocale(item);
+ var valueFound = false;
+ // display all values in the item's locale
+ for (var i = 0; i < item.value.length; i++) {
+ var translation = item.value[i];
+ if (itemLocale === translation.locale) {
+ valueFound = true;
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ // if no values were found in the current locale, default to the first.
+ if (!valueFound) {
+ var translation = item.value[0];
+ if (translation) {
+ $value = this._buildMetadataItemValue(translation.value, translation.locale);
+ $values.append($value);
+ }
+ }
+ }
}
- if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $value.text() && $label.text()) {
- this._addCopyButton($metadataItem, $label);
+ if (this.options.copyToClipboardEnabled && Utils.Clipboard.supportsCopy() && $label.text()) {
+ this._addCopyButton($metadataItem, $label, $values);
}
return $metadataItem;
};
MetadataComponent.prototype._getItemLocale = function (item) {
- if (item.value && item.value.length) {
- return item.value[0].locale;
- }
- else {
- return item.defaultLocale || this.options.helper.options.locale;
- }
+ // the item's label locale takes precedence
+ return (item.label.length && item.label[0].locale) ? item.label[0].locale : item.defaultLocale || this.options.helper.options.locale;
};
MetadataComponent.prototype._buildMetadataItemValue = function (value, locale) {
value = this._sanitize(value);
@@ -342,6 +365,13 @@ var IIIFComponents;
}
return $value;
};
+ MetadataComponent.prototype._buildMetadataItemURIValue = function (value) {
+ value = this._sanitize(value);
+ var $value = this._$metadataItemURIValueTemplate.clone();
+ $value.prop('href', value);
+ $value.text(value);
+ return $value;
+ };
MetadataComponent.prototype._addReadingDirection = function ($elem, locale) {
locale = Manifesto.Utils.getInexactLocale(locale);
var rtlLanguages = this._readCSV(this.options.rtlLanguageCodes);
@@ -351,7 +381,7 @@ var IIIFComponents;
$elem.addClass('rtl');
}
};
- MetadataComponent.prototype._addCopyButton = function ($elem, $header) {
+ MetadataComponent.prototype._addCopyButton = function ($elem, $header, $values) {
var $copyBtn = this._$copyTextTemplate.clone();
var $copiedText = $copyBtn.children();
$header.append($copyBtn);
@@ -370,20 +400,13 @@ var IIIFComponents;
});
}
var that = this;
+ var originalValue = $values.text();
$copyBtn.on('click', function (e) {
- var $this = $(this);
- var $item = $this.closest('.item');
- that._copyItemValues($this, $item);
+ that._copyItemValues($copyBtn, originalValue);
});
};
- MetadataComponent.prototype._copyItemValues = function ($copyButton, $item) {
- var $values = $item.find('.value');
- var values = "";
- for (var i = 0; i < $values.length; i++) {
- var value = $($values[i]).text();
- values.length ? values += '\n' + value : values += value;
- }
- Utils.Clipboard.copy(values);
+ MetadataComponent.prototype._copyItemValues = function ($copyButton, originalValue) {
+ Utils.Clipboard.copy(originalValue);
var $copiedText = $copyButton.find('.copiedText');
$copiedText.show();
setTimeout(function () {
diff --git a/src/extensions/uv-seadragon-extension/lib/iiif-tree-component.js b/src/extensions/uv-seadragon-extension/lib/iiif-tree-component.js
index 996b13ef8..40449ee5f 100644
--- a/src/extensions/uv-seadragon-extension/lib/iiif-tree-component.js
+++ b/src/extensions/uv-seadragon-extension/lib/iiif-tree-component.js
@@ -1,4 +1,4 @@
-// iiif-tree-component v1.0.1 https://github.com/viewdir/iiif-tree-component#readme
+// iiif-tree-component v1.0.7 https://github.com/viewdir/iiif-tree-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifTreeComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o",major:parseInt("<%= osdVersion.major %>",10),minor:parseInt("<%= osdVersion.minor %>",10),revision:parseInt("<%= osdVersion.revision %>",10)};var b={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},c=Object.prototype.toString,d=Object.prototype.hasOwnProperty;a.isFunction=function(b){return"function"===a.type(b)};a.isArray=Array.isArray||function(b){return"array"===a.type(b)};a.isWindow=function(a){return a&&"object"==typeof a&&"setInterval"in a};a.type=function(a){return null===a||void 0===a?String(a):b[c.call(a)]||"object"};a.isPlainObject=function(b){if(!b||"object"!==OpenSeadragon.type(b)||b.nodeType||a.isWindow(b))return!1;if(b.constructor&&!d.call(b,"constructor")&&!d.call(b.constructor.prototype,"isPrototypeOf"))return!1;var c;for(var e in b)c=e;return void 0===c||d.call(b,c)};a.isEmptyObject=function(a){for(var b in a)return!1;return!0};a.freezeObject=function(b){Object.freeze?a.freezeObject=Object.freeze:a.freezeObject=function(a){return a};return a.freezeObject(b)};a.supportsCanvas=function(){var b=document.createElement("canvas");return!(!a.isFunction(b.getContext)||!b.getContext("2d"))}();a.isCanvasTainted=function(a){var b=!1;try{a.getContext("2d").getImageData(0,0,1,1)}catch(c){b=!0}return b};a.pixelDensityRatio=function(){if(a.supportsCanvas){var b=document.createElement("canvas").getContext("2d");var c=window.devicePixelRatio||1;var d=b.webkitBackingStorePixelRatio||b.mozBackingStorePixelRatio||b.msBackingStorePixelRatio||b.oBackingStorePixelRatio||b.backingStorePixelRatio||1;return c/d}return 1}()}(OpenSeadragon);!function($){function getOffsetParent(a,b){return b&&a!=document.body?document.body:a.offsetParent}$.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=arguments.length,i=!1,j=1;if("boolean"==typeof g){i=g;g=arguments[1]||{};j=2}"object"==typeof g||OpenSeadragon.isFunction(g)||(g={});if(h===j){g=this;--j}for(;h>j;j++){a=arguments[j];if(null!==a||void 0!==a)for(b in a){c=g[b];d=a[b];if(g!==d)if(i&&d&&(OpenSeadragon.isPlainObject(d)||(e=OpenSeadragon.isArray(d)))){if(e){e=!1;f=c&&OpenSeadragon.isArray(c)?c:[]}else f=c&&OpenSeadragon.isPlainObject(c)?c:{};g[b]=OpenSeadragon.extend(i,f,d)}else void 0!==d&&(g[b]=d)}}return g};var isIOSDevice=function(){if("object"!=typeof navigator)return!1;var a=navigator.userAgent;return"string"!=typeof a?!1:-1!==a.indexOf("iPhone")||-1!==a.indexOf("iPad")||-1!==a.indexOf("iPod")};$.extend($,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,panHorizontal:!0,panVertical:!0,constrainDuringPan:!1,wrapHorizontal:!1,wrapVertical:!1,visibilityRatio:.5,minPixelRatio:.5,defaultZoomLevel:0,minZoomLevel:null,maxZoomLevel:null,homeFillsViewer:!1,clickTimeThreshold:300,clickDistThreshold:5,dblClickTimeThreshold:300,dblClickDistThreshold:20,springStiffness:6.5,animationTime:1.2,gestureSettingsMouse:{scrollToZoom:!0,clickToZoom:!0,dblClickToZoom:!1,pinchToZoom:!1,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,pinchToZoom:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,pinchToZoom:!1,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,pinchToZoom:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},zoomPerClick:2,zoomPerScroll:1.2,zoomPerSecond:1,blendTime:0,alwaysBlend:!1,autoHideControls:!0,immediateRender:!1,minZoomImageRatio:.9,maxZoomPixelRatio:1.1,smoothTileEdgesMinZoom:1.1,iOSDevice:isIOSDevice(),pixelsPerWheelLine:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,controlsFadeDelay:2e3,controlsFadeLength:1500,mouseNavEnabled:!0,showNavigator:!1,navigatorId:null,navigatorPosition:null,navigatorSizeRatio:.2,navigatorMaintainSizeRatio:!1,navigatorTop:null,navigatorLeft:null,navigatorHeight:null,navigatorWidth:null,navigatorAutoResize:!0,navigatorAutoFade:!0,navigatorRotate:!0,degrees:0,opacity:1,compositeOperation:null,placeholderFillStyle:null,showReferenceStrip:!1,referenceStripScroll:"horizontal",referenceStripElement:null,referenceStripHeight:null,referenceStripWidth:null,referenceStripPosition:"BOTTOM_LEFT",referenceStripSizeRatio:.2,collectionRows:3,collectionColumns:0,collectionLayout:"horizontal",collectionMode:!1,collectionTileSize:800,collectionTileMargin:80,imageLoaderLimit:0,maxImageCacheCount:200,timeout:3e4,useCanvas:!0,prefixUrl:"/images/",navImages:{zoomIn:{REST:"zoomin_rest.png",GROUP:"zoomin_grouphover.png",HOVER:"zoomin_hover.png",DOWN:"zoomin_pressed.png"},zoomOut:{REST:"zoomout_rest.png",GROUP:"zoomout_grouphover.png",HOVER:"zoomout_hover.png",DOWN:"zoomout_pressed.png"},home:{REST:"home_rest.png",GROUP:"home_grouphover.png",HOVER:"home_hover.png",DOWN:"home_pressed.png"},fullpage:{REST:"fullpage_rest.png",GROUP:"fullpage_grouphover.png",HOVER:"fullpage_hover.png",DOWN:"fullpage_pressed.png"},rotateleft:{REST:"rotateleft_rest.png",GROUP:"rotateleft_grouphover.png",HOVER:"rotateleft_hover.png",DOWN:"rotateleft_pressed.png"},rotateright:{REST:"rotateright_rest.png",GROUP:"rotateright_grouphover.png",HOVER:"rotateright_hover.png",DOWN:"rotateright_pressed.png"},previous:{REST:"previous_rest.png",GROUP:"previous_grouphover.png",HOVER:"previous_hover.png",DOWN:"previous_pressed.png"},next:{REST:"next_rest.png",GROUP:"next_grouphover.png",HOVER:"next_hover.png",DOWN:"next_pressed.png"}},debugMode:!1,debugGridColor:"#437AB2"},SIGNAL:"----seadragon----",delegate:function(a,b){return function(){var c=arguments;void 0===c&&(c=[]);return b.apply(a,c)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5},getElement:function(a){"string"==typeof a&&(a=document.getElementById(a));return a},getElementPosition:function(a){var b,c,d=new $.Point;a=$.getElement(a);b="fixed"==$.getElementStyle(a).position;c=getOffsetParent(a,b);for(;c;){d.x+=a.offsetLeft;d.y+=a.offsetTop;b&&(d=d.plus($.getPageScroll()));a=c;b="fixed"==$.getElementStyle(a).position;c=getOffsetParent(a,b)}return d},getElementOffset:function(a){a=$.getElement(a);var b,c,d=a&&a.ownerDocument,e={top:0,left:0};if(!d)return new $.Point;b=d.documentElement;"undefined"!=typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect());c=d==d.window?d:9===d.nodeType?d.defaultView||d.parentWindow:!1;return new $.Point(e.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0),e.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0))},getElementSize:function(a){a=$.getElement(a);return new $.Point(a.clientWidth,a.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(a){a=$.getElement(a);return a.currentStyle}:function(a){a=$.getElement(a);return window.getComputedStyle(a,"")},getCssPropertyWithVendorPrefix:function(a){var b={};$.getCssPropertyWithVendorPrefix=function(a){if(void 0!==b[a])return b[a];var c=document.createElement("div").style;var d=null;if(void 0!==c[a])d=a;else{var e=["Webkit","Moz","MS","O","webkit","moz","ms","o"];var f=$.capitalizeFirstLetter(a);for(var g=0;g=c.x&&b.x=c.y},getEvent:function(a){a?$.getEvent=function(a){return a}:$.getEvent=function(){return window.event};return $.getEvent(a)},getMousePosition:function(a){if("number"==typeof a.pageX)$.getMousePosition=function(a){var b=new $.Point;a=$.getEvent(a);b.x=a.pageX;b.y=a.pageY;return b};else{if("number"!=typeof a.clientX)throw new Error("Unknown event mouse position, no known technique.");$.getMousePosition=function(a){var b=new $.Point;a=$.getEvent(a);b.x=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;b.y=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;return b}}return $.getMousePosition(a)},getPageScroll:function(){var a=document.documentElement||{},b=document.body||{};if("number"==typeof window.pageXOffset)$.getPageScroll=function(){return new $.Point(window.pageXOffset,window.pageYOffset)};else if(b.scrollLeft||b.scrollTop)$.getPageScroll=function(){return new $.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!a.scrollLeft&&!a.scrollTop)return new $.Point(0,0);$.getPageScroll=function(){return new $.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return $.getPageScroll()},setPageScroll:function(a){if("undefined"!=typeof window.scrollTo)$.setPageScroll=function(a){window.scrollTo(a.x,a.y)};else{var b=$.getPageScroll();if(b.x===a.x&&b.y===a.y)return;document.body.scrollLeft=a.x;document.body.scrollTop=a.y;var c=$.getPageScroll();if(c.x!==b.x&&c.y!==b.y){$.setPageScroll=function(a){document.body.scrollLeft=a.x;document.body.scrollTop=a.y};return}document.documentElement.scrollLeft=a.x;document.documentElement.scrollTop=a.y;c=$.getPageScroll();if(c.x!==b.x&&c.y!==b.y){$.setPageScroll=function(a){document.documentElement.scrollLeft=a.x;document.documentElement.scrollTop=a.y};return}$.setPageScroll=function(a){}}return $.setPageScroll(a)},getWindowSize:function(){var a=document.documentElement||{},b=document.body||{};if("number"==typeof window.innerWidth)$.getWindowSize=function(){return new $.Point(window.innerWidth,window.innerHeight)};else if(a.clientWidth||a.clientHeight)$.getWindowSize=function(){return new $.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!b.clientWidth&&!b.clientHeight)throw new Error("Unknown window size, no known technique.");$.getWindowSize=function(){return new $.Point(document.body.clientWidth,document.body.clientHeight)}}return $.getWindowSize()},makeCenteredNode:function(a){a=$.getElement(a);var b=[$.makeNeutralElement("div"),$.makeNeutralElement("div"),$.makeNeutralElement("div")];$.extend(b[0].style,{display:"table",height:"100%",width:"100%"});$.extend(b[1].style,{display:"table-row"});$.extend(b[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"});b[0].appendChild(b[1]);b[1].appendChild(b[2]);b[2].appendChild(a);return b[0]},makeNeutralElement:function(a){var b=document.createElement(a),c=b.style;c.background="transparent none";c.border="none";c.margin="0px";c.padding="0px";c.position="static";return b},now:function(){Date.now?$.now=Date.now:$.now=function(){return(new Date).getTime()};return $.now()},makeTransparentImage:function(a){$.makeTransparentImage=function(a){var b=$.makeNeutralElement("img");b.src=a;return b};$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<7&&($.makeTransparentImage=function(a){var b=$.makeNeutralElement("img"),c=null;c=$.makeNeutralElement("span");c.style.display="inline-block";b.onload=function(){c.style.width=c.style.width||b.width+"px";c.style.height=c.style.height||b.height+"px";b.onload=null;b=null};b.src=a;c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"', sizingMethod='scale')";return c});return $.makeTransparentImage(a)},setElementOpacity:function(a,b,c){var d,e;a=$.getElement(a);c&&!$.Browser.alpha&&(b=Math.round(b));if($.Browser.opacity)a.style.opacity=1>b?b:"";else if(1>b){d=Math.round(100*b);e="alpha(opacity="+d+")";a.style.filter=e}else a.style.filter=""},setElementTouchActionNone:function(a){a=$.getElement(a);"undefined"!=typeof a.style.touchAction?a.style.touchAction="none":"undefined"!=typeof a.style.msTouchAction&&(a.style.msTouchAction="none")},addClass:function(a,b){a=$.getElement(a);a.className?-1===(" "+a.className+" ").indexOf(" "+b+" ")&&(a.className+=" "+b):a.className=b},indexOf:function(a,b,c){Array.prototype.indexOf?this.indexOf=function(a,b,c){return a.indexOf(b,c)}:this.indexOf=function(a,b,c){var d,e,f=c?c:0;if(!a)throw new TypeError;e=a.length;if(0===e||f>=e)return-1;0>f&&(f=e-Math.abs(f));for(d=f;e>d;d++)if(a[d]===b)return d;return-1};return this.indexOf(a,b,c)},removeClass:function(a,b){var c,d,e=[];a=$.getElement(a);c=a.className.split(/\s+/);for(d=0;d