-
Notifications
You must be signed in to change notification settings - Fork 0
/
tify.js
12 lines (12 loc) · 397 KB
/
tify.js
1
2
3
4
5
6
7
8
9
10
11
12
/*!
* TIFY v0.24.2
* (c) 2017-2020 Göttingen State and University Library (https://www.sub.uni-goettingen.de/en/)
* AGPL-3.0
* https://github.com/tify-iiif-viewer/tify
*/(function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)})({0:function(e,t,n){e.exports=n("56d7")},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"031f":function(e,t,n){n("d3b7"),n("25f0"),function(e){e.Drawer=function(t){e.console.assert(t.viewer,"[Drawer] options.viewer is required");var n=arguments;if(e.isPlainObject(t)||(t={source:n[0],viewport:n[1],element:n[2]}),e.console.assert(t.viewport,"[Drawer] options.viewport is required"),e.console.assert(t.element,"[Drawer] options.element is required"),t.source&&e.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=t.viewer,this.viewport=t.viewport,this.debugGridColor="string"===typeof t.debugGridColor?[t.debugGridColor]:t.debugGridColor||e.DEFAULT_SETTINGS.debugGridColor,t.opacity&&e.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=e.supportsCanvas&&(!this.viewer||this.viewer.useCanvas),this.container=e.getElement(t.element),this.canvas=e.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var i=this._calculateCanvasSize();this.canvas.width=i.x,this.canvas.height=i.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",e.setElementOpacity(this.canvas,this.opacity,!0),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},e.Drawer.prototype={addOverlay:function(t,n,i,r){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,i,r),this},updateOverlay:function(t,n,i){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,i),this},removeOverlay:function(t){return e.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(t),this},clearOverlays:function(){return e.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var n=this.viewer.world,i=0;i<n.getItemCount();i++)n.getItemAt(i).setOpacity(t);return this},getOpacity:function(){e.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var t=this.viewer.world,n=0,i=0;i<t.getItemCount();i++){var r=t.getItemAt(i).getOpacity();r>n&&(n=r)}return n},needsUpdate:function(){return e.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return e.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return e.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return e.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var e=this._calculateCanvasSize();if((this.canvas.width!=e.x||this.canvas.height!=e.y)&&(this.canvas.width=e.x,this.canvas.height=e.y,this._updateImageSmoothingEnabled(this.context),null!==this.sketchCanvas)){var t=this._calculateSketchCanvasSize();this.sketchCanvas.width=t.x,this.sketchCanvas.height=t.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(e,t){if(this.useCanvas){var n=this._getContext(e);if(t)n.clearRect(t.x,t.y,t.width,t.height);else{var i=n.canvas;n.clearRect(0,0,i.width,i.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),i=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,i.x*e.pixelDensityRatio,i.y*e.pixelDensityRatio)},drawTile:function(t,n,i,r,o){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(n,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var s=this._getContext(i);r=r||1,t.drawCanvas(s,n,r,o)}else t.drawHTML(this.canvas)},_getContext:function(e){var t=this.context;if(e){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var n=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=n.x,this.sketchCanvas.height=n.y,this.sketchContext=this.sketchCanvas.getContext("2d"),0===this.viewport.getRotation()){var i=this;this.viewer.addHandler("rotate",(function e(){if(0!==i.viewport.getRotation()){i.viewer.removeHandler("rotate",e);var t=i._calculateSketchCanvasSize();i.sketchCanvas.width=t.x,i.sketchCanvas.height=t.y}}))}this._updateImageSmoothingEnabled(this.sketchContext)}t=this.sketchContext}return t},saveContext:function(e){this.useCanvas&&this._getContext(e).save()},restoreContext:function(e){this.useCanvas&&this._getContext(e).restore()},setClip:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),n.rect(e.x,e.y,e.width,e.height),n.clip()}},drawRectangle:function(e,t,n){if(this.useCanvas){var i=this._getContext(n);i.save(),i.fillStyle=t,i.fillRect(e.x,e.y,e.width,e.height),i.restore()}},blendSketch:function(t,n,i,r){var o=t;if(e.isPlainObject(o)||(o={opacity:t,scale:n,translate:i,compositeOperation:r}),this.useCanvas&&this.sketchCanvas){t=o.opacity,r=o.compositeOperation;var s=o.bounds;if(this.context.save(),this.context.globalAlpha=t,r&&(this.context.globalCompositeOperation=r),s)s.x<0&&(s.width+=s.x,s.x=0),s.x+s.width>this.canvas.width&&(s.width=this.canvas.width-s.x),s.y<0&&(s.height+=s.y,s.y=0),s.y+s.height>this.canvas.height&&(s.height=this.canvas.height-s.y),this.context.drawImage(this.sketchCanvas,s.x,s.y,s.width,s.height,s.x,s.y,s.width,s.height);else{n=o.scale||1,i=o.translate;var a=i instanceof e.Point?i:new e.Point(0,0),l=0,c=0;if(i){var u=this.sketchCanvas.width-this.canvas.width,h=this.sketchCanvas.height-this.canvas.height;l=Math.round(u/2),c=Math.round(h/2)}this.context.drawImage(this.sketchCanvas,a.x-l*n,a.y-c*n,(this.canvas.width+2*l)*n,(this.canvas.height+2*c)*n,-l,-c,this.canvas.width+2*l,this.canvas.height+2*c)}this.context.restore()}},drawDebugInfo:function(t,n,i,r){if(this.useCanvas){var o=this.viewer.world.getIndexOfItem(r)%this.debugGridColor.length,s=this.context;s.save(),s.lineWidth=2*e.pixelDensityRatio,s.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",s.strokeStyle=this.debugGridColor[o],s.fillStyle=this.debugGridColor[o],0!==this.viewport.degrees&&this._offsetForRotation({degrees:this.viewport.degrees}),r.getRotation(!0)%360!==0&&this._offsetForRotation({degrees:r.getRotation(!0),point:r.viewport.pixelFromPointNoRotate(r._getRotationPoint(!0),!0)}),0===r.viewport.degrees&&r.getRotation(!0)%360===0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),s.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var a=(t.position.x+t.size.x/2)*e.pixelDensityRatio,l=(t.position.y+t.size.y/2)*e.pixelDensityRatio;s.translate(a,l),s.rotate(Math.PI/180*-this.viewport.degrees),s.translate(-a,-l),0===t.x&&0===t.y&&(s.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),s.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),s.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),s.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),s.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),s.fillText("Order: "+i+" of "+n,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),s.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),s.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),0!==this.viewport.degrees&&this._restoreRotationChanges(),r.getRotation(!0)%360!==0&&this._restoreRotationChanges(),0===r.viewport.degrees&&r.getRotation(!0)%360===0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),s.restore()}},debugRect:function(t){if(this.useCanvas){var n=this.context;n.save(),n.lineWidth=2*e.pixelDensityRatio,n.strokeStyle=this.debugGridColor[0],n.fillStyle=this.debugGridColor[0],n.strokeRect(t.x*e.pixelDensityRatio,t.y*e.pixelDensityRatio,t.width*e.pixelDensityRatio,t.height*e.pixelDensityRatio),n.restore()}},setImageSmoothingEnabled:function(e){this.useCanvas&&(this._imageSmoothingEnabled=e,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(e){e.mozImageSmoothingEnabled=this._imageSmoothingEnabled,e.webkitImageSmoothingEnabled=this._imageSmoothingEnabled,e.msImageSmoothingEnabled=this._imageSmoothingEnabled,e.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(t){var n=this._getContext(t).canvas;return new e.Point(n.width,n.height)},getCanvasCenter:function(){return new e.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(t){var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.save(),i.translate(n.x,n.y),this.viewer.viewport.flipped?(i.rotate(Math.PI/180*-t.degrees),i.scale(-1,1)):i.rotate(Math.PI/180*t.degrees),i.translate(-n.x,-n.y)},_flip:function(t){t=t||{};var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.translate(n.x,0),i.scale(-1,1),i.translate(-n.x,0)},_restoreRotationChanges:function(e){var t=this._getContext(e);t.restore()},_calculateCanvasSize:function(){var t=e.pixelDensityRatio,n=this.viewport.getContainerSize();return{x:Math.round(n.x*t),y:Math.round(n.y*t)}},_calculateSketchCanvasSize:function(){var e=this._calculateCanvasSize();if(0===this.viewport.getRotation())return e;var t=Math.ceil(Math.sqrt(e.x*e.x+e.y*e.y));return{x:t,y:t}}}}(OpenSeadragon)},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return r(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):r(i(e))}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),s=n("fc6a"),a=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=s(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"07d2":function(e,t,n){"use strict";var i;(function(r){if("function"!==typeof o){var o=function(e){return e};o.nonNative=!0}const s=o("plaintext"),a=o("html"),l=o("comment"),c=/<(\w*)>/g,u=/<\/?([^\s\/>]+)/;function h(e,t,n){e=e||"",t=t||[],n=n||"";let i=d(t,n);return p(e,i)}function f(e,t){e=e||[],t=t||"";let n=d(e,t);return function(e){return p(e||"",n)}}function d(e,t){return e=v(e),{allowable_tags:e,tag_replacement:t,state:s,tag_buffer:"",depth:0,in_quote_char:""}}function p(e,t){let n=t.allowable_tags,i=t.tag_replacement,r=t.state,o=t.tag_buffer,c=t.depth,u=t.in_quote_char,h="";for(let f=0,d=e.length;f<d;f++){let t=e[f];if(r===s)switch(t){case"<":r=a,o+=t;break;default:h+=t;break}else if(r===a)switch(t){case"<":if(u)break;c++;break;case">":if(u)break;if(c){c--;break}u="",r=s,o+=">",n.has(g(o))?h+=o:h+=i,o="";break;case'"':case"'":u=t===u?"":u||t,o+=t;break;case"-":"<!-"===o&&(r=l),o+=t;break;case" ":case"\n":if("<"===o){r=s,h+="< ",o="";break}o+=t;break;default:o+=t;break}else if(r===l)switch(t){case">":"--"==o.slice(-2)&&(r=s),o="";break;default:o+=t;break}}return t.state=r,t.tag_buffer=o,t.depth=c,t.in_quote_char=u,h}function v(e){let t=new Set;if("string"===typeof e){let n;while(n=c.exec(e))t.add(n[1])}else o.nonNative||"function"!==typeof e[o.iterator]?"function"===typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}function g(e){let t=u.exec(e);return t?t[1].toLowerCase():null}h.init_streaming_mode=f,i=function(){return h}.call(t,n,t,e),void 0===i||(e.exports=i)})()},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),s=n("5270"),a=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0b09":function(e,t,n){n("a434"),n("ac1f"),n("466d"),n("18a5"),function(e){function t(e,t){var n,i=e.controls;for(n=i.length-1;n>=0;n--)if(i[n].element==t)return n;return-1}e.ControlDock=function(t){var n,i,r=["topleft","topright","bottomright","bottomleft"];for(e.extend(!0,this,{id:"controldock-"+e.now()+"-"+Math.floor(1e6*Math.random()),container:e.makeNeutralElement("div"),controls:[]},t),this.container.onsubmit=function(){return!1},this.element&&(this.element=e.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),i=0;i<r.length;i++)n=r[i],this.controls[n]=e.makeNeutralElement("div"),this.controls[n].style.position="absolute",n.match("left")&&(this.controls[n].style.left="0px"),n.match("right")&&(this.controls[n].style.right="0px"),n.match("top")&&(this.controls[n].style.top="0px"),n.match("bottom")&&(this.controls[n].style.bottom="0px");this.container.appendChild(this.controls.topleft),this.container.appendChild(this.controls.topright),this.container.appendChild(this.controls.bottomright),this.container.appendChild(this.controls.bottomleft)},e.ControlDock.prototype={addControl:function(n,i){n=e.getElement(n);var r=null;if(!(t(this,n)>=0)){switch(i.anchor){case e.ControlAnchor.TOP_RIGHT:r=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:r=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:r=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:r=this.controls.topleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:r=this.container,n.style.margin="0px",n.style.padding="0px";break;default:case e.ControlAnchor.NONE:r=this.container,n.style.margin="0px",n.style.padding="0px";break}this.controls.push(new e.Control(n,i,r)),n.style.display="inline-block"}},removeControl:function(n){n=e.getElement(n);var i=t(this,n);return i>=0&&(this.controls[i].destroy(),this.controls.splice(i,1)),this},clearControls:function(){while(this.controls.length>0)this.controls.pop().destroy();return this},areControlsEnabled:function(){var e;for(e=this.controls.length-1;e>=0;e--)if(this.controls[e].isVisible())return!0;return!1},setControlsEnabled:function(e){var t;for(t=this.controls.length-1;t>=0;t--)this.controls[t].setVisible(e);return this}}}(OpenSeadragon)},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("c430"),s=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0d87":function(e,t,n){n("a434"),n("d3b7"),n("25f0"),function(e){var t=[],n={};function i(t){var i,r=n[t.hash],o=r.activePointersLists.length;for(i=0;i<o;i++)r.activePointersLists[i].captureCount>0&&(e.removeEvent(e.MouseTracker.captureElement,"mousemove",r.mousemovecaptured,!0),e.removeEvent(e.MouseTracker.captureElement,"mouseup",r.mouseupcaptured,!0),e.removeEvent(e.MouseTracker.captureElement,e.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",r.pointermovecaptured,!0),e.removeEvent(e.MouseTracker.captureElement,e.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",r.pointerupcaptured,!0),e.removeEvent(e.MouseTracker.captureElement,"touchmove",r.touchmovecaptured,!0),e.removeEvent(e.MouseTracker.captureElement,"touchend",r.touchendcaptured,!0),r.activePointersLists[i].captureCount=0);for(i=0;i<o;i++)r.activePointersLists.pop()}function r(t){var r,o,s=n[t.hash];if(!s.tracking){for(o=0;o<e.MouseTracker.subscribeEvents.length;o++)r=e.MouseTracker.subscribeEvents[o],e.addEvent(t.element,r,s[r],!1);i(t),s.tracking=!0}}function o(t){var r,o,s=n[t.hash];if(s.tracking){for(o=0;o<e.MouseTracker.subscribeEvents.length;o++)r=e.MouseTracker.subscribeEvents[o],e.removeEvent(t.element,r,s[r],!1);i(t),s.tracking=!1}}function s(t,i){var r=n[t.hash];if("pointerevent"===i)return{upName:e.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",upHandler:r.pointerupcaptured,moveName:e.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",moveHandler:r.pointermovecaptured};if("mouse"===i)return{upName:"mouseup",upHandler:r.mouseupcaptured,moveName:"mousemove",moveHandler:r.mousemovecaptured};if("touch"===i)return{upName:"touchend",upHandler:r.touchendcaptured,moveName:"touchmove",moveHandler:r.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function a(t,n,i){var r,o=t.getActivePointersListByType(n);o.captureCount+=i||1,1===o.captureCount&&(e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?t.element.setCapture(!0):(r=s(t,e.MouseTracker.havePointerEvents?"pointerevent":n),ve&&ge(window.top)&&e.addEvent(window.top,r.upName,r.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,r.upName,r.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,r.moveName,r.moveHandler,!0)))}function l(t,n,i){var r,o=t.getActivePointersListByType(n);o.captureCount-=i||1,0===o.captureCount&&(e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?t.element.releaseCapture():(r=s(t,e.MouseTracker.havePointerEvents?"pointerevent":n),ve&&ge(window.top)&&e.removeEvent(window.top,r.upName,r.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,r.moveName,r.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,r.upName,r.upHandler,!0)))}function c(t){var n;if(e.MouseTracker.unprefixedPointerEvents)n=t.pointerType;else switch(t.pointerType){case 2:n="touch";break;case 3:n="pen";break;case 4:n="mouse";break;default:n=""}return n}function u(t){return e.getMousePosition(t)}function h(e,t){return f(u(e),t)}function f(t,n){var i=e.getElementOffset(n);return t.minus(i)}function d(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function p(t,n){t.clickHandler&&e.cancelEvent(n)}function v(t,n){t.dblClickHandler&&e.cancelEvent(n)}function g(t,n){var i;t.keyDownHandler&&(n=e.getEvent(n),i=t.keyDownHandler({eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),i||e.cancelEvent(n))}function m(t,n){var i;t.keyUpHandler&&(n=e.getEvent(n),i=t.keyUpHandler({eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),i||e.cancelEvent(n))}function y(t,n){var i;t.keyHandler&&(n=e.getEvent(n),i=t.keyHandler({eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),i||e.cancelEvent(n))}function w(t,n){var i;t.focusHandler&&(n=e.getEvent(n),i=t.focusHandler({eventSource:t,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),!1===i&&e.cancelEvent(n))}function _(t,n){var i;t.blurHandler&&(n=e.getEvent(n),i=t.blurHandler({eventSource:t,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),!1===i&&e.cancelEvent(n))}function b(e,t){T(e,t,t)}function x(t,n){n=e.getEvent(n);var i={target:n.target||n.srcElement,type:"wheel",shiftKey:n.shiftKey||!1,clientX:n.clientX,clientY:n.clientY,pageX:n.pageX?n.pageX:n.clientX,pageY:n.pageY?n.pageY:n.clientY,deltaMode:"MozMousePixelScroll"==n.type?0:1,deltaX:0,deltaZ:0};"mousewheel"==e.MouseTracker.wheelEventName?i.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:i.deltaY=n.detail,T(t,i,n)}function T(t,n,i){var r,o=0;o=n.deltaY<0?1:-1,t.scrollHandler&&(r=t.scrollHandler({eventSource:t,pointerType:"mouse",position:h(n,t.element),scroll:o,shift:n.shiftKey,isTouchEvent:!1,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===r&&e.cancelEvent(i))}function S(e,t){if(e===t)return!1;while(t&&t!==e)t=t.parentNode;return t===e}function P(t,n){n=e.getEvent(n),C(t,n)}function E(t,n){n=e.getEvent(n),n.currentTarget===n.relatedTarget||S(n.currentTarget,n.relatedTarget)||C(t,n)}function C(t,n){var i={id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:u(n),currentTime:e.now()};le(t,n,[i])}function R(t,n){n=e.getEvent(n),O(t,n)}function k(t,n){n=e.getEvent(n),n.currentTarget===n.relatedTarget||S(n.currentTarget,n.relatedTarget)||O(t,n)}function O(t,n){var i={id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:u(n),currentTime:e.now()};ce(t,n,[i])}function I(t){return e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?1===t?0:2===t?2:4===t?1:-1:t}function A(t,n){var i;n=e.getEvent(n),i={id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:u(n),currentTime:e.now()},ue(t,n,[i],I(n.button))&&(e.stopEvent(n),a(t,"mouse")),(t.clickHandler||t.dblClickHandler||t.pressHandler||t.dragHandler||t.dragEndHandler)&&e.cancelEvent(n)}function $(e,t){D(e,t)}function L(t,n){D(t,n),e.stopEvent(n)}function D(t,n){var i;n=e.getEvent(n),i={id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:u(n),currentTime:e.now()},he(t,n,[i],I(n.button))&&l(t,"mouse")}function M(e,t){B(e,t)}function F(t,n){B(t,n),e.stopEvent(n)}function B(t,n){var i;n=e.getEvent(n),i={id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:u(n),currentTime:e.now()},fe(t,n,[i])}function N(e,t,n){var i,r=n.getLength(),o=[];if("touch"===n.type||n.contacts>0){for(i=0;i<r;i++)o.push(n.getByIndex(i));o.length>0&&(he(e,t,o,0),n.captureCount=1,l(e,n.type),ce(e,t,o))}}function j(n,i){var r,o,s,l,c=i.changedTouches.length,h=[],f=n.getActivePointersListByType("touch");for(r=e.now(),f.getLength()>i.touches.length-c&&(e.console.warn("Tracked touch contact count doesn't match event.touches.length. Removing all tracked touch pointers."),N(n,i,f)),o=0;o<c;o++)h.push({id:i.changedTouches[o].identifier,type:"touch",currentPos:u(i.changedTouches[o]),currentTime:r});for(le(n,i,h),o=0;o<t.length;o++)if(t[o]!==n&&t[o].isTracking()&&S(t[o].element,n.element)){for(l=[],s=0;s<c;s++)l.push({id:i.changedTouches[s].identifier,type:"touch",currentPos:u(i.changedTouches[s]),currentTime:r});le(t[o],i,l)}ue(n,i,h,0)&&(e.stopEvent(i),a(n,"touch",c)),e.cancelEvent(i)}function H(e,t){V(e,t)}function z(t,n){V(t,n),e.stopEvent(n)}function V(n,i){var r,o,s,a,c=i.changedTouches.length,h=[];for(r=e.now(),o=0;o<c;o++)h.push({id:i.changedTouches[o].identifier,type:"touch",currentPos:u(i.changedTouches[o]),currentTime:r});for(he(n,i,h,0)&&l(n,"touch",c),ce(n,i,h),o=0;o<t.length;o++)if(t[o]!==n&&t[o].isTracking()&&S(t[o].element,n.element)){for(a=[],s=0;s<c;s++)a.push({id:i.changedTouches[s].identifier,type:"touch",currentPos:u(i.changedTouches[s]),currentTime:r});ce(t[o],i,a)}e.cancelEvent(i)}function U(e,t){q(e,t)}function W(t,n){q(t,n),e.stopEvent(n)}function q(t,n){var i,r=n.changedTouches.length,o=[];for(i=0;i<r;i++)o.push({id:n.changedTouches[i].identifier,type:"touch",currentPos:u(n.changedTouches[i]),currentTime:e.now()});fe(t,n,o),e.cancelEvent(n)}function G(e,t){var n=e.getActivePointersListByType("touch");N(e,t,n)}function Z(e,t){return t.stopPropagation(),t.preventDefault(),!1}function X(e,t){return t.stopPropagation(),t.preventDefault(),!1}function K(t,n){var i;n.currentTarget===n.relatedTarget||S(n.currentTarget,n.relatedTarget)||(i={id:n.pointerId,type:c(n),isPrimary:n.isPrimary,currentPos:u(n),currentTime:e.now()},le(t,n,[i]))}function Y(t,n){var i;n.currentTarget===n.relatedTarget||S(n.currentTarget,n.relatedTarget)||(i={id:n.pointerId,type:c(n),isPrimary:n.isPrimary,currentPos:u(n),currentTime:e.now()},ce(t,n,[i]))}function J(t,n){var i;i={id:n.pointerId,type:c(n),isPrimary:n.isPrimary,currentPos:u(n),currentTime:e.now()},ue(t,n,[i],n.button)&&(e.stopEvent(n),a(t,i.type)),(t.clickHandler||t.dblClickHandler||t.pressHandler||t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.cancelEvent(n)}function Q(e,t){te(e,t)}function ee(t,n){var i=t.getActivePointersListByType(c(n));i.getById(n.pointerId)&&te(t,n),e.stopEvent(n)}function te(t,n){var i;i={id:n.pointerId,type:c(n),isPrimary:n.isPrimary,currentPos:u(n),currentTime:e.now()},he(t,n,[i],n.button)&&l(t,i.type)}function ne(e,t){re(e,t)}function ie(t,n){var i=t.getActivePointersListByType(c(n));i.getById(n.pointerId)&&re(t,n),e.stopEvent(n)}function re(t,n){var i;i={id:n.pointerId,type:c(n),isPrimary:n.isPrimary,currentPos:u(n),currentTime:e.now()},fe(t,n,[i])}function oe(e,t){var n;n={id:t.pointerId,type:c(t)},de(e,t,[n])}function se(e,t){return t.hasOwnProperty("isPrimary")||(0===e.getLength()?t.isPrimary=!0:t.isPrimary=!1),t.speed=0,t.direction=0,t.contactPos=t.currentPos,t.contactTime=t.currentTime,t.lastPos=t.currentPos,t.lastTime=t.currentTime,e.add(t)}function ae(e,t){var n,i;return e.getById(t.id)?(n=e.removeById(t.id),t.hasOwnProperty("isPrimary")||(i=e.getPrimary(),i||(i=e.getByIndex(0),i&&(i.isPrimary=!0)))):n=e.getLength(),n}function le(t,n,i){var r,o,s,a,l=t.getActivePointersListByType(i[0].type),c=i.length;for(r=0;r<c;r++)o=i[r],s=l.getById(o.id),s?(s.insideElement=!0,s.lastPos=s.currentPos,s.lastTime=s.currentTime,s.currentPos=o.currentPos,s.currentTime=o.currentTime,o=s):(o.captured=!1,o.insideElementPressed=!1,o.insideElement=!0,se(l,o)),t.enterHandler&&(a=t.enterHandler({eventSource:t,pointerType:o.type,position:f(o.currentPos,t.element),buttons:l.buttons,pointers:t.getActivePointerCount(),insideElementPressed:o.insideElementPressed,buttonDownAny:0!==l.buttons,isTouchEvent:"touch"===o.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),!1===a&&e.cancelEvent(n))}function ce(t,n,i){var r,o,s,a,l=t.getActivePointersListByType(i[0].type),c=i.length;for(r=0;r<c;r++)o=i[r],s=l.getById(o.id),s&&(s.captured?(s.insideElement=!1,s.lastPos=s.currentPos,s.lastTime=s.currentTime,s.currentPos=o.currentPos,s.currentTime=o.currentTime):ae(l,s),o=s),t.exitHandler&&(a=t.exitHandler({eventSource:t,pointerType:o.type,position:f(o.currentPos,t.element),buttons:l.buttons,pointers:t.getActivePointerCount(),insideElementPressed:!!s&&s.insideElementPressed,buttonDownAny:0!==l.buttons,isTouchEvent:"touch"===o.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData}),!1===a&&e.cancelEvent(n))}function ue(t,i,r,o){var s,a,l,c,u=n[t.hash],h=t.getActivePointersListByType(r[0].type),p=r.length;"undefined"!==typeof i.buttons?h.buttons=i.buttons:e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?0===o?h.buttons+=1:1===o?h.buttons+=4:2===o?h.buttons+=2:3===o?h.buttons+=8:4===o?h.buttons+=16:5===o&&(h.buttons+=32):0===o?h.buttons|=1:1===o?h.buttons|=4:2===o?h.buttons|=2:3===o?h.buttons|=8:4===o?h.buttons|=16:5===o&&(h.buttons|=32);var v=t.getActivePointersListsExceptType(r[0].type);for(a=0;a<v.length;a++)N(t,i,v[a]);if(0!==o)return t.nonPrimaryPressHandler&&(s=t.nonPrimaryPressHandler({eventSource:t,pointerType:r[0].type,position:f(r[0].currentPos,t.element),button:o,buttons:h.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)),!1;for(a=0;a<p;a++)l=r[a],c=h.getById(l.id),c?(c.captured=!0,c.insideElementPressed=!0,c.insideElement=!0,c.contactPos=l.currentPos,c.contactTime=l.currentTime,c.lastPos=c.currentPos,c.lastTime=c.currentTime,c.currentPos=l.currentPos,c.currentTime=l.currentTime,l=c):(l.captured=!0,l.insideElementPressed=!0,l.insideElement=!0,se(h,l)),h.addContact(),(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,l),1===h.contacts?t.pressHandler&&(s=t.pressHandler({eventSource:t,pointerType:l.type,position:f(l.contactPos,t.element),buttons:h.buttons,isTouchEvent:"touch"===l.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)):2===h.contacts&&t.pinchHandler&&"touch"===l.type&&(u.pinchGPoints=h.asArray(),u.lastPinchDist=u.currentPinchDist=u.pinchGPoints[0].currentPos.distanceTo(u.pinchGPoints[1].currentPos),u.lastPinchCenter=u.currentPinchCenter=d(u.pinchGPoints[0].currentPos,u.pinchGPoints[1].currentPos));return!0}function he(t,i,r,o){var s,a,l,c,u,h,p,v=n[t.hash],g=t.getActivePointersListByType(r[0].type),m=r.length,y=!1,w=!1;if("undefined"!==typeof i.buttons?g.buttons=i.buttons:e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?0===o?g.buttons-=1:1===o?g.buttons-=4:2===o?g.buttons-=2:3===o?g.buttons-=8:4===o?g.buttons-=16:5===o&&(g.buttons-=32):0===o?g.buttons^=-2:1===o?g.buttons^=-5:2===o?g.buttons^=-3:3===o?g.buttons^=-9:4===o?g.buttons^=-17:5===o&&(g.buttons^=-33),0!==o){t.nonPrimaryReleaseHandler&&(s=t.nonPrimaryReleaseHandler({eventSource:t,pointerType:r[0].type,position:f(r[0].currentPos,t.element),button:o,buttons:g.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i));var _=t.getActivePointersListByType("mouse");return N(t,i,_),!1}for(c=0;c<m;c++)u=r[c],h=g.getById(u.id),h&&(h.captured&&(h.captured=!1,y=!0,w=!0),h.lastPos=h.currentPos,h.lastTime=h.currentTime,h.currentPos=u.currentPos,h.currentTime=u.currentTime,h.insideElement||ae(g,h),a=h.currentPos,l=h.currentTime,w?(g.removeContact(),(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,h),0===g.contacts?(t.releaseHandler&&(s=t.releaseHandler({eventSource:t,pointerType:h.type,position:f(a,t.element),buttons:g.buttons,insideElementPressed:h.insideElementPressed,insideElementReleased:h.insideElement,isTouchEvent:"touch"===h.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)),t.dragEndHandler&&!h.currentPos.equals(h.contactPos)&&(s=t.dragEndHandler({eventSource:t,pointerType:h.type,position:f(h.currentPos,t.element),speed:h.speed,direction:h.direction,shift:i.shiftKey,isTouchEvent:"touch"===h.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)),(t.clickHandler||t.dblClickHandler)&&h.insideElement&&(p=l-h.contactTime<=t.clickTimeThreshold&&h.contactPos.distanceTo(a)<=t.clickDistThreshold,t.clickHandler&&(s=t.clickHandler({eventSource:t,pointerType:h.type,position:f(h.currentPos,t.element),quick:p,shift:i.shiftKey,isTouchEvent:"touch"===h.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)),t.dblClickHandler&&p&&(g.clicks++,1===g.clicks?(v.lastClickPos=a,v.dblClickTimeOut=setTimeout((function(){g.clicks=0}),t.dblClickTimeThreshold)):2===g.clicks&&(clearTimeout(v.dblClickTimeOut),g.clicks=0,v.lastClickPos.distanceTo(a)<=t.dblClickDistThreshold&&(s=t.dblClickHandler({eventSource:t,pointerType:h.type,position:f(h.currentPos,t.element),shift:i.shiftKey,isTouchEvent:"touch"===h.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)),v.lastClickPos=null)))):2===g.contacts&&t.pinchHandler&&"touch"===h.type&&(v.pinchGPoints=g.asArray(),v.lastPinchDist=v.currentPinchDist=v.pinchGPoints[0].currentPos.distanceTo(v.pinchGPoints[1].currentPos),v.lastPinchCenter=v.currentPinchCenter=d(v.pinchGPoints[0].currentPos,v.pinchGPoints[1].currentPos))):t.releaseHandler&&(s=t.releaseHandler({eventSource:t,pointerType:h.type,position:f(a,t.element),buttons:g.buttons,insideElementPressed:h.insideElementPressed,insideElementReleased:h.insideElement,isTouchEvent:"touch"===h.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===s&&e.cancelEvent(i)));return y}function fe(t,i,r){var o,s,a,l,c,u,h=n[t.hash],p=t.getActivePointersListByType(r[0].type),v=r.length;for("undefined"!==typeof i.buttons&&(p.buttons=i.buttons),o=0;o<v;o++)s=r[o],a=p.getById(s.id),a?(s.hasOwnProperty("isPrimary")&&(a.isPrimary=s.isPrimary),a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=s.currentPos,a.currentTime=s.currentTime):(s.captured=!1,s.insideElementPressed=!1,s.insideElement=!0,se(p,s));t.stopHandler&&"mouse"===r[0].type&&(clearTimeout(t.stopTimeOut),t.stopTimeOut=setTimeout((function(){pe(t,i,r[0].type)}),t.stopDelay)),0===p.contacts?t.moveHandler&&(u=t.moveHandler({eventSource:t,pointerType:r[0].type,position:f(r[0].currentPos,t.element),buttons:p.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===u&&e.cancelEvent(i)):1===p.contacts?(t.moveHandler&&(a=p.asArray()[0],u=t.moveHandler({eventSource:t,pointerType:a.type,position:f(a.currentPos,t.element),buttons:p.buttons,isTouchEvent:"touch"===a.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===u&&e.cancelEvent(i)),t.dragHandler&&(a=p.asArray()[0],c=a.currentPos.minus(a.lastPos),u=t.dragHandler({eventSource:t,pointerType:a.type,position:f(a.currentPos,t.element),buttons:p.buttons,delta:c,speed:a.speed,direction:a.direction,shift:i.shiftKey,isTouchEvent:"touch"===a.type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===u&&e.cancelEvent(i))):2===p.contacts&&(t.moveHandler&&(l=p.asArray(),u=t.moveHandler({eventSource:t,pointerType:l[0].type,position:f(d(l[0].currentPos,l[1].currentPos),t.element),buttons:p.buttons,isTouchEvent:"touch"===l[0].type,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===u&&e.cancelEvent(i)),t.pinchHandler&&"touch"===r[0].type&&(c=h.pinchGPoints[0].currentPos.distanceTo(h.pinchGPoints[1].currentPos),c!=h.currentPinchDist&&(h.lastPinchDist=h.currentPinchDist,h.currentPinchDist=c,h.lastPinchCenter=h.currentPinchCenter,h.currentPinchCenter=d(h.pinchGPoints[0].currentPos,h.pinchGPoints[1].currentPos),u=t.pinchHandler({eventSource:t,pointerType:"touch",gesturePoints:h.pinchGPoints,lastCenter:f(h.lastPinchCenter,t.element),center:f(h.currentPinchCenter,t.element),lastDistance:h.lastPinchDist,distance:h.currentPinchDist,shift:i.shiftKey,originalEvent:i,preventDefaultAction:!1,userData:t.userData}),!1===u&&e.cancelEvent(i))))}function de(e,t,n){he(e,t,n,0),ce(e,t,n)}function pe(e,t,n){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:n,position:h(t,e.element),buttons:e.getActivePointersListByType(n).buttons,isTouchEvent:"touch"===n,originalEvent:t,preventDefaultAction:!1,userData:e.userData})}e.MouseTracker=function(i){t.push(this);var r=arguments;e.isPlainObject(i)||(i={element:r[0],clickTimeThreshold:r[1],clickDistThreshold:r[2]}),this.hash=Math.random(),this.element=e.getElement(i.element),this.clickTimeThreshold=i.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=i.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=i.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=i.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=i.userData||null,this.stopDelay=i.stopDelay||50,this.enterHandler=i.enterHandler||null,this.exitHandler=i.exitHandler||null,this.pressHandler=i.pressHandler||null,this.nonPrimaryPressHandler=i.nonPrimaryPressHandler||null,this.releaseHandler=i.releaseHandler||null,this.nonPrimaryReleaseHandler=i.nonPrimaryReleaseHandler||null,this.moveHandler=i.moveHandler||null,this.scrollHandler=i.scrollHandler||null,this.clickHandler=i.clickHandler||null,this.dblClickHandler=i.dblClickHandler||null,this.dragHandler=i.dragHandler||null,this.dragEndHandler=i.dragEndHandler||null,this.pinchHandler=i.pinchHandler||null,this.stopHandler=i.stopHandler||null,this.keyDownHandler=i.keyDownHandler||null,this.keyUpHandler=i.keyUpHandler||null,this.keyHandler=i.keyHandler||null,this.focusHandler=i.focusHandler||null,this.blurHandler=i.blurHandler||null;var o=this;n[this.hash]={click:function(e){p(o,e)},dblclick:function(e){v(o,e)},keydown:function(e){g(o,e)},keyup:function(e){m(o,e)},keypress:function(e){y(o,e)},focus:function(e){w(o,e)},blur:function(e){_(o,e)},wheel:function(e){b(o,e)},mousewheel:function(e){x(o,e)},DOMMouseScroll:function(e){x(o,e)},MozMousePixelScroll:function(e){x(o,e)},mouseenter:function(e){P(o,e)},mouseleave:function(e){R(o,e)},mouseover:function(e){E(o,e)},mouseout:function(e){k(o,e)},mousedown:function(e){A(o,e)},mouseup:function(e){$(o,e)},mouseupcaptured:function(e){L(o,e)},mousemove:function(e){M(o,e)},mousemovecaptured:function(e){F(o,e)},touchstart:function(e){j(o,e)},touchend:function(e){H(o,e)},touchendcaptured:function(e){z(o,e)},touchmove:function(e){U(o,e)},touchmovecaptured:function(e){W(o,e)},touchcancel:function(e){G(o,e)},gesturestart:function(e){Z(o,e)},gesturechange:function(e){X(o,e)},pointerover:function(e){K(o,e)},MSPointerOver:function(e){K(o,e)},pointerout:function(e){Y(o,e)},MSPointerOut:function(e){Y(o,e)},pointerdown:function(e){J(o,e)},MSPointerDown:function(e){J(o,e)},pointerup:function(e){Q(o,e)},MSPointerUp:function(e){Q(o,e)},pointermove:function(e){ne(o,e)},MSPointerMove:function(e){ne(o,e)},pointercancel:function(e){oe(o,e)},MSPointerCancel:function(e){oe(o,e)},pointerupcaptured:function(e){ee(o,e)},pointermovecaptured:function(e){ie(o,e)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null},i.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(o(this),this.element=null,e=0;e<t.length;e++)if(t[e]===this){t.splice(e,1);break}n[this.hash]=null,delete n[this.hash]},isTracking:function(){return n[this.hash].tracking},setTracking:function(e){return e?r(this):o(this),this},getActivePointersListsExceptType:function(e){for(var t=n[this.hash],i=[],r=0;r<t.activePointersLists.length;++r)t.activePointersLists[r].type!==e&&i.push(t.activePointersLists[r]);return i},getActivePointersListByType:function(t){var i,r,o=n[this.hash],s=o.activePointersLists.length;for(i=0;i<s;i++)if(o.activePointersLists[i].type===t)return o.activePointersLists[i];return r=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(r),r},getActivePointerCount:function(){var e,t=n[this.hash],i=t.activePointersLists.length,r=0;for(e=0;e<i;e++)r+=t.activePointersLists[e].getLength();return r},enterHandler:function(){},exitHandler:function(){},pressHandler:function(){},nonPrimaryPressHandler:function(){},releaseHandler:function(){},nonPrimaryReleaseHandler:function(){},moveHandler:function(){},scrollHandler:function(){},clickHandler:function(){},dblClickHandler:function(){},dragHandler:function(){},dragEndHandler:function(){},pinchHandler:function(){},stopHandler:function(){},keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}},e.MouseTracker.resetAllMouseTrackers=function(){for(var e=0;e<t.length;e++)t[e].isTracking()&&(t[e].setTracking(!1),t[e].setTracking(!0))},e.MouseTracker.gesturePointVelocityTracker=function(){var t=[],n=0,i=0,r=function(e,t){return e.hash.toString()+t.type+t.id.toString()},o=function(){var n,r,o,s,a,l,c=t.length,u=e.now();for(s=u-i,i=u,n=0;n<c;n++)r=t[n],o=r.gPoint,o.direction=Math.atan2(o.currentPos.y-r.lastPos.y,o.currentPos.x-r.lastPos.x),a=r.lastPos.distanceTo(o.currentPos),r.lastPos=o.currentPos,l=1e3*a/(s+1),o.speed=.75*l+.25*o.speed},s=function(s,a){var l=r(s,a);t.push({guid:l,gPoint:a,lastPos:a.currentPos}),1===t.length&&(i=e.now(),n=window.setInterval(o,50))},a=function(e,i){var o,s=r(e,i),a=t.length;for(o=0;o<a;o++)if(t[o].guid===s){t.splice(o,1),a--,0===a&&window.clearInterval(n);break}};return{addPoint:s,removePoint:a}}(),e.MouseTracker.captureElement=document,e.MouseTracker.wheelEventName=e.Browser.vendor==e.BROWSERS.IE&&e.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e.MouseTracker.supportsMouseCapture=function(){var t=document.createElement("div");return e.isFunction(t.setCapture)&&e.isFunction(t.releaseCapture)}(),e.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur",e.MouseTracker.wheelEventName],"DOMMouseScroll"==e.MouseTracker.wheelEventName&&e.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent&&(window.navigator.pointerEnabled||e.Browser.vendor!==e.BROWSERS.IE)?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),e.MouseTracker.unprefixedPointerEvents=!0,navigator.maxTouchPoints?e.MouseTracker.maxTouchPoints=navigator.maxTouchPoints:e.MouseTracker.maxTouchPoints=0,e.MouseTracker.haveMouseEnter=!1):window.MSPointerEvent&&window.navigator.msPointerEnabled?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("MSPointerOver","MSPointerOut","MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"),e.MouseTracker.unprefixedPointerEvents=!1,navigator.msMaxTouchPoints?e.MouseTracker.maxTouchPoints=navigator.msMaxTouchPoints:e.MouseTracker.maxTouchPoints=0,e.MouseTracker.haveMouseEnter=!1):(e.MouseTracker.havePointerEvents=!1,e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?(e.MouseTracker.subscribeEvents.push("mouseenter","mouseleave"),e.MouseTracker.haveMouseEnter=!0):(e.MouseTracker.subscribeEvents.push("mouseover","mouseout"),e.MouseTracker.haveMouseEnter=!1),e.MouseTracker.subscribeEvents.push("mousedown","mouseup","mousemove"),"ontouchstart"in window&&e.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&e.MouseTracker.subscribeEvents.push("gesturestart","gesturechange"),e.MouseTracker.mousePointerId="legacy-mouse",e.MouseTracker.maxTouchPoints=10),e.MouseTracker.GesturePointList=function(e){this._gPoints=[],this.type=e,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},e.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(e){return this._gPoints.push(e)},removeById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e){this._gPoints.splice(t,1);break}return this._gPoints.length},getByIndex:function(e){return e<this._gPoints.length?this._gPoints[e]:null},getById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e)return this._gPoints[t];return null},getPrimary:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].isPrimary)return this._gPoints[t];return null},addContact:function(){++this.contacts,this.contacts>1&&("mouse"===this.type||"pen"===this.type)&&(this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}};var ve=function(){try{return window.self!==window.top}catch(e){return!0}}();function ge(e){try{return e.addEventListener&&e.removeEventListener}catch(t){return!1}}}(OpenSeadragon)},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1148:function(e,t,n){"use strict";var i=n("a691"),r=n("1d80");e.exports="".repeat||function(e){var t=String(r(this)),n="",o=i(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},1264:function(e,t){(function(e){e.Viewport=function(t){var n=arguments;n.length&&n[0]instanceof e.Point&&(t={containerSize:n[0],contentSize:n[1],config:n[2]}),t.config&&(e.extend(!0,t,t.config),delete t.config),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t.margins||{}),delete t.margins,e.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,viewer:null,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:e.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:e.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:e.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:e.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:e.DEFAULT_SETTINGS.maxZoomLevel,degrees:e.DEFAULT_SETTINGS.degrees,flipped:e.DEFAULT_SETTINGS.flipped,homeFillsViewer:e.DEFAULT_SETTINGS.homeFillsViewer},t),this._updateContainerInnerSize(),this.centerSpringX=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new e.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 e.Rect(0,0,1,1),1),this.goHome(!0),this.update()},e.Viewport.prototype={resetContentSize:function(t){return e.console.assert(t,"[Viewport.resetContentSize] contentSize is required"),e.console.assert(t instanceof e.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),e.console.assert(t.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),e.console.assert(t.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new e.Rect(0,0,1,t.y/t.x),t.x),this},setHomeBounds:function(t,n){e.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(t,n)},_setContentBounds:function(t,n){e.console.assert(t,"[Viewport._setContentBounds] bounds is required"),e.console.assert(t instanceof e.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),e.console.assert(t.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),e.console.assert(t.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=t.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(n),this._contentBounds=t.rotate(this.degrees).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(n),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:n,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var e,t=this._contentAspectRatio/this.getAspectRatio();return e=this.homeFillsViewer?t>=1?t:1:t>=1?1:t,e/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),n=1/this.getHomeZoom(),i=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-i/2,n,i)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom(),t=this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e;return t},getMaxZoom:function(){var e=this.maxZoomLevel;return e||(e=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,e/=this._contentBounds.width),Math.max(e,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new e.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return e.extend({},this._margins)},setMargins:function(t){e.console.assert("object"===e.type(t),"[Viewport.setMargins] margins must be an object"),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(-this.getRotation())},getBoundsNoRotate:function(t){var n=this.getCenter(t),i=1/this.getZoom(t),r=i/this.getAspectRatio();return new e.Rect(n.x-i/2,n.y-r/2,i,r)},getBoundsWithMargins:function(e){return this.getBoundsNoRotateWithMargins(e).rotate(-this.getRotation(),this.getCenter(e))},getBoundsNoRotateWithMargins:function(e){var t=this.getBoundsNoRotate(e),n=this._containerInnerSize.x*this.getZoom(e);return t.x-=this._margins.left/n,t.y-=this._margins.top/n,t.width+=(this._margins.left+this._margins.right)/n,t.height+=(this._margins.top+this._margins.bottom)/n,t},getCenter:function(t){var n,i,r,o,s,a,l,c,u=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),h=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?u:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),i=this.getZoom(),r=1/i,o=r/this.getAspectRatio(),s=new e.Rect(u.x-r/2,u.y-o/2,r,o),a=this._pixelFromPoint(this.zoomPoint,s),l=a.minus(n),c=l.divide(this._containerInnerSize.x*i),h.plus(c)):h},getZoom:function(e){return e?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(e){return Math.max(Math.min(e,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(t){var n=new e.Rect(t.x,t.y,t.width,t.height);if(this.wrapHorizontal);else{var i=this.visibilityRatio*n.width,r=n.x+n.width,o=this._contentBoundsNoRotate.x+this._contentBoundsNoRotate.width,s=this._contentBoundsNoRotate.x-r+i,a=o-n.x-i;i>this._contentBoundsNoRotate.width?n.x+=(s+a)/2:a<0?n.x+=a:s>0&&(n.x+=s)}if(this.wrapVertical);else{var l=this.visibilityRatio*n.height,c=n.y+n.height,u=this._contentBoundsNoRotate.y+this._contentBoundsNoRotate.height,h=this._contentBoundsNoRotate.y-c+l,f=u-n.y-l;l>this._contentBoundsNoRotate.height?n.y+=(h+f)/2:f<0?n.y+=f:h>0&&(n.y+=h)}return n},_raiseConstraintsEvent:function(e){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:e})},applyConstraints:function(e){var t=this.getZoom(),n=this._applyZoomConstraints(t);t!==n&&this.zoomTo(n,this.zoomPoint,e);var i=this.getBoundsNoRotate(),r=this._applyBoundaryConstraints(i);return this._raiseConstraintsEvent(e),(i.x!==r.x||i.y!==r.y||e)&&this.fitBounds(r.rotate(-this.getRotation()),e),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){n=n||{};var i=n.immediately||!1,r=n.constraints||!1,o=this.getAspectRatio(),s=t.getCenter(),a=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();a.getAspectRatio()>=o?a.height=a.width/o:a.width=a.height*o,a.x=s.x-a.width/2,a.y=s.y-a.height/2;var l=1/a.width;if(r){var c=a.getAspectRatio(),u=this._applyZoomConstraints(l);l!==u&&(l=u,a.width=1/l,a.x=s.x-a.width/2,a.height=a.width/c,a.y=s.y-a.height/2),a=this._applyBoundaryConstraints(a),s=a.getCenter(),this._raiseConstraintsEvent(i)}if(i)return this.panTo(s,!0),this.zoomTo(l,null,!0);this.panTo(this.getCenter(!0),!0),this.zoomTo(this.getZoom(!0),null,!0);var h=this.getBounds(),f=this.getZoom();if(0===f||Math.abs(l/f-1)<1e-8)return this.zoomTo(l,!0),this.panTo(s,i);a=a.rotate(-this.getRotation());var d=a.getTopLeft().times(l).minus(h.getTopLeft().times(f)).divide(l-f);return this.zoomTo(l,d,i)},fitBounds:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!1})},fitBoundsWithConstraints:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!0})},fitVertically:function(t){var n=new e.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(n,t)},fitHorizontally:function(t){var n=new e.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(n,t)},getConstrainedBounds:function(e){var t,n;return t=this.getBounds(e),n=this._applyBoundaryConstraints(t),n},panBy:function(t,n){var i=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(i.plus(t),n)},panTo:function(e,t){return t?(this.centerSpringX.resetTo(e.x),this.centerSpringY.resetTo(e.y)):(this.centerSpringX.springTo(e.x),this.centerSpringY.springTo(e.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:e,immediately:t}),this},zoomBy:function(e,t,n){return this.zoomTo(this.zoomSpring.target.value*e,t,n)},zoomTo:function(t,n,i){var r=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i?this._adjustCenterSpringsForZoomPoint((function(){r.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:i}),this},setRotation:function(t){return this.viewer&&this.viewer.drawer.canRotate()?(this.degrees=e.positiveModulo(t,360),this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:t}),this):this},getRotation:function(){return this.degrees},resize:function(e,t){var n,i=this.getBoundsNoRotate(),r=i;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,r.width=i.width*n,r.height=r.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(r,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new e.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 e=this;this._adjustCenterSpringsForZoomPoint((function(){e.zoomSpring.update()})),this.centerSpringX.update(),this.centerSpringY.update();var t=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,t},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var n=this.pixelFromPoint(this.zoomPoint,!0),i=n.minus(t),r=this.deltaPointsFromPixels(i,!0);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else e()},deltaPixelsFromPointsNoRotate:function(e,t){return e.times(this._containerInnerSize.x*this.getZoom(t))},deltaPixelsFromPoints:function(e,t){return this.deltaPixelsFromPointsNoRotate(e.rotate(this.getRotation()),t)},deltaPointsFromPixelsNoRotate:function(e,t){return e.divide(this._containerInnerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(e,t){return this.deltaPointsFromPixelsNoRotate(e,t).rotate(-this.getRotation())},pixelFromPointNoRotate:function(e,t){return this._pixelFromPointNoRotate(e,this.getBoundsNoRotate(t))},pixelFromPoint:function(e,t){return this._pixelFromPoint(e,this.getBoundsNoRotate(t))},_pixelFromPointNoRotate:function(t,n){return t.minus(n.getTopLeft()).times(this._containerInnerSize.x/n.width).plus(new e.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(e,t){return this._pixelFromPointNoRotate(e.rotate(this.getRotation(),this.getCenter(!0)),t)},pointFromPixelNoRotate:function(t,n){var i=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/i.width).plus(i.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(),this.getCenter(!0))},_viewportToImageDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/i,n*this._contentSizeNoRotate.x/i)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===i){var r=this.viewer.world.getItemAt(0);return r.viewportToImageCoordinates(t,n,!0)}}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,n-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*i,n/this._contentSizeNoRotate.x*i)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===i){var r=this.viewer.world.getItemAt(0);return r.imageToViewportCoordinates(t,n,!0)}}var o=this._imageToViewportDelta(t,n);return o.x+=this._contentBoundsNoRotate.x,o.y+=this._contentBoundsNoRotate.y,o},imageToViewportRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var s=this.viewer.world.getItemCount();if(s>1)e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===s){var a=this.viewer.world.getItemAt(0);return a.imageToViewportRectangle(t,n,i,r,!0)}}var l=this.imageToViewportCoordinates(o.x,o.y),c=this._imageToViewportDelta(o.width,o.height);return new e.Rect(l.x,l.y,c.x,c.y,o.degrees)},viewportToImageRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var s=this.viewer.world.getItemCount();if(s>1)e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===s){var a=this.viewer.world.getItemAt(0);return a.viewportToImageRectangle(t,n,i,r,!0)}}var l=this.viewportToImageCoordinates(o.x,o.y),c=this._viewportToImageDelta(o.width,o.height);return new e.Rect(l.x,l.y,c.x,c.y,o.degrees)},viewerElementToImageCoordinates:function(e){var t=this.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.pixelFromPoint(t,!0)},windowToImageCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(n)},imageToWindowCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer.");var n=this.imageToViewerElementCoordinates(t);return n.plus(e.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(e){return this.pointFromPixel(e,!0)},viewportToViewerElementCoordinates:function(e){return this.pixelFromPoint(e,!0)},viewerElementToViewportRectangle:function(t){return e.Rect.fromSummits(this.pointFromPixel(t.getTopLeft(),!0),this.pointFromPixel(t.getTopRight(),!0),this.pointFromPixel(t.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(t){return e.Rect.fromSummits(this.pixelFromPoint(t.getTopLeft(),!0),this.pixelFromPoint(t.getTopRight(),!0),this.pixelFromPoint(t.getBottomLeft(),!0))},windowToViewportCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(n)},viewportToWindowCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer.");var n=this.viewportToViewerElementCoordinates(t);return n.plus(e.getElementPosition(this.viewer.element))},viewportToImageZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)e.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===n){var i=this.viewer.world.getItemAt(0);return i.viewportToImageZoom(t)}}var r=this._contentSizeNoRotate.x,o=this._containerInnerSize.x,s=this._contentBoundsNoRotate.width,a=o/r*s;return t*a},imageToViewportZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)e.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===n){var i=this.viewer.world.getItemAt(0);return i.imageToViewportZoom(t)}}var r=this._contentSizeNoRotate.x,o=this._containerInnerSize.x,s=this._contentBoundsNoRotate.width,a=r/o/s;return t*a},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(e){return this.flipped===e||(this.flipped=e,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:e})),this}}})(OpenSeadragon)},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),o=n("825a"),s=n("1d80"),a=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),h=n("9263"),f=n("d039"),d=[].push,p=Math.min,v=4294967295,g=!f((function(){return!RegExp(v,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(s(this)),o=void 0===n?v:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var a,l,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,f+"g");while(a=h.call(g,i)){if(l=g.lastIndex,l>p&&(u.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&d.apply(u,a.slice(1)),c=a[0].length,p=l,u.length>=o))break;g.lastIndex===a.index&&g.lastIndex++}return p===i.length?!c&&g.test("")||u.push(""):u.push(i.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=s(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var s=n(i,e,this,r,i!==t);if(s.done)return s.value;var h=o(e),f=String(this),d=a(h,RegExp),m=h.unicode,y=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(g?"y":"g"),w=new d(g?h:"^(?:"+h.source+")",y),_=void 0===r?v:r>>>0;if(0===_)return[];if(0===f.length)return null===u(w,f)?[f]:[];var b=0,x=0,T=[];while(x<f.length){w.lastIndex=g?x:0;var S,P=u(w,g?f:f.slice(x));if(null===P||(S=p(c(w.lastIndex+(g?0:x)),f.length))===b)x=l(f,x,m);else{if(T.push(f.slice(b,x)),T.length===_)return T;for(var E=1;E<=P.length-1;E++)if(T.push(P[E]),T.length===_)return T;x=b=S}}return T.push(f.slice(b)),T}]}),!g)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,o=n("a640"),s=n("ae40"),a=n("2d00"),l=n("605d"),c=o("reduce"),u=s("reduce",{1:0}),h=!l&&a>79&&a<83;i({target:"Array",proto:!0,forced:!c||!u||h},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("17c2"),s=n("9112");for(var a in r){var l=i[a],c=l&&l.prototype;if(c&&c.forEach!==o)try{s(c,"forEach",o)}catch(u){c.forEach=o}}},"15d5":function(e,t){(function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,n,i){var r=this;i=i||1;var o=0,s=function n(s){o++,o===i&&r.removeHandler(e,n),t(s)};this.addHandler(e,s,n)},addHandler:function(t,n,i){var r=this.events[t];r||(this.events[t]=r=[]),n&&e.isFunction(n)&&(r[r.length]={handler:n,userData:i||null})},removeHandler:function(t,n){var i,r=this.events[t],o=[];if(r&&e.isArray(r)){for(i=0;i<r.length;i++)r[i].handler!==n&&o.push(r[i]);this.events[t]=o}},removeAllHandlers:function(e){if(e)this.events[e]=[];else for(var t in this.events)this.events[t]=[]},getHandler:function(e){var t=this.events[e];return t&&t.length?(t=1===t.length?[t[0]]:Array.apply(null,t),function(e,n){var i,r=t.length;for(i=0;i<r;i++)t[i]&&(n.eventSource=e,n.userData=t[i].userData,t[i].handler(n))}):null},raiseEvent:function(e,t){var n=this.getHandler(e);n&&(t||(t={}),n(this,t))}}})(OpenSeadragon)},"161e":function(e,t,n){n("c740"),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o+=1)if(t=n[o],e.call(r,t,o,n))return o;return-1},enumerable:!1,configurable:!1,writable:!1})},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=n("ae40"),s=r("forEach"),a=o("forEach");e.exports=s&&a?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"18a5":function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),o=n("af03");i({target:"String",proto:!0,forced:o("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1b80":function(e,t){e.exports={computed:{customPageViewActive:function(){var e=this.$root.params.pages;return e.length>2||2===e.length&&(e[0]%2>0||e[1]!==e[0]+1)&&e[1]>0},isFirstPage:function(){return this.$root.params.pages[0]<2},isLastPage:function(){var e=this.$root.params.pages,t=this.$root.pageCount;return e[0]>=t||e[e.length-1]>=t}},methods:{goToFirstPage:function(){this.$root.setPage(1)},goToLastPage:function(){this.$root.setPage(this.$root.pageCount)},goToNextPage:function(){var e=this.$root.params.pages,t=e[0]+1;e.length>1&&t%2>0&&t<this.$root.pageCount&&(t+=1),this.$root.setPage(t)},goToPreviousPage:function(){var e=this.$root.params.pages,t=e[0]-1;e.length>1&&t%2>0&&t>0&&(t-=1),this.$root.setPage(t)}}}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),s=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),o=n("50c4"),s=n("0366"),a=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,h,f,d,p,v,g,m=n&&n.that,y=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),b=s(t,m,1+y+_),x=function(e){return u&&l(u),new c(!0,e)},T=function(e){return y?(i(e),_?b(e[0],e[1],x):b(e[0],e[1])):_?b(e,x):b(e)};if(w)u=e;else{if(h=a(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(r(h)){for(f=0,d=o(e.length);d>f;f++)if(p=T(e[f]),p&&p instanceof c)return p;return new c(!1)}u=h.call(e)}v=u.next;while(!(g=v.call(u)).done){try{p=T(g.value)}catch(S){throw l(u),S}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),s=n("6eeb"),a=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,f,d,p,v=e.target,g=e.global,m=e.stat;if(u=g?i:m?i[v]||a(v,{}):(i[v]||{}).prototype,u)for(h in t){if(d=t[h],e.noTargetGet?(p=r(u,h),f=p&&p.value):f=u[h],n=c(g?h:v+(m?".":"#")+h,e.forced),!n&&void 0!==f){if(typeof d===typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),s(u,h,d,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:a(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){l.headers[e]=i.merge(o)})),e.exports=l}).call(this,n("4362"))},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),r=n("825a"),o=n("d039"),s=n("ad6d"),a="toString",l=RegExp.prototype,c=l[a],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=a;(u||h)&&i(RegExp.prototype,a,(function(){var e=r(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?s.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),s=n("83ab"),a=o("species");e.exports=function(e){var t=i(e),n=r.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},"2a62":function(e,t,n){var i=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},"2b0e":function(e,t,n){"use strict";(function(e){
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return!1===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function h(e){return"[object RegExp]"===c.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var m=g("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function _(e,t){return w.call(e,t)}function b(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var x=/-(\w)/g,T=b((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),S=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,E=b((function(e){return e.replace(P,"-$1").toLowerCase()}));function C(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function R(e,t){return e.bind(t)}var k=Function.prototype.bind?R:C;function O(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function I(e,t){for(var n in t)e[n]=t[n];return e}function A(e){for(var t={},n=0;n<e.length;n++)e[n]&&I(t,e[n]);return t}function $(e,t,n){}var L=function(e,t,n){return!1},D=function(e){return e};function M(e,t){if(e===t)return!0;var n=l(e),i=l(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every((function(e,n){return M(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(n){return M(e[n],t[n])}))}catch(c){return!1}}function F(e,t){for(var n=0;n<e.length;n++)if(M(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var N="data-server-rendered",j=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:$,parsePlatformTagName:D,mustUseProp:L,async:!0,_lifecycleHooks:H},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var q=new RegExp("[^"+V.source+".$_\\d]");function G(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Z,X="__proto__"in{},K="undefined"!==typeof window,Y="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Y&&WXEnvironment.platform.toLowerCase(),Q=K&&window.navigator.userAgent.toLowerCase(),ee=Q&&/msie|trident/.test(Q),te=Q&&Q.indexOf("msie 9.0")>0,ne=Q&&Q.indexOf("edge/")>0,ie=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),re=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),oe={}.watch,se=!1;if(K)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,ae)}catch(Ts){}var le=function(){return void 0===Z&&(Z=!K&&!Y&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Z},ce=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,fe="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);he="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=$,pe=0,ve=function(){this.id=pe++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){y(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ve.target=null;var ge=[];function me(e){ge.push(e),ve.target=e}function ye(){ge.pop(),ve.target=ge[ge.length-1]}var we=function(e,t,n,i,r,o,s,a){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(we.prototype,_e);var be=function(e){void 0===e&&(e="");var t=new we;return t.text=e,t.isComment=!0,t};function xe(e){return new we(void 0,void 0,void 0,String(e))}function Te(e){var t=new we(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Se=Array.prototype,Pe=Object.create(Se),Ee=["push","pop","shift","unshift","splice","sort","reverse"];Ee.forEach((function(e){var t=Se[e];W(Pe,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,o=t.apply(this,n),s=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),o}))}));var Ce=Object.getOwnPropertyNames(Pe),Re=!0;function ke(e){Re=e}var Oe=function(e){this.value=e,this.dep=new ve,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(X?Ie(e,Pe):Ae(e,Pe,Ce),this.observeArray(e)):this.walk(e)};function Ie(e,t){e.__proto__=t}function Ae(e,t,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];W(e,o,t[o])}}function $e(e,t){var n;if(l(e)&&!(e instanceof we))return _(e,"__ob__")&&e.__ob__ instanceof Oe?n=e.__ob__:Re&&!le()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Oe(e)),t&&n&&n.vmCount++,n}function Le(e,t,n,i,r){var o=new ve,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(n=e[t]);var c=!r&&$e(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return ve.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Fe(t))),t},set:function(t){var i=a?a.call(e):n;t===i||t!==t&&i!==i||a&&!l||(l?l.call(e,t):n=t,c=!r&&$e(t),o.notify())}})}}function De(e,t,n){if(Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(Le(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Me(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Fe(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Fe(t)}Oe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Le(e,t[n])},Oe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)$e(e[t])};var Be=z.optionMergeStrategies;function Ne(e,t){if(!t)return e;for(var n,i,r,o=fe?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)n=o[s],"__ob__"!==n&&(i=e[n],r=t[n],_(e,n)?i!==r&&u(i)&&u(r)&&Ne(i,r):De(e,n,r));return e}function je(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,r="function"===typeof e?e.call(n,n):e;return i?Ne(i,r):r}:t?e?function(){return Ne("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function He(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?ze(n):n}function ze(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ve(e,t,n,i){var r=Object.create(e||null);return t?I(r,t):r}Be.data=function(e,t,n){return n?je(e,t,n):t&&"function"!==typeof t?e:je(e,t)},H.forEach((function(e){Be[e]=He})),j.forEach((function(e){Be[e+"s"]=Ve})),Be.watch=function(e,t,n,i){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var o in I(r,e),t){var s=r[o],a=t[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},Be.props=Be.methods=Be.inject=Be.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return I(r,e),t&&I(r,t),r},Be.provide=je;var Ue=function(e,t){return void 0===t?e:t};function We(e,t){var n=e.props;if(n){var i,r,o,s={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(o=T(r),s[o]={type:null})}else if(u(n))for(var a in n)r=n[a],o=T(a),s[o]=u(r)?r:{type:r};else 0;e.props=s}}function qe(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var o in n){var s=n[o];i[o]=u(s)?I({from:o},s):{from:s}}else 0}}function Ge(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}function Ze(e,t,n){if("function"===typeof t&&(t=t.options),We(t,n),qe(t,n),Ge(t),!t._base&&(t.extends&&(e=Ze(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Ze(e,t.mixins[i],n);var o,s={};for(o in e)a(o);for(o in t)_(e,o)||a(o);function a(i){var r=Be[i]||Ue;s[i]=r(e[i],t[i],n,i)}return s}function Xe(e,t,n,i){if("string"===typeof n){var r=e[t];if(_(r,n))return r[n];var o=T(n);if(_(r,o))return r[o];var s=S(o);if(_(r,s))return r[s];var a=r[n]||r[o]||r[s];return a}}function Ke(e,t,n,i){var r=t[e],o=!_(n,e),s=n[e],a=et(Boolean,r.type);if(a>-1)if(o&&!_(r,"default"))s=!1;else if(""===s||s===E(e)){var l=et(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=Ye(i,r,e);var c=Re;ke(!0),$e(s),ke(c)}return s}function Ye(e,t,n){if(_(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof i&&"Function"!==Je(t.type)?i.call(e):i}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Qe(e,t){return Je(e)===Je(t)}function et(e,t){if(!Array.isArray(t))return Qe(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Qe(t[n],e))return n;return-1}function tt(e,t,n){me();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var s=!1===r[o].call(i,e,t,n);if(s)return}catch(Ts){it(Ts,i,"errorCaptured hook")}}}it(e,t,n)}finally{ye()}}function nt(e,t,n,i,r){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(e){return tt(e,i,r+" (Promise/async)")})),o._handled=!0)}catch(Ts){tt(Ts,i,r)}return o}function it(e,t,n){if(z.errorHandler)try{return z.errorHandler.call(null,e,t,n)}catch(Ts){Ts!==e&&rt(Ts,null,"config.errorHandler")}rt(e,t,n)}function rt(e,t,n){if(!K&&!Y||"undefined"===typeof console)throw e;console.error(e)}var ot,st=!1,at=[],lt=!1;function ct(){lt=!1;var e=at.slice(0);at.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ue(Promise)){var ut=Promise.resolve();ot=function(){ut.then(ct),ie&&setTimeout($)},st=!0}else if(ee||"undefined"===typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&ue(setImmediate)?function(){setImmediate(ct)}:function(){setTimeout(ct,0)};else{var ht=1,ft=new MutationObserver(ct),dt=document.createTextNode(String(ht));ft.observe(dt,{characterData:!0}),ot=function(){ht=(ht+1)%2,dt.data=String(ht)},st=!0}function pt(e,t){var n;if(at.push((function(){if(e)try{e.call(t)}catch(Ts){tt(Ts,t,"nextTick")}else n&&n(t)})),lt||(lt=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var vt=new he;function gt(e){mt(e,vt),vt.clear()}function mt(e,t){var n,i,r=Array.isArray(e);if(!(!r&&!l(e)||Object.isFrozen(e)||e instanceof we)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(r){n=e.length;while(n--)mt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)mt(e[i[n]],t)}}}var yt=b((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function wt(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return nt(i,null,arguments,t,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)nt(r[o],null,e,t,"v-on handler")}return n.fns=e,n}function _t(e,t,n,r,s,a){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=yt(l),i(c)||(i(u)?(i(c.fns)&&(c=e[l]=wt(c,a)),o(h.once)&&(c=e[l]=s(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)i(e[l])&&(h=yt(l),r(h.name,t[l],h.capture))}function bt(e,t,n){var s;e instanceof we&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function l(){n.apply(this,arguments),y(s.fns,l)}i(a)?s=wt([l]):r(a.fns)&&o(a.merged)?(s=a,s.fns.push(l)):s=wt([a,l]),s.merged=!0,e[t]=s}function xt(e,t,n){var o=t.options.props;if(!i(o)){var s={},a=e.attrs,l=e.props;if(r(a)||r(l))for(var c in o){var u=E(c);Tt(s,l,c,u,!0)||Tt(s,a,c,u,!1)}return s}}function Tt(e,t,n,i,o){if(r(t)){if(_(t,n))return e[n]=t[n],o||delete t[n],!0;if(_(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function St(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Pt(e){return a(e)?[xe(e)]:Array.isArray(e)?Ct(e):void 0}function Et(e){return r(e)&&r(e.text)&&s(e.isComment)}function Ct(e,t){var n,s,l,c,u=[];for(n=0;n<e.length;n++)s=e[n],i(s)||"boolean"===typeof s||(l=u.length-1,c=u[l],Array.isArray(s)?s.length>0&&(s=Ct(s,(t||"")+"_"+n),Et(s[0])&&Et(c)&&(u[l]=xe(c.text+s[0].text),s.shift()),u.push.apply(u,s)):a(s)?Et(c)?u[l]=xe(c.text+s):""!==s&&u.push(xe(s)):Et(s)&&Et(c)?u[l]=xe(c.text+s.text):(o(e._isVList)&&r(s.tag)&&i(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+n+"__"),u.push(s)));return u}function Rt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function kt(e){var t=Ot(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),ke(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),i=fe?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var s=e[o].from,a=t;while(a){if(a._provided&&_(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in e[o]){var l=e[o].default;n[o]="function"===typeof l?l.call(t):l}else 0}}return n}}function It(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var o=e[i],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==t&&o.fnContext!==t||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,l=n[a]||(n[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(At)&&delete n[c];return n}function At(e){return e.isComment&&!e.asyncFactory||" "===e.text}function $t(e,t,i){var r,o=Object.keys(t).length>0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==n&&a===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=Lt(t,l,e[l]))}else r={};for(var c in t)c in r||(r[c]=Dt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),W(r,"$stable",s),W(r,"$key",a),W(r,"$hasNormal",o),r}function Lt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Pt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Dt(e,t){return function(){return e[t]}}function Mt(e,t){var n,i,o,s,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(l(e))if(fe&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),u=c.next();while(!u.done)n.push(t(u.value,n.length)),u=c.next()}else for(s=Object.keys(e),n=new Array(s.length),i=0,o=s.length;i<o;i++)a=s[i],n[i]=t(e[a],a,i);return r(n)||(n=[]),n._isVList=!0,n}function Ft(e,t,n,i){var r,o=this.$scopedSlots[e];o?(n=n||{},i&&(n=I(I({},i),n)),r=o(n)||t):r=this.$slots[e]||t;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},r):r}function Bt(e){return Xe(this.$options,"filters",e,!0)||D}function Nt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function jt(e,t,n,i,r){var o=z.keyCodes[t]||n;return r&&i&&!z.keyCodes[t]?Nt(r,i):o?Nt(o,e):i?E(i)!==t:void 0}function Ht(e,t,n,i,r){if(n)if(l(n)){var o;Array.isArray(n)&&(n=A(n));var s=function(s){if("class"===s||"style"===s||m(s))o=e;else{var a=e.attrs&&e.attrs.type;o=i||z.mustUseProp(t,a,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=T(s),c=E(s);if(!(l in o)&&!(c in o)&&(o[s]=n[s],r)){var u=e.on||(e.on={});u["update:"+s]=function(e){n[s]=e}}};for(var a in n)s(a)}else;return e}function zt(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Ut(i,"__static__"+e,!1)),i}function Vt(e,t,n){return Ut(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ut(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&Wt(e[i],t+"_"+i,n);else Wt(e,t,n)}function Wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function qt(e,t){if(t)if(u(t)){var n=e.on=e.on?I({},e.on):{};for(var i in t){var r=n[i],o=t[i];n[i]=r?[].concat(r,o):o}}else;return e}function Gt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?Gt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return i&&(t.$key=i),t}function Zt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"===typeof e?t+e:e}function Kt(e){e._o=Vt,e._n=v,e._s=p,e._l=Mt,e._t=Ft,e._q=M,e._i=F,e._m=zt,e._f=Bt,e._k=jt,e._b=Ht,e._v=xe,e._e=be,e._u=Gt,e._g=qt,e._d=Zt,e._p=Xt}function Yt(e,t,i,r,s){var a,l=this,c=s.options;_(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var u=o(c._compiled),h=!u;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=Ot(c.inject,r),this.slots=function(){return l.$slots||$t(e.scopedSlots,l.$slots=It(i,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return $t(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=$t(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,i){var o=hn(a,e,t,n,i,h);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,i){return hn(a,e,t,n,i,h)}}function Jt(e,t,i,o,s){var a=e.options,l={},c=a.props;if(r(c))for(var u in c)l[u]=Ke(u,c,t||n);else r(i.attrs)&&en(l,i.attrs),r(i.props)&&en(l,i.props);var h=new Yt(i,l,s,o,e),f=a.render.call(null,h._c,h);if(f instanceof we)return Qt(f,i,h.parent,a,h);if(Array.isArray(f)){for(var d=Pt(f)||[],p=new Array(d.length),v=0;v<d.length;v++)p[v]=Qt(d[v],i,h.parent,a,h);return p}}function Qt(e,t,n,i,r){var o=Te(e);return o.fnContext=n,o.fnOptions=i,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function en(e,t){for(var n in t)e[T(n)]=t[n]}Kt(Yt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var i=e.componentInstance=on(e,On);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Dn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Nn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):Fn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Bn(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,s,a){if(!i(e)){var c=n.$options._base;if(l(e)&&(e=c.extend(e)),"function"===typeof e){var u;if(i(e.cid)&&(u=e,e=bn(u,c),void 0===e))return _n(u,t,n,s,a);t=t||{},bi(e),r(t.model)&&ln(e.options,t);var h=xt(t,e,a);if(o(e.options.functional))return Jt(e,h,t,n,s);var f=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}sn(t);var p=e.options.name||a,v=new we("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:f,tag:a,children:s},u);return v}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function sn(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var i=nn[n],r=t[i],o=tn[i];r===o||r&&r._merged||(t[i]=r?an(o,r):o)}}function an(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function ln(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[i],a=t.model.callback;r(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[i]=[a].concat(s)):o[i]=a}var cn=1,un=2;function hn(e,t,n,i,r,s){return(Array.isArray(n)||a(n))&&(r=i,i=n,n=void 0),o(s)&&(r=un),fn(e,t,n,i,r)}function fn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return be();if(r(n)&&r(n.is)&&(t=n.is),!t)return be();var s,a,l;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===un?i=Pt(i):o===cn&&(i=St(i)),"string"===typeof t)?(a=e.$vnode&&e.$vnode.ns||z.getTagNamespace(t),s=z.isReservedTag(t)?new we(z.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(l=Xe(e.$options,"components",t))?new we(t,n,i,void 0,void 0,e):rn(l,n,e,i,t)):s=rn(t,n,e,i);return Array.isArray(s)?s:r(s)?(r(a)&&dn(s,a),r(n)&&pn(n),s):be()}function dn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var s=0,a=e.children.length;s<a;s++){var l=e.children[s];r(l.tag)&&(i(l.ns)||o(n)&&"svg"!==l.tag)&&dn(l,t,n)}}function pn(e){l(e.style)&>(e.style),l(e.class)&>(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=It(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return hn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return hn(e,t,n,i,r,!0)};var o=i&&i.data;Le(e,"$attrs",o&&o.attrs||n,null,!0),Le(e,"$listeners",t._parentListeners||n,null,!0)}var gn,mn=null;function yn(e){Kt(e.prototype),e.prototype.$nextTick=function(e){return pt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=$t(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{mn=t,e=i.call(t._renderProxy,t.$createElement)}catch(Ts){tt(Ts,t,"render"),e=t._vnode}finally{mn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof we||(e=be()),e.parent=r,e}}function wn(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function _n(e,t,n,i,r){var o=be();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:i,tag:r},o}function bn(e,t){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=mn;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var s=e.owners=[n],a=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return y(s,n)}));var h=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},f=B((function(n){e.resolved=wn(n,t),a?s.length=0:h(!0)})),p=B((function(t){r(e.errorComp)&&(e.error=!0,h(!0))})),v=e(f,p);return l(v)&&(d(v)?i(e.resolved)&&v.then(f,p):d(v.component)&&(v.component.then(f,p),r(v.error)&&(e.errorComp=wn(v.error,t)),r(v.loading)&&(e.loadingComp=wn(v.loading,t),0===v.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,h(!1))}),v.delay||200)),r(v.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),v.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}function xn(e){return e.isComment&&e.asyncFactory}function Tn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||xn(n)))return n}}function Sn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Rn(e,t)}function Pn(e,t){gn.$on(e,t)}function En(e,t){gn.$off(e,t)}function Cn(e,t){var n=gn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function Rn(e,t,n){gn=e,_t(t,n||{},Pn,En,Cn,e),gn=void 0}function kn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,o=e.length;r<o;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var a=s.length;while(a--)if(o=s[a],o===t||o.fn===t){s.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?O(n):n;for(var i=O(arguments,1),r='event handler for "'+e+'"',o=0,s=n.length;o<s;o++)nt(n[o],t,i,t,r)}return t}}var On=null;function In(e){var t=On;return On=e,function(){On=t}}function An(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function $n(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,o=In(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Nn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Nn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Ln(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=be),Nn(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ni(e,i,$,{before:function(){e._isMounted&&!e._isDestroyed&&Nn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Nn(e,"mounted")),e}function Dn(e,t,i,r,o){var s=r.data.scopedSlots,a=e.$scopedSlots,l=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key),c=!!(o||e.$options._renderChildren||l);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){ke(!1);for(var u=e._props,h=e.$options._propKeys||[],f=0;f<h.length;f++){var d=h[f],p=e.$options.props;u[d]=Ke(d,p,t,e)}ke(!0),e.$options.propsData=t}i=i||n;var v=e.$options._parentListeners;e.$options._parentListeners=i,Rn(e,i,v),c&&(e.$slots=It(o,r.context),e.$forceUpdate())}function Mn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Fn(e,t){if(t){if(e._directInactive=!1,Mn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Fn(e.$children[n]);Nn(e,"activated")}}function Bn(e,t){if((!t||(e._directInactive=!0,!Mn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Bn(e.$children[n]);Nn(e,"deactivated")}}function Nn(e,t){me();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,o=n.length;r<o;r++)nt(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),ye()}var jn=[],Hn=[],zn={},Vn=!1,Un=!1,Wn=0;function qn(){Wn=jn.length=Hn.length=0,zn={},Vn=Un=!1}var Gn=0,Zn=Date.now;if(K&&!ee){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Zn()>document.createEvent("Event").timeStamp&&(Zn=function(){return Xn.now()})}function Kn(){var e,t;for(Gn=Zn(),Un=!0,jn.sort((function(e,t){return e.id-t.id})),Wn=0;Wn<jn.length;Wn++)e=jn[Wn],e.before&&e.before(),t=e.id,zn[t]=null,e.run();var n=Hn.slice(),i=jn.slice();qn(),Qn(n),Yn(i),ce&&z.devtools&&ce.emit("flush")}function Yn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Nn(i,"updated")}}function Jn(e){e._inactive=!1,Hn.push(e)}function Qn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Fn(e[t],!0)}function ei(e){var t=e.id;if(null==zn[t]){if(zn[t]=!0,Un){var n=jn.length-1;while(n>Wn&&jn[n].id>e.id)n--;jn.splice(n+1,0,e)}else jn.push(e);Vn||(Vn=!0,pt(Kn))}}var ti=0,ni=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ti,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=$)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var e;me(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ts){if(!this.user)throw Ts;tt(Ts,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&>(e),ye(),this.cleanupDeps()}return e},ni.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ni.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ei(this)},ni.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Ts){tt(Ts,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:$,set:$};function ri(e,t,n){ii.get=function(){return this[t][n]},ii.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ii)}function oi(e){e._watchers=[];var t=e.$options;t.props&&si(e,t.props),t.methods&&pi(e,t.methods),t.data?ai(e):$e(e._data={},!0),t.computed&&ui(e,t.computed),t.watch&&t.watch!==oe&&vi(e,t.watch)}function si(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],o=!e.$parent;o||ke(!1);var s=function(o){r.push(o);var s=Ke(o,t,n,e);Le(i,o,s),o in e||ri(e,"_props",o)};for(var a in t)s(a);ke(!0)}function ai(e){var t=e.$options.data;t=e._data="function"===typeof t?li(t,e):t||{},u(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var o=n[r];0,i&&_(i,o)||U(o)||ri(e,"_data",o)}$e(t,!0)}function li(e,t){me();try{return e.call(t,t)}catch(Ts){return tt(Ts,t,"data()"),{}}finally{ye()}}var ci={lazy:!0};function ui(e,t){var n=e._computedWatchers=Object.create(null),i=le();for(var r in t){var o=t[r],s="function"===typeof o?o:o.get;0,i||(n[r]=new ni(e,s||$,$,ci)),r in e||hi(e,r,o)}}function hi(e,t,n){var i=!le();"function"===typeof n?(ii.get=i?fi(t):di(n),ii.set=$):(ii.get=n.get?i&&!1!==n.cache?fi(t):di(n.get):$,ii.set=n.set||$),Object.defineProperty(e,t,ii)}function fi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function di(e){return function(){return e.call(this,this)}}function pi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?$:k(t[n],e)}function vi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)gi(e,n,i[r]);else gi(e,n,i)}}function gi(e,t,n,i){return u(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function mi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=De,e.prototype.$delete=Me,e.prototype.$watch=function(e,t,n){var i=this;if(u(t))return gi(i,e,t,n);n=n||{},n.user=!0;var r=new ni(i,e,t,n);if(n.immediate)try{t.call(i,r.value)}catch(o){tt(o,i,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var yi=0;function wi(e){e.prototype._init=function(e){var t=this;t._uid=yi++,t._isVue=!0,e&&e._isComponent?_i(t,e):t.$options=Ze(bi(t.constructor),e||{},t),t._renderProxy=t,t._self=t,An(t),Sn(t),vn(t),Nn(t,"beforeCreate"),kt(t),oi(t),Rt(t),Nn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function _i(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function bi(e){var t=e.options;if(e.super){var n=bi(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=xi(e);r&&I(e.extendOptions,r),t=e.options=Ze(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function xi(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function Ti(e){this._init(e)}function Si(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Pi(e){e.mixin=function(e){return this.options=Ze(this.options,e),this}}function Ei(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=e.name||n.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Ze(n.options,e),s["super"]=n,s.options.props&&Ci(s),s.options.computed&&Ri(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,j.forEach((function(e){s[e]=n[e]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=I({},s.options),r[i]=s,s}}function Ci(e){var t=e.options.props;for(var n in t)ri(e.prototype,"_props",n)}function Ri(e){var t=e.options.computed;for(var n in t)hi(e.prototype,n,t[n])}function ki(e){j.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Oi(e){return e&&(e.Ctor.options.name||e.tag)}function Ii(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Ai(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var s=n[o];if(s){var a=Oi(s.componentOptions);a&&!t(a)&&$i(n,o,i,r)}}}function $i(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,y(n,t)}wi(Ti),mi(Ti),kn(Ti),$n(Ti),yn(Ti);var Li=[String,RegExp,Array],Di={name:"keep-alive",abstract:!0,props:{include:Li,exclude:Li,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)$i(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ai(e,(function(e){return Ii(t,e)}))})),this.$watch("exclude",(function(t){Ai(e,(function(e){return!Ii(t,e)}))}))},render:function(){var e=this.$slots.default,t=Tn(e),n=t&&t.componentOptions;if(n){var i=Oi(n),r=this,o=r.include,s=r.exclude;if(o&&(!i||!Ii(o,i))||s&&i&&Ii(s,i))return t;var a=this,l=a.cache,c=a.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,y(c,u),c.push(u)):(l[u]=t,c.push(u),this.max&&c.length>parseInt(this.max)&&$i(l,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Mi={KeepAlive:Di};function Fi(e){var t={get:function(){return z}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:I,mergeOptions:Ze,defineReactive:Le},e.set=De,e.delete=Me,e.nextTick=pt,e.observable=function(e){return $e(e),e},e.options=Object.create(null),j.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,Mi),Si(e),Pi(e),Ei(e),ki(e)}Fi(Ti),Object.defineProperty(Ti.prototype,"$isServer",{get:le}),Object.defineProperty(Ti.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ti,"FunctionalRenderContext",{value:Yt}),Ti.version="2.6.12";var Bi=g("style,class"),Ni=g("input,textarea,option,select,progress"),ji=function(e,t,n){return"value"===n&&Ni(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Hi=g("contenteditable,draggable,spellcheck"),zi=g("events,caret,typing,plaintext-only"),Vi=function(e,t){return Zi(t)||"false"===t?"false":"contenteditable"===e&&zi(t)?t:"true"},Ui=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wi="http://www.w3.org/1999/xlink",qi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gi=function(e){return qi(e)?e.slice(6,e.length):""},Zi=function(e){return null==e||!1===e};function Xi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Ki(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Ki(t,n.data));return Yi(t.staticClass,t.class)}function Ki(e,t){return{staticClass:Ji(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Yi(e,t){return r(e)||r(t)?Ji(e,Qi(t)):""}function Ji(e,t){return e?t?e+" "+t:e:t||""}function Qi(e){return Array.isArray(e)?er(e):l(e)?tr(e):"string"===typeof e?e:""}function er(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=Qi(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function tr(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var nr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ir=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),rr=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),or=function(e){return ir(e)||rr(e)};function sr(e){return rr(e)?"svg":"math"===e?"math":void 0}var ar=Object.create(null);function lr(e){if(!K)return!0;if(or(e))return!1;if(e=e.toLowerCase(),null!=ar[e])return ar[e];var t=document.createElement(e);return e.indexOf("-")>-1?ar[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ar[e]=/HTMLUnknownElement/.test(t.toString())}var cr=g("text,number,password,search,email,tel,url");function ur(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function hr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fr(e,t){return document.createElementNS(nr[e],t)}function dr(e){return document.createTextNode(e)}function pr(e){return document.createComment(e)}function vr(e,t,n){e.insertBefore(t,n)}function gr(e,t){e.removeChild(t)}function mr(e,t){e.appendChild(t)}function yr(e){return e.parentNode}function wr(e){return e.nextSibling}function _r(e){return e.tagName}function br(e,t){e.textContent=t}function xr(e,t){e.setAttribute(t,"")}var Tr=Object.freeze({createElement:hr,createElementNS:fr,createTextNode:dr,createComment:pr,insertBefore:vr,removeChild:gr,appendChild:mr,parentNode:yr,nextSibling:wr,tagName:_r,setTextContent:br,setStyleScope:xr}),Sr={create:function(e,t){Pr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Pr(e,!0),Pr(t))},destroy:function(e){Pr(e,!0)}};function Pr(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,s=i.$refs;t?Array.isArray(s[n])?y(s[n],o):s[n]===o&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Er=new we("",{},[]),Cr=["create","activate","update","remove","destroy"];function Rr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&kr(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function kr(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||cr(i)&&cr(o)}function Or(e,t,n){var i,o,s={};for(i=t;i<=n;++i)o=e[i].key,r(o)&&(s[o]=i);return s}function Ir(e){var t,n,s={},l=e.modules,c=e.nodeOps;for(t=0;t<Cr.length;++t)for(s[Cr[t]]=[],n=0;n<l.length;++n)r(l[n][Cr[t]])&&s[Cr[t]].push(l[n][Cr[t]]);function u(e){return new we(c.tagName(e).toLowerCase(),{},[],void 0,e)}function h(e,t){function n(){0===--n.listeners&&f(e)}return n.listeners=t,n}function f(e){var t=c.parentNode(e);r(t)&&c.removeChild(t,e)}function d(e,t,n,i,s,a,l){if(r(e.elm)&&r(a)&&(e=a[l]=Te(e)),e.isRootInsert=!s,!p(e,t,n,i)){var u=e.data,h=e.children,f=e.tag;r(f)?(e.elm=e.ns?c.createElementNS(e.ns,f):c.createElement(f,e),x(e),w(e,h,t),r(u)&&b(e,t),y(n,e.elm,i)):o(e.isComment)?(e.elm=c.createComment(e.text),y(n,e.elm,i)):(e.elm=c.createTextNode(e.text),y(n,e.elm,i))}}function p(e,t,n,i){var s=e.data;if(r(s)){var a=r(e.componentInstance)&&s.keepAlive;if(r(s=s.hook)&&r(s=s.init)&&s(e,!1),r(e.componentInstance))return v(e,t),y(n,e.elm,i),o(a)&&m(e,t,n,i),!0}}function v(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(b(e,t),x(e)):(Pr(e),t.push(e))}function m(e,t,n,i){var o,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Er,a);t.push(a);break}y(n,e.elm,i)}function y(e,t,n){r(e)&&(r(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function w(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)d(t[i],n,e.elm,null,!0,t,i)}else a(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function _(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function b(e,n){for(var i=0;i<s.create.length;++i)s.create[i](Er,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(Er,e),r(t.insert)&&n.push(e))}function x(e){var t;if(r(t=e.fnScopeId))c.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent}r(t=On)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function T(e,t,n,i,r,o){for(;i<=r;++i)d(n[i],o,e,t,!1,n,i)}function S(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function P(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(E(i),S(i)):f(i.elm))}}function E(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=h(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&E(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else f(e.elm)}function C(e,t,n,o,s){var a,l,u,h,f=0,p=0,v=t.length-1,g=t[0],m=t[v],y=n.length-1,w=n[0],_=n[y],b=!s;while(f<=v&&p<=y)i(g)?g=t[++f]:i(m)?m=t[--v]:Rr(g,w)?(k(g,w,o,n,p),g=t[++f],w=n[++p]):Rr(m,_)?(k(m,_,o,n,y),m=t[--v],_=n[--y]):Rr(g,_)?(k(g,_,o,n,y),b&&c.insertBefore(e,g.elm,c.nextSibling(m.elm)),g=t[++f],_=n[--y]):Rr(m,w)?(k(m,w,o,n,p),b&&c.insertBefore(e,m.elm,g.elm),m=t[--v],w=n[++p]):(i(a)&&(a=Or(t,f,v)),l=r(w.key)?a[w.key]:R(w,t,f,v),i(l)?d(w,o,e,g.elm,!1,n,p):(u=t[l],Rr(u,w)?(k(u,w,o,n,p),t[l]=void 0,b&&c.insertBefore(e,u.elm,g.elm)):d(w,o,e,g.elm,!1,n,p)),w=n[++p]);f>v?(h=i(n[y+1])?null:n[y+1].elm,T(e,h,n,p,y,o)):p>y&&P(t,f,v)}function R(e,t,n,i){for(var o=n;o<i;o++){var s=t[o];if(r(s)&&Rr(e,s))return o}}function k(e,t,n,a,l,u){if(e!==t){r(t.elm)&&r(a)&&(t=a[l]=Te(t));var h=t.elm=e.elm;if(o(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?A(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,d=t.data;r(d)&&r(f=d.hook)&&r(f=f.prepatch)&&f(e,t);var p=e.children,v=t.children;if(r(d)&&_(t)){for(f=0;f<s.update.length;++f)s.update[f](e,t);r(f=d.hook)&&r(f=f.update)&&f(e,t)}i(t.text)?r(p)&&r(v)?p!==v&&C(h,p,v,n,u):r(v)?(r(e.text)&&c.setTextContent(h,""),T(h,null,v,0,v.length-1,n)):r(p)?P(p,0,p.length-1):r(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),r(d)&&r(f=d.hook)&&r(f=f.postpatch)&&f(e,t)}}}function O(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var I=g("attrs,class,staticClass,staticStyle,key");function A(e,t,n,i){var s,a=t.tag,l=t.data,c=t.children;if(i=i||l&&l.pre,t.elm=e,o(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(l)&&(r(s=l.hook)&&r(s=s.init)&&s(t,!0),r(s=t.componentInstance)))return v(t,n),!0;if(r(a)){if(r(c))if(e.hasChildNodes())if(r(s=l)&&r(s=s.domProps)&&r(s=s.innerHTML)){if(s!==e.innerHTML)return!1}else{for(var u=!0,h=e.firstChild,f=0;f<c.length;f++){if(!h||!A(h,c[f],n,i)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else w(t,c,n);if(r(l)){var d=!1;for(var p in l)if(!I(p)){d=!0,b(t,n);break}!d&&l["class"]&>(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,a){if(!i(t)){var l=!1,h=[];if(i(e))l=!0,d(t,h);else{var f=r(e.nodeType);if(!f&&Rr(e,t))k(e,t,h,null,null,a);else{if(f){if(1===e.nodeType&&e.hasAttribute(N)&&(e.removeAttribute(N),n=!0),o(n)&&A(e,t,h))return O(t,h,!0),e;e=u(e)}var p=e.elm,v=c.parentNode(p);if(d(t,h,p._leaveCb?null:v,c.nextSibling(p)),r(t.parent)){var g=t.parent,m=_(t);while(g){for(var y=0;y<s.destroy.length;++y)s.destroy[y](g);if(g.elm=t.elm,m){for(var w=0;w<s.create.length;++w)s.create[w](Er,g);var b=g.data.hook.insert;if(b.merged)for(var x=1;x<b.fns.length;x++)b.fns[x]()}else Pr(g);g=g.parent}}r(v)?P([e],0,0):r(e.tag)&&S(e)}}return O(t,h,l),t.elm}r(e)&&S(e)}}var Ar={create:$r,update:$r,destroy:function(e){$r(e,Er)}};function $r(e,t){(e.data.directives||t.data.directives)&&Lr(e,t)}function Lr(e,t){var n,i,r,o=e===Er,s=t===Er,a=Mr(e.data.directives,e.context),l=Mr(t.data.directives,t.context),c=[],u=[];for(n in l)i=a[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Br(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(Br(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var h=function(){for(var n=0;n<c.length;n++)Br(c[n],"inserted",t,e)};o?bt(t,"insert",h):h()}if(u.length&&bt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)Br(u[n],"componentUpdated",t,e)})),!o)for(n in a)l[n]||Br(a[n],"unbind",e,e,s)}var Dr=Object.create(null);function Mr(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=Dr),r[Fr(i)]=i,i.def=Xe(t.$options,"directives",i.name,!0);return r}function Fr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Br(e,t,n,i,r){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,i,r)}catch(Ts){tt(Ts,n.context,"directive "+e.name+" "+t+" hook")}}var Nr=[Sr,Ar];function jr(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var o,s,a,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=I({},u)),u)s=u[o],a=c[o],a!==s&&Hr(l,o,s);for(o in(ee||ne)&&u.value!==c.value&&Hr(l,"value",u.value),c)i(u[o])&&(qi(o)?l.removeAttributeNS(Wi,Gi(o)):Hi(o)||l.removeAttribute(o))}}function Hr(e,t,n){e.tagName.indexOf("-")>-1?zr(e,t,n):Ui(t)?Zi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Hi(t)?e.setAttribute(t,Vi(t,n)):qi(t)?Zi(n)?e.removeAttributeNS(Wi,Gi(t)):e.setAttributeNS(Wi,t,n):zr(e,t,n)}function zr(e,t,n){if(Zi(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Vr={create:jr,update:jr};function Ur(e,t){var n=t.elm,o=t.data,s=e.data;if(!(i(o.staticClass)&&i(o.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=Xi(t),l=n._transitionClasses;r(l)&&(a=Ji(a,Qi(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Wr,qr={create:Ur,update:Ur},Gr="__r",Zr="__c";function Xr(e){if(r(e[Gr])){var t=ee?"change":"input";e[t]=[].concat(e[Gr],e[t]||[]),delete e[Gr]}r(e[Zr])&&(e.change=[].concat(e[Zr],e.change||[]),delete e[Zr])}function Kr(e,t,n){var i=Wr;return function r(){var o=t.apply(null,arguments);null!==o&&Qr(e,r,n,i)}}var Yr=st&&!(re&&Number(re[1])<=53);function Jr(e,t,n,i){if(Yr){var r=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Wr.addEventListener(e,t,se?{capture:n,passive:i}:n)}function Qr(e,t,n,i){(i||Wr).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Wr=t.elm,Xr(n),_t(n,r,Jr,Qr,Kr,t.context),Wr=void 0}}var to,no={create:eo,update:eo};function io(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,s=t.elm,a=e.data.domProps||{},l=t.data.domProps||{};for(n in r(l.__ob__)&&(l=t.data.domProps=I({},l)),a)n in l||(s[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var c=i(o)?"":String(o);ro(s,c)&&(s.value=c)}else if("innerHTML"===n&&rr(s.tagName)&&i(s.innerHTML)){to=to||document.createElement("div"),to.innerHTML="<svg>"+o+"</svg>";var u=to.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(u.firstChild)s.appendChild(u.firstChild)}else if(o!==a[n])try{s[n]=o}catch(Ts){}}}}function ro(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||so(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ts){}return n&&e.value!==t}function so(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return v(n)!==v(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var ao={create:io,update:io},lo=b((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function co(e){var t=uo(e.style);return e.staticStyle?I(e.staticStyle,t):t}function uo(e){return Array.isArray(e)?A(e):"string"===typeof e?lo(e):e}function ho(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=co(r.data))&&I(i,n)}(n=co(e.data))&&I(i,n);var o=e;while(o=o.parent)o.data&&(n=co(o.data))&&I(i,n);return i}var fo,po=/^--/,vo=/\s*!important$/,go=function(e,t,n){if(po.test(t))e.style.setProperty(t,n);else if(vo.test(n))e.style.setProperty(E(t),n.replace(vo,""),"important");else{var i=yo(t);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)e.style[i]=n[r];else e.style[i]=n}},mo=["Webkit","Moz","ms"],yo=b((function(e){if(fo=fo||document.createElement("div").style,e=T(e),"filter"!==e&&e in fo)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<mo.length;n++){var i=mo[n]+t;if(i in fo)return i}}));function wo(e,t){var n=t.data,o=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(o.staticStyle)&&i(o.style))){var s,a,l=t.elm,c=o.staticStyle,u=o.normalizedStyle||o.style||{},h=c||u,f=uo(t.data.style)||{};t.data.normalizedStyle=r(f.__ob__)?I({},f):f;var d=ho(t,!0);for(a in h)i(d[a])&&go(l,a,"");for(a in d)s=d[a],s!==h[a]&&go(l,a,null==s?"":s)}}var _o={create:wo,update:wo},bo=/\s+/;function xo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function To(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function So(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&I(t,Po(e.name||"v")),I(t,e),t}return"string"===typeof e?Po(e):void 0}}var Po=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Eo=K&&!te,Co="transition",Ro="animation",ko="transition",Oo="transitionend",Io="animation",Ao="animationend";Eo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ko="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Io="WebkitAnimation",Ao="webkitAnimationEnd"));var $o=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Lo(e){$o((function(){$o(e)}))}function Do(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),xo(e,t))}function Mo(e,t){e._transitionClasses&&y(e._transitionClasses,t),To(e,t)}function Fo(e,t,n){var i=No(e,t),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a=r===Co?Oo:Ao,l=0,c=function(){e.removeEventListener(a,u),n()},u=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l<s&&c()}),o+1),e.addEventListener(a,u)}var Bo=/\b(transform|all)(,|$)/;function No(e,t){var n,i=window.getComputedStyle(e),r=(i[ko+"Delay"]||"").split(", "),o=(i[ko+"Duration"]||"").split(", "),s=jo(r,o),a=(i[Io+"Delay"]||"").split(", "),l=(i[Io+"Duration"]||"").split(", "),c=jo(a,l),u=0,h=0;t===Co?s>0&&(n=Co,u=s,h=o.length):t===Ro?c>0&&(n=Ro,u=c,h=l.length):(u=Math.max(s,c),n=u>0?s>c?Co:Ro:null,h=n?n===Co?o.length:l.length:0);var f=n===Co&&Bo.test(i[ko+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:f}}function jo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ho(t)+Ho(e[n])})))}function Ho(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function zo(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=So(e.data.transition);if(!i(o)&&!r(n._enterCb)&&1===n.nodeType){var s=o.css,a=o.type,c=o.enterClass,u=o.enterToClass,h=o.enterActiveClass,f=o.appearClass,d=o.appearToClass,p=o.appearActiveClass,g=o.beforeEnter,m=o.enter,y=o.afterEnter,w=o.enterCancelled,_=o.beforeAppear,b=o.appear,x=o.afterAppear,T=o.appearCancelled,S=o.duration,P=On,E=On.$vnode;while(E&&E.parent)P=E.context,E=E.parent;var C=!P._isMounted||!e.isRootInsert;if(!C||b||""===b){var R=C&&f?f:c,k=C&&p?p:h,O=C&&d?d:u,I=C&&_||g,A=C&&"function"===typeof b?b:m,$=C&&x||y,L=C&&T||w,D=v(l(S)?S.enter:S);0;var M=!1!==s&&!te,F=Wo(A),N=n._enterCb=B((function(){M&&(Mo(n,O),Mo(n,k)),N.cancelled?(M&&Mo(n,R),L&&L(n)):$&&$(n),n._enterCb=null}));e.data.show||bt(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),A&&A(n,N)})),I&&I(n),M&&(Do(n,R),Do(n,k),Lo((function(){Mo(n,R),N.cancelled||(Do(n,O),F||(Uo(D)?setTimeout(N,D):Fo(n,a,N)))}))),e.data.show&&(t&&t(),A&&A(n,N)),M||F||N()}}}function Vo(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=So(e.data.transition);if(i(o)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var s=o.css,a=o.type,c=o.leaveClass,u=o.leaveToClass,h=o.leaveActiveClass,f=o.beforeLeave,d=o.leave,p=o.afterLeave,g=o.leaveCancelled,m=o.delayLeave,y=o.duration,w=!1!==s&&!te,_=Wo(d),b=v(l(y)?y.leave:y);0;var x=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),w&&(Mo(n,u),Mo(n,h)),x.cancelled?(w&&Mo(n,c),g&&g(n)):(t(),p&&p(n)),n._leaveCb=null}));m?m(T):T()}function T(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),w&&(Do(n,c),Do(n,h),Lo((function(){Mo(n,c),x.cancelled||(Do(n,u),_||(Uo(b)?setTimeout(x,b):Fo(n,a,x)))}))),d&&d(n,x),w||_||x())}}function Uo(e){return"number"===typeof e&&!isNaN(e)}function Wo(e){if(i(e))return!1;var t=e.fns;return r(t)?Wo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function qo(e,t){!0!==t.data.show&&zo(t)}var Go=K?{create:qo,activate:qo,remove:function(e,t){!0!==e.data.show?Vo(e,t):t()}}:{},Zo=[Vr,qr,no,ao,_o,Go],Xo=Zo.concat(Nr),Ko=Ir({nodeOps:Tr,modules:Xo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&rs(e,"input")}));var Yo={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?bt(n,"postpatch",(function(){Yo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ts)):("textarea"===n.tag||cr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ns),e.addEventListener("compositionend",is),e.addEventListener("change",is),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,ts);if(r.some((function(e,t){return!M(e,i[t])}))){var o=e.multiple?t.value.some((function(e){return es(e,r)})):t.value!==t.oldValue&&es(t.value,r);o&&rs(e,"change")}}}};function Jo(e,t,n){Qo(e,t,n),(ee||ne)&&setTimeout((function(){Qo(e,t,n)}),0)}function Qo(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,s,a=0,l=e.options.length;a<l;a++)if(s=e.options[a],r)o=F(i,ts(s))>-1,s.selected!==o&&(s.selected=o);else if(M(ts(s),i))return void(e.selectedIndex!==a&&(e.selectedIndex=a));r||(e.selectedIndex=-1)}}function es(e,t){return t.every((function(t){return!M(t,e)}))}function ts(e){return"_value"in e?e._value:e.value}function ns(e){e.target.composing=!0}function is(e){e.target.composing&&(e.target.composing=!1,rs(e.target,"input"))}function rs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function os(e){return!e.componentInstance||e.data&&e.data.transition?e:os(e.componentInstance._vnode)}var ss={bind:function(e,t,n){var i=t.value;n=os(n);var r=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,zo(n,(function(){e.style.display=o}))):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=os(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?zo(n,(function(){e.style.display=e.__vOriginalDisplay})):Vo(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},as={model:Yo,show:ss},ls={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function cs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?cs(Tn(t.children)):e}function us(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var o in r)t[T(o)]=r[o];return t}function hs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function fs(e){while(e=e.parent)if(e.data.transition)return!0}function ds(e,t){return t.key===e.key&&t.tag===e.tag}var ps=function(e){return e.tag||xn(e)},vs=function(e){return"show"===e.name},gs={name:"transition",props:ls,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ps),n.length)){0;var i=this.mode;0;var r=n[0];if(fs(this.$vnode))return r;var o=cs(r);if(!o)return r;if(this._leaving)return hs(e,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=us(this),c=this._vnode,u=cs(c);if(o.data.directives&&o.data.directives.some(vs)&&(o.data.show=!0),u&&u.data&&!ds(o,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=I({},l);if("out-in"===i)return this._leaving=!0,bt(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),hs(e,r);if("in-out"===i){if(xn(o))return c;var f,d=function(){f()};bt(l,"afterEnter",d),bt(l,"enterCancelled",d),bt(h,"delayLeave",(function(e){f=e}))}}return r}}},ms=I({tag:String,moveClass:String},ls);delete ms.mode;var ys={props:ms,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=In(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=us(this),a=0;a<r.length;a++){var l=r[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(i){for(var c=[],u=[],h=0;h<i.length;h++){var f=i[h];f.data.transition=s,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):u.push(f)}this.kept=e(t,null,c),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ws),e.forEach(_s),e.forEach(bs),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;Do(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Oo,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Oo,e),n._moveCb=null,Mo(n,t))})}})))},methods:{hasMove:function(e,t){if(!Eo)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){To(n,e)})),xo(n,t),n.style.display="none",this.$el.appendChild(n);var i=No(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function ws(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function _s(e){e.data.newPos=e.elm.getBoundingClientRect()}function bs(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}var xs={Transition:gs,TransitionGroup:ys};Ti.config.mustUseProp=ji,Ti.config.isReservedTag=or,Ti.config.isReservedAttr=Bi,Ti.config.getTagNamespace=sr,Ti.config.isUnknownElement=lr,I(Ti.options.directives,as),I(Ti.options.components,xs),Ti.prototype.__patch__=K?Ko:$,Ti.prototype.$mount=function(e,t){return e=e&&K?ur(e):void 0,Ln(this,e,t)},K&&setTimeout((function(){z.devtools&&ce&&ce.emit("init",Ti)}),0),t["a"]=Ti}).call(this,n("c8ba"))},"2b3d":function(e,t,n){"use strict";n("3ca3");var i,r=n("23e7"),o=n("83ab"),s=n("0d3b"),a=n("da84"),l=n("37e8"),c=n("6eeb"),u=n("19aa"),h=n("5135"),f=n("60da"),d=n("4df4"),p=n("6547").codeAt,v=n("5fb2"),g=n("d44e"),m=n("9861"),y=n("69f3"),w=a.URL,_=m.URLSearchParams,b=m.getState,x=y.set,T=y.getterFor("URL"),S=Math.floor,P=Math.pow,E="Invalid authority",C="Invalid scheme",R="Invalid host",k="Invalid port",O=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,A=/\d/,$=/^(0x|0X)/,L=/^[0-7]+$/,D=/^\d+$/,M=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,H=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return R;if(n=V(t.slice(1,-1)),!n)return R;e.host=n}else if(J(e)){if(t=v(t),F.test(t))return R;if(n=z(t),null===n)return R;e.host=n}else{if(B.test(t))return R;for(n="",i=d(t),r=0;r<i.length;r++)n+=K(i[r],q);e.host=n}},z=function(e){var t,n,i,r,o,s,a,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=l[i],""==r)return e;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=$.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)s=0;else{if(!(10==o?D:8==o?L:M).test(r))return e;s=parseInt(r,o)}n.push(s)}for(i=0;i<t;i++)if(s=n[i],i==t-1){if(s>=P(256,5-t))return null}else if(s>255)return null;for(a=n.pop(),i=0;i<n.length;i++)a+=n[i]*P(256,3-i);return a},V=function(e){var t,n,i,r,o,s,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,f=function(){return e.charAt(h)};if(":"==f()){if(":"!=e.charAt(1))return;h+=2,c++,u=c}while(f()){if(8==c)return;if(":"!=f()){t=n=0;while(n<4&&M.test(f()))t=16*t+parseInt(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,c>6)return;i=0;while(f()){if(r=null,i>0){if(!("."==f()&&i<4))return;h++}if(!A.test(f()))return;while(A.test(f())){if(o=parseInt(f(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[c]=256*l[c]+r,i++,2!=i&&4!=i||c++}if(4!=i)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;l[c++]=t}else{if(null!==u)return;h++,c++,u=c}}if(null!==u){s=c-u,c=7;while(0!=c&&s>0)a=l[c],l[c--]=l[u+s-1],l[u+--s]=a}else if(8!=c)return;return l},U=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},W=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=U(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},G=f({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),Z=f({},G,{"#":1,"?":1,"{":1,"}":1}),X=f({},Z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=p(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},Y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return h(Y,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&O.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ie=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},se={},ae={},le={},ce={},ue={},he={},fe={},de={},pe={},ve={},ge={},me={},ye={},we={},_e={},be={},xe={},Te={},Se={},Pe={},Ee={},Ce=function(e,t,n,r){var o,s,a,l,c=n||se,u=0,f="",p=!1,v=!1,g=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(N,"")),t=t.replace(j,""),o=d(t);while(u<=o.length){switch(s=o[u],c){case se:if(!s||!O.test(s)){if(n)return C;c=le;continue}f+=s.toLowerCase(),c=ae;break;case ae:if(s&&(I.test(s)||"+"==s||"-"==s||"."==s))f+=s.toLowerCase();else{if(":"!=s){if(n)return C;f="",c=le,u=0;continue}if(n&&(J(e)!=h(Y,f)||"file"==f&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(J(e)&&Y[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?c=we:J(e)&&r&&r.scheme==e.scheme?c=ce:J(e)?c=de:"/"==o[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!r||r.cannotBeABaseURL&&"#"!=s)return C;if(r.cannotBeABaseURL&&"#"==s){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=Ee;break}c="file"==r.scheme?we:he;continue;case ce:if("/"!=s||"/"!=o[u+1]){c=he;continue}c=pe,u++;break;case ue:if("/"==s){c=ve;break}c=Te;continue;case he:if(e.scheme=r.scheme,s==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==s||"\\"==s&&J(e))c=fe;else if("?"==s)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=Pe;else{if("#"!=s){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=Te;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Ee}break;case fe:if(!J(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=Te;continue}c=ve}else c=pe;break;case de:if(c=pe,"/"!=s||"/"!=f.charAt(u+1))continue;u++;break;case pe:if("/"!=s&&"\\"!=s){c=ve;continue}break;case ve:if("@"==s){p&&(f="%40"+f),p=!0,a=d(f);for(var m=0;m<a.length;m++){var y=a[m];if(":"!=y||g){var w=K(y,X);g?e.password+=w:e.username+=w}else g=!0}f=""}else if(s==i||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)){if(p&&""==f)return E;u-=d(f).length+1,f="",c=ge}else f+=s;break;case ge:case me:if(n&&"file"==e.scheme){c=be;continue}if(":"!=s||v){if(s==i||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)){if(J(e)&&""==f)return R;if(n&&""==f&&(Q(e)||null!==e.port))return;if(l=H(e,f),l)return l;if(f="",c=xe,n)return;continue}"["==s?v=!0:"]"==s&&(v=!1),f+=s}else{if(""==f)return R;if(l=H(e,f),l)return l;if(f="",c=ye,n==me)return}break;case ye:if(!A.test(s)){if(s==i||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)||n){if(""!=f){var _=parseInt(f,10);if(_>65535)return k;e.port=J(e)&&_===Y[e.scheme]?null:_,f=""}if(n)return;c=xe;continue}return k}f+=s;break;case we:if(e.scheme="file","/"==s||"\\"==s)c=_e;else{if(!r||"file"!=r.scheme){c=Te;continue}if(s==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==s)e.host=r.host,e.path=r.path.slice(),e.query="",c=Pe;else{if("#"!=s){ne(o.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ie(e)),c=Te;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Ee}}break;case _e:if("/"==s||"\\"==s){c=be;break}r&&"file"==r.scheme&&!ne(o.slice(u).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=Te;continue;case be:if(s==i||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&te(f))c=Te;else if(""==f){if(e.host="",n)return;c=xe}else{if(l=H(e,f),l)return l;if("localhost"==e.host&&(e.host=""),n)return;f="",c=xe}continue}f+=s;break;case xe:if(J(e)){if(c=Te,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=i&&(c=Te,"/"!=s))continue}else e.fragment="",c=Ee;else e.query="",c=Pe;break;case Te:if(s==i||"/"==s||"\\"==s&&J(e)||!n&&("?"==s||"#"==s)){if(oe(f)?(ie(e),"/"==s||"\\"==s&&J(e)||e.path.push("")):re(f)?"/"==s||"\\"==s&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(s==i||"?"==s||"#"==s))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==s?(e.query="",c=Pe):"#"==s&&(e.fragment="",c=Ee)}else f+=K(s,Z);break;case Se:"?"==s?(e.query="",c=Pe):"#"==s?(e.fragment="",c=Ee):s!=i&&(e.path[0]+=K(s,q));break;case Pe:n||"#"!=s?s!=i&&("'"==s&&J(e)?e.query+="%27":e.query+="#"==s?"%23":K(s,q)):(e.fragment="",c=Ee);break;case Ee:s!=i&&(e.fragment+=K(s,G));break}u++}},Re=function(e){var t,n,i=u(this,Re,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(e),a=x(i,{type:"URL"});if(void 0!==r)if(r instanceof Re)t=T(r);else if(n=Ce(t={},String(r)),n)throw TypeError(n);if(n=Ce(a,s,null,t),n)throw TypeError(n);var l=a.searchParams=new _,c=b(l);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(l)||null},o||(i.href=Oe.call(i),i.origin=Ie.call(i),i.protocol=Ae.call(i),i.username=$e.call(i),i.password=Le.call(i),i.host=De.call(i),i.hostname=Me.call(i),i.port=Fe.call(i),i.pathname=Be.call(i),i.search=Ne.call(i),i.searchParams=je.call(i),i.hash=He.call(i))},ke=Re.prototype,Oe=function(){var e=T(this),t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,s=e.path,a=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",Q(e)&&(c+=n+(i?":"+i:"")+"@"),c+=W(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},Ie=function(){var e=T(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&J(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Ae=function(){return T(this).scheme+":"},$e=function(){return T(this).username},Le=function(){return T(this).password},De=function(){var e=T(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Me=function(){var e=T(this).host;return null===e?"":W(e)},Fe=function(){var e=T(this).port;return null===e?"":String(e)},Be=function(){var e=T(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ne=function(){var e=T(this).query;return e?"?"+e:""},je=function(){return T(this).searchParams},He=function(){var e=T(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(ke,{href:ze(Oe,(function(e){var t=T(this),n=String(e),i=Ce(t,n);if(i)throw TypeError(i);b(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(Ae,(function(e){var t=T(this);Ce(t,String(e)+":",se)})),username:ze($e,(function(e){var t=T(this),n=d(String(e));if(!ee(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=K(n[i],X)}})),password:ze(Le,(function(e){var t=T(this),n=d(String(e));if(!ee(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=K(n[i],X)}})),host:ze(De,(function(e){var t=T(this);t.cannotBeABaseURL||Ce(t,String(e),ge)})),hostname:ze(Me,(function(e){var t=T(this);t.cannotBeABaseURL||Ce(t,String(e),me)})),port:ze(Fe,(function(e){var t=T(this);ee(t)||(e=String(e),""==e?t.port=null:Ce(t,e,ye))})),pathname:ze(Be,(function(e){var t=T(this);t.cannotBeABaseURL||(t.path=[],Ce(t,e+"",xe))})),search:ze(Ne,(function(e){var t=T(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ce(t,e,Pe)),b(t.searchParams).updateSearchParams(t.query)})),searchParams:ze(je),hash:ze(He,(function(e){var t=T(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ce(t,e,Ee)):t.fragment=null}))}),c(ke,"toJSON",(function(){return Oe.call(this)}),{enumerable:!0}),c(ke,"toString",(function(){return Oe.call(this)}),{enumerable:!0}),w){var Ve=w.createObjectURL,Ue=w.revokeObjectURL;Ve&&c(Re,"createObjectURL",(function(e){return Ve.apply(w,arguments)})),Ue&&c(Re,"revokeObjectURL",(function(e){return Ue.apply(w,arguments)}))}g(Re,"URL"),r({global:!0,forced:!s,sham:!o},{URL:Re})},"2cf4":function(e,t,n){var i,r,o,s=n("da84"),a=n("d039"),l=n("0366"),c=n("1be4"),u=n("cc12"),h=n("1cdc"),f=n("605d"),d=s.location,p=s.setImmediate,v=s.clearImmediate,g=s.process,m=s.MessageChannel,y=s.Dispatch,w=0,_={},b="onreadystatechange",x=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},T=function(e){return function(){x(e)}},S=function(e){x(e.data)},P=function(e){s.postMessage(e+"",d.protocol+"//"+d.host)};p&&v||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return _[++w]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(w),w},v=function(e){delete _[e]},f?i=function(e){g.nextTick(T(e))}:y&&y.now?i=function(e){y.now(T(e))}:m&&!h?(r=new m,o=r.port2,r.port1.onmessage=S,i=l(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&d&&"file:"!==d.protocol&&!a(P)?(i=P,s.addEventListener("message",S,!1)):i=b in u("script")?function(e){c.appendChild(u("script"))[b]=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:p,clear:v}},"2d00":function(e,t,n){var i,r,o=n("da84"),s=n("342f"),a=o.process,l=a&&a.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]+i[1]):s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"32be":function(e,t,n){n("c975"),e.exports={methods:{preventKeyboardEvent:function(e){return!!(e.altKey||e.ctrlKey||e.metaKey)||["INPUT","SELECT","TEXTAREA"].indexOf(e.target.nodeName)>-1&&"range"!==e.target.type}}}},"333e":function(e,t,n){n("baa5"),n("fb6a"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("1276"),function(e){function t(t){var n,i,r=t.responseText,o=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw o=t.status,n=404==o?"Not Found":t.statusText,new Error(e.getString("Errors.Status",o,n));if(r.match(/\s*<.*/))try{i=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(r)}catch(s){i=t.responseText}else if(r.match(/\s*[\{\[].*/))try{i=e.parseJSON(r)}catch(s){i=r}else i=r;return i}e.TileSource=function(t,n,i,r,o,s){var a,l,c=this,u=arguments;if(a=e.isPlainObject(t)?t:{width:u[0],height:u[1],tileSize:u[2],tileOverlap:u[3],minLevel:u[4],maxLevel:u[5]},e.EventSource.call(this),e.extend(!0,this,a),!this.success)for(l=0;l<arguments.length;l++)if(e.isFunction(arguments[l])){this.success=arguments[l];break}this.success&&this.addHandler("ready",(function(e){c.success(e)})),"string"==e.type(arguments[0])&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new e.Point(10,10),this._tileWidth=0,this._tileHeight=0,this.tileOverlap=0,this.minLevel=0,this.maxLevel=0,this.ready=!1,this.getImageInfo(this.url)):(this.ready=!0,this.aspectRatio=a.width&&a.height?a.width/a.height:1,this.dimensions=new e.Point(a.width,a.height),this.tileSize?(this._tileWidth=this._tileHeight=this.tileSize,delete this.tileSize):(this.tileWidth?(this._tileWidth=this.tileWidth,delete this.tileWidth):this._tileWidth=0,this.tileHeight?(this._tileHeight=this.tileHeight,delete this.tileHeight):this._tileHeight=0),this.tileOverlap=a.tileOverlap?a.tileOverlap:0,this.minLevel=a.minLevel?a.minLevel:0,this.maxLevel=void 0!==a.maxLevel&&null!==a.maxLevel?a.maxLevel:a.width&&a.height?Math.ceil(Math.log(Math.max(a.width,a.height))/Math.log(2)):0,this.success&&e.isFunction(this.success)&&this.success(this))},e.TileSource.prototype={getTileSize:function(t){return e.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(e){return this._tileWidth?this._tileWidth:this.getTileSize(e)},getTileHeight:function(e){return this._tileHeight?this._tileHeight:this.getTileSize(e)},getLevelScale:function(e){var t,n={};for(t=0;t<=this.maxLevel;t++)n[t]=1/Math.pow(2,this.maxLevel-t);return this.getLevelScale=function(e){return n[e]},this.getLevelScale(e)},getNumTiles:function(t){var n=this.getLevelScale(t),i=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),r=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(i,r)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),i=1/n.x,r=1/n.y;return new e.Point(i,r)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel;e++)if(t=this.getNumTiles(e),t.x>1||t.y>1)break;return e-1},getTileAtPoint:function(t,n){var i=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(i,"[TileSource.getTileAtPoint] must be called with a valid point.");var r=this.dimensions.x*this.getLevelScale(t),o=n.x*r,s=n.y*r,a=Math.floor(o/this.getTileWidth(t)),l=Math.floor(s/this.getTileHeight(t));n.x>=1&&(a=this.getNumTiles(t).x-1);var c=1e-15;return n.y>=1/this.aspectRatio-c&&(l=this.getNumTiles(t).y-1),new e.Point(a,l)},getTileBounds:function(t,n,i,r){var o=this.dimensions.times(this.getLevelScale(t)),s=this.getTileWidth(t),a=this.getTileHeight(t),l=0===n?0:s*n-this.tileOverlap,c=0===i?0:a*i-this.tileOverlap,u=s+(0===n?1:2)*this.tileOverlap,h=a+(0===i?1:2)*this.tileOverlap,f=1/o.x;return u=Math.min(u,o.x-l),h=Math.min(h,o.y-c),r?new e.Rect(0,0,u,h):new e.Rect(l*f,c*f,u*f,h*f)},getImageInfo:function(n){var i,r,o,s,a,l,c,u=this;n&&(a=n.split("/"),l=a[a.length-1],c=l.lastIndexOf("."),c>-1&&(a[a.length-1]=l.slice(0,c))),r=function(t){"string"===typeof t&&(t=e.parseXml(t));var i=e.TileSource.determineType(u,t,n);i?(s=i.prototype.configure.apply(u,[t,n]),void 0===s.ajaxWithCredentials&&(s.ajaxWithCredentials=u.ajaxWithCredentials),o=new i(s),u.ready=!0,u.raiseEvent("ready",{tileSource:o})):u.raiseEvent("open-failed",{message:"Unable to load TileSource",source:n})},n.match(/\.js$/)?(i=n.split("/").pop().replace(".js",""),e.jsonp({url:n,async:!1,callbackName:i,callback:r})):e.makeAjaxRequest({url:n,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(e){var n=t(e);r(n)},error:function(e,t){var i;try{i="HTTP "+e.status+" attempting to load TileSource"}catch(o){var r;r="undefined"!=typeof t&&t.toString?t.toString():"Unknown error",i=r+" attempting to load TileSource"}u.raiseEvent("open-failed",{message:i,source:n})}})},supports:function(e,t){return!1},configure:function(e,t){throw new Error("Method not implemented.")},getTileUrl:function(e,t,n){throw new Error("Method not implemented.")},getTileAjaxHeaders:function(e,t,n){return{}},tileExists:function(e,t,n){var i=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<i.x&&n<i.y}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,n,i){var r;for(r in OpenSeadragon)if(r.match(/.+TileSource$/)&&e.isFunction(OpenSeadragon[r])&&e.isFunction(OpenSeadragon[r].prototype.supports)&&OpenSeadragon[r].prototype.supports.call(t,n,i))return OpenSeadragon[r];e.console.error("No TileSource was able to open %s %s",i,n)}}(OpenSeadragon)},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),o=n("b622"),s=o("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||r[i(e)]}},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),s=n("df75");e.exports=i?Object.defineProperties:function(e,t){o(e);var n,i=s(t),a=i.length,l=0;while(a>l)r.f(e,n=i[l++],t[n]);return e}},"384f":function(e,t,n){n("c975"),n("a434"),n("ac1f"),n("466d"),n("5319"),n("18a5"),function(e){var t={},n=1;function i(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function r(t,n,i,r,o){var s=t;if("string"==e.type(n))if(n.match(/^\s*<.*>\s*$/))n=e.parseXml(n);else if(n.match(/^\s*[\{\[].*[\}\]]\s*$/))try{var a=e.parseJSON(n);n=a}catch(c){}function l(e,t){e.ready?r(e):(e.addHandler("ready",(function(){r(e)})),e.addHandler("open-failed",(function(e){o({message:e.message,source:t})})))}setTimeout((function(){if("string"==e.type(n))n=new e.TileSource({url:n,crossOriginPolicy:void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:t.ajaxHeaders,useCanvas:t.useCanvas,success:function(e){r(e.tileSource)}}),n.addHandler("open-failed",(function(e){o(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===i.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy),void 0===n.ajaxWithCredentials&&(n.ajaxWithCredentials=t.ajaxWithCredentials),void 0===n.useCanvas&&(n.useCanvas=t.useCanvas),e.isFunction(n.getTileUrl)){var a=new e.TileSource(n);a.getTileUrl=n.getTileUrl,r(a)}else{var c=e.TileSource.determineType(s,n);if(!c)return void o({message:"Unable to load TileSource",source:n});var u=c.prototype.configure.apply(s,[n]);l(new c(u),n)}else l(n,n)}))}function o(t,n){if(n instanceof e.Overlay)return n;var i=null;if(n.element)i=e.getElement(n.element);else{var r=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());i=e.getElement(n.id),i||(i=document.createElement("a"),i.href="#/overlay/"+r),i.id=r,e.addClass(i,n.className?n.className:"openseadragon-overlay")}var o=n.location,s=n.width,a=n.height;if(!o){var l=n.x,c=n.y;if(void 0!==n.px){var u=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,s||0,a||0));l=u.x,c=u.y,s=void 0!==s?u.width:void 0,a=void 0!==a?u.height:void 0}o=new e.Point(l,c)}var h=n.placement;return h&&"string"===e.type(h)&&(h=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:i,location:o,placement:h,onDraw:n.onDraw,checkResize:n.checkResize,width:s,height:a,rotationMode:n.rotationMode})}function s(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].element===t)return n;return-1}function a(t,n){return e.requestAnimationFrame((function(){n(t)}))}function l(t){e.requestAnimationFrame((function(){u(t)}))}function c(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){l(t)}),t.controlsFadeDelay))}function u(t){var n,i,r,o;if(t.controlsShouldFade){for(n=e.now(),i=n-t.controlsFadeBeginTime,r=1-i/t.controlsFadeLength,r=Math.min(1,r),r=Math.max(0,r),o=t.controls.length-1;o>=0;o--)t.controls[o].autoFade&&t.controls[o].setOpacity(r);r>0&&l(t)}}function h(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function f(){h(this)}function d(){c(this)}function p(t){var n={originalEvent:t.originalEvent,preventDefaultAction:t.preventDefaultAction,preventVerticalPan:t.preventVerticalPan,preventHorizontalPan:t.preventHorizontalPan};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)return!0;switch(t.keyCode){case 38:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 40:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 37:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;case 39:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;default:return!0}}function v(t){var n={originalEvent:t.originalEvent,preventDefaultAction:t.preventDefaultAction,preventVerticalPan:t.preventVerticalPan,preventHorizontalPan:t.preventHorizontalPan};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)return!0;switch(t.keyCode){case 43:case 61:return this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),!1;case 45:return this.viewport.zoomBy(.9),this.viewport.applyConstraints(),!1;case 48:return this.viewport.goHome(),this.viewport.applyConstraints(),!1;case 119:case 87:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-40))),this.viewport.applyConstraints()),!1;case 115:case 83:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,40))),this.viewport.applyConstraints()),!1;case 97:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-40,0))),this.viewport.applyConstraints()),!1;case 100:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(40,0))),this.viewport.applyConstraints()),!1;case 114:return this.viewport.flipped?this.viewport.setRotation(e.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)):this.viewport.setRotation(e.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 82:return this.viewport.flipped?this.viewport.setRotation(e.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)):this.viewport.setRotation(e.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 102:return this.viewport.toggleFlip(),!1;default:return!0}}function g(e){var t,n=document.activeElement==this.canvas;n||this.canvas.focus(),this.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var i={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.raiseEvent("canvas-click",i),!i.preventDefaultAction&&this.viewport&&e.quick&&(t=this.gestureSettingsByDeviceType(e.pointerType),t.clickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints()))}function m(e){var t,n={tracker:e.eventSource,position:e.position,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.raiseEvent("canvas-double-click",n),!n.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType),t.dblClickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints()))}function y(e){var t,n={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};if(this.raiseEvent("canvas-drag",n),!n.preventDefaultAction&&this.viewport){if(t=this.gestureSettingsByDeviceType(e.pointerType),this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewport.flipped&&(e.delta.x=-e.delta.x),this.constrainDuringPan){var i=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=i.x,this.viewport.centerSpringY.target.value+=i.y;var r=this.viewport.getBounds(),o=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=i.x,this.viewport.centerSpringY.target.value-=i.y,r.x!=o.x&&(e.delta.x=0),r.y!=o.y&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),t.flickEnabled&&!this.constrainDuringPan)}}function w(t){if(!t.preventDefaultAction&&this.viewport){var n=this.gestureSettingsByDeviceType(t.pointerType);if(n.flickEnabled&&t.speed>=n.flickMinSpeed){var i=0;this.panHorizontal&&(i=n.flickMomentum*t.speed*Math.cos(t.direction));var r=0;this.panVertical&&(r=n.flickMomentum*t.speed*Math.sin(t.direction));var o=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),s=this.viewport.pointFromPixel(new e.Point(o.x-i,o.y-r));this.viewport.panTo(s,!1)}this.viewport.applyConstraints()}this.raiseEvent("canvas-drag-end",{tracker:t.eventSource,position:t.position,speed:t.speed,direction:t.direction,shift:t.shift,originalEvent:t.originalEvent})}function _(e){this.raiseEvent("canvas-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function b(t){window.location!=window.parent.location&&e.MouseTracker.resetAllMouseTrackers(),this.raiseEvent("canvas-exit",{tracker:t.eventSource,pointerType:t.pointerType,position:t.position,buttons:t.buttons,pointers:t.pointers,insideElementPressed:t.insideElementPressed,buttonDownAny:t.buttonDownAny,originalEvent:t.originalEvent})}function x(e){this.raiseEvent("canvas-press",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function T(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function S(e){this.raiseEvent("canvas-nonprimary-press",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function P(e){this.raiseEvent("canvas-nonprimary-release",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function E(e){var t,n,i,r;if(!e.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType),t.pinchToZoom&&(n=this.viewport.pointFromPixel(e.center,!0),i=this.viewport.pointFromPixel(e.lastCenter,!0),r=i.minus(n),this.panHorizontal||(r.x=0),this.panVertical||(r.y=0),this.viewport.zoomBy(e.distance/e.lastDistance,n,!0),t.zoomToRefPoint&&this.viewport.panBy(r,!0),this.viewport.applyConstraints()),t.pinchRotate)){var o=Math.atan2(e.gesturePoints[0].currentPos.y-e.gesturePoints[1].currentPos.y,e.gesturePoints[0].currentPos.x-e.gesturePoints[1].currentPos.x),s=Math.atan2(e.gesturePoints[0].lastPos.y-e.gesturePoints[1].lastPos.y,e.gesturePoints[0].lastPos.x-e.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(o-s)*(180/Math.PI))}return this.raiseEvent("canvas-pinch",{tracker:e.eventSource,gesturePoints:e.gesturePoints,lastCenter:e.lastCenter,center:e.center,lastDistance:e.lastDistance,distance:e.distance,shift:e.shift,originalEvent:e.originalEvent}),!1}function C(t){var n,i,r,o;if(r=e.now(),o=r-this._lastScrollTime,o>this.minScrollDeltaTime){if(this._lastScrollTime=r,this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),!t.preventDefaultAction&&this.viewport&&(n=this.gestureSettingsByDeviceType(t.pointerType),n.scrollToZoom&&(i=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(i,n.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints())),this.raiseEvent("canvas-scroll",{tracker:t.eventSource,position:t.position,scroll:t.scroll,shift:t.shift,originalEvent:t.originalEvent}),n&&n.scrollToZoom)return!1}else if(n=this.gestureSettingsByDeviceType(t.pointerType),n&&n.scrollToZoom)return!1}function R(e){t[this.hash].mouseInside=!0,h(this),this.raiseEvent("container-enter",{tracker:e.eventSource,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function k(e){e.pointers<1&&(t[this.hash].mouseInside=!1,t[this.hash].animating||c(this)),this.raiseEvent("container-exit",{tracker:e.eventSource,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function O(e){I(e),e.isOpen()?e._updateRequestId=a(e,O):e._updateRequestId=!1}function I(e){if(!e._opening){if(e.autoResize){var n=i(e.container),r=t[e.hash].prevContainerSize;if(!n.equals(r)){var o=e.viewport;if(e.preserveImageSizeOnResize){var s=r.x/n.x,a=o.getZoom()*s,l=o.getCenter();o.resize(n,!1),o.zoomTo(a,null,!0),o.panTo(l,!0)}else{var u=o.getBounds();o.resize(n,!0),o.fitBoundsWithConstraints(u,!0)}t[e.hash].prevContainerSize=n,t[e.hash].forceRedraw=!0}}var f=e.viewport.update(),d=e.world.update()||f;f&&e.raiseEvent("viewport-change"),e.referenceStrip&&(d=e.referenceStrip.update(e.viewport)||d),!t[e.hash].animating&&d&&(e.raiseEvent("animation-start"),h(e)),(d||t[e.hash].forceRedraw||e.world.needsDraw())&&(A(e),e._drawOverlays(),e.navigator&&e.navigator.update(e.viewport),t[e.hash].forceRedraw=!1,d&&e.raiseEvent("animation")),t[e.hash].animating&&!d&&(e.raiseEvent("animation-finish"),t[e.hash].mouseInside||c(e)),t[e.hash].animating=d}}function A(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}function $(e,t){return e?e+t:t}function L(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,F(this)}function D(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,F(this)}function M(){t[this.hash].zooming=!1}function F(t){e.requestAnimationFrame(e.delegate(t,B))}function B(){var n,i,r;t[this.hash].zooming&&this.viewport&&(n=e.now(),i=n-t[this.hash].lastZoomTime,r=Math.pow(t[this.hash].zoomFactor,i/1e3),this.viewport.zoomBy(r),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,F(this))}function N(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function j(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function H(){this.buttons.emulateEnter(),this.buttons.emulateExit()}function z(){this.viewport&&this.viewport.goHome()}function V(){this.isFullPage()&&!e.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttons&&this.buttons.emulateExit(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function U(){if(this.viewport){var t=this.viewport.getRotation();t=this.viewport.flipped?e.positiveModulo(t+this.rotationIncrement,360):e.positiveModulo(t-this.rotationIncrement,360),this.viewport.setRotation(t)}}function W(){if(this.viewport){var t=this.viewport.getRotation();t=this.viewport.flipped?e.positiveModulo(t-this.rotationIncrement,360):e.positiveModulo(t+this.rotationIncrement,360),this.viewport.setRotation(t)}}function q(){this.viewport.toggleFlip()}function G(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)}function Z(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)}e.Viewer=function(r){var o,s=arguments,l=this;if(e.isPlainObject(r)||(r={id:s[0],xmlPath:s.length>1?s[1]:void 0,prefixUrl:s.length>2?s[2]:void 0,controls:s.length>3?s[3]:void 0,overlays:s.length>4?s[4]:void 0}),r.config&&(e.extend(!0,r,r.config),delete r.config),e.extend(!0,this,{id:r.id,hash:r.hash||n++,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},e.DEFAULT_SETTINGS,r),"undefined"===typeof this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for("undefined"!==typeof t[this.hash]&&e.console.warn("Hash "+this.hash+" has already been used."),t[this.hash]={fsBoundsDelta:new e.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=e.now(),e.EventSource.call(this),this.addHandler("open-failed",(function(t){var n=e.getString("Errors.OpenFailed",t.eventSource,t.message);l._showMessage(n)})),e.ControlDock.call(this,r),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",function(e){e.width="100%",e.height="100%",e.overflow="hidden",e.position="absolute",e.top="0px",e.left="0px"}(this.canvas.style),e.setElementTouchActionNone(this.canvas),""!==r.tabIndex&&(this.canvas.tabIndex=void 0===r.tabIndex?0:r.tabIndex),this.container.className="openseadragon-container",function(e){e.width="100%",e.height="100%",e.position="relative",e.overflow="hidden",e.left="0px",e.top="0px",e.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 e.MouseTracker({element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,keyDownHandler:e.delegate(this,p),keyHandler:e.delegate(this,v),clickHandler:e.delegate(this,g),dblClickHandler:e.delegate(this,m),dragHandler:e.delegate(this,y),dragEndHandler:e.delegate(this,w),enterHandler:e.delegate(this,_),exitHandler:e.delegate(this,b),pressHandler:e.delegate(this,x),releaseHandler:e.delegate(this,T),nonPrimaryPressHandler:e.delegate(this,S),nonPrimaryReleaseHandler:e.delegate(this,P),scrollHandler:e.delegate(this,C),pinchHandler:e.delegate(this,E)}),this.outerTracker=new e.MouseTracker({element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:e.delegate(this,R),exitHandler:e.delegate(this,k)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=i(this.container),this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){l.source=l.world.getItemAt(0).source,t[l.hash].forceRedraw=!0,l._updateRequestId||(l._updateRequestId=a(l,O))})),this.world.addHandler("remove-item",(function(e){l.world.getItemCount()?l.source=l.world.getItemAt(0).source:l.source=null,t[l.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){l.viewport&&l.viewport._setContentBounds(l.world.getHomeBounds(),l.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){l.source=l.world.getItemAt(0).source})),this.viewport=new e.Viewport({containerSize:t[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,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new e.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:r.timeout}),this.tileCache=new e.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new e.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=e.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(o=this.buttons.buttons.indexOf(this.rotateLeft),this.buttons.buttons.splice(o,1),this.buttons.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(o=this.buttons.buttons.indexOf(this.rotateRight),this.buttons.buttons.splice(o,1),this.buttons.element.removeChild(this.rotateRight.element))),this.showNavigator&&(this.navigator=new e.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,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),o=0;o<this.customControls.length;o++)this.addControl(this.customControls[o].id,{anchor:this.customControls[o].anchor});e.requestAnimationFrame((function(){c(l)})),void 0===this.imageSmoothingEnabled||this.imageSmoothingEnabled||this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled)},e.extend(e.Viewer.prototype,e.EventSource.prototype,e.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(t){return e.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(t)},openTileSource:function(t){return e.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(t)},open:function(t,n){var i=this;if(this.close(),t){if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),"undefined"==typeof n||isNaN(n)||(this.initialPage=n),this.tileSources=t,this._sequenceIndex=Math.max(0,Math.min(this.tileSources.length-1,this.initialPage)),this.tileSources.length&&(this.open(this.tileSources[this._sequenceIndex]),this.showReferenceStrip&&this.addReferenceStrip()),void this._updateSequenceButtons(this._sequenceIndex);if(e.isArray(t)||(t=[t]),t.length){this._opening=!0;for(var r,s=t.length,a=0,l=0,c=function(){if(a+l===s)if(a){!i._firstOpen&&i.preserveViewport||(i.viewport.goHome(!0),i.viewport.update()),i._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),i.overlays&&!i.preserveOverlays)for(var n=0;n<i.overlays.length;n++)i.currentOverlays[n]=o(i,i.overlays[n]);i._drawOverlays(),i._opening=!1,i.raiseEvent("open",{source:e})}else i._opening=!1,i.raiseEvent("open-failed",r)},u=function(t){e.isPlainObject(t)&&t.tileSource||(t={tileSource:t}),void 0!==t.index&&(e.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete t.index),void 0===t.collectionImmediately&&(t.collectionImmediately=!0);var n=t.success;t.success=function(e){if(a++,t.tileSource.overlays)for(var r=0;r<t.tileSource.overlays.length;r++)i.addOverlay(t.tileSource.overlays[r]);n&&n(e),c()};var o=t.error;t.error=function(e){l++,r||(r=e),o&&o(e),c()},i.addTiledImage(t)},h=0;h<t.length;h++)u(t[h]);return this}}},close:function(){return t[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),t[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(t[this.hash]){if(this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),null!==this._updateRequestId&&(e.cancelAnimationFrame(this._updateRequestId),this._updateRequestId=null),this.drawer&&this.drawer.destroy(),this.removeAllHandlers(),this.element)while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.innerTracker&&this.innerTracker.destroy(),this.outerTracker&&this.outerTracker.destroy(),t[this.hash]=null,delete t[this.hash],this.canvas=null,this.container=null,this.element=null}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(e){return this.innerTracker.setTracking(e),this.outerTracker.setTracking(e),this.raiseEvent("mouse-enabled",{enabled:e}),this},areControlsEnabled:function(){var e,t=this.controls.length;for(e=0;e<this.controls.length;e++)t=t&&this.controls[e].isVisible();return t},setControlsEnabled:function(e){return e?h(this):c(this),this.raiseEvent("controls-enabled",{enabled:e}),this},setDebugMode:function(e){for(var t=0;t<this.world.getItemCount();t++)this.world.getItemAt(t).debugMode=e;this.debugMode=e,this.forceRedraw()},isFullPage:function(){return t[this.hash].fullPage},setFullPage:function(n){var i,r,o=document.body,s=o.style,a=document.documentElement.style,l=this;if(n==this.isFullPage())return this;var c={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",c),c.preventDefaultAction)return this;if(n){for(this.elementSize=e.getElementSize(this.element),this.pageScroll=e.getPageScroll(),this.elementMargin=this.element.style.margin,this.element.style.margin="0",this.elementPadding=this.element.style.padding,this.element.style.padding="0",this.bodyMargin=s.margin,this.docMargin=a.margin,s.margin="0",a.margin="0",this.bodyPadding=s.padding,this.docPadding=a.padding,s.padding="0",a.padding="0",this.bodyWidth=s.width,this.docWidth=a.width,s.width="100%",a.width="100%",this.bodyHeight=s.height,this.docHeight=a.height,s.height="100%",a.height="100%",this.previousBody=[],t[this.hash].prevElementParent=this.element.parentNode,t[this.hash].prevNextSibling=this.element.nextSibling,t[this.hash].prevElementWidth=this.element.style.width,t[this.hash].prevElementHeight=this.element.style.height,i=o.childNodes.length,r=0;r<i;r++)this.previousBody.push(o.childNodes[0]),o.removeChild(o.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,o.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),o.appendChild(this.element),this.element.style.height=e.getWindowSize().y+"px",this.element.style.width=e.getWindowSize().x+"px",this.toolbar&&this.toolbar.element&&(this.element.style.height=e.getElementSize(this.element).y-e.getElementSize(this.toolbar.element).y+"px"),t[this.hash].fullPage=!0,e.delegate(this,R)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,s.margin=this.bodyMargin,a.margin=this.docMargin,s.padding=this.bodyPadding,a.padding=this.docPadding,s.width=this.bodyWidth,a.width=this.docWidth,s.height=this.bodyHeight,a.height=this.docHeight,o.removeChild(this.element),i=this.previousBody.length,r=0;r<i;r++)o.appendChild(this.previousBody.shift());e.removeClass(this.element,"fullpage"),t[this.hash].prevElementParent.insertBefore(this.element,t[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(o.removeChild(this.toolbar.element),e.removeClass(this.toolbar.element,"fullpage"),this.toolbar.parentNode.insertBefore(this.toolbar.element,this.toolbar.nextSibling),delete this.toolbar.parentNode,delete this.toolbar.nextSibling),this.element.style.width=t[this.hash].prevElementWidth,this.element.style.height=t[this.hash].prevElementHeight;var u=0,h=function t(){e.setPageScroll(l.pageScroll);var n=e.getPageScroll();u++,u<10&&(n.x!==l.pageScroll.x||n.y!==l.pageScroll.y)&&e.requestAnimationFrame(t)};e.requestAnimationFrame(h),t[this.hash].fullPage=!1,e.delegate(this,k)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:n}),this},setFullScreen:function(t){var n=this;if(!e.supportsFullScreen)return this.setFullPage(t);if(e.isFullScreen()===t)return this;var i={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",i),i.preventDefaultAction)return this;if(t){if(this.setFullPage(!0),!this.isFullPage())return this;this.fullPageStyleWidth=this.element.style.width,this.fullPageStyleHeight=this.element.style.height,this.element.style.width="100%",this.element.style.height="100%";var r=function t(){var i=e.isFullScreen();i||(e.removeEvent(document,e.fullScreenEventName,t),e.removeEvent(document,e.fullScreenErrorEventName,t),n.setFullPage(!1),n.isFullPage()&&(n.element.style.width=n.fullPageStyleWidth,n.element.style.height=n.fullPageStyleHeight)),n.navigator&&n.viewport&&setTimeout((function(){n.navigator.update(n.viewport)})),n.raiseEvent("full-screen",{fullScreen:i})};e.addEvent(document,e.fullScreenEventName,r),e.addEvent(document,e.fullScreenErrorEventName,r),e.requestFullScreen(document.body)}else e.exitFullScreen();return this},isVisible:function(){return"hidden"!=this.container.style.visibility},setVisible:function(e){return this.container.style.visibility=e?"":"hidden",this.raiseEvent("visible",{visible:e}),this},addTiledImage:function(t){e.console.assert(t,"[Viewer.addTiledImage] options is required"),e.console.assert(t.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),e.console.assert(!t.replace||t.index>-1&&t.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var n=this;t.replace&&(t.replaceItem=n.world.getItemAt(t.index)),this._hideMessage(),void 0===t.placeholderFillStyle&&(t.placeholderFillStyle=this.placeholderFillStyle),void 0===t.opacity&&(t.opacity=this.opacity),void 0===t.preload&&(t.preload=this.preload),void 0===t.compositeOperation&&(t.compositeOperation=this.compositeOperation),void 0===t.crossOriginPolicy&&(t.crossOriginPolicy=void 0!==t.tileSource.crossOriginPolicy?t.tileSource.crossOriginPolicy:this.crossOriginPolicy),void 0===t.ajaxWithCredentials&&(t.ajaxWithCredentials=this.ajaxWithCredentials),void 0===t.loadTilesWithAjax&&(t.loadTilesWithAjax=this.loadTilesWithAjax),void 0===t.ajaxHeaders||null===t.ajaxHeaders?t.ajaxHeaders=this.ajaxHeaders:e.isPlainObject(t.ajaxHeaders)&&e.isPlainObject(this.ajaxHeaders)&&(t.ajaxHeaders=e.extend({},this.ajaxHeaders,t.ajaxHeaders));var i={options:t};function o(e){for(var r=0;r<n._loadQueue.length;r++)if(n._loadQueue[r]===i){n._loadQueue.splice(r,1);break}0===n._loadQueue.length&&s(i),n.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function s(e){n.collectionMode&&(n.world.arrange({immediately:e.options.collectionImmediately,rows:n.collectionRows,columns:n.collectionColumns,layout:n.collectionLayout,tileSize:n.collectionTileSize,tileMargin:n.collectionTileMargin}),n.world.setAutoRefigureSizes(!0))}function a(){var t,i,r;while(n._loadQueue.length){if(t=n._loadQueue[0],!t.tileSource)break;if(n._loadQueue.splice(0,1),t.options.replace){var o=n.world.getIndexOfItem(t.options.replaceItem);-1!=o&&(t.options.index=o),n.world.removeItem(t.options.replaceItem)}i=new e.TiledImage({viewer:n,source:t.tileSource,viewport:n.viewport,drawer:n.drawer,tileCache:n.tileCache,imageLoader:n.imageLoader,x:t.options.x,y:t.options.y,width:t.options.width,height:t.options.height,fitBounds:t.options.fitBounds,fitBoundsPlacement:t.options.fitBoundsPlacement,clip:t.options.clip,placeholderFillStyle:t.options.placeholderFillStyle,opacity:t.options.opacity,preload:t.options.preload,degrees:t.options.degrees,compositeOperation:t.options.compositeOperation,springStiffness:n.springStiffness,animationTime:n.animationTime,minZoomImageRatio:n.minZoomImageRatio,wrapHorizontal:n.wrapHorizontal,wrapVertical:n.wrapVertical,immediateRender:n.immediateRender,blendTime:n.blendTime,alwaysBlend:n.alwaysBlend,minPixelRatio:n.minPixelRatio,smoothTileEdgesMinZoom:n.smoothTileEdgesMinZoom,iOSDevice:n.iOSDevice,crossOriginPolicy:t.options.crossOriginPolicy,ajaxWithCredentials:t.options.ajaxWithCredentials,loadTilesWithAjax:t.options.loadTilesWithAjax,ajaxHeaders:t.options.ajaxHeaders,debugMode:n.debugMode}),n.collectionMode&&n.world.setAutoRefigureSizes(!1),n.world.addItem(i,{index:t.options.index}),0===n._loadQueue.length&&s(t),1!==n.world.getItemCount()||n.preserveViewport||n.viewport.goHome(!0),n.navigator&&(r=e.extend({},t.options,{replace:!1,originalTiledImage:i,tileSource:t.tileSource}),n.navigator.addTiledImage(r)),t.options.success&&t.options.success({item:i})}}e.isArray(t.tileSource)?setTimeout((function(){o({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(i),r(this,t.tileSource,t,(function(e){i.tileSource=e,a()}),(function(e){e.options=t,o(e),a()})))},addSimpleImage:function(t){e.console.assert(t,"[Viewer.addSimpleImage] options is required"),e.console.assert(t.url,"[Viewer.addSimpleImage] options.url is required");var n=e.extend({},t,{tileSource:{type:"image",url:t.url}});delete n.url,this.addTiledImage(n)},addLayer:function(t){var n=this;e.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var i=e.extend({},t,{success:function(e){n.raiseEvent("add-layer",{options:t,drawer:e.item})},error:function(e){n.raiseEvent("add-layer-failed",e)}});return this.addTiledImage(i),this},getLayerAtLevel:function(t){return e.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(t)},getLevelOfLayer:function(t){return e.console.error("[Viewer.getLevelOfLayer] this function is deprecated; use World.getIndexOfItem() instead."),this.world.getIndexOfItem(t)},getLayersCount:function(){return e.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(t,n){return e.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(t,n)},removeLayer:function(t){return e.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(t)},forceRedraw:function(){return t[this.hash].forceRedraw=!0,this},bindSequenceControls:function(){var t=e.delegate(this,f),n=e.delegate(this,d),i=e.delegate(this,Z),r=e.delegate(this,G),o=this.navImages,s=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(s=!1),this.previousButton=new e.Button({element:this.previousButton?e.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.PreviousPage"),srcRest:$(this.prefixUrl,o.previous.REST),srcGroup:$(this.prefixUrl,o.previous.GROUP),srcHover:$(this.prefixUrl,o.previous.HOVER),srcDown:$(this.prefixUrl,o.previous.DOWN),onRelease:r,onFocus:t,onBlur:n}),this.nextButton=new e.Button({element:this.nextButton?e.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.NextPage"),srcRest:$(this.prefixUrl,o.next.REST),srcGroup:$(this.prefixUrl,o.next.GROUP),srcHover:$(this.prefixUrl,o.next.HOVER),srcDown:$(this.prefixUrl,o.next.DOWN),onRelease:i,onFocus:t,onBlur:n}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),s&&(this.paging=new e.ButtonGroup({buttons:[this.previousButton,this.nextButton],clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.pagingControl=this.paging.element,this.toolbar?this.toolbar.addControl(this.pagingControl,{anchor:e.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var t=e.delegate(this,L),n=e.delegate(this,M),i=e.delegate(this,N),r=e.delegate(this,D),o=e.delegate(this,j),s=e.delegate(this,z),a=e.delegate(this,V),l=e.delegate(this,U),c=e.delegate(this,W),u=e.delegate(this,q),h=e.delegate(this,f),p=e.delegate(this,d),v=this.navImages,g=[],m=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(m=!1),this.showZoomControl&&(g.push(this.zoomInButton=new e.Button({element:this.zoomInButton?e.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomIn"),srcRest:$(this.prefixUrl,v.zoomIn.REST),srcGroup:$(this.prefixUrl,v.zoomIn.GROUP),srcHover:$(this.prefixUrl,v.zoomIn.HOVER),srcDown:$(this.prefixUrl,v.zoomIn.DOWN),onPress:t,onRelease:n,onClick:i,onEnter:t,onExit:n,onFocus:h,onBlur:p})),g.push(this.zoomOutButton=new e.Button({element:this.zoomOutButton?e.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomOut"),srcRest:$(this.prefixUrl,v.zoomOut.REST),srcGroup:$(this.prefixUrl,v.zoomOut.GROUP),srcHover:$(this.prefixUrl,v.zoomOut.HOVER),srcDown:$(this.prefixUrl,v.zoomOut.DOWN),onPress:r,onRelease:n,onClick:o,onEnter:r,onExit:n,onFocus:h,onBlur:p}))),this.showHomeControl&&g.push(this.homeButton=new e.Button({element:this.homeButton?e.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Home"),srcRest:$(this.prefixUrl,v.home.REST),srcGroup:$(this.prefixUrl,v.home.GROUP),srcHover:$(this.prefixUrl,v.home.HOVER),srcDown:$(this.prefixUrl,v.home.DOWN),onRelease:s,onFocus:h,onBlur:p})),this.showFullPageControl&&g.push(this.fullPageButton=new e.Button({element:this.fullPageButton?e.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.FullPage"),srcRest:$(this.prefixUrl,v.fullpage.REST),srcGroup:$(this.prefixUrl,v.fullpage.GROUP),srcHover:$(this.prefixUrl,v.fullpage.HOVER),srcDown:$(this.prefixUrl,v.fullpage.DOWN),onRelease:a,onFocus:h,onBlur:p})),this.showRotationControl&&(g.push(this.rotateLeftButton=new e.Button({element:this.rotateLeftButton?e.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateLeft"),srcRest:$(this.prefixUrl,v.rotateleft.REST),srcGroup:$(this.prefixUrl,v.rotateleft.GROUP),srcHover:$(this.prefixUrl,v.rotateleft.HOVER),srcDown:$(this.prefixUrl,v.rotateleft.DOWN),onRelease:l,onFocus:h,onBlur:p})),g.push(this.rotateRightButton=new e.Button({element:this.rotateRightButton?e.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateRight"),srcRest:$(this.prefixUrl,v.rotateright.REST),srcGroup:$(this.prefixUrl,v.rotateright.GROUP),srcHover:$(this.prefixUrl,v.rotateright.HOVER),srcDown:$(this.prefixUrl,v.rotateright.DOWN),onRelease:c,onFocus:h,onBlur:p}))),this.showFlipControl&&g.push(this.flipButton=new e.Button({element:this.flipButton?e.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Flip"),srcRest:$(this.prefixUrl,v.flip.REST),srcGroup:$(this.prefixUrl,v.flip.GROUP),srcHover:$(this.prefixUrl,v.flip.HOVER),srcDown:$(this.prefixUrl,v.flip.DOWN),onRelease:u,onFocus:h,onBlur:p})),m&&(this.buttons=new e.ButtonGroup({buttons:g,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttons.element,this.addHandler("open",e.delegate(this,H)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},currentPage:function(){return this._sequenceIndex},goToPage:function(e){return this.tileSources&&e>=0&&e<this.tileSources.length&&(this._sequenceIndex=e,this._updateSequenceButtons(e),this.open(this.tileSources[e]),this.referenceStrip&&this.referenceStrip.setFocus(e),this.raiseEvent("page",{page:e})),this},addOverlay:function(t,n,i,r){var a;if(a=e.isPlainObject(t)?t:{element:t,location:n,placement:i,onDraw:r},t=e.getElement(a.element),s(this.currentOverlays,t)>=0)return this;var l=o(this,a);return this.currentOverlays.push(l),l.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:a.location,placement:a.placement}),this},updateOverlay:function(n,i,r){var o;return n=e.getElement(n),o=s(this.currentOverlays,n),o>=0&&(this.currentOverlays[o].update(i,r),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:i,placement:r})),this},removeOverlay:function(n){var i;return n=e.getElement(n),i=s(this.currentOverlays,n),i>=0&&(this.currentOverlays[i].destroy(),this.currentOverlays.splice(i,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:n})),this},clearOverlays:function(){while(this.currentOverlays.length>0)this.currentOverlays.pop().destroy();return t[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(t){var n;return t=e.getElement(t),n=s(this.currentOverlays,t),n>=0?this.currentOverlays[n]:null},_updateSequenceButtons:function(e){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==e?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable()),this.previousButton&&(e>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(t){this._hideMessage();var n=e.makeNeutralElement("div");n.appendChild(document.createTextNode(t)),this.messageDiv=e.makeCenteredNode(n),e.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var e=this.messageDiv;e&&(e.parentNode.removeChild(e),delete this.messageDiv)},gestureSettingsByDeviceType:function(e){switch(e){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var e,t=this.currentOverlays.length;for(e=0;e<t;e++)this.currentOverlays[e].drawHTML(this.overlaysContainer,this.viewport)},_cancelPendingImages:function(){this._loadQueue=[]},removeReferenceStrip:function(){this.showReferenceStrip=!1,this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null)},addReferenceStrip:function(){if(this.showReferenceStrip=!0,this.sequenceMode){if(this.referenceStrip)return;this.tileSources.length&&this.tileSources.length>1&&(this.referenceStrip=new e.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 e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')}})}(OpenSeadragon)},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),o=n("7dd0"),s="String Iterator",a=r.set,l=r.getterFor(s);o(String,"String",(function(e){a(this,{type:s,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},"408a":function(e,t,n){var i=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"428f":function(e,t,n){var i=n("da84");e.exports=i},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),s=i("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),o=n("b622"),s=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},"45fc":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").some,o=n("a640"),s=n("ae40"),a=o("some"),l=s("some");i({target:"Array",proto:!0,forced:!a||!l},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),o=n("50c4"),s=n("1d80"),a=n("8aa5"),l=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=s(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var s=r(e),c=String(this);if(!s.global)return l(s,c);var u=s.unicode;s.lastIndex=0;var h,f=[],d=0;while(null!==(h=l(s,c))){var p=String(h[0]);f[d]=p,""===p&&(s.lastIndex=a(c,o(s.lastIndex),u)),d++}return 0===d?null:f}]}))},"467f":function(e,t,n){"use strict";var i=n("2d83");e.exports=function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(i("Request failed with status code "+n.status,n.config,null,n.request,n))}},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),o=n("b622"),s=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[s])?t:r(n)}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").trim,o=n("c8d2");i({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={},r=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(r,(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),i.forEach(o,(function(r){i.isObject(t[r])?n[r]=i.deepMerge(e[r],t[r]):"undefined"!==typeof t[r]?n[r]=t[r]:i.isObject(e[r])?n[r]=i.deepMerge(e[r]):"undefined"!==typeof e[r]&&(n[r]=e[r])})),i.forEach(s,(function(i){"undefined"!==typeof t[i]?n[i]=t[i]:"undefined"!==typeof e[i]&&(n[i]=e[i])}));var a=r.concat(o).concat(s),l=Object.keys(t).filter((function(e){return-1===a.indexOf(e)}));return i.forEach(l,(function(i){"undefined"!==typeof t[i]?n[i]=t[i]:"undefined"!==typeof e[i]&&(n[i]=e[i])})),n}},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),o=n("94ca"),s=n("7156"),a=n("9bf2").f,l=n("241c").f,c=n("44e7"),u=n("ad6d"),h=n("9f7f"),f=n("6eeb"),d=n("d039"),p=n("69f3").set,v=n("2626"),g=n("b622"),m=g("match"),y=r.RegExp,w=y.prototype,_=/a/g,b=/a/g,x=new y(_)!==_,T=h.UNSUPPORTED_Y,S=i&&o("RegExp",!x||T||d((function(){return b[m]=!1,y(_)!=_||y(b)==b||"/a/i"!=y(_,"i")})));if(S){var P=function(e,t){var n,i=this instanceof P,r=c(e),o=void 0===t;if(!i&&r&&e.constructor===P&&o)return e;x?r&&!o&&(e=e.source):e instanceof P&&(o&&(t=u.call(e)),e=e.source),T&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var a=s(x?new y(e,t):y(e,t),i?this:w,P);return T&&n&&p(a,{sticky:n}),a},E=function(e){e in P||a(P,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},C=l(y),R=0;while(C.length>R)E(C[R++]);w.constructor=P,P.prototype=w,f(r,"RegExp",P)}v("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),s=function(e){return function(t,n,s){var a,l=i(t),c=r(l.length),u=o(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),s=n("ae40"),a=o("filter"),l=s("filter");i({target:"Array",proto:!0,forced:!a||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("7b0b"),o=n("9bdd"),s=n("e95a"),a=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,h,f,d,p=r(e),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,w=c(p),_=0;if(y&&(m=i(m,g>2?arguments[2]:void 0,2)),void 0==w||v==Array&&s(w))for(t=a(p.length),n=new v(t);t>_;_++)d=y?m(p[_],_):p[_],l(n,_,d);else for(h=w.call(p),f=h.next,n=new v;!(u=f.call(h)).done;_++)d=y?o(h,m,[u.value,_],!0):u.value,l(n,_,d);return n.length=_,n}},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"51f7":function(e,t,n){"use strict";n("704b")},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),s=n("2444");function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){a(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return a(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),o=n("7b0b"),s=n("50c4"),a=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),h=Math.max,f=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var m=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=i.REPLACE_KEEPS_$0,w=m?"$":"$0";return[function(n,i){var r=l(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!m&&y||"string"===typeof i&&-1===i.indexOf(w)){var o=n(t,e,this,i);if(o.done)return o.value}var l=r(e),d=String(this),p="function"===typeof i;p||(i=String(i));var v=l.global;if(v){var b=l.unicode;l.lastIndex=0}var x=[];while(1){var T=u(l,d);if(null===T)break;if(x.push(T),!v)break;var S=String(T[0]);""===S&&(l.lastIndex=c(d,s(l.lastIndex),b))}for(var P="",E=0,C=0;C<x.length;C++){T=x[C];for(var R=String(T[0]),k=h(f(a(T.index),d.length),0),O=[],I=1;I<T.length;I++)O.push(g(T[I]));var A=T.groups;if(p){var $=[R].concat(O,k,d);void 0!==A&&$.push(A);var L=String(i.apply(void 0,$))}else L=_(R,d,k,O,A,i);k>=E&&(P+=d.slice(E,k)+L,E=k+R.length)}return P+d.slice(E)}];function _(e,n,i,r,s,a){var l=i+e.length,c=r.length,u=v;return void 0!==s&&(s=o(s),u=p),t.call(a,u,(function(t,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var h=d(u/10);return 0===h?t:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):t}a=r[u-1]}return void 0===a?"":a}))}}))},5475:function(e,t,n){n("b0c0"),n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),function(e){function t(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null},t),this.image=null}function n(e,t,n){var i;e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&(i=e.jobQueue.shift(),i.start(),e.jobsInProgress++),n(t.image,t.errorMsg,t.request)}t.prototype={errorMsg:null,start:function(){var t=this,n=this.abort;this.image=new Image,this.image.onload=function(){t.finish(!0)},this.image.onabort=this.image.onerror=function(){t.errorMsg="Image load aborted",t.finish(!1)},this.jobId=window.setTimeout((function(){t.errorMsg="Image load exceeded timeout ("+t.timeout+" ms)",t.finish(!1)}),this.timeout),this.loadWithAjax?(this.request=e.makeAjaxRequest({url:this.src,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,responseType:"arraybuffer",success:function(e){var n;try{n=new window.Blob([e.response])}catch(s){var i=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===s.name&&i){var r=new i;r.append(e.response),n=r.getBlob()}}0===n.size&&(t.errorMsg="Empty image response.",t.finish(!1));var o=(window.URL||window.webkitURL).createObjectURL(n);t.image.src=o},error:function(e){t.errorMsg="Image load aborted - XHR error",t.finish(!1)}}),this.abort=function(){t.request.abort(),"function"===typeof n&&n()}):(!1!==this.crossOriginPolicy&&(this.image.crossOrigin=this.crossOriginPolicy),this.image.src=this.src)},finish:function(e){this.image.onload=this.image.onerror=this.image.onabort=null,e||(this.image=null),this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},e.ImageLoader=function(t){e.extend(!0,this,{jobLimit:e.DEFAULT_SETTINGS.imageLoaderLimit,timeout:e.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},t)},e.ImageLoader.prototype={addJob:function(e){var i=this,r=function(t){n(i,t,e.callback)},o={src:e.src,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.loadWithAjax?e.ajaxHeaders:null,crossOriginPolicy:e.crossOriginPolicy,ajaxWithCredentials:e.ajaxWithCredentials,callback:r,abort:e.abort,timeout:this.timeout},s=new t(o);!this.jobLimit||this.jobsInProgress<this.jobLimit?(s.start(),this.jobsInProgress++):this.jobQueue.push(s)},clear:function(){for(var e=0;e<this.jobQueue.length;e++){var t=this.jobQueue[e];"function"===typeof t.abort&&t.abort()}this.jobQueue=[]}}}(OpenSeadragon)},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56d7":function(e,t,n){"use strict";n.r(t);n("4160"),n("baa5"),n("b64b"),n("159b"),n("a4d3"),n("4de4"),n("e439"),n("dbb4");function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tify-app"},[e.$root.manifest?n("app-header",{attrs:{fulltextEnabled:e.hasOtherContent,tocEnabled:e.hasToc}}):e._e(),e.$root.manifest?n("div",{staticClass:"tify-app_main"},[n("scan"),e.hasOtherContent?n("fulltext",{directives:[{name:"show",rawName:"v-show",value:"fulltext"===e.$root.params.view,expression:"$root.params.view === 'fulltext'"}]}):e._e(),e.hasToc?n("toc",{directives:[{name:"show",rawName:"v-show",value:"toc"===e.$root.params.view,expression:"$root.params.view === 'toc'"}]}):e._e(),n("thumbnails",{directives:[{name:"show",rawName:"v-show",value:"thumbnails"===e.$root.params.view,expression:"$root.params.view === 'thumbnails'"}]}),n("info",{directives:[{name:"show",rawName:"v-show",value:"info"===e.$root.params.view,expression:"$root.params.view === 'info'"}]}),n("export",{directives:[{name:"show",rawName:"v-show",value:"export"===e.$root.params.view,expression:"$root.params.view === 'export'"}]}),n("help",{directives:[{name:"show",rawName:"v-show",value:"help"===e.$root.params.view,expression:"$root.params.view === 'help'"}]})],1):e._e(),e.$root.loading?n("div",{staticClass:"tify-app_loading",class:{"-centered":!e.$root.manifest}},[n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Loading")))])]):e._e(),e.$root.error?n("div",{staticClass:"tify-app_error"},[n("button",{staticClass:"tify-app_error-close",on:{click:function(t){e.$root.error=""}}},[n("icon",{attrs:{name:"close"}})],1),n("span",{domProps:{innerHTML:e._s(e.$root.error)}})]):e._e()],1)},c=[],u=(n("99af"),n("45fc"),n("bc3a")),h=n.n(u),f=h.a.create();f.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var d=f,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"tify-header"},[n("div",{staticClass:"tify-header_column -title"},[n("h1",{staticClass:"tify-header_title",attrs:{title:e.titles.join(", ")}},[e._v(" "+e._s(e.titles.join(", "))+" ")])]),n("div",{staticClass:"tify-header_column -pagination"},[n("div",{staticClass:"tify-header_button-group"},[n("page-select",{staticClass:"tify-header_button"}),n("button",{staticClass:"tify-header_button",class:{"-active":e.$root.params.pages.length>1,"-warning":e.customPageViewActive},attrs:{title:e._f("trans")("Toggle double-page")},on:{click:e.toggleDoublePage}},[e.customPageViewActive?n("icon",{attrs:{name:"view_module"}}):n("icon",{attrs:{name:"import_contacts"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Toggle double-page")))])],1)],1),n("div",{staticClass:"tify-header_button-group -pagination"},[n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isFirstPage,title:e._f("trans")("First page")},on:{click:e.goToFirstPage}},[n("icon",{attrs:{name:"first_page"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("First page")))])],1),e.structures&&e.structures.length?n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isFirstPage,title:e._f("trans")("Previous section")},on:{click:e.goToPreviousSection}},[n("icon",{attrs:{name:"skip_previous"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Previous section")))])],1):e._e(),n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isFirstPage,title:e._f("trans")("Previous page")},on:{click:e.goToPreviousPage}},[n("icon",{attrs:{name:"navigate_before"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Previous page")))])],1),n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isLastPage,title:e._f("trans")("Next page")},on:{click:e.goToNextPage}},[n("icon",{attrs:{name:"navigate_next"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Next page")))])],1),e.structures&&e.structures.length?n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isLastSection,title:e._f("trans")("Next section")},on:{click:e.goToNextSection}},[n("icon",{attrs:{name:"skip_next"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Next section")))])],1):e._e(),n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isLastPage,title:e._f("trans")("Last page")},on:{click:e.goToLastPage}},[n("icon",{attrs:{name:"last_page"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Last page")))])],1)])]),n("div",{staticClass:"tify-header_column -controls-toggle"},[n("div",{ref:"switchViewSmall",staticClass:"tify-header_button-group"},[n("button",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeControlsPopup,expression:"closeControlsPopup"}],staticClass:"tify-header_button",on:{click:e.toggleControlsPopup}},[n("icon",{attrs:{name:"menu"}}),e._v(" "+e._s(e._f("trans")("View"))+" ")],1)])]),n("div",{staticClass:"tify-header_column -controls",class:{"-visible":e.controlsVisible}},[n("div",{staticClass:"tify-header_button-group -view"},[n("button",{staticClass:"tify-header_button -scan",class:{"-active":"scan"===e.$root.params.view},on:{click:function(t){return e.toggleView("scan")}}},[n("icon",{attrs:{name:"photo"}}),e._v(" "+e._s(e._f("trans")("Scan"))+" ")],1),e.fulltextEnabled?n("button",{staticClass:"tify-header_button",class:{"-active":"fulltext"===e.$root.params.view},on:{click:function(t){return e.toggleView("fulltext")}}},[n("icon",{attrs:{name:"subject"}}),e._v(" "+e._s(e._f("trans")("Fulltext"))+" ")],1):e._e(),n("button",{staticClass:"tify-header_button",class:{"-active":"thumbnails"===e.$root.params.view},on:{click:function(t){return e.toggleView("thumbnails")}}},[n("icon",{attrs:{name:"view_module"}}),e._v(" "+e._s(e._f("trans")("Pages"))+" ")],1),e.tocEnabled?n("button",{staticClass:"tify-header_button",class:{"-active":"toc"===e.$root.params.view},on:{click:function(t){return e.toggleView("toc")}}},[n("icon",{attrs:{name:"toc"}}),e._v(" "+e._s(e._f("trans")("Contents"))+" ")],1):e._e(),n("button",{staticClass:"tify-header_button",class:{"-active":"info"===e.$root.params.view},on:{click:function(t){return e.toggleView("info")}}},[n("icon",{attrs:{name:"info_outline"}}),e._v(" "+e._s(e._f("trans")("Info"))+" ")],1),n("button",{staticClass:"tify-header_button",class:{"-active":"export"===e.$root.params.view},on:{click:function(t){return e.toggleView("export")}}},[n("icon",{attrs:{name:"file_download"}}),e._v(" "+e._s(e._f("trans")("Export"))+" ")],1),n("button",{staticClass:"tify-header_button -icon-only",class:{"-active":"help"===e.$root.params.view},attrs:{title:e.$options.filters.trans("Help")},on:{click:function(t){return e.toggleView("help")}}},[n("icon",{attrs:{name:"help_outline"}}),e._v(" "+e._s(e._f("trans")("Help"))+" ")],1)]),e.fullscreenSupported?n("div",{staticClass:"tify-header_button-group -view"},[e.fullscreenActive?n("button",{staticClass:"tify-header_button -icon-only",attrs:{title:e._f("trans")("Exit fullscreen")},on:{click:e.toggleFullscreen}},[n("icon",{attrs:{name:"fullscreen_exit"}}),e._v(" "+e._s(e._f("trans")("Exit fullscreen"))+" ")],1):n("button",{staticClass:"tify-header_button -icon-only",attrs:{title:e._f("trans")("Fullscreen")},on:{click:e.toggleFullscreen}},[n("icon",{attrs:{name:"fullscreen"}}),e._v(" "+e._s(e._f("trans")("Fullscreen"))+" ")],1)]):e._e(),n("div",{staticClass:"tify-header_button-group -popup"},[n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isFirstPage,title:e._f("trans")("First page")},on:{click:e.goToFirstPage}},[n("icon",{attrs:{name:"first_page"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("First page")))])],1),e.structures&&e.structures.length?n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isFirstPage,title:e._f("trans")("Previous section")},on:{click:e.goToPreviousSection}},[n("icon",{attrs:{name:"skip_previous"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Previous section")))])],1):e._e(),n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isFirstPage,title:e._f("trans")("Previous page")},on:{click:e.goToPreviousPage}},[n("icon",{attrs:{name:"navigate_before"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Previous page")))])],1),n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isLastPage,title:e._f("trans")("Next page")},on:{click:e.goToNextPage}},[n("icon",{attrs:{name:"navigate_next"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Next page")))])],1),e.structures&&e.structures.length?n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isLastSection,title:e._f("trans")("Next section")},on:{click:e.goToNextSection}},[n("icon",{attrs:{name:"skip_next"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Next section")))])],1):e._e(),n("button",{staticClass:"tify-header_button",attrs:{disabled:e.customPageViewActive||e.isLastPage,title:e._f("trans")("Last page")},on:{click:e.goToLastPage}},[n("icon",{attrs:{name:"last_page"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Last page")))])],1)])])])},v=[],g=(n("c740"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tify-page-select"},[n("button",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"tify-page-select_button",attrs:{title:e.pageTitleAttr},on:{click:e.toggleDropdown}},[n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Current page")))]),e._v(" "+e._s(e.getCurrentPage())+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],key:"dropdown",staticClass:"tify-page-select_dropdown",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"tify-page-select_filter"},[n("label",{staticClass:"tify-sr-only"},[e._v(e._s("Filter pages"))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filter,expression:"filter"}],ref:"search",staticClass:"tify-page-select_input",attrs:{type:"text"},domProps:{value:e.filter},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.filteredCanvases[e.highlightIndex]&&e.setPage(e.filteredCanvases[e.highlightIndex].page)},keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.preventDefault(),e.filter?e.filter="":e.closeDropdown()},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlightIndex>0&&(e.highlightIndex-=1)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlightIndex<e.filteredCanvases.length-1&&(e.highlightIndex+=1)}],input:function(t){t.target.composing||(e.filter=t.target.value)}}})]),n("ol",{ref:"list",staticClass:"tify-page-select_list"},e._l(e.filteredCanvases,(function(t,i){return n("li",{key:i,class:{"-current":e.$root.params.pages.indexOf(t.page)>-1,"-highlighted":e.highlightIndex===i},on:{click:function(n){return e.setPage(t.page)}}},[e._v(" "+e._s(t.page)+" : "+e._s(e.getLabels(t.label)[0])+" ")])})),0)])])}),m=[],y=(n("c975"),n("b680"),n("ac1f"),n("841c"),n("32be")),w=n.n(y),_={mixins:[w.a],data:function(){return{filter:"",filteredCanvases:[],highlightIndex:0,isOpen:!1}},computed:{pageTitleAttr:function(){var e=this.$root.params.pages,t=0===e[0]&&e.length>1?1:e[0],n=this.$options.filters.trans("Physical page"),i=this.$options.filters.trans("Logical page");return"".concat(n,": ").concat(t,"\n")+"".concat(i,": ").concat(this.$root.convertValueToArray(this.$root.canvases[t-1].label)[0])}},watch:{filter:function(){this.updateFilteredCanvases()},highlightIndex:function(){var e=this;this.$nextTick((function(){return e.updateScroll()}))},isOpen:function(){this.isOpen||(this.filter="",this.highlightIndex=this.$root.params.pages[0]-1)}},methods:{setPage:function(e){this.closeDropdown(),this.$root.setPage(e),this.$root.isMobile()&&this.$root.updateParams({view:"scan"})},toggleDropdown:function(){var e=this;this.isOpen=!this.isOpen,this.isOpen&&this.$nextTick((function(){e.$refs.search.focus(),e.updateScroll()}))},closeDropdown:function(){this.isOpen=!1},updateFilteredCanvases:function(){var e=this,t=[],n=this.filter.toLowerCase(),i=-1;this.$root.canvases.forEach((function(r,o){var s=e.$root.convertValueToArray(r.label)[0],a=s.toLowerCase().indexOf(n)>-1,l=(o+1).toFixed().indexOf(n)>-1;if(a||l){var c=r;c.page=o+1,c.page===e.$root.params.pages[0]&&(i=t.length),t.push(c)}})),this.highlightIndex=i<0?0:i,this.filteredCanvases=t},updateScroll:function(){var e=this.$refs.list;if(e.children[this.highlightIndex]){var t=e.children[this.highlightIndex].offsetTop;e.scrollTop=t-(e.offsetHeight/2-e.children[0].offsetHeight)}},getLabels:function(e){return this.$root.convertValueToArray(e)},getCurrentPage:function(){var e=this.$root.params.pages[0]||1,t=this.$root.params.pages[0]?this.$root.params.pages[0]-1:0,n=this.getLabels(this.$root.canvases[t].label)[0];return"".concat(e," : ").concat(n)}},mounted:function(){var e=this;this.updateFilteredCanvases(),window.addEventListener("keydown",(function(t){e.preventKeyboardEvent(t)||("Escape"!==t.key?"x"===t.key&&(e.toggleDropdown(),t.preventDefault()):e.closeDropdown())}))}},b=_;function x(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var T=x(b,g,m,!1,null,null,null),S=T.exports,P=n("1b80"),E=n.n(P),C={components:{PageSelect:S},mixins:[w.a,E.a],props:["fulltextEnabled","tocEnabled"],data:function(){return{controlsVisible:!1,fullscreenActive:!1,screen:this.$root.$el.parentNode,sections:[]}},computed:{fullscreenSupported:function(){return null===document.fullscreenElement||null===document.msFullscreenElement||null===document.webkitFullscreenElement},isLastSection:function(){var e=this.$root.params.pages,t=e.length-1,n=e[t]?e[t]:e[t-1];return n>=this.sections[this.sections.length-1].firstPage},structures:function(){return this.$root.manifest.structures},titles:function(){return this.$root.convertValueToArray(this.$root.manifest.label)}},methods:{closeControlsPopup:function(){this.controlsVisible=!1},detectFullscreen:function(){var e;switch(null){case document.msFullscreenElement:e=document.msFullscreenElement;break;case document.webkitFullscreenElement:e=document.webkitFullscreenElement;break;case document.fullscreenElement:e=document.fullscreenElement;break;default:e=!1}return e},goToNextSection:function(){var e=this.$root.params.pages,t=e.length-1,n=e[t]?e[t]:e[t-1],i=0;while(n>=this.sections[i].firstPage||n&&n>=this.sections[i].firstPage)i+=1;this.$root.setPage(this.sections[i].firstPage)},goToPreviousSection:function(){var e=this.$root.params.pages,t=e[0]?e[0]:e[1],n=this.sections.length-1;while(t<=this.sections[n].firstPage||t&&t<=this.sections[n].firstPage)n-=1;this.$root.setPage(this.sections[n].firstPage)},toggleControlsPopup:function(){this.controlsVisible=!this.controlsVisible},toggleDoublePage:function(){var e,t=this.$root.params.pages;if(t.length>1)e=[t[0]<1?1:t[0]];else if(t[0]<2)e=[0,1];else if(t[0]%2>0)e=[t[0]-1,t[0]];else{var n=t[0]<this.$root.pageCount?t[0]+1:0;e=[t[0],n]}this.$root.updateParams({pages:e})},toggleFullscreen:function(){this.fullscreenActive?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():this.screen.requestFullscreen?this.screen.requestFullscreen():this.screen.mozRequestFullScreen?this.screen.mozRequestFullScreen():this.screen.webkitRequestFullscreen?this.screen.webkitRequestFullscreen():this.screen.msRequestFullscreen&&this.screen.msRequestFullscreen()},toggleFullscreenActive:function(){this.fullscreenActive=!this.fullscreenActive},toggleView:function(e){var t=e!==this.$root.params.view||this.$root.isMobile()?e:"";this.$root.updateParams({view:t})}},created:function(){var e=this;if(this.structures){var t=[];this.structures.forEach((function(n){if(n.canvases){var i=n.canvases[0],r=e.$root.canvases.findIndex((function(e){return e["@id"]===i}))+1,o=n.canvases[n.canvases.length-1],s=e.$root.canvases.findIndex((function(e){return e["@id"]===o}))+1;t.push({firstPage:r,lastPage:s})}else t.push({firstPage:1,lastPage:e.$root.pageCount})})),this.sections=t}},mounted:function(){var e=this;window.addEventListener("keydown",(function(t){if(!e.preventKeyboardEvent(t))if("Escape"!==t.key){switch(t.key){case"Backspace":e.$refs.switchViewSmall.offsetParent&&e.toggleView("scan");break;case"1":e.fulltextEnabled&&e.toggleView("fulltext");break;case"2":e.toggleView("thumbnails");break;case"3":e.tocEnabled&&e.toggleView("toc");break;case"4":e.toggleView("info");break;case"5":e.toggleView("export");break;case"6":e.toggleView("help");break;case"b":e.toggleDoublePage();break;case"f":e.toggleFullscreen();break;default:}if(!e.customPageViewActive){var n=e.$root.params.pages;switch(t.key){case"q":case",":n[0]>1&&e.goToPreviousPage();break;case"e":case".":e.isLastPage||e.goToNextPage();break;case"Q":n[0]>1&&e.goToFirstPage();break;case"E":e.isLastPage||e.goToLastPage();break;default:}}}else e.controlsVisible=!1})),["","moz","ms","webkit"].forEach((function(t){document.addEventListener("".concat(t,"fullscreenchange"),e.toggleFullscreenActive)}))}},R=C,k=x(R,p,v,!1,null,null,null),O=k.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-export"},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Export")))]),n("div",{staticClass:"tify-export_section -links"},[n("h3",[e._v(e._s(e._f("trans")("Download Individual Images")))]),n("ul",e._l(e.pages,(function(t){return n("li",{key:t},[n("a",{attrs:{href:e.imageUrls[t],download:t+".jpg"}},[e._v(" "+e._s(e._f("trans")("Page"))+" "+e._s(t)+" : "+e._s(e.getLabels(e.$root.canvases[t-1].label)[0])+" ")])])})),0)]),e.$root.manifest.rendering?n("div",{staticClass:"tify-export_section -renderings"},[n("h3",[e._v(e._s(e._f("trans")("Renderings")))]),n("ul",e._l(e.$root.manifest.rendering,(function(t){return n("li",{key:t["@id"]},[/\.pdf$/i.test(t["@id"])?[/\.pdf$/i.test(t["@id"])?n("i",{staticClass:"tify-badge"},[e._v("PDF")]):e._e(),n("a",{attrs:{href:t["@id"],download:""}},[e._v(e._s(t.label))])]:[n("a",{attrs:{href:t["@id"]}},[e._v(e._s(t.label))])]],2)})),0),e.hasElementPdfLinks?n("div",{staticClass:"tify-export_container"},[n("button",{staticClass:"tify-export_toggle",on:{click:function(t){e.perElementPdfLinksVisible=!e.perElementPdfLinksVisible}}},[e.perElementPdfLinksVisible?[e._v(e._s(e._f("trans")("Close PDF list")))]:[e._v(e._s(e._f("trans")("PDFs for each element")))]],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.perElementPdfLinksVisible,expression:"perElementPdfLinksVisible"}],staticClass:"tify-export_toc"},[n("toc-list",{ref:"children",attrs:{purpose:"pdf",level:0,structures:e.structures}})],1)]):e._e()]):e._e(),e.literatureItems.length?n("div",{staticClass:"tify-export_section -literature"},[n("h3",[e._v(e._s(e._f("trans")("Literature Management")))]),n("ul",e._l(e.literatureItems,(function(t){return n("li",{key:t["@id"]},[n("a",{attrs:{href:t["@id"],download:""}},[e._v(" "+e._s(t.label)+" ")])])})),0)]):e._e(),n("div",{staticClass:"tify-export_section -other"},[n("h3",[e._v(e._s(e._f("trans")("Other Formats")))]),n("ul",[n("li",[n("a",{attrs:{href:e.$root.manifestUrl,download:"manifest.json"}},[e._v(" "+e._s(e._f("trans")("IIIF manifest"))+" ")])]),e._l(e.otherItems,(function(t){return n("li",{key:t["@id"]},[n("a",{attrs:{href:t["@id"],download:""}},[e._v(" "+e._s(t.label||t["@id"])+" ")])])}))],2)])])},A=[],$=(n("fb6a"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"tify-toc_list"},e._l(e.structures,(function(t,i){return n("li",{key:i,staticClass:"tify-toc_structure",class:{"-current":e.checkIfPagesInStructure(t),"-expanded":e.expandedStructures[i]},attrs:{"data-level":e.level}},[t.childStructures?n("button",{staticClass:"tify-toc_toggle",attrs:{title:e.$options.filters.trans(e.expandedStructures[i]?"Collapse":"Expand")},on:{click:function(t){return e.toggleChildren(i)}}},[e.expandedStructures[i]?[n("icon",{attrs:{name:"remove"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Collapse")))])]:[n("icon",{attrs:{name:"add"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Expand")))])]],2):e._e(),"pdf"===e.purpose?n("a",{staticClass:"tify-toc_link",attrs:{download:"",href:e.getLabels(t.rendering)[0]["@id"]}},[n("i",{staticClass:"tify-badge"},[e._v("PDF")]),e._v(" "+e._s(t.label)+" ("+e._s(t.pageCount)+" "+e._s(e._f("trans")(1===t.pageCount?"page":"pages"))+") ")]):n("a",{staticClass:"tify-toc_link -dots",on:{click:function(n){return e.setPage(t.firstPage)}}},[n("span",{staticClass:"tify-toc_label"},[e._v(e._s(t.label))]),n("span",{staticClass:"tify-toc_page"},[e._v(e._s(t.pageLabel))])]),t.childStructures?n("toc-list",{directives:[{name:"show",rawName:"v-show",value:e.expandedStructures[i],expression:"expandedStructures[index]"}],ref:"children",refInFor:!0,attrs:{level:e.level+1,parentStructure:t,purpose:e.purpose,structures:t.childStructures}}):e._e()],1)})),0)}),L=[],D={name:"toc-list",props:["level","structures","parentStructure","purpose"],data:function(){return{expandedStructures:[]}},methods:{checkIfPagesInStructure:function(e){var t=this.$root.params.pages;return t.some((function(t){return t>=e.firstPage&&t<=e.lastPage}))},setPage:function(e){this.$root.setPage(e),this.$root.isMobile()&&this.$root.updateParams({view:"scan"})},toggleAllChildren:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.$refs.children){for(var t=this.structures.length-1;t>=0;t-=1)this.toggleChildren(t,e);this.$refs.children.forEach((function(t){t.toggleAllChildren(e)}))}},toggleChildren:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.structures[e];if(n.childStructures){var i=null!==t?t:!this.expandedStructures[e];i?this.$set(this.expandedStructures,e,!0):this.$set(this.expandedStructures,e,!1)}},getLabels:function(e){return this.$root.convertValueToArray(e)}}},M=D,F=x(M,$,L,!1,null,null,null),B=F.exports,N=(n("498a"),{computed:{structures:function(){var e=this;if(!this.$root.manifest.structures)return[];for(var t=[],n=[],i=this.$root.manifest.structures.length,r=0;r<i;r+=1){var o=this.$root.manifest.structures[r];if(o.label?o.label=this.$root.convertValueToArray(o.label)[0].trim():o.label="—",o.canvases){var s=function(){var t=o.canvases[0];o.firstPage=e.$root.canvases.findIndex((function(e){return e["@id"]===t}))+1;var n=o.canvases[o.canvases.length-1];o.lastPage=e.$root.canvases.findIndex((function(e){return e["@id"]===n}))+1;var i=e.$root.canvases[o.firstPage-1];if(!i)return"continue";o.pageLabel=i.label}();if("continue"===s)continue}else this.$root.canvases[0]&&(o.firstPage=1,o.lastPage=this.$root.pageCount,o.pageLabel=this.$root.canvases[0].label);o.pageCount=o.lastPage-o.firstPage+1,o.within&&n.push(o),t.push(o)}for(var a=n.length,l=0;l<i;l+=1){for(var c=[],u=0;u<a;u+=1){var h=n[u];h.within===t[l]["@id"]&&c.push(h)}c.length&&(t[l].childStructures=c.sort((function(e,t){return e.firstPage-t.firstPage})))}var f=t.filter((function(e){return!e.within})).sort((function(e,t){return e.firstPage-t.firstPage}));return f},currentStructure:function(){var e=this;if(!Array.isArray(this.$root.manifest.structures))return!1;var t=[];this.$root.params.pages.forEach((function(n){n&&t.push(e.$root.canvases[n-1]["@id"])}));for(var n,i,r=this.$root.manifest.structures.length,o=0;o<r;o+=1){var s=this.$root.manifest.structures[o],a=s.canvases;if(a&&a.some((function(e){return t.indexOf(e)>-1}))&&s.firstPage&&s.lastPage){var l=s.lastPage-s.firstPage;if((l<i||!i)&&(n=o,i=l,0===i))break}}return"number"===typeof n&&n>=0&&this.$root.manifest.structures[n]},currentStructureLabel:function(){var e=this.currentStructure.label;return e},currentStructureMetadata:function(){var e=this.currentStructure.metadata;return e}}}),j=N,H=[{label:"BibTex",profile:"http://www.bibtex.org/Format/",type:"literature"},{label:"EndNote",profile:"http://endnote.com/",type:"literature"},{label:"RIS",profile:"http://referencemanager.com/sites/rm/files/m/direct_export_ris.pdf",type:"literature"},{label:"METS",profile:"http://www.loc.gov/standards/mets/profile_docs/mets.profile.v2-0.xsd",type:"other"},{label:"MODS",format:"application/mods+xml",type:"other"}],z={components:{TocList:B},mixins:[j],data:function(){return{literatureItems:[],otherItems:[],perElementPdfLinksVisible:!1}},methods:{getLabels:function(e){return this.$root.convertValueToArray(e)}},computed:{pages:function(){return this.$root.params.pages.filter((function(e){return e>0}))},hasElementPdfLinks:function(){var e=this.$root.manifest;if(!Array.isArray(e.structures)||!e.structures[0]||!e.structures[0].rendering)return!1;var t=this.$root.convertValueToArray(e.structures[0].rendering);return t.some((function(e){return e.format&&"application/pdf"===e.format}))},imageUrls:function(){var e=this,t={};return this.$root.params.pages.forEach((function(n){if(n){var i=e.$root.canvases[n-1].images[0].resource;if(i.service){var r="http://iiif.io/api/image/2/context.json"===i.service["@context"]?"default":"native",o=i.service["@id"];t[n]="".concat(o).concat("/"===o.slice(-1)?"":"/","full/full/0/").concat(r,".jpg")}else t[n]=i["@id"]}})),t}},created:function(){var e=this,t=this.$root.manifest.seeAlso;if(t){var n=JSON.parse(JSON.stringify(Array.isArray(t)?t:[t]));n.forEach((function(t){var n="object"===s(t)?t:{"@id":t},i=!1;H.some((function(e){var r=t.format&&e.format===t.format,o=t.profile&&e.profile===t.profile;return!(!r&&!o)&&(n.label=e.label,"literature"===e.type&&(i=!0),!0)})),i?e.literatureItems.push(n):e.otherItems.push(n)}))}}},V=z,U=x(V,I,A,!1,null,null,null),W=U.exports,q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-fulltext"},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Fulltext")))]),e.fulltextAvailable?n("div",{staticClass:"tify-fulltext_texts"},[e._l(e.pages,(function(t,i){return[i&&t>1?n("hr",{key:i,staticClass:"tify-fulltext_separator"}):e._e(),e._l(e.fulltexts[t],(function(t,i){return n("div",{key:i,staticClass:"tify-fulltext_text",domProps:{innerHTML:e._s(t)}})}))]}))],2):n("div",{staticClass:"tify-fulltext_none"},[e._v(" "+e._s(e._f("trans")("Fulltext not available for this page"))+" ")])])},G=[],Z={data:function(){return{fulltextAvailable:!1,fulltexts:[]}},watch:{"$root.params.pages":function(){this.loadFulltexts()}},methods:{loadFulltexts:function(){var e=this;this.fulltextAvailable=!1,this.fulltexts=[],this.$root.params.pages.forEach((function(t){if(!(t<1||e.fulltexts[t])){var n=e.$root.canvases[t-1];if("otherContent"in n){e.$set(e.fulltexts,t,[]);var i=n.otherContent[0]["@id"];d.get(i).then((function(n){var i=n.data.resources;Array.isArray(i)&&i.forEach((function(n,i){var r=n.resource;if(r&&r.chars){var o=e.$root.filterHtml(r.chars);o&&(e.fulltextAvailable=!0),e.$set(e.fulltexts[t],i,o)}else r["@id"]&&e.loadRemoteFulltext(t,i,r["@id"])}))}),(function(t){var n=t.response?t.response.statusText:t.message;e.$root.error="Error loading other content: ".concat(n)}))}}}))},loadRemoteFulltext:function(e,t,n){var i=this;d.get(n).then((function(n){var r=i.$root.filterHtml(n.data);r&&(i.fulltextAvailable=!0),i.$set(i.fulltexts[e],t,r)}),(function(e){var t=e.response?e.response.statusText:e.message;i.$root.error="Error loading fulltext: ".concat(t)}))}},mounted:function(){this.loadFulltexts()},computed:{pages:function(){return this.$root.params.pages.filter((function(e){return!!e}))}}},X=Z,K=x(X,q,G,!1,null,null,null),Y=K.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-help"},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Help")))]),n("div",{staticClass:"tify-help_section -about"},[n("h3",[e._v(e._s(e._f("trans")("About TIFY")))]),n("p",[e._v(" TIFY is a slim and mobile-friendly IIIF document viewer, released under the GNU Affero General Public License 3.0. ")]),n("p",[e._v(" Version "+e._s(e.info.VERSION)+" ")]),n("ul",[n("li",[n("a",{attrs:{href:e.info.DOCS_URL}},[e._v("Documentation")])]),n("li",[n("a",{attrs:{href:e.info.REPOSITORY_URL}},[e._v("Source code")])]),n("li",[n("a",{attrs:{href:e.info.CONTRIBUTORS_URL}},[e._v("Contributors")])])]),n("p",[n("a",{attrs:{href:e.info.BUGS_URL}},[e._v("Report a bug")])]),e._m(0)])])},Q=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v(" Copyright © 2017–2020 "),n("a",{attrs:{href:"https://www.uni-goettingen.de/en/"}},[e._v("Göttingen University")]),e._v(" / "),n("a",{attrs:{href:"https://www.sub.uni-goettingen.de/en/"}},[e._v("Göttingen State and University Library")])])}],ee={computed:{info:function(){return JSON.parse(unescape("%7B%22VERSION%22%3A%220.24.2%22%2C%22LICENSE%22%3A%22AGPL-3.0%22%2C%22BUGS_URL%22%3A%22https%3A//github.com/tify-iiif-viewer/tify/issues%22%2C%22CONTRIBUTORS_URL%22%3A%22https%3A//github.com/tify-iiif-viewer/tify/blob/main/CONTRIBUTORS.md%22%2C%22DOCS_URL%22%3A%22https%3A//github.com/tify-iiif-viewer/tify/blob/v0.24.2/doc%22%2C%22REPOSITORY_URL%22%3A%22https%3A//github.com/tify-iiif-viewer/tify%22%7D"))}}},te=ee,ne=x(te,J,Q,!1,null,null,null),ie=ne.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-info"},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Info")))]),e.manifest.label?n("div",{staticClass:"tify-info_section -title"},[n("h3",{staticClass:"tify-info_heading"},[e._v(e._s(e._f("trans")("Title")))]),e._l(e.getLabels(e.manifest.label),(function(t){return n("div",{key:t},[e._v(" "+e._s(t)+" ")])}))],2):e._e(),e.manifest.metadata&&e.manifest.metadata.length?n("div",{staticClass:"tify-info_section -metadata"},[n("h3",[e._v(e._s(e._f("trans")("Metadata")))]),n("metadata-list",{attrs:{metadata:e.manifest.metadata}})],1):e._e(),e.currentStructureLabel||e.currentStructureMetadata?n("div",{staticClass:"tify-info_section -metadata -structure"},[n("h3",[e._v(" "+e._s(e._f("trans")("Current Element"))+" ")]),e.currentStructureLabel?n("p",{staticClass:"tify-info_structure"},[e._v(" "+e._s(e.currentStructureLabel)+" ")]):e._e(),e.currentStructureMetadata?n("metadata-list",{staticClass:"tify-info_section -metadata",attrs:{metadata:e.currentStructureMetadata}}):e._e()],1):e._e(),e.manifest.description?n("div",{staticClass:"tify-info_section -description"},[n("h3",[e._v(e._s(e._f("trans")("Description")))]),e._l(e.getLabels(e.manifest.description),(function(t,i){return n("div",{key:i,domProps:{innerHTML:e._s(t)}})}))],2):e._e(),e.license.length?n("div",{staticClass:"tify-info_section -license"},[n("h3",[e._v(e._s(e._f("trans")("License")))]),e._l(e.license,(function(t,i){return n("div",{key:i},["string"===typeof t?[e.isUrl(t)?n("a",{attrs:{href:t}},[e._v(" "+e._s(t)+" ")]):[e._v(" "+e._s(t)+" ")]]:[e.isUrl(t["@id"])?n("a",{attrs:{href:t}},[e._v(" "+e._s(t["label"]||t["@id"])+" ")]):[e._v(" "+e._s(t["label"]||t["@id"])+" ")]]],2)}))],2):e._e(),e.related.length?n("div",{staticClass:"tify-info_section -related"},[n("h3",[e._v(e._s(e._f("trans")("Related Resources")))]),e._l(e.related,(function(t,i){return n("div",{key:i},["string"===typeof t?n("a",{attrs:{href:t}},[e._v(" "+e._s(t)+" ")]):n("a",{attrs:{href:t["@id"]}},[e._v(" "+e._s(t["label"]||t["@id"])+" ")])])}))],2):e._e(),e.manifest.attribution?n("div",{staticClass:"tify-info_section -attribution"},[n("h3",[e._v(e._s(e._f("trans")("Provided by")))]),e._l(e.getLabels(e.manifest.attribution),(function(t,i){return n("div",{key:i,domProps:{innerHTML:e._s(t)}})}))],2):e._e(),e.manifest.logo?n("div",{staticClass:"tify-info_section -logo"},[e.logoId&&e.manifest.logo.service&&e.manifest.logo.service["@id"]?n("a",{attrs:{href:e.manifest.logo.service["@id"]}},[n("img",{staticClass:"tify-info_logo",attrs:{src:e.logoId,alt:""}})]):n("img",{staticClass:"tify-info_logo",attrs:{src:e.logoId,alt:""}})]):e._e()])},oe=[],se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tify-info_metadata"},e._l(e.metadata,(function(t,i){return n("div",{key:i},[[n("h4",e._l(e.getLabels(t.label),(function(t,i){return n("div",{key:i},[e._v(" "+e._s(e._f("cleanLabel")(t))+" ")])})),0),n("div",{staticClass:"tify-info_content"},[n("div",{staticClass:"tify-info_value",class:{"-collapsed":e.infoItems&&e.infoItems[i]&&e.infoItems[i].isCollapsed},style:e.infoItems&&e.infoItems[i]&&e.infoItems[i].isCollapsed?e.collapsedStyle:null},e._l(e.getLabels(t.value),(function(t){return n("div",{key:t,domProps:{innerHTML:e._s(t)}})})),0),!e.infoItems||e.infoItems&&e.infoItems[i]&&e.infoItems[i].isInitiallyCollapsed?n("button",{staticClass:"tify-info_toggle",on:{click:function(t){e.infoItems[i].isCollapsed=!e.infoItems[i].isCollapsed}}},[!e.infoItems||e.infoItems&&e.infoItems[i]&&e.infoItems[i].isCollapsed?[n("icon",{attrs:{name:"expand_more"}}),e._v(" "+e._s(e._f("trans")("Expand"))+" ")]:[n("icon",{attrs:{name:"expand_less"}}),e._v(" "+e._s(e._f("trans")("Collapse"))+" ")]],2):e._e()])]],2)})),0)},ae=[],le=(n("13d5"),n("07ac"),n("5319"),5),ce=24,ue=42,he={props:["metadata"],data:function(){return{infoItems:null}},watch:{metadata:function(){this.updateInfoItems()}},filters:{cleanLabel:function(e){var t=e.replace("_"," ");return t.charAt(0).toUpperCase()+t.substr(1)}},mounted:function(){this.updateInfoItems()},methods:{updateInfoItems:function(){var e=this,t=le*ce;this.collapsedStyle="max-height: ".concat(t,"px; overflow: hidden");for(var n=[],i=Object.values(this.metadata),r=i.length,o=0;o<r;o+=1){var s=this.metadata[o],a=this.$root.convertValueToArray(s.value),l=a.reduce((function(t,n){var i=Math.ceil(e.stripHtml(n).length/ue);return i<1&&(i=1),t+i}),0),c=l>le,u={isCollapsed:c,isInitiallyCollapsed:c};n.push(u)}this.infoItems=n},stripHtml:function(e){var t=(new DOMParser).parseFromString(e,"text/html");return t.body.textContent||""},getLabels:function(e){return this.$root.convertValueToArray(e)}}},fe=he,de=x(fe,se,ae,!1,null,null,null),pe=de.exports,ve={components:{MetadataList:pe},mixins:[j],data:function(){return{collapsedStyle:""}},computed:{license:function(){return this.manifest.license?this.getLabels(this.manifest.license):[]},logoId:function(){return this.manifest.logo["@id"]?this.manifest.logo["@id"]:this.manifest.logo},manifest:function(){return this.$root.manifest},related:function(){return this.manifest.related?this.getLabels(this.manifest.related):[]}},methods:{init:function(){this.isInited=!0},isUrl:function(e){return/^https?:\/\//.test(e)},getLabels:function(e){return this.$root.convertValueToArray(e)}},watch:{"$root.params.view":function(e){"info"===e&&(this.isInited||this.init())}},mounted:function(){"info"===this.$root.params.view&&this.init()}},ge=ve,me=x(ge,re,oe,!1,null,null,null),ye=me.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-scan"},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Scan")))]),e.customPageViewActive||e.isFirstPage?e._e():n("button",{staticClass:"tify-scan_page-button -previous",attrs:{title:e._f("trans")("Previous page")},on:{click:e.goToPreviousPage}},[n("icon",{attrs:{name:"navigate_before"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Previous page")))])],1),e.customPageViewActive||e.isLastPage?e._e():n("button",{staticClass:"tify-scan_page-button -next",attrs:{title:e._f("trans")("Next page")},on:{click:e.goToNextPage}},[n("icon",{attrs:{name:"navigate_next"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Next page")))])],1),e.viewer?n("div",{staticClass:"tify-scan_buttons"},[n("button",{staticClass:"tify-scan_button",attrs:{disabled:e.isMaxZoom,title:e._f("trans")("Zoom in")},on:{click:e.zoomIn}},[n("icon",{attrs:{name:"zoom_in"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Zoom in")))])],1),n("button",{staticClass:"tify-scan_button",attrs:{disabled:e.isReset,title:e._f("trans")("Reset")},on:{click:function(t){return e.resetView(t)}}},[n("icon",{attrs:{name:"aspect_ratio"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Reset")))])],1),n("button",{staticClass:"tify-scan_button",attrs:{disabled:e.isMinZoom,title:e._f("trans")("Zoom out")},on:{click:e.zoomOut}},[n("icon",{attrs:{name:"zoom_out"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Zoom out")))])],1),n("button",{staticClass:"tify-scan_button",class:{"-active":e.$root.params.rotation},attrs:{title:e._f("trans")("Rotate")},on:{click:function(t){return e.rotateRight(t)}}},[n("icon",{attrs:{name:"rotate_right"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Rotate")))])],1),e.cssFiltersSupported?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeFilters,expression:"closeFilters"}],staticClass:"tify-scan_filters",class:{"-open":e.filtersVisible}},[n("button",{staticClass:"tify-scan_button",class:{"-active":e.filtersActive},attrs:{title:e._f("trans")("Toggle image filters")},on:{click:function(t){e.filtersVisible=!e.filtersVisible}}},[n("icon",{attrs:{name:"tune"}}),n("span",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Toggle image filters")))])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filtersVisible,expression:"filtersVisible"}],staticClass:"tify-scan_filter-popup"},[n("p",[n("label",{attrs:{for:"tify-scan_brightness"}},[n("icon",{staticClass:"-light",attrs:{name:"wb_sunny"}}),e._v(" "+e._s(e._f("trans")("Brightness:"))+" "+e._s(Math.round(100*(e.$root.params.filters.brightness||1)))+" % ")],1),n("input",{ref:"firstSlider",staticClass:"tify-scan_range",attrs:{id:"tify-scan_brightness",max:"2",min:".5",step:".01",type:"range"},domProps:{value:e.$root.params.filters.brightness||1},on:{input:function(t){return e.setFilter("brightness",t)}}})]),n("p",[n("label",{attrs:{for:"tify-scan_contrast"}},[n("icon",{staticClass:"-light",attrs:{name:"brightness_medium"}}),e._v(" "+e._s(e._f("trans")("Contrast:"))+" "+e._s(Math.round(100*(e.$root.params.filters.contrast||1)))+" % ")],1),n("input",{staticClass:"tify-scan_range",attrs:{id:"tify-scan_contrast",max:"2",min:".5",step:".01",type:"range"},domProps:{value:e.$root.params.filters.contrast||1},on:{input:function(t){return e.setFilter("contrast",t)}}})]),n("p",[n("label",{attrs:{for:"tify-scan_saturation"}},[n("icon",{staticClass:"-light",attrs:{name:"palette"}}),e._v(" "+e._s(e._f("trans")("Saturation:"))+" "+e._s(Math.round(100*e.saturation))+" % ")],1),n("input",{staticClass:"tify-scan_range",attrs:{id:"tify-scan_saturation",max:"3",min:"0",step:".01",type:"range"},domProps:{value:e.saturation},on:{input:function(t){return e.setFilter("saturate",t)}}})]),n("p",[n("button",{staticClass:"tify-scan_reset",attrs:{disabled:!e.filtersActive},on:{click:e.resetFilters}},[n("icon",{attrs:{name:"settings_backup_restore"}}),e._v(" "+e._s(e._f("trans")("Reset"))+" ")],1)])])]):e._e()]):e._e(),n("div",{ref:"image",staticClass:"tify-scan_image",attrs:{id:"tify-scan_image"}})])},_e=[],be=(n("a15b"),n("b5f9")),xe=n.n(be);window.OpenSeadragon=xe.a,n("0b09"),n("15d5"),n("333e"),n("65e9"),n("031f"),n("5475"),n("0d87"),n("9e16"),n("89cb"),n("bd13"),n("bdb4"),n("a8fa"),n("81b1"),n("6d82"),n("384f"),n("1264"),n("84bb");var Te=.01,Se=["-webkit-","-moz-","-o-","-ms-"],Pe={mixins:[w.a,E.a],data:function(){return{filtersVisible:!1,loadingTimeout:null,tileSources:{},viewer:null,zoomFactor:1.5}},computed:{cssFiltersSupported:function(){var e=document.createElement("a");return e.style.cssText=Se.join("filter:blur(2px);"),!!e.style.length&&(void 0===document.documentMode||document.documentMode>9)},filtersActive:function(){return Object.keys(this.$root.params.filters).length>0},isMinZoom:function(){return!this.viewer||this.viewer.viewport.getZoom()<=this.viewer.viewport.getMinZoom()},isMaxZoom:function(){return!this.viewer||this.viewer.viewport.getZoom()>=this.viewer.viewport.getMaxZoom()},isReset:function(){var e=this.viewer.viewport.getHomeBounds(),t=this.viewer.viewport.getBounds();return Math.abs(e.height-t.height)<1e-9&&Math.abs(e.width-t.width)<1e-9&&Math.abs(e.x-t.x)<1e-9&&Math.abs(e.y-t.y)<1e-9},saturation:function(){var e=this.$parent.$parent.params.filters.saturate;return"number"===typeof e?e:1}},watch:{"$root.params.pages":function(e,t){var n=e.length!==t.length;this.loadImageInfo(n)}},methods:{closeFilters:function(){this.filtersVisible=!1},initViewer:function(e){var t,n=this,i=this.$root.params,r=[],o=0,s=0;if(i.pages.forEach((function(e,i){var a=1;e<1?(a=0,t=i>0?n.$root.pageCount:1):t=e;var l=n.tileSources[t];if(l){o||(o=l.width);var c=l.width/o;r.push({opacity:a,tileSource:l,width:c,x:s}),s+=c+Te}})),this.viewer)return this.viewer.addOnceHandler("open",(function(){if(n.isReset||e)n.resetView();else{n.viewer.viewport.applyConstraints(!0);var t=n.viewer.viewport.getBounds();if(t.x<=0&&t.y<=0)return;var r=i.pages[0]?0:1;n.viewer.viewport.panTo({x:t.x>0?t.width/2+r:i.panX,y:t.y>0?t.height/2:i.panY})}})),void this.viewer.open(r);this.viewer=xe()({animationTime:.4,id:"tify-scan_image",immediateRender:this.$root.options.immediateRender,preload:!this.$root.isMobile(),preserveImageSizeOnResize:!0,preserveViewport:!0,showNavigationControl:!1,showZoomControl:!1,tileSources:r,visibilityRatio:.2}),this.viewer.gestureSettingsMouse.clickToZoom=!1,this.viewer.addHandler("animation-finish",(function(){if(n.isReset)n.removeScanParams();else{var e=n.viewer.viewport.getCenter();n.$root.updateParams({panX:Math.round(1e3*e.x)/1e3,panY:Math.round(1e3*e.y)/1e3,zoom:Math.round(1e3*n.viewer.viewport.getZoom())/1e3})}})),this.viewer.addHandler("canvas-click",(function(){document.body.click()})),this.viewer.addHandler("open",(function(){n.startLoadingWatch(),null!==i.panX&&null!==i.panY?(n.viewer.viewport.panTo({x:i.panX,y:i.panY},!0),n.viewer.viewport.zoomTo(i.zoom,null,!0)):n.viewer.viewport.goHome(),null!==i.rotation&&n.viewer.viewport.setRotation(i.rotation)})),this.viewer.addHandler("tile-load-failed",(function(e){n.$root.error="Error loading image: ".concat(e.message)}))},loadImageInfo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.stopLoadingWatch();var n=[];this.$root.params.pages.forEach((function(t){if(!(t<1||e.tileSources[t])){var i=e.$root.canvases[t-1].images[0].resource;if(i.service){var r=i.service["@id"],s="".concat(r).concat("/"===r.slice(-1)?"":"/","info.json");n.push(d.get(s).then((function(e){return o(o({},e),{},{page:t})}),(function(n){var i;n.response&&n.response.statusText?i=n.response.statusText:n.message&&(i=n.message),e.$root.error="Error loading info file for page ".concat(t).concat(i?": ".concat(i):"")})))}else e.tileSources[t]={type:"image",url:i["@id"],width:i.width,height:i.height}}})),n.length?Promise.all(n).then((function(n){n.forEach((function(t){t&&(e.tileSources[t.page]=t.data)})),e.initViewer(t)})):this.initViewer(t)},propagateKeyPress:function(e){if(0!==e.target.className.indexOf("openseadragon")){var t=this.$refs.image.querySelector(".openseadragon-canvas");if(t){var n=new e.constructor(e.type,e);Object.defineProperty(n,"keyCode",{get:function(){return e.keyCode}}),t.dispatchEvent(n)}}},resetFilters:function(){this.$refs.image.style.cssText="",this.$root.updateParams({filters:{}})},removeScanParams:function(){this.$root.updateParams({panX:null,panY:null,zoom:null})},resetView:function(e){e&&e.shiftKey&&(this.viewer.viewport.setRotation(0),this.$root.updateParams({rotation:null}),this.filtersActive&&this.resetFilters()),this.viewer.viewport.goHome(),this.removeScanParams()},rotateRight:function(e){var t=this.viewer.viewport,n=e&&e.shiftKey?0:(t.getRotation()+90)%360;t.setRotation(n),this.$root.updateParams({rotation:n||null})},setFilter:function(e,t){var n=t.target.valueAsNumber;1===n?this.$delete(this.$root.params.filters,e):this.$set(this.$root.params.filters,e,n),this.$root.updateParams({filters:this.$root.params.filters}),this.updateFilterStyle()},startLoadingWatch:function(){for(var e=0,t=this.viewer.world.getItemCount()-1;t>=0;t-=1){var n=this.viewer.world.getItemAt(t);n&&n._tilesLoading&&(e=1)}this.$root.loading=e,this.loadingTimeout=setTimeout(this.startLoadingWatch,200)},stopLoadingWatch:function(){clearTimeout(this.loadingTimeout)},updateFilterStyle:function(){var e=this;if(this.filtersActive&&this.cssFiltersSupported){var t=[];Object.keys(this.$root.params.filters).forEach((function(n){t.push("".concat(n,"(").concat(e.$root.params.filters[n],")"))}));var n=this.$refs.image,i=t.join(" ");n.style.cssText=Se.join("filter:".concat(i,";"))}},zoomIn:function(){this.viewer.viewport.zoomBy(this.zoomFactor)},zoomOut:function(){this.viewer.viewport.zoomBy(1/this.zoomFactor)}},mounted:function(){var e=this;this.loadImageInfo(),this.updateFilterStyle(),window.addEventListener("keydown",(function(t){"Escape"===t.key&&(e.filtersVisible=!1);var n=[45,48,96];t.shiftKey&&n.indexOf(t.keyCode)>-1&&e.resetView(t)})),window.addEventListener("keypress",(function(t){if(!e.preventKeyboardEvent(t))switch(t.key){case"r":case"R":e.rotateRight(t);break;case"i":e.filtersVisible=!e.filtersVisible,e.filtersVisible&&e.$nextTick((function(){e.$refs.firstSlider.focus()}));break;case"I":e.resetFilters();break;default:e.propagateKeyPress(t)}}))}},Ee=Pe,Ce=x(Ee,we,_e,!1,null,null,null),Re=Ce.exports,ke=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-thumbnails",on:{scroll:e.redrawThumbnails}},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Pages")))]),n("div",{ref:"container",staticClass:"tify-thumbnails_list"},e._l(e.items,(function(t){return n("a",{key:t.page,staticClass:"tify-thumbnails_item",class:{"-current":e.$root.params.pages.indexOf(t.page)>-1},attrs:{href:""},on:{click:function(n){return n.preventDefault(),e.setPageAndSwitchView(t.page,n.ctrlKey)},touchstart:function(n){return e.touchStartTogglePage(t.page)},touchend:e.touchEnd}},[n("img",{attrs:{alt:"",src:t.imgUrl}}),n("span",{staticClass:"tify-thumbnails_page"},[e._v(" "+e._s(t.page)+" : "+e._s(t.label)+" ")])])})),0)])},Oe=[],Ie=(n("a434"),n("6015")),Ae=n.n(Ie),$e=750,Le={mixins:[Ae.a],data:function(){return{itemHeight:0,itemVMargin:0,items:[{label:""}],itemsPerRow:0,knownImages:[],lastScrollTop:0,style:{},thumbnailWidth:0,touchTimer:null}},watch:{"$root.params.pages":function(e){var t=this;this.$nextTick((function(){var n=".tify-thumbnails_item.-current";e.length>2||e.length>1&&e[1]!==e[0]+1||(t.$refs.container.querySelector(n)?t.updateScrollPos(n):t.scrollToCurrentPage())}))},"$root.params.view":function(e){"thumbnails"===e&&this.updateDimensions()}},methods:{updateDimensions:function(){var e=this.$refs.container.querySelector(".tify-thumbnails_item"),t=e.currentStyle||window.getComputedStyle(e),n=parseInt(t.marginTop,10)+parseFloat(t.marginBottom,10);this.itemHeight=e.offsetHeight+n,this.itemVMargin=n;var i=parseInt(t.marginLeft,10)+parseFloat(t.marginRight,10),r=e.offsetWidth+i;this.thumbnailWidth=e.offsetWidth,this.itemsPerRow=Math.floor(this.$refs.container.clientWidth/r);var o=Math.ceil(this.$root.canvases.length/this.itemsPerRow),s=o*this.itemHeight;this.$refs.container.style.height="".concat(s,"px"),this.redrawThumbnails(),this.scrollToCurrentPage(!1)},init:function(){var e,t=this;this.updateDimensions(),this.scrollToCurrentPage(!1),window.addEventListener("resize",(function(){clearTimeout(e),e=setTimeout((function(){"thumbnails"===t.$root.params.view&&t.updateDimensions()}),200)}))},redrawThumbnails:function(){for(var e=this,t=this.$el.scrollTop,n=Math.floor(t/this.itemHeight)*this.itemsPerRow+1,i=Math.ceil(this.$el.offsetHeight/this.itemHeight),r=i*this.itemsPerRow,o=n+this.itemsPerRow+r,s=Math.min(this.$root.canvases.length,o),a=[],l=n-1;l<s;l+=1){var c=this.$root.canvases[l].images[0].resource;if(c.service){var u="http://iiif.io/api/image/2/context.json"===c.service["@context"]?"default":"native",h=c.service["@id"];a.push({label:this.$root.convertValueToArray(this.$root.canvases[l].label)[0],imgUrl:"".concat(h).concat("/"===h.slice(-1)?"":"/","full/").concat(this.thumbnailWidth,",/0/").concat(u,".jpg"),page:l+1})}else a.push({label:this.$root.convertValueToArray(this.$root.canvases[l].label)[0],imgUrl:c["@id"],page:l+1})}this.items=a,this.$nextTick((function(){var t=Math.floor(n/e.itemsPerRow);e.$refs.container.style.paddingTop="".concat(t*e.itemHeight,"px")}))},scrollToCurrentPage:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Math.floor((this.$root.params.pages[0]-1)/this.itemsPerRow),n=t*this.itemHeight+(this.itemVMargin-50);e?this.scrollTo(this.$el,n):this.$el.scrollTop=n},setPageAndSwitchView:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var n=this.$root.params.pages.slice(0),i=n.indexOf(e);return i<0?(n.push(e),n.sort((function(e,t){return e-t})),0===n[0]&&n.shift()):n.length>1&&n.splice(i,1),void this.$root.updateParams({pages:n})}this.$root.setPage(e),this.$root.isMobile()&&this.$root.updateParams({view:"scan"})},touchStartTogglePage:function(e){var t=this;this.lastScrollTop=this.$el.scrollTop,this.touchTimer=setTimeout((function(){t.$el.scrollTop===t.lastScrollTop&&t.setPageAndSwitchView(e,!0)}),$e)},touchEnd:function(){clearTimeout(this.touchTimer)}},mounted:function(){this.style.flex=this.$el.style.flex,"thumbnails"===this.$root.params.view&&this.init()}},De=Le,Me=x(De,ke,Oe,!1,null,null,null),Fe=Me.exports,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"tify-toc"},[n("h2",{staticClass:"tify-sr-only"},[e._v(e._s(e._f("trans")("Table of Contents")))]),e.hasChildStructures?n("div",{staticClass:"tify-toc_header"},[n("button",{staticClass:"tify-toc_toggle-all",on:{click:function(t){return e.$refs.children.toggleAllChildren(!0)}}},[e._v(" "+e._s(e._f("trans")("Expand all"))+" ")]),n("button",{staticClass:"tify-toc_toggle-all",on:{click:function(t){return e.$refs.children.toggleAllChildren(!1)}}},[e._v(" "+e._s(e._f("trans")("Collapse all"))+" ")])]):e._e(),e.isInited?n("toc-list",{ref:"children",attrs:{level:0,structures:e.structures}}):e._e()],1)},Ne=[],je=".tify-toc_structure.-current",He={mixins:[Ae.a,j],components:{TocList:B},data:function(){return{isInited:!1}},computed:{hasChildStructures:function(){return this.structures.some((function(e){return e.childStructures}))}},methods:{init:function(){var e=this;this.isInited=!0,this.$nextTick((function(){return e.updateScrollPos(je,!1)}))}},watch:{"$root.params.pages":function(){var e=this;this.$nextTick((function(){return e.updateScrollPos(je)}))},"$root.params.view":function(e){"toc"===e&&this.init()}},mounted:function(){"toc"===this.$root.params.view&&this.init()}},ze=He,Ve=x(ze,Be,Ne,!1,null,null,null),Ue=Ve.exports,We={components:{AppHeader:O,Export:W,Help:ie,Info:ye,Scan:Re,Thumbnails:Fe,Toc:Ue,Fulltext:Y},computed:{hasOtherContent:function(){return this.$root.canvases.some((function(e){return"otherContent"in e}))},hasToc:function(){return!(!this.$root.manifest.structures||!this.$root.manifest.structures.length)}},mounted:function(){var e=this;if(d.interceptors.request.use((function(t){return e.$root.loading+=1,t})),d.interceptors.response.use((function(t){return e.$root.loading>0&&(e.$root.loading-=1),t}),(function(t){return e.$root.loading=0,Promise.reject(t)})),this.$root.manifestUrl=this.$root.options.manifest||this.$root.getQueryParam("manifest")||this.$root.getQueryParam("manifestUrl"),this.$root.manifestUrl){if(this.$root.options.manifest&&this.$root.params.manifest)this.$root.error="Setting manifest via query parameter is disabled";else if(d.get(this.$root.manifestUrl).then((function(t){e.$root.manifest=t.data,e.$root.params=e.$root.getParams(),window.addEventListener("popstate",(function(){e.$root.params=e.$root.getParams()})),e.$root.options.title&&(window.document.title="".concat(e.$root.convertValueToArray(e.$root.manifest.label)[0])+" | ".concat(e.$root.options.title))}),(function(t){var n=t.response?t.response.statusText:t.message;e.$root.error="Sorry! We encountered an issue and can't zoom into the map right now: ".concat(n)})),"en"!==this.$root.options.language){var t="".concat(this.$root.base,"/translations/").concat(this.$root.options.language,".json");d.get(t).then((function(t){e.$root.messages=t.data}),(function(t){var n=t.response?t.response.statusText:t.message;e.$root.error="Error loading translation ".concat(e.$root.options.language,": ").concat(n),console.warn(e.$root.error)}))}}else this.$root.error="Missing query parameter or option: manifest"}},qe=We,Ge=(n("51f7"),x(qe,l,c,!1,null,null,null)),Ze=Ge.exports,Xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"tify-icon -"+e.name},[e._v(e._s(e.name))])},Ke=[],Ye={props:["name"]},Je=Ye,Qe=x(Je,Xe,Ke,!1,null,null,null),et=Qe.exports,tt=n("07d2"),nt=n.n(tt),it={methods:{convertValueToArray:function(e){var t=this,n=this.filterHtml;if(!(e instanceof Array)){if("object"===s(e)){if(e["@value"])return[n(e["@value"])];if(e["@id"]){var i=n(e["@id"]);return[{"@id":i,label:e.label?n(e.label):i}]}return["(Invalid value)"]}return[n(e)]}var r=[],o={};e.forEach((function(e){"string"===typeof e||e["@id"]&&e.label?r.push(e):e&&"object"!==s(e)?r.push(n(e)):e["@language"]&&e["@value"]&&(o.fallback||(o.fallback=e["@value"]),0===e["@language"].indexOf("en")?o.en=e["@value"]:e["@language"]===t.options.language&&(o.preferred=e["@value"]))}));var a=o.preferred||o.en||o.fallback||null;return a&&r.push(n(a)),r},filterHtml:function(e){var t=["a","b","br","i","img","p","span"],n={a:["href"],img:["alt","src"]},i=nt()(e,t),r=/<(\w+)((\s+.+?(\s*=\s*(?:".*?"|'.*?'|.*?|[\^'">\s]+))?)+\s*|\s*)>/g;return i=i.replace(r,(function(e,t,i){if(!i)return"<".concat(t,">");var r=/(?:([^\s]+)=(?:"(.*?)"|'(.*?)'))|([^\s]+)/g,o=[];return i.replace(r,(function(e,i){e!==i&&n[t]&&n[t].indexOf(i)>-1&&o.push(e)})),o.length>0?"<".concat(t," ").concat(o.join(" "),">"):"<".concat(t,">")})),i}}},rt=(n("4d63"),n("25f0"),n("6062"),n("466d"),{methods:{getParams:function(){var e,t={};try{t=JSON.parse(this.getQueryParam("tify"))||{}}catch(n){}return this.$root.isMobile()&&!t.view?t.view="scan":"undefined"===typeof t.view&&(t.view="info"),this.isValidPagesArray(t.pages)?e=t.pages:(t.pages&&(this.$root.error="Invalid pages, reset to first page"),e=[1]),{filters:t.filters||{},pages:e,panX:parseFloat(t.panX)||null,panY:parseFloat(t.panY)||null,rotation:parseInt(t.rotation,10)||null,view:t.view,zoom:parseFloat(t.zoom)||null}},setPage:function(e){var t=this.params.pages;if(t[0]%2<1&&(t[1]===t[0]+1||0===t[1])){var n=e%2>0?e-1:e;this.updateParams({pages:[n,n===this.pageCount?0:n+1]})}else this.updateParams({pages:[e]})},getQueryParam:function(e){var t=RegExp("[?&]".concat(e,"=([^&]*)")).exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g," "))},isValidPagesArray:function(e){if(!Array.isArray(e))return!1;if(new Set(e).size!==e.length)return!1;for(var t=0;t<e.length;t+=1)if(isNaN(e[t])||t>0&&e[t]>0&&e[t]<=e[t-1]||e[t]<0||e[t]>this.pageCount)return!1;return!0},updateParams:function(e){var t=this;Object.assign(this.params,e),window.history&&(clearTimeout(this.paramsTimeout),this.paramsTimeout=setTimeout((function(){var n={};Object.keys(t.params).forEach((function(e){var i=t.params[e];null===i||"pages"===e&&i.length<2&&i[0]<2||"object"===s(i)&&!Object.keys(i).length?delete n[e]:n[e]=t.params[e]}));var i=/([?&])tify=.*?(&|$)/,r="tify=".concat(JSON.stringify(n)),o=window.location.href,a=o.match(i)?o.replace(i,"$1".concat(r,"$2")):"".concat(o).concat(o.indexOf("?")<0?"?":"&").concat(r);e.pages?(t.error="",window.history.pushState({},"",a)):window.history.replaceState({},"",a)}),100))}}}),ot={methods:{isMobile:function(){return this.$root.$el.offsetWidth<this.$root.$data.options.breakpoints.medium},updateBreakpoint:function(){var e=this;Object.keys(this.options.breakpoints).forEach((function(t){e.$el.clientWidth<=e.options.breakpoints[t]?e.$el.classList.add("-".concat(t)):e.$el.classList.remove("-".concat(t))}))},appendStylesheet:function(e){var t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)}},mounted:function(){var e=this;this.options.stylesheet&&this.appendStylesheet(this.options.stylesheet),window.addEventListener("resize",(function(){e.updateBreakpoint()})),this.updateBreakpoint()}};a["a"].directive("click-outside",{bind:function(e,t,n){e.event=function(i){e===i.target||e.contains(i.target)||n.context[t.expression](i)},document.body.addEventListener("click",e.event)},unbind:function(e){document.body.removeEventListener("click",e.event)}}),a["a"].filter("trans",(function(e){return ft.messages?ft.messages[e]?ft.messages[e]:("en"!==ft.options.language&&console.warn('Missing translation for "'.concat(e,'"')),e):e}));var st,at;n("161e");if(a["a"].component("Icon",et),window.tifyOptions){if("object"!==s(window.tifyOptions))throw new Error("tifyOptions must be an object");Object.keys(window.tifyOptions).forEach((function(e){switch(e){case"breakpoints":if("object"!==("undefined"===typeof breakpoints?"undefined":s(breakpoints)))throw new Error("TIFY option ".concat(e," must be an object (keys: breakpoint names, values: widths in px)"));break;case"container":if("string"!==typeof window.tifyOptions[e]&&!(window.tifyOptions[e]instanceof HTMLElement))throw new Error("TIFY option ".concat(e," must be a string or an HTMLElement"));break;case"immediateRender":case"init":if("boolean"!==typeof window.tifyOptions[e])throw new Error('TIFY option "'.concat(e,'" must be boolean'));break;case"language":if("string"!==typeof window.tifyOptions[e])throw new Error('TIFY option "'.concat(e,'" must be a string'));break;case"title":case"manifest":case"stylesheet":if("string"!==typeof window.tifyOptions[e]&&null!==window.tifyOptions[e])throw new Error('TIFY option "'.concat(e,'" must be a string (URL) or null'));break;default:throw new Error('Unknown TIFY option: "'.concat(e,'"'))}}))}var lt=document.getElementsByTagName("script"),ct=lt[lt.length-1];st=ct.src.substring(0,ct.src.lastIndexOf("/")),at="".concat(st,"/tify.css");var ut=o({breakpoints:{large:1300,medium:1e3,small:700,tiny:359},container:"#tify",immediateRender:!0,init:!0,language:"en",manifest:null,stylesheet:at,title:"TIFY"},window.tifyOptions),ht=new a["a"]({render:function(e){return e(Ze)},data:{base:st,error:"",loading:0,manifest:null,manifestUrl:"",messages:null,options:ut,params:{},paramsTimer:null},mixins:[ot,rt,it],computed:{canvases:function(){return this.manifest.sequences[0].canvases},pageCount:function(){return this.manifest.sequences[0].canvases.length}}});ht.init=function(){var e="string"===typeof ut.container?document.querySelector(ut.container):ut.container;if(e){var t=document.createElement("div");e.appendChild(t),ht.$mount(t)}},ut.init&&ht.init(),window.Tify=ht;var ft=t["default"]=ht},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),o=n("7418"),s=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=o.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r=n("5899"),o="["+r+"]",s=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5fb2":function(e,t,n){"use strict";var i=2147483647,r=36,o=1,s=26,a=38,l=700,c=72,u=128,h="-",f=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",v=r-o,g=Math.floor,m=String.fromCharCode,y=function(e){var t=[],n=0,i=e.length;while(n<i){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t},w=function(e){return e+22+75*(e<26)},_=function(e,t,n){var i=0;for(e=n?g(e/l):e>>1,e+=g(e/t);e>v*s>>1;i+=r)e=g(e/v);return g(i+(v+1)*e/(e+a))},b=function(e){var t=[];e=y(e);var n,a,l=e.length,f=u,d=0,v=c;for(n=0;n<e.length;n++)a=e[n],a<128&&t.push(m(a));var b=t.length,x=b;b&&t.push(h);while(x<l){var T=i;for(n=0;n<e.length;n++)a=e[n],a>=f&&a<T&&(T=a);var S=x+1;if(T-f>g((i-d)/S))throw RangeError(p);for(d+=(T-f)*S,f=T,n=0;n<e.length;n++){if(a=e[n],a<f&&++d>i)throw RangeError(p);if(a==f){for(var P=d,E=r;;E+=r){var C=E<=v?o:E>=v+s?s:E-v;if(P<C)break;var R=P-C,k=r-C;t.push(m(w(C+R%k))),P=g(R/k)}t.push(m(w(P))),v=_(d,S,x==b),d=0,++x}}++d,++f}return t.join("")};e.exports=function(e){var t,n,i=[],r=e.toLowerCase().replace(d,".").split(".");for(t=0;t<r.length;t++)n=r[t],i.push(f.test(n)?"xn--"+b(n):n);return i.join(".")}},6015:function(e,t,n){n("4160"),n("159b"),e.exports={methods:{updateScrollPos:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.$el.querySelectorAll(e);if(n.length){var i=n[0],r=n[n.length-1];Array.prototype.forEach.call(n,(function(e){e.dataset.level>i.dataset.level&&(i=e)}));var o=this.$el.getBoundingClientRect(),s=i.getBoundingClientRect(),a=r.getBoundingClientRect();if(s.top<o.top){var l=s.top-o.top+this.$el.scrollTop;this.scrollTo(this.$el,l-50,t)}else if(a.bottom>o.bottom){var c=a.bottom-o.bottom+this.$el.scrollTop;this.scrollTo(this.$el,c+50,t)}}},scrollTo:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:120,r=e,o=!0===i?120:i;if(!o||o<0)r.scrollTop=t;else{var s=t-e.scrollTop,a=s/o/.1;setTimeout((function(){r.scrollTop+=a,r.scrollTop!==t&&n.scrollTo(r,t,o-10)}),10)}}}}},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},6062:function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),o=n("df75"),s=n("7418"),a=n("d1e7"),l=n("7b0b"),c=n("44ad"),u=Object.assign,h=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=r}))?function(e,t){var n=l(e),r=arguments.length,u=1,h=s.f,f=a.f;while(r>u){var d,p=c(arguments[u++]),v=h?o(p).concat(h(p)):o(p),g=v.length,m=0;while(g>m)d=v[m++],i&&!f.call(p,d)||(n[d]=p[d])}return n}:u},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),o=function(e){return function(t,n){var o,s,a=String(r(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),o=n("e2cc"),s=n("0366"),a=n("19aa"),l=n("2266"),c=n("7dd0"),u=n("2626"),h=n("83ab"),f=n("f183").fastKey,d=n("69f3"),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){a(e,u,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=i&&l(i,e[c],{that:e,AS_ENTRIES:n})})),d=v(t),g=function(e,t,n){var i,r,o=d(e),s=m(e,t);return s?s.value=n:(o.last=s={index:r=f(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=s),i&&(i.next=s),h?o.size++:e.size++,"F"!==r&&(o.index[r]=s)),e},m=function(e,t){var n,i=d(e),r=f(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){var e=this,t=d(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,n=d(t),i=m(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),h?n.size--:t.size--}return!!i},forEach:function(e){var t,n=d(this),i=s(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),o(u.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&i(u.prototype,"size",{get:function(){return d(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=v(t),o=v(i);c(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"65e9":function(e,t,n){n("c975"),n("a15b"),n("a9e3"),n("ac1f"),n("466d"),n("5319"),n("498a"),function(e){function t(e){var t=["http://library.stanford.edu/iiif/image-api/compliance.html#level0","http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0","http://iiif.io/api/image/2/level0.json"],n=-1!==t.indexOf(e[0]),i=!1;return e.length>1&&e[1].supports&&(i=-1!==e[1].supports.indexOf("sizeByW")),!n||i}function n(e){for(var t=[],n=0;n<e.sizes.length;n++)t.push({url:e["@id"]+"/full/"+e.sizes[n].width+",/0/default."+e.tileFormat,width:e.sizes[n].width,height:e.sizes[n].height});return t.sort((function(e,t){return e.width-t.width}))}function i(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,i=n.tagName,o=null;if("info"==i)try{return o={},r(n,o),o}catch(s){throw s instanceof Error?s:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}function r(t,n,i){var o,s;if(3==t.nodeType&&i)s=t.nodeValue.trim(),s.match(/^\d*$/)&&(s=Number(s)),n[i]?(e.isArray(n[i])||(n[i]=[n[i]]),n[i].push(s)):n[i]=s;else if(1==t.nodeType)for(o=0;o<t.childNodes.length;o++)r(t.childNodes[o],n,t.nodeName)}e.IIIFTileSource=function(i){if(e.extend(!0,this,i),!(this.height&&this.width&&this["@id"]))throw new Error("IIIF required parameters not provided.");if(i.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.tile_width&&this.tile_height)i.tileWidth=this.tile_width,i.tileHeight=this.tile_height;else if(this.tile_width)i.tileSize=this.tile_width;else if(this.tile_height)i.tileSize=this.tile_height;else if(this.tiles)if(1==this.tiles.length)i.tileWidth=this.tiles[0].width,i.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var r=0;r<this.tiles.length;r++)for(var o=0;o<this.tiles[r].scaleFactors.length;o++){var s=this.tiles[r].scaleFactors[o];this.scale_factors.push(s),i.tileSizePerScaleFactor[s]={width:this.tiles[r].width,height:this.tiles[r].height||this.tiles[r].width}}}else if(t(i.profile)){for(var a=Math.min(this.height,this.width),l=[256,512,1024],c=[],u=0;u<l.length;u++)l[u]<=a&&c.push(l[u]);c.length>0?i.tileSize=Math.max.apply(null,c):i.tileSize=a}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,i.levels=n(this),e.extend(!0,i,{width:i.levels[i.levels.length-1].width,height:i.levels[i.levels.length-1].height,tileSize:Math.max(i.height,i.width),tileOverlap:0,minLevel:0,maxLevel:i.levels.length-1}),this.levels=i.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!i.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var h=Math.max.apply(null,this.scale_factors);i.maxLevel=Math.round(Math.log(h)*Math.LOG2E)}else i.maxLevel=Number(Math.ceil(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[i])},e.extend(e.IIIFTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return!(!e.protocol||"http://iiif.io/api/image"!=e.protocol)||(!(!e["@context"]||"http://library.stanford.edu/iiif/image-api/1.1/context.json"!=e["@context"]&&"http://iiif.io/api/image/1/context.json"!=e["@context"])||(!(!e.profile||0!==e.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html"))||(!!(e.identifier&&e.width&&e.height)||!(!e.documentElement||"info"!=e.documentElement.tagName||"http://library.stanford.edu/iiif/image-api/ns/"!=e.documentElement.namespaceURI))))},configure:function(t,n){if(e.isPlainObject(t)){if(t["@context"]||(t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=n.replace("/info.json","")),t.preferredFormats)for(var r=0;r<t.preferredFormats.length;r++)if(OpenSeadragon.imageFormatSupported(t.preferredFormats[r])){t.tileFormat=t.preferredFormats[r];break}return t}var o=i(t);return o["@context"]="http://iiif.io/api/image/1.0/context.json",o["@id"]=n.replace("/info.xml",""),o},getTileWidth:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileWidth.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].width:this._tileWidth},getTileHeight:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileHeight.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].height:this._tileHeight},getLevelScale:function(t){if(this.emulateLegacyImagePyramid){var n=NaN;return this.levels.length>0&&t>=this.minLevel&&t<=this.maxLevel&&(n=this.levels[t].width/this.levels[this.maxLevel].width),n}return e.TileSource.prototype.getLevelScale.call(this,t)},getNumTiles:function(t){if(this.emulateLegacyImagePyramid){var n=this.getLevelScale(t);return n?new e.Point(1,1):new e.Point(0,0)}return e.TileSource.prototype.getNumTiles.call(this,t)},getTileAtPoint:function(t,n){return this.emulateLegacyImagePyramid?new e.Point(0,0):e.TileSource.prototype.getTileAtPoint.call(this,t,n)},getTileUrl:function(e,t,n){if(this.emulateLegacyImagePyramid){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}var r,o,s,a,l,c,u,h,f,d,p,v,g,m,y="0",w=Math.pow(.5,this.maxLevel-e),_=Math.ceil(this.width*w),b=Math.ceil(this.height*w);return r=this.getTileWidth(e),o=this.getTileHeight(e),s=Math.ceil(r/w),a=Math.ceil(o/w),m=this["@context"].indexOf("/1.0/context.json")>-1||this["@context"].indexOf("/1.1/context.json")>-1||this["@context"].indexOf("/1/context.json")>-1,v=m?"native."+this.tileFormat:"default."+this.tileFormat,_<r&&b<o?(d=m||_!==this.width?_+",":"max",l="full"):(c=t*s,u=n*a,h=Math.min(s,this.width-c),f=Math.min(a,this.height-u),l=0===t&&0===n&&h===this.width&&f===this.height?"full":[c,u,h,f].join(","),p=Math.ceil(h*w),d=m||p!==this.width?p+",":"max"),g=[this["@id"],l,d,y,v].join("/"),g}})}(OpenSeadragon)},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),s=o("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[s],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var i,r,o,s=n("7f9a"),a=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),h=n("c6cd"),f=n("f772"),d=n("d012"),p=a.WeakMap,v=function(e){return o(e)?r(e):i(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s){var m=h.state||(h.state=new p),y=m.get,w=m.has,_=m.set;i=function(e,t){return t.facade=e,_.call(m,e,t),t},r=function(e){return y.call(m,e)||{}},o=function(e){return w.call(m,e)}}else{var b=f("state");d[b]=!0,i=function(e,t){return t.facade=e,c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:i,get:r,has:o,enforce:v,getterFor:g}},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("94ca"),s=n("6eeb"),a=n("f183"),l=n("2266"),c=n("19aa"),u=n("861d"),h=n("d039"),f=n("1c7e"),d=n("d44e"),p=n("7156");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),m=v?"set":"add",y=r[e],w=y&&y.prototype,_=y,b={},x=function(e){var t=w[e];s(w,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(g||w.forEach&&!h((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,v,m),a.REQUIRED=!0;else if(o(e,!0)){var T=new _,S=T[m](g?{}:-0,1)!=T,P=h((function(){T.has(1)})),E=f((function(e){new y(e)})),C=!g&&h((function(){var e=new y,t=5;while(t--)e[m](t,t);return!e.has(-0)}));E||(_=t((function(t,n){c(t,_,e);var i=p(new y,t,_);return void 0!=n&&l(n,i[m],{that:i,AS_ENTRIES:v}),i})),_.prototype=w,w.constructor=_),(P||C)&&(x("delete"),x("has"),v&&x("get")),(C||S)&&x(m),g&&w.clear&&delete w.clear}return b[e]=_,i({global:!0,forced:_!=y},b),d(_,e),g||n.setStrong(_,e,v),_}},"6d82":function(e,t){(function(e){e.Rect=function(t,n,i,r,o){var s,a;this.x="number"===typeof t?t:0,this.y="number"===typeof n?n:0,this.width="number"===typeof i?i:0,this.height="number"===typeof r?r:0,this.degrees="number"===typeof o?o:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(s=this.getTopRight(),this.x=s.x,this.y=s.y,a=this.height,this.height=this.width,this.width=a,this.degrees-=270):this.degrees>=180?(s=this.getBottomRight(),this.x=s.x,this.y=s.y,this.degrees-=180):this.degrees>=90&&(s=this.getBottomLeft(),this.x=s.x,this.y=s.y,a=this.height,this.height=this.width,this.width=a,this.degrees-=90)},e.Rect.fromSummits=function(t,n,i){var r=t.distanceTo(n),o=t.distanceTo(i),s=n.minus(t),a=Math.atan(s.y/s.x);return s.x<0?a+=Math.PI:s.y<0&&(a+=2*Math.PI),new e.Rect(t.x,t.y,r,o,a/Math.PI*180)},e.Rect.prototype={clone:function(){return new e.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new e.Point(this.x,this.y)},getBottomRight:function(){return new e.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new e.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new e.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new e.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new e.Point(this.width,this.height)},equals:function(t){return t instanceof e.Rect&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.degrees===t.degrees},times:function(t){return new e.Rect(this.x*t,this.y*t,this.width*t,this.height*t,this.degrees)},translate:function(t){return new e.Rect(this.x+t.x,this.y+t.y,this.width,this.height,this.degrees)},union:function(t){var n=this.getBoundingBox(),i=t.getBoundingBox(),r=Math.min(n.x,i.x),o=Math.min(n.y,i.y),s=Math.max(n.x+n.width,i.x+i.width),a=Math.max(n.y+n.height,i.y+i.height);return new e.Rect(r,o,s-r,a-o)},intersection:function(t){var n=1e-10,i=[],r=this.getTopLeft();t.containsPoint(r,n)&&i.push(r);var o=this.getTopRight();t.containsPoint(o,n)&&i.push(o);var s=this.getBottomLeft();t.containsPoint(s,n)&&i.push(s);var a=this.getBottomRight();t.containsPoint(a,n)&&i.push(a);var l=t.getTopLeft();this.containsPoint(l,n)&&i.push(l);var c=t.getTopRight();this.containsPoint(c,n)&&i.push(c);var u=t.getBottomLeft();this.containsPoint(u,n)&&i.push(u);var h=t.getBottomRight();this.containsPoint(h,n)&&i.push(h);for(var f=this._getSegments(),d=t._getSegments(),p=0;p<f.length;p++)for(var v=f[p],g=0;g<d.length;g++){var m=d[g],y=w(v[0],v[1],m[0],m[1]);y&&i.push(y)}function w(t,i,r,o){var s=i.minus(t),a=o.minus(r),l=-a.x*s.y+s.x*a.y;if(0===l)return null;var c=(s.x*(t.y-r.y)-s.y*(t.x-r.x))/l,u=(a.x*(t.y-r.y)-a.y*(t.x-r.x))/l;return-n<=c&&c<=1-n&&-n<=u&&u<=1-n?new e.Point(t.x+u*s.x,t.y+u*s.y):null}if(0===i.length)return null;for(var _=i[0].x,b=i[0].x,x=i[0].y,T=i[0].y,S=1;S<i.length;S++){var P=i[S];P.x<_&&(_=P.x),P.x>b&&(b=P.x),P.y<x&&(x=P.y),P.y>T&&(T=P.y)}return new e.Rect(_,x,b-_,T-x)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),i=this.getBottomRight();return[[e,t],[t,i],[i,n],[n,e]]},rotate:function(t,n){if(t=e.positiveModulo(t,360),0===t)return this.clone();n=n||this.getCenter();var i=this.getTopLeft().rotate(t,n),r=this.getTopRight().rotate(t,n),o=r.minus(i);o=o.apply((function(e){var t=1e-15;return Math.abs(e)<t?0:e}));var s=Math.atan(o.y/o.x);return o.x<0?s+=Math.PI:o.y<0&&(s+=2*Math.PI),new e.Rect(i.x,i.y,this.width,this.height,s/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),n=this.getTopRight(),i=this.getBottomLeft(),r=this.getBottomRight(),o=Math.min(t.x,n.x,i.x,r.x),s=Math.max(t.x,n.x,i.x,r.x),a=Math.min(t.y,n.y,i.y,r.y),l=Math.max(t.y,n.y,i.y,r.y);return new e.Rect(o,a,s-o,l-a)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),i=Math.floor(t.y),r=Math.ceil(t.width+t.x-n),o=Math.ceil(t.height+t.y-i);return new e.Rect(n,i,r,o)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),i=this.getTopRight(),r=this.getBottomLeft(),o=i.minus(n),s=r.minus(n);return(e.x-n.x)*o.x+(e.y-n.y)*o.y>=-t&&(e.x-i.x)*o.x+(e.y-i.y)*o.y<=t&&(e.x-n.x)*s.x+(e.y-n.y)*s.y>=-t&&(e.x-r.x)*s.x+(e.y-r.y)*s.y<=t},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)},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),o=n("5135"),s=n("ce4e"),a=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,a){var l,c=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),l=u(n),l.source||(l.source=h.join("string"==typeof t?t:""))),e!==i?(c?!d&&e[t]&&(f=!0):delete e[t],f?e[t]=n:r(e,t,n)):f?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},"6f53":function(e,t,n){var i=n("83ab"),r=n("df75"),o=n("fc6a"),s=n("d1e7").f,a=function(e){return function(t){var n,a=o(t),l=r(a),c=l.length,u=0,h=[];while(c>u)n=l[u++],i&&!s.call(a,n)||h.push(e?[n,a[n]]:a[n]);return h}};e.exports={entries:a(!0),values:a(!1)}},7037:function(e,t,n){function i(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=i=function(e){return typeof e}:e.exports=i=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i},"704b":function(e,t,n){},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var o,s;return r&&"function"==typeof(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&r(e,s),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),r=n("5135"),o=n("e538"),s=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||s(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,r=n("825a"),o=n("37e8"),s=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),h=">",f="<",d="prototype",p="script",v=u("IE_PROTO"),g=function(){},m=function(e){return f+p+h+e+f+"/"+p+h},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},_=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=i?y(i):w();var e=s.length;while(e--)delete _[d][s[e]];return _()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[d]=r(e),n=new g,g[d]=null,n[v]=e):n=_(),void 0===t?n:o(n,t)}},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),o=n("e163"),s=n("d2bb"),a=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),h=n("c430"),f=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=u("iterator"),m="keys",y="values",w="entries",_=function(){return this};e.exports=function(e,t,n,u,d,b,x){r(n,t,u);var T,S,P,E=function(e){if(e===d&&I)return I;if(!v&&e in k)return k[e];switch(e){case m:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case w:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",R=!1,k=e.prototype,O=k[g]||k["@@iterator"]||d&&k[d],I=!v&&O||E(d),A="Array"==t&&k.entries||O;if(A&&(T=o(A.call(new e)),p!==Object.prototype&&T.next&&(h||o(T)===p||(s?s(T,p):"function"!=typeof T[g]&&l(T,g,_)),a(T,C,!0,!0),h&&(f[C]=_))),d==y&&O&&O.name!==y&&(R=!0,I=function(){return O.call(this)}),h&&!x||k[g]===I||l(k,g,I),f[t]=I,d)if(S={values:E(y),keys:b?I:E(m),entries:E(w)},x)for(P in S)(v||R||!(P in k))&&c(k,P,S[P]);else i({target:t,proto:!0,forced:v||R},S);return S}},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;e.exports="function"===typeof o&&/native code/.test(r(o))},"81b1":function(e,t){(function(e){function t(e,t,i,r,o,s,a,l,c){var u=a.getBoundingBox().getTopLeft(),h=a.getBoundingBox().getBottomRight();e.viewer&&e.viewer.raiseEvent("update-level",{tiledImage:e,havedrawn:t,level:r,opacity:o,visibility:s,drawArea:a,topleft:u,bottomright:h,currenttime:l,best:c}),f(e.coverage,r),f(e.loadingCoverage,r);for(var d=e._getCornerTiles(r,u,h),p=d.topLeft,v=d.bottomRight,g=e.source.getNumTiles(r),m=e.viewport.pixelFromPoint(e.viewport.getCenter()),y=p.x;y<=v.x;y++)for(var w=p.y;w<=v.y;w++){if(!e.wrapHorizontal&&!e.wrapVertical){var _=e.source.getTileBounds(r,y,w);if(null===a.intersection(_))continue}c=n(e,i,t,y,w,r,o,s,m,g,l,c)}return c}function n(e,t,n,r,o,c,f,p,v,g,m,y){var w=i(r,o,c,e,e.source,e.tilesMatrix,m,g,e._worldWidthCurrent,e._worldHeightCurrent),_=n;e.viewer&&e.viewer.raiseEvent("update-tile",{tiledImage:e,tile:w}),h(e.coverage,c,r,o,!1);var b=w.loaded||w.loading||u(e.loadingCoverage,c,r,o);if(h(e.loadingCoverage,c,r,o,b),!w.exists)return y;if(t&&!_&&(u(e.coverage,c,r,o)?h(e.coverage,c,r,o,!0):_=!0),!_)return y;if(a(w,e.source.tileOverlap,e.viewport,v,p,e),!w.loaded)if(w.context2D)s(e,w);else{var x=e._tileCache.getImageRecord(w.cacheKey);if(x){var T=x.getImage();s(e,w,T)}}if(w.loaded){var S=l(e,w,r,o,c,f,m);S&&(e._needsDraw=!0)}else w.loading?e._tilesLoading++:b||(y=d(y,w));return y}function i(t,n,i,r,o,s,a,l,c,u){var h,f,d,p,v,g,m,y,w;return s[i]||(s[i]={}),s[i][t]||(s[i][t]={}),s[i][t][n]||(h=(l.x+t%l.x)%l.x,f=(l.y+n%l.y)%l.y,d=o.getTileBounds(i,h,f),p=o.getTileBounds(i,h,f,!0),v=o.tileExists(i,h,f),g=o.getTileUrl(i,h,f),r.loadTilesWithAjax?(m=o.getTileAjaxHeaders(i,h,f),e.isPlainObject(r.ajaxHeaders)&&(m=e.extend({},r.ajaxHeaders,m))):m=null,y=o.getContext2D?o.getContext2D(i,h,f):void 0,d.x+=(t-h)/l.x,d.y+=u/c*((n-f)/l.y),w=new e.Tile(i,t,n,d,v,g,y,r.loadTilesWithAjax,m,p),h===l.x-1&&(w.isRightMost=!0),f===l.y-1&&(w.isBottomMost=!0),s[i][t][n]=w),w=s[i][t][n],w.lastTouchTime=a,w}function r(e,t,n){t.loading=!0,e._imageLoader.addJob({src:t.url,loadWithAjax:t.loadWithAjax,ajaxHeaders:t.ajaxHeaders,crossOriginPolicy:e.crossOriginPolicy,ajaxWithCredentials:e.ajaxWithCredentials,callback:function(i,r,s){o(e,t,n,i,r,s)},abort:function(){t.loading=!1}})}function o(t,n,i,r,o,a){if(!r)return e.console.log("Tile %s failed to load: %s - error: %s",n,n.url,o),t.viewer.raiseEvent("tile-load-failed",{tile:n,tiledImage:t,time:i,message:o,tileRequest:a}),n.loading=!1,void(n.exists=!1);if(i<t.lastResetTime)return e.console.log("Ignoring tile %s loaded before reset: %s",n,n.url),void(n.loading=!1);var l=function(){var e=t.source.getClosestLevel();s(t,n,r,e,a)};t._midDraw?window.setTimeout(l,1):l()}function s(e,t,n,i,r){var o=0;function s(){return o++,a}function a(){o--,0===o&&(t.loading=!1,t.loaded=!0,t.context2D||e._tileCache.cacheTile({image:n,tile:t,cutoff:i,tiledImage:e}),e._needsDraw=!0)}e.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:e,tileRequest:r,image:n,getCompletionCallback:s}),s()()}function a(t,n,i,r,o,s){var a=t.bounds.getTopLeft();a.x*=s._scaleSpring.current.value,a.y*=s._scaleSpring.current.value,a.x+=s._xSpring.current.value,a.y+=s._ySpring.current.value;var l=t.bounds.getSize();l.x*=s._scaleSpring.current.value,l.y*=s._scaleSpring.current.value;var c=i.pixelFromPointNoRotate(a,!0),u=i.pixelFromPointNoRotate(a,!1),h=i.deltaPixelsFromPointsNoRotate(l,!0),f=i.deltaPixelsFromPointsNoRotate(l,!1),d=u.plus(f.divide(2)),p=r.squaredDistanceTo(d);n||(h=h.plus(new e.Point(1,1))),t.isRightMost&&s.wrapHorizontal&&(h.x+=.75),t.isBottomMost&&s.wrapVertical&&(h.y+=.75),t.position=c,t.size=h,t.squaredDistance=p,t.visibility=o}function l(e,t,n,i,r,o,s){var a,l,c=1e3*e.blendTime;if(t.blendStart||(t.blendStart=s),a=s-t.blendStart,l=c?Math.min(1,a/c):1,e.alwaysBlend&&(l*=o),t.opacity=l,e.lastDrawn.push(t),1===l)h(e.coverage,r,n,i,!0),e._hasOpaqueTile=!0;else if(a<c)return!0;return!1}function c(e,t,n,i){var r,o,s,a;if(!e[t])return!1;if(void 0===n||void 0===i){for(s in r=e[t],r)if(r.hasOwnProperty(s))for(a in o=r[s],o)if(o.hasOwnProperty(a)&&!o[a])return!1;return!0}return void 0===e[t][n]||void 0===e[t][n][i]||!0===e[t][n][i]}function u(e,t,n,i){return void 0===n||void 0===i?c(e,t+1):c(e,t+1,2*n,2*i)&&c(e,t+1,2*n,2*i+1)&&c(e,t+1,2*n+1,2*i)&&c(e,t+1,2*n+1,2*i+1)}function h(t,n,i,r,o){t[n]?(t[n][i]||(t[n][i]={}),t[n][i][r]=o):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",n)}function f(e,t){e[t]={}}function d(e,t){return e?t.visibility>e.visibility||t.visibility==e.visibility&&t.squaredDistance<e.squaredDistance?t:e:t}function p(t,n){if(0!==t.opacity&&(0!==n.length||t.placeholderFillStyle)){var i,r,o,s=n[0];s&&(i=t.opacity<1||t.compositeOperation&&"source-over"!==t.compositeOperation||!t._isBottomItem()&&s._hasTransparencyChannel());var a,l=t.viewport.getZoom(!0),c=t.viewportToImageZoom(l);n.length>1&&c>t.smoothTileEdgesMinZoom&&!t.iOSDevice&&t.getRotation(!0)%360===0&&e.supportsCanvas&&(i=!0,r=s.getScaleForEdgeSmoothing(),o=s.getTranslationForEdgeSmoothing(r,t._drawer.getCanvasSize(!1),t._drawer.getCanvasSize(!0))),i&&(r||(a=t.viewport.viewportToViewerElementRectangle(t.getClippedBounds(!0)).getIntegerBoundingBox().times(e.pixelDensityRatio),t._drawer.viewer.viewport.getFlip()&&(0===t.viewport.degrees&&t.getRotation(!0)%360===0||(a.x=t._drawer.viewer.container.clientWidth-(a.x+a.width)))),t._drawer._clear(!0,a)),r||(0!==t.viewport.degrees&&t._drawer._offsetForRotation({degrees:t.viewport.degrees,useSketch:i}),t.getRotation(!0)%360!==0&&t._drawer._offsetForRotation({degrees:t.getRotation(!0),point:t.viewport.pixelFromPointNoRotate(t._getRotationPoint(!0),!0),useSketch:i}),0===t.viewport.degrees&&t.getRotation(!0)%360===0&&t._drawer.viewer.viewport.getFlip()&&t._drawer._flip());var u=!1;if(t._clip){t._drawer.saveContext(i);var h=t.imageToViewportRectangle(t._clip,!0);h=h.rotate(-t.getRotation(!0),t._getRotationPoint(!0));var f=t._drawer.viewportToDrawerRectangle(h);r&&(f=f.times(r)),o&&(f=f.translate(o)),t._drawer.setClip(f,i),u=!0}if(t.placeholderFillStyle&&!1===t._hasOpaqueTile){var d=t._drawer.viewportToDrawerRectangle(t.getBounds(!0));r&&(d=d.times(r)),o&&(d=d.translate(o));var p=null;p="function"===typeof t.placeholderFillStyle?t.placeholderFillStyle(t,t._drawer.context):t.placeholderFillStyle,t._drawer.drawRectangle(d,p,i)}for(var g=n.length-1;g>=0;g--)s=n[g],t._drawer.drawTile(s,t._drawingHandler,i,r,o),s.beingDrawn=!0,t.viewer&&t.viewer.raiseEvent("tile-drawn",{tiledImage:t,tile:s});u&&t._drawer.restoreContext(i),r||(t.getRotation(!0)%360!==0&&t._drawer._restoreRotationChanges(i),0!==t.viewport.degrees&&t._drawer._restoreRotationChanges(i)),i&&(r&&(0!==t.viewport.degrees&&t._drawer._offsetForRotation({degrees:t.viewport.degrees,useSketch:!1}),t.getRotation(!0)%360!==0&&t._drawer._offsetForRotation({degrees:t.getRotation(!0),point:t.viewport.pixelFromPointNoRotate(t._getRotationPoint(!0),!0),useSketch:!1})),t._drawer.blendSketch({opacity:t.opacity,scale:r,translate:o,compositeOperation:t.compositeOperation,bounds:a}),r&&(t.getRotation(!0)%360!==0&&t._drawer._restoreRotationChanges(!1),0!==t.viewport.degrees&&t._drawer._restoreRotationChanges(!1))),r||0===t.viewport.degrees&&t.getRotation(!0)%360===0&&t._drawer.viewer.viewport.getFlip()&&t._drawer._flip(),v(t,n)}}function v(t,n){if(t.debugMode)for(var i=n.length-1;i>=0;i--){var r=n[i];try{t._drawer.drawDebugInfo(r,n.length,i,t)}catch(o){e.console.error(o)}}}e.TiledImage=function(t){var n=this;e.console.assert(t.tileCache,"[TiledImage] options.tileCache is required"),e.console.assert(t.drawer,"[TiledImage] options.drawer is required"),e.console.assert(t.viewer,"[TiledImage] options.viewer is required"),e.console.assert(t.imageLoader,"[TiledImage] options.imageLoader is required"),e.console.assert(t.source,"[TiledImage] options.source is required"),e.console.assert(!t.clip||t.clip instanceof e.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),e.EventSource.call(this),this._tileCache=t.tileCache,delete t.tileCache,this._drawer=t.drawer,delete t.drawer,this._imageLoader=t.imageLoader,delete t.imageLoader,t.clip instanceof e.Rect&&(this._clip=t.clip.clone()),delete t.clip;var i=t.x||0;delete t.x;var r=t.y||0;delete t.y,this.normHeight=t.source.dimensions.y/t.source.dimensions.x,this.contentAspectX=t.source.dimensions.x/t.source.dimensions.y;var o=1;t.width?(o=t.width,delete t.width,t.height&&(e.console.error("specifying both width and height to a tiledImage is not supported"),delete t.height)):t.height&&(o=t.height/this.normHeight,delete t.height);var s=t.fitBounds;delete t.fitBounds;var a=t.fitBoundsPlacement||OpenSeadragon.Placement.CENTER;delete t.fitBoundsPlacement;var l=t.degrees||0;delete t.degrees,e.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,immediateRender:e.DEFAULT_SETTINGS.immediateRender,blendTime:e.DEFAULT_SETTINGS.blendTime,alwaysBlend:e.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:e.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:e.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:e.DEFAULT_SETTINGS.iOSDevice,debugMode:e.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:e.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:e.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:e.DEFAULT_SETTINGS.placeholderFillStyle,opacity:e.DEFAULT_SETTINGS.opacity,preload:e.DEFAULT_SETTINGS.preload,compositeOperation:e.DEFAULT_SETTINGS.compositeOperation},t),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:l,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),s&&this.fitBounds(s,a,!0),this._drawingHandler=function(t){n.viewer.raiseEvent("tile-drawing",e.extend({tiledImage:n},t))}},e.extend(e.TiledImage.prototype,e.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(e){e!==this._fullyLoaded&&(this._fullyLoaded=e,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=e.now(),this._needsDraw=!0},update:function(){var e=this._xSpring.update(),t=this._ySpring.update(),n=this._scaleSpring.update(),i=this._degreesSpring.update();return!!(e||t||n||i)&&(this._updateForScale(),this._needsDraw=!0,!0)},draw:function(){0!==this.opacity||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(this.getRotation(e),this._getRotationPoint(e))},getBoundsNoRotate:function(t){return t?new e.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new e.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return e.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(t){var n=this.getBoundsNoRotate(t);if(this._clip){var i=t?this._worldWidthCurrent:this._worldWidthTarget,r=i/this.source.dimensions.x,o=this._clip.times(r);n=new e.Rect(n.x+o.x,n.y+o.y,o.width,o.height)}return n.rotate(this.getRotation(t),this._getRotationPoint(t))},getContentSize:function(){return new e.Point(this.source.dimensions.x,this.source.dimensions.y)},_viewportToImageDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/r),n*(this.source.dimensions.y*this.contentAspectX/r))},viewportToImageCoordinates:function(t,n,i){var r;return t instanceof e.Point?(i=n,r=t):r=new e.Point(t,n),r=r.rotate(-this.getRotation(i),this._getRotationPoint(i)),i?this._viewportToImageDelta(r.x-this._xSpring.current.value,r.y-this._ySpring.current.value):this._viewportToImageDelta(r.x-this._xSpring.target.value,r.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*r,n/this.source.dimensions.y/this.contentAspectX*r)},imageToViewportCoordinates:function(t,n,i){t instanceof e.Point&&(i=n,n=t.y,t=t.x);var r=this._imageToViewportDelta(t,n);return i?(r.x+=this._xSpring.current.value,r.y+=this._ySpring.current.value):(r.x+=this._xSpring.target.value,r.y+=this._ySpring.target.value),r.rotate(this.getRotation(i),this._getRotationPoint(i))},imageToViewportRectangle:function(t,n,i,r,o){var s=t;s instanceof e.Rect?o=n:s=new e.Rect(t,n,i,r);var a=this.imageToViewportCoordinates(s.getTopLeft(),o),l=this._imageToViewportDelta(s.width,s.height,o);return new e.Rect(a.x,a.y,l.x,l.y,s.degrees+this.getRotation(o))},viewportToImageRectangle:function(t,n,i,r,o){var s=t;t instanceof e.Rect?o=n:s=new e.Rect(t,n,i,r);var a=this.viewportToImageCoordinates(s.getTopLeft(),o),l=this._viewportToImageDelta(s.width,s.height,o);return new e.Rect(a.x,a.y,l.x,l.y,s.degrees-this.getRotation(o))},viewerElementToImageCoordinates:function(e){var t=this.viewport.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.viewport.pixelFromPoint(t,!0)},windowToImageCoordinates:function(e){var t=e.minus(OpenSeadragon.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(t)},imageToWindowCoordinates:function(e){var t=this.imageToViewerElementCoordinates(e);return t.plus(OpenSeadragon.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(t){var n=this._scaleSpring.current.value;return t=t.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new e.Rect((t.x-this._xSpring.current.value)/n,(t.y-this._ySpring.current.value)/n,t.width/n,t.height/n,t.degrees)},viewportToImageZoom:function(e){var t=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return t*e},imageToViewportZoom:function(e){var t=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return e/t},setPosition:function(e,t){var n=this._xSpring.target.value===e.x&&this._ySpring.target.value===e.y;if(t){if(n&&this._xSpring.current.value===e.x&&this._ySpring.current.value===e.y)return;this._xSpring.resetTo(e.x),this._ySpring.resetTo(e.y),this._needsDraw=!0}else{if(n)return;this._xSpring.springTo(e.x),this._ySpring.springTo(e.y),this._needsDraw=!0}n||this._raiseBoundsChange()},setWidth:function(e,t){this._setScale(e,t)},setHeight:function(e,t){this._setScale(e/this.normHeight,t)},fitBounds:function(t,n,i){n=n||e.Placement.CENTER;var r=e.Placement.properties[n],o=this.contentAspectX,s=0,a=0,l=1,c=1;if(this._clip&&(o=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,c=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>o?(s=this._clip.x/this._clip.height*t.height,a=this._clip.y/this._clip.height*t.height):(s=this._clip.x/this._clip.width*t.width,a=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>o){var u=t.height/c,h=0;r.isHorizontallyCentered?h=(t.width-t.height*o)/2:r.isRight&&(h=t.width-t.height*o),this.setPosition(new e.Point(t.x-s+h,t.y-a),i),this.setHeight(u,i)}else{var f=t.width/l,d=0;r.isVerticallyCentered?d=(t.height-t.width/o)/2:r.isBottom&&(d=t.height-t.width/o),this.setPosition(new e.Point(t.x-s,t.y-a+d),i),this.setWidth(f,i)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(t){e.console.assert(!t||t instanceof e.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),t instanceof e.Rect?this._clip=t.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getOpacity:function(){return this.opacity},setOpacity:function(e){e!==this.opacity&&(this.opacity=e,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(e){this._preload=!!e,this._needsDraw=!0},getRotation:function(e){return e?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(e,t){this._degreesSpring.target.value===e&&this._degreesSpring.isAtTargetValue()||(t?this._degreesSpring.resetTo(e):this._degreesSpring.springTo(e),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(e){return this.getBoundsNoRotate(e).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(e){e!==this.compositeOperation&&(this.compositeOperation=e,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(e,t){var n=this._scaleSpring.target.value===e;if(t){if(n&&this._scaleSpring.current.value===e)return;this._scaleSpring.resetTo(e),this._updateForScale(),this._needsDraw=!0}else{if(n)return;this._scaleSpring.springTo(e),this._updateForScale(),this._needsDraw=!0}n||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 e=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,n=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(t/this.minPixelRatio)/Math.log(2))));return n=Math.max(n,this.source.minLevel||0),e=Math.min(e,n),{lowestLevel:e,highestLevel:n}},_updateViewport:function(){this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};while(this.lastDrawn.length>0){var n=this.lastDrawn.pop();n.beingDrawn=!1}var i=this.viewport,o=this._viewportToTiledImageRectangle(i.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var s=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(o=o.intersection(s),null===o)return}for(var a=this._getLevelsInterval(),l=a.lowestLevel,u=a.highestLevel,h=null,f=!1,d=e.now(),v=u;v>=l;v--){var g=!1,m=i.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(v),!0).x*this._scaleSpring.current.value;if(v===l||!f&&m>=this.minPixelRatio)g=!0,f=!0;else if(!f)continue;var y=i.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(v),!1).x*this._scaleSpring.current.value,w=i.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,_=this.immediateRender?1:w,b=Math.min(1,(m-.5)/.5),x=_/Math.abs(_-y);if(h=t(this,f,g,v,b,x,o,d,h),c(this.coverage,v))break}p(this,this.lastDrawn),h&&!h.context2D?(r(this,h,d),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,i){var r,o,s,a;this.wrapHorizontal?(r=e.positiveModulo(n.x,1),o=e.positiveModulo(i.x,1)):(r=Math.max(0,n.x),o=Math.min(1,i.x));var l=1/this.source.aspectRatio;this.wrapVertical?(s=e.positiveModulo(n.y,l),a=e.positiveModulo(i.y,l)):(s=Math.max(0,n.y),a=Math.min(l,i.y));var c=this.source.getTileAtPoint(t,new e.Point(r,s)),u=this.source.getTileAtPoint(t,new e.Point(o,a)),h=this.source.getNumTiles(t);return this.wrapHorizontal&&(c.x+=h.x*Math.floor(n.x),u.x+=h.x*Math.floor(i.x)),this.wrapVertical&&(c.y+=h.y*Math.floor(n.y/l),u.y+=h.y*Math.floor(i.y/l)),{topLeft:c,bottomRight:u}}})})(OpenSeadragon)},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),r=n("e683");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},8418:function(e,t,n){"use strict";var i=n("c04e"),r=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var s=i(t);s in e?r.f(e,s,o(0,n)):e[s]=n}},"841c":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),o=n("1d80"),s=n("129f"),a=n("14c3");i("search",1,(function(e,t,n){return[function(t){var n=o(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var o=r(e),l=String(this),c=o.lastIndex;s(c,0)||(o.lastIndex=0);var u=a(o,l);return s(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},"84bb":function(e,t,n){n("c975"),n("a434"),function(e){e.World=function(t){var n=this;e.console.assert(t.viewer,"[World] options.viewer is required"),e.EventSource.call(this),this.viewer=t.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(e){n._autoRefigureSizes?n._figureSizes():n._needsSizesFigured=!0},this._figureSizes()},e.extend(e.World.prototype,e.EventSource.prototype,{addItem:function(t,n){if(e.console.assert(t,"[World.addItem] item is required"),e.console.assert(t instanceof e.TiledImage,"[World.addItem] only TiledImages supported at this time"),n=n||{},void 0!==n.index){var i=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(i,0,t)}else this._items.push(t);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,t.addHandler("bounds-change",this._delegatedFigureSizes),t.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:t})},getItemAt:function(t){return e.console.assert(void 0!==t,"[World.getItemAt] index is required"),this._items[t]},getIndexOfItem:function(t){return e.console.assert(t,"[World.getIndexOfItem] item is required"),e.indexOf(this._items,t)},getItemCount:function(){return this._items.length},setItemIndex:function(t,n){e.console.assert(t,"[World.setItemIndex] item is required"),e.console.assert(void 0!==n,"[World.setItemIndex] index is required");var i=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==i&&-1!==i&&(this._items.splice(i,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:i,newIndex:n}))},removeItem:function(t){e.console.assert(t,"[World.removeItem] item is required");var n=e.indexOf(this._items,t);-1!==n&&(t.removeHandler("bounds-change",this._delegatedFigureSizes),t.removeHandler("clip-change",this._delegatedFigureSizes),t.destroy(),this._items.splice(n,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(t))},removeAll:function(){var e,t;for(this.viewer._cancelPendingImages(),t=0;t<this._items.length;t++)e=this._items[t],e.removeHandler("bounds-change",this._delegatedFigureSizes),e.removeHandler("clip-change",this._delegatedFigureSizes),e.destroy();var n=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,t=0;t<n.length;t++)e=n[t],this._raiseRemoveItem(e)},resetItems:function(){for(var e=0;e<this._items.length;e++)this._items[e].reset()},update:function(){for(var e=!1,t=0;t<this._items.length;t++)e=this._items[t].update()||e;return e},draw:function(){for(var e=0;e<this._items.length;e++)this._items[e].draw();this._needsDraw=!1},needsDraw:function(){for(var e=0;e<this._items.length;e++)if(this._items[e].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(e){this._autoRefigureSizes=e,e&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(t){t=t||{};var n,i=t.immediately||!1,r=t.layout||e.DEFAULT_SETTINGS.collectionLayout,o=t.rows||e.DEFAULT_SETTINGS.collectionRows,s=t.columns||e.DEFAULT_SETTINGS.collectionColumns,a=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,l=t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin,c=a+l;n=!t.rows&&s?s:Math.ceil(this._items.length/o);var u,h,f,d,p,v=0,g=0;this.setAutoRefigureSizes(!1);for(var m=0;m<this._items.length;m++)m&&m%n===0&&("horizontal"===r?(g+=c,v=0):(v+=c,g=0)),u=this._items[m],h=u.getBounds(),f=h.width>h.height?a:a*(h.width/h.height),d=f*(h.height/h.width),p=new e.Point(v+(a-f)/2,g+(a-d)/2),u.setPosition(p,i),u.setWidth(f,i),"horizontal"===r?v+=c:g+=c;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,i=this._contentFactor||0;if(this._items.length){var r=this._items[0],o=r.getBounds();this._contentFactor=r.getContentSize().x/o.width;for(var s=r.getClippedBounds().getBoundingBox(),a=s.x,l=s.y,c=s.x+s.width,u=s.y+s.height,h=1;h<this._items.length;h++)r=this._items[h],o=r.getBounds(),this._contentFactor=Math.max(this._contentFactor,r.getContentSize().x/o.width),s=r.getClippedBounds().getBoundingBox(),a=Math.min(a,s.x),l=Math.min(l,s.y),c=Math.max(c,s.x+s.width),u=Math.max(u,s.y+s.height);this._homeBounds=new e.Rect(a,l,c-a,u-l),this._contentSize=new e.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}else this._homeBounds=new e.Rect(0,0,1,1),this._contentSize=new e.Point(1,1),this._contentFactor=1;this._contentFactor===i&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(OpenSeadragon)},"857a":function(e,t,n){var i=n("1d80"),r=/"/g;e.exports=function(e,t,n,o){var s=String(i(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(o).replace(r,""")+'"'),a+">"+s+"</"+t+">"}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8925:function(e,t,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},"89cb":function(e,t){(function(e){e.Point=function(e,t){this.x="number"==typeof e?e:0,this.y="number"==typeof t?t:0},e.Point.prototype={clone:function(){return new e.Point(this.x,this.y)},plus:function(t){return new e.Point(this.x+t.x,this.y+t.y)},minus:function(t){return new e.Point(this.x-t.x,this.y-t.y)},times:function(t){return new e.Point(this.x*t,this.y*t)},divide:function(t){return new e.Point(this.x/t,this.y/t)},negate:function(){return new e.Point(-this.x,-this.y)},distanceTo:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},squaredDistanceTo:function(e){return Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2)},apply:function(t){return new e.Point(t(this.x),t(this.y))},equals:function(t){return t instanceof e.Point&&this.x===t.x&&this.y===t.y},rotate:function(t,n){var i,r;if(n=n||new e.Point(0,0),t%90===0){var o=e.positiveModulo(t,360);switch(o){case 0:i=1,r=0;break;case 90:i=0,r=1;break;case 180:i=-1,r=0;break;case 270:i=0,r=-1;break}}else{var s=t*Math.PI/180;i=Math.cos(s),r=Math.sin(s)}var a=i*(this.x-n.x)-r*(this.y-n.y)+n.x,l=r*(this.x-n.x)+i*(this.y-n.y)+n.y;return new e.Point(a,l)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}})(OpenSeadragon)},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var i=n("ad6d"),r=n("9f7f"),o=RegExp.prototype.exec,s=String.prototype.replace,a=o,l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],h=l||u||c;h&&(a=function(e){var t,n,r,a,h=this,f=c&&h.sticky,d=i.call(h),p=h.source,v=0,g=e;return f&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),g=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,v++),n=new RegExp("^(?:"+p+")",d)),u&&(n=new RegExp("^"+p+"$(?!\\s)",d)),l&&(t=h.lastIndex),r=o.call(f?n:h,g),f?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=h.lastIndex,h.lastIndex+=r[0].length):h.lastIndex=0:l&&r&&(h.lastIndex=h.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=a},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,o=function(e,t){var n=a[s(e)];return n==c||n!=l&&("function"==typeof t?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},9861:function(e,t,n){"use strict";n("e260");var i=n("23e7"),r=n("d066"),o=n("0d3b"),s=n("6eeb"),a=n("e2cc"),l=n("d44e"),c=n("9ed3"),u=n("69f3"),h=n("19aa"),f=n("5135"),d=n("0366"),p=n("f5df"),v=n("825a"),g=n("861d"),m=n("7c73"),y=n("5c6c"),w=n("9a1f"),_=n("35a1"),b=n("b622"),x=r("fetch"),T=r("Headers"),S=b("iterator"),P="URLSearchParams",E=P+"Iterator",C=u.set,R=u.getterFor(P),k=u.getterFor(E),O=/\+/g,I=Array(4),A=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},$=function(e){try{return decodeURIComponent(e)}catch(t){return e}},L=function(e){var t=e.replace(O," "),n=4;try{return decodeURIComponent(t)}catch(i){while(n)t=t.replace(A(n--),$);return t}},D=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(e){return M[e]},B=function(e){return encodeURIComponent(e).replace(D,F)},N=function(e,t){if(t){var n,i,r=t.split("&"),o=0;while(o<r.length)n=r[o++],n.length&&(i=n.split("="),e.push({key:L(i.shift()),value:L(i.join("="))}))}},j=function(e){this.entries.length=0,N(this.entries,e)},H=function(e,t){if(e<t)throw TypeError("Not enough arguments")},z=c((function(e,t){C(this,{type:E,iterator:w(R(e).entries),kind:t})}),"Iterator",(function(){var e=k(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),V=function(){h(this,V,P);var e,t,n,i,r,o,s,a,l,c=arguments.length>0?arguments[0]:void 0,u=this,d=[];if(C(u,{type:P,entries:d,updateURL:function(){},updateSearchParams:j}),void 0!==c)if(g(c))if(e=_(c),"function"===typeof e){t=e.call(c),n=t.next;while(!(i=n.call(t)).done){if(r=w(v(i.value)),o=r.next,(s=o.call(r)).done||(a=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");d.push({key:s.value+"",value:a.value+""})}}else for(l in c)f(c,l)&&d.push({key:l,value:c[l]+""});else N(d,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},U=V.prototype;a(U,{append:function(e,t){H(arguments.length,2);var n=R(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){H(arguments.length,1);var t=R(this),n=t.entries,i=e+"",r=0;while(r<n.length)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){H(arguments.length,1);for(var t=R(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){H(arguments.length,1);for(var t=R(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){H(arguments.length,1);var t=R(this).entries,n=e+"",i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){H(arguments.length,1);for(var n,i=R(this),r=i.entries,o=!1,s=e+"",a=t+"",l=0;l<r.length;l++)n=r[l],n.key===s&&(o?r.splice(l--,1):(o=!0,n.value=a));o||r.push({key:s,value:a}),i.updateURL()},sort:function(){var e,t,n,i=R(this),r=i.entries,o=r.slice();for(r.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){var t,n=R(this).entries,i=d(e,arguments.length>1?arguments[1]:void 0,3),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),s(U,S,U.entries),s(U,"toString",(function(){var e,t=R(this).entries,n=[],i=0;while(i<t.length)e=t[i++],n.push(B(e.key)+"="+B(e.value));return n.join("&")}),{enumerable:!0}),l(V,P),i({global:!0,forced:!o},{URLSearchParams:V}),o||"function"!=typeof x||"function"!=typeof T||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(t=arguments[1],g(t)&&(n=t.body,p(n)===P&&(i=t.headers?new T(t.headers):new T,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:y(0,String(n)),headers:y(0,i)}))),r.push(t)),x.apply(this,r)}}),e.exports={URLSearchParams:V,getState:R}},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),o=n("e8b5"),s=n("861d"),a=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),h=n("1dde"),f=n("b622"),d=n("2d00"),p=f("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=d>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=h("concat"),w=function(e){if(!s(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},_=!m||!y;i({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,i,r,o,s=a(this),h=u(s,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?s:arguments[t],w(o)){if(r=l(o.length),f+r>v)throw TypeError(g);for(n=0;n<r;n++,f++)n in o&&c(h,f,o[n])}else{if(f>=v)throw TypeError(g);c(h,f++,o)}return h.length=f,h}})},"9a1f":function(e,t,n){var i=n("825a"),r=n("35a1");e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},"9bdd":function(e,t,n){var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(s){throw r(e),s}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),o=n("825a"),s=n("c04e"),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(o(e),t=s(t,!0),o(n),r)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9e16":function(e,t){(function(e){e.Placement=e.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)},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),o=n("5c6c"),s=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),s(e,c,!1,!0),a[c]=l,e}},"9f7f":function(e,t,n){"use strict";var i=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("44ad"),o=n("fc6a"),s=n("a640"),a=[].join,l=r!=Object,c=s("join",",");i({target:"Array",proto:!0,forced:l||!c},{join:function(e){return a.call(o(this),void 0===e?",":e)}})},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("23cb"),o=n("a691"),s=n("50c4"),a=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),h=n("ae40"),f=u("splice"),d=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,v=Math.min,g=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f||!d},{splice:function(e,t){var n,i,u,h,f,d,y=a(this),w=s(y.length),_=r(e,w),b=arguments.length;if(0===b?n=i=0:1===b?(n=0,i=w-_):(n=b-2,i=v(p(o(t),0),w-_)),w+n-i>g)throw TypeError(m);for(u=l(y,i),h=0;h<i;h++)f=_+h,f in y&&c(u,h,y[f]);if(u.length=i,n<i){for(h=_;h<w-i;h++)f=h+i,d=h+n,f in y?y[d]=y[f]:delete y[d];for(h=w;h>w-i+n;h--)delete y[h-1]}else if(n>i)for(h=w-i;h>_;h--)f=h+i-1,d=h+n-1,f in y?y[d]=y[f]:delete y[d];for(h=0;h<n;h++)y[h+_]=arguments[h+2];return y.length=w-i+n,u}})},a4d3:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("d066"),s=n("c430"),a=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),h=n("5135"),f=n("e8b5"),d=n("861d"),p=n("825a"),v=n("7b0b"),g=n("fc6a"),m=n("c04e"),y=n("5c6c"),w=n("7c73"),_=n("df75"),b=n("241c"),x=n("057f"),T=n("7418"),S=n("06cf"),P=n("9bf2"),E=n("d1e7"),C=n("9112"),R=n("6eeb"),k=n("5692"),O=n("f772"),I=n("d012"),A=n("90e3"),$=n("b622"),L=n("e538"),D=n("746f"),M=n("d44e"),F=n("69f3"),B=n("b727").forEach,N=O("hidden"),j="Symbol",H="prototype",z=$("toPrimitive"),V=F.set,U=F.getterFor(j),W=Object[H],q=r.Symbol,G=o("JSON","stringify"),Z=S.f,X=P.f,K=x.f,Y=E.f,J=k("symbols"),Q=k("op-symbols"),ee=k("string-to-symbol-registry"),te=k("symbol-to-string-registry"),ne=k("wks"),ie=r.QObject,re=!ie||!ie[H]||!ie[H].findChild,oe=a&&u((function(){return 7!=w(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=Z(W,t);i&&delete W[t],X(e,t,n),i&&e!==W&&X(W,t,i)}:X,se=function(e,t){var n=J[e]=w(q[H]);return V(n,{type:j,tag:e,description:t}),a||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},le=function(e,t,n){e===W&&le(Q,t,n),p(e);var i=m(t,!0);return p(n),h(J,i)?(n.enumerable?(h(e,N)&&e[N][i]&&(e[N][i]=!1),n=w(n,{enumerable:y(0,!1)})):(h(e,N)||X(e,N,y(1,{})),e[N][i]=!0),oe(e,i,n)):X(e,i,n)},ce=function(e,t){p(e);var n=g(t),i=_(n).concat(pe(n));return B(i,(function(t){a&&!he.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?w(e):ce(w(e),t)},he=function(e){var t=m(e,!0),n=Y.call(this,t);return!(this===W&&h(J,t)&&!h(Q,t))&&(!(n||!h(this,t)||!h(J,t)||h(this,N)&&this[N][t])||n)},fe=function(e,t){var n=g(e),i=m(t,!0);if(n!==W||!h(J,i)||h(Q,i)){var r=Z(n,i);return!r||!h(J,i)||h(n,N)&&n[N][i]||(r.enumerable=!0),r}},de=function(e){var t=K(g(e)),n=[];return B(t,(function(e){h(J,e)||h(I,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=K(t?Q:g(e)),i=[];return B(n,(function(e){!h(J,e)||t&&!h(W,e)||i.push(J[e])})),i};if(l||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=A(e),n=function(e){this===W&&n.call(Q,e),h(this,N)&&h(this[N],t)&&(this[N][t]=!1),oe(this,t,y(1,e))};return a&&re&&oe(W,t,{configurable:!0,set:n}),se(t,e)},R(q[H],"toString",(function(){return U(this).tag})),R(q,"withoutSetter",(function(e){return se(A(e),e)})),E.f=he,P.f=le,S.f=fe,b.f=x.f=de,T.f=pe,L.f=function(e){return se($(e),e)},a&&(X(q[H],"description",{configurable:!0,get:function(){return U(this).description}}),s||R(W,"propertyIsEnumerable",he,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),B(_(ne),(function(e){D(e)})),i({target:j,stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!a},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:u((function(){T.f(1)}))},{getOwnPropertySymbols:function(e){return T.f(v(e))}}),G){var ve=!l||u((function(){var e=q();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));i({target:"JSON",stat:!0,forced:ve},{stringify:function(e,t,n){var i,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(i=t,(d(t)||void 0!==e)&&!ae(e))return f(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!ae(t))return t}),r[1]=t,G.apply(null,r)}})}q[H][z]||C(q[H],z,q[H].valueOf),M(q,j),I[N]=!0},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),o=n("fea9"),s=n("d039"),a=n("d066"),l=n("4840"),c=n("cdf9"),u=n("6eeb"),h=!!o&&s((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=l(this,a("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof o||o.prototype["finally"]||u(o.prototype,"finally",a("Promise").prototype["finally"])},a8fa:function(e,t,n){n("a434"),function(e){var t=function(t){e.console.assert(t,"[TileCache.cacheTile] options is required"),e.console.assert(t.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(t.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=t.tile,this.tiledImage=t.tiledImage},n=function(t){e.console.assert(t,"[ImageRecord] options is required"),e.console.assert(t.image,"[ImageRecord] options.image is required"),this._image=t.image,this._tiles=[]};n.prototype={destroy:function(){this._image=null,this._renderedContext=null,this._tiles=null},getImage:function(){return this._image},getRenderedContext:function(){if(!this._renderedContext){var e=document.createElement("canvas");e.width=this._image.width,e.height=this._image.height,this._renderedContext=e.getContext("2d"),this._renderedContext.drawImage(this._image,0,0),this._image=null}return this._renderedContext},setRenderedContext:function(t){e.console.error("ImageRecord.setRenderedContext is deprecated. The rendered context should be created by the ImageRecord itself when calling ImageRecord.getRenderedContext."),this._renderedContext=t},addTile:function(t){e.console.assert(t,"[ImageRecord.addTile] tile is required"),this._tiles.push(t)},removeTile:function(t){for(var n=0;n<this._tiles.length;n++)if(this._tiles[n]===t)return void this._tiles.splice(n,1);e.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",t)},getTileCount:function(){return this._tiles.length}},e.TileCache=function(t){t=t||{},this._maxImageCacheCount=t.maxImageCacheCount||e.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},e.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length},cacheTile:function(i){e.console.assert(i,"[TileCache.cacheTile] options is required"),e.console.assert(i.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(i.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(i.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var r=i.cutoff||0,o=this._tilesLoaded.length,s=this._imagesLoaded[i.tile.cacheKey];if(s||(e.console.assert(i.image,"[TileCache.cacheTile] options.image is required to create an ImageRecord"),s=this._imagesLoaded[i.tile.cacheKey]=new n({image:i.image}),this._imagesLoadedCount++),s.addTile(i.tile),i.tile.cacheImageRecord=s,this._imagesLoadedCount>this._maxImageCacheCount){for(var a,l,c,u,h,f,d=null,p=-1,v=null,g=this._tilesLoaded.length-1;g>=0;g--)f=this._tilesLoaded[g],a=f.tile,a.level<=r||a.beingDrawn||(d?(u=a.lastTouchTime,l=d.lastTouchTime,h=a.level,c=d.level,(u<l||u==l&&h>c)&&(d=a,p=g,v=f)):(d=a,p=g,v=f));d&&p>=0&&(this._unloadTile(v),o=p)}this._tilesLoaded[o]=new t({tile:i.tile,tiledImage:i.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var i=0;i<this._tilesLoaded.length;++i)n=this._tilesLoaded[i],n.tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(i,1),i--)},getImageRecord:function(t){return e.console.assert(t,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[t]},_unloadTile:function(t){e.console.assert(t,"[TileCache._unloadTile] tileRecord is required");var n=t.tile,i=t.tiledImage;n.unload(),n.cacheImageRecord=null;var r=this._imagesLoaded[n.cacheKey];r.removeTile(n),r.getTileCount()||(r.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),i.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:i})}}}(OpenSeadragon)},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("94ca"),s=n("6eeb"),a=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),h=n("d039"),f=n("7c73"),d=n("241c").f,p=n("06cf").f,v=n("9bf2").f,g=n("58a8").trim,m="Number",y=r[m],w=y.prototype,_=l(f(w))==m,b=function(e){var t,n,i,r,o,s,a,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=g(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=c.slice(2),s=o.length,a=0;a<s;a++)if(l=o.charCodeAt(a),l<48||l>r)return NaN;return parseInt(o,i)}return+c};if(o(m,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,T=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof T&&(_?h((function(){w.valueOf.call(n)})):l(n)!=m)?c(new y(b(t)),n,T):b(t)},S=i?d(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),P=0;S.length>P;P++)a(y,x=S[P])&&!a(T,x)&&v(T,x,p(y,x));T.prototype=w,w.constructor=T,s(r,m,T)}},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("5135"),s=Object.defineProperty,a={},l=function(e){throw e};e.exports=function(e,t){if(o(a,e))return a[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:l,h=o(t,1)?t[1]:void 0;return a[e]=!!n&&!r((function(){if(c&&!i)return!0;var e={length:-1};c?s(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,h)}))}},ae93:function(e,t,n){"use strict";var i,r,o,s=n("e163"),a=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),h=c("iterator"),f=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=s(s(o)),r!==Object.prototype&&(i=r)):f=!0),void 0==i&&(i={}),u||l(i,h)||a(i,h,d),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},af03:function(e,t,n){var i=n("d039");e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(e,t,n){var i=n("83ab"),r=n("9bf2").f,o=Function.prototype,s=o.toString,a=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&r(o,l,{configurable:!0,get:function(){try{return s.call(this).match(a)[1]}catch(e){return""}}})},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),o=n("30b5"),s=n("83b9"),a=n("c345"),l=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,u){var h=e.data,f=e.headers;i.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",v=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+v)}var g=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:i,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};r(t,u,o),d=null}},d.onabort=function(){d&&(u(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){u(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var m=n("7aac"),y=(e.withCredentials||l(g))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&i.forEach(f,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(w){if("json"!==e.responseType)throw w}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),u(e),d=null)})),void 0===h&&(h=null),d.send(h)}))}},b575:function(e,t,n){var i,r,o,s,a,l,c,u,h=n("da84"),f=n("06cf").f,d=n("2cf4").set,p=n("1cdc"),v=n("605d"),g=h.MutationObserver||h.WebKitMutationObserver,m=h.document,y=h.process,w=h.Promise,_=f(h,"queueMicrotask"),b=_&&_.value;b||(i=function(){var e,t;v&&(e=y.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?s():o=void 0,n}}o=void 0,e&&e.enter()},!p&&!v&&g&&m?(a=!0,l=m.createTextNode(""),new g(i).observe(l,{characterData:!0}),s=function(){l.data=a=!a}):w&&w.resolve?(c=w.resolve(void 0),u=c.then,s=function(){u.call(c,i)}):s=v?function(){y.nextTick(i)}:function(){d.call(h,i)}),e.exports=b||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,s()),o=t}},b5f9:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__webpack_require__("99af"),__webpack_require__("4de4"),__webpack_require__("c975"),__webpack_require__("a15b"),__webpack_require__("baa5"),__webpack_require__("fb6a"),__webpack_require__("a434"),__webpack_require__("b0c0"),__webpack_require__("dca8"),__webpack_require__("d3b7"),__webpack_require__("4d63"),__webpack_require__("ac1f"),__webpack_require__("25f0"),__webpack_require__("466d"),__webpack_require__("5319"),__webpack_require__("841c"),__webpack_require__("1276");var _typeof=__webpack_require__("7037");function OpenSeadragon(e){return new OpenSeadragon.Viewer(e)}(function(e){e.version={versionStr:"<%= osdVersion.versionStr %>",major:parseInt("<%= osdVersion.major %>",10),minor:parseInt("<%= osdVersion.minor %>",10),revision:parseInt("<%= osdVersion.revision %>",10)};var t={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},n=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.isFunction=function(t){return"function"===e.type(t)},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isWindow=function(e){return e&&"object"===_typeof(e)&&"setInterval"in e},e.type=function(e){return null===e||void 0===e?String(e):t[n.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==OpenSeadragon.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!i.call(t,"constructor")&&!i.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var r in t)n=r;return void 0===n||i.call(t,n)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.freezeObject=function(t){return Object.freeze?e.freezeObject=Object.freeze:e.freezeObject=function(e){return e},e.freezeObject(t)},e.supportsCanvas=function(){var t=document.createElement("canvas");return!(!e.isFunction(t.getContext)||!t.getContext("2d"))}(),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(n){t=!0}return t},e.pixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/i}return 1}()})(OpenSeadragon),function($){$.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=arguments.length,l=!1,c=1;for("boolean"===typeof s&&(l=s,s=arguments[1]||{},c=2),"object"===_typeof(s)||OpenSeadragon.isFunction(s)||(s={}),a===c&&(s=this,--c);c<a;c++)if(e=arguments[c],null!==e||void 0!==e)for(t in e)n=s[t],i=e[t],s!==i&&(l&&i&&(OpenSeadragon.isPlainObject(i)||(r=OpenSeadragon.isArray(i)))?(r?(r=!1,o=n&&OpenSeadragon.isArray(n)?n:[]):o=n&&OpenSeadragon.isPlainObject(n)?n:{},s[t]=OpenSeadragon.extend(l,o,i)):void 0!==i&&(s[t]=i));return s};var isIOSDevice=function(){if("object"!==("undefined"===typeof navigator?"undefined":_typeof(navigator)))return!1;var e=navigator.userAgent;return"string"===typeof e&&(-1!==e.indexOf("iPhone")||-1!==e.indexOf("iPad")||-1!==e.indexOf("iPod"))};$.extend($,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,loadTilesWithAjax:!1,ajaxHeaders:{},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,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!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,pixelsPerArrowPress:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,rotationIncrement:90,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,showFlipControl:!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,navigatorBackground:"#000",navigatorOpacity:.8,navigatorBorderColor:"#555",navigatorDisplayRegionColor:"#900",degrees:0,flipped:!1,opacity:1,preload:!1,compositeOperation:null,imageSmoothingEnabled:!0,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"},flip:{REST:"flip_rest.png",GROUP:"flip_grouphover.png",HOVER:"flip_hover.png",DOWN:"flip_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","#1B9E77","#D95F02","#7570B3","#E7298A","#66A61E","#E6AB02","#A6761D","#666666"]},SIGNAL:"----seadragon----",delegate:function(e,t){return function(){var n=arguments;return void 0===n&&(n=[]),t.apply(e,n)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5},getElement:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},getElementPosition:function(e){var t,n,i=new $.Point;e=$.getElement(e),t="fixed"==$.getElementStyle(e).position,n=getOffsetParent(e,t);while(n)i.x+=e.offsetLeft,i.y+=e.offsetTop,t&&(i=i.plus($.getPageScroll())),e=n,t="fixed"==$.getElementStyle(e).position,n=getOffsetParent(e,t);return i},getElementOffset:function(e){e=$.getElement(e);var t,n,i=e&&e.ownerDocument,r={top:0,left:0};return i?(t=i.documentElement,"undefined"!==_typeof(e.getBoundingClientRect)&&(r=e.getBoundingClientRect()),n=i==i.window?i:9===i.nodeType&&(i.defaultView||i.parentWindow),new $.Point(r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0),r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0))):new $.Point},getElementSize:function(e){return e=$.getElement(e),new $.Point(e.clientWidth,e.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(e){return e=$.getElement(e),e.currentStyle}:function(e){return e=$.getElement(e),window.getComputedStyle(e,"")},getCssPropertyWithVendorPrefix:function(e){var t={};return $.getCssPropertyWithVendorPrefix=function(e){if(void 0!==t[e])return t[e];var n=document.createElement("div").style,i=null;if(void 0!==n[e])i=e;else for(var r=["Webkit","Moz","MS","O","webkit","moz","ms","o"],o=$.capitalizeFirstLetter(e),s=0;s<r.length;s++){var a=r[s]+o;if(void 0!==n[a]){i=a;break}}return t[e]=i,i},$.getCssPropertyWithVendorPrefix(e)},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},positiveModulo:function(e,t){var n=e%t;return n<0&&(n+=t),n},pointInElement:function(e,t){e=$.getElement(e);var n=$.getElementOffset(e),i=$.getElementSize(e);return t.x>=n.x&&t.x<n.x+i.x&&t.y<n.y+i.y&&t.y>=n.y},getEvent:function(e){return $.getEvent=e?function(e){return e}:function(){return window.event},$.getEvent(e)},getMousePosition:function(e){if("number"==typeof e.pageX)$.getMousePosition=function(e){var t=new $.Point;return e=$.getEvent(e),t.x=e.pageX,t.y=e.pageY,t};else{if("number"!=typeof e.clientX)throw new Error("Unknown event mouse position, no known technique.");$.getMousePosition=function(e){var t=new $.Point;return e=$.getEvent(e),t.x=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t.y=e.clientY+document.body.scrollTop+document.documentElement.scrollTop,t}}return $.getMousePosition(e)},getPageScroll:function(){var e=document.documentElement||{},t=document.body||{};if("number"==typeof window.pageXOffset)$.getPageScroll=function(){return new $.Point(window.pageXOffset,window.pageYOffset)};else if(t.scrollLeft||t.scrollTop)$.getPageScroll=function(){return new $.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!e.scrollLeft&&!e.scrollTop)return new $.Point(0,0);$.getPageScroll=function(){return new $.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return $.getPageScroll()},setPageScroll:function(e){if("undefined"!==typeof window.scrollTo)$.setPageScroll=function(e){window.scrollTo(e.x,e.y)};else{var t=$.getPageScroll();if(t.x===e.x&&t.y===e.y)return;document.body.scrollLeft=e.x,document.body.scrollTop=e.y;var n=$.getPageScroll();if(n.x!==t.x&&n.y!==t.y)return void($.setPageScroll=function(e){document.body.scrollLeft=e.x,document.body.scrollTop=e.y});if(document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y,n=$.getPageScroll(),n.x!==t.x&&n.y!==t.y)return void($.setPageScroll=function(e){document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y});$.setPageScroll=function(e){}}return $.setPageScroll(e)},getWindowSize:function(){var e=document.documentElement||{},t=document.body||{};if("number"==typeof window.innerWidth)$.getWindowSize=function(){return new $.Point(window.innerWidth,window.innerHeight)};else if(e.clientWidth||e.clientHeight)$.getWindowSize=function(){return new $.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!t.clientWidth&&!t.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(e){e=$.getElement(e);var t=[$.makeNeutralElement("div"),$.makeNeutralElement("div"),$.makeNeutralElement("div")];return $.extend(t[0].style,{display:"table",height:"100%",width:"100%"}),$.extend(t[1].style,{display:"table-row"}),$.extend(t[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),t[0].appendChild(t[1]),t[1].appendChild(t[2]),t[2].appendChild(e),t[0]},makeNeutralElement:function(e){var t=document.createElement(e),n=t.style;return n.background="transparent none",n.border="none",n.margin="0px",n.padding="0px",n.position="static",t},now:function(){return Date.now?$.now=Date.now:$.now=function(){return(new Date).getTime()},$.now()},makeTransparentImage:function(e){return $.makeTransparentImage=function(e){var t=$.makeNeutralElement("img");return t.src=e,t},$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<7&&($.makeTransparentImage=function(e){var t=$.makeNeutralElement("img"),n=null;return n=$.makeNeutralElement("span"),n.style.display="inline-block",t.onload=function(){n.style.width=n.style.width||t.width+"px",n.style.height=n.style.height||t.height+"px",t.onload=null,t=null},t.src=e,n.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"', sizingMethod='scale')",n}),$.makeTransparentImage(e)},setElementOpacity:function(e,t,n){var i,r;e=$.getElement(e),n&&!$.Browser.alpha&&(t=Math.round(t)),$.Browser.opacity?e.style.opacity=t<1?t:"":t<1?(i=Math.round(100*t),r="alpha(opacity="+i+")",e.style.filter=r):e.style.filter=""},setElementTouchActionNone:function(e){e=$.getElement(e),"undefined"!==typeof e.style.touchAction?e.style.touchAction="none":"undefined"!==typeof e.style.msTouchAction&&(e.style.msTouchAction="none")},addClass:function(e,t){e=$.getElement(e),e.className?-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=" "+t):e.className=t},indexOf:function(e,t,n){return Array.prototype.indexOf?this.indexOf=function(e,t,n){return e.indexOf(t,n)}:this.indexOf=function(e,t,n){var i,r,o=n||0;if(!e)throw new TypeError;if(r=e.length,0===r||o>=r)return-1;for(o<0&&(o=r-Math.abs(o)),i=o;i<r;i++)if(e[i]===t)return i;return-1},this.indexOf(e,t,n)},removeClass:function(e,t){var n,i,r=[];for(e=$.getElement(e),n=e.className.split(/\s+/),i=0;i<n.length;i++)n[i]&&n[i]!==t&&r.push(n[i]);e.className=r.join(" ")},addEvent:function(){if(window.addEventListener)return function(e,t,n,i){e=$.getElement(e),e.addEventListener(t,n,i)};if(window.attachEvent)return function(e,t,n,i){e=$.getElement(e),e.attachEvent("on"+t,n)};throw new Error("No known event model.")}(),removeEvent:function(){if(window.removeEventListener)return function(e,t,n,i){e=$.getElement(e),e.removeEventListener(t,n,i)};if(window.detachEvent)return function(e,t,n,i){e=$.getElement(e),e.detachEvent("on"+t,n)};throw new Error("No known event model.")}(),cancelEvent:function(e){e=$.getEvent(e),e.preventDefault?$.cancelEvent=function(e){e.preventDefault()}:$.cancelEvent=function(e){e=$.getEvent(e),e.cancel=!0,e.returnValue=!1},$.cancelEvent(e)},stopEvent:function(e){e=$.getEvent(e),e.stopPropagation?$.stopEvent=function(e){e.stopPropagation()}:$.stopEvent=function(e){e=$.getEvent(e),e.cancelBubble=!0},$.stopEvent(e)},createCallback:function(e,t){var n,i=[];for(n=2;n<arguments.length;n++)i.push(arguments[n]);return function(){var n,r=i.concat([]);for(n=0;n<arguments.length;n++)r.push(arguments[n]);return t.apply(e,r)}},getUrlParameter:function(e){var t=URLPARAMS[e];return t||null},getUrlProtocol:function(e){var t=e.match(/^([a-z]+:)\/\//i);return null===t?window.location.protocol:t[1].toLowerCase()},createAjaxRequest:function(e){var t;try{t=!!new ActiveXObject("Microsoft.XMLHTTP")}catch(n){t=!1}if(t)window.XMLHttpRequest?$.createAjaxRequest=function(e){return e?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:$.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else{if(!window.XMLHttpRequest)throw new Error("Browser doesn't support XMLHttpRequest.");$.createAjaxRequest=function(){return new XMLHttpRequest}}return $.createAjaxRequest(e)},makeAjaxRequest:function(e,t,n){var i,r,o;$.isPlainObject(e)&&(t=e.success,n=e.error,i=e.withCredentials,r=e.headers,o=e.responseType||null,e=e.url);var s=$.getUrlProtocol(e),a=$.createAjaxRequest("file:"===s);if(!$.isFunction(t))throw new Error("makeAjaxRequest requires a success callback");a.onreadystatechange=function(){4==a.readyState&&(a.onreadystatechange=function(){},a.status>=200&&a.status<300||0===a.status&&"http:"!==s&&"https:"!==s?t(a):($.console.log("AJAX request returned %d: %s",a.status,e),$.isFunction(n)&&n(a)))};try{if(a.open("GET",e,!0),o&&(a.responseType=o),r)for(var l in r)r.hasOwnProperty(l)&&r[l]&&a.setRequestHeader(l,r[l]);i&&(a.withCredentials=!0),a.send(null)}catch(f){var c=f.message,u=$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<10;if(u&&"undefined"!=typeof f.number&&-2147024891==f.number&&(c+="\nSee http://msdn.microsoft.com/en-us/library/ms537505(v=vs.85).aspx#xdomain"),$.console.log("%s while making AJAX request: %s",f.name,c),a.onreadystatechange=function(){},window.XDomainRequest){var h=new XDomainRequest;if(h){h.onload=function(e){$.isFunction(t)&&t({responseText:h.responseText,status:200,statusText:"OK"})},h.onerror=function(e){$.isFunction(n)&&n({responseText:h.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{h.open("GET",e),h.send()}catch(d){$.isFunction(n)&&n(a,f)}}}else $.isFunction(n)&&n(a,f)}return a},jsonp:function(e){var t,n=e.url,i=document.head||document.getElementsByTagName("head")[0]||document.documentElement,r=e.callbackName||"openseadragon"+$.now(),o=window[r],s="$1"+r+"$2",a=e.param||"callback",l=e.callback;n=n.replace(/(\=)\?(&|$)|\?\?/i,s),n+=(/\?/.test(n)?"&":"?")+a+"="+r,window[r]=function(e){if(o)window[r]=o;else try{delete window[r]}catch(t){}l&&$.isFunction(l)&&l(e)},t=document.createElement("script"),void 0===e.async&&!1===e.async||(t.async="async"),e.scriptCharset&&(t.charset=e.scriptCharset),t.src=n,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,i&&t.parentNode&&i.removeChild(t),t=void 0)},i.insertBefore(t,i.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(e){if(window.DOMParser)$.parseXml=function(e){var t,n=null;return t=new DOMParser,n=t.parseFromString(e,"text/xml"),n};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");$.parseXml=function(e){var t=null;return t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(e),t}}return $.parseXml(e)},parseJSON:function parseJSON(string){return window.JSON&&window.JSON.parse?$.parseJSON=window.JSON.parse:$.parseJSON=function(string){return eval("("+string+")")},$.parseJSON(string)},imageFormatSupported:function(e){return e=e||"",!!FILEFORMATS[e.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 e,t=navigator.appVersion,n=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(n.substring(n.indexOf("MSIE")+5,n.indexOf(";",n.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(n.indexOf("Firefox")>=0?($.Browser.vendor=$.BROWSERS.FIREFOX,$.Browser.version=parseFloat(n.substring(n.indexOf("Firefox")+8))):n.indexOf("Safari")>=0?($.Browser.vendor=n.indexOf("Chrome")>=0?$.BROWSERS.CHROME:$.BROWSERS.SAFARI,$.Browser.version=parseFloat(n.substring(n.substring(0,n.indexOf("Safari")).lastIndexOf("/")+1,n.indexOf("Safari")))):(e=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),null!==e.exec(n)&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(RegExp.$1))));break;case"Opera":$.Browser.vendor=$.BROWSERS.OPERA,$.Browser.version=parseFloat(t);break}var i,r,o,s=window.location.search.substring(1),a=s.split("&");for(o=0;o<a.length;o++)i=a[o],r=i.indexOf("="),r>0&&(URLPARAMS[i.substring(0,r)]=decodeURIComponent(i.substring(r+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(e){};function getOffsetParent(e,t){return t&&e!=document.body?document.body:e.offsetParent}$.console=window.console||{log:nullfunction,debug:nullfunction,info:nullfunction,warn:nullfunction,error:nullfunction,assert:nullfunction},function(e){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame,n=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.msCancelAnimationFrame;if(t&&n)$.requestAnimationFrame=function(){return t.apply(e,arguments)},$.cancelAnimationFrame=function(){return n.apply(e,arguments)};else{var i,r=[],o=[],s=0;$.requestAnimationFrame=function(e){return r.push([++s,e]),i||(i=setInterval((function(){if(r.length){var e=$.now(),t=o;o=r,r=t;while(o.length)o.shift()[1](e)}else clearInterval(i),i=void 0}),20)),s},$.cancelAnimationFrame=function(e){var t,n;for(t=0,n=r.length;t<n;t+=1)if(r[t][0]===e)return void r.splice(t,1);for(t=0,n=o.length;t<n;t+=1)if(o[t][0]===e)return void o.splice(t,1)}}}(window)}(OpenSeadragon),function(e,t){__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=t,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window,(function(){return OpenSeadragon}))},b622:function(e,t,n){var i=n("da84"),r=n("5692"),o=n("5135"),s=n("90e3"),a=n("4930"),l=n("fdbf"),c=r("wks"),u=i.Symbol,h=l?u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(a&&o(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),o=n("df75"),s=n("d039"),a=s((function(){o(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return o(r(e))}})},b680:function(e,t,n){"use strict";var i=n("23e7"),r=n("a691"),o=n("408a"),s=n("1148"),a=n("d039"),l=1..toFixed,c=Math.floor,u=function(e,t,n){return 0===t?n:t%2===1?u(e,t-1,n*e):u(e*e,t/2,n)},h=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},f=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){l.call({})}));i({target:"Number",proto:!0,forced:f},{toFixed:function(e){var t,n,i,a,l=o(this),f=r(e),d=[0,0,0,0,0,0],p="",v="0",g=function(e,t){var n=-1,i=t;while(++n<6)i+=e*d[n],d[n]=i%1e7,i=c(i/1e7)},m=function(e){var t=6,n=0;while(--t>=0)n+=d[t],d[t]=c(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==d[e]){var n=String(d[e]);t=""===t?n:t+s.call("0",7-n.length)+n}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(t=h(l*u(2,69,1))-69,n=t<0?l*u(2,-t,1):l/u(2,t,1),n*=4503599627370496,t=52-t,t>0){g(0,n),i=f;while(i>=7)g(1e7,0),i-=7;g(u(10,i,1),0),i=t-1;while(i>=23)m(1<<23),i-=23;m(1<<i),g(1,1),m(2),v=y()}else g(0,n),g(1<<-t,0),v=y()+s.call("0",f);return f>0?(a=v.length,v=p+(a<=f?"0."+s.call("0",f-a)+v:v.slice(0,a-f)+"."+v.slice(a-f))):v=p+v,v}})},b727:function(e,t,n){var i=n("0366"),r=n("44ad"),o=n("7b0b"),s=n("50c4"),a=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,h=6==e,f=5==e||h;return function(d,p,v,g){for(var m,y,w=o(d),_=r(w),b=i(p,v,3),x=s(_.length),T=0,S=g||a,P=t?S(d,x):n?S(d,0):void 0;x>T;T++)if((f||T in _)&&(m=_[T],y=b(m,T,w),e))if(t)P[T]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:l.call(P,m)}else if(u)return!1;return h?-1:c||u?u:P}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},baa5:function(e,t,n){var i=n("23e7"),r=n("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(e,t,n){e.exports=n("cee4")},bd13:function(e,t,n){var i=n("7037");(function(e){function t(e,t){return(1-Math.exp(e*-t))/(1-Math.exp(-e))}e.Spring=function(t){var n=arguments;"object"!=i(t)&&(t={initial:n.length&&"number"==typeof n[0]?n[0]:void 0,springStiffness:n.length>1?n[1].springStiffness:5,animationTime:n.length>1?n[1].animationTime:1.5}),e.console.assert("number"===typeof t.springStiffness&&0!==t.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),e.console.assert("number"===typeof t.animationTime&&t.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),t.exponential&&(this._exponential=!0,delete t.exponential),e.extend(!0,this,t),this.current={value:"number"==typeof this.initial?this.initial:this._exponential?0:1,time:e.now()},e.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},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))},e.Spring.prototype={resetTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=t,this.start.time=this.target.time=this.current.time=e.now(),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(t){e.console.assert(!this._exponential||0!==t,"[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=t,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(t){this.start.value+=t,this.target.value+=t,this._exponential&&(e.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(t){this._exponential=t,this._exponential&&(e.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(){var n,i;this.current.time=e.now(),this._exponential?(n=this.start._logValue,i=this.target._logValue):(n=this.start.value,i=this.target.value);var r=this.current.time>=this.target.time?i:n+(i-n)*t(this.springStiffness,(this.current.time-this.start.time)/(this.target.time-this.start.time)),o=this.current.value;return this._exponential?this.current.value=Math.exp(r):this.current.value=r,o!=this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}})(OpenSeadragon)},bdb4:function(e,t,n){n("d3b7"),n("ac1f"),n("25f0"),n("466d"),function(e){e.Tile=function(e,t,n,i,r,o,s,a,l,c){this.level=e,this.x=t,this.y=n,this.bounds=i,this.sourceBounds=c,this.exists=r,this.url=o,this.context2D=s,this.loadWithAjax=a,this.ajaxHeaders=l,this.ajaxHeaders?this.cacheKey=this.url+"+"+JSON.stringify(this.ajaxHeaders):this.cacheKey=this.url,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.image=null,this.style=null,this.position=null,this.size=null,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},e.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return!!this.context2D||this.url.match(".png")},drawHTML:function(t){this.cacheImageRecord?this.loaded?(this.element||(this.element=e.makeNeutralElement("div"),this.imgElement=this.cacheImageRecord.getImage().cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"),this.element.parentNode!=t&&t.appendChild(this.element),this.imgElement.parentNode!=this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",e.setElementOpacity(this.element,this.opacity)):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString()):e.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString())},drawCanvas:function(t,n,i,r){var o,s,a,l=this.position.times(e.pixelDensityRatio),c=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(o=this.context2D||this.cacheImageRecord.getRenderedContext(),this.loaded&&o?(t.save(),t.globalAlpha=this.opacity,"number"===typeof i&&1!==i&&(l=l.times(i),c=c.times(i)),r instanceof e.Point&&(l=l.plus(r)),1===t.globalAlpha&&this._hasTransparencyChannel()&&t.clearRect(l.x,l.y,c.x,c.y),n({context:t,tile:this,rendered:o}),this.sourceBounds?(s=Math.min(this.sourceBounds.width,o.canvas.width),a=Math.min(this.sourceBounds.height,o.canvas.height)):(s=o.canvas.width,a=o.canvas.height),t.drawImage(o.canvas,0,0,s,a,l.x,l.y,c.x,c.y),t.restore()):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString())):e.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString())},getScaleForEdgeSmoothing:function(){var t;if(this.cacheImageRecord)t=this.cacheImageRecord.getRenderedContext();else{if(!this.context2D)return e.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;t=this.context2D}return t.canvas.width/(this.size.x*e.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(t,n,i){var r=Math.max(1,Math.ceil((i.x-n.x)/2)),o=Math.max(1,Math.ceil((i.y-n.y)/2));return new e.Point(r,o).minus(this.position.times(e.pixelDensityRatio).times(t||1).apply((function(e){return e%1})))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(OpenSeadragon)},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c345:function(e,t,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c401:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t,n){return i.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t){e.exports=!1},c532:function(e,t,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(e){return"[object Array]"===r.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function h(e){return"string"===typeof e}function f(e){return"number"===typeof e}function d(e){return null!==e&&"object"===typeof e}function p(e){return"[object Date]"===r.call(e)}function v(e){return"[object File]"===r.call(e)}function g(e){return"[object Blob]"===r.call(e)}function m(e){return"[object Function]"===r.call(e)}function y(e){return d(e)&&m(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function T(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=T(e[n],t):e[n]=t}for(var n=0,i=arguments.length;n<i;n++)x(arguments[n],t);return e}function S(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=S(e[n],t):e[n]="object"===typeof t?S({},t):t}for(var n=0,i=arguments.length;n<i;n++)x(arguments[n],t);return e}function P(e,t,n){return x(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:h,isNumber:f,isObject:d,isUndefined:s,isDate:p,isFile:v,isBlob:g,isFunction:m,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:b,forEach:x,merge:T,deepMerge:S,extend:P,trim:_}},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",s=i[o]||r(o,{});e.exports=s},c740:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,o=n("44d2"),s=n("ae40"),a="findIndex",l=!0,c=s(a);a in[]&&Array(1)[a]((function(){l=!1})),i({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("d039"),r=n("5899"),o="
";e.exports=function(e){return i((function(){return!!r[e]()||o[e]()!=o||r[e].name!==e}))}},c975:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").indexOf,o=n("a640"),s=n("ae40"),a=[].indexOf,l=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=s("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?a.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var i=n("5135"),r=n("fc6a"),o=n("4d64").indexOf,s=n("d012");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)!i(s,n)&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),o=i.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),o=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},ce4e:function(e,t,n){var i=n("da84"),r=n("9112");e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},cee4:function(e,t,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=o,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),r=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),r=n("6eeb"),o=n("b041");i||r(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var i=n("9bf2").f,r=n("5135"),o=n("b622"),s=o("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},d58f:function(e,t,n){var i=n("1c0b"),r=n("7b0b"),o=n("44ad"),s=n("50c4"),a=function(e){return function(t,n,a,l){i(n);var c=r(t),u=o(c),h=s(c.length),f=e?h-1:0,d=e?-1:1;if(a<2)while(1){if(f in u){l=u[f],f+=d;break}if(f+=d,e?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=d)f in u&&(l=n(l,u[f],f,c));return l}};e.exports={left:a(!1),right:a(!0)}},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),r=n("d039"),o=n("b622"),s=n("9263"),a=n("9112"),l=o("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),h=o("replace"),f=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),d=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,h){var p=o(e),v=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),g=v&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!v||!g||"replace"===e&&(!c||!u||f)||"split"===e&&!d){var m=/./[p],y=n(p,""[e],(function(e,t,n,i,r){return t.exec===s?v&&!r?{done:!0,value:m.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),w=y[0],_=y[1];i(String.prototype,e,w),i(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}h&&a(RegExp.prototype[p],"sham",!0)}},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),o=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=s(e),r=a.f,c=o(i),u={},h=0;while(c.length>h)n=r(i,t=c[h++]),void 0!==n&&l(u,t,n);return u}})},dca8:function(e,t,n){var i=n("23e7"),r=n("bb2f"),o=n("d039"),s=n("861d"),a=n("f183").onFreeze,l=Object.freeze,c=o((function(){l(1)}));i({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(e){return l&&s(e)?l(a(e)):e}})},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("e260"),s=n("9112"),a=n("b622"),l=a("iterator"),c=a("toStringTag"),u=o.values;for(var h in r){var f=i[h],d=f&&f.prototype;if(d){if(d[l]!==u)try{s(d,l,u)}catch(v){d[l]=u}if(d[c]||s(d,c,h),r[h])for(var p in o)if(d[p]!==o[p])try{s(d,p,o[p])}catch(v){d[p]=o[p]}}}},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),o=i(n.split("/")),s=Math.min(r.length,o.length),a=s,l=0;l<s;l++)if(r[l]!==o[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(r=!1,i=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("da84"),s=n("5135"),a=n("861d"),l=n("9bf2").f,c=n("e893"),u=o.Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};c(f,u);var d=f.prototype=u.prototype;d.constructor=f;var p=d.toString,v="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;l(d,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=p.call(e);if(s(h,e))return"";var n=v?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:f})}},e163:function(e,t,n){var i=n("5135"),r=n("7b0b"),o=n("f772"),s=n("e177"),a=o("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),o=n("3f8c"),s=n("69f3"),a=n("7dd0"),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),o=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=r((function(){s(1)})),c=!a||l;i({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(o(e),t)}})},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("fc6a"),r=n("a691"),o=n("50c4"),s=n("a640"),a=n("ae40"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),f=a("indexOf",{ACCESSORS:!0,1:0}),d=u||!h||!f;e.exports=d?function(e){if(u)return c.apply(this,arguments)||0;var t=i(this),n=o(t.length),s=n-1;for(arguments.length>1&&(s=l(s,r(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var i,r,o,s,a=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),h=n("fea9"),f=n("6eeb"),d=n("e2cc"),p=n("d44e"),v=n("2626"),g=n("861d"),m=n("1c0b"),y=n("19aa"),w=n("8925"),_=n("2266"),b=n("1c7e"),x=n("4840"),T=n("2cf4").set,S=n("b575"),P=n("cdf9"),E=n("44de"),C=n("f069"),R=n("e667"),k=n("69f3"),O=n("94ca"),I=n("b622"),A=n("605d"),$=n("2d00"),L=I("species"),D="Promise",M=k.get,F=k.set,B=k.getterFor(D),N=h,j=c.TypeError,H=c.document,z=c.process,V=u("fetch"),U=C.f,W=U,q=!!(H&&H.createEvent&&c.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Z="unhandledrejection",X="rejectionhandled",K=0,Y=1,J=2,Q=1,ee=2,te=O(D,(function(){var e=w(N)!==String(N);if(!e){if(66===$)return!0;if(!A&&!G)return!0}if(l&&!N.prototype["finally"])return!0;if($>=51&&/native code/.test(N))return!1;var t=N.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[L]=n,!(t.then((function(){}))instanceof n)})),ne=te||!b((function(e){N.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;S((function(){var i=e.value,r=e.state==Y,o=0;while(n.length>o){var s,a,l,c=n[o++],u=r?c.ok:c.fail,h=c.resolve,f=c.reject,d=c.domain;try{u?(r||(e.rejection===ee&&le(e),e.rejection=Q),!0===u?s=i:(d&&d.enter(),s=u(i),d&&(d.exit(),l=!0)),s===c.promise?f(j("Promise-chain cycle")):(a=ie(s))?a.call(s,h,f):h(s)):f(i)}catch(p){d&&!l&&d.exit(),f(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&se(e)}))}},oe=function(e,t,n){var i,r;q?(i=H.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!G&&(r=c["on"+e])?r(i):e===Z&&E("Unhandled promise rejection",n)},se=function(e){T.call(c,(function(){var t,n=e.facade,i=e.value,r=ae(e);if(r&&(t=R((function(){A?z.emit("unhandledRejection",i,n):oe(Z,n,i)})),e.rejection=A||ae(e)?ee:Q,t.error))throw t.value}))},ae=function(e){return e.rejection!==Q&&!e.parent},le=function(e){T.call(c,(function(){var t=e.facade;A?z.emit("rejectionHandled",t):oe(X,t,e.value)}))},ce=function(e,t,n){return function(i){e(t,i,n)}},ue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=J,re(e,!0))},he=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw j("Promise can't be resolved itself");var i=ie(t);i?S((function(){var n={done:!1};try{i.call(t,ce(he,n,e),ce(ue,n,e))}catch(r){ue(n,r,e)}})):(e.value=t,e.state=Y,re(e,!1))}catch(r){ue({done:!1},r,e)}}};te&&(N=function(e){y(this,N,D),m(e),i.call(this);var t=M(this);try{e(ce(he,t),ce(ue,t))}catch(n){ue(t,n)}},i=function(e){F(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})},i.prototype=d(N.prototype,{then:function(e,t){var n=B(this),i=U(x(this,N));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=A?z.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=K&&re(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=M(e);this.promise=e,this.resolve=ce(he,t),this.reject=ce(ue,t)},C.f=U=function(e){return e===N||e===o?new r(e):W(e)},l||"function"!=typeof h||(s=h.prototype.then,f(h.prototype,"then",(function(e,t){var n=this;return new N((function(e,t){s.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return P(N,V.apply(c,arguments))}}))),a({global:!0,wrap:!0,forced:te},{Promise:N}),p(N,D,!1,!0),v(D),o=u(D),a({target:D,stat:!0,forced:te},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),a({target:D,stat:!0,forced:l||te},{resolve:function(e){return P(l&&this===o?N:this,e)}}),a({target:D,stat:!0,forced:ne},{all:function(e){var t=this,n=U(t),i=n.resolve,r=n.reject,o=R((function(){var n=m(t.resolve),o=[],s=0,a=1;_(e,(function(e){var l=s++,c=!1;o.push(void 0),a++,n.call(t,e).then((function(e){c||(c=!0,o[l]=e,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=U(t),i=n.reject,r=R((function(){var r=m(t.resolve);_(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},e893:function(e,t,n){var i=n("5135"),r=n("56ef"),o=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=r(t),a=s.f,l=o.f,c=0;c<n.length;c++){var u=n[c];i(e,u)||a(e,u,l(t,u))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),o=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[o]===e)}},f069:function(e,t,n){"use strict";var i=n("1c0b"),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},f183:function(e,t,n){var i=n("d012"),r=n("861d"),o=n("5135"),s=n("9bf2").f,a=n("90e3"),l=n("bb2f"),c=a("meta"),u=0,h=Object.isExtensible||function(){return!0},f=function(e){s(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!h(e))return"F";if(!t)return"E";f(e)}return e[c].objectID},p=function(e,t){if(!o(e,c)){if(!h(e))return!0;if(!t)return!1;f(e)}return e[c].weakData},v=function(e){return l&&g.REQUIRED&&h(e)&&!o(e,c)&&f(e),e},g=e.exports={REQUIRED:!1,fastKey:d,getWeakData:p,onFreeze:v};i[c]=!0},f5df:function(e,t,n){var i=n("00ee"),r=n("c6b6"),o=n("b622"),s=o("toStringTag"),a="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),s))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("861d"),o=n("e8b5"),s=n("23cb"),a=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),h=n("1dde"),f=n("ae40"),d=h("slice"),p=f("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),g=[].slice,m=Math.max;i({target:"Array",proto:!0,forced:!d||!p},{slice:function(e,t){var n,i,u,h=l(this),f=a(h.length),d=s(e,f),p=s(void 0===t?f:t,f);if(o(h)&&(n=h.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(h,d,p);for(i=new(void 0===n?Array:n)(m(p-d,0)),u=0;d<p;d++,u++)d in h&&c(i,u,h[d]);return i.length=u,i}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise}});