/*! For license information please see mirador.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Mirador=t():e.Mirador=t()}(window,(function(){return function(e){function t(t){for(var n,o,i=t[0],a=t[1],s=0,l=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&l.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);l.length;)l.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(){return Promise.resolve()},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o.oe=function(e){throw console.error(e),e};var i=window.webpackJsonpMirador=window.webpackJsonpMirador||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var c=a;return o(o.s=626)}([function(e,t,n){"use strict";e.exports=n(843)},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={ADD_COMPANION_WINDOW:"mirador/ADD_COMPANION_WINDOW",UPDATE_COMPANION_WINDOW:"mirador/UPDATE_COMPANION_WINDOW",REMOVE_COMPANION_WINDOW:"mirador/REMOVE_COMPANION_WINDOW",TOGGLE_TOC_NODE:"mirador/TOGGLE_TOC_NODE",UPDATE_WINDOW:"mirador/UPDATE_WINDOW",REQUEST_CANVAS_ANNOTATIONS:"mirador/REQUEST_CANVAS_ANNOTATIONS",HOVER_ANNOTATION:"mirador/HOVER_ANNOTATION",REQUEST_ANNOTATION:"mirador/REQUEST_ANNOTATION",RECEIVE_ANNOTATION:"mirador/RECEIVE_ANNOTATION",RECEIVE_ANNOTATION_FAILURE:"mirador/RECEIVE_ANNOTATION_FAILURE",DESELECT_ANNOTATION:"mirador/DESELECT_ANNOTATION",SELECT_ANNOTATION:"mirador/SELECT_ANNOTATION",TOGGLE_ANNOTATION_DISPLAY:"mirador/TOGGLE_ANNOTATION_DISPLAY",FOCUS_WINDOW:"mirador/FOCUS_WINDOW",SET_WORKSPACE_FULLSCREEN:"mirador/SET_WORKSPACE_FULLSCREEN",SET_WORKSPACE_VIEWPORT_POSITION:"mirador/SET_WORKSPACE_VIEWPORT_POSITION",ADD_MANIFEST:"mirador/ADD_MANIFEST",ADD_WINDOW:"mirador/ADD_WINDOW",ADD_ERROR:"mirador/ADD_ERROR",IMPORT_CONFIG:"mirador/IMPORT_CONFIG",IMPORT_MIRADOR_STATE:"mirador/IMPORT_MIRADOR_STATE",SET_CANVAS:"mirador/SET_CANVAS",MAXIMIZE_WINDOW:"mirador/MAXIMIZE_WINDOW",MINIMIZE_WINDOW:"mirador/MINIMIZE_WINDOW",UPDATE_WINDOW_POSITION:"mirador/UPDATE_WINDOW_POSITION",SET_WINDOW_SIZE:"mirador/SET_WINDOW_SIZE",REMOVE_WINDOW:"mirador/REMOVE_WINDOW",PICK_WINDOWING_SYSTEM:"mirador/PICK_WINDOWING_SYSTEM",REQUEST_MANIFEST:"mirador/REQUEST_MANIFEST",RECEIVE_MANIFEST:"mirador/RECEIVE_MANIFEST",RECEIVE_MANIFEST_FAILURE:"mirador/RECEIVE_MANIFEST_FAILURE",REMOVE_ERROR:"mirador/REMOVE_ERROR",SET_CONFIG:"mirador/SET_CONFIG",UPDATE_WORKSPACE:"mirador/UPDATE_WORKSPACE",SET_WINDOW_THUMBNAIL_POSITION:"mirador/SET_WINDOW_THUMBNAIL_POSITION",SET_WINDOW_VIEW_TYPE:"mirador/SET_WINDOW_VIEW_TYPE",SET_WORKSPACE_ADD_VISIBILITY:"mirador/SET_WORKSPACE_ADD_VISIBILITY",TOGGLE_WINDOW_SIDE_BAR:"mirador/TOGGLE_WINDOW_SIDE_BAR",TOGGLE_DRAGGING:"mirador/TOGGLE_DRAGGING",TOGGLE_ZOOM_CONTROLS:"mirador/TOGGLE_ZOOM_CONTROLS",UPDATE_CONFIG:"mirador/UPDATE_CONFIG",REMOVE_MANIFEST:"mirador/REMOVE_MANIFEST",REQUEST_INFO_RESPONSE:"mirador/REQUEST_INFO_RESPONSE",RECEIVE_INFO_RESPONSE:"mirador/RECEIVE_INFO_RESPONSE",RECEIVE_DEGRADED_INFO_RESPONSE:"mirador/RECEIVE_DEGRADED_INFO_RESPONSE",RECEIVE_INFO_RESPONSE_FAILURE:"mirador/RECEIVE_INFO_RESPONSE_FAILURE",REMOVE_INFO_RESPONSE:"mirador/REMOVE_INFO_RESPONSE",UPDATE_WORKSPACE_MOSAIC_LAYOUT:"mirador/UPDATE_WORKSPACE_MOSAIC_LAYOUT",UPDATE_VIEWPORT:"mirador/UPDATE_VIEWPORT",UPDATE_ELASTIC_WINDOW_LAYOUT:"mirador/UPDATE_ELASTIC_WINDOW_LAYOUT",ADD_AUTHENTICATION_REQUEST:"mirador/ADD_AUTHENTICATION_REQUEST",RESOLVE_AUTHENTICATION_REQUEST:"mirador/RESOLVE_AUTHENTICATION_REQUEST",REQUEST_ACCESS_TOKEN:"mirador/REQUEST_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN:"mirador/RECEIVE_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN_FAILURE:"mirador/RECEIVE_ACCESS_TOKEN_FAILURE",RESET_AUTHENTICATION_STATE:"mirador/RESET_AUTHENTICATION_STATE",CLEAR_ACCESS_TOKEN_QUEUE:"mirador/CLEAR_ACCESS_TOKEN_QUEUE",REQUEST_SEARCH:"mirador/REQUEST_SEARCH",RECEIVE_SEARCH:"mirador/RECEIVE_SEARCH",RECEIVE_SEARCH_FAILURE:"mirador/RECEIVE_SEARCH_FAILURE",REMOVE_SEARCH:"mirador/REMOVE_SEARCH",SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:"mirador/SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS",UPDATE_LAYERS:"mirador/UPDATE_LAYERS",ADD_RESOURCE:"mirador/ADD_RESOURCE",REMOVE_RESOURCE:"mirador/REMOVE_RESOURCE",SHOW_COLLECTION_DIALOG:"mirador/SHOW_COLLECTION_DIALOG",HIDE_COLLECTION_DIALOG:"mirador/HIDE_COLLECTION_DIALOG"}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return l})),n.d(t,"applyMiddleware",(function(){return m})),n.d(t,"bindActionCreators",(function(){return h})),n.d(t,"combineReducers",(function(){return d})),n.d(t,"compose",(function(){return g})),n.d(t,"createStore",(function(){return f}));var s="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,c=[],d=c,p=!1;function h(){d===c&&(d=c.slice())}function g(){if(p)throw new Error(a(3));return i}function m(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),c=null}}}function v(e){if(!u(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error(a(10));o=e,v({type:l.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return v({type:l.INIT}),(r={dispatch:v,subscribe:m,getState:g,replaceReducer:b})[s]=y,r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:l.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},c=0;c<s.length;c++){var l=s[c],u=n[l],f=e[l],d=u(f,t);if(void 0===d){t&&t.type;throw new Error(a(14))}o[l]=d,r=r||d!==f}return(r=r||s.length!==Object.keys(e).length)?o:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=p(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return r=g.apply(void 0,s)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";function r(e){var t,n,o="";if(e)if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(n=r(t))&&(o&&(o+=" "),o+=n);else"boolean"==typeof e||e.call||(o&&(o+=" "),o+=e);return o}t.a=function(){for(var e,t=0,n="";t<arguments.length;)(e=r(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(54);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),o=n.n(r),i=n(379),a=n.n(i),s=n(185),c=n.n(s),l=n(281);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a()((function(e,t){function n(n,i){var a=Object(r.useContext)(l.a),s=f(f({},n),i?{ref:i}:{}),u=(a||{})[e];if(c()(u)||c()(u.wrap)&&c()(u.add))return o.a.createElement(t,s);var d=(u.add||[]).map((function(e){return e.component})),p=o.a.createElement(t,Object.assign({},s,{PluginComponents:d}));if(c()(u.wrap))return p;return u.wrap.slice().reverse().reduce((function(e,n){var r=n.component;return o.a.createElement(r,Object.assign({targetProps:s},s,{PluginComponents:d,TargetComponent:t}),e)}),o.a.createElement(t,s))}var i=o.a.forwardRef(n);return i.displayName="WithPlugins(".concat(e,")"),i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return F}));var r=n(0),o=n.n(r),i=(n(11),o.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function c(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}();var u=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=s.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,c]);var u=n||i;return o.a.createElement(u.Provider,{value:s},a)},f=n(1),d=n(54),p=n(99),h=n.n(p),g=n(96),m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,v=[],b=[null,null];function y(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){m((function(){return e.apply(void 0,t)}),n)}function O(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function E(e,t,n,r,o,i,a,s,c,l){if(e){var u=!1,f=null,d=function(){if(!u){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||c():(i.current=e,s.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var x=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,u=void 0===c?"connectAdvanced":c,p=n.renderCountProp,m=void 0===p?void 0:p,S=n.shouldHandleStateChanges,j=void 0===S||S,T=n.storeKey,_=void 0===T?"store":T,C=(n.withRef,n.forwardRef),I=void 0!==C&&C,P=n.context,k=void 0===P?i:P,R=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),A=k;return function(t){var n=t.displayName||t.name||"Component",i=s(n),a=Object(f.a)({},R,{getDisplayName:s,methodName:u,renderCountProp:m,shouldHandleStateChanges:j,storeKey:_,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=R.pure;var p=c?r.useMemo:function(e){return e()};function S(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(d.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),s=i[0],c=i[1],u=i[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(g.isContextConsumer)(o.a.createElement(s.Consumer,null))?s:A}),[s,A]),m=Object(r.useContext)(h),S=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var T=S?n.store:m.store,_=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(T)}),[T]),C=Object(r.useMemo)((function(){if(!j)return b;var e=new l(T,S?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[T,S,m]),I=C[0],P=C[1],k=Object(r.useMemo)((function(){return S?m:Object(f.a)({},m,{subscription:I})}),[S,m,I]),R=Object(r.useReducer)(y,v,x),D=R[0][0],M=R[1];if(D&&D.error)throw D.error;var N=Object(r.useRef)(),L=Object(r.useRef)(u),z=Object(r.useRef)(),W=Object(r.useRef)(!1),B=p((function(){return z.current&&u===L.current?z.current:_(T.getState(),u)}),[T,D,u]);w(O,[L,N,W,u,B,z,P]),w(E,[j,T,I,_,L,N,W,z,P,M],[T,I,_]);var F=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},B,{ref:c}))}),[c,t,B]);return Object(r.useMemo)((function(){return j?o.a.createElement(h.Provider,{value:k},F):F}),[h,F,k])}var T=c?o.a.memo(S):S;if(T.WrappedComponent=t,T.displayName=i,I){var C=o.a.forwardRef((function(e,t){return o.a.createElement(T,Object(f.a)({},e,{forwardedRef:t}))}));return C.displayName=i,C.WrappedComponent=t,h()(C,t)}return h()(T,t)}}function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!j(e[n[o]],t[n[o]]))return!1;return!0}var _=n(3);function C(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=I(o),o=r(t,n)),o},r}}var k=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:C((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?C((function(t){return Object(_.bindActionCreators)(e,t)})):void 0}];var R=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:C((function(){return{}}))}];function A(e,t,n){return Object(f.a)({},n,{},e,{},t)}var D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return A}}];function M(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function N(e,t,n,r,o){var i,a,s,c,l,u=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,g,m=!f(p,a),v=!u(o,i);return i=o,a=p,m&&v?(s=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),l=n(s,c,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),l=n(s,c,a)):v?(h=e(i,a),g=!d(h,s),s=h,g&&(l=n(s,c,a)),l):l}return function(o,u){return p?h(o,u):(s=e(i=o,a=u),c=t(r,a),l=n(s,c,a),p=!0,l)}}function L(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(d.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),c=o(e,i);return(i.pure?N:M)(a,s,c,e,i)}function z(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function W(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,o=t.mapStateToPropsFactories,i=void 0===o?R:o,a=t.mapDispatchToPropsFactories,s=void 0===a?k:a,c=t.mergePropsFactories,l=void 0===c?D:c,u=t.selectorFactory,p=void 0===u?L:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,u=void 0===c||c,h=a.areStatesEqual,g=void 0===h?W:h,m=a.areOwnPropsEqual,v=void 0===m?T:m,b=a.areStatePropsEqual,y=void 0===b?T:b,w=a.areMergedPropsEqual,O=void 0===w?T:w,E=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=z(e,i,"mapStateToProps"),S=z(t,s,"mapDispatchToProps"),j=z(n,l,"mergeProps");return r(p,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:S,initMergeProps:j,pure:u,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:y,areMergedPropsEqual:O},E))}}var F=B();var H,U=n(32);H=U.unstable_batchedUpdates,a=H},function(e,t,n){var r=n(33),o=n(64).f,i=n(71),a=n(65),s=n(317),c=n(411),l=n(197);e.exports=function(e,t){var n,u,f,d,p,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!l(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,u,d,e)}}},function(e,t,n){"use strict";function r(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,s=r.pop(),c=a(r),l=e.apply(void 0,[function(){return i++,s.apply(null,arguments)}].concat(n)),u=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return l.apply(null,e)}));return u.resultFunc=s,u.dependencies=c,u.recomputations=function(){return i},u.resetRecomputations=function(){return i=0},u}}n.r(t),n.d(t,"defaultMemoize",(function(){return i})),n.d(t,"createSelectorCreator",(function(){return s})),n.d(t,"createSelector",(function(){return c})),n.d(t,"createStructuredSelector",(function(){return l}));var c=s(i);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}))}},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=n.n(i),s=(n(11),n(99)),c=n.n(s),l=n(59),u=n(1089),f={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},d=n(603),p=n(1090),h=-1e9;function g(){return h+=1}n(109);var m=n(382);function v(e){var t="function"==typeof e;return{create:function(n,o){var i;try{i=t?e(n):e}catch(e){throw e}if(!o||!n.overrides||!n.overrides[o])return i;var a=n.overrides[o],s=Object(r.a)({},i);return Object.keys(a).forEach((function(e){s[e]=Object(m.a)(s[e],a[e])})),s},options:{}}}var b={};function y(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Object(u.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function w(e,t){var n=e.state,o=e.theme,i=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!i.disableGeneration){var c=f.get(i.sheetsManager,a,o);c||(c={refs:0,staticSheet:null,dynamicStyles:null},f.set(i.sheetsManager,a,o,c));var d=Object(r.a)({},a.options,i,{theme:o,flip:"boolean"==typeof i.flip?i.flip:"rtl"===o.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=i.sheetsRegistry;if(0===c.refs){var h;i.sheetsCache&&(h=f.get(i.sheetsCache,a,o));var g=a.create(o,s);h||((h=i.jss.createStyleSheet(g,Object(r.a)({link:!1},d))).attach(),i.sheetsCache&&f.set(i.sheetsCache,a,o,h)),p&&p.add(h),c.staticSheet=h,c.dynamicStyles=Object(l.d)(g)}if(c.dynamicStyles){var m=i.jss.createStyleSheet(c.dynamicStyles,Object(r.a)({link:!0},d));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=Object(u.a)({baseClasses:c.staticSheet.classes,newClasses:m.classes}),p&&p.add(m)}else n.classes=c.staticSheet.classes;c.refs+=1}}function O(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function E(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=f.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(f.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function x(e,t){var n,r=a.a.useRef([]),o=a.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[o])}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,s=t.Component,c=t.defaultTheme,l=void 0===c?b:c,u=Object(o.a)(t,["name","classNamePrefix","Component","defaultTheme"]),f=v(e),h=n||i||"makeStyles";f.options={index:g(),name:n,meta:h,classNamePrefix:h};var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(d.a)()||l,o=Object(r.a)({},a.a.useContext(p.a),u),i=a.a.useRef(),c=a.a.useRef();x((function(){var r={name:n,state:{},stylesCreator:f,stylesOptions:o,theme:t};return w(r,e),c.current=!1,i.current=r,function(){E(r)}}),[t,f]),a.a.useEffect((function(){c.current&&O(i.current,e),c.current=!0}));var h=y(i.current,e.classes,s);return h};return m}var j=n(1091),T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,s=t.withTheme,l=void 0!==s&&s,u=t.name,f=Object(o.a)(t,["defaultTheme","withTheme","name"]);var p=u,h=S(e,Object(r.a)({defaultTheme:i,Component:n,name:u||n.displayName,classNamePrefix:p},f)),g=a.a.forwardRef((function(e,t){e.classes;var s,c=e.innerRef,f=Object(o.a)(e,["classes","innerRef"]),p=h(Object(r.a)({},n.defaultProps,e)),g=f;return("string"==typeof u||l)&&(s=Object(d.a)()||i,u&&(g=Object(j.a)({theme:s,name:u,props:f})),l&&!g.theme&&(g.theme=s)),a.a.createElement(n,Object(r.a)({ref:c||t,classes:p},g))}));return c()(g,n),g}},_=n(276);t.a=function(e,t){return T(e,Object(r.a)({defaultTheme:_.a},t))}},function(e,t,n){e.exports=n(847)()},function(e,t,n){"use strict";var r=n(87),o=n(24),i=n.n(o);t.a=function(e){return i()([e]).map((function(e){return[r.a.createGenerateClassNameOptions.productionPrefix,e].join("-")})).join(" ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BOOKMARKING="oa:bookmarking",e.CLASSIFYING="oa:classifying",e.COMMENTING="oa:commenting",e.DESCRIBING="oa:describing",e.EDITING="oa:editing",e.HIGHLIGHTING="oa:highlighting",e.IDENTIFYING="oa:identifying",e.LINKING="oa:linking",e.MODERATING="oa:moderating",e.PAINTING="sc:painting",e.QUESTIONING="oa:questioning",e.REPLYING="oa:replying",e.TAGGING="oa:tagging",e.TRANSCRIBING="oad:transcribing"}(t.AnnotationMotivation||(t.AnnotationMotivation={})),function(e){e.AUTO_ADVANCE="auto-advance",e.CONTINUOUS="continuous",e.FACING_PAGES="facing-pages",e.HIDDEN="hidden",e.INDIVIDUALS="individuals",e.MULTI_PART="multi-part",e.NO_NAV="no-nav",e.NON_PAGED="non-paged",e.PAGED="paged",e.REPEAT="repeat",e.SEQUENCE="sequence",e.THUMBNAIL_NAV="thumbnail-nav",e.TOGETHER="together",e.UNORDERED="unordered"}(t.Behavior||(t.Behavior={})),function(e){e.CANVAS="canvas",e.CHOICE="choice",e.OA_CHOICE="oa:choice",e.CONTENT_AS_TEXT="contentastext",e.DATASET="dataset",e.DOCUMENT="document",e.IMAGE="image",e.MODEL="model",e.MOVING_IMAGE="movingimage",e.PDF="pdf",e.PHYSICAL_OBJECT="physicalobject",e.SOUND="sound",e.TEXT="text",e.TEXTUALBODY="textualbody",e.VIDEO="video"}(t.ExternalResourceType||(t.ExternalResourceType={})),function(e){e.ANNOTATION="annotation",e.CANVAS="canvas",e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range",e.SEQUENCE="sequence"}(t.IIIFResourceType||(t.IIIFResourceType={})),function(e){e.AUDIO_MP4="audio/mp4",e.CORTO="application/corto",e.DICOM="application/dicom",e.DRACO="application/draco",e.EPUB="application/epub+zip",e.GLB="model/gltf-binary",e.GLTF="model/gltf+json",e.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',e.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',e.JPG="image/jpeg",e.M3U8="application/vnd.apple.mpegurl",e.MP3="audio/mp3",e.MPEG_DASH="application/dash+xml",e.OBJ="text/plain",e.OPF="application/oebps-package+xml",e.PDF="application/pdf",e.PLY="application/ply",e.THREEJS="application/vnd.threejs+json",e.USDZ="model/vnd.usd+zip",e.VIDEO_MP4="video/mp4",e.WEBM="video/webm"}(t.MediaType||(t.MediaType={})),function(e){e.DOC="application/msword",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.PDF="application/pdf"}(t.RenderingFormat||(t.RenderingFormat={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",e.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",e.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",e.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",e.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",e.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",e.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",e.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",e.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",e.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",e.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",e.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",e.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",e.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",e.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",e.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",e.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",e.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",e.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",e.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",e.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",e.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",e.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",e.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",e.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",e.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",e.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",e.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",e.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",e.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",e.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",e.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",e.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",e.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",e.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",e.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",e.SEARCH_0="http://iiif.io/api/search/0/search",e.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",e.SEARCH_1="http://iiif.io/api/search/1/search",e.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",e.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",e.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",e.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",e.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",e.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",e.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(t.ServiceProfile||(t.ServiceProfile={})),function(e){e.BOTTOM_TO_TOP="bottom-to-top",e.LEFT_TO_RIGHT="left-to-right",e.RIGHT_TO_LEFT="right-to-left",e.TOP_TO_BOTTOM="top-to-bottom"}(t.ViewingDirection||(t.ViewingDirection={})),function(e){e.CONTINUOUS="continuous",e.INDIVIDUALS="individuals",e.NON_PAGED="non-paged",e.PAGED="paged",e.TOP="top"}(t.ViewingHint||(t.ViewingHint={}))},function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(959)},function(e,t,n){"use strict";n.r(t);var r=n(529);n.d(t,"getAnnotations",(function(){return r.c})),n.d(t,"getPresentAnnotationsOnSelectedCanvases",(function(){return r.d})),n.d(t,"getAnnotationResourcesByMotivationForCanvas",(function(){return r.b})),n.d(t,"getAnnotationResourcesByMotivation",(function(){return r.a})),n.d(t,"getSelectedAnnotationId",(function(){return r.e})),n.d(t,"getSelectedAnnotationsOnCanvases",(function(){return r.f}));var o=n(53);n.d(t,"selectInfoResponses",(function(){return o.q})),n.d(t,"getCanvases",(function(){return o.f})),n.d(t,"getCanvas",(function(){return o.a})),n.d(t,"getCurrentCanvas",(function(){return o.g})),n.d(t,"getVisibleCanvasIds",(function(){return o.l})),n.d(t,"getVisibleCanvases",(function(){return o.o})),n.d(t,"getCanvasGroupings",(function(){return o.d})),n.d(t,"getCanvasGrouping",(function(){return o.c})),n.d(t,"getNextCanvasGrouping",(function(){return o.h})),n.d(t,"getPreviousCanvasGrouping",(function(){return o.i})),n.d(t,"getCanvasLabel",(function(){return o.e})),n.d(t,"getCanvasDescription",(function(){return o.b})),n.d(t,"getVisibleCanvasNonTiledResources",(function(){return o.m})),n.d(t,"getVisibleCanvasVideoResources",(function(){return o.n})),n.d(t,"getVisibleCanvasCaptions",(function(){return o.k})),n.d(t,"getVisibleCanvasAudioResources",(function(){return o.j})),n.d(t,"selectInfoResponse",(function(){return o.p}));var i=n(157);n.d(t,"getCompanionWindows",(function(){return i.d})),n.d(t,"getCompanionWindow",(function(){return i.b})),n.d(t,"getThumbnailNavigationPosition",(function(){return i.g})),n.d(t,"getCompanionWindowsForPosition",(function(){return i.f})),n.d(t,"getCompanionWindowsForContent",(function(){return i.e})),n.d(t,"getCompanionWindowIdsForPosition",(function(){return i.c})),n.d(t,"getCompanionAreaVisibility",(function(){return i.a})),n.d(t,"selectCompanionWindowDimensions",(function(){return i.h}));var a=n(97);n.d(t,"getConfig",(function(){return a.a})),n.d(t,"getExportableState",(function(){return a.c})),n.d(t,"getLanguagesFromConfigWithCurrent",(function(){return a.d})),n.d(t,"getShowZoomControlsConfig",(function(){return a.f})),n.d(t,"getTheme",(function(){return a.g})),n.d(t,"getThemeIds",(function(){return a.i})),n.d(t,"getContainerId",(function(){return a.b})),n.d(t,"getThemeDirection",(function(){return a.h})),n.d(t,"getRequestsConfig",(function(){return a.e}));var s=n(36);n.d(t,"getWindowManifests",(function(){return s.g})),n.d(t,"getWindows",(function(){return s.h})),n.d(t,"getWindow",(function(){return s.e})),n.d(t,"getViewer",(function(){return s.d})),n.d(t,"getWorkspace",(function(){return s.i})),n.d(t,"getWindowIds",(function(){return s.f})),n.d(t,"getManifests",(function(){return s.c})),n.d(t,"getManifest",(function(){return s.b})),n.d(t,"getCatalog",(function(){return s.a}));var c=n(88);n.d(t,"getManifestStatus",(function(){return c.m})),n.d(t,"getManifestError",(function(){return c.d})),n.d(t,"getManifestoInstance",(function(){return c.q})),n.d(t,"getManifestLocale",(function(){return c.f})),n.d(t,"getManifestLogo",(function(){return c.g})),n.d(t,"getManifestProvider",(function(){return c.i})),n.d(t,"getManifestHomepage",(function(){return c.e})),n.d(t,"getManifestRenderings",(function(){return c.k})),n.d(t,"getManifestRelatedContent",(function(){return c.j})),n.d(t,"getRequiredStatement",(function(){return c.s})),n.d(t,"getRights",(function(){return c.t})),n.d(t,"getManifestThumbnail",(function(){return c.n})),n.d(t,"getManifestTitle",(function(){return c.o})),n.d(t,"getManifestDescription",(function(){return c.c})),n.d(t,"getManifestUrl",(function(){return c.p})),n.d(t,"getDestructuredMetadata",(function(){return c.a})),n.d(t,"getManifestMetadata",(function(){return c.h})),n.d(t,"getMetadataLocales",(function(){return c.r})),n.d(t,"getManifestSearchService",(function(){return c.l})),n.d(t,"getManifestAutocompleteService",(function(){return c.b}));var l=n(264);n.d(t,"getWindowConfig",(function(){return l.c})),n.d(t,"getWindowTitles",(function(){return l.e})),n.d(t,"getMaximizedWindowsIds",(function(){return l.b})),n.d(t,"getWindowViewType",(function(){return l.f})),n.d(t,"getAllowedWindowViewTypes",(function(){return l.a})),n.d(t,"getWindowDraggability",(function(){return l.d}));var u=n(265);n.d(t,"getElasticLayout",(function(){return u.a})),n.d(t,"getFullScreenEnabled",(function(){return u.b})),n.d(t,"getLatestError",(function(){return u.c})),n.d(t,"getWorkspaceType",(function(){return u.d})),n.d(t,"isFocused",(function(){return u.e}));var f=n(503);n.d(t,"getSearchForWindow",(function(){return f.g})),n.d(t,"getSearchQuery",(function(){return f.j})),n.d(t,"getSearchIsFetching",(function(){return f.h})),n.d(t,"getSearchNumTotal",(function(){return f.i})),n.d(t,"getNextSearchId",(function(){return f.b})),n.d(t,"getSortedSearchHitsForCompanionWindow",(function(){return f.m})),n.d(t,"getSearchAnnotationsForCompanionWindow",(function(){return f.e})),n.d(t,"sortSearchAnnotationsByCanvasOrder",(function(){return f.n})),n.d(t,"getSortedSearchAnnotationsForCompanionWindow",(function(){return f.l})),n.d(t,"getSearchAnnotationsForWindow",(function(){return f.f})),n.d(t,"getSelectedContentSearchAnnotationIds",(function(){return f.k})),n.d(t,"getResourceAnnotationForSearchHit",(function(){return f.c})),n.d(t,"getResourceAnnotationLabel",(function(){return f.d})),n.d(t,"getCanvasForAnnotation",(function(){return f.a}));var d=n(216);n.d(t,"getVisibleNodeIds",(function(){return d.e})),n.d(t,"getManuallyExpandedNodeIds",(function(){return d.c})),n.d(t,"getExpandedNodeIds",(function(){return d.b})),n.d(t,"getNodeIdToScrollTo",(function(){return d.d})),n.d(t,"getDefaultSidebarVariant",(function(){return d.a}));var p=n(267);n.d(t,"getCanvasLayers",(function(){return p.a})),n.d(t,"getLayers",(function(){return p.b})),n.d(t,"getSortedLayers",(function(){return p.d})),n.d(t,"getLayersForVisibleCanvases",(function(){return p.c}));var h=n(66);n.d(t,"getSequences",(function(){return h.g})),n.d(t,"getSequence",(function(){return h.b})),n.d(t,"getCanvasIndex",(function(){return h.a})),n.d(t,"getSequenceViewingHint",(function(){return h.f})),n.d(t,"getSequenceViewingDirection",(function(){return h.e})),n.d(t,"getSequenceBehaviors",(function(){return h.c})),n.d(t,"getSequenceTreeStructure",(function(){return h.d}));var g=n(498);n.d(t,"getAuthProfiles",(function(){return g.c})),n.d(t,"getAccessTokens",(function(){return g.a})),n.d(t,"getAuth",(function(){return g.b})),n.d(t,"selectCurrentAuthServices",(function(){return g.d}));var m=n(40);n.d(t,"miradorSlice",(function(){return m.a}));var v=n(517);n.d(t,"getCurrentCanvasWorld",(function(){return v.a}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(277);function o(e){if("string"!=typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.r(t);var r=n(508);n.d(t,"addCompanionWindow",(function(){return r.a})),n.d(t,"addOrUpdateCompanionWindow",(function(){return r.b})),n.d(t,"updateCompanionWindow",(function(){return r.e})),n.d(t,"removeCompanionWindow",(function(){return r.c})),n.d(t,"toggleNode",(function(){return r.d}));var o=n(266);n.d(t,"importConfig",(function(){return o.a})),n.d(t,"setConfig",(function(){return o.c})),n.d(t,"updateConfig",(function(){return o.d})),n.d(t,"importMiradorState",(function(){return o.b}));var i=n(510);n.d(t,"addError",(function(){return i.a})),n.d(t,"removeError",(function(){return i.b}));var a=n(502);n.d(t,"focusWindow",(function(){return a.b})),n.d(t,"addWindow",(function(){return a.a})),n.d(t,"updateWindow",(function(){return a.l})),n.d(t,"maximizeWindow",(function(){return a.d})),n.d(t,"minimizeWindow",(function(){return a.e})),n.d(t,"setCompanionAreaOpen",(function(){return a.g})),n.d(t,"removeWindow",(function(){return a.f})),n.d(t,"toggleWindowSideBar",(function(){return a.k})),n.d(t,"setWindowThumbnailPosition",(function(){return a.h})),n.d(t,"setWindowViewType",(function(){return a.i})),n.d(t,"showCollectionDialog",(function(){return a.j})),n.d(t,"hideCollectionDialog",(function(){return a.c}));var s=n(497);n.d(t,"requestManifest",(function(){return s.e})),n.d(t,"receiveManifest",(function(){return s.b})),n.d(t,"receiveManifestFailure",(function(){return s.c})),n.d(t,"fetchManifest",(function(){return s.a})),n.d(t,"removeManifest",(function(){return s.d}));var c=n(499);n.d(t,"requestInfoResponse",(function(){return c.f})),n.d(t,"receiveInfoResponse",(function(){return c.c})),n.d(t,"receiveDegradedInfoResponse",(function(){return c.b})),n.d(t,"receiveInfoResponseFailure",(function(){return c.d})),n.d(t,"fetchInfoResponse",(function(){return c.a})),n.d(t,"removeInfoResponse",(function(){return c.e}));var l=n(501);n.d(t,"setCanvas",(function(){return l.a})),n.d(t,"setNextCanvas",(function(){return l.b})),n.d(t,"setPreviousCanvas",(function(){return l.c})),n.d(t,"updateViewport",(function(){return l.d}));var u=n(504);n.d(t,"updateWorkspace",(function(){return u.g})),n.d(t,"setWorkspaceFullscreen",(function(){return u.b})),n.d(t,"toggleZoomControls",(function(){return u.f})),n.d(t,"updateWorkspaceMosaicLayout",(function(){return u.h})),n.d(t,"setWorkspaceAddVisibility",(function(){return u.a})),n.d(t,"setWorkspaceViewportPosition",(function(){return u.d})),n.d(t,"setWorkspaceViewportDimensions",(function(){return u.c})),n.d(t,"toggleDraggingEnabled",(function(){return u.e}));var f=n(496);n.d(t,"requestCanvasAnnotations",(function(){return f.f})),n.d(t,"requestAnnotation",(function(){return f.e})),n.d(t,"receiveAnnotation",(function(){return f.c})),n.d(t,"receiveAnnotationFailure",(function(){return f.d})),n.d(t,"selectAnnotation",(function(){return f.g})),n.d(t,"deselectAnnotation",(function(){return f.a})),n.d(t,"toggleAnnotationDisplay",(function(){return f.h})),n.d(t,"hoverAnnotation",(function(){return f.b}));var d=n(505);n.d(t,"addAuthenticationRequest",(function(){return d.a})),n.d(t,"resolveAuthenticationRequest",(function(){return d.g})),n.d(t,"requestAccessToken",(function(){return d.d})),n.d(t,"receiveAccessToken",(function(){return d.b})),n.d(t,"receiveAccessTokenFailure",(function(){return d.c})),n.d(t,"resolveAccessTokenRequest",(function(){return d.f})),n.d(t,"resetAuthenticationState",(function(){return d.e}));var p=n(511);n.d(t,"updateElasticWindowLayout",(function(){return p.a}));var h=n(500);n.d(t,"requestSearch",(function(){return h.e})),n.d(t,"receiveSearch",(function(){return h.b})),n.d(t,"receiveSearchFailure",(function(){return h.c})),n.d(t,"removeSearch",(function(){return h.d})),n.d(t,"fetchSearch",(function(){return h.a})),n.d(t,"setContentSearchCurrentAnnotation",(function(){return h.f}));var g=n(512);n.d(t,"updateLayers",(function(){return g.a}));var m=n(513);n.d(t,"addResource",(function(){return m.a})),n.d(t,"removeResource",(function(){return m.b}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(174);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));0;return n.muiName=a.default.muiName,n};var o=r(n(1005)),i=r(n(0)),a=r(n(73))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.r(t),n.d(t,"chainPropTypes",(function(){return r})),n.d(t,"deepmerge",(function(){return o.a})),n.d(t,"elementAcceptingRef",(function(){return c})),n.d(t,"elementTypeAcceptingRef",(function(){return l})),n.d(t,"exactProp",(function(){return u})),n.d(t,"formatMuiErrorMessage",(function(){return f.a})),n.d(t,"getDisplayName",(function(){return b})),n.d(t,"HTMLElementType",(function(){return y})),n.d(t,"ponyfillGlobal",(function(){return w})),n.d(t,"refType",(function(){return O}));var o=n(382),i=n(11),a=n.n(i);var s=(a.a.element,function(){return null});s.isRequired=(a.a.element.isRequired,function(){return null});var c=s;var l=(i.elementType,function(){return null});n(26),n(1);function u(e){return e}var f=n(277),d=n(109),p=n(96),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function g(e){var t="".concat(e).match(h);return t&&t[1]||""}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||g(e)||t}function v(e,t,n){var r=m(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function b(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return m(e,"Component");if("object"===Object(d.a)(e))switch(e.$$typeof){case p.ForwardRef:return v(e,e.render,"ForwardRef");case p.Memo:return v(e,e.type,"memo");default:return}}}function y(e,t,n,r,o){return null}var w="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),O=a.a.oneOfType([a.a.func,a.a.object])},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(89);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(6),a=n(0),s=n.n(a),c=n(1095),l=n(1094),u=n(1096),f=n(12),d=["badge","children","containerId","dispatch","BadgeProps","TooltipProps"];function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){var t=e["aria-label"],n=e.badge,r=e.children,o=e.containerId,i=(e.dispatch,e.BadgeProps),a=e.TooltipProps,h=p(e,d),g=s.a.createElement(l.a,h,n?s.a.createElement(c.a,i,r):r);return h.disabled?g:s.a.createElement(u.a,Object.assign({PopperProps:{container:document.querySelector("#".concat(o," .").concat(Object(f.a)("viewer")))},title:t},a),g)}h.defaultProps={badge:!1,BadgeProps:{},dispatch:function(){},TooltipProps:{}};var g=n(97),m=Object(r.compose)(Object(o.b)((function(e){return{containerId:Object(g.b)(e)}}),null),Object(i.a)("MiradorMenuButton"));t.a=m(h)},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(277);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),a({type:l,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?f(e,t):d(e,t)}function u(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},,function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(844)},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")()}).call(this,n(121))},function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return re})),n.d(t,"d",(function(){return M}));var r,o,i=function(){function e(e){this.__jsonld=e,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return e.prototype.getProperty=function(e){var t=null;return this.__jsonld&&((t=this.__jsonld[e])||(t=this.__jsonld["@"+e])),t},e}(),a=n(13),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.options=n,r}return s(t,e),t.prototype.getIIIFResourceType=function(){return M.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){var e=this.getProperty("label");return e?W.parse(e,this.options.locale):new W([],this.options.locale)},t.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},t.prototype.getMetadata=function(){var e=this.getProperty("metadata"),t=[];if(!e)return t;for(var n=0;n<e.length;n++){var r=e[n],o=new P(this.options.locale);o.parse(r),t.push(o)}return t},t.prototype.getRendering=function(e){for(var t=this.getRenderings(),n=0;n<t.length;n++){var r=t[n];if(r.getFormat()===e)return r}return null},t.prototype.getRenderings=function(){var e,t=[];if(!(e=this.__jsonld?this.__jsonld.rendering:this.rendering))return t;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];t.push(new q(r,this.options))}return t},t.prototype.getService=function(e){return M.getService(this,e)},t.prototype.getServices=function(){return M.getServices(this)},t.prototype.getThumbnail=function(){var e=this.getProperty("thumbnail");return Array.isArray(e)&&(e=e[0]),e?new ne(e,this.options):null},t.prototype.isAnnotation=function(){return this.getIIIFResourceType()===a.IIIFResourceType.ANNOTATION},t.prototype.isCanvas=function(){return this.getIIIFResourceType()===a.IIIFResourceType.CANVAS},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.isRange=function(){return this.getIIIFResourceType()===a.IIIFResourceType.RANGE},t.prototype.isSequence=function(){return this.getIIIFResourceType()===a.IIIFResourceType.SEQUENCE},t}(i),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t,n){return e.call(this,t,n)||this}return l(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?e.toLowerCase():null},t.prototype.getResources=function(){var e=[];if(!this.__jsonld.resources)return e;for(var t=0;t<this.__jsonld.resources.length;t++){var n=this.__jsonld.resources[t],r=new h(n,this.options);e.push(r)}return e},t.prototype.getType=function(){var e=this.getProperty("type");return e?M.normaliseType(e):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},t.prototype.getMaxHeight=function(){return this.getProperty("maxHeight")?null:this.getMaxWidth()},t}(c),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.index=-1,r.isLoaded=!1;var o={defaultLabel:"-",locale:"en-GB",resource:r,pessimisticAccessControl:!1};return r.options=Object.assign(o,n),r}return f(t,e),t.prototype.getAttribution=function(){var e=this.getProperty("attribution");return e?W.parse(e,this.options.locale):new W([],this.options.locale)},t.prototype.getDescription=function(){var e=this.getProperty("description");return e?W.parse(e,this.options.locale):new W([],this.options.locale)},t.prototype.getHomepage=function(){var e=this.getProperty("homepage");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getIIIFResourceType=function(){return M.normaliseType(this.getProperty("type"))},t.prototype.getLogo=function(){var e=this.getProperty("logo");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getLicense=function(){return M.getLocalisedValue(this.getProperty("license"),this.options.locale)},t.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},t.prototype.getRelated=function(){return this.getProperty("related")},t.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},t.prototype.getTrackingLabel=function(){var e=this.getService(a.ServiceProfile.TRACKING_EXTENSIONS);return e?e.getProperty("trackingLabel"):""},t.prototype.getDefaultTree=function(){return this.defaultTree=new re("root"),this.defaultTree.data=this,this.defaultTree},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");if(t)(e=new P(this.options.locale)).parse(t);else{var n=this.getAttribution();n&&((e=new P(this.options.locale)).value=n)}return e},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.load=function(){var e=this;return new Promise((function(t){if(e.isLoaded)t(e);else{var n=e.options;n.navDate=e.getNavDate();var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),M.loadManifest(r).then((function(r){e.parentLabel=e.getLabel().getValue(n.locale);var o=Z.parse(r,n);(e=Object.assign(e,o)).index=n.index,t(e)}))}}))},t}(c),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(t,n){return e.call(this,t,n)||this}return p(t,e),t.prototype.getBody=function(){var e=[],t=this.getProperty("body");if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++){if((i=t[n]).items)for(var r=0;r<i.items.length;r++){var o=i.items[r];e.push(new m(o,this.options))}else e.push(new m(i,this.options))}else if(t.items)for(n=0;n<t.items.length;n++){var i=t.items[n];e.push(new m(i,this.options))}else e.push(new m(t,this.options));return e},t.prototype.getMotivation=function(){var e=this.getProperty("motivation");return e||null},t.prototype.getOn=function(){return this.getProperty("on")},t.prototype.getTarget=function(){return this.getProperty("target")},t.prototype.getResource=function(){return new u(this.getProperty("resource"),this.options)},t}(c),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(e){function t(t,n){return e.call(this,t,n)||this}return g(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?M.getMediaType(e):null},t.prototype.getType=function(){return this.getProperty("type")?M.normaliseType(this.getProperty("type")):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t}(c),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.label=t,o.options=r,o}return v(t,e),t.prototype.getIIIFResourceType=function(){return M.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){return this.label},t.prototype.getResources=function(){var e=this;return this.getProperty("resources").map((function(t){return new h(t,e.options)}))},t.prototype.load=function(){var e=this;return new Promise((function(t,n){if(e.isLoaded)t(e);else{var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),M.loadManifest(r).then((function(n){e.__jsonld=n,e.context=e.getProperty("context"),e.id=e.getProperty("id"),e.isLoaded=!0,t(e)})).catch(n)}}))},t}(i),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e){function t(t,n){return e.call(this,t,n)||this}return y(t,e),t.prototype.getItems=function(){return this.getProperty("items")},t}(c),O=n(305),E=n.n(O),x=n(388),S=n.n(x),j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(e){function t(t,n){return e.call(this,t,n)||this}return j(t,e),t.prototype.getCanonicalImageUri=function(e){var t,n=null,r="default",o=e;if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])n=this.externalResource.data["@id"],o||(o=this.externalResource.data.width),this.externalResource.data["@context"]&&(this.externalResource.data["@context"].indexOf("/1.0/context.json")>-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(r="native");else{var i=this.getImages();if(i&&i.length){var a=i[0].getResource(),s=a.getServices();if(o||(o=a.getWidth()),s.length){var c=s[0];n=c.id,r=M.getImageQuality(c.getProfile())}else if(o===a.getWidth())return a.id}if(!n){var l=this.getProperty("thumbnail");if(l){if("string"==typeof l)return l;if(l["@id"])return l["@id"];if(l.length)return l[0].id}}}return t=o+",",n&&n.endsWith("/")&&(n=n.substr(0,n.length-1)),[n,"full",t,0,r+".jpg"].join("/")},t.prototype.getMaxDimensions=function(){var e,t=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(e=this.externalResource.data.profile,Array.isArray(e)&&(e=e.filter((function(e){return e.maxWidth}))[0])&&(t=new Q(e.maxWidth,e.maxHeight?e.maxHeight:e.maxWidth))),t},t.prototype.getContent=function(){var e=[],t=this.__jsonld.items||this.__jsonld.content;if(!t)return e;var n=null;if(t.length&&(n=new w(t[0],this.options)),!n)return e;for(var r=n.getItems(),o=0;o<r.length;o++){var i=r[o],a=new h(i,this.options);e.push(a)}return e},t.prototype.getDuration=function(){return this.getProperty("duration")},t.prototype.getImages=function(){var e=[];if(!this.__jsonld.images)return e;for(var t=0;t<this.__jsonld.images.length;t++){var n=this.__jsonld.images[t],r=new h(n,this.options);e.push(r)}return e},t.prototype.getIndex=function(){return this.getProperty("index")},t.prototype.getOtherContent=function(){var e=this,t=Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")],n=t.filter((function(e){return e&&(t=e["@type"],n="sc:AnnotationList","string"==typeof t&&"string"==typeof n&&t.toLowerCase()==t.toLowerCase());var t,n})).map((function(t,n){return new b(t.label||"Annotation list "+n,t,e.options)})).map((function(e){return e.load()}));return Promise.all(n)},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},Object.defineProperty(t.prototype,"imageResources",{get:function(){var e=this,n=S()([this.getImages().map((function(e){return e.getResource()})),this.getContent().map((function(e){return e.getBody()}))]);return E()(n.map((function(n){switch(n.getProperty("type").toLowerCase()){case a.ExternalResourceType.CHOICE:case a.ExternalResourceType.OA_CHOICE:return new t({images:E()([n.getProperty("default"),n.getProperty("item")]).map((function(e){return{resource:e}}))},e.options).getImages().map((function(e){return e.getResource()}));default:return n}})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resourceAnnotations",{get:function(){return S()([this.getImages(),this.getContent()])},enumerable:!0,configurable:!0}),t.prototype.resourceAnnotation=function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||E()(new Array(t.getBody())).some((function(t){return t.id===e}))}))},t.prototype.onFragment=function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target"),o=(n||r).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}},Object.defineProperty(t.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!0,configurable:!0}),t}(u),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._collections=null,r._manifests=null,t.__collection=r,r}return _(t,e),t.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter((function(e){return e.isCollection()}))},t.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter((function(e){return e.isManifest()}))},t.prototype.getCollectionByIndex=function(e){for(var t,n=this.getCollections(),r=0;r<n.length;r++){var o=n[r];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Collection index not found")},t.prototype.getManifestByIndex=function(e){for(var t,n=this.getManifests(),r=0;r<n.length;r++){var o=n[r];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Manifest index not found")},t.prototype.getTotalCollections=function(){return this.getCollections().length},t.prototype.getTotalManifests=function(){return this.getManifests().length},t.prototype.getTotalItems=function(){return this.items.length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):a.ViewingDirection.LEFT_TO_RIGHT},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getDefaultTree=function(){return e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=M.normaliseType(J.COLLECTION),this._parseManifests(this),this._parseCollections(this),M.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._parseManifests=function(e){if(e.getManifests()&&e.getManifests().length)for(var t=0;t<e.getManifests().length;t++){var n=e.getManifests()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"manifest "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=M.normaliseType(J.MANIFEST),e.defaultTree.addNode(r)}},t.prototype._parseCollections=function(e){if(e.getCollections()&&e.getCollections().length)for(var t=0;t<e.getCollections().length;t++){var n=e.getCollections()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"collection "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=M.normaliseType(J.COLLECTION),e.defaultTree.addNode(r)}},t}(d),I=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getLength=function(){return this.end-this.start},e}(),P=function(){function e(e){this.defaultLocale=e}return e.prototype.parse=function(e){this.resource=e,this.label=W.parse(this.resource.label,this.defaultLocale),this.value=W.parse(this.resource.value,this.defaultLocale)},e.prototype.getLabel=function(e){return null===this.label?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.label.getValue(e||this.defaultLocale))},e.prototype.setLabel=function(e){null===this.label&&(this.label=new W([])),this.label.setValue(e,this.defaultLocale)},e.prototype.getValue=function(e,t){return void 0===t&&(t="<br/>"),null===this.value?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValue(e||this.defaultLocale,t))},e.prototype.getValues=function(e){return null===this.value?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValues(e||this.defaultLocale))},e.prototype.setValue=function(e){null===this.value&&(this.value=new W([])),this.value.setValue(e,this.defaultLocale)},e}(),k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}k(t,e),t.getValue=function(e,t){return e.getValue(t,"<br/>")},t.getValues=function(e,t){return e.getValues(t)}}(Array),n(82)),A=(n(381),function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}),D=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},M=function(){function e(){}return e.getMediaType=function(e){return(e=(e=e.toLowerCase()).split(";")[0]).trim()},e.getImageQuality=function(e){return e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_LEVEL_1||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_LEVEL_2||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},e.getInexactLocale=function(e){return-1!==e.indexOf("-")?e.substr(0,e.indexOf("-")):e},e.getLocalisedValue=function(e,t){if(!Array.isArray(e))return e;for(var n=0;n<e.length;n++){var r=e[n];if(t===r["@language"])return r["@value"]}var o=t.substr(0,t.indexOf("-"));for(n=0;n<e.length;n++){var i=e[n];if(i["@language"]===o)return i["@value"]}return null},e.generateTreeNodeIds=function(t,n){var r;void 0===n&&(n=0),r=t.parentNode?t.parentNode.id+"-"+n:"0",t.id=r;for(var o=0;o<t.nodes.length;o++){var i=t.nodes[o];e.generateTreeNodeIds(i,o)}},e.normaliseType=function(e){return-1!==(e=(e||"").toLowerCase()).indexOf(":")?e.split(":")[1]:e},e.normaliseUrl=function(e){return-1!==(e=e.substr(e.indexOf("://"))).indexOf("#")&&(e=e.split("#")[0]),e},e.normalisedUrlsMatch=function(t,n){return e.normaliseUrl(t)===e.normaliseUrl(n)},e.isImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.isLevel0ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},e.isLevel1ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},e.isLevel2ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.parseManifest=function(e,t){return Z.parse(e,t)},e.checkStatus=function(e){if(e.ok)return e;var t=new Error(e.statusText);return t.response=e,Promise.reject(t)},e.loadManifest=function(t){return new Promise((function(n,r){fetch(t).then(e.checkStatus).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r()}))}))},e.loadExternalResourcesAuth1=function(t,n,r,o,i,a,s,c){return new Promise((function(l,u){var f=t.map((function(t){return e.loadExternalResourceAuth1(t,n,r,o,i,a,s,c)}));Promise.all(f).then((function(){l(t)})).catch((function(e){u(e)}))}))},e.loadExternalResourceAuth1=function(t,n,r,o,i,a,s,c){return A(this,void 0,void 0,(function(){var l;return D(this,(function(u){switch(u.label){case 0:return[4,o(t)];case 1:return(l=u.sent())?[4,t.getData(l)]:[3,6];case 2:return u.sent(),t.status!==R.OK?[3,3]:[2,t];case 3:return[4,e.doAuthChain(t,n,r,i,a,s,c)];case 4:u.sent(),u.label=5;case 5:if(t.status===R.OK||t.status===R.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError();case 6:return[4,t.getData()];case 7:return u.sent(),t.status!==R.MOVED_TEMPORARILY&&t.status!==R.UNAUTHORIZED?[3,9]:[4,e.doAuthChain(t,n,r,i,a,s,c)];case 8:u.sent(),u.label=9;case 9:if(t.status===R.OK||t.status===R.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError()}}))}))},e.doAuthChain=function(t,n,r,o,i,a,s){return A(this,void 0,void 0,(function(){var c,l,u,f,d,p,h,g;return D(this,(function(m){switch(m.label){case 0:return t.isAccessControlled()?((c=t.externalService)&&(c.options=t.options),(l=t.kioskService)&&(l.options=t.options),(u=t.clickThroughService)&&(u.options=t.options),(f=t.loginService)&&(f.options=t.options),t.isResponseHandled||t.status!==R.MOVED_TEMPORARILY?[3,2]:[4,a(t)]):[2,t];case 1:case 3:case 6:case 10:case 14:return m.sent(),[2,t];case 2:return d=null,p=null,(d=c)?(p=d,[4,e.attemptResourceWithToken(t,r,d)]):[3,4];case 4:return(d=l)?(p=d,(h=n(d))?[4,o(h)]:[3,7]):[3,7];case 5:case 9:case 13:return m.sent(),[4,e.attemptResourceWithToken(t,r,d)];case 7:return(d=u)?(p=d,[4,i(t,d)]):[3,11];case 8:return(g=m.sent())?[4,o(g)]:[3,11];case 11:return(d=f)?(p=d,[4,i(t,d)]):[3,15];case 12:return(g=m.sent())?[4,o(g)]:[3,15];case 15:return p&&s(t,p),[2]}}))}))},e.attemptResourceWithToken=function(e,t,n){return A(this,void 0,void 0,(function(){var r,o;return D(this,(function(i){switch(i.label){case 0:return(r=n.getService(a.ServiceProfile.AUTH_1_TOKEN))?[4,t(e,r)]:[3,3];case 1:return(o=i.sent())&&o.accessToken?[4,e.getData(o)]:[3,3];case 2:return i.sent(),[2,e];case 3:return[2]}}))}))},e.loadExternalResourcesAuth09=function(t,n,r,o,i,a,s,c,l,u){return new Promise((function(f,d){var p=t.map((function(t){return e.loadExternalResourceAuth09(t,n,r,o,i,a,s,c,l,u)}));Promise.all(p).then((function(){f(t)})).catch((function(e){d(e)}))}))},e.loadExternalResourceAuth09=function(t,n,r,o,i,a,s,c,l,u){return new Promise((function(f,d){u&&u.pessimisticAccessControl?t.getData().then((function(){t.isAccessControlled()?t.clickThroughService?(f(r(t)),f(o(t))):i(t).then((function(){a(t,!0).then((function(n){t.getData(n).then((function(){f(l(t))})).catch((function(t){d(e.createInternalServerError(t))}))})).catch((function(t){d(e.createInternalServerError(t))}))})).catch((function(t){d(e.createInternalServerError(t))})):f(t)})).catch((function(t){d(e.createInternalServerError(t))})):c(t,n).then((function(u){u?t.getData(u).then((function(){t.status===R.OK?f(l(t)):e.authorize(t,n,r,o,i,a,s,c).then((function(){f(l(t))})).catch((function(t){d(e.createAuthorizationFailedError())}))})).catch((function(t){d(e.createAuthorizationFailedError())})):e.authorize(t,n,r,o,i,a,s,c).then((function(){f(l(t))})).catch((function(t){d(e.createAuthorizationFailedError())}))})).catch((function(t){d(e.createAuthorizationFailedError())}))}))},e.createError=function(e,t){var n=new Error;return n.message=t,n.name=String(e),n},e.createAuthorizationFailedError=function(){return e.createError(H.AUTHORIZATION_FAILED,"Authorization failed")},e.createRestrictedError=function(){return e.createError(H.RESTRICTED,"Restricted")},e.createInternalServerError=function(t){return e.createError(H.INTERNAL_SERVER_ERROR,t)},e.authorize=function(t,n,r,o,i,a,s,c){return new Promise((function(l,u){t.getData().then((function(){t.isAccessControlled()?c(t,n).then((function(c){c?t.getData(c).then((function(){t.status===R.OK?l(t):e.showAuthInteraction(t,n,r,o,i,a,s,l,u)})).catch((function(t){u(e.createInternalServerError(t))})):a(t,!1).then((function(c){c?s(t,c,n).then((function(){t.getData(c).then((function(){t.status===R.OK?l(t):e.showAuthInteraction(t,n,r,o,i,a,s,l,u)})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))})):e.showAuthInteraction(t,n,r,o,i,a,s,l,u)}))})).catch((function(t){u(e.createInternalServerError(t))})):l(t)}))}))},e.showAuthInteraction=function(t,n,r,o,i,a,s,c,l){t.status!==R.MOVED_TEMPORARILY||t.isResponseHandled?t.clickThroughService&&!t.isResponseHandled?r(t).then((function(){a(t,!0).then((function(r){s(t,r,n).then((function(){t.getData(r).then((function(){c(t)})).catch((function(t){l(e.createInternalServerError(t))}))})).catch((function(t){l(e.createInternalServerError(t))}))})).catch((function(t){l(e.createInternalServerError(t))}))})):i(t).then((function(){a(t,!0).then((function(r){s(t,r,n).then((function(){t.getData(r).then((function(){c(t)})).catch((function(t){l(e.createInternalServerError(t))}))})).catch((function(t){l(e.createInternalServerError(t))}))})).catch((function(t){l(e.createInternalServerError(t))}))})):c(t)},e.getService=function(e,t){for(var n=this.getServices(e),r=0;r<n.length;r++){var o=n[r];if(o.getProfile()===t)return o}return null},e.getResourceById=function(t,n){return e.traverseAndFind(t.__jsonld,"@id",n)},e.traverseAndFind=function(t,n,r){if(t.hasOwnProperty(n)&&t[n]===r)return t;for(var o=0;o<Object.keys(t).length;o++)if("object"==typeof t[Object.keys(t)[o]]){var i=e.traverseAndFind(t[Object.keys(t)[o]],n,r);if(null!=i)return i}},e.getServices=function(e){var t,n=[];if(!(t=e.__jsonld?e.__jsonld.service:e.service))return n;Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var o=t[r];if("string"==typeof o){var i=this.getResourceById(e.options.resource,o);i&&n.push(new X(i.__jsonld||i,e.options))}else n.push(new X(o,e.options))}return n},e.getTemporalComponent=function(e){var t=/t=([^&]+)/g.exec(e),n=null;return t&&t[1]&&(n=t[1].split(",")),n},e}(),N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},z=function(){function e(e,t,n){void 0===n&&(n="none"),Array.isArray(e)&&1===e.length?this._value=e[0]:this._value=e,"none"!==t&&"@none"!==t||(t=void 0),this._locale=t,this._defaultLocale=n}return e.parseV2Value=function(t,n){return"string"==typeof t?new e(t,void 0,n):t["@value"]?new e(t["@value"],t["@language"],n):null},Object.defineProperty(e.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!0,configurable:!0}),e.prototype.addValue=function(e){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(e)?this._value=this._value.concat(e):this._value.push(e)},e}(),W=function(e){function t(n,r){void 0===n&&(n=[]);var o=e.apply(this,n)||this;return o.__proto__=t.prototype,o._defaultLocale=r,o}return N(t,e),t.parse=function(e,n){if(!e)return new t([],n);if(Array.isArray(e)){var r=(o=e.map((function(e){return z.parseV2Value(e,n)})).filter((function(e){return null!==e}))).reduce((function(e,t){var n=t._locale;return n||(n="none"),e[n]?e[n].addValue(t._value):e[n]=t,e}),{});return new t(Object.values(r),n)}return"string"==typeof e?new t([new z(e,void 0,n)],n):e["@language"]?new t(null!==(o=z.parseV2Value(e))?[o]:[],n):new t(Object.keys(e).map((function(t){var r=e[t];if(!Array.isArray(r))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new z(r,t,n)})),n);var o},t.prototype.getSuitableLocale=function(e){for(var t=L(this).map((function(e){return e._locale})).filter((function(e){return void 0!==e})),n=function(e){var n=t.find((function(t){return t===e}));if(n)return{value:n}},r=0,o=e;r<o.length;r++){var i=n(o[r]);if("object"==typeof i)return i.value}for(var a=function(e){var n=t.find((function(t){return M.getInexactLocale(t)===M.getInexactLocale(e)}));if(n)return{value:n}},s=0,c=e;s<c.length;s++){var l=a(c[s]);if("object"==typeof l)return l.value}},t.prototype.setValue=function(e,t){var n=void 0;if(t){var r=this.getSuitableLocale([t]);r&&(n=this.find((function(e){return e._locale===r})))}else n=this.find((function(e){return void 0===e._locale}));n?n._value=e:this.push(new z(e,t,this._defaultLocale))},t.prototype.getValue=function(e,t){var n=this.getValues(e);return 0===n.length?null:t?n.join(t):n[0]},t.prototype.getValues=function(e){if(!this.length)return[];var t;if(t=e?Array.isArray(e)?e:[e]:[],1===this.length&&void 0===this[0]._locale){var n=this[0]._value;return Array.isArray(n)?n:[n]}var r=this.getSuitableLocale(t);if(r){n=this.find((function(e){return e._locale===r}))._value;return Array.isArray(n)?n:[n]}var o=!this.find((function(e){return void 0===e._locale}));if(o){n=this[0]._value;return Array.isArray(n)?n:[n]}var i=this.find((function(e){return void 0===e._locale}));return i?Array.isArray(i._value)?i._value:[i._value]:[]},t}(Array),B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(e){function t(t,n){var r=e.call(this,t,n)||this;if(r.index=0,r._allRanges=null,r.items=[],r._topRanges=[],r.__jsonld.structures&&r.__jsonld.structures.length)for(var o=r._getTopRanges(),i=0;i<o.length;i++){var a=o[i];r._parseRanges(a,String(i))}return r}return B(t,e),t.prototype.getPosterCanvas=function(){var e=this.getProperty("posterCanvas");return e&&(e=new T(e,this.options)),e},t.prototype.getAccompanyingCanvas=function(){var e=this.getProperty("accompanyingCanvas");return e&&(e=new T(e,this.options)),e},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getDefaultTree=function(){if(e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=M.normaliseType(J.MANIFEST),!this.isLoaded)return this.defaultTree;var t=this.getTopRanges();return t.length&&t[0].getTree(this.defaultTree),M.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._getTopRanges=function(){var e=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];n.viewingHint===a.ViewingHint.TOP&&e.push(n)}if(!e.length){var r={};r.ranges=this.__jsonld.structures,e.push(r)}}return e},t.prototype.getTopRanges=function(){return this._topRanges},t.prototype._getRangeById=function(e){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];if(n["@id"]===e||n.id===e)return n}return null},t.prototype._parseRanges=function(e,t,n){var r,o=null;if("string"==typeof e&&(o=e,e=this._getRangeById(o)),e){(r=new V(e,this.options)).parentRange=n,r.path=t,n?n.items.push(r):this._topRanges.push(r);var i=e.items||e.members;if(i)for(var a=0;a<i.length;a++){var s=i[a];if(s["@type"]&&"sc:range"===s["@type"].toLowerCase()||s.type&&"range"===s.type.toLowerCase())this._parseRanges(s,t+"/"+a,r);else if(s["@type"]&&"sc:canvas"===s["@type"].toLowerCase()||s.type&&"canvas"===s.type.toLowerCase()){r.canvases||(r.canvases=[]);var c=s.id||s["@id"];r.canvases.push(c)}}else if(e.ranges)for(a=0;a<e.ranges.length;a++)this._parseRanges(e.ranges[a],t+"/"+a,r)}else console.warn("Range:",o,"does not exist")},t.prototype.getAllRanges=function(){if(null!=this._allRanges)return this._allRanges;this._allRanges=[];for(var e=this.getTopRanges(),t=function(t){var r=e[t];r.id&&n._allRanges.push(r);var o=Array.from(r.getRanges().reduce((function e(t,n){t.add(n);var r=n.getRanges();return r.length?r.reduce(e,t):t}),new Set));n._allRanges=n._allRanges.concat(o)},n=this,r=0;r<e.length;r++)t(r);return this._allRanges},t.prototype.getRangeById=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.id===e)return r}return null},t.prototype.getRangeByPath=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.path===e)return r}return null},t.prototype.getSequences=function(){if(this.items.length)return this.items;var e=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(e)for(var t=0;t<e.length;t++){var n=e[t],r=new K(n,this.options);this.items.push(r)}else if(this.__jsonld.items){r=new K(this.__jsonld.items,this.options);this.items.push(r)}return this.items},t.prototype.getSequenceByIndex=function(e){return this.getSequences()[e]},t.prototype.getTotalSequences=function(){return this.getSequences().length},t.prototype.getManifestType=function(){var e=this.getService(a.ServiceProfile.UI_EXTENSIONS);return e?e.getProperty("manifestType"):o.EMPTY},t.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();if(e)return e===a.ViewingHint.PAGED;var t=this.getBehavior();return!!t&&t===a.Behavior.PAGED},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t}(d);!function(e){e.EMPTY="",e.MANUSCRIPT="manuscript",e.MONOGRAPH="monograph"}(o||(o={}));var H,U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._ranges=null,r.canvases=null,r.items=[],r}return U(t,e),t.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},t.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var e=[],t=[],n=0,r=this.canvases;n<r.length;n++){if(p=r[n]){var o=p.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,p],i=o[1],a=o[2],s=o[3];i&&(e.push(parseFloat(a)),t.push(parseFloat(s)))}}if(e.length&&t.length)return new I(Math.min.apply(Math,e),Math.max.apply(Math,t))}else{e=[],t=[];for(var c=0,l=g=this.getRanges();c<l.length;c++){(m=l[c].getDuration())&&(e.push(m.start),t.push(m.end))}if(e.length&&t.length)return new I(Math.min.apply(Math,e),Math.max.apply(Math,t))}var u,f;if(this.canvases&&this.canvases.length)for(var d=0;d<this.canvases.length;d++){var p=this.canvases[d],h=M.getTemporalComponent(p);h&&h.length>1&&(0===d&&(u=Number(h[0])),d===this.canvases.length-1&&(f=Number(h[1])))}else{var g=this.getRanges();for(d=0;d<g.length;d++){var m;(m=g[d].getDuration())&&(0===d&&(u=m.start),d===g.length-1&&(f=m.end))}}if(void 0!==u&&void 0!==f)return new I(u,f)},t.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter((function(e){return e.isRange()}))},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getTree=function(e){e.data=this,this.treeNode=e;var t=this.getRanges();if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n],o=new re;e.addNode(o),this._parseTreeNode(o,r)}return M.generateTreeNodeIds(e),e},t.prototype.spansTime=function(e){var t=this.getDuration();return!!(t&&e>=t.start&&e<=t.end)},t.prototype._parseTreeNode=function(e,t){e.label=t.getLabel().getValue(this.options.locale),e.data=t,e.data.type=M.normaliseType(J.RANGE),t.treeNode=e;var n=t.getRanges();if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r];if(o.getBehavior()!==a.Behavior.NO_NAV){var i=new re;e.addNode(i),this._parseTreeNode(i,o)}}},t}(c),G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(t,n){return e.call(this,t,n)||this}return G(t,e),t.prototype.getFormat=function(){return this.getProperty("format")},t}(c),$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._thumbnails=null,r}return $(t,e),t.prototype.getCanvases=function(){if(this.items.length)return this.items;var e=this.__jsonld.canvases||this.__jsonld.elements;if(e)for(var t=0;t<e.length;t++){var n=e[t];(r=new T(n,this.options)).index=t,this.items.push(r)}else if(this.__jsonld)for(t=0;t<this.__jsonld.length;t++){var r;n=this.__jsonld[t];(r=new T(n,this.options)).index=t,this.items.push(r)}return this.items},t.prototype.getCanvasById=function(e){for(var t=0;t<this.getTotalCanvases();t++){var n=this.getCanvasByIndex(t),r=M.normaliseUrl(n.id);if(M.normaliseUrl(e)===r)return n}return null},t.prototype.getCanvasByIndex=function(e){return this.getCanvases()[e]},t.prototype.getCanvasIndexById=function(e){for(var t=0;t<this.getTotalCanvases();t++){if(this.getCanvasByIndex(t).id===e)return t}return null},t.prototype.getCanvasIndexByLabel=function(e,t){e=e.trim(),isNaN(e)||(e=parseInt(e,10).toString(),t&&(e+="r"));for(var n,r,o,i=/(\d*)\D+(\d*)/,a=0;a<this.getTotalCanvases();a++){var s=this.getCanvasByIndex(a);if(s.getLabel().getValue(this.options.locale)===e)return a;if((n=i.exec(e))&&(r=n[1],(o=n[2])&&new RegExp("^"+r+"\\D+"+o+"$").test(s.getLabel().toString())))return a}return-1},t.prototype.getLastCanvasLabel=function(e){for(var t=this.getTotalCanvases()-1;t>=0;t--){var n=this.getCanvasByIndex(t).getLabel().getValue(this.options.locale);if(e){if(/^[a-zA-Z0-9]*$/.test(n))return n}else if(n)return n}return this.options.defaultLabel},t.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},t.prototype.getNextPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),o=this.getViewingDirection();n=o&&o===a.ViewingDirection.RIGHT_TO_LEFT?r[0]+1:r[r.length-1]+1}else n=e+1;return n>this.getLastPageIndex()?-1:n},t.prototype.getPagedIndices=function(e,t){var n=[];if(t){n=this.isFirstCanvas(e)||this.isLastCanvas(e)?[e]:e%2?[e,e+1]:[e-1,e];var r=this.getViewingDirection();r&&r===a.ViewingDirection.RIGHT_TO_LEFT&&(n=n.reverse())}else n.push(e);return n},t.prototype.getPrevPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),o=this.getViewingDirection();n=o&&o===a.ViewingDirection.RIGHT_TO_LEFT?r[r.length-1]-1:r[0]-1}else n=e-1;return n},t.prototype.getStartCanvasIndex=function(){var e=this.getStartCanvas();if(e)for(var t=0;t<this.getTotalCanvases();t++){if(this.getCanvasByIndex(t).id===e)return t}return 0},t.prototype.getThumbs=function(e,t){for(var n=[],r=this.getTotalCanvases(),o=0;o<r;o++){var i=this.getCanvasByIndex(o),a=new ee(e,i);n.push(a)}return n},t.prototype.getThumbnails=function(){if(null!=this._thumbnails)return this._thumbnails;this._thumbnails=[];for(var e=this.getCanvases(),t=0;t<e.length;t++){var n=e[t].getThumbnail();n&&this._thumbnails.push(n)}return this._thumbnails},t.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},t.prototype.getTotalCanvases=function(){return this.getCanvases().length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.isCanvasIndexOutOfRange=function(e){return e>this.getTotalCanvases()-1},t.prototype.isFirstCanvas=function(e){return 0===e},t.prototype.isLastCanvas=function(e){return e===this.getTotalCanvases()-1},t.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();return!!e&&e===a.ViewingHint.PAGED},t.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},t}(c),Z=function(){function e(){}return e.parse=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),this.parseJson(e,t)},e.parseJson=function(e,t){var n;if(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(e.navDate=t.navDate.toString()),e["@type"])switch(e["@type"]){case"sc:Collection":n=this.parseCollection(e,t);break;case"sc:Manifest":n=this.parseManifest(e,t);break;default:return null}else switch(e.type){case"Collection":n=this.parseCollection(e,t);break;case"Manifest":n=this.parseManifest(e,t);break;default:return null}return n.isLoaded=!0,n},e.parseCollection=function(e,t){var n=new C(e,t);return t?(n.index=t.index||0,t.resource&&(n.parentCollection=t.resource.parentCollection)):n.index=0,this.parseCollections(n,t),this.parseManifests(n,t),this.parseItems(n,t),n},e.parseCollections=function(e,t){var n;if(e.__jsonld.collections?n=e.__jsonld.collections:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"collection"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){t&&(t.index=r);var o=this.parseCollection(n[r],t);o.index=r,o.parentCollection=e,e.items.push(o)}},e.parseManifest=function(e,t){return new F(e,t)},e.parseManifests=function(e,t){var n;if(e.__jsonld.manifests?n=e.__jsonld.manifests:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"manifest"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){var o=this.parseManifest(n[r],t);o.index=r,o.parentCollection=e,e.items.push(o)}},e.parseItem=function(e,t){if(e["@type"]){if("sc:manifest"===e["@type"].toLowerCase())return this.parseManifest(e,t);if("sc:collection"===e["@type"].toLowerCase())return this.parseCollection(e,t)}else if(e.type){if("manifest"===e.type.toLowerCase())return this.parseManifest(e,t);if("collection"===e.type.toLowerCase())return this.parseCollection(e,t)}return null},e.parseItems=function(e,t){var n=e.__jsonld.members||e.__jsonld.items;if(n)for(var r=function(r){t&&(t.index=r);var i=o.parseItem(n[r],t);return i?e.items.filter((function(e){return e.id===i.id}))[0]?"continue":(i.index=r,i.parentCollection=e,void e.items.push(i)):{value:void 0}},o=this,i=0;i<n.length;i++){var a=r(i);if("object"==typeof a)return a.value}},e}(),Y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),X=function(e){function t(t,n){return e.call(this,t,n)||this}return Y(t,e),t.prototype.getProfile=function(){var e=this.getProperty("profile");return e||(e=this.getProperty("dcterms:conformsTo")),Array.isArray(e)?e[0]:e},t.prototype.getConfirmLabel=function(){return M.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},t.prototype.getDescription=function(){return M.getLocalisedValue(this.getProperty("description"),this.options.locale)},t.prototype.getFailureDescription=function(){return M.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},t.prototype.getFailureHeader=function(){return M.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},t.prototype.getHeader=function(){return M.getLocalisedValue(this.getProperty("header"),this.options.locale)},t.prototype.getServiceLabel=function(){return M.getLocalisedValue(this.getProperty("label"),this.options.locale)},t.prototype.getInfoUri=function(){var e=this.id;return e.endsWith("/")||(e+="/"),e+="info.json"},t}(c),Q=function(e,t){this.width=e,this.height=t};!function(e){e[e.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",e[e.FORBIDDEN=2]="FORBIDDEN",e[e.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",e[e.RESTRICTED=4]="RESTRICTED"}(H||(H={}));var J,ee=function(e,t){this.data=t,this.index=t.index,this.width=e;var n=t.getHeight()/t.getWidth();this.height=n?Math.floor(this.width*n):e,this.uri=t.getCanonicalImageUri(e),this.label=t.getLabel().getValue()},te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(e){function t(t,n){return e.call(this,t,n)||this}return te(t,e),t}(u),re=function(){function e(e,t){this.label=e,this.data=t||{},this.nodes=[]}return e.prototype.addNode=function(e){this.nodes.push(e),e.parentNode=this},e.prototype.isCollection=function(){return this.data.type===M.normaliseType(J.COLLECTION)},e.prototype.isManifest=function(){return this.data.type===M.normaliseType(J.MANIFEST)},e.prototype.isRange=function(){return this.data.type===M.normaliseType(J.RANGE)},e}();!function(e){e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range"}(J||(J={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n.n(r),i=["classes"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=o.a.forwardRef((function(e,t){var n=e.PluginComponents,r=(e.classes,l(e,i));return n?n.map((function(e,n){return o.a.isValidElement(e)?o.a.cloneElement(e,s(s({},r),{},{ref:t})):o.a.createElement(e,Object.assign({ref:t},r,{key:n}))})):null}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p}));var r=n(9),o=n(40);function i(e){return Object.values(Object(o.a)(e).windows).map((function(e){return e.manifestId}))}function a(e){return Object(o.a)(e).windows||{}}function s(e,t){var n=t.windowId;return a(e)[n]}var c=Object(r.createSelector)([function(e){return Object(o.a)(e).viewers},function(e,t){return t.windowId}],(function(e,t){return e[t]}));function l(e){return Object(o.a)(e).workspace}var u=Object(r.createSelector)([l],(function(e){return e.windowIds||[]}));function f(e){return Object(o.a)(e).manifests||{}}function d(e,t){var n=t.manifestId,r=t.windowId,o=f(e);return o&&o[n||r&&(s(e,{windowId:r})||{}).manifestId]}function p(e){return Object(o.a)(e).catalog||{}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(37);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(21);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(87);function o(e){return r.a.state.slice?e[r.a.state.slice]:e}},function(e,t,n){var r=n(33),o=n(319),i=n(51),a=n(194),s=n(323),c=n(414),l=o("wks"),u=r.Symbol,f=c?u:u&&u.withoutSetter||a;e.exports=function(e){return i(l,e)||(s&&i(u,e)?l[e]=u[e]:l[e]=f("Symbol."+e)),l[e]}},function(e,t,n){"use strict";var r,o=n(331),i=n(39),a=n(33),s=n(37),c=n(51),l=n(203),u=n(71),f=n(65),d=n(47).f,p=n(95),h=n(147),g=n(41),m=n(194),v=a.Int8Array,b=v&&v.prototype,y=a.Uint8ClampedArray,w=y&&y.prototype,O=v&&p(v),E=b&&p(b),x=Object.prototype,S=x.isPrototypeOf,j=g("toStringTag"),T=m("TYPED_ARRAY_TAG"),_=o&&!!h&&"Opera"!==l(a.opera),C=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(e){return s(e)&&c(I,l(e))};for(r in I)a[r]||(_=!1);if((!_||"function"!=typeof O||O===Function.prototype)&&(O=function(){throw TypeError("Incorrect invocation")},_))for(r in I)a[r]&&h(a[r],O);if((!_||!E||E===x)&&(E=O.prototype,_))for(r in I)a[r]&&h(a[r].prototype,E);if(_&&p(w)!==E&&h(w,E),i&&!c(E,j))for(r in C=!0,d(E,j,{get:function(){return s(this)?this[T]:void 0}}),I)a[r]&&u(a[r],T,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:_,TYPED_ARRAY_TAG:C&&T,aTypedArray:function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(S.call(O,e))return e}else for(var t in I)if(c(I,r)){var n=a[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(i){if(n)for(var r in I){var o=a[r];o&&c(o.prototype,e)&&delete o.prototype[e]}E[e]&&!n||f(E,e,n?t:_&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(i){if(h){if(n)for(r in I)(o=a[r])&&c(o,e)&&delete o[e];if(O[e]&&!n)return;try{return f(O,e,n?t:_&&v[e]||t)}catch(e){}}for(r in I)!(o=a[r])||o[e]&&!n||f(o,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||c(I,t)},isTypedArray:P,TypedArray:O,TypedArrayPrototype:E}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},,function(e,t,n){var r=n(83),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),o=n.n(r),i=n(188),a=n.n(i),s=n(34);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=t}var t,n,r;return t=e,(n=[{key:"id",get:function(){return this.canvas.id}},{key:"getWidth",value:function(){return this.canvas.getWidth()}},{key:"getHeight",value:function(){return this.canvas.getHeight()}},{key:"aspectRatio",get:function(){return this.canvas.getWidth()/this.canvas.getHeight()}},{key:"annotationListUris",get:function(){return o()(new Array(this.canvas.__jsonld.otherContent)).filter((function(e){return e&&("string"==typeof e||"sc:AnnotationList"===e["@type"])})).map((function(e){return"string"==typeof e?e:e["@id"]}))}},{key:"canvasAnnotationPages",get:function(){return o()(new Array(this.canvas.__jsonld.annotations)).filter((function(e){return e&&"AnnotationPage"===e.type}))}},{key:"imageResource",get:function(){return this.imageResources[0]}},{key:"imageResources",get:function(){var e=this,t=a()([this.canvas.getImages().map((function(e){return e.getResource()})),this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(t.map((function(t){return"oa:Choice"===t.getProperty("type")?new s.a({images:o()([t.getProperty("default"),t.getProperty("item")]).map((function(e){return{resource:e}}))},e.canvas.options).getImages().map((function(e){return e.getResource()})):t})))}},{key:"videoResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Video"===e.getProperty("type")})))}},{key:"audioResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Sound"===e.getProperty("type")})))}},{key:"vttContent",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"text/vtt"===e.getProperty("format")})))}},{key:"resourceAnnotations",get:function(){return a()([this.canvas.getImages(),this.canvas.getContent()])}},{key:"resourceAnnotation",value:function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||o()(new Array(t.getBody())).some((function(t){return t.id===e}))}))}},{key:"onFragment",value:function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target"),o=(n||r).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},{key:"iiifImageResources",get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))}},{key:"imageServiceIds",get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))}},{key:"service",get:function(){return this.canvas.__jsonld.service}},{key:"getLabel",value:function(){return this.canvas.getLabel().length>0?this.canvas.getLabel().getValue():String(this.canvas.index+1)}}])&&c(t.prototype,n),r&&c(t,r),e}()},function(e,t,n){var r=n(39),o=n(408),i=n(38),a=n(93),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(278);var o=n(279);function i(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)()}},function(e,t,n){var r=n(70);e.exports=function(e){return Object(r(e))}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(603),o=(n(0),n(276));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"q",(function(){return h})),n.d(t,"f",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"l",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return O})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return x})),n.d(t,"e",(function(){return S})),n.d(t,"b",(function(){return j})),n.d(t,"m",(function(){return T})),n.d(t,"n",(function(){return _})),n.d(t,"k",(function(){return C})),n.d(t,"j",(function(){return I})),n.d(t,"p",(function(){return P}));var r=n(9),o=n(24),i=n.n(o);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single";a(this,e),this.canvases=t,this.viewType=n,this._groupings=null}var t,n,r;return t=e,(n=[{key:"getCanvases",value:function(e){return"book"===this.viewType?this.groupings()[Math.ceil(e/2)]:this.groupings()[e]}},{key:"groupings",value:function(){if(this._groupings)return this._groupings;if("scroll"===this.viewType)return[this.canvases];if("book"!==this.viewType)return this.canvases.map((function(e){return[e]}));var e=[];return this.canvases.forEach((function(t,n){0!==n?n%2!=0?e.push([t]):e[Math.ceil(n/2)].push(t):e.push([t])})),this._groupings=e,e}}])&&s(t.prototype,n),r&&s(t,r),e}(),l=n(46),u=n(40),f=n(36),d=n(66),p=n(264),h=function(e){return Object(u.a)(e).infoResponses},g=Object(r.createSelector)([d.b],(function(e){return e&&e.getCanvases()||[]})),m=Object(r.createSelector)([d.b,function(e,t){return t.canvasId}],(function(e,t){if(e&&t)return e.getCanvasById(t)})),v=Object(r.createSelector)([d.b,f.e],(function(e,t){if(e&&t)return t.canvasId?e.getCanvasById(t.canvasId):e.getCanvasByIndex(0)})),b=Object(r.createSelector)([f.e],(function(e){return e&&(e.visibleCanvases||e.canvasId&&[e.canvasId])||[]})),y=Object(r.createSelector)([b,g],(function(e,t){return(t||[]).filter((function(t){return e.includes(t.id)}))})),w=Object(r.createSelector)([g,p.f],(function(e,t){return e&&new c(e,t).groupings()})),O=Object(r.createSelector)([w,function(e,t){return t.canvasId}],(function(e,t){return e&&e.find((function(e){return e.some((function(e){return e.id===t}))}))||[]})),E=Object(r.createSelector)([w,v],(function(e,t,n){if(e&&t){var r=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(r<0||r+1>=e.length))return e[r+1]}})),x=Object(r.createSelector)([w,v],(function(e,t,n){if(e&&t){var r=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(r<1))return e[r-1]}})),S=Object(r.createSelector)([m],(function(e){return e&&(e.getLabel().length>0?e.getLabel().getValue():String(e.index+1))})),j=Object(r.createSelector)([m],(function(e){return e&&e.getProperty("description")})),T=Object(r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.a(e).imageResources}))).filter((function(e){return e.getServices().length<1}))})),_=Object(r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.a(e).videoResources})))})),C=Object(r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.a(e).vttContent})))})),I=Object(r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.a(e).audioResources})))})),P=Object(r.createSelector)([function(e,t){return t.infoId},m,h],(function(e,t,n){var r=e;if(!e){if(!t)return;var o=new l.a(t).iiifImageResources[0];r=o&&o.getServices()[0].id}return r&&n[r]&&!n[r].isFetching&&n[r]}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(149),o=n(347),i=n(903),a=n(172),s=n(208),c=n(908),l=n(470),u=n(357),f=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=o(n,7,c));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(5),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,c=t.easing,l=void 0===c?o.easeInOut:c,u=t.delay,f=void 0===u?0:u;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(l," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(1119),a=n(10),s=n(282),c=n(6),l=n(0),u=n.n(l),f=n(508),d=n(20),p=n(157),h=n(264),g=n(97),m=n(137),v=n.n(m),b=n(541),y=n.n(b),w=n(542),O=n.n(w),E=n(1092),x=n(165),S=n(1093),j=n(179),T=n(29),_=n(12);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,e);var t,n,r,o=D(i);function i(){return k(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"openInNewStyle",value:function(){return"rtl"===this.props.direction?{transform:"scale(-1, 1)"}:{}}},{key:"resizeHandles",value:function(){var e=this.props,t=e.direction,n=e.position,r={ltr:{default:"left",opposite:"right"},rtl:{default:"right",opposite:"left"}},o={bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};return"right"===n||"far-right"===n?I(I({},o),{},P({},r[t].default,!0)):"left"===n?I(I({},o),{},P({},r[t].opposite,!0)):"bottom"===n||"far-bottom"===n?I(I({},o),{},{top:!0}):o}},{key:"render",value:function(){var e=this.props,t=e.ariaLabel,n=e.classes,r=e.paperClassName,o=e.onCloseClick,i=e.updateCompanionWindow,a=e.isDisplayed,s=e.position,c=e.t,l=e.title,f=e.children,d=e.titleControls,p=e.size,h=e.defaultSidebarPanelWidth,g=e.defaultSidebarPanelHeight,m="bottom"===s||"far-bottom"===s,b=u.a.Children.map(f,(function(e){return e?u.a.cloneElement(e,{parentactions:{closeCompanionWindow:o}}):null}));return u.a.createElement(E.a,{className:[n.root,"bottom"===s?n.horizontal:n.vertical,n["companionWindow-".concat(s)],Object(_.a)("companion-window-".concat(s)),r].join(" "),style:{display:a?null:"none",order:"left"===s?-1:null},square:!0,component:"aside","aria-label":t||l},u.a.createElement(j.a,{className:[n.rnd],style:{display:"flex",position:"relative"},default:{height:m?g:"100%",width:m?"auto":h},disableDragging:!0,enableResizing:this.resizeHandles(),minHeight:50,minWidth:"left"===s?235:100},u.a.createElement(S.a,{className:[n.toolbar,n.companionWindowHeader,p.width<370?n.small:null,Object(_.a)("companion-window-header")].join(" "),disableGutters:!0},u.a.createElement(x.a,{variant:"h3",className:n.windowSideBarTitle},l),"left"===s?i&&u.a.createElement(T.a,{"aria-label":c("openInCompanionWindow"),onClick:function(){i({position:"right"})}},u.a.createElement(y.a,{style:this.openInNewStyle()})):u.a.createElement(u.a.Fragment,null,i&&u.a.createElement(T.a,{"aria-label":c("bottom"===s?"moveCompanionWindowToRight":"moveCompanionWindowToBottom"),className:n.positionButton,onClick:function(){i({position:"bottom"===s?"right":"bottom"})}},u.a.createElement(O.a,null)),u.a.createElement(T.a,{"aria-label":c("closeCompanionWindow"),className:n.closeButton,onClick:o},u.a.createElement(v.a,null))),d&&u.a.createElement("div",{className:[n.titleControls,m?n.companionWindowTitleControlsBottom:n.companionWindowTitleControls,Object(_.a)("companion-window-title-controls")].join(" ")},d)),u.a.createElement(E.a,{className:[n.content,Object(_.a)("scrollto-scrollable")].join(" "),elevation:0},b)))}}])&&R(t.prototype,n),r&&R(t,r),i}(l.Component);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}L.defaultProps={ariaLabel:void 0,children:void 0,defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,isDisplayed:!1,onCloseClick:function(){},paperClassName:"",position:null,size:{},t:function(e){return e},title:null,titleControls:null,updateCompanionWindow:void 0};var F=Object(r.compose)((function(e){return Object(l.forwardRef)((function(t,n){return u.a.createElement(e,Object.assign({innerRef:n},t))}))}),Object(i.a)(),Object(a.a)((function(e){return{closeButton:{order:4},"companionWindow-bottom":{borderTop:"0.5px solid ".concat(e.palette.divider)},"companionWindow-left":{borderRight:"0.5px solid ".concat(e.palette.divider)},"companionWindow-right":{borderLeft:"0.5px solid ".concat(e.palette.divider)},companionWindowHeader:{flexWrap:"wrap"},companionWindowTitleControls:{flexGrow:1,order:1e3},companionWindowTitleControlsBottom:{order:"unset"},content:{overflowY:"auto",wordBreak:"break-word"},horizontal:{},positionButton:{marginLeft:-16,order:-100,width:24},rnd:{display:"flex",flexDirection:"column",minHeight:0},root:{boxShadow:"none",boxSizing:"border-box",display:"flex",flexDirection:"column",minHeight:0},small:{},titleControls:{alignItems:"center",display:"flex",flexFlow:"row wrap",minHeight:48,order:3},toolbar:{"&$small":{"& $closeButton":{order:"unset"},"& $titleControls":{order:"unset"}},alignItems:"flex-start",background:e.palette.shades.light,justifyContent:"space-between",minHeight:"max-content",paddingLeft:e.spacing(2)},vertical:{},windowSideBarTitle:W(W({},e.typography.subtitle1),{},{alignSelf:"center",flexGrow:1,width:160})}})),Object(s.withSize)(),Object(o.b)((function(e,t){var n=t.id,r=t.windowId,o=Object(p.b)(e,{companionWindowId:n}),i=Object(h.c)(e,{windowId:r}),a=i.defaultSidebarPanelHeight,s=i.defaultSidebarPanelWidth;return W(W({},o),{},{defaultSidebarPanelHeight:a,defaultSidebarPanelWidth:s,direction:Object(g.h)(e),isDisplayed:o&&o.content&&o.content.length>0})}),(function(e,t){var n=t.windowId,r=t.id;return{onCloseClick:function(){return e(f.c(n,r))},updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(f.e.apply(d,[n,r].concat(o)))}}})),Object(c.a)("CompanionWindow"));t.a=F(L)},function(e,t,n){"use strict";n.d(t,"a",(function(){return K})),n.d(t,"b",(function(){return me})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return be})),n.d(t,"e",(function(){return ve})),n.d(t,"f",(function(){return p}));var r=n(1),o=n(163),i=(n(214),n(184)),a=n(115),s=n(74),c=n(54),l={}.constructor;function u(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(u);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=u(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=u(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var d=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},p=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=d(e[r]," ");else n=d(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function h(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function g(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function m(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=h(n),c=s.linebreak,l=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var f=a[u];for(var d in f){var m=f[d];null!=m&&(r&&(r+=c),r+=g(d+":"+l+p(m)+";",i))}}else for(var v in a){var b=a[v];null!=b&&(r&&(r+=c),r+=g(v+":"+l+p(b)+";",i))}for(var y in t){var w=t[y];null!=w&&"fallbacks"!==y&&(r&&(r+=c),r+=g(y+":"+l+p(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+c+r+c),g(""+e+l+"{"+r,--i)+g("}",i)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,b="undefined"!=typeof CSS&&CSS.escape,y=function(e){return b?b(e):e.replace(v,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var c=this.options.sheet;return c&&c.attached,this},e}(),O=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,c=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Object(s.a)(Object(s.a)(o)),c),o.selectorText="."+y(o.id)),o}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return m(this.selectorText,this.style,n)},Object(i.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(w),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new O(e,t,n)}},x={indent:1,children:!0},S=/@([\w-]+)/,j=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(S);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new K(Object(r.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){void 0===e&&(e=x);var t=h(e).linebreak;if(null==e.indent&&(e.indent=x.indent),null==e.children&&(e.children=x.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),T=/@media|@supports\s+/,_={onCreateRule:function(e,t,n){return T.test(e)?new j(e,t,n):null}},C={indent:1,children:!0},I=/@keyframes\s+([\w-]+)/,P=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(I);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var c in this.id=!1===i?this.name:y(s(this,a)),this.rules=new K(Object(r.a)({},n,{parent:this})),t)this.rules.add(c,t[c],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=C);var t=h(e).linebreak;if(null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),k=/@keyframes\s+/,R=/\$([\w-]+)/g,A=function(e,t){return"string"==typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=A(r,n);o!==r&&(e[t]=o)},M={onCreateRule:function(e,t,n){return"string"==typeof e&&k.test(e)?new P(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return A(e,r.keyframes);default:return e}}},N=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return m(this.key,this.style,n)},t}(w),L={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new N(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=m(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return m(this.at,this.style,e)},e}(),W=/@font-face/,B={onCreateRule:function(e,t,n){return W.test(e)?new z(e,t,n):null}},F=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return m(this.key,this.style,e)},e}(),H={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new F(e,t,n):null}},U=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),V={"@charset":!0,"@import":!0,"@namespace":!0},G=[E,_,M,L,B,H,{onCreateRule:function(e,t,n){return e in V?new U(e,t,n):null}}],q={process:!0},$={force:!0,process:!0},K=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,c=o.Renderer,l=o.generateId,u=o.scoped,d=Object(r.a)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:c,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+y(this.classes[p]));var h=f(p,t,d);if(!h)return null;this.register(h);var g=void 0===d.index?this.index.length:d.index;return this.index.splice(g,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof O?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof P&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof O?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof P&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=q);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var c in i.onProcessStyle(t.style,t,a),t.style){var l=t.style[c];l!==s[c]&&t.prop(c,l,$)}for(var u in s){var f=t.style[u],d=s[u];null==f&&f!==d&&t.prop(u,null,$)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=h(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Z=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(r.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new K(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Y=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),X=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(c.a)(t,["attached"]),o=h(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Object(i.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Q=new X,J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==J[ee]&&(J[ee]=0);var te=J[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+te+o+t:i+n.key+"-"+te+(o?"-"+o:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},oe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=p(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ce=re((function(){return document.querySelector("head")}));function le(e){var t=Q.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var ue=re((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),fe=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},pe=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ie,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=ue();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=le(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=de(n,t);if(!1===(o=fe(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=de(n,t),c=fe(n,a,s);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Z&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),he=0,ge=function(){function e(e){this.id=he++,this.version="10.8.0",this.plugins=new Y,this.options={id:{minify:!1},createGenerateId:ne,Renderer:o.a?pe:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<G.length;t++)this.plugins.use(G[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(r.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Q.index?0:Q.index+1);var o=new Z(e,Object(r.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),Q.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var o=Object(r.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=f(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),me=function(e){return new ge(e)},ve="object"==typeof CSS&&null!=CSS&&"number"in CSS;function be(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=be(r);i&&(t||(t={}),t[n]=i)}}return t}me()},function(e,t,n){"use strict";var r=n(10),o=n(0),i=n.n(o),a=n(390),s=n.n(a),c=n(12),l={iiif:{ALLOWED_ATTR:["href","src","alt"],ALLOWED_TAGS:["a","b","br","i","img","p","span"]},liberal:{},mirador2:{ALLOWED_ATTR:["href","target","src","alt","dir"],ALLOWED_TAGS:["a","b","br","i","img","p","span","strong","em","ul","ol","li"]},noHtml:{ALLOWED_TAGS:[]}};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,n,r,o=p(a);function a(){return u(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.htmlString,r=e.ruleSet;return s.a.addHook("afterSanitizeAttributes",(function(e){"target"in e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),i.a.createElement("span",{className:[t.root,Object(c.a)("third-party-html")].join(" "),dangerouslySetInnerHTML:{__html:s.a.sanitize(n,l[r])}})}}])&&f(t.prototype,n),r&&f(t,r),a}(o.Component);m.defaultProps={classes:{}};t.a=Object(r.a)((function(e){return{root:{"& a":{color:e.palette.primary.main,textDecoration:"underline"}}}}))(m)},function(e,t,n){var r=n(130),o=n(193),i=n(50),a=n(45),s=n(199),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,f=6==e,d=5==e||f;return function(p,h,g,m){for(var v,b,y=i(p),w=o(y),O=r(h,g,3),E=a(w.length),x=0,S=m||s,j=t?S(p,E):n?S(p,0):void 0;E>x;x++)if((d||x in w)&&(b=O(v=w[x],x,y),e))if(t)j[x]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:c.call(j,v)}else if(u)return!1;return f?-1:l||u?u:j}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t){var n=Array.isArray;e.exports=n},,function(e,t,n){var r=n(39),o=n(230),i=n(128),a=n(75),s=n(93),c=n(51),l=n(408),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(33),o=n(71),i=n(51),a=n(317),s=n(318),c=n(76),l=c.get,u=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:o(e,t,n)):l?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return p}));var r=n(9),o=n(34),i=n(88),a=n(36),s=Object(r.createSelector)([i.q],(function(e){if(!e||!e.getTopRanges)return null;var t=e.getTopRanges(),n=[];return 0===t.filter((function(e){return"top"===e.getProperty("viewingHint")})).length&&1===t.length&&(n=t[0].getRanges().filter((function(e){return"sequence"===e.getBehavior()}))),[].concat(e.getSequences(),n)})),c=Object(r.createSelector)([s,a.e,function(e,t){return t.sequenceId}],(function(e,t,n){if(!e)return null;if(n||t&&t.sequenceId){var r=e.find((function(e){return e.id===(n||t.sequenceId)}));if(r)return r}return e[0]})),l=Object(r.createSelector)([a.e,c],(function(e,t){return(t&&e&&e.canvasId&&t.getCanvasById(e.canvasId)||{}).index||0})),u=Object(r.createSelector)([c,i.q],(function(e,t){if(!t)return null;var n=e&&e.getViewingHint()||t.getViewingHint();return n||null})),f=Object(r.createSelector)([a.e,c,i.q],(function(e,t,n){var r=e&&e.viewingDirection||t&&t.getViewingDirection()||n&&n.getViewingDirection();return r||null})),d=Object(r.createSelector)([c,i.q],(function(e,t){if(!t||!e)return[];var n=e&&e.getProperty("behavior");if(n)return Array.isArray(n)?n:[n];var r=t.getProperty("behavior");return r?Array.isArray(r)?r:[r]:[]})),p=Object(r.createSelector)([c,i.q],(function(e,t){return e&&e.getProperty("type")&&e.isRange()?e.getTree(new o.c("root")):t&&t.getDefaultTree()}))},function(e,t,n){var r=n(453),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],f=t[l];if(!1===(o=n?n.call(r,u,f,l):void 0)||void 0===o&&u!==f)return!1}return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(39),o=n(47),i=n(128);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(39),o=n(21),i=n(51),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],l=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:c,f=i(t,1)?t[1]:void 0;return s[e]=!!n&&!o((function(){if(l&&!r)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,f)}))}},function(e,t,n){"use strict";n.r(t);var r=n(283);n.d(t,"default",(function(){return r.a}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(193),o=n(70);e.exports=function(e){return r(o(e))}},function(e,t,n){var r,o,i,a=n(410),s=n(33),c=n(37),l=n(71),u=n(51),f=n(231),d=n(195),p=s.WeakMap;if(a){var h=new p,g=h.get,m=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return g.call(h,e)||{}},i=function(e){return m.call(h,e)}}else{var b=f("state");d[b]=!0,r=function(e,t){return l(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(412),o=n(51),i=n(417),a=n(47).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(70),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(21);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicWindowContext=t.MosaicContext=void 0;var o=r(n(0));t.MosaicContext=o.default.createContext(void 0),t.MosaicWindowContext=o.default.createContext(void 0)},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(143);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a={state:{},canvasNavigation:{height:50,width:50},selectedTheme:"dark",themes:{dark:{palette:{type:"dark",primary:{main:"#4db6ac"},secondary:{main:"#4db6ac"},shades:{dark:"#000000",main:"#424242",light:"#616161"}}},light:{palette:{type:"light"}}},theme:{palette:{type:"light",primary:{main:"#1967d2"},secondary:{main:"#1967d2"},shades:{dark:"#eeeeee",main:"#ffffff",light:"#f5f5f5"},error:{main:"#b00020"},notification:{main:"#ffa224"},hitCounter:{default:"#bdbdbd"},highlights:{primary:"#ffff00",secondary:"#00BFFF"},section_divider:"rgba(0, 0, 0, 0.25)",annotations:{hidden:{globalAlpha:0},default:{strokeStyle:"#00BFFF",globalAlpha:1},hovered:{strokeStyle:"#BF00FF",globalAlpha:1},selected:{strokeStyle:"#ffff00",globalAlpha:1}},search:{default:{fillStyle:"#00BFFF",globalAlpha:.3},hovered:{fillStyle:"#00FFFF",globalAlpha:.3},selected:{fillStyle:"#ffff00",globalAlpha:.3}}},typography:{body1:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},button:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem",textTransform:"uppercase"},caption:{fontSize:"0.772rem",letterSpacing:"0.033em",lineHeight:"1.6rem"},body1Next:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2Next:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},buttonNext:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem"},captionNext:{fontSize:"0.772rem",letterSpacing:"0.33em",lineHeight:"1.6rem"},overline:{fontSize:"0.678rem",fontWeight:500,letterSpacing:"0.166em",lineHeight:"2em",textTransform:"uppercase"},h1:{fontSize:"2.822rem",letterSpacing:"-0.015em",lineHeight:"1.2em"},h2:{fontSize:"1.575rem",letterSpacing:"0em",lineHeight:"1.33em"},h3:{fontSize:"1.383rem",fontWeight:300,letterSpacing:"0em",lineHeight:"1.33em"},h4:{fontSize:"1.215rem",letterSpacing:"0.007em",lineHeight:"1.45em"},h5:{fontSize:"1.138rem",letterSpacing:"0.005em",lineHeight:"1.55em"},h6:{fontSize:"1.067rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"1.6em"},subtitle1:{fontSize:"0.937rem",letterSpacing:"0.015em",lineHeight:"1.6em",fontWeight:300},subtitle2:{fontSize:"0.878rem",fontWeight:500,letterSpacing:"0.02em",lineHeight:"1.75em"},useNextVariants:!0},overrides:{MuiListSubheader:{root:{'&[role="presentation"]:focus':{outline:0}}},MuiTooltip:{tooltipPlacementLeft:a({},"@media (min-width:600px)",{margin:0}),tooltipPlacementRight:a({},"@media (min-width:600px)",{margin:0}),tooltipPlacementTop:a({},"@media (min-width:600px)",{margin:0}),tooltipPlacementBottom:a({},"@media (min-width:600px)",{margin:0})},MuiTouchRipple:{childPulsate:{animation:"none"},rippleVisible:{animation:"none"}}},props:{MuiButtonBase:{disableTouchRipple:!0},MuiLink:{underline:"always"}}},language:"en",availableLanguages:{ar:"العربية",de:"Deutsch",en:"English",fr:"Français",ja:"日本語",kr:"한국어",lt:"Lietuvių",nl:"Nederlands","nb-NO":"Norwegian Bokmål",pl:"Polski","pt-BR":"Português do Brasil",vi:"Tiếng Việt","zh-CN":"中文(简体)","zh-TW":"中文(繁體)",it:"Italiano",sr:"Српски",sv:"Svenska"},annotations:{htmlSanitizationRuleSet:"iiif",filteredMotivations:["oa:commenting","oa:tagging","sc:painting","commenting","tagging"]},createGenerateClassNameOptions:{productionPrefix:"mirador"},requests:{preprocessors:[],postprocessors:[]},translations:{},window:{allowClose:!0,allowFullscreen:!1,allowMaximize:!1,allowTopMenuButton:!0,allowWindowSideBar:!0,authNewWindowCenter:"parent",sideBarPanel:"info",defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,defaultView:"single",forceDrawAnnotations:!1,hideWindowTitle:!1,highlightAllAnnotations:!1,showLocalePicker:!1,sideBarOpen:!1,switchCanvasOnSearch:!0,panels:{info:!0,attribution:!0,canvas:!0,annotations:!0,search:!1,layers:!0},views:[{key:"single",behaviors:["individuals"]},{key:"book",behaviors:["paged"]},{key:"scroll",behaviors:["continuous"]},{key:"gallery"}],elastic:{height:400,width:480}},windows:[],thumbnails:{preferredFormats:["jpg","png","webp","tif"]},thumbnailNavigation:{defaultPosition:"off",displaySettings:!0,height:130,width:100},workspace:{draggingEnabled:!0,allowNewWindows:!0,id:Object(r.a)(),isWorkspaceAddVisible:!1,exposeModeOn:!1,height:5e3,showZoomControls:!1,type:"mosaic",viewportPosition:{x:0,y:0},width:5e3},workspaceControlPanel:{enabled:!1},galleryView:{height:120,width:null},osdConfig:{alwaysBlend:!1,blendTime:.1,preserveImageSizeOnResize:!0,preserveViewport:!0,showNavigationControl:!1},export:{catalog:!0,companionWindows:!0,config:!0,elasticLayout:!0,layers:!0,manifests:{filter:function(e){var t=o(e,2),n=t[0];t[1];return!n.startsWith("http")}},viewers:!0,windows:!0,workspace:!0},audioOptions:{controls:!0,crossOrigin:"anonymous"},videoOptions:{controls:!0,crossOrigin:"anonymous"},auth:{serviceProfiles:[{profile:"http://iiif.io/api/auth/1/external",external:!0},{profile:"http://iiif.io/api/auth/1/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/1/clickthrough"},{profile:"http://iiif.io/api/auth/1/login"},{profile:"http://iiif.io/api/auth/0/external",external:!0},{profile:"http://iiif.io/api/auth/0/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/0/clickthrough"},{profile:"http://iiif.io/api/auth/0/login"}]}}},function(e,t,n){"use strict";n.d(t,"m",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"q",(function(){return y})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return E})),n.d(t,"i",(function(){return x})),n.d(t,"e",(function(){return S})),n.d(t,"k",(function(){return j})),n.d(t,"j",(function(){return T})),n.d(t,"s",(function(){return _})),n.d(t,"t",(function(){return C})),n.d(t,"n",(function(){return I})),n.d(t,"o",(function(){return P})),n.d(t,"c",(function(){return k})),n.d(t,"p",(function(){return R})),n.d(t,"a",(function(){return A})),n.d(t,"h",(function(){return D})),n.d(t,"r",(function(){return N})),n.d(t,"l",(function(){return L})),n.d(t,"b",(function(){return z}));var r=n(9),o=n(532),i=n.n(o),a=n(34),s=n(270),c=n(103),l=n(157),u=n(36),f=n(97);function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(e){var n=a.d.parseManifest(e,t?{locale:t}:void 0);return"function"!=typeof n.getSequences&&(n.getSequences=function(){return[]}),n}}var g=Object(r.createSelector)([l.b,f.a],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.locale||t.language})),m=Object(r.createSelector)([u.b],(function(e){return e||{missing:!0}})),v=Object(r.createSelector)([u.b],(function(e){return e&&e.error})),b=i()(u.b,g,(function(e,t){return e&&h(e.json,t)}))((function(e,t){var n=t.companionWindowId;return[t.manifestId,t.windowId,g(e,{companionWindowId:n})].join(" - ")})),y=Object(r.createSelector)(b,(function(e,t){return t.json}),g,(function(e,t,n){return t&&h(t,n)||e})),w=Object(r.createSelector)([y],(function(e){return e&&e.options&&e.options.locale&&e.options.locale.replace(/-.*$/,"")}));function O(e){return Object(r.createSelector)([y],(function(t){return t&&t.getProperty(e)}))}var E=Object(r.createSelector)([y],(function(e){return e&&e.getLogo()})),x=Object(r.createSelector)([O("provider"),w],(function(e,t){return e&&e[0].label&&a.b.parse(e[0].label,t).getValue()})),S=Object(r.createSelector)([O("homepage"),w],(function(e,t){return e&&Object(c.a)(e).map((function(e){return{label:a.b.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),j=Object(r.createSelector)([y],(function(e){return e&&e.getRenderings().map((function(e){return{label:e.getLabel().getValue(),value:e.id}}))})),T=Object(r.createSelector)([O("seeAlso"),w],(function(e,t){return e&&Object(c.a)(e).map((function(e){return{format:e.format,label:a.b.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),_=Object(r.createSelector)([y],(function(e){return e&&Object(c.a)(e.getRequiredStatement()).filter((function(e){return e.getValues().some((function(e){return e}))})).map((function(e){return{label:e.label&&e.label.getValue()||null,values:e.getValues()}}))})),C=Object(r.createSelector)([O("rights"),O("license"),w],(function(e,t,n){var r=e||t;return Object(c.a)(a.b.parse(r,n).getValues())}));function I(e,t){var n=y(e,t),r=Object(f.a)(e).thumbnails,o=void 0===r?{}:r;if(n){var i=Object(s.a)(n,{maxHeight:80,maxWidth:120,preferredFormats:o.preferredFormats});return i&&i.url}}var P=Object(r.createSelector)([y],(function(e){return e&&e.getLabel().getValue()})),k=Object(r.createSelector)([y],(function(e){return e&&e.getDescription().getValue()})),R=Object(r.createSelector)([y],(function(e){return e&&e.id}));function A(e){return e&&e.getMetadata().map((function(e){return{label:e.getLabel(),values:e.getValues()}}))}var D=Object(r.createSelector)([y],(function(e){return e&&A(e)}));function M(e){var t=[];return Array.isArray(e)?t.push.apply(t,d(e.filter((function(e){return"object"==typeof e&&e["@language"]})).map((function(e){return e["@language"]})))):e&&"object"==typeof e&&e["@language"]&&t.push(e["@language"]),t}var N=Object(r.createSelector)([y],(function(e){return function(e){if(!e)return[];for(var t=e.getProperty("metadata")||[],n={},r=0;r<t.length;r+=1){var o=t[r];M(o.label).forEach((function(e){n[e]=!0})),M(o.value).forEach((function(e){n[e]=!0}))}return Object.keys(n)}(e)})),L=Object(r.createSelector)([y],(function(e){if(!e)return null;var t=e.getService("http://iiif.io/api/search/0/search")||e.getService("http://iiif.io/api/search/1/search");return t||null})),z=Object(r.createSelector)([L],(function(e){var t=e&&(e.getService("http://iiif.io/api/search/0/autocomplete")||e.getService("http://iiif.io/api/search/1/autocomplete"));return t&&t}))},function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},,,function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(37);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(412),o=n(33),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(51),o=n(50),i=n(231),a=n(330),s=i("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){"use strict";e.exports=n(849)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"e",(function(){return b}));var r=n(9),o=n(110),i=n.n(o),a=n(40),s=n(36);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return Object(a.a)(e||{}).config||{}}function f(e){var t=u(e).export;return Object.entries(t).reduce((function(t,n){var r=c(n,2),o=r[0],i=r[1];return!0===i?t[o]=e[o]:i.filter&&(t[o]=Object.entries(e[o]).filter(i.filter).reduce((function(e,t){var n=c(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),t}),{})}var d=Object(r.createSelector)([u],(function(e){var t=e.availableLanguages,n=e.language;return Object.keys(t).map((function(e){return{current:e===n,label:t[e],locale:e}}))})),p=Object(r.createSelector)([s.i,u],(function(e,t){return void 0===e.showZoomControls?t.workspace.showZoomControls:e.showZoomControls})),h=Object(r.createSelector)([u],(function(e){var t=e.theme,n=e.themes,r=e.selectedTheme;return i()(t,n[r]||{})})),g=Object(r.createSelector)([u],(function(e){var t=e.themes;return Object.keys(t)})),m=Object(r.createSelector)([u],(function(e){return e.id})),v=Object(r.createSelector)([u],(function(e){return e.theme.direction||"ltr"})),b=Object(r.createSelector)([u],(function(e){return e.requests||{}}))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAndAssertNodeAtPathExists=t.getNodeAtPath=t.getLeaves=t.getPathToCorner=t.getOtherDirection=t.getOtherBranch=t.createBalancedTreeFromLeaves=t.isParent=t.Corner=void 0;var o,i=r(n(485)),a=r(n(489));function s(e,t){if(void 0===t&&(t="row"),c(e)){var n=l(t);return{direction:t,first:s(e.first,n),second:s(e.second,n)}}return e}function c(e){return null!=e.direction}function l(e){return"row"===e?"column":"row"}function u(e,t){return t.length>0?a.default(e,t,null):e}!function(e){e[e.TOP_LEFT=1]="TOP_LEFT",e[e.TOP_RIGHT=2]="TOP_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=4]="BOTTOM_RIGHT"}(o=t.Corner||(t.Corner={})),t.isParent=c,t.createBalancedTreeFromLeaves=function(e,t){if(void 0===t&&(t="row"),0===e.length)return null;for(var n=i.default(e),r=[];n.length>1;){for(;n.length>0;)n.length>1?r.push({direction:"row",first:n.shift(),second:n.shift()}):r.unshift(n.shift());n=r,r=[]}return s(n[0],t)},t.getOtherBranch=function(e){if("first"===e)return"second";if("second"===e)return"first";throw new Error("Branch '"+e+"' not a valid branch")},t.getOtherDirection=l,t.getPathToCorner=function(e,t){for(var n=e,r=[];c(n);)("row"!==n.direction||t!==o.TOP_LEFT&&t!==o.BOTTOM_LEFT)&&("column"!==n.direction||t!==o.TOP_LEFT&&t!==o.TOP_RIGHT)?(r.push("second"),n=n.second):(r.push("first"),n=n.first);return r},t.getLeaves=function e(t){return null==t?[]:c(t)?e(t.first).concat(e(t.second)):[t]},t.getNodeAtPath=u,t.getAndAssertNodeAtPathExists=function(e,t){if(null==e)throw new Error("Root is empty, cannot fetch path");var n=u(e,t);if(null==n)throw new Error("Path ["+t.join(", ")+"] did not resolve to a node");return n}},function(e,t,n){"use strict";var r=n(96),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=c(t),g=c(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var b=d(n,v);try{l(t,v,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),o=n(0),i=n.n(o),a=n(283);function s(e,t){var n=function(t,n){return i.a.createElement(a.a,Object(r.a)({ref:n},t),e)};return n.muiName=a.a.muiName,i.a.memo(i.a.forwardRef(n))}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return void 0===e?[]:Array.isArray(e)?e:[e]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(1),o=n(5),i=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,c=e.step,l=void 0===c?5:c,u=Object(o.a)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function d(e,t){var r=i.indexOf(t);return r===i.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:t)-l/100).concat(s,")")}return Object(r.a)({keys:i,values:n,up:f,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(s,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},u)}},,function(e,t){e.exports=!1},function(e,t,n){var r=n(47).f,o=n(51),i=n(41)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";n.r(t),n.d(t,"HTML5DragTransition",(function(){return i})),n.d(t,"TouchTransition",(function(){return o})),n.d(t,"MouseTransition",(function(){return a})),n.d(t,"createTransition",(function(){return r})),n.d(t,"MultiBackend",(function(){return d})),n.d(t,"PreviewManager",(function(){return f}));var r=function(e,t){return{_isMBTransition:!0,event:e,check:t}},o=r("touchstart",(function(e){return null!=e.touches})),i=r("dragstart",(function(e){return!!e.type&&(-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop"))})),a=r("mousedown",(function(e){return!!e.type&&(-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse"))}));function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=new function e(){var t=this;u(this,e),this.register=function(e){t.previews.push(e)},this.unregister=function(e){for(var n;-1!==(n=t.previews.indexOf(e));)t.previews.splice(n,1)},this.backendChanged=function(e){var n,r=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=c(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(t.previews);try{for(r.s();!(n=r.n()).done;){n.value.backendChanged(e)}}catch(e){r.e(e)}finally{r.f()}},this.previews=[]},d=function e(t,n,r){var o=this;u(this,e),this.setup=function(){if("undefined"!=typeof window){if(o.constructor.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");o.constructor.isSetUp=!0,o.addEventListeners(window),o.backends[o.current].instance.setup()}},this.teardown=function(){"undefined"!=typeof window&&(o.constructor.isSetUp=!1,o.removeEventListeners(window),o.backends[o.current].instance.teardown())},this.connectDragSource=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDragSource",t)},this.connectDragPreview=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDragPreview",t)},this.connectDropTarget=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDropTarget",t)},this.previewEnabled=function(){return o.backends[o.current].preview},this.addEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.addEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.removeEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.backendSwitcher=function(e){var t=o.current,n=0;if(o.backends.some((function(t){return n!==o.current&&t.transition&&t.transition.check(e)?(o.current=n,!0):(n+=1,!1)})),o.current!==t){o.backends[t].instance.teardown(),Object.keys(o.nodes).forEach((function(e){var t=o.nodes[e];t.handler(),t.handler=o.callBackend(t.func,t.args)})),f.backendChanged(o);var r=o.backends[o.current];if(r.instance.setup(),r.skipDispatchOnTransition)return;var i=null;try{i=new e.constructor(e.type,e)}catch(t){(i=document.createEvent("Event")).initEvent(e.type,e.bubbles,e.cancelable)}e.target.dispatchEvent(i)}},this.callBackend=function(e,t){var n;return(n=o.backends[o.current].instance)[e].apply(n,s(t))},this.connectBackend=function(e,t){var n="".concat(e,"_").concat(t[0]),r=o.callBackend(e,t);return o.nodes[n]={func:e,args:t,handler:r},function(){var e,t=(e=o.nodes[n]).handler.apply(e,arguments);return delete o.nodes[n],t}};var i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}({backends:[]},r||{});if(i.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n        see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");this.current=0,this.backends=[],i.backends.forEach((function(e){if(!e.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(e));var r=e.transition;if(r&&!r._isMBTransition)throw new Error("You must specify a valid 'transition' property (either undefined or the return of 'createTransition') in your Backend entry: ".concat(e));o.backends.push({instance:e.backend(t,n,e.options),preview:e.preview||!1,transition:r,skipDispatchOnTransition:Boolean(e.skipDispatchOnTransition)})})),this.nodes={}};t.default=function(e,t,n){return new d(e,t,n)}},function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=i(e[t],n)})),s(t).forEach((function(o){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(c(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):l(e,t,n):i(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var f=u;e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(117);function i(){return r.useContext(o.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(274);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(1119),a=n(10),s=n(6),c=n(97),l=n(0),u=n.n(l),f=(n(514),n(165)),d=n(301),p=n(19),h=n.n(p),g=n(270);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(i,e);var t,n,r,o=O(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={loaded:!1},t.handleIntersection=t.handleIntersection.bind(x(t)),t}return t=i,r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],(n=[{key:"componentDidMount",value:function(){var e=this;this.setState((function(t){return v(v({},t),{},{image:e.image()})}))}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.maxHeight,o=n.maxWidth,i=n.resource;e.maxHeight===r&&e.maxWidth===o&&e.resource===i||this.setState((function(e){return v(v({},e),{},{image:t.image()})}))}},{key:"handleIntersection",value:function(e){!this.state.loaded&&e.isIntersecting&&this.setState((function(e){return v(v({},e),{},{loaded:!0})}))}},{key:"imageStyles",value:function(){var e=this.props,t=e.maxHeight,n=e.maxWidth,r=e.style,o=this.image(),i={height:"auto",width:"auto"};if(!o)return v(v({},r),{},{height:t||"auto",width:n||"auto"});var a=o.height,s=o.width;if(a&&s)if(t&&a>t||n&&s>n){var c=s/a;t&&n?n/t<c?(i.height=Math.round(n/c),i.width=n):(i.height=t,i.width=Math.round(t*c)):t?(i.height=t,i.maxWidth=Math.round(t*c)):n&&(i.width=n,i.maxHeight=Math.round(n/c))}else i.width=s,i.height=a;else a&&!s?i.height=t:!a&&s?i.width=n:(i.width=n,i.height=t);return v(v({},i),r)}},{key:"image",value:function(){var e=this.props,t=e.thumbnail,n=e.resource,r=e.maxHeight,o=e.maxWidth,i=e.thumbnailsConfig;if(t)return t;var a=Object(g.a)(n,v(v({},i),{},{maxHeight:r,maxWidth:o}));return a&&a.url?a:void 0}},{key:"label",value:function(){var e=this.props,t=e.label,n=e.resource;return t||i.getUseableLabel(n)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.imagePlaceholder,o=e.labelled,i=e.thumbnail,a=e.variant,s=this.state,c=s.image,l=(s.loaded&&(i||c)||{}).url,p=void 0===l?r:l;return u.a.createElement("div",{className:h()(n.root,b({},n["".concat(a,"Root")],a))},u.a.createElement(d.a,{onChange:this.handleIntersection},u.a.createElement("img",{alt:"",role:"presentation",src:p,style:this.imageStyles(),className:n.image})),o&&u.a.createElement("div",{className:h()(n.label,b({},n["".concat(a,"Label")],a))},u.a.createElement(f.a,{variant:"caption",classes:{root:h()(n.caption,b({},n["".concat(a,"Caption")],a))}},this.label())),t)}}])&&y(t.prototype,n),r&&y(t,r),i}(l.Component);j.defaultProps={children:null,classes:{},imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mMMDQmtBwADgwF/Op8FmAAAAABJRU5ErkJggg==",label:void 0,labelled:!1,maxHeight:null,maxWidth:null,style:{},thumbnail:null,thumbnailsConfig:{},variant:null};var T=Object(r.compose)(Object(a.a)((function(e){return{caption:{lineHeight:"1.5em",wordBreak:"break-word"},image:{},insideCaption:{color:"#ffffff",lineClamp:"1",whiteSpace:"nowrap"},insideLabel:{background:"linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%)",bottom:"5px",boxSizing:"border-box",left:"0px",padding:"4px",position:"absolute",width:"100%"},insideRoot:{display:"inline-block",height:"inherit",position:"relative"},label:{overflow:"hidden",textOverflow:"ellipsis"},outsideCaption:{boxOrient:"vertical",display:"-webkit-box",lineClamp:"2",maxHeight:"3em"},outsideLabel:{},outsideRoot:{},root:{}}})),Object(i.a)(),Object(o.b)((function(e){return{thumbnailsConfig:Object(c.a)(e).thumbnails}})),Object(s.a)("IIIFThumbnail"));t.a=T(j)},function(e,t,n){"use strict";var r=n(3),o=n(1119),i=n(10),a=n(0),s=n.n(a),c=n(165),l=n(549),u=n.n(l),f=n(548),d=n.n(f),p=n(29);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,o=m(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={open:!0},t.toggleSection=t.toggleSection.bind(b(t)),t}return t=i,(n=[{key:"toggleSection",value:function(){var e=this.state.open;this.setState({open:!e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.id,o=e.label,i=e.t,a=this.state.open;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:n.container},s.a.createElement(c.a,{className:n.heading,id:r,onClick:this.toggleSection,variant:"overline",component:"h4"},o),s.a.createElement(p.a,{"aria-label":i(a?"collapseSection":"expandSection",{section:o}),"aria-expanded":a,className:n.button,onClick:this.toggleSection},a?s.a.createElement(d.a,null):s.a.createElement(u.a,null))),a&&t)}}])&&h(t.prototype,n),r&&h(t,r),i}(a.Component),O=Object(r.compose)(Object(o.a)(),Object(i.a)({button:{padding:0},container:{display:"flex",justifyContent:"space-between"},heading:{cursor:"pointer"}}));t.a=O(w)},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=r.createContext({});t.a=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(0),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t){e.exports=function(e){return void 0===e}},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r,o=n(38),i=n(324),a=n(321),s=n(195),c=n(415),l=n(316),u=n(231),f=u("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=h(),void 0===t?n:i(n,t)}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(8),o=n(33),i=n(39),a=n(342),s=n(42),c=n(236),l=n(132),u=n(128),f=n(71),d=n(45),p=n(427),h=n(446),g=n(93),m=n(51),v=n(203),b=n(37),y=n(122),w=n(147),O=n(144).f,E=n(447),x=n(61).forEach,S=n(167),j=n(47),T=n(64),_=n(76),C=n(238),I=_.get,P=_.set,k=j.f,R=T.f,A=Math.round,D=o.RangeError,M=c.ArrayBuffer,N=c.DataView,L=s.NATIVE_ARRAY_BUFFER_VIEWS,z=s.TYPED_ARRAY_TAG,W=s.TypedArray,B=s.TypedArrayPrototype,F=s.aTypedArrayConstructor,H=s.isTypedArray,U="BYTES_PER_ELEMENT",V="Wrong length",G=function(e,t){for(var n=0,r=t.length,o=new(F(e))(r);r>n;)o[n]=t[n++];return o},q=function(e,t){k(e,t,{get:function(){return I(this)[t]}})},$=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},K=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Z=function(e,t){return K(e,t=g(t,!0))?u(2,e[t]):R(e,t)},Y=function(e,t,n){return!(K(e,t=g(t,!0))&&b(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?k(e,t,n):(e[t]=n.value,e)};i?(L||(T.f=Z,j.f=Y,q(B,"buffer"),q(B,"byteOffset"),q(B,"byteLength"),q(B,"length")),r({target:"Object",stat:!0,forced:!L},{getOwnPropertyDescriptor:Z,defineProperty:Y}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,u="set"+e,g=o[s],m=g,v=m&&m.prototype,j={},T=function(e,t){k(e,t,{get:function(){return function(e,t){var n=I(e);return n.view[c](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=I(e);n&&(r=(r=A(r))<0?0:r>255?255:255&r),o.view[u](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};L?a&&(m=t((function(e,t,n,r){return l(e,m,s),C(b(t)?$(t)?void 0!==r?new g(t,h(n,i),r):void 0!==n?new g(t,h(n,i)):new g(t):H(t)?G(m,t):E.call(m,t):new g(p(t)),e,m)})),w&&w(m,W),x(O(g),(function(e){e in m||f(m,e,g[e])})),m.prototype=v):(m=t((function(e,t,n,r){l(e,m,s);var o,a,c,u=0,f=0;if(b(t)){if(!$(t))return H(t)?G(m,t):E.call(m,t);o=t,f=h(n,i);var g=t.byteLength;if(void 0===r){if(g%i)throw D(V);if((a=g-f)<0)throw D(V)}else if((a=d(r)*i)+f>g)throw D(V);c=a/i}else c=p(t),o=new M(a=c*i);for(P(e,{buffer:o,byteOffset:f,byteLength:a,length:c,view:new N(o)});u<c;)T(e,u++)})),w&&w(m,W),v=m.prototype=y(B)),v.constructor!==m&&f(v,"constructor",m),z&&f(v,z,s),j[s]=m,r({global:!0,forced:m!=g,sham:!L},j),U in m||f(m,U,i),U in v||f(v,U,i),S(s)}):e.exports=function(){}},function(e,t,n){var r=n(370);e.exports=function(e,t){return r(e,t)}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}},,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(83),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(84);e.exports=function(e,t,n){if(r(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,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(41),o=n(122),i=n(47),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(38),o=n(84),i=n(41)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(170),o=n(850),i=n(851),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n(32),i=!0,a=!1,s=null,c={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!c[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"CloseSharp");t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n.n(r),i=n(165),a=n(60),s=n(12);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,r,d=f(p);function p(){return c(this,p),d.apply(this,arguments)}return t=p,(n=[{key:"render",value:function(){var e=this.props,t=e.defaultLabel,n=e.labelValuePairs;return 0===n.length?o.a.createElement(o.a.Fragment,null):o.a.createElement("dl",{className:Object(s.a)("label-value-metadata")},n.reduce((function(e,n,r){return e.concat([o.a.createElement(i.a,{component:"dt",key:"label-".concat(r),variant:"subtitle2"},n.label||t),o.a.createElement(i.a,{style:{marginBottom:".5em",marginLeft:"0px"},component:"dd",key:"value-".concat(r),variant:"body1"},o.a.createElement(a.a,{htmlString:n.values.join(", "),ruleSet:"iiif"}))])}),[]))}}])&&l(t.prototype,n),r&&l(t,r),p}(r.Component);h.defaultProps={defaultLabel:void 0}},function(e,t,n){"use strict";function r(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function o(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(473)("update",n(380));r.placeholder=n(363),e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(14),i=n(160);function a(){var e=Object(r.useContext)(i.a).dragDropManager;return Object(o.a)(null!=e,"Expected drag drop context"),e}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l="undefined"==typeof URL?n(977).URL:URL,u=function(e,t){return t.some((function(t){return t instanceof RegExp?t.test(e):t===e}))},f=function(e,t){if(t=function(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){o(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}({defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),Reflect.has(t,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(t,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(t,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(e=e.trim(),/^data:/i.test(e))return function(e,t){var n=t.stripHash,r=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!r)throw new Error("Invalid URL: ".concat(e));var o=r[1].split(";"),s=r[2],c=n?"":r[3],l=!1;"base64"===o[o.length-1]&&(o.pop(),l=!0);var u=(o.shift()||"").toLowerCase(),f=i(o.map((function(e){var t=a(e.split("=").map((function(e){return e.trim()})),2),n=t[0],r=t[1],o=void 0===r?"":r;return"charset"===n&&"us-ascii"===(o=o.toLowerCase())?"":"".concat(n).concat(o?"=".concat(o):"")})).filter(Boolean));return l&&f.push("base64"),(0!==f.length||u&&"text/plain"!==u)&&f.unshift(u),"data:".concat(f.join(";"),",").concat(l?s.trim():s).concat(c?"#".concat(c):"")}(e,t);var n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));var s=new l(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===s.protocol&&(s.protocol="http:"),t.forceHttps&&"http:"===s.protocol&&(s.protocol="https:"),t.stripAuthentication&&(s.username="",s.password=""),t.stripHash&&(s.hash=""),s.pathname&&(s.pathname=s.pathname.replace(/((?!:).|^)\/{2,}/g,(function(e,t){return/^(?!\/)/g.test(t)?"".concat(t,"/"):"/"}))),s.pathname&&(s.pathname=decodeURI(s.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){var c=s.pathname.split("/"),f=c[c.length-1];u(f,t.removeDirectoryIndex)&&(c=c.slice(0,c.length-1),s.pathname=c.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(var d=0,p=i(s.searchParams.keys());d<p.length;d++){var h=p[d];u(h,t.removeQueryParameters)&&s.searchParams.delete(h)}return t.sortQueryParameters&&s.searchParams.sort(),t.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,"")),e=s.toString(),!t.removeTrailingSlash&&"/"!==s.pathname||""!==s.hash||(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};e.exports=f,e.exports.default=f},function(e,t,n){"use strict";var r,o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&a.test(e)},c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return u(r)}},function(e,t,n){var r=n(413),o=n(321).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(92);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(93),o=n(47),i=n(128);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(38),o=n(425);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(195),o=n(37),i=n(51),a=n(47).f,s=n(194),c=n(204),l=s("meta"),u=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,l)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[l].weakData},onFreeze:function(e){return c&&p.REQUIRED&&f(e)&&!i(e,l)&&d(e),e}};r[l]=!0},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(454),o=n(346),i=n(151);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(156),o=n(344);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(868),o=n(871);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(173);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBlueprint=void 0;var a=i(n(0));!function(e){var t,r,o;try{!function(){var e=new Error("Cannot find module '@blueprintjs/core'");throw e.code="MODULE_NOT_FOUND",e}(),function(){var e=new Error("Cannot find module '@blueprintjs/icons'");throw e.code="MODULE_NOT_FOUND",e}(),t=n(!function(){var e=new Error("Cannot find module '@blueprintjs/core'");throw e.code="MODULE_NOT_FOUND",e}()),r=t.Classes,e.Icon=t.Icon,o=n(!function(){var e=new Error("Cannot find module '@blueprintjs/icons'");throw e.code="MODULE_NOT_FOUND",e}()).IconNames}catch(t){e.Icon=function(e){var t=e.icon;return a.createElement("span",null,t)}}e.getClasses=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r?e.map((function(e){return r[e]})).join(" "):""},e.getIconClass=function(e){return r&&o?r.iconClass(o[e]):""}}(t.OptionalBlueprint||(t.OptionalBlueprint={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"DndContext",(function(){return r.a})),n.d(t,"createDndContext",(function(){return r.b})),n.d(t,"DndProvider",(function(){return o.a})),n.d(t,"DragPreviewImage",(function(){return a})),n.d(t,"useDrag",(function(){return S})),n.d(t,"useDrop",(function(){return j.a})),n.d(t,"useDragLayer",(function(){return T.a})),n.d(t,"DragSource",(function(){return te})),n.d(t,"DropTarget",(function(){return ce})),n.d(t,"DragLayer",(function(){return ve}));var r=n(160),o=n(516),i=n(0),a=i.memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var r=new Image;r.src=n,r.onload=function(){return t(r)}}return null}));a.displayName="DragPreviewImage";var s=n(14),c=n(296),l=n(81),u=n(139),f=n(141);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=!1,h=!1,g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(s.a)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(s.a)(!h,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return h=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{h=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&d(t.prototype,n),r&&d(t,r),e}(),m=n(303),v=n(218),b=n(68);function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Object(m.a)({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,Object(v.a)(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,Object(v.a)(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Object(b.a)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Object(b.a)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&y(t.prototype,n),r&&y(t,r),e}();function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function E(e){return E="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},E(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function S(e){var t=Object(i.useRef)(e);t.current=e,Object(s.a)(null!=e.item,"item must be defined"),Object(s.a)(null!=e.item.type,"item type must be defined");var n,r=x((n=Object(f.a)(),[Object(i.useMemo)((function(){return new g(n)}),[n]),Object(i.useMemo)((function(){return new w(n.getBackend())}),[n])]),2),o=r[0],a=r[1];!function(e,t,n){var r=Object(f.a)(),o=Object(i.useMemo)((function(){return{beginDrag:function(){var n=e.current,r=n.begin,o=n.item;if(r){var i=r(t);return Object(s.a)(null==i||"object"===E(i),"dragSpec.begin() must either return an object, undefined, or null"),i||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);Object(l.a)((function(){var i=O(Object(u.a)(e.current.item.type,o,r),2),a=i[0],s=i[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),s}),[])}(t,o,a);var d=Object(c.a)(o,t.current.collect||function(){return{}},(function(){return a.reconnect()})),p=Object(i.useMemo)((function(){return a.hooks.dragSource()}),[a]),h=Object(i.useMemo)((function(){return a.hooks.dragPreview()}),[a]);return Object(l.a)((function(){a.dragSourceOptions=t.current.options||null,a.reconnect()}),[a]),Object(l.a)((function(){a.dragPreviewOptions=t.current.previewOptions||null,a.reconnect()}),[a]),[d,p,h]}var j=n(530),T=n(515);function _(e){return _="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},_(e)}function C(e){return"function"==typeof e}function I(){}function P(e){if(!function(e){return"object"===_(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function k(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function R(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}var A=n(99),D=n.n(A);function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}var z=function(){function e(t){M(this,e),this.isDisposed=!1,this.action=C(t)?t:I}return L(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&C(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();z.empty={dispose:I};var W=function(){function e(){M(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return L(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),B=function(){function e(){M(this,e),this.isDisposed=!1}return L(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function F(e){return F="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},F(e)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function q(e,t){return q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},q(e,t)}function $(e){var t=e.DecoratedComponent,n=e.createHandler,o=e.createMonitor,a=e.createConnector,c=e.registerHandler,l=e.containerDisplayName,u=e.getType,f=e.collect,d=e.options.arePropsEqual,p=void 0===d?b.a:d,h=t,g=t.displayName||t.name||"Component",m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=V(this,G(t).call(this,e))).decoratedRef=i.createRef(),n.handleChange=function(){var e=n.getCurrentState();Object(b.a)(e,n.state)||n.setState(e)},n.disposable=new B,n.receiveProps(e),n.dispose(),n}var l,d,m;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(t,e),l=t,(d=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(s.a)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!p(e,this.props)||!Object(b.a)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new B,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){p(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(u(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=H(c(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new W(new z(o),new z(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?f(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return i.createElement(r.a.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),i.createElement(h,Object.assign({},e.props,e.getCurrentState(),{ref:R(h)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Object(s.a)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",g,g),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),this.handlerConnector=a(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&U(l.prototype,d),m&&U(l,m),t}(i.Component);return m.DecoratedComponent=t,m.displayName="".concat(l,"(").concat(g,")"),D()(m,t)}function K(e){return K="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},K(e)}function Z(e,t){return"string"==typeof e||"symbol"===K(e)||!!t&&Array.isArray(e)&&e.every((function(e){return Z(e,!1)}))}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var X=["canDrag","beginDrag","isDragging","endDrag"],Q=["beginDrag"],J=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,k(this.ref))}}])&&Y(t.prototype,n),r&&Y(t,r),e}();function ee(e){return Object.keys(e).forEach((function(t){Object(s.a)(X.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',X.join(", "),t),Object(s.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),Q.forEach((function(t){Object(s.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new J(e,t,n)}}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(s.a)(Z(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),Object(s.a)(P(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=ee(t);return Object(s.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(s.a)(P(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return $({containerDisplayName:"DragSource",createHandler:i,registerHandler:u.a,createConnector:function(e){return new w(e)},createMonitor:function(e){return new g(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}var ne=n(295),re=n(294);function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ie=["canDrop","hover","drop"],ae=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,k(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&oe(t.prototype,n),r&&oe(t,r),e}();function se(e){return Object.keys(e).forEach((function(t){Object(s.a)(ie.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',ie.join(", "),t),Object(s.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new ae(e,t,n)}}function ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(s.a)(Z(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),Object(s.a)(P(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=se(t);return Object(s.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(s.a)(P(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return $({containerDisplayName:"DropTarget",createHandler:i,registerHandler:u.b,createMonitor:function(e){return new re.a(e)},createConnector:function(e){return new ne.a(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function le(e){return le="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},le(e)}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),e}function pe(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}function me(e,t){return me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},me(e,t)}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),Object(s.a)(P(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var o=n,a=t.arePropsEqual,c=void 0===a?b.a:a,l=o.displayName||o.name||"Component",u=function(t){function n(){var e;return ue(this,n),(e=pe(this,he(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=i.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();Object(b.a)(t,e.state)||e.setState(t)}},e}return ge(n,t),de(n,[{key:"getDecoratedComponentInstance",value:function(){return Object(s.a)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!c(e,this.props)||!Object(b.a)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return i.createElement(r.a.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?i.createElement(o,Object.assign({},e.props,e.state,{ref:R(o)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,Object(s.a)("object"===le(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",l,l);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),n}(i.Component);return u.displayName="DragLayer(".concat(l,")"),u.DecoratedComponent=n,D()(u,n)}}},function(e,t,n){var r=n(134),o=n(57);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return S})),n.d(t,"h",(function(){return j}));var r=n(9),o=n(389),i=n.n(o),a=n(40),s=n(36);function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return Object(a.a)(e).companionWindows||{}}var h=Object(r.createSelector)([p,function(e,t){return t.companionWindowId}],(function(e,t){return t&&e[t]})),g=Object(r.createSelector)([s.e,p],(function(e,t){return e&&t[e.thumbnailNavigationId]&&t[e.thumbnailNavigationId].position})),m=Object(r.createSelector)([s.h,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(n,r){return f(f({},n),{},d({},r,i()(e[r].companionWindowIds,(function(e){return t[e]&&t[e].position}))))}),{})})),v=Object(r.createSelector)([s.h,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(n,r){return f(f({},n),{},d({},r,i()(e[r].companionWindowIds.map((function(e){return t[e]})),(function(e){return e.position}))))}),{})})),b=Object(r.createSelector)([function(e,t){return t.windowId},v],(function(e,t){return t[e]||{}})),y=Object(r.createSelector)([function(e,t){return t.windowId},m],(function(e,t){return t[e]||{}})),w=Object(r.createSelector)([b,function(e,t){return{position:t.position}}],(function(e,t){return e[t.position]||E})),O=Object(r.createSelector)([b,function(e,t){return{content:t.content}}],(function(e,t){var n,r=t.content;return(n=[]).concat.apply(n,c(Object.values(e))).filter((function(e){return e.content===r}))})),E=[],x=Object(r.createSelector)([y,function(e,t){return{position:t.position}}],(function(e,t){return e[t.position]||E})),S=Object(r.createSelector)([function(e,t){return t.position},s.e],(function(e,t){if(!t)return!1;var n=t.companionAreaOpen,r=t.sideBarOpen;return"left"!==e||!(!n||!r)})),j=Object(r.createSelector)([b],(function(e){var t,n=0,r=0;return(t=[]).concat.apply(t,c(Object.values(e))).forEach((function(e){e.position.match(/right/)&&(n+=235),e.position.match(/bottom/)&&(r+=201)})),{height:r,width:n}}))},function(e,t,n){var r=n(57),o=n(1010),i=n(369),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,f,d,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=c,r=l;return c=l=void 0,h=t,f=e.apply(r,n)}function y(e){return h=e,d=setTimeout(O,t),g?b(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=u}function O(){var e=o();if(w(e))return E(e);d=setTimeout(O,function(e){var n=t-(e-p);return m?s(n,u-(e-h)):n}(e))}function E(e){return d=void 0,v&&c?b(e):(c=l=void 0,f)}function x(){var e=o(),n=w(e);if(c=arguments,l=this,p=e,n){if(void 0===d)return y(p);if(m)return clearTimeout(d),d=setTimeout(O,t),b(p)}return void 0===d&&(d=setTimeout(O,t)),f}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},x.flush=function(){return void 0===d?f:E(o())},x}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createExpandUpdate=t.createHideUpdate=t.createDragToUpdates=t.createRemoveUpdate=t.updateTree=t.buildSpecFromUpdate=void 0;var o=r(n(1017)),i=r(n(1019)),a=r(n(268)),s=r(n(125)),c=r(n(468)),l=r(n(490)),u=r(n(1020)),f=n(378),d=n(98);function p(e){return e.path.length>0?l.default({},e.path,e.spec):e.spec}function h(e,t){var n=e;return t.forEach((function(e){n=o.default(n,p(e))})),n}function g(e,t){var n=a.default(t),r=c.default(t),o=n.concat(d.getOtherBranch(r));return{path:n,spec:{$set:d.getAndAssertNodeAtPathExists(e,o)}}}function m(e,t,n){return s.default(u.default(e,n),u.default(t,n))}t.buildSpecFromUpdate=p,t.updateTree=h,t.createRemoveUpdate=g,t.createDragToUpdates=function(e,t,n,r){var o=d.getAndAssertNodeAtPathExists(e,n),a=[];m(t,n,n.length)?o=h(o,[g(o,i.default(t,n.length))]):(a.push(g(e,t)),m(t,n,t.length-1)&&n.splice(t.length-1,1));var s,c,l=d.getAndAssertNodeAtPathExists(e,t);r===f.MosaicDropTargetPosition.LEFT||r===f.MosaicDropTargetPosition.TOP?(s=l,c=o):(s=o,c=l);var u="column";return r!==f.MosaicDropTargetPosition.LEFT&&r!==f.MosaicDropTargetPosition.RIGHT||(u="row"),a.push({path:n,spec:{$set:{first:s,second:c,direction:u}}}),a},t.createHideUpdate=function(e){return{path:a.default(e),spec:{splitPercentage:{$set:"first"===c.default(e)?0:100}}}},t.createExpandUpdate=function(e,t){for(var n,r={},o=e.length-1;o>=0;o--){var i=e[o];(n={splitPercentage:{$set:"first"===i?t:100-t}})[i]=r,r=n}return{spec:r,path:[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ne})),n.d(t,"b",(function(){return Le}));var r=n(0),o=n(3),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",s="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",l="dnd-core/DROP",u="dnd-core/END_DRAG",f=function(e,t){return e===t};function d(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case i:case a:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case c:return d(e.clientOffset,n.clientOffset)?e:g({},e,{clientOffset:n.clientOffset});case u:case l:return v;default:return e}}var y="dnd-core/ADD_SOURCE",w="dnd-core/ADD_TARGET",O="dnd-core/REMOVE_SOURCE",E="dnd-core/REMOVE_TARGET";function x(e){return x="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},x(e)}function S(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function j(e,t){return e.filter((function(e){return e!==t}))}function T(e){return"object"===x(e)}function _(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e,t){1===e&&o.push(t)})),o}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case a:return I({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case s:return I({},e,{isSourcePublic:!0});case c:return I({},e,{targetIds:n.targetIds});case E:return-1===e.targetIds.indexOf(n.targetId)?e:I({},e,{targetIds:j(e.targetIds,n.targetId)});case l:return I({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case u:return I({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case y:case w:return e+1;case O:case E:return e-1;default:return e}}var D=[],M=[];function N(e,t){return e!==D&&(e===M||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}function L(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c:break;case y:case w:case E:case O:return D;default:return M}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=_(r,i),s=a.length>0||!p(r,i);if(!s)return D;var l=i[i.length-1],u=r[r.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:L(e.dirtyHandlerIds,{type:t.type,payload:B({},t.payload,{prevTargetIds:S(e,"dragOperation.targetIds",[])})}),dragOffset:b(e.dragOffset,t),refCount:A(e.refCount,t),dragOperation:R(e.dragOperation,t),stateId:z(e.stateId)}}D.__IS_NONE__=!0,M.__IS_ALL__=!0;var U=n(14);function V(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var G={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function q(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,s=n.getSourceClientOffset,c=e.getMonitor(),l=e.getRegistry();e.dispatch(V(i)),$(t,c,l);var u=Y(t,c);if(null!==u){var f=null;i&&(K(s),f=s(u)),e.dispatch(V(i,f));var d=l.getSource(u),p=d.beginDrag(c,u);Z(p),l.pinSource(u);var h=l.getSourceType(u);return{type:a,payload:{itemType:h,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(G)}}function $(e,t,n){Object(U.a)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Object(U.a)(n.getSource(e),"Expected sourceIds to be registered.")}))}function K(e){Object(U.a)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function Z(e){Object(U.a)(T(e),"Item must be an object.")}function Y(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function X(e){return function(){if(e.getMonitor().isDragging())return{type:s}}}function Q(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function J(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;ee(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();te(o,i,a);var s=i.getItemType();return ne(o,a,s),re(o,i,a),{type:c,payload:{targetIds:o,clientOffset:r||null}}}}function ee(e){Object(U.a)(Array.isArray(e),"Expected targetIds to be an array.")}function te(e,t,n){Object(U.a)(t.isDragging(),"Cannot call hover while not dragging."),Object(U.a)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];Object(U.a)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);Object(U.a)(i,"Expected targetIds to be registered.")}}function ne(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];Q(t.getTargetType(o),n)||e.splice(r,1)}}function re(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();ce(n);var o=ue(n);o.forEach((function(o,i){var a=le(o,i,r,n),s={type:l,payload:{dropResult:ie({},t,{},a)}};e.dispatch(s)}))}}function ce(e){Object(U.a)(e.isDragging(),"Cannot call drop while not dragging."),Object(U.a)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function le(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){Object(U.a)(void 0===e||T(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function ue(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fe(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){Object(U.a)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:u}}}function de(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var he,ge=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t,n,r;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;Object(U.a)("function"==typeof e,"listener must be a function."),Object(U.a)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var n=t.store.getState(),i=n.stateId;try{i===o||i===o+1&&!N(n.dirtyHandlerIds,r)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;Object(U.a)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return Object(U.a)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return Object(U.a)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&Q(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return Object(U.a)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Q(r,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return n?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?de((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?de(t,n):null;var e,t,n}}],n&&pe(t.prototype,n),r&&pe(t,r),e}(),me=0;function ve(e){return ve="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},ve(e)}function be(e,t){t&&Array.isArray(e)?e.forEach((function(e){return be(e,!1)})):Object(U.a)("string"==typeof e||"symbol"===ve(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(he||(he={}));var ye=n(392),we=[],Oe=[],Ee=ye.a.makeRequestCallFromTimer((function(){if(Oe.length)throw Oe.shift()}));function xe(e){var t;(t=we.length?we.pop():new Se).task=e,Object(ye.a)(t)}var Se=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){xe.onerror?xe.onerror(e):(Oe.push(e),Ee())}finally{this.task=null,we[we.length]=this}},e}();function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _e(e){var t=(me++).toString();switch(e){case he.SOURCE:return"S".concat(t);case he.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Ce(e){switch(e[0]){case"S":return he.SOURCE;case"T":return he.TARGET;default:Object(U.a)(!1,"Cannot parse handler ID: ".concat(e))}}function Ie(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(Te(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var Pe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n,r;return t=e,n=[{key:"addSource",value:function(e,t){be(e),function(e){Object(U.a)("function"==typeof e.canDrag,"Expected canDrag to be a function."),Object(U.a)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Object(U.a)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(he.SOURCE,e,t);return this.store.dispatch(function(e){return{type:y,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){be(e,!0),function(e){Object(U.a)("function"==typeof e.canDrop,"Expected canDrop to be a function."),Object(U.a)("function"==typeof e.hover,"Expected hover to be a function."),Object(U.a)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(he.TARGET,e,t);return this.store.dispatch(function(e){return{type:w,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return Ie(this.dragSources,e)||Ie(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(U.a)(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}},{key:"getTarget",value:function(e){return Object(U.a)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return Object(U.a)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return Object(U.a)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Ce(e)===he.SOURCE}},{key:"isTargetId",value:function(e){return Ce(e)===he.TARGET}},{key:"removeSource",value:function(e){var t=this;Object(U.a)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:O,payload:{sourceId:e}}}(e)),xe((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){Object(U.a)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:E,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);Object(U.a)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){Object(U.a)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=_e(e);return this.types.set(r,t),e===he.SOURCE?this.dragSources.set(r,n):e===he.TARGET&&this.dropTargets.set(r,n),r}}],n&&je(t.prototype,n),r&&je(t,r),e}();function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Object(o.createStore)(H,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var De=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ke(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=Ae(n);this.store=r,this.monitor=new ge(r,new Pe(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:q(e),publishDragSource:X(e),hover:J(e),drop:se(e),endDrag:fe(e)}}(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&Re(t.prototype,n),r&&Re(t,r),e}();function Me(e,t,n,r){var o=new De(r),i=e(o,t,n);return o.receiveBackend(i),o}var Ne=r.createContext({dragDropManager:void 0});function Le(e,t,n,r){return{dragDropManager:Me(e,t,n,r)}}},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return b}));var r=n(534),o=n.n(r),i=n(535),a=n.n(i),s=n(178),c=n.n(s),l=n(0);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d,p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},h=n.n(l).a.createContext();function g(){return p}var m=function(){function e(){o()(this,e),this.usedNamespaces={}}return a()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function v(){return d}var b={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p=f(f({},p),e)}(e.options.react),function(e){d=e}(e)}}},function(e,t,n){"use strict";var r="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},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.a=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,$,fullScreenApi;function OpenSeadragon(e){return new OpenSeadragon.Viewer(e)}!function(e){e.version={versionStr:"2.4.2",major:parseInt("2",10),minor:parseInt("4",10),revision:parseInt("2",10)};var t,n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},r=Object.prototype.toString,o=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?String(e):n[r.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==OpenSeadragon.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var r in t)n=r;return void 0===n||o.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=(t=document.createElement("canvas"),!(!e.isFunction(t.getContext)||!t.getContext("2d"))),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){t=!0}return t},e.pixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/r}return 1}()}(OpenSeadragon),function($){$.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=arguments.length,c=!1,l=1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},l=2),"object"==typeof a||OpenSeadragon.isFunction(a)||(a={}),s===l&&(a=this,--l);l<s;l++)if(null!==(e=arguments[l])||void 0!==e)for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(OpenSeadragon.isPlainObject(r)||(o=OpenSeadragon.isArray(r)))?(o?(o=!1,i=n&&OpenSeadragon.isArray(n)?n:[]):i=n&&OpenSeadragon.isPlainObject(n)?n:{},a[t]=OpenSeadragon.extend(c,i,r)):void 0!==r&&(a[t]=r));return a};var isIOSDevice=function(){if("object"!=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,r=new $.Point;for(n=getOffsetParent(e=$.getElement(e),t="fixed"==$.getElementStyle(e).position);n;)r.x+=e.offsetLeft,r.y+=e.offsetTop,t&&(r=r.plus($.getPageScroll())),n=getOffsetParent(e=n,t="fixed"==$.getElementStyle(e).position);return r},getElementOffset:function(e){var t,n,r=(e=$.getElement(e))&&e.ownerDocument,o={top:0,left:0};return r?(t=r.documentElement,void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=r==r.window?r:9===r.nodeType&&(r.defaultView||r.parentWindow),new $.Point(o.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0),o.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)).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,r=null;if(void 0!==n[e])r=e;else for(var o=["Webkit","Moz","MS","O","webkit","moz","ms","o"],i=$.capitalizeFirstLetter(e),a=0;a<o.length;a++){var s=o[a]+i;if(void 0!==n[s]){r=s;break}}return t[e]=r,r},$.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),r=$.getElementSize(e);return t.x>=n.x&&t.x<n.x+r.x&&t.y<n.y+r.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(void 0!==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()).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")).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 r;e=$.getElement(e),n&&!$.Browser.alpha&&(t=Math.round(t)),$.Browser.opacity?e.style.opacity=t<1?t:"":t<1?(r="alpha(opacity="+Math.round(100*t)+")",e.style.filter=r):e.style.filter=""},setElementTouchActionNone:function(e){void 0!==(e=$.getElement(e)).style.touchAction?e.style.touchAction="none":void 0!==e.style.msTouchAction&&(e.style.msTouchAction="none")},addClass:function(e,t){(e=$.getElement(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 r,o,i=n||0;if(!e)throw new TypeError;if(0===(o=e.length)||i>=o)return-1;for(i<0&&(i=o-Math.abs(i)),r=i;r<o;r++)if(e[r]===t)return r;return-1},this.indexOf(e,t,n)},removeClass:function(e,t){var n,r,o=[];for(n=(e=$.getElement(e)).className.split(/\s+/),r=0;r<n.length;r++)n[r]&&n[r]!==t&&o.push(n[r]);e.className=o.join(" ")},addEvent:function(){if(window.addEventListener)return function(e,t,n,r){(e=$.getElement(e)).addEventListener(t,n,r)};if(window.attachEvent)return function(e,t,n,r){(e=$.getElement(e)).attachEvent("on"+t,n)};throw new Error("No known event model.")}(),removeEvent:function(){if(window.removeEventListener)return function(e,t,n,r){(e=$.getElement(e)).removeEventListener(t,n,r)};if(window.detachEvent)return function(e,t,n,r){(e=$.getElement(e)).detachEvent("on"+t,n)};throw new Error("No known event model.")}(),cancelEvent:function(e){(e=$.getEvent(e)).preventDefault?$.cancelEvent=function(e){e.preventDefault()}:$.cancelEvent=function(e){(e=$.getEvent(e)).cancel=!0,e.returnValue=!1},$.cancelEvent(e)},stopEvent:function(e){(e=$.getEvent(e)).stopPropagation?$.stopEvent=function(e){e.stopPropagation()}:$.stopEvent=function(e){(e=$.getEvent(e)).cancelBubble=!0},$.stopEvent(e)},createCallback:function(e,t){var n,r=[];for(n=2;n<arguments.length;n++)r.push(arguments[n]);return function(){var n,o=r.concat([]);for(n=0;n<arguments.length;n++)o.push(arguments[n]);return t.apply(e,o)}},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(e){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 r,o,i;$.isPlainObject(e)&&(t=e.success,n=e.error,r=e.withCredentials,o=e.headers,i=e.responseType||null,e=e.url);var a=$.getUrlProtocol(e),s=$.createAjaxRequest("file:"===a);if(!$.isFunction(t))throw new Error("makeAjaxRequest requires a success callback");s.onreadystatechange=function(){4==s.readyState&&(s.onreadystatechange=function(){},s.status>=200&&s.status<300||0===s.status&&"http:"!==a&&"https:"!==a?t(s):($.console.log("AJAX request returned %d: %s",s.status,e),$.isFunction(n)&&n(s)))};try{if(s.open("GET",e,!0),i&&(s.responseType=i),o)for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&s.setRequestHeader(c,o[c]);r&&(s.withCredentials=!0),s.send(null)}catch(r){var l=r.message;if($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<10&&void 0!==r.number&&-2147024891==r.number&&(l+="\nSee http://msdn.microsoft.com/en-us/library/ms537505(v=vs.85).aspx#xdomain"),$.console.log("%s while making AJAX request: %s",r.name,l),s.onreadystatechange=function(){},window.XDomainRequest){var u=new window.XDomainRequest;if(u){u.onload=function(e){$.isFunction(t)&&t({responseText:u.responseText,status:200,statusText:"OK"})},u.onerror=function(e){$.isFunction(n)&&n({responseText:u.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{u.open("GET",e),u.send()}catch(e){$.isFunction(n)&&n(s,r)}}}else $.isFunction(n)&&n(s,r)}return s},jsonp:function(e){var t,n=e.url,r=document.head||document.getElementsByTagName("head")[0]||document.documentElement,o=e.callbackName||"openseadragon"+$.now(),i=window[o],a="$1"+o+"$2",s=e.param||"callback",c=e.callback;n=n.replace(/(\=)\?(&|$)|\?\?/i,a),n+=(/\?/.test(n)?"&":"?")+s+"="+o,window[o]=function(e){if(i)window[o]=i;else try{delete window[o]}catch(e){}c&&$.isFunction(c)&&c(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,r&&t.parentNode&&r.removeChild(t),t=void 0)},r.insertBefore(t,r.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(e){if(window.DOMParser)$.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")};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")).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!!FILEFORMATS[(e=e||"").toLowerCase()]}});var nullfunction=function(e){};$.console=window.console||{log:nullfunction,debug:nullfunction,info:nullfunction,warn:nullfunction,error:nullfunction,assert:nullfunction},$.Browser={vendor:$.BROWSERS.UNKNOWN,version:0,alpha:!0};var FILEFORMATS={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},URLPARAMS={};function getOffsetParent(e,t){return t&&e!=document.body?document.body:e.offsetParent}!function(){var e=navigator.appVersion,t=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(t.substring(t.indexOf("MSIE")+5,t.indexOf(";",t.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(t.indexOf("Firefox")>=0?($.Browser.vendor=$.BROWSERS.FIREFOX,$.Browser.version=parseFloat(t.substring(t.indexOf("Firefox")+8))):t.indexOf("Safari")>=0?($.Browser.vendor=t.indexOf("Chrome")>=0?$.BROWSERS.CHROME:$.BROWSERS.SAFARI,$.Browser.version=parseFloat(t.substring(t.substring(0,t.indexOf("Safari")).lastIndexOf("/")+1,t.indexOf("Safari")))):null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(t)&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(RegExp.$1)));break;case"Opera":$.Browser.vendor=$.BROWSERS.OPERA,$.Browser.version=parseFloat(e)}var n,r,o,i=window.location.search.substring(1).split("&");for(o=0;o<i.length;o++)if((r=(n=i[o]).indexOf("="))>0){var a=n.substring(0,r),s=n.substring(r+1);try{URLPARAMS[a]=decodeURIComponent(s)}catch(e){$.console.error("Ignoring malformed URL parameter: %s=%s",a,s)}}$.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)}(),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 r,o=[],i=[],a=0;$.requestAnimationFrame=function(e){return o.push([++a,e]),r||(r=setInterval((function(){if(o.length){var e=$.now(),t=i;for(i=o,o=t;i.length;)i.shift()[1](e)}else clearInterval(r),r=void 0}),20)),a},$.cancelAnimationFrame=function(e){var t,n;for(t=0,n=o.length;t<n;t+=1)if(o[t][0]===e)return void o.splice(t,1);for(t=0,n=i.length;t<n;t+=1)if(i[t][0]===e)return void i.splice(t,1)}}}(window)}(OpenSeadragon),__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){return OpenSeadragon})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),$=OpenSeadragon,fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""},document.exitFullscreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.fullscreenElement},fullScreenApi.requestFullScreen=function(e){return e.requestFullscreen()},fullScreenApi.exitFullScreen=function(){document.exitFullscreen()},fullScreenApi.fullScreenEventName="fullscreenchange",fullScreenApi.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.msFullscreenElement},fullScreenApi.requestFullScreen=function(e){return e.msRequestFullscreen()},fullScreenApi.exitFullScreen=function(){document.msExitFullscreen()},fullScreenApi.fullScreenEventName="MSFullscreenChange",fullScreenApi.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.webkitFullscreenElement},fullScreenApi.requestFullScreen=function(e){return e.webkitRequestFullscreen()},fullScreenApi.exitFullScreen=function(){document.webkitExitFullscreen()},fullScreenApi.fullScreenEventName="webkitfullscreenchange",fullScreenApi.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},fullScreenApi.requestFullScreen=function(e){return e.webkitRequestFullScreen()},fullScreenApi.exitFullScreen=function(){document.webkitCancelFullScreen()},fullScreenApi.fullScreenEventName="webkitfullscreenchange",fullScreenApi.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.mozFullScreenElement},fullScreenApi.requestFullScreen=function(e){return e.mozRequestFullScreen()},fullScreenApi.exitFullScreen=function(){document.mozCancelFullScreen()},fullScreenApi.fullScreenEventName="mozfullscreenchange",fullScreenApi.fullScreenErrorEventName="mozfullscreenerror"),fullScreenApi.isFullScreen=function(){return null!==fullScreenApi.getFullScreenElement()},fullScreenApi.cancelFullScreen=function(){$.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),fullScreenApi.exitFullScreen()},$.extend($,fullScreenApi),function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,n,r){var o=this;r=r||1;var i=0;this.addHandler(e,(function n(a){++i===r&&o.removeHandler(e,n),t(a)}),n)},addHandler:function(t,n,r){var o=this.events[t];o||(this.events[t]=o=[]),n&&e.isFunction(n)&&(o[o.length]={handler:n,userData:r||null})},removeHandler:function(t,n){var r,o=this.events[t],i=[];if(o&&e.isArray(o)){for(r=0;r<o.length;r++)o[r].handler!==n&&i.push(o[r]);this.events[t]=i}},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 r,o=t.length;for(r=0;r<o;r++)t[r]&&(n.eventSource=e,n.userData=t[r].userData,t[r].handler(n))}):null},raiseEvent:function(e,t){var n=this.getHandler(e);n&&(t||(t={}),n(this,t))}}}(OpenSeadragon),function(e){var t,n,r,o,i,a,s=[],c={};function l(t){var n,r=c[t.hash],o=r.activePointersLists.length;for(n=0;n<o;n++)r.activePointersLists[n].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[n].captureCount=0);for(n=0;n<o;n++)r.activePointersLists.pop()}function u(t){var n,r,o=c[t.hash];if(o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)n=e.MouseTracker.subscribeEvents[r],e.removeEvent(t.element,n,o[n],!1);l(t),o.tracking=!1}}function f(t,n){var r=c[t.hash];if("pointerevent"===n)return{upName:e.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",upHandler:r.pointerupcaptured,moveName:e.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",moveHandler:r.pointermovecaptured};if("mouse"===n)return{upName:"mouseup",upHandler:r.mouseupcaptured,moveName:"mousemove",moveHandler:r.mousemovecaptured};if("touch"===n)return{upName:"touchend",upHandler:r.touchendcaptured,moveName:"touchmove",moveHandler:r.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function d(t,n,r){var o,i=t.getActivePointersListByType(n);i.captureCount+=r||1,1===i.captureCount&&(e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?t.element.setCapture(!0):(o=f(t,e.MouseTracker.havePointerEvents?"pointerevent":n),be&&ye(window.top)&&e.addEvent(window.top,o.upName,o.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,o.upName,o.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,o.moveName,o.moveHandler,!0)))}function p(t,n,r){var o,i=t.getActivePointersListByType(n);i.captureCount-=r||1,0===i.captureCount&&(e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?t.element.releaseCapture():(o=f(t,e.MouseTracker.havePointerEvents?"pointerevent":n),be&&ye(window.top)&&e.removeEvent(window.top,o.upName,o.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,o.moveName,o.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,o.upName,o.upHandler,!0)))}function h(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 g(t){return e.getMousePosition(t)}function m(e,t){return v(g(e),t)}function v(t,n){var r=e.getElementOffset(n);return t.minus(r)}function b(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function y(t,n){t.clickHandler&&e.cancelEvent(n)}function w(t,n){t.dblClickHandler&&e.cancelEvent(n)}function O(t,n){t.keyDownHandler&&(n=e.getEvent(n),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})||e.cancelEvent(n))}function E(t,n){t.keyUpHandler&&(n=e.getEvent(n),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})||e.cancelEvent(n))}function x(t,n){t.keyHandler&&(n=e.getEvent(n),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})||e.cancelEvent(n))}function S(t,n){t.focusHandler&&(n=e.getEvent(n),!1===t.focusHandler({eventSource:t,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n))}function j(t,n){t.blurHandler&&(n=e.getEvent(n),!1===t.blurHandler({eventSource:t,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n))}function T(e,t){C(e,t,t)}function _(t,n){var r={target:(n=e.getEvent(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?r.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:r.deltaY=n.detail,C(t,r,n)}function C(t,n,r){var o;o=n.deltaY<0?1:-1,t.scrollHandler&&!1===t.scrollHandler({eventSource:t,pointerType:"mouse",position:m(n,t.element),scroll:o,shift:n.shiftKey,isTouchEvent:!1,originalEvent:r,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(r)}function I(e,t){if(e===t)return!1;for(;t&&t!==e;)t=t.parentNode;return t===e}function P(t,n){R(t,n=e.getEvent(n))}function k(t,n){(n=e.getEvent(n)).currentTarget===n.relatedTarget||I(n.currentTarget,n.relatedTarget)||R(t,n)}function R(t,n){pe(t,n,[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:g(n),currentTime:e.now()}])}function A(t,n){M(t,n=e.getEvent(n))}function D(t,n){(n=e.getEvent(n)).currentTarget===n.relatedTarget||I(n.currentTarget,n.relatedTarget)||M(t,n)}function M(t,n){he(t,n,[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:g(n),currentTime:e.now()}])}function N(t){return e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?1===t?0:2===t?2:4===t?1:-1:t}function L(t,n){ge(t,n=e.getEvent(n),[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:g(n),currentTime:e.now()}],N(n.button))&&(e.stopEvent(n),d(t,"mouse")),(t.clickHandler||t.dblClickHandler||t.pressHandler||t.dragHandler||t.dragEndHandler)&&e.cancelEvent(n)}function z(e,t){B(e,t)}function W(t,n){B(t,n),e.stopEvent(n)}function B(t,n){me(t,n=e.getEvent(n),[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:g(n),currentTime:e.now()}],N(n.button))&&p(t,"mouse")}function F(e,t){U(e,t)}function H(t,n){U(t,n),e.stopEvent(n)}function U(t,n){ve(t,n=e.getEvent(n),[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:g(n),currentTime:e.now()}])}function V(e,t,n){var r,o=n.getLength(),i=[];if("touch"===n.type||n.contacts>0){for(r=0;r<o;r++)i.push(n.getByIndex(r));i.length>0&&(me(e,t,i,0),n.captureCount=1,p(e,n.type),he(e,t,i))}}function G(t,n){var r,o,i,a,c=n.changedTouches.length,l=[],u=t.getActivePointersListByType("touch");for(r=e.now(),u.getLength()>n.touches.length-c&&(e.console.warn("Tracked touch contact count doesn't match event.touches.length. Removing all tracked touch pointers."),V(t,n,u)),o=0;o<c;o++)l.push({id:n.changedTouches[o].identifier,type:"touch",currentPos:g(n.changedTouches[o]),currentTime:r});for(pe(t,n,l),o=0;o<s.length;o++)if(s[o]!==t&&s[o].isTracking()&&I(s[o].element,t.element)){for(a=[],i=0;i<c;i++)a.push({id:n.changedTouches[i].identifier,type:"touch",currentPos:g(n.changedTouches[i]),currentTime:r});pe(s[o],n,a)}ge(t,n,l,0)&&(e.stopEvent(n),d(t,"touch",c)),e.cancelEvent(n)}function q(e,t){K(e,t)}function $(t,n){K(t,n),e.stopEvent(n)}function K(t,n){var r,o,i,a,c=n.changedTouches.length,l=[];for(r=e.now(),o=0;o<c;o++)l.push({id:n.changedTouches[o].identifier,type:"touch",currentPos:g(n.changedTouches[o]),currentTime:r});for(me(t,n,l,0)&&p(t,"touch",c),he(t,n,l),o=0;o<s.length;o++)if(s[o]!==t&&s[o].isTracking()&&I(s[o].element,t.element)){for(a=[],i=0;i<c;i++)a.push({id:n.changedTouches[i].identifier,type:"touch",currentPos:g(n.changedTouches[i]),currentTime:r});he(s[o],n,a)}e.cancelEvent(n)}function Z(e,t){X(e,t)}function Y(t,n){X(t,n),e.stopEvent(n)}function X(t,n){var r,o=n.changedTouches.length,i=[];for(r=0;r<o;r++)i.push({id:n.changedTouches[r].identifier,type:"touch",currentPos:g(n.changedTouches[r]),currentTime:e.now()});ve(t,n,i),e.cancelEvent(n)}function Q(e,t){var n=e.getActivePointersListByType("touch");V(e,t,n)}function J(e,t){return t.stopPropagation(),t.preventDefault(),!1}function ee(e,t){return t.stopPropagation(),t.preventDefault(),!1}function te(t,n){n.currentTarget===n.relatedTarget||I(n.currentTarget,n.relatedTarget)||pe(t,n,[{id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:g(n),currentTime:e.now()}])}function ne(t,n){n.currentTarget===n.relatedTarget||I(n.currentTarget,n.relatedTarget)||he(t,n,[{id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:g(n),currentTime:e.now()}])}function re(t,n){var r;ge(t,n,[r={id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:g(n),currentTime:e.now()}],n.button)&&(e.stopEvent(n),d(t,r.type)),(t.clickHandler||t.dblClickHandler||t.pressHandler||t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.cancelEvent(n)}function oe(e,t){ae(e,t)}function ie(t,n){t.getActivePointersListByType(h(n)).getById(n.pointerId)&&ae(t,n),e.stopEvent(n)}function ae(t,n){var r;me(t,n,[r={id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:g(n),currentTime:e.now()}],n.button)&&p(t,r.type)}function se(e,t){le(e,t)}function ce(t,n){t.getActivePointersListByType(h(n)).getById(n.pointerId)&&le(t,n),e.stopEvent(n)}function le(t,n){ve(t,n,[{id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:g(n),currentTime:e.now()}])}function ue(e,t){!function(e,t,n){me(e,t,n,0),he(e,t,n)}(e,t,[{id:t.pointerId,type:h(t)}])}function fe(e,t){return Object.prototype.hasOwnProperty.call(t,"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 de(e,t){var n,r;return e.getById(t.id)?(n=e.removeById(t.id),Object.prototype.hasOwnProperty.call(t,"isPrimary")||(r=e.getPrimary())||(r=e.getByIndex(0))&&(r.isPrimary=!0)):n=e.getLength(),n}function pe(t,n,r){var o,i,a,s=t.getActivePointersListByType(r[0].type),c=r.length;for(o=0;o<c;o++)i=r[o],(a=s.getById(i.id))?(a.insideElement=!0,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime,i=a):(i.captured=!1,i.insideElementPressed=!1,i.insideElement=!0,fe(s,i)),t.enterHandler&&!1===t.enterHandler({eventSource:t,pointerType:i.type,position:v(i.currentPos,t.element),buttons:s.buttons,pointers:t.getActivePointerCount(),insideElementPressed:i.insideElementPressed,buttonDownAny:0!==s.buttons,isTouchEvent:"touch"===i.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)}function he(t,n,r){var o,i,a,s=t.getActivePointersListByType(r[0].type),c=r.length;for(o=0;o<c;o++)i=r[o],(a=s.getById(i.id))&&(a.captured?(a.insideElement=!1,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime):de(s,a),i=a),t.exitHandler&&!1===t.exitHandler({eventSource:t,pointerType:i.type,position:i.currentPos&&v(i.currentPos,t.element),buttons:s.buttons,pointers:t.getActivePointerCount(),insideElementPressed:!!a&&a.insideElementPressed,buttonDownAny:0!==s.buttons,isTouchEvent:"touch"===i.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)}function ge(t,n,r,o){var i,a,s,l=c[t.hash],u=t.getActivePointersListByType(r[0].type),f=r.length;void 0!==n.buttons?u.buttons=n.buttons:e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?0===o?u.buttons+=1:1===o?u.buttons+=4:2===o?u.buttons+=2:3===o?u.buttons+=8:4===o?u.buttons+=16:5===o&&(u.buttons+=32):0===o?u.buttons|=1:1===o?u.buttons|=4:2===o?u.buttons|=2:3===o?u.buttons|=8:4===o?u.buttons|=16:5===o&&(u.buttons|=32);var d=t.getActivePointersListsExceptType(r[0].type);for(i=0;i<d.length;i++)V(t,n,d[i]);if(0!==o)return t.nonPrimaryPressHandler&&!1===t.nonPrimaryPressHandler({eventSource:t,pointerType:r[0].type,position:v(r[0].currentPos,t.element),button:o,buttons:u.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),!1;for(i=0;i<f;i++)a=r[i],(s=u.getById(a.id))?(s.captured=!0,s.insideElementPressed=!0,s.insideElement=!0,s.contactPos=a.currentPos,s.contactTime=a.currentTime,s.lastPos=s.currentPos,s.lastTime=s.currentTime,s.currentPos=a.currentPos,s.currentTime=a.currentTime,a=s):(a.captured=!0,a.insideElementPressed=!0,a.insideElement=!0,fe(u,a)),u.addContact(),(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,a),1===u.contacts?t.pressHandler&&!1===t.pressHandler({eventSource:t,pointerType:a.type,position:v(a.contactPos,t.element),buttons:u.buttons,isTouchEvent:"touch"===a.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n):2===u.contacts&&t.pinchHandler&&"touch"===a.type&&(l.pinchGPoints=u.asArray(),l.lastPinchDist=l.currentPinchDist=l.pinchGPoints[0].currentPos.distanceTo(l.pinchGPoints[1].currentPos),l.lastPinchCenter=l.currentPinchCenter=b(l.pinchGPoints[0].currentPos,l.pinchGPoints[1].currentPos));return!0}function me(t,n,r,o){var i,a,s,l,u,f,d=c[t.hash],p=t.getActivePointersListByType(r[0].type),h=r.length,g=!1,m=!1;if(void 0!==n.buttons?p.buttons=n.buttons:e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?0===o?p.buttons-=1:1===o?p.buttons-=4:2===o?p.buttons-=2:3===o?p.buttons-=8:4===o?p.buttons-=16:5===o&&(p.buttons-=32):0===o?p.buttons^=-2:1===o?p.buttons^=-5:2===o?p.buttons^=-3:3===o?p.buttons^=-9:4===o?p.buttons^=-17:5===o&&(p.buttons^=-33),0!==o){t.nonPrimaryReleaseHandler&&!1===t.nonPrimaryReleaseHandler({eventSource:t,pointerType:r[0].type,position:v(r[0].currentPos,t.element),button:o,buttons:p.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n);var y=t.getActivePointersListByType("mouse");return V(t,n,y),!1}if(void 0===r[0].currentPos)return V(t,n,p),!1;for(s=0;s<h;s++)l=r[s],(u=p.getById(l.id))&&(u.captured&&(u.captured=!1,g=!0,m=!0),u.lastPos=u.currentPos,u.lastTime=u.currentTime,u.currentPos=l.currentPos,u.currentTime=l.currentTime,u.insideElement||de(p,u),i=u.currentPos,a=u.currentTime,m?(p.removeContact(),(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,u),0===p.contacts?(t.releaseHandler&&!1===t.releaseHandler({eventSource:t,pointerType:u.type,position:v(i,t.element),buttons:p.buttons,insideElementPressed:u.insideElementPressed,insideElementReleased:u.insideElement,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),t.dragEndHandler&&!u.currentPos.equals(u.contactPos)&&!1===t.dragEndHandler({eventSource:t,pointerType:u.type,position:v(u.currentPos,t.element),speed:u.speed,direction:u.direction,shift:n.shiftKey,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),(t.clickHandler||t.dblClickHandler)&&u.insideElement&&(f=a-u.contactTime<=t.clickTimeThreshold&&u.contactPos.distanceTo(i)<=t.clickDistThreshold,t.clickHandler&&!1===t.clickHandler({eventSource:t,pointerType:u.type,position:v(u.currentPos,t.element),quick:f,shift:n.shiftKey,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),t.dblClickHandler&&f&&(p.clicks++,1===p.clicks?(d.lastClickPos=i,d.dblClickTimeOut=setTimeout((function(){p.clicks=0}),t.dblClickTimeThreshold)):2===p.clicks&&(clearTimeout(d.dblClickTimeOut),p.clicks=0,d.lastClickPos.distanceTo(i)<=t.dblClickDistThreshold&&!1===t.dblClickHandler({eventSource:t,pointerType:u.type,position:v(u.currentPos,t.element),shift:n.shiftKey,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),d.lastClickPos=null)))):2===p.contacts&&t.pinchHandler&&"touch"===u.type&&(d.pinchGPoints=p.asArray(),d.lastPinchDist=d.currentPinchDist=d.pinchGPoints[0].currentPos.distanceTo(d.pinchGPoints[1].currentPos),d.lastPinchCenter=d.currentPinchCenter=b(d.pinchGPoints[0].currentPos,d.pinchGPoints[1].currentPos))):t.releaseHandler&&!1===t.releaseHandler({eventSource:t,pointerType:u.type,position:v(i,t.element),buttons:p.buttons,insideElementPressed:u.insideElementPressed,insideElementReleased:u.insideElement,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n));return g}function ve(t,n,r){var o,i,a,s,l,u=c[t.hash],f=t.getActivePointersListByType(r[0].type),d=r.length;for(void 0!==n.buttons&&(f.buttons=n.buttons),o=0;o<d;o++)i=r[o],(a=f.getById(i.id))?(Object.prototype.hasOwnProperty.call(i,"isPrimary")&&(a.isPrimary=i.isPrimary),a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime):(i.captured=!1,i.insideElementPressed=!1,i.insideElement=!0,fe(f,i));t.stopHandler&&"mouse"===r[0].type&&(clearTimeout(t.stopTimeOut),t.stopTimeOut=setTimeout((function(){!function(e,t,n){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:n,position:m(t,e.element),buttons:e.getActivePointersListByType(n).buttons,isTouchEvent:"touch"===n,originalEvent:t,preventDefaultAction:!1,userData:e.userData})}(t,n,r[0].type)}),t.stopDelay)),0===f.contacts?t.moveHandler&&!1===t.moveHandler({eventSource:t,pointerType:r[0].type,position:v(r[0].currentPos,t.element),buttons:f.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n):1===f.contacts?(t.moveHandler&&(a=f.asArray()[0],!1===t.moveHandler({eventSource:t,pointerType:a.type,position:v(a.currentPos,t.element),buttons:f.buttons,isTouchEvent:"touch"===a.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)),t.dragHandler&&(l=(a=f.asArray()[0]).currentPos.minus(a.lastPos),!1===t.dragHandler({eventSource:t,pointerType:a.type,position:v(a.currentPos,t.element),buttons:f.buttons,delta:l,speed:a.speed,direction:a.direction,shift:n.shiftKey,isTouchEvent:"touch"===a.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n))):2===f.contacts&&(t.moveHandler&&(s=f.asArray(),!1===t.moveHandler({eventSource:t,pointerType:s[0].type,position:v(b(s[0].currentPos,s[1].currentPos),t.element),buttons:f.buttons,isTouchEvent:"touch"===s[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)),t.pinchHandler&&"touch"===r[0].type&&(l=u.pinchGPoints[0].currentPos.distanceTo(u.pinchGPoints[1].currentPos))!=u.currentPinchDist&&(u.lastPinchDist=u.currentPinchDist,u.currentPinchDist=l,u.lastPinchCenter=u.currentPinchCenter,u.currentPinchCenter=b(u.pinchGPoints[0].currentPos,u.pinchGPoints[1].currentPos),!1===t.pinchHandler({eventSource:t,pointerType:"touch",gesturePoints:u.pinchGPoints,lastCenter:v(u.lastPinchCenter,t.element),center:v(u.currentPinchCenter,t.element),lastDistance:u.lastPinchDist,distance:u.currentPinchDist,shift:n.shiftKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)))}e.MouseTracker=function(t){s.push(this);var n=arguments;e.isPlainObject(t)||(t={element:n[0],clickTimeThreshold:n[1],clickDistThreshold:n[2]}),this.hash=Math.random(),this.element=e.getElement(t.element),this.clickTimeThreshold=t.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=t.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=t.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=t.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=t.userData||null,this.stopDelay=t.stopDelay||50,this.enterHandler=t.enterHandler||null,this.exitHandler=t.exitHandler||null,this.pressHandler=t.pressHandler||null,this.nonPrimaryPressHandler=t.nonPrimaryPressHandler||null,this.releaseHandler=t.releaseHandler||null,this.nonPrimaryReleaseHandler=t.nonPrimaryReleaseHandler||null,this.moveHandler=t.moveHandler||null,this.scrollHandler=t.scrollHandler||null,this.clickHandler=t.clickHandler||null,this.dblClickHandler=t.dblClickHandler||null,this.dragHandler=t.dragHandler||null,this.dragEndHandler=t.dragEndHandler||null,this.pinchHandler=t.pinchHandler||null,this.stopHandler=t.stopHandler||null,this.keyDownHandler=t.keyDownHandler||null,this.keyUpHandler=t.keyUpHandler||null,this.keyHandler=t.keyHandler||null,this.focusHandler=t.focusHandler||null,this.blurHandler=t.blurHandler||null;var r=this;c[this.hash]={click:function(e){y(r,e)},dblclick:function(e){w(r,e)},keydown:function(e){O(r,e)},keyup:function(e){E(r,e)},keypress:function(e){x(r,e)},focus:function(e){S(r,e)},blur:function(e){j(r,e)},wheel:function(e){T(r,e)},mousewheel:function(e){_(r,e)},DOMMouseScroll:function(e){_(r,e)},MozMousePixelScroll:function(e){_(r,e)},mouseenter:function(e){P(r,e)},mouseleave:function(e){A(r,e)},mouseover:function(e){k(r,e)},mouseout:function(e){D(r,e)},mousedown:function(e){L(r,e)},mouseup:function(e){z(r,e)},mouseupcaptured:function(e){W(r,e)},mousemove:function(e){F(r,e)},mousemovecaptured:function(e){H(r,e)},touchstart:function(e){G(r,e)},touchend:function(e){q(r,e)},touchendcaptured:function(e){$(r,e)},touchmove:function(e){Z(r,e)},touchmovecaptured:function(e){Y(r,e)},touchcancel:function(e){Q(r,e)},gesturestart:function(e){J(r,e)},gesturechange:function(e){ee(r,e)},pointerover:function(e){te(r,e)},MSPointerOver:function(e){te(r,e)},pointerout:function(e){ne(r,e)},MSPointerOut:function(e){ne(r,e)},pointerdown:function(e){re(r,e)},MSPointerDown:function(e){re(r,e)},pointerup:function(e){oe(r,e)},MSPointerUp:function(e){oe(r,e)},pointermove:function(e){se(r,e)},MSPointerMove:function(e){se(r,e)},pointercancel:function(e){ue(r,e)},MSPointerCancel:function(e){ue(r,e)},pointerupcaptured:function(e){ie(r,e)},pointermovecaptured:function(e){ce(r,e)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null},t.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(u(this),this.element=null,e=0;e<s.length;e++)if(s[e]===this){s.splice(e,1);break}c[this.hash]=null,delete c[this.hash]},isTracking:function(){return c[this.hash].tracking},setTracking:function(t){return t?function(t){var n,r,o=c[t.hash];if(!o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)n=e.MouseTracker.subscribeEvents[r],e.addEvent(t.element,n,o[n],!1);l(t),o.tracking=!0}}(this):u(this),this},getActivePointersListsExceptType:function(e){for(var t=c[this.hash],n=[],r=0;r<t.activePointersLists.length;++r)t.activePointersLists[r].type!==e&&n.push(t.activePointersLists[r]);return n},getActivePointersListByType:function(t){var n,r,o=c[this.hash],i=o.activePointersLists.length;for(n=0;n<i;n++)if(o.activePointersLists[n].type===t)return o.activePointersLists[n];return r=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(r),r},getActivePointerCount:function(){var e,t=c[this.hash],n=t.activePointersLists.length,r=0;for(e=0;e<n;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<s.length;e++)s[e].isTracking()&&(s[e].setTracking(!1),s[e].setTracking(!0))},e.MouseTracker.gesturePointVelocityTracker=(t=[],n=0,r=0,o=function(e,t){return e.hash.toString()+t.type+t.id.toString()},i=function(){var n,o,i,a,s,c,l=t.length,u=e.now();for(a=u-r,r=u,n=0;n<l;n++)(i=(o=t[n]).gPoint).direction=Math.atan2(i.currentPos.y-o.lastPos.y,i.currentPos.x-o.lastPos.x),s=o.lastPos.distanceTo(i.currentPos),o.lastPos=i.currentPos,c=1e3*s/(a+1),i.speed=.75*c+.25*i.speed},{addPoint:function(a,s){var c=o(a,s);t.push({guid:c,gPoint:s,lastPos:s.currentPos}),1===t.length&&(r=e.now(),n=window.setInterval(i,50))},removePoint:function(e,r){var i,a=o(e,r),s=t.length;for(i=0;i<s;i++)if(t[i].guid===a){t.splice(i,1),0==--s&&window.clearInterval(n);break}}}),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=(a=document.createElement("div"),e.isFunction(a.setCapture)&&e.isFunction(a.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 be=function(){try{return window.self!==window.top}catch(e){return!0}}();function ye(e){try{return e.addEventListener&&e.removeEventListener}catch(e){return!1}}}(OpenSeadragon),function(e){e.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},e.Control=function(t,n,r){var o=t.parentNode;"number"==typeof n&&(e.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead.  Support for this deprecated variant is scheduled for removal in December 2013"),n={anchor:n}),n.attachToViewer=void 0===n.attachToViewer||n.attachToViewer,this.autoFade=void 0===n.autoFade||n.autoFade,this.element=t,this.anchor=n.anchor,this.container=r,this.anchor==e.ControlAnchor.ABSOLUTE?(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top="number"==typeof n.top?n.top+"px":n.top,this.wrapper.style.left="number"==typeof n.left?n.left+"px":n.left,this.wrapper.style.height="number"==typeof n.height?n.height+"px":n.height,this.wrapper.style.width="number"==typeof n.width?n.width+"px":n.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor==e.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),n.attachToViewer?this.anchor==e.ControlAnchor.TOP_RIGHT||this.anchor==e.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):o.appendChild(this.wrapper)},e.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!=this.wrapper.style.display},setVisible:function(t){this.wrapper.style.display=t?this.anchor==e.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(t){this.element[e.SIGNAL]&&e.Browser.vendor==e.BROWSERS.IE?e.setElementOpacity(this.element,t,!0):e.setElementOpacity(this.wrapper,t,!0)}}}(OpenSeadragon),function(e){function t(e,t){var n,r=e.controls;for(n=r.length-1;n>=0;n--)if(r[n].element==t)return n;return-1}e.ControlDock=function(t){var n,r,o=["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%"),r=0;r<o.length;r++)n=o[r],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,r){var o=null;if(!(t(this,n=e.getElement(n))>=0)){switch(r.anchor){case e.ControlAnchor.TOP_RIGHT:o=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:o=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:o=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:o=this.controls.topleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:default:case e.ControlAnchor.NONE:o=this.container,n.style.margin="0px",n.style.padding="0px"}this.controls.push(new e.Control(n,r,o)),n.style.display="inline-block"}},removeControl:function(n){var r=t(this,n=e.getElement(n));return r>=0&&(this.controls[r].destroy(),this.controls.splice(r,1)),this},clearControls:function(){for(;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),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),function(e){var t={},n=1;function r(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function o(t,n){if(n instanceof e.Overlay)return n;var r=null;if(n.element)r=e.getElement(n.element);else{var o=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());(r=e.getElement(n.id))||((r=document.createElement("a")).href="#/overlay/"+o),r.id=o,e.addClass(r,n.className?n.className:"openseadragon-overlay")}var i=n.location,a=n.width,s=n.height;if(!i){var c=n.x,l=n.y;if(void 0!==n.px){var u=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,a||0,s||0));c=u.x,l=u.y,a=void 0!==a?u.width:void 0,s=void 0!==s?u.height:void 0}i=new e.Point(c,l)}var f=n.placement;return f&&"string"===e.type(f)&&(f=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:r,location:i,placement:f,onDraw:n.onDraw,checkResize:n.checkResize,width:a,height:s,rotationMode:n.rotationMode})}function i(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 s(t){e.requestAnimationFrame((function(){!function(t){var n,r;if(t.controlsShouldFade){for(n=1-(e.now()-t.controlsFadeBeginTime)/t.controlsFadeLength,n=Math.min(1,n),n=Math.max(0,n),r=t.controls.length-1;r>=0;r--)t.controls[r].autoFade&&t.controls[r].setOpacity(n);n>0&&s(t)}}(t)}))}function c(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){s(t)}),t.controlsFadeDelay))}function l(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function u(){l(this)}function f(){c(this)}function d(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 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 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 h(e){var t;document.activeElement==this.canvas||this.canvas.focus(),this.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.raiseEvent("canvas-click",n),!n.preventDefaultAction&&this.viewport&&e.quick&&(t=this.gestureSettingsByDeviceType(e.pointerType)).clickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints())}function g(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)).dblClickToZoom&&(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,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 r=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=r.x,this.viewport.centerSpringY.target.value+=r.y;var o=this.viewport.getBounds(),i=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=r.x,this.viewport.centerSpringY.target.value-=r.y,o.x!=i.x&&(e.delta.x=0),o.y!=i.y&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),t.flickEnabled&&!this.constrainDuringPan)}}function v(t){if(!t.preventDefaultAction&&this.viewport){var n=this.gestureSettingsByDeviceType(t.pointerType);if(n.flickEnabled&&t.speed>=n.flickMinSpeed){var r=0;this.panHorizontal&&(r=n.flickMomentum*t.speed*Math.cos(t.direction));var o=0;this.panVertical&&(o=n.flickMomentum*t.speed*Math.sin(t.direction));var i=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),a=this.viewport.pointFromPixel(new e.Point(i.x-r,i.y-o));this.viewport.panTo(a,!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 b(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 y(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 w(e){this.raiseEvent("canvas-press",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function O(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function E(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 x(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 S(e){var t,n,r;if(!e.preventDefaultAction&&this.viewport&&((t=this.gestureSettingsByDeviceType(e.pointerType)).pinchToZoom&&(n=this.viewport.pointFromPixel(e.center,!0),r=this.viewport.pointFromPixel(e.lastCenter,!0).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),i=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-i)*(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 j(t){var n,r,o;if((o=e.now())-this._lastScrollTime>this.minScrollDeltaTime){if(this._lastScrollTime=o,this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),!t.preventDefaultAction&&this.viewport&&(n=this.gestureSettingsByDeviceType(t.pointerType)).scrollToZoom&&(r=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(r,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.scrollToZoom)return!1}function T(e){t[this.hash].mouseInside=!0,l(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 _(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 C(e){!function(e){if(e._opening)return;if(e.autoResize){var n=r(e.container),o=t[e.hash].prevContainerSize;if(!n.equals(o)){var i=e.viewport;if(e.preserveImageSizeOnResize){var a=o.x/n.x,s=i.getZoom()*a,u=i.getCenter();i.resize(n,!1),i.zoomTo(s,null,!0),i.panTo(u,!0)}else{var f=i.getBounds();i.resize(n,!0),i.fitBoundsWithConstraints(f,!0)}t[e.hash].prevContainerSize=n,t[e.hash].forceRedraw=!0}}var d=e.viewport.update(),p=e.world.update()||d;d&&e.raiseEvent("viewport-change");e.referenceStrip&&(p=e.referenceStrip.update(e.viewport)||p);!t[e.hash].animating&&p&&(e.raiseEvent("animation-start"),l(e));(p||t[e.hash].forceRedraw||e.world.needsDraw())&&(!function(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}(e),e._drawOverlays(),e.navigator&&e.navigator.update(e.viewport),t[e.hash].forceRedraw=!1,p&&e.raiseEvent("animation"));t[e.hash].animating&&!p&&(e.raiseEvent("animation-finish"),t[e.hash].mouseInside||c(e));t[e.hash].animating=p}(e),e.isOpen()?e._updateRequestId=a(e,C):e._updateRequestId=!1}function I(e,t){return e?e+t:t}function P(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,A(this)}function k(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,A(this)}function R(){t[this.hash].zooming=!1}function A(t){e.requestAnimationFrame(e.delegate(t,D))}function D(){var n,r,o;t[this.hash].zooming&&this.viewport&&(r=(n=e.now())-t[this.hash].lastZoomTime,o=Math.pow(t[this.hash].zoomFactor,r/1e3),this.viewport.zoomBy(o),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,A(this))}function M(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function N(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function L(){this.buttons.emulateEnter(),this.buttons.emulateExit()}function z(){this.viewport&&this.viewport.goHome()}function W(){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 B(){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 F(){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 H(){this.viewport.toggleFlip()}function U(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)}function V(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)}e.Viewer=function(o){var i,s,l=arguments,u=this;if(e.isPlainObject(o)||(o={id:l[0],xmlPath:l.length>1?l[1]:void 0,prefixUrl:l.length>2?l[2]:void 0,controls:l.length>3?l[3]:void 0,overlays:l.length>4?l[4]:void 0}),o.config&&(e.extend(!0,o,o.config),delete o.config),e.extend(!0,this,{id:o.id,hash:o.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,o),void 0===this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(void 0!==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);u._showMessage(n)})),e.ControlDock.call(this,o),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",(s=this.canvas.style).width="100%",s.height="100%",s.overflow="hidden",s.position="absolute",s.top="0px",s.left="0px",e.setElementTouchActionNone(this.canvas),""!==o.tabIndex&&(this.canvas.tabIndex=void 0===o.tabIndex?0:o.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,d),keyHandler:e.delegate(this,p),clickHandler:e.delegate(this,h),dblClickHandler:e.delegate(this,g),dragHandler:e.delegate(this,m),dragEndHandler:e.delegate(this,v),enterHandler:e.delegate(this,b),exitHandler:e.delegate(this,y),pressHandler:e.delegate(this,w),releaseHandler:e.delegate(this,O),nonPrimaryPressHandler:e.delegate(this,E),nonPrimaryReleaseHandler:e.delegate(this,x),scrollHandler:e.delegate(this,j),pinchHandler:e.delegate(this,S)}),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,T),exitHandler:e.delegate(this,_)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=r(this.container),this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){u.source=u.world.getItemAt(0).source,t[u.hash].forceRedraw=!0,u._updateRequestId||(u._updateRequestId=a(u,C))})),this.world.addHandler("remove-item",(function(e){u.world.getItemCount()?u.source=u.world.getItemAt(0).source:u.source=null,t[u.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){u.viewport&&u.viewport._setContentBounds(u.world.getHomeBounds(),u.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){u.source=u.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:o.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&&(i=this.buttons.buttons.indexOf(this.rotateLeft),this.buttons.buttons.splice(i,1),this.buttons.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(i=this.buttons.buttons.indexOf(this.rotateRight),this.buttons.buttons.splice(i,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),i=0;i<this.customControls.length;i++)this.addControl(this.customControls[i].id,{anchor:this.customControls[i].anchor});e.requestAnimationFrame((function(){c(u)})),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 r=this;if(this.close(),t){if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),void 0===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 i,a=t.length,s=0,c=0,l=function(){if(s+c===a)if(s){!r._firstOpen&&r.preserveViewport||(r.viewport.goHome(!0),r.viewport.update()),r._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),r.overlays&&!r.preserveOverlays)for(var n=0;n<r.overlays.length;n++)r.currentOverlays[n]=o(r,r.overlays[n]);r._drawOverlays(),r._opening=!1,r.raiseEvent("open",{source:e})}else r._opening=!1,r.raiseEvent("open-failed",i)},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(s++,t.tileSource.overlays)for(var o=0;o<t.tileSource.overlays.length;o++)r.addOverlay(t.tileSource.overlays[o]);n&&n(e),l()};var o=t.error;t.error=function(e){c++,i||(i=e),o&&o(e),l()},r.addTiledImage(t)},f=0;f<t.length;f++)u(t[f]);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)for(;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?l(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 r,o,i=document.body,a=i.style,s=document.documentElement.style,c=this;if(n==this.isFullPage())return this;var l={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",l),l.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=a.margin,this.docMargin=s.margin,a.margin="0",s.margin="0",this.bodyPadding=a.padding,this.docPadding=s.padding,a.padding="0",s.padding="0",this.bodyWidth=a.width,this.docWidth=s.width,a.width="100%",s.width="100%",this.bodyHeight=a.height,this.docHeight=s.height,a.height="100%",s.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,r=i.childNodes.length,o=0;o<r;o++)this.previousBody.push(i.childNodes[0]),i.removeChild(i.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,i.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),i.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,T)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,a.margin=this.bodyMargin,s.margin=this.docMargin,a.padding=this.bodyPadding,s.padding=this.docPadding,a.width=this.bodyWidth,s.width=this.docWidth,a.height=this.bodyHeight,s.height=this.docHeight,i.removeChild(this.element),r=this.previousBody.length,o=0;o<r;o++)i.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&&(i.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;e.requestAnimationFrame((function t(){e.setPageScroll(c.pageScroll);var n=e.getPageScroll();++u<10&&(n.x!==c.pageScroll.x||n.y!==c.pageScroll.y)&&e.requestAnimationFrame(t)})),t[this.hash].fullPage=!1,e.delegate(this,_)({})}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 r={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",r),r.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 o=function t(){var r=e.isFullScreen();r||(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:r})};e.addEvent(document,e.fullScreenEventName,o),e.addEvent(document,e.fullScreenErrorEventName,o),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 r={options:t};function o(e){for(var o=0;o<n._loadQueue.length;o++)if(n._loadQueue[o]===r){n._loadQueue.splice(o,1);break}0===n._loadQueue.length&&i(r),n.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function i(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(){for(var t,r,o;n._loadQueue.length&&(t=n._loadQueue[0]).tileSource;){if(n._loadQueue.splice(0,1),t.options.replace){var a=n.world.getIndexOfItem(t.options.replaceItem);-1!=a&&(t.options.index=a),n.world.removeItem(t.options.replaceItem)}r=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(r,{index:t.options.index}),0===n._loadQueue.length&&i(t),1!==n.world.getItemCount()||n.preserveViewport||n.viewport.goHome(!0),n.navigator&&(o=e.extend({},t.options,{replace:!1,originalTiledImage:r,tileSource:t.tileSource}),n.navigator.addTiledImage(o)),t.options.success&&t.options.success({item:r})}}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(r),function(t,n,r,o,i){var a=t;if("string"==e.type(n))if(n.match(/^\s*<.*>\s*$/))n=e.parseXml(n);else if(n.match(/^\s*[\{\[].*[\}\]]\s*$/))try{var s=e.parseJSON(n);n=s}catch(e){}function c(e,t){e.ready?o(e):(e.addHandler("ready",(function(){o(e)})),e.addHandler("open-failed",(function(e){i({message:e.message,source:t})})))}setTimeout((function(){if("string"==e.type(n))(n=new e.TileSource({url:n,crossOriginPolicy:void 0!==r.crossOriginPolicy?r.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:t.ajaxHeaders,useCanvas:t.useCanvas,success:function(e){o(e.tileSource)}})).addHandler("open-failed",(function(e){i(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===r.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==r.crossOriginPolicy?r.crossOriginPolicy:t.crossOriginPolicy),void 0===n.ajaxWithCredentials&&(n.ajaxWithCredentials=t.ajaxWithCredentials),void 0===n.useCanvas&&(n.useCanvas=t.useCanvas),e.isFunction(n.getTileUrl)){var s=new e.TileSource(n);s.getTileUrl=n.getTileUrl,o(s)}else{var l=e.TileSource.determineType(a,n);if(!l)return void i({message:"Unable to load TileSource",source:n});var u=l.prototype.configure.apply(a,[n]);c(new l(u),n)}else c(n,n)}))}(this,t.tileSource,t,(function(e){r.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 r=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(r),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,u),n=e.delegate(this,f),r=e.delegate(this,V),o=e.delegate(this,U),i=this.navImages,a=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(a=!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:I(this.prefixUrl,i.previous.REST),srcGroup:I(this.prefixUrl,i.previous.GROUP),srcHover:I(this.prefixUrl,i.previous.HOVER),srcDown:I(this.prefixUrl,i.previous.DOWN),onRelease:o,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:I(this.prefixUrl,i.next.REST),srcGroup:I(this.prefixUrl,i.next.GROUP),srcHover:I(this.prefixUrl,i.next.HOVER),srcDown:I(this.prefixUrl,i.next.DOWN),onRelease:r,onFocus:t,onBlur:n}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),a&&(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,P),n=e.delegate(this,R),r=e.delegate(this,M),o=e.delegate(this,k),i=e.delegate(this,N),a=e.delegate(this,z),s=e.delegate(this,W),c=e.delegate(this,B),l=e.delegate(this,F),d=e.delegate(this,H),p=e.delegate(this,u),h=e.delegate(this,f),g=this.navImages,m=[],v=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(v=!1),this.showZoomControl&&(m.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:I(this.prefixUrl,g.zoomIn.REST),srcGroup:I(this.prefixUrl,g.zoomIn.GROUP),srcHover:I(this.prefixUrl,g.zoomIn.HOVER),srcDown:I(this.prefixUrl,g.zoomIn.DOWN),onPress:t,onRelease:n,onClick:r,onEnter:t,onExit:n,onFocus:p,onBlur:h})),m.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:I(this.prefixUrl,g.zoomOut.REST),srcGroup:I(this.prefixUrl,g.zoomOut.GROUP),srcHover:I(this.prefixUrl,g.zoomOut.HOVER),srcDown:I(this.prefixUrl,g.zoomOut.DOWN),onPress:o,onRelease:n,onClick:i,onEnter:o,onExit:n,onFocus:p,onBlur:h}))),this.showHomeControl&&m.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:I(this.prefixUrl,g.home.REST),srcGroup:I(this.prefixUrl,g.home.GROUP),srcHover:I(this.prefixUrl,g.home.HOVER),srcDown:I(this.prefixUrl,g.home.DOWN),onRelease:a,onFocus:p,onBlur:h})),this.showFullPageControl&&m.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:I(this.prefixUrl,g.fullpage.REST),srcGroup:I(this.prefixUrl,g.fullpage.GROUP),srcHover:I(this.prefixUrl,g.fullpage.HOVER),srcDown:I(this.prefixUrl,g.fullpage.DOWN),onRelease:s,onFocus:p,onBlur:h})),this.showRotationControl&&(m.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:I(this.prefixUrl,g.rotateleft.REST),srcGroup:I(this.prefixUrl,g.rotateleft.GROUP),srcHover:I(this.prefixUrl,g.rotateleft.HOVER),srcDown:I(this.prefixUrl,g.rotateleft.DOWN),onRelease:c,onFocus:p,onBlur:h})),m.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:I(this.prefixUrl,g.rotateright.REST),srcGroup:I(this.prefixUrl,g.rotateright.GROUP),srcHover:I(this.prefixUrl,g.rotateright.HOVER),srcDown:I(this.prefixUrl,g.rotateright.DOWN),onRelease:l,onFocus:p,onBlur:h}))),this.showFlipControl&&m.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:I(this.prefixUrl,g.flip.REST),srcGroup:I(this.prefixUrl,g.flip.GROUP),srcHover:I(this.prefixUrl,g.flip.HOVER),srcDown:I(this.prefixUrl,g.flip.DOWN),onRelease:d,onFocus:p,onBlur:h})),v&&(this.buttons=new e.ButtonGroup({buttons:m,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttons.element,this.addHandler("open",e.delegate(this,L)),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,r,a){var s;if(s=e.isPlainObject(t)?t:{element:t,location:n,placement:r,onDraw:a},t=e.getElement(s.element),i(this.currentOverlays,t)>=0)return this;var c=o(this,s);return this.currentOverlays.push(c),c.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:s.location,placement:s.placement}),this},updateOverlay:function(n,r,o){var a;return n=e.getElement(n),(a=i(this.currentOverlays,n))>=0&&(this.currentOverlays[a].update(r,o),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:r,placement:o})),this},removeOverlay:function(n){var r;return n=e.getElement(n),(r=i(this.currentOverlays,n))>=0&&(this.currentOverlays[r].destroy(),this.currentOverlays.splice(r,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:n})),this},clearOverlays:function(){for(;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=i(this.currentOverlays,t))>=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,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')}})}(OpenSeadragon),function(e){function t(e){var t={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};if(this.viewer.raiseEvent("navigator-click",t),!t.preventDefaultAction&&e.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n=this.viewport.pointFromPixel(e.position);this.panVertical?this.panHorizontal||(n.x=this.viewer.viewport.getCenter(!0).x):n.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(n),this.viewer.viewport.applyConstraints()}}function n(e){var t={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.viewer.raiseEvent("navigator-drag",t),!t.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewer.viewport.flipped&&(e.delta.x=-e.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function r(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function o(e){return this.viewer.raiseEvent("navigator-scroll",{tracker:e.eventSource,position:e.position,scroll:e.scroll,shift:e.shift,originalEvent:e.originalEvent}),!1}function i(e,t){a(e,"rotate("+t+"deg)")}function a(e,t){e.style.webkitTransform=t,e.style.mozTransform=t,e.style.msTransform=t,e.style.oTransform=t,e.style.transform=t}e.Navigator=function(a){var s,c,l,u,f=a.viewer,d=this;function p(e){i(d.displayRegionContainer,e),i(d.displayRegion,-e),d.viewport.setRotation(e)}(a.id?(this.element=document.getElementById(a.id),a.controlOptions={anchor:e.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(a.id="navigator-"+e.now(),this.element=e.makeNeutralElement("div"),a.controlOptions={anchor:e.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:a.autoFade},a.position&&("BOTTOM_RIGHT"==a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_RIGHT:"BOTTOM_LEFT"==a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_LEFT:"TOP_RIGHT"==a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_RIGHT:"TOP_LEFT"==a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_LEFT:"ABSOLUTE"==a.position&&(a.controlOptions.anchor=e.ControlAnchor.ABSOLUTE,a.controlOptions.top=a.top,a.controlOptions.left=a.left,a.controlOptions.height=a.height,a.controlOptions.width=a.width))),this.element.id=a.id,this.element.className+=" navigator",(a=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.navigatorSizeRatio},a,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,autoResize:a.autoResize,minZoomImageRatio:1,background:a.background,opacity:a.opacity,borderColor:a.borderColor,displayRegionColor:a.displayRegionColor})).minPixelRatio=this.minPixelRatio=f.minPixelRatio,e.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new e.Point(1,1),this.totalBorderWidths=new e.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge),a.controlOptions.anchor!=e.ControlAnchor.NONE&&(l=this.element.style,u=this.borderWidth,l.margin="0px",l.border=u+"px solid "+a.borderColor,l.padding="0px",l.background=a.background,l.opacity=a.opacity,l.overflow="hidden"),this.displayRegion=e.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(e,t){e.position="relative",e.top="0px",e.left="0px",e.fontSize="0px",e.overflow="hidden",e.border=t+"px solid "+a.displayRegionColor,e.margin="0px",e.padding="0px",e.background="transparent",e.float="left",e.cssFloat="left",e.styleFloat="left",e.zIndex=999999999,e.cursor="default"}(this.displayRegion.style,this.borderWidth),this.displayRegionContainer=e.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",f.addControl(this.element,a.controlOptions),this._resizeWithViewer=a.controlOptions.anchor!=e.ControlAnchor.ABSOLUTE&&a.controlOptions.anchor!=e.ControlAnchor.NONE,a.width&&a.height?(this.setWidth(a.width),this.setHeight(a.height)):this._resizeWithViewer&&(s=e.getElementSize(f.element),this.element.style.height=Math.round(s.y*a.sizeRatio)+"px",this.element.style.width=Math.round(s.x*a.sizeRatio)+"px",this.oldViewerSize=s,c=e.getElementSize(this.element),this.elementArea=c.x*c.y),this.oldContainerSize=new e.Point(0,0),e.Viewer.apply(this,[a]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer),a.navigatorRotate)&&(p(a.viewer.viewport?a.viewer.viewport.getRotation():a.viewer.degrees||0),a.viewer.addHandler("rotate",(function(e){p(e.degrees)})));this.innerTracker.destroy(),this.innerTracker=new e.MouseTracker({element:this.element,dragHandler:e.delegate(this,n),clickHandler:e.delegate(this,t),releaseHandler:e.delegate(this,r),scrollHandler:e.delegate(this,o)}),this.addHandler("reset-size",(function(){d.viewport&&d.viewport.goHome(!0)})),f.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=d.world.getItemAt(e.previousIndex);d.world.setItemIndex(t,e.newIndex)}),1)})),f.world.addHandler("remove-item",(function(e){var t=e.item,n=d._getMatchingItem(t);n&&d.world.removeItem(n)})),this.update(f.viewport)},e.extend(e.Navigator.prototype,e.EventSource.prototype,e.Viewer.prototype,{updateSize:function(){if(this.viewport){var t=new e.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);t.equals(this.oldContainerSize)||(this.viewport.resize(t,!0),this.viewport.goHome(!0),this.oldContainerSize=t,this.drawer.clear(),this.world.draw())}},setWidth:function(e){this.width=e,this.element.style.width="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setHeight:function(e){this.height=e,this.element.style.height="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setFlip:function(e){return this.viewport.setFlip(e),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(e){a(this.displayRegion,e),a(this.canvas,e),a(this.element,e)},update:function(t){var n,r,o,i,a,s;if(n=e.getElementSize(this.viewer.element),this._resizeWithViewer&&n.x&&n.y&&!n.equals(this.oldViewerSize)&&(this.oldViewerSize=n,this.maintainSizeRatio||!this.elementArea?(r=n.x*this.sizeRatio,o=n.y*this.sizeRatio):(r=Math.sqrt(this.elementArea*(n.x/n.y)),o=this.elementArea/r),this.element.style.width=Math.round(r)+"px",this.element.style.height=Math.round(o)+"px",this.elementArea||(this.elementArea=r*o),this.updateSize()),t&&this.viewport){i=t.getBoundsNoRotate(!0),a=this.viewport.pixelFromPointNoRotate(i.getTopLeft(),!1),s=this.viewport.pixelFromPointNoRotate(i.getBottomRight(),!1).minus(this.totalBorderWidths);var c=this.displayRegion.style;c.display=this.world.getItemCount()?"block":"none",c.top=Math.round(a.y)+"px",c.left=Math.round(a.x)+"px";var l=Math.abs(a.x-s.x),u=Math.abs(a.y-s.y);c.width=Math.round(Math.max(l,0))+"px",c.height=Math.round(Math.max(u,0))+"px"}},addTiledImage:function(t){var n=this,r=t.originalTiledImage;delete t.original;var o=e.extend({},t,{success:function(e){var t=e.item;function o(){n._matchBounds(t,r)}t._originalForNavigator=r,n._matchBounds(t,r,!0),r.addHandler("bounds-change",o),r.addHandler("clip-change",o),r.addHandler("opacity-change",(function(){n._matchOpacity(t,r)})),r.addHandler("composite-operation-change",(function(){n._matchCompositeOperation(t,r)}))}});return e.Viewer.prototype.addTiledImage.apply(this,[o])},_getMatchingItem:function(e){for(var t,n=this.world.getItemCount(),r=0;r<n;r++)if((t=this.world.getItemAt(r))._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,n){var r=t.getBoundsNoRotate();e.setPosition(r.getTopLeft(),n),e.setWidth(r.width,n),e.setRotation(t.getRotation(),n),e.setClip(t.getClip())},_matchOpacity:function(e,t){e.setOpacity(t.opacity)},_matchCompositeOperation:function(e,t){e.setCompositeOperation(t.compositeOperation)}})}(OpenSeadragon),function(e){var t={Errors:{Dzc:"Sorry, we don't support Deep Zoom Collections!",Dzi:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",Xml:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",ImageFormat:"Sorry, we don't support {0}-based Deep Zoom Images.",Security:"It looks like a security restriction stopped us from loading this Deep Zoom Image.",Status:"This space unintentionally left blank ({0} {1}).",OpenFailed:"Unable to open {0}: {1}"},Tooltips:{FullPage:"Toggle full page",Home:"Go home",ZoomIn:"Zoom in",ZoomOut:"Zoom out",NextPage:"Next page",PreviousPage:"Previous page",RotateLeft:"Rotate left",RotateRight:"Rotate right",Flip:"Flip Horizontally"}};e.extend(e,{getString:function(n){var r,o=n.split("."),i=null,a=arguments,s=t;for(r=0;r<o.length-1;r++)s=s[o[r]]||{};return"string"!=typeof(i=s[o[r]])&&(e.console.log("Untranslated source string:",n),i=""),i.replace(/\{\d+\}/g,(function(e){var t=parseInt(e.match(/\d+/),10)+1;return t<a.length?a[t]:""}))},setString:function(e,n){var r,o=e.split("."),i=t;for(r=0;r<o.length-1;r++)i[o[r]]||(i[o[r]]={}),i=i[o[r]];i[o[r]]=n}})}(OpenSeadragon),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 r,o;if(n=n||new e.Point(0,0),t%90==0){switch(e.positiveModulo(t,360)){case 0:r=1,o=0;break;case 90:r=0,o=1;break;case 180:r=-1,o=0;break;case 270:r=0,o=-1}}else{var i=t*Math.PI/180;r=Math.cos(i),o=Math.sin(i)}var a=r*(this.x-n.x)-o*(this.y-n.y)+n.x,s=o*(this.x-n.x)+r*(this.y-n.y)+n.y;return new e.Point(a,s)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}}(OpenSeadragon),function(e){e.TileSource=function(t,n,r,o,i,a){var s,c,l=this,u=arguments;if(s=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,s),!this.success)for(c=0;c<arguments.length;c++)if(e.isFunction(arguments[c])){this.success=arguments[c];break}this.success&&this.addHandler("ready",(function(e){l.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=s.width&&s.height?s.width/s.height:1,this.dimensions=new e.Point(s.width,s.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=s.tileOverlap?s.tileOverlap:0,this.minLevel=s.minLevel?s.minLevel:0,this.maxLevel=void 0!==s.maxLevel&&null!==s.maxLevel?s.maxLevel:s.width&&s.height?Math.ceil(Math.log(Math.max(s.width,s.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),r=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),o=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(r,o)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),r=1/n.x,o=1/n.y;return new e.Point(r,o)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel&&!((t=this.getNumTiles(e)).x>1||t.y>1);e++);return e-1},getTileAtPoint:function(t,n){var r=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(r,"[TileSource.getTileAtPoint] must be called with a valid point.");var o=this.dimensions.x*this.getLevelScale(t),i=n.x*o,a=n.y*o,s=Math.floor(i/this.getTileWidth(t)),c=Math.floor(a/this.getTileHeight(t));n.x>=1&&(s=this.getNumTiles(t).x-1);return n.y>=1/this.aspectRatio-1e-15&&(c=this.getNumTiles(t).y-1),new e.Point(s,c)},getTileBounds:function(t,n,r,o){var i=this.dimensions.times(this.getLevelScale(t)),a=this.getTileWidth(t),s=this.getTileHeight(t),c=0===n?0:a*n-this.tileOverlap,l=0===r?0:s*r-this.tileOverlap,u=a+(0===n?1:2)*this.tileOverlap,f=s+(0===r?1:2)*this.tileOverlap,d=1/i.x;return u=Math.min(u,i.x-c),f=Math.min(f,i.y-l),o?new e.Rect(0,0,u,f):new e.Rect(c*d,l*d,u*d,f*d)},getImageInfo:function(t){var n,r,o,i,a,s,c,l=this;t&&(c=(s=(a=t.split("/"))[a.length-1]).lastIndexOf("."))>-1&&(a[a.length-1]=s.slice(0,c)),r=function(n){"string"==typeof n&&(n=e.parseXml(n));var r=e.TileSource.determineType(l,n,t);r?(void 0===(i=r.prototype.configure.apply(l,[n,t])).ajaxWithCredentials&&(i.ajaxWithCredentials=l.ajaxWithCredentials),o=new r(i),l.ready=!0,l.raiseEvent("ready",{tileSource:o})):l.raiseEvent("open-failed",{message:"Unable to load TileSource",source:t})},t.match(/\.js$/)?(n=t.split("/").pop().replace(".js",""),e.jsonp({url:t,async:!1,callbackName:n,callback:r})):e.makeAjaxRequest({url:t,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(t){var n=function(t){var n,r,o=t.responseText,i=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw n=404==(i=t.status)?"Not Found":t.statusText,new Error(e.getString("Errors.Status",i,n));if(o.match(/\s*<.*/))try{r=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(o)}catch(e){r=t.responseText}else if(o.match(/\s*[\{\[].*/))try{r=e.parseJSON(o)}catch(e){r=o}else r=o;return r}(t);r(n)},error:function(e,n){var r;try{r="HTTP "+e.status+" attempting to load TileSource"}catch(e){r=(void 0!==n&&n.toString?n.toString():"Unknown error")+" attempting to load TileSource"}l.raiseEvent("open-failed",{message:r,source:t})}})},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 r=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<r.x&&n<r.y}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,n,r){var o;for(o in OpenSeadragon)if(o.match(/.+TileSource$/)&&e.isFunction(OpenSeadragon[o])&&e.isFunction(OpenSeadragon[o].prototype.supports)&&OpenSeadragon[o].prototype.supports.call(t,n,r))return OpenSeadragon[o];e.console.error("No TileSource was able to open %s %s",r,n)}}(OpenSeadragon),function(e){function t(t,n){var r,o,i=n.Image,a=i.Url,s=i.Format,c=i.Size,l=i.DisplayRect||[],u=parseInt(c.Width,10),f=parseInt(c.Height,10),d=parseInt(i.TileSize,10),p=parseInt(i.Overlap,10),h=[];for(o=0;o<l.length;o++)r=l[o].Rect,h.push(new e.DisplayRect(parseInt(r.X,10),parseInt(r.Y,10),parseInt(r.Width,10),parseInt(r.Height,10),parseInt(r.MinLevel,10),parseInt(r.MaxLevel,10)));return e.extend(!0,{width:u,height:f,tileSize:d,tileOverlap:p,minLevel:null,maxLevel:null,tilesUrl:a,fileFormat:s,displayRects:h},n)}e.DziTileSource=function(t,n,r,o,i,a,s,c,l){var u,f,d,p;if(p=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4],fileFormat:arguments[5],displayRects:arguments[6],minLevel:arguments[7],maxLevel:arguments[8]},this._levelRects={},this.tilesUrl=p.tilesUrl,this.fileFormat=p.fileFormat,this.displayRects=p.displayRects,this.displayRects)for(u=this.displayRects.length-1;u>=0;u--)for(d=(f=this.displayRects[u]).minLevel;d<=f.maxLevel;d++)this._levelRects[d]||(this._levelRects[d]=[]),this._levelRects[d].push(f);e.TileSource.apply(this,[p])},e.extend(e.DziTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){var n;return e.Image?n=e.Image.xmlns:e.documentElement&&("Image"!=e.documentElement.localName&&"Image"!=e.documentElement.tagName||(n=e.documentElement.namespaceURI)),-1!==(n=(n||"").toLowerCase()).indexOf("schemas.microsoft.com/deepzoom/2008")||-1!==n.indexOf("schemas.microsoft.com/deepzoom/2009")},configure:function(n,r){var o;return o=e.isPlainObject(n)?t(this,n):function(n,r){if(!r||!r.documentElement)throw new Error(e.getString("Errors.Xml"));var o,i,a,s,c,l=r.documentElement,u=l.localName||l.tagName,f=r.documentElement.namespaceURI,d=null,p=[];if("Image"==u)try{if(void 0===(s=l.getElementsByTagName("Size")[0])&&(s=l.getElementsByTagNameNS(f,"Size")[0]),d={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:l.getAttribute("Url"),Format:l.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(l.getAttribute("Overlap"),10),TileSize:parseInt(l.getAttribute("TileSize"),10),Size:{Height:parseInt(s.getAttribute("Height"),10),Width:parseInt(s.getAttribute("Width"),10)}}},!e.imageFormatSupported(d.Image.Format))throw new Error(e.getString("Errors.ImageFormat",d.Image.Format.toUpperCase()));for(void 0===(o=l.getElementsByTagName("DisplayRect"))&&(o=l.getElementsByTagNameNS(f,"DisplayRect")[0]),c=0;c<o.length;c++)void 0===(a=(i=o[c]).getElementsByTagName("Rect")[0])&&(a=i.getElementsByTagNameNS(f,"Rect")[0]),p.push({Rect:{X:parseInt(a.getAttribute("X"),10),Y:parseInt(a.getAttribute("Y"),10),Width:parseInt(a.getAttribute("Width"),10),Height:parseInt(a.getAttribute("Height"),10),MinLevel:parseInt(i.getAttribute("MinLevel"),10),MaxLevel:parseInt(i.getAttribute("MaxLevel"),10)}});return p.length&&(d.Image.DisplayRect=p),t(n,d)}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.Dzi"))}else{if("Collection"==u)throw new Error(e.getString("Errors.Dzc"));if("Error"==u){var h=l.getElementsByTagName("Message")[0].firstChild.nodeValue;throw new Error(h)}}throw new Error(e.getString("Errors.Dzi"))}(this,n),r&&!o.tilesUrl&&(o.tilesUrl=r.replace(/([^\/]+?)(\.(dzi|xml|js)?(\?[^\/]*)?)?\/?$/,"$1_files/"),-1!=r.search(/\.(dzi|xml|js)\?/)?o.queryParams=r.match(/\?.*/):o.queryParams=""),o},getTileUrl:function(e,t,n){return[this.tilesUrl,e,"/",t,"_",n,".",this.fileFormat,this.queryParams].join("")},tileExists:function(e,t,n){var r,o,i,a,s,c,l,u=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!u||!u.length)return!0;for(l=u.length-1;l>=0;l--)if(!(e<(r=u[l]).minLevel||e>r.maxLevel)&&(o=this.getLevelScale(e),i=r.x*o,a=r.y*o,s=i+r.width*o,c=a+r.height*o,i=Math.floor(i/this._tileWidth),a=Math.floor(a/this._tileWidth),s=Math.ceil(s/this._tileWidth),c=Math.ceil(c/this._tileWidth),i<=t&&t<s&&a<=n&&n<c))return!0;return!1}})}(OpenSeadragon),function(e){function t(e){var t=Array.isArray(e.profile)?e.profile[0]:e.profile,n=-1!==["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","level0","https://iiif.io/api/image/3/level0.json"].indexOf(t),r=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(r=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(r=-1!==e.extraFeatures.indexOf("sizeByWh")),!n||r}function n(e){for(var t=[],n=0;n<e.sizes.length;n++)t.push({url:e["@id"]+"/full/"+e.sizes[n].width+","+(3===e.version?e.sizes[n].height:"")+"/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 r(t,n,o){var i,a;if(3==t.nodeType&&o)(a=t.nodeValue.trim()).match(/^\d*$/)&&(a=Number(a)),n[o]?(e.isArray(n[o])||(n[o]=[n[o]]),n[o].push(a)):n[o]=a;else if(1==t.nodeType)for(i=0;i<t.childNodes.length;i++)r(t.childNodes[i],n,t.nodeName)}e.IIIFTileSource=function(r){if(e.extend(!0,this,r),!(this.height&&this.width&&this["@id"]))throw new Error("IIIF required parameters not provided.");if(r.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=r.version,this.tile_width&&this.tile_height)r.tileWidth=this.tile_width,r.tileHeight=this.tile_height;else if(this.tile_width)r.tileSize=this.tile_width;else if(this.tile_height)r.tileSize=this.tile_height;else if(this.tiles)if(1==this.tiles.length)r.tileWidth=this.tiles[0].width,r.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var o=0;o<this.tiles.length;o++)for(var i=0;i<this.tiles[o].scaleFactors.length;i++){var a=this.tiles[o].scaleFactors[i];this.scale_factors.push(a),r.tileSizePerScaleFactor[a]={width:this.tiles[o].width,height:this.tiles[o].height||this.tiles[o].width}}}else if(t(r)){for(var s=Math.min(this.height,this.width),c=[256,512,1024],l=[],u=0;u<c.length;u++)c[u]<=s&&l.push(c[u]);l.length>0?r.tileSize=Math.max.apply(null,l):r.tileSize=s}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,r.levels=n(this),e.extend(!0,r,{width:r.levels[r.levels.length-1].width,height:r.levels[r.levels.length-1].height,tileSize:Math.max(r.height,r.width),tileOverlap:0,minLevel:0,maxLevel:r.levels.length-1}),this.levels=r.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!r.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var f=Math.max.apply(null,this.scale_factors);r.maxLevel=Math.round(Math.log(f)*Math.LOG2E)}else r.maxLevel=Number(Math.ceil(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[r])},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"]){var o=t["@context"];if(Array.isArray(o))for(var i=0;i<o.length;i++)if("string"==typeof o[i]&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(o[i])||"http://library.stanford.edu/iiif/image-api/1.1/context.json"===o[i])){o=o[i];break}switch(o){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":t.version=1;break;case"http://iiif.io/api/image/2/context.json":t.version=2;break;case"http://iiif.io/api/image/3/context.json":t.version=3;break;default:e.console.error("Data has a @context property which contains no known IIIF context URI.")}}else t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=n.replace("/info.json",""),t.version=1;if(!t["@id"]&&t.id&&(t["@id"]=t.id),t.preferredFormats)for(var a=0;a<t.preferredFormats.length;a++)if(OpenSeadragon.imageFormatSupported(t.preferredFormats[a])){t.tileFormat=t.preferredFormats[a];break}return t}var s=function(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,o=n.tagName,i=null;if("info"==o)try{return r(n,i={}),i}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}(t);return s["@context"]="http://iiif.io/api/image/1.0/context.json",s["@id"]=n.replace("/info.xml",""),s.version=1,s},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){return this.emulateLegacyImagePyramid?this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0):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 r=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r}var o,i,a,s,c,l,u,f,d,p,h,g,m,v=Math.pow(.5,this.maxLevel-e),b=Math.ceil(this.width*v),y=Math.ceil(this.height*v);return o=this.getTileWidth(e),i=this.getTileHeight(e),a=Math.ceil(o/v),s=Math.ceil(i/v),m=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,b<o&&y<i?(p=2===this.version&&b===this.width||3===this.version&&b===this.width&&y===this.height?"max":3===this.version?b+","+y:b+",",c="full"):(l=t*a,u=n*s,f=Math.min(a,this.width-l),d=Math.min(s,this.height-u),c=0===t&&0===n&&f===this.width&&d===this.height?"full":[l,u,f,d].join(","),h=Math.ceil(f*v),g=Math.ceil(d*v),p=2===this.version&&h===this.width||3===this.version&&h===this.width&&g===this.height?"max":3===this.version?h+","+g:h+","),[this["@id"],c,p,"0",m].join("/")},__testonly__:{canBeTiled:t,constructLevels:n}})}(OpenSeadragon),function(e){e.OsmTileSource=function(t,n,r,o,i){var a;(a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]}).width&&a.height||(a.width=65572864,a.height=65572864),a.tileSize||(a.tileSize=256,a.tileOverlap=0),a.tilesUrl||(a.tilesUrl="http://tile.openstreetmap.org/"),a.minLevel=8,e.TileSource.apply(this,[a])},e.extend(e.OsmTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"openstreetmaps"==e.type},configure:function(e,t){return e},getTileUrl:function(e,t,n){return this.tilesUrl+(e-8)+"/"+t+"/"+n+".png"}})}(OpenSeadragon),function(e){e.TmsTileSource=function(t,n,r,o,i){var a;a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var s,c=256*Math.ceil(a.width/256),l=256*Math.ceil(a.height/256);s=c>l?c/256:l/256,a.maxLevel=Math.ceil(Math.log(s)/Math.log(2))-1,a.tileSize=256,a.width=c,a.height=l,e.TileSource.apply(this,[a])},e.extend(e.TmsTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"tiledmapservice"==e.type},configure:function(e,t){return e},getTileUrl:function(e,t,n){var r=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(r-n)+".png"}})}(OpenSeadragon),function(e){e.ZoomifyTileSource=function(e){e.tileSize=256;var t={x:e.width,y:e.height};for(e.imageSizes=[{x:e.width,y:e.height}],e.gridSize=[this._getGridSize(e.width,e.height,e.tileSize)];parseInt(t.x,10)>e.tileSize||parseInt(t.y,10)>e.tileSize;)t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),e.imageSizes.push({x:t.x,y:t.y}),e.gridSize.push(this._getGridSize(t.x,t.y,e.tileSize));e.imageSizes.reverse(),e.gridSize.reverse(),e.minLevel=0,e.maxLevel=e.gridSize.length-1,OpenSeadragon.TileSource.apply(this,[e])},e.extend(e.ZoomifyTileSource.prototype,e.TileSource.prototype,{_getGridSize:function(e,t,n){return{x:Math.ceil(e/n),y:Math.ceil(t/n)}},_calculateAbsoluteTileNumber:function(e,t,n){for(var r=0,o={},i=0;i<e;i++)r+=(o=this.gridSize[i]).x*o.y;return r+=(o=this.gridSize[e]).x*n+t},supports:function(e,t){return e.type&&"zoomifytileservice"==e.type},configure:function(e,t){return e},getTileUrl:function(e,t,n){var r,o=this._calculateAbsoluteTileNumber(e,t,n);return r=Math.floor(o/256),this.tilesUrl+"TileGroup"+r+"/"+e+"-"+t+"-"+n+".jpg"}})}(OpenSeadragon),function(e){function t(e,t){return t.levels}e.LegacyTileSource=function(t){var n,r,o;e.isArray(t)&&(n={type:"legacy-image-pyramid",levels:t}),n.levels=function(t){var n,r,o=[];for(r=0;r<t.length;r++)(n=t[r]).height&&n.width&&n.url?o.push({url:n.url,width:Number(n.width),height:Number(n.height)}):e.console.error("Unsupported image format: %s",n.url?n.url:"<no URL>");return o.sort((function(e,t){return e.height-t.height}))}(n.levels),n.levels.length>0?(r=n.levels[n.levels.length-1].width,o=n.levels[n.levels.length-1].height):(r=0,o=0,e.console.error("No supported image formats found")),e.extend(!0,n,{width:r,height:o,tileSize:Math.max(o,r),tileOverlap:0,minLevel:0,maxLevel:n.levels.length>0?n.levels.length-1:0}),e.TileSource.apply(this,[n]),this.levels=n.levels},e.extend(e.LegacyTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"legacy-image-pyramid"==e.type||e.documentElement&&"legacy-image-pyramid"==e.documentElement.getAttribute("type")},configure:function(n,r){return e.isPlainObject(n)?t(this,n):function(n,r){if(!r||!r.documentElement)throw new Error(e.getString("Errors.Xml"));var o,i,a=r.documentElement,s=a.tagName,c=null,l=[];if("image"==s)try{for(c={type:a.getAttribute("type"),levels:[]},l=a.getElementsByTagName("level"),i=0;i<l.length;i++)o=l[i],c.levels.push({url:o.getAttribute("url"),width:parseInt(o.getAttribute("width"),10),height:parseInt(o.getAttribute("height"),10)});return t(n,c)}catch(e){throw e instanceof Error?e:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if("collection"==s)throw new Error("Legacy Image Pyramid Collections not yet supported.");if("error"==s)throw new Error("Error: "+r)}throw new Error("Unknown element "+s)}(this,n)},getLevelScale:function(e){var t=NaN;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var r=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r}})}(OpenSeadragon),function(e){e.ImageTileSource=function(t){t=e.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},t),e.TileSource.apply(this,[t])},e.extend(e.ImageTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"image"===e.type},configure:function(e,t){return e},getImageInfo:function(t){var n=this._image=new Image,r=this;this.crossOriginPolicy&&(n.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(n.useCredentials=this.ajaxWithCredentials),e.addEvent(n,"load",(function(){r.width=Object.prototype.hasOwnProperty.call(n,"naturalWidth")?n.naturalWidth:n.width,r.height=Object.prototype.hasOwnProperty.call(n,"naturalHeight")?n.naturalHeight:n.height,r.aspectRatio=r.width/r.height,r.dimensions=new e.Point(r.width,r.height),r._tileWidth=r.width,r._tileHeight=r.height,r.tileOverlap=0,r.minLevel=0,r.levels=r._buildLevels(),r.maxLevel=r.levels.length-1,r.ready=!0,r.raiseEvent("ready",{tileSource:r})})),e.addEvent(n,"error",(function(){r.raiseEvent("open-failed",{message:"Error loading image at "+t,source:t})})),n.src=t},getLevelScale:function(e){var t=NaN;return e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var r=null;return e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r},getContext2D:function(e,t,n){var r=null;return e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].context2D),r},_buildLevels:function(){var t=[{url:this._image.src,width:Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,height:Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height}];if(!this.buildPyramid||!e.supportsCanvas||!this.useCanvas)return delete this._image,t;var n=Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,r=Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height,o=document.createElement("canvas"),i=o.getContext("2d");if(o.width=n,o.height=r,i.drawImage(this._image,0,0,n,r),t[0].context2D=i,delete this._image,e.isCanvasTainted(o))return t;for(;n>=2&&r>=2;){n=Math.floor(n/2),r=Math.floor(r/2);var a=document.createElement("canvas"),s=a.getContext("2d");a.width=n,a.height=r,s.drawImage(o,0,0,n,r),t.splice(0,0,{context2D:s,width:n,height:r}),o=a,i=s}return t}})}(OpenSeadragon),function(e){e.TileSourceCollection=function(t,n,r,o){e.console.error("TileSourceCollection is deprecated; use World instead")}}(OpenSeadragon),function(e){function t(n){e.requestAnimationFrame((function(){!function(n){var r;n.shouldFade&&(r=1-(e.now()-n.fadeBeginTime)/n.fadeLength,r=Math.min(1,r),r=Math.max(0,r),n.imgGroup&&e.setElementOpacity(n.imgGroup,r,!0),r>0&&t(n))}(n)}))}function n(t,n){t.element.disabled||(n>=e.ButtonState.GROUP&&t.currentState==e.ButtonState.REST&&(!function(t){t.shouldFade=!1,t.imgGroup&&e.setElementOpacity(t.imgGroup,1,!0)}(t),t.currentState=e.ButtonState.GROUP),n>=e.ButtonState.HOVER&&t.currentState==e.ButtonState.GROUP&&(t.imgHover&&(t.imgHover.style.visibility=""),t.currentState=e.ButtonState.HOVER),n>=e.ButtonState.DOWN&&t.currentState==e.ButtonState.HOVER&&(t.imgDown&&(t.imgDown.style.visibility=""),t.currentState=e.ButtonState.DOWN))}function r(n,r){n.element.disabled||(r<=e.ButtonState.HOVER&&n.currentState==e.ButtonState.DOWN&&(n.imgDown&&(n.imgDown.style.visibility="hidden"),n.currentState=e.ButtonState.HOVER),r<=e.ButtonState.GROUP&&n.currentState==e.ButtonState.HOVER&&(n.imgHover&&(n.imgHover.style.visibility="hidden"),n.currentState=e.ButtonState.GROUP),r<=e.ButtonState.REST&&n.currentState==e.ButtonState.GROUP&&(!function(n){n.shouldFade=!0,n.fadeBeginTime=e.now()+n.fadeDelay,window.setTimeout((function(){t(n)}),n.fadeDelay)}(n),n.currentState=e.ButtonState.REST))}e.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},e.Button=function(t){var o=this;e.EventSource.call(this),e.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null},t),this.element=t.element||e.makeNeutralElement("div"),t.element||(this.imgRest=e.makeTransparentImage(this.srcRest),this.imgGroup=e.makeTransparentImage(this.srcGroup),this.imgHover=e.makeTransparentImage(this.srcHover),this.imgDown=e.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,this.element.style.position="relative",e.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",e.Browser.vendor==e.BROWSERS.FIREFOX&&e.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=e.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new e.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(t){t.insideElementPressed?(n(o,e.ButtonState.DOWN),o.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||n(o,e.ButtonState.HOVER)},focusHandler:function(e){this.enterHandler(e),o.raiseEvent("focus",{originalEvent:e.originalEvent})},exitHandler:function(t){r(o,e.ButtonState.GROUP),t.insideElementPressed&&o.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){this.exitHandler(e),o.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){n(o,e.ButtonState.DOWN),o.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(r(o,e.ButtonState.HOVER),o.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?r(o,e.ButtonState.GROUP):n(o,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&o.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){return 13!==e.keyCode||(o.raiseEvent("click",{originalEvent:e.originalEvent}),o.raiseEvent("release",{originalEvent:e.originalEvent}),!1)}}),r(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){n(this,e.ButtonState.GROUP)},notifyGroupExit:function(){r(this,e.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,e.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,e.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()}})}(OpenSeadragon),function(e){e.ButtonGroup=function(t){e.extend(!0,this,{buttons:[],clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},t);var n,r=this.buttons.concat([]),o=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",n=0;n<r.length;n++)this.element.appendChild(r[n].element);e.setElementTouchActionNone(this.element),this.tracker=new e.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(e){var t;for(t=0;t<o.buttons.length;t++)o.buttons[t].notifyGroupEnter()},exitHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<o.buttons.length;t++)o.buttons[t].notifyGroupExit()}})},e.ButtonGroup.prototype={emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateExit:function(){this.tracker.exitHandler({eventSource:this.tracker})}}}(OpenSeadragon),function(e){e.Rect=function(t,n,r,o,i){var a,s;this.x="number"==typeof t?t:0,this.y="number"==typeof n?n:0,this.width="number"==typeof r?r:0,this.height="number"==typeof o?o:0,this.degrees="number"==typeof i?i:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(a=this.getTopRight(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=270):this.degrees>=180?(a=this.getBottomRight(),this.x=a.x,this.y=a.y,this.degrees-=180):this.degrees>=90&&(a=this.getBottomLeft(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=90)},e.Rect.fromSummits=function(t,n,r){var o=t.distanceTo(n),i=t.distanceTo(r),a=n.minus(t),s=Math.atan(a.y/a.x);return a.x<0?s+=Math.PI:a.y<0&&(s+=2*Math.PI),new e.Rect(t.x,t.y,o,i,s/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(),r=t.getBoundingBox(),o=Math.min(n.x,r.x),i=Math.min(n.y,r.y),a=Math.max(n.x+n.width,r.x+r.width),s=Math.max(n.y+n.height,r.y+r.height);return new e.Rect(o,i,a-o,s-i)},intersection:function(t){var n=1e-10,r=[],o=this.getTopLeft();t.containsPoint(o,n)&&r.push(o);var i=this.getTopRight();t.containsPoint(i,n)&&r.push(i);var a=this.getBottomLeft();t.containsPoint(a,n)&&r.push(a);var s=this.getBottomRight();t.containsPoint(s,n)&&r.push(s);var c=t.getTopLeft();this.containsPoint(c,n)&&r.push(c);var l=t.getTopRight();this.containsPoint(l,n)&&r.push(l);var u=t.getBottomLeft();this.containsPoint(u,n)&&r.push(u);var f=t.getBottomRight();this.containsPoint(f,n)&&r.push(f);for(var d=this._getSegments(),p=t._getSegments(),h=0;h<d.length;h++)for(var g=d[h],m=0;m<p.length;m++){var v=p[m],b=y(g[0],g[1],v[0],v[1]);b&&r.push(b)}function y(t,r,o,i){var a=r.minus(t),s=i.minus(o),c=-s.x*a.y+a.x*s.y;if(0===c)return null;var l=(a.x*(t.y-o.y)-a.y*(t.x-o.x))/c,u=(s.x*(t.y-o.y)-s.y*(t.x-o.x))/c;return-1e-10<=l&&l<=1-n&&-1e-10<=u&&u<=1-n?new e.Point(t.x+u*a.x,t.y+u*a.y):null}if(0===r.length)return null;for(var w=r[0].x,O=r[0].x,E=r[0].y,x=r[0].y,S=1;S<r.length;S++){var j=r[S];j.x<w&&(w=j.x),j.x>O&&(O=j.x),j.y<E&&(E=j.y),j.y>x&&(x=j.y)}return new e.Rect(w,E,O-w,x-E)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),r=this.getBottomRight();return[[e,t],[t,r],[r,n],[n,e]]},rotate:function(t,n){if(0===(t=e.positiveModulo(t,360)))return this.clone();n=n||this.getCenter();var r=this.getTopLeft().rotate(t,n),o=this.getTopRight().rotate(t,n).minus(r);o=o.apply((function(e){return Math.abs(e)<1e-15?0:e}));var i=Math.atan(o.y/o.x);return o.x<0?i+=Math.PI:o.y<0&&(i+=2*Math.PI),new e.Rect(r.x,r.y,this.width,this.height,i/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),n=this.getTopRight(),r=this.getBottomLeft(),o=this.getBottomRight(),i=Math.min(t.x,n.x,r.x,o.x),a=Math.max(t.x,n.x,r.x,o.x),s=Math.min(t.y,n.y,r.y,o.y),c=Math.max(t.y,n.y,r.y,o.y);return new e.Rect(i,s,a-i,c-s)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),r=Math.floor(t.y),o=Math.ceil(t.width+t.x-n),i=Math.ceil(t.height+t.y-r);return new e.Rect(n,r,o,i)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),r=this.getTopRight(),o=this.getBottomLeft(),i=r.minus(n),a=o.minus(n);return(e.x-n.x)*i.x+(e.y-n.y)*i.y>=-t&&(e.x-r.x)*i.x+(e.y-r.y)*i.y<=t&&(e.x-n.x)*a.x+(e.y-n.y)*a.y>=-t&&(e.x-o.x)*a.x+(e.y-o.y)*a.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),function(e){var t={};function n(t){var n=Number(this.element.style.marginLeft.replace("px","")),r=Number(this.element.style.marginTop.replace("px","")),i=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);return this.dragging=!0,this.element&&("horizontal"==this.scroll?-t.delta.x>0?n>-(i-s.x)&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.x<0&&n<0&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.y>0?r>-(a-s.y)&&(this.element.style.marginTop=r+2*t.delta.y+"px",o(this,s.y,r+2*t.delta.y)):-t.delta.y<0&&r<0&&(this.element.style.marginTop=r+2*t.delta.y+"px",o(this,s.y,r+2*t.delta.y))),!1}function r(t){var n=Number(this.element.style.marginLeft.replace("px","")),r=Number(this.element.style.marginTop.replace("px","")),i=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);return this.element&&("horizontal"==this.scroll?t.scroll>0?n>-(i-s.x)&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0&&n<0&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0?r>s.y-a&&(this.element.style.marginTop=r+60*t.scroll+"px",o(this,s.y,r+60*t.scroll)):t.scroll>0&&r<0&&(this.element.style.marginTop=r+60*t.scroll+"px",o(this,s.y,r+60*t.scroll))),!1}function o(t,n,r){var o,i,a,s,c,l,u;for(o="horizontal"==t.scroll?t.panelWidth:t.panelHeight,i=Math.ceil(n/o)+5,l=i=(i=(a=Math.ceil((Math.abs(r)+n)/o)+1)-i)<0?0:i;l<a&&l<t.panels.length;l++)if(!(u=t.panels[l]).activePanel){var f,d=t.viewer.tileSources[l];f=d.referenceStripThumbnailUrl?{type:"image",url:d.referenceStripThumbnailUrl}:d,(s=new e.Viewer({id:u.id,tileSources:[f],element:u,navigatorSizeRatio:t.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:t.viewer.loadTilesWithAjax,ajaxHeaders:t.viewer.ajaxHeaders,useCanvas:t.useCanvas})).displayRegion=e.makeNeutralElement("div"),s.displayRegion.id=u.id+"-displayregion",s.displayRegion.className="displayregion",(c=s.displayRegion.style).position="relative",c.top="0px",c.left="0px",c.fontSize="0px",c.overflow="hidden",c.float="left",c.cssFloat="left",c.styleFloat="left",c.zIndex=999999999,c.cursor="default",c.width=t.panelWidth-4+"px",c.height=t.panelHeight-4+"px",s.displayRegion.innerTracker=new e.MouseTracker({element:s.displayRegion,startDisabled:!0}),u.getElementsByTagName("div")[0].appendChild(s.displayRegion),t.miniViewers[u.id]=s,u.activePanel=!0}}function i(e){var t=e.eventSource.element;return"horizontal"==this.scroll?t.style.marginBottom="0px":t.style.marginLeft="0px",!1}function a(t){var n=t.eventSource.element;return"horizontal"==this.scroll?n.style.marginBottom="-"+e.getElementSize(n).y/2+"px":n.style.marginLeft="-"+e.getElementSize(n).x/2+"px",!1}function s(e){if(e.preventDefaultAction||e.ctrl||e.alt||e.meta)return!0;switch(e.keyCode){case 38:case 39:return r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 40:case 37:return r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;default:return!0}}function c(e){if(e.preventDefaultAction||e.ctrl||e.alt||e.meta)return!0;switch(e.keyCode){case 61:case 48:case 119:case 87:case 100:return r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 45:case 115:case 83:case 97:return r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;default:return!0}}e.ReferenceStrip=function(l){var u,f,d,p=l.viewer,h=e.getElementSize(p.element);for(l.id||(l.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=l.id,this.element.className="referencestrip"),l=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},l,{element:this.element,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1}),e.extend(this,l),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,(f=this.element.style).marginTop="0px",f.marginRight="0px",f.marginBottom="0px",f.marginLeft="0px",f.left="0px",f.bottom="0px",f.border="0px",f.background="#000",f.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=p,this.innerTracker=new e.MouseTracker({element:this.element,dragHandler:e.delegate(this,n),scrollHandler:e.delegate(this,r),enterHandler:e.delegate(this,i),exitHandler:e.delegate(this,a),keyDownHandler:e.delegate(this,s),keyHandler:e.delegate(this,c)}),l.width&&l.height?(this.element.style.width=l.width+"px",this.element.style.height=l.height+"px",p.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"==l.scroll?(this.element.style.width=h.x*l.sizeRatio*p.tileSources.length+12*p.tileSources.length+"px",this.element.style.height=h.y*l.sizeRatio+"px",p.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=h.y*l.sizeRatio*p.tileSources.length+12*p.tileSources.length+"px",this.element.style.width=h.x*l.sizeRatio+"px",p.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=h.x*this.sizeRatio+8,this.panelHeight=h.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},d=0;d<p.tileSources.length;d++)(u=e.makeNeutralElement("div")).id=this.element.id+"-"+d,u.style.width=this.panelWidth+"px",u.style.height=this.panelHeight+"px",u.style.display="inline",u.style.float="left",u.style.cssFloat="left",u.style.styleFloat="left",u.style.padding="2px",e.setElementTouchActionNone(u),u.innerTracker=new e.MouseTracker({element:u,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,pressHandler:function(t){t.eventSource.dragging=e.now()},releaseHandler:function(t){var n=t.eventSource,r=n.element.id,o=Number(r.split("-")[2]),i=e.now();t.insideElementPressed&&t.insideElementReleased&&n.dragging&&i-n.dragging<n.clickTimeThreshold&&(n.dragging=null,p.goToPage(o))}}),this.element.appendChild(u),u.activePanel=!1,this.panels.push(u);o(this,"vertical"==this.scroll?h.y:h.x,0),this.setFocus(0)},e.extend(e.ReferenceStrip.prototype,e.EventSource.prototype,e.Viewer.prototype,{setFocus:function(t){var n,r=this.element.querySelector("#"+this.element.id+"-"+t),a=e.getElementSize(this.viewer.canvas),s=Number(this.element.style.width.replace("px","")),c=Number(this.element.style.height.replace("px","")),l=-Number(this.element.style.marginLeft.replace("px","")),u=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==r&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=r,this.currentSelected.style.background="#999","horizontal"==this.scroll?(n=Number(t)*(this.panelWidth+3))>l+a.x-this.panelWidth?(n=Math.min(n,s-a.x),this.element.style.marginLeft=-n+"px",o(this,a.x,-n)):n<l&&(n=Math.max(0,n-a.x/2),this.element.style.marginLeft=-n+"px",o(this,a.x,-n)):(n=Number(t)*(this.panelHeight+3))>u+a.y-this.panelHeight?(n=Math.min(n,c-a.y),this.element.style.marginTop=-n+"px",o(this,a.y,-n)):n<u&&(n=Math.max(0,n-a.y/2),this.element.style.marginTop=-n+"px",o(this,a.y,-n)),this.currentPage=t,i.call(this,{eventSource:this.innerTracker}))},update:function(){return!!t[this.id].animating&&(e.console.log("image reference strip update"),!0)},destroy:function(){if(this.miniViewers)for(var e in this.miniViewers)this.miniViewers[e].destroy();this.element&&this.element.parentNode.removeChild(this.element)}})}(OpenSeadragon),function(e){e.DisplayRect=function(t,n,r,o,i,a){e.Rect.apply(this,[t,n,r,o]),this.minLevel=i,this.maxLevel=a},e.extend(e.DisplayRect.prototype,e.Rect.prototype)}(OpenSeadragon),function(e){e.Spring=function(t){var n=arguments;"object"!=typeof 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 t,n;this.current.time=e.now(),this._exponential?(t=this.start._logValue,n=this.target._logValue):(t=this.start.value,n=this.target.value);var r,o,i=this.current.time>=this.target.time?n:t+(n-t)*(r=this.springStiffness,o=(this.current.time-this.start.time)/(this.target.time-this.start.time),(1-Math.exp(r*-o))/(1-Math.exp(-r))),a=this.current.value;return this._exponential?this.current.value=Math.exp(i):this.current.value=i,a!=this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(OpenSeadragon),function(e){function t(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null},t),this.image=null}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(t){var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===t.name&&r){var o=new r;o.append(e.response),n=o.getBlob()}}0===n.size&&(t.errorMsg="Empty image response.",t.finish(!1));var i=(window.URL||window.webkitURL).createObjectURL(n);t.image.src=i},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 n=this,r=new t({src:e.src,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.loadWithAjax?e.ajaxHeaders:null,crossOriginPolicy:e.crossOriginPolicy,ajaxWithCredentials:e.ajaxWithCredentials,callback:function(t){!function(e,t,n){e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&(e.jobQueue.shift().start(),e.jobsInProgress++);n(t.image,t.errorMsg,t.request)}(n,t,e.callback)},abort:e.abort,timeout:this.timeout});!this.jobLimit||this.jobsInProgress<this.jobLimit?(r.start(),this.jobsInProgress++):this.jobQueue.push(r)},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),function(e){e.Tile=function(e,t,n,r,o,i,a,s,c,l){this.level=e,this.x=t,this.y=n,this.bounds=r,this.sourceBounds=l,this.exists=o,this.url=i,this.context2D=a,this.loadWithAjax=s,this.ajaxHeaders=c,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,r,o){var i,a,s,c=this.position.times(e.pixelDensityRatio),l=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(i=this.context2D||this.cacheImageRecord.getRenderedContext(),this.loaded&&i?(t.save(),t.globalAlpha=this.opacity,"number"==typeof r&&1!==r&&(c=c.times(r),l=l.times(r)),o instanceof e.Point&&(c=c.plus(o)),1===t.globalAlpha&&this._hasTransparencyChannel()&&t.clearRect(c.x,c.y,l.x,l.y),n({context:t,tile:this,rendered:i}),this.sourceBounds?(a=Math.min(this.sourceBounds.width,i.canvas.width),s=Math.min(this.sourceBounds.height,i.canvas.height)):(a=i.canvas.width,s=i.canvas.height),t.drawImage(i.canvas,0,0,a,s,c.x,c.y,l.x,l.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,r){var o=Math.max(1,Math.ceil((r.x-n.x)/2)),i=Math.max(1,Math.ceil((r.y-n.y)/2));return new e.Point(o,i).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),function(e){e.OverlayPlacement=e.Placement,e.OverlayRotationMode=e.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),e.Overlay=function(t,n,r){var o;o=e.isPlainObject(t)?t:{element:t,location:n,placement:r},this.element=o.element,this.style=o.element.style,this._init(o)},e.Overlay.prototype={_init:function(t){this.location=t.location,this.placement=void 0===t.placement?e.Placement.TOP_LEFT:t.placement,this.onDraw=t.onDraw,this.checkResize=void 0===t.checkResize||t.checkResize,this.width=void 0===t.width?null:t.width,this.height=void 0===t.height?null:t.height,this.rotationMode=t.rotationMode||e.OverlayRotationMode.EXACT,this.location instanceof e.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=e.Placement.TOP_LEFT),this.scales=null!==this.width&&null!==this.height,this.bounds=new e.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(t,n){var r=e.Placement.properties[this.placement];r&&(r.isHorizontallyCentered?t.x-=n.x/2:r.isRight&&(t.x-=n.x),r.isVerticallyCentered?t.y-=n.y/2:r.isBottom&&(t.y-=n.y))},destroy:function(){var t=this.element,n=this.style;t.parentNode&&(t.parentNode.removeChild(t),t.prevElementParent&&(n.display="none",document.body.appendChild(t))),this.onDraw=null,n.top="",n.left="",n.position="",null!==this.width&&(n.width=""),null!==this.height&&(n.height="");var r=e.getCssPropertyWithVendorPrefix("transformOrigin"),o=e.getCssPropertyWithVendorPrefix("transform");r&&o&&(n[r]="",n[o]="")},drawHTML:function(t,n){var r=this.element;r.parentNode!==t&&(r.prevElementParent=r.parentNode,r.prevNextSibling=r.nextSibling,t.appendChild(r),this.style.position="absolute",this.size=e.getElementSize(r));var o=this._getOverlayPositionAndSize(n),i=o.position,a=this.size=o.size,s=o.rotate;if(this.onDraw)this.onDraw(i,a,this.element);else{var c=this.style;c.left=i.x+"px",c.top=i.y+"px",null!==this.width&&(c.width=a.x+"px"),null!==this.height&&(c.height=a.y+"px");var l=e.getCssPropertyWithVendorPrefix("transformOrigin"),u=e.getCssPropertyWithVendorPrefix("transform");l&&u&&(s?(c[l]=this._getTransformOrigin(),c[u]="rotate("+s+"deg)"):(c[l]="",c[u]="")),"none"!==c.display&&(c.display="block")}},_getOverlayPositionAndSize:function(t){var n=t.pixelFromPoint(this.location,!0),r=this._getSizeInPixels(t);this.adjust(n,r);var o=0;if(t.degrees&&this.rotationMode!==e.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX&&null!==this.width&&null!==this.height){var i=new e.Rect(n.x,n.y,r.x,r.y),a=this._getBoundingBox(i,t.degrees);n=a.getTopLeft(),r=a.getSize()}else o=t.degrees;return{position:n,size:r,rotate:o}},_getSizeInPixels:function(t){var n=this.size.x,r=this.size.y;if(null!==this.width||null!==this.height){var o=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(n=o.x),null!==this.height&&(r=o.y)}if(this.checkResize&&(null===this.width||null===this.height)){var i=this.size=e.getElementSize(this.element);null===this.width&&(n=i.x),null===this.height&&(r=i.y)}return new e.Point(n,r)},_getBoundingBox:function(e,t){var n=this._getPlacementPoint(e);return e.rotate(t,n).getBoundingBox()},_getPlacementPoint:function(t){var n=new e.Point(t.x,t.y),r=e.Placement.properties[this.placement];return r&&(r.isHorizontallyCentered?n.x+=t.width/2:r.isRight&&(n.x+=t.width),r.isVerticallyCentered?n.y+=t.height/2:r.isBottom&&(n.y+=t.height)),n},_getTransformOrigin:function(){var t="",n=e.Placement.properties[this.placement];return n?(n.isLeft?t="left":n.isRight&&(t="right"),n.isTop?t+=" top":n.isBottom&&(t+=" bottom"),t):t},update:function(t,n){var r=e.isPlainObject(t)?t:{location:t,placement:n};this._init({location:r.location||this.location,placement:void 0!==r.placement?r.placement:this.placement,onDraw:r.onDraw||this.onDraw,checkResize:r.checkResize||this.checkResize,width:void 0!==r.width?r.width:this.width,height:void 0!==r.height?r.height:this.height,rotationMode:r.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var n=this.width,r=this.height;if(null===n||null===r){var o=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===n&&(n=o.x),null===r&&(r=o.y)}var i=this.location.clone();return this.adjust(i,new e.Point(n,r)),this._adjustBoundsForRotation(t,new e.Rect(i.x,i.y,n,r))},_adjustBoundsForRotation:function(t,n){if(!t||0===t.degrees||this.rotationMode===e.OverlayRotationMode.EXACT)return n;if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX){if(null===this.width||null===this.height)return n;var r=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(r.position.x,r.position.y,r.size.x,r.size.y))}return n.rotate(-t.degrees,this._getPlacementPoint(n))}}}(OpenSeadragon),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 r=this._calculateCanvasSize();this.canvas.width=r.x,this.canvas.height=r.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,r,o){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,r,o),this},updateOverlay:function(t,n,r){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,r),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},viewportCoordToDrawerCoord:function(t){var n=this.viewport.pixelFromPointNoRotate(t,!0);return new e.Point(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio)},clipWithPolygons:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),e.forEach((function(e){e.forEach((function(e,t){n[0===t?"moveTo":"lineTo"](e.x,e.y)}))})),n.clip()}},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var n=this.viewer.world,r=0;r<n.getItemCount();r++)n.getItemAt(r).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,r=0;r<t.getItemCount();r++){var o=t.getItemAt(r).getOpacity();o>n&&(n=o)}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 r=n.canvas;n.clearRect(0,0,r.width,r.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),r=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,r.x*e.pixelDensityRatio,r.y*e.pixelDensityRatio)},drawTile:function(t,n,r,o,i){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(n,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var a=this._getContext(r);o=o||1,t.drawCanvas(a,n,o,i)}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 r=this;this.viewer.addHandler("rotate",(function e(){if(0!==r.viewport.getRotation()){r.viewer.removeHandler("rotate",e);var t=r._calculateSketchCanvasSize();r.sketchCanvas.width=t.x,r.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 r=this._getContext(n);r.save(),r.fillStyle=t,r.fillRect(e.x,e.y,e.width,e.height),r.restore()}},blendSketch:function(t,n,r,o){var i=t;if(e.isPlainObject(i)||(i={opacity:t,scale:n,translate:r,compositeOperation:o}),this.useCanvas&&this.sketchCanvas){t=i.opacity,o=i.compositeOperation;var a=i.bounds;if(this.context.save(),this.context.globalAlpha=t,o&&(this.context.globalCompositeOperation=o),a)a.x<0&&(a.width+=a.x,a.x=0),a.x+a.width>this.canvas.width&&(a.width=this.canvas.width-a.x),a.y<0&&(a.height+=a.y,a.y=0),a.y+a.height>this.canvas.height&&(a.height=this.canvas.height-a.y),this.context.drawImage(this.sketchCanvas,a.x,a.y,a.width,a.height,a.x,a.y,a.width,a.height);else{n=i.scale||1;var s=(r=i.translate)instanceof e.Point?r:new e.Point(0,0),c=0,l=0;if(r){var u=this.sketchCanvas.width-this.canvas.width,f=this.sketchCanvas.height-this.canvas.height;c=Math.round(u/2),l=Math.round(f/2)}this.context.drawImage(this.sketchCanvas,s.x-c*n,s.y-l*n,(this.canvas.width+2*c)*n,(this.canvas.height+2*l)*n,-c,-l,this.canvas.width+2*c,this.canvas.height+2*l)}this.context.restore()}},drawDebugInfo:function(t,n,r,o){if(this.useCanvas){var i=this.viewer.world.getIndexOfItem(o)%this.debugGridColor.length,a=this.context;a.save(),a.lineWidth=2*e.pixelDensityRatio,a.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",a.strokeStyle=this.debugGridColor[i],a.fillStyle=this.debugGridColor[i],0!==this.viewport.degrees&&this._offsetForRotation({degrees:this.viewport.degrees}),o.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:o.getRotation(!0),point:o.viewport.pixelFromPointNoRotate(o._getRotationPoint(!0),!0)}),0===o.viewport.degrees&&o.getRotation(!0)%360==0&&o._drawer.viewer.viewport.getFlip()&&o._drawer._flip(),a.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var s=(t.position.x+t.size.x/2)*e.pixelDensityRatio,c=(t.position.y+t.size.y/2)*e.pixelDensityRatio;a.translate(s,c),a.rotate(Math.PI/180*-this.viewport.degrees),a.translate(-s,-c),0===t.x&&0===t.y&&(a.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),a.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),a.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),a.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),a.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),a.fillText("Order: "+r+" of "+n,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),a.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),a.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),0!==this.viewport.degrees&&this._restoreRotationChanges(),o.getRotation(!0)%360!=0&&this._restoreRotationChanges(),0===o.viewport.degrees&&o.getRotation(!0)%360==0&&o._drawer.viewer.viewport.getFlip()&&o._drawer._flip(),a.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.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(),r=this._getContext(t.useSketch);r.save(),r.translate(n.x,n.y),this.viewer.viewport.flipped?(r.rotate(Math.PI/180*-t.degrees),r.scale(-1,1)):r.rotate(Math.PI/180*t.degrees),r.translate(-n.x,-n.y)},_flip:function(t){var n=(t=t||{}).point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),r=this._getContext(t.useSketch);r.translate(n.x,0),r.scale(-1,1),r.translate(-n.x,0)},_restoreRotationChanges:function(e){this._getContext(e).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),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=this._contentAspectRatio/this.getAspectRatio();return(this.homeFillsViewer?e>=1?e:1:e>=1?1:e)/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),n=1/this.getHomeZoom(),r=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-r/2,n,r)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom();return this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e},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),r=1/this.getZoom(t),o=r/this.getAspectRatio();return new e.Rect(n.x-r/2,n.y-o/2,r,o)},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,r,o,i,a,s,c=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),l=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?c:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),i=(o=1/(r=this.getZoom()))/this.getAspectRatio(),a=new e.Rect(c.x-o/2,c.y-i/2,o,i),s=this._pixelFromPoint(this.zoomPoint,a).minus(n).divide(this._containerInnerSize.x*r),l.plus(s)):l},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 r=this.visibilityRatio*n.width,o=n.x+n.width,i=this._contentBoundsNoRotate.x+this._contentBoundsNoRotate.width,a=this._contentBoundsNoRotate.x-o+r,s=i-n.x-r;r>this._contentBoundsNoRotate.width?n.x+=(a+s)/2:s<0?n.x+=s:a>0&&(n.x+=a)}if(this.wrapVertical);else{var c=this.visibilityRatio*n.height,l=n.y+n.height,u=this._contentBoundsNoRotate.y+this._contentBoundsNoRotate.height,f=this._contentBoundsNoRotate.y-l+c,d=u-n.y-c;c>this._contentBoundsNoRotate.height?n.y+=(f+d)/2:d<0?n.y+=d:f>0&&(n.y+=f)}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 r=this.getBoundsNoRotate(),o=this._applyBoundaryConstraints(r);return this._raiseConstraintsEvent(e),(r.x!==o.x||r.y!==o.y||e)&&this.fitBounds(o.rotate(-this.getRotation()),e),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){var r=(n=n||{}).immediately||!1,o=n.constraints||!1,i=this.getAspectRatio(),a=t.getCenter(),s=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();s.getAspectRatio()>=i?s.height=s.width/i:s.width=s.height*i,s.x=a.x-s.width/2,s.y=a.y-s.height/2;var c=1/s.width;if(o){var l=s.getAspectRatio(),u=this._applyZoomConstraints(c);c!==u&&(c=u,s.width=1/c,s.x=a.x-s.width/2,s.height=s.width/l,s.y=a.y-s.height/2),a=(s=this._applyBoundaryConstraints(s)).getCenter(),this._raiseConstraintsEvent(r)}if(r)return this.panTo(a,!0),this.zoomTo(c,null,!0);this.panTo(this.getCenter(!0),!0),this.zoomTo(this.getZoom(!0),null,!0);var f=this.getBounds(),d=this.getZoom();if(0===d||Math.abs(c/d-1)<1e-8)return this.zoomTo(c,!0),this.panTo(a,r);var p=(s=s.rotate(-this.getRotation())).getTopLeft().times(c).minus(f.getTopLeft().times(d)).divide(c-d);return this.zoomTo(c,p,r)},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;return t=this.getBounds(e),this._applyBoundaryConstraints(t)},panBy:function(t,n){var r=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(r.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,r){var o=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,r?this._adjustCenterSpringsForZoomPoint((function(){o.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:r}),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,r=this.getBoundsNoRotate(),o=r;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,o.width=r.width*n,o.height=o.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(o,!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).minus(t),r=this.deltaPointsFromPixels(n,!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 r=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/r.width).plus(r.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(),this.getCenter(!0))},_viewportToImageDelta:function(t,n){var r=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/r,n*this._contentSizeNoRotate.x/r)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===r){return this.viewer.world.getItemAt(0).viewportToImageCoordinates(t,n,!0)}}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,n-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,n){var r=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*r,n/this._contentSizeNoRotate.x*r)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===r){return this.viewer.world.getItemAt(0).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,r,o){var i=t;if(i instanceof e.Rect||(i=new e.Rect(t,n,r,o)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).imageToViewportRectangle(t,n,r,o,!0)}}var s=this.imageToViewportCoordinates(i.x,i.y),c=this._imageToViewportDelta(i.width,i.height);return new e.Rect(s.x,s.y,c.x,c.y,i.degrees)},viewportToImageRectangle:function(t,n,r,o){var i=t;if(i instanceof e.Rect||(i=new e.Rect(t,n,r,o)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).viewportToImageRectangle(t,n,r,o,!0)}}var s=this.viewportToImageCoordinates(i.x,i.y),c=this._viewportToImageDelta(i.width,i.height);return new e.Rect(s.x,s.y,c.x,c.y,i.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){return e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer."),this.imageToViewerElementCoordinates(t).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){return e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer."),this.viewportToViewerElementCoordinates(t).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){return this.viewer.world.getItemAt(0).viewportToImageZoom(t)}}var r=this._contentSizeNoRotate.x;return t*(this._containerInnerSize.x/r*this._contentBoundsNoRotate.width)},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){return this.viewer.world.getItemAt(0).imageToViewportZoom(t)}}return t*(this._contentSizeNoRotate.x/this._containerInnerSize.x/this._contentBoundsNoRotate.width)},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),function(e){function t(e,t,r,o,i,a,c,l,u){var f=c.getBoundingBox().getTopLeft(),d=c.getBoundingBox().getBottomRight();e.viewer&&e.viewer.raiseEvent("update-level",{tiledImage:e,havedrawn:t,level:o,opacity:i,visibility:a,drawArea:c,topleft:f,bottomright:d,currenttime:l,best:u}),s(e.coverage,o),s(e.loadingCoverage,o);for(var p=e._getCornerTiles(o,f,d),h=p.topLeft,g=p.bottomRight,m=e.source.getNumTiles(o),v=e.viewport.pixelFromPoint(e.viewport.getCenter()),b=h.x;b<=g.x;b++)for(var y=h.y;y<=g.y;y++){if(!e.wrapHorizontal&&!e.wrapVertical){var w=e.source.getTileBounds(o,b,y);if(null===c.intersection(w))continue}u=n(e,r,t,b,y,o,i,a,v,m,l,u)}return u}function n(t,n,o,s,c,l,u,f,d,p,h,g){var m=function(t,n,r,o,i,a,s,c,l,u){var f,d,p,h,g,m,v,b,y;a[r]||(a[r]={});a[r][t]||(a[r][t]={});a[r][t][n]||(f=(c.x+t%c.x)%c.x,d=(c.y+n%c.y)%c.y,p=i.getTileBounds(r,f,d),h=i.getTileBounds(r,f,d,!0),g=i.tileExists(r,f,d),m=i.getTileUrl(r,f,d),o.loadTilesWithAjax?(v=i.getTileAjaxHeaders(r,f,d),e.isPlainObject(o.ajaxHeaders)&&(v=e.extend({},o.ajaxHeaders,v))):v=null,b=i.getContext2D?i.getContext2D(r,f,d):void 0,p.x+=(t-f)/c.x,p.y+=u/l*((n-d)/c.y),y=new e.Tile(r,t,n,p,g,m,b,o.loadTilesWithAjax,v,h),f===c.x-1&&(y.isRightMost=!0),d===c.y-1&&(y.isBottomMost=!0),a[r][t][n]=y);return(y=a[r][t][n]).lastTouchTime=s,y}(s,c,l,t,t.source,t.tilesMatrix,h,p,t._worldWidthCurrent,t._worldHeightCurrent),v=o;t.viewer&&t.viewer.raiseEvent("update-tile",{tiledImage:t,tile:m}),a(t.coverage,l,s,c,!1);var b=m.loaded||m.loading||i(t.loadingCoverage,l,s,c);if(a(t.loadingCoverage,l,s,c,b),!m.exists)return g;if(n&&!v&&(i(t.coverage,l,s,c)?a(t.coverage,l,s,c,!0):v=!0),!v)return g;if(function(t,n,r,o,i,a){var s=t.bounds.getTopLeft();s.x*=a._scaleSpring.current.value,s.y*=a._scaleSpring.current.value,s.x+=a._xSpring.current.value,s.y+=a._ySpring.current.value;var c=t.bounds.getSize();c.x*=a._scaleSpring.current.value,c.y*=a._scaleSpring.current.value;var l=r.pixelFromPointNoRotate(s,!0),u=r.pixelFromPointNoRotate(s,!1),f=r.deltaPixelsFromPointsNoRotate(c,!0),d=r.deltaPixelsFromPointsNoRotate(c,!1),p=u.plus(d.divide(2)),h=o.squaredDistanceTo(p);n||(f=f.plus(new e.Point(1,1)));t.isRightMost&&a.wrapHorizontal&&(f.x+=.75);t.isBottomMost&&a.wrapVertical&&(f.y+=.75);t.position=l,t.size=f,t.squaredDistance=h,t.visibility=i}(m,t.source.tileOverlap,t.viewport,d,f,t),!m.loaded)if(m.context2D)r(t,m);else{var y=t._tileCache.getImageRecord(m.cacheKey);if(y)r(t,m,y.getImage())}if(m.loaded){var w=function(e,t,n,r,o,i,s){var c,l,u=1e3*e.blendTime;t.blendStart||(t.blendStart=s);c=s-t.blendStart,l=u?Math.min(1,c/u):1,e.alwaysBlend&&(l*=i);if(t.opacity=l,e.lastDrawn.push(t),1===l)a(e.coverage,o,n,r,!0),e._hasOpaqueTile=!0;else if(c<u)return!0;return!1}(t,m,s,c,l,u,h);w&&(t._needsDraw=!0)}else m.loading?t._tilesLoading++:b||(g=function(e,t){if(!e)return t;if(t.visibility>e.visibility)return t;if(t.visibility==e.visibility&&t.squaredDistance<e.squaredDistance)return t;return e}(g,m));return g}function r(e,t,n,r,o){var i=0;function a(){return i++,s}function s(){0===--i&&(t.loading=!1,t.loaded=!0,t.context2D||e._tileCache.cacheTile({image:n,tile:t,cutoff:r,tiledImage:e}),e._needsDraw=!0)}e.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:e,tileRequest:o,image:n,getCompletionCallback:a}),a()()}function o(e,t,n,r){var o,i,a,s;if(!e[t])return!1;if(void 0===n||void 0===r){for(a in o=e[t])if(Object.prototype.hasOwnProperty.call(o,a))for(s in i=o[a])if(Object.prototype.hasOwnProperty.call(i,s)&&!i[s])return!1;return!0}return void 0===e[t][n]||void 0===e[t][n][r]||!0===e[t][n][r]}function i(e,t,n,r){return void 0===n||void 0===r?o(e,t+1):o(e,t+1,2*n,2*r)&&o(e,t+1,2*n,2*r+1)&&o(e,t+1,2*n+1,2*r)&&o(e,t+1,2*n+1,2*r+1)}function a(t,n,r,o,i){t[n]?(t[n][r]||(t[n][r]={}),t[n][r][o]=i):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",n)}function s(e,t){e[t]={}}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 r=t.x||0;delete t.x;var o=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 i=1;t.width?(i=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&&(i=t.height/this.normHeight,delete t.height);var a=t.fitBounds;delete t.fitBounds;var s=t.fitBoundsPlacement||OpenSeadragon.Placement.CENTER;delete t.fitBoundsPlacement;var c=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:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:c,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),a&&this.fitBounds(a,s,!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(),r=this._degreesSpring.update();return!!(e||t||n||r)&&(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 r=(t?this._worldWidthCurrent:this._worldWidthTarget)/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,r){var o=r?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/o),n*(this.source.dimensions.y*this.contentAspectX/o))},viewportToImageCoordinates:function(t,n,r){var o;return t instanceof e.Point?(r=n,o=t):o=new e.Point(t,n),o=o.rotate(-this.getRotation(r),this._getRotationPoint(r)),r?this._viewportToImageDelta(o.x-this._xSpring.current.value,o.y-this._ySpring.current.value):this._viewportToImageDelta(o.x-this._xSpring.target.value,o.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,r){var o=r?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*o,n/this.source.dimensions.y/this.contentAspectX*o)},imageToViewportCoordinates:function(t,n,r){t instanceof e.Point&&(r=n,n=t.y,t=t.x);var o=this._imageToViewportDelta(t,n);return r?(o.x+=this._xSpring.current.value,o.y+=this._ySpring.current.value):(o.x+=this._xSpring.target.value,o.y+=this._ySpring.target.value),o.rotate(this.getRotation(r),this._getRotationPoint(r))},imageToViewportRectangle:function(t,n,r,o,i){var a=t;a instanceof e.Rect?i=n:a=new e.Rect(t,n,r,o);var s=this.imageToViewportCoordinates(a.getTopLeft(),i),c=this._imageToViewportDelta(a.width,a.height,i);return new e.Rect(s.x,s.y,c.x,c.y,a.degrees+this.getRotation(i))},viewportToImageRectangle:function(t,n,r,o,i){var a=t;t instanceof e.Rect?i=n:a=new e.Rect(t,n,r,o);var s=this.viewportToImageCoordinates(a.getTopLeft(),i),c=this._viewportToImageDelta(a.width,a.height,i);return new e.Rect(s.x,s.y,c.x,c.y,a.degrees-this.getRotation(i))},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){return this.imageToViewerElementCoordinates(e).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){return this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x*e},imageToViewportZoom:function(e){return e/(this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x)},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)},setCroppingPolygons:function(t){var n=function(t){return t.map((function(t){try{if(function(t){return t instanceof e.Point||"number"==typeof t.x&&"number"==typeof t.y}(t))return{x:t.x,y:t.y};throw new Error}catch(e){throw new Error("A Provided cropping polygon point is not supported")}}))};try{if(!e.isArray(t))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=t.map((function(e){return n(e)}))}catch(t){e.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),e.console.error(t),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(t,n,r){n=n||e.Placement.CENTER;var o=e.Placement.properties[n],i=this.contentAspectX,a=0,s=0,c=1,l=1;if(this._clip&&(i=this._clip.getAspectRatio(),c=this._clip.width/this.source.dimensions.x,l=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>i?(a=this._clip.x/this._clip.height*t.height,s=this._clip.y/this._clip.height*t.height):(a=this._clip.x/this._clip.width*t.width,s=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>i){var u=t.height/l,f=0;o.isHorizontallyCentered?f=(t.width-t.height*i)/2:o.isRight&&(f=t.width-t.height*i),this.setPosition(new e.Point(t.x-a+f,t.y-s),r),this.setHeight(u,r)}else{var d=t.width/c,p=0;o.isVerticallyCentered?p=(t.height-t.width/i)/2:o.isBottom&&(p=t.height-t.width/i),this.setPosition(new e.Point(t.x-a,t.y-s+p),r),this.setWidth(d,r)}},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),{lowestLevel:e=Math.min(e,n),highestLevel:n}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;){this.lastDrawn.pop().beingDrawn=!1}var n=this.viewport,i=this._viewportToTiledImageRectangle(n.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var a=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(null===(i=i.intersection(a)))return}for(var s=this._getLevelsInterval(),c=s.lowestLevel,l=s.highestLevel,u=null,f=!1,d=e.now(),p=l;p>=c;p--){var h=!1,g=n.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(p),!0).x*this._scaleSpring.current.value;if(p===c||!f&&g>=this.minPixelRatio)h=!0,f=!0;else if(!f)continue;var m=n.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(p),!1).x*this._scaleSpring.current.value,v=n.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,b=this.immediateRender?1:v;if(u=t(this,f,h,p,Math.min(1,(g-.5)/.5),b/Math.abs(b-m),i,d,u),o(this.coverage,p))break}!function(t,n){if(0===t.opacity||0===n.length&&!t.placeholderFillStyle)return;var r,o,i,a=n[0];a&&(r=t.opacity<1||t.compositeOperation&&"source-over"!==t.compositeOperation||!t._isBottomItem()&&a._hasTransparencyChannel());var s,c=t.viewport.getZoom(!0),l=t.viewportToImageZoom(c);n.length>1&&l>t.smoothTileEdgesMinZoom&&!t.iOSDevice&&t.getRotation(!0)%360==0&&e.supportsCanvas&&(r=!0,o=a.getScaleForEdgeSmoothing(),i=a.getTranslationForEdgeSmoothing(o,t._drawer.getCanvasSize(!1),t._drawer.getCanvasSize(!0)));r&&(o||(s=t.viewport.viewportToViewerElementRectangle(t.getClippedBounds(!0)).getIntegerBoundingBox(),t._drawer.viewer.viewport.getFlip()&&(0===t.viewport.degrees&&t.getRotation(!0)%360==0||(s.x=t._drawer.viewer.container.clientWidth-(s.x+s.width))),s=s.times(e.pixelDensityRatio)),t._drawer._clear(!0,s));o||(0!==t.viewport.degrees&&t._drawer._offsetForRotation({degrees:t.viewport.degrees,useSketch:r}),t.getRotation(!0)%360!=0&&t._drawer._offsetForRotation({degrees:t.getRotation(!0),point:t.viewport.pixelFromPointNoRotate(t._getRotationPoint(!0),!0),useSketch:r}),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(r);var f=t.imageToViewportRectangle(t._clip,!0);f=f.rotate(-t.getRotation(!0),t._getRotationPoint(!0));var d=t._drawer.viewportToDrawerRectangle(f);o&&(d=d.times(o)),i&&(d=d.translate(i)),t._drawer.setClip(d,r),u=!0}if(t._croppingPolygons){t._drawer.saveContext(r);try{var p=t._croppingPolygons.map((function(e){return e.map((function(e){var n=t.imageToViewportCoordinates(e.x,e.y,!0).rotate(-t.getRotation(!0),t._getRotationPoint(!0)),r=t._drawer.viewportCoordToDrawerCoord(n);return o&&(r=r.times(o)),r}))}));t._drawer.clipWithPolygons(p,r)}catch(t){e.console.error(t)}u=!0}if(t.placeholderFillStyle&&!1===t._hasOpaqueTile){var h=t._drawer.viewportToDrawerRectangle(t.getBounds(!0));o&&(h=h.times(o)),i&&(h=h.translate(i));var g=null;g="function"==typeof t.placeholderFillStyle?t.placeholderFillStyle(t,t._drawer.context):t.placeholderFillStyle,t._drawer.drawRectangle(h,g,r)}for(var m=n.length-1;m>=0;m--)a=n[m],t._drawer.drawTile(a,t._drawingHandler,r,o,i),a.beingDrawn=!0,t.viewer&&t.viewer.raiseEvent("tile-drawn",{tiledImage:t,tile:a});u&&t._drawer.restoreContext(r);o||(t.getRotation(!0)%360!=0&&t._drawer._restoreRotationChanges(r),0!==t.viewport.degrees&&t._drawer._restoreRotationChanges(r));r&&(o&&(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:o,translate:i,compositeOperation:t.compositeOperation,bounds:s}),o&&(t.getRotation(!0)%360!=0&&t._drawer._restoreRotationChanges(!1),0!==t.viewport.degrees&&t._drawer._restoreRotationChanges(!1)));o||0===t.viewport.degrees&&t.getRotation(!0)%360==0&&t._drawer.viewer.viewport.getFlip()&&t._drawer._flip();!function(t,n){if(t.debugMode)for(var r=n.length-1;r>=0;r--){var o=n[r];try{t._drawer.drawDebugInfo(o,n.length,r,t)}catch(t){e.console.error(t)}}}(t,n)}(this,this.lastDrawn),u&&!u.context2D?(!function(t,n,o){n.loading=!0,t._imageLoader.addJob({src:n.url,loadWithAjax:n.loadWithAjax,ajaxHeaders:n.ajaxHeaders,crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,callback:function(i,a,s){!function(t,n,o,i,a,s){if(!i)return e.console.log("Tile %s failed to load: %s - error: %s",n,n.url,a),t.viewer.raiseEvent("tile-load-failed",{tile:n,tiledImage:t,time:o,message:a,tileRequest:s}),n.loading=!1,void(n.exists=!1);if(o<t.lastResetTime)return e.console.log("Ignoring tile %s loaded before reset: %s",n,n.url),void(n.loading=!1);var c=function(){var e=t.source.getClosestLevel();r(t,n,i,e,s)};t._midDraw?window.setTimeout(c,1):c()}(t,n,o,i,a,s)},abort:function(){n.loading=!1}})}(this,u,d),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,r){var o,i,a,s;this.wrapHorizontal?(o=e.positiveModulo(n.x,1),i=e.positiveModulo(r.x,1)):(o=Math.max(0,n.x),i=Math.min(1,r.x));var c=1/this.source.aspectRatio;this.wrapVertical?(a=e.positiveModulo(n.y,c),s=e.positiveModulo(r.y,c)):(a=Math.max(0,n.y),s=Math.min(c,r.y));var l=this.source.getTileAtPoint(t,new e.Point(o,a)),u=this.source.getTileAtPoint(t,new e.Point(i,s)),f=this.source.getNumTiles(t);return this.wrapHorizontal&&(l.x+=f.x*Math.floor(n.x),u.x+=f.x*Math.floor(r.x)),this.wrapVertical&&(l.y+=f.y*Math.floor(n.y/c),u.y+=f.y*Math.floor(r.y/c)),{topLeft:l,bottomRight:u}}})}(OpenSeadragon),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(r){e.console.assert(r,"[TileCache.cacheTile] options is required"),e.console.assert(r.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(r.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(r.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var o=r.cutoff||0,i=this._tilesLoaded.length,a=this._imagesLoaded[r.tile.cacheKey];if(a||(e.console.assert(r.image,"[TileCache.cacheTile] options.image is required to create an ImageRecord"),a=this._imagesLoaded[r.tile.cacheKey]=new n({image:r.image}),this._imagesLoadedCount++),a.addTile(r.tile),r.tile.cacheImageRecord=a,this._imagesLoadedCount>this._maxImageCacheCount){for(var s,c,l,u,f,d,p=null,h=-1,g=null,m=this._tilesLoaded.length-1;m>=0;m--)(s=(d=this._tilesLoaded[m]).tile).level<=o||s.beingDrawn||(p?(u=s.lastTouchTime,c=p.lastTouchTime,f=s.level,l=p.level,(u<c||u==c&&f>l)&&(p=s,h=m,g=d)):(p=s,h=m,g=d));p&&h>=0&&(this._unloadTile(g),i=h)}this._tilesLoaded[i]=new t({tile:r.tile,tiledImage:r.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var r=0;r<this._tilesLoaded.length;++r)(n=this._tilesLoaded[r]).tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(r,1),r--)},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,r=t.tiledImage;n.unload(),n.cacheImageRecord=null;var o=this._imagesLoaded[n.cacheKey];o.removeTile(n),o.getTileCount()||(o.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),r.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:r})}}}(OpenSeadragon),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"),void 0!==(n=n||{}).index){var r=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(r,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 r=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==r&&-1!==r&&(this._items.splice(r,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:r,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]).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){var n,r=(t=t||{}).immediately||!1,o=t.layout||e.DEFAULT_SETTINGS.collectionLayout,i=t.rows||e.DEFAULT_SETTINGS.collectionRows,a=t.columns||e.DEFAULT_SETTINGS.collectionColumns,s=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,c=s+(t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin);n=!t.rows&&a?a:Math.ceil(this._items.length/i);var l,u,f,d,p,h=0,g=0;this.setAutoRefigureSizes(!1);for(var m=0;m<this._items.length;m++)m&&m%n==0&&("horizontal"===o?(g+=c,h=0):(h+=c,g=0)),d=(f=(u=(l=this._items[m]).getBounds()).width>u.height?s:s*(u.width/u.height))*(u.height/u.width),p=new e.Point(h+(s-f)/2,g+(s-d)/2),l.setPosition(p,r),l.setWidth(f,r),"horizontal"===o?h+=c:g+=c;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,r=this._contentFactor||0;if(this._items.length){var o=this._items[0],i=o.getBounds();this._contentFactor=o.getContentSize().x/i.width;for(var a=o.getClippedBounds().getBoundingBox(),s=a.x,c=a.y,l=a.x+a.width,u=a.y+a.height,f=1;f<this._items.length;f++)i=(o=this._items[f]).getBounds(),this._contentFactor=Math.max(this._contentFactor,o.getContentSize().x/i.width),a=o.getClippedBounds().getBoundingBox(),s=Math.min(s,a.x),c=Math.min(c,a.y),l=Math.max(l,a.x+a.width),u=Math.max(u,a.y+a.height);this._homeBounds=new e.Rect(s,c,l-s,u-c),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===r&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(OpenSeadragon)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(18),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=i.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,f=e.className,d=e.color,p=void 0===d?"initial":d,h=e.component,g=e.display,m=void 0===g?"initial":g,v=e.gutterBottom,b=void 0!==v&&v,y=e.noWrap,w=void 0!==y&&y,O=e.paragraph,E=void 0!==O&&O,x=e.variant,S=void 0===x?"body1":x,j=e.variantMapping,T=void 0===j?l:j,_=Object(o.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=h||(E?"p":T[S]||l[S])||"span";return i.createElement(C,Object(r.a)({className:Object(a.a)(u.root,f,"inherit"!==S&&u[S],"initial"!==p&&u["color".concat(Object(c.a)(p))],w&&u.noWrap,b&&u.gutterBottom,E&&u.paragraph,"inherit"!==s&&u["align".concat(Object(c.a)(s))],"initial"!==m&&u["display".concat(Object(c.a)(m))]),ref:t},_))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},,function(e,t,n){"use strict";var r=n(94),o=n(47),i=n(41),a=n(39),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(65);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(70),o="["+n(240)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){var r=n(67).Symbol;e.exports=r},function(e,t,n){var r=n(890),o=n(349),i=n(891),a=n(464),s=n(465),c=n(134),l=n(456),u="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",g=l(r),m=l(o),v=l(i),b=l(a),y=l(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=p)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case g:return h;case m:return u;case v:return f;case b:return d;case y:return p}return t}),e.exports=w},function(e,t,n){var r=n(62),o=n(359),i=n(467),a=n(360);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(134),o=n(80);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(355),o=n(909);e.exports=function e(t,n,i,a,s){var c=-1,l=t.length;for(i||(i=o),s||(s=[]);++c<l;){var u=t[c];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(175),o=n(471),i=n(362);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(142),o=n.n(r),i=n(46);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left-to-right";p(this,e),this.canvases=t.map((function(e){return new i.a(e)})),this.layers=n,this.viewingDirection=r,this._canvasDimensions=null}var t,n,r;return t=e,(n=[{key:"canvasIds",get:function(){return this.canvases.map((function(e){return e.id}))}},{key:"canvasDimensions",get:function(){if(this._canvasDimensions)return this._canvasDimensions;var e=u(this.canvasDirection,2),t=e[0],n=e[1],r=0===n?Math.min.apply(Math,l(this.canvases.map((function(e){return e.getHeight()})))):Math.min.apply(Math,l(this.canvases.map((function(e){return e.getWidth()})))),o=0,i=0,a=this.canvases.reduce((function(e,a){var s=0,c=0;return isNaN(a.aspectRatio)||(0===n?(s=r,c=Math.floor(r*a.aspectRatio)):(c=r,s=Math.floor(r*(1/a.aspectRatio)))),e.push({canvas:a,height:s,width:c,x:o,y:i}),o+=t*c,i+=n*s,e}),[]),c=0===n?r:Math.abs(i),f=0===t?r:Math.abs(o);return this._canvasDimensions=a.reduce((function(e,r){return e.push(s(s({},r),{},{x:-1===t?r.x+f-r.width:r.x,y:-1===n?r.y+c-r.height:r.y})),e}),[]),this._canvasDimensions}},{key:"contentResourceToWorldCoordinates",value:function(e){var t=this.canvases.findIndex((function(t){return t.imageResources.find((function(t){return t.id===e.id}))})),n=this.canvases[t];if(!n)return[];var r=u(this.canvasToWorldCoordinates(n.id),4),o=r[0],i=r[1],a=r[2],s=r[3],c=n.onFragment(e.id);return c?[o+c[0],i+c[1],c[2],c[3]]:[o,i,a,s]}},{key:"canvasToWorldCoordinates",value:function(e){var t=this.canvasDimensions.find((function(t){return t.canvas.id===e}));return[t.x,t.y,t.width,t.height]}},{key:"canvasDirection",get:function(){switch(this.viewingDirection){default:return[1,0];case"right-to-left":return[-1,0];case"top-to-bottom":return[0,1];case"bottom-to-top":return[0,-1]}}},{key:"contentResource",value:function(e){var t=this.canvases.find((function(t){return t.imageServiceIds.some((function(t){return o()(t,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}));if(t)return t.imageResources.find((function(t){return o()(t.getServices()[0].id,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}},{key:"getLayerMetadata",value:function(e){if(this.layers){var t=this.canvases.find((function(t){return t.imageResources.find((function(t){return t.id===e.id}))}));if(t){var n=t.imageResources.findIndex((function(t){return t.id===e.id})),r=this.layers[t.canvas.id],o=r&&r[e.id];return s({index:n,opacity:1,total:t.imageResources.length,visibility:!0},o)}}}},{key:"layerOpacityOfImageResource",value:function(e){var t=this.getLayerMetadata(e);return t?t.visibility?t.opacity:0:1}},{key:"layerIndexOfImageResource",value:function(e){var t=this.getLayerMetadata(e);if(t)return t.total-t.index-1}},{key:"offsetByCanvas",value:function(e){var t=this.canvasToWorldCoordinates(e);return{x:t[0],y:t[1]}}},{key:"worldBounds",value:function(){return[0,0,Math.max.apply(Math,l(this.canvasDimensions.map((function(e){return e.x+e.width})))),Math.max.apply(Math,l(this.canvasDimensions.map((function(e){return e.y+e.height}))))]}},{key:"canvasAtPoint",value:function(e){var t=this.canvasDimensions.find((function(t){return t.x<=e.x&&e.x<=t.x+t.width&&t.y<=e.y&&e.y<=t.y+t.height}));return t&&t.canvas}}])&&h(t.prototype,n),r&&h(t,r),e}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(0),o=n(537),i=n.n(o),a=n(538),s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},s(e,t)};var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};var l=i.a,u={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},f=function(e){function t(t){var n=e.call(this,t)||this;return n.resizing=!1,n.resizingPosition={x:0,y:0},n.offsetFromParent={left:0,top:0},n.refDraggable=function(e){e&&(n.draggable=e)},n.refResizable=function(e){e&&(n.resizable=e)},n.state={original:{x:0,y:0},bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},n.onResizeStart=n.onResizeStart.bind(n),n.onResize=n.onResize.bind(n),n.onResizeStop=n.onResizeStop.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDrag=n.onDrag.bind(n),n.onDragStop=n.onDragStop.bind(n),n.getMaxSizesFromProps=n.getMaxSizesFromProps.bind(n),n}return function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.updateOffsetFromParent();var e=this.offsetFromParent,t=e.left,n=e.top,r=this.getDraggablePosition(),o=r.x,i=r.y;this.draggable.setState({x:o-t,y:i-n}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},t.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},t.prototype.onDragStart=function(e,t){if(this.props.onDragStart&&this.props.onDragStart(e,t),this.props.bounds){var n,r=this.getParent(),o=this.props.scale;if("parent"===this.props.bounds)n=r;else{if("body"===this.props.bounds){var i=r.getBoundingClientRect(),a=i.left,s=i.top,c=document.body.getBoundingClientRect(),l=-(a-r.offsetLeft*o-c.left)/o,u=-(s-r.offsetTop*o-c.top)/o,f=(document.body.offsetWidth-this.resizable.size.width*o)/o+l,d=(document.body.offsetHeight-this.resizable.size.height*o)/o+u;return this.setState({bounds:{top:u,right:f,bottom:d,left:l}})}if("window"===this.props.bounds){if(!this.resizable)return;var p=r.getBoundingClientRect(),h=p.left,g=p.top,m=-(h-r.offsetLeft*o)/o,v=-(g-r.offsetTop*o)/o;f=(window.innerWidth-this.resizable.size.width*o)/o+m,d=(window.innerHeight-this.resizable.size.height*o)/o+v;return this.setState({bounds:{top:v,right:f,bottom:d,left:m}})}n=document.querySelector(this.props.bounds)}if(n instanceof HTMLElement&&r instanceof HTMLElement){var b=n.getBoundingClientRect(),y=b.left,w=b.top,O=r.getBoundingClientRect(),E=(y-O.left)/o,x=w-O.top;if(this.resizable){this.updateOffsetFromParent();var S=this.offsetFromParent;this.setState({bounds:{top:x-S.top,right:E+(n.offsetWidth-this.resizable.size.width)-S.left/o,bottom:x+(n.offsetHeight-this.resizable.size.height)-S.top,left:E-S.left/o}})}}}},t.prototype.onDrag=function(e,t){if(this.props.onDrag){var n=this.offsetFromParent;return this.props.onDrag(e,c(c({},t),{x:t.x-n.left,y:t.y-n.top}))}},t.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.onDragStop(e,c(c({},t),{x:t.x+r,y:t.y+o}))}},t.prototype.onResizeStart=function(e,t,n){e.stopPropagation(),this.resizing=!0;var r=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.setState({original:i}),this.props.bounds){var a=this.getParent(),s=void 0;s="parent"===this.props.bounds?a:"body"===this.props.bounds?document.body:"window"===this.props.bounds?window:document.querySelector(this.props.bounds);var c=this.getSelfElement();if(c instanceof Element&&(s instanceof HTMLElement||s===window)&&a instanceof HTMLElement){var l=this.getMaxSizesFromProps(),u=l.maxWidth,f=l.maxHeight,d=this.getParentSize();if(u&&"string"==typeof u)if(u.endsWith("%")){var p=Number(u.replace("%",""))/100;u=d.width*p}else u.endsWith("px")&&(u=Number(u.replace("px","")));if(f&&"string"==typeof f)if(f.endsWith("%")){p=Number(f.replace("%",""))/100;f=d.width*p}else f.endsWith("px")&&(f=Number(f.replace("px","")));var h=c.getBoundingClientRect(),g=h.left,m=h.top,v="window"===this.props.bounds?{left:0,top:0}:s.getBoundingClientRect(),b=v.left,y=v.top,w=this.getOffsetWidth(s),O=this.getOffsetHeight(s),E=t.toLowerCase().endsWith("left"),x=t.toLowerCase().endsWith("right"),S=t.startsWith("top"),j=t.startsWith("bottom");if(E&&this.resizable){var T=(g-b)/r+this.resizable.size.width;this.setState({maxWidth:T>Number(u)?u:T})}if(x||this.props.lockAspectRatio&&!E){T=w+(b-g)/r;this.setState({maxWidth:T>Number(u)?u:T})}if(S&&this.resizable){T=(m-y)/r+this.resizable.size.height;this.setState({maxHeight:T>Number(f)?f:T})}if(j||this.props.lockAspectRatio&&!S){T=O+(y-m)/r;this.setState({maxHeight:T>Number(f)?f:T})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){if(/left/i.test(t)){var o=this.state.original.x-r.width;this.draggable.setState({x:o})}if(/top/i.test(t)){var i=this.state.original.y-r.height;this.draggable.setState({y:i})}this.updateOffsetFromParent();var a=this.offsetFromParent,s=this.getDraggablePosition().x+a.left,c=this.getDraggablePosition().y+a.top;this.resizingPosition={x:s,y:c},this.props.onResize&&this.props.onResize(e,t,n,r,{x:s,y:c})},t.prototype.onResizeStop=function(e,t,n,r){this.resizing=!1;var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition();this.offsetFromParent={left:a.left-o-s.x*e,top:a.top-i-s.y*e}},t.prototype.render=function(){var e=this.props,t=e.disableDragging,n=e.style,o=e.dragHandleClassName,i=e.position,s=e.onMouseDown,f=e.onMouseUp,d=e.dragAxis,p=e.dragGrid,h=e.bounds,g=e.enableUserSelectHack,m=e.cancel,v=e.children,b=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),y=e.resizeHandleClasses,w=e.resizeHandleComponent,O=e.enableResizing,E=e.resizeGrid,x=e.resizeHandleWrapperClass,S=e.resizeHandleWrapperStyle,j=e.scale,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale"]),_=this.props.default?c({},this.props.default):void 0;delete T.default;var C,I=t||o?{cursor:"auto"}:{cursor:"move"},P=c(c(c({},u),I),n),k=this.offsetFromParent,R=k.left,A=k.top;i&&(C={x:i.x-R,y:i.y-A});var D=this.resizing?void 0:C;return Object(r.createElement)(l,{ref:this.refDraggable,handle:o?"."+o:void 0,defaultPosition:_,onMouseDown:s,onMouseUp:f,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:d,disabled:t,grid:p,bounds:h?this.state.bounds:void 0,position:D,enableUserSelectHack:g,cancel:m,scale:j},Object(r.createElement)(a.Resizable,c({},T,{ref:this.refResizable,defaultSize:_,size:this.props.size,enable:O,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:P,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.resizing?this.state.maxHeight:this.props.maxHeight,grid:E,handleWrapperClass:x,handleWrapperStyle:S,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:b,handleClasses:y,handleComponent:w,scale:this.props.scale}),v))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(r.PureComponent)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=i,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=s(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))},t.hslToRgb=a,t.decomposeColor=s,t.recomposeColor=c,t.getContrastRatio=function(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=l,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?f(e,t):d(e,t)},t.fade=function(e,t){0;return u(e,t)},t.alpha=u,t.darken=f,t.lighten=d;var r=n(27);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){var t=(e=s(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),c({type:l,values:u})}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(i(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.formatMuiErrorMessage)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function c(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e){var t="hsl"===(e=s(e)).type?s(a(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=s(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,c(e)}function f(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function d(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return c(e)}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(48);function o(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchSharp");t.default=i},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(346),o=n(171),i=n(247),a=n(62),s=n(151),c=n(248),l=n(250),u=n(343),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){var r=n(174);e.exports=function(e){return(null==e?0:e.length)?r(e,Infinity):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1021);Object.defineProperty(t,"Mosaic",{enumerable:!0,get:function(){return r.Mosaic}}),Object.defineProperty(t,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return r.MosaicWithoutDragDropContext}});var o=n(262);Object.defineProperty(t,"MosaicDragType",{enumerable:!0,get:function(){return o.MosaicDragType}});var i=n(85);Object.defineProperty(t,"MosaicContext",{enumerable:!0,get:function(){return i.MosaicContext}}),Object.defineProperty(t,"MosaicWindowContext",{enumerable:!0,get:function(){return i.MosaicWindowContext}});var a=n(159);Object.defineProperty(t,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(t,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(t,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(t,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(t,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(t,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var s=n(98);Object.defineProperty(t,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return s.createBalancedTreeFromLeaves}}),Object.defineProperty(t,"Corner",{enumerable:!0,get:function(){return s.Corner}}),Object.defineProperty(t,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return s.getAndAssertNodeAtPathExists}}),Object.defineProperty(t,"getLeaves",{enumerable:!0,get:function(){return s.getLeaves}}),Object.defineProperty(t,"getNodeAtPath",{enumerable:!0,get:function(){return s.getNodeAtPath}}),Object.defineProperty(t,"getOtherBranch",{enumerable:!0,get:function(){return s.getOtherBranch}}),Object.defineProperty(t,"getOtherDirection",{enumerable:!0,get:function(){return s.getOtherDirection}}),Object.defineProperty(t,"getPathToCorner",{enumerable:!0,get:function(){return s.getPathToCorner}}),Object.defineProperty(t,"isParent",{enumerable:!0,get:function(){return s.isParent}});var c=n(1035);Object.defineProperty(t,"MosaicWindow",{enumerable:!0,get:function(){return c.MosaicWindow}});var l=n(213);Object.defineProperty(t,"createDefaultToolbarButton",{enumerable:!0,get:function(){return l.createDefaultToolbarButton}});var u=n(521);Object.defineProperty(t,"MosaicZeroState",{enumerable:!0,get:function(){return u.MosaicZeroState}});var f=n(528);Object.defineProperty(t,"Separator",{enumerable:!0,get:function(){return f.Separator}});var d=n(524);Object.defineProperty(t,"ExpandButton",{enumerable:!0,get:function(){return d.ExpandButton}});var p=n(526);Object.defineProperty(t,"ReplaceButton",{enumerable:!0,get:function(){return p.ReplaceButton}});var h=n(527);Object.defineProperty(t,"SplitButton",{enumerable:!0,get:function(){return h.SplitButton}});var g=n(525);Object.defineProperty(t,"RemoveButton",{enumerable:!0,get:function(){return g.RemoveButton}});var m=n(523);Object.defineProperty(t,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(t,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})},,,,function(e,t,n){var r=n(21),o=n(92),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(75),o=n(45),i=n(129),a=function(e){return function(t,n,a){var s,c=r(t),l=o(c.length),u=i(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(21),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(413),o=n(321);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(37),o=n(145),i=n(41)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(21),o=n(41),i=n(325),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t){e.exports={}},function(e,t,n){var r=n(203),o=n(201),i=n(41)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(328),o=n(92),i=n(41)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(21);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(38),o=n(327),i=n(45),a=n(130),s=n(202),c=n(422),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,f){var d,p,h,g,m,v,b,y=a(t,n,u?2:1);if(f)d=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,g=i(e.length);g>h;h++)if((m=u?y(r(b=e[h])[0],b[1]):y(e[h]))&&m instanceof l)return m;return new l(!1)}d=p.call(e)}for(v=d.next;!(b=v.call(d)).done;)if("object"==typeof(m=c(d,y,b.value,u))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(352),o=n(256);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=i?i(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?o(n,l,u):r(n,l,u)}return n}},function(e,t,n){var r=n(172),o=n(153);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(934);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(938),o=n(948),i=n(175),a=n(62),s=n(952);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultToolbarButton=void 0;var o=r(n(19)),i=r(n(0)),a=n(154);t.createDefaultToolbarButton=function(e,t,n,r){return i.default.createElement("button",{title:e,onClick:n,className:o.default("mosaic-default-control",a.OptionalBlueprint.getClasses("BUTTON","MINIMAL"),t)},r&&i.default.createElement("span",{className:"control-text"},r))}},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){var r=n(473)("set",n(490));r.placeholder=n(363),e.exports=r},function(e,t,n){"use strict";n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return j})),n.d(t,"a",(function(){return T}));var r=n(9),o=n(536),i=n.n(o),a=n(269),s=n.n(a),c=n(34),l=n(53),u=n(157),f=n(66);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e){return void 0===e.parentNode?[]:void 0===e.parentNode.parentNode?[e.parentNode.id]:[].concat(g(v(e.parentNode)),[e.parentNode.id])}function b(e,t){return e.reduce((function(e,n){var r=[];r.push.apply(r,g(e));var o=t.reduce((function(e,t){return e||function(e,t){for(var n=e.getCanvasIds(),r=0;r<n.length;r+=1)if(c.d.normalisedUrlsMatch(n[r],t))return!0;return!1}(n.data,t)}),!1),i=n.nodes.length>0?b(n.nodes,t):[];return r.push.apply(r,g(i)),(o||i.length>0)&&r.push({containsVisibleCanvas:o,descendantsContainVisibleCanvas:i.length>0,id:n.id,leaf:0===n.nodes.length,parentIds:v(n)}),r}),[])}var y=Object(r.createSelector)([f.d,l.l],(function(e,t){return 0!==t.length&&e?b(e.nodes,t):[]})),w=Object(r.createSelector)([y],(function(e){return e.map((function(e){return e.id}))})),O=Object(r.createSelector)([y],(function(e){return e.reduce((function(e,t){return t.leaf||!t.descendantsContainVisibleCanvas?e:[].concat(g(e),[t.id])}),[])})),E=Object(r.createSelector)([y],(function(e){return e.reduce((function(e,t){return t.containsVisibleCanvas?[].concat(g(e),[t]):e}),[])}));function x(e,t,n){var r=t.companionWindowId,o=Object(u.b)(e,{companionWindowId:r});return o.tocNodes?Object.keys(o.tocNodes).reduce((function(e,t){return o.tocNodes[t].expanded===n?[].concat(g(e),[t]):e}),[]):[]}function S(e,t){var n=t.companionWindowId,r=t.windowId,o=O(e,{companionWindowId:n,windowId:r}),a=x(e,{companionWindowId:n},!0),c=x(e,{companionWindowId:n},!1);return s.a.apply(void 0,[i()(a,o)].concat(g(c)))}function j(e,t){var n=h({},t),r=E(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n)),o=x(e,n,!1);if(r&&r.length>0){for(var i=0;i<r[0].parentIds.length;i+=1)if(-1!==o.indexOf(r[0].parentIds[i]))return r[0].parentIds[i];return r[0].id}return null}var T=Object(r.createSelector)([f.d],(function(e){return e&&e.nodes&&e.nodes.length>0?"tableOfContents":"item"}))},function(e,t,n){!function(e,t,n,r){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function a(e){var t=e.srcList,r=e.imgPromise,o=void 0===r?l({decode:!0}):r,a=e.useSuspense,s=void 0===a||a,c=n.useState(!0)[1],h=u(f(t)),g=h.join("");if(d[g]||(d[g]={promise:p(h,o),cache:"pending",error:null}),d[g].promise.then((function(e){d[g]=i(i({},d[g]),{},{cache:"resolved",src:e}),s||c(!1)})).catch((function(e){d[g]=i(i({},d[g]),{},{cache:"rejected",error:e}),s||c(!1)})),"resolved"===d[g].cache)return{src:d[g].src,isLoading:!1,error:null};if("rejected"===d[g].cache){if(s)throw d[g].error;return{isLoading:!1,error:d[g].error,src:void 0}}if(s)throw d[g].promise;return{isLoading:!0,src:void 0,error:null}}function s(e){var n=e.decode,r=e.src,o=void 0===r?[]:r,i=e.loader,s=void 0===i?null:i,u=e.unloader,f=void 0===u?null:u,d=e.container,p=void 0===d?h:d,g=e.loaderContainer,m=void 0===g?h:g,v=e.unloaderContainer,b=void 0===v?h:v,y=e.imgPromise,w=e.crossorigin,O=e.useSuspense,E=void 0!==O&&O,x=t(e,["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"]),S=a({srcList:o,imgPromise:y=y||l({decode:!(void 0!==n)||n,crossOrigin:w}),useSuspense:E}),j=S.src,T=S.isLoading;return j?p(c.createElement("img",Object.assign({src:j},x))):!E&&T?m(s):!E&&f?b(f):null}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var c="default"in n?n.default:n;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var l=function(e){var t=e.decode,n=e.crossOrigin,r=void 0===n?"":n;return function(e){return new Promise((function(n,o){var i=new Image;r&&(i.crossOrigin=r),i.onload=function(){(void 0===t||t)&&i.decode?i.decode().then(n).catch(o):n()},i.onerror=o,i.src=e}))}},u=function(e){return e.filter((function(e){return e}))},f=function(e){return Array.isArray(e)?e:[e]},d={},p=function(e,t){var n=!1;return new Promise((function(r,o){var i=function(e){return t(e).then((function(){n=!0,r(e)}))};e.reduce((function(e,t){return e.catch((function(){if(!n)return i(t)}))}),i(e.shift())).catch(o)}))},h=function(e){return e};e.Img=s,e.useImage=a,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(1006),n(0),n(1007))},function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e){return null!==e&&"object"===r(e)&&e.hasOwnProperty("current")}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(1119),a=n(10),s=n(6),c=n(501),l=n(0),u=n.n(l),f=n(1092),d=n(555),p=n(1),h=n(115),g=n(74);function m(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var v=function(e,t){var n;void 0===t&&(t=m);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},b=(n(54),"object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function y(e){cancelAnimationFrame(e.id)}function w(e,t){var n=b();var r={id:requestAnimationFrame((function o(){b()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var O=null;function E(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var x=function(e,t){return e};function S(e){var t,n,r=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Object(g.a)(Object(g.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(g.a)(Object(g.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=v((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=v((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,c=o.layout,l=n._getItemStyleCache(f&&s,f&&c,f&&a);if(l.hasOwnProperty(e))t=l[e];else{var u,d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),h="horizontal"===a||"horizontal"===c;l[e]=((u={position:"absolute"})["rtl"===a?"right":"left"]=h?d:0,u.top=h?0:d,u.height=h?"100%":p,u.width=h?p:"100%",t=u)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=v((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(E()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&y(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=w(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(h.a)(t,e),t.getDerivedStateFromProps=function(e,t){return j(e,t),d(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(E()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&y(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,c=e.innerTagName,u=e.itemCount,f=e.itemData,d=e.itemKey,h=void 0===d?x:d,g=e.layout,m=e.outerElementType,v=e.outerTagName,b=e.style,y=e.useIsScrolling,w=e.width,O=this.state.isScrolling,E="horizontal"===r||"horizontal"===g,S=E?this._onScrollHorizontal:this._onScrollVertical,j=this._getRangeToRender(),T=j[0],_=j[1],C=[];if(u>0)for(var I=T;I<=_;I++)C.push(Object(l.createElement)(t,{data:f,key:h(I,f),index:I,isScrolling:y?O:void 0,style:this._getItemStyle(I)}));var P=o(this.props,this._instanceProps);return Object(l.createElement)(m||v||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Object(p.a)({position:"relative",height:i,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},b)},Object(l.createElement)(s||c||"div",{children:C,ref:a,style:{height:E?"100%":P,pointerEvents:O?"none":void 0,width:E?P:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,c=i.scrollUpdateWasRequested;this._callOnScroll(a,s,c)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var l=s(this.props,a,this._instanceProps),u=c(this.props,l,a,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,l-f),Math.max(0,Math.min(t-1,u+d)),l,u]},t}(l.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var j=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},T=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var c=i+1;c<=t;c++){var l=r(c);o[c]={offset:a,size:l},a+=l}n.lastMeasuredIndex=t}return o[t]},_=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=T(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},C=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&T(e,n,t).offset<r;)n+=i,i*=2;return _(e,t,Math.min(n,o-1),Math.floor(n/2),r)},I=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},P=S({getItemOffset:function(e,t,n){return T(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:I,getOffsetForIndexAndAlignment:function(e,t,n,r,o){var i=e.direction,a=e.height,s=e.layout,c=e.width,l="horizontal"===i||"horizontal"===s?c:a,u=T(e,t,o),f=I(e,o),d=Math.max(0,Math.min(f-l,u.offset)),p=Math.max(0,u.offset-l+u.size);switch("smart"===n&&(n=r>=p-l&&r<=d+l?"auto":"center"),n){case"start":return d;case"end":return p;case"center":return Math.round(p+(d-p)/2);default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?_(e,t,o,0,n):C(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,c=e.width,l="horizontal"===o||"horizontal"===s?c:i,u=T(e,t,r),f=n+l,d=u.offset+u.size,p=t;p<a-1&&d<f;)p++,d+=T(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var k=n(19),R=n.n(k),A=n(177),D=n(20),M=n(53),N=n(113),L=n(12);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}var $=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(i,e);var t,n,r,o=U(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).setCanvas=t.setCanvas.bind(G(t)),t}return t=i,(n=[{key:"setCanvas",value:function(e){var t=this.props.setCanvas;t(e.currentTarget.dataset.canvasId)}},{key:"currentCanvasClass",value:function(e){var t=this.props.index;return e.includes(t)?"current-canvas-grouping":""}},{key:"render",value:function(){var e=this.props,t=e.index,n=e.style,r=e.data,o=e.classes,i=e.currentCanvasId,a=r.canvasGroupings,s=r.position,c=r.height,l=a[t];return u.a.createElement("div",{style:W(W({},n),{},{boxSizing:"content-box",height:Number.isInteger(n.height)?n.height-8:null,left:n.left+8,top:n.top+8,width:Number.isInteger(n.width)?n.width-8:null}),className:Object(L.a)("thumbnail-nav-container"),role:"gridcell","aria-colindex":t+1},u.a.createElement("div",{role:"button","data-canvas-id":l[0].id,"data-canvas-index":l[0].index,onKeyUp:this.setCanvas,onClick:this.setCanvas,tabIndex:-1,style:{height:"far-right"===s?"auto":"".concat(c-8,"px"),width:"far-bottom"===s?"auto":"".concat(n.width,"px")},className:R()(Object(L.a)(["thumbnail-nav-canvas","thumbnail-nav-canvas-".concat(t),this.currentCanvasClass(l.map((function(e){return e.index})))]),o.canvas,B({},o.currentCanvas,l.map((function(e){return e.id})).includes(i)))},l.map((function(e,t){return u.a.createElement(N.a,{key:e.id,resource:e,labelled:!0,maxHeight:"far-right"===s?n.height-12:c-12,variant:"inside"})}))))}}])&&F(t.prototype,n),r&&F(t,r),i}(l.PureComponent),K=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{canvas:{"&$currentCanvas":{outline:"2px solid ".concat(e.palette.primary.main),outlineOffset:"3px"},"&:hover":{outline:"9px solid ".concat(e.palette.action.hover),outlineOffset:"-2px"},boxSizing:"border-box",color:e.palette.common.white,cursor:"pointer",display:"inline-block",outline:0,whiteSpace:"nowrap"},currentCanvas:{}}})),Object(o.b)((function(e,t){var n=t.data;return{currentCanvasId:(Object(M.g)(e,{windowId:n.windowId})||{}).id}}),(function(e,t){var n=t.data;return{setCanvas:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(c.a.apply(D,[n.windowId].concat(r)))}}})),Object(s.a)("ThumbnailCanvasGrouping")),Z=K($);function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t){return X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},X(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J(this,n)}}function J(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ee(e)}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(i,e);var t,n,r,o=Q(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).scrollbarSize=15,t.spacing=8,t.calculateScaledSize=t.calculateScaledSize.bind(ee(t)),t.itemCount=t.itemCount.bind(ee(t)),t.handleKeyUp=t.handleKeyUp.bind(ee(t)),t.nextCanvas=t.nextCanvas.bind(ee(t)),t.previousCanvas=t.previousCanvas.bind(ee(t)),t.gridRef=u.a.createRef(),t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.canvasIndex,r=t.position,o=t.view;if(e.view!==o&&"off"!==r&&this.gridRef.current.resetAfterIndex(0),e.canvasIndex!==n){var i=n;"book"===o&&(i=Math.ceil(i/2)),this.gridRef.current.scrollToItem(i,"center")}}},{key:"handleKeyUp",value:function(e){var t="ArrowRight",n="ArrowLeft";switch("far-right"===this.props.position&&(t="ArrowDown",n="ArrowUp"),e.key){case t:this.nextCanvas();break;case n:this.previousCanvas()}}},{key:"calculateScaledSize",value:function(e){var t=this.props,n=t.thumbnailNavigation,r=t.canvasGroupings,o=t.position,i=r[e]||[],a=new A.a(i).worldBounds();if("far-right"===o){var s=Math.floor(this.calculatingWidth(i.length)*a[3]/a[2]);return Number.isInteger(s)?s+this.spacing:n.width+this.spacing}return 0===a[3]?n.width+this.spacing:Math.ceil((n.height-this.scrollbarSize-this.spacing-4)*a[2]/a[3])}},{key:"calculatingWidth",value:function(e){var t=this.props.thumbnailNavigation;return 1===e?t.width:2*t.width}},{key:"rightWidth",value:function(){var e=this.props,t=e.view,n=e.thumbnailNavigation;return"book"===t?2*n.width:n.width}},{key:"style",value:function(){var e=this.props,t=e.position,n=e.thumbnailNavigation;return"far-right"===t?{height:"100%",minHeight:0,width:"".concat(this.rightWidth()+this.scrollbarSize+this.spacing,"px")}:{height:"".concat(n.height,"px"),width:"100%"}}},{key:"areaHeight",value:function(e){var t=this.props,n=t.position,r=t.thumbnailNavigation;return"far-right"===n?e:r.height}},{key:"itemCount",value:function(){return this.props.canvasGroupings.length}},{key:"nextCanvas",value:function(){var e=this.props,t=e.hasNextCanvas,n=e.setNextCanvas;t&&n()}},{key:"previousCanvas",value:function(){var e=this.props,t=e.hasPreviousCanvas,n=e.setPreviousCanvas;t&&n()}},{key:"render",value:function(){var e=this,t=this.props,n=t.t,r=t.canvasGroupings,o=t.classes,i=t.position,a=t.thumbnailNavigation,s=t.viewingDirection,c=t.windowId;if("off"===i)return u.a.createElement(u.a.Fragment,null);var l="right-to-left"===s?"rtl":"ltr",p={canvasGroupings:r,height:a.height-this.spacing-this.scrollbarSize,position:i,windowId:c};return u.a.createElement(f.a,{className:R()(Object(L.a)("thumb-navigation"),o.thumbNavigation),"aria-label":n("thumbnailNavigation"),square:!0,elevation:0,style:this.style(),tabIndex:0,onKeyUp:this.handleKeyUp,role:"grid"},u.a.createElement("div",{role:"row",style:{height:"100%",width:"100%"}},u.a.createElement(d.a,{defaultHeight:100,defaultWidth:400},(function(t){var n=t.height,r=t.width;return u.a.createElement(P,{direction:l,height:e.areaHeight(n),itemCount:e.itemCount(),itemSize:e.calculateScaledSize,width:r,layout:"far-bottom"===i?"horizontal":"vertical",itemData:p,ref:e.gridRef},Z)}))))}}])&&Y(t.prototype,n),r&&Y(t,r),i}(l.Component);ne.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},view:void 0,viewingDirection:""};var re=n(66),oe=n(157),ie=n(36),ae=n(97),se=n(264),ce=Object(r.compose)(Object(a.a)((function(e){return{thumbNavigation:{"&:focus":{boxShadow:0,outline:0}}}})),Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId;return{canvasGroupings:Object(M.d)(e,{windowId:n}),canvasIndex:Object(re.a)(e,{windowId:n}),hasNextCanvas:!!Object(M.h)(e,{windowId:n}),hasPreviousCanvas:!!Object(M.i)(e,{windowId:n}),position:Object(oe.b)(e,{companionWindowId:Object(ie.e)(e,{windowId:n}).thumbnailNavigationId}).position,thumbnailNavigation:Object(ae.a)(e).thumbnailNavigation,view:Object(se.f)(e,{windowId:n}),viewingDirection:Object(re.e)(e,{windowId:n})}}),(function(e,t){var n=t.windowId;return{setNextCanvas:function(){return e(c.b(n))},setPreviousCanvas:function(){return e(c.c(n))}}})),Object(s.a)("ThumbnailNavigation"))(ne),le=n(529),ue=n(165),fe=n(496),de=n(284),pe=n.n(de),he=n(285),ge=n.n(he),me=n(29);function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ye(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ye(e,t)}(i,e);var t,n,r,o=we(i);function i(){return ve(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.displayAll,n=e.displayAllDisabled,r=e.t,o=e.toggleAnnotationDisplay;return u.a.createElement(me.a,{"aria-label":r(t?"displayNoAnnotations":"highlightAllAnnotations"),onClick:o,disabled:n,size:"small"},t?u.a.createElement(pe.a,null):u.a.createElement(ge.a,null))}}])&&be(t.prototype,n),r&&be(t,r),i}(l.Component),Se=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId;return{displayAll:Object(ie.e)(e,{windowId:n}).highlightAllAnnotations,displayAllDisabled:Object(le.a)(e,{windowId:n}).length<2}}),(function(e,t){var n=t.windowId;return{toggleAnnotationDisplay:function(){e(fe.h(n))}}})),Object(s.a)("AnnotationSettings"))(xe),je=n(4),Te=n(1121),_e=n(1097),Ce=n(1098),Ie=n(1099),Pe=n(60);function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Re(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Me(e);if(t){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}function De(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Me(e){return Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(e)}var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(i,e);var t,n,r,o=Ae(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).scrollToRef=u.a.createRef(),t}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.scrollTo&&this.scrollToElement()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollTo;t&&e.scrollTo!==t&&this.scrollToElement()}},{key:"containerBoundingRect",value:function(){var e=this.props.containerRef;return e&&e.current&&e.current.domEl?e.current.domEl.getBoundingClientRect():{}}},{key:"scrollToBoundingRect",value:function(){return this.elementToScrollTo()?this.elementToScrollTo().getBoundingClientRect():{}}},{key:"elementToScrollTo",value:function(){return this.scrollToRef&&this.scrollToRef.current?this.scrollToRef.current:null}},{key:"scrollabelContainer",value:function(){var e=this.props.containerRef;return e&&e.current&&e.current.domEl?e.current.domEl.getElementsByClassName("mirador-scrollto-scrollable")[0]:null}},{key:"elementIsVisible",value:function(){var e=this.props.offsetTop;return!(this.scrollToBoundingRect().top<this.containerBoundingRect().top+e||this.scrollToBoundingRect().bottom>this.containerBoundingRect().bottom)}},{key:"scrollToElement",value:function(){var e=this.props,t=e.offsetTop;if(e.scrollTo&&this.elementToScrollTo()&&!this.elementIsVisible()&&this.scrollabelContainer()){var n=this.elementToScrollTo().offsetTop-this.containerBoundingRect().height/2+t;this.scrollabelContainer().scrollTo(0,n)}}},{key:"render",value:function(){var e=this.props,t=e.children;return e.scrollTo?u.a.createElement("div",{ref:this.scrollToRef},t):t}}])&&ke(t.prototype,n),r&&ke(t,r),i}(l.Component);function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ze(e,t){return ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ze(e,t)}function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=He(e);if(t){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Be(this,n)}}function Be(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}Ne.defaultProps={offsetTop:0};var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ze(e,t)}(i,e);var t,n,r,o=We(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleClick=t.handleClick.bind(Fe(t)),t.handleAnnotationHover=t.handleAnnotationHover.bind(Fe(t)),t.handleAnnotationBlur=t.handleAnnotationBlur.bind(Fe(t)),t}return t=i,(n=[{key:"handleClick",value:function(e,t){var n=this.props,r=n.deselectAnnotation,o=n.selectAnnotation,i=n.selectedAnnotationId,a=n.windowId;i===t.id?r(a,t.id):o(a,t.id)}},{key:"handleAnnotationHover",value:function(e){var t=this.props;(0,t.hoverAnnotation)(t.windowId,[e.id])}},{key:"handleAnnotationBlur",value:function(){var e=this.props;(0,e.hoverAnnotation)(e.windowId,[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.annotations,r=t.classes,o=t.index,i=t.label,a=t.selectedAnnotationId,s=t.t,c=t.totalSize,l=t.listContainerComponent,f=t.htmlSanitizationRuleSet,d=t.hoveredAnnotationIds,p=t.containerRef;return 0===n.length?u.a.createElement(u.a.Fragment,null):u.a.createElement(u.a.Fragment,null,u.a.createElement(ue.a,{className:r.sectionHeading,variant:"overline"},s("annotationCanvasLabel",{context:"".concat(o+1,"/").concat(c),label:i})),u.a.createElement(_e.a,{autoFocusItem:!0,variant:"selectedMenu"},n.map((function(t){return u.a.createElement(Ne,{containerRef:p,key:"".concat(t.id,"-scroll"),offsetTop:96,scrollTo:a===t.id},u.a.createElement(Ce.a,{button:!0,component:l,className:Object(je.a)(r.annotationListItem,(n={},o=r.hovered,i=d.includes(t.id),o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n)),key:t.id,annotationid:t.id,selected:a===t.id,onClick:function(n){return e.handleClick(n,t)},onFocus:function(){return e.handleAnnotationHover(t)},onBlur:e.handleAnnotationBlur,onMouseEnter:function(){return e.handleAnnotationHover(t)},onMouseLeave:e.handleAnnotationBlur},u.a.createElement(Ie.a,{primaryTypographyProps:{variant:"body2"}},u.a.createElement(Pe.a,{ruleSet:f,htmlString:t.content}),u.a.createElement("div",null,t.tags.map((function(e){return u.a.createElement(Te.a,{size:"small",variant:"outlined",label:e,id:e,className:r.chip,key:e.toString()})}))))));var n,o,i}))))}}])&&Le(t.prototype,n),r&&Le(t,r),i}(l.Component);Ue.defaultProps={annotations:[],classes:{},containerRef:void 0,hoveredAnnotationIds:[],htmlSanitizationRuleSet:"iiif",listContainerComponent:"li",selectedAnnotationId:void 0};var Ve={deselectAnnotation:fe.a,hoverAnnotation:fe.b,selectAnnotation:fe.g},Ge=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{annotationListItem:{"&$hovered":{backgroundColor:e.palette.action.hover},"&:hover,&:focus":{backgroundColor:e.palette.action.hover},borderBottom:"0.5px solid ".concat(e.palette.divider),cursor:"pointer",whiteSpace:"normal"},chip:{backgroundColor:e.palette.background.paper,marginRight:e.spacing(.5),marginTop:e.spacing(1)},hovered:{},sectionHeading:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),Object(o.b)((function(e,t){var n,r=t.canvasId,o=t.windowId;return{annotations:(n=Object(le.b)(e,{canvasId:r,windowId:o}),n.map((function(e,t){return{content:e.chars,id:e.id,tags:e.tags,targetId:e.targetId}}))),htmlSanitizationRuleSet:Object(ae.a)(e).annotations.htmlSanitizationRuleSet,label:Object(M.e)(e,{canvasId:r,windowId:o}),selectedAnnotationId:Object(le.e)(e,{windowId:o})}}),Ve),Object(s.a)("CanvasAnnotations"))(Ue),qe=n(58);function $e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t){return Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ke(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}(i,e);var t,n,r,o=Ze(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).containerRef=u.a.createRef(),t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.annotationCount,r=t.classes,o=t.canvasIds,i=t.t,a=t.windowId,s=t.id;return u.a.createElement(qe.a,{title:i("annotations"),paperClassName:Object(L.a)("window-sidebar-annotation-panel"),windowId:a,id:s,ref:this.containerRef,otherRef:this.containerRef,titleControls:u.a.createElement(Se,{windowId:a})},u.a.createElement("div",{className:r.section},u.a.createElement(ue.a,{component:"p",variant:"subtitle2"},i("showingNumAnnotations",{count:n,number:n}))),o.map((function(t,n){return u.a.createElement(Ge,{canvasId:t,containerRef:e.containerRef,key:t,index:n,totalSize:o.length,windowId:a})})))}}])&&$e(t.prototype,n),r&&$e(t,r),i}(l.Component);Qe.defaultProps={canvasIds:[],t:function(e){return e}};var Je=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),Object(o.b)((function(e,t){var n=t.windowId;return{annotationCount:Object(le.a)(e,{windowId:n}).length,canvasIds:Object(M.l)(e,{windowId:n})}}),null),Object(s.a)("WindowSideBarAnnotationsPanel"))(Qe),et=n(508),tt=n(88),nt=n(114),rt=n(138),ot=n(35);function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function st(e,t){return st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},st(e,t)}function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ut(e);if(t){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ut(e)}var ft=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(i,e);var t,n,r,o=ct(i);function i(){return it(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasDescription,n=e.canvasLabel,r=e.canvasMetadata,o=e.id,i=e.index,a=e.t,s=e.totalSize;return u.a.createElement(nt.a,{id:"".concat(o,"-currentItem-").concat(i),label:a("currentItem",{context:"".concat(i+1,"/").concat(s)})},n&&u.a.createElement(ue.a,{"aria-labelledby":"".concat(o,"-currentItem-").concat(i," ").concat(o,"-currentItem-").concat(i,"-heading"),id:"".concat(o,"-currentItem-").concat(i,"-heading"),variant:"h4",component:"h5"},n),t&&u.a.createElement(ue.a,{variant:"body1"},u.a.createElement(Pe.a,{htmlString:t,ruleSet:"iiif"})),r&&r.length>0&&u.a.createElement(rt.a,{labelValuePairs:r}),u.a.createElement(ot.a,this.props))}}])&&at(t.prototype,n),r&&at(t,r),i}(l.Component);ft.defaultProps={canvasDescription:null,canvasLabel:null,canvasMetadata:[],index:1,t:function(e){return e},totalSize:1};var dt=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){var n=t.canvasId,r=t.id,o=t.windowId;return{canvasDescription:Object(M.b)(e,{canvasId:n,companionWindowId:r,windowId:o}),canvasLabel:Object(M.e)(e,{canvasId:n,companionWindowId:r,windowId:o}),canvasMetadata:Object(tt.a)(Object(M.a)(e,{canvasId:n,companionWindowId:r,windowId:o}))}})),Object(s.a)("CanvasInfo"))(ft),pt=n(1103),ht=n(1117);function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vt(e,t)}function bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wt(e);if(t){var o=wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yt(this,n)}}function yt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wt(e){return wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wt(e)}var Ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(i,e);var t,n,r,o=bt(i);function i(){return gt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.availableLocales,n=e.classes,r=e.locale,o=e.setLocale;return!o||t.length<2?u.a.createElement(u.a.Fragment,null):u.a.createElement(pt.a,null,u.a.createElement(ht.a,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:r,onChange:function(e){o(e.target.value)},name:"locale",classes:{select:n.select},className:n.selectEmpty},t.map((function(e){return u.a.createElement(Ce.a,{key:e,value:e},u.a.createElement(ue.a,{variant:"body2"},e))}))))}}])&&mt(t.prototype,n),r&&mt(t,r),i}(l.Component);Ot.defaultProps={availableLocales:[],classes:{},locale:"",setLocale:void 0};var Et=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{select:{"&:focus":{backgroundColor:e.palette.background.paper}},selectEmpty:{backgroundColor:e.palette.background.paper}}})))(Ot),xt=n(302),St=n(502),jt=n(1107),Tt=n(287),_t=n.n(Tt);function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e,t){return It=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},It(e,t)}function Pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=At(e);if(t){var o=At(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rt(e)}function Rt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}var Dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}(i,e);var t,n,r,o=Pt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).openCollectionDialog=t.openCollectionDialog.bind(Rt(t)),t}return t=i,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,n=e.showCollectionDialog,r=e.windowId;n(t[t.length-1],t.slice(0,-1),r)}},{key:"render",value:function(){var e=this.props,t=e.collectionLabel,n=e.collectionPath,r=e.id,o=e.t;return 0===n.length?null:u.a.createElement(nt.a,{id:"".concat(r,"-collection"),label:o("collection")},t&&u.a.createElement(ue.a,{"aria-labelledby":"".concat(r,"-resource ").concat(r,"-resource-heading"),id:"".concat(r,"-resource-heading"),variant:"h4"},t),u.a.createElement(jt.a,{color:"primary",onClick:this.openCollectionDialog,startIcon:u.a.createElement(_t.a,null)},o("showCollection")))}}])&&Ct(t.prototype,n),r&&Ct(t,r),i}(l.Component);Dt.defaultProps={collectionLabel:null,collectionPath:[],t:function(e){return e},windowId:null};var Mt={showCollectionDialog:St.j},Nt=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){t.id;var n=t.windowId,r=(Object(ie.e)(e,{windowId:n})||{}).collectionPath,o=r[r.length-1];return{collectionLabel:Object(tt.o)(e,{manifestId:o}),collectionPath:r}}),Mt),Object(s.a)("CollectionInfo"))(Dt),Lt=n(1100);function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bt(e,t)}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ut(e);if(t){var o=Ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ht(this,n)}}function Ht(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ut(e)}var Vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(i,e);var t,n,r,o=Ft(i);function i(){return zt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.homepage,r=e.manifestUrl,o=e.renderings,i=e.seeAlso,a=e.id,s=e.t;return u.a.createElement(nt.a,{id:"".concat(a,"-related"),label:s("related")},u.a.createElement(ue.a,{"aria-labelledby":"".concat(a,"-related ").concat(a,"-related-heading"),id:"".concat(a,"-related-heading"),variant:"h4",component:"h5"},s("links")),u.a.createElement("dl",{className:R()(Object(L.a)("label-value-metadata"),t.labelValueMetadata)},n&&u.a.createElement(u.a.Fragment,null,u.a.createElement(ue.a,{variant:"subtitle2",component:"dt"},s("iiif_homepage")),n.map((function(e){return u.a.createElement(ue.a,{key:e.value,variant:"body1",component:"dd"},u.a.createElement(Lt.a,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value))}))),o&&o.length>0&&u.a.createElement(u.a.Fragment,null,u.a.createElement(ue.a,{variant:"subtitle2",component:"dt"},s("iiif_renderings")),o.map((function(e){return u.a.createElement(ue.a,{key:e.value,variant:"body1",component:"dd"},u.a.createElement(Lt.a,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value))}))),i&&u.a.createElement(u.a.Fragment,null,u.a.createElement(ue.a,{variant:"subtitle2",component:"dt"},s("iiif_seeAlso")),i.map((function(e){return u.a.createElement(ue.a,{key:e.value,variant:"body1",component:"dd"},u.a.createElement(Lt.a,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value),e.format&&u.a.createElement(ue.a,{component:"span"}," (".concat(e.format,")")))}))),r&&u.a.createElement(u.a.Fragment,null,u.a.createElement(ue.a,{variant:"subtitle2",component:"dt"},s("iiif_manifest")),u.a.createElement(ue.a,{variant:"body1",component:"dd"},u.a.createElement(Lt.a,{target:"_blank",rel:"noopener noreferrer",href:r},r)))),u.a.createElement(ot.a,this.props))}}])&&Wt(t.prototype,n),r&&Wt(t,r),i}(l.Component);Vt.defaultProps={homepage:null,manifestUrl:null,renderings:null,seeAlso:null,t:function(e){return e}};var Gt=Object(r.compose)(Object(a.a)({labelValueMetadata:{"& dd":{marginBottom:".5em",marginLeft:"0"}}}),Object(i.a)(),Object(o.b)((function(e,t){t.id;var n=t.windowId;return{homepage:Object(tt.e)(e,{windowId:n}),manifestUrl:Object(tt.p)(e,{windowId:n}),renderings:Object(tt.k)(e,{windowId:n}),seeAlso:Object(tt.j)(e,{windowId:n})}})),Object(s.a)("ManifestRelatedLinks"))(Vt);function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kt(e,t){return Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kt(e,t)}function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xt(e);if(t){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}var Qt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kt(e,t)}(i,e);var t,n,r,o=Zt(i);function i(){return qt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.windowId,n=e.id,r=e.canvasIds,o=e.classes,i=e.collectionPath,a=e.t,s=e.locale,c=e.setLocale,l=e.availableLocales,f=e.showLocalePicker;return u.a.createElement(qe.a,{title:a("aboutThisItem"),paperClassName:Object(L.a)("window-sidebar-info-panel"),windowId:t,id:n,titleControls:f&&u.a.createElement(Et,{locale:s,setLocale:c,availableLocales:l})},r.map((function(e,i){return u.a.createElement("div",{key:e,className:o.section},u.a.createElement(dt,{id:n,canvasId:e,index:i,totalSize:r.length,windowId:t}))})),i.length>0&&u.a.createElement("div",{className:o.section},u.a.createElement(Nt,{id:n,windowId:t})),u.a.createElement("div",{className:o.section},u.a.createElement(xt.a,{id:n,windowId:t})),u.a.createElement("div",{className:o.section},u.a.createElement(Gt,{id:n,windowId:t})))}}])&&$t(t.prototype,n),r&&$t(t,r),i}(l.Component);Qt.defaultProps={availableLocales:[],canvasIds:[],classes:{},collectionPath:[],locale:"",setLocale:void 0,showLocalePicker:!1,t:function(e){return e}};var Jt=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),Object(o.b)((function(e,t){var n=t.id,r=t.windowId;return{availableLocales:Object(tt.r)(e,{companionWindowId:n,windowId:r}),canvasIds:Object(M.l)(e,{windowId:r}),collectionPath:(Object(ie.e)(e,{windowId:r})||{}).collectionPath,locale:Object(oe.b)(e,{companionWindowId:n}).locale||Object(tt.f)(e,{windowId:r}),showLocalePicker:Object(se.c)(e,{windowId:r}).showLocalePicker}}),(function(e,t){var n=t.windowId,r=t.id;return{setLocale:function(t){return e(et.e(n,r,{locale:t}))}}})),Object(s.a)("WindowSideBarInfoPanel"))(Qt),en=n(1113),tn=n(1106),nn=n(1096),rn=n(545),on=n.n(rn),an=n(544),sn=n.n(an),cn=n(546),ln=n.n(cn),un=n(46);function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pn(e,t){return pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pn(e,t)}function hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mn(e);if(t){var o=mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gn(this,n)}}function gn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mn(e)}var vn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pn(e,t)}(i,e);var t,n,r,o=hn(i);function i(){return fn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.label;return u.a.createElement(u.a.Fragment,null,u.a.createElement(ue.a,{className:R()(t.label),variant:"body1"},n))}}])&&dn(t.prototype,n),r&&dn(t,r),i}(l.Component),bn=Object(r.compose)(Object(a.a)((function(e){return{label:{paddingLeft:e.spacing(1)}}})),Object(i.a)(),Object(o.b)(null,null),Object(s.a)("SidebarIndexItem"))(vn);function yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function On(e,t){return On=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},On(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xn(this,n)}}function xn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&On(e,t)}(i,e);var t,n,r,o=En(i);function i(){return yn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.canvas,r=e.height,o=e.label,i=e.width;return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{style:{minWidth:50}},u.a.createElement(N.a,{label:o,resource:n,className:R()(t.clickable),maxHeight:r,maxWidth:i})),u.a.createElement(ue.a,{className:R()(t.label),variant:"body1"},o))}}])&&wn(t.prototype,n),r&&wn(t,r),i}(l.Component);function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jn.defaultProps={height:void 0,width:void 0};var Cn=Object(r.compose)(Object(a.a)((function(e){return{label:{paddingLeft:e.spacing(1)}}})),Object(i.a)(),Object(o.b)((function(e,t){t.data;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(ae.a)(e).canvasNavigation||{})}),null),Object(s.a)("SidebarIndexThumbnail")),In=Cn(jn);function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(e,t){return Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rn(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mn(e);if(t){var o=Mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dn(this,n)}}function Dn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}var Nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rn(e,t)}(i,e);var t,n,r,o=An(i);function i(){return Pn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getIdAndLabelOfCanvases",value:function(){return this.props.canvases.map((function(e,t){return{id:e.id,label:new un.a(e).getLabel()}}))}},{key:"render",value:function(){var e,t=this.props,n=t.canvases,r=t.classes,o=t.containerRef,i=t.selectedCanvasIds,a=t.setCanvas,s=t.variant,c=t.windowId,l=this.getIdAndLabelOfCanvases(n);return e="thumbnail"===s?In:bn,u.a.createElement(_e.a,{variant:"selectedMenu"},l.map((function(t,l){return u.a.createElement(Ne,{containerRef:o,key:"".concat(t.id,"-").concat(s),offsetTop:96,scrollTo:i.includes(t.id)},u.a.createElement(Ce.a,{key:t.id,className:r.listItem,alignItems:"flex-start",onClick:function(){a(c,t.id)},button:!0,component:"li",selected:i.includes(t.id)},u.a.createElement(e,{label:t.label,canvas:n[l]})))})))}}])&&kn(t.prototype,n),r&&kn(t,r),i}(l.Component);Nn.defaultProps={selectedCanvasIds:[],variant:"item"};var Ln=Object(r.compose)(Object(a.a)((function(e){return{label:{paddingLeft:e.spacing(1)},listItem:{borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:e.spacing(1)}}})),Object(i.a)(),Object(o.b)((function(e,t){var n=t.id,r=t.windowId;return{canvases:Object(M.f)(e,{windowId:r}),selectedCanvasIds:Object(M.l)(e,{windowId:r}),variant:Object(oe.b)(e,{companionWindowId:n,windowId:r}).variant}}),(function(e,t){t.id,t.windowId;return{setCanvas:function(){return e(c.a.apply(D,arguments))}}})),Object(s.a)("SidebarIndexList")),zn=Ln(Nn),Wn=n(180),Bn=n(49),Fn=n(5),Hn=(n(11),n(136));var Un=l.createContext({});var Vn=function(e,t,n){for(var r=t;r<e.length;r+=1)if(n===e[r])return r;return-1},Gn=[],qn=[],$n=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.defaultCollapseIcon,a=e.defaultEndIcon,s=e.defaultExpanded,c=void 0===s?Gn:s,u=e.defaultExpandIcon,f=e.defaultParentIcon,d=e.defaultSelected,h=void 0===d?qn:d,g=e.disableSelection,m=void 0!==g&&g,v=e.multiSelect,b=void 0!==v&&v,y=e.expanded,w=e.onNodeSelect,O=e.onNodeToggle,E=e.selected,x=Object(Fn.a)(e,["children","classes","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disableSelection","multiSelect","expanded","onNodeSelect","onNodeToggle","selected"]),S=l.useState(null),j=S[0],T=S[1],_=l.useState(null),C=_[0],I=_[1],P=l.useRef({}),k=l.useRef({}),R=l.useRef([]),A=Object(Hn.a)({controlled:y,default:c,name:"TreeView",state:"expanded"}),D=Object(Bn.a)(A,2),M=D[0],N=D[1],L=Object(Hn.a)({controlled:E,default:h,name:"TreeView",state:"selected"}),z=Object(Bn.a)(L,2),W=z[0],B=z[1],F=l.useCallback((function(e){return!!Array.isArray(M)&&-1!==M.indexOf(e)}),[M]),H=l.useCallback((function(e){return Array.isArray(W)?-1!==W.indexOf(e):W===e}),[W]),U=function(e){var t=R.current.indexOf(e);return-1!==t&&t+1<R.current.length?R.current[t+1]:null},V=function(e){var t=R.current.indexOf(e);return-1!==t&&t-1>=0?R.current[t-1]:null},G=function(){return R.current[R.current.length-1]},q=function(){return R.current[0]},$=function(e){e&&(T(e),I(e))},K=l.useRef(null),Z=l.useRef(!1),Y=l.useRef([]),X=function(e,t){var n=W,r=t.start,o=t.next,i=t.current;o&&i&&(-1===Y.current.indexOf(i)&&(Y.current=[]),Z.current?-1!==Y.current.indexOf(o)?(n=n.filter((function(e){return e===r||e!==i})),Y.current=Y.current.filter((function(e){return e===r||e!==i}))):(n.push(o),Y.current.push(o)):(n.push(o),Y.current.push(i,o)),w&&w(e,n),B(n))},Q=function(e,t){var n=W,r=t.start,o=t.end;Z.current&&(n=W.filter((function(e){return-1===Y.current.indexOf(e)})));var i=function(e,t){var n=R.current.indexOf(e),r=R.current.indexOf(t),o=Math.min(n,r),i=Math.max(n,r);return R.current.slice(o,i+1)}(r,o);Y.current=i;var a=n.concat(i);a=a.filter((function(e,t){return a.indexOf(e)===t})),w&&w(e,a),B(a)},J=function(e,t){var n=[];n=-1!==W.indexOf(t)?W.filter((function(e){return e!==t})):[t].concat(W),w&&w(e,n),B(n)},ee=function(e,t){var n=b?[t]:t;w&&w(e,n),B(n)},te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.start,o=void 0===r?K.current:r,i=t.end,a=t.current;return n?X(e,{start:o,next:i,current:a}):Q(e,{start:o,end:i}),Z.current=!0,!0},ne=l.useCallback((function(e){var t=P.current[e],n=[];return t&&(n.push(e),t.children&&(n.concat(t.children),t.children.forEach((function(e){n.concat(ne(e))})))),n}),[]),re=l.useCallback((function(e){var t=Object(p.a)({},k.current);e.forEach((function(e){t[e]&&delete t[e]})),k.current=t}),[]),oe=l.useCallback((function(e){var t=ne(e);re(t);var n=Object(p.a)({},P.current);t.forEach((function(e){var t=n[e];if(t){if(t.parent){var r=n[t.parent];if(r&&r.children){var o=r.children.filter((function(t){return t!==e}));n[t.parent]=Object(p.a)({},r,{children:o})}}delete n[e]}})),P.current=n,I((function(t){return t===e?null:t}))}),[ne,re]),ie=l.useRef([]),ae=l.useState(!1),se=ae[0],ce=ae[1];l.useEffect((function(){var e=[];l.Children.forEach(n,(function(t){l.isValidElement(t)&&t.props.nodeId&&e.push(t.props.nodeId)})),function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!0;return!1}(ie.current,e)&&(P.current[-1]={parent:null,children:e},e.forEach((function(e,t){0===t&&T(e)})),R.current=P.current[-1].children,ie.current=e,ce(!0))}),[n]),l.useEffect((function(){se&&(R.current=function e(t){for(var n=[],r=0;r<t.length;r+=1){var o=t[r];n.push(o);var i=P.current[o].children;F(o)&&i&&(n=n.concat(e(i)))}return n}(P.current[-1].children))}),[M,se,F,n]);var le=function(){return!1};return l.createElement(Un.Provider,{value:{icons:{defaultCollapseIcon:i,defaultExpandIcon:u,defaultParentIcon:f,defaultEndIcon:a},focus:$,focusFirstNode:function(){return $(q())},focusLastNode:function(){return $(G())},focusNextNode:function(e){return $(U(e))},focusPreviousNode:function(e){return $(V(e))},focusByFirstCharacter:function(e,t){var n,r,o=t.toLowerCase(),i=[],a=[];Object.keys(k.current).forEach((function(e){var t=k.current[e],n=P.current[e];(!n.parent||F(n.parent))&&(i.push(e),a.push(t))})),(n=i.indexOf(e)+1)===P.current.length&&(n=0),-1===(r=Vn(a,n,o))&&(r=Vn(a,0,o)),r>-1&&$(i[r])},expandAllSiblings:function(e,t){var n,r=P.current[t],o=P.current[r.parent];o?n=o.children.filter((function(e){return!F(e)})):n=P.current[-1].children.filter((function(e){return!F(e)}));var i=M.concat(n);n.length>0&&(N(i),O&&O(e,i))},toggleExpansion:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;-1!==M.indexOf(n)?(t=M.filter((function(e){return e!==n})),T((function(e){var t=P.current[e];return e&&(t&&t.parent?t.parent.id:null)===n?n:e}))):t=[n].concat(M),O&&O(e,t),N(t)},isExpanded:F,isFocused:function(e){return C===e},isSelected:H,selectNode:m?le:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!t&&(n?J(e,t):ee(e,t),K.current=t,Z.current=!1,Y.current=[],!0)},selectRange:m?le:te,selectNextNode:m?le:function(e,t){return te(e,{end:U(t),current:t},!0)},selectPreviousNode:m?le:function(e,t){return te(e,{end:V(t),current:t},!0)},rangeSelectToFirst:m?le:function(e,t){K.current||(K.current=t);var n=Z.current?K.current:t;return te(e,{start:n,end:q()})},rangeSelectToLast:m?le:function(e,t){K.current||(K.current=t);var n=Z.current?K.current:t;return te(e,{start:n,end:G()})},selectAllNodes:m?le:function(e){return te(e,{start:q(),end:G()})},isTabbable:function(e){return j===e},multiSelect:b,getParent:function(e){return P.current[e].parent},mapFirstChar:function(e,t){k.current[e]=t},addNodeToNodeMap:function(e,t){var n=P.current[e];P.current[e]=Object(p.a)({},n,{children:t,id:e}),t.forEach((function(t){var n=P.current[t];P.current[t]=Object(p.a)({},n,{parent:e,id:t})}))},removeNodeFromNodeMap:oe}},l.createElement("ul",Object(p.a)({role:"tree","aria-multiselectable":b,className:Object(je.a)(r.root,o),ref:t},x),n))})),Kn=Object(a.a)({root:{padding:0,margin:0,listStyle:"none"}},{name:"MuiTreeView"})($n),Zn=n(181),Yn=n.n(Zn),Xn=n(543),Qn=n.n(Xn),Jn=n(1102),er=n(30),tr=n(52),nr=n(28),rr=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.collapseIcon,a=e.endIcon,s=e.expandIcon,c=e.icon,u=e.label,f=e.nodeId,d=e.onClick,h=e.onLabelClick,g=e.onIconClick,m=e.onFocus,v=e.onKeyDown,b=e.onMouseDown,y=e.TransitionComponent,w=void 0===y?Jn.a:y,O=e.TransitionProps,E=Object(Fn.a)(e,["children","classes","className","collapseIcon","endIcon","expandIcon","icon","label","nodeId","onClick","onLabelClick","onIconClick","onFocus","onKeyDown","onMouseDown","TransitionComponent","TransitionProps"]),x=l.useContext(Un),S=x.icons,j=x.focus,T=x.focusFirstNode,_=x.focusLastNode,C=x.focusNextNode,I=x.focusPreviousNode,P=x.focusByFirstCharacter,k=x.selectNode,R=x.selectRange,A=x.selectNextNode,D=x.selectPreviousNode,M=x.rangeSelectToFirst,N=x.rangeSelectToLast,L=x.selectAllNodes,z=x.expandAllSiblings,W=x.toggleExpansion,B=x.isExpanded,F=x.isFocused,H=x.isSelected,U=x.isTabbable,V=x.multiSelect,G=x.getParent,q=x.mapFirstChar,$=x.addNodeToNodeMap,K=x.removeNodeFromNodeMap,Z=l.useRef(null),Y=l.useRef(null),X=Object(nr.a)(Z,t),Q=c,J=Boolean(Array.isArray(n)?n.length:n),ee=!!B&&B(f),te=!!F&&F(f),ne=!!U&&U(f),re=!!H&&H(f),oe=S||{},ie=Object(tr.a)();Q||(J?(Q=ee?i||oe.defaultCollapseIcon:s||oe.defaultExpandIcon)||(Q=oe.defaultParentIcon):Q=a||oe.defaultEndIcon);var ae,se=function(e){return J&&(ee?C(f):W(e)),!0},ce=function(e){if(ee)return W(e,f),!0;var t=G(f);return!!t&&(j(t),!0)};return l.useEffect((function(){if($){var e=[];l.Children.forEach(n,(function(t){l.isValidElement(t)&&t.props.nodeId&&e.push(t.props.nodeId)})),$(f,e)}}),[n,f,$]),l.useEffect((function(){if(K)return function(){K(f)}}),[f,K]),l.useEffect((function(){q&&u&&q(f,Y.current.textContent.substring(0,1).toLowerCase())}),[q,f,u]),l.useEffect((function(){te&&Z.current.focus()}),[te]),V?ae=re:re&&(ae=!0),l.createElement("li",Object(p.a)({className:Object(je.a)(r.root,o,ee&&r.expanded,re&&r.selected),role:"treeitem",onKeyDown:function(e){var t=!1,n=e.key;if(!e.altKey&&e.currentTarget===e.target){var r,o=e.ctrlKey||e.metaKey;switch(n){case" ":Z.current===e.currentTarget&&(t=V&&e.shiftKey?R(e,{end:f}):V?k(e,f,!0):k(e,f)),e.stopPropagation();break;case"Enter":Z.current===e.currentTarget&&J&&(W(e),t=!0),e.stopPropagation();break;case"ArrowDown":V&&e.shiftKey&&A(e,f),C(f),t=!0;break;case"ArrowUp":V&&e.shiftKey&&D(e,f),I(f),t=!0;break;case"ArrowRight":t="rtl"===ie.direction?ce(e):se(e);break;case"ArrowLeft":t="rtl"===ie.direction?se(e):ce(e);break;case"Home":V&&o&&e.shiftKey&&M(e,f),T(),t=!0;break;case"End":V&&o&&e.shiftKey&&N(e,f),_(),t=!0;break;default:"*"===n?(z(e,f),t=!0):V&&o&&"a"===n.toLowerCase()?t=L(e):!o&&!e.shiftKey&&((r=n)&&1===r.length&&r.match(/\S/))&&(P(f,n),t=!0)}t&&(e.preventDefault(),e.stopPropagation()),v&&v(e)}},onFocus:function(e){te||e.currentTarget!==e.target||j(f),m&&m(e)},"aria-expanded":J?ee:null,"aria-selected":ae,ref:X,tabIndex:ne?0:-1},E),l.createElement("div",{className:r.content,onClick:function(e){te||j(f);var t=V&&(e.shiftKey||e.ctrlKey||e.metaKey);!J||e.defaultPrevented||t&&B(f)||W(e,f),t?e.shiftKey?R(e,{end:f}):k(e,f,!0):k(e,f),d&&d(e)},onMouseDown:function(e){(e.shiftKey||e.ctrlKey||e.metaKey)&&e.preventDefault(),b&&b(e)},ref:Y},l.createElement("div",{onClick:g,className:r.iconContainer},Q),l.createElement(ue.a,{onClick:h,component:"div",className:r.label},u)),n&&l.createElement(w,Object(p.a)({unmountOnExit:!0,className:r.group,in:ee,component:"ul",role:"group"},O),n))})),or=Object(a.a)((function(e){return{root:{listStyle:"none",margin:0,padding:0,outline:0,WebkitTapHighlightColor:"transparent","&:focus > $content $label":{backgroundColor:e.palette.action.hover},"&$selected > $content $label":{backgroundColor:Object(er.a)(e.palette.primary.main,e.palette.action.selectedOpacity)},"&$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:Object(er.a)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},expanded:{},selected:{},group:{margin:0,padding:0,marginLeft:17},content:{width:"100%",display:"flex",alignItems:"center",cursor:"pointer"},iconContainer:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},label:{width:"100%",paddingLeft:4,position:"relative","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}}),{name:"MuiTreeItem"})(rr);function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sr(e,t){return sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sr(e,t)}function cr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ur(e);if(t){var o=ur(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lr(this,n)}}function lr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ur(e){return ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ur(e)}var fr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sr(e,t)}(i,e);var t,n,r,o=cr(i);function i(){return ir(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"handleKeyPressed",value:function(e,t){var n=this.props,r=n.expandedNodeIds,o=n.toggleNode;"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||this.selectTreeItem(t),("ArrowLeft"===e.key&&-1!==r.indexOf(t.id)||"ArrowRight"===e.key&&-1===r.indexOf(t.id)&&t.nodes.length>0)&&o(t.id)}},{key:"selectTreeItem",value:function(e){var t=this.props,n=t.setCanvas,r=t.toggleNode,o=t.windowId;if(e.nodes.length>0&&r(e.id),e.data.getCanvasIds()&&0!==e.data.getCanvasIds().length&&!(e.nodes.length>0)){var i=function(e){var t=e.data.__jsonld;if(t.startCanvas&&"string"==typeof t.startCanvas)return t.startCanvas;if(t.start){if("Canvas"===t.start.type&&"string"==typeof t.start.id)return t.start.id;if("SpecificResource"===t.start.type&&"string"==typeof t.start.source)return t.start.source}return e.data.getCanvasIds()[0]}(e);n(o,-1===i.indexOf("#")?i:i.substr(0,i.indexOf("#")))}}},{key:"buildTreeItems",value:function(e,t,n,r){var o=this,i=this.props.classes;return e?e.map((function(e){return u.a.createElement(Ne,{containerRef:n,key:"".concat(e.id,"-scroll"),offsetTop:96,scrollTo:r===e.id},u.a.createElement(or,{key:e.id,nodeId:e.id,classes:{content:i.content,group:i.group,label:i.label,root:i.treeItemRoot,selected:i.selected},label:u.a.createElement("div",{className:Object(je.a)((a={},s=i.visibleNode,c=-1!==t.indexOf(e.id),s in a?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c,a))},e.label),onClick:function(){return o.selectTreeItem(e)},onKeyDown:function(t){return o.handleKeyPressed(t,e)}},e.nodes&&e.nodes.length>0?o.buildTreeItems(e.nodes,t,n,r):null));var a,s,c})):null}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.treeStructure,r=e.visibleNodeIds,o=e.expandedNodeIds,i=e.containerRef,a=e.nodeIdToScrollTo;return n?u.a.createElement(u.a.Fragment,null,u.a.createElement(Kn,{className:t.root,defaultCollapseIcon:u.a.createElement(Yn.a,{color:"action"}),defaultExpandIcon:u.a.createElement(Qn.a,{color:"action"}),defaultEndIcon:u.a.createElement(u.a.Fragment,null),expanded:o},this.buildTreeItems(n.nodes,r,i,a))):u.a.createElement(u.a.Fragment,null)}}])&&ar(t.prototype,n),r&&ar(t,r),i}(l.Component),dr=n(216),pr=Object(r.compose)(Object(a.a)((function(e){return{content:{alignItems:"flex-start",borderLeft:"1px solid transparent",padding:"8px 16px 8px 0",width:"auto"},group:{borderLeft:"1px solid ".concat(e.palette.grey[300])},label:{paddingLeft:0},root:{flexGrow:1},selected:{},treeItemRoot:{"&:focus > $content":{backgroundColor:e.palette.action.selected},"&:hover > $content":{backgroundColor:e.palette.action.hover},"&:hover >$content $label, &:focus > $content $label, &$selected > $content $label, &$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:"transparent"}},visibleNode:{backgroundColor:Object(Wn.fade)(e.palette.highlights.primary,.35),display:"inline"}}})),Object(i.a)(),Object(o.b)((function(e,t){var n=t.id,r=t.windowId;return{expandedNodeIds:Object(dr.b)(e,{companionWindowId:n,windowId:r}),nodeIdToScrollTo:Object(dr.d)(e,{companionWindowId:n,windowId:r}),treeStructure:Object(re.d)(e,{windowId:r}),visibleNodeIds:Object(dr.e)(e,{companionWindowId:n,windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{setCanvas:function(){return e(c.a.apply(D,arguments))},toggleNode:function(t){return e(et.d(r,n,t))}}})),Object(s.a)("SidebarIndexTableOfContents")),hr=pr(fr);function gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t){return mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mr(e,t)}function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wr(e);if(t){var o=wr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return br(this,n)}}function br(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yr(e)}function yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wr(e){return wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wr(e)}var Or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(i,e);var t,n,r,o=vr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleSequenceChange=t.handleSequenceChange.bind(yr(t)),t.handleVariantChange=t.handleVariantChange.bind(yr(t)),t.containerRef=u.a.createRef(),t}return t=i,r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],(n=[{key:"handleSequenceChange",value:function(e){(0,this.props.updateSequence)(e.target.value)}},{key:"handleVariantChange",value:function(e,t){(0,this.props.updateVariant)(t)}},{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.collection,o=t.id,a=t.showMultipart,s=t.sequenceId,c=t.sequences,l=t.t,f=t.variant,d=t.showToc,p=t.windowId;return e="tableOfContents"===f?u.a.createElement(hr,{id:o,containerRef:this.containerRef,windowId:p}):u.a.createElement(zn,{id:o,containerRef:this.containerRef,windowId:p}),u.a.createElement(qe.a,{title:l("canvasIndex"),id:o,windowId:p,ref:this.containerRef,otherRef:this.containerRef,titleControls:u.a.createElement(u.a.Fragment,null,c&&c.length>1&&u.a.createElement(pt.a,null,u.a.createElement(ht.a,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:s,onChange:this.handleSequenceChange,name:"sequenceId",classes:{select:n.select},className:n.selectEmpty},c.map((function(e,t){return u.a.createElement(Ce.a,{value:e.id,key:e.id},u.a.createElement(ue.a,{variant:"body2"},i.getUseableLabel(e,t)))})))),u.a.createElement("div",{className:n.break}),u.a.createElement(en.a,{value:f,onChange:this.handleVariantChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary"},d&&u.a.createElement(nn.a,{title:l("tableOfContentsList"),value:"tableOfContents"},u.a.createElement(tn.a,{className:n.variantTab,value:"tableOfContents","aria-label":l("tableOfContentsList"),"aria-controls":"tab-panel-".concat(o),icon:u.a.createElement(sn.a,{style:{transform:"scale(-1, 1)"}})})),u.a.createElement(nn.a,{title:l("itemList"),value:"item"},u.a.createElement(tn.a,{className:n.variantTab,value:"item","aria-label":l("itemList"),"aria-controls":"tab-panel-".concat(o),icon:u.a.createElement(on.a,null)})),u.a.createElement(nn.a,{title:l("thumbnailList"),value:"thumbnail"},u.a.createElement(tn.a,{className:n.variantTab,value:"thumbnail","aria-label":l("thumbnailList"),"aria-controls":"tab-panel-".concat(o),icon:u.a.createElement(_t.a,null)}))))},u.a.createElement("div",{id:"tab-panel-".concat(o)},r&&u.a.createElement(jt.a,{fullWidth:!0,onClick:a,endIcon:u.a.createElement(ln.a,null)},u.a.createElement(ue.a,{className:n.collectionNavigationButton},i.getUseableLabel(r))),e))}}])&&gr(t.prototype,n),r&&gr(t,r),i}(l.Component);Or.defaultProps={collection:null,sequenceId:null,sequences:[],showToc:!1};var Er=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{break:{flexBasis:"100%",height:0},collectionNavigationButton:{textTransform:"none"},label:{paddingLeft:e.spacing(1)},select:{"&:focus":{backgroundColor:e.palette.background.paper}},selectEmpty:{backgroundColor:e.palette.background.paper},variantTab:{minWidth:"auto"}}})),Object(o.b)((function(e,t){var n=t.id,r=t.windowId,o=Object(re.d)(e,{windowId:r}),i=Object(ie.e)(e,{windowId:r}),a=e.config,s=Object(oe.b)(e,{companionWindowId:n}),c=i.collectionPath||[],l=c&&c[c.length-1],u=Object(re.b)(e,{windowId:r});return{collection:l&&Object(tt.q)(e,{manifestId:l}),config:a,sequenceId:u&&u.id,sequences:Object(re.g)(e,{windowId:r}),showToc:o&&o.nodes&&o.nodes.length>0,variant:s.variant||Object(dr.a)(e,{windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{showMultipart:function(){return e(et.b(r,{content:"collection",position:"right"}))},updateSequence:function(t){return e(St.l(r,{sequenceId:t}))},updateVariant:function(t){return e(et.e(r,n,{variant:t}))}}})),Object(s.a)("WindowSideBarCanvasPanel"))(Or),xr=n(1101),Sr=n(217);function jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _r(e,t){return _r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_r(e,t)}function Cr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pr(e);if(t){var o=Pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ir(this,n)}}function Ir(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pr(e){return Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pr(e)}var kr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}(i,e);var t,n,r,o=Cr(i);function i(){return jr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestLogo,n=e.requiredStatement,r=e.rights,o=e.windowId,i=e.id,a=e.classes,s=e.t;return u.a.createElement(qe.a,{title:s("attributionTitle"),paperClassName:Object(L.a)("attribution-panel"),windowId:o,id:i},u.a.createElement("div",{className:a.section},n&&u.a.createElement(rt.a,{labelValuePairs:n,defaultLabel:s("attribution")}),r&&r.length>0&&u.a.createElement("dl",{className:Object(L.a)("label-value-metadata")},u.a.createElement(ue.a,{variant:"subtitle2",component:"dt"},s("rights")),r.map((function(e){return u.a.createElement(ue.a,{variant:"body1",component:"dd",key:e.toString()},u.a.createElement(Lt.a,{target:"_blank",rel:"noopener noreferrer",href:e},e))})))),t&&u.a.createElement("div",{className:a.section},u.a.createElement(Sr.Img,{src:[t],alt:"",role:"presentation",className:a.logo,unloader:u.a.createElement(xr.a,{className:a.placeholder,variant:"rect",height:60,width:60})})),u.a.createElement(ot.a,this.props))}}])&&Tr(t.prototype,n),r&&Tr(t,r),i}(l.Component);kr.defaultProps={classes:{},manifestLogo:null,requiredStatement:null,rights:null,t:function(e){return e}};var Rr=Object(r.compose)(Object(a.a)((function(e){return{logo:{maxWidth:"100%"},placeholder:{backgroundColor:e.palette.grey[300]},section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),Object(i.a)(),Object(o.b)((function(e,t){t.id;var n=t.windowId;return{manifestLogo:Object(tt.g)(e,{windowId:n}),requiredStatement:Object(tt.s)(e,{windowId:n}),rights:Object(tt.t)(e,{windowId:n})}})),Object(s.a)("AttributionPanel"))(kr),Ar=n(500),Dr=n(307),Mr=n.n(Dr),Nr=n(158),Lr=n.n(Nr),zr=n(57),Wr=n.n(zr),Br=n(26),Fr=n(1050),Hr=n(1109),Ur=n(1094),Vr=n(288),Gr=n(100),qr=Object(Gr.a)(l.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$r=(n(109),n(540)),Kr=n(43),Zr=n(89);function Yr(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xr(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var Qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,s=void 0===a?"any":a,c=e.stringify,l=e.trim,u=void 0!==l&&l;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,l=u?r.trim():r;o&&(l=l.toLowerCase()),n&&(l=Yr(l));var f=e.filter((function(e){var t=(c||a)(e);return o&&(t=t.toLowerCase()),n&&(t=Yr(t)),"start"===s?0===t.indexOf(l):t.indexOf(l)>-1}));return"number"==typeof i?f.slice(0,i):f}}();function Jr(e){var t=e.autoComplete,n=void 0!==t&&t,r=e.autoHighlight,o=void 0!==r&&r,i=e.autoSelect,a=void 0!==i&&i,s=e.blurOnSelect,c=void 0!==s&&s,u=e.clearOnBlur,f=void 0===u?!e.freeSolo:u,d=e.clearOnEscape,h=void 0!==d&&d,g=e.componentName,m=void 0===g?"useAutocomplete":g,v=e.debug,b=void 0!==v&&v,y=e.defaultValue,w=void 0===y?e.multiple?[]:null:y,O=e.disableClearable,E=void 0!==O&&O,x=e.disableCloseOnSelect,S=void 0!==x&&x,j=e.disabledItemsFocusable,T=void 0!==j&&j,_=e.disableListWrap,C=void 0!==_&&_,I=e.filterOptions,P=void 0===I?Qr:I,k=e.filterSelectedOptions,R=void 0!==k&&k,A=e.freeSolo,D=void 0!==A&&A,M=e.getOptionDisabled,N=e.getOptionLabel,L=void 0===N?function(e){return e}:N,z=e.getOptionSelected,W=void 0===z?function(e,t){return e===t}:z,B=e.groupBy,F=e.handleHomeEndKeys,H=void 0===F?!e.freeSolo:F,U=e.id,V=e.includeInputInList,G=void 0!==V&&V,q=e.inputValue,$=e.multiple,K=void 0!==$&&$,Z=e.onChange,Y=e.onClose,X=e.onHighlightChange,Q=e.onInputChange,J=e.onOpen,ee=e.open,te=e.openOnFocus,ne=void 0!==te&&te,re=e.options,oe=e.selectOnFocus,ie=void 0===oe?!e.freeSolo:oe,ae=e.value,se=Object($r.a)(U),ce=L;var le=l.useRef(!1),ue=l.useRef(!0),fe=l.useRef(null),de=l.useRef(null),pe=l.useState(null),he=pe[0],ge=pe[1],me=l.useState(-1),ve=me[0],be=me[1],ye=o?0:-1,we=l.useRef(ye),Oe=Object(Hn.a)({controlled:ae,default:w,name:m}),Ee=Object(Bn.a)(Oe,2),xe=Ee[0],Se=Ee[1],je=Object(Hn.a)({controlled:q,default:"",name:m,state:"inputValue"}),Te=Object(Bn.a)(je,2),_e=Te[0],Ce=Te[1],Ie=l.useState(!1),Pe=Ie[0],ke=Ie[1],Re=Object(Kr.a)((function(e,t){var n;if(K)n="";else if(null==t)n="";else{var r=ce(t);n="string"==typeof r?r:""}_e!==n&&(Ce(n),Q&&Q(e,n,"reset"))}));l.useEffect((function(){Re(null,xe)}),[xe,Re]);var Ae=Object(Hn.a)({controlled:ee,default:!1,name:m,state:"open"}),De=Object(Bn.a)(Ae,2),Me=De[0],Ne=De[1],Le=!K&&null!=xe&&_e===ce(xe),ze=Me,We=ze?P(re.filter((function(e){return!R||!(K?xe:[xe]).some((function(t){return null!==t&&W(e,t)}))})),{inputValue:Le?"":_e,getOptionLabel:ce}):[],Be=Object(Kr.a)((function(e){-1===e?fe.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));l.useEffect((function(){K&&ve>xe.length-1&&(be(-1),Be(-1))}),[xe,K,ve,Be]);var Fe=Object(Kr.a)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(we.current=n,-1===n?fe.current.removeAttribute("aria-activedescendant"):fe.current.setAttribute("aria-activedescendant","".concat(se,"-option-").concat(n)),X&&X(t,-1===n?null:We[n],o),de.current){var i=de.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=de.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=de.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var c=s,l=a.clientHeight+a.scrollTop,u=c.offsetTop+c.offsetHeight;u>l?a.scrollTop=u-a.clientHeight:c.offsetTop-c.offsetHeight*(B?1.3:0)<a.scrollTop&&(a.scrollTop=c.offsetTop-c.offsetHeight*(B?1.3:0))}}else a.scrollTop=0}})),He=Object(Kr.a)((function(e){var t=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,s=void 0===a?"auto":a;if(ze){var c=function(e,t){if(!de.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===We.length||"previous"===t&&-1===n)return-1;var r=de.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!T&&r&&(r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=We.length-1;if("reset"===r)return ye;if("start"===r)return 0;if("end"===r)return e;var t=we.current+r;return t<0?-1===t&&G?-1:C&&-1!==we.current||Math.abs(r)>1?0:e:t>e?t===e+1&&G?-1:C||Math.abs(r)>1?e:0:t}(),i);if(Fe({index:c,reason:s,event:t}),n&&"reset"!==r)if(-1===c)fe.current.value=_e;else{var l=ce(We[c]);fe.current.value=l,0===l.toLowerCase().indexOf(_e.toLowerCase())&&_e.length>0&&fe.current.setSelectionRange(_e.length,l.length)}}})),Ue=l.useCallback((function(){if(ze){var e=K?xe[0]:xe;if(0!==We.length&&null!=e){if(de.current)if(R||null==e)we.current>=We.length-1?Fe({index:We.length-1}):Fe({index:we.current});else{var t=We[we.current];if(K&&t&&-1!==Xr(xe,(function(e){return W(t,e)})))return;var n=Xr(We,(function(t){return W(t,e)}));-1===n?He({diff:"reset"}):Fe({index:n})}}else He({diff:"reset"})}}),[0===We.length,!K&&xe,R,He,Fe,ze,_e,K]),Ve=Object(Kr.a)((function(e){Object(Zr.a)(de,e),e&&Ue()}));l.useEffect((function(){Ue()}),[Ue]);var Ge=function(e){Me||(Ne(!0),J&&J(e))},qe=function(e,t){Me&&(Ne(!1),Y&&Y(e,t))},$e=function(e,t,n,r){xe!==t&&(Z&&Z(e,t,n,r),Se(t))},Ke=l.useRef(!1),Ze=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if(K){var a=Xr(i=Array.isArray(xe)?xe.slice():[],(function(e){return W(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="remove-option")}Re(e,i),$e(e,i,o,{option:t}),S||qe(e,o),(!0===c||"touch"===c&&Ke.current||"mouse"===c&&!Ke.current)&&fe.current.blur()};var Ye=function(e,t){if(K){qe(e,"toggleInput");var n=ve;-1===ve?""===_e&&"previous"===t&&(n=xe.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===xe.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===xe.length||"previous"===t&&-1===n)return-1;var r=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),be(n),Be(n)}},Xe=function(e){le.current=!0,Ce(""),Q&&Q(e,"","clear"),$e(e,K?[]:null,"clear")},Qe=function(e){return function(t){switch(-1!==ve&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(be(-1),Be(-1)),t.key){case"Home":ze&&H&&(t.preventDefault(),He({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ze&&H&&(t.preventDefault(),He({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),He({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ge(t);break;case"PageDown":t.preventDefault(),He({diff:5,direction:"next",reason:"keyboard",event:t}),Ge(t);break;case"ArrowDown":t.preventDefault(),He({diff:1,direction:"next",reason:"keyboard",event:t}),Ge(t);break;case"ArrowUp":t.preventDefault(),He({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ge(t);break;case"ArrowLeft":Ye(t,"previous");break;case"ArrowRight":Ye(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==we.current&&ze){var r=We[we.current],o=!!M&&M(r);if(t.preventDefault(),o)return;Ze(t,r,"select-option"),n&&fe.current.setSelectionRange(fe.current.value.length,fe.current.value.length)}else D&&""!==_e&&!1===Le&&(K&&t.preventDefault(),Ze(t,_e,"create-option","freeSolo"));break;case"Escape":ze?(t.preventDefault(),t.stopPropagation(),qe(t,"escape")):h&&(""!==_e||K&&xe.length>0)&&(t.preventDefault(),t.stopPropagation(),Xe(t));break;case"Backspace":if(K&&""===_e&&xe.length>0){var i=-1===ve?xe.length-1:ve,a=xe.slice();a.splice(i,1),$e(t,a,"remove-option",{option:xe[i]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){ke(!0),ne&&!le.current&&Ge(e)},et=function(e){null===de.current||document.activeElement!==de.current.parentElement?(ke(!1),ue.current=!0,le.current=!1,b&&""!==_e||(a&&-1!==we.current&&ze?Ze(e,We[we.current],"blur"):a&&D&&""!==_e?Ze(e,_e,"blur","freeSolo"):f&&Re(e,xe),qe(e,"blur"))):fe.current.focus()},tt=function(e){var t=e.target.value;_e!==t&&(Ce(t),Q&&Q(e,t,"input")),""===t?E||K||$e(e,null,"clear"):Ge(e)},nt=function(e){Fe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},rt=function(){Ke.current=!0},ot=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ze(e,We[t],"select-option"),Ke.current=!1},it=function(e){return function(t){var n=xe.slice();n.splice(e,1),$e(t,n,"remove-option",{option:xe[e]})}},at=function(e){Me?qe(e,"toggleInput"):Ge(e)},st=function(e){e.target.getAttribute("id")!==se&&e.preventDefault()},ct=function(){fe.current.focus(),ie&&ue.current&&fe.current.selectionEnd-fe.current.selectionStart==0&&fe.current.select(),ue.current=!1},lt=function(e){""!==_e&&Me||at(e)},ut=D&&_e.length>0;ut=ut||(K?xe.length>0:null!==xe);var ft=We;if(B){new Map;ft=We.reduce((function(e,t,n){var r=B(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(p.a)({"aria-owns":ze?"".concat(se,"-popup"):null,role:"combobox","aria-expanded":ze},e,{onKeyDown:Qe(e),onMouseDown:st,onClick:ct})},getInputLabelProps:function(){return{id:"".concat(se,"-label"),htmlFor:se}},getInputProps:function(){return{id:se,value:_e,onBlur:et,onFocus:Je,onChange:tt,onMouseDown:lt,"aria-activedescendant":ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ze?"".concat(se,"-popup"):null,autoComplete:"off",ref:fe,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Xe}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:at}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:it(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(se,"-popup"),"aria-labelledby":"".concat(se,"-label"),ref:Ve,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(K?xe:[xe]).some((function(e){return null!=e&&W(n,e)})),o=!!M&&M(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(se,"-option-").concat(t),onMouseOver:nt,onClick:ot,onTouchStart:rt,"data-option-index":t,"aria-disabled":o,"aria-selected":r}},id:se,inputValue:_e,value:xe,dirty:ut,popupOpen:ze,focused:Pe||-1!==ve,anchorEl:he,setAnchorEl:ge,focusedTag:ve,groupedOptions:ft}}function eo(e){e.anchorEl,e.open;var t=Object(Fn.a)(e,["anchorEl","open"]);return l.createElement("div",t)}var to=l.createElement(Vr.a,{fontSize:"small"}),no=l.createElement(qr,null),ro=l.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,o=e.classes,i=e.className,a=e.clearOnBlur,s=(void 0===a&&e.freeSolo,e.clearOnEscape,e.clearText),c=void 0===s?"Clear":s,u=e.closeIcon,d=void 0===u?to:u,h=e.closeText,g=void 0===h?"Close":h,m=(e.debug,e.defaultValue),v=(void 0===m&&e.multiple,e.disableClearable),b=void 0!==v&&v,y=(e.disableCloseOnSelect,e.disabled),w=void 0!==y&&y,O=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),E=void 0!==O&&O,x=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),S=void 0===x?"auto":x,j=e.freeSolo,T=void 0!==j&&j,_=e.fullWidth,C=void 0!==_&&_,I=e.getLimitTagsText,P=void 0===I?function(e){return"+".concat(e)}:I,k=(e.getOptionDisabled,e.getOptionLabel),R=void 0===k?function(e){return e}:k,A=(e.getOptionSelected,e.groupBy),D=e.handleHomeEndKeys,M=(void 0===D&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),N=void 0===M?-1:M,L=e.ListboxComponent,z=void 0===L?"ul":L,W=e.ListboxProps,B=e.loading,F=void 0!==B&&B,H=e.loadingText,U=void 0===H?"Loading…":H,V=e.multiple,G=void 0!==V&&V,q=e.noOptionsText,$=void 0===q?"No options":q,K=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),Z=void 0===K?"Open":K,Y=(e.options,e.PaperComponent),X=void 0===Y?f.a:Y,Q=e.PopperComponent,J=void 0===Q?Fr.a:Q,ee=e.popupIcon,te=void 0===ee?no:ee,ne=e.renderGroup,re=e.renderInput,oe=e.renderOption,ie=e.renderTags,ae=e.selectOnFocus,se=(void 0===ae&&e.freeSolo,e.size),ce=void 0===se?"medium":se,le=(e.value,Object(Fn.a)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),ue=E?eo:J,fe=Jr(Object(p.a)({},e,{componentName:"Autocomplete"})),de=fe.getRootProps,pe=fe.getInputProps,he=fe.getInputLabelProps,ge=fe.getPopupIndicatorProps,me=fe.getClearProps,ve=fe.getTagProps,be=fe.getListboxProps,ye=fe.getOptionProps,we=fe.value,Oe=fe.dirty,Ee=fe.id,xe=fe.popupOpen,Se=fe.focused,_e=fe.focusedTag,Ce=fe.anchorEl,Ie=fe.setAnchorEl,Pe=fe.inputValue,ke=fe.groupedOptions;if(G&&we.length>0){var Re=function(e){return Object(p.a)({className:Object(je.a)(o.tag,"small"===ce&&o.tagSizeSmall),disabled:w},ve(e))};n=ie?ie(we,Re):we.map((function(e,t){return l.createElement(Te.a,Object(p.a)({label:R(e),size:ce},Re({index:t}),r))}))}if(N>-1&&Array.isArray(n)){var Ae=n.length-N;!Se&&Ae>0&&(n=n.splice(0,N)).push(l.createElement("span",{className:o.tag,key:n.length},P(Ae)))}var De=ne||function(e){return l.createElement("li",{key:e.key},l.createElement(Hr.a,{className:o.groupLabel,component:"div"},e.group),l.createElement("ul",{className:o.groupUl},e.children))},Me=oe||R,Ne=function(e,t){var n=ye({option:e,index:t});return l.createElement("li",Object(p.a)({},n,{className:o.option}),Me(e,{selected:n["aria-selected"],inputValue:Pe}))},Le=!b&&!w,ze=(!T||!0===S)&&!1!==S;return l.createElement(l.Fragment,null,l.createElement("div",Object(p.a)({ref:t,className:Object(je.a)(o.root,i,Se&&o.focused,C&&o.fullWidth,Le&&o.hasClearIcon,ze&&o.hasPopupIcon)},de(le)),re({id:Ee,disabled:w,fullWidth:!0,size:"small"===ce?"small":void 0,InputLabelProps:he(),InputProps:{ref:Ie,className:o.inputRoot,startAdornment:n,endAdornment:l.createElement("div",{className:o.endAdornment},Le?l.createElement(Ur.a,Object(p.a)({},me(),{"aria-label":c,title:c,className:Object(je.a)(o.clearIndicator,Oe&&o.clearIndicatorDirty)}),d):null,ze?l.createElement(Ur.a,Object(p.a)({},ge(),{disabled:w,"aria-label":xe?g:Z,title:xe?g:Z,className:Object(je.a)(o.popupIndicator,xe&&o.popupIndicatorOpen)}),te):null)},inputProps:Object(p.a)({className:Object(je.a)(o.input,-1===_e&&o.inputFocused),disabled:w},pe())})),xe&&Ce?l.createElement(ue,{className:Object(je.a)(o.popper,E&&o.popperDisablePortal),style:{width:Ce?Ce.clientWidth:null},role:"presentation",anchorEl:Ce,open:!0},l.createElement(X,{className:o.paper},F&&0===ke.length?l.createElement("div",{className:o.loading},U):null,0!==ke.length||T||F?null:l.createElement("div",{className:o.noOptions},$),ke.length>0?l.createElement(z,Object(p.a)({className:o.listbox},be(),W),ke.map((function(e,t){return A?De({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ne(t,e.index+n)}))}):Ne(e,t)}))):null)):null)})),oo=Object(a.a)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:Object(p.a)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},Object(Br.a)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),Object(Br.a)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),Object(Br.a)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),Object(Br.a)(t,"&:active",{backgroundColor:e.palette.action.selected}),Object(Br.a)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(ro),io=n(18),ao=44,so=l.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.disableShrink,s=void 0!==a&&a,c=e.size,u=void 0===c?40:c,f=e.style,d=e.thickness,h=void 0===d?3.6:d,g=e.value,m=void 0===g?0:g,v=e.variant,b=void 0===v?"indeterminate":v,y=Object(Fn.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),w={},O={},E={};if("determinate"===b||"static"===b){var x=2*Math.PI*((ao-h)/2);w.strokeDasharray=x.toFixed(3),E["aria-valuenow"]=Math.round(m),w.strokeDashoffset="".concat(((100-m)/100*x).toFixed(3),"px"),O.transform="rotate(-90deg)"}return l.createElement("div",Object(p.a)({className:Object(je.a)(n.root,r,"inherit"!==i&&n["color".concat(Object(io.a)(i))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[b]),style:Object(p.a)({width:u,height:u},O,f),ref:t,role:"progressbar"},E,y),l.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(ao," ").concat(ao)},l.createElement("circle",{className:Object(je.a)(n.circle,s&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[b]),style:w,cx:ao,cy:ao,r:(ao-h)/2,fill:"none",strokeWidth:h})))})),co=Object(a.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(so),lo=n(1118),uo=n(183),fo=n.n(uo),po=n(553),ho=n.n(po),go=n(554),mo=n.n(go);function vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yo(e,t){return yo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yo(e,t)}function wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Eo(e);if(t){var o=Eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oo(this,n)}}function Oo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}var xo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yo(e,t)}(i,e);var t,n,r,o=wo(i);function i(){return vo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"nextSearchResult",value:function(e){var t=this.props,n=t.searchHits;(0,t.selectAnnotation)(n[e+1].annotations[0])}},{key:"previousSearchResult",value:function(e){var t=this.props,n=t.searchHits;(0,t.selectAnnotation)(n[e-1].annotations[0])}},{key:"hasNextResult",value:function(e){var t=this.props.searchHits;return 0!==t.length&&e<t.length-1}},{key:"hasPreviousResult",value:function(e){return 0!==this.props.searchHits.length&&e>0}},{key:"render",value:function(){var e=this,t=this.props,n=t.numTotal,r=t.searchHits,o=t.selectedContentSearchAnnotation,i=t.classes,a=t.t,s="rtl"===t.direction?{transform:"rotate(180deg)"}:{},c=r.findIndex((function(e){return e.annotations.includes(o[0])})),l=r.length;return r.length<n&&(l+="+"),u.a.createElement(u.a.Fragment,null,r.length>0&&u.a.createElement(ue.a,{variant:"body2",align:"center",classes:i},u.a.createElement(me.a,{"aria-label":a("searchPreviousResult"),disabled:!this.hasPreviousResult(c),onClick:function(){return e.previousSearchResult(c)}},u.a.createElement(ho.a,{style:s})),u.a.createElement("span",{style:{unicodeBidi:"plaintext"}},a("pagination",{current:c+1,total:l})),u.a.createElement(me.a,{"aria-label":a("searchNextResult"),disabled:!this.hasNextResult(c),onClick:function(){return e.nextSearchResult(c)}},u.a.createElement(mo.a,{style:s}))))}}])&&bo(t.prototype,n),r&&bo(t,r),i}(l.Component);xo.defaultProps={classes:{},numTotal:void 0,searchHits:[],t:function(e){return e}};var So=n(503),jo=Object(r.compose)(Object(o.b)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{direction:Object(ae.h)(e),numTotal:Object(So.i)(e,{companionWindowId:n,windowId:r}),searchHits:Object(So.m)(e,{companionWindowId:n,windowId:r}),selectedContentSearchAnnotation:Object(So.k)(e,{companionWindowId:n,windowId:r})}}),(function(e,t){var n=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(fe.g.apply(D,[n].concat(r)))}}})),Object(a.a)((function(e){return{body2:{marginLeft:"-16px",width:"100%"}}})),Object(i.a)(),Object(s.a)("SearchPanelNavigation")),To=jo(xo);function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ko(e,t){return ko=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ko(e,t)}function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mo(e);if(t){var o=Mo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ao(this,n)}}function Ao(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Do(e)}function Do(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}var No=function(e){return Wr()(e)?e.match:e},Lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ko(e,t)}(i,e);var t,n,r,o=Ro(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={search:e.query,suggestions:[]},t.handleChange=t.handleChange.bind(Do(t)),t.submitSearch=t.submitSearch.bind(Do(t)),t.getSuggestions=t.getSuggestions.bind(Do(t)),t.selectItem=t.selectItem.bind(Do(t)),t.fetchAutocomplete=Lr()(t.fetchAutocomplete.bind(Do(t)),500),t.receiveAutocomplete=t.receiveAutocomplete.bind(Do(t)),t}return t=i,n=[{key:"componentDidUpdate",value:function(e){var t=this.props.query;t!==e.query&&this.setState({search:t})}},{key:"handleChange",value:function(e,t,n){("reset"!==n||t)&&(this.setState({search:t,suggestions:[]}),t&&this.fetchAutocomplete(t))}},{key:"getSuggestions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.showEmpty,r=void 0!==n&&n,o=this.state.suggestions,i=Mr()(e.trim()).toLowerCase(),a=i.length;return 0!==a||r?o:[]}},{key:"fetchAutocomplete",value:function(e){var t=this.props.autocompleteService;t&&e&&fetch("".concat(t.id,"?q=").concat(e)).then((function(e){return e.json()})).then(this.receiveAutocomplete)}},{key:"receiveAutocomplete",value:function(e){this.setState({suggestions:e.terms})}},{key:"submitSearch",value:function(e){var t=this.props,n=t.companionWindowId,r=t.fetchSearch,o=t.searchService,i=t.windowId,a=this.state.search;e&&e.preventDefault(),a&&r(i,n,"".concat(o.id,"?q=").concat(a),a)}},{key:"selectItem",value:function(e,t,n){t&&No(t)&&this.setState({search:No(t)},this.submitSearch)}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowId,r=e.searchIsFetching,o=e.t,i=e.windowId,a=this.state,s=a.search,c=a.suggestions,l="search-".concat(n);return u.a.createElement(u.a.Fragment,null,u.a.createElement("form",{onSubmit:this.submitSearch,className:t.form},u.a.createElement(oo,{id:l,inputValue:s,options:c,getOptionLabel:No,getOptionSelected:function(e,t){return Mr()(No(e).trim()).toLowerCase()===Mr()(No(t).trim()).toLowerCase()},noOptionsText:"",onChange:this.selectItem,onInputChange:this.handleChange,freeSolo:!0,renderInput:function(e){return u.a.createElement(lo.a,Object.assign({},e,{label:o("searchInputLabel"),InputProps:Co(Co({},e.InputProps),{},{endAdornment:u.a.createElement("div",{className:t.endAdornment},u.a.createElement(me.a,{"aria-label":o("searchSubmitAria"),type:"submit"},u.a.createElement(fo.a,null)),Boolean(r)&&u.a.createElement(co,{className:t.searchProgress,size:50}))})}))}})),u.a.createElement(To,{windowId:i,companionWindowId:n}))}}],n&&Po(t.prototype,n),r&&Po(t,r),i}(l.Component);Lo.defaultProps={autocompleteService:void 0,classes:{},query:"",t:function(e){return e}};var zo={fetchSearch:Ar.a},Wo=Object(r.compose)(Object(o.b)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{autocompleteService:Object(tt.b)(e,{windowId:r}),query:Object(So.j)(e,{companionWindowId:n,windowId:r}),searchIsFetching:Object(So.h)(e,{companionWindowId:n,windowId:r}),searchService:Object(tt.l)(e,{windowId:r})}}),zo),Object(a.a)((function(e){return{endAdornment:{position:"absolute",right:0},form:{paddingBottom:e.spacing(1),paddingRight:e.spacing(1.5),width:"100%"},searchProgress:{position:"absolute",right:0}}})),Object(i.a)(),Object(s.a)("SearchPanelControls"))(Lo),Bo=n(1053),Fo=n(289),Ho=n.n(Fo),Uo=n(300),Vo=n(1054);function Go(e){return function(e){if(Array.isArray(e))return qo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Zo=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.maxChars,i=void 0===o?200:o,a=r.minimum,s=void 0===a?20:a;$o(this,e),this.hit=t,this.annotation=n,this.maxChars=i||200,this.minimum=s||20}var t,n,r;return t=e,(n=[{key:"match",get:function(){return this.hit.match||this.annotation&&this.annotation.resource.resource.chars||"-"}},{key:"charsOnSide",get:function(){var e=(this.maxChars-this.match.length)/2,t=[(this.hit.before||"").length,(this.hit.after||"").length].filter((function(e){return e>0}));return Math.max(Math.min.apply(Math,[e].concat(Go(t))),this.minimum)}},{key:"before",get:function(){return this.hit.before?this.hit.before.substring(this.hit.before.length-this.charsOnSide,this.hit.before.length):""}},{key:"after",get:function(){return this.hit.after?this.hit.after.substring(0,Math.min(this.hit.after.length,this.charsOnSide)):""}}])&&Ko(t.prototype,n),r&&Ko(t,r),e}();function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qo(e,t){return Qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qo(e,t)}function Jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ni(e);if(t){var o=ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ei(this,n)}}function ei(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ti(e)}function ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ni(e)}var ri=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qo(e,t)}(i,e);var t,n,r,o=Jo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleClick=t.handleClick.bind(ti(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.selected&&this.announceHit()}},{key:"componentDidUpdate",value:function(e){var t=this.props.selected;t&&t!==e.selected&&this.announceHit()}},{key:"handleClick",value:function(){var e=this.props,t=e.annotation,n=e.annotationId,r=e.selectAnnotation;t&&n&&r(n)}},{key:"announceHit",value:function(){var e=this.props,t=e.annotation,n=e.annotationLabel,r=e.announcer,o=e.canvasLabel,i=e.hit,a=e.index,s=e.t,c=e.total;if(i){var l=new Zo(i,t);r([s("pagination",{current:a+1,total:c}),o,n,l.before,l.match,l.after].join(" "))}}},{key:"render",value:function(){var e,t=this.props,n=t.adjacent,r=t.annotation,o=t.annotationLabel,i=t.canvasLabel,a=t.classes,s=t.companionWindowId,c=t.containerRef,l=t.hit,f=t.focused,d=t.index,p=t.showDetails,h=t.selected,g=t.t,m=t.windowSelected;if(f&&!h)return null;var v=f?l:l&&new Zo(l,r),b=l&&v.before!==l.before&&v.after!==l.after,y="".concat(s,"-").concat(d);return u.a.createElement(Ne,{containerRef:c,offsetTop:96,scrollTo:m&&!f},u.a.createElement(Vo.a,{className:Object(je.a)(a.listItem,(e={},Yo(e,a.adjacent,n),Yo(e,a.selected,h),Yo(e,a.focused,f),Yo(e,a.windowSelected,m),e)),button:!h,component:"li",onClick:this.handleClick,selected:h},u.a.createElement(Ie.a,{primaryTypographyProps:{variant:"body1"}},u.a.createElement(ue.a,{variant:"subtitle2",className:a.subtitle},u.a.createElement(Te.a,{component:"span",label:d+1,className:a.hitCounter}),u.a.createElement("span",{id:y},i)),o&&u.a.createElement(ue.a,{variant:"subtitle2"},o),l&&u.a.createElement(u.a.Fragment,null,u.a.createElement(Pe.a,{ruleSet:"iiif",htmlString:v.before})," ",u.a.createElement("strong",null,u.a.createElement(Pe.a,{ruleSet:"iiif",htmlString:v.match}))," ",u.a.createElement(Pe.a,{ruleSet:"iiif",htmlString:v.after})," ",b&&!f&&u.a.createElement(jt.a,{className:a.inlineButton,onClick:p,color:"secondary",size:"small","aria-describedby":y},g("more"))),!l&&r&&u.a.createElement(Pe.a,{ruleSet:"iiif",htmlString:r.chars}))))}}])&&Xo(t.prototype,n),r&&Xo(t,r),i}(l.Component);function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ri.defaultProps={adjacent:!1,annotation:void 0,annotationId:void 0,annotationLabel:void 0,canvasLabel:void 0,classes:{},companionWindowId:void 0,containerRef:void 0,focused:!1,hit:void 0,index:void 0,selectAnnotation:function(){},selected:!1,showDetails:function(){},t:function(e){return e},total:void 0,windowSelected:!1};var li=Object(r.compose)(Object(o.b)((function(e,t){var n=t.annotationId,r=t.hit,o=void 0===r?{annotations:[]}:r,i=t.companionWindowId,a=t.windowId,s=n||o.annotations[0],c=Object(So.c)(e,{annotationUri:s,companionWindowId:i,windowId:a}),l=Object(So.d)(e,{annotationUri:s,companionWindowId:i,windowId:a}),u=Object(M.l)(e,{windowId:a}),f=Object(So.k)(e,{companionWindowId:i,windowId:a}),d=Object(le.e)(e,{windowId:a}),p=[n].concat(si(o.annotations));return{adjacent:u.includes(c.targetId),annotation:c,annotationId:s,annotationLabel:l[0],canvasLabel:c&&Object(M.e)(e,{canvasId:c.targetId,windowId:a}),selected:f[0]&&p.includes(f[0]),windowSelected:d&&p.includes(d)}}),(function(e,t){var n=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(fe.g.apply(D,[n].concat(r)))}}})),Object(a.a)((function(e){return{adjacent:{},focused:{},hitCounter:ii(ii({},e.typography.subtitle2),{},{backgroundColor:e.palette.hitCounter.default,height:30,marginRight:e.spacing(1),verticalAlign:"inherit"}),inlineButton:{"& span":{lineHeight:"1.5em"},margin:0,padding:0,textTransform:"none"},listItem:{"&$adjacent":{"& $hitCounter":{backgroundColor:e.palette.highlights.secondary},"&$windowSelected":{"& $hitCounter":{backgroundColor:e.palette.highlights.primary}}},"&$windowSelected":{"& $hitCounter":{backgroundColor:e.palette.highlights.primary},"&$focused":{"&:hover":{backgroundColor:"inherit"},backgroundColor:"inherit"}},borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:8},selected:{},subtitle:{marginBottom:e.spacing(1.5)},windowSelected:{}}})),Object(i.a)(),Object(s.a)("SearchHit")),ui=li(ri);function fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function di(e,t){return di=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},di(e,t)}function pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mi(e);if(t){var o=mi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hi(this,n)}}function hi(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gi(e)}function gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mi(e){return mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mi(e)}var vi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&di(e,t)}(i,e);var t,n,r,o=pi(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={focused:!1},t.toggleFocus=t.toggleFocus.bind(gi(t)),t}return t=i,(n=[{key:"toggleFocus",value:function(){var e=this.state.focused;this.setState({focused:!e})}},{key:"renderSearchHitsAndAnnotations",value:function(e){var t=this,n=this.props,r=n.companionWindowId,o=n.containerRef,i=n.searchAnnotations,a=n.searchHits,s=n.windowId,c=this.state.focused;return 0===a.length&&i.length>0?i.map((function(n,a){return u.a.createElement(ui,{announcer:e,annotationId:n.id,companionWindowId:r,containerRef:o,key:n.id,focused:c,index:a,total:i.length,windowId:s,showDetails:t.toggleFocus})})):a.map((function(n,i){return u.a.createElement(ui,{announcer:e,containerRef:o,companionWindowId:r,key:n.annotations[0],focused:c,hit:n,index:i,total:a.length,windowId:s,showDetails:t.toggleFocus})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.companionWindowId,o=t.containerRef,i=t.isFetching,a=t.fetchSearch,s=t.nextSearch,c=t.query,l=t.searchAnnotations,f=t.searchHits,d=t.searchNumTotal,p=t.t,h=t.windowId,g=this.state.focused,m=c&&!i&&0===f.length&&0===l.length;return u.a.createElement(u.a.Fragment,null,g&&u.a.createElement(Ne,{containerRef:o,offsetTop:96,scrollTo:!0},u.a.createElement(jt.a,{onClick:this.toggleFocus,className:n.navigation,size:"small"},u.a.createElement(Ho.a,null),p("backToResults"))),m&&u.a.createElement(ue.a,{className:n.noResults},p("searchNoResults")),u.a.createElement(Bo.a,{disablePadding:!0},u.a.createElement(Uo.b,null,(function(t){var n=t.announcePolite;return e.renderSearchHitsAndAnnotations(n)}))),s&&u.a.createElement(jt.a,{className:n.moreButton,color:"secondary",onClick:function(){return a(h,r,s,c)}},p("moreResults"),u.a.createElement("br",null),"(".concat(p("searchResultsRemaining",{numLeft:d-f.length}),")")))}}])&&fi(t.prototype,n),r&&fi(t,r),i}(l.Component);function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vi.defaultProps={classes:{},containerRef:void 0,isFetching:!1,nextSearch:void 0,query:void 0,searchAnnotations:[],searchHits:[],searchNumTotal:void 0,t:function(e){return e}};var Oi={fetchSearch:Ar.a},Ei=Object(r.compose)(Object(o.b)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{isFetching:Object(So.h)(e,{companionWindowId:n,windowId:r}),nextSearch:Object(So.b)(e,{companionWindowId:n,windowId:r}),query:Object(So.j)(e,{companionWindowId:n,windowId:r}),searchAnnotations:Object(So.l)(e,{companionWindowId:n,windowId:r}),searchHits:Object(So.m)(e,{companionWindowId:n,windowId:r}),searchNumTotal:Object(So.i)(e,{companionWindowId:n,windowId:r})}}),Oi),Object(a.a)((function(e){return{moreButton:{width:"100%"},navigation:{textTransform:"none"},noResults:yi(yi({},e.typography.h6),{},{padding:e.spacing(2)}),toggleFocus:yi({},e.typography.subtitle1)}})),Object(i.a)(),Object(s.a)("SearchResults"))(vi);function xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Si(e,t){return Si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Si(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_i(e);if(t){var o=_i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ti(this,n)}}function Ti(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_i(e)}var Ci=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Si(e,t)}(i,e);var t,n,r,o=ji(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).containerRef=u.a.createRef(),t}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.fetchSearch,r=e.windowId,o=e.id,i=e.query,a=e.removeSearch,s=e.searchService,c=e.suggestedSearches,l=e.t;return u.a.createElement(qe.a,{ariaLabel:l("searchTitle"),title:u.a.createElement(u.a.Fragment,null,l("searchTitle"),i&&""!==i&&u.a.createElement(Te.a,{className:t.clearChip,color:"secondary",label:l("clearSearch"),onClick:a,onDelete:a,size:"small",variant:"outlined"})),windowId:r,id:o,titleControls:u.a.createElement(Wo,{companionWindowId:o,windowId:r}),ref:this.containerRef},u.a.createElement(Ei,{containerRef:this.containerRef,companionWindowId:o,windowId:r}),n&&c&&""===i&&c.map((function(e){return u.a.createElement(ue.a,{component:"p",key:e,variant:"body1"},u.a.createElement(jt.a,{className:t.inlineButton,color:"secondary",onClick:function(){return n("".concat(s.id,"?q=").concat(e),e)}},l("suggestSearch",{query:e})))})))}}])&&xi(t.prototype,n),r&&xi(t,r),i}(l.Component);Ci.defaultProps={classes:{},fetchSearch:void 0,query:"",suggestedSearches:[],t:function(e){return e}};var Ii=Object(r.compose)(Object(o.b)((function(e,t){var n=t.id,r=t.windowId;return{query:Object(So.j)(e,{companionWindowId:n,windowId:r}),searchService:Object(tt.l)(e,{windowId:r}),suggestedSearches:Object(ie.e)(e,{windowId:r}).suggestedSearches}}),(function(e,t){return{fetchSearch:function(n,r){return e(Ar.a(t.windowId,t.id,n,r))},removeSearch:function(){return e(Ar.d(t.windowId,t.id))}}})),Object(a.a)((function(e){return{clearChip:{marginLeft:e.spacing(1)},inlineButton:{"& span":{lineHeight:"1.5em"},margin:e.spacing(2),padding:0,textAlign:"inherit",textTransform:"none"}}})),Object(i.a)(),Object(s.a)("SearchPanel"))(Ci),Pi=n(512),ki=n(267),Ri=n(143),Ai=n(1104),Di=n(117),Mi=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.disablePointerEvents,c=void 0!==s&&s,u=e.disableTypography,f=void 0!==u&&u,d=e.position,h=e.variant,g=Object(Fn.a)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=Object(Di.b)()||{},v=h;return h&&m.variant,m&&!v&&(v=m.variant),l.createElement(Di.a.Provider,{value:null},l.createElement(a,Object(p.a)({className:Object(je.a)(r.root,o,"end"===d?r.positionEnd:r.positionStart,c&&r.disablePointerEvents,m.hiddenLabel&&r.hiddenLabel,"filled"===v&&r.filled,"dense"===m.margin&&r.marginDense),ref:t},g),"string"!=typeof n||f?n:l.createElement(ue.a,{color:"textSecondary"},n)))})),Ni=Object(a.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Mi),Li=n(112),zi=n(135),Wi=n(48);var Bi=Object(a.a)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Object(p.a)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,o=e.open,i=e.value,a=e.valueLabelDisplay;return"off"===a?t:l.cloneElement(t,{className:Object(je.a)(t.props.className,(o||"on"===a)&&n.open,n.thumb)},l.createElement("span",{className:Object(je.a)(n.offset,r)},l.createElement("span",{className:n.circle},l.createElement("span",{className:n.label},i))))}));function Fi(e,t){return e-t}function Hi(e,t,n){return Math.min(Math.max(t,e),n)}function Ui(e,t){var n=e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null);return n.index}function Vi(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Gi(e,t,n){return 100*(e-t)/(n-t)}function qi(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function $i(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=t.slice();return i[o]=r,i}function Ki(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var Zi={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Yi=function(e){return e},Xi=l.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e["aria-valuetext"],i=e.classes,a=e.className,s=e.color,c=void 0===s?"primary":s,u=e.component,f=void 0===u?"span":u,d=e.defaultValue,h=e.disabled,g=void 0!==h&&h,m=e.getAriaLabel,v=e.getAriaValueText,b=e.marks,y=void 0!==b&&b,w=e.max,O=void 0===w?100:w,E=e.min,x=void 0===E?0:E,S=e.name,j=e.onChange,T=e.onChangeCommitted,_=e.onMouseDown,C=e.orientation,I=void 0===C?"horizontal":C,P=e.scale,k=void 0===P?Yi:P,R=e.step,A=void 0===R?1:R,D=e.ThumbComponent,M=void 0===D?"span":D,N=e.track,L=void 0===N?"normal":N,z=e.value,W=e.ValueLabelComponent,B=void 0===W?Bi:W,F=e.valueLabelDisplay,H=void 0===F?"off":F,U=e.valueLabelFormat,V=void 0===U?Yi:U,G=Object(Fn.a)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),q=Object(tr.a)(),$=l.useRef(),K=l.useState(-1),Z=K[0],Y=K[1],X=l.useState(-1),Q=X[0],J=X[1],ee=Object(Hn.a)({controlled:z,default:d,name:"Slider"}),te=Object(Bn.a)(ee,2),ne=te[0],re=te[1],oe=Array.isArray(ne),ie=oe?ne.slice().sort(Fi):[ne];ie=ie.map((function(e){return Hi(e,x,O)}));var ae=!0===y&&null!==A?Object(Li.a)(Array(Math.floor((O-x)/A)+1)).map((function(e,t){return{value:x+A*t}})):y||[],se=Object(zi.a)(),ce=se.isFocusVisible,le=se.onBlurVisible,ue=se.ref,fe=l.useState(-1),de=fe[0],pe=fe[1],he=l.useRef(),ge=Object(nr.a)(ue,he),me=Object(nr.a)(t,ge),ve=Object(Kr.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));ce(e)&&pe(t),J(t)})),be=Object(Kr.a)((function(){-1!==de&&(pe(-1),le()),J(-1)})),ye=Object(Kr.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));J(t)})),we=Object(Kr.a)((function(){J(-1)})),Oe="rtl"===q.direction,Ee=Object(Kr.a)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=ie[n],o=(O-x)/10,i=ae.map((function(e){return e.value})),a=i.indexOf(r),s=Oe?"ArrowLeft":"ArrowRight",c=Oe?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=x;break;case"End":t=O;break;case"PageUp":A&&(t=r+o);break;case"PageDown":A&&(t=r-o);break;case s:case"ArrowUp":t=A?r+A:i[a+1]||i[i.length-1];break;case c:case"ArrowDown":t=A?r-A:i[a-1]||i[0];break;default:return}if(e.preventDefault(),A&&(t=qi(t,A,x)),t=Hi(t,x,O),oe){var l=t;t=$i({values:ie,source:ne,newValue:t,index:n}).sort(Fi),Ki({sliderRef:he,activeIndex:t.indexOf(l)})}re(t),pe(n),j&&j(e,t),T&&T(e,t)})),xe=l.useRef(),Se=I;Oe&&"vertical"!==I&&(Se+="-reverse");var Te=function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,c=he.current.getBoundingClientRect(),l=c.width,u=c.height,f=c.bottom,d=c.left;if(t=0===Se.indexOf("vertical")?(f-r.y)/u:(r.x-d)/l,-1!==Se.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,x,O),A)n=qi(n,A,x);else{var p=ae.map((function(e){return e.value}));n=p[Ui(p,n)]}n=Hi(n,x,O);var h=0;if(oe){var g=n;h=(n=$i({values:a,source:s,newValue:n,index:h=i?xe.current:Ui(a,n)}).sort(Fi)).indexOf(g),xe.current=h}return{newValue:n,activeIndex:h}},_e=Object(Kr.a)((function(e){var t=Vi(e,$);if(t){var n=Te({finger:t,move:!0,values:ie,source:ne}),r=n.newValue,o=n.activeIndex;Ki({sliderRef:he,activeIndex:o,setActive:Y}),re(r),j&&j(e,r)}})),Ce=Object(Kr.a)((function(e){var t=Vi(e,$);if(t){var n=Te({finger:t,values:ie,source:ne}).newValue;Y(-1),"touchend"===e.type&&J(-1),T&&T(e,n),$.current=void 0;var r=Object(Wi.a)(he.current);r.removeEventListener("mousemove",_e),r.removeEventListener("mouseup",Ce),r.removeEventListener("touchmove",_e),r.removeEventListener("touchend",Ce)}})),Ie=Object(Kr.a)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&($.current=t.identifier);var n=Vi(e,$),r=Te({finger:n,values:ie,source:ne}),o=r.newValue,i=r.activeIndex;Ki({sliderRef:he,activeIndex:i,setActive:Y}),re(o),j&&j(e,o);var a=Object(Wi.a)(he.current);a.addEventListener("touchmove",_e),a.addEventListener("touchend",Ce)}));l.useEffect((function(){var e=he.current;e.addEventListener("touchstart",Ie);var t=Object(Wi.a)(e);return function(){e.removeEventListener("touchstart",Ie),t.removeEventListener("mousemove",_e),t.removeEventListener("mouseup",Ce),t.removeEventListener("touchmove",_e),t.removeEventListener("touchend",Ce)}}),[Ce,_e,Ie]);var Pe=Object(Kr.a)((function(e){_&&_(e),e.preventDefault();var t=Vi(e,$),n=Te({finger:t,values:ie,source:ne}),r=n.newValue,o=n.activeIndex;Ki({sliderRef:he,activeIndex:o,setActive:Y}),re(r),j&&j(e,r);var i=Object(Wi.a)(he.current);i.addEventListener("mousemove",_e),i.addEventListener("mouseup",Ce)})),ke=Gi(oe?ie[0]:x,x,O),Re=Gi(ie[ie.length-1],x,O)-ke,Ae=Object(p.a)({},Zi[Se].offset(ke),Zi[Se].leap(Re));return l.createElement(f,Object(p.a)({ref:me,className:Object(je.a)(i.root,i["color".concat(Object(io.a)(c))],a,g&&i.disabled,ae.length>0&&ae.some((function(e){return e.label}))&&i.marked,!1===L&&i.trackFalse,"vertical"===I&&i.vertical,"inverted"===L&&i.trackInverted),onMouseDown:Pe},G),l.createElement("span",{className:i.rail}),l.createElement("span",{className:i.track,style:Ae}),l.createElement("input",{value:ie.join(","),name:S,type:"hidden"}),ae.map((function(e,t){var n,r=Gi(e.value,x,O),o=Zi[Se].offset(r);return n=!1===L?-1!==ie.indexOf(e.value):"normal"===L&&(oe?e.value>=ie[0]&&e.value<=ie[ie.length-1]:e.value<=ie[0])||"inverted"===L&&(oe?e.value<=ie[0]||e.value>=ie[ie.length-1]:e.value>=ie[0]),l.createElement(l.Fragment,{key:e.value},l.createElement("span",{style:o,"data-index":t,className:Object(je.a)(i.mark,n&&i.markActive)}),null!=e.label?l.createElement("span",{"aria-hidden":!0,"data-index":t,style:o,className:Object(je.a)(i.markLabel,n&&i.markLabelActive)},e.label):null)})),ie.map((function(e,t){var a=Gi(e,x,O),s=Zi[Se].offset(a);return l.createElement(B,{key:t,valueLabelFormat:V,valueLabelDisplay:H,className:i.valueLabel,value:"function"==typeof V?V(k(e),t):V,index:t,open:Q===t||Z===t||"on"===H,disabled:g},l.createElement(M,{className:Object(je.a)(i.thumb,i["thumbColor".concat(Object(io.a)(c))],Z===t&&i.active,g&&i.disabled,de===t&&i.focusVisible),tabIndex:g?null:0,role:"slider",style:s,"data-index":t,"aria-label":m?m(t):n,"aria-labelledby":r,"aria-orientation":I,"aria-valuemax":k(O),"aria-valuemin":k(x),"aria-valuenow":k(e),"aria-valuetext":v?v(k(e),t):o,onKeyDown:Ee,onFocus:ve,onBlur:be,onMouseOver:ye,onMouseLeave:we}))})))})),Qi=Object(a.a)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Object(er.e)(e.palette.primary.main,.62):Object(er.b)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(er.a)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(er.a)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(er.a)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(er.a)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:Object(p.a)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(Xi),Ji=n(552),ea=n.n(Ji),ta=n(550),na=n.n(ta),ra=n(551),oa=n.n(ra);function ia(e,t){return ia=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ia(e,t)}function aa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ia(e,t)}function sa(){return sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}function ca(e,t){var n=Object(l.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(l.useRef)(!0),o=Object(l.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return Object(l.useEffect)((function(){r.current=!1,o.current=i}),[i]),i.result}var la=ca,ua=function(e,t){return ca((function(){return e}),t)},fa="Invariant failed";var da=function(e,t){if(!e)throw new Error(fa)},pa=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ha=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ga=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ma={top:0,right:0,bottom:0,left:0},va=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ma:n,o=e.border,i=void 0===o?ma:o,a=e.padding,s=void 0===a?ma:a,c=pa(ha(t,r)),l=pa(ga(t,i)),u=pa(ga(l,s));return{marginBox:c,borderBox:pa(t),paddingBox:l,contentBox:u,margin:r,border:i,padding:s}},ba=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&da(!1),n},ya=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,c=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return va({borderBox:c,border:i,margin:a,padding:s})},wa=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ya(e,t)},Oa=function(e,t){var n={top:ba(t.marginTop),right:ba(t.marginRight),bottom:ba(t.marginBottom),left:ba(t.marginLeft)},r={top:ba(t.paddingTop),right:ba(t.paddingRight),bottom:ba(t.paddingBottom),left:ba(t.paddingLeft)},o={top:ba(t.borderTopWidth),right:ba(t.borderRightWidth),bottom:ba(t.borderBottomWidth),left:ba(t.borderLeftWidth)};return va({borderBox:e,margin:n,padding:r,border:o})},Ea=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Oa(t,n)},xa=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},Sa=n(32),ja=n.n(Sa);function Ta(e,t){}Ta.bind(null,"warn"),Ta.bind(null,"error");function _a(){}function Ca(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,sa({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}var Ia="Invariant failed";function Pa(e){this.message=e}function ka(e,t){if(!e)throw new Pa(Ia)}Pa.prototype.toString=function(){return this.message};var Ra=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=_a,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Pa&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}aa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Ca(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Pa))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(u.a.Component),Aa=function(e){return e+1},Da=function(e,t){var n=e.droppableId===t.droppableId,r=Aa(e.index),o=Aa(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},Ma=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},Na=function(e){return"\n  The item has returned to its starting position\n  of "+Aa(e.index)+"\n"},La="\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",za=function(e){return"\n  You have lifted an item in position "+Aa(e.source.index)+"\n"},Wa=function(e){var t=e.destination;if(t)return Da(e.source,t);var n=e.combine;return n?Ma(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Ba=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+Na(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+Da(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+Ma(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+Na(e.source)+"\n  "},Fa={x:0,y:0},Ha=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ua=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Va=function(e,t){return e.x===t.x&&e.y===t.y},Ga=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},qa=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},$a=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ka=function(e,t){return Math.min.apply(Math,t.map((function(t){return $a(e,t)})))},Za=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ya=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Xa=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Qa=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=pa({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):pa(e)},Ja=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?Ya(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?sa({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Qa(a,o)}},es=function(e,t){e.frame||ka(!1);var n=e.frame,r=Ua(t,n.scroll.initial),o=Ga(r),i=sa({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return sa({},e,{frame:i,subject:Ja({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function ts(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ns(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function rs(e,t){if(e.find)return e.find(t);var n=ns(e,t);return-1!==n?e[n]:void 0}function os(e){return Array.prototype.slice.call(e)}var is=v((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),as=v((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),ss=v((function(e){return ts(e)})),cs=v((function(e){return ts(e)})),ls=v((function(e,t){return cs(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function us(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function fs(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ds=v((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),ps=function(e,t){return e.descriptor.droppableId===t.descriptor.id},hs={point:Fa,value:0},gs={invisible:{},visible:{},all:[]},ms={displaced:gs,displacedBy:hs,at:null},vs=function(e,t){return function(n){return e<=n&&n<=t}},bs=function(e){var t=vs(e.top,e.bottom),n=vs(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},ys=function(e){var t=vs(e.top,e.bottom),n=vs(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ws={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Os={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Es=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Fa;return Ya(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},xs=function(e){return Es(sa({},e,{isVisibleThroughFrameFn:bs}))},Ss=function(e){return Es(sa({},e,{isVisibleThroughFrameFn:ys}))};function js(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return pa(ha(n,r))}(t,r),c=t.descriptor.id;if(e.all.push(c),!xs({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(c,a,i),u={draggableId:c,shouldAnimate:l};return e.visible[c]=u,e}),{all:[],visible:{},invisible:{}})}function Ts(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:gs,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function _s(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,c=e.forceShouldAnimate,l=ps(t,r);if(null==s)return Ts({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var u=rs(n,(function(e){return e.descriptor.index===s}));if(!u)return Ts({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var f=ds(t,n),d=n.indexOf(u);return{displaced:js({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:c}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function Cs(e,t){return Boolean(t.effected[e])}var Is=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,c=e.viewport,l=e.afterCritical,u=s.at;if(u||ka(!1),"REORDER"===u.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,c=r[r.length-1].descriptor.index;return a<s||a>(n?c:c+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==f?null:_s({draggable:r,insideDestination:a,destination:i,viewport:c,last:s.displaced,displacedBy:s.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return Cs(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:l});return null==d?null:_s({draggable:r,insideDestination:a,destination:i,viewport:c,last:s.displaced,displacedBy:s.displacedBy,index:d})},Ps=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=fs(n);o||ka(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Cs(r,n)?i?Fa:Ga(o.point):i?o.point:Fa}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ha(a,s)},ks=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Rs=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},As=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return qa(t.line,n.marginBox[t.end]+ks(t,r),Rs(t,n.marginBox,r))},Ds=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return qa(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Rs(t,n.marginBox,r))},Ms=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=ls(o.descriptor.id,r),s=n.page,c=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return qa(t.line,n.contentBox[t.start]+ks(t,r),Rs(t,n.contentBox,r))}({axis:c,moveInto:o.page,isMoving:s});var l=t.displaced,u=t.displacedBy,f=l.all[0];if(f){var d=r[f];if(Cs(f,i))return Ds({axis:c,moveRelativeTo:d.page,isMoving:s});var p=ya(d.page,u.point);return Ds({axis:c,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Cs(h.descriptor.id,i)){var g=ya(h.page,Ga(i.displacedBy.point));return As({axis:c,moveRelativeTo:g,isMoving:s})}return As({axis:c,moveRelativeTo:h.page,isMoving:s})},Ns=function(e,t){var n=e.frame;return n?Ha(t,n.scroll.diff.displacement):t},Ls=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?Ms({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):Ps({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Ns(n,t):t},zs=function(e,t){var n=Ua(t,e.scroll.initial),r=Ga(n);return{frame:pa({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Ws(e,t){return e.map((function(e){return t[e]}))}var Bs=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Ha(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ua(r,n.page.borderBox.center);return Ha(n.client.borderBox.center,o)},Fs=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,c=Ua(r,t.page.borderBox.center),l={target:Ya(t.page.borderBox,c),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return Es(sa({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=vs(e.top,e.bottom),r=vs(e.left,e.right);return function(e){return t===ws?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(l):Ss(l)},Hs=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,c=e.previousClientSelection,l=e.afterCritical;if(!r.isEnabled)return null;var u=ls(r.descriptor.id,o),f=ps(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!us(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return sa({},i,{at:t})}var s=i.displaced.all,c=s.length?s[0]:null;if(t)return c?a(c):null;var l=ds(n,o);if(!c)return l.length?a(l[l.length-1].descriptor.id):null;var u=ns(l,(function(e){return e.descriptor.id===c}));-1===u&&ka(!1);var f=u-1;return f<0?null:a(l[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||Is({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:l});if(!d)return null;var p=Ls({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:l});if(Fs({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Bs({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var h=Ua(p,s),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=zs(n,Ha(n.scroll.current,i)),s=r.frame?es(r,Ha(r.frame.scroll.current,i)):r,c=t.displaced,l=js({afterDragging:Ws(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:c,forceShouldAnimate:!1}),u=js({afterDragging:Ws(c.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},d={},p=[c,l,u];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),sa({},t,{displaced:{all:c.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:c,impact:g,scrollJumpRequest:h}},Us=function(e){var t=e.subject.active;return t||ka(!1),t},Vs=function(e,t){var n=e.page.borderBox.center;return Cs(e.descriptor.id,t)?Ua(n,t.displacedBy.point):n},Gs=function(e,t){var n=e.page.borderBox;return Cs(e.descriptor.id,t)?Ya(n,Ga(t.displacedBy.point)):n},qs=v((function(e,t){var n=t[e.line];return{value:n,point:qa(e.line,n)}})),$s=function(e,t){return sa({},e,{scroll:sa({},e.scroll,{max:t})})},Ks=function(e,t,n){var r=e.frame;ps(t,e)&&ka(!1),e.subject.withPlaceholder&&ka(!1);var o=qs(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return qa(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=ls(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:qa(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return sa({},e,{subject:Ja({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var s=i?Ha(r.scroll.max,i):r.scroll.max,c=$s(r,s);return sa({},e,{subject:Ja({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c}),frame:c})},Zs=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,c=e.afterCritical,l=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,c=vs(a[s.start],a[s.end]),l=ss(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return bs(i.frame)(Us(e))})).filter((function(e){var n=Us(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Us(e),n=vs(t[s.start],t[s.end]);return c(t[s.start])||c(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Us(e)[s.crossAxisStart],o=Us(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Us(e)[s.crossAxisStart]===Us(n[0])[s.crossAxisStart]}));if(!l.length)return null;if(1===l.length)return l[0];var u=l.filter((function(e){return vs(Us(e)[s.start],Us(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Us(e)[s.start]-Us(t)[s.start]}))[0]:l.sort((function(e,t){var r=Ka(n,Xa(Us(e))),o=Ka(n,Xa(Us(t)));return r!==o?r-o:Us(e)[s.start]-Us(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!l)return null;var u=ls(l.descriptor.id,i),f=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return Ss({target:Gs(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=$a(t,Ns(r,Vs(e,i))),a=$a(t,Ns(r,Vs(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:l,insideDestination:u,afterCritical:c}),d=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,c=e.afterCritical;if(!n){if(r.length)return null;var l={displaced:gs,displacedBy:hs,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Ls({impact:l,draggable:o,droppable:a,draggables:i,afterCritical:c}),f=ps(o,a)?a:Ks(a,o,i);return Fs({draggable:o,destination:f,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),g=qs(a.axis,o.displaceBy);return _s({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:g,last:gs,index:h})}({previousPageBorderBoxCenter:n,destination:l,draggable:r,draggables:i,moveRelativeTo:f,insideDestination:u,viewport:s,afterCritical:c});if(!d)return null;var p=Ls({impact:d,draggable:r,droppable:l,draggables:i,afterCritical:c});return{clientSelection:Bs({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:d,scrollJumpRequest:null}},Ys=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Xs=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Ys(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,c="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(c&&!o)return null;var l="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,h=d.droppables;return c?Hs({isMovingForward:l,previousPageBorderBoxCenter:f,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Zs({isMovingForward:l,previousPageBorderBoxCenter:f,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Qs(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Js(e){var t=vs(e.top,e.bottom),n=vs(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function ec(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=ss(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Js(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],c=t[i.crossAxisEnd],l=vs(o[i.crossAxisStart],o[i.crossAxisEnd]),u=l(s),f=l(c);return!u&&!f||(u?s<a:c>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=qa(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:$a(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var tc=function(e,t){return pa(Ya(e,t))};function nc(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var rc=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,c=tc(n.page.borderBox,t),l=ec({pageBorderBox:c,draggable:n,droppables:o});if(!l)return ms;var u,f,d=o[l],p=ls(d.descriptor.id,r),h=(u=c,(f=d.frame)?tc(u,f.scroll.diff.value):u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,c=qs(o.axis,t.displaceBy),l=c.value,u=n[s.start],f=n[s.end],d=rs(ds(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=Cs(t,a),c=nc({displaced:r.displaced,id:t});return i?c?f>n[s.start]+o&&f<n[s.end]-o:u>n[s.start]-l+o&&u<n[s.end]-l-o:c?f>n[s.start]+l+o&&f<n[s.end]+l-o:u>n[s.start]+o&&u<n[s.end]-o}));return d?{displacedBy:c,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:h,draggable:n,previousImpact:i,destination:d,insideDestination:p,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,c=r.axis,l=qs(r.axis,n.displaceBy),u=l.value,f=t[c.start],d=t[c.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:rs(ds(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[c.line],r=Cs(t,s),o=nc({displaced:i,id:t});return r?o?d<=n:f<n-u:o?d<=n+u:f<n})),inHomeList:ps(n,r)});return _s({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:l,index:p})}({pageBorderBoxWithDroppableScroll:h,draggable:n,destination:d,insideDestination:p,last:i.displaced,viewport:a,afterCritical:s})},oc=function(e,t){var n;return sa({},e,((n={})[t.descriptor.id]=t,n))},ic=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Ys(t),i=Ys(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||ka(!1);var n=e.frame;if(!n)return sa({},e,{subject:Ja({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||ka(!1);var o=$s(n,r);return sa({},e,{subject:Ja({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return oc(r,s)},ac=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,c=r||t.dimensions,l=n||t.current.client.selection,u=Ua(l,t.initial.client.selection),f={offset:u,selection:l,borderBoxCenter:Ha(t.initial.client.borderBoxCenter,u)},d={selection:Ha(f.selection,s.scroll.current),borderBoxCenter:Ha(f.borderBoxCenter,s.scroll.current),offset:Ha(f.offset,s.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return sa({phase:"COLLECTING"},t,{dimensions:c,viewport:s,current:p});var h=c.draggables[t.critical.draggable.id],g=i||rc({pageOffset:d.offset,draggable:h,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=ic({previousImpact:o,impact:i,droppables:r}),s=Ys(i);if(!s)return a;var c=r[s];if(ps(t,c))return a;if(c.subject.withPlaceholder)return a;var l=Ks(c,t,n);return oc(a,l)}({draggable:h,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return sa({},t,{current:p,dimensions:{draggables:c.draggables,droppables:m},impact:g,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var sc=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return sa({},t,{displaced:js({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},cc=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=Ls({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Bs({pageBorderBoxCenter:s,draggable:n,viewport:i})},lc=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ka(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,c=a.droppables,l=s[t.critical.draggable.id],u=Ys(o);u||ka(!1);var f=c[u],d=sc({impact:o,viewport:i,destination:f,draggables:s}),p=cc({impact:d,draggable:l,droppable:f,draggables:s,viewport:i,afterCritical:t.afterCritical});return ac({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},uc=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=qs(n.axis,t.displaceBy),a=ls(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ka(!1);var c,l=a.slice(s+1),u=l.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:js({afterDragging:l,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(c=t.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:f}},fc=function(e){0},dc=function(e){0},pc=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||ka(!1),t}(n[t]).scroll.diff.value,a=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=ya(t.client,n),i=wa(o,r);return sa({},t,{placeholder:sa({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Ha(o,i),initialWindowScroll:r.scroll.initial});return a}))},hc=function(e){return"SNAP"===e.movementMode},gc=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:oc(e.droppables,t)}}(e.dimensions,t);return!hc(e)||n?ac({state:e,dimensions:r}):lc({state:e,dimensions:r})};function mc(e){return e.isDragging&&"SNAP"===e.movementMode?sa({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var vc={phase:"IDLE",completed:null,shouldFlush:!1},bc=function(e,t){if(void 0===e&&(e=vc),"FLUSH"===t.type)return sa({},vc,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ka(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,c=a.draggables[r.draggable.id],l=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Fa},f={client:u,page:{selection:Ha(u.selection,i.scroll.initial),borderBoxCenter:Ha(u.selection,i.scroll.initial),offset:Ha(u.selection,i.scroll.diff.value)}},d=ss(a.droppables).every((function(e){return!e.isFixedOnPage})),p=uc({draggable:c,home:l,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ka(!1),sa({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ka(!1),function(e){var t=e.state,n=e.published;fc();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return es(n,e.scroll)})),o=sa({},t.dimensions.droppables,{},is(r)),i=as(pc({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=sa({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},c=Ys(t.impact),l=c?s.droppables[c]:null,u=s.draggables[t.critical.draggable.id],f=s.droppables[t.critical.droppable.id],d=uc({draggable:u,home:f,draggables:a,viewport:t.viewport}),p=d.impact,h=d.afterCritical,g=l&&l.isCombineEnabled?t.impact:p,m=rc({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:g,viewport:t.viewport,afterCritical:h});dc();var v=sa({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:p,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:sa({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Qs(e)||ka(!1);var g=t.payload.client;return Va(g,e.current.client.selection)?e:ac({state:e,clientSelection:g,impact:hc(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return mc(e);if("COLLECTING"===e.phase)return mc(e);Qs(e)||ka(!1);var m=t.payload,v=m.id,b=m.newScroll,y=e.dimensions.droppables[v];if(!y)return e;var w=es(y,b);return gc(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Qs(e)||ka(!1);var O=t.payload,E=O.id,x=O.isEnabled,S=e.dimensions.droppables[E];S||ka(!1),S.isEnabled===x&&ka(!1);var j=sa({},S,{isEnabled:x});return gc(e,j,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Qs(e)||ka(!1);var T=t.payload,_=T.id,C=T.isCombineEnabled,I=e.dimensions.droppables[_];I||ka(!1),I.isCombineEnabled===C&&ka(!1);var P=sa({},I,{isCombineEnabled:C});return gc(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Qs(e)||ka(!1),e.isWindowScrollAllowed||ka(!1);var k=t.payload.newScroll;if(Va(e.viewport.scroll.current,k))return mc(e);var R=zs(e.viewport,k);return hc(e)?lc({state:e,viewport:R}):ac({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Qs(e))return e;var A=t.payload.maxScroll;if(Va(A,e.viewport.scroll.max))return e;var D=sa({},e.viewport,{scroll:sa({},e.viewport.scroll,{max:A})});return sa({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ka(!1);var M=Xs({state:e,type:t.type});return M?ac({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var N=t.payload.reason;return"COLLECTING"!==e.phase&&ka(!1),sa({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:N})}if("DROP_ANIMATE"===t.type){var L=t.payload,z=L.completed,W=L.dropDuration,B=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ka(!1),{phase:"DROP_ANIMATING",completed:z,dropDuration:W,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},yc=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},wc=function(){return{type:"COLLECTION_STARTING",payload:null}},Oc=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Ec=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},xc=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Sc=function(e){return{type:"MOVE",payload:e}},jc=function(){return{type:"MOVE_UP",payload:null}},Tc=function(){return{type:"MOVE_DOWN",payload:null}},_c=function(){return{type:"MOVE_RIGHT",payload:null}},Cc=function(){return{type:"MOVE_LEFT",payload:null}},Ic=function(e){return{type:"DROP_COMPLETE",payload:e}},Pc=function(e){return{type:"DROP",payload:e}},kc=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Rc="cubic-bezier(.2,1,.1,1)",Ac={drop:0,combining:.7},Dc={drop:.75},Mc=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Nc={fluid:"opacity "+Mc,snap:"transform "+Mc+", opacity "+Mc,drop:function(e){var t=e+"s "+Rc;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Mc,placeholder:"height "+Mc+", width "+Mc+", margin "+Mc},Lc=function(e){return Va(e,Fa)?null:"translate("+e.x+"px, "+e.y+"px)"},zc=Lc,Wc=function(e,t){var n=Lc(e);return n?t?n+" scale("+Dc.drop+")":n:null},Bc=.33,Fc=.55,Hc=Fc-Bc,Uc=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ka(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ka(!1);var a=o.critical,s=o.dimensions,c=s.draggables[o.critical.draggable.id],l=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:sa({},r,{displaced:gs}),didDropInsideDroppable:!0}:{impact:sc({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=l.impact,f=l.didDropInsideDroppable,d=f?us(u):null,p=f?fs(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:d,combine:p},m=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,c=Ys(t),l=c?s[c]:null,u=s[n.descriptor.droppableId],f=cc({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:l||u,viewport:o});return Ua(f,n.client.borderBox.center)}({impact:u,draggable:c,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(!Va(o.current.client.offset,m)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=$a(t,n);if(o<=0)return Bc;if(o>=1500)return Fc;var i=Bc+Hc*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:m,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:m,dropDuration:b,completed:v}))}else n(Ic({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Vc=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Gc(e){var t=e.onWindowScroll;var n,r=xa((function(){t(Vc())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),i=_a;function a(){return i!==_a}return{start:function(){a()&&ka(!1),i=Ca(window,[o])},stop:function(){a()||ka(!1),r.cancel(),i(),i=_a},isActive:a}}var qc=function(e){var t=Gc({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},$c=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ns(e,(function(e){return e.timerId===t}));-1===n&&ka(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Kc=function(e,t){fc(),t(),dc()},Zc=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Yc=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Xc=function(e,t){var n=function(e,t){var n=$c(),r=null,o=function(n){r||ka(!1),r=null,Kc(0,(function(){return Yc(e().onDragEnd,n,t,Ba)}))};return{beforeCapture:function(t,n){r&&ka(!1),Kc(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ka(!1),Kc(0,(function(){var r=e().onBeforeDragStart;r&&r(Zc(t,n))}))},start:function(o,i){r&&ka(!1);var a=Zc(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Kc(0,(function(){return Yc(e().onDragStart,a,t,za)}))}))},update:function(o,i){var a=us(i),s=fs(i);r||ka(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);c&&(r.lastCritical=o);var l,u,f=(u=a,!(null==(l=r.lastLocation)&&null==u||null!=l&&null!=u&&l.droppableId===u.droppableId&&l.index===u.index));f&&(r.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(d&&(r.lastCombine=s),c||f||d){var p=sa({},Zc(o,r.mode),{combine:s,destination:a});n.add((function(){Kc(0,(function(){return Yc(e().onDragUpdate,p,t,Wa)}))}))}},flush:function(){r||ka(!1),n.flush()},drop:o,abort:function(){if(r){var e=sa({},Zc(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Qc=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ka(!1),e.dispatch(Ic({completed:r.completed}))}else t(n)}}},Jc=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=Ca(window,[i])}))}}}},el=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Pc({reason:r.reason})))}}}},tl=r.compose,nl=function(e){var t,n=e.dimensionMarshal,o=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,s=e.announce,c=e.autoScroller;return Object(r.createStore)(bc,tl(Object(r.applyMiddleware)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,c=i.movementMode,l=n();"DROP_ANIMATING"===l.phase&&r(Ic({completed:l.completed})),"IDLE"!==n().phase&&ka(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:c}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},f=e.startPublishing(u),d=f.critical,p=f.dimensions,h=f.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:p,clientSelection:s,movementMode:c,viewport:h}})}else t(o)}}}}(n),Uc,Qc,Jc,el,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ka(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(c),qc,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(o),Xc(a,s))))};var rl=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Ua({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},ol=function(){var e=document.documentElement;return e||ka(!1),e},il=function(){var e=ol();return rl({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},al=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;fc();var o,i,a,s,c,l,u,f=(o=Vc(),i=il(),a=o.y,s=o.x,c=ol(),l=c.clientWidth,u=c.clientHeight,{frame:pa({top:a,left:s,right:s+l,bottom:a+u}),scroll:{initial:o,current:o,max:i,diff:{value:Fa,displacement:Fa}}}),d=f.scroll.current,p=t.droppable,h=r.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),g=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),m={draggables:as(g),droppables:is(h)};return dc(),{dimensions:m,critical:t,viewport:f}};function sl(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var cl,ll,ul=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,fc();var e=r,i=e.additions,a=e.removals,s=e.modified,c=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Fa)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),l=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:c,removals:Object.keys(a),modified:l};r={additions:{},removals:{},modified:{}},dc(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ka(!1);var o=n.critical.draggable;"ADDITION"===t.type&&sl(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&sl(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ka(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ka(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ka(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ka(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},al({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},fl=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},dl=function(e){window.scrollBy(e.x,e.y)},pl=v((function(e){return ss(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),hl=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){return rs(pl(t),(function(t){return t.frame||ka(!1),Js(t.frame.pageMarginBox)(e)}))}(t,r);return i},gl=.25,ml=.05,vl=28,bl=function(e){return Math.pow(e,2)},yl={stopDampeningAt:1200,accelerateAt:360},wl=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Ol=yl.accelerateAt,El=yl.stopDampeningAt,xl=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return vl;if(e===t.startScrollingFrom)return 1;var n=wl({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=vl*bl(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=El,o=Date.now()-n;if(o>=El)return e;if(o<Ol)return 1;var i=wl({startOfRange:Ol,endOfRange:r,current:o}),a=e*bl(i);return Math.ceil(a)}(i,r),1):i},Sl=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*gl,maxScrollValueAt:e[t.size]*ml}}(t,o);return n[o.end]<n[o.start]?xl({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*xl({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},jl=Za((function(e){return 0===e?0:e})),Tl=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=Sl({container:n,distanceToEdges:a,dragStartTime:t,axis:ws,shouldUseTimeDampening:i}),c=Sl({container:n,distanceToEdges:a,dragStartTime:t,axis:Os,shouldUseTimeDampening:i}),l=jl({x:c,y:s});if(Va(l,Fa))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:l});return u?Va(u,Fa)?null:u:null},_l=Za((function(e){return 0===e?0:e>0?1:-1})),Cl=(cl=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Ha(t,r),i={x:cl(o.x,n.x),y:cl(o.y,n.y)};return Va(i,Fa)?null:i}),Il=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=_l(r),a=Cl({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},Pl=function(e,t){return Il({current:e.scroll.current,max:e.scroll.max,change:t})},kl=function(e,t){var n=e.frame;return!!n&&Il({current:n.scroll.current,max:n.scroll.max,change:t})},Rl=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var c=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=Tl({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&Pl(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(c)return void o(c)}var l=hl({center:a,destination:Ys(t.impact),droppables:t.dimensions.droppables});if(l){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=Tl({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&kl(t,s)?s:null}({dragStartTime:n,droppable:l,subject:s,center:a,shouldUseTimeDampening:r});u&&i(l.descriptor.id,u)}},Al=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!kl(e,t))return t;var r=function(e,t){var n=e.frame;return n&&kl(e,t)?Cl({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ua(t,r);return n(e.descriptor.id,o),Ua(t,o)},i=function(e,t,n){if(!e)return n;if(!Pl(t,n))return n;var o=function(e,t){if(!Pl(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Cl({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Ua(n,o);return r(i),Ua(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Ys(e.impact);r||ka(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,c=i(e.isWindowScrollAllowed,s,a);c&&function(e,n){var r=Ha(e.current.client.selection,n);t({client:r})}(e,c)}}}},Dl=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=xa(t),o=xa(n),i=null,a=function(e){i||ka(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Rl({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){fc(),i&&ka(!1);var t=Date.now(),n=!1,r=function(){n=!0};Rl({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},dc(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Al({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Ml={base:ll="data-rbd-drag-handle",draggableId:ll+"-draggable-id",contextId:ll+"-context-id"},Nl=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Ll=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),zl={contextId:"data-rbd-scroll-container-context-id"},Wl=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Bl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect,Fl=function(){var e=document.querySelector("head");return e||ka(!1),e},Hl=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Ul(e,t){var n=la((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:o(Ml.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n      transition: "+Nc.outOfTheWay+";\n    ",{selector:o(Nl.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Ll.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:Wl(a,"always"),resting:Wl(a,"resting"),dragging:Wl(a,"dragging"),dropAnimating:Wl(a,"dropAnimating"),userCancel:Wl(a,"userCancel")}}(e)}),[e]),r=Object(l.useRef)(null),o=Object(l.useRef)(null),i=ua(v((function(e){var t=o.current;t||ka(!1),t.textContent=e})),[]),a=ua((function(e){var t=r.current;t||ka(!1),t.textContent=e}),[]);Bl((function(){(r.current||o.current)&&ka(!1);var s=Hl(t),c=Hl(t);return r.current=s,o.current=c,s.setAttribute("data-rbd-always",e),c.setAttribute("data-rbd-dynamic",e),Fl().appendChild(s),Fl().appendChild(c),a(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||ka(!1),Fl().removeChild(t),e.current=null};e(r),e(o)}}),[t,a,i,n.always,n.resting,e]);var s=ua((function(){return i(n.dragging)}),[i,n.dragging]),c=ua((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),u=ua((function(){o.current&&i(n.resting)}),[i,n.resting]);return la((function(){return{dragging:s,dropping:c,resting:u}}),[s,c,u])}var Vl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Gl(e){return e instanceof Vl(e).HTMLElement}function ql(e,t){var n="["+Ml.contextId+'="'+e+'"]',r=os(document.querySelectorAll(n));if(!r.length)return null;var o=rs(r,(function(e){return e.getAttribute(Ml.draggableId)===t}));return o&&Gl(o)?o:null}function $l(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ka(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return ts(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ka(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return ts(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Kl=u.a.createContext(null),Zl=function(){var e=document.body;return e||ka(!1),e},Yl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Xl=0,Ql={separator:"::"};function Jl(e,t){return void 0===t&&(t=Ql),la((function(){return""+e+t.separator+Xl++}),[t.separator,e])}var eu=u.a.createContext(null);function tu(e){0}function nu(e,t){tu()}function ru(){nu()}function ou(e){var t=Object(l.useRef)(e);return Object(l.useEffect)((function(){t.current=e})),t}var iu,au=((iu={})[13]=!0,iu[9]=!0,iu),su=function(e){au[e.keyCode]&&e.preventDefault()},cu=function(){var e="visibilitychange";return"undefined"==typeof document?e:rs([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var lu,uu={type:"IDLE"};function fu(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&ka(!1);var c=s.point;if(l=c,u=a,Math.abs(u.x-l.x)>=5||Math.abs(u.y-l.y)>=5){var l,u;e.preventDefault();var f=s.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void su(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ka(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:cu,fn:t}]}function du(){}var pu=((lu={})[34]=!0,lu[33]=!0,lu[36]=!0,lu[35]=!0,lu);function hu(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(pu[r.keyCode]?r.preventDefault():su(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:cu,fn:n}]}var gu={type:"IDLE"};var mu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function vu(e,t){if(null==t)return!1;if(Boolean(mu[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&vu(e,t.parentElement)}function bu(e,t){var n=t.target;return!!Gl(n)&&vu(e,n)}var yu=function(e){return pa(e.getBoundingClientRect()).center};var wu=function(){var e="matches";return"undefined"==typeof document?e:rs([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Ou(e,t){return null==e?null:e[wu](t)?e:Ou(e.parentElement,t)}function Eu(e,t){return e.closest?e.closest(t):Ou(e,t)}function xu(e,t){var n,r=t.target;if(!((n=r)instanceof Vl(n).Element))return null;var o=function(e){return"["+Ml.contextId+'="'+e+'"]'}(e),i=Eu(r,o);return i&&Gl(i)?i:null}function Su(e){e.preventDefault()}function ju(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Tu(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!fl(n.getState(),o))}function _u(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!Tu({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var c=o.draggable.getById(i),l=function(e,t){var n="["+Nl.contextId+'="'+e+'"]',r=rs(os(document.querySelectorAll(n)),(function(e){return e.getAttribute(Nl.id)===t}));return r&&Gl(r)?r:null}(n,c.descriptor.id);if(!l)return null;if(s&&!c.options.canDragInteractiveElements&&bu(l,s))return null;var u=t.claim(a||_a),f="PRE_DRAG";function d(){return c.options.shouldRespectForcePress}function p(){return t.isActive(u)}var h=function(e,t){ju({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Ca(window,[{eventName:"click",fn:Su,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Pc({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ka(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",sa({isActive:function(){return ju({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var m={isActive:function(){return ju({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=xa((function(e){h((function(){return Sc({client:e})}))}));return sa({},g({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(jc)},moveRight:function(){return h(_c)},moveDown:function(){return h(Tc)},moveLeft:function(){return h(Cc)}};return g({liftActionArgs:{id:i,clientSelection:yu(l),movementMode:"SNAP"},cleanup:_a,actions:e})},abort:function(){ju({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}};return m}var Cu=[function(e){var t=Object(l.useRef)(uu),n=Object(l.useRef)(_a),r=la((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),o=la((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=ua((function(){n.current=Ca(window,[o,r],{passive:!1,capture:!0})}),[o,r]),a=ua((function(){"IDLE"!==t.current.type&&(t.current=uu,n.current(),i())}),[i]),s=ua((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),c=ua((function(){var e=fu({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=Ca(window,e,{capture:!0,passive:!1})}),[s,a]),u=ua((function(e,n){"IDLE"!==t.current.type&&ka(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Bl((function(){return i(),function(){n.current()}}),[i])},function(e){var t=Object(l.useRef)(du),n=la((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,c,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=Ca(window,hu(s,c),{capture:!0,passive:!1})}}}function c(){a||ka(!1),a=!1,t.current(),r()}}}}),[e]),r=ua((function(){t.current=Ca(window,[n],{passive:!1,capture:!0})}),[n]);Bl((function(){return r(),function(){t.current()}}),[r])},function(e){var t=Object(l.useRef)(gu),n=Object(l.useRef)(_a),r=ua((function(){return t.current}),[]),o=ua((function(e){t.current=e}),[]),i=la((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),a=ua((function(){n.current=Ca(window,[i],{capture:!0,passive:!1})}),[i]),s=ua((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(gu),n.current(),a())}),[a,o]),c=ua((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=ua((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:r},o=Ca(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ka(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:cu,fn:t}]}(t),e),i=Ca(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:cu,fn:t}]}(t),e);n.current=function(){o(),i()}}),[c,r,s]),f=ua((function(){var e=r();"PENDING"!==e.type&&ka(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),d=ua((function(e,t){"IDLE"!==r().type&&ka(!1);var n=setTimeout(f,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,r,o,f]);Bl((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(gu))}}),[r,a,o]),Bl((function(){return Ca(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Iu(e){var t=e.contextId,n=e.store,r=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(i?Cu:[],o||[]),s=Object(l.useState)((function(){return function(){var e=null;function t(){e||ka(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ka(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=ua((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Bl((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[s,n,c]),Bl((function(){return s.tryAbandon}),[s.tryAbandon]);var u=ua((function(e){return Tu({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),f=ua((function(e,o,i){return _u({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,r,n]),d=ua((function(e){return function(e,t){var n=xu(e,t);return n?n.getAttribute(Ml.draggableId):null}(t,e)}),[t]),p=ua((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),h=ua((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),g=ua(s.isClaimed,[s]),m=la((function(){return{canGetLock:u,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:g}}),[u,f,d,p,h,g]);tu();for(var v=0;v<a.length;v++)a[v](m)}function Pu(e){return e.current||ka(!1),e.current}function ku(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,a=e.nonce,s=e.dragHandleUsageInstructions,c=Object(l.useRef)(null);ru();var f=ou(e),d=ua((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(f.current)}),[f]),p=function(e){var t=la((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=Object(l.useRef)(null);return Object(l.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),sa(e.style,Yl),Zl().appendChild(e),function(){setTimeout((function(){var t=Zl();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),ua((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,r=Jl("hidden-text",{separator:"-"}),o=la((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:r}).contextId+"-"+e.uniqueId;var e}),[r,t]);return Object(l.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Zl().appendChild(e),function(){var t=Zl();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:s}),g=Ul(t,a),m=ua((function(e){Pu(c).dispatch(e)}),[]),v=la((function(){return Object(r.bindActionCreators)({publishWhileDragging:yc,updateDroppableScroll:Oc,updateDroppableIsEnabled:Ec,updateDroppableIsCombineEnabled:xc,collectionStarting:wc},m)}),[m]),b=function(){var e=la($l,[]);return Object(l.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=la((function(){return ul(b,v)}),[b,v]),w=la((function(){return Dl(sa({scrollWindow:dl,scrollDroppable:y.scrollDroppable},Object(r.bindActionCreators)({move:Sc},m)))}),[y.scrollDroppable,m]),O=function(e){var t=Object(l.useRef)({}),n=Object(l.useRef)(null),r=Object(l.useRef)(null),o=Object(l.useRef)(!1),i=ua((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=ua((function(t){var n=ql(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=ua((function(e,t){n.current===e&&(n.current=t)}),[]),c=ua((function(){r.current||o.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),u=ua((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Ml.draggableId)===e&&(n.current=e)}),[]);return Bl((function(){return o.current=!0,function(){o.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),la((function(){return{register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s}}),[i,u,c,s])}(t),E=la((function(){return nl({announce:p,autoScroller:w,dimensionMarshal:y,focusMarshal:O,getResponders:d,styleMarshal:g})}),[p,w,y,O,d,g]);c.current=E;var x=ua((function(){var e=Pu(c);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),S=ua((function(){var e=Pu(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(la((function(){return{isDragging:S,tryAbort:x}}),[S,x]));var j=ua((function(e){return fl(Pu(c).getState(),e)}),[]),T=ua((function(){return Qs(Pu(c).getState())}),[]),_=la((function(){return{marshal:y,focus:O,contextId:t,canLift:j,isMovementAllowed:T,dragHandleUsageInstructionsId:h,registry:b}}),[t,y,h,O,j,T,b]);return Iu({contextId:t,store:E,registry:b,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(l.useEffect)((function(){return x}),[x]),u.a.createElement(eu.Provider,{value:_},u.a.createElement(o.a,{context:Kl,store:E},e.children))}var Ru=0;function Au(e){var t=la((function(){return""+Ru++}),[]),n=e.dragHandleUsageInstructions||La;return u.a.createElement(Ra,null,(function(r){return u.a.createElement(ku,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Du=function(e){return function(t){return e===t}},Mu=Du("scroll"),Nu=Du("auto"),Lu=(Du("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),zu=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Lu(n,Mu)||Lu(n,Nu)},Wu=function e(t){return null==t||t===document.body||t===document.documentElement?null:zu(t)?t:e(t.parentElement)},Bu=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Fu=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Hu=function(e){return{closestScrollable:Wu(e),isFixedOnPage:Fu(e)}},Uu=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,c=e.shouldClipSubject,l=r.closestScrollable,u=function(e,t){var n=Ea(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=ha({top:r,right:a,bottom:i,left:o},n.border);return va({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,l),f=wa(u,o),d=function(){if(!l)return null;var e=Ea(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:wa(e,o),scroll:Bu(l),scrollSize:t,shouldClipSubject:c}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,c=e.closest,l=function(){if(!c)return null;var e=c.scrollSize,t=c.client,n=rl({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:n,diff:{value:Fa,displacement:Fa}}}}(),u="vertical"===i?ws:Os;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:l,subject:Ja({page:s,withPlaceholder:null,axis:u,frame:l})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:f,closest:d});return p},Vu={passive:!1},Gu={passive:!0},qu=function(e){return e.shouldPublishImmediately?Vu:Gu};function $u(e){var t=Object(l.useContext)(e);return t||ka(!1),t}var Ku=function(e){return e&&e.env.closestScrollable||null};function Zu(){}var Yu={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Xu=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Yu:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Nc.placeholder:null}};function Qu(e){var t=Object(l.useRef)(null),n=ua((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,s=Object(l.useState)("open"===e.animate),c=s[0],f=s[1];Object(l.useEffect)((function(){return c?"open"!==r?(n(),f(!1),Zu):t.current?Zu:(t.current=setTimeout((function(){t.current=null,f(!1)})),n):Zu}),[r,c,n]);var d=ua((function(e){"height"===e.propertyName&&(o(),"close"===r&&i())}),[r,i,o]),p=Xu({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return u.a.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":a,onTransitionEnd:d,ref:e.innerRef})}var Ju=u.a.memo(Qu),ef=u.a.createContext(null);var tf=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return aa(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(u.a.PureComponent),nf=5e3,rf=4500,of=function(e,t){return t?Nc.drop(t.duration):e?Nc.snap:Nc.fluid},af=function(e,t){return e?t?Ac.drop:Ac.combining:null};function sf(e){return"DRAGGING"===e.type?(r=(n=e).dimension.client,o=n.offset,i=n.combineWith,a=n.dropping,s=Boolean(i),c=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(n),l=Boolean(a),u=l?Wc(o,s):zc(o),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:of(c,a),transform:u,opacity:af(s,l),zIndex:l?rf:nf,pointerEvents:"none"}):{transform:zc((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t,n,r,o,i,a,s,c,l,u}function cf(e){var t=Jl("draggable"),n=e.descriptor,r=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,c=la((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}}),[i,s,a]),u=ua((function(e){var t=o();return t||ka(!1),function(e,t,n){void 0===n&&(n=Fa);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Oa(o,r),a=wa(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,o]),f=la((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),d=Object(l.useRef)(f),p=Object(l.useRef)(!0);Bl((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),Bl((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,r.draggable.update(f,e)}}),[f,r.draggable])}function lf(e,t,n){nu()}function uf(e){e.preventDefault()}var ff=function(e,t){return e===t},df=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function pf(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var hf={mapped:{type:"SECONDARY",offset:Fa,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:pf(null)}};var gf={dropAnimationFinished:kc},mf=Object(o.b)((function(){var e,t,n,r=(e=v((function(e,t){return{x:e,y:t}})),t=v((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=v((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Ys(r.impact),c=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,l=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,c,l)}var u;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],h=f.result,g=h.mode,m=df(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),b={duration:r.dropDuration,curve:Rc,moveTo:r.newHomeClientOffset,opacity:v?Ac.drop:null,scale:v?Dc.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:m,combineWith:v,mode:g,forceShouldAnimate:null,snapshot:t(g,d,m,v,b)}}}return null}),o=function(){var e=v((function(e,t){return{x:e,y:t}})),t=v(pf),n=v((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Fa,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],c=Boolean(a.inVirtualList&&a.effected[t]),l=fs(i),u=l&&l.draggableId===t?o:null;if(!s){if(!c)return r(u);if(i.displaced.invisible[t])return null;var f=Ga(a.displacedBy.point),d=e(f.x,f.y);return n(d,u,!0)}if(c)return r(u);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||hf}}),gf,null,{context:Kl,pure:!0,areStatePropsEqual:ff})((function(e){var t=Object(l.useRef)(null),n=ua((function(e){t.current=e}),[]),r=ua((function(){return t.current}),[]),o=$u(eu),i=o.contextId,a=o.dragHandleUsageInstructionsId,s=o.registry,c=$u(ef),u=c.type,f=c.droppableId,d=la((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:f}}),[e.draggableId,e.index,u,f]),p=e.children,h=e.draggableId,g=e.isEnabled,m=e.shouldRespectForcePress,v=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,w=e.dropAnimationFinished;lf(),tu(),b||cf(la((function(){return{descriptor:d,registry:s,getDraggableRef:r,canDragInteractiveElements:v,shouldRespectForcePress:m,isEnabled:g}}),[d,s,r,v,m,g]));var O=la((function(){return g?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:uf}:null}),[i,a,h,g]),E=ua((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&w()}),[w,y]),x=la((function(){var e=sf(y),t="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:O}}),[i,O,h,y,E,n]),S=la((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(x,y.snapshot,S)}));function vf(e){return $u(ef).isUsingCloneFor!==e.draggableId||e.isClone?u.a.createElement(mf,e):null}function bf(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return u.a.createElement(vf,sa({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var yf=function(e,t){return e===t.droppable.type},wf=function(e,t){return t.draggables[e.draggable.id]},Of={updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}};var Ef={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ka(!1),document.body}},xf=Object(o.b)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=sa({},e,{shouldAnimatePlaceholder:!1}),n=v((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=v((function(r,o,i,a,s,c){var l=s.descriptor.id;if(s.descriptor.droppableId===r){var u=c?{render:c,dragging:n(s.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:u}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,c=o.renderClone;if(n.isDragging){var l=n.critical;if(!yf(a,l))return t;var u=wf(l,n.dimensions),f=Ys(n.impact)===i;return r(i,s,f,f,u,c)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!yf(a,d.critical))return t;var p=wf(d.critical,n.dimensions);return r(i,s,df(d.result)===i,Ys(d.impact)===i,p,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!yf(a,h.critical))return t;var g=Ys(h.impact)===i,m=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return g?m?e:t:v?e:t}return t}}),Of,null,{context:Kl,pure:!0,areStatePropsEqual:ff})((function(e){var t=Object(l.useContext)(eu);t||ka(!1);var n=t.contextId,r=t.isMovementAllowed,o=Object(l.useRef)(null),i=Object(l.useRef)(null),a=e.children,s=e.droppableId,c=e.type,f=e.mode,d=e.direction,p=e.ignoreContainerClipping,h=e.isDropDisabled,g=e.isCombineEnabled,m=e.snapshot,b=e.useClone,y=e.updateViewportMaxScroll,w=e.getContainerForClone,O=ua((function(){return o.current}),[]),E=ua((function(e){o.current=e}),[]),x=(ua((function(){return i.current}),[]),ua((function(e){i.current=e}),[]));nu();var S=ua((function(){r()&&y({maxScroll:il()})}),[r,y]);!function(e){var t=Object(l.useRef)(null),n=$u(eu),r=Jl("droppable"),o=n.registry,i=n.marshal,a=ou(e),s=la((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=Object(l.useRef)(s),u=la((function(){return v((function(e,n){t.current||ka(!1);var r={x:e,y:n};i.updateDroppableScroll(s.id,r)}))}),[s.id,i]),f=ua((function(){var e=t.current;return e&&e.env.closestScrollable?Bu(e.env.closestScrollable):Fa}),[]),d=ua((function(){var e=f();u(e.x,e.y)}),[f,u]),p=la((function(){return xa(d)}),[d]),h=ua((function(){var e=t.current,n=Ku(e);e&&n||ka(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),g=ua((function(e,r){t.current&&ka(!1);var o=a.current,i=o.getDroppableRef();i||ka(!1);var c=Hu(i),l={ref:i,descriptor:s,env:c,scrollOptions:r};t.current=l;var u=Uu({ref:i,descriptor:s,env:c,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=c.closestScrollable;return f&&(f.setAttribute(zl.contextId,n.contextId),f.addEventListener("scroll",h,qu(l.scrollOptions))),u}),[n.contextId,s,h,a]),m=ua((function(){var e=t.current,n=Ku(e);return e&&n||ka(!1),Bu(n)}),[]),b=ua((function(){var e=t.current;e||ka(!1);var n=Ku(e);t.current=null,n&&(p.cancel(),n.removeAttribute(zl.contextId),n.removeEventListener("scroll",h,qu(e.scrollOptions)))}),[h,p]),y=ua((function(e){var n=t.current;n||ka(!1);var r=Ku(n);r||ka(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),w=la((function(){return{getDimensionAndWatchScroll:g,getScrollWhileDragging:m,dragStopped:b,scroll:y}}),[b,g,m,y]),O=la((function(){return{uniqueId:r,descriptor:s,callbacks:w}}),[w,s,r]);Bl((function(){return c.current=O.descriptor,o.droppable.register(O),function(){t.current&&b(),o.droppable.unregister(O)}}),[w,s,b,O,i,o.droppable]),Bl((function(){t.current&&i.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),Bl((function(){t.current&&i.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:s,type:c,mode:f,direction:d,isDropDisabled:h,isCombineEnabled:g,ignoreContainerClipping:p,getDroppableRef:O});var j=u.a.createElement(tf,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,o=e.animate;return u.a.createElement(Ju,{placeholder:r,onClose:t,innerRef:x,animate:o,contextId:n,onTransitionEnd:S})})),T=la((function(){return{innerRef:E,placeholder:j,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,j,E]),_=b?b.dragging.draggableId:null,C=la((function(){return{droppableId:s,type:c,isUsingCloneFor:_}}),[s,_,c]);return u.a.createElement(ef.Provider,{value:C},a(T,m),function(){if(!b)return null;var e=b.dragging,t=b.render,n=u.a.createElement(vf,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return ja.a.createPortal(n,w())}())}));function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _f(e,t){return _f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_f(e,t)}function Cf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kf(e);if(t){var o=kf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return If(this,n)}}function If(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pf(e)}function Pf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kf(e)}function Rf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Af(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Af(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Af(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}xf.defaultProps=Ef;var Df=function(e,t,n){var r=Array.from(e),o=Rf(r.splice(t,1),1)[0];return r.splice(n,0,o),r},Mf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_f(e,t)}(i,e);var t,n,r,o=Cf(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).droppableId=Object(Ri.a)(),t.onDragEnd=t.onDragEnd.bind(Pf(t)),t.handleOpacityChange=t.handleOpacityChange.bind(Pf(t)),t.setLayerVisibility=t.setLayerVisibility.bind(Pf(t)),t.moveToTop=t.moveToTop.bind(Pf(t)),t}return t=i,n=[{key:"handleOpacityChange",value:function(e,t){var n=this.props,r=n.canvasId;(0,n.updateLayers)(n.windowId,r,jf({},e,{opacity:t/100}))}},{key:"onDragEnd",value:function(e){var t=this.props,n=t.canvasId,r=t.layers,o=t.updateLayers,i=t.windowId;if(e.destination&&e.destination.droppableId===this.droppableId&&e.source.droppableId===this.droppableId){var a=Df(r.map((function(e){return e.id})),e.source.index,e.destination.index);o(i,n,r.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}}},{key:"setLayerVisibility",value:function(e,t){var n=this.props,r=n.canvasId;(0,n.updateLayers)(n.windowId,r,jf({},e,{visibility:t}))}},{key:"moveToTop",value:function(e){var t=this.props,n=t.canvasId,r=t.layers,o=t.updateLayers,i=t.windowId,a=Df(r.map((function(e){return e.id})),r.findIndex((function(t){return t.id===e})),0);o(i,n,r.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}},{key:"renderLayer",value:function(e,t){var n=this,r=this.props,o=r.classes,a=r.layerMetadata,s=r.t,c={height:void 0,width:50},l=c.width,f=c.height,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){jf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({opacity:1,visibility:!0},(a||{})[e.id]);return u.a.createElement("div",{style:{flex:1}},u.a.createElement("div",{style:{alignItems:"flex-start",display:"flex"}},u.a.createElement(N.a,{maxHeight:f,maxWidth:l,resource:e,classes:{image:o.image,root:o.thumbnail}}),u.a.createElement(ue.a,{className:o.label,component:"div",variant:"body1"},i.getUseableLabel(e,t),u.a.createElement("div",null,u.a.createElement(me.a,{"aria-label":s(d.visibility?"layer_hide":"layer_show"),edge:"start",size:"small",onClick:function(){n.setLayerVisibility(e.id,!d.visibility)}},d.visibility?u.a.createElement(pe.a,null):u.a.createElement(ge.a,null)),0!==d.index&&u.a.createElement(me.a,{"aria-label":s("layer_moveToTop"),size:"small",onClick:function(){n.moveToTop(e.id)}},u.a.createElement(na.a,null))))),u.a.createElement("div",{style:{alignItems:"center",display:"flex"}},u.a.createElement(nn.a,{title:s("layer_opacity")},u.a.createElement(oa.a,{className:o.opacityIcon,color:d.visibility?"inherit":"disabled",fontSize:"small"})),u.a.createElement(Ai.a,{classes:{input:o.opacityInput},disabled:!d.visibility,value:Math.round(100*d.opacity),type:"number",min:0,max:100,onChange:function(t){return n.handleOpacityChange(e.id,t.target.value)},endAdornment:u.a.createElement(Ni,{disableTypography:!0,position:"end"},u.a.createElement(ue.a,{variant:"caption"},"%")),inputProps:{"aria-label":s("layer_opacity")}}),u.a.createElement(Qi,{className:o.slider,disabled:!d.visibility,value:100*d.opacity,onChange:function(t,r){return n.handleOpacityChange(e.id,r)}})))}},{key:"renderDraggableLayer",value:function(e,t){var n=this,r=this.props,o=r.classes,i=r.t;return u.a.createElement(bf,{key:e.id,draggableId:e.id,index:t},(function(r,a){return u.a.createElement(Vo.a,Object.assign({ref:r.innerRef},r.draggableProps,{component:"li",className:Object(je.a)(o.listItem,jf({},o.dragging,a.isDragging)),disableGutters:!0,key:e.id}),u.a.createElement("div",Object.assign({},r.dragHandleProps,{className:o.dragHandle}),u.a.createElement(nn.a,{title:i("layer_move")},u.a.createElement(ea.a,null))),n.renderLayer(e,t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.index,o=t.label,i=t.layers,a=t.t,s=t.totalSize;return u.a.createElement(u.a.Fragment,null,s>1&&u.a.createElement(ue.a,{className:n.sectionHeading,variant:"overline"},a("annotationCanvasLabel",{context:"".concat(r+1,"/").concat(s),label:o})),u.a.createElement(Au,{onDragEnd:this.onDragEnd},u.a.createElement(xf,{droppableId:this.droppableId},(function(t,r){return u.a.createElement(Bo.a,Object.assign({className:n.list},t.droppableProps,{ref:t.innerRef}),i&&i.map((function(t,n){return e.renderDraggableLayer(t,n)})),t.placeholder)}))))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],n&&Tf(t.prototype,n),r&&Tf(t,r),i}(l.Component);function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Mf.defaultProps={classes:{},layerMetadata:void 0};var Wf={updateLayers:Pi.a},Bf=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{dragging:{},dragHandle:{alignItems:"center",borderRight:"0.5px solid ".concat(e.palette.divider),display:"flex",flex:1,flexDirection:"row",marginBottom:-1*e.spacing(2)+.5,marginRight:e.spacing(1),marginTop:-1*e.spacing(2),maxWidth:e.spacing(3),width:e.spacing(3)},image:{borderBottom:"1px solid ".concat(e.palette.divider)},label:{paddingLeft:e.spacing(1)},list:{paddingTop:0},listItem:{"& $dragHandle":{"&:hover":{backgroundColor:e.palette.action.hover},backgroundColor:e.palette.shades.light},"&$dragging":{"& $dragHandle, & $dragHandle:hover":{backgroundColor:e.palette.action.selected},backgroundColor:e.palette.action.hover},alignItems:"stretch",borderBottom:"0.5px solid ".concat(e.palette.divider),cursor:"pointer",paddingBottom:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)},opacityIcon:{marginRight:e.spacing(.5)},opacityInput:Lf(Lf({},e.typography.caption),{},{"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},"-moz-appearance":"textfield",textAlign:"right",width:"3ch"}),sectionHeading:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)},slider:{marginLeft:e.spacing(2),marginRight:e.spacing(2),maxWidth:150},thumbnail:{minWidth:50}}})),Object(o.b)((function(e,t){var n=t.canvasId,r=t.windowId;return{label:Object(M.e)(e,{canvasId:n,windowId:r}),layerMetadata:Object(ki.b)(e,{canvasId:n,windowId:r}),layers:Object(ki.d)(e,{canvasId:n,windowId:r})}}),Wf))(Mf);function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uf(e,t){return Uf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uf(e,t)}function Vf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qf(e);if(t){var o=qf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gf(this,n)}}function Gf(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qf(e){return qf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qf(e)}var $f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uf(e,t)}(i,e);var t,n,r,o=Vf(i);function i(){return Ff(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasIds,n=e.id,r=e.t,o=e.windowId;return u.a.createElement(qe.a,{title:r("layers"),id:n,windowId:o},t.map((function(e,n){return u.a.createElement(Bf,{canvasId:e,index:n,key:e,totalSize:t.length,windowId:o})})))}}])&&Hf(t.prototype,n),r&&Hf(t,r),i}(l.Component);$f.defaultProps={canvasIds:[]};var Kf=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{}})),Object(o.b)((function(e,t){t.id;var n=t.windowId;return{canvasIds:Object(M.l)(e,{windowId:n})}})),Object(s.a)("LayersPanel"))($f);function Zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xf(e,t){return Xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xf(e,t)}function Qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ed(e);if(t){var o=ed(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jf(this,n)}}function Jf(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ed(e)}var td=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xf(e,t)}(i,e);var t,n,r,o=Qf(i);function i(){return Zf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.children,r=e.t,o=e.title,i=e.windowId;return u.a.createElement(qe.a,{title:r(o),id:t,windowId:i},n)}}])&&Yf(t.prototype,n),r&&Yf(t,r),i}(l.Component);td.defaultProps={children:null};var nd=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{}})),Object(o.b)((function(e,t){t.id,t.windowId;return{}})),Object(s.a)("CustomPanel"))(td),rd=n(1108),od=n(547),id=n.n(od),ad=["manifest"];function sd(e){return function(e){if(Array.isArray(e))return cd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cd(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ld(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ud(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dd(e,t){return dd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dd(e,t)}function pd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gd(e);if(t){var o=gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hd(this,n)}}function hd(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gd(e)}var md=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dd(e,t)}(i,e);var t,n,r,o=pd(i);function i(){return ud(this,i),o.apply(this,arguments)}return t=i,r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],(n=[{key:"isMultipart",value:function(){var e=this.props.collection;if(!e)return!1;var t=e.getProperty("behavior");return Array.isArray(t)?e.includes("multi-part"):"multi-part"===t}},{key:"render",value:function(){var e=this.props,t=e.canvasNavigation,n=e.classes,r=e.collectionPath,o=e.collection,a=e.id,s=e.isFetching,c=e.manifestId,l=e.parentCollection,f=e.updateCompanionWindow,d=e.updateWindow,p=e.t,h=e.variant,g=e.windowId,m=function(e){var r=e.manifest,o=ld(e,ad);return u.a.createElement(Ce.a,Object.assign({className:n.menuItem,alignItems:"flex-start",button:!0,component:"li",selected:c===r.id},o),"thumbnail"===h&&u.a.createElement(rd.a,null,u.a.createElement(N.a,{resource:r,maxHeight:t.height,maxWidth:t.width})),u.a.createElement(Ie.a,null,i.getUseableLabel(r)))};return u.a.createElement(qe.a,{title:p(this.isMultipart()?"multipartCollection":"collection"),windowId:g,id:a,titleControls:u.a.createElement(u.a.Fragment,null,l&&u.a.createElement(Bo.a,null,u.a.createElement(Vo.a,{button:!0,onClick:function(){return f({collectionPath:r.slice(0,-1)})}},u.a.createElement(rd.a,null,u.a.createElement(id.a,null)),u.a.createElement(Ie.a,{primaryTypographyProps:{variant:"body1"}},i.getUseableLabel(l)))),u.a.createElement(ue.a,{variant:"h6"},o&&i.getUseableLabel(o),s&&u.a.createElement(xr.a,{className:n.placeholder,variant:"text"})))},u.a.createElement(_e.a,null,s&&u.a.createElement(Ce.a,null,u.a.createElement(Ie.a,null,u.a.createElement(xr.a,{className:n.placeholder,variant:"text"}),u.a.createElement(xr.a,{className:n.placeholder,variant:"text"}),u.a.createElement(xr.a,{className:n.placeholder,variant:"text"}))),o&&o.getCollections().map((function(e){return u.a.createElement(m,{key:e.id,onClick:function(){f({collectionPath:[].concat(sd(r),[e.id])})},manifest:e})})),o&&o.getManifests().map((function(e){return u.a.createElement(m,{key:e.id,onClick:function(){d({canvasId:null,collectionPath:r,manifestId:e.id}),f({multipart:!1})},manifest:e})}))))}}])&&fd(t.prototype,n),r&&fd(t,r),i}(l.Component);md.defaultProps={collection:null,collectionPath:[],error:null,isFetching:!1,parentCollection:null,ready:!1,t:function(e){return e},variant:null};var vd=Object(r.compose)(Object(a.a)((function(e){return{label:{paddingLeft:e.spacing(1)},menuItem:{borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:e.spacing(1),whiteSpace:"normal"}}})),Object(i.a)(),Object(o.b)((function(e,t){var n=t.id,r=t.windowId,o=Object(ie.e)(e,{windowId:r}),i=Object(oe.b)(e,{companionWindowId:n}),a=i.collectionPath||o.collectionPath,s=a&&a[a.length-1],c=a&&a[a.length-2],l=s&&Object(ie.b)(e,{manifestId:s}),u=c&&Object(ie.b)(e,{manifestId:c}),f=Object(ie.b)(e,{windowId:r});return{canvasNavigation:e.config.canvasNavigation,collection:l&&Object(tt.q)(e,{manifestId:l.id}),collectionId:s,collectionPath:a,error:l&&l.error,isFetching:l&&l.isFetching,manifestId:f&&f.id,parentCollection:u&&Object(tt.q)(e,{manifestId:u.id}),ready:l&&!!l.json,variant:i.variant||Object(dr.a)(e,{windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(et.e.apply(D,[r,n].concat(o)))},updateWindow:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(St.l.apply(D,[r].concat(n)))}}})),Object(s.a)("WindowSideBarCollectionPanel")),bd={annotations:Je,attribution:Rr,canvas:Er,collection:vd(md),custom:nd,info:Jt,layers:Kf,search:Ii,thumbnailNavigation:ce};t.a=bd},function(e,t,n){var r=n(354),o=n(976),i=n(212),a=n(62);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},,,,,,,,,,function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(319),o=n(194),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var r=n(94);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(41)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}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(e){}return n}},function(e,t,n){"use strict";var r=n(75),o=n(131),i=n(201),a=n(76),s=n(329),c="Array Iterator",l=a.set,u=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(84),o=n(50),i=n(193),a=n(45),s=function(e){return function(t,n,s,c){r(n);var l=o(t),u=i(l),f=a(l.length),d=e?f-1:0,p=e?-1:1;if(s<2)for(;;){if(d in u){c=u[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in u&&(c=n(c,u[d],d,l));return c}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){"use strict";var r=n(33),o=n(39),i=n(331),a=n(71),s=n(168),c=n(21),l=n(132),u=n(83),f=n(45),d=n(427),p=n(670),h=n(95),g=n(147),m=n(144).f,v=n(47).f,b=n(326),y=n(107),w=n(76),O=w.get,E=w.set,x="ArrayBuffer",S="DataView",j="Wrong index",T=r.ArrayBuffer,_=T,C=r.DataView,I=C&&C.prototype,P=Object.prototype,k=r.RangeError,R=p.pack,A=p.unpack,D=function(e){return[255&e]},M=function(e){return[255&e,e>>8&255]},N=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},L=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},z=function(e){return R(e,23,4)},W=function(e){return R(e,52,8)},B=function(e,t){v(e.prototype,t,{get:function(){return O(this)[t]}})},F=function(e,t,n,r){var o=d(n),i=O(e);if(o+t>i.byteLength)throw k(j);var a=O(i.buffer).bytes,s=o+i.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},H=function(e,t,n,r,o,i){var a=d(n),s=O(e);if(a+t>s.byteLength)throw k(j);for(var c=O(s.buffer).bytes,l=a+s.byteOffset,u=r(+o),f=0;f<t;f++)c[l+f]=u[i?f:t-f-1]};if(i){if(!c((function(){T(1)}))||!c((function(){new T(-1)}))||c((function(){return new T,new T(1.5),new T(NaN),T.name!=x}))){for(var U,V=(_=function(e){return l(this,_),new T(d(e))}).prototype=T.prototype,G=m(T),q=0;G.length>q;)(U=G[q++])in _||a(_,U,T[U]);V.constructor=_}g&&h(I)!==P&&g(I,P);var $=new C(new _(2)),K=I.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||s(I,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else _=function(e){l(this,_,x);var t=d(e);E(this,{bytes:b.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},C=function(e,t,n){l(this,C,S),l(e,_,S);var r=O(e).byteLength,i=u(t);if(i<0||i>r)throw k("Wrong offset");if(i+(n=void 0===n?r-i:f(n))>r)throw k("Wrong length");E(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(B(_,"byteLength"),B(C,"buffer"),B(C,"byteLength"),B(C,"byteOffset")),s(C.prototype,{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return L(F(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return L(F(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(F(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(F(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,D,t)},setUint8:function(e,t){H(this,1,e,D,t)},setInt16:function(e,t){H(this,2,e,M,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,M,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,z,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,W,t,arguments.length>2?arguments[2]:void 0)}});y(_,x),y(C,S),e.exports={ArrayBuffer:_,DataView:C}},function(e,t,n){"use strict";var r=n(8),o=n(33),i=n(197),a=n(65),s=n(148),c=n(205),l=n(132),u=n(37),f=n(21),d=n(233),p=n(107),h=n(238);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",b=o[e],y=b&&b.prototype,w=b,O={},E=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(m||y.forEach&&!f((function(){(new b).entries().next()})))))w=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(i(e,!0)){var x=new w,S=x[v](m?{}:-0,1)!=x,j=f((function(){x.has(1)})),T=d((function(e){new b(e)})),_=!m&&f((function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)}));T||((w=t((function(t,n){l(t,w,e);var r=h(new b,t,w);return null!=n&&c(n,r[v],r,g),r}))).prototype=y,y.constructor=w),(j||_)&&(E("delete"),E("has"),g&&E("get")),(_||S)&&E(v),m&&y.clear&&delete y.clear}return O[e]=w,r({global:!0,forced:w!=b},O),p(w,e),m||n.setStrong(w,e,g),w}},function(e,t,n){var r=n(37),o=n(147);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t){var n=Math.expm1,r=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:n},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(106),o=n(33),i=n(21);e.exports=r||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},function(e,t,n){"use strict";var r=n(38);e.exports=function(){var e=r(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}},function(e,t,n){"use strict";var r,o,i=n(242),a=n(337),s=RegExp.prototype.exec,c=String.prototype.replace,l=s,u=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(u||d||f)&&(l=function(e){var t,n,r,o,a=this,l=f&&a.sticky,p=i.call(a),h=a.source,g=0,m=e;return l&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,g++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),u&&(t=a.lastIndex),r=s.call(l?n:a,m),l?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:u&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=l},function(e,t,n){var r=n(83),o=n(70),i=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";n(443);var r=n(65),o=n(21),i=n(41),a=n(243),s=n(71),c=i("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),f=i("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!o((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,f){var h=i(e),g=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=g&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!g||!m||"replace"===e&&(!l||!u||d)||"split"===e&&!p){var v=/./[h],b=n(h,""[e],(function(e,t,n,r,o){return t.exec===a?g&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=b[0],w=b[1];r(String.prototype,e,y),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){var r=n(92),o=n(243);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(854),o=n(80),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(67),o=n(855),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,n(249)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(858),o=n(859),i=n(860),a=n(861),s=n(862);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(253);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(152)(Object,"create");e.exports=r},function(e,t,n){var r=n(880);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(457);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(57),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(258),o=n(57);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},function(e,t,n){var r=n(151),o=n(80);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDragType=void 0,t.MosaicDragType={WINDOW:"MosaicWindow"}},function(e,t,n){var r=n(852),o=n(150);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"f",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return v}));var r=n(9),o=n(88),i=n(97),a=n(36),s=n(265),c=n(66);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=Object(r.createSelector)([i.a,a.e],(function(e){var t=e.window,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},t),n)}));function p(e){var t={};return Object.keys(Object(a.h)(e)).forEach((function(n){t[n]=Object(o.o)(e,{windowId:n})})),t}var h=Object(r.createSelector)([a.h],(function(e){return Object.values(e).filter((function(e){return!0===e.maximized})).map((function(e){return e.id}))})),g=Object(r.createSelector)([a.e,d,c.f,c.c],(function(e,t,n,r){var o=t.views,i=void 0===o?[]:o,a=t.defaultView;if(e&&e.view)return e.view;var s=(i||[]).find((function(e){return e.behaviors&&e.behaviors.some((function(e){return n===e||r.includes(e)}))}));return s&&s.key||a})),m=Object(r.createSelector)([c.f,c.c,d],(function(e,t,n){var r=n.views,o=void 0===r?[]:r,i=n.defaultView;return(o||[]).reduce((function(n,r){return r.key!==i&&r.behaviors&&!r.behaviors.some((function(n){return e===n||t.includes(n)}))||n.push(r.key),n}),[])})),v=Object(r.createSelector)([s.d,a.e,function(e){return Object(a.f)(e).length>1}],(function(e,t,n){return"elastic"===e||n&&t&&!1===t.maximized}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p}));var r=n(9),o=n(36),i=n(40);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return Object(i.a)(e).elasticLayout}var l=Object(r.createSelector)([o.i],(function(e){return e.isFullscreenEnabled}));function u(e){var t=a(Object(i.a)(e).errors.items,1)[0];return Object(i.a)(e).errors[t]}var f=Object(r.createSelector)([o.i],(function(e){return e.type})),d=Object(r.createSelector)([o.i],(function(e){return e.focusedWindowId})),p=function(e,t){var n=t.windowId;return d(e)===n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return f}));var r=n(143),o=n(2);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return{config:e,type:o.a.IMPORT_CONFIG}}function l(e){return{config:e,type:o.a.SET_CONFIG}}function u(e){return{config:e,type:o.a.UPDATE_CONFIG}}function f(e){return{state:a(a({},e),{},{workspace:a(a({},e.workspace),{},{id:Object(r.a)()})}),type:o.a.IMPORT_MIRADOR_STATE}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(9),o=n(46),i=n(53),a=n(40),s=Object(r.createSelector)([i.a],(function(e){return e?new o.a(e).imageResources:[]})),c=Object(r.createSelector)([function(e){return Object(a.a)(e).layers||{}},function(e,t){return t.windowId},function(e,t){return t.canvasId}],(function(e,t,n){return(e[t]||{})[n]})),l=Object(r.createSelector)([s,c],(function(e,t){return t?e.sort((function(e,n){return t[e.id]&&void 0!==t[e.id].index&&t[n.id]&&void 0!==t[n.id].index?t[e.id].index-t[n.id].index:t[e.id]&&void 0!==t[e.id].index?-1:t[n.id]&&void 0!==t[n.id].index?1:0})):e})),u=Object(r.createSelector)([i.l,function(e,t){var n=t.windowId;return function(t){return c(e,{canvasId:t,windowId:n})}}],(function(e,t){return e.reduce((function(e,n){return e[n]=t(n),e}),{})}))},function(e,t,n){var r=n(259),o=n(211);e.exports=function(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:o(t),r(e,0,(t=i-t)<0?0:t)):[]}},function(e,t,n){var r=n(375),o=n(176),i=n(261),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(34),o=n(271),i=n(46),a=n(103);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){var t=e&&e.getServices().find((function(e){return function(e){var t=e.getProperty("type")||[];return Object(a.a)(t).some((function(e){return e.startsWith("ImageService")}))}(e)||r.d.isImageProfile(e.getProfile())}));if(t)return t}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.resource=t,this.iiifOpts=n}var t,n,u;return t=e,u=[{key:"staticImageUrl",value:function(e){return{height:e.getProperty("height"),url:e.id,width:e.getProperty("width")}}},{key:"getPreferredImage",value:function(e){var t=new i.a(e);return t.iiifImageResources[0]||t.imageResource}},{key:"selectBestImageSize",value:function(e,t){var n=Object(a.a)(e.getProperty("sizes")),r={default:!0,height:e.getProperty("height")||Number.MAX_SAFE_INTEGER,width:e.getProperty("width")||Number.MAX_SAFE_INTEGER},o=function(e){return e.width*e.height-t};if((r=n.reduce((function(e,t){var n=o(t);return n<0?e:Math.abs(n)<Math.abs(o(e))?t:e}),r)).width*r.height>6*t&&(r=n.reduce((function(e,t){return Math.abs(o(t))<Math.abs(o(e))?t:e}),r)),!r.default)return r}}],(n=[{key:"iiifThumbnailUrl",value:function(t){var n,o,i,a=120,s=a,c=a,u=this.iiifOpts,f=u.maxHeight,d=u.maxWidth;f&&(s=Math.max(f,a)),d&&(c=Math.max(d,a));var p=l(t);if(!p)return e.staticImageUrl(t);var h=t.getWidth()&&t.getHeight()&&t.getWidth()/t.getHeight(),g=d&&f?d*f:s*c,m=e.selectBestImageSize(p,g);if(m)o=m.width,i=m.height,n="".concat(o,",").concat(i);else if(function(e){var t=e.getProfile();return!t.endsWith("#level1")&&!t.endsWith("#level2")&&("level0"===t||r.d.isLevel0ImageProfile(t))}(p)){if(!p.getProperty("height")&&!p.getProperty("width"))return e.staticImageUrl(t)}else f&&d?function(e){var t=e.getProfile();return!t.endsWith("#level0")&&!t.endsWith("#level1")&&("level2"===t||r.d.isLevel2ImageProfile(t))}(p)?(n="!".concat(c,",").concat(s),o=c,i=s,h&&h>1&&(i=Math.round(c/h)),h&&h<1&&(o=Math.round(s*h))):c/s<h?(n="".concat(c,","),o=c,h&&(i=Math.round(c/h))):(n=",".concat(s),i=s,h&&(o=Math.round(s*h))):f&&!d?(n=",".concat(s),i=s,h&&(o=Math.round(s*h))):!f&&d?(n="".concat(c,","),o=c,h&&(i=Math.round(c/h))):(n=",".concat(a),i=a,h&&(o=Math.round(i*h)));var v=r.d.getImageQuality(p.getProfile()),b=p.id.replace(/\/+$/,""),y=this.getFormat(p);return{height:i,url:[b,"full",n,0,"".concat(v,".").concat(y)].join("/"),width:o}}},{key:"getFormat",value:function(e){var t=this.iiifOpts.preferredFormats,n=void 0===t?[]:t,r=e.getProperty("preferredFormats");if(!r)return"jpg";var o=r.filter((function(e){return n.includes(e)}));return o[0]?o[0]:!r.includes("jpg")&&n.includes("jpg")?"jpg":r[0]?r[0]:"jpg"}},{key:"getSourceContentResource",value:function(t){var n=t.getThumbnail();if(n)return"string"==typeof n.__jsonld?n.__jsonld:t.isCollection()||t.isManifest()||t.isCanvas()||"image"!==t.getType()||!l(t)||l(n)?n:t;if(t.isCollection()){var r=t.getManifests()[0];return r?this.getSourceContentResource(r):void 0}if(t.isManifest()){var i=new o.a(t),a=i.startCanvas||i.canvasAt(0);return a?this.getSourceContentResource(a):void 0}if(t.isCanvas()){var s=e.getPreferredImage(t);return s?this.getSourceContentResource(s):void 0}return"image"===t.getType()?t:void 0}},{key:"get",value:function(){if(this.resource){var e=this.getSourceContentResource(this.resource);if(e)return"string"==typeof e?{url:e}:this.iiifThumbnailUrl(e)}}}])&&c(t.prototype,n),u&&c(t,u),e}();function f(e,t){return new u(e,t).get()}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=t}var t,n,o;return t=e,(n=[{key:"startCanvas",get:function(){var e,t=this.manifest.getSequences()[0];if(t){if(!(e=t.getProperty("startCanvas"))){var n=this.manifest.getProperty("start")||t.getProperty("start");e=n&&(n.id||n.source)}return e&&t.getCanvasById(e)||void 0}}},{key:"canvasAt",value:function(e){var t=this.manifest.getSequences()[0],n=t&&t.getCanvases();return n&&n[e]}}])&&r(t.prototype,n),o&&r(t,o),e}()},function(e,t,n){var r=n(983),o=n(984),i=n(985),a=n(987);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";var r=n(601),o=Object(r.b)();t.a=o},function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext();t.a=o},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(0),i=r(o),a=r(n(32)),s=r(n(383)),c=n(989),l=r(n(990)),u=r(n(1001));function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function O(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?E(e):t}var S={};function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return S[e]||(S[e]=l({strategy:e})),S[e]}var T="react-sizeme: an error occurred whilst stopping to listen to node size changes",_={monitorWidth:!0,monitorHeight:!1,monitorPosition:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function C(e){return e.displayName||e.name||"Component"}var I=function(e){function t(){return f(this,t),x(this,y(t).apply(this,arguments))}return b(t,e),p(t,[{key:"render",value:function(){return o.Children.only(this.props.children)}}]),t}(o.Component);function P(e){var t=e.className,n=e.style,r={};return t||n?(t&&(r.className=t),n&&(r.style=n)):r.style={width:"100%",height:"100%"},i.createElement("div",r)}h(I,"displayName","SizeMeReferenceWrapper"),P.displayName="SizeMePlaceholder";var k=function(e){function t(t){var n=t.explicitRef,r=t.className,o=t.style,a=t.size,s=t.disablePlaceholder,c=(t.onSize,O(t,["explicitRef","className","style","size","disablePlaceholder","onSize"])),l=(null==a||null==a.width&&null==a.height&&null==a.position)&&!s,u={className:r,style:o};null!=a&&(u.size=a);var f=l?i.createElement(P,{className:r,style:o}):i.createElement(e,g({},u,c));return i.createElement(I,{ref:n},f)}return t.displayName="SizeMeRenderer(".concat(C(e),")"),t};function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=e.monitorWidth,n=void 0===t?_.monitorWidth:t,r=e.monitorHeight,o=void 0===r?_.monitorHeight:r,l=e.monitorPosition,u=void 0===l?_.monitorPosition:l,d=e.refreshRate,m=void 0===d?_.refreshRate:d,w=e.refreshMode,O=void 0===w?_.refreshMode:w,S=e.noPlaceholder,I=void 0===S?_.noPlaceholder:S,P=e.resizeDetectorStrategy,A=void 0===P?_.resizeDetectorStrategy:P;s(n||o||u,'You have to monitor at least one of the width, height, or position when using "sizeMe"'),s(m>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),s("throttle"===O||"debounce"===O,'The refreshMode should have a value of "throttle" or "debounce"');var D="throttle"===O?c.throttle:c.debounce;return function(e){var t=k(e),r=function(e){function r(){var e,t;f(this,r);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return h(E(t=x(this,(e=y(r)).call.apply(e,[this].concat(a)))),"domEl",null),h(E(t),"state",{width:void 0,height:void 0,position:void 0}),h(E(t),"uninstall",(function(){if(t.domEl){try{t.detector.uninstall(t.domEl)}catch(e){console.warn(T)}t.domEl=null}})),h(E(t),"determineStrategy",(function(e){e.onSize?(t.callbackState||(t.callbackState=v({},t.state)),t.strategy="callback"):t.strategy="render"})),h(E(t),"strategisedSetState",(function(e){"callback"===t.strategy&&(t.callbackState=e,t.props.onSize(e)),t.setState(e)})),h(E(t),"strategisedGetState",(function(){return"callback"===t.strategy?t.callbackState:t.state})),h(E(t),"refCallback",(function(e){t.element=e})),h(E(t),"hasSizeChanged",(function(e,t){var r=e,i=t,a=r.position||{},s=i.position||{};return n&&r.width!==i.width||o&&r.height!==i.height||u&&(a.top!==s.top||a.left!==s.left||a.bottom!==s.bottom||a.right!==s.right)})),h(E(t),"checkIfSizeChanged",D(m,(function(e){var r=e.getBoundingClientRect(),i=r.width,a=r.height,s=r.right,c=r.left,l=r.top,f=r.bottom,d={width:n?i:null,height:o?a:null,position:u?{right:s,left:c,top:l,bottom:f}:null};t.hasSizeChanged(t.strategisedGetState(),d)&&t.strategisedSetState(d)}))),t}return b(r,e),p(r,[{key:"componentDidMount",value:function(){this.detector=j(A),this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentDidUpdate",value:function(){this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentWillUnmount",value:function(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.uninstall()}},{key:"handleDOMNode",value:function(){var e=this.element&&a.findDOMNode(this.element);e?this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(e)||this.domEl!==e)&&(this.uninstall(),this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):this.uninstall()}},{key:"render",value:function(){var e=R.enableSSRBehaviour||R.noPlaceholders||I||"callback"===this.strategy,n=v({},this.state);return i.createElement(t,g({explicitRef:this.refCallback,size:"callback"===this.strategy?null:n,disablePlaceholder:e},this.props))}}]),r}(i.Component);return h(r,"displayName","SizeMe(".concat(C(e),")")),r.WrappedComponent=e,r}}R.enableSSRBehaviour=!1,R.noPlaceholders=!1;var A=function(e){function t(e){var n;f(this,t),h(E(n=x(this,y(t).call(this,e))),"createComponent",(function(e){n.SizeAware=R(e)((function(e){return e.children}))})),h(E(n),"onSize",(function(e){return n.setState({size:e})}));e.children,e.render;var r=O(e,["children","render"]);return n.createComponent(r),n.state={size:{width:void 0,height:void 0}},n}return b(t,e),p(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=(t.children,t.render,O(t,["children","render"])),r=(e.children,e.render,O(e,["children","render"]));u(n,r)||this.createComponent(n)}},{key:"render",value:function(){var e=this.SizeAware,t=this.props.children||this.props.render;return i.createElement(e,{onSize:this.onSize},t({size:this.state.size}))}}]),t}(o.Component);h(A,"defaultProps",{children:void 0,render:void 0}),R.SizeMe=A,R.withSize=R,e.exports=R},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(18),l=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.color,f=void 0===u?"inherit":u,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,g=void 0===h?"medium":h,m=e.htmlColor,v=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,w=Object(o.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,Object(r.a)({className:Object(a.a)(s.root,l,"inherit"!==f&&s["color".concat(Object(c.a)(f))],"default"!==g&&"medium"!==g&&s["fontSize".concat(Object(c.a)(g))]),focusable:"false",viewBox:y,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},w),n,v?i.createElement("title",null,v):null)}));l.muiName="SvgIcon",t.a=Object(s.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l)},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilitySharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM3.42 2.45L2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41L3.42 2.45zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffSharp");t.default=i},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h12v-4H8v4zm0 5h12v-4H8v4zM8 5v4h12V5H8z"}),"ViewListSharp");t.default=i},function(e,t,n){"use strict";var r=n(0),o=n(100);t.a=Object(o.a)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBackSharp");t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(68),o=n(0),i=n(81);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e,t,n){var s=a(Object(o.useState)((function(){return t(e)})),2),c=s[0],l=s[1],u=Object(o.useCallback)((function(){var o=t(e);Object(r.a)(c,o)||(l(o),n&&n())}),[c,e,n]);return Object(i.a)(u,[]),[c,u]}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutlineSharp");t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(r.a)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,n),a&&o(t,a),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(68),o=n(303),i=n(218);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Object(o.a)({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,Object(i.a)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,s;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Object(r.a)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&a(t.prototype,n),s&&a(t,s),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(81),o=n(290);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t,n){var a=i(Object(o.a)(e,t,n),2),s=a[0],c=a[1];return Object(r.a)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(c,{handlerIds:[t]})}),[e,c]),s}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M21.99 2H2v16h16l4 4-.01-20zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"CommentSharp");t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"getEmptyImage",(function(){return R})),n.d(t,"NativeTypes",(function(){return r}));var r={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(r),n.d(r,"FILE",(function(){return g})),n.d(r,"URL",(function(){return m})),n.d(r,"TEXT",(function(){return v}));var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,n),r&&i(t,r),e}(),s=o((function(){return/firefox/i.test(navigator.userAgent)})),c=o((function(){return Boolean(window.safari)}));function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,c=[],l=[],u=[],f=0;f<r-1;f++)a=t[f+1]-t[f],s=n[f+1]-n[f],l.push(a),c.push(s),u.push(s/a);for(var d=[u[0]],p=0;p<l.length-1;p++){var h=u[p],g=u[p+1];if(h*g<=0)d.push(0);else{a=l[p];var m=l[p+1],v=a+m;d.push(3*v/((v+m)/h+(v+a)/g))}}d.push(u[u.length-1]);for(var b,y=[],w=[],O=0;O<d.length-1;O++){b=u[O];var E=d[O],x=1/l[O],S=E+d[O+1]-b-b;y.push((b-E-S)*x),w.push(S*x*x)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=w}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,c=0,l=i.length-1;c<=l;){var u=t[s=Math.floor(.5*(c+l))];if(u<e)c=s+1;else{if(!(u>e))return n[s];l=s-1}}var f=e-t[a=Math.max(0,l)],d=f*f;return n[a]+r[a]*f+o[a]*d+i[a]*f*d}}])&&l(t.prototype,n),r&&l(t,r),e}();function f(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function d(e){return{x:e.clientX,y:e.clientY}}function p(e,t,n,r,o){var i,a,l="IMG"===(i=t).nodeName&&(s()||!document.documentElement.contains(i)),d=f(l?e:t),p={x:n.x-d.x,y:n.y-d.y},h=e.offsetWidth,g=e.offsetHeight,m=r.anchorX,v=r.anchorY,b=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return c()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(l,t,h,g),y=b.dragPreviewWidth,w=b.dragPreviewHeight,O=o.offsetX,E=o.offsetY,x=0===E||E;return{x:0===O||O?O:new u([0,.5,1],[p.x,p.x/h*y,p.x+y-h]).interpolate(m),y:x?E:(a=new u([0,.5,1],[p.y,p.y/g*w,p.y+w-g]).interpolate(v),c()&&l&&(a+=(window.devicePixelRatio-1)*w),a)}}var h,g="__NATIVE_FILE__",m="__NATIVE_URL__",v="__NATIVE_TEXT__";function b(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(y(h={},g,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),y(h,m,{exposeProperties:{urls:function(e,t){return b(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),y(h,v,{exposeProperties:{text:function(e,t){return b(e,t,"")}},matchesTypes:["Text","text/plain"]}),h);function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&O(t.prototype,n),r&&O(t,r),e}();function x(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(w).filter((function(e){return w[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&S(t.prototype,n),r&&S(t,r),e}();function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P,k=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return f(r.sourceNodes.get(e))},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return r.document&&r.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=d(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=x(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),c=r.sourcePreviewNodes.get(a)||s;if(c){var l=r.getCurrentSourcePreviewNodeOptions(),u=p(s,c,n,{anchorX:l.anchorX,anchorY:l.anchorY},{offsetX:l.offsetX,offsetY:l.offsetY});o.setDragImage(c,u.x,u.y)}}try{o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=x(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,s()||r.actions.hover(t,{clientOffset:d(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:d(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&r.currentNativeSource.loadDataTransfer(e.dataTransfer),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:d(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new j(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return _({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return _({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new E(w[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&I(t.prototype,n),o&&I(t,o),e}();function R(){return P||((P=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),P}t.default=function(e,t){return new k(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return S}));var r=n(0),o=n.n(r),i=(n(11),{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"}),a=function(e){var t=e.message,n=e["aria-live"];return o.a.createElement("div",{style:i,role:"log","aria-live":n},t||"")};a.propTypes={};var s=a;function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,r;c(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=l(this,e.call.apply(e,[this].concat(i))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.oldPolitemessage,r=t.oldPoliteMessageId,o=t.oldAssertiveMessage,i=t.oldAssertiveMessageId,a=e.politeMessage,s=e.politeMessageId,c=e.assertiveMessage,l=e.assertiveMessageId;return n!==a||r!==s?{politeMessage1:t.setAlternatePolite?"":a,politeMessage2:t.setAlternatePolite?a:"",oldPolitemessage:a,oldPoliteMessageId:s,setAlternatePolite:!t.setAlternatePolite}:o!==c||i!==l?{assertiveMessage1:t.setAlternateAssertive?"":c,assertiveMessage2:t.setAlternateAssertive?c:"",oldAssertiveMessage:c,oldAssertiveMessageId:l,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,n=e.assertiveMessage2,r=e.politeMessage1,i=e.politeMessage2;return o.a.createElement("div",null,o.a.createElement(s,{"aria-live":"assertive",message:t}),o.a.createElement(s,{"aria-live":"assertive",message:n}),o.a.createElement(s,{"aria-live":"polite",message:r}),o.a.createElement(s,{"aria-live":"polite",message:i}))},t}(r.Component);u.propTypes={};var f=u;function d(){console.warn("Announcement failed, LiveAnnouncer context is missing")}var p=o.a.createContext({announceAssertive:d,announcePolite:d});var h=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,n=e.politeMessageId,r=e.announceAssertiveMessage,i=e.assertiveMessageId,a=e.updateFunctions;return o.a.createElement(p.Provider,{value:a},this.props.children,o.a.createElement(f,{assertiveMessage:r,assertiveMessageId:i,politeMessage:t,politeMessageId:n}))},t}(r.Component),g=n(391),m=n.n(g);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=function(e){function t(){var n,r;v(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=b(this,e.call.apply(e,[this].concat(i))),r.announce=function(){var e=r.props,t=e.message,n=e["aria-live"],o=e.announceAssertive,i=e.announcePolite;"assertive"===n&&o(t||"",m()()),"polite"===n&&i(t||"",m()())},b(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,n=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(n(""),r(""))},t.prototype.render=function(){return null},t}(r.Component);y.propTypes={};var w=y,O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=function(e){return o.a.createElement(p.Consumer,null,(function(t){return o.a.createElement(w,O({},t,e))}))};E.propTypes={};var x=function(e){var t=e.children;return o.a.createElement(p.Consumer,null,(function(e){return t(e)}))};x.propTypes={};var S=x},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(0),o=n.n(r),i=n(32),a=(n(11),/^-?\d*\.?\d+(px|%)$/);function s(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length?e.some((function(n,r){return s(e[r],t[r])})):e!==t}var c=new Map;function l(e){void 0===e&&(e={});for(var t,n=e.root||null,r=function(e){var t=(e?e.trim():"0px").split(/\s+/).map((function(e){if(!a.test(e))throw new Error("rootMargin must be a string literal containing pixels and/or percent values");return e})),n=t[0],r=void 0===n?"0px":n,o=t[1],i=void 0===o?r:o,s=t[2],c=void 0===s?r:s,l=t[3];return r+" "+i+" "+c+" "+(void 0===l?i:l)}(e.rootMargin),o=Array.isArray(e.threshold)?e.threshold:[null!=e.threshold?e.threshold:0],i=c.keys();t=i.next().value;){if(!(n!==t.root||r!==t.rootMargin||s(o,t.thresholds)))return t}return null}function u(e,t){var n=c.get(e);if(n)for(var r,o=n.values();r=o.next().value;)if(r.target===t.target)return r;return null}function f(e,t){for(var n=0;n<e.length;n++){var r=u(t,e[n]);r&&r.handleChange(e[n])}}function d(e){return l(e)||new IntersectionObserver(f,e)}function p(e){c.has(e.observer)||c.set(e.observer,new Set),c.get(e.observer).add(e),e.observer.observe(e.target)}function h(e,t){if(c.has(e.observer)){var n=c.get(e.observer);n.delete(e)&&(n.size>0?e.observer.unobserve(t):(e.observer.disconnect(),c.delete(e.observer)))}}var g=n(383),m=n.n(g),v={},b=Object.create(null,{errorReporter:{configurable:!1,get:function(){return v.errorReporter||function(e){return m()(!1,e)}},set:function(e){if("function"!=typeof e)throw new Error("ReactIntersectionObserver: `Config.errorReporter` must be a callable");v.errorReporter=e}}});function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=["root","rootMargin","threshold"],E=["root","rootMargin","threshold","disabled"],x=Object.prototype,S=x.hasOwnProperty,j=x.toString,T=function(e){return O.reduce((function(t,n){if(S.call(e,n)){var r="root"===n&&"[object String]"===j.call(e[n]);t[n]=r?document.querySelector(e[n]):e[n]}return t}),{})},_=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return w(y(t=e.call.apply(e,[this].concat(r))||this),"handleChange",(function(e){t.props.onChange(e,t.externalUnobserve)})),w(y(t),"handleNode",(function(e){var n=t.props.children;if(null!=n){var r=n.ref;r&&("function"==typeof r?r(e):"object"==typeof r&&(r.current=e))}t.targetNode=e&&Object(i.findDOMNode)(e)})),w(y(t),"observe",(function(){return null!=t.props.children&&!t.props.disabled&&(t.targetNode?(t.observer=d(T(t.props)),t.target=t.targetNode,p(y(t)),!0):(b.errorReporter("ReactIntersectionObserver: Can't find DOM node in the provided children. Make sure to render at least one DOM node in the tree."),!1))})),w(y(t),"unobserve",(function(e){h(y(t),e)})),w(y(t),"externalUnobserve",(function(){t.unobserve(t.targetNode)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getSnapshotBeforeUpdate=function(e){var t=this;this.prevTargetNode=this.targetNode;var n=E.some((function(n){return s(t.props[n],e[n])}));return n&&this.prevTargetNode&&(e.disabled||this.unobserve(this.prevTargetNode)),n},a.componentDidUpdate=function(e,t,n){var r=!1;n||(r=this.prevTargetNode!==this.targetNode)&&null!=this.prevTargetNode&&this.unobserve(this.prevTargetNode),(n||r)&&this.observe()},a.componentDidMount=function(){this.observe()},a.componentWillUnmount=function(){this.targetNode&&this.unobserve(this.targetNode)},a.render=function(){var e=this.props.children;return null!=e?o.a.cloneElement(o.a.Children.only(e),{ref:this.handleNode}):null},r}(o.a.Component);w(_,"displayName","IntersectionObserver")},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(1119),a=n(6),s=n(88),c=n(0),l=n.n(c),u=n(165),f=n(114),d=n(60),p=n(138),h=n(35);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,r,o=b(i);function i(){return g(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestDescription,n=e.manifestLabel,r=e.manifestMetadata,o=e.id,i=e.t;return l.a.createElement(f.a,{id:"".concat(o,"-resource"),label:i("resource")},n&&l.a.createElement(u.a,{"aria-labelledby":"".concat(o,"-resource ").concat(o,"-resource-heading"),id:"".concat(o,"-resource-heading"),variant:"h4",component:"h5"},n),t&&l.a.createElement(u.a,{variant:"body1"},l.a.createElement(d.a,{htmlString:t,ruleSet:"iiif"})),r.length>0&&l.a.createElement(p.a,{labelValuePairs:r}),l.a.createElement(h.a,this.props))}}])&&m(t.prototype,n),r&&m(t,r),i}(c.Component);O.defaultProps={manifestDescription:null,manifestLabel:null,manifestMetadata:[],t:function(e){return e}};var E=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){var n=t.id,r=t.manifestId,o=t.windowId;return{manifestDescription:Object(s.c)(e,{companionWindowId:n,manifestId:r,windowId:o}),manifestLabel:Object(s.o)(e,{companionWindowId:n,manifestId:r,windowId:o}),manifestMetadata:Object(s.h)(e,{companionWindowId:n,manifestId:r,windowId:o})}})),Object(a.a)("ManifestInfo"));t.a=E(O)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(14);function i(e,t){"function"==typeof e?e(t):e.current=t}function a(e,t){var n=e.ref;return Object(o.a)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(r.cloneElement)(e,{ref:function(e){i(n,e),i(t,e)}}):Object(r.cloneElement)(e,{ref:t})}function s(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function c(e){var t={};return Object.keys(e).forEach((function(n){var o=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var i=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(r.isValidElement)(t)){var o=t;return e(o,n),o}var i=t;s(i);var c=n?function(t){return e(t,n)}:e;return a(i,c)}}(o);t[n]=function(){return i}}})),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(24),o=n.n(r),i=n(126),a=n.n(i),s=n(143);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.resource=t}var t,n,r;return t=e,(n=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"oa:tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource["@id"]||this.resources[0]&&this.resources[0]["@id"]||Object(s.a)(),this._id}},{key:"targetId",get:function(){var e=this.on[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.full.replace(/#?xywh=(.*)$/,"");default:return null}}},{key:"motivations",get:function(){return o()(a()(new Array(this.resource.motivation)))}},{key:"resources",get:function(){return o()(a()(new Array(this.resource.resource)))}},{key:"on",get:function(){return o()(a()(new Array(this.resource.on)))}},{key:"tags",get:function(){return this.isOnlyTag()?this.resources.map((function(e){return e.chars})):this.resources.filter((function(e){return"oa:Tag"===e["@type"]})).map((function(e){return e.chars}))}},{key:"chars",get:function(){return this.resources.filter((function(e){return"oa:Tag"!==e["@type"]})).map((function(e){return e.chars})).join(" ")}},{key:"selector",get:function(){var e=this.on[0];switch(typeof e){case"string":return e;case"object":return"oa:Choice"===e.selector["@type"]?e.selector.default:e.selector;default:return null}}},{key:"svgSelector",get:function(){var e=this.on[0];return"object"==typeof e&&e.selector&&e.selector.item&&"oa:SvgSelector"===e.selector.item["@type"]?e.selector.item:null}},{key:"fragmentSelector",get:function(){var e,t=this.selector;switch(typeof t){case"string":e=t.match(/xywh=(.*)$/);break;case"object":e=t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&l(t.prototype,n),r&&l(t,r),e}();function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json=t,this.target=n}var t,n,r;return t=e,(n=[{key:"id",get:function(){return this.json["@id"]}},{key:"present",value:function(){return this.resources&&this.resources.length>0}},{key:"resources",get:function(){var e=this;return this._resources=this._resources||(e.json&&e.json.resources?o()([e.json.resources]).map((function(e){return new u(e)})):[]),this._resources}}])&&f(t.prototype,n),r&&f(t,r),e}()},function(e,t,n){var r=n(492);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){"use strict";t.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},function(e,t,n){var r=n(1008),o=n(360),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=n.n(i),s=(n(11),n(32)),c=n(4),l=n(28),u=n(43),f=n(10),d=n(135),p=n(112),h=n(54),g=n(74),m=n(115),v=n(186);function b(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function w(e,t,n){var r=b(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var l=o[c][r];s[o[c][r]]=n(l)}s[c]=n(c)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if(Object(i.isValidElement)(s)){var c=a in t,l=a in r,u=t[a],f=Object(i.isValidElement)(u)&&!u.props.in;!l||c&&!f?l||!c||f?l&&c&&Object(i.isValidElement)(u)&&(o[a]=Object(i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:y(s,"exit",e),enter:y(s,"enter",e)})):o[a]=Object(i.cloneElement)(s,{in:!1}):o[a]=Object(i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:y(s,"exit",e),enter:y(s,"enter",e)})}})),o}var O=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},E=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(g.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(m.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,b(n.children,(function(e){return Object(i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:y(e,"appear",n),enter:y(e,"enter",n),exit:y(e,"exit",n)})}))):w(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=b(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(h.a)(e,["component","childFactory"]),o=this.state.contextValue,i=O(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(v.a.Provider,{value:o},i):a.a.createElement(v.a.Provider,{value:o},a.a.createElement(t,r,i))},t}(a.a.Component);E.propTypes={},E.defaultProps={component:"div",childFactory:function(e){return e}};var x=E,S="undefined"==typeof window?i.useEffect:i.useLayoutEffect;var j=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,f=e.onExited,d=void 0===f?function(){}:f,p=e.timeout,h=i.useState(!1),g=h[0],m=h[1],v=Object(c.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),b={width:s,height:s,top:-s/2+a,left:-s/2+o},y=Object(c.a)(t.child,g&&t.childLeaving,r&&t.childPulsate),w=Object(u.a)(d);return S((function(){if(!l){m(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,l,p]),i.createElement("span",{className:v,style:b},i.createElement("span",{className:y}))},T=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,l=e.className,u=Object(o.a)(e,["center","classes","className"]),f=i.useState([]),d=f[0],h=f[1],g=i.useRef(0),m=i.useRef(null);i.useEffect((function(){m.current&&(m.current(),m.current=null)}),[d]);var v=i.useRef(!1),b=i.useRef(null),y=i.useRef(null),w=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(b.current)}}),[]);var O=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(p.a)(e),[i.createElement(j,{key:g.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),g.current+=1,m.current=a}),[s]),E=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,s=void 0===i?a||t.pulsate:i,c=t.fakeElement,l=void 0!==c&&c;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var u,f,d,p=l?null:w.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),f=Math.round(h.height/2);else{var g=e.touches?e.touches[0]:e,m=g.clientX,E=g.clientY;u=Math.round(m-h.left),f=Math.round(E-h.top)}if(s)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(d+=1);else{var x=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(x,2)+Math.pow(S,2))}e.touches?null===y.current&&(y.current=function(){O({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})},b.current=setTimeout((function(){y.current&&(y.current(),y.current=null)}),80)):O({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})}}),[a,O]),S=i.useCallback((function(){E({},{pulsate:!0})}),[E]),T=i.useCallback((function(e,t){if(clearTimeout(b.current),"touchend"===e.type&&y.current)return e.persist(),y.current(),y.current=null,void(b.current=setTimeout((function(){T(e,t)})));y.current=null,h((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:S,start:E,stop:T}}),[S,E,T]),i.createElement("span",Object(r.a)({className:Object(c.a)(s.root,l),ref:w},u),i.createElement(x,{component:null,exit:!0},d))})),_=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(T)),C=i.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,g=e.classes,m=e.className,v=e.component,b=void 0===v?"button":v,y=e.disabled,w=void 0!==y&&y,O=e.disableRipple,E=void 0!==O&&O,x=e.disableTouchRipple,S=void 0!==x&&x,j=e.focusRipple,T=void 0!==j&&j,C=e.focusVisibleClassName,I=e.onBlur,P=e.onClick,k=e.onFocus,R=e.onFocusVisible,A=e.onKeyDown,D=e.onKeyUp,M=e.onMouseDown,N=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,W=e.onTouchMove,B=e.onTouchStart,F=e.onDragLeave,H=e.tabIndex,U=void 0===H?0:H,V=e.TouchRippleProps,G=e.type,q=void 0===G?"button":G,$=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),K=i.useRef(null);var Z=i.useRef(null),Y=i.useState(!1),X=Y[0],Q=Y[1];w&&X&&Q(!1);var J=Object(d.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return Object(u.a)((function(r){return t&&t(r),!n&&Z.current&&Z.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Q(!0),K.current.focus()}}}),[]),i.useEffect((function(){X&&T&&!E&&Z.current.pulsate()}),[E,T,X]);var oe=re("start",M),ie=re("stop",F),ae=re("stop",L),se=re("stop",(function(e){X&&e.preventDefault(),N&&N(e)})),ce=re("start",B),le=re("stop",z),ue=re("stop",W),fe=re("stop",(function(e){X&&(te(e),Q(!1)),I&&I(e)}),!1),de=Object(u.a)((function(e){K.current||(K.current=e.currentTarget),ee(e)&&(Q(!0),R&&R(e)),k&&k(e)})),pe=function(){var e=s.findDOMNode(K.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),ge=Object(u.a)((function(e){T&&!he.current&&X&&Z.current&&" "===e.key&&(he.current=!0,e.persist(),Z.current.stop(e,(function(){Z.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),me=Object(u.a)((function(e){T&&" "===e.key&&Z.current&&X&&!e.defaultPrevented&&(he.current=!1,e.persist(),Z.current.stop(e,(function(){Z.current.pulsate(e)}))),D&&D(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ve=b;"button"===ve&&$.href&&(ve="a");var be={};"button"===ve?(be.type=q,be.disabled=w):("a"===ve&&$.href||(be.role="button"),be["aria-disabled"]=w);var ye=Object(l.a)(a,t),we=Object(l.a)(ne,K),Oe=Object(l.a)(ye,we),Ee=i.useState(!1),xe=Ee[0],Se=Ee[1];i.useEffect((function(){Se(!0)}),[]);var je=xe&&!E&&!w;return i.createElement(ve,Object(r.a)({className:Object(c.a)(g.root,m,X&&[g.focusVisible,C],w&&g.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:ge,onKeyUp:me,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:le,onTouchMove:ue,onTouchStart:ce,ref:Oe,tabIndex:w?-1:U},be,$),h,je?i.createElement(_,Object(r.a)({ref:Z,center:p},V)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(C)},,,,,,,,function(e,t,n){var r=n(33),o=n(37),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(33),o=n(71);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(409),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(106),o=n(409);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(94),o=n(144),i=n(322),a=n(38);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(21);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(39),o=n(47),i=n(38),a=n(198);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,c=0;s>c;)o.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r,o,i=n(33),a=n(232),s=i.process,c=s&&s.versions,l=c&&c.v8;l?o=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){"use strict";var r=n(50),o=n(129),i=n(45);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>s;)t[s++]=e;return t}},function(e,t,n){var r=n(41),o=n(201),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r={};r[n(41)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(8),o=n(423),i=n(95),a=n(147),s=n(107),c=n(71),l=n(65),u=n(41),f=n(106),d=n(201),p=n(424),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,u,p,O,E){o(n,t,u);var x,S,j,T=function(e){if(e===p&&k)return k;if(!g&&e in I)return I[e];switch(e){case v:case b:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},_=t+" Iterator",C=!1,I=e.prototype,P=I[m]||I["@@iterator"]||p&&I[p],k=!g&&P||T(p),R="Array"==t&&I.entries||P;if(R&&(x=i(R.call(new e)),h!==Object.prototype&&x.next&&(f||i(x)===h||(a?a(x,h):"function"!=typeof x[m]&&c(x,m,w)),s(x,_,!0,!0),f&&(d[_]=w))),p==b&&P&&P.name!==b&&(C=!0,k=function(){return P.call(this)}),f&&!E||I[m]===k||c(I,m,k),d[t]=k,p)if(S={values:T(b),keys:O?k:T(v),entries:T(y)},E)for(j in S)(g||C||!(j in I))&&l(I,j,S[j]);else r({target:t,proto:!0,forced:g||C},S);return S}},function(e,t,n){var r=n(21);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(45),o=n(333),i=n(70),a=Math.ceil,s=function(e){return function(t,n,s){var c,l,u=String(i(t)),f=u.length,d=void 0===s?" ":String(s),p=r(n);return p<=f||""==d?u:(c=p-f,(l=o.call(d,a(c/d.length))).length>c&&(l=l.slice(0,c)),e?u+l:l+u)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){"use strict";var r=n(83),o=n(70);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r,o,i,a=n(33),s=n(21),c=n(92),l=n(130),u=n(415),f=n(316),d=n(439),p=a.location,h=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},O="onreadystatechange",E=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){E(e)}},S=function(e){E(e.data)},j=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&g||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},g=function(e){delete w[e]},"process"==c(m)?r=function(e){m.nextTick(x(e))}:b&&b.now?r=function(e){b.now(x(e))}:v&&!d?(i=(o=new v).port2,o.port1.onmessage=S,r=l(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(j)?r=O in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),E(e)}}:function(e){setTimeout(x(e),0)}:(r=j,a.addEventListener("message",S,!1))),e.exports={set:h,clear:g}},function(e,t,n){var r=n(37),o=n(92),i=n(41)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(21);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){var r=n(336);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(41)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(244).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(21),o=n(240);e.exports=function(e){return r((function(){return!!o[e]()||"​᠎"!="​᠎"[e]()||o[e].name!==e}))}},function(e,t,n){var r=n(33),o=n(21),i=n(233),a=n(42).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new s(2),1,void 0).length}))},function(e,t,n){var r=n(856),o=n(207),i=n(345),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(453),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(249)(e))},function(e,t,n){var r=n(250),o=n(857),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(348),o=n(351),i=n(352),a=n(458),s=n(884),c=n(887),l=n(257),u=n(888),f=n(889),d=n(462),p=n(357),h=n(171),g=n(892),m=n(893),v=n(898),b=n(62),y=n(248),w=n(899),O=n(57),E=n(901),x=n(150),S="[object Arguments]",j="[object Function]",T="[object Object]",_={};_[S]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_[T]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_[j]=_["[object WeakMap]"]=!1,e.exports=function e(t,n,C,I,P,k){var R,A=1&n,D=2&n,M=4&n;if(C&&(R=P?C(t,I,P,k):C(t)),void 0!==R)return R;if(!O(t))return t;var N=b(t);if(N){if(R=g(t),!A)return l(t,R)}else{var L=h(t),z=L==j||"[object GeneratorFunction]"==L;if(y(t))return c(t,A);if(L==T||L==S||z&&!P){if(R=D||z?{}:v(t),!A)return D?f(t,s(R,t)):u(t,a(R,t))}else{if(!_[L])return P?t:{};R=m(t,L,A)}}k||(k=new r);var W=k.get(t);if(W)return W;k.set(t,R),E(t)?t.forEach((function(r){R.add(e(r,n,C,r,t,k))})):w(t)&&t.forEach((function(r,o){R.set(o,e(r,n,C,o,t,k))}));var B=M?D?p:d:D?keysIn:x,F=N?void 0:B(t);return o(F||t,(function(r,o){F&&(r=t[o=r]),i(R,o,e(r,n,C,o,t,k))})),R}},function(e,t,n){var r=n(251),o=n(863),i=n(864),a=n(865),s=n(866),c=n(867);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t,n){var r=n(152)(n(67),"Map");e.exports=r},function(e,t,n){var r=n(872),o=n(879),i=n(881),a=n(882),s=n(883);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(256),o=n(253),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(354),o=n(460),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(455)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(463),o=n(461),i=n(459);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(466);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(62),o=n(173),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(906);e.exports=function(e){return null==e?"":r(e)}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(910),o=n(472)(r);e.exports=o},function(e,t){e.exports={}},function(e,t,n){var r=n(474),o=n(916),i=n(917),a=n(476),s=n(932),c=n(480),l=n(933),u=n(482),f=n(483),d=n(211),p=Math.max;e.exports=function(e,t,n,h,g,m,v,b){var y=2&t;if(!y&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=g=void 0),v=void 0===v?v:p(d(v),0),b=void 0===b?b:d(b),w-=g?g.length:0,64&t){var O=h,E=g;h=g=void 0}var x=y?void 0:c(e),S=[e,t,n,h,g,O,E,m,v,b];if(x&&l(S,x),e=S[0],t=S[1],n=S[2],h=S[3],g=S[4],!(b=S[9]=void 0===S[9]?y?0:e.length:p(S[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)j=8==t||16==t?i(e,t,b):32!=t&&33!=t||g.length?a.apply(void 0,S):s(e,t,n,h);else var j=o(e,t,n);return f((x?r:u)(j,S),e,t)}},function(e,t,n){var r=n(258),o=n(366);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(927);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){var n="__lodash_placeholder__";e.exports=function(e,t){for(var r=-1,o=e.length,i=0,a=[];++r<o;){var s=e[r];s!==t&&s!==n||(e[r]=n,a[i++]=r)}return a}},function(e,t,n){var r=n(57),o=n(173),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(940),o=n(80);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(350),o=n(941),i=n(942);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(352),o=n(172),i=n(206),a=n(57),s=n(153);e.exports=function(e,t,n,c){if(!a(e))return e;for(var l=-1,u=(t=o(t,e)).length,f=u-1,d=e;null!=d&&++l<u;){var p=s(t[l]),h=n;if(l!=f){var g=d[p];void 0===(h=c?c(g,p,d):void 0)&&(h=a(g)?g:i(t[l+1])?[]:{})}r(d,p,h),d=d[p]}return e}},function(e,t,n){var r=n(371),o=n(367),i=n(491),a=n(149),s=n(207),c=n(372);e.exports=function(e,t,n,l){var u=-1,f=o,d=!0,p=e.length,h=[],g=t.length;if(!p)return h;n&&(t=a(t,s(n))),l?(f=i,d=!1):t.length>=200&&(f=c,d=!1,t=new r(t));e:for(;++u<p;){var m=e[u],v=null==n?m:n(m);if(m=l||0!==m?m:0,d&&v==v){for(var b=g;b--;)if(t[b]===v)continue e;h.push(m)}else f(t,v,l)||h.push(m)}return h}},function(e,t,n){var r=n(962).Symbol;e.exports=r},function(e,t,n){var r=n(972),o=n(975)(r);e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDropTargetPosition=void 0,t.MosaicDropTargetPosition={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"}},function(e,t,n){var r=n(364);function o(e,t,n){var i=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},function(e,t,n){var r=n(957),o=n(958);e.exports=function(e,t,n){return null==e?e:r(e,t,o(n))}},function(e,t,n){e.exports=window.fetch||(window.fetch=n(494).default||n(494))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n(109);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(299)),o=a(n(1046)),i=n(108);function a(e){return e&&e.__esModule?e:{default:e}}var s={backends:[{backend:r.default,transition:i.MouseTransition},{backend:o.default,options:{enableMouseEvents:!0},preview:!0,transition:i.TouchTransition}]};t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r.default})),n.d(t,"HTML5DragTransition",(function(){return r.HTML5DragTransition})),n.d(t,"TouchTransition",(function(){return r.TouchTransition})),n.d(t,"MouseTransition",(function(){return r.MouseTransition})),n.d(t,"createTransition",(function(){return r.createTransition})),n.d(t,"Preview",(function(){return g}));var r=n(108),o=n(0),i=n.n(o),a=n(11),s=n.n(a),c=n(515),l=i.a.createContext(),u=function(e){var t=Object(c.a)((function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}}));if(!t.isDragging||null===t.currentOffset)return null;var n,r,o,a={itemType:t.itemType,item:t.item,style:(n=t.currentOffset,r="translate(".concat(n.x,"px, ").concat(n.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:r,WebkitTransform:r})};return o=e.children&&"function"==typeof e.children?e.children(a):e.children?e.children:e.generator(a),i.a.createElement(l.Provider,{value:a},o)};u.propTypes={generator:s.a.func,children:s.a.oneOfType([s.a.node,s.a.func])};var f=u;function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=function(e){var t=d(Object(o.useState)(!1),2),n=t[0],a=t[1];return Object(o.useEffect)((function(){var e={backendChanged:function(e){a(e.previewEnabled())}};return r.PreviewManager.register(e),function(){r.PreviewManager.unregister(e)}})),n?i.a.createElement(f,e):null};h.Context=l,h.propTypes=f.propTypes;var g=h},function(e,t,n){var r=n(134),o=n(62),i=n(80);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t){e.exports=function(e){return null===e}},function(e,t,n){var r=n(492);e.exports=function(e){return(null==e?0:e.length)?r(e,Infinity):[]}},function(e,t,n){var r=n(256),o=n(495),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},function(e,t,n){e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,l="undefined"!=typeof Reflect&&Reflect,u=l.apply,f=l.construct;u||(u=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),s||(s=function(e){return e}),f||(f=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var d=E(Array.prototype.forEach),p=E(Array.prototype.pop),h=E(Array.prototype.push),g=E(String.prototype.toLowerCase),m=E(String.prototype.match),v=E(String.prototype.replace),b=E(String.prototype.indexOf),y=E(String.prototype.trim),w=E(RegExp.prototype.test),O=x(TypeError);function E(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function x(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(e,n)}}function S(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=g(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function j(e){var n=c(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}function T(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return E(n.get);if("function"==typeof n.value)return E(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var _=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),A=a(["#text"]),D=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),M=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),W=s(/<%[\s\S]*|[\s\S]*%>/gm),B=s(/^data-[\-\w.\u00B7-\uFFFF]/),F=s(/^aria-[\-\w]+$/),H=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G="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};function q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var $=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!==(void 0===e?"undefined":G(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$(),t=function(e){return Z(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,f=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,E=e.Text,x=e.Comment,Y=e.DOMParser,X=e.trustedTypes,Q=c.prototype,J=T(Q,"cloneNode"),ee=T(Q,"nextSibling"),te=T(Q,"childNodes"),ne=T(Q,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=K(X,n),ie=oe&&Le?oe.createHTML(""):"",ae=r,se=ae.implementation,ce=ae.createNodeIterator,le=ae.createDocumentFragment,ue=ae.getElementsByTagName,fe=n.importNode,de={};try{de=j(r).documentMode?r.documentMode:{}}catch(e){}var pe={};t.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==de;var he=z,ge=W,me=B,ve=F,be=U,ye=V,we=H,Oe=null,Ee=S({},[].concat(q(_),q(C),q(I),q(k),q(A))),xe=null,Se=S({},[].concat(q(D),q(M),q(N),q(L))),je=null,Te=null,_e=!0,Ce=!0,Ie=!1,Pe=!1,ke=!1,Re=!1,Ae=!1,De=!1,Me=!1,Ne=!0,Le=!1,ze=!0,We=!0,Be=!1,Fe={},He=null,Ue=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ge=S({},["audio","video","img","source","image","track"]),qe=null,$e=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Xe=Ye,Qe=!1,Je=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":G(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):Ee,xe="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Se,qe="ADD_URI_SAFE_ATTR"in e?S(j($e),e.ADD_URI_SAFE_ATTR):$e,Ve="ADD_DATA_URI_TAGS"in e?S(j(Ge),e.ADD_DATA_URI_TAGS):Ge,He="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):Ue,je="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},Fe="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Ne=!1!==e.RETURN_DOM_IMPORT,Le=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,We=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Xe=e.NAMESPACE||Ye,Je=Je=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Je?function(e){return e}:g,Pe&&(Ce=!1),Me&&(De=!0),Fe&&(Oe=S({},[].concat(q(A))),xe=[],!0===Fe.html&&(S(Oe,_),S(xe,D)),!0===Fe.svg&&(S(Oe,C),S(xe,M),S(xe,L)),!0===Fe.svgFilters&&(S(Oe,I),S(xe,M),S(xe,L)),!0===Fe.mathMl&&(S(Oe,k),S(xe,N),S(xe,L))),e.ADD_TAGS&&(Oe===Ee&&(Oe=j(Oe)),S(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(xe===Se&&(xe=j(xe)),S(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(qe,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(He===Ue&&(He=j(He)),S(He,e.FORBID_CONTENTS)),We&&(Oe["#text"]=!0),ke&&S(Oe,["html","head","body"]),Oe.table&&(S(Oe,["tbody"]),delete je.tbody),a&&a(e),rt=e)},at=S({},["mi","mo","mn","ms","mtext"]),st=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},C);S(ct,I),S(ct,P);var lt=S({},k);S(lt,R);var ut=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=g(e.tagName),r=g(t.tagName);if(e.namespaceURI===Ze)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(ct[n]);if(e.namespaceURI===Ke)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===Ze?"math"===n&&st[r]:Boolean(lt[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===Ze&&!st[r])return!1;if(t.namespaceURI===Ke&&!at[r])return!1;var o=S({},["title","style","font","a","script"]);return!lt[n]&&(o[n]||!ct[n])}return!1},ft=function(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!xe[e])if(De||Me)try{ft(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},pt=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var o=m(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Xe===Ye)try{t=(new Y).parseFromString(i,Je)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Qe?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ye?ue.call(t,ke?"html":"body")[0]:ke?t.documentElement:a},ht=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},gt=function(e){return!(e instanceof E||e instanceof x||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof f&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},mt=function(e){return"object"===(void 0===s?"undefined":G(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":G(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},vt=function(e,n,r){pe[e]&&d(pe[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(vt("beforeSanitizeElements",e,null),gt(e))return ft(e),!0;if(m(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=nt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!mt(e.firstElementChild)&&(!mt(e.content)||!mt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return ft(e),!0;if(!Oe[r]||je[r]){if(We&&!He[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(J(i[a],!0),ee(e))}return ft(e),!0}return e instanceof c&&!ut(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(n=e.textContent,n=v(n,he," "),n=v(n,ge," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},yt=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Ce&&!Te[t]&&w(me,t));else if(_e&&w(ve,t));else{if(!xe[t]||Te[t])return!1;if(qe[t]);else if(w(we,v(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Ve[e])if(Ie&&!w(be,v(n,ye,"")));else if(n)return!1}return!0},wt=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;vt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=a.length;i--;){var c=n=a[i],l=c.name,u=c.namespaceURI;if(r=y(n.value),o=nt(l),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(dt(l,e),s.keepAttr))if(w(/\/>/i,r))dt(l,e);else{Pe&&(r=v(r,he," "),r=v(r,ge," "));var f=nt(e.nodeName);if(yt(f,o,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),p(t.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)}},Ot=function e(t){var n=void 0,r=ht(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),wt(n));vt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,l=void 0,u=void 0,f=void 0;if((Qe=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!mt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===G(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(mt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Re||it(i),t.removed=[],"string"==typeof r&&(Be=!1),Be);else if(r instanceof s)1===(c=(a=pt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!De&&!Pe&&!ke&&-1===r.indexOf("<"))return oe&&Le?oe.createHTML(r):r;if(!(a=pt(r)))return De?null:ie}a&&Ae&&ft(a.firstChild);for(var d=ht(Be?r:a);l=d.nextNode();)3===l.nodeType&&l===u||bt(l)||(l.content instanceof o&&Ot(l.content),wt(l),u=l);if(u=null,Be)return r;if(De){if(Me)for(f=le.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Ne&&(f=fe.call(n,f,!0)),f}var p=ke?a.outerHTML:a.innerHTML;return Pe&&(p=v(p,he," "),p=v(p,ge," ")),oe&&Le?oe.createHTML(p):p},t.setConfig=function(e){it(e),Re=!0},t.clearConfig=function(){rt=null,Re=!1},t.isValidAttribute=function(e,t,n){rt||it({});var r=nt(e),o=nt(t);return yt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],h(pe[e],t))},t.removeHook=function(e){pe[e]&&p(pe[e])},t.removeHooks=function(e){pe[e]&&(pe[e]=[])},t.removeAllHooks=function(){pe={}},t}return Z()}()},function(e,t,n){var r=n(1011),o=n(1012);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},function(e,t,n){"use strict";(function(e){function r(e){i.length||(o(),!0),i[i.length]=e}n.d(t,"a",(function(){return r}));var o,i=[],a=0;function s(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,n=i.length-a;t<n;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0,!1}var c,l,u,f=void 0!==e?e:self,d=f.MutationObserver||f.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof d?(c=1,l=new d(s),u=document.createTextNode(""),l.observe(u,{characterData:!0}),o=function(){c=-c,u.data=c}):o=p(s),r.requestFlush=o,r.makeRequestCallFromTimer=p}).call(this,n(121))},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M20 8h-3V6.21c0-2.61-1.91-4.94-4.51-5.19C9.51.74 7 3.08 7 6v2H4v14h16V8zm-8 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"}),"LockSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),"ArrowRightSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M14 7l-5 5 5 5V7z"}),"ArrowLeftSharp");t.default=i},function(e,t,n){var r=n(375),o=n(174),i=n(176),a=n(261),s=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=s},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutlineSharp");t.default=i},function(e,t,n){var r=n(174),o=n(1038),i=n(176),a=n(1043),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(354),o=n(176),i=n(1044),a=n(261),s=o((function(e){return i(r(e,a))}));e.exports=s},,,,,,,,,function(e,t,n){var r=n(39),o=n(21),i=n(316);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(33),o=n(317),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},function(e,t,n){var r=n(33),o=n(318),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(51),o=n(320),i=n(64),a=n(47);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},function(e,t,n){var r=n(33);e.exports=r},function(e,t,n){var r=n(51),o=n(75),i=n(196).indexOf,a=n(195);e.exports=function(e,t){var n,s=o(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(323);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(94);e.exports=r("document","documentElement")},function(e,t,n){var r=n(75),o=n(144).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(41);t.f=r},function(e,t,n){"use strict";var r=n(50),o=n(129),i=n(45),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n.length),c=o(e,s),l=o(t,s),u=arguments.length>2?arguments[2]:void 0,f=a((void 0===u?s:o(u,s))-l,s-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);f-- >0;)l in n?n[c]=n[l]:delete n[c],c+=d,l+=d;return n}},function(e,t,n){"use strict";var r=n(145),o=n(45),i=n(130);e.exports=function e(t,n,a,s,c,l,u,f){for(var d,p=c,h=0,g=!!u&&i(u,f,3);h<s;){if(h in a){if(d=g?g(a[h],h,n):a[h],l>0&&r(d))p=e(t,n,d,o(d.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=d}p++}h++}return p}},function(e,t,n){"use strict";var r=n(61).forEach,o=n(123),i=n(72),a=o("forEach"),s=i("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(130),o=n(50),i=n(422),a=n(327),s=n(45),c=n(146),l=n(202);e.exports=function(e){var t,n,u,f,d,p,h=o(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,b=void 0!==v,y=l(h),w=0;if(b&&(v=r(v,m>2?arguments[2]:void 0,2)),null==y||g==Array&&a(y))for(n=new g(t=s(h.length));t>w;w++)p=b?v(h[w],w):h[w],c(n,w,p);else for(d=(f=y.call(h)).next,n=new g;!(u=d.call(f)).done;w++)p=b?i(f,v,[u.value,w],!0):u.value,c(n,w,p);return n.length=w,n}},function(e,t,n){var r=n(38);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(424).IteratorPrototype,o=n(122),i=n(128),a=n(107),s=n(201),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,l,!1,!0),s[l]=c,e}},function(e,t,n){"use strict";var r,o,i,a=n(95),s=n(71),c=n(51),l=n(41),u=n(106),f=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),u||c(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(37);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(75),o=n(83),i=n(45),a=n(123),s=n(72),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),p=u||!f||!d;e.exports=p?function(e){if(u)return l.apply(this,arguments)||0;var t=r(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},function(e,t,n){var r=n(83),o=n(45);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(84),o=n(37),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,n){"use strict";var r=n(47).f,o=n(122),i=n(168),a=n(130),s=n(132),c=n(205),l=n(329),u=n(167),f=n(39),d=n(148).fastKey,p=n(76),h=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[l],e,n)})),p=g(t),m=function(e,t,n){var r,o,i=p(e),a=v(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},v=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(u.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=v(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),i(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);l(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;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)}}},function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},function(e,t,n){var r=n(37),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(33),o=n(169).trim,i=n(240),a=r.parseFloat,s=1/a(i+"-0")!=-1/0;e.exports=s?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var r=n(33),o=n(169).trim,i=n(240),a=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(i+"08")||22!==a(i+"0x16");e.exports=c?function(e,t){var n=o(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){var r=n(92);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var r=n(39),o=n(21),i=n(198),a=n(322),s=n(230),c=n(50),l=n(193),u=Object.assign,f=Object.defineProperty;e.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||i(u({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,u=1,f=a.f,d=s.f;o>u;)for(var p,h=l(arguments[u++]),g=f?i(h).concat(f(h)):i(h),m=g.length,v=0;m>v;)p=g[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},function(e,t,n){var r=n(39),o=n(198),i=n(75),a=n(230).f,s=function(e){return function(t){for(var n,s=i(t),c=o(s),l=c.length,u=0,f=[];l>u;)n=c[u++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(33);e.exports=r.Promise},function(e,t,n){var r=n(232);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r,o,i,a,s,c,l,u,f=n(33),d=n(64).f,p=n(92),h=n(335).set,g=n(439),m=f.MutationObserver||f.WebKitMutationObserver,v=f.process,b=f.Promise,y="process"==p(v),w=d(f,"queueMicrotask"),O=w&&w.value;O||(r=function(){var e,t;for(y&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:m&&!g?(s=!0,c=document.createTextNode(""),new m(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),u=l.then,a=function(){u.call(l,r)}):a=function(){h.call(f,r)}),e.exports=O||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(38),o=n(37),i=n(442);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(84),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(8),o=n(243);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(244).charAt,o=n(76),i=n(329),a="String Iterator",s=o.set,c=o.getterFor(a);i(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(232);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){var r=n(797);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(50),o=n(45),i=n(202),a=n(327),s=n(130),c=n(42).aTypedArrayConstructor;e.exports=function(e){var t,n,l,u,f,d,p=r(e),h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,v=i(p);if(null!=v&&!a(v))for(d=(f=v.call(p)).next,p=[];!(u=d.call(f)).done;)p.push(u.value);for(m&&h>2&&(g=s(g,arguments[2],2)),n=o(p.length),l=new(c(this))(n),t=0;n>t;t++)l[t]=m?g(p[t],t):p[t];return l}},function(e,t,n){"use strict";var r=n(168),o=n(148).getWeakData,i=n(38),a=n(37),s=n(132),c=n(205),l=n(61),u=n(51),f=n(76),d=f.set,p=f.getterFor,h=l.find,g=l.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,r){s(e,f,t),d(e,{type:t,id:m++,frozen:void 0}),null!=r&&c(r,e[l],e,n)})),h=p(t),g=function(e,t,n){var r=h(e),a=o(i(t),!0);return!0===a?v(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var n=o(e);return!0===n?v(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=o(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=o(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),f}}},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}},function(e,t,n){var r=n(21),o=n(41),i=n(106),a=o("iterator");e.exports=!r((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,r){t.delete("b"),n+=r+e})),i&&!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[a]||"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}))},function(e,t,n){"use strict";n(234);var r=n(8),o=n(94),i=n(450),a=n(65),s=n(168),c=n(107),l=n(423),u=n(76),f=n(132),d=n(51),p=n(130),h=n(203),g=n(38),m=n(37),v=n(122),b=n(128),y=n(840),w=n(202),O=n(41),E=o("fetch"),x=o("Headers"),S=O("iterator"),j="URLSearchParams",T="URLSearchParamsIterator",_=u.set,C=u.getterFor(j),I=u.getterFor(T),P=/\+/g,k=Array(4),R=function(e){return k[e-1]||(k[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},A=function(e){try{return decodeURIComponent(e)}catch(t){return e}},D=function(e){var t=e.replace(P," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(R(n--),A);return t}},M=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return N[e]},z=function(e){return encodeURIComponent(e).replace(M,L)},W=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:D(r.shift()),value:D(r.join("="))}))},B=function(e){this.entries.length=0,W(this.entries,e)},F=function(e,t){if(e<t)throw TypeError("Not enough arguments")},H=l((function(e,t){_(this,{type:T,iterator:y(C(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,j);var e,t,n,r,o,i,a,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,p=[];if(_(u,{type:j,entries:p,updateURL:function(){},updateSearchParams:B}),void 0!==l)if(m(l))if("function"==typeof(e=w(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(i=(o=y(g(r.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:s.value+""})}else for(c in l)d(l,c)&&p.push({key:c,value:l[c]+""});else W(p,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},V=U.prototype;s(V,{append:function(e,t){F(arguments.length,2);var n=C(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){F(arguments.length,1);for(var t=C(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){F(arguments.length,1);for(var t=C(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){F(arguments.length,1);for(var t=C(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){F(arguments.length,1);for(var t=C(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){F(arguments.length,1);for(var n,r=C(this),o=r.entries,i=!1,a=e+"",s=t+"",c=0;c<o.length;c++)(n=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=C(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=C(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new H(this,"keys")},values:function(){return new H(this,"values")},entries:function(){return new H(this,"entries")}},{enumerable:!0}),a(V,S,V.entries),a(V,"toString",(function(){for(var e,t=C(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(z(e.key)+"="+z(e.value));return n.join("&")}),{enumerable:!0}),c(U,j),r({global:!0,forced:!i},{URLSearchParams:U}),i||"function"!=typeof E||"function"!=typeof x||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(m(t=arguments[1])&&(n=t.body,h(n)===j&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:b(0,String(n)),headers:b(0,r)}))),o.push(t)),E.apply(this,o)}}),e.exports={URLSearchParams:U,getState:C}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var f=0;f<s.length;f++)i.call(n,s[f])&&(c[s[f]]=n[s[f]])}}return c}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(121))},function(e,t,n){var r=n(853),o=n(247),i=n(62),a=n(248),s=n(206),c=n(343),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),f=!n&&!u&&a(e),d=!n&&!u&&!f&&c(e),p=n||u||f||d,h=p?r(e.length,String):[],g=h.length;for(var m in e)!t&&!l.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(152),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(208),o=n(150);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(454),o=n(885),i=n(151);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(355),o=n(356),i=n(353),a=n(460),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(463),o=n(353),i=n(150);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(355),o=n(62);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(152)(n(67),"Set");e.exports=r},function(e,t,n){var r=n(152)(n(67),"WeakMap");e.exports=r},function(e,t,n){var r=n(67).Uint8Array;e.exports=r},function(e,t,n){var r=n(904),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(134),o=n(356),i=n(80),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var r=n(24),o=n(471),i=n(362);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(361),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(c),r(e,this,l)}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(912),o=n(914);e.exports=function(e,t,n){return r(o,e,t,n)}},function(e,t,n){var r=n(175),o=n(475),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},function(e,t,n){var r=n(465),o=r&&new r;e.exports=o},function(e,t,n){var r=n(477),o=n(478),i=n(918),a=n(260),s=n(479),c=n(484),l=n(931),u=n(368),f=n(67);e.exports=function e(t,n,d,p,h,g,m,v,b,y){var w=128&n,O=1&n,E=2&n,x=24&n,S=512&n,j=E?void 0:a(t);return function T(){for(var _=arguments.length,C=Array(_),I=_;I--;)C[I]=arguments[I];if(x)var P=c(T),k=i(C,P);if(p&&(C=r(C,p,h,x)),g&&(C=o(C,g,m,x)),_-=k,x&&_<y){var R=u(C,P);return s(t,n,e,T.placeholder,d,C,R,v,b,y-_)}var A=O?d:this,D=E?A[t]:t;return _=C.length,v?C=l(C,v):S&&_>1&&C.reverse(),w&&b<_&&(C.length=b),this&&this!==f&&this instanceof T&&(D=j||a(D)),D.apply(A,C)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,o){for(var i=-1,a=e.length,s=r.length,c=-1,l=t.length,u=n(a-s,0),f=Array(l+u),d=!o;++c<l;)f[c]=t[c];for(;++i<s;)(d||i<a)&&(f[r[i]]=e[i]);for(;u--;)f[c++]=e[i++];return f}},function(e,t){var n=Math.max;e.exports=function(e,t,r,o){for(var i=-1,a=e.length,s=-1,c=r.length,l=-1,u=t.length,f=n(a-c,0),d=Array(f+u),p=!o;++i<f;)d[i]=e[i];for(var h=i;++l<u;)d[h+l]=t[l];for(;++s<c;)(p||i<a)&&(d[h+r[s]]=e[i++]);return d}},function(e,t,n){var r=n(919),o=n(482),i=n(483);e.exports=function(e,t,n,a,s,c,l,u,f,d){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,f,d],g=n.apply(void 0,h);return r(e)&&o(g,h),g.placeholder=a,i(g,e,t)}},function(e,t,n){var r=n(475),o=n(210),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){var r=n(258),o=n(366);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){var r=n(474),o=n(472)(r);e.exports=o},function(e,t,n){var r=n(924),o=n(925),i=n(362),a=n(926);e.exports=function(e,t,n){var s=t+"";return i(e,o(s,a(r(s),n)))}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r=n(347);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(371),o=n(943),i=n(372);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var p=-1,h=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var m=e[p],v=t[p];if(a)var b=l?a(v,m,p,t,e,c):a(m,v,p,e,t,c);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(m===e||s(m,e,n,a,c)))return g.push(t)}))){h=!1;break}}else if(m!==v&&!s(m,v,n,a,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(57);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(209);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(374);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(960),o=n(961);e.exports=function e(t,n,i,a,s){var c=-1,l=t.length;for(i||(i=o),s||(s=[]);++c<l;){var u=t[c];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},c=function e(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:e,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}},function(e,t,n){var r=n(970),o=n(971),i=n(212),a=n(62);e.exports=function(e,t){return function(n,s){var c=a(n)?r:o,l=t?t():{};return c(n,e,i(s,2),l)}}},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return f}));var r=n(2);function o(e,t){return{canvasId:t,type:r.a.REQUEST_CANVAS_ANNOTATIONS,windowId:e}}function i(e,t){return{annotationId:t,targetId:e,type:r.a.REQUEST_ANNOTATION}}function a(e,t,n){return{annotationId:t,annotationJson:n,targetId:e,type:r.a.RECEIVE_ANNOTATION}}function s(e,t,n){return{annotationId:t,error:n,targetId:e,type:r.a.RECEIVE_ANNOTATION_FAILURE}}function c(e,t){return{annotationId:t,type:r.a.SELECT_ANNOTATION,windowId:e}}function l(e,t){return{annotationId:t,type:r.a.DESELECT_ANNOTATION,windowId:e}}function u(e){return{type:r.a.TOGGLE_ANNOTATION_DISPLAY,windowId:e}}function f(e,t){return{annotationIds:t,type:r.a.HOVER_ANNOTATION,windowId:e}}},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return f}));var r=n(2);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return{manifestId:e,properties:t,type:r.a.REQUEST_MANIFEST}}function c(e,t){return{manifestId:e,manifestJson:t,type:r.a.RECEIVE_MANIFEST}}function l(e,t){return{error:t,manifestId:e,type:r.a.RECEIVE_MANIFEST_FAILURE}}function u(e,t){return s(e,i(i({},t),{},{isFetching:!0}))}function f(e){return{manifestId:e,type:r.a.REMOVE_MANIFEST}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return y}));var r=n(9),o=n(34),i=n(24),a=n.n(i),s=n(46),c=n(40),l=n(97),u=n(53);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=Object(r.createSelector)([l.a],(function(e){var t=e.auth,n=(t=void 0===t?{}:t).serviceProfiles;return void 0===n?[]:n})),v=function(e){return Object(c.a)(e).accessTokens||{}},b=function(e){return Object(c.a)(e).auth||{}},y=Object(r.createSelector)([u.o,u.q,m,b,function(e,t){return t.iiifResources}],(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=i;if(!c&&e&&(c=a()(e.map((function(e){return new s.a(e).iiifImageResources.map((function(e){var n=e.getServices()[0],r=t[n.id];return r&&r.json?h(h({},r.json),{},{options:{}}):n}))})))),!c)return[];if(0===c.length)return[];var l=c.map((function(e){var t,i,a=o.d.getServices(e),s=f(n);try{var c=function(){var e,n=i.value,o=f(a.filter((function(e){return n.profile===e.getProfile()})));try{for(o.s();!(e=o.n()).done;){var s=e.value;if(t=s,!r[s.id]||r[s.id].isFetching||r[s.id].ok)return{v:s}}}catch(e){o.e(e)}finally{o.f()}};for(s.s();!(i=s.n()).done;){var l=c();if("object"==typeof l)return l.v}}catch(e){s.e(e)}finally{s.f()}return t}));return Object.values(l.reduce((function(e,t){return t&&!e[t.id]&&(e[t.id]=t),e}),{}))}))},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return l}));var r=n(2);function o(e,t,n){return{imageResource:t,infoId:e,type:r.a.REQUEST_INFO_RESPONSE,windowId:n}}function i(e,t,n,o){return{infoId:e,infoJson:t,ok:n,tokenServiceId:o,type:r.a.RECEIVE_INFO_RESPONSE}}function a(e,t,n,o,i){return{infoId:e,infoJson:t,ok:n,tokenServiceId:o,type:r.a.RECEIVE_DEGRADED_INFO_RESPONSE,windowId:i}}function s(e,t,n){return{error:t,infoId:e,tokenServiceId:n,type:r.a.RECEIVE_INFO_RESPONSE_FAILURE}}function c(e){var t=e.imageId,n=e.imageResource,r=e.windowId,i=n&&n.getServices()[0];return o(t||i.id,i,r)}function l(e){return{infoId:e,type:r.a.REMOVE_INFO_RESPONSE}}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return l}));var r=n(2);function o(e,t,n,o){return{companionWindowId:t,query:o,searchId:n,type:r.a.REQUEST_SEARCH,windowId:e}}function i(e,t,n,o){return{companionWindowId:t,searchId:n,searchJson:o,type:r.a.RECEIVE_SEARCH,windowId:e}}function a(e,t,n,o){return{companionWindowId:t,error:o,searchId:n,type:r.a.RECEIVE_SEARCH_FAILURE,windowId:e}}function s(e,t){return{companionWindowId:t,type:r.a.REMOVE_SEARCH,windowId:e}}function c(e,t,n,r){return o(e,t,n,r)}function l(e,t,n){return{annotationIds:n,companionWindowId:t,type:r.a.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS,windowId:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f}));var r=n(2),o=n(53);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(s,c){var l=c(),u=n;u||(u=(Object(o.c)(l,{canvasId:t,windowId:e})||[]).map((function(e){return e.id})));s(a(a({},i),{},{canvasId:t,type:r.a.SET_CANVAS,visibleCanvases:u,windowId:e}))}}function l(e){return function(t,n){var r=n(),i=Object(o.h)(r,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(c(e,a[0],a))}}function u(e){return function(t,n){var r=n(),i=Object(o.i)(r,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(c(e,a[0],a))}}function f(e,t){return{payload:t,type:r.a.UPDATE_VIEWPORT,windowId:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"l",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"k",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return E})),n.d(t,"j",(function(){return x})),n.d(t,"c",(function(){return S}));var r=n(143),o=n(2),i=n(40),a=["companionWindows","manifest"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{pan:t,type:o.a.FOCUS_WINDOW,windowId:e}}function h(e){var t=e.companionWindows,n=e.manifest,s=d(e,a);return function(e,a){var l=Object(i.a)(a()),f=l.config,d=l.workspace.windowIds,p=(void 0===d?[]:d).length,h=s.id||"window-".concat(Object(r.a)()),g="cw-".concat(Object(r.a)()),m=[{content:"thumbnailNavigation",default:!0,id:g,position:s.thumbnailNavigationPosition||f.thumbnailNavigation.defaultPosition,windowId:h}].concat(u((t||[]).map((function(e,t){return c(c({},e),{},{id:"cw-".concat(Object(r.a)())})}))));(s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel)&&m.unshift({content:s.sideBarPanel||s.defaultSearchQuery&&"search"||f.window.defaultSideBarPanel||f.window.sideBarPanel,default:!0,id:"cw-".concat(Object(r.a)()),position:"left",windowId:h});var v={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:m.map((function(e){return e.id})),draggingEnabled:!0,highlightAllAnnotations:f.window.highlightAllAnnotations||!1,id:h,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:void 0!==f.window.sideBarOpenByDefault?f.window.sideBarOpenByDefault||!!s.defaultSearchQuery:f.window.sideBarOpen||!!s.defaultSearchQuery,sideBarPanel:s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel,thumbnailNavigationId:g};e({companionWindows:m,elasticLayout:c(c({},f.window.elastic||{height:400,width:480}),{},{x:50*Math.floor(p/10)+30*p%300+200,y:200+50*p%300}),manifest:n,type:o.a.ADD_WINDOW,window:c(c({},v),s)})}}function g(e,t){return{id:e,payload:t,type:o.a.UPDATE_WINDOW}}function m(e,t){return{type:o.a.MAXIMIZE_WINDOW,windowId:e}}function v(e){return{type:o.a.MINIMIZE_WINDOW,windowId:e}}function b(e,t){return{id:e,payload:{companionAreaOpen:t},type:o.a.UPDATE_WINDOW}}function y(e){return{type:o.a.REMOVE_WINDOW,windowId:e}}function w(e){return{type:o.a.TOGGLE_WINDOW_SIDE_BAR,windowId:e}}function O(e,t){return function(n,r){n({id:r().windows[e].thumbnailNavigationId,payload:{position:t},type:o.a.UPDATE_COMPANION_WINDOW})}}function E(e,t){return{type:o.a.SET_WINDOW_VIEW_TYPE,viewType:t,windowId:e}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return{collectionPath:t,manifestId:e,type:o.a.SHOW_COLLECTION_DIALOG,windowId:n}}function S(e){return{type:o.a.HIDE_COLLECTION_DIALOG,windowId:e}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return d})),n.d(t,"j",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"m",(function(){return w})),n.d(t,"e",(function(){return E})),n.d(t,"n",(function(){return x})),n.d(t,"l",(function(){return S})),n.d(t,"f",(function(){return j})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return C})),n.d(t,"a",(function(){return P}));var r=n(9),o=n(34),i=n(24),a=n.n(i),s=n(304),c=n(53),l=n(36),u=n(88),f=n(40),d=Object(r.createSelector)([function(e,t){return t.windowId},function(e){return Object(f.a)(e).searches}],(function(e,t){return e&&t?t[e]:{}})),p=Object(r.createSelector)([d,function(e,t){return t.companionWindowId}],(function(e,t){if(e&&t)return e[t]})),h=Object(r.createSelector)([p],(function(e){return e?Object.values(e.data):[]})),g=Object(r.createSelector)([p],(function(e){return e&&e.query})),m=Object(r.createSelector)([h],(function(e){return e.some((function(e){return e.isFetching}))})),v=Object(r.createSelector)([p],(function(e){var t,n;if(e&&e.data){var r=Object.values(e.data).find((function(e){return!e.isFetching&&e.json&&e.json.within}));return null==r||null===(t=r.json)||void 0===t||null===(n=t.within)||void 0===n?void 0:n.total}})),b=Object(r.createSelector)([p],(function(e){if(e&&e.data){var t=Object.values(e.data).find((function(t){return!t.isFetching&&t.json&&t.json.next&&!e.data[t.json.next]}));return t&&t.json&&t.json.next}})),y=Object(r.createSelector)([h],(function(e){return a()(e.map((function(e){return e&&e.json&&!e.isFetching&&e.json.hits?e.json.hits:[]})))})),w=Object(r.createSelector)([y,c.f,function(e,t){var n=t.companionWindowId,r=t.windowId;return function(t){return _(e,{annotationUri:t,companionWindowId:n,windowId:r})}}],(function(e,t,n){if(!t||0===t.length)return[];if(!e||0===e.length)return[];var r=t.map((function(e){return e.id}));return[].concat(e).sort((function(e,t){var o=n(e.annotations[0]),i=n(t.annotations[0]);return r.indexOf(o.targetId)-r.indexOf(i.targetId)}))})),O=function(e){var t=e.map((function(e){if(e&&e.json&&!e.isFetching&&e.json.resources){var t=new s.a(e.json);return{id:t.id,resources:t.resources}}})).filter(Boolean);return{id:(t.find((function(e){return e.id}))||{}).id,resources:a()(t.map((function(e){return e.resources})))}},E=Object(r.createSelector)([h],(function(e){return e&&O(e)}));function x(e,t){if(!e||!e.resources||0===e.length)return[];if(!t||0===t.length)return[];var n=t.map((function(e){return e.id}));return[].concat(e.resources).sort((function(e,t){return n.indexOf(e.targetId)-n.indexOf(t.targetId)}))}var S=Object(r.createSelector)([E,c.f],(function(e,t){return x(e,t)})),j=Object(r.createSelector)([d],(function(e){return e?Object.values(e).map((function(e){return Object.values(e.data)})).map((function(e){return O(e)})).filter((function(e){return e.resources.length>0})):[]})),T=Object(r.createSelector)([l.e,p],(function(e,t){return t&&t.selectedContentSearchAnnotationIds||[]})),_=Object(r.createSelector)([E,function(e,t){return t.annotationUri}],(function(e,t){return e.resources.find((function(e){return e.id===t}))})),C=Object(r.createSelector)([_,u.f],(function(e,t){return e&&e.resource&&e.resource.label?o.b.parse(e.resource.label,t).getValues():[]})),I=Object(r.createSelector)([j,function(e,t){return t.annotationId}],(function(e,t){return a()(e.map((function(e){return e.resources}))).find((function(e){return e.id===t}))})),P=Object(r.createSelector)([I,function(e,t){var n=t.windowId;return function(t){return Object(c.a)(e,{canvasId:t,windowId:n})}}],(function(e,t){var n=e&&e.targetId;return n&&t(n)}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return f}));var r=n(2);function o(e){return{config:e,type:r.a.UPDATE_WORKSPACE}}function i(e){return{isFullscreenEnabled:e,type:r.a.SET_WORKSPACE_FULLSCREEN}}function a(e){return{showZoomControls:e,type:r.a.TOGGLE_ZOOM_CONTROLS}}function s(e){return{layout:e,type:r.a.UPDATE_WORKSPACE_MOSAIC_LAYOUT}}function c(e){return{isWorkspaceAddVisible:e,type:r.a.SET_WORKSPACE_ADD_VISIBILITY}}function l(e){return{payload:{position:{x:e.x,y:e.y}},type:r.a.SET_WORKSPACE_VIEWPORT_POSITION}}function u(e){var t=e.width;return{payload:{position:{height:e.height,width:t}},type:r.a.SET_WORKSPACE_VIEWPORT_POSITION}}function f(){return{type:r.a.TOGGLE_DRAGGING}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(2);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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 a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return{id:t,profile:n,type:r.a.ADD_AUTHENTICATION_REQUEST,windowId:e}}function s(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e,tokenServiceId:t,type:r.a.RESOLVE_AUTHENTICATION_REQUEST},n)}function c(e,t){return{authId:t,serviceId:e,type:r.a.REQUEST_ACCESS_TOKEN}}function l(e,t,n){return{authId:e,json:n,serviceId:t,type:r.a.RECEIVE_ACCESS_TOKEN}}function u(e,t,n){return{authId:e,error:n,serviceId:t,type:r.a.RECEIVE_ACCESS_TOKEN_FAILURE}}function f(e,t,n){return n.accessToken?l(e,t,n):u(e,t,n)}function d(e){return{id:e.authServiceId,tokenServiceId:e.tokenServiceId,type:r.a.RESET_AUTHENTICATION_STATE}}},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:undefined}());var t},r.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return g}));var r=n(143),o=n(2),i=n(157),a=n(216);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={content:null,position:null};function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i="cw-".concat(Object(r.a)());return{id:i,payload:c(c(c({},n),t),{},{id:i,windowId:e}),type:o.a.ADD_COMPANION_WINDOW,windowId:e}}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return function(r,o){var a=o(),s=t.position,c="left"===s&&Object(i.c)(a,{position:s,windowId:e})[0];r(c?p(e,c,t):f(e,t,n))}}function p(e,t,n){return{id:t,payload:n,type:o.a.UPDATE_COMPANION_WINDOW,windowId:e}}function h(e,t){return{id:t,type:o.a.REMOVE_COMPANION_WINDOW,windowId:e}}function g(e,t,n){return function(r,i){var s=i(),c=Object(a.c)(s,{companionWindowId:t},!1),u=Object(a.c)(s,{companionWindowId:t},!0),f=Object(a.e)(s,{id:t,windowId:e}),d=-1!==c.indexOf(n)||-1===u.indexOf(n)&&-1===f.indexOf(n);return r({id:t,payload:l({},n,{expanded:d}),type:o.a.TOGGLE_TOC_NODE,windowId:e})}}},function(e,t,n){var r=n(371),o=n(367),i=n(491),a=n(372),s=n(1002),c=n(373);e.exports=function(e,t,n){var l=-1,u=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,u=i;else if(f>=200){var g=t?null:s(e);if(g)return c(g);d=!1,u=a,h=new r}else h=t?[]:p;e:for(;++l<f;){var m=e[l],v=t?t(m):m;if(m=n||0!==m?m:0,d&&v==v){for(var b=h.length;b--;)if(h[b]===v)continue e;t&&h.push(v),p.push(m)}else u(h,v,n)||(h!==p&&h.push(v),p.push(m))}return p}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(143),o=n(2);function i(e){return{id:"error-".concat(Object(r.a)()),message:e,type:o.a.ADD_ERROR}}function a(e){return{id:e,type:o.a.REMOVE_ERROR}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){return{payload:t,type:r.a.UPDATE_ELASTIC_WINDOW_LAYOUT,windowId:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t,n){return{canvasId:t,payload:n,type:r.a.UPDATE_LAYERS,windowId:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(2);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return{manifestId:e,manifestJson:t,payload:n,type:r.a.ADD_RESOURCE}}function i(e){return{manifestId:e,type:r.a.REMOVE_RESOURCE}}},function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[],n=null,r=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?u(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},i._resetCrossOriginUpdater=function(){n=null,r=null},i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,i=null;if(this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(i=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),s(e,"resize",r,!0)),s(t,"scroll",r,!0),i&&i.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var c=p(t);c&&this._monitorIntersections(c.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=p(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var a=p(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,a=c(i),s=this._rootContainsTarget(i),l=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(i,a,t),f=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n&&!this.root?null:t,intersectionRect:u});l?e&&s?this._hasCrossedThreshold(l,f)&&this._queuedEntries.push(f):l&&l.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,l,f,p,h,g,m,v=o,b=d(t),y=!1;!y&&b;){var w=null,O=1==b.nodeType?window.getComputedStyle(b):{};if("none"==O.display)return null;if(b==this.root||9==b.nodeType)if(y=!0,b==this.root||b==e)n&&!this.root?!r||0==r.width&&0==r.height?(b=null,w=null,v=null):w=r:w=i;else{var E=d(b),x=E&&c(E),S=E&&this._computeTargetAndRootIntersection(E,x,i);x&&S?(b=E,w=u(x,S)):(b=null,v=null)}else{var j=b.ownerDocument;b!=j.body&&b!=j.documentElement&&"visible"!=O.overflow&&(w=c(b))}if(w&&(a=w,s=v,l=void 0,f=void 0,p=void 0,h=void 0,g=void 0,m=void 0,l=Math.max(a.top,s.top),f=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),h=Math.min(a.right,s.right),m=f-l,v=(g=h-p)>=0&&m>=0&&{top:l,bottom:f,left:p,right:h,width:g,height:m}||null),!v)break;b=b&&d(b)}return v}},i.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||f(e,this.root)},i.prototype._rootContainsTarget=function(t){return f(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=o}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=l(e.rootBounds),this.boundingClientRect=l(e.boundingClientRect),this.intersectionRect=l(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,r,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function u(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function f(e,t){for(var n=t;n;){if(n==e)return!0;n=d(n)}return!1}function d(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?p(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function p(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),o=n(141),i=n(290);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){var t=Object(o.a)().getMonitor(),n=a(Object(i.a)(t,e),2),s=n[0],c=n[1];return Object(r.useEffect)((function(){return t.subscribeToOffsetChange(c)})),Object(r.useEffect)((function(){return t.subscribeToStateChange(c)})),s}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(0),o=n(160);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=0,c=Object(r.memo)((function(e){var t=e.children,n=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[l]||(i[l]=Object(o.b)(e,t,n,r));return i[l]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(a(e,["children"])),c=i(n,2),f=c[0],d=c[1];return r.useEffect((function(){return d&&s++,function(){d&&(0===--s&&(u()[l]=null))}}),[]),r.createElement(o.a.Provider,{value:f},t)}));c.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function u(){return void 0!==e?e:window}}).call(this,n(121))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9),o=n(177),i=n(53),a=n(267),s=n(66),c=Object(r.createSelector)(i.o,a.c,s.e,(function(e,t,n){return new o.a(e,t,n)}))},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.BoundingBox=void 0;var o=n(1033);!function(e){function t(e,t,n){var r=e.top,i=e.right,a=e.bottom,s=e.left;return"column"===n?(100-r-a)*t/100+r:"row"===n?(100-i-s)*t/100+s:o.assertNever(n)}e.empty=function(){return{top:0,right:0,bottom:0,left:0}},e.split=function(e,n,i){var a=t(e,n,i);return"column"===i?{first:r(r({},e),{bottom:100-a}),second:r(r({},e),{top:a})}:"row"===i?{first:r(r({},e),{right:100-a}),second:r(r({},e),{left:a})}:o.assertNever(i)},e.getAbsoluteSplitPercentage=t,e.getRelativeSplitPercentage=function(e,t,n){var r=e.top,i=e.right,a=e.bottom,s=e.left;return"column"===n?(t-r)/(100-r-a)*100:"row"===n?(t-s)/(100-i-s)*100:o.assertNever(n)},e.asStyles=function(e){return{top:e.top+"%",right:e.right+"%",bottom:e.bottom+"%",left:e.left+"%"}}}(t.BoundingBox||(t.BoundingBox={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicZeroState=void 0;var a=i(n(19)),s=i(n(210)),c=i(n(0)),l=n(85),u=n(154),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){return Promise.resolve(t.props.createNode()).then((function(e){return t.context.mosaicActions.replaceWith([],e)})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return c.default.createElement("div",{className:a.default("mosaic-zero-state",u.OptionalBlueprint.getClasses("NON_IDEAL_STATE"))},c.default.createElement("div",{className:u.OptionalBlueprint.getClasses("NON_IDEAL_STATE_VISUAL")},c.default.createElement(u.OptionalBlueprint.Icon,{iconSize:120,icon:"applications"})),c.default.createElement("h4",{className:u.OptionalBlueprint.getClasses("HEADING")},"No Windows Present"),c.default.createElement("div",null,this.props.createNode&&c.default.createElement("button",{className:a.default(u.OptionalBlueprint.getClasses("BUTTON"),u.OptionalBlueprint.getIconClass("ADD")),onClick:this.replace},"Add New Window")))},t.contextType=l.MosaicContext,t}(c.default.PureComponent);t.MosaicZeroState=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDropTarget=void 0;var a=i(n(19)),s=i(n(0)),c=n(155),l=n(85),u=n(262),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.position,n=e.isOver,r=e.connectDropTarget,o=e.draggedMosaicId;return r(s.default.createElement("div",{className:a.default("drop-target",t,{"drop-target-hover":n&&o===this.context.mosaicId})}))},t.contextType=l.MosaicContext,t}(s.default.PureComponent);t.MosaicDropTarget=c.DropTarget(u.MosaicDragType.WINDOW,{drop:function(e,t,n){return n.context.mosaicId===(t.getItem()||{}).mosaicId?{path:e.path,position:e.position}:{}}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),draggedMosaicId:(t.getItem()||{}).mosaicId}}))(f)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONTROLS_WITHOUT_CREATION=t.DEFAULT_CONTROLS_WITH_CREATION=void 0;var o=r(n(0)),i=n(524),a=n(525),s=n(526),c=n(527);t.DEFAULT_CONTROLS_WITH_CREATION=o.default.Children.toArray([o.default.createElement(s.ReplaceButton,null),o.default.createElement(c.SplitButton,null),o.default.createElement(i.ExpandButton,null),o.default.createElement(a.RemoveButton,null)]),t.DEFAULT_CONTROLS_WITHOUT_CREATION=o.default.Children.toArray([o.default.createElement(i.ExpandButton,null),o.default.createElement(a.RemoveButton,null)])},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandButton=void 0;var a=i(n(19)),s=i(n(0)),c=n(85),l=n(154),u=n(213),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.default.createElement(c.MosaicContext.Consumer,null,(function(t){var n=t.mosaicActions;return u.createDefaultToolbarButton("Expand",a.default("expand-button",l.OptionalBlueprint.getIconClass("MAXIMIZE")),e.createExpand(n))}))},t.prototype.createExpand=function(e){var t=this;return function(){e.expand(t.context.mosaicWindowActions.getPath()),t.props.onClick&&t.props.onClick()}},t.contextType=c.MosaicWindowContext,t}(s.default.PureComponent);t.ExpandButton=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var a=i(n(19)),s=i(n(0)),c=n(85),l=n(154),u=n(213),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.default.createElement(c.MosaicContext.Consumer,null,(function(t){var n=t.mosaicActions;return u.createDefaultToolbarButton("Close Window",a.default("close-button",l.OptionalBlueprint.getIconClass("CROSS")),e.createRemove(n))}))},t.prototype.createRemove=function(e){var t=this;return function(){e.remove(t.context.mosaicWindowActions.getPath()),t.props.onClick&&t.props.onClick()}},t.contextType=c.MosaicWindowContext,t}(s.default.PureComponent);t.RemoveButton=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaceButton=void 0;var a=i(n(19)),s=i(n(210)),c=i(n(0)),l=n(85),u=n(154),f=n(213),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){t.context.mosaicWindowActions.replaceWithNew().then((function(){t.props.onClick&&t.props.onClick()})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return f.createDefaultToolbarButton("Replace Window",a.default("replace-button",u.OptionalBlueprint.getIconClass("EXCHANGE")),this.replace)},t.contextType=l.MosaicWindowContext,t}(c.default.PureComponent);t.ReplaceButton=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitButton=void 0;var a=i(n(19)),s=i(n(210)),c=i(n(0)),l=n(85),u=n(154),f=n(213),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.split=function(){t.context.mosaicWindowActions.split().then((function(){t.props.onClick&&t.props.onClick()})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return f.createDefaultToolbarButton("Split Window",a.default("split-button",u.OptionalBlueprint.getIconClass("ADD_COLUMN_RIGHT")),this.split)},t.contextType=l.MosaicWindowContext,t}(c.default.PureComponent);t.SplitButton=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=void 0;var a=i(n(0)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return a.default.createElement("div",{className:"separator"})},t}(a.default.PureComponent);t.Separator=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return j})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return R})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return D}));var r=n(9),o=n(220),i=n.n(o),a=n(24),s=n.n(a),c=n(304),l=n(126),u=n.n(l),f=n(143);function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,e),this.resource=t}var t,n,r;return t=e,(n=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource.id||Object(f.a)(),this._id}},{key:"targetId",get:function(){var e=this.target[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.source&&e.source.id||e.source||e.id;default:return null}}},{key:"motivations",get:function(){return s()(u()(new Array(this.resource.motivation)))}},{key:"body",get:function(){return s()(u()(new Array(this.resource.body)))}},{key:"resources",get:function(){return this.body}},{key:"tags",get:function(){return this.isOnlyTag()?this.body.map((function(e){return e.value})):this.body.filter((function(e){return"tagging"===e.purpose})).map((function(e){return e.value}))}},{key:"target",get:function(){return s()(u()(new Array(this.resource.target)))}},{key:"chars",get:function(){return this.isOnlyTag()?null:this.body.filter((function(e){return"tagging"!==e.purpose})).map((function(e){return e.value})).join(" ")}},{key:"selector",get:function(){var e=this.target[0];switch(typeof e){case"string":return e;case"object":return s()(u()(new Array(e.selector)));default:return null}}},{key:"svgSelector",get:function(){var e=this.selector;return"object"==typeof e?e.find((function(e){return e.type&&"SvgSelector"===e.type})):null}},{key:"fragmentSelector",get:function(){var e,t,n=this.selector;switch(typeof n){case"string":e=n.match(/xywh=(.*)$/);break;case"object":e=(t=n.find((function(e){return e.type&&"FragmentSelector"===e.type})))&&t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&p(t.prototype,n),r&&p(t,r),e}();function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json=t,this.target=n}var t,n,r;return t=e,(n=[{key:"id",get:function(){return this.json.id}},{key:"present",value:function(){return this.items&&this.items.length>0}},{key:"items",get:function(){var e=this;return this._items=this._items||(e.json&&e.json.items?s()([e.json.items]).map((function(e){return new h(e)})):[]),this._items}},{key:"resources",get:function(){return this.items}}])&&g(t.prototype,n),r&&g(t,r),e}();function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"determineAnnotation",value:function(e,t){return e?"AnnotationPage"===e.type?new m(e,t):new c.a(e,t):null}}],(n=null)&&v(t.prototype,n),r&&v(t,r),e}(),y=n(40),w=n(53),O=n(97),E=n(36),x=["canvasId"];function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var j=function(e){return Object(y.a)(e).annotations},T=Object(r.createSelector)([O.a,function(e,t){return t.motivations}],(function(e,t){return t||e.annotations.filteredMotivations})),_=Object(r.createSelector)([w.a,j],(function(e,t){return t&&e&&t[e.id]?s()(Object.values(t[e.id])):[]})),C=Object(r.createSelector)([_],(function(e){return i()(Object.values(e).map((function(e){return e&&b.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),I=Object(r.createSelector)([function(e,t){var n=t.canvasId,r=S(t,x);return n?[n]:Object(w.l)(e,r)},j],(function(e,t){return t&&0!==e.length?s()(e.map((function(e){return t[e]&&Object.values(t[e])}))):[]})),P=Object(r.createSelector)([I],(function(e){return i()(Object.values(e).map((function(e){return e&&b.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),k=Object(r.createSelector)([C,T],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),R=Object(r.createSelector)([P,T],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),A=Object(r.createSelector)([E.e],(function(e){return e.selectedAnnotationId})),D=Object(r.createSelector)([P,A],(function(e,t){return e.map((function(e){return{id:e["@id"]||e.id,resources:e.resources.filter((function(e){return t===e.id}))}})).filter((function(e){return e.resources.length>0}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),o=n(14),i=n(296),a=n(81),s=n(139),c=n(141),l=n(295),u=n(294);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e){var t=Object(r.useRef)(e);t.current=e,Object(o.a)(null!=e.accept,"accept must be defined");var n,p=d((n=Object(c.a)(),[Object(r.useMemo)((function(){return new u.a(n)}),[n]),Object(r.useMemo)((function(){return new l.a(n.getBackend())}),[n])]),2),h=p[0],g=p[1];!function(e,t,n){var o=Object(c.a)(),i=Object(r.useMemo)((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);Object(a.a)((function(){var r=f(Object(s.b)(e.current.accept,i,o),2),a=r[0],c=r[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),c}),[t,n])}(t,h,g);var m=Object(i.a)(h,t.current.collect||function(){return{}},(function(){return g.reconnect()})),v=Object(r.useMemo)((function(){return g.hooks.dropTarget()}),[g]);return Object(a.a)((function(){g.dropTargetOptions=e.options||null,g.reconnect()}),[e.options]),[m,v]}},function(e,t,n){"use strict";var r=n(3).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t,n){!function(e,t){"use strict";function n(e){return"string"==typeof e||"number"==typeof e}var r=function(){function e(){this._cache={}}var t=e.prototype;return t.set=function(e,t){this._cache[e]=t},t.get=function(e){return this._cache[e]},t.remove=function(e){delete this._cache[e]},t.clear=function(){this._cache={}},t.isValidCacheKey=function(e){return n(e)},e}(),o=r,i=function(){return!0};function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,r){if(r)throw new Error('[re-reselect] "options" as second argument is not supported anymore. Please provide an option object as single argument.');var a="function"==typeof e?{keySelector:e}:Object.assign({},e),s=0,c=n.pop(),l=Array.isArray(n[0])?n[0]:[].concat(n),u=function(){return s++,c.apply(void 0,arguments)};n.push(u);var f=a.cacheObject||new o,d=a.selectorCreator||t.createSelector,p=f.isValidCacheKey||i;a.keySelectorCreator&&(a.keySelector=a.keySelectorCreator({keySelector:a.keySelector,inputSelectors:l,resultFunc:c}));var h=function(){var e=a.keySelector.apply(a,arguments);if(p(e)){var t=f.get(e);return void 0===t&&(t=d.apply(void 0,n),f.set(e,t)),t.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+e+'" has been returned by keySelector function.')};return h.getMatchingSelector=function(){var e=a.keySelector.apply(a,arguments);return f.get(e)},h.removeMatchingSelector=function(){var e=a.keySelector.apply(a,arguments);f.remove(e)},h.clearCache=function(){f.clear()},h.resultFunc=c,h.dependencies=l,h.cache=f,h.recomputations=function(){return s},h.resetRecomputations=function(){return s=0},h.keySelector=a.keySelector,h}}function s(e){return t.createStructuredSelector(e,a)}function c(e){if(void 0===e)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(e)||e<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var l=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;c(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._cacheOrdering.push(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return n(e)},e}(),u=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;c(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return n(e)},e}(),f=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),d=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;c(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),p=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;c(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoMapCache=d,e.FifoObjectCache=l,e.FlatMapCache=f,e.FlatObjectCache=r,e.LruMapCache=p,e.LruObjectCache=u,e.createCachedSelector=a,e.createStructuredCachedSelector=s,e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9))},function(e,t,n){var r=n(988);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(174),o=n(176),i=n(509),a=n(261),s=o((function(e){return i(r(e,1,a,!0))}));e.exports=s},function(e,t,n){var r,o;window,e.exports=(r=n(0),o=n(32),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=4)}([function(e,t,n){e.exports=n(5)()},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(7),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},function(e,t,n){"use strict";var r=n(6);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(2),c=n.n(s),l=n(3),u=n.n(l);function f(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function d(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function p(e){return"number"==typeof e&&!isNaN(e)}function h(e){return parseInt(e,10)}function g(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var m=["Moz","Webkit","O","ms"];function v(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<m.length;n++)if(v(e,m[n])in t)return m[n];return""}();function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O="";function E(e,t){return O||(O=f(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return d(e[t])}))),!!d(e[O])&&e[O](t)}function x(e,t,n){var r=e;do{if(E(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function S(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function j(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function T(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=h(n.borderTopWidth))+h(n.borderBottomWidth)}function _(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=h(n.borderLeftWidth))+h(n.borderRightWidth)}function C(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=h(n.paddingTop))-h(n.paddingBottom)}function I(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=h(n.paddingLeft))-h(n.paddingRight)}function P(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function k(e){if(e){var t,n,r=e.getElementById("react-draggable-style-el");r||((r=e.createElement("style")).type="text/css",r.id="react-draggable-style-el",r.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",r.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(r)),e.body&&(n="react-draggable-transparent-selection",(t=e.body).classList?t.classList.add(n):t.className.match(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)")))||(t.className+=" ".concat(n)))}}function R(e){try{e&&e.body&&(t=e.body,n="react-draggable-transparent-selection",t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)"),"g"),"")),e.selection?e.selection.empty():window.getSelection().removeAllRanges()}catch(e){}var t,n}function A(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(n,!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({touchAction:"none"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function D(e){return"both"===e.props.axis||"x"===e.props.axis}function M(e){return"both"===e.props.axis||"y"===e.props.axis}function N(e,t,n){var r="number"==typeof t?function(e,t){return e.targetTouches&&f(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&f(e.changedTouches,(function(e){return t===e.identifier}))}(e,t):null;if("number"==typeof t&&!r)return null;var o=W(n);return function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}}(r||e,n.props.offsetParent||o.offsetParent||o.ownerDocument.body,n.props.scale)}function L(e,t,n){var r=e.state,o=!p(r.lastX),i=W(e);return o?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}}function z(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function W(e){var t=c.a.findDOMNode(e);if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}function B(e){return(B="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})(e)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},K=$.mouse,Z=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=this,o=(e=U(t)).call.apply(e,[this].concat(a)),n=!o||"object"!==B(o)&&"function"!=typeof o?V(r):o,q(V(n),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),q(V(n),"handleDragStart",(function(e){if(n.props.onMouseDown(e),!n.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;var t=c.a.findDOMNode(V(n));if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=t.ownerDocument;if(!(n.props.disabled||!(e.target instanceof r.defaultView.Node)||n.props.handle&&!x(e.target,n.props.handle,t)||n.props.cancel&&x(e.target,n.props.cancel,t))){var o=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0}(e);n.setState({touchIdentifier:o});var i=N(e,o,V(n));if(null!=i){var a=i.x,s=i.y,l=L(V(n),a,s);n.props.onStart,!1!==n.props.onStart(e,l)&&(n.props.enableUserSelectHack&&k(r),n.setState({dragging:!0,lastX:a,lastY:s}),S(r,K.move,n.handleDrag),S(r,K.stop,n.handleDragStop))}}})),q(V(n),"handleDrag",(function(e){"touchmove"===e.type&&e.preventDefault();var t=N(e,n.state.touchIdentifier,V(n));if(null!=t){var r,o,i,a=t.x,s=t.y;if(Array.isArray(n.props.grid)){var c=a-n.state.lastX,l=s-n.state.lastY,u=F((r=n.props.grid,o=c,i=l,[Math.round(o/r[0])*r[0],Math.round(i/r[1])*r[1]]),2);if(c=u[0],l=u[1],!c&&!l)return;a=n.state.lastX+c,s=n.state.lastY+l}var f=L(V(n),a,s);if(!1!==n.props.onDrag(e,f))n.setState({lastX:a,lastY:s});else try{n.handleDragStop(new MouseEvent("mouseup"))}catch(e){var d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.handleDragStop(d)}}})),q(V(n),"handleDragStop",(function(e){if(n.state.dragging){var t=N(e,n.state.touchIdentifier,V(n));if(null!=t){var r=t.x,o=t.y,i=L(V(n),r,o),a=c.a.findDOMNode(V(n));a&&n.props.enableUserSelectHack&&R(a.ownerDocument),n.setState({dragging:!1,lastX:NaN,lastY:NaN}),n.props.onStop(e,i),a&&(j(a.ownerDocument,K.move,n.handleDrag),j(a.ownerDocument,K.stop,n.handleDragStop))}}})),q(V(n),"onMouseDown",(function(e){return K=$.mouse,n.handleDragStart(e)})),q(V(n),"onMouseUp",(function(e){return K=$.mouse,n.handleDragStop(e)})),q(V(n),"onTouchStart",(function(e){return K=$.touch,n.handleDragStart(e)})),q(V(n),"onTouchEnd",(function(e){return K=$.touch,n.handleDragStop(e)})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(t,o.a.Component),n=t,(r=[{key:"componentWillUnmount",value:function(){var e=c.a.findDOMNode(this);if(e){var t=e.ownerDocument;j(t,$.mouse.move,this.handleDrag),j(t,$.touch.move,this.handleDrag),j(t,$.mouse.stop,this.handleDragStop),j(t,$.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&R(t)}}},{key:"render",value:function(){return o.a.cloneElement(o.a.Children.only(this.props.children),{style:A(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&H(n.prototype,r),i&&H(n,i),t}();function Y(e){return(Y="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})(e)}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(n,!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t,n){return t&&oe(e.prototype,t),n&&oe(e,n),e}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}q(Z,"displayName","DraggableCore"),q(Z,"propTypes",{allowAnyClick:a.a.bool,disabled:a.a.bool,enableUserSelectHack:a.a.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.a.arrayOf(a.a.number),handle:a.a.string,cancel:a.a.string,onStart:a.a.func,onDrag:a.a.func,onStop:a.a.func,onMouseDown:a.a.func,scale:a.a.number,className:g,style:g,transform:g}),q(Z,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),n.d(t,"default",(function(){return ce})),n.d(t,"DraggableCore",(function(){return Z}));var ce=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=ne(t).call(this,e),n=!o||"object"!==Y(o)&&"function"!=typeof o?re(r):o,se(re(n),"onDragStart",(function(e,t){if(!1===n.props.onStart(e,z(re(n),t)))return!1;n.setState({dragging:!0,dragged:!0})})),se(re(n),"onDrag",(function(e,t){if(!n.state.dragging)return!1;var r=z(re(n),t),o={x:r.x,y:r.y};if(n.props.bounds){var i=o.x,a=o.y;o.x+=n.state.slackX,o.y+=n.state.slackY;var s=J(function(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"==typeof r?r:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(r);var o=W(e);if("string"==typeof r){var i,a=o.ownerDocument,s=a.defaultView;if(!((i="parent"===r?o.parentNode:a.querySelector(r))instanceof s.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var c=s.getComputedStyle(o),l=s.getComputedStyle(i);r={left:-o.offsetLeft+h(l.paddingLeft)+h(c.marginLeft),top:-o.offsetTop+h(l.paddingTop)+h(c.marginTop),right:I(i)-_(o)-o.offsetLeft+h(l.paddingRight)-h(c.marginRight),bottom:C(i)-T(o)-o.offsetTop+h(l.paddingBottom)-h(c.marginBottom)}}return p(r.right)&&(t=Math.min(t,r.right)),p(r.bottom)&&(n=Math.min(n,r.bottom)),p(r.left)&&(t=Math.max(t,r.left)),p(r.top)&&(n=Math.max(n,r.top)),[t,n]}(re(n),o.x,o.y),2),c=s[0],l=s[1];o.x=c,o.y=l,o.slackX=n.state.slackX+(i-o.x),o.slackY=n.state.slackY+(a-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-n.state.x,r.deltaY=o.y-n.state.y}if(!1===n.props.onDrag(e,r))return!1;n.setState(o)})),se(re(n),"onDragStop",(function(e,t){if(!n.state.dragging)return!1;if(!1===n.props.onStop(e,z(re(n),t)))return!1;var r={dragging:!1,slackX:0,slackY:0};if(Boolean(n.props.position)){var o=n.props.position,i=o.x,a=o.y;r.x=i,r.y=a}n.setState(r)})),n.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:te({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(t,o.a.Component),ie(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:{x:n.x,y:n.y,prevPropsPosition:te({},n)}}}]),ie(t,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&c.a.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,s=t.defaultClassNameDragged,c=t.position,l=t.positionOffset,f=(t.scale,Q(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),d={},p=null,h=!Boolean(c)||this.state.dragging,g=c||r,m={x:D(this)&&h?this.state.x:g.x,y:M(this)&&h?this.state.y:g.y};this.state.isElementSVG?p=function(e,t){return P(e,t,"")}(m,l):d=function(e,t){var n=P(e,t,"px");return w({},v("transform",b),n)}(m,l);var y=u()(n.props.className||"",i,(se(e={},a,this.state.dragging),se(e,s,this.state.dragged),e));return o.a.createElement(Z,X({},f,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.a.cloneElement(o.a.Children.only(n),{className:y,style:te({},n.props.style,{},d),transform:p}))}}]),t}();se(ce,"displayName","Draggable"),se(ce,"propTypes",te({},Z.propTypes,{axis:a.a.oneOf(["both","x","y","none"]),bounds:a.a.oneOfType([a.a.shape({left:a.a.number,right:a.a.number,top:a.a.number,bottom:a.a.number}),a.a.string,a.a.oneOf([!1])]),defaultClassName:a.a.string,defaultClassNameDragging:a.a.string,defaultClassNameDragged:a.a.string,defaultPosition:a.a.shape({x:a.a.number,y:a.a.number}),positionOffset:a.a.shape({x:a.a.oneOfType([a.a.number,a.a.string]),y:a.a.oneOfType([a.a.number,a.a.string])}),position:a.a.shape({x:a.a.number,y:a.a.number}),className:g,style:g,transform:g})),se(ce,"defaultProps",te({},Z.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))}]))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(0)),l=n(1003),u=s(n(1004)),f={width:"auto",height:"auto"},d=u.default((function(e,t,n){return Math.max(Math.min(e,n),t)})),p=u.default((function(e,t){return Math.round(e/t)*t})),h=u.default((function(e,t){return new RegExp(e,"i").test(t)})),g=u.default((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),m=u.default((function(e,t){return e.substr(e.length-t.length,t.length)===t})),v=u.default((function(e){return"auto"===(e=e.toString())||m(e,"px")||m(e,"%")||m(e,"vh")||m(e,"vw")||m(e,"vmax")||m(e,"vmin")?e:e+"px"})),b=function(e,t){if(e&&"string"==typeof e){if(m(e,"%"))return t*(n=Number(e.replace("%",""))/100);if(m(e,"vw")){var n=Number(e.replace("vw",""))/100;return window.innerWidth*n}if(m(e,"vh")){n=Number(e.replace("vh",""))/100;return window.innerHeight*n}}return e},y=u.default((function(e,t,n,r,o){return t=b(t,e.width),n=b(n,e.height),r=b(r,e.width),o=b(o,e.height),{maxWidth:void 0===t?void 0:Number(t),maxHeight:void 0===n?void 0:Number(n),minWidth:void 0===r?void 0:Number(r),minHeight:void 0===o?void 0:Number(o)}})),w=["style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],O="__resizable_base__",E=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"}},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return o(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||f},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r instanceof HTMLElement&&r.classList.contains(O))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if("undefined"!=typeof window&&this.resizable){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&m(e.propsSize[t].toString(),"%")){if(m(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return v(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?v(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?v(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return{width:window.innerWidth,height:window.innerHeight};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){"undefined"!=typeof window&&(window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseleave",this.onMouseUp),window.addEventListener("touchmove",this.onMouseMove),window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){"undefined"!=typeof window&&(window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseleave",this.onMouseUp),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable){var e=window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t instanceof HTMLElement&&!this.base){var n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add(O):n.className+=O,t.appendChild(n)}}},t.prototype.componentWillUnmount=function(){if("undefined"!=typeof window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!(e instanceof HTMLElement&&this.base instanceof Node))return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n instanceof HTMLElement){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),o=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}}else if("window"===this.props.bounds){if("undefined"!=typeof window){r=window.innerWidth-this.resizableLeft,o=window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<o?t:o}}else if(this.props.bounds instanceof HTMLElement){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,c=s.lockAspectRatio,l=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,f=a.width,d=a.height,p=l||0,g=u||0;return h("right",i)&&(f=a.width+(e-a.x)*r/n,c&&(d=(f-g)/this.ratio+p)),h("left",i)&&(f=a.width-(e-a.x)*r/n,c&&(d=(f-g)/this.ratio+p)),h("bottom",i)&&(d=a.height+(t-a.y)*r/n,c&&(f=(d-p)*this.ratio+g)),h("top",i)&&(d=a.height-(t-a.y)*r/n,c&&(f=(d-p)*this.ratio+g)),{newWidth:f,newHeight:d}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,c=void 0===r.width?10:r.width,l=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,f=void 0===n.height||n.height<0?t:n.height,p=a||0,h=s||0;if(i){var g=(u-p)*this.ratio+h,m=(f-p)*this.ratio+h,v=(c-h)/this.ratio+p,b=(l-h)/this.ratio+p,y=Math.max(c,g),w=Math.min(l,m),O=Math.max(u,v),E=Math.min(f,b);e=d(e,y,w),t=d(t,O,E)}else e=d(e,c,l),t=d(t,u,f);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e instanceof HTMLElement){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds instanceof HTMLElement){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top;this.resizableLeft=o,this.resizableTop=i}},t.prototype.onResizeStart=function(e,t){if(this.resizable){var n,r=0,o=0;if(e.nativeEvent instanceof MouseEvent){if(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof TouchEvent&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var s=this.parentNode;if(s){var c=window.getComputedStyle(s).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",n=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:i(i({},this.state.backgroundStyle),{cursor:window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable){var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof MouseEvent?e.clientY:e.touches[0].clientY,c=this.state,l=c.direction,u=c.original,f=c.width,d=c.height,h=this.getParentSize(),v=y(h,n,r,o,i);n=v.maxWidth,r=v.maxHeight,o=v.minWidth,i=v.minHeight;var b=this.calculateNewSizeFromDirection(a,s),w=b.newHeight,O=b.newWidth,E=this.calculateNewMaxFromBoundary(n,r),x=this.calculateNewSizeFromAspectRatio(O,w,{width:E.maxWidth,height:E.maxHeight},{width:o,height:i});if(O=x.newWidth,w=x.newHeight,this.props.grid){var S=p(O,this.props.grid[0]),j=p(w,this.props.grid[1]),T=this.props.snapGap||0;O=0===T||Math.abs(S-O)<=T?S:O,w=0===T||Math.abs(j-w)<=T?j:w}this.props.snap&&this.props.snap.x&&(O=g(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=g(w,this.props.snap.y,this.props.snapGap));var _={width:O-u.width,height:w-u.height};if(f&&"string"==typeof f)if(m(f,"%"))O=O/h.width*100+"%";else if(m(f,"vw")){O=O/window.innerWidth*100+"vw"}else if(m(f,"vh")){O=O/window.innerHeight*100+"vh"}if(d&&"string"==typeof d)if(m(d,"%"))w=w/h.height*100+"%";else if(m(d,"vw")){w=w/window.innerWidth*100+"vw"}else if(m(d,"vh")){w=w/window.innerHeight*100+"vh"}var C={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(w,"height")};"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),this.setState(C),this.props.onResize&&this.props.onResize(e,l,this.resizable,_)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var a={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:i(i({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var u=Object.keys(n).map((function(t){return!1!==n[t]?c.createElement(l.Resizer,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return c.createElement("span",{className:a,style:i},u)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==w.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=i(i(i({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});return this.state.flexBasis&&(n.flexBasis=this.state.flexBasis),c.createElement("div",i({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&c.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(c.PureComponent);t.Resizable=E},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?u:10===e?f:u||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,c=i.commonAncestorContainer;if(e!==c&&t!==c||r.contains(o))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(c):c;var l=h(e);return l.host?g(l.host,t):g(e,h(t).host)}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),o=m(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function j(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=m(e,"top"),r=m(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,c=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var f=a(e);l-=b(f,"x"),u-=b(f,"y"),o.width-=l,o.height-=u}return j(o)}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,i=T(e),s=T(t),l=c(e),u=a(t),f=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=j({top:i.top-s.top-f,left:i.left-s.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var g=parseFloat(u.marginTop),m=parseFloat(u.marginLeft);h.top-=f-g,h.bottom-=f-g,h.left-=p-m,h.right-=p-m,h.marginTop=g,h.marginLeft=m}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=v(h,t)),h}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=_(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),s=t?0:m(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return j(c)}function I(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&I(n)}function P(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?P(e):g(e,l(t));if("viewport"===r)i=C(a,o);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var f=_(u,a,o);if("HTML"!==u.nodeName||I(a))i=f;else{var d=w(e.ownerDocument),p=d.height,h=d.width;i.top+=f.top-f.marginTop,i.bottom=p+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}var m="number"==typeof(n=n||0);return i.left+=m?n:n.left||0,i.top+=m?n:n.top||0,i.right-=m?n:n.right||0,i.bottom-=m?n:n.bottom||0,i}function R(e){return e.width*e.height}function A(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=k(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return S({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?P(t):g(t,l(n));return _(n,o,r)}function M(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=M(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[c]/2-r[c]/2,o[s]=n===s?t[s]-r[l]:t[N(s)],o}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=j(t.offsets.popper),t.offsets.reference=j(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=W(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function F(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function U(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function V(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||G(c(i.parentNode),t,n,r),r.push(i)}function q(e,t,n,r){n.updateBound=r,V(e).addEventListener("resize",n.updateBound,{passive:!0});var o=c(e);return G(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,V(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Y(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var X=n&&/Firefox/i.test(navigator.userAgent);function Q(e,t,n){var r=z(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ee=J.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",oe="counterclockwise";function ie(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return l=l.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return j("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){Z(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ae={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:x({},c,i[c]),end:x({},c,i[c]+i[l]-a[l])};e.offsets.popper=S({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],c=void 0;return c=Z(+n)?[+n,0]:ie(n,i,a,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=H("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=k(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),x({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=S({},u,f[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<i(r[c])&&(e.offsets.popper[c]=i(r[c])-n[l]),n[c]>i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,c=i.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",g=M(r)[u];c[h]-g<s[d]&&(e.offsets.popper[d]-=s[d]-(c[h]-g)),c[d]+g>s[h]&&(e.offsets.popper[d]+=c[d]+g-s[h]),e.offsets.popper=j(e.offsets.popper);var m=c[d]+c[u]/2-g/2,v=a(e.instance.popper),b=parseFloat(v["margin"+f]),y=parseFloat(v["border"+f+"Width"]),w=m-e.offsets.popper[d]-b-y;return w=Math.max(Math.min(s[u]-g,w),0),e.arrowElement=r,e.offsets.arrow=(x(n={},d,Math.round(w)),x(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=k(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=N(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ne:a=[r,o];break;case re:a=te(r);break;case oe:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],o=N(r);var l=e.offsets.popper,u=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(u.left)||"right"===r&&f(l.left)<f(u.right)||"top"===r&&f(l.bottom)>f(u.top)||"bottom"===r&&f(l.top)<f(u.bottom),p=f(l.left)<f(n.left),h=f(l.right)>f(n.right),g=f(l.top)<f(n.top),m=f(l.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&g||"bottom"===r&&m,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===i&&p||b&&"end"===i&&h||!b&&"start"===i&&g||!b&&"end"===i&&m),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&p||!b&&"start"===i&&m||!b&&"end"===i&&g),O=y||w;(d||v||O)&&(e.flipped=!0,(d||v)&&(r=a[c+1]),O&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=S({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=W(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=N(t),e.offsets.popper=j(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=p(e.instance.popper),c=T(s),l={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},c=i(o.width),l=i(r.width),u=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?u||f||c%2==l%2?i:a:s,p=t?i:s;return{left:d(c%2==1&&l%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!X),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=H("transform"),g=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,g="right"===d?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,a&&h)l[h]="translate3d("+g+"px, "+m+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var v="bottom"===f?-1:1,b="right"===d?-1:1;l[f]=m*v,l[d]=g*b,l.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=S({},y,e.attributes),e.styles=S({},l,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Y(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Y(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=D(o,t,e,n.positionFixed),a=A(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Y(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},se={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ae},ce=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};O(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return E(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();ce.Utils=("undefined"!=typeof window?window:e).PopperUtils,ce.placements=J,ce.Defaults=se,t.a=ce}).call(this,n(121))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNewSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicatorSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}),"ReorderSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}),"ArrowForwardSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpwardSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"}),"KeyboardArrowUpSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTopSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}),"OpacitySharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}),"ChevronLeftSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightSharp");t.default=i},function(e,t,n){"use strict";(function(e){var r=n(0);function o(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof self?self:e;var r,o,i="undefined"!=typeof document&&document.attachEvent;if(!i){var a=(o=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},function(e){return o(e)}),s=(r=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout,function(e){return r(e)}),c=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;c(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},u=!1,f="",d="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=document.createElement("fakeelement");if(void 0!==g.style.animationName&&(u=!0),!1===u)for(var m=0;m<p.length;m++)if(void 0!==g.style[p[m]+"AnimationName"]){f="-"+p[m].toLowerCase()+"-",d=h[m],u=!0;break}var v="resizeanim",b="@"+f+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",y=f+"animation: 1ms "+v+"; "}return{addResizeListener:function(e,r){if(i)e.attachEvent("onresize",r);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,a=n.getComputedStyle(e);a&&"static"==a.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(b||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),c(e),e.addEventListener("scroll",l,!0),d&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&c(e)},e.__resizeTriggers__.addEventListener(d,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(r)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l=function(e){function t(){var e,n,r;i(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},c=parseInt(s.paddingLeft,10)||0,l=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,f=parseInt(s.paddingBottom,10)||0,d=i-u-f,p=a-c-l;(!t&&r.state.height!==d||!n&&r.state.width!==p)&&(r.setState({height:i-u-f,width:a-c-l}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=o(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.disableHeight,i=e.disableWidth,a=e.style,c=this.state,l=c.height,u=c.width,f={overflow:"visible"},d={},p=!1;return o||(0===l&&(p=!0),f.height=0,d.height=l),i||(0===u&&(p=!0),f.width=0,d.width=u),Object(r.createElement)("div",{className:n,ref:this._setRef,style:s({},f,a)},!p&&t(d))}}]),t}(r.PureComponent);l.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.a=l}).call(this,n(121))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),i=c(o),a=c(n(11)),s=c(n(1013));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.detectFullScreen=n.detectFullScreen.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){s.default.addEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentWillUnmount",value:function(){s.default.removeEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentDidUpdate",value:function(){this.handleProps(this.props)}},{key:"handleProps",value:function(e){var t=s.default.fullscreenElement===this.node;t&&!e.enabled?this.leaveFullScreen():!t&&e.enabled&&this.enterFullScreen()}},{key:"detectFullScreen",value:function(){this.props.onChange&&this.props.onChange(s.default.fullscreenElement===this.node)}},{key:"enterFullScreen",value:function(){s.default.fullscreenEnabled&&s.default.requestFullscreen(this.node)}},{key:"leaveFullScreen",value:function(){s.default.fullscreenEnabled&&s.default.exitFullscreen()}},{key:"render",value:function(){var e=this,t=["fullscreen"];return this.props.enabled&&t.push("fullscreen-enabled"),i.default.createElement("div",{className:t.join(" "),ref:function(t){return e.node=t},style:this.props.enabled?{height:"100%",width:"100%"}:void 0},this.props.children)}}]),t}(o.Component);l.propTypes={children:a.default.node.isRequired,enabled:a.default.bool.isRequired,onChange:a.default.func},l.defaultProps={enabled:!1},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1048),o=r.default||r;t.default=function(e){var t=void 0===e?{}:e,n=t.enabled,r=void 0===n||n,i=t.opt,a=void 0===i?"out":i;return{onProcessStyle:function(e,t,n){if("font-face"===t.type)return e;if(!r)return"boolean"==typeof e.flip&&delete e.flip,e;var i="out"===a;return"boolean"==typeof n.options.flip&&(i=n.options.flip),"boolean"==typeof e.flip&&(i=e.flip,delete e.flip),i?o("function"==typeof t.toJSON?t.toJSON():e):e}}}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e){e.exports=JSON.parse('{"translation":{"aboutThisItem":"عن هذا العنصر","addedFromUrl":"(تمت إضافته من الرابط)","addManifestUrl":"موقع المصدر","addManifestUrlHelp":"الرابط لمصدر IIIF ","addResource":"اضف مصدر","annotationCanvasLabel_1/1":"العنصر: [{{الملصق}}]","annotationCanvasLabel_1/2":"يسار: [{{الملصق }}]","annotationCanvasLabel_2/2":"يمين: [{{الملصق}}]","annotations":"ملاحظات","attribution":"إسناد","attributionTitle":"حقوق","authenticationFailed":"التوثيق لم ينجح","authenticationRequired":"يجب توثيق الحساب لمنح الدخول الكامل","backToResults":"الرجوع الى النتائج","book":"كتاب","bottom":"أسفل","cancel":"الغاء","canvasIndex":"فهرس","changeTheme":"قم بتغيير الموضوع","clearSearch":"امسح","closeAddResourceForm":"إغلاق الإستمارة","closeAddResourceMenu":"إغلاق قائمة المصادر","closeCompanionWindow":"إغلاق اللوحة","closeWindow":"إغلاق النافذة","collapseSection":"تصغير جزء {{section}}","collapseSidePanel":"تصغير الشريط الجانبي","itemList":"قائمة العناصر","continue":"استمر","copy":"نسخ","currentItem":"العنصر الحالي","currentItem_1/1":"العنصر الحالي","currentItem_1/2":"يسار","currentItem_2/2":"يمين","dark":"موضوع داكن","dismiss":"تجاهل","highlightAllAnnotations":"تحديد الكل","downloadExport":"تصدير مساحة العمل","downloadExportWorkspace":"تصدير مساحة العمل","elastic":"مرن","elasticDescription":"حرك النوافذ و غير حجمها بحرية في مساحة عمل غير محدودة. يمكن أن تتداخل النوافذ أيضاً .","emptyResourceList":"قائمة المصادر الخاصة بك فارغة.","errorDialogConfirm":"حسناً","errorDialogTitle":"لقد حدث خطأ","exitFullScreen":"خروج من الشاشة الكاملة","expandSection":"توسيع الجزء {{section}}","expandSidePanel":"توسيع الشريط الجانبي","fetchManifest":"أضف","fullScreen":"شاشة كاملة","gallery":"المعرض","hideZoomControls":"إخفاء ضوابط التكبير","iiif_homepage":"عن هذه المصدر","iiif_manifest":"IIIF قائمة ","iiif_renderings":"تنسيقات بديلة","iiif_seeAlso":"أنظر أيضا","import":"استورد ","importWorkspace":"استيراد مساحة العمل","importWorkspaceHint":"قم بلصق تركيبة Mirador 3 ليتم استيراده","item":"العنصر: {{label}}","language":"اللغة","layer_hide":"إخفاء الطبقة","layer_move":"تحريك الطبقة","layer_opacity":"تعتيم الطبقة","layer_show":"إظهار الطبقة","layer_moveToTop":"حرك الطبقة إلى الأعلى","layers":"طبقات","light":"موضوع فاتح","links":"الروابط","listAllOpenWindows":"انتقل بسرعة للنافذة","login":"تسجيل الدخول","logout":"تسجيل الخروج","manifestError":"لا يمكن إضافة المصدر:","maximizeWindow":"تكبير النافذة إلى الحد الاكبر","minimizeWindow":"تصغير النافذة إلى الحد الأدنى","mirador":"Mirador","miradorResources":"مصادر Mirador ","miradorViewer":"مشاهد Mirador","more":"أكثر...","moreResults":"نتائج إضافية","mosaic":"فسيفساء","mosaicDescription":"حرك وغيٌر حجم النوافذ المتعلقة ببعضها البعض داخل الإطار المرئي.","moveCompanionWindowToBottom":"انتقل للأسفل","moveCompanionWindowToRight":"انتقل لليمين","nextCanvas":"العنصر التالي","numItems":"{{number}} عناصر","off":"ايقاف","openCompanionWindow_annotations":"ملاحظات","openCompanionWindow_attribution":"حقوق","openCompanionWindow_canvas":"فهرس","openCompanionWindow_info":"معلومات","openCompanionWindow_layers":"طبقات","openCompanionWindow_search":"بحث","openInCompanionWindow":"افتح في صفحة جديدة","openWindows":"النوافذ الحالية المفتوحة","pagination":"{{current}} من {{total}}","position":"مركز","previewWindowTitle":"عنوان","previousCanvas":"العنصر السابق","related":"ذات صلة","resource":"مصدر","retry":"أعد المحاولة ","right":"حق","rights":"ترخيص","searchInputLabel":"مصطلحات البحث","searchNextResult":"النتيجة التالية","searchNoResults":"لم يتم العثور على نتائج","searchPreviousResult":"النتيجة السابقة","searchSubmitAria":"ابحث","searchTitle":"بحث","selectWorkspaceMenu":"اختر نوع مساحة العمل","showingNumAnnotations":"تظهر {{number}} ملاحظات","showZoomControls":"اظهر عناصر التحكم بالتكبير و التصغير","sidebarPanelsNavigation":"تصفح لوح الشريط الجانبي","single":"مفرد","startHere":"إبدأ هنا","suggestSearch":"ابحث في هذا المستند عن  \\"{{ query }}\\"","tableOfContentsList":"جدول المحتويات","theme":"موضوع","thumbnailList":"قائمة الصور المصغرة","thumbnailNavigation":"الصور المصغرة","thumbnails":"الصور المصغرة","toggleWindowSideBar":"تبديل الشريط الجانبي","tryAgain":"حاول مرة أخرى","untitled":"[بدون عنوان]","view":"شاهد","welcome":"مرحباً بكم في Mirador","window":"النافذة:  {{label}}","windowMenu":"عرض النوافذ و الصور المصغرة","windowNavigation":"تصفح النافذة","windowPluginButtons":"خيارات","windowPluginMenu":"خيارات النافذة","workspace":"مساحة العمل","workspaceFullScreen":"شاشة كاملة","workspaceMenu":"اعدادات مساحة العمل","workspaceOptions":"خيارات مساحة العمل ","workspaceSelectionTitle":"اختر نوع مساحة العمل","zoomIn":"تكبير الصورة","zoomOut":"تصغير الصورة","zoomReset":"الرجوع لحجم الصورة الأساسي"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Über Mirador","aboutThisItem":"Über dieses Element","addedFromUrl":"(Via URL hinzugefügt)","addManifestUrl":"Ort der Ressource","addManifestUrlHelp":"Die URL einer IIIF-Ressource","addResource":"Ressource hinzufügen","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotationen","attribution":"Zuschreibung","attributionTitle":"Rechte","authenticationFailed":"Authentifizierung fehlgeschlagen","authenticationRequired":"Für vollen Zugriff ist eine Authentifizierung nötig.","backToResults":"Zurück zur Trefferansicht","book":"Buch","bottom":"Unten","cancel":"Abbrechen","canvasIndex":"Index","changeTheme":"Farbschema ändern","clearSearch":"zurücksetzen","closeAddResourceForm":"Formular schließen","closeAddResourceMenu":"Ressourcenliste schließen","closeCompanionWindow":"Hilfsfenster schließen","closeWindow":"Fenster schließen","collapseSection":"Bereich \\"{{section}}\\" zuklappen","collapseSidePanel":"Seitenleiste zuklappen","itemList":"Kompaktliste","continue":"Fortfahren","copy":"Kopieren","currentItem":"Aktuelles Objekt","currentItem_1/1":"Aktuelles Objekt","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Dunkel","digitizedView":"Digitalisat-Ansicht","dismiss":"Verwerfen","highlightAllAnnotations":"Alle hervorheben","displayNoAnnotations":"Keine hervorheben","downloadExport":"Arbeitsfläche exportieren","downloadExportWorkspace":"Arbeitsfläche exportieren","elastic":"Elastisch","elasticDescription":"Fenster können frei und unbegrenzt innerhalb der Arbeitsfläche bewegt werden und sich überlappen","emptyResourceList":"Ihre Ressourcenliste ist leer","error":"Fehler","errorDialogConfirm":"OK","errorDialogTitle":"Es ist ein Fehler aufgetreten","exitFullScreen":"Vollbildmodus verlassen","expandSection":"Bereich \\"{{section}}\\" aufklappen","expandSidePanel":"Seitenleiste aufklappen","exportCopied":"Die Konfiguration der Arbeitsfläche wurde in die Zwischenablage kopiert.","fetchManifest":"Hinzufügen","fullScreen":"Vollbild","gallery":"Galerie","hideZoomControls":"Zoomsteuerung verbergen","iiif_homepage":"Über diese Ressource","iiif_manifest":"IIIF-Manifest","iiif_renderings":"Alternative Formate","iiif_seeAlso":"Siehe auch","import":"Importieren","importWorkspace":"Arbeitsfläche importieren","importWorkspaceHint":"Fügen Sie eine Mirador-3-Konfiguration ein, die importiert werden soll.","item":"Objekt: {{label}}","jsError":"Technische Details","jsStack":"{{ stack }}","language":"Sprache","layer_hide":"Ebene verbergen","layer_move":"Ebene verschieben","layer_opacity":"Ebenendeckkraft","layer_show":"Ebene anzeigen","layer_moveToTop":"Ebene ganz nach vorn bringen","layers":"Ebenen","light":"Hell","links":"Links","listAllOpenWindows":"Zu Fenster springen","login":"Anmelden","logout":"Abmelden","manifestError":"Die Ressource konnte nicht hinzugefügt werden:","maximizeWindow":"Fenster maximieren","minimizeWindow":"Fenster minimieren","mirador":"Mirador","miradorResources":"Mirador-Ressourcen","miradorViewer":"Mirador","more":"mehr...","moreResults":"Mehr Treffer","mosaic":"Mosaik","mosaicDescription":"Fenster können innerhalb der Arbeitsfläche in Relation zueinander verschoben und ihrer Größe verändert werden.","moveCompanionWindowToBottom":"Unten anordnen","moveCompanionWindowToRight":"Rechts anordnen","nextCanvas":"Nächstes Objekt","numItems":"{{number}} Elemente","off":"Keine","openCompanionWindow_annotations":"Annotationen","openCompanionWindow_attribution":"Rechte","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informationen","openCompanionWindow_layers":"Ebenen","openCompanionWindow_search":"Suche","openInCompanionWindow":"In Hilfsfenster öffnen","openWindows":"Aktuell offene Fenster","pagination":"{{current}} von {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Vorheriges Objekt","related":"Verwandtes","resource":"Ressource","retry":"Erneut versuchen","right":"Rechts","rights":"Lizenz","scroll":"Kontinuierlich","searchInputLabel":"Suchbegriffe","searchNextResult":"Nächster Treffer","searchNoResults":"Keine Treffer","searchPreviousResult":"Vorheriger Treffer","searchResultsRemaining":"{{numLeft}} weitere","searchSubmitAria":"Suchen","searchTitle":"Suche","selectWorkspaceMenu":"Wählen Sie einen Arbeitsflächentyp","showingNumAnnotations":"{{number}} Annotationen werden angezeigt","showZoomControls":"Zoomsteuerung anzeigen","sidebarPanelsNavigation":"Hilfsfensternavigation","single":"Einzeln","startHere":"Hier starten","suggestSearch":"Dieses Dokument durchsuchen nach \\"{{ query }}\\"","tableOfContentsList":"Inhaltsverzeichnis","theme":"Farbschema","thumbnailList":"Miniaturansicht","thumbnailNavigation":"Miniaturansicht","thumbnails":"Miniaturansicht","toggleWindowSideBar":"Seitenleiste umschalten","tryAgain":"Wiederholen","untitled":"[Unbenannt]","view":"Ansicht","welcome":"Willkommen bei Mirador","window":"Fenster: {{label}}","windowMenu":"Fenstermenü und Miniaturansicht","windowNavigation":"Fensternavigation","windowPluginButtons":"Optionen","windowPluginMenu":"Fensteroptionen","workspace":"Arbeitsfläche","workspaceNavigation":"Arbeitsflächensteuerung","workspaceFullScreen":"Vollbild","workspaceMenu":"Arbeitsflächenmenü","workspaceOptions":"Arbeitsflächenoptionen","workspaceSelectionTitle":"Bitte wählen Sie einen Arbeitsflächentyp","zoomIn":"Vergrößern","zoomOut":"Verkleinern","zoomReset":"Ansicht zurücksetzen"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"About Project Mirador","aboutThisItem":"About this item","addedFromUrl":"(Added from URL)","addManifestUrl":"Resource location","addManifestUrlHelp":"The URL of a IIIF resource","addResource":"Add resource","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Left: [{{label}}]","annotationCanvasLabel_2/2":"Right: [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Rights","authenticationFailed":"Authentication failed.","authenticationRequired":"Authentication required for full access","backToResults":"Back to results","book":"Book","bottom":"Bottom","cancel":"Cancel","canvasIndex":"Index","changeTheme":"Change theme","clearSearch":"clear","close":"Close","closeAddResourceForm":"Close form","closeAddResourceMenu":"Close resource list","closeCompanionWindow":"Close panel","closeWindow":"Close window","collapseSection":"Collapse \\"{{section}}\\" section","collapseSidePanel":"Collapse sidebar","collection":"Collection","itemList":"Item list","continue":"Continue","copy":"Copy","currentItem":"Current item","currentItem_1/1":"Current item","currentItem_1/2":"Left","currentItem_2/2":"Right","dark":"Dark theme","digitizedView":"Digitized view","dismiss":"Dismiss","highlightAllAnnotations":"Highlight all","displayNoAnnotations":"Highlight none","downloadExport":"Export workspace","downloadExportWorkspace":"Export workspace","elastic":"Elastic","elasticDescription":"Move and size windows freely in an unlimited workspace. Windows can overlap.","emptyResourceList":"Your resource list is empty","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"An error occurred","exitFullScreen":"Exit full screen","expandSection":"Expand \\"{{section}}\\" section","expandSidePanel":"Expand sidebar","exportCopied":"The workspace configuration was copied to your clipboard","fetchManifest":"Add","fullScreen":"Full Screen","gallery":"Gallery","hideZoomControls":"Hide zoom controls","iiif_homepage":"About this resource","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternate formats","iiif_seeAlso":"See also","import":"Import","importWorkspace":"Import workspace","importWorkspaceHint":"Paste a Mirador 3 configuration to be imported","item":"Item: {{label}}","jsError":"Technical details","jsStack":"{{ stack }}","language":"Language","layer_hide":"Hide layer","layer_move":"Move layer","layer_opacity":"Layer opacity","layer_show":"Show layer","layer_moveToTop":"Move layer to top","layers":"Layers","light":"Light theme","links":"Links","listAllOpenWindows":"Jump to window","login":"Log in","logout":"Log out","manifestError":"The resource cannot be added:","maximizeWindow":"Maximize window","minimizeWindow":"Minimize window","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"more...","moreResults":"More results","mosaic":"Mosaic","mosaicDescription":"Move and size windows in relation to each other, within the visible frame.","moveCompanionWindowToBottom":"Move to bottom","moveCompanionWindowToRight":"Move to right","nextCanvas":"Next item","noItemSelected":"No item selected","numItems":"{{number}} item","numItems_plural":"{{number}} items","off":"Off","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Rights","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Layers","openCompanionWindow_search":"Search","openInCompanionWindow":"Open in separate panel","openWindows":"Current open windows","pagination":"{{current}} of {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Related","resource":"Resource","retry":"Retry","right":"Right","rights":"License","scroll":"Scroll","searchInputLabel":"search terms","searchNextResult":"Next result","searchNoResults":"No results found","searchPreviousResult":"Previous result","searchResultsRemaining":"{{numLeft}} remaining","searchSubmitAria":"Submit search","searchTitle":"Search","selectWorkspaceMenu":"Select workspace type","showingNumAnnotations":"Showing {{number}} annotation","showingNumAnnotations_plural":"Showing {{number}} annotations","showCollection":"Show collection","showZoomControls":"Show zoom controls","sidebarPanelsNavigation":"Sidebar panels navigation","single":"Single","startHere":"Start Here","suggestSearch":"Search this document for \\"{{ query }}\\"","tableOfContentsList":"Table of contents","theme":"Theme","thumbnailList":"Thumbnail list","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toggle sidebar","totalCollections":"{{count}} collection","totalCollections_plural":"{{count}} collections","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Try again","untitled":"[Untitled]","view":"View","viewWorkspaceConfiguration":"View workspace configuration","welcome":"Welcome to Mirador","window":"Window: {{label}}","windowMenu":"Window views & thumbnail display","windowNavigation":"Window navigation","windowPluginButtons":"Options","windowPluginMenu":"Window options","workspace":"Workspace","workspaceNavigation":"Workspace navigation","workspaceFullScreen":"Full screen","workspaceMenu":"Workspace settings","workspaceOptions":"Workspace options","workspaceSelectionTitle":"Select a workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"A propos du projet Mirador","aboutThisItem":"Informations","addedFromUrl":"(Ajouté depuis une URL)","addManifestUrl":"Emplacement de la ressource","addManifestUrlHelp":"Coller ici l\'URL de la ressource IIIF","addResource":"Ajouter une ressource","annotationCanvasLabel_1/1":"Item : [{{label}}]","annotationCanvasLabel_1/2":"Gauche : [{{label}}]","annotationCanvasLabel_2/2":"Droite : [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Droits","authenticationFailed":"L\'authentification a échoué.","authenticationRequired":"Authentification requise pour un accès complet","backToResults":"Retour aux résultats","book":"Livre","bottom":"Bas","cancel":"Annuler","canvasIndex":"Index","changeTheme":"Changer le thème","clearSearch":"effacer","closeAddResourceForm":"Fermer le panneau","closeAddResourceMenu":"Fermer la liste des ressources","closeCompanionWindow":"Fermer le panneau","closeWindow":"Fermer cette fenêtre","collapseSection":"Replier la section \\"{{section}}\\"","collapseSidePanel":"Replier le panneau","itemList":"Liste compacte","continue":"Continuer","copy":"Copier","currentItem":"Image courante","currentItem_1/1":"Image courante","currentItem_1/2":"Gauche","currentItem_2/2":"Droite","dark":"Thème sombre","digitizedView":"Vue de l\'objet numérique","dismiss":"Rejeter","highlightAllAnnotations":"Afficher tout","displayNoAnnotations":"Masquer tout","downloadExport":"Exporter l\'espace de travail","downloadExportWorkspace":"Exporter l\'espace de travail","elastic":"Elastique","elasticDescription":"Déplacer et redimensionner librement les fenêtres dans un espace de travail non limité par l\'écran. Les fenêtres peuvent être superposées.","emptyResourceList":"Votre liste de ressource est vide","error":"Erreur","errorDialogConfirm":"OK","errorDialogTitle":"Une erreur est survenue","exitFullScreen":"Quitter le plein écran","expandSection":"Déplier la section \\"{{section}}\\"","expandSidePanel":"Déplier le panneau","exportCopied":"La configuration de l\'espace de travail a été copiée dans votre presse-papier","fetchManifest":"Ajouter","fullScreen":"Plein écran","gallery":"Galerie","hideZoomControls":"Désactiver les commandes de zoom","iiif_homepage":"A propos de cette ressource","iiif_manifest":"Manifeste IIIF","iiif_renderings":"Formats alternatifs","iiif_seeAlso":"Voir aussi","import":"Importer","importWorkspace":"Importer un espace de travail","importWorkspaceHint":"Insérer une configuration Mirador 3 à importer","item":"Item : {{label}}","jsError":"Détails techniques","jsStack":"{{ stack }}","language":"Langue","layer_hide":"Masquer le calque","layer_move":"Déplacer le calque","layer_opacity":"Opacité du calque","layer_show":"Afficher le calque","layer_moveToTop":"Déplacer le calque en haut","layers":"Calques","light":"Thème clair","links":"Liens","listAllOpenWindows":"Lister les fenêtres","login":"Se connecter","logout":"Se déconnecter","manifestError":"Cette ressource ne peut pas être ajoutée :","maximizeWindow":"Agrandir cette fenêtre","minimizeWindow":"Réduire cette fenêtre","mirador":"Mirador","miradorResources":"Ressources Mirador","miradorViewer":"Visualiseur Mirador","more":"plus...","moreResults":"Plus de résultats","mosaic":"Mosaïque","mosaicDescription":"Déplacer et redimensionner les fenêtres les unes par rapport aux autres dans l\'espace disponible sur l\'écran","moveCompanionWindowToBottom":"Déplacer en bas","moveCompanionWindowToRight":"Déplacer à droite","nextCanvas":"Suivant","noItemSelected":"Aucun élément sélectionné","numItems":"{{number}} image","numItems_plural":"{{number}} images","off":"aucun","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Droits","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informations","openCompanionWindow_layers":"Calques","openCompanionWindow_search":"Rechercher","openInCompanionWindow":"Ouvrir dans un panneau séparé","openWindows":"Fenêtres ouvertes","pagination":"{{current}} sur {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Précédent","related":"En relation","resource":"Ressource","retry":"Réessayer","right":"Droite","rights":"Licence","scroll":"Défilement horizontal","searchInputLabel":"Chercher un mot","searchNextResult":"Résultat suivant","searchNoResults":"Aucun résultat trouvé","searchPreviousResult":"Résultat précédent","searchSubmitAria":"Lancer la recherche","searchTitle":"Rechercher","selectWorkspaceMenu":"Changer de type d\'espace de travail","showingNumAnnotations":"{{number}} annotation affichée","showingNumAnnotations_plural":"{{number}} annotations affichées","showCollection":"Voir la collection","showZoomControls":"Activer les commandes de zoom","sidebarPanelsNavigation":"Navigation dans les panneaux latéraux","single":"Simple","startHere":"Commencer ici","suggestSearch":"Rechercher \\"{{ query }}\\" dans ce document","tableOfContentsList":"Sommaire","theme":"Thème","thumbnailList":"Liste des vignettes","thumbnailNavigation":"Vignettes","thumbnails":"Afficher les vignettes","toggleWindowSideBar":"Afficher le menu latéral","totalCollections":"{{count}} collection","totalCollections_plural":"{{count}} collections","totalManifests":"{{count}} manifeste","totalManifests_plural":"{{count}} manifestes","tryAgain":"Essayer à nouveau","untitled":"[Sans titre]","view":"Voir les images en mode","welcome":"Bienvenue dans Mirador","window":"Fenêtre : {{label}}","windowMenu":"Options de fenêtre","windowNavigation":"Navigation dans les fenêtres","windowPluginButtons":"Options","windowPluginMenu":"Autres options et outils","workspace":"Espace de travail","workspaceNavigation":"Menu de l\'espace de travail","workspaceFullScreen":"Plein écran","workspaceMenu":"Réglages de l\'espace de travail","workspaceOptions":"Options de l\'espace de travail","workspaceSelectionTitle":"Sélectionner un type d\'espace de travail","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","zoomReset":"Réinitialiser le zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Informazioni su Mirador","aboutThisItem":"Informazioni sull\'oggetto","addManifestUrl":"URL della risorsa","addManifestUrlHelp":"L\'URL di una risorsa IIIF","addResource":"Aggiungi una risorsa","addedFromUrl":"(Aggiunto dall\'URL)","annotationCanvasLabel_1/1":"Oggetto: [{{label}}]","annotationCanvasLabel_1/2":"Sinistra: [{{label}}]","annotationCanvasLabel_2/2":"Destra: [{{label}}]","annotations":"Annotazioni","attribution":"Attribuzione","attributionTitle":"Diritti","authenticationFailed":"Autenticazione fallita.","authenticationRequired":"Autenticazione richiesta per l\'accesso completo","backToResults":"Torna ai risultati","book":"Libro","bottom":"Fondo","cancel":"Cancella","canvasIndex":"Indice","changeTheme":"Cambia tema","clearSearch":"pulisci","close":"Chiudi","closeAddResourceForm":"Chiudi il modulo","closeAddResourceMenu":"Chiudi la lista di risorse","closeCompanionWindow":"Chiudi il pannello","closeWindow":"Chiudi finestra","collapseSection":"Collassa la sezione \\"{{section}}\\"","collapseSidePanel":"Collassa la barra laterale","collection":"Collezione","continue":"Continua","copy":"Copia","currentItem":"Oggetto corrente","currentItem_1/1":"Oggetto corrente","currentItem_1/2":"Sinistra","currentItem_2/2":"Destra","dark":"Tema scuro","digitizedView":"Digitized view","dismiss":"Dismiss","displayNoAnnotations":"Nascondi evidenziazione","downloadExport":"Esporta il workspace","downloadExportWorkspace":"Esporta il workspace","elastic":"Elastico","elasticDescription":"Muovi e ridimensiona le finestre liberamente in un workspace illimitato. Le finestre possono sovrapporsi.","emptyResourceList":"La tua lista di risorse è vuota.","error":"Errore","errorDialogConfirm":"OK","errorDialogTitle":"Si è verificato un errore.","exitFullScreen":"Esci da schermo intero","expandSection":"Espandi la sezione \\"{{section}}\\"","expandSidePanel":"Espandi la barra laterale","exportCopied":"La configurazione del workspace è stata copiata nella tua clipboard","fetchManifest":"Aggiungi","fullScreen":"Schermo intero","gallery":"Galleria","hideZoomControls":"Nascondi i controlli di zoom","highlightAllAnnotations":"Evidenzia tutto","iiif_homepage":"Informazioni su questa risorsa","iiif_manifest":"IIIF manifest","iiif_renderings":"Formati alternativi","iiif_seeAlso":"Vedi anche","import":"Importa","importWorkspace":"Importa workspace","importWorkspaceHint":"Incolla una configurazione di Mirador 3 da importare","item":"Oggetto: {{label}}","itemList":"Lista compatta","jsError":"Dettagli tecnici","jsStack":"{{ stack }}","language":"Lingua","layer_hide":"Nascondi livello","layer_move":"Sposta livello","layer_moveToTop":"Sposta il livello in alto","layer_opacity":"Opacità del livello","layer_show":"Visualizza livello","layers":"Livelli","light":"Tema chiaro","links":"Link","listAllOpenWindows":"Vai alla finestra","login":"Entra","logout":"Esci","manifestError":"La risorsa non può essere aggiunta:","maximizeWindow":"Massimizza la finestra","minimizeWindow":"Minimizza la finestra","mirador":"Mirador","miradorResources":"Risorse Mirador","miradorViewer":"Visualizzatore Mirador","more":"ancora...","moreResults":"Più risultati","mosaic":"Mosaico","mosaicDescription":"Muovi e ridimensiona le finestre, tenendole all\'interno dell\'area visibile","moveCompanionWindowToBottom":"Sposta in fondo","moveCompanionWindowToRight":"Sposta a destra","nextCanvas":"Prossimo oggetto","noItemSelected":"Nessun oggetto selezionato","numItems":"{{number}} oggetti","numItems_plural":"{{number}} oggetti","off":"Off","openCompanionWindow_annotations":"Annotazioni","openCompanionWindow_attribution":"Diritti","openCompanionWindow_canvas":"Indice","openCompanionWindow_info":"Informazioni","openCompanionWindow_layers":"Livelli","openCompanionWindow_search":"Cerca","openInCompanionWindow":"Apri in un pannello separato","openWindows":"Finestre aperte in questo momento","pagination":"{{current}} di {{total}}","position":"Posizione","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Contenuti collegati","resource":"Risorsa","retry":"Riprova","right":"Right","rights":"Licenza","scroll":"Scorri","searchInputLabel":"termini di ricerca","searchNextResult":"Prossimo risultato","searchNoResults":"Nessun risultato","searchPreviousResult":"Risultato precedente","searchResultsRemaining":"{{numLeft}} rimanenti","searchSubmitAria":"Cerca","searchTitle":"Cerca","selectWorkspaceMenu":"Selezione il tipo di workspace","showCollection":"Visualizza la collezione","showZoomControls":"Mostra i controlli di zoom","showingNumAnnotations":"Sto mostrando {{number}} annotazioni","showingNumAnnotations_plural":"Visualizzando {{number}} annotazioni","sidebarPanelsNavigation":"Navigazione dei pannelli della barra laterale","single":"Singolo","startHere":"Inizia qui","suggestSearch":"Cerca in questo documento: \\"{{ query }}\\"","tableOfContentsList":"Sommario","theme":"Tema","thumbnailList":"Lista thumbnail","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Apri/Chiudi la barra","totalCollections":"{{count}} collezione","totalCollections_plural":"{{count}} collezioni","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Riprova","untitled":"[senza titolo]","view":"Visualizza","viewWorkspaceConfiguration":"Visualizza la configurazione del workspace","welcome":"Benvenuto in Mirador","window":"Finestra: {{label}}","windowMenu":"Visualizzazioni finestra e display thumbnail","windowNavigation":"Navigazione finestra","windowPluginButtons":"Opzioni","windowPluginMenu":"Opzioni finestra","workspace":"Workspace","workspaceFullScreen":"Schermo intero","workspaceMenu":"Configurazioni Workspace","workspaceNavigation":"Navigazione del workspace","workspaceOptions":"Opzioni Workspace","workspaceSelectionTitle":"Seleziona il tipo di workspace","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Project Miradorについて","aboutThisItem":"この資料について","addedFromUrl":"(URLで追加)","addManifestUrl":"資料のURL","addManifestUrlHelp":"IIIF資料のURL","addResource":"資料の追加","annotationCanvasLabel_1/1":"アイテム: [{{label}}]","annotationCanvasLabel_1/2":"左: [{{label}}]","annotationCanvasLabel_2/2":"右: [{{label}}]","annotations":"アノテーション","attribution":"帰属","attributionTitle":"権利","authenticationFailed":"認証失敗","authenticationRequired":"フルアクセスには認証が必要","backToResults":"結果に戻る","book":"見開き","bottom":"下部","cancel":"キャンセル","canvasIndex":"インデックス","changeTheme":"テーマの変更","clearSearch":"クリア","close":"閉じる","closeAddResourceForm":"フォームを閉じる","closeAddResourceMenu":"資料一覧を閉じる","closeCompanionWindow":"パネルを閉じる","closeWindow":"ウインドウを閉じる","collapseSection":"{{section}} セクションを畳む","collapseSidePanel":"サイドバーを畳む","collection":"コレクション","itemList":"アイテム一覧","continue":"続ける","copy":"コピー","currentItem":"現在のアイテム","currentItem_1/1":"現在のアイテム","currentItem_1/2":"左","currentItem_2/2":"右","dark":"ダークなテーマ","digitizedView":"デジタルビュー","dismiss":"片付け","highlightAllAnnotations":"すべてを表示","displayNoAnnotations":"アノテーションを非表示","downloadExport":"ワークスペースをエクスポート","downloadExportWorkspace":"ワークスペースをエクスポート","elastic":"伸縮","elasticDescription":"自由なウインドウの伸縮","emptyResourceList":"資料の一覧が空です","error":"エラー","errorDialogConfirm":"OK","errorDialogTitle":"エラー発生","exitFullScreen":"全画面を解除","expandSection":"セクション {{section}}を拡大","expandSidePanel":"サイドバーを拡大","exportCopied":"ワークスペースの設定がクリップボードにコピーされました。","fetchManifest":"追加","fullScreen":"全画面","gallery":"ギャラリー","hideZoomControls":"zoom制御を隠す","iiif_homepage":"IIIFホームページ","iiif_manifest":"IIIF マニフェスト","iiif_renderings":"別の形式","iiif_seeAlso":"参照","import":"取り込み","importWorkspace":"ワークスペースの取り込み","importWorkspaceHint":"Mirador3の設定を貼り付け","item":"アイテム: {{label}}","jsError":"技術的な詳細","jsStack":"{{ stack }}","language":"言語","layer_hide":"レイヤーを隠す","layer_move":"レイヤーを動かす","layer_opacity":"レイヤーの透過度","layer_show":"レイヤーを表示","layer_moveToTop":"レイヤーをトップへ","layers":"レイヤー","light":"明るいテーマ","links":"リンク","listAllOpenWindows":"ウインドウにジャンプ","login":"ログイン","logout":"ログアウト","manifestError":"資料追加に失敗:","maximizeWindow":"ウインドウを最大化","minimizeWindow":"ウインドウを最小化","mirador":"Mirador","miradorResources":"Mirador資料","miradorViewer":"Miradorビューワ","more":"さらに...","moreResults":"さらに結果を","mosaic":"モザイク","mosaicDescription":"モザイク表示","moveCompanionWindowToBottom":"下部に移動","moveCompanionWindowToRight":"右に移動","nextCanvas":"次のアイテム","noItemSelected":"アイテムが未選択","numItems":"{{number}} アイテム","off":"オフ","openCompanionWindow_annotations":"アノテーション","openCompanionWindow_attribution":"権利","openCompanionWindow_canvas":"インデックス","openCompanionWindow_info":"情報","openCompanionWindow_layers":"レイヤー","openCompanionWindow_search":"検索","openInCompanionWindow":"別のパネルで開く","openWindows":"現在開いているウインドウ","pagination":"{{current}} of {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"前のアイテム","related":"関連","resource":"資料","retry":"リトライ","right":"右側","rights":"利用条件","scroll":"スクロール","searchInputLabel":"検索語","searchNextResult":"次の結果","searchNoResults":"ヒットせず","searchPreviousResult":"前の結果","searchSubmitAria":"検索","searchTitle":"検索","selectWorkspaceMenu":"ワークスペースタイプの選択","showingNumAnnotations":"アノテーション {{number}} を表示","showCollection":"コレクションを表示","showZoomControls":"ズーム操作を表示","sidebarPanelsNavigation":"サイドバーパネルの操作","single":"単一","startHere":"ここから始める","suggestSearch":"この文書を \\"{{ query }}\\" で検索","tableOfContentsList":"目次","theme":"テーマ","thumbnailList":"サムネイル一覧","thumbnailNavigation":"サムネイル","thumbnails":"サムネイル表示","toggleWindowSideBar":"サイドバー切り替え","totalCollections":"{{count}} コレクション","totalManifests":"{{count}} マニフェスト","tryAgain":"もう一度試す","untitled":"[タイトル無し]","view":"表示の仕方","welcome":"Miradorにようこそ","window":"{{label}} ウインドウ","windowMenu":"ウインドウメニュー","windowNavigation":"ウィンドウ操作","windowPluginButtons":"オプション","windowPluginMenu":"ウインドウオプション","workspace":"ワークスペース","workspaceNavigation":"ワークスペースナビ","workspaceFullScreen":"全画面","workspaceMenu":"ワークスペースの設定","workspaceOptions":"ワークスペースのオプション","workspaceSelectionTitle":"ワークスペースのタイプを選択","zoomIn":"ズームイン","zoomOut":"ズームアウト","zoomReset":"ズームを戻す"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Mirador 프로젝트에 대하여","aboutThisItem":"해당 아이템에 대하여","addedFromUrl":"(URL에서 추가됨)","addManifestUrl":"리소스의 위치","addManifestUrlHelp":"IIIF 리소스의 URL","addResource":"리소스 추가","annotationCanvasLabel_1/1":"아이템: [{{label}}]","annotationCanvasLabel_1/2":"왼쪽: [{{label}}]","annotationCanvasLabel_2/2":"오른쪽: [{{label}}]","annotations":"주석","attribution":"귀속","attributionTitle":"권리","authenticationFailed":"인증 실패.","authenticationRequired":"모든 정보에 접근하기 위해선 인증이 필요합니다.","backToResults":"결과로 돌아가기","book":"책","bottom":"아래","cancel":"취소","canvasIndex":"인덱스","changeTheme":"테마 변경","clearSearch":"지우기","close":"닫기","closeAddResourceForm":"폼 닫기","closeAddResourceMenu":"리소스 목록 닫기","closeCompanionWindow":"패널 닫기","closeWindow":"윈도우 닫기","collapseSection":"\\"{{section}}\\" 섹션 접기","collapseSidePanel":"사이드바 접기","collection":"컬렉션","itemList":"아이템 목록","continue":"계속하기","copy":"복사","currentItem":"현재 아이템","currentItem_1/1":"현재 아이템","currentItem_1/2":"왼쪽","currentItem_2/2":"오른쪽","dark":"다크 모드","digitizedView":"디지털 뷰","dismiss":"무시하기","highlightAllAnnotations":"모두 하이라이트하기","displayNoAnnotations":"하이라이트 해제","downloadExport":"작업공간 내보내기","downloadExportWorkspace":"작업공간 내보내기","elastic":"신축성","elasticDescription":"무한한 작업공간에서 윈도우를 자유롭게 움직이고 조절해보세요. 윈도우는 서로 겹칠 수 있습니다.","emptyResourceList":"리소스 목록이 비어있습니다","error":"오류","errorDialogConfirm":"허락","errorDialogTitle":"오류 발생","exitFullScreen":"전체화면에서 나가기","expandSection":"\\"{{section}}\\" 섹션 확장","expandSidePanel":"사이드바 확장","exportCopied":"작업공간 환경설정을 클립보드에 복사했습니다","fetchManifest":"추가하기","fullScreen":"전체화면","gallery":"갤러리","hideZoomControls":"확대/축소 기능 숨기기","iiif_homepage":"해당 리소스에 대하여","iiif_manifest":"IIIF 매니페스트","iiif_renderings":"대체 포맷","iiif_seeAlso":"참고","import":"가져오기","importWorkspace":"작업공간 가져오기","importWorkspaceHint":"Mirador 3 환경설정 가져와 붙여넣기","item":"아이템: {{label}}","jsError":"기술적인 세부사항","jsStack":"{{ stack }}","language":"언어","layer_hide":"레이어 숨기기","layer_move":"레이어 움직이기","layer_opacity":"레이어 불투명도","layer_show":"레이어 보이기","layer_moveToTop":"레이어를 위로 옮기기","layers":"레이어","light":"라이트 모드","links":"링크","listAllOpenWindows":"윈도우로 이동하기","login":"로그인","logout":"로그아웃","manifestError":"리소스를 추가할 수 없습니다:","maximizeWindow":"윈도우 크기 최대화","minimizeWindow":"윈도우 크기 최소화","mirador":"Mirador","miradorResources":"Mirador 리소스","miradorViewer":"Mirador 뷰어","more":"더 보기...","moreResults":"결과 더 보기","mosaic":"모자이크","mosaicDescription":"프레임 내에서 윈도우를 이동하고 크기를 조정합니다.","moveCompanionWindowToBottom":"아래로 옮기기","moveCompanionWindowToRight":"오른쪽으로 옮기기","nextCanvas":"다음 아이템","noItemSelected":"아이템이 선택되지 않았습니다","numItems":"{{number}}개의 아이템","numItems_plural":"{{number}}개의 아이템","off":"끄기","openCompanionWindow_annotations":"주석","openCompanionWindow_attribution":"권리","openCompanionWindow_canvas":"인덱스","openCompanionWindow_info":"정보","openCompanionWindow_layers":"레이어","openCompanionWindow_search":"검색","openInCompanionWindow":"별도의 패널에서 열기","openWindows":"현재 열려있는 윈도우","pagination":"{{current}} of {{total}}","position":"배치","previewWindowTitle":"{{title}}","previousCanvas":"이전 아이템","related":"관련","resource":"리소스","retry":"재시도","right":"오른쪽","rights":"라이선스","scroll":"스크롤","searchInputLabel":"용어 찾기","searchNextResult":"다음 결과","searchNoResults":"해당 결과 없음","searchPreviousResult":"이전 결과","searchResultsRemaining":"{{numLeft}}개 남음","searchSubmitAria":"검색하기","searchTitle":"검색","selectWorkspaceMenu":"작업공간 유형 선택","showingNumAnnotations":"{{number}}개의 주석 나타내기","showingNumAnnotations_plural":"{{number}}개의 주석 나타내기","showCollection":"컬렉션 보이기","showZoomControls":"확대/축소 기능 보이기","sidebarPanelsNavigation":"사이드바 패널 탐색","single":"한 개","startHere":"시작하기","suggestSearch":"이 문서를 \\"{{ query }}\\"로 검색하기","tableOfContentsList":"목차","theme":"테마","thumbnailList":"썸네일 목록","thumbnailNavigation":"썸네일","thumbnails":"썸네일","toggleWindowSideBar":"사이드바 전환","totalCollections":"{{count}}개의 컬렉션","totalCollections_plural":"{{count}}개의 컬렉션","totalManifests":"{{count}}개의 매니페스트","totalManifests_plural":"{{count}}개의 매니페스트","tryAgain":"다시 시도하세요","untitled":"[타이틀 없음]","view":"뷰","viewWorkspaceConfiguration":"작업공간 환경설정 ㅂ괴","welcome":"Mirador에 오신 것을 환영합니다","window":"윈도우: {{label}}","windowMenu":"윈도우 뷰 & 썸네일 표시","windowNavigation":"윈도우 탐색","windowPluginButtons":"옵션","windowPluginMenu":"윈도우 옵션","workspace":"작업공간","workspaceNavigation":"작업공간 탐색","workspaceFullScreen":"전체화면","workspaceMenu":"작업공간 설정","workspaceOptions":"작업공간 옵션","workspaceSelectionTitle":"작업공간 유형을 선택하세요","zoomIn":"확대","zoomOut":"축소","zoomReset":"줌 재설정"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Apie Project Mirador","aboutThisItem":"Apie šį įrašą","addedFromUrl":"(Pridėta naudojant URL)","addManifestUrl":"Šaltinio adresas","addManifestUrlHelp":"Nuoroda į IIIF šaltinį","addResource":"Pridėti šaltinį","annotationCanvasLabel_1/1":"Įrašas: [{{label}}]","annotationCanvasLabel_1/2":"Kairė: [{{label}}]","annotationCanvasLabel_2/2":"Dešinė: [{{label}}]","annotations":"Anotacijos","attribution":"Priskyrimas","attributionTitle":"Teisės","authenticationFailed":"Autentifikavimo klaida.","authenticationRequired":"Pilnai prieigai būtina autentifikacija","backToResults":"Grįžti į rezultatus","book":"Knyga","bottom":"Apačia","cancel":"Atšaukti","canvasIndex":"Indeksas","changeTheme":"Keisti temą","clearSearch":"valyti","closeAddResourceForm":"Uždaryti paraišką","closeAddResourceMenu":"Uždaryti šaltinių sąrašą","closeCompanionWindow":"Uždaryti panelę","closeWindow":"Uždaryti langą","collapseSection":"Suskleisti \\"{{section}}\\" sekciją","collapseSidePanel":"Suskleisti šoninę juostą","itemList":"Įrašų sąrašas","continue":"Tęsti","copy":"Kopijuoti","currentItem":"Dabartinis įrašas","currentItem_1/1":"Dabartinis įrašas","currentItem_1/2":"Kairė","currentItem_2/2":"Dešinė","dark":"Tamsi tema","digitizedView":"Skaitmenintas vaizdas","dismiss":"Atmesti","highlightAllAnnotations":"Paryškinti viską","displayNoAnnotations":"Slėpti viską","downloadExport":"Išsaugoti darbalaukį","downloadExportWorkspace":"Išsaugoti darbalaukį","elastic":"Lankstus","elasticDescription":"Langų dydis ir vieta gali būti laisvai valdomi. Langai gali persidengti.","emptyResourceList":"Jūsų šaltinių sąrašas yra tuščias","error":"Klaida","errorDialogConfirm":"Gerai","errorDialogTitle":"Įvyko klaida","exitFullScreen":"Išjungti pilno ekrano režimą","expandSection":"Išplėsti \\"{{section}}\\" sekciją","expandSidePanel":"Išplėsti šoninę juostą","exportCopied":"Darbalaukio nustatymai nukopijuoti","fetchManifest":"Pridėti","fullScreen":"Pilnas ekranas","gallery":"Galerija","hideZoomControls":"Slėpti priartinimo valdymą","iiif_homepage":"Apie šį šaltinį","iiif_manifest":"IIIF manifestas","iiif_renderings":"Kiti formatai","iiif_seeAlso":"Susiję","import":"Įkelti","importWorkspace":"Įkelti darbalaukį","importWorkspaceHint":"Įterpkite Mirador 3 nustatymus įkėlimui","item":"Įrašas: {{label}}","jsError":"Techninė informacija","jsStack":"{{ stack }}","language":"Kalba","layer_hide":"Slėpti sluoksnį","layer_move":"Perkelti sluoksnį","layer_opacity":"Sluoksnio nepermatomumas","layer_show":"Rodyti sluoksnį","layer_moveToTop":"Perkelti sluoksnį į viršų","layers":"Sluoksniai","light":"Šviesi tema","links":"Nuorodos","listAllOpenWindows":"Rodyti aktyvius langus","login":"Prisijungti","logout":"Atsijungti","manifestError":"Šaltinis negali būti pridėtas:","maximizeWindow":"Išdidinti langą","minimizeWindow":"Sumažinti langą","mirador":"Mirador","miradorResources":"Mirador šaltiniai","miradorViewer":"Mirador žiūryklė","more":"daugiau...","moreResults":"Daugiau rezultatų","mosaic":"Mosaic","mosaicDescription":"Langų dydžio ir pozicijos keitimai apribojami ekrano erdvėje.","moveCompanionWindowToBottom":"Perkelti į apačią","moveCompanionWindowToRight":"Perkelti į dešinę","nextCanvas":"Kitas įrašas","numItems":"{{number}} įrašas (-ai)","off":"Išjungti","openCompanionWindow_annotations":"Anotacijos","openCompanionWindow_attribution":"Teisės","openCompanionWindow_canvas":"Indeksas","openCompanionWindow_info":"Informacija","openCompanionWindow_layers":"Sluoksniai","openCompanionWindow_search":"Paieška","openInCompanionWindow":"Atidaryti kaip naują panelę","openWindows":"Aktyvųs langai","pagination":"{{current}} iš {{total}}","position":"Pozicija","previewWindowTitle":"{{title}}","previousCanvas":"Buvęs įrašas","related":"Susiję","resource":"Šaltinis","retry":"Pabandyti iš naujo","right":"Dešinė","rights":"Teisės","scroll":"Paslinkti","searchInputLabel":"paieškos terminas","searchNextResult":"Kitas rezultatas","searchNoResults":"Nėra rezultatų","searchPreviousResult":"Buvęs rezultatas","searchSubmitAria":"Pateikti paieškos užklausą","searchTitle":"Ieškoti","selectWorkspaceMenu":"Pasirinkti darbalaukio tipą","showingNumAnnotations":"Rodoma {{number}} anotacija (-os)","showCollection":"Rodyti kolekciją","showZoomControls":"Rodyti priartinimo valdymą","sidebarPanelsNavigation":"Šoninės juostos valdymas","single":"Atskiras","startHere":"Pradėkite čia","suggestSearch":"Ieškoti \\"{{ query }}\\" visame documente","tableOfContentsList":"Turinys","theme":"Tema","thumbnailList":"Miniatiūrų sąrašas","thumbnailNavigation":"Miniatiūros","thumbnails":"Miniatiūros","toggleWindowSideBar":"Perjungti šoninę juostą","totalCollections":"{{count}} kolekcija (-os)","totalManifests":"{{count}} šaltinis (-iai)","tryAgain":"Bandykite dar kartą","untitled":"[Be pavadinimo]","view":"Žiūrėti","welcome":"Sveiki atvykę į Mirador","window":"Langas: {{label}}","windowMenu":"Langų & miniatiūrų atvaizdavimas","windowNavigation":"Langų valdymas","windowPluginButtons":"Pasirinkimai","windowPluginMenu":"Langų pasirinkimai","workspace":"Darbalaukis","workspaceNavigation":"Darbalaukio valdymas","workspaceFullScreen":"Pilnas ekranas","workspaceMenu":"Darbalaukio nustatymai","workspaceOptions":"Darbalaukio pasirinkimai","workspaceSelectionTitle":"Pasirinkite darbalaukio tipą","zoomIn":"Priartinti","zoomOut":"Atitolinti","zoomReset":"Atstatyti priartinimą"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om dette objektet","addedFromUrl":"(Lagt til fra URL)","addManifestUrl":"Nettadresse til samling eller manifest","addManifestUrlHelp":"URL til en IIIF-ressurs","addResource":"Legg til ressurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Venstre: [{{label}}]","annotationCanvasLabel_2/2":"Høyre: [{{label}}]","annotations":"Annoteringer","attribution":"Tilskrivelse","attributionTitle":"Rettigheter","authenticationFailed":"Autentiseringen feilet.","authenticationRequired":"Autentisering kreves for full tilgang","backToResults":"Tilbake til resultat","book":"Bok","bottom":"Nederst","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Skift tema","clearSearch":"Fjern søket","close":"Lukk","closeAddResourceForm":"Lukk skjemaet","closeAddResourceMenu":"Lukk ressurslisten","closeCompanionWindow":"Lukk panelet","closeWindow":"Lukk vinduet","collapseSection":"Lukk seksjonen \\"{{section}}\\"","collapseSidePanel":"Lukk sidemenyen","collection":"Samling","itemList":"Objektliste","continue":"Fortsett","copy":"Kopiere","currentItem":"Valgt objekt","currentItem_1/1":"Valgt objekt","currentItem_1/2":"Venstre","currentItem_2/2":"Høyre","dark":"Mørkt tema","digitizedView":"Digitalisert visning","dismiss":"Lukk","highlightAllAnnotations":"Markér alle","displayNoAnnotations":"Avmarkér alle","downloadExport":"Eksportér arbeidsområde","downloadExportWorkspace":"Eksportér arbeidsområde","elastic":"Elastisk","elasticDescription":"Flytt og endre størrelsen på vinduet fritt i et ubegrenset arbeidsområde. Vindu kan overlappe.","emptyResourceList":"Din resursliste er tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Et problem oppstod","exitFullScreen":"Forlat fullskjermsvisning","expandSection":"Ekspandér seksjonen \\"{{section}}\\"","expandSidePanel":"Ekspandér sidemenyen","exportCopied":"Konfiguration av arbeidsområdet ble kopiert til din utklippstavle","fetchManifest":"Legg til","fullScreen":"Fullskjermsvisning","gallery":"Galleri","hideZoomControls":"Skjul zoomkontroll","iiif_homepage":"Om denne ressursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativt format","iiif_seeAlso":"Se også","import":"Importér","importWorkspace":"Importér arbeidsområde","importWorkspaceHint":"Lim inn en Mirador 3 konfigurasjon for import","item":"Objekt: {{label}}","jsError":"Tekniske detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Skjul lag","layer_move":"Flytt lag","layer_opacity":"Lag-gjennomsiktighet","layer_show":"Vis lag","layer_moveToTop":"Flytt laget øverst","layers":"Lag","light":"Lyst tema","links":"Lenker","listAllOpenWindows":"Gå til vindu","login":"Logg inn","logout":"Logg ut","manifestError":"Ressursen kan ikke legges til:","maximizeWindow":"Maksimér vinduet","minimizeWindow":"Minimér vinduet","mirador":"Mirador","miradorResources":"Miradorressurser","miradorViewer":"Mirador bildeviser","more":"mer...","moreResults":"Flere resultat","mosaic":"Mosaik","mosaicDescription":"Flytt og endre størrelse på vinduet i relasjon til hverandre, innenfor den synlige rammen.","moveCompanionWindowToBottom":"Flytt til bunnen","moveCompanionWindowToRight":"Flytt til høyre","nextCanvas":"Neste objekt","noItemSelected":"Ingen valgte objekt","numItems":"{{number}} objekt","numItems_plural":"{{number}} objekter","off":"Av","openCompanionWindow_annotations":"Annoteringer","openCompanionWindow_attribution":"Rettigheter","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informasjon","openCompanionWindow_layers":"Lag","openCompanionWindow_search":"Søk","openInCompanionWindow":"Åpne i eget panel","openWindows":"Åpne vindu","pagination":"{{current}} av {{total}}","position":"Posisjon","previewWindowTitle":"{{title}}","previousCanvas":"Forrige objekt","related":"Relatert","resource":"Ressurs","retry":"Forsøk igjen","right":"Til høyre","rights":"Lisens","scroll":"Bla","searchInputLabel":"Søkeord","searchNextResult":"Neste resultat","searchNoResults":"Ingen treff","searchPreviousResult":"Forrige resultat","searchResultsRemaining":"{{numLeft}} igjen","searchSubmitAria":"Søk","searchTitle":"Søk","selectWorkspaceMenu":"Velg arbeidsområde-type","showingNumAnnotations":"Vis {{number}} annotasjon","showingNumAnnotations_plural":"Vis {{number}} annotasjoner","showCollection":"Vis samling","showZoomControls":"Vis zoomkontroll","sidebarPanelsNavigation":"Sidemeny-panel navigering","single":"En og en","startHere":"Start her","suggestSearch":"Søk etter \\"{{ query }}\\" i dette dokument","tableOfContentsList":"Innholdsfortegnelse","theme":"Tema","thumbnailList":"Miniatyrliste","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Vis/skjul sidemenyen","totalCollections":"{{count}} samling","totalCollections_plural":"{{count}} samlinger","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifester","tryAgain":"Forsøk igjen","untitled":"[uten tittel]","view":"Visning","viewWorkspaceConfiguration":"Vis konfigurasjon av arbeidsområde.","welcome":"Velkommen til Mirador","window":"Vindu: {{label}}","windowMenu":"Vindusvisning & miniatyrvisning","windowNavigation":"Vindusnavigasjon","windowPluginButtons":"Innstillinger","windowPluginMenu":"Vindusinnstillinger","workspace":"Arbeidsområde","workspaceNavigation":"Navigasjon i arbeidsområdet","workspaceFullScreen":"Fullskjermsvisning","workspaceMenu":"Innstillinger for arbeidsområdet","workspaceOptions":"Flere valg for arbeidsområdet","workspaceSelectionTitle":"Velg arbeidsområde-type","zoomIn":"Zoom inn","zoomOut":"Zoom ut","zoomReset":"Tilbakestill zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutThisItem":"Over dit item","addedFromUrl":"(Toegevoegd via URL)","addManifestUrl":"Locatie bron","addManifestUrlHelp":"De URL van een IIIF-resource","addResource":"Voeg bron toe","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotaties","attribution":"Naamsvermelding","attributionTitle":"Rechten","authenticationFailed":"Authenticatie gefaald.","authenticationRequired":"Authenticatie is vereist voor volledige toegang","backToResults":"Terug naar resultaten","book":"Boek","bottom":"Onderaan","cancel":"Annuleer","canvasIndex":"Index","changeTheme":"Wijzig thema","clearSearch":"clear","closeAddResourceForm":"Sluit formulier","closeAddResourceMenu":"Sluit lijst met bronnen","closeCompanionWindow":"Sluit paneel","closeWindow":"Sluit venster","collapseSection":"Klap \\"{{section}}\\" sectie in","collapseSidePanel":"Klap zijbalk in","itemList":"Compacte lijst","continue":"Ga verder","copy":"Kopieer","currentItem":"Huidig item","currentItem_1/1":"Huidig item","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Donker thema","dismiss":"Dismiss","highlightAllAnnotations":"Markeer alles","downloadExport":"Exporteer workspace","downloadExportWorkspace":"Exporteer workspace","elastic":"Elastisch","elasticDescription":"Verplaats en rangschik vensters vrij in een onbeperkte workspace. Vensters kunnen elkaar overlappen.","emptyResourceList":"Je lijst met bronnen is leeg","errorDialogConfirm":"OK","errorDialogTitle":"Er is een fout opgetreden","exitFullScreen":"Verlaat volledig scherm","expandSection":"Klap \\"{{section}}\\" sectie uit","expandSidePanel":"Klap zijbalk uit","fetchManifest":"Voeg toe","fullScreen":"Volledig scherm","gallery":"Gallerij","hideZoomControls":"Verberg zoomknoppen","iiif_homepage":"Over deze bron","iiif_manifest":"IIIF-manifest","iiif_renderings":"Alternatieve formaten","iiif_seeAlso":"Zie ook","import":"Importeer","importWorkspace":"Importeer workspace","importWorkspaceHint":"Plak een Mirador 3 configuratie die geïmporteerd moet worden","item":"Item: {{label}}","language":"Taal","light":"Licht thema","links":"Links","listAllOpenWindows":"Ga naar venster","login":"Log in","manifestError":"De bron kan niet worden toegevoegd:","maximizeWindow":"Maximaliseer venster","minimizeWindow":"Minimaliseer venster","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"meer...","moreResults":"Meer resultaten","mosaic":"Mozaïek","mosaicDescription":"Verplaats en rangschik vensters in verhouding tot elkaar binnen het zichtbare kader.","moveCompanionWindowToBottom":"Verplaats naar beneden","moveCompanionWindowToRight":"Verplaats naar rechts","nextCanvas":"Volgend item","numItems":"{{number}} item","numItems_plural":"{{number}} items","off":"Uit","openCompanionWindow_annotations":"Annotaties","openCompanionWindow_attribution":"Rechten","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informatie","openCompanionWindow_search":"Zoeken","openInCompanionWindow":"Open in een apart paneel","openWindows":"Geopende vensters","pagination":"{{current}} van {{total}}","position":"Positie","previewWindowTitle":"{{title}}","previousCanvas":"Vorig item","related":"Verwant","resource":"Bron","retry":"Probeer opnieuw","right":"Rechts","rights":"Licentie","searchInputLabel":"zoek termen","searchNextResult":"Volgend resultaat","searchNoResults":"Geen resultaten gevonden","searchPreviousResult":"Vorig resultaat","searchSubmitAria":"Zoeken","searchTitle":"Zoek","selectWorkspaceMenu":"Selecteer workspacetype","showingNumAnnotations":"{{number}} annotatie weergegeven","showingNumAnnotations_plural":"{{number}} annotaties weergegeven","showZoomControls":"Toon zoomknoppen","sidebarPanelsNavigation":"Zijbalk panelen navigatie","single":"Enkel","startHere":"Begin Hier","suggestSearch":"Zoek in dit document naar \\"{{ query }}\\"","theme":"Thema","thumbnailList":"Lijst thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toon zijbalk","totalCollections":"{{count}} collectie","totalCollections_plural":"{{count}} collecties","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Probeer opnieuw","untitled":"[Zonder titel]","view":"Weergave","welcome":"Welkom in Mirador","window":"Venster: {{label}}","windowMenu":"Vensters- en miniatuurweergave","windowNavigation":"Navigatie venster","windowPluginButtons":"Opties","windowPluginMenu":"Vensteropties","workspace":"Workspace","workspaceFullScreen":"Volledig scherm","workspaceMenu":"Workspace instellingen","workspaceOptions":"Workspace opties","workspaceSelectionTitle":"Selecteer een workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"O Projekcie Mirador","aboutThisItem":"O bieżącej pozycji","addedFromUrl":"(Dodano z URL)","addManifestUrl":"Lokalizacja zasobów","addManifestUrlHelp":"URL zasobów IIIF","addResource":"Dodaj zasoby","annotationCanvasLabel_1/1":"Pozycja: [{{label}}]","annotationCanvasLabel_1/2":"Lewo: [{{label}}]","annotationCanvasLabel_2/2":"Prawo: [{{label}}]","annotations":"Adnotacje","attribution":"Atrybucja","attributionTitle":"Prawa","authenticationFailed":"Uwierzytelnianie nie powiodło się.","authenticationRequired":"Do pełnego dostępu wymagane jest uwierzytelnienie","backToResults":"Powrót do wyników","book":"Książka","bottom":"Dół","cancel":"Anuluj","canvasIndex":"Indeks","changeTheme":"Zmień motyw","clearSearch":"wyczyść","close":"Zamknij","closeAddResourceForm":"Zamknij formularz","closeAddResourceMenu":"Zamknij listę zasobów","closeCompanionWindow":"Zamknij panel","closeWindow":"Zamknij okno","collapseSection":"Zwiń sekcję \\"{{section}}\\"","collapseSidePanel":"Zwiń panel boczny","collection":"Zbiór","itemList":"Lista pozycji","continue":"Kontynuuj","copy":"Kopiuj","currentItem":"Bieżąca pozycja","currentItem_1/1":"Bieżąca pozycja","currentItem_1/2":"Lewo","currentItem_2/2":"Prawo","dark":"Ciemny motyw","digitizedView":"Widok zdigitalizowany","dismiss":"Odrzuć","highlightAllAnnotations":"Podświetl wszystko","displayNoAnnotations":"Nie podświetlaj","downloadExport":"Eksportuj obszar roboczy","downloadExportWorkspace":"Eksportuj obszar roboczy","elastic":"Elastyczny","elasticDescription":"Swobodnie przesuwaj i dopasowuj okna w nieograniczonej przestrzeni roboczej. Okna mogą zachodzić na siebie.","emptyResourceList":"Twoja lista zasobów jest pusta","error":"Błąd","errorDialogConfirm":"OK","errorDialogTitle":"Wystąpił błąd","exitFullScreen":"Wyłącz tryb pełnoekranowy","expandSection":"Rozwiń sekcję \\"{{section}}\\"","expandSidePanel":"Rozwiń panel boczny","exportCopied":"Konfiguracja obszaru roboczego została skopiowana do schowka","fetchManifest":"Dodaj","fullScreen":"Pełny ekran","gallery":"Galeria","hideZoomControls":"Ukryj kontrolki powiększenia","iiif_homepage":"O tym zasobie","iiif_manifest":"Manifest IIIF","iiif_renderings":"Alternatywne formaty","iiif_seeAlso":"Zobacz też","import":"Importuj","importWorkspace":"Importuj obszar roboczy","importWorkspaceHint":"Wklej konfigurację Mirador 3 do zaimportowania","item":"Pozycja: {{label}}","jsError":"Szczegóły techniczne","jsStack":"{{ stack }}","language":"Język","layer_hide":"Ukryj warstwę","layer_move":"Przenieś warstwę","layer_opacity":"Krycie warstwy","layer_show":"Pokaż warstwę","layer_moveToTop":"Przenieś warstwę na górę","layers":"Warstwy","light":"Jasny motyw","links":"Linki","listAllOpenWindows":"Przejdź do okna","login":"Zaloguj","logout":"Wyloguj","manifestError":"Następujące zasoby nie mogą być dodane:","maximizeWindow":"Maksymalizuj okno","minimizeWindow":"Minimalizuj okno","mirador":"Mirador","miradorResources":"Zasoby Mirador","miradorViewer":"Przeglądarka Mirador","more":"więcej...","moreResults":"Więcej wyników","mosaic":"Mozaika","mosaicDescription":"Przesuwaj i zmieniaj rozmiary okien względem siebie, w widocznej ramce.","moveCompanionWindowToBottom":"Przesuń na dół","moveCompanionWindowToRight":"Przesuń w prawo","nextCanvas":"Następna pozycja","noItemSelected":"Nie wybrano pozycji","numItems":"{{number}} pozycja","numItems_plural":"{{number}} pozycje","off":"Wyłącz","openCompanionWindow_annotations":"Adnotacje","openCompanionWindow_attribution":"Prawa","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informacje","openCompanionWindow_layers":"Warstwy","openCompanionWindow_search":"Szukaj","openInCompanionWindow":"Otwórz w oddzielnym panelu","openWindows":"Aktualnie otwarte okna","pagination":"{{current}} of {{total}}","position":"Pozycja","previewWindowTitle":"{{title}}","previousCanvas":"Poprzednia pozycja","related":"Powiązane","resource":"Zasoby","retry":"Spróbuj ponownie","right":"Prawo","rights":"Licencja","scroll":"Przewiń","searchInputLabel":"szukane słowa","searchNextResult":"Następny wynik","searchNoResults":"Nie znaleziono wyników","searchPreviousResult":"Poprzedni wynik","searchResultsRemaining":"Pozostało {{numLeft}}","searchSubmitAria":"Wyszukaj","searchTitle":"Wyszukaj","selectWorkspaceMenu":"Wybierz typ obszaru roboczego","showingNumAnnotations":"Wyświetlanie {{number}} adnotacji","showingNumAnnotations_plural":"Wyświetlanie {{number}} adnotacji","showCollection":"Pokaż zbiór","showZoomControls":"Pokaż kontrolki powiększenia","sidebarPanelsNavigation":"Nawigacja pasków panelu bocznego","single":"Pojedynczy","startHere":"Zacznij tutaj","suggestSearch":"Przeszukaj ten dokument pod kątem \\"{{ query }}\\"","tableOfContentsList":"Spis treści","theme":"Motyw","thumbnailList":"Lista miniatur","thumbnailNavigation":"Miniatury","thumbnails":"Miniatury","toggleWindowSideBar":"Przełącz panel boczny","totalCollections":"{{count}} zbiór","totalCollections_plural":"{{count}} zbiorów","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifestów","tryAgain":"Spróbuj ponownie","untitled":"[Bez nazwy]","view":"Widok","viewWorkspaceConfiguration":"Wyświetl konfigurację obszaru roboczego","welcome":"Witaj w Miradorze","window":"Okno: {{label}}","windowMenu":"Widoki okien i wyświetlanie miniatur","windowNavigation":"Nawigacja okna","windowPluginButtons":"Opcje","windowPluginMenu":"Opcje okna","workspace":"Obszar roboczy","workspaceNavigation":"Nawigacja obszaru roboczego","workspaceFullScreen":"Pełny ekran","workspaceMenu":"Ustawienia obszaru roboczego","workspaceOptions":"Opcje obszaru roboczego","workspaceSelectionTitle":"Wybierz typ obszaru roboczego","zoomIn":"Przybliż","zoomOut":"Oddal","zoomReset":"Zresetuj powiększenie"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutThisItem":"Sobre esse item","addedFromUrl":"(Adicionado por URL)","addManifestUrl":"Localização do manifesto","addManifestUrlHelp":"URL do manifesto IIIF","addResource":"Adicionar conteúdo","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Esquerda: [{{label}}]","annotationCanvasLabel_2/2":"Direita: [{{label}}]","annotations":"Anotações","attribution":"Atribuições","attributionTitle":"Direitos","authenticationFailed":"Falha na autenticação.","authenticationRequired":"Autenticação necessária para acesso completo","backToResults":"Voltar aos resultados","book":"Livro","bottom":"Embaixo","cancel":"Cancelar","canvasIndex":"Índice","changeTheme":"Mudar tema","clearSearch":"limpar","closeAddResourceForm":"Fechar formulário","closeAddResourceMenu":"Fechar lista de conteúdo","closeCompanionWindow":"Fechar painel","closeWindow":"Fechar janela","collapseSection":"Suprimir seção \\"{{section}}\\"","collapseSidePanel":"Suprimir barra lateral","itemList":"Lista compacta","continue":"Continuar","copy":"Copiar","currentItem":"Item atual","currentItem_1/1":"Item atual","currentItem_1/2":"Esquerda","currentItem_2/2":"Direita","dark":"Tema escuro","dismiss":"Cancelar","highlightAllAnnotations":"Exibir todas","downloadExport":"Exportar área de trabalho","downloadExportWorkspace":"Exportar área de trabalho","elastic":"Elástico","elasticDescription":"Mova e redimensione janelas livremente numa área de trabalho ilimitada. Janelas podem se sobrepor.","emptyResourceList":"Sua lista de conteúdos está vazia","errorDialogConfirm":"OK","errorDialogTitle":"Um erro ocorreu","exitFullScreen":"Sair do modo tela cheia","expandSection":"Expandir seção \\"{{section}}\\"","expandSidePanel":"Expandir barra lateral","fetchManifest":"Adicionar","fullScreen":"Tela cheia","gallery":"Galeria","hideZoomControls":"Ocultar controles de zoom","iiif_homepage":"Sobre esse conteúdo","iiif_manifest":"Manifesto IIIF","iiif_renderings":"Outros formatos","iiif_seeAlso":"Veja também","import":"Importar","importWorkspace":"Importar área de trabalho","importWorkspaceHint":"Cole uma configuração do Mirador 3 para importar","item":"Item: {{label}}","language":"Idioma","light":"Tema claro","links":"Links","listAllOpenWindows":"Pular para janela","login":"Login","manifestError":"O conteúdo não pode ser adicionado:","maximizeWindow":"Maximizar janela","minimizeWindow":"Minimizar janela","mirador":"Mirador","miradorResources":"conteúdo Mirador","miradorViewer":"visualizador Mirador","more":"mais...","moreResults":"Mais resultados","mosaic":"Mosáico","mosaicDescription":"Mova e redimensione janelas em relação entre si, dentro de uma área visível (grid).","moveCompanionWindowToBottom":"Mover para baixo","moveCompanionWindowToRight":"Mover para direita","nextCanvas":"Próximo item","numItems":"{{number}} itens","off":"Desativado","openCompanionWindow_annotations":"Anotações","openCompanionWindow_attribution":"Direitos","openCompanionWindow_canvas":"Índice","openCompanionWindow_info":"Informações","openCompanionWindow_search":"Busca","openInCompanionWindow":"Abrir em janela separada","openWindows":"Janelas abertas","pagination":"{{current}} de {{total}}","position":"Posição","previewWindowTitle":"{{title}}","previousCanvas":"Item anterior","related":"Relacionado","resource":"Conteúdo","retry":"Tentar novamente","right":"Direita","rights":"Licenças","searchInputLabel":"termos de busca","searchNextResult":"Próximo resultado","searchNoResults":"Nenhum resultado encontrado","searchPreviousResult":"Resultado anterior","searchSubmitAria":"Realizar busca","searchTitle":"Busca","selectWorkspaceMenu":"Selecione um tipo de área de trabalho","showingNumAnnotations":"Mostrando {{number}} anotações","showZoomControls":"Mostrar controles de zoom","sidebarPanelsNavigation":"Navegação por paineis na barra lateral","single":"Individual","startHere":"Comece aqui","suggestSearch":"Procurar neste documento por \\"{{ query }}\\"","theme":"Tema","thumbnailList":"Lista de thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Ver barra lateral","tryAgain":"Tente novamente","untitled":"[Sem título]","view":"Visualizações","welcome":"Bem-vindo ao Mirador","window":"Janela: {{label}}","windowMenu":"Opções de visualização de janelas e thumbnails","windowNavigation":"Navegação de janelas","windowPluginButtons":"Opções","windowPluginMenu":"Opções de janela","workspace":"Área de trabalho","workspaceFullScreen":"Tela cheia","workspaceMenu":"Configurações de área de trabalho","workspaceOptions":"Opções de área de trabalho","workspaceSelectionTitle":"Selecionar tipo de área de trabalho","zoomIn":"Mais zoom","zoomOut":"Menos zoom","zoomReset":"Zerar zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"О пројекту Mirador","aboutThisItem":"Опис","addedFromUrl":"(Додато са URL)","addManifestUrl":"Локација ресурса","addManifestUrlHelp":"URL IIIF ресурса","addResource":"Додајте ресурс","annotationCanvasLabel_1/1":"Страница: [{{label}}]","annotationCanvasLabel_1/2":"Лева: [{{label}}]","annotationCanvasLabel_2/2":"Десна: [{{label}}]","annotations":"Анотације","attribution":"Приступ","attributionTitle":"Права","authenticationFailed":"Неуспела аутентификација.","authenticationRequired":"За потпуни приступ неопходна је аутентификација","backToResults":"Повратак на резултате","book":"Књига","bottom":"На дну","cancel":"Одустаните","canvasIndex":"Индекс","changeTheme":"Промените тему","clearSearch":"обришите","close":"Затворите","closeAddResourceForm":"Затворите","closeAddResourceMenu":"Затворите листу ресурса","closeCompanionWindow":"Затворите панел","closeWindow":"Затворите приказ","collapseSection":"Сакријте \\"{{section}}\\" секцију","collapseSidePanel":"Сакријте","collection":"Колекција","itemList":"Листа страница","continue":"Наставите","copy":"Копирајте","currentItem":"Тренутна страница","currentItem_1/1":"Тренутна страница","currentItem_1/2":"Лева","currentItem_2/2":"Десна","dark":"Тамна тема","digitizedView":"Приказ дигиталног објекта","dismiss":"Откажите","highlightAllAnnotations":"Приказ свих","displayNoAnnotations":"Без приказа","downloadExport":"Извезите радно окружење","downloadExportWorkspace":"Извезите радно окружење","elastic":"Еластични","elasticDescription":"Слободно померајте и одредите величину приказа у неограниченом радном простору. Прикази могу бити већи од радног простора.","emptyResourceList":"Ваша листа ресурса је празна","error":"Грешка","errorDialogConfirm":"OK","errorDialogTitle":"Дошло је до грешке","exitFullScreen":"Изађите из приказа преко целог екрана","expandSection":"Проширите \\"{{section}}\\" секцију","expandSidePanel":"Прикажите","exportCopied":"Конфигурација радног окружења је копирана у привремену меморију","fetchManifest":"Додајте","fullScreen":"Приказ у пуном екрану","gallery":"Галерија","hideZoomControls":"Сакријте контроле зума","iiif_homepage":"О ресурсу","iiif_manifest":"IIIF manifest","iiif_renderings":"Додатни формати","iiif_seeAlso":"Погледајте и","import":"Увезите","importWorkspace":"Увезите радно окружење","importWorkspaceHint":"Убаците конфигурацију Mirador 3 како би могли да је увезете","item":"Страница: {{label}}","jsError":"Технички детаљи","jsStack":"{{ stack }}","language":"Језик приказа","layer_hide":"Сакријте слој","layer_move":"Померите слој","layer_opacity":"Видљивост слоја","layer_show":"Приказ слоја","layer_moveToTop":"Померите слој на врх","layers":"Слојеви","light":"Светла тема","links":"Линкови","listAllOpenWindows":"Идите на приказ","login":"Улогујте се","logout":"Излогујте се","manifestError":"Ресурс се не може додати","maximizeWindow":"Максималан приказ","minimizeWindow":"Минималан приказ","mirador":"Mirador","miradorResources":"Mirador ресурси","miradorViewer":"Mirador прегледач","more":"још...","moreResults":"Још резултата","mosaic":"Мозаик","mosaicDescription":"Померајте и одредите величину приказа који су у међусобној релацији, унутар видљивог оквира.","moveCompanionWindowToBottom":"Пребаците на дно","moveCompanionWindowToRight":"Померите у десну страну","nextCanvas":"Следећа","noItemSelected":"Нема изабраних објеката","numItems":"{{number}} страница/це","off":"Искључене","openCompanionWindow_annotations":"Анотације","openCompanionWindow_attribution":"Права","openCompanionWindow_canvas":"Индекс","openCompanionWindow_info":"Информације","openCompanionWindow_layers":"Слојеви","openCompanionWindow_search":"Претрага","openInCompanionWindow":"Отворите у засебном панелу","openWindows":"Тренутно отворени прикази","pagination":"{{current}} од {{total}}","position":"Позиција","previewWindowTitle":"{{title}}","previousCanvas":"Претходна","related":"Релације","resource":"Ресурс","retry":"Покушајте поново","right":"Десно","rights":"Лиценца","scroll":"Померајте","searchInputLabel":"претражите појам","searchNextResult":"Следећи резултат","searchNoResults":"Тражени појам није пронађен","searchPreviousResult":"Претходни резултат","searchSubmitAria":"Претражите","searchTitle":"Претрага","selectWorkspaceMenu":"Изаберите тип радног окружења","showingNumAnnotations":"Приказ {{number}} анотација/је","showCollection":"Прикажи колекцију","showZoomControls":"Приказ контрола зума","sidebarPanelsNavigation":"Навигација сајдбар панела","single":"Појединачно","startHere":"Започните","suggestSearch":"Пронађите појам \\"{{ query }}\\" у овом документу","tableOfContentsList":"Садржај","theme":"Тема","thumbnailList":"Листа сличица","thumbnailNavigation":"Сличице","thumbnails":"Сличице","toggleWindowSideBar":"Сајдбар","totalCollections":"{{count}} колекција/е","totalManifests":"{{count}} објек(а)та","tryAgain":"Покушајте поново","untitled":"[Без наслова]","view":"Преглед","welcome":"Добродошли у прегледач Mirador","window":"Приказ: {{label}}","windowMenu":"Изглед прегледа и позиција сличица","windowNavigation":"Навигација приказа","windowPluginButtons":"Опције","windowPluginMenu":"Опције приказа","workspace":"Радни простор","workspaceFullScreen":"Приказ преко целог екрана","workspaceMenu":"Уређивање радног простора","workspaceOptions":"Опције радног окружења","workspaceSelectionTitle":"Изаберите тип радног окружења","zoomIn":"Увећајте","zoomOut":"Умањите","zoomReset":"Ресет зума"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om det här objektet","addedFromUrl":"(Tillagd från URL)","addManifestUrl":"Webbadress till samling eller manifest","addManifestUrlHelp":"URL till en IIIF-resurs","addResource":"Lägg till resurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Vänster: [{{label}}]","annotationCanvasLabel_2/2":"Höger: [{{label}}]","annotations":"Noteringar","attribution":"Tillskrivning","attributionTitle":"Rättigheter","authenticationFailed":"Autentisering misslyckades.","authenticationRequired":"Autentisering krävs för full åtkomst","backToResults":"Tillbaka till resultat","book":"Bok","bottom":"Nederkant","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Ändra tema","clearSearch":"Ta bort sökning","close":"Stäng","closeAddResourceForm":"Stäng formulär","closeAddResourceMenu":"Stäng resurslista","closeCompanionWindow":"Stäng panel","closeWindow":"Stäng fönster","collapseSection":"Stäng sektionen \\"{{section}}\\"","collapseSidePanel":"Stäng sidofält","collection":"Samling","itemList":"Objektlista","continue":"Fortsätt","copy":"Kopiera","currentItem":"Aktuellt objekt","currentItem_1/1":"Aktuellt objekt","currentItem_1/2":"Vänster","currentItem_2/2":"Höger","dark":"Mörkt tema","digitizedView":"Digitaliserad vy","dismiss":"Stäng","highlightAllAnnotations":"Markera alla","displayNoAnnotations":"Avmarkera alla","downloadExport":"Exportera arbetsyta","downloadExportWorkspace":"Exportera arbetsyta","elastic":"Elastisk","elasticDescription":"Flytta och ändra storlek på fönster fritt i en obegränsad arbetsyta. Fönster kan överlappa.","emptyResourceList":"Din resurslista är tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Ett problem uppstod","exitFullScreen":"Lämna helskärmsläge","expandSection":"Expandera sektionen \\"{{section}}\\"","expandSidePanel":"Expandera sidofält","exportCopied":"Konfiguration av arbetsytan har kopierats till dina urklipp","fetchManifest":"Lägg till","fullScreen":"Helskärmsläge","gallery":"Galleri","hideZoomControls":"Dölj zoomkontroller","iiif_homepage":"Om den här resursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativa format","iiif_seeAlso":"Se även","import":"Importera","importWorkspace":"Importera arbetsyta","importWorkspaceHint":"Klistra in en Mirador 3 konfiguration att importera","item":"Objekt: {{label}}","jsError":"Tekniska detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Dölj lager","layer_move":"Flytta lager","layer_opacity":"Lageropacitet","layer_show":"Visa lager","layer_moveToTop":"Flytta lager till toppen","layers":"Lager","light":"Ljust tema","links":"Länkar","listAllOpenWindows":"Gå till fönster","login":"Logga in","logout":"Logga ut","manifestError":"Resursen kan inte läggas till:","maximizeWindow":"Maximera fönster","minimizeWindow":"Minimera fönster","mirador":"Mirador","miradorResources":"Miradorresurser","miradorViewer":"Mirador bildvisare","more":"mer...","moreResults":"Fler resultat","mosaic":"Mosaik","mosaicDescription":"Flytta och ändra storlek på fönster i relation till varandra, innanför den synliga ramen.","moveCompanionWindowToBottom":"Flytta till botten","moveCompanionWindowToRight":"Flytta till höger","nextCanvas":"Nästa objekt","noItemSelected":"Inga valda objekt","numItems":"{{number}} objekt","off":"Av","openCompanionWindow_annotations":"Noteringar","openCompanionWindow_attribution":"Rättigheter","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Lager","openCompanionWindow_search":"Sök","openInCompanionWindow":"Öppna i separat panel","openWindows":"Öppna fönster","pagination":"{{current}} av {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Föregående objekt","related":"Relaterat","resource":"Resurs","retry":"Försök igen","right":"Till höger","rights":"Licens","scroll":"Scrolla","searchInputLabel":"Sökord","searchNextResult":"Nästa resultat","searchNoResults":"Inga resultat hittades","searchPreviousResult":"Föregående resultat","searchResultsRemaining":"{{numLeft}} kvar","searchSubmitAria":"Sök","searchTitle":"Sök","selectWorkspaceMenu":"Välj typ av arbetsyta","showingNumAnnotations":"Visar {{number}} noteringar","showCollection":"Visa samling","showZoomControls":"Visa zoomkontroller","sidebarPanelsNavigation":"Sidofältspaneler navigering","single":"En och en","startHere":"Börja här","suggestSearch":"Sök i detta dokument efter \\"{{ query }}\\"","tableOfContentsList":"Innehållsförteckning","theme":"Tema","thumbnailList":"Miniatyrlista","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Visa/dölj sidofält","totalCollections":"{{count}} samlingar","totalManifests":"{{count}} manifest","tryAgain":"Försök igen","untitled":"[namnlös]","view":"Vy","welcome":"Välkommen till Mirador","window":"Fönster: {{label}}","windowMenu":"Fönstervyer & miniatyrdisplay","windowNavigation":"Fönsternavigation","windowPluginButtons":"Inställningar","windowPluginMenu":"Fönsterinställningar","workspace":"Arbetsyta","workspaceNavigation":"Navigera i arbetsyta","workspaceFullScreen":"Helskärmsläge","workspaceMenu":"Inställningar för arbetsyta","workspaceOptions":"Fler val för arbetsyta","workspaceSelectionTitle":"Välj typ av arbetsyta","zoomIn":"Zooma in","zoomOut":"Zooma ut","zoomReset":"Återställ zoom"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutMirador":"Về dự án Mirador","aboutThisItem":"Về khoản mục này","addedFromUrl":"(Được thêm từ URL)","addManifestUrl":"Vị trí tài nguyên","addManifestUrlHelp":"URL của tài nguyên IIIF","addResource":"Bổ sung tài nguyên","annotationCanvasLabel_1/1":"Khoản mục: [{{label}}]","annotationCanvasLabel_1/2":"Trái: [{{label}}]","annotationCanvasLabel_2/2":"Phải: [{{label}}]","annotations":"Chú giải","attribution":"Quyền hạn","attributionTitle":"Quyền","authenticationFailed":"Xác thực thất bại.","authenticationRequired":"Xác thực được yêu cầu cho truy nhập đầy đủ","backToResults":"Trở lại kết quả","book":"Sách","bottom":"Đáy","cancel":"Huỷ bỏ","canvasIndex":"Chỉ mục","changeTheme":"Đổi chủ đề","clearSearch":"xoá","close":"Đóng","closeAddResourceForm":"Đóng mẫu","closeAddResourceMenu":"Đóng danh sách tài nguyên","closeCompanionWindow":"Đóng panel","closeWindow":"Đóng cửa sổ","collapseSection":"Co sập {{section}} mục","collapseSidePanel":"Co sập thanh bên","collection":"Tuyển tập","itemList":"Danh sách khoản mục","continue":"Tiếp tục","copy":"Sao","currentItem":"Khoản mục hiện thời","currentItem_1/1":"Khoản mục hiện thời","currentItem_1/2":"Trái","currentItem_2/2":"Phải","dark":"Chủ đề tối","digitizedView":"Cái nhìn số hoá","dismiss":"Bác bỏ","highlightAllAnnotations":"Làm nổi bật tất","displayNoAnnotations":"Không làm nổi bật","downloadExport":"Vùng xuất khẩu","downloadExportWorkspace":"Vùng xuất khẩu","elastic":"Co giãn","elasticDescription":"Di chuyển và định cỡ cửa sổ tự do trong vùng vô giới hạn. Cửa sổ có thể chèn lấp.","emptyResourceList":"Danh sách tài nguyên của bạn là trống","error":"Lỗi","errorDialogConfirm":"OK","errorDialogTitle":"Lỗi đã xuất hiện","exitFullScreen":"Ra khỏi toàn màn hình","expandSection":"Mở rộng {{section}} mục","expandSidePanel":"Mở rộng thanh bên","exportCopied":"Cấu hình vùng làm việc được sao vào bảng đệm của bạn","fetchManifest":"Thêm","fullScreen":"Toàn màn hình","gallery":"Phòng tranh","hideZoomControls":"Ẩn điều khiển thu phóng","iiif_homepage":"Về tài nguyên này","iiif_manifest":"Bản kê IIIF","iiif_renderings":"Dạng thức luân phiên","iiif_seeAlso":"Cũng xem","import":"Nhập khẩu","importWorkspace":"Vùng nhập khẩu","importWorkspaceHint":"Dán cấu hình Mirador 3 để được nhập khẩu","item":"Khoản mục: {{label}}","jsError":"Chi tiết kĩ thuật","jsStack":"{{ stack }}","language":"Ngôn ngữ","layer_hide":"Giấu tầng","layer_move":"Chuyển tầng","layer_opacity":"Làm mờ tầng","layer_show":"Hiện tầng","layer_moveToTop":"Chuyển tầng lên đỉnh","layers":"Tầng","light":"Chủ đề sáng","links":"Móc nối","listAllOpenWindows":"Nhảy tới cửa sổ","login":"Đăng nhập","logout":"Đăng xuất","manifestError":"Tài nguyên không thể được bổ sung:","maximizeWindow":"Cực đại cửa sổ","minimizeWindow":"Cực tiểu cửa sổ","mirador":"Mirador","miradorResources":"Tài nguyên Mirador","miradorViewer":"Bộ xem Mirador","more":"thêm...","moreResults":"Thêm kết quả","mosaic":"Mosaic","mosaicDescription":"Di chuyển và định cỡ cửa sổ trong quan hệ lẫn nhau, bên trong khung thấy được.","moveCompanionWindowToBottom":"Chuyển tới đáy","moveCompanionWindowToRight":"Chuyển sang phải","nextCanvas":"Khoản mục tiếp","noItemSelected":"Không khoản mục nào được chọn","numItems":"{{number}} khoản mục","off":"Off","openCompanionWindow_annotations":"Chú giải","openCompanionWindow_attribution":"Quyền","openCompanionWindow_canvas":"Chỉ mục","openCompanionWindow_info":"Thông tin","openCompanionWindow_layers":"Tầng","openCompanionWindow_search":"Tìm","openInCompanionWindow":"Mở trong ngăn tách rời","openWindows":"Cửa sổ mở hiện thời","pagination":"{{current}} trong {{total}}","position":"Vị trí","previewWindowTitle":"{{title}}","previousCanvas":"Khoản mục trước","related":"Có liên quan","resource":"Tài nguyên","retry":"Thử lại","right":"Quyền","rights":"Cấp phép","scroll":"Cuộn","searchInputLabel":"Từ tìm kiếm","searchNextResult":"Kết quả tiếp","searchNoResults":"Không tìm được kết quả nào","searchPreviousResult":"Kết quả trước","searchSubmitAria":"Đệ trình việc tìm","searchTitle":"Tìm","selectWorkspaceMenu":"Chọn kiểu vùng làm việc","showingNumAnnotations":"Hiện {{number}} chú giải","showCollection":"Hiện bộ sưu tập","showZoomControls":"Hiện kiểm soát thu phóng","sidebarPanelsNavigation":"Dẫn lái ngăn thanh bên","single":"Chỉ một","startHere":"Bắt đầu ở đây","suggestSearch":"Tìm tài liệu này cho \\"{{ query }}\\"","tableOfContentsList":"Mục lục","theme":"Chủ đề","thumbnailList":"Danh sách ảnh thu nhỏ","thumbnailNavigation":"Ảnh thu nhỏ","thumbnails":"Ảnh thu nhỏ","toggleWindowSideBar":"chốt thanh bên","totalCollections":"{{count}} bộ sưu tập","totalManifests":"{{count}} bản kê","tryAgain":"Thử lại","untitled":"[Untitled]","view":"Xem","welcome":"Chào mừng bạn tới Mirador","window":"Cửa sổ: {{label}}","windowMenu":"Xem cửa sổ & hiển thị ảnh thu nhỏ","windowNavigation":"Dẫn lái cửa sổ","windowPluginButtons":"Tuỳ chọn","windowPluginMenu":"Tuỳ chọn cửa sổ","workspace":"Vùng làm việc","workspaceNavigation":"Dẫn lái vùng làm việc","workspaceFullScreen":"Toàn màn hình","workspaceMenu":"Thiết đặt vùng làm việc","workspaceOptions":"Tuỳ chọn vùng làm việc","workspaceSelectionTitle":"Chọn kiểu vùng làm việc","zoomIn":"Thu nhỏ","zoomOut":"Phóng to","zoomReset":"Đặt lại thu phóng"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutThisItem":"有关此物件","addedFromUrl":"(从URL添加)","addManifestUrl":"来源","addManifestUrlHelp":"IIIF资源的URL","addResource":"添加资源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"注释","attribution":"着作权","attributionTitle":"着作权","book":"书籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"变更佈景主题","closeAddResourceForm":"关闭表格","closeAddResourceMenu":"关闭资源列表","closeCompanionWindow":"关闭附属视窗","closeWindow":"关闭视窗","collapseSection":"关闭{{section}}分页","collapseSidePanel":"关闭边栏","itemList":"标题列表","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"黑色主题","dismiss":"关闭信息","highlightAllAnnotations":"显示所有注释","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"弹性","elasticDescription":"在桌面上自由摆放视窗","emptyResourceList":"资源列表没有物件","errorDialogConfirm":"确定","errorDialogTitle":"发生错误","exitFullScreen":"退出全萤幕","expandSection":"开启{{section}}分页","expandSidePanel":"开启边栏","fetchManifest":"添加","fullScreen":"全萤幕","gallery":"矩列","hideZoomControls":"隐藏缩放选项","iiif_homepage":"有关此资源","iiif_manifest":"IIIF","iiif_renderings":"其他格式","iiif_seeAlso":"另见","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此贴上Mirador 3排版设定码","item":"物件: {{label}}","language":"语言","light":"白色主题","links":"连结","listAllOpenWindows":"切换至视窗","login":"登入","manifestError":"无法增添资源:","maximizeWindow":"视窗最大化","minimizeWindow":"视窗最小化","mirador":"Mirador","miradorResources":"Mirador资源","miradorViewer":"Mirador阅览器","mosaic":"马赛克","mosaicDescription":"在桌面上以格状方式排列视窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","nextCanvas":"下一页","numItems":"{{number}} 项物件","off":"关闭","openCompanionWindow_annotations":"注释","openCompanionWindow_attribution":"着作权","openCompanionWindow_canvas":"目录","openCompanionWindow_info":"资讯","openInCompanionWindow":"移至新附属视窗","openWindows":"现有视窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一页","related":"相关资讯","resource":"资源","right":"右方","rights":"版权","selectWorkspaceMenu":"选择桌面排版方式","showingNumAnnotations":"显示 {{number}} 项注释","showZoomControls":"显示缩放选项","sidebarPanelsNavigation":"切换边栏","single":"单项","startHere":"按此开始","theme":"佈景主题","thumbnailList":"缩图列表","thumbnailNavigation":"缩图","thumbnails":"显示缩图","toggleWindowSideBar":"切换边栏开关","tryAgain":"请重试","untitled":"[无标题]","view":"物件排列方式","welcome":"欢迎使用Mirador","window":"视窗: {{label}}","windowMenu":"视窗选项","windowNavigation":"切换视窗","windowPluginButtons":"选项","workspace":"桌面","workspaceFullScreen":"全萤幕","workspaceMenu":"桌面设定","workspaceOptions":"桌面选项","workspaceSelectionTitle":"选择桌面排版方式","zoomIn":"放大","zoomOut":"放小","zoomReset":"重设缩放"}}')},function(e){e.exports=JSON.parse('{"translation":{"aboutThisItem":"有關此物件","addedFromUrl":"(從URL添加)","addManifestUrl":"來源","addManifestUrlHelp":"IIIF資源的URL","addResource":"添加資源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"注釋","attribution":"著作權","attributionTitle":"著作權","book":"書籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"變更佈景主題","closeAddResourceForm":"關閉表格","closeAddResourceMenu":"關閉資源列表","closeCompanionWindow":"關閉附屬視窗","closeWindow":"關閉視窗","collapseSection":"關閉{{section}}分頁","collapseSidePanel":"關閉邊欄","itemList":"標題列表","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"黑色主題","dismiss":"關閉信息","highlightAllAnnotations":"顯示所有注釋","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"彈性","elasticDescription":"在桌面上自由擺放視窗","emptyResourceList":"資源列表沒有物件","errorDialogConfirm":"確定","errorDialogTitle":"發生錯誤","exitFullScreen":"退出全螢幕","expandSection":"開啟{{section}}分頁","expandSidePanel":"開啟邊欄","fetchManifest":"添加","fullScreen":"全螢幕","gallery":"矩列","hideZoomControls":"隱藏縮放選項","iiif_homepage":"有關此資源","iiif_manifest":"IIIF","iiif_renderings":"其他格式","iiif_seeAlso":"另見","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此貼上Mirador 3排版設定碼","item":"物件: {{label}}","language":"語言","light":"白色主題","links":"連結","listAllOpenWindows":"切換至視窗","login":"登入","manifestError":"無法增添資源:","maximizeWindow":"視窗最大化","minimizeWindow":"視窗最小化","mirador":"Mirador","miradorResources":"Mirador資源","miradorViewer":"Mirador閱覽器","mosaic":"馬賽克","mosaicDescription":"在桌面上以格狀方式排列視窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","nextCanvas":"下一頁","numItems":"{{number}} 項物件","off":"關閉","openCompanionWindow_annotations":"注釋","openCompanionWindow_attribution":"著作權","openCompanionWindow_canvas":"目錄","openCompanionWindow_info":"資訊","openInCompanionWindow":"移至新附屬視窗","openWindows":"現有視窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一頁","related":"相關資訊","resource":"資源","right":"右方","rights":"版權","selectWorkspaceMenu":"選擇桌面排版方式","showingNumAnnotations":"顯示 {{number}} 項注釋","showZoomControls":"顯示縮放選項","sidebarPanelsNavigation":"切換邊欄","single":"單項","startHere":"按此開始","theme":"佈景主題","thumbnailList":"縮圖列表","thumbnailNavigation":"縮圖","thumbnails":"顯示縮圖","toggleWindowSideBar":"切換邊欄開關","tryAgain":"請重試","untitled":"[無標題]","view":"物件排列方式","welcome":"歡迎使用Mirador","window":"視窗: {{label}}","windowMenu":"視窗選項","windowNavigation":"切換視窗","windowPluginButtons":"插件","workspace":"桌面","workspaceFullScreen":"全螢幕","workspaceMenu":"桌面設定","workspaceOptions":"桌面選項","workspaceSelectionTitle":"選擇桌面排版方式","zoomIn":"放大","zoomOut":"放小","zoomReset":"重設縮放"}}')},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19 18l2 1V1H7v2h12v15zM17 5H3v18l7-3 7 3V5z"}),"BookmarksSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19.44 12.99l-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26l-2.11-1.66zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"}),"SettingsSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"}),"CheckSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"PaletteSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHorizSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19 12v7H5v-7H3v9h18v-9h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z"}),"SaveAltSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"}),"Input");t.default=i},function(e,t,n){"use strict";var r=n(1014).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExitSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"FullscreenSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M4.01 2L4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z"}),"InsertDriveFileSharp");t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(e){return i="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},i(e)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?d(e):t}function f(e){return f=Object.getPrototypeOf||function(e){return e.__proto__},f(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",zIndex:-1,visibility:"hidden",pointerEvents:"none"},g={position:"absolute",left:0,top:0,transition:"0s"};function m(e,t){for(var n=e.parentNode;n;){if(n===t)return!0;n=n.parentNode}return!1}var v=function(e){function t(){var e,n,r;s(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return u(r,(n=r=u(this,(e=f(t)).call.apply(e,[this].concat(i))),p(d(d(r)),"_expandRef",null),p(d(d(r)),"_shrinkRef",null),p(d(d(r)),"_node",null),p(d(d(r)),"_lastWidth",void 0),p(d(d(r)),"_lastHeight",void 0),p(d(d(r)),"_lastRect",void 0),p(d(d(r)),"_hasResize",!1),p(d(d(r)),"_handleScroll",(function(e){(r.props.onPosition||r.props.onReflow||r.props.onResize)&&(r._globalScollTarget(e.target)||r._refScrollTarget(e.target)||r._ancestorScollTarget(e.target))&&r._reflow()})),p(d(d(r)),"_globalScollTarget",(function(e){return e instanceof Node&&(r.props.onPosition||r.props.onReflow)&&(e===document||e===document.documentElement||e===document.body)})),p(d(d(r)),"_refScrollTarget",(function(e){if(e instanceof HTMLElement&&(e===r._expandRef||e===r._shrinkRef)){var t=e.offsetWidth,n=e.offsetHeight;if(t!==r._lastWidth||n!==r._lastHeight)return r._lastWidth=t,r._lastHeight=n,r._reset(r._expandRef),r._reset(r._shrinkRef),!0}return!1})),p(d(d(r)),"_ancestorScollTarget",(function(e){return e instanceof Node&&(r.props.onPosition||r.props.onReflow)&&r._node&&m(r._node,e)})),p(d(d(r)),"_reflow",(function(){if(r._node&&r._node.parentNode instanceof Element){var e=r._node.parentNode.getBoundingClientRect(),t=!0,n=!0;r._lastRect&&(t=e.width!==r._lastRect.width||e.height!==r._lastRect.height,n=e.top!==r._lastRect.top||e.left!==r._lastRect.left),r._lastRect=e,t&&r.props.onResize&&r.props.onResize(e),n&&r.props.onPosition&&r.props.onPosition(e),(t||n)&&r.props.onReflow&&r.props.onReflow(e)}})),p(d(d(r)),"_handleRef",(function(e){r._node=e})),p(d(d(r)),"_handleExpandRef",(function(e){r._reset(e),r._expandRef=e})),p(d(d(r)),"_handleShrinkRef",(function(e){r._reset(e),r._shrinkRef=e})),n))}var n,r,i;return n=t,(r=[{key:"componentDidMount",value:function(){this._reflow(),window.addEventListener("scroll",this._handleScroll,!0),(this.props.onPosition||this.props.onReflow)&&(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0)}},{key:"componentDidUpdate",value:function(){!this.props.onPosition&&!this.props.onReflow||this._hasResize?this.props.onPosition||this.props.onReflow||!this._hasResize||(window.removeEventListener("resize",this._reflow,!0),this._hasResize=!1):(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this._handleScroll,!0),this._hasResize&&window.removeEventListener("resize",this._reflow,!0)}},{key:"_reset",value:function(e){e&&(e.scrollLeft=1e5,e.scrollTop=1e5)}},{key:"render",value:function(){return this.props.onResize||this.props.onReflow?o.default.createElement("div",{style:h,ref:this._handleRef},o.default.createElement("div",{ref:this._handleExpandRef,style:h},o.default.createElement("div",{style:a({},g,{width:1e5,height:1e5})})),o.default.createElement("div",{ref:this._handleShrinkRef,style:h},o.default.createElement("div",{style:a({},g,{width:"200%",height:"200%"})}))):o.default.createElement("noscript",{ref:this._handleRef})}}])&&l(n.prototype,r),i&&l(n,i),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");c(e.prototype,t&&t.prototype),t&&c(e,t)}(t,e),t}(o.default.Component);p(v,"displayName","ResizeObserver");var b=v;t.default=b},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"}),"ViewColumn");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M21 3H3v18h18V3zm-2 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"}),"CropOriginalSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M21 3H3v18h18V3zm-2 16H5V5h14v14z"}),"CropDinSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertSharp");t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(11));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onReceiveMessage=n.onReceiveMessage.bind(n),n.onLoad=n.onLoad.bind(n),n.sendMessage=n.sendMessage.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.onReceiveMessage),this._frame&&this._frame.addEventListener("load",this.onLoad)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.onReceiveMessage,!1)}},{key:"componentWillReceiveProps",value:function(e){this.props.postMessageData!==e.postMessageData&&this.sendMessage(e.postMessageData)}},{key:"onReceiveMessage",value:function(e){var t=this.props.handleReceiveMessage;t&&t(e)}},{key:"onLoad",value:function(){var e=this.props.handleReady;e&&e(),this.sendMessage(this.props.postMessageData)}},{key:"sendMessage",value:function(e){this._frame.contentWindow.postMessage(e,this.props.targetOrigin)}},{key:"render",value:function(){var e=this,n=this.props.attributes;return i.default.createElement("iframe",r({ref:function(t){e._frame=t}},Object.assign({},t.defaultAttributes,n)))}}]),t}(i.default.Component);c.propTypes={attributes:a.default.shape({frameBorder:a.default.oneOfType([a.default.string,a.default.number]),height:a.default.oneOfType([a.default.string,a.default.number]),name:a.default.string,scrolling:a.default.string,sandbox:a.default.string,srcDoc:a.default.string,src:a.default.string.isRequired,width:a.default.oneOfType([a.default.string,a.default.number])}),handleReceiveMessage:a.default.func,handleReady:a.default.func,postMessageData:a.default.any,targetOrigin:a.default.string},c.defaultProps={targetOrigin:"*"},c.defaultAttributes={frameBorder:0},t.default=c},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"InfoSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91c.48.22 1.05.34 1.7.34.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"CopyrightSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"}),"LayersSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutlineSharp");t.default=i},function(e,t,n){"use strict";var r=n(23);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(25)).default)(o.default.createElement("path",{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"RemoveCircleOutlineSharp");t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n(26),o=n(5),i=n(382),a=n(104),s=n(1);function c(e,t,n){var o;return Object(s.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n      paddingLeft: theme.spacing(2),\n      paddingRight: theme.spacing(2),\n      [theme.breakpoints.up('sm')]: {\n        paddingLeft: theme.spacing(3),\n        paddingRight: theme.spacing(3),\n      },\n      "].join("\n")),Object(s.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(s.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var l=n(277),u={black:"#000",white:"#fff"},f=n(306),d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(30),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:f.a[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.a[800],default:"#303030"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function O(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.e)(e.main,o):"dark"===t&&(e.dark=Object(b.b)(e.main,i)))}function E(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,r=e.secondary,a=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,c=e.error,E=void 0===c?{light:h[300],main:h[500],dark:h[700]}:c,x=e.warning,S=void 0===x?{light:g[300],main:g[500],dark:g[700]}:x,j=e.info,T=void 0===j?{light:m[300],main:m[500],dark:m[700]}:j,_=e.success,C=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,I=e.type,P=void 0===I?"light":I,k=e.contrastThreshold,R=void 0===k?3:k,A=e.tonalOffset,D=void 0===A?.2:A,M=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(e){return Object(b.d)(e,w.text.primary)>=R?w.text.primary:y.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(s.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!=typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return O(e,"light",n,D),O(e,"dark",r,D),e.contrastText||(e.contrastText=N(e.main)),e},z={dark:w,light:y};return Object(i.a)(Object(s.a)({common:u,type:P,primary:L(n),secondary:L(a,"A400","A200","A700"),error:L(E),warning:L(S),info:L(T),success:L(C),grey:f.a,contrastThreshold:R,getContrastText:N,augmentColor:L,tonalOffset:D},z[P]),M)}function x(e){return Math.round(1e5*e)/1e5}function S(e){return x(e)}var j={textTransform:"uppercase"},T='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,a=void 0===r?T:r,c=n.fontSize,l=void 0===c?14:c,u=n.fontWeightLight,f=void 0===u?300:u,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,g=void 0===h?500:h,m=n.fontWeightBold,v=void 0===m?700:m,b=n.htmlFontSize,y=void 0===b?16:b,w=n.allVariants,O=n.pxToRem,E=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=l/14,C=O||function(e){return"".concat(e/y*_,"rem")},I=function(e,t,n,r,o){return Object(s.a)({fontFamily:a,fontWeight:e,fontSize:C(t),lineHeight:n},a===T?{letterSpacing:"".concat(x(r/t),"em")}:{},o,w)},P={h1:I(f,96,1.167,-1.5),h2:I(f,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(g,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(g,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(g,14,1.75,.4,j),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,j)};return Object(i.a)(Object(s.a)({htmlFontSize:y,pxToRem:C,round:S,fontFamily:a,fontSize:l,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:g,fontWeightBold:v},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var I=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4},k=n(49),R=(n(112),n(109));n(11);var A=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},D={xs:0,sm:600,md:960,lg:1280,xl:1920},M={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(D[e],"px)")}};var N,L,z={m:"margin",p:"padding"},W={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F=(N=function(e){if(e.length>2){if(!B[e])return[e];e=B[e]}var t=e.split(""),n=Object(k.a)(t,2),r=n[0],o=n[1],i=z[r],a=W[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},L={},function(e){return void 0===L[e]&&(L[e]=N(e)),L[e]}),H=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function U(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function V(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function G(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===H.indexOf(n))return null;var r=V(F(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||M;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(R.a)(t)){var o=e.theme.breakpoints||M;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(A,{})}G.propTypes={},G.filterProps=H;function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=U({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var $=n(56),K=n(280);function Z(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,s=void 0===r?{}:r,l=e.palette,u=void 0===l?{}:l,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),g=E(u),m=Object(a.a)(n),v=q(f),b=Object(i.a)({breakpoints:m,direction:"ltr",mixins:c(m,v,s),overrides:{},palette:g,props:{},shadows:I,typography:_(g,p),spacing:v,shape:P,transitions:$.a,zIndex:K.a},h),y=arguments.length,w=new Array(y>1?y-1:0),O=1;O<y;O++)w[O-1]=arguments[O];return b=w.reduce((function(e,t){return Object(i.a)(e,t)}),b)}function Y(){return Z.apply(void 0,arguments)}t.b=Z},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(96),n(11),n(4)),s=n(10),c=n(32),l=n(101),u=n(48),f=n(182),d=n(102),p=n(1116),h=n(1052),g=n(1092);function m(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function v(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function b(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function y(e){return"function"==typeof e?e():e}var w=i.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,w=e.anchorOrigin,O=void 0===w?{vertical:"top",horizontal:"left"}:w,E=e.anchorPosition,x=e.anchorReference,S=void 0===x?"anchorEl":x,j=e.children,T=e.classes,_=e.className,C=e.container,I=e.elevation,P=void 0===I?8:I,k=e.getContentAnchorEl,R=e.marginThreshold,A=void 0===R?16:R,D=e.onEnter,M=e.onEntered,N=e.onEntering,L=e.onExit,z=e.onExited,W=e.onExiting,B=e.open,F=e.PaperProps,H=void 0===F?{}:F,U=e.transformOrigin,V=void 0===U?{vertical:"top",horizontal:"left"}:U,G=e.TransitionComponent,q=void 0===G?h.a:G,$=e.transitionDuration,K=void 0===$?"auto":$,Z=e.TransitionProps,Y=void 0===Z?{}:Z,X=Object(o.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Q=i.useRef(),J=i.useCallback((function(e){if("anchorPosition"===S)return E;var t=y(s),n=(t&&1===t.nodeType?t:Object(u.a)(Q.current).body).getBoundingClientRect(),r=0===e?O.vertical:"center";return{top:n.top+m(n,r),left:n.left+v(n,O.horizontal)}}),[s,O.horizontal,O.vertical,E,S]),ee=i.useCallback((function(e){var t=0;if(k&&"anchorEl"===S){var n=k(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[O.vertical,S,k]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:m(e,V.vertical)+t,horizontal:v(e,V.horizontal)}}),[V.horizontal,V.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===S)return{top:null,left:null,transformOrigin:b(r)};var o=J(t),i=o.top-r.vertical,a=o.left-r.horizontal,c=i+n.height,l=a+n.width,u=Object(f.a)(y(s)),d=u.innerHeight-A,p=u.innerWidth-A;if(i<A){var h=i-A;i-=h,r.vertical+=h}else if(c>d){var g=c-d;i-=g,r.vertical+=g}if(a<A){var m=a-A;a-=m,r.horizontal+=m}else if(l>p){var v=l-p;a-=v,r.horizontal+=v}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:b(r)}}),[s,S,J,ee,te,A]),re=i.useCallback((function(){var e=Q.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){Q.current=c.findDOMNode(e)}),[]);i.useEffect((function(){B&&re()})),i.useImperativeHandle(n,(function(){return B?{updatePosition:function(){re()}}:null}),[B,re]),i.useEffect((function(){if(B){var e=Object(l.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[B,re]);var ie=K;"auto"!==K||q.muiSupportAuto||(ie=void 0);var ae=C||(s?Object(u.a)(y(s)).body:void 0);return i.createElement(p.a,Object(r.a)({container:ae,open:B,ref:t,BackdropProps:{invisible:!0},className:Object(a.a)(T.root,_)},X),i.createElement(q,Object(r.a)({appear:!0,in:B,onEnter:D,onEntered:M,onExit:L,onExited:z,onExiting:W,timeout:ie},Y,{onEntering:Object(d.a)((function(e,t){N&&N(e,t),re()}),Y.onEntering)}),i.createElement(g.a,Object(r.a)({elevation:P,ref:oe},H,{className:Object(a.a)(T.paper,H.className)}),j)))})),O=Object(s.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(w),E=n(1097),x=n(89),S=n(52),j={vertical:"top",horizontal:"right"},T={vertical:"top",horizontal:"left"},_=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,l=e.children,u=e.classes,f=e.disableAutoFocusItem,d=void 0!==f&&f,p=e.MenuListProps,h=void 0===p?{}:p,g=e.onClose,m=e.onEntering,v=e.open,b=e.PaperProps,y=void 0===b?{}:b,w=e.PopoverClasses,_=e.transitionDuration,C=void 0===_?"auto":_,I=e.TransitionProps,P=(I=void 0===I?{}:I).onEntering,k=Object(o.a)(I,["onEntering"]),R=e.variant,A=void 0===R?"selectedMenu":R,D=Object(o.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),M=Object(S.a)(),N=s&&!d&&v,L=i.useRef(null),z=i.useRef(null),W=-1;i.Children.map(l,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==A&&e.props.selected||-1===W)&&(W=t))}));var B=i.Children.map(l,(function(e,t){return t===W?i.cloneElement(e,{ref:function(t){z.current=c.findDOMNode(t),Object(x.a)(e.ref,t)}}):e}));return i.createElement(O,Object(r.a)({getContentAnchorEl:function(){return z.current},classes:w,onClose:g,TransitionProps:Object(r.a)({onEntering:function(e,t){L.current&&L.current.adjustStyleForScrollbar(e,M),m&&m(e,t),P&&P(e,t)}},k),anchorOrigin:"rtl"===M.direction?j:T,transformOrigin:"rtl"===M.direction?j:T,PaperProps:Object(r.a)({},y,{classes:Object(r.a)({},y.classes,{root:u.paper})}),open:v,ref:t,transitionDuration:C},D),i.createElement(E.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:L,autoFocus:s&&(-1===W||d),autoFocusItem:N,variant:A},h,{className:Object(a.a)(u.list,h.className)}),B))}));t.a=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(_)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(273);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return De}));var r=n(59),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o,s=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=Object(r.c)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,s=o[a];s&&(o.style=s(e)||{});var c=o[i];if(c)for(var l in c)o.prop(l,c[l](e),r)}}},c=n(1),l="@global",u="@global ",f=function(){function e(e,t,n){for(var o in this.type="global",this.at=l,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.a(Object(c.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),d=function(){function e(e,t,n){this.type="global",this.at=l,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(u.length);this.rule=n.jss.createRule(r,t,Object(c.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),p=/\s*,\s*/g;function h(e,t){for(var n=e.split(p),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var g=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===l)return new f(e,t,n);if("@"===e[0]&&e.substr(0,u.length)===u)return new d(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[l]:null;if(o){for(var i in o)t.addRule(i,o[i],Object(c.a)({},n,{selector:h(i,e.selector)}));delete r[l]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,l.length)===l){var i=h(o.substr(l.length),e.selector);t.addRule(i,r[o],Object(c.a)({},n,{selector:i})),delete r[o]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,b=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var c=r[s];o&&(o+=", "),o+=-1!==c.indexOf("&")?c.replace(v,a):a+" "+c}return o}function n(e,t,n){if(n)return Object(c.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Object(c.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,u=l.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=n(l,u,a),d){var h=t(f,l.selector);s||(s=e(u,i)),h=h.replace(b,s),u.addRule(h,r[f],Object(c.a)({},a,{selector:h}))}else p&&u.addRule(f,{},a).addRule(l.key,r[f],{selector:l.selector});delete r[f]}}return r}}},w=/[A-Z]/g,O=/^ms-/,E={};function x(e){return"-"+e.toLowerCase()}var S=function(e){if(E.hasOwnProperty(e))return E[e];var t=e.replace(w,x);return E[e]=O.test(t)?"-"+t:t};function j(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:S(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(j):t.fallbacks=j(e.fallbacks)),t}var T=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=j(e[t]);return e}return j(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=S(t);return t===r?e:(n.prop(r,e),null)}}},_=r.e&&CSS?CSS.px:"px",C=r.e&&CSS?CSS.ms:"ms",I=r.e&&CSS?CSS.percent:"%";function P(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var k=P({"animation-delay":C,"animation-duration":C,"background-position":_,"background-position-x":_,"background-position-y":_,"background-size":_,border:_,"border-bottom":_,"border-bottom-left-radius":_,"border-bottom-right-radius":_,"border-bottom-width":_,"border-left":_,"border-left-width":_,"border-radius":_,"border-right":_,"border-right-width":_,"border-top":_,"border-top-left-radius":_,"border-top-right-radius":_,"border-top-width":_,"border-width":_,"border-block":_,"border-block-end":_,"border-block-end-width":_,"border-block-start":_,"border-block-start-width":_,"border-block-width":_,"border-inline":_,"border-inline-end":_,"border-inline-end-width":_,"border-inline-start":_,"border-inline-start-width":_,"border-inline-width":_,"border-start-start-radius":_,"border-start-end-radius":_,"border-end-start-radius":_,"border-end-end-radius":_,margin:_,"margin-bottom":_,"margin-left":_,"margin-right":_,"margin-top":_,"margin-block":_,"margin-block-end":_,"margin-block-start":_,"margin-inline":_,"margin-inline-end":_,"margin-inline-start":_,padding:_,"padding-bottom":_,"padding-left":_,"padding-right":_,"padding-top":_,"padding-block":_,"padding-block-end":_,"padding-block-start":_,"padding-inline":_,"padding-inline-end":_,"padding-inline-start":_,"mask-position-x":_,"mask-position-y":_,"mask-size":_,height:_,width:_,"min-height":_,"max-height":_,"min-width":_,"max-width":_,bottom:_,left:_,top:_,right:_,inset:_,"inset-block":_,"inset-block-end":_,"inset-block-start":_,"inset-inline":_,"inset-inline-end":_,"inset-inline-start":_,"box-shadow":_,"text-shadow":_,"column-gap":_,"column-rule":_,"column-rule-width":_,"column-width":_,"font-size":_,"font-size-delta":_,"letter-spacing":_,"text-decoration-thickness":_,"text-indent":_,"text-stroke":_,"text-stroke-width":_,"word-spacing":_,motion:_,"motion-offset":_,outline:_,"outline-offset":_,"outline-width":_,perspective:_,"perspective-origin-x":I,"perspective-origin-y":I,"transform-origin":I,"transform-origin-x":I,"transform-origin-y":I,"transform-origin-z":I,"transition-delay":C,"transition-duration":C,"vertical-align":_,"flex-basis":_,"shape-margin":_,size:_,gap:_,grid:_,"grid-gap":_,"row-gap":_,"grid-row-gap":_,"grid-column-gap":_,"grid-template-rows":_,"grid-template-columns":_,"grid-auto-rows":_,"grid-auto-columns":_,"box-shadow-x":_,"box-shadow-y":_,"box-shadow-blur":_,"box-shadow-spread":_,"font-line-height":_,"text-shadow-x":_,"text-shadow-y":_,"text-shadow-blur":_});function R(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=R(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=R(o,t[o],n);else for(var i in t)t[i]=R(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||k[e];return!a||0===t&&a===_?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var A=function(e){void 0===e&&(e={});var t=P(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=R(r,e[r],t);return e},onChangeValue:function(e,n){return R(n,e,t)}}},D=n(163),M=n(112),N="",L="",z="",W="",B=D.a&&"ontouchstart"in document.documentElement;if(D.a){var F={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},H=document.createElement("p").style;for(var U in F)if(U+"Transform"in H){N=U,L=F[U];break}"Webkit"===N&&"msHyphens"in H&&(N="ms",L=F.ms,W="edge"),"Webkit"===N&&"-apple-trailing-word"in H&&(z="apple")}var V=N,G=L,q=z,$=W,K=B;var Z={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===V?"-webkit-"+e:G+e)}},Y={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===V?G+"print-"+e:e)}},X=/[-\s]+(.)?/g;function Q(e,t){return t?t.toUpperCase():""}function J(e){return e.replace(X,Q)}function ee(e){return J("-"+e)}var te,ne={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===V){var n="mask-image";if(J(n)in t)return e;if(V+ee(n)in t)return G+e}return e}},re={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==q||K?e:G+e)}},oe={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:G+e)}},ie={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:G+e)}},ae={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===V||"ms"===V&&"edge"!==$?G+e:e)}},se={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===V||"ms"===V||"apple"===q?G+e:e)}},ce={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===V?"WebkitColumn"+ee(e)in t&&G+"column-"+e:"Moz"===V&&("page"+ee(e)in t&&"page-"+e))}},le={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===V)return e;var n=e.replace("-inline","");return V+ee(n)in t&&G+n}},ue={supportedProperty:function(e,t){return J(e)in t&&e}},fe={supportedProperty:function(e,t){var n=ee(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:V+n in t?G+e:"Webkit"!==V&&"Webkit"+n in t&&"-webkit-"+e}},de={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===V?""+G+e:e)}},pe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===V?G+"scroll-chaining":e)}},he={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ge={supportedProperty:function(e,t){var n=he[e];return!!n&&(V+ee(n)in t&&G+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),be=function(e){return G+e},ye=[Z,Y,ne,re,oe,ie,ae,se,ce,le,ue,fe,de,pe,ge,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return V+ee(o)in t&&G+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(V+ee(o[0])in t))return!1;return o.map(be)}return!1}}],we=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Oe=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(M.a)(t.noPrefill)),e}),[]),Ee={};if(D.a){te=document.createElement("p");var xe=window.getComputedStyle(document.documentElement,"");for(var Se in xe)isNaN(Se)||(Ee[xe[Se]]=xe[Se]);Oe.forEach((function(e){return delete Ee[e]}))}function je(e,t){if(void 0===t&&(t={}),!te)return e;if(null!=Ee[e])return Ee[e];"transition"!==e&&"transform"!==e||(t[e]=e in te.style);for(var n=0;n<we.length&&(Ee[e]=we[n](e,te.style,t),!Ee[e]);n++);try{te.style[e]=""}catch(e){return!1}return Ee[e]}var Te,_e={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ie=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pe(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?je(t):", "+je(n);return r||(t||n)}function ke(e,t){var n=t;if(!Te||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=_e[r])return _e[r];try{Te.style[e]=n}catch(e){return _e[r]=!1,!1}if(Ce[e])n=n.replace(Ie,Pe);else if(""===Te.style[e]&&("-ms-flex"===(n=G+n)&&(Te.style[e]="-ms-flexbox"),Te.style[e]=n,""===Te.style[e]))return _e[r]=!1,!1;return Te.style[e]="",_e[r]=n,_e[r]}D.a&&(Te=document.createElement("p"));var Re=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=je(n);a&&a!==n&&(i=!0);var s=!1,c=ke(a,Object(r.f)(o));c&&c!==o&&(s=!0),(i||s)&&(i&&delete t[n],t[a||n]=c||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===V?n:"@"+G+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ke(t,Object(r.f)(e))||e}}};var Ae=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function De(){return{plugins:[s(),g(),y(),T(),A(),"undefined"==typeof window?null:Re(),Ae()]}}},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(277),a=n(0),s=(n(11),n(4)),c=n(86),l=n(117),u=n(10),f=n(18),d=n(28),p=n(101);function h(e,t){return parseInt(e[t],10)||0}var g="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},v=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,s=e.rowsMax,c=e.rowsMin,l=e.maxRows,u=e.minRows,f=void 0===u?1:u,v=e.style,b=e.value,y=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=l||s,O=i||c||f,E=a.useRef(null!=b).current,x=a.useRef(null),S=Object(d.a)(t,x),j=a.useRef(null),T=a.useRef(0),_=a.useState({}),C=_[0],I=_[1],P=a.useCallback((function(){var t=x.current,n=window.getComputedStyle(t),r=j.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var c=r.scrollHeight-i,l=s;O&&(l=Math.max(Number(O)*c,l)),w&&(l=Math.min(Number(w)*c,l));var u=(l=Math.max(l,c))+("border-box"===o?i+a:0),f=Math.abs(l-s)<=1;I((function(e){return T.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==f)?(T.current+=1,{overflow:f,outerHeightStyle:u}):e}))}),[w,O,e.placeholder]);a.useEffect((function(){var e=Object(p.a)((function(){T.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),g((function(){P()})),a.useEffect((function(){T.current=0}),[b]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(o.a)({value:b,onChange:function(e){T.current=0,E||P(),n&&n(e)},ref:S,rows:O,style:Object(o.a)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},v)},y)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:j,tabIndex:-1,style:Object(o.a)({},m,v)}))})),b=n(161),y="undefined"==typeof window?a.useEffect:a.useLayoutEffect,w=a.forwardRef((function(e,t){var n=e["aria-describedby"],u=e.autoComplete,p=e.autoFocus,h=e.classes,g=e.className,m=(e.color,e.defaultValue),w=e.disabled,O=e.endAdornment,E=(e.error,e.fullWidth),x=void 0!==E&&E,S=e.id,j=e.inputComponent,T=void 0===j?"input":j,_=e.inputProps,C=void 0===_?{}:_,I=e.inputRef,P=(e.margin,e.multiline),k=void 0!==P&&P,R=e.name,A=e.onBlur,D=e.onChange,M=e.onClick,N=e.onFocus,L=e.onKeyDown,z=e.onKeyUp,W=e.placeholder,B=e.readOnly,F=e.renderSuffix,H=e.rows,U=e.rowsMax,V=e.rowsMin,G=e.maxRows,q=e.minRows,$=e.startAdornment,K=e.type,Z=void 0===K?"text":K,Y=e.value,X=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Q=null!=C.value?C.value:Y,J=a.useRef(null!=Q).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=Object(d.a)(C.ref,te),re=Object(d.a)(I,ne),oe=Object(d.a)(ee,re),ie=a.useState(!1),ae=ie[0],se=ie[1],ce=Object(l.b)();var le=Object(c.a)({props:e,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ce?ce.focused:ae,a.useEffect((function(){!ce&&w&&ae&&(se(!1),A&&A())}),[ce,w,ae,A]);var ue=ce&&ce.onFilled,fe=ce&&ce.onEmpty,de=a.useCallback((function(e){Object(b.b)(e)?ue&&ue():fe&&fe()}),[ue,fe]);y((function(){J&&de({value:Q})}),[Q,de,J]);a.useEffect((function(){de(ee.current)}),[]);var pe=T,he=Object(o.a)({},C,{ref:oe});"string"!=typeof pe?he=Object(o.a)({inputRef:oe,type:Z},he,{ref:null}):k?!H||G||q||U||V?(he=Object(o.a)({minRows:H||q,rowsMax:U,maxRows:G},he),pe=v):pe="textarea":he=Object(o.a)({type:Z},he);return a.useEffect((function(){ce&&ce.setAdornedStart(Boolean($))}),[ce,$]),a.createElement("div",Object(o.a)({className:Object(s.a)(h.root,h["color".concat(Object(f.a)(le.color||"primary"))],g,le.disabled&&h.disabled,le.error&&h.error,x&&h.fullWidth,le.focused&&h.focused,ce&&h.formControl,k&&h.multiline,$&&h.adornedStart,O&&h.adornedEnd,"dense"===le.margin&&h.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),M&&M(e)},ref:t},X),$,a.createElement(l.a.Provider,{value:null},a.createElement(pe,Object(o.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:u,autoFocus:p,defaultValue:m,disabled:le.disabled,id:S,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:R,placeholder:W,readOnly:B,required:le.required,rows:H,value:Q,onKeyDown:L,onKeyUp:z},he,{className:Object(s.a)(h.input,C.className,le.disabled&&h.disabled,k&&h.inputMultiline,le.hiddenLabel&&h.inputHiddenLabel,$&&h.inputAdornedStart,O&&h.inputAdornedEnd,"search"===Z&&h.inputTypeSearch,"dense"===le.margin&&h.inputMarginDense),onBlur:function(e){A&&A(e),C.onBlur&&C.onBlur(e),ce&&ce.onBlur?ce.onBlur(e):se(!1)},onChange:function(e){if(!J){var t=e.target||ee.current;if(null==t)throw new Error(Object(i.a)(1));de({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];C.onChange&&C.onChange.apply(C,[e].concat(r)),D&&D.apply(void 0,[e].concat(r))},onFocus:function(e){le.disabled?e.stopPropagation():(N&&N(e),C.onFocus&&C.onFocus(e),ce&&ce.onFocus?ce.onFocus(e):se(!0))}}))),O,F?F(Object(o.a)({},le,{startAdornment:$})):null)}));t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(o.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(w)},function(e,t,n){"use strict";var r=n(54),o=n(115),i=(n(11),n(0)),a=n.n(i),s=n(32),c=n.n(s),l=!1,u=n(186),f="unmounted",d="exited",p="entering",h="entered",g="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[c.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||l?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(u.a.Provider,{value:null},"function"==typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function v(){}m.contextType=u.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=f,m.EXITED=d,m.ENTERING=p,m.ENTERED=h,m.EXITING=g;t.a=m},,,,,,,,,,,,,,,,,,,,function(e,t,n){n(1047),e.exports=n(1045)},function(e,t,n){"use strict";var r=n(8),o=n(33),i=n(94),a=n(106),s=n(39),c=n(323),l=n(414),u=n(21),f=n(51),d=n(145),p=n(37),h=n(38),g=n(50),m=n(75),v=n(93),b=n(128),y=n(122),w=n(198),O=n(144),E=n(416),x=n(322),S=n(64),j=n(47),T=n(230),_=n(71),C=n(65),I=n(319),P=n(231),k=n(195),R=n(194),A=n(41),D=n(417),M=n(77),N=n(107),L=n(76),z=n(61).forEach,W=P("hidden"),B="Symbol",F=A("toPrimitive"),H=L.set,U=L.getterFor(B),V=Object.prototype,G=o.Symbol,q=i("JSON","stringify"),$=S.f,K=j.f,Z=E.f,Y=T.f,X=I("symbols"),Q=I("op-symbols"),J=I("string-to-symbol-registry"),ee=I("symbol-to-string-registry"),te=I("wks"),ne=o.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,oe=s&&u((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=$(V,t);r&&delete V[t],K(e,t,n),r&&e!==V&&K(V,t,r)}:K,ie=function(e,t){var n=X[e]=y(G.prototype);return H(n,{type:B,tag:e,description:t}),s||(n.description=t),n},ae=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},se=function(e,t,n){e===V&&se(Q,t,n),h(e);var r=v(t,!0);return h(n),f(X,r)?(n.enumerable?(f(e,W)&&e[W][r]&&(e[W][r]=!1),n=y(n,{enumerable:b(0,!1)})):(f(e,W)||K(e,W,b(1,{})),e[W][r]=!0),oe(e,r,n)):K(e,r,n)},ce=function(e,t){h(e);var n=m(t),r=w(n).concat(de(n));return z(r,(function(t){s&&!le.call(n,t)||se(e,t,n[t])})),e},le=function(e){var t=v(e,!0),n=Y.call(this,t);return!(this===V&&f(X,t)&&!f(Q,t))&&(!(n||!f(this,t)||!f(X,t)||f(this,W)&&this[W][t])||n)},ue=function(e,t){var n=m(e),r=v(t,!0);if(n!==V||!f(X,r)||f(Q,r)){var o=$(n,r);return!o||!f(X,r)||f(n,W)&&n[W][r]||(o.enumerable=!0),o}},fe=function(e){var t=Z(m(e)),n=[];return z(t,(function(e){f(X,e)||f(k,e)||n.push(e)})),n},de=function(e){var t=e===V,n=Z(t?Q:m(e)),r=[];return z(n,(function(e){!f(X,e)||t&&!f(V,e)||r.push(X[e])})),r};(c||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function e(n){this===V&&e.call(Q,n),f(this,W)&&f(this[W],t)&&(this[W][t]=!1),oe(this,t,b(1,n))};return s&&re&&oe(V,t,{configurable:!0,set:n}),ie(t,e)},C(G.prototype,"toString",(function(){return U(this).tag})),C(G,"withoutSetter",(function(e){return ie(R(e),e)})),T.f=le,j.f=se,S.f=ue,O.f=E.f=fe,x.f=de,D.f=function(e){return ie(A(e),e)},s&&(K(G.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||C(V,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),z(w(te),(function(e){M(e)})),r({target:B,stat:!0,forced:!c},{for:function(e){var t=String(e);if(f(J,t))return J[t];var n=G(t);return J[t]=n,ee[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(f(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(g(e))}}),q)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var e=G();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,q.apply(null,o)}});G.prototype[F]||_(G.prototype,F,G.prototype.valueOf),N(G,B),k[W]=!0},function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(33),a=n(51),s=n(37),c=n(47).f,l=n(411),u=i.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(f[t]=!0),t};l(d,u);var p=d.prototype=u.prototype;p.constructor=d;var h=p.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=h.call(e);if(a(f,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},function(e,t,n){n(77)("asyncIterator")},function(e,t,n){n(77)("hasInstance")},function(e,t,n){n(77)("isConcatSpreadable")},function(e,t,n){n(77)("iterator")},function(e,t,n){n(77)("match")},function(e,t,n){n(77)("replace")},function(e,t,n){n(77)("search")},function(e,t,n){n(77)("species")},function(e,t,n){n(77)("split")},function(e,t,n){n(77)("toPrimitive")},function(e,t,n){n(77)("toStringTag")},function(e,t,n){n(77)("unscopables")},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(145),a=n(37),s=n(50),c=n(45),l=n(146),u=n(199),f=n(200),d=n(41),p=n(325),h=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),b=f("concat"),y=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!b},{concat:function(e){var t,n,r,o,i,a=s(this),f=u(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t])){if(d+(o=c(i.length))>g)throw TypeError(m);for(n=0;n<o;n++,d++)n in i&&l(f,d,i[n])}else{if(d>=g)throw TypeError(m);l(f,d++,i)}return f.length=d,f}})},function(e,t,n){var r=n(8),o=n(418),i=n(131);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(e,t,n){"use strict";var r=n(8),o=n(61).every,i=n(123),a=n(72),s=i("every"),c=a("every");r({target:"Array",proto:!0,forced:!s||!c},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(8),o=n(326),i=n(131);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){"use strict";var r=n(8),o=n(61).filter,i=n(200),a=n(72),s=i("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),o=n(61).find,i=n(131),a=n(72),s="find",c=!0,l=a(s);s in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},function(e,t,n){"use strict";var r=n(8),o=n(61).findIndex,i=n(131),a=n(72),s="findIndex",c=!0,l=a(s);s in[]&&Array(1).findIndex((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},function(e,t,n){"use strict";var r=n(8),o=n(419),i=n(50),a=n(45),s=n(83),c=n(199);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=c(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})},function(e,t,n){"use strict";var r=n(8),o=n(419),i=n(50),a=n(45),s=n(84),c=n(199);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return s(e),(t=c(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){"use strict";var r=n(8),o=n(420);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){var r=n(8),o=n(421);r({target:"Array",stat:!0,forced:!n(233)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(8),o=n(196).includes,i=n(131);r({target:"Array",proto:!0,forced:!n(72)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){"use strict";var r=n(8),o=n(196).indexOf,i=n(123),a=n(72),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(8)({target:"Array",stat:!0},{isArray:n(145)})},function(e,t,n){"use strict";var r=n(8),o=n(193),i=n(75),a=n(123),s=[].join,c=o!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},function(e,t,n){var r=n(8),o=n(426);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(8),o=n(61).map,i=n(200),a=n(72),s=i("map"),c=a("map");r({target:"Array",proto:!0,forced:!s||!c},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(146);r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(8),o=n(235).left,i=n(123),a=n(72),s=i("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),o=n(235).right,i=n(123),a=n(72),s=i("reduceRight"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),o=n(145),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},function(e,t,n){"use strict";var r=n(8),o=n(37),i=n(145),a=n(129),s=n(45),c=n(75),l=n(146),u=n(41),f=n(200),d=n(72),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,u,f=c(this),d=s(f.length),p=a(e,d),h=a(void 0===t?d:t,d);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[g])&&(n=void 0):n=void 0,n===Array||void 0===n))return m.call(f,p,h);for(r=new(void 0===n?Array:n)(v(h-p,0)),u=0;p<h;p++,u++)p in f&&l(r,u,f[p]);return r.length=u,r}})},function(e,t,n){"use strict";var r=n(8),o=n(61).some,i=n(123),a=n(72),s=i("some"),c=a("some");r({target:"Array",proto:!0,forced:!s||!c},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),o=n(84),i=n(50),a=n(21),s=n(123),c=[],l=c.sort,u=a((function(){c.sort(void 0)})),f=a((function(){c.sort(null)})),d=s("sort");r({target:"Array",proto:!0,forced:u||!f||!d},{sort:function(e){return void 0===e?l.call(i(this)):l.call(i(this),o(e))}})},function(e,t,n){n(167)("Array")},function(e,t,n){"use strict";var r=n(8),o=n(129),i=n(83),a=n(45),s=n(50),c=n(199),l=n(146),u=n(200),f=n(72),d=u("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,u,f,d,p,b=s(this),y=a(b.length),w=o(e,y),O=arguments.length;if(0===O?n=r=0:1===O?(n=0,r=y-w):(n=O-2,r=g(h(i(t),0),y-w)),y+n-r>m)throw TypeError(v);for(u=c(b,r),f=0;f<r;f++)(d=w+f)in b&&l(u,f,b[d]);if(u.length=r,n<r){for(f=w;f<y-r;f++)p=f+n,(d=f+r)in b?b[p]=b[d]:delete b[p];for(f=y;f>y-r+n;f--)delete b[f-1]}else if(n>r)for(f=y-r;f>w;f--)p=f+n-1,(d=f+r-1)in b?b[p]=b[d]:delete b[p];for(f=0;f<n;f++)b[f+w]=arguments[f+2];return b.length=y-r+n,u}})},function(e,t,n){n(131)("flat")},function(e,t,n){n(131)("flatMap")},function(e,t,n){"use strict";var r=n(8),o=n(33),i=n(236),a=n(167),s="ArrayBuffer",c=i.ArrayBuffer;r({global:!0,forced:o.ArrayBuffer!==c},{ArrayBuffer:c}),a(s)},function(e,t){var n=1/0,r=Math.abs,o=Math.pow,i=Math.floor,a=Math.log,s=Math.LN2;e.exports={pack:function(e,t,c){var l,u,f,d=new Array(c),p=8*c-t-1,h=(1<<p)-1,g=h>>1,m=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,b=0;for((e=r(e))!=e||e===n?(u=e!=e?1:0,l=h):(l=i(a(e)/s),e*(f=o(2,-l))<1&&(l--,f*=2),(e+=l+g>=1?m/f:m*o(2,1-g))*f>=2&&(l++,f/=2),l+g>=h?(u=0,l=h):l+g>=1?(u=(e*f-1)*o(2,t),l+=g):(u=e*o(2,g-1)*o(2,t),l=0));t>=8;d[b++]=255&u,u/=256,t-=8);for(l=l<<t|u,p+=t;p>0;d[b++]=255&l,l/=256,p-=8);return d[--b]|=128*v,d},unpack:function(e,t){var r,i=e.length,a=8*i-t-1,s=(1<<a)-1,c=s>>1,l=a-7,u=i-1,f=e[u--],d=127&f;for(f>>=7;l>0;d=256*d+e[u],u--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[u],u--,l-=8);if(0===d)d=1-c;else{if(d===s)return r?NaN:f?-1/0:n;r+=o(2,t),d-=c}return(f?-1:1)*r*o(2,d-t)}}},function(e,t,n){var r=n(8),o=n(42);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(236),a=n(38),s=n(129),c=n(45),l=n(133),u=i.ArrayBuffer,f=i.DataView,d=u.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),i=new(l(this,u))(c(o-r)),p=new f(this),h=new f(i),g=0;r<o;)h.setUint8(g++,p.getUint8(r++));return i}})},function(e,t,n){var r=n(8),o=n(236);r({global:!0,forced:!n(331)},{DataView:o.DataView})},function(e,t,n){n(8)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){var r=n(8),o=n(676);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},function(e,t,n){"use strict";var r=n(21),o=n(332).start,i=Math.abs,a=Date.prototype,s=a.getTime,c=a.toISOString;e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+o(i(t),r?6:4,0)+"-"+o(e.getUTCMonth()+1,2,0)+"-"+o(e.getUTCDate(),2,0)+"T"+o(e.getUTCHours(),2,0)+":"+o(e.getUTCMinutes(),2,0)+":"+o(e.getUTCSeconds(),2,0)+"."+o(n,3,0)+"Z"}:c},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(50),a=n(93);r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(71),o=n(679),i=n(41)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},function(e,t,n){"use strict";var r=n(38),o=n(93);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},function(e,t,n){var r=n(65),o=Date.prototype,i="Invalid Date",a="toString",s=o.toString,c=o.getTime;new Date(NaN)+""!=i&&r(o,a,(function(){var e=c.call(this);return e==e?s.call(this):i}))},function(e,t,n){n(8)({target:"Function",proto:!0},{bind:n(428)})},function(e,t,n){"use strict";var r=n(37),o=n(47),i=n(95),a=n(41)("hasInstance"),s=Function.prototype;a in s||o.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(39),o=n(47).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in i)&&o(i,c,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){var r=n(33);n(107)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(237),o=n(429);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){var r=n(8),o=n(430),i=Math.acosh,a=Math.log,s=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+c:o(e-1+s(e-1)*s(e+1))}})},function(e,t,n){var r=n(8),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):i(t+a(t*t+1)):t}})},function(e,t,n){var r=n(8),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){var r=n(8),o=n(334),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*a(i(e),1/3)}})},function(e,t,n){var r=n(8),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(i(e+.5)*a):32}})},function(e,t,n){var r=n(8),o=n(239),i=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){var r=n(8),o=n(239);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(e,t,n){n(8)({target:"Math",stat:!0},{fround:n(694)})},function(e,t,n){var r=n(334),o=Math.abs,i=Math.pow,a=i(2,-52),s=i(2,-23),c=i(2,127)*(2-s),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=o(e),u=r(e);return i<l?u*(i/l/s+1/a-1/a)*l*s:(n=(t=(1+s/a)*i)-(t-i))>c||n!=n?u*(1/0):u*n}},function(e,t,n){var r=n(8),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,s=0,c=arguments.length,l=0;s<c;)l<(n=i(arguments[s++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*a(o)}})},function(e,t,n){var r=n(8),o=n(21),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(8),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*i}})},function(e,t,n){n(8)({target:"Math",stat:!0},{log1p:n(430)})},function(e,t,n){var r=n(8),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},function(e,t,n){n(8)({target:"Math",stat:!0},{sign:n(334)})},function(e,t,n){var r=n(8),o=n(21),i=n(239),a=Math.abs,s=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(s(e-1)-s(-e-1))*(c/2)}})},function(e,t,n){var r=n(8),o=n(239),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){n(107)(Math,"Math",!0)},function(e,t,n){var r=n(8),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},function(e,t,n){"use strict";var r=n(39),o=n(33),i=n(197),a=n(65),s=n(51),c=n(92),l=n(238),u=n(93),f=n(21),d=n(122),p=n(144).f,h=n(64).f,g=n(47).f,m=n(169).trim,v="Number",b=o.Number,y=b.prototype,w=c(d(y))==v,O=function(e){var t,n,r,o,i,a,s,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=m(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,s=0;s<a;s++)if((c=i.charCodeAt(s))<48||c>o)return NaN;return parseInt(i,r)}return+l};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var E,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(w?f((function(){y.valueOf.call(n)})):c(n)!=v)?l(new b(O(t)),n,x):O(t)},S=r?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;S.length>j;j++)s(b,E=S[j])&&!s(x,E)&&g(x,E,h(b,E));x.prototype=y,y.constructor=x,a(o,v,x)}},function(e,t,n){n(8)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(8)({target:"Number",stat:!0},{isFinite:n(708)})},function(e,t,n){var r=n(33).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(8)({target:"Number",stat:!0},{isInteger:n(431)})},function(e,t,n){n(8)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(8),o=n(431),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){n(8)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(8)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(8),o=n(432);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(e,t,n){var r=n(8),o=n(433);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";var r=n(8),o=n(83),i=n(434),a=n(333),s=n(21),c=1..toFixed,l=Math.floor,u=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)};r({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}))},{toFixed:function(e){var t,n,r,s,c=i(this),f=o(e),d=[0,0,0,0,0,0],p="",h="0",g=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*d[n],d[n]=r%1e7,r=l(r/1e7)},m=function(e){for(var t=6,n=0;--t>=0;)n+=d[t],d[t]=l(n/e),n=n%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==d[e]){var n=String(d[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(p="-",c=-c),c>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*u(2,69,1))-69)<0?c*u(2,-t,1):c/u(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(0,n),r=f;r>=7;)g(1e7,0),r-=7;for(g(u(10,r,1),0),r=t-1;r>=23;)m(1<<23),r-=23;m(1<<r),g(1,1),m(2),h=v()}else g(0,n),g(1<<-t,0),h=v()+a.call("0",f);return h=f>0?p+((s=h.length)<=f?"0."+a.call("0",f-s)+h:h.slice(0,s-f)+"."+h.slice(s-f)):p+h}})},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(434),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(e){return void 0===e?a.call(i(this)):a.call(i(this),e)}})},function(e,t,n){var r=n(8),o=n(435);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){n(8)({target:"Object",stat:!0,sham:!n(39)},{create:n(122)})},function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(241),a=n(50),s=n(84),c=n(47);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){c.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(8),o=n(39);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(324)})},function(e,t,n){var r=n(8),o=n(39);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(47).f})},function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(241),a=n(50),s=n(84),c=n(47);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){c.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(8),o=n(436).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){var r=n(8),o=n(204),i=n(21),a=n(37),s=n(148).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(e){return c&&a(e)?c(s(e)):e}})},function(e,t,n){var r=n(8),o=n(205),i=n(146);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),void 0,!0),t}})},function(e,t,n){var r=n(8),o=n(21),i=n(75),a=n(64).f,s=n(39),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var r=n(8),o=n(39),i=n(320),a=n(75),s=n(64),c=n(146);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),u={},f=0;l.length>f;)void 0!==(n=o(r,t=l[f++]))&&c(u,t,n);return u}})},function(e,t,n){var r=n(8),o=n(21),i=n(416).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){var r=n(8),o=n(21),i=n(50),a=n(95),s=n(330);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){n(8)({target:"Object",stat:!0},{is:n(437)})},function(e,t,n){var r=n(8),o=n(21),i=n(37),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){var r=n(8),o=n(21),i=n(37),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){var r=n(8),o=n(21),i=n(37),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){var r=n(8),o=n(50),i=n(198);r({target:"Object",stat:!0,forced:n(21)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(241),a=n(50),s=n(93),c=n(95),l=n(64).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=l(n,r))return t.get}while(n=c(n))}})},function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(241),a=n(50),s=n(93),c=n(95),l=n(64).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=l(n,r))return t.set}while(n=c(n))}})},function(e,t,n){var r=n(8),o=n(37),i=n(148).onFreeze,a=n(204),s=n(21),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){c(1)})),sham:!a},{preventExtensions:function(e){return c&&o(e)?c(i(e)):e}})},function(e,t,n){var r=n(8),o=n(37),i=n(148).onFreeze,a=n(204),s=n(21),c=Object.seal;r({target:"Object",stat:!0,forced:s((function(){c(1)})),sham:!a},{seal:function(e){return c&&o(e)?c(i(e)):e}})},function(e,t,n){n(8)({target:"Object",stat:!0},{setPrototypeOf:n(147)})},function(e,t,n){var r=n(328),o=n(65),i=n(742);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var r=n(328),o=n(203);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){var r=n(8),o=n(436).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(8),o=n(432);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(e,t,n){var r=n(8),o=n(433);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";var r,o,i,a,s=n(8),c=n(106),l=n(33),u=n(94),f=n(438),d=n(65),p=n(168),h=n(107),g=n(167),m=n(37),v=n(84),b=n(132),y=n(92),w=n(318),O=n(205),E=n(233),x=n(133),S=n(335).set,j=n(440),T=n(441),_=n(747),C=n(442),I=n(748),P=n(76),k=n(197),R=n(41),A=n(325),D=R("species"),M="Promise",N=P.get,L=P.set,z=P.getterFor(M),W=f,B=l.TypeError,F=l.document,H=l.process,U=u("fetch"),V=C.f,G=V,q="process"==y(H),$=!!(F&&F.createEvent&&l.dispatchEvent),K="unhandledrejection",Z=k(M,(function(){if(!(w(W)!==String(W))){if(66===A)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!W.prototype.finally)return!0;if(A>=51&&/native code/.test(W))return!1;var e=W.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[D]=t,!(e.then((function(){}))instanceof t)})),Y=Z||!E((function(e){W.all(e).catch((function(){}))})),X=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;j((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,c,l,u=r[a++],f=i?u.ok:u.fail,d=u.resolve,p=u.reject,h=u.domain;try{f?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===f?s=o:(h&&h.enter(),s=f(o),h&&(h.exit(),l=!0)),s===u.promise?p(B("Promise-chain cycle")):(c=X(s))?c.call(s,d,p):d(s)):p(o)}catch(e){h&&!l&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},J=function(e,t,n){var r,o;$?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):e===K&&_("Unhandled promise rejection",n)},ee=function(e,t){S.call(l,(function(){var n,r=t.value;if(te(t)&&(n=I((function(){q?H.emit("unhandledRejection",r,e):J(K,e,r)})),t.rejection=q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){S.call(l,(function(){q?H.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(e,t,!0))},ie=function e(t,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(t===r)throw B("Promise can't be resolved itself");var i=X(r);i?j((function(){var o={done:!1};try{i.call(r,re(e,t,o,n),re(oe,t,o,n))}catch(e){oe(t,o,e,n)}})):(n.value=r,n.state=1,Q(t,n,!1))}catch(e){oe(t,{done:!1},e,n)}}};Z&&(W=function(e){b(this,W,M),v(e),r.call(this);var t=N(this);try{e(re(ie,this,t),re(oe,this,t))}catch(e){oe(this,t,e)}},(r=function(e){L(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W.prototype,{then:function(e,t){var n=z(this),r=V(x(this,W));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?H.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=N(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},C.f=V=function(e){return e===W||e===i?new o(e):G(e)},c||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new W((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(W,U.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Z},{Promise:W}),h(W,M,!1,!0),g(M),i=u(M),s({target:M,stat:!0,forced:Z},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:c||Z},{resolve:function(e){return T(c&&this===i?W:this,e)}}),s({target:M,stat:!0,forced:Y},{all:function(e){var t=this,n=V(t),r=n.resolve,o=n.reject,i=I((function(){var n=v(t.resolve),i=[],a=0,s=1;O(e,(function(e){var c=a++,l=!1;i.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,o=I((function(){var o=v(t.resolve);O(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){var r=n(33);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(8),o=n(106),i=n(438),a=n(21),s=n(94),c=n(133),l=n(441),u=n(65);r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof i||i.prototype.finally||u(i.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){var r=n(8),o=n(94),i=n(84),a=n(38),s=n(21),c=o("Reflect","apply"),l=Function.apply;r({target:"Reflect",stat:!0,forced:!s((function(){c((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),c?c(e,t,n):l.call(e,t,n)}})},function(e,t,n){var r=n(8),o=n(94),i=n(84),a=n(38),s=n(37),c=n(122),l=n(428),u=n(21),f=o("Reflect","construct"),d=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!u((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var o=n.prototype,u=c(s(o)?o:Object.prototype),h=Function.apply.call(e,u,t);return s(h)?h:u}})},function(e,t,n){var r=n(8),o=n(39),i=n(38),a=n(93),s=n(47);r({target:"Reflect",stat:!0,forced:n(21)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){i(e);var r=a(t,!0);i(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(8),o=n(38),i=n(64).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){var r=n(8),o=n(37),i=n(38),a=n(51),s=n(64),c=n(95);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,u=arguments.length<3?t:arguments[2];return i(t)===u?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):o(l=c(t))?e(l,n,u):void 0}})},function(e,t,n){var r=n(8),o=n(39),i=n(38),a=n(64);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){var r=n(8),o=n(38),i=n(95);r({target:"Reflect",stat:!0,sham:!n(330)},{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){n(8)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){var r=n(8),o=n(38),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){n(8)({target:"Reflect",stat:!0},{ownKeys:n(320)})},function(e,t,n){var r=n(8),o=n(94),i=n(38);r({target:"Reflect",stat:!0,sham:!n(204)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(8),o=n(38),i=n(37),a=n(51),s=n(21),c=n(47),l=n(64),u=n(95),f=n(128);r({target:"Reflect",stat:!0,forced:s((function(){var e=c.f({},"a",{configurable:!0});return!1!==Reflect.set(u(e),"a",1,e)}))},{set:function e(t,n,r){var s,d,p=arguments.length<4?t:arguments[3],h=l.f(o(t),n);if(!h){if(i(d=u(t)))return e(d,n,r,p);h=f(0)}if(a(h,"value")){if(!1===h.writable||!i(p))return!1;if(s=l.f(p,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,c.f(p,n,s)}else c.f(p,n,f(0,r));return!0}return void 0!==h.set&&(h.set.call(p,r),!0)}})},function(e,t,n){var r=n(8),o=n(38),i=n(425),a=n(147);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(39),o=n(33),i=n(197),a=n(238),s=n(47).f,c=n(144).f,l=n(336),u=n(242),f=n(337),d=n(65),p=n(21),h=n(76).set,g=n(167),m=n(41)("match"),v=o.RegExp,b=v.prototype,y=/a/g,w=/a/g,O=new v(y)!==y,E=f.UNSUPPORTED_Y;if(r&&i("RegExp",!O||E||p((function(){return w[m]=!1,v(y)!=y||v(w)==w||"/a/i"!=v(y,"i")})))){for(var x=function(e,t){var n,r=this instanceof x,o=l(e),i=void 0===t;if(!r&&o&&e.constructor===x&&i)return e;O?o&&!i&&(e=e.source):e instanceof x&&(i&&(t=u.call(e)),e=e.source),E&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(O?new v(e,t):v(e,t),r?this:b,x);return E&&n&&h(s,{sticky:n}),s},S=function(e){e in x||s(x,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},j=c(v),T=0;j.length>T;)S(j[T++]);b.constructor=x,x.prototype=b,d(o,"RegExp",x)}g("RegExp")},function(e,t,n){var r=n(39),o=n(47),i=n(242),a=n(337).UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var r=n(65),o=n(38),i=n(21),a=n(242),s="toString",c=RegExp.prototype,l=c.toString,u=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=s;(u||f)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(237),o=n(429);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){"use strict";var r=n(8),o=n(244).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r,o=n(8),i=n(64).f,a=n(45),s=n(338),c=n(70),l=n(339),u=n(106),f="".endsWith,d=Math.min,p=l("endsWith");o({target:"String",proto:!0,forced:!!(u||p||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!p},{endsWith:function(e){var t=String(c(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),o=void 0===n?r:d(a(n),r),i=String(e);return f?f.call(t,i,o):t.slice(o-i.length,o)===i}})},function(e,t,n){var r=n(8),o=n(129),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(8),o=n(338),i=n(70);r({target:"String",proto:!0,forced:!n(339)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(245),o=n(38),i=n(45),a=n(70),s=n(340),c=n(246);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),l=String(this);if(!a.global)return c(a,l);var u=a.unicode;a.lastIndex=0;for(var f,d=[],p=0;null!==(f=c(a,l));){var h=String(f[0]);d[p]=h,""===h&&(a.lastIndex=s(l,i(a.lastIndex),u)),p++}return 0===p?null:d}]}))},function(e,t,n){"use strict";var r=n(8),o=n(332).end;r({target:"String",proto:!0,forced:n(445)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),o=n(332).start;r({target:"String",proto:!0,forced:n(445)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(8),o=n(75),i=n(45);r({target:"String",stat:!0},{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){n(8)({target:"String",proto:!0},{repeat:n(333)})},function(e,t,n){"use strict";var r=n(245),o=n(38),i=n(50),a=n(45),s=n(83),c=n(70),l=n(340),u=n(246),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,b=m?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!m&&v||"string"==typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var c=o(e),p=String(this),h="function"==typeof r;h||(r=String(r));var g=c.global;if(g){var w=c.unicode;c.lastIndex=0}for(var O=[];;){var E=u(c,p);if(null===E)break;if(O.push(E),!g)break;""===String(E[0])&&(c.lastIndex=l(p,a(c.lastIndex),w))}for(var x,S="",j=0,T=0;T<O.length;T++){E=O[T];for(var _=String(E[0]),C=f(d(s(E.index),p.length),0),I=[],P=1;P<E.length;P++)I.push(void 0===(x=E[P])?x:String(x));var k=E.groups;if(h){var R=[_].concat(I,C,p);void 0!==k&&R.push(k);var A=String(r.apply(void 0,R))}else A=y(_,p,C,I,k,r);C>=j&&(S+=p.slice(j,C)+A,j=C+_.length)}return S+p.slice(j)}];function y(e,n,r,o,a,s){var c=r+e.length,l=o.length,u=g;return void 0!==a&&(a=i(a),u=h),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>l){var f=p(u/10);return 0===f?t:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}s=o[u-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var r=n(245),o=n(38),i=n(70),a=n(437),s=n(246);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),c=String(this),l=i.lastIndex;a(l,0)||(i.lastIndex=0);var u=s(i,c);return a(i.lastIndex,l)||(i.lastIndex=l),null===u?-1:u.index}]}))},function(e,t,n){"use strict";var r=n(245),o=n(336),i=n(38),a=n(70),s=n(133),c=n(340),l=n(45),u=n(246),f=n(243),d=n(21),p=[].push,h=Math.min,g=4294967295,m=!d((function(){return!RegExp(g,"y")}));r("split",2,(function(e,t,n){var r;return r="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 r=String(a(this)),i=void 0===n?g:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,c,l,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,d+"g");(s=f.call(m,r))&&!((c=m.lastIndex)>h&&(u.push(r.slice(h,s.index)),s.length>1&&s.index<r.length&&p.apply(u,s.slice(1)),l=s[0].length,h=c,u.length>=i));)m.lastIndex===s.index&&m.lastIndex++;return h===r.length?!l&&m.test("")||u.push(""):u.push(r.slice(h)),u.length>i?u.slice(0,i):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 o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),d=String(this),p=s(f,RegExp),v=f.unicode,b=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),y=new p(m?f:"^(?:"+f.source+")",b),w=void 0===o?g:o>>>0;if(0===w)return[];if(0===d.length)return null===u(y,d)?[d]:[];for(var O=0,E=0,x=[];E<d.length;){y.lastIndex=m?E:0;var S,j=u(y,m?d:d.slice(E));if(null===j||(S=h(l(y.lastIndex+(m?0:E)),d.length))===O)E=c(d,E,v);else{if(x.push(d.slice(O,E)),x.length===w)return x;for(var T=1;T<=j.length-1;T++)if(x.push(j[T]),x.length===w)return x;E=O=S}}return x.push(d.slice(O)),x}]}),!m)},function(e,t,n){"use strict";var r,o=n(8),i=n(64).f,a=n(45),s=n(338),c=n(70),l=n(339),u=n(106),f="".startsWith,d=Math.min,p=l("startsWith");o({target:"String",proto:!0,forced:!!(u||p||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=String(c(this));s(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(8),o=n(169).trim;r({target:"String",proto:!0,forced:n(341)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(8),o=n(169).end,i=n(341)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var r=n(8),o=n(169).start,i=n(341)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("big")},{big:function(){return o(this,"big","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("blink")},{blink:function(){return o(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("bold")},{bold:function(){return o(this,"b","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("italics")},{italics:function(){return o(this,"i","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("small")},{small:function(){return o(this,"small","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("strike")},{strike:function(){return o(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("sub")},{sub:function(){return o(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"String",proto:!0,forced:n(79)("sup")},{sup:function(){return o(this,"sup","","")}})},function(e,t,n){n(124)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(83);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){n(124)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(124)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(124)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(124)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(124)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(124)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){n(124)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(124)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(42),o=n(418),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=n(61).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=n(326),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(42),o=n(61).filter,i=n(133),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",(function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=i(this,this.constructor),r=0,c=t.length,l=new(s(n))(c);c>r;)l[r]=t[r++];return l}))},function(e,t,n){"use strict";var r=n(42),o=n(61).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=n(61).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=n(61).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(342);(0,n(42).exportTypedArrayStaticMethod)("from",n(447),r)},function(e,t,n){"use strict";var r=n(42),o=n(196).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=n(196).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(33),o=n(42),i=n(234),a=n(41)("iterator"),s=r.Uint8Array,c=i.values,l=i.keys,u=i.entries,f=o.aTypedArray,d=o.exportTypedArrayMethod,p=s&&s.prototype[a],h=!!p&&("values"==p.name||null==p.name),g=function(){return c.call(f(this))};d("entries",(function(){return u.call(f(this))})),d("keys",(function(){return l.call(f(this))})),d("values",g,!h),d(a,g,!h)},function(e,t,n){"use strict";var r=n(42),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},function(e,t,n){"use strict";var r=n(42),o=n(426),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(42),o=n(61).map,i=n(133),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var r=n(42),o=n(342),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},function(e,t,n){"use strict";var r=n(42),o=n(235).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=n(235).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},function(e,t,n){"use strict";var r=n(42),o=n(45),i=n(446),a=n(50),s=n(21),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){c(this);var t=i(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(e),s=o(r.length),l=0;if(s+t>n)throw RangeError("Wrong length");for(;l<s;)this[t+l]=r[l++]}),s((function(){new Int8Array(1).set({})})))},function(e,t,n){"use strict";var r=n(42),o=n(133),i=n(21),a=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,l=[].slice;c("slice",(function(e,t){for(var n=l.call(a(this),e,t),r=o(this,this.constructor),i=0,c=n.length,u=new(s(r))(c);c>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(42),o=n(61).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(42),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},function(e,t,n){"use strict";var r=n(42),o=n(45),i=n(129),a=n(133),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,c=i(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-c))}))},function(e,t,n){"use strict";var r=n(33),o=n(42),i=n(21),a=r.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,f=!!a&&i((function(){l.call(new a(1))}));c("toLocaleString",(function(){return l.apply(f?u.call(s(this)):s(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(42).exportTypedArrayMethod,o=n(21),i=n(33).Uint8Array,a=i&&i.prototype||{},s=[].toString,c=[].join;o((function(){s.call({})}))&&(s=function(){return c.call(this)});var l=a.toString!=s;r("toString",s,l)},function(e,t,n){"use strict";var r,o=n(33),i=n(168),a=n(148),s=n(237),c=n(448),l=n(37),u=n(76).enforce,f=n(410),d=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",h,c);if(f&&d){r=c.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,v=m.delete,b=m.has,y=m.get,w=m.set;i(m,{delete:function(e){if(l(e)&&!p(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.delete(e)}return v.call(this,e)},has:function(e){if(l(e)&&!p(e)){var t=u(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(l(e)&&!p(e)){var t=u(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!p(e)){var n=u(this);n.frozen||(n.frozen=new r),b.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(237)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(448))},function(e,t,n){var r=n(33),o=n(449),i=n(420),a=n(71);for(var s in o){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==i)try{a(l,"forEach",i)}catch(e){l.forEach=i}}},function(e,t,n){var r=n(33),o=n(449),i=n(234),a=n(71),s=n(41),c=s("iterator"),l=s("toStringTag"),u=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[c]!==u)try{a(p,c,u)}catch(e){p[c]=u}if(p[l]||a(p,l,f),o[f])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(e){p[h]=i[h]}}}},function(e,t,n){var r=n(8),o=n(33),i=n(335);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){var r=n(8),o=n(33),i=n(440),a=n(92),s=o.process,c="process"==a(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=c&&s.domain;i(t?t.bind(e):e)}})},function(e,t,n){var r=n(8),o=n(33),i=n(232),a=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},function(e,t,n){"use strict";n(444);var r,o=n(8),i=n(39),a=n(450),s=n(33),c=n(324),l=n(65),u=n(132),f=n(51),d=n(435),p=n(421),h=n(244).codeAt,g=n(839),m=n(107),v=n(451),b=n(76),y=s.URL,w=v.URLSearchParams,O=v.getState,E=b.set,x=b.getterFor("URL"),S=Math.floor,j=Math.pow,T="Invalid scheme",_="Invalid host",C="Invalid port",I=/[A-Za-z]/,P=/[\d+\-.A-Za-z]/,k=/\d/,R=/^(0x|0X)/,A=/^[0-7]+$/,D=/^\d+$/,M=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,L=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,W=/[\u0009\u000A\u000D]/g,B=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return _;if(!(n=H(t.slice(1,-1))))return _;e.host=n}else if(Y(e)){if(t=g(t),N.test(t))return _;if(null===(n=F(t)))return _;e.host=n}else{if(L.test(t))return _;for(n="",r=p(t),o=0;o<r.length;o++)n+=K(r[o],V);e.host=n}},F=function(e){var t,n,r,o,i,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=R.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?D:8==i?A:M).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=j(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*j(256,3-r);return s},H=function(e){var t,n,r,o,i,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=n=0;n<4&&M.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,l>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!k.test(d()))return;for(;k.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},U=function(e){var t,n,r,o;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="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},V={},G=d({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},G,{"#":1,"?":1,"{":1,"}":1}),$=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(Z,e.scheme)},X=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},J=function(e,t){var n;return 2==e.length&&I.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&J(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&J(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},se={},ce={},le={},ue={},fe={},de={},pe={},he={},ge={},me={},ve={},be={},ye={},we={},Oe={},Ee={},xe={},Se=function(e,t,n,o){var i,a,s,c,l,u=n||re,d=0,h="",g=!1,m=!1,v=!1;for(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(z,"")),t=t.replace(W,""),i=p(t);d<=i.length;){switch(a=i[d],u){case re:if(!a||!I.test(a)){if(n)return T;u=ie;continue}h+=a.toLowerCase(),u=oe;break;case oe:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return T;h="",u=ie,d=0;continue}if(n&&(Y(e)!=f(Z,h)||"file"==h&&(X(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Y(e)&&Z[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?u=me:Y(e)&&o&&o.scheme==e.scheme?u=ae:Y(e)?u=ue:"/"==i[d+1]?(u=se,d++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Oe)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return T;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=xe;break}u="file"==o.scheme?me:ce;continue;case ae:if("/"!=a||"/"!=i[d+1]){u=ce;continue}u=fe,d++;break;case se:if("/"==a){u=de;break}u=we;continue;case ce:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&Y(e))u=le;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=Ee;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=we;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=xe}break;case le:if(!Y(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=we;continue}u=de}else u=fe;break;case ue:if(u=fe,"/"!=a||"/"!=h.charAt(d+1))continue;d++;break;case fe:if("/"!=a&&"\\"!=a){u=de;continue}break;case de:if("@"==a){g&&(h="%40"+h),g=!0,s=p(h);for(var b=0;b<s.length;b++){var y=s[b];if(":"!=y||v){var w=K(y,$);v?e.password+=w:e.username+=w}else v=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)){if(g&&""==h)return"Invalid authority";d-=p(h).length+1,h="",u=pe}else h+=a;break;case pe:case he:if(n&&"file"==e.scheme){u=be;continue}if(":"!=a||m){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)){if(Y(e)&&""==h)return _;if(n&&""==h&&(X(e)||null!==e.port))return;if(c=B(e,h))return c;if(h="",u=ye,n)return;continue}"["==a?m=!0:"]"==a&&(m=!1),h+=a}else{if(""==h)return _;if(c=B(e,h))return c;if(h="",u=ge,n==he)return}break;case ge:if(!k.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)||n){if(""!=h){var O=parseInt(h,10);if(O>65535)return C;e.port=Y(e)&&O===Z[e.scheme]?null:O,h=""}if(n)return;u=ye;continue}return C}h+=a;break;case me:if(e.scheme="file","/"==a||"\\"==a)u=ve;else{if(!o||"file"!=o.scheme){u=we;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",u=Ee;else{if("#"!=a){ee(i.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),u=we;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=xe}}break;case ve:if("/"==a||"\\"==a){u=be;break}o&&"file"==o.scheme&&!ee(i.slice(d).join(""))&&(J(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=we;continue;case be:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&J(h))u=we;else if(""==h){if(e.host="",n)return;u=ye}else{if(c=B(e,h))return c;if("localhost"==e.host&&(e.host=""),n)return;h="",u=ye}continue}h+=a;break;case ye:if(Y(e)){if(u=we,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=we,"/"!=a))continue}else e.fragment="",u=xe;else e.query="",u=Ee;break;case we:if(a==r||"/"==a||"\\"==a&&Y(e)||!n&&("?"==a||"#"==a)){if(".."===(l=(l=h).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(te(e),"/"==a||"\\"==a&&Y(e)||e.path.push("")):ne(h)?"/"==a||"\\"==a&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&J(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",u=Ee):"#"==a&&(e.fragment="",u=xe)}else h+=K(a,q);break;case Oe:"?"==a?(e.query="",u=Ee):"#"==a?(e.fragment="",u=xe):a!=r&&(e.path[0]+=K(a,V));break;case Ee:n||"#"!=a?a!=r&&("'"==a&&Y(e)?e.query+="%27":e.query+="#"==a?"%23":K(a,V)):(e.fragment="",u=xe);break;case xe:a!=r&&(e.fragment+=K(a,G))}d++}},je=function(e){var t,n,r=u(this,je,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=E(r,{type:"URL"});if(void 0!==o)if(o instanceof je)t=x(o);else if(n=Se(t={},String(o)))throw TypeError(n);if(n=Se(s,a,null,t))throw TypeError(n);var c=s.searchParams=new w,l=O(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},i||(r.href=_e.call(r),r.origin=Ce.call(r),r.protocol=Ie.call(r),r.username=Pe.call(r),r.password=ke.call(r),r.host=Re.call(r),r.hostname=Ae.call(r),r.port=De.call(r),r.pathname=Me.call(r),r.search=Ne.call(r),r.searchParams=Le.call(r),r.hash=ze.call(r))},Te=je.prototype,_e=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",X(e)&&(l+=n+(r?":"+r:"")+"@"),l+=U(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Ce=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Y(e)?t+"://"+U(e.host)+(null!==n?":"+n:""):"null"},Ie=function(){return x(this).scheme+":"},Pe=function(){return x(this).username},ke=function(){return x(this).password},Re=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?U(t):U(t)+":"+n},Ae=function(){var e=x(this).host;return null===e?"":U(e)},De=function(){var e=x(this).port;return null===e?"":String(e)},Me=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ne=function(){var e=x(this).query;return e?"?"+e:""},Le=function(){return x(this).searchParams},ze=function(){var e=x(this).fragment;return e?"#"+e:""},We=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Te,{href:We(_e,(function(e){var t=x(this),n=String(e),r=Se(t,n);if(r)throw TypeError(r);O(t.searchParams).updateSearchParams(t.query)})),origin:We(Ce),protocol:We(Ie,(function(e){var t=x(this);Se(t,String(e)+":",re)})),username:We(Pe,(function(e){var t=x(this),n=p(String(e));if(!Q(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=K(n[r],$)}})),password:We(ke,(function(e){var t=x(this),n=p(String(e));if(!Q(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=K(n[r],$)}})),host:We(Re,(function(e){var t=x(this);t.cannotBeABaseURL||Se(t,String(e),pe)})),hostname:We(Ae,(function(e){var t=x(this);t.cannotBeABaseURL||Se(t,String(e),he)})),port:We(De,(function(e){var t=x(this);Q(t)||(""==(e=String(e))?t.port=null:Se(t,e,ge))})),pathname:We(Me,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],Se(t,e+"",ye))})),search:We(Ne,(function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Se(t,e,Ee)),O(t.searchParams).updateSearchParams(t.query)})),searchParams:We(Le),hash:We(ze,(function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Se(t,e,xe)):t.fragment=null}))}),l(Te,"toJSON",(function(){return _e.call(this)}),{enumerable:!0}),l(Te,"toString",(function(){return _e.call(this)}),{enumerable:!0}),y){var Be=y.createObjectURL,Fe=y.revokeObjectURL;Be&&l(je,"createObjectURL",(function(e){return Be.apply(y,arguments)})),Fe&&l(je,"revokeObjectURL",(function(e){return Fe.apply(y,arguments)}))}m(je,"URL"),o({global:!0,forced:!a,sham:!i},{URL:je})},function(e,t,n){"use strict";var r=2147483647,o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",s=Math.floor,c=String.fromCharCode,l=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;r+=36)e=s(e/35);return s(r+36*e/(e+38))},f=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);var n,o,i=e.length,f=128,d=0,p=72;for(n=0;n<e.length;n++)(o=e[n])<128&&t.push(c(o));var h=t.length,g=h;for(h&&t.push("-");g<i;){var m=r;for(n=0;n<e.length;n++)(o=e[n])>=f&&o<m&&(m=o);var v=g+1;if(m-f>s((r-d)/v))throw RangeError(a);for(d+=(m-f)*v,f=m,n=0;n<e.length;n++){if((o=e[n])<f&&++d>r)throw RangeError(a);if(o==f){for(var b=d,y=36;;y+=36){var w=y<=p?1:y>=p+26?26:y-p;if(b<w)break;var O=b-w,E=36-w;t.push(c(l(w+O%E))),b=s(O/E)}t.push(c(l(b))),p=u(d,v,g==h),d=0,++g}}++d,++f}return t.join("")};e.exports=function(e){var t,n,r=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)n=a[t],r.push(o.test(n)?"xn--"+f(n):n);return r.join(".")}},function(e,t,n){var r=n(38),o=n(202);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n(8)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){(function(e){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},o=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(e){return!1}})()||function(){var o=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=typeof t;if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var r=this;t.forEach((function(e,t){r.append(t,e)}))}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var o=0;o<t.length;o++){var i=t[o];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+o+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},i=o.prototype;i.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},i.delete=function(e){delete this._entries[e]},i.get=function(e){return e in this._entries?this._entries[e][0]:null},i.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},i.has=function(e){return e in this._entries},i.set=function(e,t){this._entries[e]=[String(t)]},i.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)e.call(t,n[o],r,this)}},i.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},i.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},i.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(i[Symbol.iterator]=i.entries),i.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=o}();var i=e.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,i=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,o=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var i=o.createElement("a");if(i.href=t,r&&(o.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var a=new e.URLSearchParams(this.search),s=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),s&&(c=!1,l.search=a.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,c&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(121))},function(e,t,n){"use strict";var r=n(452),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function O(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=w.prototype;var x=E.prototype=new O;x.constructor=E,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},j=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)j.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var I=/\/+/g,P=[];function k(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function A(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+M(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=t+M(o=e[c],c);s+=A(o,l,n,r)}else if(null===e||"object"!=typeof e?l=null:l="function"==typeof(l=m&&e[m]||e["@@iterator"])?l:null,"function"==typeof l)for(e=l.call(e),c=0;!(o=e.next()).done;)s+=A(o=o.value,l=t+M(o,c++),n,r);else if("object"===o)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function D(e,t,n){return null==e?0:A(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(I,"$&/")+"/"),D(e,L,t=k(t,i,r,o)),R(t)}var W={current:null};function B(){var e=W.current;if(null===e)throw Error(v(321));return e}var F={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;D(e,N,t=k(null,null,t,n)),R(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=l,t.PureComponent=E,t.StrictMode=c,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)j.call(t,u)&&!T.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";var r=n(0),o=n(452),i=n(845);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var c=!1,l=null,u=!1,f=null,d={onError:function(e){c=!0,l=e}};function p(e,t,n,r,o,i,a,u,f){c=!1,l=null,s.apply(d,arguments)}var h=null,g=null,m=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,o,i,s,d,h){if(p.apply(this,arguments),c){if(!c)throw Error(a(198));var g=l;c=!1,l=null,u||(u=!0,f=g)}}(r,t,void 0,e),e.currentTarget=null}var b=null,y={};function w(){if(b)for(var e in y){var t=y[e],n=b.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!E[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in E[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,c=r;if(x.hasOwnProperty(c))throw Error(a(99,c));x[c]=i;var l=i.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&O(l[o],s,c);o=!0}else i.registrationName?(O(i.registrationName,s,c),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function O(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,j[e]=t.eventTypes[n].dependencies}var E=[],x={},S={},j={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!y.hasOwnProperty(t)||y[t]!==r){if(y[t])throw Error(a(102,t));y[t]=r,n=!0}}n&&w()}var _=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),C=null,I=null,P=null;function k(e){if(e=g(e)){if("function"!=typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),C(e.stateNode,e.type,t))}}function R(e){I?P?P.push(e):P=[e]:I=e}function A(){if(I){var e=I,t=P;if(P=I=null,k(e),t)for(e=0;e<t.length;e++)k(t[e])}}function D(e,t){return e(t)}function M(e,t,n,r,o){return e(t,n,r,o)}function N(){}var L=D,z=!1,W=!1;function B(){null===I&&null===P||(N(),A())}function F(e,t,n){if(W)return e(t,n);W=!0;try{return L(e,t,n)}finally{W=!1,B()}}var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,V={},G={};function q(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Z);$[t]=new q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Z);$[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Z);$[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var o=$.hasOwnProperty(t)?$[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!U.call(G,e)||!U.call(V,e)&&(H.test(e)?G[e]=!0:(V[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,ce=J?Symbol.for("react.forward_ref"):60112,le=J?Symbol.for("react.suspense"):60113,ue=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return me(e.type);case pe:return me(e.render);case de:if(e=1===e._status?e._result:null)return me(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=me(e.type);n=null,r&&(n=me(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Q,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=be(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function je(e,t){Se(e,t);var n=be(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ke(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Re(e,t){var n=be(t.value),r=be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ze,We,Be=(We=function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((ze=ze||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return We(e,t)}))}:We);function Fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function He(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},Ve={},Ge={};function qe(e){if(Ve[e])return Ve[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ge)return Ve[e]=n[t];return e}_&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var $e=qe("animationend"),Ke=qe("animationiteration"),Ze=qe("animationstart"),Ye=qe("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nt(o),e;if(i===r)return nt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ct(e){if(null!==e&&(at=ot(at,e)),e=at,at=null,e){if(it(e,st),at)throw Error(a(95));if(u)throw e=f,u=!1,f=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!_)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function pt(e,t,n,r){if(ft.length){var o=ft.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=kn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,c=0;c<E.length;c++){var l=E[c];l&&(l=l.extractEvents(r,t,i,o,a))&&(s=ot(s,l))}ct(s)}}function gt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Zt(t,"scroll",!0);break;case"focus":case"blur":Zt(t,"focus",!0),Zt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Zt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var mt,vt,bt,yt=!1,wt=[],Ot=null,Et=null,xt=null,St=new Map,jt=new Map,Tt=[],_t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Pt(e,t){switch(e){case"focus":case"blur":Ot=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function kt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=It(t,n,r,o,i),null!==t&&(null!==(t=Rn(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Rt(e){var t=kn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){bt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Rn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Dt(e,t,n){At(e)&&n.delete(t)}function Mt(){for(yt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Rn(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==Ot&&At(Ot)&&(Ot=null),null!==Et&&At(Et)&&(Et=null),null!==xt&&At(xt)&&(xt=null),St.forEach(Dt),jt.forEach(Dt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Mt)))}function Lt(e){function t(t){return Nt(t,e)}if(0<wt.length){Nt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Nt(Ot,e),null!==Et&&Nt(Et,e),null!==xt&&Nt(xt,e),St.forEach(t),jt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Tt.shift()}var zt={},Wt=new Map,Bt=new Map,Ft=["abort","abort",$e,"animationEnd",Ke,"animationIteration",Ze,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Wt.set(r,i),zt[o]=i}}Ht("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ht("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ht(Ft,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<Ut.length;Vt++)Bt.set(Ut[Vt],0);var Gt=i.unstable_UserBlockingPriority,qt=i.unstable_runWithPriority,$t=!0;function Kt(e,t){Zt(t,e,!1)}function Zt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){z||N();var o=Qt,i=z;z=!0;try{M(o,e,t,n,r)}finally{(z=i)||B()}}function Xt(e,t,n,r){qt(Gt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){if($t)if(0<wt.length&&-1<_t.indexOf(e))e=It(null,e,t,n,r),wt.push(e);else{var o=Jt(e,t,n,r);if(null===o)Pt(e,r);else if(-1<_t.indexOf(e))e=It(o,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return Ot=kt(Ot,e,t,n,r,o),!0;case"dragenter":return Et=kt(Et,e,t,n,r,o),!0;case"mouseover":return xt=kt(xt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return St.set(i,kt(St.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,kt(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Pt(e,r),e=pt(e,r,null,t);try{F(ht,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=kn(n=lt(r)))){var o=et(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=tt(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=pt(e,r,n,t);try{F(ht,e)}finally{dt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cn=De;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=j[t];for(var r=0;r<t.length;r++)gt(t[r],e,n)}function un(){}function fn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn="$?",bn="$!",yn=null,wn=null;function On(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function En(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var xn="function"==typeof setTimeout?setTimeout:void 0,Sn="function"==typeof clearTimeout?clearTimeout:void 0;function jn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Tn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===bn||n===vn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var _n=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+_n,In="__reactEventHandlers$"+_n,Pn="__reactContainere$"+_n;function kn(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tn(e);null!==e;){if(n=e[Cn])return n;e=Tn(e)}return t}n=(e=n).parentNode}return null}function Rn(e){return!(e=e[Cn]||e[Pn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Dn(e){return e[In]||null}function Mn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Nn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Ln(e,t,n){(t=Nn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function zn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Mn(t);for(t=n.length;0<t--;)Ln(n[t],"captured",e);for(t=0;t<n.length;t++)Ln(n[t],"bubbled",e)}}function Wn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Nn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&Wn(e._targetInst,null,e)}function Fn(e){it(e,zn)}var Hn=null,Un=null,Vn=null;function Gn(){if(Vn)return Vn;var e,t,n=Un,r=n.length,o="value"in Hn?Hn.value:Hn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Vn=o.slice(e,1<t?1-t:void 0)}function qn(){return!0}function $n(){return!1}function Kn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:$n,this.isPropagationStopped=$n,this}function Zn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Yn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xn(e){e.eventPool=[],e.getPooled=Zn,e.release=Yn}o(Kn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:$n,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$n,this._dispatchInstances=this._dispatchListeners=null}}),Kn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Kn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Xn(n),n},Xn(Kn);var Qn=Kn.extend({data:null}),Jn=Kn.extend({data:null}),er=[9,13,27,32],tr=_&&"CompositionEvent"in window,nr=null;_&&"documentMode"in document&&(nr=document.documentMode);var rr=_&&"TextEvent"in window&&!nr,or=_&&(!tr||nr&&8<nr&&11>=nr),ir=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sr=!1;function cr(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function lr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ur=!1;var fr={eventTypes:ar,extractEvents:function(e,t,n,r){var o;if(tr)e:{switch(e){case"compositionstart":var i=ar.compositionStart;break e;case"compositionend":i=ar.compositionEnd;break e;case"compositionupdate":i=ar.compositionUpdate;break e}i=void 0}else ur?cr(e,n)&&(i=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ar.compositionStart);return i?(or&&"ko"!==n.locale&&(ur||i!==ar.compositionStart?i===ar.compositionEnd&&ur&&(o=Gn()):(Un="value"in(Hn=r)?Hn.value:Hn.textContent,ur=!0)),i=Qn.getPooled(i,t,n,r),o?i.data=o:null!==(o=lr(n))&&(i.data=o),Fn(i),o=i):o=null,(e=rr?function(e,t){switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(sr=!0,ir);case"textInput":return(e=t.data)===ir&&sr?null:e;default:return null}}(e,n):function(e,t){if(ur)return"compositionend"===e||!tr&&cr(e,t)?(e=Gn(),Vn=Un=Hn=null,ur=!1,e):null;switch(e){default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return or&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,Fn(t)):t=null,null===o?t:null===t?o:[o,t]}},dr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!dr[e.type]:"textarea"===t}var hr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function gr(e,t,n){return(e=Kn.getPooled(hr.change,e,t,n)).type="change",R(n),Fn(e),e}var mr=null,vr=null;function br(e){ct(e)}function yr(e){if(Oe(An(e)))return e}function wr(e,t){if("change"===e)return t}var Or=!1;function Er(){mr&&(mr.detachEvent("onpropertychange",xr),vr=mr=null)}function xr(e){if("value"===e.propertyName&&yr(vr))if(e=gr(vr,e,lt(e)),z)ct(e);else{z=!0;try{D(br,e)}finally{z=!1,B()}}}function Sr(e,t,n){"focus"===e?(Er(),vr=n,(mr=t).attachEvent("onpropertychange",xr)):"blur"===e&&Er()}function jr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return yr(vr)}function Tr(e,t){if("click"===e)return yr(t)}function _r(e,t){if("input"===e||"change"===e)return yr(t)}_&&(Or=ut("input")&&(!document.documentMode||9<document.documentMode));var Cr={eventTypes:hr,_isInputEventSupported:Or,extractEvents:function(e,t,n,r){var o=t?An(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=wr;else if(pr(o))if(Or)a=_r;else{a=jr;var s=Sr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Tr);if(a&&(a=a(e,t)))return gr(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&_e(o,"number",o.value)}},Ir=Kn.extend({view:null,detail:null}),Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pr[e])&&!!t[e]}function Rr(){return kr}var Ar=0,Dr=0,Mr=!1,Nr=!1,Lr=Ir.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Rr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Mr?"mousemove"===e.type?e.screenX-t:0:(Mr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dr;return Dr=e.screenY,Nr?"mousemove"===e.type?e.screenY-t:0:(Nr=!0,0)}}),zr=Lr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Wr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Wr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?kn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Lr,c=Wr.mouseLeave,l=Wr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=zr,c=Wr.pointerLeave,l=Wr.pointerEnter,u="pointer");if(e=null==a?i:An(a),i=null==t?i:An(t),(c=s.getPooled(c,a,n,r)).type=u+"leave",c.target=e,c.relatedTarget=i,(n=s.getPooled(l,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(l=u,a=0,e=s=r;e;e=Mn(e))a++;for(e=0,t=l;t;t=Mn(t))e++;for(;0<a-e;)s=Mn(s),a--;for(;0<e-a;)l=Mn(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Mn(s),l=Mn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Mn(r);for(r=[];u&&u!==l&&(null===(a=u.alternate)||a!==l);)r.push(u),u=Mn(u);for(u=0;u<s.length;u++)Wn(s[u],"bubbled",c);for(u=r.length;0<u--;)Wn(r[u],"captured",n);return 0==(64&o)?[c]:[c,n]}};var Fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Hr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Fr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Hr.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}var Vr=_&&"documentMode"in document&&11>=document.documentMode,Gr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,$r=null,Kr=null,Zr=!1;function Yr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Zr||null==qr||qr!==fn(n)?null:("selectionStart"in(n=qr)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Kr&&Ur(Kr,n)?null:(Kr=n,(e=Kn.getPooled(Gr.select,$r,e,t)).type="select",e.target=qr,Fn(e),e))}var Xr={eventTypes:Gr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Je(o),i=j.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?An(t):window,e){case"focus":(pr(o)||"true"===o.contentEditable)&&(qr=o,$r=t,Kr=null);break;case"blur":Kr=$r=qr=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Zr=!1,Yr(n,r);case"selectionchange":if(Vr)break;case"keydown":case"keyup":return Yr(n,r)}return null}},Qr=Kn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Kn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eo=Ir.extend({relatedTarget:null});function to(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var no={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ro={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oo=Ir.extend({key:function(e){if(e.key){var t=no[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=to(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ro[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Rr,charCode:function(e){return"keypress"===e.type?to(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?to(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),io=Lr.extend({dataTransfer:null}),ao=Ir.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Rr}),so=Kn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),co=Lr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),lo={eventTypes:zt,extractEvents:function(e,t,n,r){var o=Wt.get(e);if(!o)return null;switch(e){case"keypress":if(0===to(n))return null;case"keydown":case"keyup":e=oo;break;case"blur":case"focus":e=eo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=io;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ao;break;case $e:case Ke:case Ze:e=Qr;break;case Ye:e=so;break;case"scroll":e=Ir;break;case"wheel":e=co;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=zr;break;default:e=Kn}return Fn(t=e.getPooled(o,t,n,r)),t}};if(b)throw Error(a(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Dn,g=Rn,m=An,T({SimpleEventPlugin:lo,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Cr,SelectEventPlugin:Xr,BeforeInputEventPlugin:fr});var uo=[],fo=-1;function po(e){0>fo||(e.current=uo[fo],uo[fo]=null,fo--)}function ho(e,t){fo++,uo[fo]=e.current,e.current=t}var go={},mo={current:go},vo={current:!1},bo=go;function yo(e,t){var n=e.type.contextTypes;if(!n)return go;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wo(e){return null!=(e=e.childContextTypes)}function Oo(){po(vo),po(mo)}function Eo(e,t,n){if(mo.current!==go)throw Error(a(168));ho(mo,t),ho(vo,n)}function xo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,me(t)||"Unknown",i));return o({},n,{},r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||go,bo=mo.current,ho(mo,e),ho(vo,vo.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,bo),r.__reactInternalMemoizedMergedChildContext=e,po(vo),po(mo),ho(mo,e)):po(vo),ho(vo,n)}var To=i.unstable_runWithPriority,_o=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,Io=i.unstable_requestPaint,Po=i.unstable_now,ko=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,Ao=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Mo=i.unstable_LowPriority,No=i.unstable_IdlePriority,Lo={},zo=i.unstable_shouldYield,Wo=void 0!==Io?Io:function(){},Bo=null,Fo=null,Ho=!1,Uo=Po(),Vo=1e4>Uo?Po:function(){return Po()-Uo};function Go(){switch(ko()){case Ro:return 99;case Ao:return 98;case Do:return 97;case Mo:return 96;case No:return 95;default:throw Error(a(332))}}function qo(e){switch(e){case 99:return Ro;case 98:return Ao;case 97:return Do;case 96:return Mo;case 95:return No;default:throw Error(a(332))}}function $o(e,t){return e=qo(e),To(e,t)}function Ko(e,t,n){return e=qo(e),_o(e,t,n)}function Zo(e){return null===Bo?(Bo=[e],Fo=_o(Ro,Xo)):Bo.push(e),Lo}function Yo(){if(null!==Fo){var e=Fo;Fo=null,Co(e)}Xo()}function Xo(){if(!Ho&&null!==Bo){Ho=!0;var e=0;try{var t=Bo;$o(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),_o(Ro,Yo),t}finally{Ho=!1}}}function Qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Jo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ei={current:null},ti=null,ni=null,ri=null;function oi(){ri=ni=ti=null}function ii(e){var t=ei.current;po(ei),e.type._context._currentValue=t}function ai(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function si(e,t){ti=e,ri=ni=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Da=!0),e.firstContext=null)}function ci(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ni){if(null===ti)throw Error(a(308));ni=t,ti.dependencies={expirationTime:0,firstContext:t,responders:null}}else ni=ni.next=t;return e._currentValue}var li=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function di(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.alternate;null!==n&&fi(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function gi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,i.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var l=i.baseState,u=0,f=null,d=null,p=null;if(null!==c)for(var h=c;;){if((s=h.expirationTime)<r){var g={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=g,f=l):p=p.next=g,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),pc(s,h.suspenseConfig);e:{var m=e,v=h;switch(s=t,g=n,v.tag){case 1:if("function"==typeof(m=v.payload)){l=m.call(g,l,s);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(s="function"==typeof(m=v.payload)?m.call(g,l,s):m))break e;l=o({},l,s);break e;case 2:li=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===c){if(null===(s=i.shared.pending))break;h=a.next=s.next,s.next=c,i.baseQueue=a=s,i.shared.pending=null}}null===p?f=l:p.next=d,i.baseState=f,i.baseQueue=p,hc(u),e.expirationTime=u,e.memoizedState=l}}function mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var vi=Y.ReactCurrentBatchConfig,bi=(new r.Component).refs;function yi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var wi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ec(),o=vi.suspense;(o=di(r=tc(r,e,o),o)).payload=t,null!=n&&(o.callback=n),pi(e,o),nc(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ec(),o=vi.suspense;(o=di(r=tc(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),pi(e,o),nc(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ec(),r=vi.suspense;(r=di(n=tc(n,e,r),r)).tag=2,null!=t&&(r.callback=t),pi(e,r),nc(e,n)}};function Oi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ur(n,r)||!Ur(o,i))}function Ei(e,t,n){var r=!1,o=go,i=t.contextType;return"object"==typeof i&&null!==i?i=ci(i):(o=wo(t)?bo:mo.current,i=(r=null!=(r=t.contextTypes))?yo(e,o):go),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wi.enqueueReplaceState(t,t.state,null)}function Si(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=bi,ui(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ci(i):(i=wo(t)?bo:mo.current,o.context=yo(e,i)),gi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(yi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&wi.enqueueReplaceState(o,o.state,null),gi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var ji=Array.isArray;function Ti(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===bi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ci(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ti(e,t,n),r.return=e,r):((r=Mc(n.type,n.key,n.props,null,e.mode,r)).ref=Ti(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Nc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Mc(t.type,t.key,t.props,null,e.mode,n)).ref=Ti(e,null,t),n.return=e,n;case te:return(t=zc(t,e.mode,n)).return=e,t}if(ji(t)||ge(t))return(t=Nc(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(ji(n)||ge(n))return null!==o?null:f(e,t,n,r,null);_i(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ji(r)||ge(r))return f(t,e=e.get(n)||null,r,o,null);_i(t,r)}return null}function g(o,a,s,c){for(var l=null,u=null,f=a,g=a=0,m=null;null!==f&&g<s.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=p(o,f,s[g],c);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,g),null===u?l=v:u.sibling=v,u=v,f=m}if(g===s.length)return n(o,f),l;if(null===f){for(;g<s.length;g++)null!==(f=d(o,s[g],c))&&(a=i(f,a,g),null===u?l=f:u.sibling=f,u=f);return l}for(f=r(o,f);g<s.length;g++)null!==(m=h(f,o,g,s[g],c))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=i(m,a,g),null===u?l=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(o,e)})),l}function m(o,s,c,l){var u=ge(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var f=u=null,g=s,m=s=0,v=null,b=c.next();null!==g&&!b.done;m++,b=c.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=p(o,g,b.value,l);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(o,g),s=i(y,s,m),null===f?u=y:f.sibling=y,f=y,g=v}if(b.done)return n(o,g),u;if(null===g){for(;!b.done;m++,b=c.next())null!==(b=d(o,b.value,l))&&(s=i(b,s,m),null===f?u=b:f.sibling=b,f=b);return u}for(g=r(o,g);!b.done;m++,b=c.next())null!==(b=h(g,o,m,b.value,l))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=i(b,s,m),null===f?u=b:f.sibling=b,f=b);return e&&g.forEach((function(e){return t(o,e)})),u}return function(e,r,i,c){var l="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;l&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,l=r;null!==l;){if(l.key===u){if(7===l.tag){if(i.type===ne){n(e,l.sibling),(r=o(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=o(l,i.props)).ref=Ti(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?((r=Nc(i.props.children,e.mode,c,i.key)).return=e,e=r):((c=Mc(i.type,i.key,i.props,null,e.mode,c)).ref=Ti(e,r,i),c.return=e,e=c)}return s(e);case te:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=zc(i,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Lc(i,e.mode,c)).return=e,e=r),s(e);if(ji(i))return g(e,r,i,c);if(ge(i))return m(e,r,i,c);if(u&&_i(e,i),void 0===i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ii=Ci(!0),Pi=Ci(!1),ki={},Ri={current:ki},Ai={current:ki},Di={current:ki};function Mi(e){if(e===ki)throw Error(a(174));return e}function Ni(e,t){switch(ho(Di,t),ho(Ai,e),ho(Ri,ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}po(Ri),ho(Ri,t)}function Li(){po(Ri),po(Ai),po(Di)}function zi(e){Mi(Di.current);var t=Mi(Ri.current),n=Le(t,e.type);t!==n&&(ho(Ai,e),ho(Ri,n))}function Wi(e){Ai.current===e&&(po(Ri),po(Ai))}var Bi={current:0};function Fi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===vn||n.data===bn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Hi(e,t){return{responder:e,props:t}}var Ui=Y.ReactCurrentDispatcher,Vi=Y.ReactCurrentBatchConfig,Gi=0,qi=null,$i=null,Ki=null,Zi=!1;function Yi(){throw Error(a(321))}function Xi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Qi(e,t,n,r,o,i){if(Gi=i,qi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ui.current=null===e||null===e.memoizedState?Oa:Ea,e=n(r,o),t.expirationTime===Gi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ki=$i=null,t.updateQueue=null,Ui.current=xa,e=n(r,o)}while(t.expirationTime===Gi)}if(Ui.current=wa,t=null!==$i&&null!==$i.next,Gi=0,Ki=$i=qi=null,Zi=!1,t)throw Error(a(300));return e}function Ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?qi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function ea(){if(null===$i){var e=qi.alternate;e=null!==e?e.memoizedState:null}else e=$i.next;var t=null===Ki?qi.memoizedState:Ki.next;if(null!==t)Ki=t,$i=e;else{if(null===e)throw Error(a(310));e={memoizedState:($i=e).memoizedState,baseState:$i.baseState,baseQueue:$i.baseQueue,queue:$i.queue,next:null},null===Ki?qi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function ta(e,t){return"function"==typeof t?t(e):t}function na(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=$i,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var c=s=i=null,l=o;do{var u=l.expirationTime;if(u<Gi){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=f,i=r):c=c.next=f,u>qi.expirationTime&&(qi.expirationTime=u,hc(u))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),pc(u,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==o);null===c?i=r:c.next=s,Fr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ra(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Fr(i,t.memoizedState)||(Da=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function oa(e){var t=Ji();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=ya.bind(null,qi,e),[t.memoizedState,e]}function ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qi.updateQueue)?(t={lastEffect:null},qi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aa(){return ea().memoizedState}function sa(e,t,n,r){var o=Ji();qi.effectTag|=e,o.memoizedState=ia(1|t,n,void 0,void 0===r?null:r)}function ca(e,t,n,r){var o=ea();r=void 0===r?null:r;var i=void 0;if(null!==$i){var a=$i.memoizedState;if(i=a.destroy,null!==r&&Xi(r,a.deps))return void ia(t,n,i,r)}qi.effectTag|=e,o.memoizedState=ia(1|t,n,i,r)}function la(e,t){return sa(516,4,e,t)}function ua(e,t){return ca(516,4,e,t)}function fa(e,t){return ca(4,2,e,t)}function da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function pa(e,t,n){return n=null!=n?n.concat([e]):null,ca(4,2,da.bind(null,t,e),n)}function ha(){}function ga(e,t){return Ji().memoizedState=[e,void 0===t?null:t],e}function ma(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function va(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ba(e,t,n){var r=Go();$o(98>r?98:r,(function(){e(!0)})),$o(97<r?97:r,(function(){var r=Vi.suspense;Vi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Vi.suspense=r}}))}function ya(e,t,n){var r=ec(),o=vi.suspense;o={expirationTime:r=tc(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===qi||null!==i&&i===qi)Zi=!0,o.expirationTime=Gi,qi.expirationTime=Gi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,Fr(s,a))return}catch(e){}nc(e,r)}}var wa={readContext:ci,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},Oa={readContext:ci,useCallback:ga,useContext:ci,useEffect:la,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,sa(4,2,da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sa(4,2,e,t)},useMemo:function(e,t){var n=Ji();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ji();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ya.bind(null,qi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ji().memoizedState=e},useState:oa,useDebugValue:ha,useResponder:Hi,useDeferredValue:function(e,t){var n=oa(e),r=n[0],o=n[1];return la((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(!1),n=t[0];return t=t[1],[ga(ba.bind(null,t,e),[t,e]),n]}},Ea={readContext:ci,useCallback:ma,useContext:ci,useEffect:ua,useImperativeHandle:pa,useLayoutEffect:fa,useMemo:va,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:ha,useResponder:Hi,useDeferredValue:function(e,t){var n=na(ta),r=n[0],o=n[1];return ua((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(ta),n=t[0];return t=t[1],[ma(ba.bind(null,t,e),[t,e]),n]}},xa={readContext:ci,useCallback:ma,useContext:ci,useEffect:ua,useImperativeHandle:pa,useLayoutEffect:fa,useMemo:va,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:ha,useResponder:Hi,useDeferredValue:function(e,t){var n=ra(ta),r=n[0],o=n[1];return ua((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ra(ta),n=t[0];return t=t[1],[ma(ba.bind(null,t,e),[t,e]),n]}},Sa=null,ja=null,Ta=!1;function _a(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ia(e){if(Ta){var t=ja;if(t){var n=t;if(!Ca(e,t)){if(!(t=jn(n.nextSibling))||!Ca(e,t))return e.effectTag=-1025&e.effectTag|2,Ta=!1,void(Sa=e);_a(Sa,n)}Sa=e,ja=jn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ta=!1,Sa=e}}function Pa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Sa=e}function ka(e){if(e!==Sa)return!1;if(!Ta)return Pa(e),Ta=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!En(t,e.memoizedProps))for(t=ja;t;)_a(e,t),t=jn(t.nextSibling);if(Pa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ja=jn(e.nextSibling);break e}t--}else"$"!==n&&n!==bn&&n!==vn||t++}e=e.nextSibling}ja=null}}else ja=Sa?jn(e.stateNode.nextSibling):null;return!0}function Ra(){ja=Sa=null,Ta=!1}var Aa=Y.ReactCurrentOwner,Da=!1;function Ma(e,t,n,r){t.child=null===e?Pi(t,null,n,r):Ii(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;return si(t,o),r=Qi(e,t,n,r,i,o),null===e||Da?(t.effectTag|=1,Ma(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function La(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ac(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mc(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(o,r)&&e.ref===t.ref)?Qa(e,t,i):(t.effectTag|=1,(e=Dc(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(Da=!1,o<i)?(t.expirationTime=e.expirationTime,Qa(e,t,i)):Ba(e,t,n,r,i)}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,o){var i=wo(n)?bo:mo.current;return i=yo(t,i),si(t,o),n=Qi(e,t,n,r,i,o),null===e||Da?(t.effectTag|=1,Ma(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function Fa(e,t,n,r,o){if(wo(n)){var i=!0;So(t)}else i=!1;if(si(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ei(t,n,r),Si(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=ci(l):l=yo(t,l=wo(n)?bo:mo.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&xi(t,a,r,l),li=!1;var d=t.memoizedState;a.state=d,gi(t,r,a,o),c=t.memoizedState,s!==r||d!==c||vo.current||li?("function"==typeof u&&(yi(t,n,u,r),c=t.memoizedState),(s=li||Oi(t,n,s,r,d,c,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,fi(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Jo(t.type,s),c=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=ci(l):l=yo(t,l=wo(n)?bo:mo.current),(f="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&xi(t,a,r,l),li=!1,c=t.memoizedState,a.state=c,gi(t,r,a,o),d=t.memoizedState,s!==r||c!==d||vo.current||li?("function"==typeof u&&(yi(t,n,u,r),d=t.memoizedState),(u=li||Oi(t,n,s,r,c,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){Wa(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&jo(t,n,!1),Qa(e,t,i);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Ii(t,e.child,null,i),t.child=Ii(t,null,s,i)):Ma(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?Eo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Eo(0,t.context,!1),Ni(e,t.containerInfo)}var Va,Ga,qa,$a={dehydrated:null,retryTime:0};function Ka(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Bi.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ho(Bi,1&a),null===e){if(void 0!==i.fallback&&Ia(t),s){if(s=i.fallback,(i=Nc(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Nc(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=$a,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Pi(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=Dc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Dc(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=$a,t.child=n,o}return n=Ii(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Nc(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Nc(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=$a,t.child=i,n}return t.memoizedState=null,t.child=Ii(t,e,i.children,n)}function Za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ai(e.return,t)}function Ya(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Xa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ma(e,t,r.children,n),0!=(2&(r=Bi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ho(Bi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ya(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ya(t,!0,n,null,i,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&hc(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function es(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return wo(t.type)&&Oo(),null;case 3:return Li(),po(vo),po(mo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!ka(t)||(t.effectTag|=4),null;case 5:Wi(t),n=Mi(Di.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ga(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mi(Ri.current),ka(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[Cn]=t,r[In]=s,i){case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Kt(Xe[e],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"form":Kt("reset",r),Kt("submit",r);break;case"details":Kt("toggle",r);break;case"input":xe(r,s),Kt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Kt("invalid",r),ln(n,"onChange");break;case"textarea":ke(r,s),Kt("invalid",r),ln(n,"onChange")}for(var c in an(i,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(c)&&null!=l&&ln(n,c)}switch(i){case"input":we(r),Te(r,s,!0);break;case"textarea":we(r),Ae(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===cn&&(e=Ne(i)),e===cn?"script"===i?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(i,{is:r.is}):(e=c.createElement(i),"select"===i&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,i),e[Cn]=t,e[In]=r,Va(e,t),t.stateNode=e,c=sn(i,r),i){case"iframe":case"object":case"embed":Kt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Xe.length;l++)Kt(Xe[l],e);l=r;break;case"source":Kt("error",e),l=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),l=r;break;case"form":Kt("reset",e),Kt("submit",e),l=r;break;case"details":Kt("toggle",e),l=r;break;case"input":xe(e,r),l=Ee(e,r),Kt("invalid",e),ln(n,"onChange");break;case"option":l=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=o({},r,{value:void 0}),Kt("invalid",e),ln(n,"onChange");break;case"textarea":ke(e,r),l=Pe(e,r),Kt("invalid",e),ln(n,"onChange");break;default:l=r}an(i,l);var u=l;for(s in u)if(u.hasOwnProperty(s)){var f=u[s];"style"===s?rn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Be(e,f):"children"===s?"string"==typeof f?("textarea"!==i||""!==f)&&Fe(e,f):"number"==typeof f&&Fe(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=f&&ln(n,s):null!=f&&X(e,s,f,c))}switch(i){case"input":we(e),Te(e,r,!1);break;case"textarea":we(e),Ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+be(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ie(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=un)}On(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Mi(Di.current),Mi(Ri.current),ka(t)?(n=t.stateNode,r=t.memoizedProps,n[Cn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Cn]=t,t.stateNode=n)}return null;case 13:return po(Bi),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&ka(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Bi.current)?Ms===Cs&&(Ms=Is):(Ms!==Cs&&Ms!==Is||(Ms=Ps),0!==Bs&&null!==Rs&&(Fc(Rs,Ds),Hc(Rs,Bs)))),(n||r)&&(t.effectTag|=4),null);case 4:return Li(),null;case 10:return ii(t),null;case 19:if(po(Bi),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=r.rendering)){if(i)Ja(r,!1);else if(Ms!==Cs||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Fi(s))){for(t.effectTag|=64,Ja(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return ho(Bi,1&Bi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Fi(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ja(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Ja(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=Bi.current,ho(Bi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function ts(e){switch(e.tag){case 1:wo(e.type)&&Oo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Li(),po(vo),po(mo),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Wi(e),null;case 13:return po(Bi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return po(Bi),null;case 4:return Li(),null;case 10:return ii(e),null;default:return null}}function ns(e,t){return{value:e,source:t,stack:ve(t)}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,c,l=t.stateNode;switch(Mi(Ri.current),e=null,n){case"input":a=Ee(l,a),r=Ee(l,r),e=[];break;case"option":a=Ce(l,a),r=Ce(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(l,a),r=Pe(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=un)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(n||(n={}),n[c]=u[c])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=u&&ln(i,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},qa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var rs="function"==typeof WeakSet?WeakSet:Set;function os(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function is(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Tc(e,t)}else t.current=null}function as(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function cs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void cs(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&On(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Lt(n)))))}throw Error(a(163))}function us(e,t,n){switch("function"==typeof Pc&&Pc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;$o(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Tc(o,e)}}e=e.next}while(e!==r)}))}break;case 1:is(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Tc(e,t)}}(t,n);break;case 5:is(t);break;case 4:ms(e,t,n)}}function fs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&fs(t)}function ds(e){return 5===e.tag||3===e.tag||4===e.tag}function ps(e){e:{for(var t=e.return;null!==t;){if(ds(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Fe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ds(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?hs(e,n,t):gs(e,n,t)}function hs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=un));else if(4!==r&&null!==(e=e.child))for(hs(e,t,n),e=e.sibling;null!==e;)hs(e,t,n),e=e.sibling}function gs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function ms(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var c=e,l=i,u=n,f=l;;)if(us(c,f,u),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(c=r,l=i.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(us(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function vs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ss(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[In]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),sn(e,o),t=sn(e,r),o=0;o<i.length;o+=2){var s=i[o],c=i[o+1];"style"===s?rn(n,c):"dangerouslySetInnerHTML"===s?Be(n,c):"children"===s?Fe(n,c):X(n,s,c,t)}switch(e){case"input":je(n,r);break;case"textarea":Re(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ie(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ie(n,!!r.multiple,r.defaultValue,!0):Ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Hs=Vo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=nn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void bs(t);case 19:return void bs(t)}throw Error(a(163))}function bs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new rs),t.forEach((function(t){var r=Cc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ys="function"==typeof WeakMap?WeakMap:Map;function ws(e,t,n){(n=di(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,Gs=r),os(e,t)},n}function Os(e,t,n){(n=di(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return os(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this),os(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Es,xs=Math.ceil,Ss=Y.ReactCurrentDispatcher,js=Y.ReactCurrentOwner,Ts=16,_s=32,Cs=0,Is=3,Ps=4,ks=0,Rs=null,As=null,Ds=0,Ms=Cs,Ns=null,Ls=1073741823,zs=1073741823,Ws=null,Bs=0,Fs=!1,Hs=0,Us=null,Vs=!1,Gs=null,qs=null,$s=!1,Ks=null,Zs=90,Ys=null,Xs=0,Qs=null,Js=0;function ec(){return 0!=(48&ks)?1073741821-(Vo()/10|0):0!==Js?Js:Js=1073741821-(Vo()/10|0)}function tc(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Go();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(ks&Ts))return Ds;if(null!==n)e=Qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qo(e,150,100);break;case 97:case 96:e=Qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Rs&&e===Ds&&--e,e}function nc(e,t){if(50<Xs)throw Xs=0,Qs=null,Error(a(185));if(null!==(e=rc(e,t))){var n=Go();1073741823===t?0!=(8&ks)&&0==(48&ks)?sc(e):(ic(e),0===ks&&Yo()):ic(e),0==(4&ks)||98!==n&&99!==n||(null===Ys?Ys=new Map([[e,t]]):(void 0===(n=Ys.get(e))||n>t)&&Ys.set(e,t))}}function rc(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Rs===o&&(hc(t),Ms===Ps&&Fc(o,Ds)),Hc(o,t)),o}function oc(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Bc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function ic(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Zo(sc.bind(null,e));else{var t=oc(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=ec();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Lo&&Co(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Zo(sc.bind(null,e)):Ko(r,ac.bind(null,e),{timeout:10*(1073741821-t)-Vo()}),e.callbackNode=t}}}function ac(e,t){if(Js=0,t)return Uc(e,t=ec()),ic(e),null;var n=oc(e);if(0!==n){if(t=e.callbackNode,0!=(48&ks))throw Error(a(327));if(xc(),e===Rs&&n===Ds||uc(e,n),null!==As){var r=ks;ks|=Ts;for(var o=dc();;)try{mc();break}catch(t){fc(e,t)}if(oi(),ks=r,Ss.current=o,1===Ms)throw t=Ns,uc(e,n),Fc(e,n),ic(e),t;if(null===As)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ms,Rs=null,r){case Cs:case 1:throw Error(a(345));case 2:Uc(e,2<n?2:n);break;case Is:if(Fc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=yc(o)),1073741823===Ls&&10<(o=Hs+500-Vo())){if(Fs){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,uc(e,n);break}}if(0!==(i=oc(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=xn(wc.bind(null,e),o);break}wc(e);break;case Ps:if(Fc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=yc(o)),Fs&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,uc(e,n);break}if(0!==(o=oc(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==zs?r=10*(1073741821-zs)-Vo():1073741823===Ls?r=0:(r=10*(1073741821-Ls)-5e3,0>(r=(o=Vo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=xn(wc.bind(null,e),r);break}wc(e);break;case 5:if(1073741823!==Ls&&null!==Ws){i=Ls;var s=Ws;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Vo()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Fc(e,n),e.timeoutHandle=xn(wc.bind(null,e),r);break}}wc(e);break;default:throw Error(a(329))}if(ic(e),e.callbackNode===t)return ac.bind(null,e)}}return null}function sc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ks))throw Error(a(327));if(xc(),e===Rs&&t===Ds||uc(e,t),null!==As){var n=ks;ks|=Ts;for(var r=dc();;)try{gc();break}catch(t){fc(e,t)}if(oi(),ks=n,Ss.current=r,1===Ms)throw n=Ns,uc(e,t),Fc(e,t),ic(e),n;if(null!==As)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Rs=null,wc(e),ic(e)}return null}function cc(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&Yo()}}function lc(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&Yo()}}function uc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sn(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:Li(),po(vo),po(mo);break;case 5:Wi(r);break;case 4:Li();break;case 13:case 19:po(Bi);break;case 10:ii(r)}n=n.return}Rs=e,As=Dc(e.current,null),Ds=t,Ms=Cs,Ns=null,zs=Ls=1073741823,Ws=null,Bs=0,Fs=!1}function fc(e,t){for(;;){try{if(oi(),Ui.current=wa,Zi)for(var n=qi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Gi=0,Ki=$i=qi=null,Zi=!1,null===As||null===As.return)return Ms=1,Ns=t,As=null;e:{var o=e,i=As.return,a=As,s=t;if(t=Ds,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Bi.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(d){var g=f.updateQueue;if(null===g){var m=new Set;m.add(c),f.updateQueue=m}else g.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=di(1073741823,null);v.tag=2,pi(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ys,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(a)){s.add(a);var y=_c.bind(null,o,c,a);c.then(y,y)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Ms&&(Ms=2),s=ns(s,a),f=i;do{switch(f.tag){case 3:c=s,f.effectTag|=4096,f.expirationTime=t,hi(f,ws(f,c,t));break e;case 1:c=s;var w=f.type,O=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==O&&"function"==typeof O.componentDidCatch&&(null===qs||!qs.has(O)))){f.effectTag|=4096,f.expirationTime=t,hi(f,Os(f,c,t));break e}}f=f.return}while(null!==f)}As=bc(As)}catch(e){t=e;continue}break}}function dc(){var e=Ss.current;return Ss.current=wa,null===e?wa:e}function pc(e,t){e<Ls&&2<e&&(Ls=e),null!==t&&e<zs&&2<e&&(zs=e,Ws=t)}function hc(e){e>Bs&&(Bs=e)}function gc(){for(;null!==As;)As=vc(As)}function mc(){for(;null!==As&&!zo();)As=vc(As)}function vc(e){var t=Es(e.alternate,e,Ds);return e.memoizedProps=e.pendingProps,null===t&&(t=bc(e)),js.current=null,t}function bc(e){As=e;do{var t=As.alternate;if(e=As.return,0==(2048&As.effectTag)){if(t=es(t,As,Ds),1===Ds||1!==As.childExpirationTime){for(var n=0,r=As.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}As.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=As.firstEffect),null!==As.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=As.firstEffect),e.lastEffect=As.lastEffect),1<As.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=As:e.firstEffect=As,e.lastEffect=As))}else{if(null!==(t=ts(As)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=As.sibling))return t;As=e}while(null!==As);return Ms===Cs&&(Ms=5),null}function yc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function wc(e){var t=Go();return $o(99,Oc.bind(null,e,t)),null}function Oc(e,t){do{xc()}while(null!==Ks);if(0!=(48&ks))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=yc(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Rs&&(As=Rs=null,Ds=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=ks;ks|=_s,js.current=null,yn=$t;var s=gn();if(mn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var d=0,p=-1,h=-1,g=0,m=0,v=s,b=null;t:for(;;){for(var y;v!==c||0!==u&&3!==v.nodeType||(p=d+u),v!==f||0!==l&&3!==v.nodeType||(h=d+l),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)b=v,v=y;for(;;){if(v===s)break t;if(b===c&&++g===u&&(p=d),b===f&&++m===l&&(h=d),null!==(y=v.nextSibling))break;b=(v=b).parentNode}v=y}c=-1===p||-1===h?null:{start:p,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;wn={activeElementDetached:null,focusedElem:s,selectionRange:c},$t=!1,Us=o;do{try{Ec()}catch(e){if(null===Us)throw Error(a(330));Tc(Us,e),Us=Us.nextEffect}}while(null!==Us);Us=o;do{try{for(s=e,c=t;null!==Us;){var w=Us.effectTag;if(16&w&&Fe(Us.stateNode,""),128&w){var O=Us.alternate;if(null!==O){var E=O.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&w){case 2:ps(Us),Us.effectTag&=-3;break;case 6:ps(Us),Us.effectTag&=-3,vs(Us.alternate,Us);break;case 1024:Us.effectTag&=-1025;break;case 1028:Us.effectTag&=-1025,vs(Us.alternate,Us);break;case 4:vs(Us.alternate,Us);break;case 8:ms(s,u=Us,c),fs(u)}Us=Us.nextEffect}}catch(e){if(null===Us)throw Error(a(330));Tc(Us,e),Us=Us.nextEffect}}while(null!==Us);if(E=wn,O=gn(),w=E.focusedElem,c=E.selectionRange,O!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==c&&mn(w)&&(O=c.start,void 0===(E=c.end)&&(E=O),"selectionStart"in w?(w.selectionStart=O,w.selectionEnd=Math.min(E,w.value.length)):(E=(O=w.ownerDocument||document)&&O.defaultView||window).getSelection&&(E=E.getSelection(),u=w.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!E.extend&&s>c&&(u=c,c=s,s=u),u=pn(w,s),f=pn(w,c),u&&f&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==f.node||E.focusOffset!==f.offset)&&((O=O.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),s>c?(E.addRange(O),E.extend(f.node,f.offset)):(O.setEnd(f.node,f.offset),E.addRange(O))))),O=[];for(E=w;E=E.parentNode;)1===E.nodeType&&O.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<O.length;w++)(E=O[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}$t=!!yn,wn=yn=null,e.current=n,Us=o;do{try{for(w=e;null!==Us;){var x=Us.effectTag;if(36&x&&ls(w,Us.alternate,Us),128&x){O=void 0;var S=Us.ref;if(null!==S){var j=Us.stateNode;Us.tag,O=j,"function"==typeof S?S(O):S.current=O}}Us=Us.nextEffect}}catch(e){if(null===Us)throw Error(a(330));Tc(Us,e),Us=Us.nextEffect}}while(null!==Us);Us=null,Wo(),ks=i}else e.current=n;if($s)$s=!1,Ks=e,Zs=t;else for(Us=o;null!==Us;)t=Us.nextEffect,Us.nextEffect=null,Us=t;if(0===(t=e.firstPendingTime)&&(qs=null),1073741823===t?e===Qs?Xs++:(Xs=0,Qs=e):Xs=0,"function"==typeof Ic&&Ic(n.stateNode,r),ic(e),Vs)throw Vs=!1,e=Gs,Gs=null,e;return 0!=(8&ks)||Yo(),null}function Ec(){for(;null!==Us;){var e=Us.effectTag;0!=(256&e)&&as(Us.alternate,Us),0==(512&e)||$s||($s=!0,Ko(97,(function(){return xc(),null}))),Us=Us.nextEffect}}function xc(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,$o(e,Sc)}}function Sc(){if(null===Ks)return!1;var e=Ks;if(Ks=null,0!=(48&ks))throw Error(a(331));var t=ks;for(ks|=_s,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ss(5,n),cs(5,n)}}catch(t){if(null===e)throw Error(a(330));Tc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ks=t,Yo(),!0}function jc(e,t,n){pi(e,t=ws(e,t=ns(n,t),1073741823)),null!==(e=rc(e,1073741823))&&ic(e)}function Tc(e,t){if(3===e.tag)jc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){jc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){pi(n,e=Os(n,e=ns(t,e),1073741823)),null!==(n=rc(n,1073741823))&&ic(n);break}}n=n.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Rs===e&&Ds===n?Ms===Ps||Ms===Is&&1073741823===Ls&&Vo()-Hs<500?uc(e,Ds):Fs=!0:Bc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,ic(e)))}function Cc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=tc(t=ec(),e,null)),null!==(e=rc(e,t))&&ic(e)}Es=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||vo.current)Da=!0;else{if(r<n){switch(Da=!1,t.tag){case 3:Ua(t),Ra();break;case 5:if(zi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wo(t.type)&&So(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,ho(ei,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ka(e,t,n):(ho(Bi,1&Bi.current),null!==(t=Qa(e,t,n))?t.sibling:null);ho(Bi,1&Bi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Xa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),ho(Bi,Bi.current),!r)return null}return Qa(e,t,n)}Da=!1}}else Da=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=yo(t,mo.current),si(t,n),o=Qi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)){var i=!0;So(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ui(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&yi(t,r,s,e),o.updater=wi,t.stateNode=o,o._reactInternalFiber=t,Si(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,Ma(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ac(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=Ba(null,t,o,e,n);break e;case 1:t=Fa(null,t,o,e,n);break e;case 11:t=Na(null,t,o,e,n);break e;case 14:t=La(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Fa(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,fi(e,t),gi(t,r,null,n),(r=t.memoizedState.element)===o)Ra(),t=Qa(e,t,n);else{if((o=t.stateNode.hydrate)&&(ja=jn(t.stateNode.containerInfo.firstChild),Sa=t,o=Ta=!0),o)for(n=Pi(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ma(e,t,r,n),Ra();t=t.child}return t;case 5:return zi(t),null===e&&Ia(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,En(r,o)?s=null:null!==i&&En(r,i)&&(t.effectTag|=16),Wa(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ma(e,t,s,n),t=t.child),t;case 6:return null===e&&Ia(t),null;case 13:return Ka(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ii(t,null,r,n):Ma(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Na(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return Ma(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ma(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var c=t.type._context;if(ho(ei,c._currentValue),c._currentValue=i,null!==s)if(c=s.value,0===(i=Fr(c,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,i):1073741823))){if(s.children===o.children&&!vo.current){t=Qa(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===c.tag&&((u=di(n,null)).tag=2,pi(c,u)),c.expirationTime<n&&(c.expirationTime=n),null!==(u=c.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ai(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Ma(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,si(t,n),r=r(o=ci(o,i.unstable_observedBits)),t.effectTag|=1,Ma(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),La(e,t,o,i=Jo(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wo(r)?(e=!0,So(t)):e=!1,si(t,n),Ei(t,r,o),Si(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return Xa(e,t,n)}throw Error(a(156,t.tag))};var Ic=null,Pc=null;function kc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Rc(e,t,n,r){return new kc(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Rc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ac(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Nc(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=Rc(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case le:return(e=Rc(13,n,t,o)).type=le,e.elementType=le,e.expirationTime=i,e;case ue:return(e=Rc(19,n,t,o)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case fe:s=14;break e;case de:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Rc(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Nc(e,t,n,r){return(e=Rc(7,e,r,t)).expirationTime=n,e}function Lc(e,t,n){return(e=Rc(6,e,null,t)).expirationTime=n,e}function zc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Bc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Fc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Hc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Uc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Vc(e,t,n,r){var o=t.current,i=ec(),s=vi.suspense;i=tc(i,o,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(wo(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(wo(l)){n=xo(n,l,c);break e}}n=c}else n=go;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),nc(o,i),i}function Gc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function $c(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}function Kc(e,t,n){var r=new Wc(e,t,n=null!=n&&!0===n.hydrate),o=Rc(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ui(o),e[Pn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);_t.forEach((function(e){gt(e,t,n)})),Ct.forEach((function(e){gt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Gc(a);s.call(e)}}Vc(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Kc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var c=o;o=function(){var e=Gc(a);c.call(e)}}lc((function(){Vc(t,a,e,o)}))}return Gc(a)}function Xc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(a(200));return Xc(e,t,null,n)}Kc.prototype.render=function(e){Vc(e,this._internalRoot,null,null)},Kc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Vc(null,e,null,(function(){t[Pn]=null}))},mt=function(e){if(13===e.tag){var t=Qo(ec(),150,100);nc(e,t),$c(e,t)}},vt=function(e){13===e.tag&&(nc(e,3),$c(e,3))},bt=function(e){if(13===e.tag){var t=ec();nc(e,t=tc(t,e,null)),$c(e,t)}},C=function(e,t,n){switch(t){case"input":if(je(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Dn(r);if(!o)throw Error(a(90));Oe(r),je(r,o)}}}break;case"textarea":Re(e,n);break;case"select":null!=(t=n.value)&&Ie(e,!!n.multiple,t,!1)}},D=cc,M=function(e,t,n,r,o){var i=ks;ks|=4;try{return $o(98,e.bind(null,t,n,r,o))}finally{0===(ks=i)&&Yo()}},N=function(){0==(49&ks)&&(function(){if(null!==Ys){var e=Ys;Ys=null,e.forEach((function(e,t){Uc(t,e),ic(t)})),Yo()}}(),xc())},L=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&Yo()}};var Jc={Events:[Rn,An,Dn,T,x,Fn,function(e){it(e,Bn)},R,A,Qt,ct,xc,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ic=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Pc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:kn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jc,t.createPortal=Qc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ks))throw Error(a(187));var n=ks;ks|=1;try{return $o(99,e.bind(null,t))}finally{ks=n,Yo()}},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(a(200));return Yc(null,e,t,!0,n)},t.render=function(e,t,n){if(!Zc(t))throw Error(a(200));return Yc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(a(40));return!!e._reactRootContainer&&(lc((function(){Yc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Pn]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_createPortal=function(e,t){return Qc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Yc(e,t,n,!1,r)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(846)},function(e,t,n){"use strict";var r,o,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,u=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(t){throw setTimeout(e,0),t}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(u,0))},o=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var b=!1,y=null,w=-1,O=5,E=0;a=function(){return t.unstable_now()>=E},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):O=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+O;try{y(!0,e)?S.postMessage(null):(b=!1,y=null)}catch(e){throw S.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,S.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){g(w),w=-1}}function j(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],P=[],k=1,R=null,A=3,D=!1,M=!1,N=!1;function L(e){for(var t=T(P);null!==t;){if(null===t.callback)_(P);else{if(!(t.startTime<=e))break;_(P),t.sortIndex=t.expirationTime,j(I,t)}t=T(P)}}function z(e){if(N=!1,L(e),!M)if(null!==T(I))M=!0,r(W);else{var t=T(P);null!==t&&o(z,t.startTime-e)}}function W(e,n){M=!1,N&&(N=!1,i()),D=!0;var r=A;try{for(L(n),R=T(I);null!==R&&(!(R.expirationTime>n)||e&&!a());){var s=R.callback;if(null!==s){R.callback=null,A=R.priorityLevel;var c=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?R.callback=c:R===T(I)&&_(I),L(n)}else _(I);R=T(I)}if(null!==R)var l=!0;else{var u=T(P);null!==u&&o(z,u.startTime-n),l=!1}return l}finally{R=null,A=r,D=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||D||(M=!0,r(W))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return T(I)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),c=s;return e={id:k++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,j(P,e),null===T(I)&&e===T(P)&&(N?i():N=!0,o(z,c-s))):(e.sortIndex=a,j(I,e),M||D||(M=!0,r(W))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=T(I);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";var r=n(848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case m:case l:return e;default:return t}}case i:return t}}}function x(e){return E(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||E(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===s||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===w||e.$$typeof===O||e.$$typeof===b)},t.typeOf=E},function(e,t,n){var r=n(170),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(149);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(134),o=n(80);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(134),o=n(344),i=n(80),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(455)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(252),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(252);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(252);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(252);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(251);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(251),o=n(349),i=n(350);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(156),o=n(869),i=n(57),a=n(456),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,f=l.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r,o=n(870),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(67)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(873),o=n(251),i=n(349);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(874),o=n(875),i=n(876),a=n(877),s=n(878);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(254);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(254),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(254),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(254);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(255);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(255);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(255);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(255);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(208),o=n(459);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(57),o=n(250),i=n(886),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(67),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(249)(e))},function(e,t,n){var r=n(208),o=n(353);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(208),o=n(461);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(152)(n(67),"DataView");e.exports=r},function(e,t,n){var r=n(152)(n(67),"Promise");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(358),o=n(894),i=n(895),a=n(896),s=n(897);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(358);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(170),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(358);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(258),o=n(356),i=n(250);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(900),o=n(207),i=n(345),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(171),o=n(80);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(902),o=n(207),i=n(345),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(171),o=n(80);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(172),o=n(468),i=n(907),a=n(153);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t,n){var r=n(905);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(350);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(170),o=n(149),i=n(62),a=n(173),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},function(e,t,n){var r=n(209),o=n(259);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t,n){var r=n(469);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(170),o=n(247),i=n(62),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(911),o=n(457),i=n(175),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(913),o=n(363),i=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,l,u){var f="function"==typeof n,d=n===Object(n);if(d&&(u=l,l=n,n=void 0),null==l)throw new TypeError;u||(u={});var p=!("cap"in u)||u.cap,h=!("curry"in u)||u.curry,g=!("fixed"in u)||u.fixed,m=!("immutable"in u)||u.immutable,v=!("rearg"in u)||u.rearg,b=f?l:o,y="curry"in u&&u.curry,w="fixed"in u&&u.fixed,O="rearg"in u&&u.rearg,E=f?l.runInContext():void 0,x=f?l:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},S=x.ary,j=x.assign,T=x.clone,_=x.curry,C=x.forEach,I=x.isArray,P=x.isError,k=x.isFunction,R=x.isWeakMap,A=x.keys,D=x.rearg,M=x.toInteger,N=x.toPath,L=A(r.aryMethod),z={castArray:function(e){return function(){var t=arguments[0];return I(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),o=r.length;return p&&"number"==typeof n?(n=n>2?n-2:1,o&&o<=n?r:a(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!k(n))return e(n,Object(t));var r=[];return C(A(t),(function(e){k(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),C(r,(function(e){var t=e[1];k(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:M(t)+1;return _(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return _(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),u)}}};function W(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return V(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(D(a(e,n),t),n)}))}(t,n);var o=!f&&r.iterateeAry[e];if(o)return function(e,t){return V(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function B(e,t,n){if(g&&(w||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?S(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=r&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function F(e,t,n){return v&&n>1&&(O||!r.skipRearg[e])?D(t,r.methodRearg[e]||r.aryRearg[n]):t}function H(e,t){for(var n=-1,r=(t=N(t)).length,o=r-1,i=T(Object(e)),a=i;null!=a&&++n<r;){var s=t[n],c=a[s];null==c||k(c)||P(c)||R(c)||(a[s]=T(n==o?c:Object(c))),a=a[s]}return i}function U(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,a=u;return function(t){var r=f?E:x,s=f?E[i]:n,c=j(j({},a),t);return e(r,o,s,c)}}function V(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=v?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function G(e,t,n){var o,i=r.aliasToReal[e]||e,a=t,l=z[i];return l?a=l(t):m&&(r.mutate.array[i]?a=c(t,s):r.mutate.object[i]?a=c(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(a=c(t,H))),C(L,(function(e){return C(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],s=n&&n.afterRearg;return o=s?B(i,F(i,a,e),e):F(i,B(i,a,e),e),o=function(e,t,n){return y||h&&n>1?_(t,n):t}(0,o=W(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=y?_(o,1):function(){return t.apply(this,arguments)}),o.convert=U(i,t),o.placeholder=t.placeholder=n,o}if(!d)return G(n,l,b);var q=l,$=[];return C(L,(function(e){C(r.aryMethod[e],(function(e){var t=q[r.remap[e]||e];t&&$.push([e,G(e,t,q)])}))})),C(A(q),(function(e){var t=q[e];if("function"==typeof t){for(var n=$.length;n--;)if($[n][0]==e)return;t.convert=U(e,t),$.push([e,t])}})),C($,(function(e){q[e[0]]=e[1]})),q.convert=function(e){return q.runInContext.convert(e)(void 0)},q.placeholder=q,C(A(q),(function(e){C(r.realToAlias[e]||[],(function(t){q[t]=q[e]}))})),q}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,n){e.exports={ary:n(915),assign:n(458),clone:n(485),curry:n(379),forEach:n(351),isArray:n(62),isError:n(935),isFunction:n(156),isWeakMap:n(936),iteratee:n(937),keys:n(346),rearg:n(955),toInteger:n(211),toPath:n(956)}},function(e,t,n){var r=n(364);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},function(e,t,n){var r=n(260),o=n(67);e.exports=function(e,t,n){var i=1&t,a=r(e);return function t(){var r=this&&this!==o&&this instanceof t?a:e;return r.apply(i?n:this,arguments)}}},function(e,t,n){var r=n(361),o=n(260),i=n(476),a=n(479),s=n(484),c=n(368),l=n(67);e.exports=function(e,t,n){var u=o(e);return function o(){for(var f=arguments.length,d=Array(f),p=f,h=s(o);p--;)d[p]=arguments[p];var g=f<3&&d[0]!==h&&d[f-1]!==h?[]:c(d,h);if((f-=g.length)<n)return a(e,t,i,o.placeholder,void 0,d,g,void 0,void 0,n-f);var m=this&&this!==l&&this instanceof o?u:e;return r(m,this,d)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t,n){var r=n(365),o=n(480),i=n(920),a=n(922);e.exports=function(e){var t=i(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=o(n);return!!s&&e===s[0]}},function(e,t,n){var r=n(921),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t){e.exports={}},function(e,t,n){var r=n(365),o=n(481),i=n(366),a=n(62),s=n(80),c=n(923),l=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof o)return e;if(l.call(e,"__wrapped__"))return c(e)}return new o(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},function(e,t,n){var r=n(365),o=n(481),i=n(257);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(351),o=n(367),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,(function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(928),o=n(929),i=n(930);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(257),o=n(206),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),s=r(e);a--;){var c=t[a];e[a]=o(c,n)?s[c]:void 0}return e}},function(e,t,n){var r=n(361),o=n(260),i=n(67);e.exports=function(e,t,n,a){var s=1&t,c=o(e);return function t(){for(var o=-1,l=arguments.length,u=-1,f=a.length,d=Array(f+l),p=this&&this!==i&&this instanceof t?c:e;++u<f;)d[u]=a[u];for(;l--;)d[u++]=arguments[++o];return r(p,s?n:this,d)}}},function(e,t,n){var r=n(477),o=n(478),i=n(368),a="__lodash_placeholder__",s=128,c=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],u=n|l,f=u<131,d=l==s&&8==n||l==s&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!f&&!d)return e;1&l&&(e[2]=t[2],u|=1&n?0:4);var p=t[3];if(p){var h=e[3];e[3]=h?r(h,p,t[4]):p,e[4]=h?i(e[3],a):t[4]}return(p=t[5])&&(h=e[5],e[5]=h?o(h,p,t[6]):p,e[6]=h?i(e[5],a):t[6]),(p=t[7])&&(e[7]=p),l&s&&(e[8]=null==e[8]?t[8]:c(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},function(e,t,n){var r=n(369),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(134),o=n(80),i=n(469);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},function(e,t,n){var r=n(171),o=n(80);e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},function(e,t,n){var r=n(347),o=n(212);e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},function(e,t,n){var r=n(939),o=n(947),i=n(488);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(348),o=n(370);e.exports=function(e,t,n,i){var a=n.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],f=e[u],d=l[1];if(c&&l[2]){if(void 0===f&&!(u in e))return!1}else{var p=new r;if(i)var h=i(f,d,u,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},function(e,t,n){var r=n(348),o=n(486),i=n(944),a=n(946),s=n(171),c=n(62),l=n(248),u=n(343),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var b=c(e),y=c(t),w=b?d:s(e),O=y?d:s(t),E=(w=w==f?p:w)==p,x=(O=O==f?p:O)==p,S=w==O;if(S&&l(e)){if(!l(t))return!1;b=!0,E=!1}if(S&&!E)return v||(v=new r),b||u(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var j=E&&h.call(e,"__wrapped__"),T=x&&h.call(t,"__wrapped__");if(j||T){var _=j?e.value():e,C=T?t.value():t;return v||(v=new r),m(_,C,n,g,v)}}return!!S&&(v||(v=new r),a(e,t,n,g,m,v))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(170),o=n(466),i=n(253),a=n(486),s=n(945),c=n(373),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var g=d.get(e);if(g)return g==t;r|=2,d.set(e,t);var m=a(p(e),p(t),r,l,f,d);return d.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(462),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in t:o.call(t,d)))return!1}var p=s.get(e);if(p&&s.get(t))return p==t;var h=!0;s.set(e,t),s.set(t,e);for(var g=c;++f<u;){var m=e[d=l[f]],v=t[d];if(i)var b=c?i(v,m,d,t,e,s):i(m,v,d,e,t,s);if(!(void 0===b?m===v||a(m,v,n,i,s):b)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(487),o=n(150);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(370),o=n(489),i=n(949),a=n(359),s=n(487),c=n(488),l=n(153);e.exports=function(e,t){return a(e)&&s(t)?c(l(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(950),o=n(951);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(172),o=n(247),i=n(62),a=n(206),s=n(344),c=n(153);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,f=!1;++l<u;){var d=c(t[l]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++l!=u?f:!!(u=null==e?0:e.length)&&s(u)&&a(d,u)&&(i(e)||o(e))}},function(e,t,n){var r=n(953),o=n(954),i=n(359),a=n(153);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(209);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(364),o=n(470),i=o((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=i},function(e,t,n){var r=n(149),o=n(257),i=n(62),a=n(173),s=n(467),c=n(153),l=n(360);e.exports=function(e){return i(e)?r(e,c):a(e)?[e]:o(s(l(e)))}},function(e,t,n){var r=n(209),o=n(374);e.exports=function(e,t,n,i){return o(e,t,n(r(e,t)),i)}},function(e,t,n){var r=n(175);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r=u;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function g(){}function m(){}function v(){}var b={};b[i]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(C([])));w&&w!==n&&r.call(w,i)&&(b=w);var O=v.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return m.prototype=O.constructor=v,v.constructor=m,v[s]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(O),e},e.awrap=function(e){return{__await:e}},E(x.prototype),x.prototype[a]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(O),O[s]="Generator",O[i]=function(){return this},O.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(376),o=n(964),i=n(969),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(963),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(121))},function(e,t,n){var r=n(965),o=n(493),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var r=n(966),o=n(493);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(376),o=n(967),i=n(968),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(376),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(377);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},function(e,t,n){var r=n(973),o=n(150);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(974)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},function(e,t,n){var r=n(151);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){var r=n(377);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},function(e,t,n){"use strict";var r=n(978),o=n(979);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),f=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(980);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var w=c.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var O=a.exec(y);if(O){var E=(O=O[0]).toLowerCase();this.protocol=E,y=y.substr(O.length)}if(n||O||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===y.substr(0,2);!x||O&&m[O]||(y=y.substr(2),this.slashes=!0)}if(!m[O]&&(x||O&&!v[O])){for(var S,j,T=-1,_=0;_<d.length;_++){-1!==(C=y.indexOf(d[_]))&&(-1===T||C<T)&&(T=C)}-1!==(j=-1===T?y.lastIndexOf("@"):y.lastIndexOf("@",T))&&(S=y.slice(0,j),y=y.slice(j+1),this.auth=decodeURIComponent(S)),T=-1;for(_=0;_<f.length;_++){var C;-1!==(C=y.indexOf(f[_]))&&(-1===T||C<T)&&(T=C)}-1===T&&(T=y.length),this.host=y.slice(0,T),y=y.slice(T),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var P=this.hostname.split(/\./),k=(_=0,P.length);_<k;_++){var R=P[_];if(R&&!R.match(p)){for(var A="",D=0,M=R.length;D<M;D++)R.charCodeAt(D)>127?A+="x":A+=R[D];if(!A.match(p)){var N=P.slice(0,_),L=P.slice(_+1),z=R.match(h);z&&(N.push(z[1]),L.unshift(z[2])),L.length&&(y="/"+L.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var W=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+W,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!g[E])for(_=0,k=u.length;_<k;_++){var F=u[_];if(-1!==y.indexOf(F)){var H=encodeURIComponent(F);H===F&&(H=escape(F)),y=y.split(F).join(H)}}var U=y.indexOf("#");-1!==U&&(this.hash=y.substr(U),y=y.slice(0,U));var V=y.indexOf("?");if(-1!==V?(this.search=y.substr(V),this.query=y.substr(V+1),t&&(this.query=b.parse(this.query)),y=y.slice(0,V)):t&&(this.search="",this.query={}),y&&(this.pathname=y),v[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){W=this.pathname||"";var G=this.search||"";this.path=W+G}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var g=n.pathname||"",b=n.search||"";n.path=g+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=w||y||n.host&&e.pathname,E=O,x=n.pathname&&n.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),O=O&&(""===h[0]||""===x[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=x.shift(),(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=x.slice(-1)[0],T=(n.host||e.host||x.length>1)&&("."===j||".."===j)||""===j,_=0,C=x.length;C>=0;C--)"."===(j=x[C])?x.splice(C,1):".."===j?(x.splice(C,1),_++):_&&(x.splice(C,1),_--);if(!O&&!E)for(;_--;_)x.unshift("..");!O||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),T&&"/"!==x.join("/").substr(-1)&&x.push("");var I,P=""===x[0]||x[0]&&"/"===x[0].charAt(0);S&&(n.hostname=n.host=P?"":x.length?x.shift():"",(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift()));return(O=O||n.host&&x.length)&&!P&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var o;!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,l=36,u=/^xn--/,f=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,g=String.fromCharCode;function m(e){throw new RangeError(p[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function b(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function w(e){return v(e,(function(e){var t="";return e>65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=g(e)})).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=l)e=h(e/35);return h(r+36*e/(e+38))}function x(e){var t,n,r,o,i,a,s,u,f,d,p,g=[],v=e.length,b=0,y=128,O=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(i=b,a=1,s=l;o>=v&&m("invalid-input"),((u=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||u>h((c-b)/a))&&m("overflow"),b+=u*a,!(u<(f=s<=O?1:s>=O+26?26:s-O));s+=l)a>h(c/(d=l-f))&&m("overflow"),a*=d;O=E(b-i,t=g.length+1,0==i),h(b/t)>c-y&&m("overflow"),y+=h(b/t),b%=t,g.splice(b++,0,y)}return w(g)}function S(e){var t,n,r,o,i,a,s,u,f,d,p,v,b,w,x,S=[];for(v=(e=y(e)).length,t=128,n=0,i=72,a=0;a<v;++a)(p=e[a])<128&&S.push(g(p));for(r=o=S.length,o&&S.push("-");r<v;){for(s=c,a=0;a<v;++a)(p=e[a])>=t&&p<s&&(s=p);for(s-t>h((c-n)/(b=r+1))&&m("overflow"),n+=(s-t)*b,t=s,a=0;a<v;++a)if((p=e[a])<t&&++n>c&&m("overflow"),p==t){for(u=n,f=l;!(u<(d=f<=i?1:f>=i+26?26:f-i));f+=l)x=u-d,w=l-d,S.push(g(O(d+x%w,0))),u=h(x/w);S.push(g(O(u,0))),i=E(n,b,r==o),n=0,++r}++n,++t}return S.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:w},decode:x,encode:S,toASCII:function(e){return b(e,(function(e){return f.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return b(e,(function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(249)(e),n(121))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(981),t.encode=t.stringify=n(982)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var f,d,p,h,g=e[u].replace(s,"%20"),m=g.indexOf(n);m>=0?(f=g.substr(0,m),d=g.substr(m+1)):(f=g,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(986);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e,t,n,r){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function c(){var c=this,l=Date.now()-a,u=arguments;function f(){a=Date.now(),n.apply(c,u)}function d(){o=void 0}i||(r&&!o&&f(),s(),void 0===r&&l>e?f():!0!==t&&(o=setTimeout(r?d:f,void 0===r?e-l:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),c.cancel=function(){s(),i=!0},c}function o(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}n.r(t),n.d(t,"throttle",(function(){return r})),n.d(t,"debounce",(function(){return o}))},function(e,t,n){"use strict";var r=n(506).forEach,o=n(991),i=n(992),a=n(993),s=n(994),c=n(995),l=n(507),u=n(996),f=n(998),d=n(999),p=n(1e3);function h(e){return Array.isArray(e)||void 0!==e.length}function g(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),b=s({idGenerator:n,stateHandler:f});t=b}var y=e.reporter;y||(y=c(!1===y));var w=v(e,"batchProcessor",u({reporter:y})),O={};O.callOnAdd=!!v(e,"callOnAdd",!0),O.debug=!!v(e,"debug",!1);var E,x=i(t),S=o({stateHandler:f}),j=v(e,"strategy","object"),T=v(e,"important",!1),_={reporter:y,batchProcessor:w,stateHandler:f,idHandler:t,important:T};if("scroll"===j&&(l.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),j="object"):l.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),j="object")),"scroll"===j)E=p(_);else{if("object"!==j)throw new Error("Invalid strategy name: "+j);E=d(_)}var C={};return{listenTo:function(e,n,o){function i(e){var t=x.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){x.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(m(n))n=[n];else{if(!h(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,c=v(e,"callOnAdd",O.callOnAdd),l=v(e,"onReady",(function(){})),u=v(e,"debug",O.debug);r(n,(function(e){f.getState(e)||(f.initState(e),t.set(e));var d=t.get(e);if(u&&y.log("Attaching listener to element",d,e),!S.isDetectable(e))return u&&y.log(d,"Not detectable."),S.isBusy(e)?(u&&y.log(d,"System busy making it detectable"),a(c,e,o),C[d]=C[d]||[],void C[d].push((function(){++s===n.length&&l()}))):(u&&y.log(d,"Making detectable..."),S.markBusy(e,!0),E.makeDetectable({debug:u,important:T},e,(function(e){if(u&&y.log(d,"onElementDetectable"),f.getState(e)){S.markAsDetectable(e),S.markBusy(e,!1),E.addListener(e,i),a(c,e,o);var t=f.getState(e);if(t&&t.startSize){var p=e.offsetWidth,h=e.offsetHeight;t.startSize.width===p&&t.startSize.height===h||i(e)}C[d]&&r(C[d],(function(e){e()}))}else u&&y.log(d,"Element uninstalled before being detectable.");delete C[d],++s===n.length&&l()})));u&&y.log(d,"Already detecable, adding listener."),a(c,e,o),s++})),s===n.length&&l()},removeListener:x.removeListener,removeAllListeners:x.removeAllListeners,uninstall:function(e){if(!e)return y.error("At least one element is required.");if(m(e))e=[e];else{if(!h(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=g(e)}r(e,(function(e){x.removeAllListeners(e),E.uninstall(e),f.cleanState(e)}))},initDocument:function(e){E.initDocument&&E.initDocument(e)}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},function(e,t,n){"use strict";var r=n(997);function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++){(0,o[i])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=o(),c=!1;function l(){for(c=!0;s.size();){var e=s;s=o(),e.process()}c=!1}function u(){var e;e=l,a=setTimeout(e,0)}return{add:function(e,t){!c&&i&&n&&0===s.size()&&u(),s.add(e,t)},force:function(e){c||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?u():l())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if(null==r&&void 0!==n)return n;return r}},function(e,t,n){"use strict";function r(e){return e._erd}e.exports={initState:function(e){return e._erd={},r(e)},getState:r,cleanState:function(e){delete e._erd}}},function(e,t,n){"use strict";var r=n(507);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function a(e){return o(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,r.isIE(8)?s(a):function(a,s){var c=i(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,u=window.getComputedStyle(a),f=a.offsetWidth,d=a.offsetHeight;function p(){function n(){if("static"===u.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,o){var i=r[o];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+o+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",e.important?"important":""))};n(t,a,u,"top"),n(t,a,u,"right"),n(t,a,u,"bottom"),n(t,a,u,"left")}}""!==u.position&&(n(),l=!0);var i=document.createElement("object");i.style.cssText=c,i.tabIndex=-1,i.type="text/html",i.setAttribute("aria-hidden","true"),i.onload=function(){l||n(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},r.isIE()||(i.data="about:blank"),o(a)&&(a.appendChild(i),o(a).object=i,r.isIE()&&(i.data="about:blank"))}o(a).startSize={width:f,height:d},n?n.add(p):p()}(a,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var i=a(e);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=a(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},function(e,t,n){"use strict";var r=n(506).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=500,t=500,n=document.createElement("div");n.style.cssText=l(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var r=document.createElement("div");r.style.cssText=l(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var o=e-r.clientWidth,i=t-r.clientHeight;return document.body.removeChild(r),{width:o,height:i}}(),s="erd_scroll_detection_container";function c(e){!function(e,t,n){function r(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");return o.innerHTML=n,o.id=t,r(o),o}if(!e.getElementById(t)){var o=n+"_animation",i=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",a+="."+i+" { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+o,"animation-name: "+o])+" }\n",a+="@-webkit-keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",r(a+="@keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function l(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function f(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(e,c,f){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(c),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function g(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(h("storeStyle invoked."),o(c)){var e=m();o(c).style=e}else h("Aborting because element has been uninstalled")}function b(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function y(){return 2*a.width+1}function w(){return 2*a.height+1}function O(e){return e+10+y()}function E(e){return e+10+w()}function x(e,t,n){var r=d(e),o=p(e),i=O(t),a=E(n),s=function(e){return 2*e+y()}(t),c=function(e){return 2*e+w()}(n);r.scrollLeft=i,r.scrollTop=a,o.scrollLeft=s,o.scrollTop=c}function S(){var e=o(c).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText=l(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(c).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),c.appendChild(e);var t=function(){o(c).onRendered&&o(c).onRendered()};u(e,"animationstart",t),o(c).onAnimationStart=t}return e}function j(){if(h("Injecting elements"),o(c)){!function(){var n=o(c).style;if("static"===n.position){c.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,c,n,"top"),r(t,c,n,"right"),r(t,c,n,"bottom"),r(t,c,n,"left")}}();var n=o(c).container;n||(n=S());var r,i,f,d,p=a.width,g=a.height,m=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(i=(i=-(1+g))?i+"px":"0"),"right: "+(d=(d=-p)?d+"px":"0"),"bottom: "+(f=(f=-g)?f+"px":"0")])),b=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=l(["position: absolute","left: 0","top: 0"]),O=l(["position: absolute","width: 200%","height: 200%"]),E=document.createElement("div"),x=document.createElement("div"),j=document.createElement("div"),T=document.createElement("div"),_=document.createElement("div"),C=document.createElement("div");E.dir="ltr",E.style.cssText=m,E.className=s,x.className=s,x.style.cssText=v,j.style.cssText=b,T.style.cssText=w,_.style.cssText=y,C.style.cssText=O,j.appendChild(T),_.appendChild(C),x.appendChild(j),x.appendChild(_),E.appendChild(x),n.appendChild(E),u(j,"scroll",I),u(_,"scroll",P),o(c).onExpandScroll=I,o(c).onShrinkScroll=P}else h("Aborting because element has been uninstalled");function I(){o(c).onExpand&&o(c).onExpand()}function P(){o(c).onShrink&&o(c).onShrink()}}function T(){function a(t,n,r){var o=function(e){return d(e).childNodes[0]}(t),i=O(n),a=E(r);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",a+"px",e.important?"important":"")}function s(r){var s=c.offsetWidth,u=c.offsetHeight,f=s!==o(c).lastWidth||u!==o(c).lastHeight;h("Storing current size",s,u),b(c,s,u),n.add(0,(function(){if(f)if(o(c))if(l()){if(e.debug){var n=c.offsetWidth,r=c.offsetHeight;n===s&&r===u||t.warn(i.get(c),"Scroll: Size changed before updating detector elements.")}a(c,s,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){o(c)?l()?x(c,s,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),f&&r&&n.add(2,(function(){o(c)?l()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function l(){return!!o(c).container}function u(){h("notifyListenersIfNeeded invoked");var e=o(c);return void 0===o(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(c).listeners,(function(e){e(c)})))}function f(){h("Scroll detected."),g(c)?h("Scroll event fired while unrendered. Ignoring..."):s(u)}if(h("registerListenersAndPositionElements invoked."),o(c)){o(c).onRendered=function(){if(h("startanimation triggered."),g(c))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=d(c),t=p(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),s(u))}},o(c).onExpand=f,o(c).onShrink=f;var m=o(c).style;a(c,m.width,m.height)}else h("Aborting because element has been uninstalled")}function _(){if(h("finalizeDomMutation invoked."),o(c)){var e=o(c).style;b(c,e.width,e.height),x(c,e.width,e.height)}else h("Aborting because element has been uninstalled")}function C(){f(c)}function I(){var e;h("Installing..."),o(c).listeners=[],e=m(),o(c).startSize={width:e.width,height:e.height},h("Element start size",o(c).startSize),n.add(0,v),n.add(1,j),n.add(2,T),n.add(3,_),n.add(4,C)}f||(f=c,c=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(c)?I():(h("Element is detached"),S(),h("Waiting until element is attached..."),o(c).onRendered=function(){h("Element is now attached"),I()})},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&f(d(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&f(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&f(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:c}}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],f=t[l];if(!1===(o=n?n.call(r,u,f,l):void 0)||void 0===o&&u!==f)return!1}return!0}},function(e,t,n){var r=n(464),o=n(210),i=n(373),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(0)),c={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return o(t,e),t.prototype.render=function(){return s.createElement("div",{className:this.props.className||"",style:i(i({position:"absolute",userSelect:"none"},c[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(s.PureComponent);t.Resizer=l},function(e,t){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var c={create:function(){return new s}};e.exports=function(e,t){var n=t&&t.cache?t.cache:c,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(1009)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(67);e.exports=function(){return r.Date.now()}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5},o=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror"],i=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],a=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"],s="undefined"!=typeof window&&void 0!==window.document?window.document:{},c="fullscreenEnabled"in s&&Object.keys(r)||o[0]in s&&o||i[0]in s&&i||a[0]in s&&a||[];t.default={requestFullscreen:function(e){return e[c[r.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[c[r.requestFullscreen]]},get exitFullscreen(){return s[c[r.exitFullscreen]].bind(s)},addEventListener:function(e,t,n){return s.addEventListener(c[r[e]],t,n)},removeEventListener:function(e,t,n){return s.removeEventListener(c[r[e]],t,n)},get fullscreenEnabled(){return Boolean(s[c[r.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return s[c[r.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return s[("on"+c[r.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return s[("on"+c[r.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return s[("on"+c[r.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return s[("on"+c[r.fullscreenerror]).toLowerCase()]=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(0)),o=i(n(1015));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?p(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;l(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return g(p(n=f(this,(e=d(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=n.props,i=t.text,a=t.onCopy,s=t.children,c=t.options,l=r.default.Children.only(s),u=(0,o.default)(i,c);a&&a(i,u),l&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(e)})),n}var n,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,["text","onCopy","options","children"]),o=r.default.Children.only(t);return r.default.cloneElement(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],i&&u(n.prototype,i),a&&u(n,a),t}(r.default.PureComponent);t.CopyToClipboard=m,g(m,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(1016),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),a()}return u}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";(function(n){function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var o="object"==typeof n&&!0;function i(e,t){if(!e){if(o)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var a=Object.prototype.hasOwnProperty,s=Array.prototype.splice,c=Object.prototype.toString;function l(e){return c.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return f(t).forEach((function(n){a.call(t,n)&&(e[n]=t[n])})),e},f="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=u({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||i(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),i("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var o=e;return f(r).forEach((function(t){if(a.call(n.commands,t)){var i=e===o;o=n.commands[t](r[t],o,r,e),i&&n.isEquals(o,e)&&(o=e)}else{var s="Map"===l(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),c="Map"===l(o)?o.get(t):o[t];n.isEquals(s,c)&&(void 0!==s||a.call(e,t))||(o===e&&(o=d(e)),"Map"===l(o)?o.set(t,s):o[t]=s)}})),o},e}();t.Context=p;var h={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,o){return function(e,t){i(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),b(t.$splice)}(t,n),e.forEach((function(e){b(e),t===o&&e.length&&(t=d(o)),s.apply(t,e)})),t},$set:function(e,t,n){return function(e){i(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){v(e,"$toggle");var n=e.length?d(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return v(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=d(r)),delete t[e])})),t},$add:function(e,t,n,r){return y(t,"$add"),v(e,"$add"),"Map"===l(t)?e.forEach((function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=d(r)),t.set(n,o)})):e.forEach((function(e){t!==r||t.has(e)||(t=d(r)),t.add(e)})),t},$remove:function(e,t,n,r){return y(t,"$remove"),v(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=d(r)),t.delete(e)})),t},$merge:function(e,t,n,o){var a,s;return a=t,i((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)})),i(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+r(a)})),f(e).forEach((function(n){e[n]!==t[n]&&(t===o&&(t=d(o)),t[n]=e[n])})),t},$apply:function(e,t){var n;return i("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."})),e(t)}},g=new p;function m(e,t,n){i(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),v(t[n],n)}function v(e,t){i(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function b(e){i(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var n=l(e);i("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}t.isEquals=g.update.isEquals,t.extend=g.extend,t.default=g.update,t.default.default=e.exports=u(t.default,t)}).call(this,n(1018))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(259),o=n(211);e.exports=function(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:o(t),r(e,t<0?0:t,i)):[]}},function(e,t,n){var r=n(259),o=n(211);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:o(t),r(e,0,t<0?0:t)):[]}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Mosaic=t.MosaicWithoutDragDropContext=void 0;var s=a(n(19)),c=(a(n(1022)),a(n(150)),a(n(1023)),a(n(0))),l=n(155),u=a(n(385)),f=a(n(384)),d=n(1025),p=n(85),h=n(1028),g=n(521),m=n(1034),v=n(159);n(98);function b(e){return null!=e.initialValue}var y=function(e){function t(){var t,n=e.apply(this,arguments)||this;return n.state={currentNode:null,lastInitialValue:null,mosaicId:null!==(t=n.props.mosaicId)&&void 0!==t?t:d.v4()},n.updateRoot=function(e,t){void 0===t&&(t=!1);var r=n.getRoot()||{};n.replaceRoot(v.updateTree(r,e),t)},n.replaceRoot=function(e,t){void 0===t&&(t=!1),n.props.onChange(e),!t&&n.props.onRelease&&n.props.onRelease(e),b(n.props)&&n.setState({currentNode:e})},n.actions={updateTree:n.updateRoot,remove:function(e){0===e.length?n.replaceRoot(null):n.updateRoot([v.createRemoveUpdate(n.getRoot(),e)])},expand:function(e,t){return void 0===t&&(t=70),n.updateRoot([v.createExpandUpdate(e,t)])},getRoot:function(){return n.getRoot()},hide:function(e){return n.updateRoot([v.createHideUpdate(e)])},replaceWith:function(e,t){return n.updateRoot([{path:e,spec:{$set:t}}])}},n.childContext={mosaicActions:n.actions,mosaicId:n.state.mosaicId},n}return o(t,e),t.getDerivedStateFromProps=function(e,t){return e.mosaicId&&(t.mosaicId,e.mosaicId),b(e)&&e.initialValue!==t.lastInitialValue?{lastInitialValue:e.initialValue,currentNode:e.initialValue}:null},t.prototype.render=function(){var e=this.props.className;return c.default.createElement(p.MosaicContext.Provider,{value:this.childContext},c.default.createElement("div",{className:s.default(e,"mosaic mosaic-drop-target")},this.renderTree(),c.default.createElement(m.RootDropTargets,null)))},t.prototype.getRoot=function(){return b(this.props)?this.state.currentNode:this.props.value},t.prototype.renderTree=function(){var e=this.getRoot();if(this.validateTree(e),null==e)return this.props.zeroStateView;var t=this.props,n=t.renderTile,r=t.resize;return c.default.createElement(h.MosaicRoot,{root:e,renderTile:n,resize:r})},t.prototype.validateTree=function(e){},t.defaultProps={onChange:function(){},zeroStateView:c.default.createElement(g.MosaicZeroState,null),className:"mosaic-blueprint-theme"},t}(c.default.PureComponent);t.MosaicWithoutDragDropContext=y;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return c.default.createElement(l.DndProvider,{backend:u.default,options:f.default},c.default.createElement(y,i({},this.props)))},t}(c.default.PureComponent);t.Mosaic=w},function(e,t,n){var r=n(256),o=n(495),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?++e[n]:r(e,n,1)}));e.exports=a},function(e,t,n){var r=n(149),o=n(212),i=n(1024),a=n(357);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(209),o=n(374),i=n(172);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var l=t[a],u=r(e,l);n(u,l)&&o(c,i(l,e),u)}return c}},function(e,t,n){var r=n(1026),o=n(1027),i=o;i.v1=r,i.v4=o,e.exports=i},function(e,t,n){var r,o,i=n(518),a=n(519),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,m=h-s+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),(m<0||h>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=g,o=d;var v=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=h/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var y=0;y<6;++y)u[l+y]=f[y];return t||a(u)}},function(e,t,n){var r=n(518),o=n(519);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicRoot=void 0;var s=a(n(24)),c=a(n(0)),l=n(85),u=n(1029),f=n(520),d=n(98),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onResize=function(e,n,r){t.context.mosaicActions.updateTree([{path:n,spec:{splitPercentage:{$set:e}}}],r)},t}return o(t,e),t.prototype.render=function(){var e=this.props.root;return c.default.createElement("div",{className:"mosaic-root"},this.renderRecursively(e,f.BoundingBox.empty(),[]))},t.prototype.renderRecursively=function(e,t,n){if(d.isParent(e)){var r=null==e.splitPercentage?50:e.splitPercentage,o=f.BoundingBox.split(t,r,e.direction),a=o.first,l=o.second;return s.default([this.renderRecursively(e.first,a,n.concat("first")),this.renderSplit(e.direction,t,r,n),this.renderRecursively(e.second,l,n.concat("second"))].filter(h))}return c.default.createElement("div",{key:e,className:"mosaic-tile",style:i({},f.BoundingBox.asStyles(t))},this.props.renderTile(e,n))},t.prototype.renderSplit=function(e,t,n,r){var o=this,a=this.props.resize;return"DISABLED"!==a?c.default.createElement(u.Split,i({key:r.join(",")+"splitter"},a,{boundingBox:t,splitPercentage:n,direction:e,onChange:function(e){return o.onResize(e,r,!0)},onRelease:function(e){return o.onResize(e,r,!1)}})):null},t.contextType=l.MosaicContext,t}(c.default.PureComponent);function h(e){return null!==e}t.MosaicRoot=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Split=void 0;var s=a(n(19)),c=a(n(1030)),l=a(n(1032)),u=a(n(0)),f=n(520),d=1e3/30,p={capture:!0,passive:!1},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElement=u.default.createRef(),t.listenersBound=!1,t.onMouseDown=function(e){(g(e)||0===e.button)&&(e.preventDefault(),t.bindListeners())},t.onMouseUp=function(e){t.unbindListeners();var n=t.calculateRelativePercentage(e);t.props.onRelease(n)},t.onMouseMove=function(e){e.preventDefault(),e.stopPropagation(),t.throttledUpdatePercentage(e)},t.throttledUpdatePercentage=l.default((function(e){var n=t.calculateRelativePercentage(e);n!==t.props.splitPercentage&&t.props.onChange(n)}),d),t}return o(t,e),t.prototype.render=function(){var e=this.props.direction;return u.default.createElement("div",{className:s.default("mosaic-split",{"-row":"row"===e,"-column":"column"===e}),ref:this.rootElement,onMouseDown:this.onMouseDown,style:this.computeStyle()},u.default.createElement("div",{className:"mosaic-split-line"}))},t.prototype.componentDidMount=function(){this.rootElement.current.addEventListener("touchstart",this.onMouseDown,p)},t.prototype.componentWillUnmount=function(){this.unbindListeners(),this.rootElement.current&&this.rootElement.current.ownerDocument.removeEventListener("touchstart",this.onMouseDown,p)},t.prototype.bindListeners=function(){this.listenersBound||(this.rootElement.current.ownerDocument.addEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.addEventListener("touchmove",this.onMouseMove,p),this.rootElement.current.ownerDocument.addEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.addEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!0)},t.prototype.unbindListeners=function(){this.rootElement.current&&(this.rootElement.current.ownerDocument.removeEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.removeEventListener("touchmove",this.onMouseMove,p),this.rootElement.current.ownerDocument.removeEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.removeEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!1)},t.prototype.computeStyle=function(){var e,t=this.props,n=t.boundingBox,r=t.direction,o=t.splitPercentage,a="column"===r?"top":"left",s=f.BoundingBox.getAbsoluteSplitPercentage(n,o,r);return i(i({},f.BoundingBox.asStyles(n)),((e={})[a]=s+"%",e))},t.prototype.calculateRelativePercentage=function(e){var t,n=this.props,r=n.minimumPaneSizePercentage,o=n.direction,i=n.boundingBox,a=this.rootElement.current.parentElement.getBoundingClientRect(),s=g(e)?e.changedTouches[0]:e;t="column"===o?(s.clientY-a.top)/a.height*100:(s.clientX-a.left)/a.width*100;var l=f.BoundingBox.getRelativeSplitPercentage(i,t,o);return c.default(l,r,100-r)},t.defaultProps={onChange:function(){},onRelease:function(){},minimumPaneSizePercentage:20},t}(u.default.PureComponent);function g(e){return null!=e.changedTouches}t.Split=h},function(e,t,n){var r=n(1031),o=n(369);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==t&&(t=(t=o(t))==t?t:0),r(o(e),t,n)}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,n){var r=n(158),o=n(57);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNever=void 0,t.assertNever=function(e){throw new Error("Unhandled case: "+JSON.stringify(e))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootDropTargets=void 0;var a=i(n(19)),s=i(n(263)),c=i(n(0)),l=n(155),u=n(378),f=n(522),d=n(262),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return c.default.createElement("div",{className:a.default("drop-target-container",{"-dragging":this.props.isDragging})},s.default(u.MosaicDropTargetPosition).map((function(e){return c.default.createElement(f.MosaicDropTarget,{position:e,path:[],key:e})})))},t}(c.default.PureComponent);t.RootDropTargets=l.DropTarget(d.MosaicDragType.WINDOW,{},(function(e,t){return{isDragging:null!==t.getItem()&&t.getItemType()===d.MosaicDragType.WINDOW}}))(p)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicWindow=t.SourceDropConnectedInternalMosaicWindow=t.SourceConnectedInternalMosaicWindow=t.InternalMosaicWindow=void 0;var s=a(n(19)),c=a(n(1036)),l=a(n(268)),u=a(n(185)),f=a(n(125)),d=a(n(263)),p=a(n(0)),h=n(155),g=n(523),m=n(528),v=n(85),b=n(378),y=n(522),w=n(262),O=n(159),E=n(98),x=n(154),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={additionalControlsOpen:!1},t.rootElement=null,t.renderDropTarget=function(e){var n=t.props.path;return p.default.createElement(y.MosaicDropTarget,{position:e,path:n,key:e})},t.split=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.checkCreateNode();var r=t.props,o=r.createNode,i=r.path,a=t.context.mosaicActions,s=a.getRoot(),c=t.rootElement.offsetWidth>t.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,e)).then((function(e){return a.replaceWith(i,{direction:c,second:e,first:E.getAndAssertNodeAtPathExists(s,i)})}))},t.swap=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.checkCreateNode();var r=t.context.mosaicActions,o=t.props,i=o.createNode,a=o.path;return Promise.resolve(i.apply(void 0,e)).then((function(e){return r.replaceWith(a,e)}))},t.setAdditionalControlsOpen=function(e){t.setState({additionalControlsOpen:e})},t.getPath=function(){return t.props.path},t.connectDragSource=function(e){return(0,t.props.connectDragSource)(e)},t.childContext={mosaicWindowActions:{split:t.split,replaceWithNew:t.swap,setAdditionalControlsOpen:t.setAdditionalControlsOpen,getPath:t.getPath,connectDragSource:t.connectDragSource}},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.isOver,o=t.renderPreview,i=t.additionalControls,a=t.connectDropTarget,c=t.connectDragPreview,l=t.draggedMosaicId;return p.default.createElement(v.MosaicWindowContext.Provider,{value:this.childContext},a(p.default.createElement("div",{className:s.default("mosaic-window mosaic-drop-target",n,{"drop-target-hover":r&&l===this.context.mosaicId,"additional-controls-open":this.state.additionalControlsOpen}),ref:function(t){return e.rootElement=t}},this.renderToolbar(),p.default.createElement("div",{className:"mosaic-window-body"},this.props.children),p.default.createElement("div",{className:"mosaic-window-body-overlay",onClick:function(){return e.setAdditionalControlsOpen(!1)}}),p.default.createElement("div",{className:"mosaic-window-additional-actions-bar"},i),c(o(this.props)),p.default.createElement("div",{className:"drop-target-container"},d.default(b.MosaicDropTargetPosition).map(this.renderDropTarget)))))},t.prototype.getToolbarControls=function(){var e=this.props,t=e.toolbarControls,n=e.createNode;return t||(n?g.DEFAULT_CONTROLS_WITH_CREATION:g.DEFAULT_CONTROLS_WITHOUT_CREATION)},t.prototype.renderToolbar=function(){var e,t=this,n=this.props,r=n.title,o=n.draggable,i=n.additionalControls,a=n.additionalControlButtonText,c=n.path,l=n.renderToolbar,f=this.state.additionalControlsOpen,d=this.getToolbarControls(),h=o&&c.length>0,g=h?this.props.connectDragSource:function(e){return e};if(l){var v=g(l(this.props,o));return p.default.createElement("div",{className:s.default("mosaic-window-toolbar",{draggable:h})},v)}var b=g(p.default.createElement("div",{title:r,className:"mosaic-window-title"},r)),y=!u.default(i);return p.default.createElement("div",{className:s.default("mosaic-window-toolbar",{draggable:h})},b,p.default.createElement("div",{className:s.default("mosaic-window-controls",x.OptionalBlueprint.getClasses("BUTTON_GROUP"))},y&&p.default.createElement("button",{onClick:function(){return t.setAdditionalControlsOpen(!f)},className:s.default(x.OptionalBlueprint.getClasses("BUTTON","MINIMAL"),x.OptionalBlueprint.getIconClass("MORE"),(e={},e[x.OptionalBlueprint.getClasses("ACTIVE")]=f,e))},p.default.createElement("span",{className:"control-text"},a)),y&&p.default.createElement(m.Separator,null),d))},t.prototype.checkCreateNode=function(){if(null==this.props.createNode)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(e){var t=e.title;return p.default.createElement("div",{className:"mosaic-preview"},p.default.createElement("div",{className:"mosaic-window-toolbar"},p.default.createElement("div",{className:"mosaic-window-title"},t)),p.default.createElement("div",{className:"mosaic-window-body"},p.default.createElement("h4",null,t),p.default.createElement(x.OptionalBlueprint.Icon,{iconSize:72,icon:"application"})))},renderToolbar:null},t.contextType=v.MosaicContext,t}(p.default.Component);t.InternalMosaicWindow=S;var j={beginDrag:function(e,t,n){e.onDragStart&&e.onDragStart();var r=c.default((function(){return n.context.mosaicActions.hide(n.props.path)}));return{mosaicId:n.context.mosaicId,hideTimer:r}},endDrag:function(e,t,n){var r=t.getItem().hideTimer;window.clearTimeout(r);var o=n.props.path,i=t.getDropResult()||{},a=n.context.mosaicActions,s=i.position,c=i.path;null==s||null==c||f.default(c,o)?(a.updateTree([{path:l.default(o),spec:{splitPercentage:{$set:null}}}]),e.onDragEnd&&e.onDragEnd("reset")):(a.updateTree(O.createDragToUpdates(a.getRoot(),o,c,s)),e.onDragEnd&&e.onDragEnd("drop"))}};t.SourceConnectedInternalMosaicWindow=h.DragSource(w.MosaicDragType.WINDOW,j,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview()}}))(S),t.SourceDropConnectedInternalMosaicWindow=h.DropTarget(w.MosaicDragType.WINDOW,{},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),draggedMosaicId:(t.getItem()||{}).mosaicId}}))(t.SourceConnectedInternalMosaicWindow);var T=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.render=function(){return p.default.createElement(t.SourceDropConnectedInternalMosaicWindow,i({},this.props))},n}(p.default.PureComponent);t.MosaicWindow=T},function(e,t,n){var r=n(1037),o=n(176)((function(e,t){return r(e,1,t)}));e.exports=o},function(e,t){e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}},function(e,t,n){var r=n(149),o=n(212),i=n(1039),a=n(1040),s=n(207),c=n(1041),l=n(175);e.exports=function(e,t,n){var u=-1;t=r(t.length?t:[l],s(o));var f=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++u,value:e}}));return a(f,(function(e,t){return c(e,t,n)}))}},function(e,t,n){var r=n(377),o=n(151);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(1042);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,c=n.length;++o<s;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(173);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,c=null===t,l=t==t,u=r(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||o&&s&&l||!n&&l||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||c&&n&&i||!s&&i||!l)return-1}return 0}},function(e,t,n){var r=n(253),o=n(151),i=n(206),a=n(57);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(375),o=n(174),i=n(509);e.exports=function(e,t,n){var a=e.length;if(a<2)return a?i(e[0]):[];for(var s=-1,c=Array(a);++s<a;)for(var l=e[s],u=-1;++u<a;)u!=s&&(c[s]=r(c[s]||l,e[u],t,n));return i(o(c,1),t,n)}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"default",(function(){return Ks}));var o={};n.r(o),n.d(o,"accessTokensReducer",(function(){return io})),n.d(o,"companionWindowsReducer",(function(){return Co})),n.d(o,"errorsReducer",(function(){return $o})),n.d(o,"workspaceReducer",(function(){return _i})),n.d(o,"windowsReducer",(function(){return yi})),n.d(o,"manifestsReducer",(function(){return ii})),n.d(o,"infoResponsesReducer",(function(){return Xo})),n.d(o,"configReducer",(function(){return Do})),n.d(o,"viewersReducer",(function(){return gi})),n.d(o,"annotationsReducer",(function(){return lo})),n.d(o,"authReducer",(function(){return ho})),n.d(o,"elasticLayoutReducer",(function(){return zo})),n.d(o,"searchesReducer",(function(){return fi})),n.d(o,"layersReducer",(function(){return ti})),n.d(o,"catalogReducer",(function(){return wo}));var i=n(0),a=n.n(i),s=n(32),c=n.n(s),l=n(7),u=n(281),f=n(380),d=n.n(f),p=n(219);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){return e.mapStateToProps||e.mapDispatchToProps?l.b.apply(void 0,[e.mapStateToProps,e.mapDispatchToProps].concat(v(e.connectOptions||[])))(e.component):e.component}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t=e.plugins,n=e.children,r=w(Object(i.useState)({}),2),o=r[0],s=r[1];return Object(i.useEffect)((function(){var e=function(e){return e.map((function(e){return g(g({},e),{},{component:y(e)})}))}(t);!function(e){e.filter((function(e){return e.companionWindowKey})).forEach((function(e){p.a[e.companionWindowKey]=e.component})),p.a}(e),s(function(e){return e.reduce((function(e,t){return d()(e,[t.target,t.mode],(function(e){return[].concat(v(e||[]),[t])}))}),{})}(e))}),[t]),a.a.createElement(u.a.Provider,{value:o},n)}E.defaultProps={children:null,plugins:[]};var x=n(3),S=n(6),j=n(504),T=n(97),_=n(265),C=n(556),I=n.n(C),P=n(162);function k(e){var t=e.i18n,n=e.defaultNS,r=e.children,o=Object(i.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return Object(i.createElement)(P.a.Provider,{value:o},r)}var R=n(300),A=n(1049),D=n(1),M=(n(11),n(273)),N=n(603),L=n(275);var z=function(e){var t=e.children,n=e.theme,r=Object(N.a)(),o=a.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(D.a)({},e,t)}(r,n);return null!=e&&(e[L.a]=null!==r),e}),[n,r]);return a.a.createElement(M.a.Provider,{value:o},t)},W=n(601),B=n(1090),F=n(604),H=n(516),U=n(160),V=n(385),G=n(384),q=n.n(G),$=n(59),K=n(557),Z=n.n(K);function Y(e){return Y="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},Y(e)}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){X(e,t,n[t])}))}return e}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t,n){return t&&ee(e.prototype,t),n&&ee(e,n),e}var ne=n(558),re=n.n(ne);function oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ie(e,t){if(t&&("object"===re()(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oe(e)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}function se(e,t){return se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},se(e,t)}function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}var le={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ue=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J(this,e),this.init(t,n)}return te(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||le,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,Q({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),fe=new ue,de=function(){function e(){J(this,e),this.observers={}}return te(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function pe(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function he(e){return null==e?"":""+e}function ge(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function me(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function ve(e,t,n){var r=me(e,t,Object);r.obj[r.k]=n}function be(e,t){var n=me(e,t),r=n.obj,o=n.k;if(r)return r[o]}function ye(e,t,n){var r=be(e,n);return void 0!==r?r:be(t,n)}function we(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):we(e[r],t[r],n):e[r]=t[r]);return e}function Oe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function xe(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Ee[e]})):e}var Se="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,je=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return J(this,t),n=ie(this,ae(t).call(this)),Se&&de.call(oe(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return ce(t,e),te(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),be(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),ve(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=be(this.data,a)||{};r?we(s,n,o):s=Q({},s,n),ve(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Q({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(de),Te={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},_e={},Ce=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return J(this,t),n=ie(this,ae(t).call(this)),Se&&de.call(oe(n)),ge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,oe(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=fe.create("translator"),n}return ce(t,e),te(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==Y(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),s=a.key,c=a.namespaces,l=c[c.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,m=p&&p.exactUsedKey||s,v=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,O="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&O&&b.indexOf(v)<0&&("string"!=typeof y||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,n):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===v,x=E?[]:{},S=E?m:g;for(var j in h)if(Object.prototype.hasOwnProperty.call(h,j)){var T="".concat(S).concat(i).concat(j);x[j]=this.translate(T,Q({},n,{joinArrays:!1,ns:c})),x[j]===T&&(x[j]=h[j])}h=x}}else if(w&&"string"==typeof y&&"[object Array]"===v)(h=h.join(y))&&(h=this.extendTranslation(h,e,n,r));else{var _=!1,C=!1,I=void 0!==n.count&&"string"!=typeof n.count,P=t.hasDefaultValue(n),k=I?this.pluralResolver.getSuffix(u,n.count):"",R=n["defaultValue".concat(k)]||n.defaultValue;!this.isValidLookup(h)&&P&&(_=!0,h=R),this.isValidLookup(h)||(C=!0,h=s);var A=P&&R!==h&&this.options.updateMissing;if(C||_||A){if(this.logger.log(A?"updateKey":"missingKey",u,l,s,A?R:h),i){var D=this.resolve(s,Q({},n,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var L=0;L<N.length;L++)M.push(N[L]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,A?r:h,A,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,A?r:h,A,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?M.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],s+t,n["defaultValue".concat(t)]||R)}))})):z(M,s,R))}h=this.extendTranslation(h,e,n,p,r),C&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(s)),C&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Q({},n,{interpolation:Q({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=Q({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Te.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Q({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),l=c.key;n=l;var u=c.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(i=e,!_e["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(_e["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,c,u=l,p=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,l,n,e,s);else f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(u+i),d&&p.push(u+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(u+=i);for(;c=p.pop();)a.isValidLookup(t)||(r=c,t=a.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(de);function Ie(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Pe=function(){function e(t){J(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fe.create("languageUtils")}return te(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ie(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ie(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ie(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),ke=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Re={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Ae(){var e={};return ke.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Re[t.fc]}}))})),e}var De=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J(this,e),this.languageUtils=t,this.options=n,this.logger=fe.create("pluralResolver"),this.rules=Ae()}return te(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Me=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};J(this,e),this.logger=fe.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return te(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:xe,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Oe(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Oe(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Oe(t.nestingPrefix):t.nestingPrefixEscaped||Oe("$t("),this.nestingSuffix=t.nestingSuffix?Oe(t.nestingSuffix):t.nestingSuffixEscaped||Oe(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=ye(t,c,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),l=i.join(s.formatSeparator).trim();return s.format(ye(t,c,a),l,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=u(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=he(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Q({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=Q({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),c=u,l=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=he(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var Ne=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return J(this,t),o=ie(this,ae(t).call(this)),Se&&de.call(oe(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=fe.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return ce(t,e),te(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,c,l,u,f;r=n.loaded,s=i,l=me(r,[o],Object),u=l.obj,f=l.k,u[f]=u[f]||[],c&&(u[f]=u[f].concat(s)),c||u[f].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Q({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(de);function Le(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Y(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Y(e[2])||"object"===Y(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ze(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function We(){}var Be=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(J(this,t),e=ie(this,ae(t).call(this)),Se&&de.call(oe(e)),e.options=ze(n),e.services={},e.logger=fe,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),ie(e,oe(e));setTimeout((function(){e.init(n,r)}),0)}return e}return ce(t,e),te(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Q({},Le(),this.options,ze(t)),this.format=this.options.interpolation.format,n||(n=We),!this.options.isClone){this.modules.logger?fe.init(r(this.modules.logger),this.options):fe.init(null,this.options);var o=new Pe(this.options);this.store=new je(this.options.resources,this.options);var i=this.services;i.logger=fe,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new De(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Me(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ne(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Ce(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=pe(),u=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=pe();return e||(e=this.languages),t||(t=this.options.ns),n||(n=We),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Te.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=pe();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==Y(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=Q({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=pe();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=pe();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We,o=Q({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=Q({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Ce(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(de),Fe=new Be,He=n(559),Ue=n(560),Ve=n(561),Ge=n(574),qe=n(575),$e=n(562),Ke=n(564),Ze=n(565),Ye=n(568),Xe=n(569),Qe=n(570),Je=n(563),et=n(571),tt=n(572),nt=n(566),rt=n(573),ot=n(567);var it=function(){var e={ar:He,de:Ue,en:Ve,fr:$e,it:Je,ja:Ke,kr:Ze,lt:nt,"nb-NO":ot,nl:Ye,pl:Xe,"pt-BR":Qe,sr:et,sv:tt,vi:rt,"zh-CN":Ge,"zh-TW":qe},t=Fe.createInstance();return t.use(P.e).init({fallbackLng:"en",interpolation:{escapeValue:!1},lng:"en",resources:e}),t};function at(e){return function(e){if(Array.isArray(e))return st(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lt(e,t){return lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lt(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dt(e){return dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dt(e)}var pt=function(e){var t=e.dndManager,n=e.children;return!1===t?n:void 0===t?a.a.createElement(H.a,{backend:V.default,options:q.a},n):a.a.createElement(U.a.Provider,{value:t},n)},ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lt(e,t)}(i,e);var t,n,r,o=ut(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).i18n=it(),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props.language;this.i18n.changeLanguage(e)}},{key:"componentDidUpdate",value:function(e){var t=this.props.language;e.language!==t&&this.i18n.changeLanguage(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.createGenerateClassNameOptions,o=t.isFullscreenEnabled,i=t.setWorkspaceFullscreen,s=t.theme,c=t.translations,l=t.dndManager,u=Object(A.a)(r);return Object.keys(c).forEach((function(t){e.i18n.addResourceBundle(t,"translation",c[t],!0,!0)})),a.a.createElement(I.a,{enabled:o,onChange:i},a.a.createElement(k,{i18n:this.i18n},a.a.createElement(R.a,null,a.a.createElement(z,{theme:Object(W.a)(s)},a.a.createElement(B.b,{jss:Object($.b)({plugins:[].concat(at(Object(F.a)().plugins),[Z()()])}),generateClassName:u},a.a.createElement(pt,{dndManager:l},n))))))}}])&&ct(t.prototype,n),r&&ct(t,r),i}(i.Component);ht.defaultProps={children:null,createGenerateClassNameOptions:{},dndManager:void 0,isFullscreenEnabled:!1};var gt={setWorkspaceFullscreen:j.b},mt=Object(x.compose)(Object(l.b)((function(e){return{createGenerateClassNameOptions:Object(T.a)(e).createGenerateClassNameOptions,isFullscreenEnabled:Object(_.b)(e),language:Object(T.a)(e).language,theme:Object(T.g)(e),translations:Object(T.a)(e).translations}}),gt),Object(S.a)("AppProviders"))(ht);function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yt(e,t){return yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yt(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ot(this,n)}}function Ot(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Et(e){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Et(e)}var xt=Object(i.lazy)((function(){return Promise.resolve().then(n.bind(null,1111))})),St=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yt(e,t)}(s,e);var t,n,r,o=wt(s);function s(){return vt(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=e.dndManager,n=e.plugins;return a.a.createElement(E,{plugins:n},a.a.createElement(mt,{dndManager:t},a.a.createElement(i.Suspense,{fallback:a.a.createElement("div",null)},a.a.createElement(xt,null))))}}])&&bt(t.prototype,n),r&&bt(t,r),s}(i.Component);St.defaultProps={dndManager:void 0,plugins:[]};var jt=St,Tt=n(110),_t=n.n(Tt),Ct=n(386),It=n.n(Ct),Pt=n(118),kt=n.n(Pt),Rt=n(156),At=n.n(Rt),Dt=n(57),Mt=n.n(Dt),Nt=n(387),Lt=n.n(Nt),zt=n(263),Wt=n.n(zt),Bt=function(e){return[Ft,Ht,Ut,Vt,Gt,qt,$t].every((function(t){return t(e)}))},Ft=function(e){return Mt()(e)},Ht=function(e){var t=e.name;return kt()(t)||It()(t)},Ut=function(e){var t=e.mode,n=e.target;return kt()(t)?kt()(n):It()(n)},Vt=function(e){var t=e.mode;return kt()(t)||["add","wrap"].some((function(e){return e===t}))},Gt=function(e){var t=e.mapStateToProps;return kt()(t)||Lt()(t)||At()(t)},qt=function(e){var t=e.mapDispatchToProps;return kt()(t)||Lt()(t)||At()(t)||Mt()(t)},$t=function(e){var t=e.reducers;return kt()(t)||Mt()(t)&&Wt()(t).every(At.a)};function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return function(e){if(Array.isArray(e))return Qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jt(e){var t=function(e){var t=[],n=[];return e.forEach((function(e){Array.isArray(e)?e.every((function(e){return Bt(e)}))?n.push.apply(n,Xt(e)):t.push.apply(t,Xt(e)):Bt(e)?n.push(e):t.push(e)})),{invalidPlugins:t,validPlugins:n}}(e),n=t.validPlugins;return function(e){e.forEach((function(e){return console.log("Mirador: Plugin ".concat(e.name," is not valid and was rejected."))}))}(t.invalidPlugins),n}function en(e){return e&&e.reduce((function(e,t){return Zt(Zt({},e),t.reducers)}),{})}function tn(e){return e&&e.reduce((function(e,t){return _t()(e,t.config||{})}),{})}function nn(e){return e&&e.filter((function(e){return e.saga})).map((function(e){return e.saga}))}function rn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var on=rn();on.withExtraArgument=rn;var an=on,sn=function(e){return"@@redux-saga/"+e},cn=sn("CANCEL_PROMISE"),ln=sn("CHANNEL_END"),un=sn("IO"),fn=sn("MATCH"),dn=sn("MULTICAST"),pn=sn("SAGA_ACTION"),hn=sn("SELF_CANCELLATION"),gn=sn("TASK"),mn=sn("TASK_CANCEL"),vn=sn("TERMINATE"),bn=sn("LOCATION"),yn=n(54),wn=function(e){return null==e},On=function(e){return null!=e},En=function(e){return"function"==typeof e},xn=function(e){return"string"==typeof e},Sn=Array.isArray,jn=function(e){return e&&En(e.then)},Tn=function(e){return e&&En(e.next)&&En(e.throw)},_n=function e(t){return t&&(xn(t)||Pn(t)||En(t)||Sn(t)&&t.every(e))},Cn=function(e){return e&&En(e.take)&&En(e.close)},In=function(e){return En(e)&&e.hasOwnProperty("toString")},Pn=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var kn=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,e,t)}));return r[cn]=function(){clearTimeout(n)},r},Rn=function(e){return function(){return e}}(!0),An=function(){};var Dn=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Mn=function(e,t){Object(D.a)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function Nn(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function Ln(e){var t=!1;return function(){t||(t=!0,e())}}var zn=function(e){throw e},Wn=function(e){return{value:e,done:!0}};function Bn(e,t,n){void 0===t&&(t=zn),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Wn,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Fn(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Hn=function(e){return Array.apply(null,new Array(e))},Un=function(e){return function(t){return e(Object.defineProperty(t,pn,{value:!0}))}},Vn=function(e){return e===vn},Gn=function(e){return e===mn},qn=function(e){return Vn(e)||Gn(e)};function $n(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=Sn(e)?Hn(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||qn(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=An,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Kn(e){return{name:e.name||"anonymous",location:Zn(e)}}function Zn(e){return e[bn]}function Yn(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var l;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:l=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=l,e=l,a(s)}},take:s,flush:c}}var Xn=function(e){return Yn(e,4)},Qn="TAKE",Jn="PUT",er="ALL",tr="CALL",nr="FORK",rr="SELECT",or=function(e,t){var n;return(n={})[un]=!0,n.combinator=!1,n.type=e,n.payload=t,n},ir=function(e){return or(nr,Object(D.a)({},e.payload,{detached:!0}))};function ar(e,t){return void 0===e&&(e="*"),_n(e)?or(Qn,{pattern:e}):Cn(n=e)&&n[dn]&&On(t)&&_n(t)?or(Qn,{channel:e,pattern:t}):Cn(e)?or(Qn,{channel:e}):void 0;var n}function sr(e,t){return wn(t)&&(t=e,e=void 0),or(Jn,{channel:e,action:t})}function cr(e){var t=or(er,e);return t.combinator=!0,t}function lr(e,t){var n,r=null;return En(e)?n=e:(Sn(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&xn(n)&&En(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function ur(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return or(tr,lr(e,n))}function fr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return or(nr,lr(e,n))}function dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ir(fr.apply(void 0,[e].concat(n)))}function pr(e){void 0===e&&(e=Dn);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return or(rr,{selector:e,args:n})}var hr=ur.bind(null,kn);function gr(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var mr=gr,vr=[],br=0;function yr(e){try{Er(),e()}finally{xr()}}function wr(e){vr.push(e),br||(Er(),Sr())}function Or(e){try{return Er(),e()}finally{Sr()}}function Er(){br++}function xr(){br--}function Sr(){var e;for(xr();!br&&void 0!==(e=vr.shift());)yr(e)}var jr=function(e){return function(t){return e.some((function(e){return Pr(e)(t)}))}},Tr=function(e){return function(t){return e(t)}},_r=function(e){return function(t){return t.type===String(e)}},Cr=function(e){return function(t){return t.type===e}},Ir=function(){return Rn};function Pr(e){var t="*"===e?Ir:xn(e)?_r:Sn(e)?jr:In(e)?_r:En(e)?Tr:Pn(e)?Cr:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var kr={type:ln},Rr=function(e){return e&&e.type===ln};function Ar(e){void 0===e&&(e=Xn());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(kr):e.isEmpty()?(n.push(r),r.cancel=function(){Nn(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(kr):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(kr)}}}}}function Dr(){var e,t,n,r,o,i,a=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(kr)}))},(e={})[dn]=!0,e.put=function(e){if(!t)if(Rr(e))i();else for(var o=n=r,a=0,s=o.length;a<s;a++){var c=o[a];c[fn](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=Ir),t?e(kr):(e[fn]=n,o(),r.push(e),e.cancel=Ln((function(){o(),Nn(r,e)})))},e.close=i,e),s=a.put;return a.put=function(e){e[pn]?s(e):wr((function(){s(e)}))},a}function Mr(e,t){var n=e[cn];En(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Nr,Lr=0,zr=function(){return++Lr};function Wr(e){e.isRunning()&&e.cancel()}var Br=((Nr={}).TAKE=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!Rr(e)||a?n(e):n(vn)};try{o.take(s,On(i)?Pr(i):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},Nr.PUT=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;wr((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}i&&jn(t)?Mr(t,n):n(t)}))},Nr.ALL=function(e,t,n,r){var o=r.digestEffect,i=Lr,a=Object.keys(t);if(0!==a.length){var s=$n(t,n);a.forEach((function(e){o(t[e],i,s[e],e)}))}else n(Sn(t)?[]:{})},Nr.RACE=function(e,t,n,r){var o=r.digestEffect,i=Lr,a=Object.keys(t),s=Sn(t)?Hn(a.length):{},c={},l=!1;a.forEach((function(e){var t=function(t,r){l||(r||qn(t)?(n.cancel(),n(t,r)):(n.cancel(),l=!0,s[e]=t,n(s)))};t.cancel=An,c[e]=t})),n.cancel=function(){l||(l=!0,a.forEach((function(e){return c[e].cancel()})))},a.forEach((function(e){l||o(t[e],i,c[e],e)}))},Nr.CALL=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=r.task;try{var c=i.apply(o,a);if(jn(c))return void Mr(c,n);if(Tn(c))return void Kr(e,c,s.context,Lr,Kn(i),!1,n);n(c)}catch(e){n(e,!0)}},Nr.CPS=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){wn(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},Nr.FORK=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=t.detached,c=r.task,l=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(Tn(o))return o;var i=!1;return Bn((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!jn(o)})}))}catch(e){return Bn((function(){throw e}))}}({context:o,fn:i,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Kn(t)}(l,i);Or((function(){var t=Kr(e,l,c.context,Lr,u,s,void 0);s?n(t):t.isRunning()?(c.queue.addTask(t),n(t)):t.isAborted()?c.queue.abort(t.error()):n(t)}))},Nr.JOIN=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&Nn(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Sn(t)){if(0===t.length)return void n([]);var a=$n(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},Nr.CANCEL=function(e,t,n,r){var o=r.task;t===hn?Wr(o):Sn(t)?t.forEach(Wr):Wr(t),n()},Nr.SELECT=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},Nr.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=Ar(t.buffer),i=Pr(r),a=function t(n){Rr(n)||e.channel.take(t,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),n(o)},Nr.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},Nr.FLUSH=function(e,t,n){t.flush(n)},Nr.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Nr.SET_CONTEXT=function(e,t,n,r){var o=r.task;Mn(o.context,t),n()},Nr);function Fr(e,t){return e+"?"+t}function Hr(e){var t=e.name,n=e.location;return n?t+"  "+Fr(n.fileName,n.lineNumber):t}var Ur=null,Vr=[],Gr=function(){Ur=null,Vr.length=0},qr=function(){var e,t,n,r,o,i,a,s=Vr[0],c=Vr.slice(1),l=s.crashedEffect?(e=s.crashedEffect,(t=Zn(e))?t.code+"  "+Fr(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+Hr(s.meta)+(l?" \n when executing effect "+l:"")].concat(c.map((function(e){return"    created by "+Hr(e.meta)})),[(n=Vr,r=function(e){return e.cancelledTasks},o=n,a=(i=[]).concat.apply(i,o.map(r)),a.length?["Tasks cancelled due to error:"].concat(a).join("\n"):"")]).join("\n")};function $r(e,t,n,r,o,i,a){var s;void 0===a&&(a=An);var c,l,u=0,f=null,d=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){t(),c(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,c){i||(Nn(o,t),t.cont=An,c?a(s):(t===e&&(r=s),o.length||(i=!0,n(r))))}}function c(){i||(i=!0,o.forEach((function(e){e.cont=An,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:c,abort:a,getTasks:function(){return o}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=2,(i={meta:o,cancelledTasks:d}).crashedEffect=Ur,Vr.push(i),m.isRoot){var r=qr();Gr(),e.onError(t,{sagaStack:r})}l=t,f&&f.reject(t)}else t===mn?u=1:1!==u&&(u=3),c=t,f&&f.resolve(t);var i;m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[gn]=!0,s.id=r,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===u&&(u=1,h.cancelAll(),g(mn,!1))},s.cont=a,s.end=g,s.setContext=function(e){Mn(p,e)},s.toPromise=function(){return f||(f=mr(),2===u?f.reject(l):0!==u&&f.resolve(c)),f.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return c},s.error=function(){return l},s);return m}function Kr(e,t,n,r,o,i,a){var s=e.finalizeRunEffect((function(t,n,r){if(jn(t))Mr(t,r);else if(Tn(t))Kr(e,t,l.context,n,o,!1,r);else if(t&&t[un]){(0,Br[t.type])(e,t.payload,r,u)}else r(t)}));f.cancel=An;var c={meta:o,cancel:function(){0===c.status&&(c.status=1,f(mn))},status:0},l=$r(e,c,n,r,o,i,a),u={task:l,digestEffect:d};return a&&(a.cancel=l.cancel),f(),l;function f(e,n){try{var o;n?(o=t.throw(e),Gr()):Gn(e)?(c.status=1,f.cancel(),o=En(t.return)?t.return(mn):{done:!0,value:mn}):o=Vn(e)?En(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==c.status&&(c.status=3),c.cont(o.value)):d(o.value,r,f)}catch(e){if(1===c.status)throw e;c.status=2,c.cont(e,!0)}}function d(t,n,r,o){void 0===o&&(o="");var i,a=zr();function c(n,o){i||(i=!0,r.cancel=An,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&function(e){Ur=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),c.cancel=An,r.cancel=function(){i||(i=!0,c.cancel(),c.cancel=An,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,c)}}function Zr(e,t){var n=e.channel,r=void 0===n?Dr():n,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,c=e.sagaMonitor,l=e.effectMiddlewares,u=e.onError,f=void 0===u?Fn:u;for(var d=arguments.length,p=new Array(d>2?d-2:0),h=2;h<d;h++)p[h-2]=arguments[h];var g=t.apply(void 0,p);var m,v=zr();if(c&&(c.rootSagaStarted=c.rootSagaStarted||An,c.effectTriggered=c.effectTriggered||An,c.effectResolved=c.effectResolved||An,c.effectRejected=c.effectRejected||An,c.effectCancelled=c.effectCancelled||An,c.actionDispatched=c.actionDispatched||An,c.rootSagaStarted({effectId:v,saga:t,args:p})),l){var b=x.compose.apply(void 0,l);m=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else m=Dn;var y={channel:r,dispatch:Un(o),getState:i,sagaMonitor:c,onError:f,finalizeRunEffect:m};return Or((function(){var e=Kr(y,g,s,v,Kn(t),!0,void 0);return c&&c.effectResolved(v,e),e}))}var Yr=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?Dr():i,s=n.sagaMonitor,c=Object(yn.a)(n,["context","channel","sagaMonitor"]);function l(e){var n=e.getState,r=e.dispatch;return t=Zr.bind(null,Object(D.a)({},c,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return l.run=function(){return t.apply(void 0,arguments)},l.setContext=function(e){Mn(o,e)},l},Xr=Yr,Qr=n(531),Jr=n(55),eo=n.n(Jr),to=n(2);function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function io(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.RESOLVE_AUTHENTICATION_REQUEST:return ro(ro({},e),{},oo({},t.tokenServiceId,{authId:t.id,id:t.tokenServiceId,isFetching:!0}));case to.a.REQUEST_ACCESS_TOKEN:return ro(ro({},e),{},oo({},t.serviceId,{authId:t.authId,id:t.serviceId,isFetching:!0}));case to.a.RECEIVE_ACCESS_TOKEN:return ro(ro({},e),{},oo({},t.serviceId,ro(ro({},e[t.serviceId]),{},{isFetching:!1,json:t.json})));case to.a.RECEIVE_ACCESS_TOKEN_FAILURE:return ro(ro({},e),{},oo({},t.serviceId,ro(ro({},e[t.serviceId]),{},{error:t.error,isFetching:!1})));case to.a.RESET_AUTHENTICATION_STATE:return eo()(e,t.tokenServiceId);case to.a.RECEIVE_INFO_RESPONSE:return t.tokenServiceId?e[t.tokenServiceId].success?e:ro(ro({},e),{},oo({},t.tokenServiceId,ro(ro({},e[t.tokenServiceId]),{},{success:!0}))):e;default:return e}}function ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(n),!0).forEach((function(t){co(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.REQUEST_ANNOTATION:return so(so({},e),{},co({},t.targetId,so(so({},e[t.targetId]),{},co({},t.annotationId,{id:t.annotationId,isFetching:!0}))));case to.a.RECEIVE_ANNOTATION:return so(so({},e),{},co({},t.targetId,so(so({},e[t.targetId]),{},co({},t.annotationId,{id:t.annotationId,isFetching:!1,json:t.annotationJson}))));case to.a.RECEIVE_ANNOTATION_FAILURE:return so(so({},e),{},co({},t.targetId,so(so({},e[t.targetId]),{},co({},t.annotationId,{error:t.error,id:t.annotationId,isFetching:!1}))));case to.a.IMPORT_MIRADOR_STATE:return{};default:return e}};function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ho=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.ADD_AUTHENTICATION_REQUEST:return fo(fo({},e),{},po({},t.id,{id:t.id,isFetching:!0,profile:t.profile,windowId:t.windowId}));case to.a.RESOLVE_AUTHENTICATION_REQUEST:return fo(fo({},e),{},po({},t.id,fo(fo({},e[t.id]),{},{isFetching:!1,ok:t.ok})));case to.a.RECEIVE_ACCESS_TOKEN:return t.authId?fo(fo({},e),{},po({},t.authId,fo(fo({},e[t.authId]),{},{ok:!0}))):e;case to.a.RESET_AUTHENTICATION_STATE:return eo()(e,t.id);default:return e}};function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){vo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(e){return function(e){if(Array.isArray(e))return yo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.ADD_RESOURCE:return e.some((function(e){return e.manifestId===t.manifestId}))?e:[mo({manifestId:t.manifestId},t.payload)].concat(bo(e));case to.a.ADD_WINDOW:return e.some((function(e){return e.manifestId===t.window.manifestId}))?e:[{manifestId:t.window.manifestId}].concat(bo(e));case to.a.UPDATE_WINDOW:return t.payload.manifestId?e.some((function(e){return e.manifestId===t.payload.manifestId}))?e:[{manifestId:t.payload.manifestId}].concat(bo(e)):e;case to.a.REMOVE_RESOURCE:return e.filter((function(e){return e.manifestId!==t.manifestId}));case to.a.IMPORT_CONFIG:return t.config.catalog||[];case to.a.IMPORT_MIRADOR_STATE:return t.state.catalog||[];default:return e}},Oo=n(215),Eo=n.n(Oo),xo=n(140),So=n.n(xo);function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){_o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Co(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.ADD_COMPANION_WINDOW:return Eo()([t.id],t.payload,e);case to.a.ADD_WINDOW:return To(To({},e),(t.companionWindows||[]).reduce((function(n,r){return n[r.id]=To(To(To({},e[r.id]),r),{},{windowId:t.id}),n}),{}));case to.a.REMOVE_WINDOW:return Object.keys(e).reduce((function(n,r){return e[r].windowId!==t.windowId&&(n[r]=e[r]),n}),{});case to.a.UPDATE_COMPANION_WINDOW:return So()([t.id],(function(e){return To(To({},e||{}),t.payload)}),e);case to.a.REMOVE_COMPANION_WINDOW:return eo()(e,t.id);case to.a.IMPORT_MIRADOR_STATE:return t.state.companionWindows||[];case to.a.TOGGLE_TOC_NODE:return So()([t.id,"tocNodes"],(function(e){return To(To({},e||{}),t.payload)}),e);default:return e}}var Io=n(87);function Po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ro=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(n),!0).forEach((function(t){ko(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Io.a),Ao=function(e,t,n){return t},Do=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.UPDATE_CONFIG:case to.a.IMPORT_CONFIG:return _t()(e,t.config,{arrayMerge:Ao});case to.a.SET_CONFIG:return t.config;case to.a.IMPORT_MIRADOR_STATE:return t.state.config||{};default:return e}};function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.ADD_WINDOW:return No(No({},e),{},Lo({},t.window.id,No({windowId:t.window.id},t.elasticLayout)));case to.a.UPDATE_ELASTIC_WINDOW_LAYOUT:return So()([t.windowId],(function(e){return No(No({},e||{}),t.payload)}),e);case to.a.REMOVE_WINDOW:return eo()(e,t.windowId);case to.a.IMPORT_MIRADOR_STATE:return t.state.elasticLayout||{};default:return e}},Wo=n(269),Bo=n.n(Wo);function Fo(e){return function(e){if(Array.isArray(e))return Ho(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ho(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ho(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qo={items:[]},$o=function(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qo,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case to.a.ADD_ERROR:return Vo(Vo({},o),{},(Go(e={},i.id,{id:i.id,message:i.message}),Go(e,"items",[].concat(Fo(o.items),[i.id])),e));case to.a.RECEIVE_INFO_RESPONSE_FAILURE:return Vo(Vo({},o),{},(Go(t={},i.infoId,{id:i.infoId,message:i.error}),Go(t,"items",[].concat(Fo(o.items),[i.infoId])),t));case to.a.RECEIVE_SEARCH_FAILURE:return Vo(Vo({},o),{},(Go(n={},i.searchId,{id:i.searchId,message:i.error}),Go(n,"items",[].concat(Fo(o.items),[i.searchId])),n));case to.a.REMOVE_ERROR:return(r=Object.keys(o).reduce((function(e,t){return t!==i.id&&(e[t]=o[t]),e}),{})).items=Bo()(r.items,i.id),r;case to.a.IMPORT_MIRADOR_STATE:return qo;default:return o}};function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach((function(t){Yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.REQUEST_INFO_RESPONSE:return Zo(Zo({},e),{},Yo({},t.infoId,{id:t.infoId,isFetching:!0}));case to.a.RECEIVE_INFO_RESPONSE:return Zo(Zo({},e),{},Yo({},t.infoId,{degraded:!1,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case to.a.RECEIVE_DEGRADED_INFO_RESPONSE:return Zo(Zo({},e),{},Yo({},t.infoId,{degraded:!0,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case to.a.RECEIVE_INFO_RESPONSE_FAILURE:return Zo(Zo({},e),{},Yo({},t.infoId,{error:t.error,id:t.infoId,isFetching:!1,tokenServiceId:t.tokenServiceId}));case to.a.REMOVE_INFO_RESPONSE:return Object.keys(e).reduce((function(n,r){return r!==t.infoId&&(n[r]=e[r]),n}),{});case to.a.IMPORT_MIRADOR_STATE:return{};default:return e}};function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.UPDATE_LAYERS:return Jo(Jo({},e),{},ei({},t.windowId,Jo(Jo({},e[t.windowId]),{},ei({},t.canvasId,_t()((e[t.windowId]||{})[t.canvasId]||{},t.payload)))));case to.a.REMOVE_WINDOW:return eo()(e,[t.windowId]);default:return e}};function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.REQUEST_MANIFEST:return ri(oi({},t.manifestId,ri(ri(ri({},e[t.manifestId]),t.properties),{},{id:t.manifestId})),eo()(e,t.manifestId));case to.a.RECEIVE_MANIFEST:return ri(ri({},e),{},oi({},t.manifestId,ri(ri({},e[t.manifestId]),{},{error:null,id:t.manifestId,isFetching:!1,json:t.manifestJson})));case to.a.RECEIVE_MANIFEST_FAILURE:return ri(ri({},e),{},oi({},t.manifestId,ri(ri({},e[t.manifestId]),{},{error:t.error,id:t.manifestId,isFetching:!1})));case to.a.REMOVE_MANIFEST:return Object.keys(e).reduce((function(n,r){return r!==t.manifestId&&(n[r]=e[r]),n}),{});case to.a.IMPORT_MIRADOR_STATE:return t.state.manifests||{};default:return e}},ai=n(24),si=n.n(ai);function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach((function(t){ui(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=(e[t.windowId]||{})[t.companionWindowId]||{};switch(t.type){case to.a.REQUEST_SEARCH:return n.query!==t.query?li(li({},e),{},ui({},t.windowId,li(li({},e[t.windowId]),{},ui({},t.companionWindowId,li(li({},n),{},{data:ui({},t.searchId,{isFetching:!0}),query:t.query,selectedContentSearchAnnotation:[]}))))):li(li({},e),{},ui({},t.windowId,li(li({},e[t.windowId]),{},ui({},t.companionWindowId,li(li({},n),{},{data:li(li({},n.data),{},ui({},t.searchId,{isFetching:!0}))})))));case to.a.RECEIVE_SEARCH:return li(li({},e),{},ui({},t.windowId,li(li({},e[t.windowId]),{},ui({},t.companionWindowId,li(li({},n),{},{data:li(li({},n.data),{},ui({},t.searchId,{isFetching:!1,json:t.searchJson}))})))));case to.a.RECEIVE_SEARCH_FAILURE:return li(li({},e),{},ui({},t.windowId,li(li({},e[t.windowId]),{},ui({},t.companionWindowId,li(li({},n),{},{data:li(li({},n.data),{},ui({},t.searchId,{error:t.error,isFetching:!1}))})))));case to.a.REMOVE_SEARCH:return li(li({},e),{},ui({},t.windowId,Object.keys(e[t.windowId]).reduce((function(n,r){return r!==t.companionWindowId&&(n[r]=e[t.windowId][r]),n}),{})));case to.a.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:return li(li({},e),{},ui({},t.windowId,li(li({},e[t.windowId]),{},ui({},t.companionWindowId,li(li({},n),{},{selectedContentSearchAnnotationIds:t.annotationIds})))));case to.a.SELECT_ANNOTATION:return e[t.windowId]?li(li({},e),{},ui({},t.windowId,Object.keys(e[t.windowId]).reduce((function(n,r){var o=e[t.windowId][r],i=o.data&&Object.values(o.data).filter((function(e){return e.json&&e.json.resources})).some((function(e){return si()([e.json.resources]).some((function(e){return e["@id"]===t.annotationId}))}));return n[r]=i?li(li({},o),{},{selectedContentSearchAnnotationIds:[t.annotationId]}):o,n}),{}))):e;case to.a.IMPORT_MIRADOR_STATE:return{};case to.a.REMOVE_WINDOW:return eo()(e,t.windowId);case to.a.REMOVE_COMPANION_WINDOW:return e[t.windowId]?li(li({},e),{},ui({},t.windowId,li({},eo()(e[t.windowId],t.id)))):e;default:return e}};function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach((function(t){hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.UPDATE_VIEWPORT:return pi(pi({},e),{},hi({},t.windowId,pi(pi({},e[t.windowId]),t.payload)));case to.a.REMOVE_WINDOW:return eo()(e,t.windowId);case to.a.SET_WINDOW_VIEW_TYPE:return Eo()([t.windowId],null,e);case to.a.SET_CANVAS:return t.preserveViewport?e:Eo()([t.windowId],null,e);case to.a.IMPORT_MIRADOR_STATE:return t.state.viewers||{};default:return e}};function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case to.a.ADD_WINDOW:return vi(vi({},e),{},bi({},t.window.id,t.window));case to.a.MAXIMIZE_WINDOW:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{maximized:!0})));case to.a.MINIMIZE_WINDOW:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{maximized:!1})));case to.a.UPDATE_WINDOW:return So()([t.id],(function(e){return vi(vi({},e||{}),t.payload)}),e);case to.a.REMOVE_WINDOW:return eo()(e,[t.windowId]);case to.a.TOGGLE_WINDOW_SIDE_BAR:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{sideBarOpen:!e[t.windowId].sideBarOpen})));case to.a.SET_WINDOW_VIEW_TYPE:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{view:t.viewType})));case to.a.UPDATE_WINDOW_POSITION:return vi(vi({},e),{},bi({},t.payload.windowId,vi(vi({},e[t.payload.windowId]),{},{x:t.payload.position.x,y:t.payload.position.y})));case to.a.SET_WINDOW_SIZE:return vi(vi({},e),{},bi({},t.payload.windowId,vi(vi({},e[t.payload.windowId]),{},{height:t.payload.size.height,width:t.payload.size.width,x:t.payload.size.x,y:t.payload.size.y})));case to.a.SET_CANVAS:return e[t.windowId]?So()([t.windowId],(function(e){return vi(vi({},e||{}),{},{canvasId:t.canvasId,visibleCanvases:t.visibleCanvases||[]})}),e):e;case to.a.ADD_COMPANION_WINDOW:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.concat([t.id])},"left"===t.payload.position?{companionAreaOpen:!0,sideBarPanel:t.payload.content}:{})));case to.a.UPDATE_COMPANION_WINDOW:return"left"!==t.payload.position?e:vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{companionAreaOpen:!0})));case to.a.REMOVE_COMPANION_WINDOW:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.filter((function(e){return e!==t.id}))})));case to.a.SELECT_ANNOTATION:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{selectedAnnotationId:t.annotationId})));case to.a.DESELECT_ANNOTATION:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{selectedAnnotationId:void 0})));case to.a.HOVER_ANNOTATION:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{hoveredAnnotationIds:t.annotationIds})));case to.a.TOGGLE_ANNOTATION_DISPLAY:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{highlightAllAnnotations:!e[t.windowId].highlightAllAnnotations})));case to.a.IMPORT_MIRADOR_STATE:return t.state.windows||[];case to.a.REQUEST_SEARCH:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{suggestedSearches:void 0})));case to.a.SHOW_COLLECTION_DIALOG:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{collectionDialogOn:!0,collectionManifestId:t.manifestId,collectionPath:t.collectionPath})));case to.a.HIDE_COLLECTION_DIALOG:return vi(vi({},e),{},bi({},t.windowId,vi(vi({},e[t.windowId]),{},{collectionDialogOn:!1})));default:return e}};function wi(e){return function(e){if(Array.isArray(e))return Oi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(e){return void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height}function Ti(e,t){return t.x-t.width/2>e.x-e.width/2&&t.y-t.height/2>e.y-e.height/2&&t.x+t.width/2<e.x+e.width/2&&t.y+t.height/2<e.y+e.height/2}var _i=function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xi(xi({},Io.a.workspace),{},{windowIds:[]}),o=arguments.length>1?arguments[1]:void 0;switch(o.type){case to.a.UPDATE_WORKSPACE:return xi(xi({},r),o.config);case to.a.FOCUS_WINDOW:return xi(xi({},r),{},{focusedWindowId:o.windowId,viewportPosition:xi(xi({},r.viewportPosition),o.position)});case to.a.ADD_WINDOW:return xi(xi({},r),{},{focusedWindowId:o.window.id,windowIds:[].concat(wi(r.windowIds||[]),[o.window.id])});case to.a.REMOVE_WINDOW:return n=(r.windowIds||[]).filter((function(e){return e!==o.windowId})),xi(xi({},r),{},{focusedWindowId:o.windowId===r.focusedWindowId?n[n.length-1]:r.focusedWindowId,windowIds:n});case to.a.SET_WORKSPACE_FULLSCREEN:return xi(xi({},r),{},{isFullscreenEnabled:o.isFullscreenEnabled});case to.a.TOGGLE_ZOOM_CONTROLS:return xi(xi({},r),{},{showZoomControls:o.showZoomControls});case to.a.UPDATE_WORKSPACE_MOSAIC_LAYOUT:return xi(xi({},r),{},{layout:o.layout});case to.a.SET_WORKSPACE_ADD_VISIBILITY:return xi(xi({},r),{},{isWorkspaceAddVisible:o.isWorkspaceAddVisible});case to.a.SET_WORKSPACE_VIEWPORT_POSITION:return e={},ji(t=xi(xi({},r.viewportPosition),o.payload.position))&&!Ti({height:r.height,width:r.width,x:0,y:0},t)&&(e={height:2*r.height,width:2*r.width}),xi(xi(xi({},r),e),{},{viewportPosition:t});case to.a.SET_CONFIG:case to.a.IMPORT_CONFIG:case to.a.UPDATE_CONFIG:return xi(xi({},r),o.config.workspace);case to.a.IMPORT_MIRADOR_STATE:return o.state.workspace||{};case to.a.TOGGLE_DRAGGING:return xi(xi({},r),{},{draggingEnabled:!r.draggingEnabled});default:return r}};function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(e){return Object(x.combineReducers)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach((function(t){Ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({accessTokens:io,annotations:lo,auth:ho,catalog:wo,companionWindows:Co,config:Do,elasticLayout:zo,errors:$o,infoResponses:Xo,layers:ti,manifests:ii,searches:fi,viewers:gi,windows:yi,workspace:_i},e))}var ki=n(15),Ri=n.n(ki),Ai=function(e){return{done:!0,value:e}},Di={};function Mi(e){return Cn(e)?"channel":In(e)?String(e):En(e)?e.name:String(e)}function Ni(e,t,n){var r,o,i,a=t;function s(t,n){if(a===Di)return Ai(t);if(n&&!o)throw a=Di,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===Di?Ai(t):i}return Bn(s,(function(e){return s(null,e)}),n)}function Li(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:ar(e)},s=function(e){return{done:!1,value:fr.apply(void 0,[t].concat(r,[e]))}},c=function(e){return i=e};return Ni({q1:function(){return{nextState:"q2",effect:a,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:s(i)}}},"q1","takeEvery("+Mi(e)+", "+t.name+")")}function zi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return fr.apply(void 0,[Li,e,t].concat(r))}var Wi=n(143),Bi=n(381),Fi=n.n(Bi),Hi=n(34),Ui=n(142),Vi=n.n(Ui),Gi=n(497),qi=n(499),$i=n(500),Ki=n(496),Zi=n(498),Yi=n(53),Xi=n(36);function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach((function(t){ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ta=Ri.a.mark(da),na=Ri.a.mark(pa),ra=Ri.a.mark(ha),oa=Ri.a.mark(ga),ia=Ri.a.mark(ma),aa=Ri.a.mark(va),sa=Ri.a.mark(ba),ca=Ri.a.mark(ya),la=Ri.a.mark(wa),ua=Ri.a.mark(Oa);function fa(e,t,n){var r=n.success,o=n.degraded,i=n.failure;return Fi()(e,t).then((function(e){return e.json().then((function(t){return 401===e.status?(o||r)({json:t,response:e}):e.ok?r({json:t,response:e}):i({error:e.statusText,json:t,response:e})})).catch((function(t){return i({error:t,response:e})}))})).catch((function(e){return i({error:e})}))}function da(e,t,n){var r,o,i,a,s,c,l,u,f,d;return Ri.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return r=n.success,o=n.degraded,i=n.failure,p.next=3,pr(T.e);case 3:return a=p.sent,s=a.preprocessors,c=void 0===s?[]:s,l=a.postprocessors,u=void 0===l?[]:l,p.prev=8,f=c.reduce((function(t,n){return n(e,t)||t}),t),p.next=12,ur(fa,e,f,{degraded:o,failure:i,success:r});case 12:return d=p.sent,d=u.reduce((function(t,n){return n(e,t)||t}),d),p.abrupt("return",d);case 17:return p.prev=17,p.t0=p.catch(8),p.abrupt("return",i({error:p.t0}));case 20:case"end":return p.stop()}}),ta,null,[[8,17]])}function pa(e,t,n,r){var o,i,a,s,c,l,u,f,d,p,h,g;return Ri.a.wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(o=r.degraded,i=r.failure,a=r.success,s=Ji({},n),!t){m.next=8;break}return m.next=5,ur(ga,t);case 5:l=m.sent,c=l&&l.id,l&&l.json&&(s.headers=Ji({Authorization:"Bearer ".concat(l.json.accessToken)},n.headers));case 8:return m.next=10,ur(da,e,s,{failure:function(e){return e},success:function(e){return e}});case 10:if(u=m.sent,f=u.error,d=u.json,p=u.response,!f){m.next=18;break}return m.next=17,sr(i({error:f,json:d,response:p,tokenServiceId:c}));case 17:return m.abrupt("return");case 18:if(h=d["@id"]||d.id,!p.ok){m.next=26;break}if(Vi()(h,{stripAuthentication:!1})!==Vi()(e.replace(/info\.json$/,""),{stripAuthentication:!1})){m.next=24;break}return m.next=23,sr(a({json:d,response:p,tokenServiceId:c}));case 23:return m.abrupt("return");case 24:m.next=30;break;case 26:if(401===p.status){m.next=30;break}return m.next=29,sr(i({error:f,json:d,response:p,tokenServiceId:c}));case 29:return m.abrupt("return");case 30:return m.next=32,ur(ga,d);case 32:if(!(g=m.sent)||g.id===c){m.next=37;break}return m.next=36,ur(pa,e,d,n,{degraded:o,failure:i,success:a});case 36:return m.abrupt("return");case 37:return m.next=39,sr((o||a)({json:d,response:p,tokenServiceId:c}));case 39:case"end":return m.stop()}}),na)}function ha(e){var t,n,r;return Ri.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.manifestId,n={failure:function(e){var n=e.error;e.json,e.response;return Object(Gi.c)(t,"object"==typeof n?String(n):n)},success:function(e){var n=e.json;e.response;return Object(Gi.b)(t,n)}},o.next=4,ur(da,t,{},n);case 4:return r=o.sent,o.next=7,sr(r);case 7:case"end":return o.stop()}}),ra)}function ga(e){var t,n,r,o,i,a,s;return Ri.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e&&e.__jsonld?e:Ji(Ji({},e),{},{options:{}}),0!==(n=Hi.d.getServices(t).filter((function(e){return e.getProfile().match(/http:\/\/iiif.io\/api\/auth\//)}))).length){c.next=4;break}return c.abrupt("return",void 0);case 4:return c.next=6,pr(Zi.a);case 6:if(r=c.sent){c.next=9;break}return c.abrupt("return",void 0);case 9:o=0;case 10:if(!(o<n.length)){c.next=19;break}if(i=n[o],a=Hi.d.getService(i,"http://iiif.io/api/auth/1/token")||Hi.d.getService(i,"http://iiif.io/api/auth/0/token"),!(s=a&&r[a.id])||!s.json){c.next=16;break}return c.abrupt("return",s);case 16:o+=1,c.next=10;break;case 19:return c.abrupt("return",void 0);case 20:case"end":return c.stop()}}),oa)}function ma(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.imageResource,n=e.infoId,r=e.windowId,o=t){a.next=6;break}return a.next=5,pr(Yi.p,{infoId:n});case 5:o=a.sent;case 6:return i={degraded:function(e){var t=e.json,o=e.response,i=e.tokenServiceId;return Object(qi.b)(n,t,o.ok,i,r)},failure:function(e){var t=e.error,r=(e.json,e.response,e.tokenServiceId);return Object(qi.d)(n,t,r)},success:function(e){var t=e.json,r=e.response,o=e.tokenServiceId;return Object(qi.c)(n,t,r.ok,o)}},a.next=9,ur(pa,"".concat(n.replace(/\/$/,""),"/info.json"),o,{},i);case 9:case"end":return a.stop()}}),ia)}function va(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.windowId,n=e.companionWindowId,e.query,r=e.searchId,o={failure:function(e){var o=e.error;e.json,e.response;return Object($i.c)(t,n,r,o)},success:function(e){var o=e.json;e.response;return Object($i.b)(t,n,r,o)}},a.next=4,ur(da,r,{},o);case 4:return i=a.sent,a.next=7,sr(i);case 7:case"end":return a.stop()}}),aa)}function ba(e){var t,n,r,o;return Ri.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.targetId,n=e.annotationId,r={failure:function(e){var r=e.error;e.json,e.response;return Object(Ki.d)(t,n,r)},success:function(e){var r=e.json;e.response;return Object(Ki.c)(t,n,r)}},i.next=4,ur(da,n,{},r);case 4:return o=i.sent,i.next=7,sr(o);case 7:case"end":return i.stop()}}),sa)}function ya(e){var t,n;return Ri.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.manifestId,!(n=e.manifestJson)){r.next=5;break}return r.next=4,sr(Object(Gi.b)(t,n));case 4:return r.abrupt("return");case 5:if(t){r.next=7;break}return r.abrupt("return");case 7:return r.next=9,pr(Xi.c)||{};case 9:if(r.sent[t]){r.next=12;break}return r.delegateYield(ha({manifestId:t}),"t0",12);case 12:case"end":return r.stop()}}),ca)}function wa(){var e,t,n,r=arguments;return Ri.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,pr(Xi.c);case 2:e=o.sent,t=0;case 4:if(!(t<r.length)){o.next=12;break}if(n=t<0||r.length<=t?void 0:r[t],e[n]){o.next=9;break}return o.next=9,ur(ha,{manifestId:n});case 9:t+=1,o.next=4;break;case 12:case"end":return o.stop()}}),la)}function Oa(){return Ri.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cr([zi(to.a.REQUEST_MANIFEST,ha),zi(to.a.REQUEST_INFO_RESPONSE,ma),zi(to.a.REQUEST_SEARCH,va),zi(to.a.REQUEST_ANNOTATION,ba),zi(to.a.ADD_RESOURCE,ya)]);case 2:case"end":return e.stop()}}),ua)}var Ea=n(271),xa=n(46),Sa=n(501),ja=n(502),Ta=n(88),_a=n(157),Ca=n(503),Ia=n(264),Pa=Ri.a.mark(qa),ka=Ri.a.mark($a),Ra=Ri.a.mark(Ka),Aa=Ri.a.mark(Za),Da=Ri.a.mark(Ya),Ma=Ri.a.mark(Xa),Na=Ri.a.mark(Ja),La=Ri.a.mark(es),za=Ri.a.mark(ts),Wa=Ri.a.mark(ns),Ba=Ri.a.mark(rs),Fa=Ri.a.mark(os),Ha=Ri.a.mark(is),Ua=Ri.a.mark(as);function Va(e){return function(e){if(Array.isArray(e))return Ga(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ga(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ga(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qa(e){var t,n,r,o;return Ri.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.payload||e.window,n=t.collectionPath,r=t.id,o=t.manifestId){i.next=3;break}return i.abrupt("return");case 3:if(!e.manifest){i.next=8;break}return i.next=6,sr(Object(Gi.b)(o,e.manifest));case 6:i.next=10;break;case 8:return i.next=10,ur.apply(void 0,[wa,o].concat(Va(n||[])));case 10:return i.next=12,ur(Ya,e);case 12:return i.next=14,ur(Xa,e);case 14:if(n){i.next=17;break}return i.next=17,ur(Ka,{manifestId:o,windowId:e.id||e.window.id});case 17:return i.next=19,ur(is,o,r);case 19:case"end":return i.stop()}}),Pa)}function $a(e){var t,n,r;return Ri.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.id,e&&e.payload&&e.payload.sequenceId){o.next=3;break}return o.abrupt("return");case 3:return o.next=5,pr(Yi.f,{windowId:t});case 5:if((n=o.sent)&&n[0]&&n[0].id){o.next=8;break}return o.abrupt("return");case 8:return o.next=10,ur(Sa.a,t,n[0].id);case 10:return r=o.sent,o.next=13,sr(r);case 13:case"end":return o.stop()}}),ka)}function Ka(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.manifestId,n=e.windowId,a.next=3,pr(Ta.q,{manifestId:t});case 3:if(!(r=a.sent)){a.next=10;break}if(o=r.getProperty("partOf"),!(i=Array.isArray(o)?o[0]:o)||!i.id){a.next=10;break}return a.next=10,sr(Object(ja.l)(n,{collectionPath:[i.id]}));case 10:case"end":return a.stop()}}),Ra)}function Za(e){var t;return Ri.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.payload.collectionPath){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,ur.apply(void 0,[wa].concat(Va(t)));case 5:case"end":return n.stop()}}),Aa)}function Ya(e){var t,n,r,o,i,a,s,c,l,u;return Ri.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(t=e.payload||e.window,n=t.canvasId,r=t.canvasIndex,o=t.manifestId,i=e.id||e.window.id,!n){f.next=10;break}return f.next=5,ur(Sa.a,i,n,null,{preserveViewport:!!e.payload});case 5:return a=f.sent,f.next=8,sr(a);case 8:f.next=22;break;case 10:return f.next=12,pr(Ta.q,{manifestId:o});case 12:if(!(s=f.sent)){f.next=22;break}if(c=new Ea.a(s),!(l=c.startCanvas||c.canvasAt(r||0)||c.canvasAt(0))){f.next=22;break}return f.next=19,ur(Sa.a,i,l.id);case 19:return u=f.sent,f.next=22,sr(u);case 22:case"end":return f.stop()}}),Da)}function Xa(e){var t,n,r,o,i,a,s;return Ri.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(e.window&&e.window.defaultSearchQuery){c.next=2;break}return c.abrupt("return");case 2:return t=e.window,n=t.id,r=t.defaultSearchQuery,c.next=5,pr(Ta.l,{windowId:n});case 5:return o=c.sent,c.next=8,pr(_a.c,{position:"left",windowId:n});case 8:if(i=c.sent,a=i[0],!o||!a){c.next=14;break}return s=o&&"".concat(o.id,"?q=").concat(r),c.next=14,sr(Object($i.a)(n,a,s,r));case 14:case"end":return c.stop()}}),Ma)}function Qa(e,t){var n=t.canvasIds,r=t.companionWindowIds,o=t.windowId;return r.reduce((function(t,r){var i=Object(Ca.e)(e,{companionWindowId:r,windowId:o}).resources.find((function(e){return n.includes(e.targetId)}));return i&&(t[r]=[i.id]),t}),{})}function Ja(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.annotationId,t=e.windowId,n=e.visibleCanvases,a.next=3,pr(Ca.g,{windowId:t});case 3:if(r=a.sent,0!==(o=Object.keys(r||{})).length){a.next=7;break}return a.abrupt("return");case 7:return a.next=9,pr(Qa,{canvasIds:n,companionWindowIds:o,windowId:t});case 9:return i=a.sent,a.next=12,cr(Object.keys(i).map((function(e){return sr(Object($i.f)(t,e,i[e]))})));case 12:if(!(Object.values(i).length>0)){a.next=15;break}return a.next=15,sr(Object(Ki.g)(t,Object.values(i)[0][0]));case 15:case"end":return a.stop()}}),Na)}function es(e){var t,n,r,o,i,a,s,c,l,u,f,d;return Ri.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(t=e.pan,n=e.windowId,t){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,pr(_.a);case 5:return r=p.sent,o=r[n]||{},i=o.x,a=o.y,s=o.width,c=o.height,p.next=9,pr(Xi.i);case 9:return l=p.sent,u=l.viewportPosition,f=u.width,d=u.height,p.next=15,sr(Object(j.d)({x:i+s/2-f/2,y:a+c/2-d/2}));case 15:case"end":return p.stop()}}),La)}function ts(e){var t,n,r,o;return Ri.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.windowId,i.next=3,pr(Xi.e,{windowId:t});case 3:return n=i.sent,r=n.canvasId,i.next=7,pr(Yi.c,{canvasId:r,windowId:t});case 7:return o=i.sent,i.next=10,sr(Object(ja.l)(t,{visibleCanvases:(o||[]).map((function(e){return e.id}))}));case 10:case"end":return i.stop()}}),za)}function ns(e){var t,n,r,o;return Ri.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.companionWindowId,n=e.windowId,i.next=3,pr(Ia.c,{windowId:n});case 3:if(r=i.sent,r.switchCanvasOnSearch){i.next=7;break}return i.abrupt("return");case 7:return i.next=9,pr(Ca.k,{companionWindowId:t,windowId:n});case 9:if(0===i.sent.length){i.next=12;break}return i.abrupt("return");case 12:return i.next=14,pr(Ca.l,{companionWindowId:t,windowId:n});case 14:if((o=i.sent)&&0!==o.length){i.next=17;break}return i.abrupt("return");case 17:return i.next=19,sr(Object(Ki.g)(n,o[0].id));case 19:case"end":return i.stop()}}),Wa)}function rs(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.annotationId,n=e.windowId,a.next=3,pr(Yi.l,{windowId:n});case 3:return r=a.sent,a.next=6,pr(Ca.a,{annotationId:t,windowId:n});case 6:if((o=a.sent)&&!r.includes(o.id)){a.next=9;break}return a.abrupt("return");case 9:return a.next=11,ur(Sa.a,n,o.id);case 11:return i=a.sent,a.next=14,sr(i);case 14:case"end":return a.stop()}}),Ba)}function os(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.visibleCanvases,n=e.windowId,a.next=3,pr(Yi.f,{windowId:n});case 3:return r=a.sent,a.next=6,pr(Yi.q);case 6:return o=a.sent,i=(r||[]).filter((function(e){return t.includes(e.id)})),a.next=10,cr(i.map((function(e){return cr(new xa.a(e).iiifImageResources.map((function(e){return!o[e.getServices()[0].id]&&sr(Object(qi.a)({imageResource:e,windowId:n}))})).filter(Boolean))})));case 10:case"end":return a.stop()}}),Fa)}function is(e,t){var n;return Ri.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,pr(Ta.q,{manifestId:e});case 2:if(!(n=r.sent)||!n.isCollection()){r.next=6;break}return r.next=6,sr(Object(ja.j)(e,[],t));case 6:case"end":return r.stop()}}),Ha)}function as(){return Ri.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cr([zi(to.a.ADD_WINDOW,qa),zi(to.a.UPDATE_WINDOW,qa),zi(to.a.UPDATE_WINDOW,$a),zi(to.a.SET_CANVAS,Ja),zi(to.a.SET_CANVAS,os),zi(to.a.UPDATE_COMPANION_WINDOW,Za),zi(to.a.SET_WINDOW_VIEW_TYPE,ts),zi(to.a.RECEIVE_SEARCH,ns),zi(to.a.SELECT_ANNOTATION,rs),zi(to.a.FOCUS_WINDOW,es)]);case 2:case"end":return e.stop()}}),Ua)}function ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var us=Ri.a.mark(bs),fs=Ri.a.mark(ys),ds=Ri.a.mark(ws),ps=Ri.a.mark(Os);function hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||ms(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gs(e){return function(e){if(Array.isArray(e))return vs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ms(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ms(e,t){if(e){if("string"==typeof e)return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vs(e,t):void 0}}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bs(e){return Ri.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,cr([].concat(gs(Object.entries(e.state.windows||{}).map((function(e){var t=hs(e,2),n=(t[0],t[1]);return ur(qa,{id:n.id,payload:n})}))),gs(Object.entries(e.state.manifests||{}).filter((function(e){var t=hs(e,2);t[0];return!t[1].json})).map((function(e){var t=hs(e,2);t[0];return ur(wa,t[1].id)})))));case 2:case"end":return t.stop()}}),us)}function ys(e){var t,n,r,o;return Ri.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.config,n=t.thumbnailNavigation,(r=t.windows)&&0!==r.length){i.next=3;break}return i.abrupt("return");case 3:return i.next=5,cr(r.map((function(e){var t="window-".concat(Object(Wi.a)()),r=e.manifestId||e.loadedManifest;return ur(ja.a,cs({id:t,manifestId:r,thumbnailNavigationPosition:n&&n.defaultPosition},e))})));case 5:return o=i.sent,i.next=8,cr(o.map((function(e){return sr(e)})));case 8:case"end":return i.stop()}}),fs)}function ws(e){var t,n;return Ri.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.collectionPath,n=e.manifestId,r.next=3,ur.apply(void 0,[wa,n].concat(gs(t)));case 3:case"end":return r.stop()}}),ds)}function Os(){return Ri.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cr([zi(to.a.IMPORT_MIRADOR_STATE,bs),zi(to.a.IMPORT_CONFIG,ys),zi(to.a.SHOW_COLLECTION_DIALOG,ws)]);case 2:case"end":return e.stop()}}),ps)}var Es=n(529),xs=Ri.a.mark(Cs),Ss=Ri.a.mark(Is),js=Ri.a.mark(Ps);function Ts(e){return function(e){if(Array.isArray(e))return _s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.canvasId,n=e.windowId,a.next=3,pr(Yi.a,{canvasId:t,windowId:n});case 3:return r=a.sent,a.next=6,pr(Es.c);case 6:return o=a.sent,i=new xa.a(r),a.next=10,cr([].concat(Ts(i.annotationListUris.filter((function(e){return!(o[r.id]&&o[r.id][e])})).map((function(e){return sr(Object(Ki.e)(r.id,e))}))),Ts(i.canvasAnnotationPages.filter((function(e){return!(o[r.id]&&o[r.id][e.id])})).map((function(e){return e.items?sr(Object(Ki.c)(r.id,e.id,e)):sr(Object(Ki.e)(r.id,e.id))})))));case 10:return a.abrupt("return",a.sent);case 11:case"end":return a.stop()}}),xs)}function Is(e){var t,n,r;return Ri.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.visibleCanvases,n=void 0===t?[]:t,r=e.windowId,o.next=3,cr(n.map((function(e){return sr(Object(Ki.f)(r,e))})));case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),Ss)}function Ps(){return Ri.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cr([zi(to.a.REQUEST_CANVAS_ANNOTATIONS,Cs),zi(to.a.SET_CANVAS,Is)]);case 2:case"end":return e.stop()}}),js)}var ks=n(505),Rs=Ri.a.mark(zs),As=Ri.a.mark(Ws),Ds=Ri.a.mark(Bs),Ms=Ri.a.mark(Fs),Ns=Ri.a.mark(Hs),Ls=Ri.a.mark(Us);function zs(e){var t;return Ri.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.tokenServiceId,n.next=3,hr(2e3);case 3:return n.next=5,ur(Ws,{serviceId:t});case 5:case"end":return n.stop()}}),Rs)}function Ws(e){var t,n,r,o,i,a,s;return Ri.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.serviceId,c.next=3,pr(Xi.h);case 3:return n=c.sent,c.next=6,cr(Object.keys(n).map((function(e){return pr(Yi.o,{windowId:e})})));case 6:return r=c.sent,o=si()(si()(r).map((function(e){return new xa.a(e).imageServiceIds}))),c.next=10,pr(Yi.q);case 10:return i=c.sent,a=function(e){return Hi.d.getServices(e).some((function(e){var n=Hi.d.getService(e,"http://iiif.io/api/auth/1/token")||Hi.d.getService(e,"http://iiif.io/api/auth/0/token");return n&&n.id===t}))},s=Object.values(i).filter((function(e){return e.json&&a(e.json)})),c.next=15,cr(s.map((function(e){var t=e.id;return o.includes(t)?ur(ma,{infoId:t}):sr({infoId:t,type:to.a.REMOVE_INFO_RESPONSE})})));case 15:case"end":return c.stop()}}),As)}function Bs(e){var t,n,r,o,i,a,s,c,l,u;return Ri.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.infoJson,n=e.windowId,f.next=3,pr(Zi.b);case 3:return r=f.sent,f.next=6,pr(T.a);case 6:if(o=f.sent,i=o.auth,a=(i=void 0===i?{}:i).serviceProfiles,s=(void 0===a?[]:a).filter((function(e){return e.external||e.kiosk})),c=Hi.d.getServices(t).filter((function(e){return!r[e.id]})).find((function(e){return s.some((function(t){return t.profile===e.getProfile()}))}))){f.next=14;break}return f.abrupt("return");case 14:if(!(l=s.find((function(e){return e.profile===c.getProfile()}))).kiosk){f.next=20;break}return f.next=18,sr(Object(ks.a)(n,c.id,c.getProfile()));case 18:f.next=28;break;case 20:if(!l.external){f.next=28;break}if(u=Hi.d.getService(c,"http://iiif.io/api/auth/1/token")||Hi.d.getService(c,"http://iiif.io/api/auth/0/token")){f.next=24;break}return f.abrupt("return");case 24:return f.next=26,sr(Object(ks.g)(c.id,u.id));case 26:return f.next=28,sr(Object(ks.d)(u.id,c.id));case 28:case"end":return f.stop()}}),Ds)}function Fs(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.infoJson,e.windowId,n=e.tokenServiceId){a.next=3;break}return a.abrupt("return");case 3:if(r=Hi.d.getServices(t).find((function(e){var t=Hi.d.getService(e,"http://iiif.io/api/auth/1/token")||Hi.d.getService(e,"http://iiif.io/api/auth/0/token");return t&&t.id===n})),r){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,pr(Zi.a);case 8:if(o=a.sent,(i=o[n])&&i.success){a.next=12;break}return a.abrupt("return");case 12:return a.next=14,sr(Object(ks.d)(n,r.id));case 14:case"end":return a.stop()}}),Ms)}function Hs(e){var t,n,r,o,i;return Ri.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.serviceId,a.next=3,pr(Zi.a);case 3:return n=a.sent,a.next=6,pr(Zi.b);case 6:if(r=a.sent,o=n[t]){a.next=10;break}return a.abrupt("return");case 10:if(i=r[o.authId]){a.next=13;break}return a.abrupt("return");case 13:if(!o.success){a.next=18;break}return a.next=16,sr(Object(ks.e)({authServiceId:i.id,tokenServiceId:o.id}));case 16:a.next=20;break;case 18:return a.next=20,sr(Object(ks.g)(i.id,o.id,{ok:!1}));case 20:case"end":return a.stop()}}),Ns)}function Us(){return Ri.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cr([zi(to.a.RECEIVE_DEGRADED_INFO_RESPONSE,Fs),zi(to.a.RECEIVE_ACCESS_TOKEN_FAILURE,Hs),zi(to.a.RECEIVE_DEGRADED_INFO_RESPONSE,Bs),zi(to.a.RECEIVE_ACCESS_TOKEN,Ws),zi(to.a.RESET_AUTHENTICATION_STATE,zs)]);case 2:case"end":return e.stop()}}),Ls)}function Vs(e){return function(e){if(Array.isArray(e))return Gs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qs=Ri.a.mark($s);function $s(e){return Ri.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=1,t.next=4,ur(e);case 4:return t.abrupt("break",12);case 7:t.prev=7,t.t0=t.catch(1),console.log(t.t0);case 10:t.next=0;break;case 12:case"end":return t.stop()}}),qs,null,[[1,7]])}var Ks=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Ri.a.mark((function t(){var n;return Ri.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[Ps,Os,Oa,as,Us].concat(Vs(e)),t.next=3,cr(n.map((function(e){return dr($s,e)})));case 3:case"end":return t.stop()}}),t)}))};function Zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ys=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Pi(e),r=Io.a.state.slice?Object(x.combineReducers)(Zs({},Io.a.state.slice,n)):n,o=Xr(),i=Object(x.createStore)(r,Object(Qr.composeWithDevTools)(Object(x.applyMiddleware)(an,o)));return o.run(Ks(t)),i},Xs=n(266);var Qs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Jt(t),r=Ys(en(n),nn(n));return r.dispatch(Object(Xs.a)(_t()(tn(n),e))),r};function Js(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Js(this,e),this.plugins=Jt(n.plugins||[]),this.config=t,this.store=n.store||Qs(this.config,this.plugins),t.id&&c.a.render(this.render(),document.getElementById(t.id))}var t,n,r;return t=e,n=[{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.a.createElement(l.a,{store:this.store},a.a.createElement(jt,Object.assign({plugins:this.plugins},e)))}},{key:"unmount",value:function(){this.config.id&&c.a.unmountComponentAtNode(document.getElementById(this.config.id))}}],n&&ec(t.prototype,n),r&&ec(t,r),e}(),nc=tc;var rc={viewer:function(e,t){var n;return n=Array.isArray(t)?{plugins:t}:t,new nc(e,n)}},oc=n(20),ic=n(16),ac={actions:oc,createStore:Ys,reducers:o,sagas:r,selectors:ic};function sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach((function(t){lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=cc(cc({},rc),ac)},function(e,t,n){"use strict";n.r(t);var r,o=n(14);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));var i=1,a=0;function s(e){return void 0===e.button||e.button===a}function c(e){return!!e.targetTouches}function l(e,t){return c(e)?function(e,t){return 1===e.targetTouches.length?l(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?l(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var u=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d,p=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=n,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(r[e]=t[e])}))}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&f(t.prototype,n),r&&f(t,r),e}();function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(g(d={},r.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),g(d,r.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),g(d,r.keyboard,{keydown:"keydown"}),d),v=function(){function e(t,n,o){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){return function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}}(a.sourceNodes[e])},this.handleTopMoveStartCapture=function(e){s(e)&&(a.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(a.moveStartSourceIds)&&a.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(s(e)){var t=l(e);t&&(c(e)&&(a.lastTargetTouchFallback=e.targetTouches[0]),a._mouseClientOffset=t),a.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(s(e)){var t=e.type===m.touch.start?a.options.delayTouchStart:a.options.delayMouseStart;a.timeout=setTimeout(a.handleTopMoveStart.bind(a,e),t),a.waitingForDelay=!0}},this.handleTopMoveCapture=function(){a.dragOverTargetIds=[]},this.handleMove=function(e,t){a.dragOverTargetIds&&a.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(a.timeout&&clearTimeout(a.timeout),a.document&&!a.waitingForDelay){var t,n,r,o,i=a.moveStartSourceIds,s=a.dragOverTargetIds,c=a.options.enableHoverOutsideTarget,u=l(e,a.lastTargetTouchFallback);if(u)if(a._isScrolling||!a.monitor.isDragging()&&function(e,t,n,r,o){if(!o)return!1;for(var i=180*Math.atan2(r-t,n-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(a._mouseClientOffset.x||0,a._mouseClientOffset.y||0,u.x,u.y,a.options.scrollAngleRanges))a._isScrolling=!0;else if(!a.monitor.isDragging()&&a._mouseClientOffset.hasOwnProperty("x")&&i&&(t=a._mouseClientOffset.x||0,n=a._mouseClientOffset.y||0,r=u.x,o=u.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(o-n),2))>(a.options.touchSlop?a.options.touchSlop:0))&&(a.moveStartSourceIds=void 0,a.actions.beginDrag(i,{clientOffset:a._mouseClientOffset,getSourceClientOffset:a.getSourceClientOffset,publishSource:!1})),a.monitor.isDragging()){var f=a.sourceNodes[a.monitor.getSourceId()];a.installSourceNodeRemovalObserver(f),a.actions.publishDragSource(),e.preventDefault();var d=(s||[]).map((function(e){return a.targetNodes[e]})),p=a.options.getDropTargetElementsAtPoint?a.options.getDropTargetElementsAtPoint(u.x,u.y,d):a.document.elementsFromPoint(u.x,u.y),h=[];for(var g in p)if(p.hasOwnProperty(g)){var m=p[g];for(h.push(m);m;)m=m.parentElement,-1===h.indexOf(m)&&h.push(m)}var v=h.filter((function(e){return d.indexOf(e)>-1})).map((function(e){for(var t in a.targetNodes)if(e===a.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(c)for(var b in a.targetNodes)if(a.targetNodes[b]&&a.targetNodes[b].contains(f)&&-1===v.indexOf(b)){v.unshift(b);break}v.reverse(),a.actions.hover(v,{clientOffset:u})}}},this.handleTopMoveEndCapture=function(e){a._isScrolling=!1,a.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&i)}(e)&&(a.monitor.isDragging()&&!a.monitor.didDrop()?(e.preventDefault(),a._mouseClientOffset={},a.uninstallSourceNodeRemovalObserver(),a.actions.drop(),a.actions.endDrag()):a.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&a.monitor.isDragging()&&(a._mouseClientOffset={},a.uninstallSourceNodeRemovalObserver(),a.actions.endDrag())},this.options=new p(o,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}var t,n,a;return t=e,(n=[{key:"setup",value:function(){this.window&&(Object(o.a)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,r){var o=u?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=m[r][t];i&&e.addEventListener(i,n,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=u?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=m[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes[e]=t,this.addEventListener(t,"start",r),function(){delete n.sourceNodes[e],n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){return null};var r=function(r){if(n.document&&n.monitor.isDragging()){var o;switch(r.type){case m.mouse.move:o={x:r.clientX,y:r.clientY};break;case m.touch.move:o={x:r.touches[0].clientX,y:r.touches[0].clientY}}var i=null!=o?n.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(r,e):void 0}};return this.addEventListener(this.document.body,"move",r),this.targetNodes[e]=t,function(){n.document&&(delete n.targetNodes[e],n.removeEventListener(n.document.body,"move",r))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&h(t.prototype,n),a&&h(t,a),e}();t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new v(e,t,n)}},function(e,t,n){"use strict";n.r(t);n(627),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(635),n(636),n(637),n(638),n(639),n(640),n(641),n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(234),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(671),n(672),n(673),n(674),n(675),n(677),n(678),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(743),n(744),n(745),n(746),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(443),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(444),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(841),n(451),n(842);self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},c=function e(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:e,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?"".concat(s[t],",").concat(n):n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))})},function(e,t,n){"use strict";function r(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e[r]=n,e}),{})}function o(e){return"number"==typeof e}function i(e,t){return-1!==e.indexOf(t)}function a(e,t,n,r){return t+(o=n,0===parseFloat(o)?o:"-"===o[0]?o.slice(1):"-"+o)+r;var o}function s(e){return e.replace(/ +/g," ").split(" ").map((function(e){return e.trim()})).filter(Boolean).reduce((function(e,t){var n=e.list,r=e.state,o=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return r.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+t:n.push(t),r.parensDepth+=o-i,{list:n,state:r}}),{list:[],state:{parensDepth:0}}).list}function c(e){var t=s(e);if(t.length<=3||t.length>4)return e;var n=t[0],r=t[1],o=t[2];return[n,t[3],o,r].join(" ")}n.r(t);var l={padding:function(e){var t=e.value;return o(t)?t:c(t)},textShadow:function(e){return e.value.replace(/(-*)([.|\d]+)/,(function(e,t,n){return"0"===n?e:""+(""===t?"-":"")+n}))},borderColor:function(e){return c(e.value)},borderRadius:function(e){var t=e.value;if(o(t))return t;if(i(t,"/")){var n=t.split("/"),r=n[0],a=n[1];return l.borderRadius({value:r.trim()})+" / "+l.borderRadius({value:a.trim()})}var c=s(t);switch(c.length){case 2:return c.reverse().join(" ");case 4:var u=c[0],f=c[1],d=c[2];return[f,u,c[3],d].join(" ");default:return t}},background:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,i=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex;if(o(t))return t;var s=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(s,l.backgroundPosition({value:s,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:a})),l.backgroundImage({value:t,valuesToConvert:n,bgImgDirectionRegex:i})},backgroundImage:function(e){var t=e.value,n=e.valuesToConvert,r=e.bgImgDirectionRegex;return i(t,"url(")||i(t,"linear-gradient(")?t.replace(r,(function(e,t,r){return e.replace(r,n[r])})):t},backgroundPosition:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return t.replace(r?/^((-|\d|\.)+%)/:null,(function(e,t){return function(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var n=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(n)+"%"}return e}(t)})).replace(o,(function(e){return n[e]}))},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,i=e.bgPosDirectionRegex;return o(t)?t:l.backgroundPosition({value:t,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:i})},transition:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){var t=e.split(" ");return t[0]=n[t[0]]||t[0],t.join(" ")})).join(", ")},transitionProperty:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){return n[e]||e})).join(", ")},transform:function(e){var t=e.value,n="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",r="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+n+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+n+")*)?)|(?:inherit|auto))",o=new RegExp("(translateX\\s*\\(\\s*)"+r+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+r+"((?:\\s*,\\s*"+r+"){0,1}\\s*\\))","gi"),s=new RegExp("(translate3d\\s*\\(\\s*)"+r+"((?:\\s*,\\s*"+r+"){0,2}\\s*\\))","gi"),c=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+r+"(\\s*\\))","gi");return t.replace(o,a).replace(i,a).replace(s,a).replace(c,a)}};l.objectPosition=l.backgroundPosition,l.margin=l.padding,l.borderWidth=l.padding,l.boxShadow=l.textShadow,l.webkitBoxShadow=l.boxShadow,l.mozBoxShadow=l.boxShadow,l.WebkitBoxShadow=l.boxShadow,l.MozBoxShadow=l.boxShadow,l.borderStyle=l.borderColor,l.webkitTransform=l.transform,l.mozTransform=l.transform,l.WebkitTransform=l.transform,l.MozTransform=l.transform,l.transformOrigin=l.backgroundPosition,l.webkitTransformOrigin=l.transformOrigin,l.mozTransformOrigin=l.transformOrigin,l.WebkitTransformOrigin=l.transformOrigin,l.MozTransformOrigin=l.transformOrigin,l.webkitTransition=l.transition,l.mozTransition=l.transition,l.WebkitTransition=l.transition,l.MozTransition=l.transition,l.webkitTransitionProperty=l.transitionProperty,l.mozTransitionProperty=l.transitionProperty,l.WebkitTransitionProperty=l.transitionProperty,l.MozTransitionProperty=l.transitionProperty,l["text-shadow"]=l.textShadow,l["border-color"]=l.borderColor,l["border-radius"]=l.borderRadius,l["background-image"]=l.backgroundImage,l["background-position"]=l.backgroundPosition,l["background-position-x"]=l.backgroundPositionX,l["object-position"]=l.objectPosition,l["border-width"]=l.padding,l["box-shadow"]=l.textShadow,l["-webkit-box-shadow"]=l.textShadow,l["-moz-box-shadow"]=l.textShadow,l["border-style"]=l.borderColor,l["-webkit-transform"]=l.transform,l["-moz-transform"]=l.transform,l["transform-origin"]=l.transformOrigin,l["-webkit-transform-origin"]=l.transformOrigin,l["-moz-transform-origin"]=l.transformOrigin,l["-webkit-transition"]=l.transition,l["-moz-transition"]=l.transition,l["transition-property"]=l.transitionProperty,l["-webkit-transition-property"]=l.transitionProperty,l["-moz-transition-property"]=l.transitionProperty;var u=r([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),f=["content"],d=r([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),p=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),h=new RegExp("(left)|(right)");function g(e){return Object.keys(e).reduce((function(t,n){var r=e[n];if("string"==typeof r&&(r=r.trim()),i(f,n))return t[n]=r,t;var a=function(e,t){var n=/\/\*\s?@noflip\s?\*\//.test(t),r=n?e:(a=e,u[a]||a),i=n?t:function(e,t){if(function(e){return null==e}(t)||function(e){return"boolean"==typeof e}(t))return t;if(function(e){return e&&"object"==typeof e}(t))return g(t);var n,r=o(t),i=function(e){return"function"==typeof e}(t),a=r||i?t:t.replace(/ !important.*?$/,""),s=!r&&a.length!==t.length,c=l[e];n=c?c({value:a,valuesToConvert:d,propertiesToConvert:u,isRtl:!0,bgImgDirectionRegex:p,bgPosDirectionRegex:h}):d[a]||a;if(s)return n+" !important";return n}(r,t);var a;return{key:r,value:i}}(n,r),s=a.key,c=a.value;return t[s]=c,t}),Array.isArray(e)?[]:{})}t.default=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(275),o=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,a=void 0===i?"jss":i,s=e.seed,c=void 0===s?"":s,l=""===c?"":"".concat(c,"-"),u=0,f=function(){return u+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==o.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(l).concat(i,"-").concat(e.key);return t.options.theme[r.a]&&""===c?"".concat(s,"-").concat(f()):s}return"".concat(l).concat(a).concat(f())}}},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(539)),s=n(603),c=n(1051),l=n(102),u=n(89),f=n(28);function d(e){return"function"==typeof e?e():e}var p="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,h={},g=i.forwardRef((function(e,t){var n=e.anchorEl,g=e.children,m=e.container,v=e.disablePortal,b=void 0!==v&&v,y=e.keepMounted,w=void 0!==y&&y,O=e.modifiers,E=e.open,x=e.placement,S=void 0===x?"bottom":x,j=e.popperOptions,T=void 0===j?h:j,_=e.popperRef,C=e.style,I=e.transition,P=void 0!==I&&I,k=Object(o.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),R=i.useRef(null),A=Object(f.a)(R,t),D=i.useRef(null),M=Object(f.a)(D,_),N=i.useRef(M);p((function(){N.current=M}),[M]),i.useImperativeHandle(_,(function(){return D.current}),[]);var L=i.useState(!0),z=L[0],W=L[1],B=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(S,Object(s.a)()),F=i.useState(B),H=F[0],U=F[1];i.useEffect((function(){D.current&&D.current.update()}));var V=i.useCallback((function(){if(R.current&&n&&E){D.current&&(D.current.destroy(),N.current(null));var e=function(e){U(e.placement)},t=(d(n),new a.a(d(n),R.current,Object(r.a)({placement:B},T,{modifiers:Object(r.a)({},b?{}:{preventOverflow:{boundariesElement:"window"}},O,T.modifiers),onCreate:Object(l.a)(e,T.onCreate),onUpdate:Object(l.a)(e,T.onUpdate)})));N.current(t)}}),[n,b,O,E,B,T]),G=i.useCallback((function(e){Object(u.a)(A,e),V()}),[A,V]),q=function(){D.current&&(D.current.destroy(),N.current(null))};if(i.useEffect((function(){return function(){q()}}),[]),i.useEffect((function(){E||P||q()}),[E,P]),!w&&!E&&(!P||z))return null;var $={placement:H};return P&&($.TransitionProps={in:E,onEnter:function(){W(!1)},onExited:function(){W(!0),q()}}),i.createElement(c.a,{disablePortal:b,container:m},i.createElement("div",Object(r.a)({ref:G,role:"tooltip"},k,{style:Object(r.a)({position:"fixed",top:0,left:0,display:E||!w||P?null:"none"},C)}),"function"==typeof g?g($):g))}));t.a=g},function(e,t,n){"use strict";var r=n(0),o=n(32),i=(n(11),n(89)),a=n(28);var s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,c=r.forwardRef((function(e,t){var n=e.children,c=e.container,l=e.disablePortal,u=void 0!==l&&l,f=e.onRendered,d=r.useState(null),p=d[0],h=d[1],g=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return s((function(){u||h(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(c)||document.body)}),[c,u]),s((function(){if(p&&!u)return Object(i.a)(t,p),function(){Object(i.a)(t,null)}}),[t,p,u]),s((function(){f&&(p||u)&&f()}),[f,p,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:g}):n:p?o.createPortal(n,p):p}));t.a=c},function(e,t,n){"use strict";var r=n(1),o=n(49),i=n(5),a=n(0),s=(n(11),n(606)),c=n(52),l=n(69),u=n(28);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,g=e.in,m=e.onEnter,v=e.onEntered,b=e.onEntering,y=e.onExit,w=e.onExited,O=e.onExiting,E=e.style,x=e.timeout,S=void 0===x?"auto":x,j=e.TransitionComponent,T=void 0===j?s.a:j,_=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=a.useRef(),I=a.useRef(),P=Object(c.a)(),k=P.unstable_strictMode&&!h,R=a.useRef(null),A=Object(u.a)(n.ref,t),D=Object(u.a)(k?R:void 0,A),M=function(e){return function(t,n){if(e){var r=k?[R.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},N=M(b),L=M((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:E,timeout:S},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===S?(n=P.transitions.getAutoHeightDuration(e.clientHeight),I.current=n):n=o,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:i}),P.transitions.create("transform",{duration:.666*n,delay:i})].join(","),m&&m(e,t)})),z=M(v),W=M(O),B=M((function(e){var t,n=Object(l.a)({style:E,timeout:S},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===S?(t=P.transitions.getAutoHeightDuration(e.clientHeight),I.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:o}),P.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),y&&y(e)})),F=M(w);return a.useEffect((function(){return function(){clearTimeout(C.current)}}),[]),a.createElement(T,Object(r.a)({appear:!0,in:g,nodeRef:k?R:void 0,onEnter:L,onEntered:z,onEntering:N,onExit:B,onExited:F,onExiting:W,addEndListener:function(e,t){var n=k?e:t;"auto"===S&&(C.current=setTimeout(n,I.current||0))},timeout:"auto"===S?null:S},_),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||g?void 0:"hidden"},d[e],E,n.props.style),ref:D},t))}))}));p.muiSupportAuto=!0,t.a=p},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(116),l=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.component,f=void 0===u?"ul":u,d=e.dense,p=void 0!==d&&d,h=e.disablePadding,g=void 0!==h&&h,m=e.subheader,v=Object(o.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),b=i.useMemo((function(){return{dense:p}}),[p]);return i.createElement(c.a.Provider,{value:b},i.createElement(f,Object(r.a)({className:Object(a.a)(s.root,l,p&&s.dense,!g&&s.padding,m&&s.subheader),ref:t},v),m,n))}));t.a=Object(s.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(l)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(308),l=n(187),u=n(28),f=n(116),d=n(32),p="undefined"==typeof window?i.useEffect:i.useLayoutEffect,h=i.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,g=void 0!==h&&h,m=e.button,v=void 0!==m&&m,b=e.children,y=e.classes,w=e.className,O=e.component,E=e.ContainerComponent,x=void 0===E?"li":E,S=e.ContainerProps,j=(S=void 0===S?{}:S).className,T=Object(o.a)(S,["className"]),_=e.dense,C=void 0!==_&&_,I=e.disabled,P=void 0!==I&&I,k=e.disableGutters,R=void 0!==k&&k,A=e.divider,D=void 0!==A&&A,M=e.focusVisibleClassName,N=e.selected,L=void 0!==N&&N,z=Object(o.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),W=i.useContext(f.a),B={dense:C||W.dense||!1,alignItems:s},F=i.useRef(null);p((function(){g&&F.current&&F.current.focus()}),[g]);var H=i.Children.toArray(b),U=H.length&&Object(l.a)(H[H.length-1],["ListItemSecondaryAction"]),V=i.useCallback((function(e){F.current=d.findDOMNode(e)}),[]),G=Object(u.a)(V,t),q=Object(r.a)({className:Object(a.a)(y.root,w,B.dense&&y.dense,!R&&y.gutters,D&&y.divider,P&&y.disabled,v&&y.button,"center"!==s&&y.alignItemsFlexStart,U&&y.secondaryAction,L&&y.selected),disabled:P},z),$=O||"li";return v&&(q.component=O||"div",q.focusVisibleClassName=Object(a.a)(y.focusVisible,M),$=c.a),U?($=q.component||O?$:"div","li"===x&&("li"===$?$="div":"li"===q.component&&(q.component="div")),i.createElement(f.a.Provider,{value:B},i.createElement(x,Object(r.a)({className:Object(a.a)(y.container,j),ref:G},T),i.createElement($,q,H),H.pop()))):i.createElement(f.a.Provider,{value:B},i.createElement($,Object(r.a)({ref:G},q),H))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h}));var r,o=n(1),i=n(5),a=n(0),s=n.n(a),c=(n(11),n(1049)),l=n(59),u=n(604),f=Object(l.b)(Object(u.a)()),d={disableGeneration:!1,generateClassName:Object(c.a)(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=s.a.createContext(d);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,c=e.disableGeneration,f=void 0!==c&&c,d=Object(i.a)(e,["children","injectFirst","disableGeneration"]),h=s.a.useContext(p),g=Object(o.a)({},h,{disableGeneration:f},d);if(!g.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!r){var m=document.head;r=document.createComment("mui-inject-first"),m.insertBefore(r,m.firstChild)}g.jss=Object(l.b)({plugins:Object(u.a)().plugins,insertionPoint:r})}return s.a.createElement(p.Provider,{value:g},t)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(0),a=(n(11),n(4)),s=n(10),c=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,l=void 0===c?"div":c,u=e.square,f=void 0!==u&&u,d=e.elevation,p=void 0===d?1:d,h=e.variant,g=void 0===h?"elevation":h,m=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(l,Object(o.a)({className:Object(a.a)(n.root,s,"outlined"===g?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},m))}));t.a=Object(s.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(c)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(26),a=n(0),s=(n(11),n(4)),c=n(10),l=a.forwardRef((function(e,t){var n=e.classes,i=e.className,c=e.component,l=void 0===c?"div":c,u=e.disableGutters,f=void 0!==u&&u,d=e.variant,p=void 0===d?"regular":d,h=Object(o.a)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(l,Object(r.a)({className:Object(s.a)(n.root,n[p],i,!f&&n.gutters),ref:t},h))}));t.a=Object(c.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(i.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(l)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(30),l=n(308),u=n(18),f=i.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,c=e.children,f=e.classes,d=e.className,p=e.color,h=void 0===p?"default":p,g=e.disabled,m=void 0!==g&&g,v=e.disableFocusRipple,b=void 0!==v&&v,y=e.size,w=void 0===y?"medium":y,O=Object(o.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(l.a,Object(r.a)({className:Object(a.a)(f.root,d,"default"!==h&&f["color".concat(Object(u.a)(h))],m&&f.disabled,"small"===w&&f["size".concat(Object(u.a)(w))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!b,disabled:m,ref:t},O),i.createElement("span",{className:f.label},c))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(c.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},function(e,t,n){"use strict";n(49);var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(18),l=i.forwardRef((function(e,t){var n=e.anchorOrigin,s=void 0===n?{vertical:"top",horizontal:"right"}:n,l=e.badgeContent,u=e.children,f=e.classes,d=e.className,p=e.color,h=void 0===p?"default":p,g=e.component,m=void 0===g?"span":g,v=e.invisible,b=e.max,y=void 0===b?99:b,w=e.overlap,O=void 0===w?"rectangle":w,E=e.showZero,x=void 0!==E&&E,S=e.variant,j=void 0===S?"standard":S,T=Object(o.a)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),_=v;null==v&&(0===l&&!x||null==l&&"dot"!==j)&&(_=!0);var C="";return"dot"!==j&&(C=l>y?"".concat(y,"+"):l),i.createElement(m,Object(r.a)({className:Object(a.a)(f.root,d),ref:t},T),u,i.createElement("span",{className:Object(a.a)(f.badge,f["".concat(s.horizontal).concat(Object(c.a)(s.vertical),"}")],f["anchorOrigin".concat(Object(c.a)(s.vertical)).concat(Object(c.a)(s.horizontal)).concat(Object(c.a)(O))],"default"!==h&&f["color".concat(Object(c.a)(h))],_&&f.invisible,"dot"===j&&f.dot)},C))}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(l)},function(e,t,n){"use strict";var r=n(1),o=n(49),i=n(5),a=n(26),s=n(0),c=n(32),l=(n(11),n(4)),u=n(382),f=n(30),d=n(10),p=n(18),h=n(1052),g=n(1050),m=n(28),v=n(540),b=n(89),y=n(135),w=n(136),O=n(52);function E(e){return Math.round(1e5*e)/1e5}var x=!1,S=null;var j=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,f=e.children,d=e.classes,E=e.disableFocusListener,j=void 0!==E&&E,T=e.disableHoverListener,_=void 0!==T&&T,C=e.disableTouchListener,I=void 0!==C&&C,P=e.enterDelay,k=void 0===P?100:P,R=e.enterNextDelay,A=void 0===R?0:R,D=e.enterTouchDelay,M=void 0===D?700:D,N=e.id,L=e.interactive,z=void 0!==L&&L,W=e.leaveDelay,B=void 0===W?0:W,F=e.leaveTouchDelay,H=void 0===F?1500:F,U=e.onClose,V=e.onOpen,G=e.open,q=e.placement,$=void 0===q?"bottom":q,K=e.PopperComponent,Z=void 0===K?g.a:K,Y=e.PopperProps,X=e.title,Q=e.TransitionComponent,J=void 0===Q?h.a:Q,ee=e.TransitionProps,te=Object(i.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=Object(O.a)(),re=s.useState(),oe=re[0],ie=re[1],ae=s.useState(null),se=ae[0],ce=ae[1],le=s.useRef(!1),ue=s.useRef(),fe=s.useRef(),de=s.useRef(),pe=s.useRef(),he=Object(w.a)({controlled:G,default:!1,name:"Tooltip",state:"open"}),ge=Object(o.a)(he,2),me=ge[0],ve=ge[1],be=me,ye=Object(v.a)(N);s.useEffect((function(){return function(){clearTimeout(ue.current),clearTimeout(fe.current),clearTimeout(de.current),clearTimeout(pe.current)}}),[]);var we=function(e){clearTimeout(S),x=!0,ve(!0),V&&V(e)},Oe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),le.current&&"touchstart"!==t.type||(oe&&oe.removeAttribute("title"),clearTimeout(fe.current),clearTimeout(de.current),k||x&&A?(t.persist(),fe.current=setTimeout((function(){we(t)}),x?A:k)):we(t))}},Ee=Object(y.a)(),xe=Ee.isFocusVisible,Se=Ee.onBlurVisible,je=Ee.ref,Te=s.useState(!1),_e=Te[0],Ce=Te[1],Ie=function(){_e&&(Ce(!1),Se())},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){oe||ie(t.currentTarget),xe(t)&&(Ce(!0),Oe()(t));var n=f.props;n.onFocus&&e&&n.onFocus(t)}},ke=function(e){clearTimeout(S),S=setTimeout((function(){x=!1}),800+B),ve(!1),U&&U(e),clearTimeout(ue.current),ue.current=setTimeout((function(){le.current=!1}),ne.transitions.duration.shortest)},Re=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ie()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===oe&&n.onMouseLeave(t),clearTimeout(fe.current),clearTimeout(de.current),t.persist(),de.current=setTimeout((function(){ke(t)}),B)}},Ae=function(e){le.current=!0;var t=f.props;t.onTouchStart&&t.onTouchStart(e)},De=Object(m.a)(ie,t),Me=Object(m.a)(je,De),Ne=s.useCallback((function(e){Object(b.a)(Me,c.findDOMNode(e))}),[Me]),Le=Object(m.a)(f.ref,Ne);""===X&&(be=!1);var ze=!be&&!_,We=Object(r.a)({"aria-describedby":be?ye:null,title:ze&&"string"==typeof X?X:null},te,f.props,{className:Object(l.a)(te.className,f.props.className),onTouchStart:Ae,ref:Le}),Be={};I||(We.onTouchStart=function(e){Ae(e),clearTimeout(de.current),clearTimeout(ue.current),clearTimeout(pe.current),e.persist(),pe.current=setTimeout((function(){Oe()(e)}),M)},We.onTouchEnd=function(e){f.props.onTouchEnd&&f.props.onTouchEnd(e),clearTimeout(pe.current),clearTimeout(de.current),e.persist(),de.current=setTimeout((function(){ke(e)}),H)}),_||(We.onMouseOver=Oe(),We.onMouseLeave=Re(),z&&(Be.onMouseOver=Oe(!1),Be.onMouseLeave=Re(!1))),j||(We.onFocus=Pe(),We.onBlur=Re(),z&&(Be.onFocus=Pe(!1),Be.onBlur=Re(!1)));var Fe=s.useMemo((function(){return Object(u.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},Y)}),[se,Y]);return s.createElement(s.Fragment,null,s.cloneElement(f,We),s.createElement(Z,Object(r.a)({className:Object(l.a)(d.popper,z&&d.popperInteractive,a&&d.popperArrow),placement:$,anchorEl:oe,open:!!oe&&be,id:We["aria-describedby"],transition:!0},Be,Fe),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(J,Object(r.a)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:Object(l.a)(d.tooltip,d["tooltipPlacement".concat(Object(p.a)(t.split("-")[0]))],le.current&&d.touch,a&&d.tooltipArrow)},X,a?s.createElement("span",{className:d.arrow,ref:ce}):null))})))}));t.a=Object(d.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(f.a)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(E(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(f.a)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(E(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(j)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(96),n(11),n(32)),s=n(48),c=n(1053),l=n(286),u=n(28);function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function d(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function p(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function h(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&p(s,i)&&!c)return void s.focus();s=o(e,s,n)}}var g="undefined"==typeof window?i.useEffect:i.useLayoutEffect,m=i.forwardRef((function(e,t){var n=e.actions,m=e.autoFocus,v=void 0!==m&&m,b=e.autoFocusItem,y=void 0!==b&&b,w=e.children,O=e.className,E=e.disabledItemsFocusable,x=void 0!==E&&E,S=e.disableListWrap,j=void 0!==S&&S,T=e.onKeyDown,_=e.variant,C=void 0===_?"selectedMenu":_,I=Object(o.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),P=i.useRef(null),k=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});g((function(){v&&P.current.focus()}),[v]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!P.current.style.width;if(e.clientHeight<P.current.clientHeight&&n){var r="".concat(Object(l.a)(!0),"px");P.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,P.current.style.width="calc(100% + ".concat(r,")")}return P.current}}}),[]);var R=i.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),A=Object(u.a)(R,t),D=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===D)&&(D=t))}));var M=i.Children.map(w,(function(e,t){if(t===D){var n={};return y&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===C&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(c.a,Object(r.a)({role:"menu",ref:A,className:O,onKeyDown:function(e){var t=P.current,n=e.key,r=Object(s.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),h(t,r,j,x,f);else if("ArrowUp"===n)e.preventDefault(),h(t,r,j,x,d);else if("Home"===n)e.preventDefault(),h(t,null,j,x,f);else if("End"===n)e.preventDefault(),h(t,null,j,x,d);else if(1===n.length){var o=k.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var c=r&&!o.repeating&&p(r,o);o.previousKeyMatched&&(c||h(t,r,!1,x,f,o))?e.preventDefault():o.previousKeyMatched=!1}T&&T(e)},tabIndex:v?0:-1},I),M)}));t.a=m},function(e,t,n){"use strict";var r=n(5),o=n(26),i=n(1),a=n(0),s=(n(11),n(4)),c=n(10),l=n(1054),u=a.forwardRef((function(e,t){var n,o=e.classes,c=e.className,u=e.component,f=void 0===u?"li":u,d=e.disableGutters,p=void 0!==d&&d,h=e.ListItemClasses,g=e.role,m=void 0===g?"menuitem":g,v=e.selected,b=e.tabIndex,y=Object(r.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==b?b:-1),a.createElement(l.a,Object(i.a)({button:!0,role:m,tabIndex:n,component:f,selected:v,disableGutters:p,classes:Object(i.a)({dense:o.dense},h),className:Object(s.a)(o.root,c,v&&o.selected,!p&&o.gutters),ref:t},y))}));t.a=Object(c.a)((function(e){return{root:Object(i.a)({},e.typography.body1,Object(o.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(i.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(u)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(165),l=n(116),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,f=e.disableTypography,d=void 0!==f&&f,p=e.inset,h=void 0!==p&&p,g=e.primary,m=e.primaryTypographyProps,v=e.secondary,b=e.secondaryTypographyProps,y=Object(o.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),w=i.useContext(l.a).dense,O=null!=g?g:n;null==O||O.type===c.a||d||(O=i.createElement(c.a,Object(r.a)({variant:w?"body2":"body1",className:s.primary,component:"span",display:"block"},m),O));var E=v;return null==E||E.type===c.a||d||(E=i.createElement(c.a,Object(r.a)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},b),E)),i.createElement("div",Object(r.a)({className:Object(a.a)(s.root,u,w&&s.dense,h&&s.inset,O&&E&&s.multiline),ref:t},y),O,E)}));t.a=Object(s.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(u)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(18),c=n(10),l=n(135),u=n(28),f=n(165),d=i.forwardRef((function(e,t){var n=e.classes,c=e.className,d=e.color,p=void 0===d?"primary":d,h=e.component,g=void 0===h?"a":h,m=e.onBlur,v=e.onFocus,b=e.TypographyClasses,y=e.underline,w=void 0===y?"hover":y,O=e.variant,E=void 0===O?"inherit":O,x=Object(o.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),S=Object(l.a)(),j=S.isFocusVisible,T=S.onBlurVisible,_=S.ref,C=i.useState(!1),I=C[0],P=C[1],k=Object(u.a)(t,_);return i.createElement(f.a,Object(r.a)({className:Object(a.a)(n.root,n["underline".concat(Object(s.a)(w))],c,I&&n.focusVisible,"button"===g&&n.button),classes:b,color:p,component:g,onBlur:function(e){I&&(T(),P(!1)),m&&m(e)},onFocus:function(e){j(e)&&P(!0),v&&v(e)},ref:k,variant:E},x))}));t.a=Object(c.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(d)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=n(4),s=(n(11),n(30)),c=n(10),l=i.forwardRef((function(e,t){var n=e.animation,s=void 0===n?"pulse":n,c=e.classes,l=e.className,u=e.component,f=void 0===u?"span":u,d=e.height,p=e.variant,h=void 0===p?"text":p,g=e.width,m=Object(o.a)(e,["animation","classes","className","component","height","variant","width"]),v=Boolean(m.children);return i.createElement(f,Object(r.a)({ref:t,className:Object(a.a)(c.root,c[h],l,v&&[c.withChildren,!g&&c.fitContent,!d&&c.heightAuto],!1!==s&&c[s])},m,{style:Object(r.a)({width:g,height:d},m.style)}))}));t.a=Object(c.a)((function(e){return{root:{display:"block",backgroundColor:Object(s.a)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(l)},function(e,t,n){"use strict";var r=n(1),o=n(49),i=n(5),a=n(0),s=n(4),c=(n(11),n(606)),l=n(10),u=n(56),f=n(69),d=n(52),p=n(28),h=a.forwardRef((function(e,t){var n=e.children,l=e.classes,h=e.className,g=e.collapsedHeight,m=e.collapsedSize,v=void 0===m?"0px":m,b=e.component,y=void 0===b?"div":b,w=e.disableStrictModeCompat,O=void 0!==w&&w,E=e.in,x=e.onEnter,S=e.onEntered,j=e.onEntering,T=e.onExit,_=e.onExited,C=e.onExiting,I=e.style,P=e.timeout,k=void 0===P?u.b.standard:P,R=e.TransitionComponent,A=void 0===R?c.a:R,D=Object(i.a)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),M=Object(d.a)(),N=a.useRef(),L=a.useRef(null),z=a.useRef(),W="number"==typeof(g||v)?"".concat(g||v,"px"):g||v;a.useEffect((function(){return function(){clearTimeout(N.current)}}),[]);var B=M.unstable_strictMode&&!O,F=a.useRef(null),H=Object(p.a)(t,B?F:void 0),U=function(e){return function(t,n){if(e){var r=B?[F.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},V=U((function(e,t){e.style.height=W,x&&x(e,t)})),G=U((function(e,t){var n=L.current?L.current.clientHeight:0,r=Object(f.a)({style:I,timeout:k},{mode:"enter"}).duration;if("auto"===k){var o=M.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),z.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),j&&j(e,t)})),q=U((function(e,t){e.style.height="auto",S&&S(e,t)})),$=U((function(e){var t=L.current?L.current.clientHeight:0;e.style.height="".concat(t,"px"),T&&T(e)})),K=U(_),Z=U((function(e){var t=L.current?L.current.clientHeight:0,n=Object(f.a)({style:I,timeout:k},{mode:"exit"}).duration;if("auto"===k){var r=M.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),z.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=W,C&&C(e)}));return a.createElement(A,Object(r.a)({in:E,onEnter:V,onEntered:q,onEntering:G,onExit:$,onExited:K,onExiting:Z,addEndListener:function(e,t){var n=B?e:t;"auto"===k&&(N.current=setTimeout(n,z.current||0))},nodeRef:B?F:void 0,timeout:"auto"===k?null:k},D),(function(e,t){return a.createElement(y,Object(r.a)({className:Object(s.a)(l.root,l.container,h,{entered:l.entered,exited:!E&&"0px"===W&&l.hidden}[e]),style:Object(r.a)({minHeight:W},I),ref:H},t),a.createElement("div",{className:l.wrapper,ref:L},a.createElement("div",{className:l.wrapperInner},n)))}))}));h.muiSupportAuto=!0,t.a=Object(l.a)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(h)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(161),c=n(10),l=n(18),u=n(187),f=n(117),d=i.forwardRef((function(e,t){var n=e.children,c=e.classes,d=e.className,p=e.color,h=void 0===p?"primary":p,g=e.component,m=void 0===g?"div":g,v=e.disabled,b=void 0!==v&&v,y=e.error,w=void 0!==y&&y,O=e.fullWidth,E=void 0!==O&&O,x=e.focused,S=e.hiddenLabel,j=void 0!==S&&S,T=e.margin,_=void 0===T?"none":T,C=e.required,I=void 0!==C&&C,P=e.size,k=e.variant,R=void 0===k?"standard":k,A=Object(o.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),D=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if(Object(u.a)(t,["Input","Select"])){var n=Object(u.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),M=D[0],N=D[1],L=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){Object(u.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),z=L[0],W=L[1],B=i.useState(!1),F=B[0],H=B[1],U=void 0!==x?x:F;b&&U&&H(!1);var V=i.useCallback((function(){W(!0)}),[]),G={adornedStart:M,setAdornedStart:N,color:h,disabled:b,error:w,filled:z,focused:U,fullWidth:E,hiddenLabel:j,margin:("small"===P?"dense":void 0)||_,onBlur:function(){H(!1)},onEmpty:i.useCallback((function(){W(!1)}),[]),onFilled:V,onFocus:function(){H(!0)},registerEffect:undefined,required:I,variant:R};return i.createElement(f.a.Provider,{value:G},i.createElement(m,Object(r.a)({className:Object(a.a)(c.root,d,"none"!==_&&c["margin".concat(Object(l.a)(_))],E&&c.fullWidth),ref:t},A),n))}));t.a=Object(c.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(d)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(605),c=n(10),l=i.forwardRef((function(e,t){var n=e.disableUnderline,c=e.classes,l=e.fullWidth,u=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,g=e.type,m=void 0===g?"text":g,v=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.a,Object(r.a)({classes:Object(r.a)({},c,{root:Object(a.a)(c.root,!n&&c.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:h,ref:t,type:m},v))}));l.muiName="Input",t.a=Object(c.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(l)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(605),c=n(10),l=i.forwardRef((function(e,t){var n=e.disableUnderline,c=e.classes,l=e.fullWidth,u=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,g=e.type,m=void 0===g?"text":g,v=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.a,Object(r.a)({classes:Object(r.a)({},c,{root:Object(a.a)(c.root,!n&&c.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:h,ref:t,type:m},v))}));l.muiName="Input",t.a=Object(c.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(l)},function(e,t,n){"use strict";var r=n(5),o=n(26),i=n(1),a=n(0),s=(n(11),n(4)),c=n(10),l=n(308),u=n(18),f=a.forwardRef((function(e,t){var n=e.classes,o=e.className,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,h=e.fullWidth,g=e.icon,m=e.indicator,v=e.label,b=e.onChange,y=e.onClick,w=e.onFocus,O=e.selected,E=e.selectionFollowsFocus,x=e.textColor,S=void 0===x?"inherit":x,j=e.value,T=e.wrapped,_=void 0!==T&&T,C=Object(r.a)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return a.createElement(l.a,Object(i.a)({focusRipple:!p,className:Object(s.a)(n.root,n["textColor".concat(Object(u.a)(S))],o,f&&n.disabled,O&&n.selected,v&&g&&n.labelIcon,h&&n.fullWidth,_&&n.wrapped),ref:t,role:"tab","aria-selected":O,disabled:f,onClick:function(e){b&&b(e,j),y&&y(e)},onFocus:function(e){E&&!O&&b&&b(e,j),w&&w(e)},tabIndex:O?0:-1},C),a.createElement("span",{className:n.wrapper},g,v),m)}));t.a=Object(c.a)((function(e){var t;return{root:Object(i.a)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Object(o.a)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Object(o.a)(t,"overflow","hidden"),Object(o.a)(t,"whiteSpace","normal"),Object(o.a)(t,"textAlign","center"),Object(o.a)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(f)},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(0),a=(n(11),n(4)),s=n(10),c=n(30),l=n(308),u=n(18),f=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,f=e.color,d=void 0===f?"default":f,p=e.component,h=void 0===p?"button":p,g=e.disabled,m=void 0!==g&&g,v=e.disableElevation,b=void 0!==v&&v,y=e.disableFocusRipple,w=void 0!==y&&y,O=e.endIcon,E=e.focusVisibleClassName,x=e.fullWidth,S=void 0!==x&&x,j=e.size,T=void 0===j?"medium":j,_=e.startIcon,C=e.type,I=void 0===C?"button":C,P=e.variant,k=void 0===P?"text":P,R=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),A=_&&i.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(u.a)(T))])},_),D=O&&i.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(u.a)(T))])},O);return i.createElement(l.a,Object(o.a)({className:Object(a.a)(s.root,s[k],c,"inherit"===d?s.colorInherit:"default"!==d&&s["".concat(k).concat(Object(u.a)(d))],"medium"!==T&&[s["".concat(k,"Size").concat(Object(u.a)(T))],s["size".concat(Object(u.a)(T))]],b&&s.disableElevation,m&&s.disabled,S&&s.fullWidth),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:Object(a.a)(s.focusVisible,E),ref:t,type:I},R),i.createElement("span",{className:s.label},A,n,D))}));t.a=Object(s.a)((function(e){return{root:Object(o.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(c.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(c.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(c.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(c.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(c.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(116),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(o.a)(e,["classes","className"]),u=i.useContext(c.a);return i.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"flex-start"===u.alignItems&&n.alignItemsFlexStart),ref:t},l))}));t.a=Object(s.a)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(l)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(10),c=n(18),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,u=void 0===l?"default":l,f=e.component,d=void 0===f?"li":f,p=e.disableGutters,h=void 0!==p&&p,g=e.disableSticky,m=void 0!==g&&g,v=e.inset,b=void 0!==v&&v,y=Object(o.a)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return i.createElement(d,Object(r.a)({className:Object(a.a)(n.root,s,"default"!==u&&n["color".concat(Object(c.a)(u))],b&&n.inset,!m&&n.sticky,!h&&n.gutters),ref:t},y))}));t.a=Object(s.a)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(l)},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(0),a=(n(11),n(4)),s=n(10),c=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var f=i.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,c=e.alignItems,l=void 0===c?"stretch":c,u=e.classes,f=e.className,d=e.component,p=void 0===d?"div":d,h=e.container,g=void 0!==h&&h,m=e.direction,v=void 0===m?"row":m,b=e.item,y=void 0!==b&&b,w=e.justify,O=e.justifyContent,E=void 0===O?"flex-start":O,x=e.lg,S=void 0!==x&&x,j=e.md,T=void 0!==j&&j,_=e.sm,C=void 0!==_&&_,I=e.spacing,P=void 0===I?0:I,k=e.wrap,R=void 0===k?"wrap":k,A=e.xl,D=void 0!==A&&A,M=e.xs,N=void 0!==M&&M,L=e.zeroMinWidth,z=void 0!==L&&L,W=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=Object(a.a)(u.root,f,g&&[u.container,0!==P&&u["spacing-xs-".concat(String(P))]],y&&u.item,z&&u.zeroMinWidth,"row"!==v&&u["direction-xs-".concat(String(v))],"wrap"!==R&&u["wrap-xs-".concat(String(R))],"stretch"!==l&&u["align-items-xs-".concat(String(l))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==(w||E)&&u["justify-content-xs-".concat(String(w||E))],!1!==N&&u["grid-xs-".concat(String(N))],!1!==C&&u["grid-sm-".concat(String(C))],!1!==T&&u["grid-md-".concat(String(T))],!1!==S&&u["grid-lg-".concat(String(S))],!1!==D&&u["grid-xl-".concat(String(D))]);return i.createElement(p,Object(o.a)({className:B,ref:t},W))})),d=Object(s.a)((function(e){return Object(o.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return c.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(u(o,2)),width:"calc(100% + ".concat(u(o),")"),"& > $item":{padding:u(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};l.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(o.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(f);t.a=d},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(7),i=n(1119),a=n(30),s=n(10),c=n(6),l=n(0),u=n.n(l),f=n(19),d=n.n(f),p=n(118),h=n.n(p),g=n(1),m=n(5),v=n(26),b=(n(11),n(4)),y=n(18),w=n(1116),O=n(49),E=n(606),x=n(56),S=n(52),j=n(69),T=n(28),_={entering:{opacity:1},entered:{opacity:1}},C={enter:x.b.enteringScreen,exit:x.b.leavingScreen},I=l.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,c=e.onEntering,u=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.TransitionComponent,v=void 0===h?E.a:h,b=e.timeout,y=void 0===b?C:b,w=Object(m.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=Object(S.a)(),I=x.unstable_strictMode&&!o,P=l.useRef(null),k=Object(T.a)(n.ref,t),R=Object(T.a)(I?P:void 0,k),A=function(e){return function(t,n){if(e){var r=I?[P.current,t]:[t,n],o=Object(O.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},D=A(c),M=A((function(e,t){Object(j.b)(e);var n=Object(j.a)({style:p,timeout:y},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),a&&a(e,t)})),N=A(s),L=A(d),z=A((function(e){var t=Object(j.a)({style:p,timeout:y},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),u&&u(e)})),W=A(f);return l.createElement(v,Object(g.a)({appear:!0,in:i,nodeRef:I?P:void 0,onEnter:M,onEntered:N,onEntering:D,onExit:z,onExited:W,onExiting:L,timeout:y},w),(function(e,t){return l.cloneElement(n,Object(g.a)({style:Object(g.a)({opacity:0,visibility:"exited"!==e||i?void 0:"hidden"},_[e],p,n.props.style),ref:R},t))}))})),P=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.invisible,a=void 0!==i&&i,s=e.open,c=e.transitionDuration,u=e.TransitionComponent,f=void 0===u?I:u,d=Object(m.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return l.createElement(f,Object(g.a)({in:s,timeout:c},d),l.createElement("div",{className:Object(b.a)(r.root,o,a&&r.invisible),"aria-hidden":!0,ref:t},n))})),k=Object(s.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(P),R=n(1092),A={enter:x.b.enteringScreen,exit:x.b.leavingScreen},D=l.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,o=e.classes,i=e.className,a=e.disableBackdropClick,s=void 0!==a&&a,c=e.disableEscapeKeyDown,u=void 0!==c&&c,f=e.fullScreen,d=void 0!==f&&f,p=e.fullWidth,h=void 0!==p&&p,v=e.maxWidth,O=void 0===v?"sm":v,E=e.onBackdropClick,x=e.onClose,S=e.onEnter,j=e.onEntered,T=e.onEntering,_=e.onEscapeKeyDown,C=e.onExit,P=e.onExited,D=e.onExiting,M=e.open,N=e.PaperComponent,L=void 0===N?R.a:N,z=e.PaperProps,W=void 0===z?{}:z,B=e.scroll,F=void 0===B?"paper":B,H=e.TransitionComponent,U=void 0===H?I:H,V=e.transitionDuration,G=void 0===V?A:V,q=e.TransitionProps,$=e["aria-describedby"],K=e["aria-labelledby"],Z=Object(m.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),Y=l.useRef();return l.createElement(w.a,Object(g.a)({className:Object(b.a)(o.root,i),BackdropComponent:k,BackdropProps:Object(g.a)({transitionDuration:G},n),closeAfterTransition:!0},s?{disableBackdropClick:s}:{},{disableEscapeKeyDown:u,onEscapeKeyDown:_,onClose:x,open:M,ref:t},Z),l.createElement(U,Object(g.a)({appear:!0,in:M,timeout:G,onEnter:S,onEntering:T,onEntered:j,onExit:C,onExiting:D,onExited:P,role:"none presentation"},q),l.createElement("div",{className:Object(b.a)(o.container,o["scroll".concat(Object(y.a)(F))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===Y.current&&(Y.current=null,E&&E(e),!s&&x&&x(e,"backdropClick"))},onMouseDown:function(e){Y.current=e.target}},l.createElement(L,Object(g.a)({elevation:24,role:"dialog","aria-describedby":$,"aria-labelledby":K},W,{className:Object(b.a)(o.paper,o["paperScroll".concat(Object(y.a)(F))],o["paperWidth".concat(Object(y.a)(String(O)))],W.className,d&&o.paperFullScreen,h&&o.paperFullWidth)}),r))))})),M=Object(s.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(v.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(v.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(v.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(v.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(v.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(D),N=l.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.dividers,i=void 0!==o&&o,a=Object(m.a)(e,["classes","className","dividers"]);return l.createElement("div",Object(g.a)({className:Object(b.a)(n.root,r,i&&n.dividers),ref:t},a))})),L=Object(s.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(N),z=n(165),W=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=Object(m.a)(e,["children","classes","className","disableTypography"]);return l.createElement("div",Object(g.a)({className:Object(b.a)(r.root,o),ref:t},s),a?n:l.createElement(z.a,{component:"h2",variant:"h6"},n))})),B=Object(s.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(W),F=l.forwardRef((function(e,t){return l.createElement(z.a,Object(g.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),H=Object(s.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(F),U=l.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,o=e.classes,i=e.className,a=Object(m.a)(e,["disableSpacing","classes","className"]);return l.createElement("div",Object(g.a)({className:Object(b.a)(o.root,i,!r&&o.spacing),ref:t},a))})),V=Object(s.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(U),G=n(1107);function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t){return K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},K(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&K(e,t)}(i,e);var t,n,r,o=Z(i);function i(){return q(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.error,n=e.removeError,r=e.t,o=!h()(t);return t?u.a.createElement(M,{"aria-labelledby":"error-dialog-title",id:"error-dialog",onClose:function(){return n(t.id)},open:o},u.a.createElement(B,{id:"error-dialog-title",disableTypography:!0},u.a.createElement(z.a,{variant:"h2"},r("errorDialogTitle"))),u.a.createElement(L,{disableTypography:!0},u.a.createElement(H,{variant:"body2",noWrap:!0,color:"inherit"},"".concat(t.message)),u.a.createElement(V,null,u.a.createElement(G.a,{onClick:function(){return n(t.id)},variant:"contained"},r("errorDialogConfirm"))))):null}}])&&$(t.prototype,n),r&&$(t,r),i}(l.Component);Q.defaultProps={error:null,removeError:function(){},t:function(e){return e}};var J=n(510),ee=n(265),te={removeError:J.b},ne=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e){return{error:Object(ee.c)(e)}}),te),Object(c.a)("ErrorDialog"))(Q),re=l.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.position,s=void 0===a?"fixed":a,c=Object(m.a)(e,["classes","className","color","position"]);return l.createElement(R.a,Object(g.a)({square:!0,component:"header",elevation:4,className:Object(b.a)(n.root,n["position".concat(Object(y.a)(s))],n["color".concat(Object(y.a)(i))],r,"fixed"===s&&"mui-fixed"),ref:t},c))})),oe=Object(s.a)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(re),ie=n(1093),ae=n(1091),se=n(99),ce=n.n(se),le=(n(104),n(603));function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(le.a)(),r=Object(ae.a)({theme:n,name:"MuiUseMediaQuery",props:{}});var o="function"==typeof e?e(n):e;o=o.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,a=Object(g.a)({},r,t),s=a.defaultMatches,c=void 0!==s&&s,u=a.matchMedia,f=void 0===u?i?window.matchMedia:null:u,d=a.noSsr,p=void 0!==d&&d,h=a.ssrMatchMedia,m=void 0===h?null:h,v=l.useState((function(){return p&&i?f(o).matches:m?m(o).matches:c})),b=v[0],y=v[1];return l.useEffect((function(){var e=!0;if(i){var t=f(o),n=function(){e&&y(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[o,f,i]),b}var fe="undefined"==typeof window?l.useEffect:l.useLayoutEffect,de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,r=void 0!==n&&n,o=e.noSSR,i=void 0!==o&&o,a=e.initialWidth;function s(e){var n=Object(S.a)(),o=e.theme||n,s=Object(ae.a)({theme:o,name:"MuiWithWidth",props:Object(g.a)({},e)}),c=s.initialWidth,u=s.width,f=Object(m.a)(s,["initialWidth","width"]),d=l.useState(!1),p=d[0],h=d[1];fe((function(){h(!0)}),[]);var v=o.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=ue(o.breakpoints.up(t));return!e&&n?t:e}),null),b=Object(g.a)({width:u||(p||i?v:void 0)||c||a},r?{theme:o}:{},f);return void 0===b.width?null:l.createElement(t,b)}return ce()(s,t),s}},pe=n(504),he=n(36),ge=n(308),me=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,c=void 0===s?"button":s,u=e.disabled,f=void 0!==u&&u,d=e.disableFocusRipple,p=void 0!==d&&d,h=e.focusVisibleClassName,v=e.size,w=void 0===v?"large":v,O=e.variant,E=void 0===O?"circular":O,x=Object(m.a)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return l.createElement(ge.a,Object(g.a)({className:Object(b.a)(r.root,o,"large"!==w&&r["size".concat(Object(y.a)(w))],f&&r.disabled,"extended"===E&&r.extended,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[a]),component:c,disabled:f,focusRipple:!p,focusVisibleClassName:Object(b.a)(r.focusVisible,h),ref:t},x),l.createElement("span",{className:r.label},n))})),ve=Object(s.a)((function(e){return{root:Object(g.a)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(me),be=n(1096),ye=n(291),we=n.n(ye),Oe=n(137),Ee=n.n(Oe);function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},je(e,t)}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ce(e);if(t){var o=Ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function _e(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}var Ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&je(e,t)}(i,e);var t,n,r,o=Te(i);function i(){return xe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=e.setWorkspaceAddVisibility,o=e.isWorkspaceAddVisible,i=e.useExtendedFab;return u.a.createElement(be.a,{title:n(o?"closeAddResourceMenu":"addResource")},u.a.createElement(ve,{size:"medium",color:"primary",id:"addBtn",disableRipple:!0,"aria-label":o?n("closeAddResourceMenu"):i&&n("startHere")||n("addResource"),className:t.fab,classes:{primary:t.fabPrimary,secondary:t.fabSecondary},variant:i?"extended":"round",onClick:function(){r(!o)}},o?u.a.createElement(Ee.a,null):u.a.createElement(we.a,null),i&&n("startHere")))}}])&&Se(t.prototype,n),r&&Se(t,r),i}(l.Component);Ie.defaultProps={isWorkspaceAddVisible:!1,t:function(e){return e}};var Pe={setWorkspaceAddVisibility:pe.a},ke=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{fab:{margin:e.spacing(1)},fabPrimary:{"&:focus":{backgroundColor:e.palette.primary.dark}},fabSecondary:{"&:focus":{backgroundColor:e.palette.secondary.dark}}}})),de(),Object(o.b)((function(e,t){var n=t.width,r=Object(he.i)(e).isWorkspaceAddVisible;return{isWorkspaceAddVisible:r,useExtendedFab:"xs"!==n&&!r&&0===Object(he.f)(e).length}}),Pe),Object(c.a)("WorkspaceAddButton"))(Ie),Re=n(587),Ae=n.n(Re),De=n(586),Me=n.n(De),Ne=n(29);function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return We=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},We(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=He(e);if(t){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&We(e,t)}(i,e);var t,n,r,o=Be(i);function i(){return Le(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.isFullscreenEnabled,r=e.setWorkspaceFullscreen,o=e.t;return u.a.createElement(Ne.a,{className:t,"aria-label":o(n?"exitFullScreen":"workspaceFullScreen"),onClick:function(){return r(!n)}},n?u.a.createElement(Me.a,null):u.a.createElement(Ae.a,null))}}])&&ze(t.prototype,n),r&&ze(t,r),i}(l.Component);Ue.defaultProps={className:void 0,isFullscreenEnabled:!1,t:function(e){return e}};var Ve={setWorkspaceFullscreen:pe.b},Ge=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e){return{isFullscreenEnabled:Object(ee.b)(e)}}),Ve),Object(c.a)("FullScreenButton"))(Ue),qe=n(577),$e=n.n(qe),Ke=n(97),Ze=n(602),Ye=n(1098),Xe=n(266),Qe=n(1108),Je=n(1099),et=n(579),tt=n.n(et);function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t){return ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ot(e,t)}function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return at(this,n)}}function at(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},st(e)}var ct=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ot(e,t)}(i,e);var t,n,r,o=it(i);function i(){return nt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.handleClick,n=e.languages;return u.a.createElement(u.a.Fragment,null,n.map((function(e){return u.a.createElement(Ye.a,{button:!e.current,key:e.locale,onClick:function(){t(e.locale)}},u.a.createElement(Qe.a,null,e.current&&u.a.createElement(tt.a,null)),u.a.createElement(Je.a,{primaryTypographyProps:{variant:"body1"}},e.label))})))}}])&&rt(t.prototype,n),r&&rt(t,r),i}(l.Component),lt=Object(r.compose)(Object(o.b)((function(e){return{languages:Object(Ke.d)(e)}}),(function(e,t){var n=t.afterSelect;return{handleClick:function(t){e(Xe.d({language:t})),n&&n()}}})),Object(c.a)("LanguageSettings"))(ct),ut=n(578),ft=n.n(ut),dt=n(292),pt=n.n(dt),ht=["children","icon","label"];function gt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vt(e,t)}function bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ot(e);if(t){var o=Ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yt(this,n)}}function yt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ot(e)}var Et=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(i,e);var t,n,r,o=bt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={nestedMenuIsOpen:!1},t.handleMenuClick=t.handleMenuClick.bind(wt(t)),t}return t=i,(n=[{key:"handleMenuClick",value:function(){var e=this.state.nestedMenuIsOpen;this.setState({nestedMenuIsOpen:!e})}},{key:"render",value:function(){var e=this.state.nestedMenuIsOpen,t=this.props,n=t.children,r=t.icon,o=t.label,i=gt(t,ht);return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ye.a,Object.assign({onClick:this.handleMenuClick,divider:e},i),r&&u.a.createElement(Qe.a,null,r),u.a.createElement(Je.a,{primaryTypographyProps:{variant:"body1"}},o),e?u.a.createElement(ft.a,null):u.a.createElement(pt.a,null)),e&&n)}}])&&mt(t.prototype,n),r&&mt(t,r),i}(l.Component);Et.defaultProps={icon:null};var xt=n(1097),St=l.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.raised,i=void 0!==o&&o,a=Object(m.a)(e,["classes","className","raised"]);return l.createElement(R.a,Object(g.a)({className:Object(b.a)(n.root,r),elevation:i?8:1,ref:t},a))})),jt=Object(s.a)({root:{overflow:"hidden"}},{name:"MuiCard"})(St),Tt=l.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=Object(m.a)(e,["classes","className","component"]);return l.createElement(i,Object(g.a)({className:Object(b.a)(n.root,r),ref:t},a))})),_t=Object(s.a)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(Tt),Ct=n(283);function It(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225"},u.a.createElement("defs",null,u.a.createElement("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},u.a.createElement("stop",{offset:"0"}),u.a.createElement("stop",{offset:"0.14",stopOpacity:"0.631"}),u.a.createElement("stop",{offset:"1",stopOpacity:"0"})),u.a.createElement("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},u.a.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),u.a.createElement("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),u.a.createElement("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),u.a.createElement("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),u.a.createElement("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),u.a.createElement("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),u.a.createElement("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),u.a.createElement("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),u.a.createElement("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),u.a.createElement("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),u.a.createElement("stop",{offset:"1",stopColor:"#fff"})),u.a.createElement("clipPath",{id:"clip-elastic_icon"},u.a.createElement("rect",{width:"300",height:"225"}))),u.a.createElement("g",{id:"elastic_icon","data-name":"elastic icon",clipPath:"url(#clip-elastic_icon)"},u.a.createElement("rect",{width:"300",height:"225",fill:"#fff"}),u.a.createElement("g",{id:"Rectangle_278","data-name":"Rectangle 278",transform:"translate(232 159)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"54",height:"54",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"53",height:"53",fill:"none"})),u.a.createElement("g",{id:"Rectangle_8","data-name":"Rectangle 8",transform:"translate(7 148)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"70",height:"70",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"69",height:"69",fill:"none"})),u.a.createElement("g",{id:"Rectangle_258","data-name":"Rectangle 258",transform:"translate(224 6)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"70",height:"100",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"69",height:"99",fill:"none"})),u.a.createElement("g",{id:"Rectangle_259","data-name":"Rectangle 259",transform:"translate(71 64)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"115",height:"75",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})),u.a.createElement("g",{id:"Rectangle_260","data-name":"Rectangle 260",transform:"translate(99 87)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"115",height:"75",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})),u.a.createElement("g",{id:"Group_689","data-name":"Group 689"},u.a.createElement("g",{id:"Group_687","data-name":"Group 687",transform:"translate(0 3)"},u.a.createElement("path",{id:"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.164 -1.063)",fill:"#010101",fillRule:"evenodd",opacity:"0.246"}),u.a.createElement("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 36)",fill:"none"},u.a.createElement("path",{d:"M0,0H220V147H0Z",stroke:"none"}),u.a.createElement("path",{d:"M 2 2 L 2 145 L 218 145 L 218 2 L 172.9869689941406 2 L 2 2 M 0 0 L 172.9869689941406 0 L 220 0 L 220 147 L 0 147 L 0 0 Z",stroke:"none",fill:"#01579b"}))),u.a.createElement("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2"},u.a.createElement("rect",{width:"20",height:"147",stroke:"none"}),u.a.createElement("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})),u.a.createElement("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)"},u.a.createElement("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),u.a.createElement("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12"},u.a.createElement("path",{id:"gradient_border_2","data-name":"gradient border 2",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient)"}),u.a.createElement("path",{id:"gradient_border_1","data-name":"gradient border 1",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient-2)"})))))))}function Pt(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225"},u.a.createElement("defs",null,u.a.createElement("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},u.a.createElement("stop",{offset:"0"}),u.a.createElement("stop",{offset:"0.14",stopOpacity:"0.631"}),u.a.createElement("stop",{offset:"1",stopOpacity:"0"})),u.a.createElement("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},u.a.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),u.a.createElement("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),u.a.createElement("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),u.a.createElement("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),u.a.createElement("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),u.a.createElement("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),u.a.createElement("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),u.a.createElement("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),u.a.createElement("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),u.a.createElement("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),u.a.createElement("stop",{offset:"1",stopColor:"#fff"})),u.a.createElement("clipPath",{id:"clip-mosaic_icon"},u.a.createElement("rect",{width:"300",height:"225"}))),u.a.createElement("g",{id:"mosaic_icon","data-name":"mosaic icon",clipPath:"url(#clip-mosaic_icon)"},u.a.createElement("rect",{width:"300",height:"225",fill:"#fff"}),u.a.createElement("path",{id:"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.163 1.938)",fill:"#010101",fillRule:"evenodd",opacity:"0.5"}),u.a.createElement("path",{id:"checkbox-2","data-name":"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.164 1.938)",fill:"#010101",fillRule:"evenodd",opacity:"0.246"}),u.a.createElement("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 39)",fill:"none"},u.a.createElement("path",{d:"M0,0H220V147H0Z",stroke:"none"}),u.a.createElement("path",{d:"M 2 2 L 2 145 L 218 145 L 218 2 L 172.9869689941406 2 L 2 2 M 0 0 L 172.9869689941406 0 L 220 0 L 220 147 L 0 147 L 0 0 Z",stroke:"none",fill:"#01579b"})),u.a.createElement("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2"},u.a.createElement("rect",{width:"20",height:"147",stroke:"none"}),u.a.createElement("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})),u.a.createElement("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)"},u.a.createElement("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),u.a.createElement("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12"},u.a.createElement("path",{id:"gradient_border_2","data-name":"gradient border 2",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient)"}),u.a.createElement("path",{id:"gradient_border_1","data-name":"gradient border 1",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient-2)"}))),u.a.createElement("g",{id:"Rectangle_270","data-name":"Rectangle 270",transform:"translate(60 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"99",height:"72",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})),u.a.createElement("g",{id:"Rectangle_271","data-name":"Rectangle 271",transform:"translate(159 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"99",height:"72",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})),u.a.createElement("g",{id:"Rectangle_272","data-name":"Rectangle 272",transform:"translate(192 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})),u.a.createElement("g",{id:"Rectangle_284","data-name":"Rectangle 284",transform:"translate(60 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})),u.a.createElement("g",{id:"Rectangle_285","data-name":"Rectangle 285",transform:"translate(126 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},u.a.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),u.a.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})))))}var kt=["classes","className"];function Rt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function At(e){var t=e.classes,n=e.className,r=Rt(e,kt),o=[n,t.shadowScrollDialog].join(" ");return u.a.createElement(L,Object.assign({className:o},r))}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}At.defaultProps={className:""};var Mt=Object(s.a)((function(e){var t;return{shadowScrollDialog:(t={background:"linear-gradient(".concat(e.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(e.palette.background.paper," 70%) 0 100%, ")+"radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%,"},Dt(t,"background","linear-gradient(".concat(e.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(e.palette.background.paper," 70%) 0 100%, ")+"radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%;"),Dt(t,"backgroundAttachment","local, local, scroll, scroll"),Dt(t,"backgroundRepeat","no-repeat"),Dt(t,"backgroundSize","100% 40px, 100% 40px, 100% 14px, 100% 14px"),Dt(t,"overflowY","auto"),t)}}))(At);function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t){return Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lt(e,t)}function zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ft(e);if(t){var o=Ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wt(this,n)}}function Wt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bt(e)}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ft(e)}var Ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lt(e,t)}(i,e);var t,n,r,o=zt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleWorkspaceTypeChange=t.handleWorkspaceTypeChange.bind(Bt(t)),t}return t=i,r=[{key:"setInitialFocus",value:function(e,t){var n=e.querySelectorAll('li[value="'.concat(t,'"]'));n&&0!==n.length&&n[0].focus()}}],(n=[{key:"handleWorkspaceTypeChange",value:function(e){var t=this.props,n=t.handleClose;(0,t.updateWorkspace)({type:e}),n()}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.container,o=t.handleClose,a=t.open,s=t.children,c=t.t,l=t.workspaceType;return u.a.createElement(M,{"aria-labelledby":"workspace-selection-dialog-title",container:r,id:"workspace-selection-dialog",onClose:o,onEntered:function(e){return i.setInitialFocus(e,l)},onEscapeKeyDown:o,open:a},u.a.createElement(B,{id:"workspace-selection-dialog-title",disableTypography:!0},u.a.createElement(z.a,{variant:"h2"},c("workspaceSelectionTitle"))),u.a.createElement(Mt,null,s,u.a.createElement(xt.a,{classes:{root:n.list},selected:l},u.a.createElement(Ye.a,{className:n.menuItem,onClick:function(){return e.handleWorkspaceTypeChange("elastic")},selected:"elastic"===l,value:"elastic"},u.a.createElement(jt,{className:n.card},u.a.createElement(It,{className:n.svgIcon,viewBox:"0 0 120 90"}),u.a.createElement("div",{className:n.details},u.a.createElement(_t,{classes:{root:n.root},className:n.content},u.a.createElement(z.a,{className:n.headline,component:"p",variant:"h3"},c("elastic")),u.a.createElement(z.a,{variant:"body1"},c("elasticDescription")))))),u.a.createElement(Ye.a,{className:n.menuItem,onClick:function(){return e.handleWorkspaceTypeChange("mosaic")},selected:"mosaic"===l,value:"mosaic"},u.a.createElement(jt,{className:n.card},u.a.createElement(Pt,{className:n.svgIcon,viewBox:"0 0 120 90"}),u.a.createElement("div",{className:n.details},u.a.createElement(_t,{className:n.content,classes:{root:n.root}},u.a.createElement(z.a,{className:n.headline,component:"p",variant:"h3"},c("mosaic")),u.a.createElement(z.a,{variant:"body1"},c("mosaicDescription")))))))))}}])&&Nt(t.prototype,n),r&&Nt(t,r),i}(l.Component);Ht.defaultProps={children:null,container:null,open:!1,t:function(e){return e}};var Ut={updateWorkspace:pe.g},Vt=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{card:{backgroundColor:"transparent",borderRadius:"0",boxShadow:"0 0 transparent",display:"flex"},content:{flex:"1 0 auto"},details:{display:"flex",flexDirection:"column"},headline:{paddingBottom:"6px"},list:{"&active":{outline:"none"},"&focus":{outline:"none"},outline:"none"},media:{flex:"0 0 120px",height:"90px"},menuItem:{height:"auto",overflow:"auto",whiteSpace:"inherit"},root:{"&:last-child":{paddingBottom:"12px"},paddingBottom:0,paddingTop:0,textAlign:"left"},svgIcon:{flexShrink:0,height:"90px",width:"120px"}}})),Object(o.b)((function(e){return{workspaceType:Object(ee.d)(e)}}),Ut),Object(c.a)("WorkspaceSelectionDialog"))(Ht),Gt=n(12),qt=n(580),$t=n.n(qt);function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zt(e,t){return Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zt(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jt(e);if(t){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xt(this,n)}}function Xt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qt(e)}function Qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jt(e){return Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(e)}var en=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zt(e,t)}(i,e);var t,n,r,o=Yt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).selectedItemRef=u.a.createRef(),t.handleThemeChange=t.handleThemeChange.bind(Qt(t)),t}return t=i,r=[{key:"setInitialFocus",value:function(e,t){var n=e.querySelectorAll('li[value="'.concat(t,'"]'));n&&0!==n.length&&n[0].focus()}}],(n=[{key:"handleThemeChange",value:function(e){var t=this.props,n=t.setSelectedTheme,r=t.handleClose;n(e),r()}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.handleClose,o=t.open,a=t.selectedTheme,s=t.t,c=t.themeIds;return u.a.createElement(M,{onClose:r,onEntered:function(e){return i.setInitialFocus(e,a)},open:o},u.a.createElement(B,{id:"change-the-dialog-title",disableTypography:!0},u.a.createElement(z.a,{variant:"h2"},s("changeTheme"))),u.a.createElement(L,{className:n.dialogContent},u.a.createElement(xt.a,null,c.map((function(t){return u.a.createElement(Ye.a,{key:t,className:n.listitem,onClick:function(){e.handleThemeChange(t)},selected:t===a,value:t},u.a.createElement(Qe.a,null,u.a.createElement($t.a,{className:n[t]})),u.a.createElement(Je.a,null,s(t)))})))))}}])&&Kt(t.prototype,n),r&&Kt(t,r),i}(l.Component);en.defaultProps={open:!1,themeIds:[]};var tn=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{dark:{color:"#000000"},dialogContent:{padding:0},light:{color:"#BDBDBD"},listitem:{"&:focus":{backgroundColor:e.palette.action.focus},"&:hover":{backgroundColor:e.palette.action.hover},cursor:"pointer"}}})),Object(o.b)((function(e){return{selectedTheme:Object(Ke.a)(e).selectedTheme,themeIds:Object(Ke.i)(e)}}),(function(e,t){t.windowId;return{setSelectedTheme:function(t){return e(Xe.d({selectedTheme:t}))}}})),Object(c.a)("ChangeThemeDialog"))(en),nn=n(35);function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function on(e,t){return on=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},on(e,t)}function an(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ln(e);if(t){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sn(this,n)}}function sn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cn(e)}function cn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}var un=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&on(e,t)}(i,e);var t,n,r,o=an(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={changeTheme:{},toggleZoom:{},workspaceSelection:{}},t.handleMenuItemClick=t.handleMenuItemClick.bind(cn(t)),t.handleMenuItemClose=t.handleMenuItemClose.bind(cn(t)),t}return t=i,(n=[{key:"handleMenuItemClick",value:function(e,t){var n={};n[e]={},n[e].open=!0,n[e].anchorEl=t.currentTarget,this.setState(n)}},{key:"handleMenuItemClose",value:function(e){var t=this;return function(n){var r={};r[e]={},r[e].open=!1,r[e].anchorEl=null,t.setState(r)}}},{key:"handleZoomToggleClick",value:function(){var e=this.props;(0,e.toggleZoomControls)(!e.showZoomControls)}},{key:"render",value:function(){var e=this,t=this.props,n=t.containerId,r=t.handleClose,o=t.anchorEl,i=t.showThemePicker,a=t.isWorkspaceAddVisible,s=t.t,c=t.showZoomControls,l=this.state,f=l.changeTheme,d=l.toggleZoom,p=l.workspaceSelection,h=document.querySelector("#".concat(n," .").concat(Object(Gt.a)("viewer")));return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ze.a,{id:"workspace-menu",container:h,anchorEl:o,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:Boolean(o),onClose:r},u.a.createElement(Ye.a,{"aria-haspopup":"true",disabled:a,onClick:function(t){e.handleZoomToggleClick(t),r(t)},"aria-owns":d.anchorEl?"toggle-zoom-menu":void 0},u.a.createElement(z.a,{variant:"body1"},s(c?"hideZoomControls":"showZoomControls"))),u.a.createElement(Ye.a,{"aria-haspopup":"true",onClick:function(t){e.handleMenuItemClick("workspaceSelection",t),r(t)},"aria-owns":p.anchorEl?"workspace-selection":void 0},u.a.createElement(z.a,{variant:"body1"},s("selectWorkspaceMenu"))),u.a.createElement(Et,{label:s("language")},u.a.createElement(lt,{afterSelect:r})),i&&u.a.createElement(Ye.a,{"aria-haspopup":"true",onClick:function(t){e.handleMenuItemClick("changeTheme",t),r(t)},"aria-owns":f.anchorEl?"change-theme":void 0},u.a.createElement(z.a,{variant:"body1"},s("changeTheme"))),u.a.createElement(nn.a,this.props)),Boolean(f.open)&&u.a.createElement(tn,{container:h,handleClose:this.handleMenuItemClose("changeTheme"),open:Boolean(f.open)}),Boolean(p.open)&&u.a.createElement(Vt,{open:Boolean(p.open),container:h,handleClose:this.handleMenuItemClose("workspaceSelection")}))}}])&&rn(t.prototype,n),r&&rn(t,r),i}(l.Component);un.defaultProps={anchorEl:null,isWorkspaceAddVisible:!1,showThemePicker:!1,showZoomControls:!1,t:function(e){return e},toggleZoomControls:function(){}};var fn={toggleZoomControls:pe.f},dn=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e){return{containerId:Object(Ke.b)(e),isWorkspaceAddVisible:Object(he.i)(e).isWorkspaceAddVisible,showThemePicker:Object(Ke.i)(e).length>0,showZoomControls:Object(Ke.f)(e)}}),fn),Object(c.a)("WorkspaceMenu"))(un);function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hn(e,t){return hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hn(e,t)}function gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bn(e);if(t){var o=bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mn(this,n)}}function mn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vn(e)}function vn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bn(e){return bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bn(e)}var yn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hn(e,t)}(i,e);var t,n,r,o=gn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(vn(t)),t.handleMenuClose=t.handleMenuClose.bind(vn(t)),t}return t=i,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=this.state.anchorEl;return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ne.a,{"aria-haspopup":"true","aria-label":n("workspaceMenu"),"aria-owns":r?"workspace-menu":void 0,className:d()(t.ctrlBtn,r?t.ctrlBtnSelected:null),id:"menuBtn",onClick:this.handleMenuClick},u.a.createElement($e.a,null)),u.a.createElement(dn,{anchorEl:r,handleClose:this.handleMenuClose}))}}])&&pn(t.prototype,n),r&&pn(t,r),i}(l.Component);yn.defaultProps={t:function(e){return e}};var wn=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{ctrlBtn:{margin:e.spacing(1)},ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),Object(c.a)("WorkspaceMenuButton"))(yn),On=n(581),En=n.n(On),xn=n(583),Sn=n.n(xn),jn=n(582),Tn=n.n(jn),_n=n(32),Cn=n(48),In=n(43);function Pn(e){return e.substring(2).toLowerCase()}var kn=function(e){var t=e.children,n=e.disableReactTree,r=void 0!==n&&n,o=e.mouseEvent,i=void 0===o?"onClick":o,a=e.onClickAway,s=e.touchEvent,c=void 0===s?"onTouchEnd":s,u=l.useRef(!1),f=l.useRef(null),d=l.useRef(!1),p=l.useRef(!1);l.useEffect((function(){return setTimeout((function(){d.current=!0}),0),function(){d.current=!1}}),[]);var h=l.useCallback((function(e){f.current=_n.findDOMNode(e)}),[]),g=Object(T.a)(t.ref,h),m=Object(In.a)((function(e){var t=p.current;if(p.current=!1,d.current&&f.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(u.current)u.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(f.current)>-1;else n=!Object(Cn.a)(f.current).documentElement.contains(e.target)||f.current.contains(e.target);n||!r&&t||a(e)}})),v=function(e){return function(n){p.current=!0;var r=t.props[e];r&&r(n)}},b={ref:g};return!1!==c&&(b[c]=v(c)),l.useEffect((function(){if(!1!==c){var e=Pn(c),t=Object(Cn.a)(f.current),n=function(){u.current=!0};return t.addEventListener(e,m),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,m),t.removeEventListener("touchmove",n)}}}),[m,c]),!1!==i&&(b[i]=v(i)),l.useEffect((function(){if(!1!==i){var e=Pn(i),t=Object(Cn.a)(f.current);return t.addEventListener(e,m),function(){t.removeEventListener(e,m)}}}),[m,i]),l.createElement(l.Fragment,null,l.cloneElement(t,b))},Rn=n(102),An=n(1052),Dn=l.forwardRef((function(e,t){var n=e.action,r=e.classes,o=e.className,i=e.message,a=e.role,s=void 0===a?"alert":a,c=Object(m.a)(e,["action","classes","className","message","role"]);return l.createElement(R.a,Object(g.a)({role:s,square:!0,elevation:6,className:Object(b.a)(r.root,o),ref:t},c),l.createElement("div",{className:r.message},i),n?l.createElement("div",{className:r.action},n):null)})),Mn=Object(s.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(a.c)(e.palette.background.default,t);return{root:Object(g.a)({},e.typography.body2,Object(v.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(Dn),Nn=l.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,o=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,i=r.horizontal,a=e.autoHideDuration,s=void 0===a?null:a,c=e.children,u=e.classes,f=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,h=e.disableWindowBlurListener,v=void 0!==h&&h,w=e.message,O=e.onClose,E=e.onEnter,S=e.onEntered,j=e.onEntering,T=e.onExit,_=e.onExited,C=e.onExiting,I=e.onMouseEnter,P=e.onMouseLeave,k=e.open,R=e.resumeHideDuration,A=e.TransitionComponent,D=void 0===A?An.a:A,M=e.transitionDuration,N=void 0===M?{enter:x.b.enteringScreen,exit:x.b.leavingScreen}:M,L=e.TransitionProps,z=Object(m.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),W=l.useRef(),B=l.useState(!0),F=B[0],H=B[1],U=Object(In.a)((function(){O&&O.apply(void 0,arguments)})),V=Object(In.a)((function(e){O&&null!=e&&(clearTimeout(W.current),W.current=setTimeout((function(){U(null,"timeout")}),e))}));l.useEffect((function(){return k&&V(s),function(){clearTimeout(W.current)}}),[k,s,V]);var G=function(){clearTimeout(W.current)},q=l.useCallback((function(){null!=s&&V(null!=R?R:.5*s)}),[s,R,V]);return l.useEffect((function(){if(!v&&k)return window.addEventListener("focus",q),window.addEventListener("blur",G),function(){window.removeEventListener("focus",q),window.removeEventListener("blur",G)}}),[v,q,k]),!k&&F?null:l.createElement(kn,Object(g.a)({onClickAway:function(e){O&&O(e,"clickaway")}},d),l.createElement("div",Object(g.a)({className:Object(b.a)(u.root,u["anchorOrigin".concat(Object(y.a)(o)).concat(Object(y.a)(i))],f),onMouseEnter:function(e){I&&I(e),G()},onMouseLeave:function(e){P&&P(e),q()},ref:t},z),l.createElement(D,Object(g.a)({appear:!0,in:k,onEnter:Object(Rn.a)((function(){H(!1)}),E),onEntered:S,onEntering:j,onExit:T,onExited:Object(Rn.a)((function(){H(!0)}),_),onExiting:C,timeout:N,direction:"top"===o?"down":"up"},L),c||l.createElement(Mn,Object(g.a)({message:w,action:n},p)))))})),Ln=Object(s.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},c={left:24},l={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(g.a)({},t,Object(v.a)({},e.breakpoints.up("sm"),Object(g.a)({},i,l))),anchorOriginBottomCenter:Object(g.a)({},n,Object(v.a)({},e.breakpoints.up("sm"),Object(g.a)({},a,l))),anchorOriginTopRight:Object(g.a)({},t,r,Object(v.a)({},e.breakpoints.up("sm"),Object(g.a)({left:"auto"},i,s))),anchorOriginBottomRight:Object(g.a)({},n,r,Object(v.a)({},e.breakpoints.up("sm"),Object(g.a)({left:"auto"},a,s))),anchorOriginTopLeft:Object(g.a)({},t,o,Object(v.a)({},e.breakpoints.up("sm"),Object(g.a)({right:"auto"},i,c))),anchorOriginBottomLeft:Object(g.a)({},n,o,Object(v.a)({},e.breakpoints.up("sm"),Object(g.a)({right:"auto"},a,c)))}}),{flip:!1,name:"MuiSnackbar"})(Nn),zn=n(1094),Wn=n(181),Bn=n.n(Wn),Fn=n(585),Hn=n.n(Fn),Un=n(278),Vn=n(274),Gn=n(279);n(96);var qn=n(1102);var $n=l.createContext({}),Kn=n(136),Zn=l.forwardRef((function(e,t){var n,r=e.children,o=e.classes,i=e.className,a=e.defaultExpanded,s=void 0!==a&&a,c=e.disabled,u=void 0!==c&&c,f=e.expanded,d=e.onChange,p=e.square,h=void 0!==p&&p,v=e.TransitionComponent,y=void 0===v?qn.a:v,w=e.TransitionProps,E=Object(m.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),x=Object(Kn.a)({controlled:f,default:s,name:"Accordion",state:"expanded"}),S=Object(O.a)(x,2),j=S[0],T=S[1],_=l.useCallback((function(e){T(!j),d&&d(e,!j)}),[j,d,T]),C=l.Children.toArray(r),I=(n=C,Object(Un.a)(n)||Object(Vn.a)(n)||Object(Gn.a)()),P=I[0],k=I.slice(1),A=l.useMemo((function(){return{expanded:j,disabled:u,toggle:_}}),[j,u,_]);return l.createElement(R.a,Object(g.a)({className:Object(b.a)(o.root,i,j&&o.expanded,u&&o.disabled,!h&&o.rounded),ref:t,square:h},E),l.createElement($n.Provider,{value:A},P),l.createElement(y,Object(g.a)({in:j,timeout:"auto"},w),l.createElement("div",{"aria-labelledby":P.props.id,id:P.props["aria-controls"],role:"region"},k)))})),Yn=Object(s.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(Zn),Xn=l.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.expandIcon,a=e.focusVisibleClassName,s=e.IconButtonProps,c=void 0===s?{}:s,u=e.onClick,f=Object(m.a)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),d=l.useContext($n),p=d.disabled,h=void 0!==p&&p,v=d.expanded,y=d.toggle;return l.createElement(ge.a,Object(g.a)({focusRipple:!1,disableRipple:!0,disabled:h,component:"div","aria-expanded":v,className:Object(b.a)(r.root,o,h&&r.disabled,v&&r.expanded),focusVisibleClassName:Object(b.a)(r.focusVisible,r.focused,a),onClick:function(e){y&&y(e),u&&u(e)},ref:t},f),l.createElement("div",{className:Object(b.a)(r.content,v&&r.expanded)},n),i&&l.createElement(zn.a,Object(g.a)({className:Object(b.a)(r.expandIcon,v&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},c),i))})),Qn=Object(s.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(Xn),Jn=l.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Object(m.a)(e,["classes","className"]);return l.createElement("div",Object(g.a)({className:Object(b.a)(n.root,r),ref:t},o))})),er=Object(s.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(Jn),tr=n(584);function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rr(e,t){return rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rr(e,t)}function or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sr(e);if(t){var o=sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ir(this,n)}}function ir(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ar(e)}function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}var cr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}(i,e);var t,n,r,o=or(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={copied:!1},t.onCopy=t.onCopy.bind(ar(t)),t.handleClose=t.handleClose.bind(ar(t)),t}return t=i,(n=[{key:"handleClose",value:function(){var e=this.props.handleClose;e()}},{key:"onCopy",value:function(){this.setState({copied:!0})}},{key:"exportedState",value:function(){var e=this.props.exportableState;return JSON.stringify(e,null,2)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.container,o=e.open,i=e.t;return this.state.copied?u.a.createElement(Ln,{anchorOrigin:{horizontal:"center",vertical:"top"},open:!0,autoHideDuration:6e3,onClose:this.handleClose,message:i("exportCopied"),action:u.a.createElement(zn.a,{size:"small","aria-label":i("dismiss"),color:"inherit",onClick:this.handleClose},u.a.createElement(Hn.a,{fontSize:"small"}))}):u.a.createElement(M,{id:"workspace-settings",container:r,open:o,onClose:this.handleClose,scroll:"paper",fullWidth:!0,maxWidth:"sm"},u.a.createElement(B,{id:"form-dialog-title",disableTypography:!0},u.a.createElement(z.a,{variant:"h2"},i("downloadExport"))),u.a.createElement(L,null,u.a.createElement(Yn,{elevation:0},u.a.createElement(Qn,{classes:{root:n.accordionTitle},expandIcon:u.a.createElement(Bn.a,null)},u.a.createElement(z.a,{variant:"h4"},i("viewWorkspaceConfiguration"))),u.a.createElement(er,null,t,u.a.createElement("pre",null,this.exportedState())))),u.a.createElement(V,null,u.a.createElement(G.a,{onClick:this.handleClose},i("cancel")),u.a.createElement(tr.CopyToClipboard,{onCopy:this.onCopy,text:this.exportedState()},u.a.createElement(G.a,{variant:"contained",color:"primary"},i("copy")))))}}])&&nr(t.prototype,n),r&&nr(t,r),i}(l.Component);cr.defaultProps={children:null,classes:{},container:null,open:!1,t:function(e){return e}};var lr=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{accordionTitle:{padding:0}}})),Object(o.b)((function(e){return{exportableState:Object(Ke.c)(e)}}),{}),Object(c.a)("WorkspaceExport"))(cr),ur=n(1118);function fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dr(e,t){return dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dr(e,t)}function pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mr(e);if(t){var o=mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hr(this,n)}}function hr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gr(e)}function gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mr(e)}var vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dr(e,t)}(i,e);var t,n,r,o=pr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={configImportValue:""},t.handleImportConfig=t.handleImportConfig.bind(gr(t)),t.handleChange=t.handleChange.bind(gr(t)),t}return t=i,(n=[{key:"handleChange",value:function(e){e.preventDefault(),this.setState({configImportValue:e.target.value})}},{key:"handleImportConfig",value:function(e){var t=this.props,n=t.handleClose,r=t.importConfig,o=this.state.configImportValue;try{r(JSON.parse(o)),n()}catch(e){(0,this.props.addError)(e.toString())}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.handleClose,r=e.open,o=e.t;return u.a.createElement(M,{"aria-labelledby":"workspace-import-title",id:"workspace-import",onEscapeKeyDown:n,onClose:n,open:r,fullWidth:!0,maxWidth:"sm"},u.a.createElement(B,{id:"workspace-import-title",disableTypography:!0},u.a.createElement(z.a,{variant:"h2"},o("importWorkspace"))),u.a.createElement(Mt,null,u.a.createElement(ur.a,{className:t.textField,id:"workspace-import-input",multiline:!0,onChange:this.handleChange,rows:"15",variant:"filled",inputProps:{autoFocus:"autofocus",className:t.textInput},helperText:o("importWorkspaceHint")})),u.a.createElement(V,null,u.a.createElement(G.a,{className:t.cancelBtn,onClick:n},o("cancel")),u.a.createElement(G.a,{color:"primary",onClick:this.handleImportConfig,variant:"contained"},o("import"))))}}])&&fr(t.prototype,n),r&&fr(t,r),i}(l.Component);vr.defaultProps={classes:{},open:!1,t:function(e){return e}};var br={addError:J.a,importConfig:Xe.b},yr=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{cancelBtn:{color:e.palette.text.primary},textField:{width:"100%"},textInput:{fontFamily:"monospace"}}})),Object(o.b)(null,br),Object(c.a)("WorkspaceImport"))(vr);function wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Or(e,t){return Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Or(e,t)}function Er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jr(e);if(t){var o=jr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xr(this,n)}}function xr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sr(e)}function Sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e){return jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jr(e)}var Tr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}(i,e);var t,n,r,o=Er(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={exportWorkspace:{},importWorkspace:{}},t.handleMenuItemClick=t.handleMenuItemClick.bind(Sr(t)),t.handleMenuItemClose=t.handleMenuItemClose.bind(Sr(t)),t}return t=i,(n=[{key:"handleMenuItemClick",value:function(e){var t={};t[e]={},t[e].open=!0,this.setState(t)}},{key:"handleMenuItemClose",value:function(e){var t=this;return function(n){var r={};r[e]={},r[e].open=!1,t.setState(r)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.anchorEl,r=t.containerId,o=t.handleClose,i=t.t,a=this.state,s=a.exportWorkspace,c=a.importWorkspace,l=document.querySelector("#".concat(r," .").concat(Object(Gt.a)("viewer")));return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ze.a,{id:"workspace-options-menu",container:l,anchorEl:n,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:Boolean(n),onClose:o},u.a.createElement(Ye.a,{"aria-haspopup":"true",onClick:function(){e.handleMenuItemClick("exportWorkspace"),o()},"aria-owns":s.open?"workspace-export":void 0},u.a.createElement(Qe.a,null,u.a.createElement(Tn.a,null)),u.a.createElement(z.a,{variant:"body1"},i("downloadExportWorkspace"))),u.a.createElement(Ye.a,{"aria-haspopup":"true",id:"workspace-menu-import",onClick:function(){e.handleMenuItemClick("importWorkspace"),o()},"aria-owns":s.open?"workspace-import":void 0},u.a.createElement(Qe.a,null,u.a.createElement(Sn.a,null)),u.a.createElement(z.a,{variant:"body1"},i("importWorkspace"))),u.a.createElement(nn.a,this.props)),Boolean(s.open)&&u.a.createElement(lr,{open:Boolean(s.open),container:l,handleClose:this.handleMenuItemClose("exportWorkspace")}),Boolean(c.open)&&u.a.createElement(yr,{open:Boolean(c.open),container:l,handleClose:this.handleMenuItemClose("importWorkspace")}))}}])&&wr(t.prototype,n),r&&wr(t,r),i}(l.Component);Tr.defaultProps={anchorEl:null};var _r=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e){return{containerId:Object(Ke.b)(e)}}),null))(Tr);function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ir(e,t){return Ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ir(e,t)}function Pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ar(e);if(t){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kr(this,n)}}function kr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rr(e)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e){return Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(e)}var Dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ir(e,t)}(i,e);var t,n,r,o=Pr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(Rr(t)),t.handleMenuClose=t.handleMenuClose.bind(Rr(t)),t}return t=i,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=this.state.anchorEl;return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ne.a,{"aria-label":n("workspaceOptions"),className:d()(t.ctrlBtn,r?t.ctrlBtnSelected:null),onClick:this.handleMenuClick},u.a.createElement(En.a,null)),u.a.createElement(_r,{anchorEl:r,handleClose:this.handleMenuClose}))}}])&&Cr(t.prototype,n),r&&Cr(t,r),i}(l.Component),Mr=Object(r.compose)(Object(s.a)((function(e){return{ctrlBtn:{margin:e.spacing(1)},ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),Object(i.a)(),Object(c.a)("WorkspaceOptionsButton"))(Dr),Nr=n(576),Lr=n.n(Nr),zr=n(502),Wr=n(264),Br=n(1109);function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ur(e,t){return Ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ur(e,t)}function Vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qr(e);if(t){var o=qr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gr(this,n)}}function Gr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qr(e)}var $r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ur(e,t)}(i,e);var t,n,r,o=Vr(i);function i(){return Fr(this,i),o.apply(this,arguments)}return t=i,r=[{key:"focus2ndListIitem",value:function(e){!e.querySelectorAll("li")||e.querySelectorAll("li").length<2||e.querySelectorAll("li")[1].focus()}}],(n=[{key:"titleContent",value:function(e){var t=this.props,n=t.titles,r=t.t;return n[e]||r("untitled")}},{key:"render",value:function(){var e=this,t=this.props,n=t.containerId,r=t.handleClose,o=t.anchorEl,a=t.windowIds,s=t.focusWindow,c=t.t;return u.a.createElement(Ze.a,{anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},id:"window-list-menu",container:document.querySelector("#".concat(n," .").concat(Object(Gt.a)("viewer"))),disableAutoFocusItem:!0,anchorEl:o,open:Boolean(o),onClose:r,onEntering:i.focus2ndListIitem},u.a.createElement(Br.a,{role:"presentation",selected:!1,disabled:!0,tabIndex:"-1"},c("openWindows")),a.map((function(t,n){return u.a.createElement(Ye.a,{key:t,onClick:function(e){s(t,!0),r(e)}},u.a.createElement(Je.a,{primaryTypographyProps:{variant:"body1"}},e.titleContent(t)))})))}}])&&Hr(t.prototype,n),r&&Hr(t,r),i}(l.Component);$r.defaultProps={anchorEl:null,t:function(e){return e},titles:{}};var Kr={focusWindow:zr.b},Zr=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e){return{containerId:Object(Ke.b)(e),titles:Object(Wr.e)(e),windowIds:Object(he.f)(e)}}),Kr),Object(c.a)("WindowList"))($r);function Yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xr(e,t)}function Qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jr(this,n)}}function Jr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eo(e)}function eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},to(e)}var no=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xr(e,t)}(i,e);var t,n,r,o=Qr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={windowListAnchor:null},t.handleClose=t.handleClose.bind(eo(t)),t.handleOpen=t.handleOpen.bind(eo(t)),t}return t=i,(n=[{key:"handleClose",value:function(){this.setState({windowListAnchor:null})}},{key:"handleOpen",value:function(e){this.setState({windowListAnchor:e.currentTarget})}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.disabled,o=t.t,i=t.windowCount,a=this.state.windowListAnchor;return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ne.a,{"aria-haspopup":"true","aria-label":o("listAllOpenWindows"),"aria-owns":a?"window-list":null,className:d()(n.ctrlBtn,a?n.ctrlBtnSelected:null),disabled:r,badge:!0,BadgeProps:{badgeContent:i,classes:{badge:n.badge}},onClick:function(t){return e.handleOpen(t)}},u.a.createElement(Lr.a,null)),Boolean(a)&&u.a.createElement(Zr,{anchorEl:a,id:"window-list",open:Boolean(a),handleClose:this.handleClose}))}}])&&Yr(t.prototype,n),r&&Yr(t,r),i}(l.Component);no.defaultProps={classes:{},disabled:!1};var ro=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{badge:{paddingLeft:12},ctrlBtn:{margin:e.spacing(1)},ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),Object(o.b)((function(e){return{disabled:Object(he.i)(e).isWorkspaceAddVisible,windowCount:Object(he.f)(e).length}}),null),Object(c.a)("WindowListButton"))(no);function oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ao(e,t){return ao=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ao(e,t)}function so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lo(e);if(t){var o=lo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return co(this,n)}}function co(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lo(e){return lo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lo(e)}var uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ao(e,t)}(i,e);var t,n,r,o=so(i);function i(){return oo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.classes;return u.a.createElement(u.a.Fragment,null,u.a.createElement(ro,null),u.a.createElement(wn,null),u.a.createElement(Mr,null),u.a.createElement(Ge,{className:e.ctrlBtn}),u.a.createElement(nn.a,this.props))}}])&&io(t.prototype,n),r&&io(t,r),i}(l.Component);uo.defaultProps={classes:{}};var fo=Object(r.compose)(Object(s.a)((function(e){return{ctrlBtn:{margin:e.spacing(1)}}})),Object(c.a)("WorkspaceControlPanelButtons"))(uo);function po(e){return u.a.createElement(Ct.a,Object.assign({viewBox:"0 0 60 55"},e),u.a.createElement("rect",{width:"18",height:"55"}),u.a.createElement("rect",{width:"18",height:"55",transform:"translate(42)"}),u.a.createElement("rect",{width:"18",height:"34",transform:"translate(21)"}))}var ho=["t","variant"];function go(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bo(e,t){return bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bo(e,t)}function yo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oo(e);if(t){var o=Oo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wo(this,n)}}function wo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oo(e){return Oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oo(e)}var Eo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bo(e,t)}(i,e);var t,n,r,o=yo(i);function i(){return mo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.t,n=e.variant,r=go(e,ho);return u.a.createElement("div",r,"wide"===n&&u.a.createElement("div",null,u.a.createElement(z.a,{align:"center",component:"p",variant:"h3"},t("mirador"))),u.a.createElement(z.a,{align:"center"},u.a.createElement(zn.a,{component:"a",href:"https://projectmirador.org",target:"_blank",rel:"noopener"},u.a.createElement(po,{"aria-label":t("aboutMirador"),titleAccess:t("aboutMirador"),fontSize:"large"}))))}}])&&vo(t.prototype,n),r&&vo(t,r),i}(l.Component);Eo.defaultProps={t:function(e){return e},variant:"default"};var xo=Object(c.a)("Branding")(Eo);function So(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function To(e,t){return To=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},To(e,t)}function _o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Io(e);if(t){var o=Io(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Co(this,n)}}function Co(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Io(e){return Io=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Io(e)}var Po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&To(e,t)}(i,e);var t,n,r,o=_o(i);function i(){return So(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=e.variant;return u.a.createElement(oe,{className:d()(t.root,Object(Gt.a)("workspace-control-panel"),"wide"===r?t.wide:null),color:"default",position:"absolute",component:"nav","aria-label":n("workspaceNavigation")},u.a.createElement(ie.a,{disableGutters:!0,className:t.toolbar},u.a.createElement(ke,null),u.a.createElement("div",{className:t.workspaceButtons},u.a.createElement(fo,null))),u.a.createElement(xo,{className:t.branding,t:n,variant:r}))}}])&&jo(t.prototype,n),r&&jo(t,r),i}(l.Component);function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Po.defaultProps={variant:"default"};var Ro=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){var t;return{branding:(t={display:"flex",position:"absolute"},ko(t,e.breakpoints.up("xs"),{display:"none"}),ko(t,e.breakpoints.up("sm"),{bottom:0,display:"block",float:"none",right:"auto",width:"100%"}),ko(t,"right",0),t),ctrlBtn:{margin:e.spacing(1)},drawer:{overflowX:"hidden"},root:ko({height:64},e.breakpoints.up("sm"),{height:"100%",left:0,right:"auto",width:64}),toolbar:ko({display:"flex",justifyContent:"space-between"},e.breakpoints.up("sm"),{flexDirection:"column",justifyContent:"flex-start",minHeight:0}),wide:{width:"auto"},workspaceButtons:ko({},e.breakpoints.up("sm"),{display:"flex",flexDirection:"column"})}})),Object(c.a)("WorkspaceControlPanel"))(Po),Ao=n(1110),Do=n(85),Mo=n(297),No=n.n(Mo),Lo=n(157),zo=n(111),Wo=l.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,o=e.control,i=e.disabled,a=(e.inputRef,e.label),s=e.labelPlacement,c=void 0===s?"end":s,u=(e.name,e.onChange,e.value,Object(m.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),f=Object(zo.a)(),d=i;void 0===d&&void 0!==o.props.disabled&&(d=o.props.disabled),void 0===d&&f&&(d=f.disabled);var p={disabled:d};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===o.props[t]&&void 0!==e[t]&&(p[t]=e[t])})),l.createElement("label",Object(g.a)({className:Object(b.a)(n.root,r,"end"!==c&&n["labelPlacement".concat(Object(y.a)(c))],d&&n.disabled),ref:t},u),l.cloneElement(o,p),l.createElement(z.a,{component:"span",className:Object(b.a)(n.label,d&&n.disabled)},a))})),Bo=Object(s.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(Wo),Fo=n(592),Ho=n.n(Fo);function Uo(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M3,3H21V5H3Z",transform:"translate(0 16)"}),u.a.createElement("path",{d:"M21,5H3V19H21ZM19,17H5V7H19Z",transform:"translate(0 -2)"})))}function Vo(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M0,0H24V24H0Z",transform:"translate(24) rotate(90)",fill:"none"}),u.a.createElement("path",{d:"M3,3H21V5H3Z",transform:"translate(24) rotate(90)"}),u.a.createElement("path",{d:"M19,3H5V21H19ZM17,19H7V5H17Z",transform:"translate(-2)"})))}function Go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qo(e,t){return qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qo(e,t)}function $o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yo(e);if(t){var o=Yo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ko(this,n)}}function Ko(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zo(e)}function Zo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yo(e){return Yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yo(e)}var Xo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qo(e,t)}(i,e);var t,n,r,o=$o(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleChange=t.handleChange.bind(Zo(t)),t}return t=i,(n=[{key:"handleChange",value:function(e){var t=this.props,n=t.windowId;(0,t.setWindowThumbnailPosition)(n,e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.handleClose,o=t.t,i=t.thumbnailNavigationPosition,a=t.direction;return u.a.createElement(u.a.Fragment,null,u.a.createElement(Br.a,{role:"presentation",disableSticky:!0,tabIndex:"-1"},o("thumbnails")),u.a.createElement(Ye.a,{className:n.MenuItem,onClick:function(){e.handleChange("off"),r()}},u.a.createElement(Bo,{value:"off",classes:{label:"off"===i?n.selectedLabel:n.label},control:u.a.createElement(Ho.a,{color:"off"===i?"secondary":void 0}),label:o("off"),labelPlacement:"bottom"})),u.a.createElement(Ye.a,{className:n.MenuItem,onClick:function(){e.handleChange("far-bottom"),r()}},u.a.createElement(Bo,{value:"far-bottom",classes:{label:"far-bottom"===i?n.selectedLabel:n.label},control:u.a.createElement(Uo,{color:"far-bottom"===i?"secondary":void 0}),label:o("bottom"),labelPlacement:"bottom"})),u.a.createElement(Ye.a,{className:n.MenuItem,onClick:function(){e.handleChange("far-right"),r()}},u.a.createElement(Bo,{value:"far-right",classes:{label:"far-right"===i?n.selectedLabel:n.label},control:u.a.createElement(Vo,{color:"far-right"===i?"secondary":void 0,style:"rtl"===a?{transform:"rotate(180deg)"}:{}}),label:o("right"),labelPlacement:"bottom"})))}}])&&Go(t.prototype,n),r&&Go(t,r),i}(l.Component);Xo.defaultProps={handleClose:function(){},t:function(e){return e}};var Qo={setWindowThumbnailPosition:zr.h},Jo=Object(r.compose)(Object(s.a)((function(e){return{label:{borderBottom:"2px solid transparent"},MenuItem:{display:"inline-block"},selectedLabel:{borderBottom:"2px solid ".concat(e.palette.secondary.main),color:e.palette.secondary.main}}})),Object(i.a)(null,{withRef:!0}),Object(o.b)((function(e,t){var n=t.windowId;return{direction:Object(Ke.h)(e),thumbnailNavigationPosition:Object(Lo.g)(e,{windowId:n})}}),Qo,null,{forwardRef:!0}),Object(c.a)("WindowThumbnailSettings"))(Xo),ei=n(591),ti=n.n(ei),ni=n(590),ri=n.n(ni);function oi(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8ZM14,9.5h6V11H14ZM14,12h6v1.5H14Zm0,2.5h6V16H14Z"})))}function ii(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M19.974,2H2V19.974H19.974V2ZM7.392,18.177H3.8V14.582H7.392Zm0-5.392H3.8V9.19H7.392Zm0-5.392H3.8V3.8H7.392Zm5.392,10.785H9.19V14.582h3.595Zm0-5.392H9.19V9.19h3.595Zm0-5.392H9.19V3.8h3.595Zm5.392,10.785H14.582V14.582h3.595Zm0-5.392H14.582V9.19h3.595Zm0-5.392H14.582V3.8h3.595Z",transform:"translate(1 1)"})))}function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},si(e,t)}function ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fi(e);if(t){var o=fi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return li(this,n)}}function li(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ui(e)}function ui(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fi(e)}var di=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&si(e,t)}(i,e);var t,n,r,o=ci(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleChange=t.handleChange.bind(ui(t)),t}return t=i,(n=[{key:"handleChange",value:function(e){var t=this.props,n=t.windowId;(0,t.setWindowViewType)(n,e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.handleClose,o=t.t,i=t.windowViewType,a=t.viewTypes,s={book:oi,gallery:ii,scroll:ri.a,single:ti.a};return 0===a.length?null:u.a.createElement(u.a.Fragment,null,u.a.createElement(Br.a,{role:"presentation",disableSticky:!0,tabIndex:"-1"},o("view")),a.map((function(t){return function(t){var a=t.value,s=t.Icon;return u.a.createElement(Ye.a,{key:a,className:n.MenuItem,autoFocus:i===a,onClick:function(){e.handleChange(a),r()}},u.a.createElement(Bo,{value:a,classes:{label:i===a?n.selectedLabel:n.label},control:u.a.createElement(s,{color:i===a?"secondary":void 0}),label:o(a),labelPlacement:"bottom"}))}({Icon:s[t],value:t})})))}}])&&ai(t.prototype,n),r&&ai(t,r),i}(l.Component);di.defaultProps={handleClose:function(){},t:function(e){return e},viewTypes:[]};var pi={setWindowViewType:zr.i},hi=Object(r.compose)(Object(s.a)((function(e){return{label:{borderBottom:"2px solid transparent"},MenuItem:{display:"inline-block"},selectedLabel:{borderBottom:"2px solid ".concat(e.palette.secondary.main),color:e.palette.secondary.main}}})),Object(i.a)(null,{withRef:!0}),Object(o.b)((function(e,t){var n=t.windowId;return{viewTypes:Object(Wr.a)(e,{windowId:n}),windowViewType:Object(Wr.f)(e,{windowId:n})}}),pi,null,{forwardRef:!0}),Object(c.a)("WindowViewSettings"))(di);function gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vi(e,t){return vi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vi(e,t)}function bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wi(e);if(t){var o=wi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wi(e)}function Oi(e){var t=e.PluginComponents,n=e.t;return t?u.a.createElement(u.a.Fragment,null,u.a.createElement(Br.a,{role:"presentation",disableSticky:!0,tabIndex:"-1"},n("windowPluginButtons")),u.a.createElement(nn.a,e)):null}var Ei=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vi(e,t)}(i,e);var t,n,r,o=bi(i);function i(){return gi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.containerId,n=e.handleClose,r=e.anchorEl,o=e.showThumbnailNavigationSettings,i=e.toggleDraggingEnabled,a=e.windowId;return u.a.createElement(Ze.a,{id:"window-menu_".concat(a),container:document.querySelector("#".concat(t," .").concat(Object(Gt.a)("viewer"))),anchorEl:r,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},getContentAnchorEl:null,open:Boolean(r),onClose:n,onEntering:i,onExit:i,orientation:"horizontal"},u.a.createElement(hi,{windowId:a,handleClose:n}),o&&u.a.createElement(Jo,{windowId:a,handleClose:n}),u.a.createElement(Oi,this.props))}}])&&mi(t.prototype,n),r&&mi(t,r),i}(l.Component);Ei.defaultProps={anchorEl:null,showThumbnailNavigationSettings:!0};var xi=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e){return{containerId:Object(Ke.b)(e),showThumbnailNavigationSettings:Object(Ke.a)(e).thumbnailNavigation.displaySettings}}),(function(e){return{toggleDraggingEnabled:function(){return e(pe.e())}}})),Object(c.a)("WindowTopMenu"))(Ei);function Si(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M0,0H24V24H0Z",fill:"none"}),u.a.createElement("path",{d:"M24.852,17.981,3,18V15.945l21.852-.019Z",transform:"translate(-2 5)"}),u.a.createElement("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8Z",transform:"translate(0 -2)"})))}function ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ti(e,t){return Ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ti(e,t)}function _i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pi(e);if(t){var o=Pi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ci(this,n)}}function Ci(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ii(e)}function Ii(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pi(e)}var ki=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ti(e,t)}(i,e);var t,n,r,o=_i(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(Ii(t)),t.handleMenuClose=t.handleMenuClose.bind(Ii(t)),t}return t=i,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=e.windowId,o=this.state.anchorEl;return u.a.createElement(u.a.Fragment,null,u.a.createElement(Ne.a,{"aria-haspopup":"true","aria-label":n("windowMenu"),"aria-owns":o?"window-menu_".concat(r):void 0,className:o?t.ctrlBtnSelected:null,onClick:this.handleMenuClick},u.a.createElement(Si,null)),u.a.createElement(xi,{windowId:r,anchorEl:o,handleClose:this.handleMenuClose}))}}])&&ji(t.prototype,n),r&&ji(t,r),i}(l.Component);ki.defaultProps={t:function(e){return e}};var Ri=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),Object(c.a)("WindowTopMenuButton"))(ki);function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mi(e,t){return Mi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mi(e,t)}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zi(e);if(t){var o=zi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Li(this,n)}}function Li(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}var Wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mi(e,t)}(i,e);var t,n,r,o=Ni(i);function i(){return Ai(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return u.a.createElement(u.a.Fragment,null,u.a.createElement(nn.a,this.props))}}])&&Di(t.prototype,n),r&&Di(t,r),i}(l.Component),Bi=Object(r.compose)(Object(i.a)(),Object(s.a)({}),Object(o.b)(null,null),Object(c.a)("WindowTopBarPluginArea"))(Wi),Fi=n(593),Hi=n.n(Fi);function Ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vi(e,t){return Vi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vi(e,t)}function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ki(e);if(t){var o=Ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qi(this,n)}}function qi(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $i(e)}function $i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ki(e)}var Zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vi(e,t)}(i,e);var t,n,r,o=Gi(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind($i(t)),t.handleMenuClose=t.handleMenuClose.bind($i(t)),t}return t=i,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.containerId,o=t.PluginComponents,i=t.t,a=t.windowId,s=t.menuIcon,c=this.state.anchorEl;return o&&0!==o.length?u.a.createElement(u.a.Fragment,null,u.a.createElement(Ne.a,{"aria-haspopup":"true","aria-label":i("windowPluginMenu"),"aria-owns":c?"window-plugin-menu_".concat(a):void 0,className:c?n.ctrlBtnSelected:null,onClick:this.handleMenuClick},s),u.a.createElement(Ze.a,{id:"window-plugin-menu_".concat(a),container:document.querySelector("#".concat(r," .").concat(Object(Gt.a)("viewer"))),anchorEl:c,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},getContentAnchorEl:null,open:Boolean(c),onClose:function(){return e.handleMenuClose()}},u.a.createElement(nn.a,Object.assign({handleClose:function(){return e.handleMenuClose()}},this.props)))):u.a.createElement(u.a.Fragment,null)}}])&&Ui(t.prototype,n),r&&Ui(t,r),i}(l.Component);Zi.defaultProps={classes:{},menuIcon:u.a.createElement(Hi.a,null),PluginComponents:[]};var Yi=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),Object(o.b)((function(e){return{containerId:Object(Ke.b)(e)}}),null),Object(c.a)("WindowTopBarPluginMenu"))(Zi),Xi=n(88),Qi=n(1101),Ji=n(293),ea=n.n(Ji);function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ra(e,t){return ra=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ra(e,t)}function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aa(e);if(t){var o=aa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ia(this,n)}}function ia(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aa(e)}var sa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ra(e,t)}(i,e);var t,n,r,o=oa(i);function i(){return ta(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.error,r=e.hideWindowTitle,o=e.isFetching,i=e.manifestTitle,a=function(e){return u.a.createElement(z.a,Object.assign({variant:"h2",noWrap:!0,color:"inherit",className:t.title},e),e.children)};return o?u.a.createElement(a,null,u.a.createElement(Qi.a,{variant:"text"})):n?u.a.createElement(u.a.Fragment,null,u.a.createElement(ea.a,{color:"error"}),u.a.createElement(a,{color:"textSecondary"},n)):r?u.a.createElement("div",{className:t.title}):u.a.createElement(a,null,i)}}])&&na(t.prototype,n),r&&na(t,r),i}(l.Component);function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){ua(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}sa.defaultProps={error:null,hideWindowTitle:!1,isFetching:!1,manifestTitle:""};var fa=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{title:la(la({},e.typography.h6),{},{flexGrow:1,paddingLeft:e.spacing(.5)})}})),Object(o.b)((function(e,t){var n=t.windowId;return{error:Object(Xi.m)(e,{windowId:n}).error,hideWindowTitle:Object(Wr.c)(e,{windowId:n}).hideWindowTitle,isFetching:Object(Xi.m)(e,{windowId:n}).isFetching,manifestTitle:Object(Xi.o)(e,{windowId:n})}}),null),Object(c.a)("WindowTopBarTitle"))(sa);function da(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M7,14H5v5h5V17H7Zm7-9V7h3v3h2V5Z"}),u.a.createElement("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})))}function pa(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M5,16H8v3h2V14H5ZM16,8V5H14v5h5V8Z"}),u.a.createElement("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})))}function ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ma(e,t){return ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ma(e,t)}function va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ya(e);if(t){var o=ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ba(this,n)}}function ba(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ya(e)}var wa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ma(e,t)}(i,e);var t,n,r,o=va(i);function i(){return ha(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.removeWindow,n=e.windowId,r=e.classes,o=e.toggleWindowSideBar,i=e.t,a=e.windowDraggable,s=e.maximizeWindow,c=e.maximized,l=e.minimizeWindow,f=e.focused,p=e.allowClose,h=e.allowMaximize,g=e.focusWindow,m=e.allowFullscreen,v=e.allowTopMenuButton,b=e.allowWindowSideBar;return u.a.createElement(oe,{position:"relative",color:"default"},u.a.createElement("nav",{"aria-label":i("windowNavigation")},u.a.createElement(ie.a,{disableGutters:!0,onMouseDown:g,className:d()(r.windowTopBarStyle,a?r.windowTopBarStyleDraggable:null,f?r.focused:null,Object(Gt.a)("window-top-bar")),variant:"dense"},b&&u.a.createElement(Ne.a,{"aria-label":i("toggleWindowSideBar"),onClick:o},u.a.createElement(No.a,null)),u.a.createElement(fa,{windowId:n}),v&&u.a.createElement(Ri,{className:Object(Gt.a)("window-menu-btn"),windowId:n}),u.a.createElement(Bi,{windowId:n}),u.a.createElement(Yi,{windowId:n}),h&&u.a.createElement(Ne.a,{"aria-label":i(c?"minimizeWindow":"maximizeWindow"),className:Object(Gt.a)("window-maximize"),onClick:c?l:s},c?u.a.createElement(pa,null):u.a.createElement(da,null)),m&&u.a.createElement(Ge,null),p&&u.a.createElement(Ne.a,{"aria-label":i("closeWindow"),className:Object(Gt.a)("window-close"),onClick:t},u.a.createElement(Ee.a,null)))))}}])&&ga(t.prototype,n),r&&ga(t,r),i}(l.Component);wa.defaultProps={allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,focused:!1,focusWindow:function(){},maximized:!1,maximizeWindow:function(){},minimizeWindow:function(){},t:function(e){return e},windowDraggable:!0};var Oa=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{focused:{},windowTopBarStyle:{"&$focused":{borderTop:"2px solid ".concat(e.palette.primary.main)},backgroundColor:e.palette.shades.main,borderTop:"2px solid transparent",minHeight:32,paddingLeft:e.spacing(.5),paddingRight:e.spacing(.5)},windowTopBarStyleDraggable:{cursor:"move"}}})),Object(o.b)((function(e,t){var n=t.windowId,r=Object(Wr.c)(e,{windowId:n});return{allowClose:r.allowClose,allowFullscreen:r.allowFullscreen,allowMaximize:r.allowMaximize,allowTopMenuButton:r.allowTopMenuButton,allowWindowSideBar:r.allowWindowSideBar,focused:Object(ee.e)(e,{windowId:n}),maximized:r.maximized}}),(function(e,t){var n=t.windowId;return{focusWindow:function(){return e(zr.b(n))},maximizeWindow:function(){return e(zr.d(n))},minimizeWindow:function(){return e(zr.e(n))},removeWindow:function(){return e(zr.f(n))},toggleWindowSideBar:function(){return e(zr.k(n))}}})),Object(c.a)("WindowTopBar"))(wa),Ea=n(53),xa=n(101);function Sa(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var ja={enter:x.b.enteringScreen,exit:x.b.leavingScreen},Ta=l.forwardRef((function(e,t){var n=e.children,r=e.direction,o=void 0===r?"down":r,i=e.in,a=e.onEnter,s=e.onEntered,c=e.onEntering,u=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,v=void 0===h?ja:h,b=e.TransitionComponent,y=void 0===b?E.a:b,w=Object(m.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=Object(S.a)(),x=l.useRef(null),_=l.useCallback((function(e){x.current=_n.findDOMNode(e)}),[]),C=Object(T.a)(n.ref,_),I=Object(T.a)(C,t),P=function(e){return function(t){e&&(void 0===t?e(x.current):e(x.current,t))}},k=P((function(e,t){Sa(o,e),Object(j.b)(e),a&&a(e,t)})),R=P((function(e,t){var n=Object(j.a)({timeout:v,style:p},{mode:"enter"});e.style.webkitTransition=O.transitions.create("-webkit-transform",Object(g.a)({},n,{easing:O.transitions.easing.easeOut})),e.style.transition=O.transitions.create("transform",Object(g.a)({},n,{easing:O.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",c&&c(e,t)})),A=P(s),D=P(d),M=P((function(e){var t=Object(j.a)({timeout:v,style:p},{mode:"exit"});e.style.webkitTransition=O.transitions.create("-webkit-transform",Object(g.a)({},t,{easing:O.transitions.easing.sharp})),e.style.transition=O.transitions.create("transform",Object(g.a)({},t,{easing:O.transitions.easing.sharp})),Sa(o,e),u&&u(e)})),N=P((function(e){e.style.webkitTransition="",e.style.transition="",f&&f(e)})),L=l.useCallback((function(){x.current&&Sa(o,x.current)}),[o]);return l.useEffect((function(){if(!i&&"down"!==o&&"right"!==o){var e=Object(xa.a)((function(){x.current&&Sa(o,x.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[o,i]),l.useEffect((function(){i||L()}),[i,L]),l.createElement(y,Object(g.a)({nodeRef:x,onEnter:k,onEntered:A,onEntering:R,onExit:M,onExited:N,onExiting:D,appear:!0,in:i,timeout:v},w),(function(e,t){return l.cloneElement(n,Object(g.a)({ref:I,style:Object(g.a)({visibility:"exited"!==e||i?void 0:"hidden"},p,n.props.style)},t))}))})),_a={left:"right",right:"left",top:"down",bottom:"up"};var Ca={enter:x.b.enteringScreen,exit:x.b.leavingScreen},Ia=l.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.BackdropProps,i=e.children,a=e.classes,s=e.className,c=e.elevation,u=void 0===c?16:c,f=e.ModalProps,d=(f=void 0===f?{}:f).BackdropProps,p=Object(m.a)(f,["BackdropProps"]),h=e.onClose,v=e.open,O=void 0!==v&&v,E=e.PaperProps,x=void 0===E?{}:E,j=e.SlideProps,T=e.TransitionComponent,_=void 0===T?Ta:T,C=e.transitionDuration,I=void 0===C?Ca:C,P=e.variant,A=void 0===P?"temporary":P,D=Object(m.a)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),M=Object(S.a)(),N=l.useRef(!1);l.useEffect((function(){N.current=!0}),[]);var L=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?_a[t]:t}(M,r),z=l.createElement(R.a,Object(g.a)({elevation:"temporary"===A?u:0,square:!0},x,{className:Object(b.a)(a.paper,a["paperAnchor".concat(Object(y.a)(L))],x.className,"temporary"!==A&&a["paperAnchorDocked".concat(Object(y.a)(L))])}),i);if("permanent"===A)return l.createElement("div",Object(g.a)({className:Object(b.a)(a.root,a.docked,s),ref:t},D),z);var W=l.createElement(_,Object(g.a)({in:O,direction:_a[L],timeout:I,appear:N.current},j),z);return"persistent"===A?l.createElement("div",Object(g.a)({className:Object(b.a)(a.root,a.docked,s),ref:t},D),W):l.createElement(w.a,Object(g.a)({BackdropProps:Object(g.a)({},o,d,{transitionDuration:I}),BackdropComponent:k,className:Object(b.a)(a.root,a.modal,s),open:O,onClose:h,ref:t},D,p),W)})),Pa=Object(s.a)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(Ia),ka=n(508),Ra=n(46),Aa=n(529),Da=n(503),Ma=n(1095),Na=n(1113),La=n(1106),za=n(595),Wa=n.n(za),Ba=n(298),Fa=n.n(Ba),Ha=n(596),Ua=n.n(Ha),Va=n(597),Ga=n.n(Va),qa=n(183),$a=n.n(qa);function Ka(e){return u.a.createElement(Ct.a,e,u.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.a.createElement("path",{d:"M6.924,21H21V19H6.924ZM3,17H21V15H3Zm3.924-4H21V11H6.924Zm0-4H21V7H6.924ZM3,3V5H21V3Z"})))}function Za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ya(e,t){return Ya=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ya(e,t)}function Xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=es(e);if(t){var o=es(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qa(this,n)}}function Qa(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ja(e)}function Ja(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},es(e)}var ts=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ya(e,t)}(i,e);var t,n,r,o=Xa(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleChange=t.handleChange.bind(Ja(t)),t}return t=i,(n=[{key:"handleChange",value:function(e,t){(0,this.props.addCompanionWindow)(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.hasAnnotations,o=t.hasAnyAnnotations,i=t.hasAnyLayers,a=t.hasCurrentLayers,s=t.hasSearchResults,c=t.hasSearchService,l=t.panels,f=t.PluginComponents,d=t.sideBarPanel,p=t.t,h=function(t){return u.a.createElement(be.a,{title:p("openCompanionWindow",{context:t.value})},u.a.createElement(La.a,Object.assign({},t,{classes:{root:n.tab,selected:n.tabSelected},"aria-label":p("openCompanionWindow",{context:t.value}),disableRipple:!0,onKeyUp:e.handleKeyUp})))};return u.a.createElement(Na.a,{classes:{flexContainer:n.tabsFlexContainer,indicator:n.tabsIndicator},value:"closed"!==d&&d,onChange:this.handleChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary",orientation:"vertical","aria-orientation":"vertical","aria-label":p("sidebarPanelsNavigation")},l.info&&u.a.createElement(h,{value:"info",icon:u.a.createElement(Wa.a,null)}),l.attribution&&u.a.createElement(h,{value:"attribution",icon:u.a.createElement(Ua.a,null)}),l.canvas&&u.a.createElement(h,{value:"canvas",icon:u.a.createElement(Ka,null)}),l.annotations&&(r||o)&&u.a.createElement(h,{value:"annotations",icon:u.a.createElement(Ma.a,{classes:{badge:n.badge},invisible:!r,variant:"dot"},u.a.createElement(Fa.a,null))}),l.search&&c&&u.a.createElement(h,{value:"search",icon:u.a.createElement(Ma.a,{classes:{badge:n.badge},invisible:!s,variant:"dot"},u.a.createElement($a.a,null))}),l.layers&&i&&u.a.createElement(h,{value:"layers",icon:u.a.createElement(Ma.a,{classes:{badge:n.badge},invisible:!a,variant:"dot"},u.a.createElement(Ga.a,null))}),f&&f.map((function(e){return u.a.createElement(h,{key:e.value,value:e.value,icon:u.a.createElement(e,null)})})))}}])&&Za(t.prototype,n),r&&Za(t,r),i}(l.Component);ts.defaultProps={classes:{},hasAnnotations:!1,hasAnyAnnotations:!1,hasAnyLayers:!1,hasCurrentLayers:!1,hasSearchResults:!1,hasSearchService:!1,panels:[],PluginComponents:null,sideBarPanel:"closed",t:function(e){return e}};function ns(e){return e&&e.some((function(e){return new Ra.a(e).imageResources.length>1}))}var rs=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{badge:{backgroundColor:e.palette.notification.main},tab:{"&:active":{backgroundColor:e.palette.action.active},"&:focus":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:e.palette.action.hover,textDecoration:"none"},"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:e.palette.action.hover,textDecoration:"none"},borderRight:"2px solid transparent",minWidth:"auto"},tabSelected:{borderRight:"2px solid ".concat(e.palette.primary.main)},tabsFlexContainer:{flexDirection:"column"},tabsIndicator:{display:"none"}}})),Object(o.b)((function(e,t){var n,r=t.windowId;return{hasAnnotations:Object(Aa.a)(e,{windowId:r}).length>0,hasAnyAnnotations:(n=Object(Ea.f)(e,{windowId:r}),n&&n.some((function(e){var t=new Ra.a(e);return t.annotationListUris.length>0||t.canvasAnnotationPages.length>0}))),hasAnyLayers:ns(Object(Ea.f)(e,{windowId:r})),hasCurrentLayers:ns(Object(Ea.o)(e,{windowId:r})),hasSearchResults:Object(he.e)(e,{windowId:r}).suggestedSearches||Object(Da.j)(e,{companionWindowId:(Object(Lo.f)(e,{position:"left",windowId:r})[0]||{}).id,windowId:r}),hasSearchService:null!==Object(Xi.l)(e,{windowId:r}),panels:Object(Wr.c)(e,{windowId:r}).panels,sideBarPanel:(Object(Lo.f)(e,{position:"left",windowId:r})[0]||{}).content}}),(function(e,t){var n=t.windowId;return{addCompanionWindow:function(t){return e(ka.b(n,{content:t,position:"left"}))}}})),Object(c.a)("WindowSideBarButtons"))(ts);function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function as(e,t){return as=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},as(e,t)}function ss(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ls(e);if(t){var o=ls(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cs(this,n)}}function cs(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ls(e)}var us=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&as(e,t)}(i,e);var t,n,r,o=ss(i);function i(){return os(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.direction,r=e.t,o=e.windowId,i=e.sideBarOpen;return u.a.createElement(u.a.Fragment,null,u.a.createElement(Pa,{variant:"persistent",className:d()(t.drawer),classes:{paper:d()(t.paper)},anchor:"rtl"===n?"right":"left",PaperProps:{"aria-label":r("sidebarPanelsNavigation"),component:"nav",style:{height:"100%",position:"relative"}},SlideProps:{direction:"rtl"===n?"left":"right",mountOnEnter:!0,unmountOnExit:!0},open:i},u.a.createElement(rs,{windowId:o})))}}])&&is(t.prototype,n),r&&is(t,r),i}(l.Component);us.defaultProps={sideBarOpen:!1};var fs=Object(r.compose)(Object(s.a)((function(e){return{drawer:{flexShrink:0,height:"100%",order:-1e3,zIndex:e.zIndex.appBar-1},grow:{flexGrow:1},paper:{borderInlineEnd:"1px solid ".concat(e.palette.divider),overflowX:"hidden",width:48},toolbar:e.mixins.toolbar}})),Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId;return{direction:Object(Ke.h)(e),sideBarOpen:(Object(he.e)(e,{windowId:n})||{}).sideBarOpen,sideBarPanel:(Object(he.e)(e,{windowId:n})||{}).sideBarPanel}}),null),Object(c.a)("WindowSideBar"))(us),ds=n(395),ps=n.n(ds),hs=n(394),gs=n.n(hs),ms=n(219),vs=n(58),bs=n(100),ys=Object(bs.a)(l.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ws=Object(bs.a)(l.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Os=Object(bs.a)(l.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Es=Object(bs.a)(l.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),xs=n(288),Ss={success:l.createElement(ys,{fontSize:"inherit"}),warning:l.createElement(ws,{fontSize:"inherit"}),error:l.createElement(Os,{fontSize:"inherit"}),info:l.createElement(Es,{fontSize:"inherit"})},js=l.createElement(xs.a,{fontSize:"small"}),Ts=l.forwardRef((function(e,t){var n=e.action,r=e.children,o=e.classes,i=e.className,a=e.closeText,s=void 0===a?"Close":a,c=e.color,u=e.icon,f=e.iconMapping,d=void 0===f?Ss:f,p=e.onClose,h=e.role,v=void 0===h?"alert":h,w=e.severity,O=void 0===w?"success":w,E=e.variant,x=void 0===E?"standard":E,S=Object(m.a)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return l.createElement(R.a,Object(g.a)({role:v,square:!0,elevation:0,className:Object(b.a)(o.root,o["".concat(x).concat(Object(y.a)(c||O))],i),ref:t},S),!1!==u?l.createElement("div",{className:o.icon},u||d[O]||Ss[O]):null,l.createElement("div",{className:o.message},r),null!=n?l.createElement("div",{className:o.action},n):null,null==n&&p?l.createElement("div",{className:o.action},l.createElement(zn.a,{size:"small","aria-label":s,title:s,color:"inherit",onClick:p},js)):null)})),_s=Object(s.a)((function(e){var t="light"===e.palette.type?a.b:a.e,n="light"===e.palette.type?a.e:a.b;return{root:Object(g.a)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(Ts);function Cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ps(e,t){return Ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ps(e,t)}function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=As(e);if(t){var o=As(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rs(this,n)}}function Rs(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function As(e){return As=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},As(e)}var Ds=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ps(e,t)}(i,e);var t,n,r,o=ks(i);function i(){return Cs(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.error,r=e.metadata,o=e.showJsError,i=e.t;return o?u.a.createElement(u.a.Fragment,null,u.a.createElement(_s,{elevation:6,variant:"filled",severity:"error"},i("errorDialogTitle")),o&&u.a.createElement(Yn,{square:!0,className:t.alert},u.a.createElement(Qn,{expandIcon:u.a.createElement(Bn.a,null)},u.a.createElement(z.a,null,i("jsError",{message:n.message,name:n.name}))),u.a.createElement(er,{className:t.details},u.a.createElement("pre",null,i("jsStack",{stack:n.stack})),r&&u.a.createElement("pre",null,JSON.stringify(r,null,2)))),u.a.createElement(nn.a,this.props)):null}}])&&Is(t.prototype,n),r&&Is(t,r),i}(l.Component);Ds.defaultProps={metadata:null,showJsError:!0,t:function(e){return e}};var Ms=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{alert:{"& $icon":{color:e.palette.error.main},backgroundColor:e.palette.error.main,color:"#fff",fontWeight:e.typography.fontWeightMedium},details:{"& pre":{height:"100px",overflowY:"scroll"},flexDirection:"column"}}})),Object(o.b)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{metadata:{companionWindow:n&&Object(Lo.b)(e,{companionWindowId:n}),manifest:Object(he.b)(e,{windowId:r}),viewer:Object(he.d)(e,{windowId:r}),window:Object(he.e)(e,{windowId:r})},showJsError:Object(Ke.a)(e).window.showJsError}})),Object(c.a)("ErrorContent"))(Ds);function Ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ls(e,t){return Ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ls(e,t)}function zs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bs(e);if(t){var o=Bs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ws(this,n)}}function Ws(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bs(e)}var Fs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ls(e,t)}(i,e);var t,n,r,o=zs(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={},t}return t=i,r=[{key:"getDerivedStateFromError",value:function(e){return{error:e,hasError:!0}}}],(n=[{key:"componentDidUpdate",value:function(e){this.props.content!==e.content&&this.setState({error:null,hasError:!1})}},{key:"render",value:function(){var e=this.props,t=e.content,n=e.windowId,r=e.id,o=e.t,i=this.state,a=i.error;if(i.hasError)return u.a.createElement(vs.a,{title:o("error"),windowId:n,id:r},u.a.createElement(Ms,{error:a,windowId:n,companionWindowId:r}));var s=ms.a[t];return s?u.a.createElement(s,{id:r,windowId:n}):u.a.createElement(u.a.Fragment,null)}}])&&Ns(t.prototype,n),r&&Ns(t,r),i}(l.Component);Fs.defaultProps={content:null,t:function(e){return e}};var Hs=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){var n=t.id;return{content:Object(Lo.b)(e,{companionWindowId:n}).content,id:n}})),Object(c.a)("CompanionWindowFactory"))(Fs);function Us(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gs(e,t){return Gs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gs(e,t)}function qs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ks(e);if(t){var o=Ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $s(this,n)}}function $s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(e)}var Zs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gs(e,t)}(i,e);var t,n,r,o=qs(i);function i(){return Us(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"areaLayoutClass",value:function(){var e=this.props,t=e.classes,n=e.position;return"bottom"===n||"far-bottom"===n?t.horizontal:null}},{key:"collapseIcon",value:function(){var e=this.props,t=e.companionAreaOpen;return"rtl"===e.direction?t?u.a.createElement(gs.a,null):u.a.createElement(ps.a,null):t?u.a.createElement(ps.a,null):u.a.createElement(gs.a,null)}},{key:"slideDirection",value:function(){var e=this.props,t=e.direction,n="rtl"===t?"left":"right",r="rtl"===t?"right":"left";switch(e.position){case"right":case"far-right":return r;case"bottom":case"far-bottom":return"up";default:return n}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowIds,r=e.companionAreaOpen,o=e.setCompanionAreaOpen,i=e.position,a=e.sideBarOpen,s=e.t,c=e.windowId;return u.a.createElement("div",{className:[t.root,this.areaLayoutClass(),Object(Gt.a)("companion-area-".concat(i))].join(" ")},u.a.createElement(Ta,{in:r,direction:this.slideDirection()},u.a.createElement("div",{className:[Object(Gt.a)("companion-windows"),n.length>0&&t[i],this.areaLayoutClass()].join(" "),style:{display:r?"flex":"none"}},n.map((function(e){return u.a.createElement(Hs,{id:e,key:e,windowId:c})})))),o&&"left"===i&&a&&n.length>0&&u.a.createElement("div",{className:t.toggle},u.a.createElement(Ne.a,{"aria-expanded":r,"aria-label":s(r?"collapseSidePanel":"expandSidePanel"),className:t.toggleButton,key:r?"collapse":"expand",onClick:function(){o(c,!r)},TooltipProps:{placement:"right"}},this.collapseIcon())))}}])&&Vs(t.prototype,n),r&&Vs(t,r),i}(l.Component);Zs.defaultProps={classes:{},setCompanionAreaOpen:function(){},sideBarOpen:!1};var Ys={setCompanionAreaOpen:zr.g},Xs=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{horizontal:{flexDirection:"column",width:"100%"},left:{minWidth:235},root:{display:"flex",minHeight:0,position:"relative",zIndex:e.zIndex.appBar-2},toggle:{backgroundColor:e.palette.background.paper,border:"1px solid ".concat(e.palette.shades.dark),borderRadius:0,height:"48px",left:"100%",marginTop:"1rem",padding:2,position:"absolute",width:"23px",zIndex:e.zIndex.drawer},toggleButton:{marginBottom:12,marginTop:12,padding:0}}})),Object(o.b)((function(e,t){var n=t.windowId,r=t.position;return{companionAreaOpen:Object(Lo.a)(e,{position:r,windowId:n}),companionWindowIds:Object(Lo.c)(e,{position:r,windowId:n}),direction:Object(Ke.h)(e),sideBarOpen:(Object(he.e)(e,{windowId:n})||{}).sideBarOpen}}),Ys),Object(c.a)("CompanionArea"))(Zs),Qs=n(66),Js=n(1100),ec=n(1121),tc=n(289),nc=n.n(tc),rc=n(103),oc=n(138),ic=n(114),ac=n(302);function sc(e){return function(e){if(Array.isArray(e))return cc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uc(e,t){return uc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uc(e,t)}function fc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hc(e);if(t){var o=hc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dc(this,n)}}function dc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function pc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hc(e)}var gc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uc(e,t)}(i,e);var t,n,r,o=fc(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={filter:null},t.hideDialog=t.hideDialog.bind(pc(t)),t}return t=i,r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],(n=[{key:"setFilter",value:function(e){this.setState({filter:e})}},{key:"hideDialog",value:function(){var e=this.props;(0,e.hideCollectionDialog)(e.windowId)}},{key:"selectCollection",value:function(e){var t=this.props,n=t.collectionPath,r=t.manifestId,o=t.showCollectionDialog,i=t.windowId;o(e.id,[].concat(sc(n),[r]),i)}},{key:"goToPreviousCollection",value:function(){var e=this.props,t=e.collectionPath,n=e.showCollectionDialog,r=e.windowId;n(t[t.length-1],t.slice(0,-1),r)}},{key:"selectManifest",value:function(e){var t=this.props,n=t.addWindow,r=t.collectionPath,o=t.manifestId,i=t.setWorkspaceAddVisibility,a=t.updateWindow,s=t.windowId;s?a(s,{canvasId:null,collectionPath:[].concat(sc(r),[o]),manifestId:e.id}):n({collectionPath:[].concat(sc(r),[o]),manifestId:e.id}),this.hideDialog(),i(!1)}},{key:"dialogContainer",value:function(){var e=this.props,t=e.containerId,n=e.windowId;return document.querySelector("#".concat(t," #").concat(n))}},{key:"placeholder",value:function(){var e=this.props.classes;return u.a.createElement(M,{className:e.dialog,onClose:this.hideDialog,open:!0,container:this.dialogContainer(),BackdropProps:this.backdropProps()},u.a.createElement(B,{id:"select-collection",disableTypography:!0},u.a.createElement(Qi.a,{className:e.placeholder,variant:"text"})),u.a.createElement(Mt,null,u.a.createElement(Qi.a,{className:e.placeholder,variant:"text"}),u.a.createElement(Qi.a,{className:e.placeholder,variant:"text"})))}},{key:"backdropProps",value:function(){return{classes:{root:this.props.classes.dialog}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.collection,o=t.error,a=t.isMultipart,s=t.manifest,c=t.ready,l=t.t,f=this.state.filter;if(o)return null;if(!this.dialogContainer())return this.forceUpdate(),u.a.createElement(u.a.Fragment,null);if(!c)return this.placeholder();var d=s&&Object(rc.a)(s.getProperty("rights")||s.getProperty("license")),p=s&&Object(rc.a)(s.getRequiredStatement()).filter((function(e){return e.getValue()})).map((function(e){return{label:null,values:e.getValues()}})),h=s.getCollections(),g=f||(h.length>0?"collections":"manifests");return u.a.createElement(M,{className:n.dialog,onClose:this.hideDialog,container:this.dialogContainer(),BackdropProps:this.backdropProps(),open:!0},u.a.createElement(B,{id:"select-collection",disableTypography:!0},u.a.createElement(z.a,{component:"div",variant:"overline"},l(a?"multipartCollection":"collection")),u.a.createElement(z.a,{variant:"h3"},i.getUseableLabel(s))),u.a.createElement(Mt,{className:n.dialogContent},r&&u.a.createElement(G.a,{startIcon:u.a.createElement(nc.a,null),onClick:function(){return e.goToPreviousCollection()}},i.getUseableLabel(r)),u.a.createElement("div",{className:n.collectionMetadata},u.a.createElement(ac.a,{manifestId:s.id}),u.a.createElement(ic.a,{id:"select-collection-rights",label:l("attributionTitle")},p&&u.a.createElement(oc.a,{labelValuePairs:p,defaultLabel:l("attribution")}),d&&d.length>0&&u.a.createElement(u.a.Fragment,null,u.a.createElement(z.a,{variant:"subtitle2",component:"dt"},l("rights")),d.map((function(e){return u.a.createElement(z.a,{variant:"body1",component:"dd",key:e},u.a.createElement(Js.a,{target:"_blank",rel:"noopener noreferrer",href:e},e))}))))),u.a.createElement("div",{className:n.collectionFilter},s.getTotalCollections()>0&&u.a.createElement(ec.a,{clickable:!0,color:"collections"===g?"primary":"default",onClick:function(){return e.setFilter("collections")},label:l("totalCollections",{count:s.getTotalCollections()})}),s.getTotalManifests()>0&&u.a.createElement(ec.a,{clickable:!0,color:"manifests"===g?"primary":"default",onClick:function(){return e.setFilter("manifests")},label:l("totalManifests",{count:s.getTotalManifests()})})),"collections"===g&&u.a.createElement(xt.a,null,h.map((function(t){return u.a.createElement(Ye.a,{key:t.id,onClick:function(){e.selectCollection(t)},className:n.collectionItem},i.getUseableLabel(t))}))),"manifests"===g&&u.a.createElement(xt.a,null,s.getManifests().map((function(t){return u.a.createElement(Ye.a,{key:t.id,onClick:function(){e.selectManifest(t)},className:n.collectionItem},i.getUseableLabel(t))})))),u.a.createElement(V,null,u.a.createElement(G.a,{onClick:this.hideDialog},l("close"))))}}])&&lc(t.prototype,n),r&&lc(t,r),i}(l.Component);gc.defaultProps={collection:null,collectionPath:[],containerId:null,error:null,isMultipart:!1,ready:!1,windowId:null};var mc={addWindow:zr.a,hideCollectionDialog:zr.c,setWorkspaceAddVisibility:pe.a,showCollectionDialog:zr.j,updateWindow:zr.l},vc=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{collectionFilter:{padding:"16px",paddingTop:0},collectionItem:{whiteSpace:"normal"},collectionMetadata:{padding:"16px"},dark:{color:"#000000"},dialog:{position:"absolute !important"},dialogContent:{padding:e.spacing(1)},light:{color:e.palette.grey[400]},listitem:{"&:focus":{backgroundColor:e.palette.action.focus},"&:hover":{backgroundColor:e.palette.action.hover},cursor:"pointer"}}})),Object(o.b)((function(e,t){var n=t.windowId,r=Object(he.e)(e,{windowId:n}),o=r.collectionPath,i=r.collectionManifestId,a=Object(he.b)(e,{manifestId:i}),s=o&&o[o.length-1],c=s&&Object(he.b)(e,{manifestId:s});return{collection:c&&Object(Xi.q)(e,{manifestId:c.id}),collectionPath:o,containerId:Object(Ke.b)(e),error:a&&a.error,isMultipart:Object(Qs.c)(e,{manifestId:i}).includes("multi-part"),manifest:a&&Object(Xi.q)(e,{manifestId:i}),manifestId:i,open:e.workspace.collectionDialogOn,ready:a&&!!a.json,windowId:n}}),mc),Object(c.a)("CollectionDialog"))(gc);function bc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wc(e,t){return wc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wc(e,t)}function Oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xc(e);if(t){var o=xc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ec(this,n)}}function Ec(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xc(e)}var Sc=Object(l.lazy)((function(){return Promise.resolve().then(n.bind(null,1122))})),jc=Object(l.lazy)((function(){return Promise.resolve().then(n.bind(null,1115))})),Tc=Object(l.lazy)((function(){return Promise.resolve().then(n.bind(null,1123))})),_c=Object(l.lazy)((function(){return Promise.resolve().then(n.bind(null,1112))})),Cc=Object(l.lazy)((function(){return Promise.resolve().then(n.bind(null,1124))}));jc.displayName="GalleryView",Tc.displayName="SelectCollection",_c.displayName="WindowViewer";var Ic=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wc(e,t)}(i,e);var t,n,r,o=Oc(i);function i(){return bc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"renderViewer",value:function(){var e=this.props,t=e.audioResources,n=e.isCollection,r=e.isFetching,o=e.videoResources,i=e.view,a=e.windowId;return n?u.a.createElement(u.a.Fragment,null,u.a.createElement(Tc,{windowId:a})):!1===r?"gallery"===i?u.a.createElement(jc,{windowId:a}):o.length>0?u.a.createElement(Cc,{windowId:a}):t.length>0?u.a.createElement(Sc,{windowId:a}):u.a.createElement(_c,{windowId:a}):null}},{key:"render",value:function(){var e=this.props,t=e.isCollectionDialogVisible,n=e.windowId,r=e.classes,o=e.children;return u.a.createElement("div",{className:d()(Object(Gt.a)("primary-window"),r.primaryWindow)},u.a.createElement(fs,{windowId:n}),u.a.createElement(Xs,{windowId:n,position:"left"}),t&&u.a.createElement(vc,{windowId:n}),u.a.createElement(l.Suspense,{fallback:u.a.createElement("div",null)},o||this.renderViewer()))}}])&&yc(t.prototype,n),r&&yc(t,r),i}(l.Component);Ic.defaultProps={audioResources:[],children:void 0,isCollection:!1,isCollectionDialogVisible:!1,isFetching:!1,videoResources:[],view:void 0};var Pc=Object(r.compose)(Object(s.a)({primaryWindow:{display:"flex",flex:1,position:"relative"}}),Object(o.b)((function(e,t){var n=t.windowId,r=Object(Xi.q)(e,{windowId:n});return{audioResources:Object(Ea.j)(e,{windowId:n})||[],isCollection:r&&r.isCollection(),isCollectionDialogVisible:Object(he.e)(e,{windowId:n}).collectionDialogOn,videoResources:Object(Ea.n)(e,{windowId:n})||[]}}),null),Object(c.a)("PrimaryWindow"))(Ic);function kc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e,t){return Ac=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ac(e,t)}function Dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nc(e);if(t){var o=Nc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mc(this,n)}}function Mc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nc(e)}var Lc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ac(e,t)}(i,e);var t,n,r,o=Dc(i);function i(){return kc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.allowClose,n=e.allowWindowSideBar,r=e.ariaLabel,o=e.children,i=e.classes,a=e.label,s=e.removeWindow,c=e.t,l=e.windowId;return u.a.createElement(R.a,{component:"section",elevation:1,id:l,className:d()(i.window,Object(Gt.a)("placeholder-window")),"aria-label":a&&r?c("window",{label:a}):null},u.a.createElement(oe,{position:"relative",color:"default"},u.a.createElement(ie.a,{disableGutters:!0,className:d()(i.windowTopBarStyle,Object(Gt.a)("window-top-bar")),variant:"dense"},n&&u.a.createElement(Ne.a,{"aria-label":c("toggleWindowSideBar"),disabled:!0},u.a.createElement(No.a,null)),u.a.createElement(z.a,{variant:"h2",noWrap:!0,color:"inherit",className:i.title},a),t&&s&&u.a.createElement(Ne.a,{"aria-label":c("closeWindow"),className:d()(i.button,Object(Gt.a)("window-close")),onClick:s,TooltipProps:{tabIndex:r?"0":"-1"}},u.a.createElement(Ee.a,null)))),o)}}])&&Rc(t.prototype,n),r&&Rc(t,r),i}(l.Component);function zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zc(Object(n),!0).forEach((function(t){Bc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Lc.defaultProps={allowClose:!0,allowWindowSideBar:!0,ariaLabel:!0,children:null,classes:{},label:"",removeWindow:function(){},t:function(e){return e}};var Fc=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{button:{marginLeft:"auto"},title:Wc(Wc({},e.typography.h6),{},{flexGrow:1,paddingLeft:e.spacing(.5)}),window:{backgroundColor:e.palette.shades.dark,borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",width:"100%"},windowTopBarStyle:{backgroundColor:e.palette.shades.main,borderTop:"2px solid transparent",minHeight:32,paddingLeft:e.spacing(.5),paddingRight:e.spacing(.5)}}})),Object(o.b)((function(e,t){var n=t.windowId;return{allowClose:Object(Wr.c)(e,{windowId:n}).allowClose,allowWindowSideBar:Object(Wr.c)(e,{windowId:n}).allowWindowSideBar}}),(function(e,t){var n=t.windowId;return{removeWindow:function(){return e(zr.f(n))}}})),Object(c.a)("MinimalWindow"))(Lc),Hc=n(34),Uc=n(505),Vc=n(498),Gc=n(594),qc=n.n(Gc);function $c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kc(e,t){return Kc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kc(e,t)}function Zc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qc(e);if(t){var o=Qc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yc(this,n)}}function Yc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xc(e)}function Xc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qc(e)}var Jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kc(e,t)}(i,e);var t,n,r,o=Zc(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).onReceiveAccessTokenMessage=t.onReceiveAccessTokenMessage.bind(Xc(t)),t}return t=i,(n=[{key:"onReceiveAccessTokenMessage",value:function(e){var t=this.props,n=t.handleAccessTokenMessage,r=t.url;e.data&&e.data.messageId&&e.data.messageId===r&&n(e.data)}},{key:"render",value:function(){var e=this.props.url;return e?u.a.createElement(qc.a,{attributes:{"aria-hidden":!0,height:1,src:"".concat(e,"?origin=").concat(window.origin,"&messageId=").concat(e),style:{visibility:"hidden"},width:1},handleReceiveMessage:this.onReceiveAccessTokenMessage}):u.a.createElement(u.a.Fragment,null)}}])&&$c(t.prototype,n),r&&$c(t,r),i}(l.Component);function el(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tl(e,t){return tl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tl(e,t)}function nl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ol(e);if(t){var o=ol(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rl(this,n)}}function rl(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ol(e)}Jc.defaultProps={url:void 0};var il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tl(e,t)}(i,e);var t,n,r,o=nl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).released=void 0,t.window=null,t.checkIfWindowClosed=null,t}return t=i,(n=[{key:"componentDidMount",value:function(){this.openWindow()}},{key:"componentWillUnmount",value:function(){this.window&&this.window.close()}},{key:"onClose",value:function(){var e=this.props,t=e.onClose,n=e.url;this.released||(this.released=!0,clearInterval(this.checkIfWindowClosed),t(n))}},{key:"openWindow",value:function(){var e=this,t=this.props,n=t.depWindow,r=t.features,o=t.name,i=t.url;this.window=(n||window).open(i,o,r),this.released=!1,this.checkIfWindowClosed=setInterval((function(){e.window&&!e.window.closed||e.onClose()}),250)}},{key:"render",value:function(){return null}}])&&el(t.prototype,n),r&&el(t,r),i}(l.Component);il.defaultProps={depWindow:void 0,features:void 0,name:void 0};var al=n(180),sl=n(393),cl=n.n(sl),ll=n(60);function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach((function(t){dl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hl(e,t){return hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hl(e,t)}function gl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bl(e);if(t){var o=bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ml(this,n)}}function ml(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vl(e)}function vl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bl(e){return bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bl(e)}var yl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hl(e,t)}(i,e);var t,n,r,o=gl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={open:!1},t.setOpen=t.setOpen.bind(vl(t)),t.onSubmit=t.onSubmit.bind(vl(t)),t}return t=i,(n=[{key:"onSubmit",value:function(){var e=this.props.onConfirm;this.setOpen(!1),e()}},{key:"setOpen",value:function(e){this.setState((function(t){return fl(fl({},t),{},{open:e})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.confirmButton,o=t.continueLabel,i=t.header,a=t.description,s=t.icon,c=t.label,l=t.t,f=t.ruleSet,d=t.hasLogoutService,p=t.status,h=t.ConfirmProps;if("ok"===p&&!d)return null;var g=this.state.open,m=u.a.createElement(G.a,Object.assign({onClick:this.onSubmit,className:n.buttonInvert,color:"secondary"},h),r||l("login"));return a||i?u.a.createElement(R.a,{square:!0,elevation:4,color:"secondary",classes:{root:n.paper}},u.a.createElement(G.a,{fullWidth:!0,className:n.topBar,onClick:function(){return e.setOpen(!0)},component:"div",color:"inherit"},s||u.a.createElement(cl.a,{className:n.icon}),u.a.createElement(z.a,{className:n.label,component:"h3",variant:"body1",color:"inherit"},f?u.a.createElement(ll.a,{htmlString:c,ruleSet:f}):c),u.a.createElement(nn.a,this.props),u.a.createElement("span",{className:n.fauxButton},!g&&u.a.createElement(z.a,{variant:"button",color:"inherit"},o||l("continue")))),u.a.createElement(qn.a,{in:g,onClose:function(){return e.setOpen(!1)}},u.a.createElement(z.a,{variant:"body1",color:"inherit",className:n.expanded},f?u.a.createElement(ll.a,{htmlString:i,ruleSet:f}):i,i&&a?": ":"",f?u.a.createElement(ll.a,{htmlString:a,ruleSet:f}):a),u.a.createElement(V,null,u.a.createElement(G.a,{onClick:function(){return e.setOpen(!1)},color:"inherit"},l("cancel")),m))):u.a.createElement(R.a,{square:!0,elevation:4,color:"secondary",classes:{root:n.paper}},u.a.createElement("div",{className:n.topBar},s||u.a.createElement(cl.a,{className:n.icon}),u.a.createElement(z.a,{className:n.label,component:"h3",variant:"body1",color:"inherit"},f?u.a.createElement(ll.a,{htmlString:c,ruleSet:f}):c),u.a.createElement(nn.a,this.props),m))}}])&&pl(t.prototype,n),r&&pl(t,r),i}(l.Component);yl.defaultProps={confirmButton:void 0,ConfirmProps:{},continueLabel:void 0,description:void 0,hasLogoutService:!0,header:void 0,icon:void 0,ruleSet:"iiif",status:void 0,t:function(e){return e}};var wl=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{buttonInvert:{"&:hover":{backgroundColor:Object(al.fade)(e.palette.secondary.contrastText,1-e.palette.action.hoverOpacity)},backgroundColor:e.palette.secondary.contrastText,marginLeft:e.spacing(5),paddingBottom:0,paddingTop:0},expanded:{paddingLeft:e.spacing(),paddingRight:e.spacing()},failure:{backgroundColor:e.palette.error.dark},fauxButton:{marginLeft:e.spacing(2.5)},icon:{marginRight:e.spacing(1.5),verticalAlign:"text-bottom"},label:{lineHeight:2.25},paper:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText,cursor:"pointer"},topBar:{"&:hover":{backgroundColor:e.palette.secondary.main},alignItems:"center",display:"flex",justifyContent:"inherit",padding:e.spacing(1),textTransform:"none"}}})),Object(c.a)("WindowAuthenticationBar"))(yl);function Ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function El(e,t){return El=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},El(e,t)}function xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tl(e);if(t){var o=Tl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sl(this,n)}}function Sl(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jl(e)}function jl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tl(e){return Tl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tl(e)}var _l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&El(e,t)}(i,e);var t,n,r,o=xl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).performLogout=t.performLogout.bind(jl(t)),t.onReceiveAccessTokenMessage=t.onReceiveAccessTokenMessage.bind(jl(t)),t}return t=i,(n=[{key:"onReceiveAccessTokenMessage",value:function(e){var t=this.props,n=t.authServiceId,r=t.accessTokenServiceId;(0,t.resolveAccessTokenRequest)(n,r,e)}},{key:"defaultAuthBarProps",value:function(){var e=this.props,t=e.authServiceId,n=e.windowId,r=e.status;return{authServiceId:t,hasLogoutService:!!e.logoutServiceId,status:r,windowId:n}}},{key:"performLogout",value:function(){var e=this.props,t=e.accessTokenServiceId,n=e.authServiceId,r=e.features,o=e.logoutServiceId,i=e.resetAuthenticationState;(0,e.openWindow)(o,void 0,r),i({authServiceId:n,tokenServiceId:t})}},{key:"renderLoggedIn",value:function(){var e=this.props,t=e.isInteractive,n=e.logoutConfirm,r=e.t;return t?u.a.createElement(wl,Object.assign({confirmButton:n||r("logout"),onConfirm:this.performLogout},this.defaultAuthBarProps())):null}},{key:"renderFailure",value:function(){var e=this.props,t=e.handleAuthInteraction,n=e.failureHeader,r=e.failureDescription,o=e.t,i=e.authServiceId,a=e.windowId;return u.a.createElement(wl,Object.assign({header:n,description:r,confirmButton:o("retry"),onConfirm:function(){return t(a,i)}},this.defaultAuthBarProps()))}},{key:"renderLoggingInCookie",value:function(){var e=this.props,t=e.accessTokenServiceId,n=e.authServiceId,r=e.resolveAuthenticationRequest,o=e.features;return u.a.createElement(u.a.Fragment,null,this.renderLogin(),u.a.createElement(il,{name:"IiifLoginSender",url:"".concat(n,"?origin=").concat(window.origin),features:o,onClose:function(){return r(n,t)}}))}},{key:"renderLoggingInToken",value:function(){var e=this.props.accessTokenServiceId;return u.a.createElement(u.a.Fragment,null,this.renderLogin(),u.a.createElement(Jc,{handleAccessTokenMessage:this.onReceiveAccessTokenMessage,url:e}))}},{key:"renderLogin",value:function(){var e=this.props,t=e.confirm,n=e.description,r=e.handleAuthInteraction,o=e.header,i=e.isInteractive,a=e.label,s=e.authServiceId,c=e.windowId;return i?u.a.createElement(wl,Object.assign({header:o,description:n,label:a,confirmButton:t,onConfirm:function(){return r(c,s)}},this.defaultAuthBarProps())):null}},{key:"render",value:function(){var e=this.props,t=e.authServiceId,n=e.status;return t?null===n?this.renderLogin():"cookie"===n?this.renderLoggingInCookie():"token"===n?this.renderLoggingInToken():"failed"===n?this.renderFailure():"ok"===n?this.renderLoggedIn():null:null}}])&&Ol(t.prototype,n),r&&Ol(t,r),i}(l.Component);_l.defaultProps={confirm:void 0,description:void 0,failureDescription:void 0,failureHeader:void 0,features:"centerscreen",header:void 0,isInteractive:!0,label:void 0,logoutConfirm:void 0,logoutServiceId:void 0,openWindow:window.open,status:null,t:function(e){return e}};var Cl={handleAuthInteraction:Uc.a,resetAuthenticationState:Uc.e,resolveAccessTokenRequest:Uc.f,resolveAuthenticationRequest:Uc.g},Il=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId,r=Object(Vc.d)(e,{windowId:n})[0],o=r&&(Hc.d.getService(r,"http://iiif.io/api/auth/1/token")||Hc.d.getService(r,"http://iiif.io/api/auth/0/token")),i=r&&(Hc.d.getService(r,"http://iiif.io/api/auth/1/logout")||Hc.d.getService(r,"http://iiif.io/api/auth/0/logout")),a=Object(Vc.b)(e),s=r&&a[r.id],c=Object(Vc.a)(e),l=o&&c[o.id],u=null;s?s.isFetching?s.windowId===n&&(u="cookie"):l&&l.isFetching?s.windowId===n&&(u="token"):s.ok?u="ok":!1===s.ok&&(u="failed"):u=null;var f=Object(Vc.c)(e),d=r&&r.getProfile(),p=f.some((function(e){return e.profile===d&&!(e.external||e.kiosk)}));return{accessTokenServiceId:o&&o.id,authServiceId:r&&r.id,confirm:r&&r.getConfirmLabel(),description:r&&r.getDescription(),failureDescription:r&&r.getFailureDescription(),failureHeader:r&&r.getFailureHeader(),header:r&&r.getHeader(),isInteractive:p,label:r&&r.getLabel()[0].value,logoutConfirm:i&&i.getLabel()[0]&&i.getLabel()[0].value,logoutServiceId:i&&i.id,profile:d,status:u}}),Cl),Object(c.a)("IIIFAuthentication"))(_l);function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kl(e,t){return kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kl(e,t)}function Rl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dl(e);if(t){var o=Dl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Al(this,n)}}function Al(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(e)}var Ml=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kl(e,t)}(i,e);var t,n,r,o=Rl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={},t}return t=i,r=[{key:"getDerivedStateFromError",value:function(e){return{error:e,hasError:!0}}}],(n=[{key:"wrappedTopBar",value:function(){var e=this.props,t=e.windowId,n=e.workspaceType,r=e.windowDraggable,o=u.a.createElement("div",null,u.a.createElement(Oa,{windowId:t,windowDraggable:r}),u.a.createElement(Il,{windowId:t}));return"mosaic"===n&&r?this.context.mosaicWindowActions.connectDragSource(o):o}},{key:"render",value:function(){var e=this.props,t=e.focusWindow,n=e.label,r=e.isFetching,o=e.maximized,i=e.sideBarOpen,a=e.view,s=e.windowId,c=e.classes,l=e.t,f=e.manifestError,p=this.state,h=p.error;return p.hasError?u.a.createElement(Fc,{windowId:s},u.a.createElement(Ms,{error:h,windowId:s})):u.a.createElement(R.a,{onFocus:t,component:"section",elevation:1,id:s,className:d()(c.window,Object(Gt.a)("window"),o?c.maximized:null),"aria-label":l("window",{label:n})},this.wrappedTopBar(),f&&u.a.createElement(Ms,{error:{stack:f},windowId:s}),u.a.createElement("div",{className:c.middle},u.a.createElement("div",{className:c.middleLeft},u.a.createElement("div",{className:c.primaryWindow},u.a.createElement(Pc,{view:a,windowId:s,isFetching:r,sideBarOpen:i})),u.a.createElement("div",{className:c.companionAreaBottom},u.a.createElement(Xs,{windowId:s,position:"bottom"}))),u.a.createElement("div",{className:c.companionAreaRight},u.a.createElement(Xs,{windowId:s,position:"right"}),u.a.createElement(Xs,{windowId:s,position:"far-right"}))),u.a.createElement(Xs,{windowId:s,position:"far-bottom"}),u.a.createElement(nn.a,this.props))}}])&&Pl(t.prototype,n),r&&Pl(t,r),i}(l.Component);Ml.contextType=Do.MosaicWindowContext,Ml.defaultProps={classes:{},focusWindow:function(){},isFetching:!1,label:null,manifestError:null,maximized:!1,sideBarOpen:!1,view:void 0,windowDraggable:null,workspaceType:null};var Nl=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{companionAreaBottom:{display:"flex",flex:"0",flexBasis:"auto",minHeight:0},companionAreaRight:{display:"flex",flex:"0 1 auto",minHeight:0},maximized:{},middle:{display:"flex",flex:"1",flexDirection:"row",minHeight:0},middleLeft:{display:"flex",flex:"1",flexDirection:"column",minHeight:0},primaryWindow:{display:"flex",flex:"1",height:"300px",minHeight:0,position:"relative"},thumbnailArea:{backgroundColor:e.palette.shades.dark},thumbnailAreaBottom:{},thumbnailAreaRight:{minWidth:100},window:{"&$maximized":{left:0,position:"absolute",top:0,zIndex:e.zIndex.modal-1},backgroundColor:e.palette.shades.dark,borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",width:"100%"}}})),Object(o.b)((function(e,t){var n=t.windowId;return{isFetching:Object(Xi.m)(e,{windowId:n}).isFetching,label:Object(Xi.o)(e,{windowId:n}),manifestError:Object(Xi.d)(e,{windowId:n}),maximized:(Object(he.e)(e,{windowId:n})||{}).maximized,sideBarOpen:(Object(he.e)(e,{windowId:n})||{}).sideBarOpen,thumbnailNavigationPosition:Object(Lo.g)(e,{windowId:n}),view:Object(Wr.f)(e,{windowId:n}),window:Object(he.e)(e,{windowId:n}),windowDraggable:Object(Wr.d)(e,{windowId:n}),workspaceType:Object(ee.d)(e)}}),(function(e,t){var n=t.windowId;return{focusWindow:function(){return e(zr.b(n))}}})),Object(c.a)("Window"))(Ml),Ll=n(189),zl=n(396),Wl=n.n(zl),Bl=n(125),Fl=n.n(Bl);function Hl(e){var t=e.t,n=e.title,r=e.windowId;return u.a.createElement(Fc,{windowId:"".concat(r,"-preview"),label:t("previewWindowTitle",{title:n}),ariaLabel:!1})}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){Gl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Hl.defaultProps={t:function(e){return e},title:""};var ql=Object(r.compose)(Object(s.a)((function(e){return{preview:Vl({},e.typography.h4)}})),Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId;return{title:Object(Xi.o)(e,{windowId:n})}}),null),Object(c.a)("MosaicRenderPreview"))(Hl),$l=n(159),Kl=n(98),Zl=n(268),Yl=n.n(Zl);function Xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ql=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layout=t}var t,n,r;return t=e,n=[{key:"pathToCorner",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kl.Corner.TOP_RIGHT;return Object(Kl.getPathToCorner)(this.layout,e)}},{key:"pathToParent",value:function(e){return Object(Kl.getNodeAtPath)(this.layout,Yl()(e))}},{key:"nodeAtPath",value:function(e){return Object(Kl.getNodeAtPath)(this.layout,e)}},{key:"addWindows",value:function(e){var t=this;e.forEach((function(n,r){var o,i,a=t.pathToCorner(),s=t.pathToParent(a),c=t.nodeAtPath(a),l=s?Object(Kl.getOtherDirection)(s.direction):"row";"row"===l?(o=c,i=e[r]):(o=e[r],i=c);var u={path:a,spec:{$set:{direction:l,first:o,second:i}}};t.layout=Object($l.updateTree)(t.layout,[u])}))}},{key:"removeWindows",value:function(e,t){var n=this,r=e.map((function(e){return Object($l.createRemoveUpdate)(n.layout,t[e])}));this.layout=Object($l.updateTree)(this.layout,r)}}],n&&Xl(t.prototype,n),r&&Xl(t,r),e}();function Jl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eu(e,t){return eu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eu(e,t)}function tu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ou(e);if(t){var o=ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nu(this,n)}}function nu(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ru(e)}function ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ou(e){return ou=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ou(e)}var iu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eu(e,t)}(i,e);var t,n,r,o=tu(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).tileRenderer=t.tileRenderer.bind(ru(t)),t.mosaicChange=t.mosaicChange.bind(ru(t)),t.determineWorkspaceLayout=t.determineWorkspaceLayout.bind(ru(t)),t.zeroStateView=u.a.createElement("div",null),t.windowPaths={},t.toolbarControls=[],t.additionalControls=[],t}return t=i,r=[{key:"renderPreview",value:function(e){return u.a.createElement("div",{className:"mosaic-preview","aria-hidden":!0},u.a.createElement(ql,{windowId:e.windowId}))}}],(n=[{key:"componentDidMount",value:function(){var e=this.props.updateWorkspaceMosaicLayout,t=this.determineWorkspaceLayout();t&&e(t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.windowIds,r=t.layout,o=t.updateWorkspaceMosaicLayout,i=e.windowIds;if(n.every((function(e){return i.includes(e)}))){if(!i.every((function(e){return n.includes(e)}))){if(0===n.length)return void o(null);var a=Wl()(i,n),s=new Ql(r);s.removeWindows(a,this.windowPaths),o(s.layout)}}else{var c=this.determineWorkspaceLayout();Fl()(c,r)||o(c)}}},{key:"bookkeepPath",value:function(e,t){this.windowPaths[e]=t}},{key:"determineWorkspaceLayout",value:function(){var e=this.props,t=e.windowIds,n=e.layout,r=Object(Ll.getLeaves)(n);if(!t.every((function(e){return r.includes(e)}))){if(r.length<2)return Object(Ll.createBalancedTreeFromLeaves)(t);var o=Wl()(t,r),i=new Ql(n);return i.addWindows(o),i.layout}return r.every((function(e){return t.includes(e)}))?n:Object(Ll.createBalancedTreeFromLeaves)(t)}},{key:"tileRenderer",value:function(e,t){var n=this.props,r=n.windowIds,o=n.workspaceId;return r.includes(e)?(this.bookkeepPath(e,t),u.a.createElement(Ll.MosaicWindow,{toolbarControls:this.toolbarControls,additionalControls:this.additionalControls,path:t,windowId:e,renderPreview:i.renderPreview},u.a.createElement(Nl,{key:"".concat(e,"-").concat(o),windowId:e}))):null}},{key:"mosaicChange",value:function(e){(0,this.props.updateWorkspaceMosaicLayout)(e)}},{key:"render",value:function(){var e=this.props,t=e.layout,n=e.classes;return u.a.createElement(Ll.MosaicWithoutDragDropContext,{renderTile:this.tileRenderer,initialValue:t||this.determineWorkspaceLayout(),onChange:this.mosaicChange,className:d()("mirador-mosaic",n.root),zeroStateView:this.zeroStateView})}}])&&Jl(t.prototype,n),r&&Jl(t,r),i}(u.a.Component);iu.defaultProps={layout:void 0,windowIds:[]};var au={"@global":{".mosaic":{height:"100%",width:"100%"},".mosaic, .mosaic > *":{boxSizing:"border-box"},".mosaic .mosaic-zero-state":{position:"absolute",top:6,right:6,bottom:6,left:6,width:"auto",height:"auto",zIndex:"1"},".mosaic-root":{position:"absolute",top:3,right:3,bottom:3,left:3},".mosaic-split":{position:"absolute",zIndex:"1",touchAction:"none"},".mosaic-split:hover":{background:"black"},".mosaic-split .mosaic-split-line":{position:"absolute"},".mosaic-split.-row":{marginLeft:-3,width:6,cursor:"ew-resize"},".mosaic-split.-row .mosaic-split-line":{top:"0",bottom:"0",left:3,right:3},".mosaic-split.-column":{marginTop:-3,height:6,cursor:"ns-resize"},".mosaic-split.-column .mosaic-split-line":{top:3,bottom:3,left:"0",right:"0"},".mosaic-tile":{position:"absolute",margin:3},".mosaic-tile > *":{height:"100%",width:"100%"},".mosaic-drop-target":{position:"relative"},".mosaic-drop-target.drop-target-hover .drop-target-container":{display:"block"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.left":{right:"calc(100% -  10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.right":{left:"calc(100% -  10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.bottom":{top:"calc(100% -  10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.top":{bottom:"calc(100% -  10px )"},".mosaic-drop-target .drop-target-container":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"none"},".mosaic-drop-target .drop-target-container.-dragging":{display:"block"},".mosaic-drop-target .drop-target-container .drop-target":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.2)",border:"2px solid black",opacity:"0",zIndex:"5"},".mosaic-drop-target .drop-target-container .drop-target.left":{right:"calc(100% -  30% )"},".mosaic-drop-target .drop-target-container .drop-target.right":{left:"calc(100% -  30% )"},".mosaic-drop-target .drop-target-container .drop-target.bottom":{top:"calc(100% -  30% )"},".mosaic-drop-target .drop-target-container .drop-target.top":{bottom:"calc(100% -  30% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover":{opacity:"1"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.left":{right:"calc(100% -  50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.right":{left:"calc(100% -  50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.bottom":{top:"calc(100% -  50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.top":{bottom:"calc(100% -  50% )"},".mosaic-window, .mosaic-preview":{position:"relative",display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxOrient:"vertical",webkitBoxDirection:"normal",flexDirection:"column",overflow:"hidden",boxShadow:"0 0 1px rgba(0, 0, 0, 0.2)"},".mosaic-window .mosaic-window-toolbar, .mosaic-preview .mosaic-window-toolbar":{zIndex:"4",display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxPack:"justify",justifyContent:"space-between",webkitBoxAlign:"center",alignItems:"center",flexShrink:"0",height:30,background:"white",boxShadow:"0 1px 1px rgba(0, 0, 0, 0.2)"},".mosaic-window .mosaic-window-toolbar.draggable, .mosaic-preview .mosaic-window-toolbar.draggable":{cursor:"move"},".mosaic-window .mosaic-window-title, .mosaic-preview .mosaic-window-title":{paddingLeft:15,webkitBoxFlex:"1",flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",minHeight:18},".mosaic-window .mosaic-window-controls, .mosaic-preview .mosaic-window-controls":{display:"flex",fallbacks:[{display:"-webkit-box"}],height:"100%"},".mosaic-window .mosaic-window-controls .separator, .mosaic-preview .mosaic-window-controls .separator":{height:20,borderLeft:"1px solid black",margin:"5px 4px"},".mosaic-window .mosaic-window-body, .mosaic-preview .mosaic-window-body":{position:"relative",webkitBoxFlex:"1",flex:"1",height:"0",background:"white",zIndex:"1",overflow:"hidden"},".mosaic-window .mosaic-window-additional-actions-bar, .mosaic-preview .mosaic-window-additional-actions-bar":{position:"absolute",top:30,right:"0",bottom:"initial",left:"0",height:"0",overflow:"hidden",background:"white",webkitBoxPack:"end",justifyContent:"flex-end",display:"flex",fallbacks:[{display:"-webkit-box"}],zIndex:"3"},".mosaic-window .mosaic-window-additional-actions-bar .bp3-button, .mosaic-preview .mosaic-window-additional-actions-bar .bp3-button":{margin:"0"},".mosaic-window .mosaic-window-additional-actions-bar .bp3-button:after, .mosaic-preview .mosaic-window-additional-actions-bar .bp3-button:after":{display:"none"},".mosaic-window .mosaic-window-body-overlay, .mosaic-preview .mosaic-window-body-overlay":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",opacity:"0",background:"white",display:"none",zIndex:"2"},".mosaic-window.additional-controls-open .mosaic-window-additional-actions-bar, .mosaic-preview.additional-controls-open .mosaic-window-additional-actions-bar":{height:30},".mosaic-window.additional-controls-open .mosaic-window-body-overlay, .mosaic-preview.additional-controls-open .mosaic-window-body-overlay":{display:"block"},".mosaic-window .mosaic-preview, .mosaic-preview .mosaic-preview":{height:"100%",width:"100%",position:"absolute",zIndex:"0",border:"1px solid black",maxHeight:400},".mosaic-window .mosaic-preview .mosaic-window-body, .mosaic-preview .mosaic-preview .mosaic-window-body":{display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxOrient:"vertical",webkitBoxDirection:"normal",flexDirection:"column",webkitBoxAlign:"center",alignItems:"center",webkitBoxPack:"center",justifyContent:"center"},".mosaic-window .mosaic-preview h4, .mosaic-preview .mosaic-preview h4":{marginBottom:10},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.close-button:before":{content:"'Close'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.split-button:before":{content:"'Split'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.replace-button:before":{content:"'Replace'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.expand-button:before":{content:"'Expand'"}}};function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lu={updateWorkspaceMosaicLayout:pe.h},uu=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({root:{"& .mosaic-preview":{boxShadow:"none"},"& .mosaic-tile":{boxShadow:"0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .2), 0 2px 1px -1px rgba(0, 0, 0, .2)"},"& .mosaic-window":{boxShadow:"none"},"& .mosaic-window-toolbar":{display:"none !important"}}},au),fu=Object(r.compose)(Object(s.a)(uu),Object(o.b)((function(e){return{layout:Object(he.i)(e).layout,windowIds:Object(he.i)(e).windowIds,workspaceId:Object(he.i)(e).id}}),lu),Object(c.a)("WorkspaceMosaic"))(iu),du=n(511),pu=n(179),hu=n(589),gu=n.n(hu);function mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bu(e,t){return bu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bu(e,t)}function yu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ou(e);if(t){var o=Ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wu(this,n)}}function wu(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ou(e){return Ou=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ou(e)}var Eu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bu(e,t)}(i,e);var t,n,r,o=yu(i);function i(){return mu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowDimensions,r=e.focused,o=e.layout,i=e.workspace,a=e.updateElasticWindowLayout,s=i.width/2,c=i.height/2;return u.a.createElement(pu.a,{key:"".concat(o.windowId,"-").concat(i.id),size:{height:o.height+n.height,width:o.width+n.width},position:{x:o.x+s,y:o.y+c},bounds:"parent",onDragStop:function(e,t){a(o.windowId,{x:t.x-s,y:t.y-c})},onResize:function(e,t,r,i,l){a(o.windowId,{height:Number.parseInt(r.style.height,10)-n.height,width:Number.parseInt(r.style.width,10)-n.width,x:l.x-s,y:l.y-c})},dragHandleClassName:Object(Gt.a)("window-top-bar"),className:r?t.focused:null},u.a.createElement(Nl,{windowId:o.windowId}))}}])&&vu(t.prototype,n),r&&vu(t,r),i}(u.a.Component);Eu.defaultProps={classes:{},companionWindowDimensions:{height:0,width:0},focused:!1};var xu=Eu,Su=Object(r.compose)(Object(s.a)((function(e){return{focused:{zIndex:e.zIndex.modal-1}}})),Object(o.b)((function(e,t){var n=t.windowId;return{companionWindowDimensions:Object(Lo.h)(e,{windowId:n}),focused:Object(ee.e)(e,{windowId:n}),layout:Object(ee.a)(e)[n],workspace:Object(he.i)(e)}}),(function(e,t){return{updateElasticWindowLayout:function(t,n){e(du.a(t,n))}}})))(xu);function ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _u(e,t){return _u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_u(e,t)}function Cu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pu(e);if(t){var o=Pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Iu(this,n)}}function Iu(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(e)}var ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_u(e,t)}(i,e);var t,n,r,o=Cu(i);function i(){return ju(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.workspace,r=e.elasticLayout,o=e.setWorkspaceViewportDimensions,i=e.setWorkspaceViewportPosition,a=n.viewportPosition,s=n.width/2,c=n.height/2;return u.a.createElement("div",{style:{height:"100%",position:"relative",width:"100%"}},u.a.createElement(gu.a,{onResize:function(e){o(e)}}),u.a.createElement(pu.a,{size:{height:n.height,width:n.width},position:{x:-1*a.x-s,y:-1*a.y-c},enableResizing:{bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},onDragStop:function(e,t){i({x:-1*t.x-s,y:-1*t.y-c})},cancel:".".concat(Object(Gt.a)("window")),className:d()(t.workspace,Object(Gt.a)("workspace")),disableDragging:!n.draggingEnabled},Object.keys(r).map((function(e){return u.a.createElement(Su,{key:e,windowId:e})}))))}}])&&Tu(t.prototype,n),r&&Tu(t,r),i}(u.a.Component),Ru=ku,Au=Object(r.compose)(Object(s.a)({workspace:{boxSizing:"border-box",margin:0,position:"absolute",transitionDuration:".7s","& .react-draggable-dragging":{transitionDuration:"unset"}}}),Object(o.b)((function(e){return{elasticLayout:Object(ee.a)(e),workspace:Object(he.i)(e)}}),(function(e,t){return{setWorkspaceViewportDimensions:function(t){e(pe.c(t))},setWorkspaceViewportPosition:function(t){e(pe.d(t))},updateElasticWindowLayout:function(t,n){e(du.a(t,n))}}})),Object(c.a)("WorkspaceElastic"))(Ru),Du=n(588),Mu=n.n(Du),Nu=n(306),Lu=n(143),zu=n(299),Wu=n(530);function Bu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Hu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fu(e){return function(e){if(Array.isArray(e))return Uu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Hu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hu(e,t){if(e){if("string"==typeof e)return Uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(e,t):void 0}}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vu=function(e,t,n){var r=n.onDrop;if(e.urls&&e.urls.forEach((function(e){var o=new URL(e),i=o.searchParams.get("manifest"),a=o.searchParams.get("canvas");i&&r({canvasId:a,manifestId:i},n,t)})),e.files){var o,i=e.files.filter((function(e){return"application/json"===e.type})).map((function(e){return new Promise((function(o,i){var a=new FileReader;a.addEventListener("load",(function(){var e=a.result,i=Object(Lu.a)();e&&r({manifestId:i,manifestJson:e},n,t),o()})),a.readAsText(e)}))})),a=e.files.filter((function(e){return e.type.startsWith("image/")}));if(a.length>0){var s=Object(Lu.a)(),c=a.map((function(e){return function(e){return new Promise((function(t,n){var r=new FileReader;r.addEventListener("load",(function(){var n=new Image;n.addEventListener("load",(function(){t({height:n.height,name:e.name,type:e.type,url:r.result,width:n.width})})),n.src=r.result})),r.readAsDataURL(e)}))}(e)}));o=Promise.all(c).then((function(e){var o={"@context":"http://iiif.io/api/presentation/3/context.json",id:s,items:e.map((function(e,t){var n=e.name,r=e.type,o=e.width,i=e.height,a=e.url;return{height:i,id:"".concat(s,"/canvas/").concat(t),items:[{id:"".concat(s,"/canvas/").concat(t,"/1"),items:[{body:{format:r,id:a,type:"Image"},height:i,id:"".concat(s,"/canvas/").concat(t,"/1/image"),motivation:"painting",target:"".concat(s,"/canvas/").concat(t,"/1"),type:"Annotation",width:o}],type:"AnnotationPage"}],label:n,type:"Canvas",width:o}})),label:e[0].name,type:"Manifest"},i=Object(Lu.a)();o&&r({manifestId:i,manifestJson:o},n,t)}))}return Promise.all([].concat(Fu(i),[o]))}},Gu=function(e){var t=e.children,n=e.onDrop,r=Bu(Object(Wu.a)({accept:[zu.NativeTypes.URL,zu.NativeTypes.FILE],collect:function(e){return{canDrop:e.canDrop(),isOver:e.isOver()}},drop:function(t,r){n&&Vu(t,r,e)}}),2),o=r[0],i=o.canDrop,a=o.isOver,s=r[1],c=i&&a;return u.a.createElement("div",{ref:s,onDrop:function(t){if(window.safari&&n&&t.dataTransfer&&t.dataTransfer.types.includes("Files")&&t.dataTransfer.types.includes("text/uri-list")){var r=t.dataTransfer.getData("text/uri-list");if(!r)return;Vu({urls:[r]},null,e)}},style:{height:"100%",width:"100%"}},t,u.a.createElement(k,{open:c,style:{zIndex:9999}},u.a.createElement(Mu.a,{style:{color:Nu.a[400],fontSize:256}})))};function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $u(e,t){return $u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$u(e,t)}function Ku(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xu(e);if(t){var o=Xu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zu(this,n)}}function Zu(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yu(e)}function Yu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xu(e)}var Qu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$u(e,t)}(i,e);var t,n,r,o=Ku(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleDrop=t.handleDrop.bind(Yu(t)),t}return t=i,(n=[{key:"handleDrop",value:function(e,t,n){var r=e.canvasId,o=e.manifestId,i=e.manifestJson,a=this.props,s=a.addWindow;a.allowNewWindows&&s({canvasId:r,manifest:i,manifestId:o})}},{key:"workspaceByType",value:function(){var e=this.props,t=e.workspaceId,n=e.workspaceType,r=e.windowIds;if(this.maximizedWindows())return this.maximizedWindows();if(0===r.length)return this.zeroWindows();switch(n){case"elastic":return u.a.createElement(Au,null);case"mosaic":return u.a.createElement(fu,null);default:return r.map((function(e){return u.a.createElement(Nl,{key:"".concat(e,"-").concat(t),windowId:e})}))}}},{key:"zeroWindows",value:function(){var e=this.props.t;return u.a.createElement(Ao.a,{alignItems:"center",container:!0,style:{height:"100%"}},u.a.createElement(Ao.a,{xs:12,item:!0},u.a.createElement(z.a,{variant:"h1",component:"div",align:"center"},e("welcome"))))}},{key:"maximizedWindows",value:function(){var e=this.props,t=e.maximizedWindowIds,n=e.workspaceId;return t.length>0&&t.map((function(e){return u.a.createElement(Nl,{key:"".concat(e,"-").concat(n),windowId:e,className:d()(Object(Gt.a)("workspace-maximized-window"))})}))}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.isWorkspaceControlPanelVisible,r=e.t;return u.a.createElement(Gu,{onDrop:this.handleDrop},u.a.createElement("div",{className:d()(Object(Gt.a)("workspace-viewport"),n&&Object(Gt.a)("workspace-with-control-panel"),n&&t.workspaceWithControlPanel,t.workspaceViewport)},u.a.createElement(z.a,{variant:"srOnly",component:"h1"},r("miradorViewer")),this.workspaceByType()))}}])&&qu(t.prototype,n),r&&qu(t,r),i}(u.a.Component);Qu.defaultProps={addWindow:function(){},allowNewWindows:!0,maximizedWindowIds:[],windowIds:[]};var Ju={addWindow:zr.a},ef=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{workspaceViewport:{bottom:0,left:0,margin:0,overflow:"hidden",position:"absolute",right:0,top:0},workspaceWithControlPanel:{paddingTop:74},"@media (min-width: 600px)":{workspaceWithControlPanel:{paddingLeft:68,paddingTop:0}}}})),Object(o.b)((function(e){return{allowNewWindows:Object(Ke.a)(e).workspace.allowNewWindows,isWorkspaceControlPanelVisible:Object(Ke.a)(e).workspaceControlPanel.enabled,maximizedWindowIds:Object(Wr.b)(e),windowIds:Object(he.f)(e),workspaceId:Object(he.i)(e).id,workspaceType:Object(ee.d)(e)}}),Ju),Object(c.a)("Workspace"))(Qu),tf=n(513),nf=n(1053);function rf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function of(e,t){return of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},of(e,t)}function af(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lf(e);if(t){var o=lf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sf(this,n)}}function sf(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cf(e)}function cf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lf(e)}var uf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&of(e,t)}(i,e);var t,n,r,o=af(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={formValue:""},t.formSubmit=t.formSubmit.bind(cf(t)),t.handleCancel=t.handleCancel.bind(cf(t)),t.handleInputChange=t.handleInputChange.bind(cf(t)),t}return t=i,(n=[{key:"handleCancel",value:function(){(0,this.props.onCancel)(),this.setState({formValue:""})}},{key:"handleInputChange",value:function(e){e.preventDefault(),this.setState({formValue:e.target.value})}},{key:"formSubmit",value:function(e){var t=this.props,n=t.addResource,r=t.onSubmit,o=this.state.formValue;e.preventDefault(),r(),n(o),this.setState({formValue:""})}},{key:"render",value:function(){var e=this.state.formValue,t=this.props,n=t.addResourcesOpen,r=t.classes,o=t.onCancel,i=t.t;return n?u.a.createElement("form",{onSubmit:this.formSubmit},u.a.createElement(Ao.a,{container:!0,spacing:2},u.a.createElement(Ao.a,{item:!0,xs:12,sm:8,md:9},u.a.createElement(ur.a,{autoFocus:!0,fullWidth:!0,value:e,id:"manifestURL",type:"text",onChange:this.handleInputChange,variant:"filled",label:i("addManifestUrl"),helperText:i("addManifestUrlHelp"),InputLabelProps:{shrink:!0},InputProps:{className:r.input}})),u.a.createElement(Ao.a,{item:!0,xs:12,sm:4,md:3,className:r.buttons},o&&u.a.createElement(G.a,{onClick:this.handleCancel},i("cancel")),u.a.createElement(G.a,{id:"fetchBtn",type:"submit",variant:"contained",color:"primary"},i("fetchManifest"))))):null}}])&&rf(t.prototype,n),r&&rf(t,r),i}(l.Component);function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach((function(t){pf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}uf.defaultProps={classes:{},onCancel:null,onSubmit:function(){},t:function(e){return e}};var hf={addResource:tf.a},gf=Object(r.compose)(Object(s.a)((function(e){return{buttons:pf({textAlign:"right"},e.breakpoints.up("sm"),{textAlign:"inherit"}),input:df({},e.typography.body1)}})),Object(i.a)(),Object(o.b)(null,hf),Object(c.a)("ManifestForm"))(uf),mf=n(497),vf=n(1054),bf=n(217);function yf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Of(e,t){return Of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Of(e,t)}function Ef(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sf(e);if(t){var o=Sf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xf(this,n)}}function xf(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sf(e)}var jf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Of(e,t)}(i,e);var t,n,r,o=Ef(i);function i(){return yf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.manifestId,r=e.onDismissClick,o=e.onTryAgainClick,i=e.t;return u.a.createElement(Ao.a,{container:!0},u.a.createElement(Ao.a,{container:!0},u.a.createElement(Ao.a,{container:!0,item:!0,xs:12,sm:6},u.a.createElement(Ao.a,{item:!0,xs:4,sm:3},u.a.createElement(Ao.a,{container:!0,justify:"center"},u.a.createElement(ea.a,{className:t.errorIcon}))),u.a.createElement(Ao.a,{item:!0,xs:8,sm:9},u.a.createElement(z.a,null,i("manifestError")),u.a.createElement(z.a,{className:t.manifestIdText},n)))),u.a.createElement(Ao.a,{container:!0},u.a.createElement(Ao.a,{container:!0,item:!0,xs:12,sm:6,justify:"flex-end"},u.a.createElement(Ao.a,{item:!0},u.a.createElement(G.a,{onClick:function(){r(n)}},i("dismiss")),u.a.createElement(G.a,{onClick:function(){o(n)}},i("tryAgain"))))))}}])&&wf(t.prototype,n),r&&wf(t,r),i}(l.Component),Tf={onDismissClick:tf.b,onTryAgainClick:mf.a},_f=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{errorIcon:{color:e.palette.error.main,height:"2rem",width:"2rem"},manifestIdText:{wordBreak:"break-all"}}})),Object(o.b)(null,Tf),Object(c.a)("ManifestListItemError"))(jf);function Cf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function If(e,t){return If=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},If(e,t)}function Pf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Af(e);if(t){var o=Af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kf(this,n)}}function kf(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rf(e)}function Rf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Af(e)}var Df=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&If(e,t)}(i,e);var t,n,r,o=Pf(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleOpenButtonClick=t.handleOpenButtonClick.bind(Rf(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.fetchManifest,n=e.manifestId,r=e.ready,o=e.isFetching,i=e.error,a=e.provider;r||i||o||"file"===a||t(n)}},{key:"handleOpenButtonClick",value:function(){var e=this.props,t=e.addWindow,n=e.handleClose;t({manifestId:e.manifestId}),n()}},{key:"render",value:function(){var e=this.props,t=e.active,n=e.buttonRef,r=e.manifestId,o=e.ready,i=e.title,a=e.thumbnail,s=e.manifestLogo,c=e.size,l=e.classes,f=e.provider,d=e.t,p=e.error,h=e.isCollection,g=e.isMultipart,m=u.a.createElement(Ao.a,{container:!0,className:Object(Gt.a)("manifest-list-item"),spacing:2},u.a.createElement(Ao.a,{item:!0,xs:3,sm:2},u.a.createElement(Qi.a,{className:l.placeholder,variant:"rect",height:80,width:120})),u.a.createElement(Ao.a,{item:!0,xs:9,sm:6},u.a.createElement(Qi.a,{className:l.placeholder,variant:"text"})),u.a.createElement(Ao.a,{item:!0,xs:8,sm:2},u.a.createElement(Qi.a,{className:l.placeholder,variant:"text"}),u.a.createElement(Qi.a,{className:l.placeholder,variant:"text"})),u.a.createElement(Ao.a,{item:!0,xs:4,sm:2},u.a.createElement(Qi.a,{className:l.placeholder,variant:"rect",height:60,width:60})));return p?u.a.createElement(vf.a,{divider:!0,className:l.root,"data-manifestid":r},u.a.createElement(_f,{manifestId:r})):u.a.createElement(vf.a,{divider:!0,className:[l.root,t?l.active:""].join(" "),"data-manifestid":r},o?u.a.createElement(Ao.a,{container:!0,className:Object(Gt.a)("manifest-list-item"),spacing:2},u.a.createElement(Ao.a,{item:!0,xs:12,sm:6,className:l.buttonGrid},u.a.createElement(ge.a,{ref:n,className:Object(Gt.a)("manifest-list-item-title"),style:{width:"100%"},onClick:this.handleOpenButtonClick},u.a.createElement(Ao.a,{container:!0,spacing:2,className:l.label,component:"span"},u.a.createElement(Ao.a,{item:!0,xs:4,sm:3,component:"span"},a?u.a.createElement(bf.Img,{className:[l.thumbnail,Object(Gt.a)("manifest-list-item-thumb")].join(" "),src:[a],alt:"",height:"80",unloader:u.a.createElement(Qi.a,{variant:"rect",animation:!1,className:l.placeholder,height:80,width:120})}):u.a.createElement(Qi.a,{className:l.placeholder,variant:"rect",height:80,width:120})),u.a.createElement(Ao.a,{item:!0,xs:8,sm:9,component:"span"},h&&u.a.createElement(z.a,{component:"div",variant:"overline"},d(g?"multipartCollection":"collection")),u.a.createElement(z.a,{component:"span",variant:"h6"},i||r))))),u.a.createElement(Ao.a,{item:!0,xs:8,sm:4},u.a.createElement(z.a,{className:Object(Gt.a)("manifest-list-item-provider")},f),u.a.createElement(z.a,null,d("numItems",{count:c,number:c}))),u.a.createElement(Ao.a,{item:!0,xs:4,sm:2},s&&u.a.createElement(bf.Img,{src:[s],alt:"",role:"presentation",className:l.logo,unloader:u.a.createElement(Qi.a,{variant:"rect",animation:!1,className:l.placeholder,height:60,width:60})}))):m)}}])&&Cf(t.prototype,n),r&&Cf(t,r),i}(u.a.Component);function Mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach((function(t){Lf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Df.defaultProps={active:!1,buttonRef:void 0,classes:{},error:null,handleClose:function(){},isCollection:!1,isFetching:!1,isMultipart:!1,manifestLogo:null,provider:null,ready:!1,size:0,t:function(e){return e},thumbnail:null,title:null};var zf={addWindow:zr.a,fetchManifest:mf.a},Wf=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{active:{},buttonGrid:{},label:{textAlign:"left",textTransform:"initial"},logo:{height:"2.5rem",maxWidth:"100%",objectFit:"contain",paddingRight:8},placeholder:{backgroundColor:e.palette.grey[300]},root:Nf(Nf({},e.mixins.gutters()),{},{"&$active":{borderLeft:"4px solid ".concat(e.palette.primary.main)},"&:hover,&:focus-within":{"&$active":{borderLeft:"4px solid ".concat(e.palette.primary.main)},backgroundColor:e.palette.action.hover,borderLeft:"4px solid ".concat(e.palette.action.hover)},borderLeft:"4px solid transparent"}),thumbnail:{maxWidth:"100%",objectFit:"contain"}}})),Object(o.b)((function(e,t){var n=t.manifestId,r=t.provider,o=Object(he.b)(e,{manifestId:n})||{},i=Object(Xi.q)(e,{manifestId:n}),a=(i||{isCollection:function(){return!1}}).isCollection(),s=a?i.getTotalItems():Object(Ea.f)(e,{manifestId:n}).length;return{active:Object(he.g)(e).includes(n),error:o.error,isCollection:a,isFetching:o.isFetching,isMultipart:a&&Object(Qs.c)(e,{manifestId:n}).includes("multi-part"),manifestLogo:Object(Xi.g)(e,{manifestId:n}),provider:r||Object(Xi.i)(e,{manifestId:n}),ready:!!o.json,size:s,thumbnail:Object(Xi.n)(e,{manifestId:n}),title:Object(Xi.o)(e,{manifestId:n})}}),zf),Object(c.a)("ManifestListItem"))(Df);function Bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ff(e,t){return Ff=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ff(e,t)}function Hf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gf(e);if(t){var o=Gf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vf(e)}function Vf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gf(e)}var qf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ff(e,t)}(i,e);var t,n,r,o=Hf(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={addResourcesOpen:!1},t.ref=u.a.createRef(),t.onSubmit=t.onSubmit.bind(Vf(t)),t.setAddResourcesVisibility=t.setAddResourcesVisibility.bind(Vf(t)),t.handleDrop=t.handleDrop.bind(Vf(t)),t}return t=i,(n=[{key:"handleDrop",value:function(e,t,n){var r=e.manifestId,o=e.manifestJson,i=this.props.addResource;o?i(r,o,{provider:"file"}):i(r),this.scrollToTop()}},{key:"onSubmit",value:function(){this.setAddResourcesVisibility(!1),this.scrollToTop()}},{key:"setAddResourcesVisibility",value:function(e){this.setState({addResourcesOpen:e})}},{key:"scrollToTop",value:function(){this.ref.current&&this.ref.current.scrollTo({behavior:"smooth",left:0,top:0})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,i=o.catalog,a=o.setWorkspaceAddVisibility,s=o.t,c=o.classes,l=this.state.addResourcesOpen,f=i.map((function(e,t){return u.a.createElement(Wf,Object.assign({},0===t&&{buttonRef:function(e){return e&&e.focus()}},{key:e.manifestId,manifestId:e.manifestId,provider:e.provider,handleClose:function(){return a(!1)}}))}));return u.a.createElement(Gu,{onDrop:this.handleDrop},u.a.createElement("div",{ref:this.ref,className:d()(Object(Gt.a)("workspace-add"),c.workspaceAdd)},i.length<1?u.a.createElement(Ao.a,{alignItems:"center",container:!0,style:{height:"100%"}},u.a.createElement(Ao.a,{xs:12,item:!0},u.a.createElement(z.a,{variant:"h1",component:"div",align:"center"},s("emptyResourceList")))):u.a.createElement(R.a,{className:c.list},u.a.createElement(z.a,{variant:"srOnly",component:"h1"},s("miradorResources")),u.a.createElement(nn.a,this.props),u.a.createElement(nf.a,{disablePadding:!0},f)),u.a.createElement(ve,{variant:"extended",disabled:l,className:d()(c.fab,Object(Gt.a)("add-resource-button")),color:"primary",onClick:function(){return r.setAddResourcesVisibility(!0)}},u.a.createElement(we.a,null),s("addResource")),u.a.createElement(Pa,{className:d()((e={},t=c.displayNone,n=!l,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),classes:{paper:c.paper},variant:"persistent",anchor:"bottom",open:l,ModalProps:{disablePortal:!0,hideBackdrop:!0,style:{position:"absolute"}}},u.a.createElement(R.a,{className:c.form},u.a.createElement(oe,{position:"absolute",color:"primary",onClick:function(){return r.setAddResourcesVisibility(!1)}},u.a.createElement(ie.a,{variant:"dense"},u.a.createElement(Ne.a,{"aria-label":s("closeAddResourceForm"),className:c.menuButton,color:"inherit"},u.a.createElement(pt.a,null)),u.a.createElement(z.a,{variant:"h2",noWrap:!0,color:"inherit",className:c.typographyBody},s("addResource")))),u.a.createElement(gf,{addResourcesOpen:l,onSubmit:this.onSubmit,onCancel:function(){return r.setAddResourcesVisibility(!1)}})))))}}])&&Bf(t.prototype,n),r&&Bf(t,r),i}(u.a.Component);function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(Object(n),!0).forEach((function(t){Zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qf.defaultProps={addResource:function(){},catalog:[],classes:{},t:function(e){return e}};var Yf={addResource:tf.a,setWorkspaceAddVisibility:pe.a},Xf=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{displayNone:{display:"none"},fab:{bottom:e.spacing(2),position:"absolute",right:e.spacing(2)},form:Kf(Kf({},e.mixins.gutters()),{},{left:"0",marginTop:48,paddingBottom:e.spacing(2),paddingTop:e.spacing(2),right:"0"}),list:{margin:"16px"},menuButton:{marginLeft:-12,marginRight:20},paper:Zf({borderTop:"0",left:"0"},e.breakpoints.up("sm"),{left:"65px"}),typographyBody:{flexGrow:1},workspaceAdd:{boxSizing:"border-box",height:"100%",overflowX:"hidden",overflowY:"auto",paddingTop:68},"@media (min-width: 600px)":{workspaceAdd:{paddingLeft:68,paddingTop:0}}}})),Object(o.b)((function(e){return{catalog:Object(he.a)(e)}}),Yf),Object(c.a)("WorkspaceAdd"))(qf),Qf=function(e){return u.a.createElement("div",{className:Object(Gt.a)("background-plugin-area"),style:{display:"none"}},u.a.createElement(nn.a,e))};Qf.defaultProps={PluginComponents:[]};var Jf=Object(c.a)("BackgroundPluginArea")(Qf);function ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nd(e,t){return nd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nd(e,t)}function rd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=id(e);if(t){var o=id(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return od(this,n)}}function od(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function id(e){return id=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},id(e)}var ad=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nd(e,t)}(i,e);var t,n,r,o=rd(i);function i(){return ed(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.controlPanelVariant,r=e.isWorkspaceAddVisible,o=e.isWorkspaceControlPanelVisible,i=e.lang,a=e.t;return u.a.createElement(u.a.Fragment,null,o&&u.a.createElement(Ro,{variant:n}),u.a.createElement("main",{className:d()(t.viewer,Object(Gt.a)("viewer")),lang:i,"aria-label":a("workspace")},r?u.a.createElement(Xf,null):u.a.createElement(ef,null),u.a.createElement(ne,null),u.a.createElement(Jf,null)))}}])&&td(t.prototype,n),r&&td(t,r),i}(l.Component);ad.defaultProps={controlPanelVariant:void 0,isWorkspaceAddVisible:!1,lang:void 0};var sd=Object(r.compose)(Object(i.a)(),Object(s.a)((function(e){return{viewer:{background:("light"===e.palette.type?a.b:a.e)(e.palette.shades.light,.1),bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0}}})),Object(o.b)((function(e){return{controlPanelVariant:Object(he.i)(e).isWorkspaceAddVisible||Object(he.f)(e).length>0?void 0:"wide",isWorkspaceAddVisible:Object(he.i)(e).isWorkspaceAddVisible,isWorkspaceControlPanelVisible:Object(Ke.a)(e).workspaceControlPanel.enabled,lang:Object(Ke.a)(e).language}})),Object(c.a)("WorkspaceArea"));t.default=sd(ad)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(6),i=n(0),a=n.n(i),s=n(7),c=n(282),l=n(10),u=n(180),f=n(36),d=n(19),p=n.n(d),h=n(1092),g=n(165),m=n(1119),v=n(501),b=n(97),y=n(599),w=n.n(y),O=n(600),E=n.n(O),x=n(283);function S(e){return a.a.createElement(x.a,e,a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},a.a.createElement("path",{d:"M6,15H9v3h2V13H6Zm9-6V6H13v5h5V9Z"}),a.a.createElement("path",{d:"M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8,8,8,0,0,1-8,8Z"})))}var j=n(29);function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(i,e);var t,n,r,o=C(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).handleZoomInClick=t.handleZoomInClick.bind(P(t)),t.handleZoomOutClick=t.handleZoomOutClick.bind(P(t)),t}return t=i,(n=[{key:"handleZoomInClick",value:function(){var e=this.props,t=e.windowId;(0,e.updateViewport)(t,{zoom:2*e.viewer.zoom})}},{key:"handleZoomOutClick",value:function(){var e=this.props,t=e.windowId;(0,e.updateViewport)(t,{zoom:e.viewer.zoom/2})}},{key:"render",value:function(){var e=this.props,t=e.displayDivider,n=e.showZoomControls,r=e.classes,o=e.t,i=e.zoomToWorld;return n?a.a.createElement("div",{className:r.zoom_controls},a.a.createElement(j.a,{"aria-label":o("zoomIn"),onClick:this.handleZoomInClick},a.a.createElement(w.a,null)),a.a.createElement(j.a,{"aria-label":o("zoomOut"),onClick:this.handleZoomOutClick},a.a.createElement(E.a,null)),a.a.createElement(j.a,{"aria-label":o("zoomReset"),onClick:function(){return i(!1)}},a.a.createElement(S,null)),t&&a.a.createElement("span",{className:r.divider})):a.a.createElement(a.a.Fragment,null)}}])&&T(t.prototype,n),r&&T(t,r),i}(i.Component);R.defaultProps={displayDivider:!0,showZoomControls:!1,t:function(e){return e},updateViewport:function(){},viewer:{},windowId:""};var A={updateViewport:v.d},D=Object(r.compose)(Object(m.a)(),Object(l.a)((function(e){return{divider:{borderRight:"1px solid #808080",display:"inline-block",height:"24px",margin:"12px 6px"},ListItem:{paddingBottom:0,paddingTop:0},zoom_controls:{display:"flex",flexDirection:"row",justifyContent:"center"}}})),Object(s.b)((function(e,t){var n=t.windowId;return{showZoomControls:Object(b.f)(e),viewer:Object(f.d)(e,{windowId:n})}}),A),Object(o.a)("ZoomControls"))(R),M=n(12);function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z(e,t){return z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(i,e);var t,n,r,o=W(i);function i(){return N(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasCount,n=e.canvasIndex,r=e.canvasLabel,o=e.classes,i=e.t;return a.a.createElement("div",{className:p()(Object(M.a)("osd-info"),o.osdInfo)},a.a.createElement(g.a,{display:"inline",variant:"caption",className:Object(M.a)("canvas-count")},i("pagination",{current:n+1,total:t})),a.a.createElement(g.a,{display:"inline",variant:"caption",className:Object(M.a)("canvas-label")},r&&" • ".concat(r)))}}])&&L(t.prototype,n),r&&L(t,r),i}(i.Component);H.defaultProps={canvasLabel:void 0,t:function(){}};var U=n(53),V=n(66),G=Object(r.compose)(Object(l.a)({osdInfo:{order:2,overflow:"hidden",paddingBottom:3,textOverflow:"ellipsis",unicodeBidi:"plaintext",whiteSpace:"nowrap",width:"100%"}}),Object(m.a)(),Object(s.b)((function(e,t){var n=t.windowId,r=Object(U.f)(e,{windowId:n}),o=Object(V.a)(e,{windowId:n}),i=(Object(U.g)(e,{windowId:n})||{}).id;return{canvasCount:r.length,canvasIndex:o,canvasLabel:Object(U.e)(e,{canvasId:i,windowId:n})}}),null),Object(o.a)("ViewerInfo"))(H),q=n(397),$=n.n(q);function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Y(e,t)}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=J(e);if(t){var o=J(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(i,e);var t,n,r,o=X(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.hasNextCanvas,n=e.hasPreviousCanvas,r=e.setNextCanvas,o=e.setPreviousCanvas,i=e.t,s=e.classes,c="ltr",l={},u={};switch(e.viewingDirection){case"top-to-bottom":l={transform:"rotate(270deg)"},u={transform:"rotate(90deg)"};break;case"bottom-to-top":l={transform:"rotate(90deg)"},u={transform:"rotate(270deg)"};break;case"right-to-left":c="rtl",l={},u={transform:"rotate(180deg)"};break;default:l={transform:"rotate(180deg)"},u={}}return a.a.createElement("div",{className:p()(Object(M.a)("osd-navigation"),s.osdNavigation),dir:c},a.a.createElement(j.a,{"aria-label":i("previousCanvas"),className:Object(M.a)("previous-canvas-button"),disabled:!n,onClick:function(){n&&o()}},a.a.createElement($.a,{style:l})),a.a.createElement(j.a,{"aria-label":i("nextCanvas"),className:Object(M.a)("next-canvas-button"),disabled:!t,onClick:function(){t&&r()}},a.a.createElement($.a,{style:u})))}}])&&Z(t.prototype,n),r&&Z(t,r),i}(i.Component);ee.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},viewingDirection:""};var te=Object(r.compose)(Object(l.a)({osdNavigation:{order:1}}),Object(m.a)(),Object(s.b)((function(e,t){var n=t.windowId;return{hasNextCanvas:!!Object(U.h)(e,{windowId:n}),hasPreviousCanvas:!!Object(U.i)(e,{windowId:n}),viewingDirection:Object(V.e)(e,{windowId:n})}}),(function(e,t){var n=t.windowId;return{setNextCanvas:function(){return e(v.b(n))},setPreviousCanvas:function(){return e(v.c(n))}}})),Object(o.a)("ViewerNavigation"))(ee),ne=n(35);function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ie(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ce(e);if(t){var o=ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}var le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(i,e);var t,n,r,o=ae(i);function i(){return re(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"canvasNavControlsAreStacked",value:function(){var e=this.props.size;return e&&e.width&&e.width<=253}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.visible,r=e.windowId,o=e.zoomToWorld;return n?a.a.createElement(h.a,{square:!0,className:p()(t.controls,Object(M.a)("canvas-nav"),t.canvasNav,this.canvasNavControlsAreStacked()?Object(M.a)("canvas-nav-stacked"):null,this.canvasNavControlsAreStacked()?t.canvasNavStacked:null),elevation:0},a.a.createElement(D,{displayDivider:!this.canvasNavControlsAreStacked(),windowId:r,zoomToWorld:o}),a.a.createElement(te,{windowId:r}),a.a.createElement(G,{windowId:r}),a.a.createElement(ne.a,this.props)):a.a.createElement(g.a,{variant:"srOnly",component:"div"},a.a.createElement(G,{windowId:r}))}}])&&oe(t.prototype,n),r&&oe(t,r),i}(i.Component);le.defaultProps={classes:{},visible:!0};var ue=Object(r.compose)(Object(s.b)((function(e,t){var n=t.windowId;return{visible:Object(f.i)(e).focusedWindowId===n}})),Object(l.a)((function(e){return{canvasNav:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",textAlign:"center"},canvasNavStacked:{flexDirection:"column"},controls:{backgroundColor:Object(u.fade)(e.palette.background.paper,.5),bottom:0,position:"absolute",width:"100%",zIndex:50}}})),Object(c.withSize)(),Object(o.a)("WindowCanvasNavigationControls"))(le);function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t){return de=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},de(e,t)}function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return he(this,n)}}function he(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}var me=Object(i.lazy)((function(){return Promise.resolve().then(n.bind(null,1114))})),ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&de(e,t)}(s,e);var t,n,r,o=pe(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={},t}return t=s,r=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(n=[{key:"render",value:function(){var e=this.props.windowId;return this.state.hasError?a.a.createElement(a.a.Fragment,null):a.a.createElement(i.Suspense,{fallback:a.a.createElement("div",null)},a.a.createElement(me,{windowId:e},a.a.createElement(ue,{windowId:e})))}}])&&fe(t.prototype,n),r&&fe(t,r),s}(i.Component),be=Object(r.compose)(Object(o.a)("WindowViewer"));t.default=be(ve)},function(e,t,n){"use strict";var r,o=n(1),i=n(5),a=n(26),s=n(0),c=(n(96),n(11),n(4)),l=n(101),u=n(182);function f(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function d(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(f()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function p(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function g(e){var t=e.onChange,n=Object(i.a)(e,["onChange"]),r=s.useRef(),a=s.useRef(null),c=function(){r.current=a.current.offsetHeight-a.current.clientHeight};return s.useEffect((function(){var e=Object(l.a)((function(){var e=r.current;c(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),s.useEffect((function(){c(),t(r.current)}),[t]),s.createElement("div",Object(o.a)({style:h,ref:a},n))}var m=n(10),v=n(18),b=s.forwardRef((function(e,t){var n=e.classes,r=e.className,a=e.color,l=e.orientation,u=Object(i.a)(e,["classes","className","color","orientation"]);return s.createElement("span",Object(o.a)({className:Object(c.a)(n.root,n["color".concat(Object(v.a)(a))],r,"vertical"===l&&n.vertical),ref:t},u))})),y=Object(m.a)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(b),w=n(100),O=Object(w.a)(s.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),E=Object(w.a)(s.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),x=n(308),S=s.createElement(O,{fontSize:"small"}),j=s.createElement(E,{fontSize:"small"}),T=s.forwardRef((function(e,t){var n=e.classes,r=e.className,a=e.direction,l=e.orientation,u=e.disabled,f=Object(i.a)(e,["classes","className","direction","orientation","disabled"]);return s.createElement(x.a,Object(o.a)({component:"div",className:Object(c.a)(n.root,r,u&&n.disabled,"vertical"===l&&n.vertical),ref:t,role:null,tabIndex:null},f),"left"===a?S:j)})),_=Object(m.a)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(T),C=n(43),I=n(52),P=s.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],h=e.action,m=e.centered,v=void 0!==m&&m,b=e.children,w=e.classes,O=e.className,E=e.component,x=void 0===E?"div":E,S=e.indicatorColor,j=void 0===S?"secondary":S,T=e.onChange,P=e.orientation,k=void 0===P?"horizontal":P,R=e.ScrollButtonComponent,A=void 0===R?_:R,D=e.scrollButtons,M=void 0===D?"auto":D,N=e.selectionFollowsFocus,L=e.TabIndicatorProps,z=void 0===L?{}:L,W=e.TabScrollButtonProps,B=e.textColor,F=void 0===B?"inherit":B,H=e.value,U=e.variant,V=void 0===U?"standard":U,G=Object(i.a)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),q=Object(I.a)(),$="scrollable"===V,K="rtl"===q.direction,Z="vertical"===k,Y=Z?"scrollTop":"scrollLeft",X=Z?"top":"left",Q=Z?"bottom":"right",J=Z?"clientHeight":"clientWidth",ee=Z?"height":"width";var te=s.useState(!1),ne=te[0],re=te[1],oe=s.useState({}),ie=oe[0],ae=oe[1],se=s.useState({start:!1,end:!1}),ce=se[0],le=se[1],ue=s.useState({overflow:"hidden",marginBottom:null}),fe=ue[0],de=ue[1],pe=new Map,he=s.useRef(null),ge=s.useRef(null),me=function(){var e,t,n=he.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:d(n,q.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==H){var o=ge.current.children;if(o.length>0){var i=o[pe.get(H)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ve=Object(C.a)((function(){var e,t=me(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(Z)o=r.top-n.top+n.scrollTop;else{var i=K?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var s=(e={},Object(a.a)(e,X,o),Object(a.a)(e,ee,r?r[ee]:0),e);if(isNaN(ie[X])||isNaN(ie[ee]))ae(s);else{var c=Math.abs(ie[X]-s[X]),l=Math.abs(ie[ee]-s[ee]);(c>=1||l>=1)&&ae(s)}})),be=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?p:i,s=r.duration,c=void 0===s?300:s,l=null,u=t[e],f=!1,d=function(){f=!0},h=function r(i){if(f)o(new Error("Animation cancelled"));else{null===l&&(l=i);var s=Math.min(1,(i-l)/c);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(h)}(Y,he.current,e)},ye=function(e){var t=he.current[Y];Z?t+=e:(t+=e*(K?-1:1),t*=K&&"reverse"===f()?-1:1),be(t)},we=function(){ye(-he.current[J])},Oe=function(){ye(he.current[J])},Ee=s.useCallback((function(e){de({overflow:null,marginBottom:-e})}),[]),xe=Object(C.a)((function(){var e=me(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[X]<t[X]){var r=t[Y]+(n[X]-t[X]);be(r)}else if(n[Q]>t[Q]){var o=t[Y]+(n[Q]-t[Q]);be(o)}})),Se=Object(C.a)((function(){if($&&"off"!==M){var e,t,n=he.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(Z)e=r>1,t=r<o-i-1;else{var c=d(he.current,q.direction);e=K?c<a-s-1:c>1,t=K?c>1:c<a-s-1}e===ce.start&&t===ce.end||le({start:e,end:t})}}));s.useEffect((function(){var e=Object(l.a)((function(){ve(),Se()})),t=Object(u.a)(he.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[ve,Se]);var je=s.useCallback(Object(l.a)((function(){Se()})));s.useEffect((function(){return function(){je.clear()}}),[je]),s.useEffect((function(){re(!0)}),[]),s.useEffect((function(){ve(),Se()})),s.useEffect((function(){xe()}),[xe,ie]),s.useImperativeHandle(h,(function(){return{updateIndicator:ve,updateScrollButtons:Se}}),[ve,Se]);var Te=s.createElement(y,Object(o.a)({className:w.indicator,orientation:k,color:j},z,{style:Object(o.a)({},ie,z.style)})),_e=0,Ce=s.Children.map(b,(function(e){if(!s.isValidElement(e))return null;var t=void 0===e.props.value?_e:e.props.value;pe.set(t,_e);var n=t===H;return _e+=1,s.cloneElement(e,{fullWidth:"fullWidth"===V,indicator:n&&!ne&&Te,selected:n,selectionFollowsFocus:N,onChange:T,textColor:F,value:t})})),Ie=function(){var e={};e.scrollbarSizeListener=$?s.createElement(g,{className:w.scrollable,onChange:Ee}):null;var t=ce.start||ce.end,n=$&&("auto"===M&&t||"desktop"===M||"on"===M);return e.scrollButtonStart=n?s.createElement(A,Object(o.a)({orientation:k,direction:K?"right":"left",onClick:we,disabled:!ce.start,className:Object(c.a)(w.scrollButtons,"on"!==M&&w.scrollButtonsDesktop)},W)):null,e.scrollButtonEnd=n?s.createElement(A,Object(o.a)({orientation:k,direction:K?"left":"right",onClick:Oe,disabled:!ce.end,className:Object(c.a)(w.scrollButtons,"on"!==M&&w.scrollButtonsDesktop)},W)):null,e}();return s.createElement(x,Object(o.a)({className:Object(c.a)(w.root,O,Z&&w.vertical),ref:t},G),Ie.scrollButtonStart,Ie.scrollbarSizeListener,s.createElement("div",{className:Object(c.a)(w.scroller,$?w.scrollable:w.fixed),style:fe,ref:he,onScroll:je},s.createElement("div",{"aria-label":n,"aria-labelledby":r,className:Object(c.a)(w.flexContainer,Z&&w.flexContainerVertical,v&&!$&&w.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==k?"ArrowLeft":"ArrowUp",o="vertical"!==k?"ArrowRight":"ArrowDown";switch("vertical"!==k&&"rtl"===q.direction&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:n=t.previousElementSibling||ge.current.lastChild;break;case o:n=t.nextElementSibling||ge.current.firstChild;break;case"Home":n=ge.current.firstChild;break;case"End":n=ge.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:ge,role:"tablist"},Ce),ne&&Te),Ie.scrollButtonEnd)}));t.a=Object(m.a)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:Object(a.a)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(P)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(7),i=n(1119),a=n(10),s=n(24),c=n.n(s),l=n(6),u=n(0),f=n.n(u),d=n(158),p=n.n(d),h=n(125),g=n.n(h),m=n(164),v=n.n(m),b=n(19),y=n.n(b),w=n(12),O=n(32),E=n.n(O),x=n(398),S=n.n(x),j=n(399),T=n.n(j);function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.viewer=t,this.ref=n,this.containerWidth=0,this.containerHeight=0,this.imgAspectRatio=1}var t,n,r;return t=e,(n=[{key:"canvas",get:function(){return this.canvasDiv.firstElementChild}},{key:"canvasDiv",get:function(){return this.ref.current}},{key:"context2d",get:function(){return this.canvas.getContext("2d")}},{key:"clear",value:function(){this.context2d.clearRect(0,0,this.containerWidth,this.containerHeight)}},{key:"resize",value:function(){this.containerWidth!==this.viewer.container.clientWidth&&(this.containerWidth=this.viewer.container.clientWidth,this.canvasDiv.setAttribute("width",this.containerWidth),this.canvas.setAttribute("width",this.containerWidth)),this.containerHeight!==this.viewer.container.clientHeight&&(this.containerHeight=this.viewer.container.clientHeight,this.canvasDiv.setAttribute("height",this.containerHeight),this.canvas.setAttribute("height",this.containerHeight)),this.viewportOrigin=new v.a.Point(0,0);var e=this.viewer.viewport.getBoundsNoRotate(!0);this.viewportOrigin.x=e.x,this.viewportOrigin.y=e.y*this.imgAspectRatio,this.viewportWidth=e.width,this.viewportHeight=e.height*this.imgAspectRatio;var t=this.viewer.world.getItemAt(0);t&&(this.imgWidth=t.source.dimensions.x,this.imgHeight=t.source.dimensions.y,this.imgAspectRatio=this.imgWidth/this.imgHeight)}},{key:"canvasUpdate",value:function(e){var t=this.viewer.viewport.getZoom(!0),n=this.viewer.world.getItemAt(0);if(n){var r=n.viewportToImageZoom(t),o=(this.viewportOrigin.x/this.imgWidth-this.viewportOrigin.x)/this.viewportWidth*this.containerWidth,i=(this.viewportOrigin.y/this.imgHeight-this.viewportOrigin.y)/this.viewportHeight*this.containerHeight;this.clearBeforeRedraw&&this.clear(),this.context2d.translate(o,i),this.context2d.scale(r,r);var a=this.viewer.viewport.getCenter();this.viewer.viewport.getFlip()&&(this.context2d.translate(2*a.x,0),this.context2d.scale(-1,1));var s=this.viewer.viewport.getRotation();0!==s&&(this.context2d.translate(a.x,a.y),this.context2d.rotate(s*Math.PI/180),this.context2d.translate(-1*a.x,-1*a.y)),e(),this.context2d.setTransform(1,0,0,1,0,0)}}}])&&_(t.prototype,n),r&&_(t,r),e}();function I(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var R=function(){function e(t){var n=t.resource,r=t.palette,o=t.zoomRatio,i=t.offset,a=t.selected,s=t.hovered;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=n,this.palette=r,this.zoomRatio=o,this.offset=i,this.selected=a,this.hovered=s}var t,n,r;return t=e,(n=[{key:"toContext",value:function(e){this.context=e,this.resource.svgSelector?this.svgContext():this.resource.fragmentSelector&&this.fragmentContext()}},{key:"svgString",get:function(){return this.resource.svgSelector.value}},{key:"svgContext",value:function(){var e,t=this;0!==(e=this.hovered?this.palette.hovered:this.selected?this.palette.selected:this.palette.default).globalAlpha&&I(this.svgPaths).forEach((function(n){t.context.save(),t.context.translate(t.offset.x,t.offset.y);var r=new Path2D(n.attributes.d.nodeValue);t.context.strokeStyle=t.color,n.attributes["stroke-dasharray"]&&t.context.setLineDash(n.attributes["stroke-dasharray"].nodeValue.split(","));var o={fill:"fillStyle",stroke:"strokeStyle","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterlimit","stroke-width":"lineWidth"};Object.keys(o).forEach((function(e){n.attributes[e]&&(t.context[o[e]]=n.attributes[e].nodeValue)})),t.context.lineWidth/=t.zoomRatio,(t.selected||t.hovered)&&(t.context.strokeStyle=e.strokeStyle||e.fillStyle),n.attributes["stroke-opacity"]?t.context.globalAlpha=e.globalAlpha*n.attributes["stroke-opacity"].nodeValue:t.context.globalAlpha=e.globalAlpha,t.context.stroke(r),n.attributes.fill&&"none"!==n.attributes.fill.nodeValue&&(n.attributes["fill-opacity"]?t.context.globalAlpha=e.globalAlpha*n.attributes["fill-opacity"].nodeValue:t.context.globalAlpha=e.globalAlpha,t.context.fill(r)),t.context.restore()}))}},{key:"fragmentContext",value:function(){var e,t,n,r=this,o=this.resource.fragmentSelector;(o[0]+=this.offset.x,o[1]+=this.offset.y,e=this.selected?this.palette.selected:this.hovered?this.palette.hovered:this.palette.default,this.context.save(),Object.keys(e).forEach((function(t){r.context[t]=e[t]})),0!==e.globalAlpha)&&(e.fillStyle?(t=this.context).fillRect.apply(t,I(o)):(this.context.lineWidth=1/this.zoomRatio,(n=this.context).strokeRect.apply(n,I(o))),this.context.restore())}},{key:"svgPaths",get:function(){return(new DOMParser).parseFromString(this.svgString,"text/xml").getElementsByTagName("path")}}])&&k(t.prototype,n),r&&k(t,r),e}();function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return U(this,n)}}function U(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(i,e);var t,n,r,o=H(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).ref=f.a.createRef(),t.osdCanvasOverlay=null,t.updateCanvas=function(){},t.onUpdateViewport=t.onUpdateViewport.bind(V(t)),t.onCanvasClick=t.onCanvasClick.bind(V(t)),t.onCanvasMouseMove=p()(t.onCanvasMouseMove.bind(V(t)),10),t.onCanvasExit=t.onCanvasExit.bind(V(t)),t}return t=i,r=[{key:"annotationsMatch",value:function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(0===e.length&&0===t.length||e.length===t.length&&e.every((function(e,n){var r=e.resources.map((function(e){return e.id})),o=t[n].resources.map((function(e){return e.id}));return 0===r.length&&0===o.length||r.length===o.length&&!(e.id!==t[n].id||!g()(r,o))})))}}],(n=[{key:"componentDidMount",value:function(){this.initializeViewer()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.drawAnnotations,r=t.drawSearchAnnotations,o=t.annotations,a=t.searchAnnotations,s=t.hoveredAnnotationIds,c=t.selectedAnnotationId,l=t.highlightAllAnnotations,u=t.viewer;this.initializeViewer();var f=!i.annotationsMatch(o,e.annotations),d=!i.annotationsMatch(a,e.searchAnnotations),p=T()(s,e.hoveredAnnotationIds).length>0;this.osdCanvasOverlay&&p&&(s.length>0?this.osdCanvasOverlay.canvasDiv.style.cursor="pointer":this.osdCanvasOverlay.canvasDiv.style.cursor="");var h=c!==e.selectedAnnotationId,g=n!==e.drawAnnotations||r!==e.drawSearchAnnotations||l!==e.highlightAllAnnotations;(d||f||h||p||g)&&(this.updateCanvas=this.canvasUpdateCallback(),u.forceRedraw())}},{key:"componentWillUnmount",value:function(){var e=this.props.viewer;e.removeHandler("canvas-click",this.onCanvasClick),e.removeHandler("canvas-exit",this.onCanvasExit),e.removeHandler("update-viewport",this.onUpdateViewport),e.removeHandler("mouse-move",this.onCanvasMouseMove)}},{key:"onCanvasClick",value:function(e){var t=this,n=this.props.canvasWorld,r=e.position,o=e.eventSource.viewport.pointFromPixel(r),i=n.canvasAtPoint(o);if(i){var a=L(n.canvasToWorldCoordinates(i.id),4),s=(a[0],a[1],a[2]),c=a[3],l=this.annotationsAtPoint(i,o);if(l.length>0&&(e.preventDefaultAction=!0),1===l.length)this.toggleAnnotation(l[0].id);else if(l.length>0){var u=function(e){var n=Math.PI/180;return function(r){for(var a=0,s=0;s<360;s+=1){var c=Math.cos(s*n)*e+o.x,l=Math.sin(s*n)*e+o.y;t.isAnnotationAtPoint(r,i,{x:c,y:l})&&(a+=1)}return{anno:r,score:a}}},f=[],d=1;for(f=S()(l.map(u(d)),"score");d<Math.max(s,c)&&f[0].score===f[1].score;)d*=2,f=S()(l.map(u(d)),"score");this.toggleAnnotation(f[0].anno.id)}}}},{key:"onCanvasMouseMove",value:function(e){var t=this.props,n=t.annotations,r=t.canvasWorld,o=t.hoverAnnotation,i=t.hoveredAnnotationIds,a=t.searchAnnotations,s=t.viewer,c=t.windowId;if(0!==n.length||0!==a.length){var l=e.position,u=s.viewport.pointFromPixel(l),f=r.canvasAtPoint(u);if(f){var d=this.annotationsAtPoint(f,u);T()(i,d.map((function(e){return e.id}))).length>0&&o(c,d.map((function(e){return e.id})))}else o(c,[])}}},{key:"onCanvasExit",value:function(e){var t=this.props,n=t.hoverAnnotation,r=t.windowId;this.onCanvasMouseMove.cancel(),n(r,[])}},{key:"onUpdateViewport",value:function(e){this.updateCanvas()}},{key:"initializeViewer",value:function(){var e=this.props.viewer;e&&(this.osdCanvasOverlay||(this.osdCanvasOverlay=new C(e,this.ref),e.addHandler("canvas-click",this.onCanvasClick),e.addHandler("canvas-exit",this.onCanvasExit),e.addHandler("update-viewport",this.onUpdateViewport),e.addHandler("mouse-move",this.onCanvasMouseMove),this.updateCanvas=this.canvasUpdateCallback()))}},{key:"canvasUpdateCallback",value:function(){var e=this;return function(){e.osdCanvasOverlay.clear(),e.osdCanvasOverlay.resize(),e.osdCanvasOverlay.canvasUpdate(e.renderAnnotations.bind(e))}}},{key:"isAnnotationAtPoint",value:function(e,t,n){var r=L(this.props.canvasWorld.canvasToWorldCoordinates(t.id),2),o=r[0],i=r[1],a=n.x-o,s=n.y-i;if(e.svgSelector){var c=this.osdCanvasOverlay.context2d;return N(new R({resource:e}).svgPaths).some((function(e){return c.isPointInPath(new Path2D(e.attributes.d.nodeValue),a,s)}))}if(e.fragmentSelector){var l=L(e.fragmentSelector,4),u=l[0],f=l[1],d=l[2],p=l[3];return u<=a&&a<=u+d&&f<=s&&s<=f+p}return!1}},{key:"annotationsAtPoint",value:function(e,t){var n=this,r=this.props,o=r.annotations,i=r.searchAnnotations,a=[].concat(N(o),N(i));return c()(a.map((function(e){return e.resources}))).filter((function(r){return e.id===r.targetId&&n.isAnnotationAtPoint(r,e,t)}))}},{key:"toggleAnnotation",value:function(e){var t=this.props,n=t.selectedAnnotationId,r=t.selectAnnotation,o=t.deselectAnnotation,i=t.windowId;n===e?o(i,e):r(i,e)}},{key:"annotationsToContext",value:function(e,t){var n=this.props,r=n.highlightAllAnnotations,o=n.hoveredAnnotationIds,i=n.selectedAnnotationId,a=n.canvasWorld,s=n.viewer,c=this.osdCanvasOverlay.context2d,l=s.viewport.getZoom(!0)/s.viewport.getMaxZoom();e.forEach((function(e){e.resources.forEach((function(e){if(a.canvasIds.includes(e.targetId)){var n=a.offsetByCanvas(e.targetId);new R({hovered:o.includes(e.id),offset:n,palette:D(D({},t),{},{default:D(D({},t.default),!r&&t.hidden)}),resource:e,selected:i===e.id,zoomRatio:l}).toContext(c)}}))}))}},{key:"renderAnnotations",value:function(){var e=this.props,t=e.annotations,n=e.drawAnnotations,r=e.drawSearchAnnotations,o=e.searchAnnotations,i=e.palette;r&&this.annotationsToContext(o,i.search),n&&this.annotationsToContext(t,i.annotations)}},{key:"render",value:function(){var e=this.props.viewer;return e?E.a.createPortal(f.a.createElement("div",{ref:this.ref,style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"}},f.a.createElement("canvas",null)),e.canvas):f.a.createElement(f.a.Fragment,null)}}])&&B(t.prototype,n),r&&B(t,r),i}(u.Component);q.defaultProps={annotations:[],deselectAnnotation:function(){},drawAnnotations:!0,drawSearchAnnotations:!0,highlightAllAnnotations:!1,hoverAnnotation:function(){},hoveredAnnotationIds:[],palette:{},searchAnnotations:[],selectAnnotation:function(){},selectedAnnotationId:void 0,viewer:null};var $=n(496),K=n(529),Z=n(517),Y=n(97),X=n(157),Q=n(36),J=n(503),ee={deselectAnnotation:$.a,hoverAnnotation:$.b,selectAnnotation:$.g},te=Object(r.compose)(Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId;return{annotations:Object(K.d)(e,{windowId:n}),canvasWorld:Object(Z.a)(e,{windowId:n}),drawAnnotations:Object(Y.a)(e).window.forceDrawAnnotations||Object(X.e)(e,{content:"annotations",windowId:n}).length>0,drawSearchAnnotations:Object(Y.a)(e).window.forceDrawAnnotations||Object(X.e)(e,{content:"search",windowId:n}).length>0,highlightAllAnnotations:Object(Q.e)(e,{windowId:n}).highlightAllAnnotations,hoveredAnnotationIds:Object(Q.e)(e,{windowId:n}).hoveredAnnotationIds,palette:Object(Y.g)(e).palette,searchAnnotations:Object(J.f)(e,{windowId:n}),selectedAnnotationId:Object(K.e)(e,{windowId:n})}}),ee),Object(l.a)("AnnotationsOverlay"))(q),ne=n(35),re={get:function(e){return this.refs[e]},refs:{},set:function(e,t){this.refs[e]=t}};function oe(e,t,n){return oe=he()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&fe(o,n.prototype),o},oe.apply(null,arguments)}function ie(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t){return fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fe(e,t)}function de(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pe(e)}function pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}var me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fe(e,t)}(s,e);var t,n,r,o,i,a=(t=s,n=he(),function(){var e,r=ge(t);if(n){var o=ge(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return de(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={viewer:void 0},t.ref=f.a.createRef(),t.apiRef=f.a.createRef(),re.set(e.windowId,t.apiRef),t.onCanvasMouseMove=p()(t.onCanvasMouseMove.bind(pe(t)),10),t.onViewportChange=t.onViewportChange.bind(pe(t)),t.zoomToWorld=t.zoomToWorld.bind(pe(t)),t.osdUpdating=!1,t}return r=s,o=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.osdConfig,r=t.t,o=t.windowId;if(this.ref.current){var i=new v.a(ce({id:this.ref.current.id},n)),a=i.canvas&&i.canvas.firstElementChild;a&&(a.setAttribute("role","img"),a.setAttribute("aria-label",r("digitizedView")),a.setAttribute("aria-describedby","".concat(o,"-osd"))),this.apiRef.current=i,this.setState({viewer:i}),i.addHandler("animation-start",(function(){e.osdUpdating=!0})),i.addHandler("animation-finish",this.onViewportChange),i.addHandler("animation-finish",(function(){e.osdUpdating=!1})),i.innerTracker&&(i.innerTracker.moveHandler=this.onCanvasMouseMove)}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.viewerConfig,o=n.canvasWorld,i=this.state.viewer;if(this.apiRef.current=i,void 0===t.viewer)return r&&(i.viewport.panTo(r,!0),i.viewport.zoomTo(r.zoom,r,!0),void 0!==r.degrees&&i.viewport.setRotation(r.degrees),void 0!==r.flip&&i.viewport.setFlip(r.flip)),void this.addAllImageSources(!r);if(this.infoResponsesMatch(e.infoResponses)&&this.nonTiledImagedMatch(e.nonTiledImages))if(g()(o.layers,e.canvasWorld.layers)){if(r&&!this.osdUpdating){var a=i.viewport;r.x===a.centerSpringX.target.value&&r.y===a.centerSpringY.target.value||a.panTo(r,!1),r.zoom!==a.zoomSpring.target.value&&a.zoomTo(r.zoom,r,!1),r.rotation!==a.getRotation()&&a.setRotation(r.rotation),r.flip!==a.getFlip()&&a.setFlip(r.flip)}}else this.refreshTileProperties();else{i.close();var s=!g()(o.canvasIds,e.canvasWorld.canvasIds);this.addAllImageSources(s||!r)}}},{key:"componentWillUnmount",value:function(){var e=this.state.viewer;e.innerTracker&&e.innerTracker.moveHandler===this.onCanvasMouseMove&&(e.innerTracker.moveHandler=null),e.removeAllHandlers(),this.apiRef.current=void 0}},{key:"onCanvasMouseMove",value:function(e){this.state.viewer.raiseEvent("mouse-move",e)}},{key:"onViewportChange",value:function(e){var t=this.props,n=t.updateViewport,r=t.windowId,o=e.eventSource.viewport;n(r,{flip:o.getFlip(),rotation:o.getRotation(),x:Math.round(o.centerSpringX.target.value),y:Math.round(o.centerSpringY.target.value),zoom:o.zoomSpring.target.value})}},{key:"addAllImageSources",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.props,r=n.nonTiledImages,o=n.infoResponses;Promise.all(o.map((function(t){return e.addTileSource(t)})),r.map((function(t){return e.addNonTiledImage(t)}))).then((function(){(o[0]||r[0])&&(t&&e.zoomToWorld(),e.refreshTileProperties())}))}},{key:"addNonTiledImage",value:function(e){var t=this.props.canvasWorld,n=this.state.viewer,r=e.getProperty("type"),o=e.getProperty("format")||"";return"Image"===r||"dctypes:Image"===r||o.startsWith("image/")?new Promise((function(r,o){n||o(),n.addSimpleImage({error:function(e){return o(e)},fitBounds:oe(v.a.Rect,ie(t.contentResourceToWorldCoordinates(e))),index:t.layerIndexOfImageResource(e),opacity:t.layerOpacityOfImageResource(e),success:function(e){return r(e)},url:e.id})})):Promise.resolve()}},{key:"addTileSource",value:function(e){var t=this.props.canvasWorld,n=this.state.viewer;return new Promise((function(r,o){n||o();var i=ce({},e.json),a=t.contentResource(e.id);a&&n.addTiledImage({error:function(e){return o(e)},fitBounds:oe(v.a.Rect,ie(t.contentResourceToWorldCoordinates(a))),index:t.layerIndexOfImageResource(a),opacity:t.layerOpacityOfImageResource(a),success:function(e){return r(e)},tileSource:i})}))}},{key:"refreshTileProperties",value:function(){for(var e=this.props.canvasWorld,t=this.state.viewer.world,n=[],r=0;r<t.getItemCount();r+=1)n.push(t.getItemAt(r));n.forEach((function(n,r){var o=e.contentResource(n.source["@id"]||n.source.id);if(o){var i=e.layerIndexOfImageResource(o);r!==i&&t.setItemIndex(n,i),n.setOpacity(e.layerOpacityOfImageResource(o))}}))}},{key:"fitBounds",value:function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=this.state.viewer;i.viewport.fitBounds(new v.a.Rect(e,t,n,r),o)}},{key:"infoResponsesMatch",value:function(e){var t=this.props.infoResponses;return 0===t.length&&0===e.length||t.length===e.length&&t.every((function(t,n){return!!(e[n]&&t.json&&e[n].json&&t.tokenServiceId===e[n].tokenServiceId&&(t.json["@id"]&&t.json["@id"]===e[n].json["@id"]||t.json.id&&t.json.id===e[n].json.id))}))}},{key:"nonTiledImagedMatch",value:function(e){var t=this.props.nonTiledImages;return 0===t.length&&0===e.length||t.some((function(t,n){return!!e[n]&&t.id===e[n].id}))}},{key:"zoomToWorld",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.canvasWorld;this.fitBounds.apply(this,ie(t.worldBounds()).concat([e]))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.classes,o=t.label,i=t.t,a=t.windowId,s=t.drawAnnotations,c=this.state.viewer,l=f.a.Children.map(n,(function(t){return f.a.cloneElement(t,{zoomToWorld:e.zoomToWorld})}));return f.a.createElement(f.a.Fragment,null,f.a.createElement("section",{className:y()(Object(w.a)("osd-container"),r.osdContainer),id:"".concat(a,"-osd"),ref:this.ref,"aria-label":i("item",{label:o}),"aria-live":"polite"},s&&f.a.createElement(te,{viewer:c,windowId:a}),l,f.a.createElement(ne.a,Object.assign({viewer:c},ce(ce({},this.props),{},{children:null})))))}}],o&&ue(r.prototype,o),i&&ue(r,i),s}(u.Component);me.defaultProps={children:null,drawAnnotations:!1,infoResponses:[],label:null,nonTiledImages:[],osdConfig:{},viewerConfig:null};var ve=n(501),be=n(53),ye={updateViewport:ve.d},we=Object(r.compose)(Object(a.a)({osdContainer:{flex:1,position:"relative"}}),Object(i.a)(),Object(o.b)((function(e,t){var n=t.windowId,r=Object(Z.a)(e,{windowId:n}),o=Object(be.q)(e),i=c()(r.canvases.map((function(e){return e.imageServiceIds})));return{canvasWorld:r,drawAnnotations:Object(Y.a)(e).window.forceDrawAnnotations||Object(X.e)(e,{content:"annotations",windowId:n}).length>0||Object(X.e)(e,{content:"search",windowId:n}).length>0,infoResponses:i.map((function(e){return o[e]})).filter((function(e){return void 0!==e&&!1===e.isFetching&&void 0===e.error})),label:Object(be.e)(e,{canvasId:(Object(be.g)(e,{windowId:n})||{}).id,windowId:n}),nonTiledImages:Object(be.m)(e,{windowId:n}),osdConfig:Object(Y.a)(e).osdConfig,viewerConfig:Object(Q.d)(e,{windowId:n})}}),ye),Object(l.a)("OpenSeadragonViewer"));t.default=we(me)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(7),i=n(10),a=n(6),s=n(0),c=n.n(s),l=n(1092),u=n(24),f=n.n(u),d=n(502),p=n(496),h=n(501),g=n(20),m=n(1),v=n(5),b=(n(11),n(4)),y=n(100),w=Object(y.a)(s.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var O=s.forwardRef((function(e,t){var n=e.alt,r=e.children,o=e.classes,i=e.className,a=e.component,c=void 0===a?"div":a,l=e.imgProps,u=e.sizes,f=e.src,d=e.srcSet,p=e.variant,h=void 0===p?"circular":p,g=Object(v.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),y=null,O=function(e){var t=e.src,n=e.srcSet,r=s.useState(!1),o=r[0],i=r[1];return s.useEffect((function(){if(t||n){i(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&i("loaded")},r.onerror=function(){e&&i("error")},function(){e=!1}}}),[t,n]),o}({src:f,srcSet:d}),E=f||d,x=E&&"error"!==O;return y=x?s.createElement("img",Object(m.a)({alt:n,src:f,srcSet:d,sizes:u,className:o.img},l)):null!=r?r:E&&n?n[0]:s.createElement(w,{className:o.fallback}),s.createElement(c,Object(m.a)({className:Object(b.a)(o.root,o.system,o[h],i,!x&&o.colorDefault),ref:t},g),y)})),E=Object(i.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(O),x=n(1121),S=n(298),j=n.n(S),T=n(183),_=n.n(T),C=n(19),I=n.n(C),P=(n(514),n(301)),k=n(46),R=n(113);function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(i,e);var t,n,r,o=M(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={requestedAnnotations:!1},t.handleSelect=t.handleSelect.bind(L(t)),t.handleKey=t.handleKey.bind(L(t)),t.handleIntersection=t.handleIntersection.bind(L(t)),t}return t=i,(n=[{key:"handleSelect",value:function(){var e=this.props,t=e.canvas,n=e.selected,r=e.setCanvas,o=e.focusOnCanvas;n?o():r(t.id)}},{key:"handleKey",value:function(e){var t=this.props,n=t.canvas,r=t.setCanvas,o=t.focusOnCanvas;this.keys={enter:"Enter",space:" "},this.chars={enter:13,space:32},e.key===this.keys.enter||e.which===this.chars.enter||e.key===this.keys.space||e.which===this.chars.space?o():r(n.id)}},{key:"handleIntersection",value:function(e){var t=e.isIntersecting,n=this.props,r=n.annotationsCount,o=n.requestCanvasAnnotations,i=this.state.requestedAnnotations;!t||void 0===r||r>0||i||(this.setState({requestedAnnotations:!0}),o())}},{key:"render",value:function(){var e=this.props,t=e.annotationsCount,n=e.searchAnnotationsCount,r=e.canvas,o=e.classes,i=e.config,a=e.selected,s=new k.a(r);return c.a.createElement(P.a,{onChange:this.handleIntersection},c.a.createElement("div",{key:r.index,className:I()(o.galleryViewItem,a?o.selected:"",n>0?o.hasAnnotations:""),onClick:this.handleSelect,onKeyUp:this.handleKey,role:"button",tabIndex:0},c.a.createElement(R.a,{resource:r,labelled:!0,variant:"outside",maxWidth:i.width,maxHeight:i.height,style:{margin:"0 auto",maxWidth:"".concat(Math.ceil(i.height*s.aspectRatio),"px")}},c.a.createElement("div",{className:o.chips},n>0&&c.a.createElement(x.a,{avatar:c.a.createElement(E,{className:o.avatar,classes:{circle:o.avatarIcon}},c.a.createElement(_.a,{fontSize:"small"})),label:n,className:I()(o.searchChip),size:"small"}),(t||0)>0&&c.a.createElement(x.a,{avatar:c.a.createElement(E,{className:o.avatar,classes:{circle:o.avatarIcon}},c.a.createElement(j.a,{className:o.annotationIcon})),label:t,className:I()(o.annotationsChip),size:"small"})))))}}])&&A(t.prototype,n),r&&A(t,r),i}(s.Component);W.defaultProps={annotationsCount:void 0,config:{height:100,width:null},requestCanvasAnnotations:function(){},searchAnnotationsCount:0,selected:!1};var B=n(53),F=n(503),H=n(157),U=n(529),V=n(97);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=Object(r.compose)(Object(o.b)((function(e,t){var n=t.canvas,r=t.windowId,o=Object(B.g)(e,{windowId:r}),i=Object(F.f)(e,{windowId:r}),a=f()(i.map((function(e){return e.resources}))).filter((function(e){return e.targetId===n.id})),s=Object(H.e)(e,{content:"annotations",windowId:r}).length>0;return{annotationsCount:function(){if(s)return Object(U.d)(e,{canvasId:n.id}).reduce((function(e,t){return e+t.resources.filter((function(e){return e.targetId===n.id})).length}),0)}(),config:Object(V.a)(e).galleryView,searchAnnotationsCount:a.length,selected:o&&o.id===n.id}}),(function(e,t){var n=t.canvas,r=(t.id,t.windowId);return{focusOnCanvas:function(){return e(d.i(r,"single"))},requestCanvasAnnotations:function(){return e(p.f(r,n.id))},setCanvas:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(h.a.apply(g,[r].concat(n)))}}})),Object(i.a)((function(e){return{annotationIcon:{height:"1rem",width:"1rem"},annotationsChip:q({},e.typography.caption),avatar:{backgroundColor:"transparent"},chips:{opacity:.875,position:"absolute",right:0,textAlign:"right",top:0},galleryViewItem:{"&$hasAnnotations":{border:"2px solid ".concat(e.palette.action.selected)},"&$selected,&$selected$hasAnnotations":{border:"2px solid ".concat(e.palette.primary.main)},"&:focus":{outline:"none"},"&:hover":{backgroundColor:e.palette.action.hover},border:"2px solid transparent",cursor:"pointer",display:"inline-block",margin:"".concat(e.spacing(1),"px ").concat(e.spacing(.5),"px"),maxHeight:function(e){return e.config.height+45},minWidth:"60px",overflow:"hidden",padding:e.spacing(.5),position:"relative",width:"min-content"},hasAnnotations:{},searchChip:q(q({},e.typography.caption),{},{"&$selected $avatar":{backgroundColor:e.palette.highlights.primary},marginTop:2}),selected:{}}}))),Z=K(W);function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t){return Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Q(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(i,e);var t,n,r,o=J(i);function i(){return Y(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.canvases,n=e.classes,r=e.viewingDirection,o=e.windowId,i="right-to-left"===r?"rtl":"ltr";return c.a.createElement(l.a,{component:"section",dir:i,square:!0,elevation:0,className:n.galleryContainer,id:"".concat(o,"-gallery")},t.map((function(e){return c.a.createElement(Z,{key:e.id,windowId:o,canvas:e})})))}}])&&X(t.prototype,n),r&&X(t,r),i}(s.Component);ne.defaultProps={classes:{},viewingDirection:""};var re=n(66),oe=Object(r.compose)(Object(i.a)((function(e){return{galleryContainer:{alignItems:"flex-start",display:"flex",flexDirection:"row",flexWrap:"wrap",overflowX:"hidden",overflowY:"scroll",padding:"50px 0 50px 20px",width:"100%"}}})),Object(o.b)((function(e,t){var n=t.windowId;return{canvases:Object(B.f)(e,{windowId:n}),viewingDirection:Object(re.e)(e,{windowId:n})}})),Object(a.a)("GalleryView"));t.default=oe(ne)},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(0),a=n(32),s=(n(11),n(603)),c=n(1091),l=n(48),u=n(1051),f=n(102),d=n(28),p=n(43),h=n(280);var g=n(184),m=n(112),v=n(286),b=n(182);function y(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(m.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&y(e,o)}))}function E(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function x(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(b.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=Object(v.a)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(w(i)+a,"px"),n=Object(l.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(w(e)+a,"px")}))}var s=i.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(g.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&y(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);O(t,e.mountNode,e.modalRef,r,!0);var o=E(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=x(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&y(e.modalRef,!0),O(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&y(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var j=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,s=void 0!==o&&o,c=e.disableRestoreFocus,u=void 0!==c&&c,f=e.getDoc,p=e.isEnabled,h=e.open,g=i.useRef(),m=i.useRef(null),v=i.useRef(null),b=i.useRef(),y=i.useRef(null),w=i.useCallback((function(e){y.current=a.findDOMNode(e)}),[]),O=Object(d.a)(t.ref,w),E=i.useRef();return i.useEffect((function(){E.current=h}),[h]),!E.current&&h&&"undefined"!=typeof window&&(b.current=f().activeElement),i.useEffect((function(){if(h){var e=Object(l.a)(y.current);r||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){null!==y.current&&(e.hasFocus()&&!s&&p()&&!g.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():g.current=!1)},n=function(t){!s&&p()&&9===t.keyCode&&e.activeElement===y.current&&(g.current=!0,t.shiftKey?v.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(b.current&&b.current.focus&&b.current.focus(),b.current=null)}}}),[r,s,u,p,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:O}),i.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},T={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},_=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,c=Object(r.a)(e,["invisible","open"]);return s?i.createElement("div",Object(o.a)({"aria-hidden":!0,ref:t},c,{style:Object(o.a)({},T.root,a?T.invisible:{},c.style)})):null}));var C=new S,I=i.forwardRef((function(e,t){var n=Object(s.a)(),g=Object(c.a)({name:"MuiModal",props:Object(o.a)({},e),theme:n}),m=g.BackdropComponent,v=void 0===m?_:m,b=g.BackdropProps,w=g.children,O=g.closeAfterTransition,E=void 0!==O&&O,x=g.container,S=g.disableAutoFocus,T=void 0!==S&&S,I=g.disableBackdropClick,P=void 0!==I&&I,k=g.disableEnforceFocus,R=void 0!==k&&k,A=g.disableEscapeKeyDown,D=void 0!==A&&A,M=g.disablePortal,N=void 0!==M&&M,L=g.disableRestoreFocus,z=void 0!==L&&L,W=g.disableScrollLock,B=void 0!==W&&W,F=g.hideBackdrop,H=void 0!==F&&F,U=g.keepMounted,V=void 0!==U&&U,G=g.manager,q=void 0===G?C:G,$=g.onBackdropClick,K=g.onClose,Z=g.onEscapeKeyDown,Y=g.onRendered,X=g.open,Q=Object(r.a)(g,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=i.useState(!0),ee=J[0],te=J[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=Object(d.a)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(g),se=function(){return Object(l.a)(re.current)},ce=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},le=function(){q.mount(ce(),{disableScrollLock:B}),oe.current.scrollTop=0},ue=Object(p.a)((function(){var e=function(e){return e="function"==typeof e?e():e,a.findDOMNode(e)}(x)||se().body;q.add(ce(),e),oe.current&&le()})),fe=i.useCallback((function(){return q.isTopModal(ce())}),[q]),de=Object(p.a)((function(e){re.current=e,e&&(Y&&Y(),X&&fe()?le():y(oe.current,!0))})),pe=i.useCallback((function(){q.remove(ce())}),[q]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){X?ue():ae&&E||pe()}),[X,pe,ae,E,ue]),!V&&!X&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.a}),ge={};return void 0===w.props.tabIndex&&(ge.tabIndex=w.props.tabIndex||"-1"),ae&&(ge.onEnter=Object(f.a)((function(){te(!1)}),w.props.onEnter),ge.onExited=Object(f.a)((function(){te(!0),E&&pe()}),w.props.onExited)),i.createElement(u.a,{ref:de,container:x,disablePortal:N},i.createElement("div",Object(o.a)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Z&&Z(e),D||(e.stopPropagation(),K&&K(e,"escapeKeyDown")))},role:"presentation"},Q,{style:Object(o.a)({},he.root,!X&&ee?he.hidden:{},Q.style)}),H?null:i.createElement(v,Object(o.a)({open:X,onClick:function(e){e.target===e.currentTarget&&($&&$(e),!P&&K&&K(e,"backdropClick"))}},b)),i.createElement(j,{disableEnforceFocus:R,disableAutoFocus:T,disableRestoreFocus:z,getDoc:se,isEnabled:fe,open:X},i.cloneElement(w,ge))))}));t.a=I},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(1089)),s=n(49),c=n(109),l=n(277),u=(n(96),n(4)),f=n(48),d=n(18),p=n(602),h=n(161),g=n(28),m=n(136);function v(e,t){return"object"===Object(c.a)(t)&&null!==t?e===t:String(e)===String(t)}var b=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,c=e.autoWidth,b=e.children,y=e.classes,w=e.className,O=e.defaultValue,E=e.disabled,x=e.displayEmpty,S=e.IconComponent,j=e.inputRef,T=e.labelId,_=e.MenuProps,C=void 0===_?{}:_,I=e.multiple,P=e.name,k=e.onBlur,R=e.onChange,A=e.onClose,D=e.onFocus,M=e.onOpen,N=e.open,L=e.readOnly,z=e.renderValue,W=e.SelectDisplayProps,B=void 0===W?{}:W,F=e.tabIndex,H=(e.type,e.value),U=e.variant,V=void 0===U?"standard":U,G=Object(o.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),q=Object(m.a)({controlled:H,default:O,name:"Select"}),$=Object(s.a)(q,2),K=$[0],Z=$[1],Y=i.useRef(null),X=i.useState(null),Q=X[0],J=X[1],ee=i.useRef(null!=N).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],se=Object(g.a)(t,j);i.useImperativeHandle(se,(function(){return{focus:function(){Q.focus()},node:Y.current,value:K}}),[Q,K]),i.useEffect((function(){a&&Q&&Q.focus()}),[a,Q]),i.useEffect((function(){if(Q){var e=Object(f.a)(Q).getElementById(T);if(e){var t=function(){getSelection().isCollapsed&&Q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[T,Q]);var ce,le,ue=function(e,t){e?M&&M(t):A&&A(t),ee||(re(c?null:Q.clientWidth),ae(e))},fe=i.Children.toArray(b),de=function(e){return function(t){var n;if(I||ue(!1,t),I){n=Array.isArray(K)?K.slice():[];var r=K.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),K!==n&&(Z(n),R&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:P}}),R(t,e)))}},pe=null!==Q&&(ee?N:ie);delete G["aria-invalid"];var he=[],ge=!1;(Object(h.b)({value:K})||x)&&(z?ce=z(K):ge=!0);var me=fe.map((function(e){if(!i.isValidElement(e))return null;var t;if(I){if(!Array.isArray(K))throw new Error(Object(l.a)(2));(t=K.some((function(t){return v(t,e.props.value)})))&&ge&&he.push(e.props.children)}else(t=v(K,e.props.value))&&ge&&(le=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:de(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ge&&(ce=I?he.join(", "):le);var ve,be=ne;!c&&ee&&Q&&(be=Q.clientWidth),ve=void 0!==F?F:E?null:0;var ye=B.id||(P?"mui-component-select-".concat(P):void 0);return i.createElement(i.Fragment,null,i.createElement("div",Object(r.a)({className:Object(u.a)(y.root,y.select,y.selectMenu,y[V],w,E&&y.disabled),ref:J,tabIndex:ve,role:"button","aria-disabled":E?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[T,ye].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ue(!0,e))}},onMouseDown:E||L?null:function(e){0===e.button&&(e.preventDefault(),Q.focus(),ue(!0,e))},onBlur:function(e){!pe&&k&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:K,name:P}}),k(e))},onFocus:D},B,{id:ye}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ce)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ce),i.createElement("input",Object(r.a)({value:Array.isArray(K)?K.join(","):K,name:P,ref:Y,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];Z(n.props.value),R&&R(e,n)}},tabIndex:-1,className:y.nativeInput,autoFocus:a},G)),i.createElement(S,{className:Object(u.a)(y.icon,y["icon".concat(Object(d.a)(V))],pe&&y.iconOpen,E&&y.disabled)}),i.createElement(p.a,Object(r.a)({id:"menu-".concat(P||""),anchorEl:Q,open:pe,onClose:function(e){ue(!1,e)}},C,{MenuListProps:Object(r.a)({"aria-labelledby":T,role:"listbox",disableListWrap:!0},C.MenuListProps),PaperProps:Object(r.a)({},C.PaperProps,{style:Object(r.a)({minWidth:be},null!=C.PaperProps?C.PaperProps.style:null)})}),me))})),y=n(86),w=n(111),O=n(10),E=n(100),x=Object(E.a)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),S=n(1104),j=i.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,c=e.IconComponent,l=e.inputRef,f=e.variant,p=void 0===f?"standard":f,h=Object(o.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",Object(r.a)({className:Object(u.a)(n.root,n.select,n[p],a,s&&n.disabled),disabled:s,ref:l||t},h)),e.multiple?null:i.createElement(c,{className:Object(u.a)(n.icon,n["icon".concat(Object(d.a)(p))],s&&n.disabled)}))})),T=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},_=i.createElement(S.a,null),C=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,c=void 0===s?x:s,l=e.input,u=void 0===l?_:l,f=e.inputProps,d=(e.variant,Object(o.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=Object(w.a)(),h=Object(y.a)({props:e,muiFormControl:p,states:["variant"]});return i.cloneElement(u,Object(r.a)({inputComponent:j,inputProps:Object(r.a)({children:n,classes:a,IconComponent:c,variant:h.variant,type:void 0},f,u?u.props.inputProps:{}),ref:t},d))}));C.muiName="Select";Object(O.a)(T,{name:"MuiNativeSelect"})(C);var I=n(1105),P=n(1120),k=T,R=i.createElement(S.a,null),A=i.createElement(I.a,null),D=i.forwardRef((function e(t,n){var s=t.autoWidth,c=void 0!==s&&s,l=t.children,u=t.classes,f=t.displayEmpty,d=void 0!==f&&f,p=t.IconComponent,h=void 0===p?x:p,g=t.id,m=t.input,v=t.inputProps,O=t.label,E=t.labelId,S=t.labelWidth,T=void 0===S?0:S,_=t.MenuProps,C=t.multiple,I=void 0!==C&&C,k=t.native,D=void 0!==k&&k,M=t.onClose,N=t.onOpen,L=t.open,z=t.renderValue,W=t.SelectDisplayProps,B=t.variant,F=void 0===B?"standard":B,H=Object(o.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),U=D?j:b,V=Object(w.a)(),G=Object(y.a)({props:t,muiFormControl:V,states:["variant"]}).variant||F,q=m||{standard:R,outlined:i.createElement(P.a,{label:O,labelWidth:T}),filled:A}[G];return i.cloneElement(q,Object(r.a)({inputComponent:U,inputProps:Object(r.a)({children:l,IconComponent:h,variant:G,type:void 0,multiple:I},D?{id:g}:{autoWidth:c,displayEmpty:d,labelId:E,MenuProps:_,onClose:M,onOpen:N,open:L,renderValue:z,SelectDisplayProps:Object(r.a)({id:g},W)},v,{classes:v?Object(a.a)({baseClasses:u,newClasses:v.classes,Component:e}):u},m?m.props.inputProps:{}),ref:n},H))}));D.muiName="Select";t.a=Object(O.a)(k,{name:"MuiSelect"})(D)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(1104),c=n(1105),l=n(1120),u=n(86),f=n(111),d=n(10),p=n(18),h=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=(e.color,e.component),d=void 0===l?"label":l,h=(e.disabled,e.error,e.filled,e.focused,e.required,Object(o.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),g=Object(f.a)(),m=Object(u.a)({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return i.createElement(d,Object(r.a)({className:Object(a.a)(s.root,s["color".concat(Object(p.a)(m.color||"primary"))],c,m.disabled&&s.disabled,m.error&&s.error,m.filled&&s.filled,m.focused&&s.focused,m.required&&s.required),ref:t},h),n,m.required&&i.createElement("span",{"aria-hidden":!0,className:Object(a.a)(s.asterisk,m.error&&s.error)}," ","*"))})),g=Object(d.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(h),m=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.disableAnimation,l=void 0!==c&&c,d=(e.margin,e.shrink),p=(e.variant,Object(o.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),h=Object(f.a)(),m=d;void 0===m&&h&&(m=h.filled||h.focused||h.adornedStart);var v=Object(u.a)({props:e,muiFormControl:h,states:["margin","variant"]});return i.createElement(g,Object(r.a)({"data-shrink":m,className:Object(a.a)(n.root,s,h&&n.formControl,!l&&n.animated,m&&n.shrink,"dense"===v.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[v.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))})),v=Object(d.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(m),b=n(1103),y=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.component,d=void 0===l?"p":l,p=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(o.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=Object(f.a)(),g=Object(u.a)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(d,Object(r.a)({className:Object(a.a)(s.root,("filled"===g.variant||"outlined"===g.variant)&&s.contained,c,g.disabled&&s.disabled,g.error&&s.error,g.filled&&s.filled,g.focused&&s.focused,g.required&&s.required,"dense"===g.margin&&s.marginDense),ref:t},p)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),w=Object(d.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(y),O=n(1117),E={standard:s.a,filled:c.a,outlined:l.a},x=i.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,c=void 0!==s&&s,l=e.children,u=e.classes,f=e.className,d=e.color,p=void 0===d?"primary":d,h=e.defaultValue,g=e.disabled,m=void 0!==g&&g,y=e.error,x=void 0!==y&&y,S=e.FormHelperTextProps,j=e.fullWidth,T=void 0!==j&&j,_=e.helperText,C=e.hiddenLabel,I=e.id,P=e.InputLabelProps,k=e.inputProps,R=e.InputProps,A=e.inputRef,D=e.label,M=e.multiline,N=void 0!==M&&M,L=e.name,z=e.onBlur,W=e.onChange,B=e.onFocus,F=e.placeholder,H=e.required,U=void 0!==H&&H,V=e.rows,G=e.rowsMax,q=e.maxRows,$=e.minRows,K=e.select,Z=void 0!==K&&K,Y=e.SelectProps,X=e.type,Q=e.value,J=e.variant,ee=void 0===J?"standard":J,te=Object(o.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var ne={};if("outlined"===ee&&(P&&void 0!==P.shrink&&(ne.notched=P.shrink),D)){var re,oe=null!==(re=null==P?void 0:P.required)&&void 0!==re?re:U;ne.label=i.createElement(i.Fragment,null,D,oe&&" *")}Z&&(Y&&Y.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ie=_&&I?"".concat(I,"-helper-text"):void 0,ae=D&&I?"".concat(I,"-label"):void 0,se=E[ee],ce=i.createElement(se,Object(r.a)({"aria-describedby":ie,autoComplete:n,autoFocus:c,defaultValue:h,fullWidth:T,multiline:N,name:L,rows:V,rowsMax:G,maxRows:q,minRows:$,type:X,value:Q,id:I,inputRef:A,onBlur:z,onChange:W,onFocus:B,placeholder:F,inputProps:k},ne,R));return i.createElement(b.a,Object(r.a)({className:Object(a.a)(u.root,f),disabled:m,error:x,fullWidth:T,hiddenLabel:C,ref:t,required:U,color:p,variant:ee},te),D&&i.createElement(v,Object(r.a)({htmlFor:I,id:ae},P),D),Z?i.createElement(O.a,Object(r.a)({"aria-describedby":ie,id:I,labelId:ae,value:Q,input:ce},Y),l):ce,_&&i.createElement(w,Object(r.a)({id:ie},S),_))}));t.a=Object(d.a)({root:{}},{name:"MuiTextField"})(x)},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(178),o=n.n(r),i=n(272),a=n.n(i),s=n(533),c=n.n(s),l=n(0),u=n.n(l),f=n(162);function d(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var p={};function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&p[t[0]]||("string"==typeof t[0]&&(p[t[0]]=new Date),d.apply(void 0,t))}function g(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return h("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))))}function v(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(l.useContext)(f.a)||{},o=r.i18n,i=r.defaultNS,s=n||o||Object(f.d)();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new f.b),!s){h("You will need to pass in an i18next instance by using initReactI18next");var c=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[c,{},!1];return u.t=c,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&h("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=y(y(y({},Object(f.c)()),s.options.react),t),p=d.useSuspense,v=d.keyPrefix,b=e||i||s.options&&s.options.defaultNS;b="string"==typeof b?[b]:b||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(b);var w=(s.isInitialized||s.initializedStoreOnce)&&b.every((function(e){return m(e,s,d)}));function O(){return s.getFixedT(null,"fallback"===d.nsMode?b:b[0],v)}var E=Object(l.useState)(O),x=a()(E,2),S=x[0],j=x[1],T=Object(l.useRef)(!0);Object(l.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){T.current&&j(O)}return T.current=!0,w||p||g(s,b,(function(){T.current&&j(O)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){T.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,b.join()]);var _=Object(l.useRef)(!0);Object(l.useEffect)((function(){T.current&&!_.current&&j(O),_.current=!1}),[s]);var C=[S,s,w];if(C.t=S,C.i18n=s,C.ready=w,w)return C;if(!w&&!p)return C;throw new Promise((function(e){g(s,b,(function(){e()}))}))}var O=["forwardedRef"];function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var o=r.forwardedRef,i=c()(r,O),s=w(e,i),l=a()(s,3),f=l[0],d=l[1],p=l[2],h=x(x({},i),{},{t:f,i18n:d,tReady:p});return t.withRef&&o?h.ref=o:!t.withRef&&o&&(h.forwardedRef=o),u.a.createElement(n,h)}r.displayName="withI18nextTranslation(".concat(v(n),")"),r.WrappedComponent=n;var o=function(e,t){return u.a.createElement(r,Object.assign({},e,{forwardedRef:t}))};return t.withRef?u.a.forwardRef(o):r}}},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(605),c=n(26),l=n(10),u=n(52),f=n(18),d=i.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,l=e.label,d=e.labelWidth,p=e.notched,h=e.style,g=Object(o.a)(e,["children","classes","className","label","labelWidth","notched","style"]),m="rtl"===Object(u.a)().direction?"right":"left";if(void 0!==l)return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,s),ref:t,style:h},g),i.createElement("legend",{className:Object(a.a)(n.legendLabelled,p&&n.legendNotched)},l?i.createElement("span",null,l):i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var v=d>0?.75*d+8:.01;return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(c.a)({},"padding".concat(Object(f.a)(m)),8),h),className:Object(a.a)(n.root,s),ref:t},g),i.createElement("legend",{className:n.legend,style:{width:p?v:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),p=Object(l.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(d),h=i.forwardRef((function(e,t){var n=e.classes,c=e.fullWidth,l=void 0!==c&&c,u=e.inputComponent,f=void 0===u?"input":u,d=e.label,h=e.labelWidth,g=void 0===h?0:h,m=e.multiline,v=void 0!==m&&m,b=e.notched,y=e.type,w=void 0===y?"text":y,O=Object(o.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(s.a,Object(r.a)({renderSuffix:function(e){return i.createElement(p,{className:n.notchedOutline,label:d,labelWidth:g,notched:void 0!==b?b:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:f,multiline:v,ref:t,type:w},O))}));h.muiName="Input";t.a=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)},function(e,t,n){"use strict";var r=n(1),o=n(5),i=n(0),a=(n(11),n(4)),s=n(100),c=Object(s.a)(i.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),l=n(10),u=n(30),f=n(28),d=n(18),p=n(308);function h(e){return"Backspace"===e.key||"Delete"===e.key}var g=i.forwardRef((function(e,t){var n=e.avatar,s=e.classes,l=e.className,u=e.clickable,g=e.color,m=void 0===g?"default":g,v=e.component,b=e.deleteIcon,y=e.disabled,w=void 0!==y&&y,O=e.icon,E=e.label,x=e.onClick,S=e.onDelete,j=e.onKeyDown,T=e.onKeyUp,_=e.size,C=void 0===_?"medium":_,I=e.variant,P=void 0===I?"default":I,k=Object(o.a)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),R=i.useRef(null),A=Object(f.a)(R,t),D=function(e){e.stopPropagation(),S&&S(e)},M=!(!1===u||!x)||u,N="small"===C,L=v||(M?p.a:"div"),z=L===p.a?{component:"div"}:{},W=null;if(S){var B=Object(a.a)("default"!==m&&("default"===P?s["deleteIconColor".concat(Object(d.a)(m))]:s["deleteIconOutlinedColor".concat(Object(d.a)(m))]),N&&s.deleteIconSmall);W=b&&i.isValidElement(b)?i.cloneElement(b,{className:Object(a.a)(b.props.className,s.deleteIcon,B),onClick:D}):i.createElement(c,{className:Object(a.a)(s.deleteIcon,B),onClick:D})}var F=null;n&&i.isValidElement(n)&&(F=i.cloneElement(n,{className:Object(a.a)(s.avatar,n.props.className,N&&s.avatarSmall,"default"!==m&&s["avatarColor".concat(Object(d.a)(m))])}));var H=null;return O&&i.isValidElement(O)&&(H=i.cloneElement(O,{className:Object(a.a)(s.icon,O.props.className,N&&s.iconSmall,"default"!==m&&s["iconColor".concat(Object(d.a)(m))])})),i.createElement(L,Object(r.a)({role:M||S?"button":void 0,className:Object(a.a)(s.root,l,"default"!==m&&[s["color".concat(Object(d.a)(m))],M&&s["clickableColor".concat(Object(d.a)(m))],S&&s["deletableColor".concat(Object(d.a)(m))]],"default"!==P&&[s.outlined,{primary:s.outlinedPrimary,secondary:s.outlinedSecondary}[m]],w&&s.disabled,N&&s.sizeSmall,M&&s.clickable,S&&s.deletable),"aria-disabled":!!w||void 0,tabIndex:M||S?0:void 0,onClick:x,onKeyDown:function(e){e.currentTarget===e.target&&h(e)&&e.preventDefault(),j&&j(e)},onKeyUp:function(e){e.currentTarget===e.target&&(S&&h(e)?S(e):"Escape"===e.key&&R.current&&R.current.blur()),T&&T(e)},ref:A},z,k),F||H,i.createElement("span",{className:Object(a.a)(s.label,N&&s.labelSmall)},E),W)}));t.a=Object(l.a)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Object(u.a)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Object(u.c)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(u.c)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(u.c)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(u.c)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(u.c)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(u.c)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.a)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(u.a)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(u.a)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(u.a)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(u.a)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(u.a)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(g)},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(3),i=n(1119),a=n(10),s=n(6),c=n(0),l=n.n(c);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=p(i);function i(){return u(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.captions,n=e.classes,r=e.audioOptions,o=e.audioResources;return l.a.createElement("div",{className:n.container},l.a.createElement("audio",Object.assign({className:n.audio},r),o.map((function(e){return l.a.createElement(c.Fragment,{key:e.id},l.a.createElement("source",{src:e.id,type:e.getFormat()}))})),t.map((function(e){return l.a.createElement(c.Fragment,{key:e.id},l.a.createElement("track",{src:e.id,label:e.getDefaultLabel(),srcLang:e.getProperty("language")}))}))))}}])&&f(t.prototype,n),r&&f(t,r),i}(c.Component);m.defaultProps={audioOptions:{},audioResources:[],captions:[]};var v=n(97),b=n(53),y=Object(o.compose)(Object(i.a)(),Object(a.a)((function(){return{audio:{width:"100%"},container:{alignItems:"center",display:"flex",width:"100%"}}})),Object(r.b)((function(e,t){var n=t.windowId;return{audioOptions:Object(v.a)(e).audioOptions,audioResources:Object(b.j)(e,{windowId:n})||[],captions:Object(b.k)(e,{windowId:n})||[]}}),null),Object(s.a)("AudioViewer"));t.default=y(m)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(7),i=n(1119),a=n(10),s=n(502),c=n(6),l=n(36),u=n(0),f=n.n(u),d=n(1107),p=n(1110),h=n(165),g=n(598),m=n.n(g);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(i,e);var t,n,r,o=y(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).openCollectionDialog=t.openCollectionDialog.bind(O(t)),t}return t=i,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,n=e.manifestId,r=e.showCollectionDialog,o=e.windowId;r(n,t.slice(0,-1),o)}},{key:"render",value:function(){var e=this.props.t;return f.a.createElement(p.a,{container:!0,justify:"center",alignItems:"center"},f.a.createElement(p.a,{container:!0,direction:"column",alignItems:"center"},f.a.createElement(h.a,{variant:"h4",paragraph:!0},f.a.createElement("em",null,e("noItemSelected"))),f.a.createElement(d.a,{color:"primary",variant:"contained",onClick:this.openCollectionDialog,startIcon:f.a.createElement(m.a,null)},e("showCollection"))))}}])&&v(t.prototype,n),r&&v(t,r),i}(u.Component);x.defaultProps={collectionPath:[],manifestId:null,t:function(){},windowId:null};var S={showCollectionDialog:s.j},j=Object(r.compose)(Object(i.a)(),Object(a.a)((function(e){return{}})),Object(o.b)((function(e,t){var n=t.windowId,r=Object(l.e)(e,{windowId:n})||{};return{collectionPath:r.collectionPath,manifestId:r.manifestId}}),S),Object(c.a)("SelectCollection"));t.default=j(x)},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(3),i=n(1119),a=n(10),s=n(6),c=n(0),l=n.n(c);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=p(i);function i(){return u(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.captions,n=e.classes,r=e.videoOptions,o=e.videoResources;return l.a.createElement("div",{className:n.container},l.a.createElement("video",Object.assign({className:n.video},r),o.map((function(e){return l.a.createElement(c.Fragment,{key:e.id},l.a.createElement("source",{src:e.id,type:e.getFormat()}))})),t.map((function(e){return l.a.createElement(c.Fragment,{key:e.id},l.a.createElement("track",{src:e.id,label:e.getDefaultLabel(),srcLang:e.getProperty("language")}))}))))}}])&&f(t.prototype,n),r&&f(t,r),i}(c.Component);m.defaultProps={captions:[],videoOptions:{},videoResources:[]};var v=n(53),b=n(97),y=Object(o.compose)(Object(i.a)(),Object(a.a)((function(){return{container:{alignItems:"center",display:"flex",width:"100%"},video:{maxHeight:"100%",width:"100%"}}})),Object(r.b)((function(e,t){var n=t.windowId;return{captions:Object(v.k)(e,{windowId:n})||[],videoOptions:Object(b.a)(e).videoOptions,videoResources:Object(v.n)(e,{windowId:n})||[]}}),null),Object(s.a)("VideoViewer"));t.default=y(m)}]).default}));
//# sourceMappingURL=mirador.min.js.map