PageSourceSearch

https://digitale-sammlungen.de/static/assets/vendor-BZ3JJXLh.js

js digitale-sammlungen.de collected 2026-09-24 08:41:46 UTC 3,094,265 bytes, 162 lines download raw bytes

1const scriptRel="modulepreload",assetsURL=function(l){return"/static/"+l},seen={},__vitePreload=function(o,u,d){let f=Promise.resolve();if(u&&u.length>0){let g=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=h?.nonce||h?.getAttribute("nonce");f=g(u.map(m=>{if(m=assetsURL(m),m in seen)return;seen[m]=!0;const y=m.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":scriptRel,y||(w.as="script"),w.crossOrigin="",w.href=m,v&&w.setAttribute("nonce",v),document.head.appendChild(w),y)return new Promise((E,P)=>{w.addEventListener("load",E),w.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${m}`)))})}))}function p(h){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=h,window.dispatchEvent(v),!v.defaultPrevented)throw h}return f.then(h=>{for(const v of h||[])v.status==="rejected"&&p(v.reason);return o().catch(p)})};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function getAugmentedNamespace(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var o=l.default;if(typeof o=="function"){var u=function d(){var f=!1;try{f=this instanceof d}catch{}return f?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};u.prototype=o.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(l).forEach(function(d){var f=Object.getOwnPropertyDescriptor(l,d);Object.defineProperty(u,d,f.get?f:{enumerable:!0,get:function(){return l[d]}})}),u}var react={exports:{}},react_production_min={};var objectAssign$1,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign$1;hasRequiredObjectAssign=1;var l=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;function d(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function f(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var h={},v=0;v<10;v++)h["_"+String.fromCharCode(v)]=v;var g=Object.getOwnPropertyNames(h).map(function(y){return h[y]});if(g.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign$1=f()?Object.assign:function(p,h){for(var v,g=d(p),m,y=1;y<arguments.length;y++){v=Object(arguments[y]);for(var b in v)o.call(v,b)&&(g[b]=v[b]);if(l){m=l(v);for(var w=0;w<m.length;w++)u.call(v,m[w])&&(g[m[w]]=v[m[w]])}}return g},objectAssign$1}var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var l=requireObjectAssign(),o=typeof Symbol=="function"&&Symbol.for,u=o?Symbol.for("react.element"):60103,d=o?Symbol.for("react.portal"):60106,f=o?Symbol.for("react.fragment"):60107,p=o?Symbol.for("react.strict_mode"):60108,h=o?Symbol.for("react.profiler"):60114,v=o?Symbol.for("react.provider"):60109,g=o?Symbol.for("react.context"):60110,m=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,b=o?Symbol.for("react.memo"):60115,w=o?Symbol.for("react.lazy"):60116,E=typeof Symbol=="function"&&Symbol.iterator;function P(ee){for(var se="https://reactjs.org/docs/error-decoder.html?invariant="+ee,$e=1;$e<arguments.length;$e++)se+="&args[]="+encodeURIComponent(arguments[$e]);return"Minified React error #"+ee+"; visit "+se+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T={};function O(ee,se,$e){this.props=ee,this.context=se,this.refs=T,this.updater=$e||C}O.prototype.isReactComponent={},O.prototype.setState=function(ee,se){if(typeof ee!="object"&&typeof ee!="function"&&ee!=null)throw Error(P(85));this.updater.enqueueSetState(this,ee,se,"setState")},O.prototype.forceUpdate=function(ee){this.updater.enqueueForceUpdate(this,ee,"forceUpdate")};function x(){}x.prototype=O.prototype;function A(ee,se,$e){this.props=ee,this.context=se,this.refs=T,this.updater=$e||C}var D=A.prototype=new x;D.constructor=A,l(D,O.prototype),D.isPureReactComponent=!0;var j={current:null},M=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function q(ee,se,$e){var Ee,xe={},Se=null,Ie=null;if(se!=null)for(Ee in se.ref!==void 0&&(Ie=se.ref),se.key!==void 0&&(Se=""+se.key),se)M.call(se,Ee)&&!N.hasOwnProperty(Ee)&&(xe[Ee]=se[Ee]);var ge=arguments.length-2;if(ge===1)xe.children=$e;else if(1<ge){for(var Y=Array(ge),ie=0;ie<ge;ie++)Y[ie]=arguments[ie+2];xe.children=Y}if(ee&&ee.defaultProps)for(Ee in ge=ee.defaultProps,ge)xe[Ee]===void 0&&(xe[Ee]=ge[Ee]);return{$$typeof:u,type:ee,key:Se,ref:Ie,props:xe,_owner:j.current}}function z(ee,se){return{$$typeof:u,type:ee.type,key:se,ref:ee.ref,props:ee.props,_owner:ee._owner}}function H(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===u}function U(ee){var se={"=":"=0",":":"=2"};return"$"+(""+ee).replace(/[=:]/g,function($e){return se[$e]})}var F=/\/+/g,B=[];function G(ee,se,$e,Ee){if(B.length){var xe=B.pop();return xe.result=ee,xe.keyPrefix=se,xe.func=$e,xe.context=Ee,xe.count=0,xe}return{result:ee,keyPrefix:se,func:$e,context:Ee,count:0}}function Q(ee){ee.result=null,ee.keyPrefix=null,ee.func=null,ee.context=null,ee.count=0,10>B.length&&B.push(ee)}function K(ee,se,$e,Ee){var xe=typeof ee;(xe==="undefined"||xe==="boolean")&&(ee=null);var Se=!1;if(ee===null)Se=!0;else switch(xe){case"string":case"number":Se=!0;break;case"object":switch(ee.$$typeof){case u:case d:Se=!0}}if(Se)return $e(Ee,ee,se===""?"."+te(ee,0):se),1;if(Se=0,se=se===""?".":se+":",Array.isArray(ee))for(var Ie=0;Ie<ee.length;Ie++){xe=ee[Ie];var ge=se+te(xe,Ie);Se+=K(xe,ge,$e,Ee)}else if(ee===null||typeof ee!="object"?ge=null:(ge=E&&ee[E]||ee["@@iterator"],ge=typeof ge=="function"?ge:null),typeof ge=="function")for(ee=ge.call(ee),Ie=0;!(xe=ee.next()).done;)xe=xe.value,ge=se+te(xe,Ie++),Se+=K(xe,ge,$e,Ee);else if(xe==="object")throw $e=""+ee,Error(P(31,$e==="[object Object]"?"object with keys {"+Object.keys(ee).join(", ")+"}":$e,""));return Se}function Z(ee,se,$e){return ee==null?0:K(ee,"",se,$e)}function te(ee,se){return typeof ee=="object"&&ee!==null&&ee.key!=null?U(ee.key):se.toString(36)}function oe(ee,se){ee.func.call(ee.context,se,ee.count++)}function fe(ee,se,$e){var Ee=ee.result,xe=ee.keyPrefix;ee=ee.func.call(ee.context,se,ee.count++),Array.isArray(ee)?le(ee,Ee,$e,function(Se){return Se}):ee!=null&&(H(ee)&&(ee=z(ee,xe+(!ee.key||se&&se.key===ee.key?"":(""+ee.key).replace(F,"$&/")+"/")+$e)),Ee.push(ee))}function le(ee,se,$e,Ee,xe){var Se="";$e!=null&&(Se=(""+$e).replace(F,"$&/")+"/"),se=G(se,Se,Ee,xe),Z(ee,fe,se),Q(se)}var Re={current:null};function Ae(){var ee=Re.current;if(ee===null)throw Error(P(321));return ee}var _e={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:l};return react_production_min.Children={map:function(ee,se,$e){if(ee==null)return ee;var Ee=[];return le(ee,Ee,null,se,$e),Ee},forEach:function(ee,se,$e){if(ee==null)return ee;se=G(null,null,se,$e),Z(ee,oe,se),Q(se)},count:function(ee){return Z(ee,function(){return null},null)},toArray:function(ee){var se=[];return le(ee,se,null,function($e){return $e}),se},only:function(ee){if(!H(ee))throw Error(P(143));return ee}},react_production_min.Component=O,react_production_min.Fragment=f,react_production_min.Profiler=h,react_production_min.PureComponent=A,react_production_min.StrictMode=p,react_production_min.Suspense=y,react_production_min.__SECRET_INT
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,react_production_min.cloneElement=function(ee,se,$e){if(ee==null)throw Error(P(267,ee));var Ee=l({},ee.props),xe=ee.key,Se=ee.ref,Ie=ee._owner;if(se!=null){if(se.ref!==void 0&&(Se=se.ref,Ie=j.current),se.key!==void 0&&(xe=""+se.key),ee.type&&ee.type.defaultProps)var ge=ee.type.defaultProps;for(Y in se)M.call(se,Y)&&!N.hasOwnProperty(Y)&&(Ee[Y]=se[Y]===void 0&&ge!==void 0?ge[Y]:se[Y])}var Y=arguments.length-2;if(Y===1)Ee.children=$e;else if(1<Y){ge=Array(Y);for(var ie=0;ie<Y;ie++)ge[ie]=arguments[ie+2];Ee.children=ge}return{$$typeof:u,type:ee.type,key:xe,ref:Se,props:Ee,_owner:Ie}},react_production_min.createContext=function(ee,se){return se===void 0&&(se=null),ee={$$typeof:g,_calculateChangedBits:se,_currentValue:ee,_currentValue2:ee,_threadCount:0,Provider:null,Consumer:null},ee.Provider={$$typeof:v,_context:ee},ee.Consumer=ee},react_production_min.createElement=q,react_production_min.createFactory=function(ee){var se=q.bind(null,ee);return se.type=ee,se},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(ee){return{$$typeof:m,render:ee}},react_production_min.isValidElement=H,react_production_min.lazy=function(ee){return{$$typeof:w,_ctor:ee,_status:-1,_result:null}},react_production_min.memo=function(ee,se){return{$$typeof:b,type:ee,compare:se===void 0?null:se}},react_production_min.useCallback=function(ee,se){return Ae().useCallback(ee,se)},react_production_min.useContext=function(ee,se){return Ae().useContext(ee,se)},react_production_min.useDebugValue=function(){},react_production_min.useEffect=function(ee,se){return Ae().useEffect(ee,se)},react_production_min.useImperativeHandle=function(ee,se,$e){return Ae().useImperativeHandle(ee,se,$e)},react_production_min.useLayoutEffect=function(ee,se){return Ae().useLayoutEffect(ee,se)},react_production_min.useMemo=function(ee,se){return Ae().useMemo(ee,se)},react_production_min.useReducer=function(ee,se,$e){return Ae().useReducer(ee,se,$e)},react_production_min.useRef=function(ee){return Ae().useRef(ee)},react_production_min.useState=function(ee){return Ae().useState(ee)},react_production_min.version="16.14.0",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,(function(l){var o,u,d,f,p;if(typeof window>"u"||typeof MessageChannel!="function"){var h=null,v=null,g=function(){if(h!==null)try{var _e=l.unstable_now();h(!0,_e),h=null}catch(ee){throw setTimeout(g,0),ee}},m=Date.now();l.unstable_now=function(){return Date.now()-m},o=function(_e){h!==null?setTimeout(o,0,_e):(h=_e,setTimeout(g,0))},u=function(_e,ee){v=setTimeout(_e,ee)},d=function(){clearTimeout(v)},f=function(){return!1},p=l.unstable_forceFrameRate=function(){}}else{var y=window.performance,b=window.Date,w=window.setTimeout,E=window.clearTimeout;if(typeof console<"u"){var P=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof P!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof y=="object"&&typeof y.now=="function")l.unstable_now=function(){return y.now()};else{var C=b.now();l.unstable_now=function(){return b.now()-C}}var T=!1,O=null,x=-1,A=5,D=0;f=function(){return l.unstable_now()>=D},p=function(){},l.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"):A=0<_e?Math.floor(1e3/_e):5};var j=new MessageChannel,M=j.port2;j.port1.onmessage=function(){if(O!==null){var _e=l.unstable_now();D=_e+A;try{O(!0,_e)?M.postMessage(null):(T=!1,O=null)}catch(ee){throw M.postMessage(null),ee}}else T=!1},o=function(_e){O=_e,T||(T=!0,M.postMessage(null))},u=function(_e,ee){x=w(function(){_e(l.unstable_now())},ee)},d=function(){E(x),x=-1}}function N(_e,ee){var se=_e.length;_e.push(ee);e:for(;;){var $e=se-1>>>1,Ee=_e[$e];if(Ee!==void 0&&0<H(Ee,ee))_e[$e]=ee,_e[se]=Ee,se=$e;else break e}}function q(_e){return _e=_e[0],_e===void 0?null:_e}function z(_e){var ee=_e[0];if(ee!==void 0){var se=_e.pop();if(se!==ee){_e[0]=se;e:for(var $e=0,Ee=_e.length;$e<Ee;){var xe=2*($e+1)-1,Se=_e[xe],Ie=xe+1,ge=_e[Ie];if(Se!==void 0&&0>H(Se,se))ge!==void 0&&0>H(ge,Se)?(_e[$e]=ge,_e[Ie]=se,$e=Ie):(_e[$e]=Se,_e[xe]=se,$e=xe);else if(ge!==void 0&&0>H(ge,se))_e[$e]=ge,_e[Ie]=se,$e=Ie;else break e}}return ee}return null}function H(_e,ee){var se=_e.sortIndex-ee.sortIndex;return se!==0?se:_e.id-ee.id}var U=[],F=[],B=1,G=null,Q=3,K=!1,Z=!1,te=!1;function oe(_e){for(var ee=q(F);ee!==null;){if(ee.callback===null)z(F);else if(ee.startTime<=_e)z(F),ee.sortIndex=ee.expirationTime,N(U,ee);else break;ee=q(F)}}function fe(_e){if(te=!1,oe(_e),!Z)if(q(U)!==null)Z=!0,o(le);else{var ee=q(F);ee!==null&&u(fe,ee.startTime-_e)}
1}function le(_e,ee){Z=!1,te&&(te=!1,d()),K=!0;var se=Q;try{for(oe(ee),G=q(U);G!==null&&(!(G.expirationTime>ee)||_e&&!f());){var $e=G.callback;if($e!==null){G.callback=null,Q=G.priorityLevel;var Ee=$e(G.expirationTime<=ee);ee=l.unstable_now(),typeof Ee=="function"?G.callback=Ee:G===q(U)&&z(U),oe(ee)}else z(U);G=q(U)}if(G!==null)var xe=!0;else{var Se=q(F);Se!==null&&u(fe,Se.startTime-ee),xe=!1}return xe}finally{G=null,Q=se,K=!1}}function Re(_e){switch(_e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Ae=p;l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(_e){_e.callback=null},l.unstable_continueExecution=function(){Z||K||(Z=!0,o(le))},l.unstable_getCurrentPriorityLevel=function(){return Q},l.unstable_getFirstCallbackNode=function(){return q(U)},l.unstable_next=function(_e){switch(Q){case 1:case 2:case 3:var ee=3;break;default:ee=Q}var se=Q;Q=ee;try{return _e()}finally{Q=se}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=Ae,l.unstable_runWithPriority=function(_e,ee){switch(_e){case 1:case 2:case 3:case 4:case 5:break;default:_e=3}var se=Q;Q=_e;try{return ee()}finally{Q=se}},l.unstable_scheduleCallback=function(_e,ee,se){var $e=l.unstable_now();if(typeof se=="object"&&se!==null){var Ee=se.delay;Ee=typeof Ee=="number"&&0<Ee?$e+Ee:$e,se=typeof se.timeout=="number"?se.timeout:Re(_e)}else se=Re(_e),Ee=$e;return se=Ee+se,_e={id:B++,callback:ee,priorityLevel:_e,startTime:Ee,expirationTime:se,sortIndex:-1},Ee>$e?(_e.sortIndex=Ee,N(F,_e),q(U)===null&&_e===q(F)&&(te?d():te=!0,u(fe,Ee-$e))):(_e.sortIndex=se,N(U,_e),Z||K||(Z=!0,o(le))),_e},l.unstable_shouldYield=function(){var _e=l.unstable_now();oe(_e);var ee=q(U);return ee!==G&&G!==null&&ee!==null&&ee.callback!==null&&ee.startTime<=_e&&ee.expirationTime<G.expirationTime||f()},l.unstable_wrapCallback=function(_e){var ee=Q;return function(){var se=Q;Q=ee;try{return _e.apply(this,arguments)}finally{Q=se}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var l=requireReact(),o=requireObjectAssign(),u=requireScheduler();function d(S){for(var R="https://reactjs.org/docs/error-decoder.html?invariant="+S,k=1;k<arguments.length;k++)R+="&args[]="+encodeURIComponent(arguments[k]);return"Minified React error #"+S+"; visit "+R+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!l)throw Error(d(227));function f(S,R,k,V,J,ve,be,De,ot){var st=Array.prototype.slice.call(arguments,3);try{R.apply(k,st)}catch(Lt){this.onError(Lt)}}var p=!1,h=null,v=!1,g=null,m={onError:function(S){p=!0,h=S}};function y(S,R,k,V,J,ve,be,De,ot){p=!1,h=null,f.apply(m,arguments)}function b(S,R,k,V,J,ve,be,De,ot){if(y.apply(this,arguments),p){if(p){var st=h;p=!1,h=null}else throw Error(d(198));v||(v=!0,g=st)}}var w=null,E=null,P=null;function C(S,R,k){var V=S.type||"unknown-event";S.currentTarget=P(k),b(V,R,void 0,S),S.currentTarget=null}var T=null,O={};function x(){if(T)for(var S in O){var R=O[S],k=T.indexOf(S);if(!(-1<k))throw Error(d(96,S));if(!D[k]){if(!R.extractEvents)throw Error(d(97,S));D[k]=R,k=R.eventTypes;for(var V in k){var J=void 0,ve=k[V],be=R,De=V;if(j.hasOwnProperty(De))throw Error(d(99,De));j[De]=ve;
1var ot=ve.phasedRegistrationNames;if(ot){for(J in ot)ot.hasOwnProperty(J)&&A(ot[J],be,De);J=!0}else ve.registrationName?(A(ve.registrationName,be,De),J=!0):J=!1;if(!J)throw Error(d(98,V,S))}}}}function A(S,R,k){if(M[S])throw Error(d(100,S));M[S]=R,N[S]=R.eventTypes[k].dependencies}var D=[],j={},M={},N={};function q(S){var R=!1,k;for(k in S)if(S.hasOwnProperty(k)){var V=S[k];if(!O.hasOwnProperty(k)||O[k]!==V){if(O[k])throw Error(d(102,k));O[k]=V,R=!0}}R&&x()}var z=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H=null,U=null,F=null;function B(S){if(S=E(S)){if(typeof H!="function")throw Error(d(280));var R=S.stateNode;R&&(R=w(R),H(S.stateNode,S.type,R))}}function G(S){U?F?F.push(S):F=[S]:U=S}function Q(){if(U){var S=U,R=F;if(F=U=null,B(S),R)for(S=0;S<R.length;S++)B(R[S])}}function K(S,R){return S(R)}function Z(S,R,k,V,J){return S(R,k,V,J)}function te(){}var oe=K,fe=!1,le=!1;function Re(){(U!==null||F!==null)&&(te(),Q())}function Ae(S,R,k){if(le)return S(R,k);le=!0;try{return oe(S,R,k)}finally{le=!1,Re()}}var _e=/^[: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]*$/,ee=Object.prototype.hasOwnProperty,se={},$e={};function Ee(S){return ee.call($e,S)?!0:ee.call(se,S)?!1:_e.test(S)?$e[S]=!0:(se[S]=!0,!1)}function xe(S,R,k,V){if(k!==null&&k.type===0)return!1;switch(typeof R){case"function":case"symbol":return!0;case"boolean":return V?!1:k!==null?!k.acceptsBooleans:(S=S.toLowerCase().slice(0,5),S!=="data-"&&S!=="aria-");default:return!1}}function Se(S,R,k,V){if(R===null||typeof R>"u"||xe(S,R,k,V))return!0;if(V)return!1;if(k!==null)switch(k.type){case 3:return!R;case 4:return R===!1;case 5:return isNaN(R);case 6:return isNaN(R)||1>R}return!1}function Ie(S,R,k,V,J,ve){this.acceptsBooleans=R===2||R===3||R===4,this.attributeName=V,this.attributeNamespace=J,this.mustUseProperty=k,this.propertyName=S,this.type=R,this.sanitizeURL=ve}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(S){ge[S]=new Ie(S,0,!1,S,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(S){var R=S[0];ge[R]=new Ie(R,1,!1,S[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(S){ge[S]=new Ie(S,2,!1,S.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(S){ge[S]=new Ie(S,2,!1,S,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(S){ge[S]=new Ie(S,3,!1,S.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(S){ge[S]=new Ie(S,3,!0,S,null,!1)}),["capture","download"].forEach(function(S){ge[S]=new Ie(S,4,!1,S,null,!1)}),["cols","rows","size","span"].forEach(function(S){ge[S]=new Ie(S,6,!1,S,null,!1)}),["rowSpan","start"].forEach(function(S){ge[S]=new Ie(S,5,!1,S.toLowerCase(),null,!1)});var Y=/[\-:]([a-z])/g;function ie(S){return S[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
1-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(S){var R=S.replace(Y,ie);ge[R]=new Ie(R,1,!1,S,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(S){var R=S.replace(Y,ie);ge[R]=new Ie(R,1,!1,S,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(S){var R=S.replace(Y,ie);ge[R]=new Ie(R,1,!1,S,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(S){ge[S]=new Ie(S,1,!1,S.toLowerCase(),null,!1)}),ge.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(S){ge[S]=new Ie(S,1,!1,S.toLowerCase(),null,!0)});var ce=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ce.hasOwnProperty("ReactCurrentDispatcher")||(ce.ReactCurrentDispatcher={current:null}),ce.hasOwnProperty("ReactCurrentBatchConfig")||(ce.ReactCurrentBatchConfig={suspense:null});function ue(S,R,k,V){var J=ge.hasOwnProperty(R)?ge[R]:null,ve=J!==null?J.type===0:V?!1:!(!(2<R.length)||R[0]!=="o"&&R[0]!=="O"||R[1]!=="n"&&R[1]!=="N");ve||(Se(R,k,J,V)&&(k=null),V||J===null?Ee(R)&&(k===null?S.removeAttribute(R):S.setAttribute(R,""+k)):J.mustUseProperty?S[J.propertyName]=k===null?J.type===3?!1:"":k:(R=J.attributeName,V=J.attributeNamespace,k===null?S.removeAttribute(R):(J=J.type,k=J===3||J===4&&k===!0?"":""+k,V?S.setAttributeNS(V,R,k):S.setAttribute(R,k))))}var pe=/^(.*)[\\\/]/,Te=typeof Symbol=="function"&&Symbol.for,Ce=Te?Symbol.for("react.element"):60103,Fe=Te?Symbol.for("react.portal"):60106,He=Te?Symbol.for("react.fragment"):60107,we=Te?Symbol.for("react.strict_mode"):60108,Oe=Te?Symbol.for("react.profiler"):60114,Ne=Te?Symbol.for("react.provider"):60109,qe=Te?Symbol.for("react.context"):60110,Be=Te?Symbol.for("react.concurrent_mode"):60111,Ve=Te?Symbol.for("react.forward_ref"):60112,Ye=Te?Symbol.for("react.suspense"):60113,Ge=Te?Symbol.for("react.suspense_list"):60120,dt=Te?Symbol.for("react.memo"):60115,ze=Te?Symbol.for("react.lazy"):60116,nt=Te?Symbol.for("react.block"):60121,Ze=typeof Symbol=="function"&&Symbol.iterator;function _t(S){return S===null||typeof S!="object"?null:(S=Ze&&S[Ze]||S["@@iterator"],typeof S=="function"?S:null)}function ae(S){if(S._status===-1){S._status=0;var R=S._ctor;R=R(),S._result=R,R.then(function(k){S._status===0&&(k=k.default,S._status=1,S._result=k)},function(k){S._status===0&&(S._status=2,S._result=k)})}}function re(S){if(S==null)return null;if(typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case He:return"Fragment";case Fe:return"Portal";case Oe:return"Profiler";case we:return"StrictMode";case Ye:return"Suspense";case Ge:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case qe:return"Context.Consumer";case Ne:return"Context.Provider";case Ve:var R=S.render;return R=R.displayName||R.name||"",S.displayName||(R!==""?"ForwardRef("+R+")":"ForwardRef");case dt:return re(S.type);case nt:return re(S.render);case ze:if(S=S._status===1?S._result:null)return re(S)}return null}function he(S){var R="";do{e:switch(S.tag){case 3:case 4:case 6:case 7:case 10:case 9:var k="";break e;default:var V=S._debugOwner,J=S._debugSource,ve=re(S.type);k=null,V&&(k=re(V.type)),V=ve,ve="",J?ve=" (at "+J.fileName.replace(pe,"")+":"+J.lineNumber+")":k&&(ve=" (created by "+k+")"),k=`
2    in `+(V||"Unknown")+ve}R+=k,S=S.return}while(S);return R}function Pe(S){switch(typeof S){case"boolean":case"number":case"object":case"string":case"undefined":return S;default:return""}}function We(S){var R=S.type;return(S=S.nodeName)&&S.toLowerCase()==="input"&&(R==="checkbox"||R==="radio")}function yt(S){var R=We(S)?"checked":"value",k=Object.getOwnPropertyDescriptor(S.constructor.prototype,R),V=""+S[R];if(!S.hasOwnProperty(R)&&typeof k<"u"&&typeof k.get=="function"&&typeof k.set=="function"){var J=k.get,ve=k.set;return Object.defineProperty(S,R,{configurable:!0,get:function(){return J.call(this)},set:function(be){V=""+be,ve.call(this,be)}}),Object.defineProperty(S,R,{enumerable:k.enumerable}),{getValue:function(){return V},setValue:function(be){V=""+be},stopTracking:function(){S._valueTracker=null,delete S[R]}}}}function ct(S){S._valueTracker||(S._valueTracker=yt(S))}function ht(S){if(!S)return!1;var R=S._valueTracker;if(!R)return!0;var k=R.getValue(),V="";return S&&(V=We(S)?S.checked?"true":"false":S.value),S=V,S!==k?(R.setValue(S),!0):!1}function bt(S,R){var k=R.checked;return o({},R,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:k??S._wrapperState.initialChecked})}function xt(S,R){var k=R.defaultValue==null?"":R.defaultValue,V=R.checked!=null?R.checked:R.defaultChecked;k=Pe(R.value!=null?R.value:k),S._wrapperState={initialChecked:V,initialValue:k,controlled:R.type==="checkbox"||R.type==="radio"?R.checked!=null:R.value!=null}}function Rt(S,R){R=R.checked,R!=null&&ue(S,"checked",R,!1)}function ut(S,R){Rt(S,R);var k=Pe(R.value),V=R.type;if(k!=null)V==="number"?(k===0&&S.value===""||S.value!=k)&&(S.value=""+k):S.value!==""+k&&(S.value=""+k);else if(V==="submit"||V==="reset"){S.removeAttribute("value");return}R.hasOwnProperty("value")?vt(S,R.type,k):R.hasOwnProperty("defaultValue")&&vt(S,R.type,Pe(R.defaultValue)),R.checked==null&&R.defaultChecked!=null&&(S.defaultChecked=!!R.defaultChecked)}function Me(S,R,k){if(R.hasOwnProperty("value")||R.hasOwnProperty("defaultValue")){var V=R.type;if(!(V!=="submit"&&V!=="reset"||R.value!==void 0&&R.value!==null))return;R=""+S._wrapperState.initialValue,k||R===S.value||(S.value=R),S.defaultValue=R}k=S.name,k!==""&&(S.name=""),S.defaultChecked=!!S._wrapperState.initialChecked,k!==""&&(S.name=k)}function vt(S,R,k){(R!=="number"||S.ownerDocument.activeElement!==S)&&(k==null?S.defaultValue=""+S._wrapperState.initialValue:S.defaultValue!==""+k&&(S.defaultValue=""+k))}function Ot(S){var R="";
vendor: 4,910 bytes, line 2
2return l.Children.forEach(S,function(k){k!=null&&(R+=k)}),R}function ft(S,R){return S=o({children:void 0},R),(R=Ot(R.children))&&(S.children=R),S}function wt(S,R,k,V){if(S=S.options,R){R={};for(var J=0;J<k.length;J++)R["$"+k[J]]=!0;for(k=0;k<S.length;k++)J=R.hasOwnProperty("$"+S[k].value),S[k].selected!==J&&(S[k].selected=J),J&&V&&(S[k].defaultSelected=!0)}else{for(k=""+Pe(k),R=null,J=0;J<S.length;J++){if(S[J].value===k){S[J].selected=!0,V&&(S[J].defaultSelected=!0);return}R!==null||S[J].disabled||(R=S[J])}R!==null&&(R.selected=!0)}}function Nt(S,R){if(R.dangerouslySetInnerHTML!=null)throw Error(d(91));return o({},R,{value:void 0,defaultValue:void 0,children:""+S._wrapperState.initialValue})}function jt(S,R){var k=R.value;if(k==null){if(k=R.children,R=R.defaultValue,k!=null){if(R!=null)throw Error(d(92));if(Array.isArray(k)){if(!(1>=k.length))throw Error(d(93));k=k[0]}R=k}R==null&&(R=""),k=R}S._wrapperState={initialValue:Pe(k)}}function Ct(S,R){var k=Pe(R.value),V=Pe(R.defaultValue);k!=null&&(k=""+k,k!==S.value&&(S.value=k),R.defaultValue==null&&S.defaultValue!==k&&(S.defaultValue=k)),V!=null&&(S.defaultValue=""+V)}function mt(S){var R=S.textContent;R===S._wrapperState.initialValue&&R!==""&&R!==null&&(S.value=R)}var qt={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Er(S){switch(S){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 Kt(S,R){return S==null||S==="http://www.w3.org/1999/xhtml"?Er(R):S==="http://www.w3.org/2000/svg"&&R==="foreignObject"?"http://www.w3.org/1999/xhtml":S}var lr,Cr=(function(S){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(R,k,V,J){MSApp.execUnsafeLocalFunction(function(){return S(R,k,V,J)})}:S})(function(S,R){if(S.namespaceURI!==qt.svg||"innerHTML"in S)S.innerHTML=R;else{for(lr=lr||document.createElement("div"),lr.innerHTML="<svg>"+R.valueOf().toString()+"</svg>",R=lr.firstChild;S.firstChild;)S.removeChild(S.firstChild);for(;R.firstChild;)S.appendChild(R.firstChild)}});function Yr(S,R){if(R){var k=S.firstChild;if(k&&k===S.lastChild&&k.nodeType===3){k.nodeValue=R;return}}S.textContent=R}function cr(S,R){var k={};return k[S.toLowerCase()]=R.toLowerCase(),k["Webkit"+S]="webkit"+R,k["Moz"+S]="moz"+R,k}var Pr={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionend:cr("Transition","TransitionEnd")},vr={},ln={};z&&(ln=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function kt(S){if(vr[S])return vr[S];if(!Pr[S])return S;var R=Pr[S],k;for(k in R)if(R.hasOwnProperty(k)&&k in ln)return vr[S]=R[k];return S}var je=kt("animationend"),Et=kt("animationiteration"),At=kt("animationstart"),ir=kt("transitionend"),br="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new(typeof WeakMap=="function"?WeakMap:Map);function Ar(S){var R=_r.get(S);return R===void 0&&(R=new Map,_r.set(S,R)),R}function Lr(S){var R=S,k=S;if(S.alternate)for(;R.return;)R=R.return;else{S=R;do R=S,(R.effectTag&1026)!==0&&(k=R.return),S=R.return;while(S)}return R.tag===3?k:null}function mn(S){if(S.tag===13){var R=S.memoizedState;if(R===null&&(S=S.alternate,S!==null&&(R=S.memoizedState)),R!==null)return R.dehydrated}return null}function kn(S){if(Lr(S)!==S)throw Error(d(188))}function wr(S){var R=S.alternate;if(!R){if(R=Lr(S),R===null)throw Error(d(188));return R!==S?null:S}for(var k=S,V=R;;){var J=k.return;if(J===null)break;var ve=J.alternate;if(ve===null){if(V=J.return,V!==null){k=V;continue}break}if(J.child===ve.child){for(ve=J.child;ve;){if(ve===k)return kn(J),S;if(ve===V)return kn(J),R;ve=ve.sibling}throw Error(d(188))}if(k.return!==V.return)k=J,V=ve;else{for(var be=!1,De=J.child;De;){if(De===k){be=!0,k=J,V=ve;break}if(De===V){be=!0,V=J,k=ve;break}De=De.sibling}if(!be){for(De=ve.child;De;){if(De===k){be=!0,k=ve,V=J;break}if(De===V){be=!0,V=ve,k=J;break}De=De.sibling}if(!be)throw Error(d(189))}}if(k.alternate!==V)throw Error(d(190))}if(k.tag!==3)throw Error(d(188));return k.stateNode.current===k?S:R}function Nn(S){if(S=wr(S),!S)return null;for(var R=S;;){if(R.tag===5||R.tag===6)return R;if(R.child)R.child.return=R,R=R.child;else{if(R===S)break;for(;!R.sibling;){if(!R.return||R.return===S)return null;R=R.return}R.sibling.return=R.return,R=R.sibling}}return null}function rn(S,R){if(R==null)throw Error(d(30));return S==null?R:Array.isArray(S)?Array.isArray(R)?(S.push.apply(S,R),S):(S.push(R),S):Array.isArray(R)?[S].concat(R):[S,R]}
2function yn(S,R,k){Array.isArray(S)?S.forEach(R,k):S&&R.call(k,S)}var Qt=null;function mr(S){if(S){var R=S._dispatchListeners,k=S._dispatchInstances;if(Array.isArray(R))for(var V=0;V<R.length&&!S.isPropagationStopped();V++)C(S,R[V],k[V]);else R&&C(S,R,k);S._dispatchListeners=null,S._dispatchInstances=null,S.isPersistent()||S.constructor.release(S)}}function un(S){if(S!==null&&(Qt=rn(Qt,S)),S=Qt,Qt=null,S){if(yn(S,mr),Qt)throw Error(d(95));if(v)throw S=g,v=!1,g=null,S}}function Pt(S){return S=S.target||S.srcElement||window,S.correspondingUseElement&&(S=S.correspondingUseElement),S.nodeType===3?S.parentNode:S}function $t(S){if(!z)return!1;S="on"+S;var R=S in document;return R||(R=document.createElement("div"),R.setAttribute(S,"return;"),R=typeof R[S]=="function"),R}var rt=[];function gt(S){S.topLevelType=null,S.nativeEvent=null,S.targetInst=null,S.ancestors.length=0,10>rt.length&&rt.push(S)}function tr(S,R,k,V){if(rt.length){var J=rt.pop();return J.topLevelType=S,J.eventSystemFlags=V,J.nativeEvent=R,J.targetInst=k,J}return{topLevelType:S,eventSystemFlags:V,nativeEvent:R,targetInst:k,ancestors:[]}}function qr(S){var R=S.targetInst,k=R;do{if(!k){S.ancestors.push(k);break}var V=k;if(V.tag===3)V=V.stateNode.containerInfo;else{for(;V.return;)V=V.return;V=V.tag!==3?null:V.stateNode.containerInfo}if(!V)break;R=k.tag,R!==5&&R!==6||S.ancestors.push(k),k=qi(V)}while(k);for(k=0;k<S.ancestors.length;k++){R=S.ancestors[k];var J=Pt(S.nativeEvent);V=S.topLevelType;var ve=S.nativeEvent,be=S.eventSystemFlags;k===0&&(be|=64);for(var De=null,ot=0;ot<D.length;ot++){var st=D[ot];st&&(st=st.extractEvents(V,R,ve,J,be))&&(De=rn(De,st))}un(De)}}function or(S,R,k){if(!k.has(S)){switch(S){case"scroll":Zn(R,"scroll",!0);break;case"focus":case"blur":Zn(R,"focus",!0),Zn(R,"blur",!0),k.set("blur",null),k.set("focus",null);break;case"cancel":case"close":$t(S)&&Zn(R,S,!0);break;case"invalid":case"submit":case"reset":break;default:br.indexOf(S)===-1&&Ir(S,R)}k.set(S,null)}}var $r,dr,bn,Tr=!1,Yt=[],Rr=null,Dr=null,Mr=null,_n=new Map,wn=new Map,Sn=[],mi="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(" "),Ji="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function xr(S,R){var k=Ar(R);mi.forEach(function(V){or(V,R,k)}
2),Ji.forEach(function(V){or(V,R,k)})}function Ai(S,R,k,V,J){return{blockedOn:S,topLevelType:R,eventSystemFlags:k|32,nativeEvent:J,container:V}}function Gn(S,R){switch(S){case"focus":case"blur":Rr=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":_n.delete(R.pointerId);break;case"gotpointercapture":case"lostpointercapture":wn.delete(R.pointerId)}}function Kn(S,R,k,V,J,ve){return S===null||S.nativeEvent!==ve?(S=Ai(R,k,V,J,ve),R!==null&&(R=wi(R),R!==null&&dr(R)),S):(S.eventSystemFlags|=V,S)}function Xr(S,R,k,V,J){switch(R){case"focus":return Rr=Kn(Rr,S,R,k,V,J),!0;case"dragenter":return Dr=Kn(Dr,S,R,k,V,J),!0;case"mouseover":return Mr=Kn(Mr,S,R,k,V,J),!0;case"pointerover":var ve=J.pointerId;return _n.set(ve,Kn(_n.get(ve)||null,S,R,k,V,J)),!0;case"gotpointercapture":return ve=J.pointerId,wn.set(ve,Kn(wn.get(ve)||null,S,R,k,V,J)),!0}return!1}function wo(S){var R=qi(S.target);if(R!==null){var k=Lr(R);if(k!==null){if(R=k.tag,R===13){if(R=mn(k),R!==null){S.blockedOn=R,u.unstable_runWithPriority(S.priority,function(){bn(k)});return}}else if(R===3&&k.stateNode.hydrate){S.blockedOn=k.tag===3?k.stateNode.containerInfo:null;return}}}S.blockedOn=null}function Vt(S){if(S.blockedOn!==null)return!1;var R=Ht(S.topLevelType,S.eventSystemFlags,S.container,S.nativeEvent);if(R!==null){var k=wi(R);return k!==null&&dr(k),S.blockedOn=R,!1}return!0}function cn(S,R,k){Vt(S)&&k.delete(R)}function pr(){for(Tr=!1;0<Yt.length;){var S=Yt[0];if(S.blockedOn!==null){S=wi(S.blockedOn),S!==null&&$r(S);break}var R=Ht(S.topLevelType,S.eventSystemFlags,S.container,S.nativeEvent);R!==null?S.blockedOn=R:Yt.shift()}Rr!==null&&Vt(Rr)&&(Rr=null),Dr!==null&&Vt(Dr)&&(Dr=null),Mr!==null&&Vt(Mr)&&(Mr=null),_n.forEach(cn),wn.forEach(cn)}function Qr(S,R){S.blockedOn===R&&(S.blockedOn=null,Tr||(Tr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,pr)))}function yi(S){function R(J){return Qr(J,S)}if(0<Yt.length){Qr(Yt[0],S);for(var k=1;k<Yt.length;k++){var V=Yt[k];V.blockedOn===S&&(V.blockedOn=null)}}for(Rr!==null&&Qr(Rr,S),Dr!==null&&Qr(Dr,S),Mr!==null&&Qr(Mr,S),_n.forEac
2h(R),wn.forEach(R),k=0;k<Sn.length;k++)V=Sn[k],V.blockedOn===S&&(V.blockedOn=null);for(;0<Sn.length&&(k=Sn[0],k.blockedOn===null);)wo(k),k.blockedOn===null&&Sn.shift()}var qn={},nn=new Map,Dn=new Map,ki=["abort","abort",je,"animationEnd",Et,"animationIteration",At,"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",ir,"transitionEnd","waiting","waiting"];function ai(S,R){for(var k=0;k<S.length;k+=2){var V=S[k],J=S[k+1],ve="on"+(J[0].toUpperCase()+J.slice(1));ve={phasedRegistrationNames:{bubbled:ve,captured:ve+"Capture"},dependencies:[V],eventPriority:R},Dn.set(V,R),nn.set(V,ve),qn[J]=ve}}ai("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),ai("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),ai(ki,2);for(var Wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),En=0;En<Wr.length;En++)Dn.set(Wr[En],0);var Ho=u.unstable_UserBlockingPriority,pa=u.unstable_runWithPriority,So=!0;function Ir(S,R){Zn(R,S,!1)}function Zn(S,R,k){var V=Dn.get(R);switch(V===void 0?2:V){case 0:V=ha.bind(null,R,1,S);break;case 1:V=Vo.bind(null,R,1,S);break;default:V=Zt.bind(null,R,1,S)}k?S.addEventListener(R,V,!0):S.addEventListener(R,V,!1)}function ha(S,R,k,V){fe||te();var J=Zt,ve=fe;fe=!0;try{Z(J,S,R,k,V)}finally{(fe=ve)||Re()}}function Vo(S,R,k,V){pa(Ho,Zt.bind(null,S,R,k,V))}function Zt(S,R,k,V){if(So)if(0<Yt.length&&-1<mi.indexOf(S))S=Ai(null,S,R,k,V),Yt.push(S);else{var J=Ht(S,R,k,V);if(J===null)Gn(S,V);else if(-1<mi.indexOf(S))S=Ai(J,S,R,k,V),Yt.push(S);else if(!Xr(J,S,R,k,V)){Gn(S,V),S=tr(S,V,null,R);try{Ae(qr,S)}finally{gt(S)}}}}function Ht(S,R,k,V){if(k=Pt(V),k=qi(k),k!==null){var J=Lr(k);if(J===null)k=null;else{var ve=J.tag;if(ve===13){if(k=mn(J),k!==null)return k;k=null}else if(ve===3){if(J.stateNode.hydrate)return J.tag===3?J.stateNode.containerInfo:null;k=null}else J!==k&&(k=null)}}S=tr(S,V,k,R);try{Ae(qr,S)}finally{gt(S)}return null}var on={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},si=["Webkit","ms","Moz","O"];Object.keys(on).forEach(function(S){si.forEach(function(R){R=R+S.charAt(0).toUpperCase()+S.substring(1),on[R]=on[S]})});function Di(S,R,k){return R==null||typeof R=="boolean"||R===""?"":k||typeof R!="number"||R===0||on.hasOwnProperty(S)&&on[S]?(""+R).trim():R+"px"}function eo(S,R){S=S.style;for(var k in R)if(R.hasOwnProperty(k)){var V=k.indexOf("--")===0,J=Di(k,R[k],V);k==="float"&&(k="cssFloat"),V?S.setProperty(k,J):S[k]=J}}var Mi=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 Eo(S,R){if(R){if(Mi[S]&&(R.children!=null||R.dangerouslySetInnerHTML!=null))throw Error(d(137,S,""));if(R.dangerouslySetInnerHTML!=null){if(R.children!=null)throw Error(d(60));if(!(typeof R.dangerouslySetInnerHTML=="object"&&"__html"in R.dangerouslySetInnerHTML))throw Error(d(61))}if(R.style!=null&&typeof R.style!="object")throw Error(d(62,""))}}function Wn(S,R){if(S.indexOf("-")===-1)return typeof R.is=="str
2ing";switch(S){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 Uo=qt.html;function Yn(S,R){S=S.nodeType===9||S.nodeType===11?S:S.ownerDocument;var k=Ar(S);R=N[R];for(var V=0;V<R.length;V++)or(R[V],S,k)}function bi(){}function Co(S){if(S=S||(typeof document<"u"?document:void 0),typeof S>"u")return null;try{return S.activeElement||S.body}catch{return S.body}}function Cn(S){for(;S&&S.firstChild;)S=S.firstChild;return S}function va(S,R){var k=Cn(S);S=0;for(var V;k;){if(k.nodeType===3){if(V=S+k.textContent.length,S<=R&&V>=R)return{node:k,offset:R-S};S=V}e:{for(;k;){if(k.nextSibling){k=k.nextSibling;break e}k=k.parentNode}k=void 0}k=Cn(k)}}function Po(S,R){return S&&R?S===R?!0:S&&S.nodeType===3?!1:R&&R.nodeType===3?Po(S,R.parentNode):"contains"in S?S.contains(R):S.compareDocumentPosition?!!(S.compareDocumentPosition(R)&16):!1:!1}function Fn(){for(var S=window,R=Co();R instanceof S.HTMLIFrameElement;){try{var k=typeof R.contentWindow.location.href=="string"}catch{k=!1}if(k)S=R.contentWindow;else break;R=Co(S.document)}return R}function $o(S){var R=S&&S.nodeName&&S.nodeName.toLowerCase();return R&&(R==="input"&&(S.type==="text"||S.type==="search"||S.type==="tel"||S.type==="url"||S.type==="password")||R==="textarea"||S.contentEditable==="true")}var To="$",to="/$",ro="$?",no="$!",Li=null,io=null;function Go(S,R){switch(S){case"button":case"input":case"select":case"textarea":return!!R.autoFocus}return!1}function ji(S,R){return S==="textarea"||S==="option"||S==="noscript"||typeof R.children=="string"||typeof R.children=="number"||typeof R.dangerouslySetInnerHTML=="object"&&R.dangerouslySetInnerHTML!==null&&R.dangerouslySetInnerHTML.__html!=null}var Ko=typeof setTimeout=="function"?setTimeout:void 0,Zo=typeof clearTimeout=="function"?clearTimeout:void 0;function _i(S){for(;S!=null;S=S.nextSibling){var R=S.nodeType;if(R===1||R===3)break}return S}function Ni(S){S=S.previousSibling;for(var R=0;S;){if(S.nodeType===8){var k=S.data;if(k===To||k===no||k===ro){if(R===0)return S;R--}else k===to&&R++}S=S.previousSibling}return null}var Bn=Math.random().toString(36).slice(2),Mn="__reactInternalInstance$"+Bn,zn="__reactEventHandlers$"+Bn,Jr="__reactContainere$"+Bn;function qi(S){var R=S[Mn];if(R)return R;for(var k=S.parentNode;k;){if(R=k[Jr]||k[Mn]){if(k=R.alternate,R.child!==null||k!==null&&k.child!==null)for(S=Ni(S);S!==null;){if(k=S[Mn])return k;S=Ni(S)}return R}S=k,k=S.parentNode}return null}function wi(S){return S=S[Mn]||S[Jr],!S||S.tag!==5&&S.tag!==6&&S.tag!==13&&S.tag!==3?null:S}function Si(S){if(S.tag===5||S.tag===6)return S.stateNode;throw Error(d(33))}function Ei(S){return S[zn]||null}function pn(S){do S=S.return;while(S&&S.tag!==5);return S||null}function oo(S,R){var k=S.stateNode;if(!k)return null;var V=w(k);if(!V)return null;k=V[R];e:switch(R){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(V=!V.disabled)||(S=S.type,V=!(S==="button"||S==="input"||S==="select"||S==="textarea")),S=!V;break e;default:S=!1}if(S)return null;if(k&&typeof k!="function")throw Error(d(231,R,typeof k));return k}
vendor: 3,022 bytes, line 2
2function ao(S,R,k){(R=oo(S,k.dispatchConfig.phasedRegistrationNames[R]))&&(k._dispatchListeners=rn(k._dispatchListeners,R),k._dispatchInstances=rn(k._dispatchInstances,S))}function Yo(S){if(S&&S.dispatchConfig.phasedRegistrationNames){for(var R=S._targetInst,k=[];R;)k.push(R),R=pn(R);for(R=k.length;0<R--;)ao(k[R],"captured",S);for(R=0;R<k.length;R++)ao(k[R],"bubbled",S)}}function Xo(S,R,k){S&&k&&k.dispatchConfig.registrationName&&(R=oo(S,k.dispatchConfig.registrationName))&&(k._dispatchListeners=rn(k._dispatchListeners,R),k._dispatchInstances=rn(k._dispatchInstances,S))}function Pn(S){S&&S.dispatchConfig.registrationName&&Xo(S._targetInst,null,S)}function $n(S){yn(S,Yo)}var Xn=null,hn=null,Ro=null;function Ci(){if(Ro)return Ro;var S,R=hn,k=R.length,V,J="value"in Xn?Xn.value:Xn.textContent,ve=J.length;for(S=0;S<k&&R[S]===J[S];S++);var be=k-S;for(V=1;V<=be&&R[k-V]===J[ve-V];V++);return Ro=J.slice(S,1<V?1-V:void 0)}function so(){return!0}function Qn(){return!1}function an(S,R,k,V){this.dispatchConfig=S,this._targetInst=R,this.nativeEvent=k,S=this.constructor.Interface;for(var J in S)S.hasOwnProperty(J)&&((R=S[J])?this[J]=R(k):J==="target"?this.target=V:this[J]=k[J]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?so:Qn,this.isPropagationStopped=Qn,this}o(an.prototype,{preventDefault:function(){this.defaultPrevented=!0;var S=this.nativeEvent;S&&(S.preventDefault?S.preventDefault():typeof S.returnValue!="unknown"&&(S.returnValue=!1),this.isDefaultPrevented=so)},stopPropagation:function(){var S=this.nativeEvent;S&&(S.stopPropagation?S.stopPropagation():typeof S.cancelBubble!="unknown"&&(S.cancelBubble=!0),this.isPropagationStopped=so)},persist:function(){this.isPersistent=so},isPersistent:Qn,destructor:function(){var S=this.constructor.Interface,R;for(R in S)this[R]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Qn,this._dispatchInstances=this._dispatchListeners=null}}),an.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(S){return S.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},an.extend=function(S){function R(){}function k(){return V.apply(this,arguments)}var V=this;R.prototype=V.prototype;var J=new R;return o(J,k.prototype),k.prototype=J,k.prototype.constructor=k,k.Interface=o({},V.Interface,S),k.extend=V.extend,Tn(k),k},Tn(an);function Pi(S,R,k,V){if(this.eventPool.length){var J=this.eventPool.pop();return this.call(J,S,R,k,V),J}return new this(S,R,k,V)}function ga(S){if(!(S instanceof this))throw Error(d(279));S.destructor(),10>this.eventPool.length&&this.eventPool.push(S)}function Tn(S){S.eventPool=[],S.getPooled=Pi,S.release=ga}var Oo=an.extend({data:null}),lo=an.extend({data:null}),uo=[9,13,27,32],Wi=z&&"CompositionEvent"in window,Zr=null;z&&"documentMode"in document&&(Zr=document.documentMode);var Qo=z&&"TextEvent"in window&&!Zr,li=z&&(!Wi||Zr&&8<Zr&&11>
2=Zr),ma=" ",Fr={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(" ")}},Fi=!1;function Rn(S,R){switch(S){case"keyup":return uo.indexOf(R.keyCode)!==-1;case"keydown":return R.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ui(S){return S=S.detail,typeof S=="object"&&"data"in S?S.data:null}var tn=!1;function Jo(S,R){switch(S){case"compositionend":return ui(R);case"keypress":return R.which!==32?null:(Fi=!0,ma);case"textInput":return S=R.data,S===ma&&Fi?null:S;default:return null}}function $i(S,R){if(tn)return S==="compositionend"||!Wi&&Rn(S,R)?(S=Ci(),Ro=hn=Xn=null,tn=!1,S):null;switch(S){case"paste":return null;case"keypress":if(!(R.ctrlKey||R.altKey||R.metaKey)||R.ctrlKey&&R.altKey){if(R.char&&1<R.char.length)return R.char;if(R.which)return String.fromCharCode(R.which)}return null;case"compositionend":return li&&R.locale!=="ko"?null:R.data;default:return null}}var Jn={eventTypes:Fr,extractEvents:function(S,R,k,V){var J;if(Wi)e:{switch(S){case"compositionstart":var ve=Fr.compositionStart;break e;case"compositionend":ve=Fr.compositionEnd;break e;case"compositionupdate":ve=Fr.compositionUpdate;break e}ve=void 0}else tn?Rn(S,k)&&(ve=Fr.compositionEnd):S==="keydown"&&k.keyCode===229&&(ve=Fr.compositionStart);return ve?(li&&k.locale!=="ko"&&(tn||ve!==Fr.compositionStart?ve===Fr.compositionEnd&&tn&&(J=Ci()):(Xn=V,hn="value"in Xn?Xn.value:Xn.textContent,tn=!0)),ve=Oo.getPooled(ve,R,k,V),J?ve.data=J:(J=ui(k),J!==null&&(ve.data=J)),$n(ve),J=ve):J=null,(S=Qo?Jo(S,k):$i(S,k))?(R=lo.getPooled(Fr.beforeInput,R,k,V),R.data=S,$n(R)):R=null,J===null?R:R===null?J:[J,R]}},co={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 Ti(S){var R=S&&S.nodeName&&S.nodeName.toLowerCase();return R==="input"?!!co[S.type]:R==="textarea"}var Ri={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ya(S,R,k){return S=an.getPooled(Ri.change,S,R,k),S.type="change",G(k),$n(S),S}var ci=null,Bi=null;function ba(S){un(S)}function xo(S){var R=Si(S);if(ht(R))return S}function wa(S,R){if(S==="change")return R}var ea=!1;z&&(ea=$t("input")&&(!document.documentMode||9<document.documentMode));function Ln(){ci&&(ci.detachEvent("onpropertychange",zi),Bi=ci=null)}function zi(S){if(S.propertyName==="value"&&xo(Bi))if(S=ya(Bi,S,Pt(S)),fe)un(S);else{fe=!0;try{K(ba,S)}finally{fe=!1,Re()}}}function ka(S,R,k){S==="focus"?(Ln(),ci=R,Bi=k,ci.attachEvent("onpropertychange",zi)):S==="blur"&&Ln()}function On(S){if(S==="selectionchange"||S==="keyup"||S==="keydown")return xo(Bi)}function Hi(S,R){if(S==="click")return xo(R)}function di(S,R){if(S==="input"||S==="change")return xo(R)}var Sa={eventTypes:Ri,_isInputEventSupported:ea,extractEvents:function(S,R,k,V){var J=R?Si(R):window,ve=J.nodeName&&J.nodeName.toLowerCase();if(ve==="select"||ve==="input"&&J.type==="file")var be=wa;else if(Ti(J))if(ea)be=di;else{be=On;var De=ka}else(ve=J.nodeName)&&ve.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(be=Hi);if(be&&(be=be(S,R)))return ya(be,k,V);De&&De(S,J,R),S==="blur"&&(S=J._wrapperState)&&S.controlled&&J.type==="number"&&vt(J,"number",J.value)}},Hn=an.extend({view:null,detail:null}),Ea={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Oi(S){var R=this.nativeEvent;return R.getModifierState?R.getModifierState(S):(S=Ea[S])?!!R[S]:!1}function fo(){return Oi}var Vi=0,Io=0,jn=!1,po=!1,jr=Hn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,
2shiftKey:null,altKey:null,metaKey:null,getModifierState:fo,button:null,buttons:null,relatedTarget:function(S){return S.relatedTarget||(S.fromElement===S.srcElement?S.toElement:S.fromElement)},movementX:function(S){if("movementX"in S)return S.movementX;var R=Vi;return Vi=S.screenX,jn?S.type==="mousemove"?S.screenX-R:0:(jn=!0,0)},movementY:function(S){if("movementY"in S)return S.movementY;var R=Io;return Io=S.screenY,po?S.type==="mousemove"?S.screenY-R:0:(po=!0,0)}}),me=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),ke={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Xe={eventTypes:ke,extractEvents:function(S,R,k,V,J){var ve=S==="mouseover"||S==="pointerover",be=S==="mouseout"||S==="pointerout";if(ve&&(J&32)===0&&(k.relatedTarget||k.fromElement)||!be&&!ve)return null;if(ve=V.window===V?V:(ve=V.ownerDocument)?ve.defaultView||ve.parentWindow:window,be){if(be=R,R=(R=k.relatedTarget||k.toElement)?qi(R):null,R!==null){var De=Lr(R);(R!==De||R.tag!==5&&R.tag!==6)&&(R=null)}}else be=null;if(be===R)return null;if(S==="mouseout"||S==="mouseover")var ot=jr,st=ke.mouseLeave,Lt=ke.mouseEnter,Wt="mouse";else(S==="pointerout"||S==="pointerover")&&(ot=me,st=ke.pointerLeave,Lt=ke.pointerEnter,Wt="pointer");if(S=be==null?ve:Si(be),ve=R==null?ve:Si(R),st=ot.getPooled(st,be,k,V),st.type=Wt+"leave",st.target=S,st.relatedTarget=ve,k=ot.getPooled(Lt,R,k,V),k.type=Wt+"enter",k.target=ve,k.relatedTarget=S,V=be,Wt=R,V&&Wt)e:{for(ot=V,Lt=Wt,be=0,S=ot;S;S=pn(S))be++;for(S=0,R=Lt;R;R=pn(R))S++;for(;0<be-S;)ot=pn(ot),be--;for(;0<S-be;)Lt=pn(Lt),S--;for(;be--;){if(ot===Lt||ot===Lt.alternate)break e;ot=pn(ot),Lt=pn(Lt)}ot=null}else ot=null;for(Lt=ot,ot=[];V&&V!==Lt&&(be=V.alternate,!(be!==null&&be===Lt));)ot.push(V),V=pn(V);for(V=[];Wt&&Wt!==Lt&&(be=Wt.alternate,!(be!==null&&be===Lt));)V.push(Wt),Wt=pn(Wt);for(Wt=0;Wt<ot.length;Wt++)Xo(ot[Wt],"bubbled",st);for(Wt=V.length;0<Wt--;)Xo(V[Wt],"captured",k);return(J&64)===0?[st]:[st,k]}};function Je(S,R){return S===R&&(S!==0||1/S===1/R)||S!==S&&R!==R}var It=typeof Object.is=="function"?Object.is:Je,Bt=Object.prototype.hasOwnProperty;function rr(S,R){if(It(S,R))return!0;if(typeof S!="object"||S===null||typeof R!="object"||R===null)return!1;var k=Object.keys(S),V=Object.keys(R);if(k.length!==V.length)return!1;for(V=0;V<k.length;V++)if(!Bt.call(R,k[V])||!It(S[k[V]],R[k[V]]))return!1;return!0}var Nr=z&&"documentMode"in document&&11>=document.documentMode,Br={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Or=null,ei=null,Vn=null,ti=!1;function ho(S,R){var k=R.window===R?R.document:R.nodeType===9?R:R.ownerDocument;return ti||Or==null||Or!==Co(k)?null:(k=Or,"selectionStart"in k&&$o(k)?k={start:k.selectionStart,end:k.selectionEnd}:(k=(k.ownerDocument&&k.ownerDocument.defaultView||window).getSelection(),k={anchorNode:k.anchorNode,anchorOffset:k.anchorOffset,focusNode:k.focusNode,focusOffset:k.focusOffset}),Vn&&rr(Vn,k)?null:(Vn=k,S=an.getPooled(Br.select,ei,S,R),S.type="select",S.target=Or,$n(S),S))}var Ao={eventTypes:Br,extractEvents:function(S,R,k,V,J,ve){if(J=ve||(V.window===V?V.document:V.nodeType===9?V:V.ownerDocument),!(ve=!J)){e:{J=Ar(J),ve=N.onSelect;for(var be=0;be<ve.length;be++)if(!J.has(ve[be])){J=!1;break e}J=!0}ve=!J}if(ve)return null;switch(J=R?Si(R):window,S){case"focus":(Ti(J)||J.contentEditable==="true")&&(Or=J,ei=R,Vn=null);break;case"blur":Vn=ei=Or=null;break;case"mousedown":ti=!0;break;case"contextmenu":case"mouseup":case"dragend":return ti=!1,ho(k,V);case"selectionchange":if(Nr)break;case"keydown":case"keyup":return ho(k,V)}return null}},Ui=an.extend({animationName:null,elapsedTime:null,pseudoElement:null}),_=an.extend({clipboardData:function(S){return"clipboardData"in S?S.clipboardData:window.clipboardData}}
2),I=Hn.extend({relatedTarget:null});function W(S){var R=S.keyCode;return"charCode"in S?(S=S.charCode,S===0&&R===13&&(S=13)):S=R,S===10&&(S=13),32<=S||S===13?S:0}var X={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ne={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"},ye=Hn.extend({key:function(S){if(S.key){var R=X[S.key]||S.key;if(R!=="Unidentified")return R}return S.type==="keypress"?(S=W(S),S===13?"Enter":String.fromCharCode(S)):S.type==="keydown"||S.type==="keyup"?ne[S.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:fo,charCode:function(S){return S.type==="keypress"?W(S):0},keyCode:function(S){return S.type==="keydown"||S.type==="keyup"?S.keyCode:0},which:function(S){return S.type==="keypress"?W(S):S.type==="keydown"||S.type==="keyup"?S.keyCode:0}}),Le=jr.extend({dataTransfer:null}),Ke=Hn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:fo}),tt=an.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),St=jr.extend({deltaX:function(S){return"deltaX"in S?S.deltaX:"wheelDeltaX"in S?-S.wheelDeltaX:0},deltaY:function(S){return"deltaY"in S?S.deltaY:"wheelDeltaY"in S?-S.wheelDeltaY:"wheelDelta"in S?-S.wheelDelta:0},deltaZ:null,deltaMode:null}),Dt={eventTypes:qn,extractEvents:function(S,R,k,V){var J=nn.get(S);if(!J)return null;switch(S){case"keypress":if(W(k)===0)return null;case"keydown":case"keyup":S=ye;break;case"blur":case"focus":S=I;break;case"click":if(k.button===2)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Le;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Ke;break;case je:case Et:case At:S=Ui;break;case ir:S=tt;break;case"scroll":S=Hn;break;case"wheel":S=St;break;case"copy":case"cut":case"paste":S=_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=me;break;default:S=an}return R=S.getPooled(J,R,k,V),$n(R),R}};if(T)throw Error(d(101));T=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x();var Ut=wi;w=Ei,E=Ut,P=Si,q({SimpleEventPlugin:Dt,EnterLeaveEventPlugin:Xe,ChangeEventPlugin:Sa,SelectEventPlugin:Ao,BeforeInputEventPlugin:Jn});var Jt=[],Gr=-1;function er(S){0>Gr||(S.current=Jt[Gr],Jt[Gr]=null,Gr--)}function gr(S,R){Gr++,Jt[Gr]=S.current,S.current=R}var zr={},Hr={current:zr},xn={current:!1},vo=zr;function ko(S,R){var k=S.type.contextTypes;if(!k)return zr;var V=S.stateNode;if(V&&V.__reactInternalMemoizedUnmaskedChildContext===R)return V.__reactInternalMemoizedMaskedChildContext;var J={},ve;for(ve in k)J[ve]=R[ve];return V&&(S=S.stateNode,S.__reactInternalMemoizedUnmaskedChildContext=R,S.__reactInternalMemoizedMaskedChildContext=J),J}function vn(S){return S=S.childContextTypes,S!=null}function Ca(){er(xn),er(Hr)}function Da(S,R,k){if(Hr.current!==zr)throw Error(d(168));gr(Hr,R),gr(xn,k)}function Vr(S,R,k){var V=S.stateNode;if(S=R.childContextTypes,typeof V.getChildContext!="function")return k;V=V.getChildContext();for(var J in V)if(!(J in S))throw Error(d(108,re(R)||"Unknown",J));return o({},k,{},V)}function go(S){return S=(S=S.stateNode)&&S.__reactInternalMemoizedMergedChildContext||zr,vo=Hr.current,gr(Hr,S
vendor: 1,145 bytes, line 2
2),gr(xn,xn.current),!0}function Xa(S,R,k){var V=S.stateNode;if(!V)throw Error(d(169));k?(S=Vr(S,R,vo),V.__reactInternalMemoizedMergedChildContext=S,er(xn),er(Hr),gr(Hr,S)):er(xn),gr(xn,k)}var Ws=u.unstable_runWithPriority,Ma=u.unstable_scheduleCallback,Pa=u.unstable_cancelCallback,La=u.unstable_requestPaint,Na=u.unstable_now,Qu=u.unstable_getCurrentPriorityLevel,Qa=u.unstable_ImmediatePriority,Ll=u.unstable_UserBlockingPriority,jl=u.unstable_NormalPriority,Nl=u.unstable_LowPriority,ql=u.unstable_IdlePriority,Wl={},Ju=u.unstable_shouldYield,ec=La!==void 0?La:function(){},mo=null,Ja=null,Fs=!1,Fl=Na(),fi=1e4>Fl?Na:function(){return Na()-Fl};function ts(){switch(Qu()){case Qa:return 99;case Ll:return 98;case jl:return 97;case Nl:return 96;case ql:return 95;default:throw Error(d(332))}}function Bl(S){switch(S){case 99:return Qa;case 98:return Ll;case 97:return jl;case 96:return Nl;case 95:return ql;default:throw Error(d(332))}}function Do(S,R){return S=Bl(S),Ws(S,R)}function zl(S,R,k){return S=Bl(S),Ma(S,R,k)}function Hl(S){return mo===null?(mo=[S],Ja=Ma(Qa,Vl)):mo.push(S),Wl}function Gi(){if(Ja!==null){var S=Ja;Ja=null,Pa(S)}Vl()}
2function Vl(){if(!Fs&&mo!==null){Fs=!0;var S=0;try{var R=mo;Do(99,function(){for(;S<R.length;S++){var k=R[S];do k=k(!0);while(k!==null)}}),mo=null}catch(k){throw mo!==null&&(mo=mo.slice(S+1)),Ma(Qa,Gi),k}finally{Fs=!1}}}function rs(S,R,k){return k/=10,1073741821-(((1073741821-S+R/10)/k|0)+1)*k}function xi(S,R){if(S&&S.defaultProps){R=o({},R),S=S.defaultProps;for(var k in S)R[k]===void 0&&(R[k]=S[k])}return R}var os={current:null},as=null,$a=null,ss=null;function Bs(){ss=$a=as=null}function zs(S){var R=os.current;er(os),S.type._context._currentValue=R}function Ul(S,R){for(;S!==null;){var k=S.alternate;if(S.childExpirationTime<R)S.childExpirationTime=R,k!==null&&k.childExpirationTime<R&&(k.childExpirationTime=R);else if(k!==null&&k.childExpirationTime<R)k.childExpirationTime=R;else break;S=S.return}}function Ta(S,R){as=S,ss=$a=null,S=S.dependencies,S!==null&&S.firstContext!==null&&(S.expirationTime>=R&&(Zi=!0),S.firstContext=null)}function pi(S,R){if(ss!==S&&R!==!1&&R!==0)if((typeof R!="number"||R===1073741823)&&(ss=S,R=1073741823),R={context:S,observedBits:R,next:null},$a===null){if(as===null)throw Error(d(308));$a=R,as.dependencies={expirationTime:0,firstContext:R,responders:null}}else $a=$a.next=R;return S._currentValue}var Mo=!1;function Hs(S){S.updateQueue={baseState:S.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Vs(S,R){S=S.updateQueue,R.updateQueue===S&&(R.updateQueue={baseState:S.baseState,baseQueue:S.baseQueue,shared:S.shared,effects:S.effects})}function Lo(S,R){return S={expirationTime:S,suspenseConfig:R,tag:0,payload:null,callback:null,next:null},S.next=S}function jo(S,R){if(S=S.updateQueue,S!==null){S=S.shared;var k=S.pending;k===null?R.next=R:(R.next=k.next,k.next=R),S.pending=R}}function Gl(S,R){var k=S.alternate;k!==null&&Vs(k,S),S=S.updateQueue,k=S.baseQueue,k===null?(S.baseQueue=R.next=R,R.next=R):(R.next=k.next,k.next=R)}function qa(S,R,k,V){var J=S.updateQueue;Mo=!1;var ve=J.baseQueue,be=J.shared.pending;if(be!==null){if(ve!==null){var De=ve.next;ve.next=be.next,be.next=De}ve=be,J.shared.pending=null,De=S.alternate,De!==null&&(De=De.updateQueue,De!==null&&(De.baseQueue=be))}if(ve!==null){De=ve.next;var ot=J.baseState,st=0,Lt=null,Wt=null,hr=null;if(De!==null){var Sr=De;do{if(be=Sr.expirationTime,be<V){var gi={expirationTime:Sr.expirationTime,suspenseConfig:Sr.suspenseConfig,tag:Sr.tag,payload:Sr.payload,callback:Sr.callback,next:null};hr===null?(Wt=hr=gi,Lt=ot):hr=hr.next=gi,be>st&&(st=be)}else{hr!==null&&(hr=hr.next={expirationTime:1073741823,suspenseConfig:Sr.suspenseConfig,tag:Sr.tag,payload:Sr.payload,callback:Sr.callback,next:null}),zu(be,Sr.suspenseConfig);e:{var gn=S,Qe=Sr;switch(be=R,gi=k,Qe.tag){case 1:if(gn=Qe.payload,typeof gn=="function"){ot=gn.call(gi,ot,be);break e}ot=gn;break e;case 3:gn.effectTag=gn.effectTag&-4097|64;case 0:if(gn=Qe.payload,be=typeof gn=="function"?gn.call(gi,ot,be):gn,be==null)break e;ot=o({},ot,be);break e;case 2:Mo=!0}}Sr.callback!==null&&(S.effectTag|=32,be=J.effects,be===null?J.effects=[Sr]:be.push(Sr))}if(Sr=Sr.next,Sr===null||Sr===De){if(be=J.shared.pending,be===null)break;Sr=ve.next=be.next,be.next=De,J.baseQueue=ve=be,J.shared.pending=null}}while(!0)}hr===null?Lt=ot:hr.next=Wt,J.baseState=Lt,J.baseQueue=hr,Ms(st),S.expirationTime=st,S.memoizedState=ot}}function Kl(S,R,k){if(S=R.effects,R.effects=null,S!==null)for(R=0;R<S.length;R++){var V=S[R],J=V.callback;if(J!==null){if(V.callback=null,V=J,J=k,typeof V!="function")throw Error(d(191,V));V.call(J)}}}var Wa=ce.ReactCurrentBatchConfig,Zl=new l.Component().refs;function ls(S,R,k,V){R=S.memoizedState,k=k(V,R),k=k==null?R:o({},R,k),S.memoizedState=k,S.expirationTime===0&&(S.updateQueue.baseState=k)}var us={isMounted:function(S){return(S=S._reactInternalFiber)?Lr(S)===S:!1},enqueueSetState:function(S,R,k){S=S._reactInternalFiber;var V=Xi(),J=Wa.suspense;V=aa(V,S,J),J=Lo(V,J),J.payload=R,k!=null&&(J.callback=k),jo(S,J),Fo(S,V)},enqueueReplaceState:function(S,R,k){S=S._reactInternalFiber;var V=Xi(),J=Wa.suspense;V=aa(V,S,J),J=Lo(V,J),J.tag=1,J.payload=R,k!=null&&(J.callback=k),jo(S,J),Fo(S,V)},enqueueForceUpdate:function(S,R){S=S._reactInternalFiber;var k=Xi(),V=Wa.suspense;k=aa(k,S,V),V=Lo(k,V),V.tag=2,R!=null&&(V.callback=R),jo(S,V),Fo(S,k)}};function Yl(S,R,k,V,J,ve,be){return S=S.stateNode,typeof S.shouldComponentUpdate=="function"?S.shouldComponentUpdate(V,ve,be):R.prototype&&R.prototype.isPureReactComponent?!rr(k,V)||!rr(J,ve):!0}function Xl(S,R,k){var V=!1,J=zr,ve=R.contextType;return typeof ve=="object"&&ve!==null?ve=pi(ve):(J=vn(R)?vo:Hr.current,V=R.contextTypes,ve=(V=V!=null)?ko(S,J):zr),R=new R(k,ve),S.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=us,S.stateNode=R,R._reactInternalFiber=S,V&&(S=S.stateNode,S.__reactInternalMemoizedUnmaskedChildContext=J,S.__reactInternalMemoizedMaskedChildContext=ve),R}function Ql(S,R,k,V){S=R.state,typeof R.componentWillReceiveProps=="function"&&R.componentWillReceiveProps(k,V),typeof R.UNSAFE_componentWillReceiveProps=="function"&&R.UNSAFE_componentWillReceiveProps(k,V),R.state!==S&&us.enqueueReplaceState(R,R.state,null)}function Us(S,R,k,V){var J=S.stateNode;J.props=k,J.state=S.memoizedState,J.refs=Zl,Hs(S);var ve=R.contextType;typeof ve=="object"&&ve!==null?J.context=pi(ve):(ve=vn(R)?vo:Hr.current,J.context=ko(S,ve)),qa(S,k,J,V),J.state=S.memoizedState,ve=R.getDerivedStateFromProps,typeof ve=="function"&&(ls(S,R,ve,k),J.state=S.memoizedState),typeof R.getDerivedStateFromProps=="function"||typeof J.getSnapshotBeforeUpdate=="function"||typeof J.UNSAFE_componentWillMount!="function"&&typeof J.componentWillMount!="function"||(R=J.state,typeof J.componentWillMount=="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount=="function"&&J.UNSAFE_componentWillMount(),R!==J.state&&us.enqueueReplaceState(J,J.state,null),qa(S,k,J,V),J.state=S.memoizedState),typeof J.componentDidMount=="function"&&(S.effectTag|=4)}var cs=Array.isArray;function Fa(S,R,k){if(S=k.ref,S!==null&&typeof S!="function"&&typeof S!="object"){if(k._owner){if(k=k._owner,k){if(k.tag!==1)throw Error(d(309));var V=k.stateNode}if(!V)throw Error(d(147,S));var J=""+S;return R!==null&&R.ref!==null&&typeof R.ref=="function"&&R.ref._stringRef===J?R.ref:(R=function(ve){var be=V.refs;be===Zl&&(be=V.refs={}),ve===null?delete be[J]:be[J]=ve},R._stringRef=J,R)}
vendor: 4,527 bytes, line 2
2if(typeof S!="string")throw Error(d(284));if(!k._owner)throw Error(d(290,S))}return S}function ds(S,R){if(S.type!=="textarea")throw Error(d(31,Object.prototype.toString.call(R)==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":R,""))}function Jl(S){function R(Qe,Ue){if(S){var pt=Qe.lastEffect;pt!==null?(pt.nextEffect=Ue,Qe.lastEffect=Ue):Qe.firstEffect=Qe.lastEffect=Ue,Ue.nextEffect=null,Ue.effectTag=8}}function k(Qe,Ue){if(!S)return null;for(;Ue!==null;)R(Qe,Ue),Ue=Ue.sibling;return null}function V(Qe,Ue){for(Qe=new Map;Ue!==null;)Ue.key!==null?Qe.set(Ue.key,Ue):Qe.set(Ue.index,Ue),Ue=Ue.sibling;return Qe}function J(Qe,Ue){return Qe=ca(Qe,Ue),Qe.index=0,Qe.sibling=null,Qe}function ve(Qe,Ue,pt){return Qe.index=pt,S?(pt=Qe.alternate,pt!==null?(pt=pt.index,pt<Ue?(Qe.effectTag=2,Ue):pt):(Qe.effectTag=2,Ue)):Ue}function be(Qe){return S&&Qe.alternate===null&&(Qe.effectTag=2),Qe}function De(Qe,Ue,pt,Tt){return Ue===null||Ue.tag!==6?(Ue=xl(pt,Qe.mode,Tt),Ue.return=Qe,Ue):(Ue=J(Ue,pt),Ue.return=Qe,Ue)}function ot(Qe,Ue,pt,Tt){return Ue!==null&&Ue.elementType===pt.type?(Tt=J(Ue,pt.props),Tt.ref=Fa(Qe,Ue,pt),Tt.return=Qe,Tt):(Tt=Ls(pt.type,pt.key,pt.props,null,Qe.mode,Tt),Tt.ref=Fa(Qe,Ue,pt),Tt.return=Qe,Tt)}function st(Qe,Ue,pt,Tt){return Ue===null||Ue.tag!==4||Ue.stateNode.containerInfo!==pt.containerInfo||Ue.stateNode.implementation!==pt.implementation?(Ue=Il(pt,Qe.mode,Tt),Ue.return=Qe,Ue):(Ue=J(Ue,pt.children||[]),Ue.return=Qe,Ue)}function Lt(Qe,Ue,pt,Tt,Mt){return Ue===null||Ue.tag!==7?(Ue=Bo(pt,Qe.mode,Tt,Mt),Ue.return=Qe,Ue):(Ue=J(Ue,pt),Ue.return=Qe,Ue)}function Wt(Qe,Ue,pt){if(typeof Ue=="string"||typeof Ue=="number")return Ue=xl(""+Ue,Qe.mode,pt),Ue.return=Qe,Ue;if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case Ce:return pt=Ls(Ue.type,Ue.key,Ue.props,null,Qe.mode,pt),pt.ref=Fa(Qe,null,Ue),pt.return=Qe,pt;case Fe:return Ue=Il(Ue,Qe.mode,pt),Ue.return=Qe,Ue}if(cs(Ue)||_t(Ue))return Ue=Bo(Ue,Qe.mode,pt,null),Ue.return=Qe,Ue;ds(Qe,Ue)}return null}function hr(Qe,Ue,pt,Tt){var Mt=Ue!==null?Ue.key:null;if(typeof pt=="string"||typeof pt=="number")return Mt!==null?null:De(Qe,Ue,""+pt,Tt);if(typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case Ce:return pt.key===Mt?pt.type===He?Lt(Qe,Ue,pt.props.children,Tt,Mt):ot(Qe,Ue,pt,Tt):null;case Fe:return pt.key===Mt?st(Qe,Ue,pt,Tt):null}if(cs(pt)||_t(pt))return Mt!==null?null:Lt(Qe,Ue,pt,Tt,null);ds(Qe,pt)}return null}function Sr(Qe,Ue,pt,Tt,Mt){if(typeof Tt=="string"||typeof Tt=="number")return Qe=Qe.get(pt)||null,De(Ue,Qe,""+Tt,Mt);if(typeof Tt=="object"&&Tt!==null){switch(Tt.$$typeof){case Ce:return Qe=Qe.get(Tt.key===null?pt:Tt.key)||null,Tt.type===He?Lt(Ue,Qe,Tt.props.children,Mt,Tt.key):ot(Ue,Qe,Tt,Mt);case Fe:return Qe=Qe.get(Tt.key===null?pt:Tt.key)||null,st(Ue,Qe,Tt,Mt)}if(cs(Tt)||_t(Tt))return Qe=Qe.get(pt)||null,Lt(Ue,Qe,Tt,Mt,null);ds(Ue,Tt)}return null}function gi(Qe,Ue,pt,Tt){for(var Mt=null,Ft=null,Gt=Ue,yr=Ue=0,Ur=null;Gt!==null&&yr<pt.length;yr++){Gt.index>yr?(Ur=Gt,Gt=null):Ur=Gt.sibling;var ur=hr(Qe,Gt,pt[yr],Tt);if(ur===null){Gt===null&&(Gt=Ur);break}S&&Gt&&ur.alternate===null&&R(Qe,Gt),Ue=ve(ur,Ue,yr),Ft===null?Mt=ur:Ft.sibling=ur,Ft=ur,Gt=Ur}if(yr===pt.length)return k(Qe,Gt),Mt;if(Gt===null){for(;yr<pt.length;yr++)Gt=Wt(Qe,pt[yr],Tt),Gt!==null&&(Ue=ve(Gt,Ue,yr),Ft===null?Mt=Gt:Ft.sibling=Gt,Ft=Gt);return Mt}for(Gt=V(Qe,Gt);yr<pt.length;yr++)Ur=Sr(Gt,Qe,yr,pt[yr],Tt),Ur!==null&&(S&&Ur.alternate!==null&&Gt.delete(Ur.key===null?yr:Ur.key),Ue=ve(Ur,Ue,yr),Ft===null?Mt=Ur:Ft.sibling=Ur,Ft=Ur);return S&&Gt.forEach(function(zo){return R(Qe,zo)}),Mt}function gn(Qe,Ue,pt,Tt){var Mt=_t(pt);if(typeof Mt!="function")throw Error(d(150));if(pt=Mt.call(pt),pt==null)throw Error(d(151));for(var Ft=Mt=null,Gt=Ue,yr=Ue=0,Ur=null,ur=pt.next();Gt!==null&&!ur.done;yr++,ur=pt.next()){Gt.index>yr?(Ur=Gt,Gt=null):Ur=Gt.sibling;var zo=hr(Qe,Gt,ur.value,Tt);if(zo===null){Gt===null&&(Gt=Ur);break}S&&Gt&&zo.alternate===null&&R(Qe,Gt),Ue=ve(zo,Ue,yr),Ft===null?Mt=zo:Ft.sibling=zo,Ft=zo,Gt=Ur}if(ur.done)return k(Qe,Gt),Mt;if(Gt===null){for(;!ur.done;yr++,ur=pt.next())ur=Wt(Qe,ur.value,Tt),ur!==null&&(Ue=ve(ur,Ue,yr),Ft===null?Mt=ur:Ft.sibling=ur,Ft=ur);return Mt}for(Gt=V(Qe,Gt);!ur.done;yr++,ur=pt.next())ur=Sr(Gt,Qe,yr,ur.value,Tt),ur!==null&&(S&&ur.alternate!==null&&Gt.delete(ur.key===null?yr:ur.key),Ue=ve(ur,Ue,yr),Ft===null?Mt=ur:Ft.sibling=ur,Ft=ur);return S&&Gt.forEach(function(Rc){return R(Qe,Rc)}),Mt}return function(Qe,Ue,pt,Tt){var Mt=typeof pt=="object"&&pt!==null&&pt.type===
2He&&pt.key===null;Mt&&(pt=pt.props.children);var Ft=typeof pt=="object"&&pt!==null;if(Ft)switch(pt.$$typeof){case Ce:e:{for(Ft=pt.key,Mt=Ue;Mt!==null;){if(Mt.key===Ft){switch(Mt.tag){case 7:if(pt.type===He){k(Qe,Mt.sibling),Ue=J(Mt,pt.props.children),Ue.return=Qe,Qe=Ue;break e}break;default:if(Mt.elementType===pt.type){k(Qe,Mt.sibling),Ue=J(Mt,pt.props),Ue.ref=Fa(Qe,Mt,pt),Ue.return=Qe,Qe=Ue;break e}}k(Qe,Mt);break}else R(Qe,Mt);Mt=Mt.sibling}pt.type===He?(Ue=Bo(pt.props.children,Qe.mode,Tt,pt.key),Ue.return=Qe,Qe=Ue):(Tt=Ls(pt.type,pt.key,pt.props,null,Qe.mode,Tt),Tt.ref=Fa(Qe,Ue,pt),Tt.return=Qe,Qe=Tt)}return be(Qe);case Fe:e:{for(Mt=pt.key;Ue!==null;){if(Ue.key===Mt)if(Ue.tag===4&&Ue.stateNode.containerInfo===pt.containerInfo&&Ue.stateNode.implementation===pt.implementation){k(Qe,Ue.sibling),Ue=J(Ue,pt.children||[]),Ue.return=Qe,Qe=Ue;break e}else{k(Qe,Ue);break}else R(Qe,Ue);Ue=Ue.sibling}Ue=Il(pt,Qe.mode,Tt),Ue.return=Qe,Qe=Ue}return be(Qe)}if(typeof pt=="string"||typeof pt=="number")return pt=""+pt,Ue!==null&&Ue.tag===6?(k(Qe,Ue.sibling),Ue=J(Ue,pt),Ue.return=Qe,Qe=Ue):(k(Qe,Ue),Ue=xl(pt,Qe.mode,Tt),Ue.return=Qe,Qe=Ue),be(Qe);if(cs(pt))return gi(Qe,Ue,pt,Tt);if(_t(pt))return gn(Qe,Ue,pt,Tt);if(Ft&&ds(Qe,pt),typeof pt>"u"&&!Mt)switch(Qe.tag){case 1:case 0:throw Qe=Qe.type,Error(d(152,Qe.displayName||Qe.name||"Component"))}return k(Qe,Ue)}}var Ra=Jl(!0),Gs=Jl(!1),Ba={},Ki={current:Ba},za={current:Ba},Ha={current:Ba};function ta(S){if(S===Ba)throw Error(d(174));return S}function Ks(S,R){switch(gr(Ha,R),gr(za,S),gr(Ki,Ba),S=R.nodeType,S){case 9:case 11:R=(R=R.documentElement)?R.namespaceURI:Kt(null,"");break;default:S=S===8?R.parentNode:R,R=S.namespaceURI||null,S=S.tagName,R=Kt(R,S)}er(Ki),gr(Ki,R)}function Oa(){er(Ki),er(za),er(Ha)}function eu(S){ta(Ha.current);var R=ta(Ki.current),k=Kt(R,S.type);R!==k&&(gr(za,S),gr(Ki,k))}function Zs(S){za.current===S&&(er(Ki),er(za))}var Kr={current:0};function fs(S){for(var R=S;R!==null;){if(R.tag===13){var k=R.memoizedState;if(k!==null&&(k=k.dehydrated,k===null||k.data===ro||k.data===no))return R}else if(R.tag===19&&R.memoizedProps.revealOrder!==void 0){if((R.effectTag&64)!==0)return R}else if(R.child!==null){R.child.return=R,R=R.child;continue}if(R===S)break;for(;R.sibling===null;){if(R.return===null||R.return===S)return null;R=R.return}R.sibling.return=R.return,R=R.sibling}return null}function Ys(S,R){return{responder:S,props:R}}var ps=ce.ReactCurrentDispatcher,hi=ce.ReactCurrentBatchConfig,No=0,sn=null,In=null,An=null,hs=!1;function ri(){throw Error(d(321))}function Xs(S,R){if(R===null)return!1;for(var k=0;k<R.length&&k<S.length;k++)if(!It(S[k],R[k]))return!1;return!0}function Qs(S,R,k,V,J,ve){if(No=ve,sn=R,R.memoizedState=null,R.updateQueue=null,R.expirationTime=0,ps.current=S===null||S.memoizedState===null?tc:rc,S=k(V,J),R.expirationTime===No){ve=0;do{if(R.expirationTime=0,!(25>ve))throw Error(d(301));ve+=1,An=In=null,R.updateQueue=null,ps.current=nc,S=k(V,J)}while(R.expirationTime===No)}if(ps.current=_s,R=In!==null&&In.next!==null,No=0,An=In=sn=null,hs=!1,R)throw Error(d(300));return S}function xa(){var S={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?sn.memoizedState=An=S:An=An.next=S,An}function Ia(){if(In===null){var S=sn.alternate;S=S!==null?S.memoizedState:null}else S=In.next;var R=An===null?sn.memoizedState:An.next;if(R!==null)An=R,In=S;else{if(S===null)throw Error(d(310));In=S,S={memoizedState:In.memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},An===null?sn.memoizedState=An=S:An=An.next=S}return An}function ra(S,R){return typeof R=="function"?R(S):R}function vs(S){var R=Ia(),k=R.queue;if(k===null)throw Error(d(311));k.lastRenderedReducer=S;var V=In,J=V.baseQueue,ve=k.pending;if(ve!==null){if(J!==null){var be=J.next;J.next=ve.next,ve.next=be}V.baseQueue=J=ve,k.pending=null}if(J!==null){J=J.next,V=V.baseState;var De=be=ve=null,ot=J;do{var st=ot.expirationTime;if(st<No){var Lt={expirationTime:ot.expirationTime,suspenseConfig:ot.suspenseConfig,action:ot.action,eagerReducer:ot.eagerReducer,eagerState:ot.eagerState,next:null};De===null?(be=De=Lt,ve=V):De=De.next=Lt,st>sn.expirationTime&&(sn.expirationTime=st,Ms(st))}else De!==null&&(De=De.next={expirationTime:1073741823,suspenseConfig:ot.suspenseConfig,action:ot.action,eagerReducer:ot.eagerReducer,eagerState:ot.eagerState,next:null}),zu(st,ot.suspenseConfig),V=ot.eagerReducer===S?ot.eagerState:S(V,ot.action);ot=ot.next}
2while(ot!==null&&ot!==J);De===null?ve=V:De.next=be,It(V,R.memoizedState)||(Zi=!0),R.memoizedState=V,R.baseState=ve,R.baseQueue=De,k.lastRenderedState=V}return[R.memoizedState,k.dispatch]}function gs(S){var R=Ia(),k=R.queue;if(k===null)throw Error(d(311));k.lastRenderedReducer=S;var V=k.dispatch,J=k.pending,ve=R.memoizedState;if(J!==null){k.pending=null;var be=J=J.next;do ve=S(ve,be.action),be=be.next;while(be!==J);It(ve,R.memoizedState)||(Zi=!0),R.memoizedState=ve,R.baseQueue===null&&(R.baseState=ve),k.lastRenderedState=ve}return[ve,V]}function Js(S){var R=xa();return typeof S=="function"&&(S=S()),R.memoizedState=R.baseState=S,S=R.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:S},S=S.dispatch=lu.bind(null,sn,S),[R.memoizedState,S]}function tl(S,R,k,V){return S={tag:S,create:R,destroy:k,deps:V,next:null},R=sn.updateQueue,R===null?(R={lastEffect:null},sn.updateQueue=R,R.lastEffect=S.next=S):(k=R.lastEffect,k===null?R.lastEffect=S.next=S:(V=k.next,k.next=S,S.next=V,R.lastEffect=S)),S}function tu(){return Ia().memoizedState}function rl(S,R,k,V){var J=xa();sn.effectTag|=S,J.memoizedState=tl(1|R,k,void 0,V===void 0?null:V)}function il(S,R,k,V){var J=Ia();V=V===void 0?null:V;var ve=void 0;if(In!==null){var be=In.memoizedState;if(ve=be.destroy,V!==null&&Xs(V,be.deps)){tl(R,k,ve,V);return}}sn.effectTag|=S,J.memoizedState=tl(1|R,k,ve,V)}function ru(S,R){return rl(516,4,S,R)}function ys(S,R){return il(516,4,S,R)}function nu(S,R){return il(4,2,S,R)}function iu(S,R){if(typeof R=="function")return S=S(),R(S),function(){R(null)};if(R!=null)return S=S(),R.current=S,function(){R.current=null}}function ou(S,R,k){return k=k!=null?k.concat([S]):null,il(4,2,iu.bind(null,R,S),k)}function ol(){}function au(S,R){return xa().memoizedState=[S,R===void 0?null:R],S}function bs(S,R){var k=Ia();R=R===void 0?null:R;var V=k.memoizedState;return V!==null&&R!==null&&Xs(R,V[1])?V[0]:(k.memoizedState=[S,R],S)}function su(S,R){var k=Ia();R=R===void 0?null:R;var V=k.memoizedState;return V!==null&&R!==null&&Xs(R,V[1])?V[0]:(S=S(),k.memoizedState=[S,R],S)}function al(S,R,k){var V=ts();Do(98>V?98:V,function(){S(!0)}),Do(97<V?97:V,function(){var J=hi.suspense;hi.suspense=R===void 0?null:R;try{S(!1),k()}finally{hi.suspense=J}})}function lu(S,R,k){var V=Xi(),J=Wa.suspense;V=aa(V,S,J),J={expirationTime:V,suspenseConfig:J,action:k,eagerReducer:null,eagerState:null,next:null};var ve=R.pending;if(ve===null?J.next=J:(J.next=ve.next,ve.next=J),R.pending=J,ve=S.alternate,S===sn||ve!==null&&ve===sn)hs=!0,J.expirationTime=No,sn.expirationTime=No;else{if(S.expirationTime===0&&(ve===null||ve.expirationTime===0)&&(ve=R.lastRenderedReducer,ve!==null))try{var be=R.lastRenderedState,De=ve(be,k);if(J.eagerReducer=ve,J.eagerState=De,It(De,be))return}catch{}Fo(S,V)}}var _s={readContext:pi,useCallback:ri,useContext:ri,useEffect:ri,useImperativeHandle:ri,useLayoutEffect:ri,useMemo:ri,useReducer:ri,useRef
2:ri,useState:ri,useDebugValue:ri,useResponder:ri,useDeferredValue:ri,useTransition:ri},tc={readContext:pi,useCallback:au,useContext:pi,useEffect:ru,useImperativeHandle:function(S,R,k){return k=k!=null?k.concat([S]):null,rl(4,2,iu.bind(null,R,S),k)},useLayoutEffect:function(S,R){return rl(4,2,S,R)},useMemo:function(S,R){var k=xa();return R=R===void 0?null:R,S=S(),k.memoizedState=[S,R],S},useReducer:function(S,R,k){var V=xa();return R=k!==void 0?k(R):R,V.memoizedState=V.baseState=R,S=V.queue={pending:null,dispatch:null,lastRenderedReducer:S,lastRenderedState:R},S=S.dispatch=lu.bind(null,sn,S),[V.memoizedState,S]},useRef:function(S){var R=xa();return S={current:S},R.memoizedState=S},useState:Js,useDebugValue:ol,useResponder:Ys,useDeferredValue:function(S,R){var k=Js(S),V=k[0],J=k[1];return ru(function(){var ve=hi.suspense;hi.suspense=R===void 0?null:R;try{J(S)}finally{hi.suspense=ve}},[S,R]),V},useTransition:function(S){var R=Js(!1),k=R[0];return R=R[1],[au(al.bind(null,R,S),[R,S]),k]}},rc={readContext:pi,useCallback:bs,useContext:pi,useEffect:ys,useImperativeHandle:ou,useLayoutEffect:nu,useMemo:su,useReducer:vs,useRef:tu,useState:function(){return vs(ra)},useDebugValue:ol,useResponder:Ys,useDeferredValue:function(S,R){var k=vs(ra),V=k[0],J=k[1];return ys(function(){var ve=hi.suspense;hi.suspense=R===void 0?null:R;try{J(S)}finally{hi.suspense=ve}},[S,R]),V},useTransition:function(S){var R=vs(ra),k=R[0];return R=R[1],[bs(al.bind(null,R,S),[R,S]),k]}},nc={readContext:pi,useCallback:bs,useContext:pi,useEffect:ys,useImperativeHandle:ou,useLayoutEffect:nu,useMemo:su,useReducer:gs,useRef:tu,useState:function(){return gs(ra)},useDebugValue:ol,useResponder:Ys,useDeferredValue:function(S,R){var k=gs(ra),V=k[0],J=k[1];return ys(function(){var ve=hi.suspense;hi.suspense=R===void 0?null:R;try{J(S)}finally{hi.suspense=ve}},[S,R]),V},useTransition:function(S){var R=gs(ra),k=R[0];return R=R[1],[bs(al.bind(null,R,S),[R,S]),k]}},yo=null,qo=null,na=!1;function uu(S,R){var k=Qi(5,null,null,0);k.elementType="DELETED",k.type="DELETED",k.stateNode=R,k.return=S,k.effectTag=8,S.lastEffect!==null?(S.lastEffect.nextEffect=k,S.lastEffect=k):S.firstEffect=S.lastEffect=k}function cu(S,R){switch(S.tag){case 5:var k=S.type;return R=R.nodeType!==1||k.toLowerCase()!==R.nodeName.toLowerCase()?null:R,R!==null?(S.stateNode=R,!0):!1;case 6:return R=S.pendingProps===""||R.nodeType!==3?null:R,R!==null?(S.stateNode=R,!0):!1;case 13:return!1;default:return!1}}function sl(S){if(na){var R=qo;if(R){var k=R;if(!cu(S,R)){if(R=_i(k.nextSibling),!R||!cu(S,R)){S.effectTag=S.effectTag&-1025|2,na=!1,yo=S;return}uu(yo,k)}yo=S,qo=_i(R.firstChild)}else S.effectTag=S.effectTag&-1025|2,na=!1,yo=S}}function du(S){for(S=S.return;S!==null&&S.tag!==5&&S.tag!==3&&S.tag!==13;)S=S.return;yo=S}function ws(S){if(S!==yo)return!1;if(!na)return du(S),na=!0,!1;var R=S.type;if(S.tag!==5||R!=="head"&&R!=="body"&&!ji(R,S.memoizedProps))for(R=qo;R;)uu(S,R),R=_i(R.nextSibling);if(du(S),S.tag===13){if(S=S.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(d(317));e:{for(S=S.nextSibling,R=0;S;){if(S.nodeType===8){var k=S.data;if(k===to){if(R===0){qo=_i(S.nextSibling);break e}R--}else k!==To&&k!==no&&k!==ro||R++}S=S.nextSibling}qo=null}}else qo=yo?_i(S.stateNode.nextSibling):null;return!0}function ll(){qo=yo=null,na=!1}var ic=ce.ReactCurrentOwner,Zi=!1;function ni(S,R,k,V){R.child=S===null?Gs(R,null,k,V):Ra(R,S.child,k,V)}function fu(S,R,k,V,J){k=k.render;var ve=R.ref;return Ta(R,J),V=Qs(S,R,k,V,ve,J),S!==null&&!Zi?(R.updateQueue=S.updateQueue,R.effectTag&=-517,S.expirationTime<=J&&(S.expirationTime=0),bo(S,R,J)):(R.effectTag|=1,ni(S,R,V,J),R.child)}function pu(S,R,k,V,J,ve){if(S===null){var be=k.type;return typeof be=="function"&&!Ol(be)&&be.defaultProps===void 0&&k.compare===null&&k.defaultProps===void 0?(R.tag=15,R.type=be,hu(S,R,be,V,J,ve)):(S=Ls(k.type,null,V,null,R.mode,ve),S.ref=R.ref,S.return=R,R.child=S)}return be=S.child,J<ve&&(J=be.memoizedProps,k=k.compare,k=k!==null?k:rr,k(J,V)&&S.ref===R.ref)?bo(S,R,ve):(R.effectTag|=1,S=ca(be,V),S.ref=R.ref,S.return=R,R.child=S)}function hu(S,R,k,V,J,ve){return S!==null&&rr(S.memoizedProps,V)&&S.ref===R.ref&&(Zi=!1,J<ve)?(R.expirationTime=S.expirationTime,bo(S,R,ve)):ul(S,R,k,V,ve)}function vu(S,R){var k=R.ref;(S===null&&k!==null||S!==null&&S.ref!==k)&&(R.effectTag|=128)}function ul(S,R,k,V,J){var ve=vn(k)?vo:Hr.current;return ve=ko(R,ve),Ta(R,J),k=Qs(S,R,k,V,ve,J),S!==null&&!Zi?(R.updateQueue=S.updateQueue,R.effectTag&=-517,S.expirationTime<=J&&(S.expirationTime=0),bo(S,R,J)):(R.effectTag|=1,ni(S,R,k,J),R.child)}function gu(S,R,k,V,J){if(vn(k)){var ve=!0;go(R)}else ve=!1;if(Ta(R,J),R.stateNode===null)S!==null&&(S.alternate=null,R.alternate=null,R.effectTag|=2),Xl(R,k,V),Us(R,k,V,J),V=!0;else if(S===null){var be=R.stateNode,De=R.memoizedProps;be.props=De;var ot=be.context,st=k.contextType;typeof st=="object"&&st!==null?st=pi(st):(st=vn(k)?vo:Hr.current,st=ko(R,st));var Lt=k.getDerivedStateFromProps,Wt=typeof Lt=="function"||typeof be.getSnapshotBeforeUpdate=="function";Wt||typeof be.UNSAFE_componentWillReceiveProps!="function"&&typeof be.componentWillReceiveProps!="function"||(De!==V||ot!==st)&&Ql(R,be,V,st),Mo=!1;var hr=R.memoizedState;be.state=hr,qa(R,V,be,J),ot=R.memoizedState,De!==V||hr!==ot||xn.current||Mo?(typeof Lt=="function"&&(ls(R,k,Lt,V),ot=R.memoizedState),(De=M
2o||Yl(R,k,De,V,hr,ot,st))?(Wt||typeof be.UNSAFE_componentWillMount!="function"&&typeof be.componentWillMount!="function"||(typeof be.componentWillMount=="function"&&be.componentWillMount(),typeof be.UNSAFE_componentWillMount=="function"&&be.UNSAFE_componentWillMount()),typeof be.componentDidMount=="function"&&(R.effectTag|=4)):(typeof be.componentDidMount=="function"&&(R.effectTag|=4),R.memoizedProps=V,R.memoizedState=ot),be.props=V,be.state=ot,be.context=st,V=De):(typeof be.componentDidMount=="function"&&(R.effectTag|=4),V=!1)}else be=R.stateNode,Vs(S,R),De=R.memoizedProps,be.props=R.type===R.elementType?De:xi(R.type,De),ot=be.context,st=k.contextType,typeof st=="object"&&st!==null?st=pi(st):(st=vn(k)?vo:Hr.current,st=ko(R,st)),Lt=k.getDerivedStateFromProps,(Wt=typeof Lt=="function"||typeof be.getSnapshotBeforeUpdate=="function")||typeof be.UNSAFE_componentWillReceiveProps!="function"&&typeof be.componentWillReceiveProps!="function"||(De!==V||ot!==st)&&Ql(R,be,V,st),Mo=!1,ot=R.memoizedState,be.state=ot,qa(R,V,be,J),hr=R.memoizedState,De!==V||ot!==hr||xn.current||Mo?(typeof Lt=="function"&&(ls(R,k,Lt,V),hr=R.memoizedState),(Lt=Mo||Yl(R,k,De,V,ot,hr,st))?(Wt||typeof be.UNSAFE_componentWillUpdate!="function"&&typeof be.componentWillUpdate!="function"||(typeof be.componentWillUpdate=="function"&&be.componentWillUpdate(V,hr,st),typeof be.UNSAFE_componentWillUpdate=="function"&&be.UNSAFE_componentWillUpdate(V,hr,st)),typeof be.componentDidUpdate=="function"&&(R.effectTag|=4),typeof be.getSnapshotBeforeUpdate=="function"&&(R.effectTag|=256)):(typeof be.componentDidUpdate!="function"||De===S.memoizedProps&&ot===S.memoizedState||(R.effectTag|=4),typeof be.getSnapshotBeforeUpdate!="function"||De===S.memoizedProps&&ot===S.memoizedState||(R.effectTag|=256),R.memoizedProps=V,R.memoizedState=hr),be.props=V,be.state=hr,be.context=st,V=Lt):(typeof be.componentDidUpdate!="function"||De===S.memoizedProps&&ot===S.memoizedState||(R.effectTag|=4),typeof be.getSnapshotBeforeUpdate!="function"||De===S.memoizedProps&&ot===S.memoizedState||(R.effectTag|=256),V=!1);return cl(S,R,k,V,ve,J)}function cl(S,R,k,V,J,ve){vu(S,R);var be=(R.effectTag&64)!==0;if(!V&&!be)return J&&Xa(R,k,!1),bo(S,R,ve);V=R.stateNode,ic.current=R;var De=be&&typeof k.getDerivedStateFromError!="function"?null:V.render();return R.effectTag|=1,S!==null&&be?(R.child=Ra(R,S.child,null,ve),R.child=Ra(R,null,De,ve)):ni(S,R,De,ve),R.memoizedState=V.state,J&&Xa(R,k,!0),R.child}function mu(S){var R=S.stateNode;R.pendingContext?Da(S,R.pendingContext,R.pendingContext!==R.context):R.context&&Da(S,R.context,!1),Ks(S,R.containerInfo)}var dl={dehydrated:null,retryTime:0};function yu(S,R,k){var V=R.mode,J=R.pendingProps,ve=Kr.current,be=!1,De;if((De=(R.effectTag&64)!==0)||(De=(ve&2)!==0&&(S===null||S.memoizedState!==null)),De?(be=!0,R.effectTag&=-65):S!==null&&S.memoizedState===null||J.fallback===void 0||J.unstable_avoidThisFallback===!0||(ve|=1),gr(Kr,ve&1),S===null){if(J.fallback!==void 0&&sl(R),be){if(be=J.fallback,J=Bo(null,V,0,null),J.return=R,(R.mode&2)===0)for(S=R.memoizedState!==null?R.child.child:R.child,J.child=S;S!==null;)S.return=J,S=S.sibling;return k=Bo(be,V,k,null),k.return=R,J.sibling=k,R.memoizedState=dl,R.child=J,k}return V=J.children,R.memoizedState=null,R.child=Gs(R,null,V,k)}if(S.memoizedState!==null){if(S=S.child,V=S.sibling,be){if(J=J.fallback,k=ca(S,S.pendingProps),k.return=R,(R.mode&2)===0&&(be=R.memoizedState!==null?R.child.child:R.child,be!==S.child))for(k.child=be;be!==null;)be.return=k,be=be.sibling;return V=ca(V,J),V.return=R,k.sibling=V,k.childExpirationTime=0,R.memoizedState=dl,R.child=k,V}return k=Ra(R,S.child,J.children,k),R.memoizedState=null,R.child=k}if(S=S.child,be){if(be=J.fallback,J=Bo(null,V,0,null),J.return=R,J.child=S,S!==null&&(S.return=J),(R.mode&2)===0)for(S=R.memoizedState!==null?R.child.child:R.child,J.child=S;S!==null;)S.return=J,S=S.sibling;return k=Bo(be,V,k,null),k.return=R,J.sibling=k,k.effectTag|=2,J.childExpirationTime=0,R.memoizedState=dl,R.child=J,k}return R.memoizedState=null,R.child=Ra(R,S,J.children,k)}function bu(S,R){S.expirationTime<R&&(S.expirationTime=R);var k=S.alternate;
2k!==null&&k.expirationTime<R&&(k.expirationTime=R),Ul(S.return,R)}function fl(S,R,k,V,J,ve){var be=S.memoizedState;be===null?S.memoizedState={isBackwards:R,rendering:null,renderingStartTime:0,last:V,tail:k,tailExpiration:0,tailMode:J,lastEffect:ve}:(be.isBackwards=R,be.rendering=null,be.renderingStartTime=0,be.last=V,be.tail=k,be.tailExpiration=0,be.tailMode=J,be.lastEffect=ve)}function _u(S,R,k){var V=R.pendingProps,J=V.revealOrder,ve=V.tail;if(ni(S,R,V.children,k),V=Kr.current,(V&2)!==0)V=V&1|2,R.effectTag|=64;else{if(S!==null&&(S.effectTag&64)!==0)e:for(S=R.child;S!==null;){if(S.tag===13)S.memoizedState!==null&&bu(S,k);else if(S.tag===19)bu(S,k);else if(S.child!==null){S.child.return=S,S=S.child;continue}if(S===R)break e;for(;S.sibling===null;){if(S.return===null||S.return===R)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}V&=1}if(gr(Kr,V),(R.mode&2)===0)R.memoizedState=null;else switch(J){case"forwards":for(k=R.child,J=null;k!==null;)S=k.alternate,S!==null&&fs(S)===null&&(J=k),k=k.sibling;k=J,k===null?(J=R.child,R.child=null):(J=k.sibling,k.sibling=null),fl(R,!1,J,k,ve,R.lastEffect);break;case"backwards":for(k=null,J=R.child,R.child=null;J!==null;){if(S=J.alternate,S!==null&&fs(S)===null){R.child=J;break}S=J.sibling,J.sibling=k,k=J,J=S}fl(R,!0,k,null,ve,R.lastEffect);break;case"together":fl(R,!1,null,null,void 0,R.lastEffect);break;default:R.memoizedState=null}return R.child}function bo(S,R,k){S!==null&&(R.dependencies=S.dependencies);var V=R.expirationTime;if(V!==0&&Ms(V),R.childExpirationTime<k)return null;if(S!==null&&R.child!==S.child)throw Error(d(153));if(R.child!==null){for(S=R.child,k=ca(S,S.pendingProps),R.child=k,k.return=R;S.sibling!==null;)S=S.sibling,k=k.sibling=ca(S,S.pendingProps),k.return=R;k.sibling=null}return R.child}var wu,hl,Su,Eu;wu=function(S,R){for(var k=R.child;k!==null;){if(k.tag===5||k.tag===6)S.appendChild(k.stateNode);else if(k.tag!==4&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===R)break;for(;k.sibling===null;){if(k.return===null||k.return===R)return;k=k.return}k.sibling.return=k.return,k=k.sibling}},hl=function(){},Su=function(S,R,k,V,J){var ve=S.memoizedProps;if(ve!==V){var be=R.stateNode;switch(ta(Ki.current),S=null,k){case"input":ve=bt(be,ve),V=bt(be,V),S=[];break;case"option":ve=ft(be,ve),V=ft(be,V),S=[];break;case"select":ve=o({},ve,{value:void 0}),V=o({},V,{value:void 0}),S=[];break;case"textarea":ve=Nt(be,ve),V=Nt(be,V),S=[];break;default:typeof ve.onClick!="function"&&typeof V.onClick=="function"&&(be.onclick=bi)}Eo(k,V);var De,ot;k=null;for(De in ve)if(!V.hasOwnProperty(De)&&ve.hasOwnProperty(De)&&ve[De]!=null)if(De==="style")for(ot in be=ve[De],be)be.hasOwnProperty(ot)&&(k||(k={}),k[ot]="");else De!=="dangerouslySetInnerHTML"&&De!=="children"&&De!=="suppressContentEditableWarning"&&De!=="suppressHydrationWarning"&&De!=="autoFocus"&&(M.hasOwnProperty(De)?S||(S=[]):(S=S||[]).push(De,null));for(De in V){var st=V[De];if(be=ve?.[De],V.hasOwnProperty(De)&&st!==be&&(st!=null||be!=null))if(De==="style")if(be){for(ot in be)!be.hasOwnProperty(ot)||st&&st.hasOwnProperty(ot)||(k||(k={}),k[ot]="");for(ot in st)st.hasOwnProperty(ot)&&be[ot]!==st[ot]&&(k||(k={}),k[ot]=st[ot])}else k||(S||(S=[]),S.push(De,k)),k=st;else De==="dangerouslySetInnerHTML"?(st=st?st.__html:void 0,be=be?be.__html:void 0,st!=null&&be!==st&&(S=S||[]).push(De,st)):De==="children"?be===st||typeof st!="string"&&typeof st!="number"||(S=S||[]).push(De,""+st):De!=="suppressContentEditableWarning"&&De!=="suppressHydrationWarning"&&(M.hasOwnProperty(De)?(st!=null&&Yn(J,De),S||be===st||(S=[])):(S=S||[]).push(De,st))}k&&(S=S||[]).push("style",k),J=S,(R.updateQueue=J)&&(R.effectTag|=4)}},Eu=function(S,R,k,V){k!==V&&(R.effectTag|=4)};function Ss(S,R){switch(S.tailMode){case"hidden":R=S.tail;for(var k=null;R!==null;)R.alternate!==null&&(k=R),R=R.sibling;k===null?S.tail=null:k.sibling=null;break;case"collapsed":k=S.tail;for(var V=null;k!==null;)k.alternate!==null&&(V=k),k=k.sibling;V===null?R||S.tail===null?S.tail=null:S.tail.sibling=null:V.sibling=null}}function oc(S,R,k){var V=R.pendingProps;switch(R.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:return vn(R.type)&&Ca(),null;case 3:return Oa(),er(xn),er(Hr),k=R.stateNode,k.pendingContext&&(k.context=k.pendingContext,k.pendingContext=null),S!==null&&S.child!==null||!ws(R)||
2(R.effectTag|=4),hl(R),null;case 5:Zs(R),k=ta(Ha.current);var J=R.type;if(S!==null&&R.stateNode!=null)Su(S,R,J,V,k),S.ref!==R.ref&&(R.effectTag|=128);else{if(!V){if(R.stateNode===null)throw Error(d(166));return null}if(S=ta(Ki.current),ws(R)){V=R.stateNode,J=R.type;var ve=R.memoizedProps;switch(V[Mn]=R,V[zn]=ve,J){case"iframe":case"object":case"embed":Ir("load",V);break;case"video":case"audio":for(S=0;S<br.length;S++)Ir(br[S],V);break;case"source":Ir("error",V);break;case"img":case"image":case"link":Ir("error",V),Ir("load",V);break;case"form":Ir("reset",V),Ir("submit",V);break;case"details":Ir("toggle",V);break;case"input":xt(V,ve),Ir("invalid",V),Yn(k,"onChange");break;case"select":V._wrapperState={wasMultiple:!!ve.multiple},Ir("invalid",V),Yn(k,"onChange");break;case"textarea":jt(V,ve),Ir("invalid",V),Yn(k,"onChange")}Eo(J,ve),S=null;for(var be in ve)if(ve.hasOwnProperty(be)){var De=ve[be];be==="children"?typeof De=="string"?V.textContent!==De&&(S=["children",De]):typeof De=="number"&&V.textContent!==""+De&&(S=["children",""+De]):M.hasOwnProperty(be)&&De!=null&&Yn(k,be)}switch(J){case"input":ct(V),Me(V,ve,!0);break;case"textarea":ct(V),mt(V);break;case"select":case"option":break;default:typeof ve.onClick=="function"&&(V.onclick=bi)}k=S,R.updateQueue=k,k!==null&&(R.effectTag|=4)}else{switch(be=k.nodeType===9?k:k.ownerDocument,S===Uo&&(S=Er(J)),S===Uo?J==="script"?(S=be.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild)):typeof V.is=="string"?S=be.createElement(J,{is:V.is}):(S=be.createElement(J),J==="select"&&(be=S,V.multiple?be.multiple=!0:V.size&&(be.size=V.size))):S=be.createElementNS(S,J),S[Mn]=R,S[zn]=V,wu(S,R,!1,!1),R.stateNode=S,be=Wn(J,V),J){case"iframe":case"object":case"embed":Ir("load",S),De=V;break;case"video":case"audio":for(De=0;De<br.length;De++)Ir(br[De],S);De=V;break;case"source":Ir("error",S),De=V;break;case"img":case"image":case"link":Ir("error",S),Ir("load",S),De=V;break;case"form":Ir("reset",S),Ir("submit",S),De=V;break;case"details":Ir("toggle",S),De=V;break;case"input":xt(S,V),De=bt(S,V),Ir("invalid",S),Yn(k,"onChange");break;case"option":De=ft(S,V);break;case"select":S._wrapperState={wasMultiple:!!V.multiple},De=o({},V,{value:void 0}),Ir("invalid",S),Yn(k,"onChange");break;case"textarea":jt(S,V),De=Nt(S,V),Ir("invalid",S),Yn(k,"onChange");break;default:De=V}Eo(J,De);var ot=De;for(ve in ot)if(ot.hasOwnProperty(ve)){var st=ot[ve];ve==="style"?eo(S,st):ve==="dangerouslySetInnerHTML"?(st=st?st.__html:void 0,st!=null&&Cr(S,st)):ve==="children"?typeof st=="string"?(J!=="textarea"||st!=="")&&Yr(S,st):typeof st=="number"&&Yr(S,""+st):ve!=="suppressContentEditableWarning"&&ve!=="suppressHydrationWarning"&&ve!=="autoFocus"&&(M.hasOwnProperty(ve)?st!=null&&Yn(k,ve):st!=null&&ue(S,ve,st,be))}switch(J){case"input":ct(S),Me(S,V,!1);break;case"textarea":ct(S),mt(S);break;case"option":V.value!=null&&S.setAttribute("value",""+Pe(V.value));break;case"select":S.multiple=!!V.multiple,k=V.value,k!=null?wt(S,!!V.multiple,k,!1):V.defaultValue!=null&&wt(S,!!V.multiple,V.defaultValue,!0);break;default:typeof De.onClick=="function"&&(S.onclick=bi)}Go(J,V)&&(R.effectTag|=4)}R.ref!==null&&(R.effectTag|=128)}return null;case 6:if(S&&R.stateNode!=null)Eu(S,R,S.memoizedProps,V);else{if(typeof V!="string"&&R.stateNode===null)throw Error(d(166));k=ta(Ha.current),ta(Ki.current),ws(R)?(k=R.stateNode,V=R.memoizedProps,k[Mn]=R,k.nodeValue!==V&&(R.effectTag|=4)):(k=(k.nodeType===9?k:k.ownerDocument).createTextNode(V),k[Mn]=R,R.stateNode=k)}return null;case 13:return er(Kr),V=R.memoizedState,(R.effectTag&64)!==0?(R.expirationTime=k,R):(k=V!==null,V=!1,S===null?R.memoizedProps.fallback!==void 0&&ws(R):(J=S.memoizedState,V=J!==null,k||J===null||(J=S.child.sibling,J!==null&&(ve=R.firstEffect,ve!==null?(R.firstEffect=J,J.nextEffect=ve):(R.firstEffect=R.lastEffect=J,J.nextEffect=null),J.effectTag=8))),k&&!V&&(R.mode&2)!==0&&(S===null&&R.memoizedProps.unstable_avoidThisFallback!==!0||(Kr.current&1)!==0?fn===ia&&(fn=Ps):((fn===ia||fn===Ps)&&(fn=$s),Ua!==0&&ii!==null&&(da(ii,Un),Zu(ii,Ua)))),(k||V)&&(R.effectTag|=4),null);case 4:return Oa(),hl(R),null;case 10:return zs(R),null;case 17:return vn(R.type)&&Ca(),null;case 19:if(er(Kr),V=R.memoizedState,V===null)return null;if(J=(R.effectTag&64)!==0,ve=V.rendering,ve===null){if(J)Ss(V,!1);else if(fn!==ia||S!==null&&(S.effectTag&64)!==0)for(ve=R.child;ve!==null;){if(S=fs(ve),S!==null){for(R.effectTag|=64,Ss(V,!1),J=S.updateQueue,J!==null&&(R.updateQueue=J,R.effectTag|=4),V.lastEffect===null&&(R.firstEffect=null),R.lastEffect=V.lastEffect,V=R.child;V!==null;)J=V,ve=k,J.effectTag&=2,J.nextEffect=null,J.firstEffect=null,J.lastEffect=null,S=J.alternate,S===null?(J.childExpirationTime=0,J.expirationTime=ve,J.child=null,J.memoizedProps=null,J.memoizedState=null,J.updateQueue=null,J.dependencies=null):(J.childExpirationTime=S.childExpirationTime,J.expirationTime=S.expirationTime,J.child=S.child,J.memoizedProps=S.memoizedProps,J.memoizedState=S.memoizedState,J.updateQueue=S.updateQueue,ve=S.dependencies,J.dependencies=ve===null?null:{expirationTime:ve.expirationTime,firstContext:ve.firstContext,responders:ve.responders}),V=V.sibling;return gr(Kr,Kr.current&1|2),R.child}ve=ve.sibling}}else{if(!J)if(S=fs(ve),S!==null){if(R.effectTag|=64,J=!0,k=S.updateQueue,k!==null&&(R.updateQueue=k,R.effectTag|=4),Ss(V,!0),V.tail===null&&V.tailMode==="hidden"&&!ve.alternate)return R=R.lastEffect=V.lastEffect,R!==null&&(R.nextEffect=null),null}else 2*fi()-V.renderingStartTime>V.tailExpiration&&1<k&&(R.effectTag|=64,J=!0,Ss(V,!1),R.expirationTime=R.childExpirationTime=k-1);V.isBackwards?(ve.sibling=R.child,R.child=ve):(k=V.last,k!==null?k.sibling=ve:R.child=ve,V.last=ve)}return V.tail!==null?(V.tailExpiration===0&&(V.tailExpiration=fi()+500),k=V.tail,V.rendering=k,V.tail=k.sibling,V.lastEffect=R.lastEffect,V.renderingStartTime=fi(),k.sibling=null,R=Kr.current,gr(Kr,J?R&1|2:R&1),k):null}throw Error(d(156,R.tag))}function ac(S){switch(S.tag){case 1:vn(S.type)&&Ca();var R=S.effectTag;return R&4096?(S.effectTag=R&-4097|64,S):null;case 3:if(Oa(),er(xn),er(Hr),R=S.effectTag,(R&64)!==0)throw Error(d(285));return S.effectTag=R&-4097|64,S;case 5:return Zs(S),null;case 13:return er(Kr),R=S.effectTag,R&4096?(S.effectTag=R&-4097|64,S):null;case 19:return er(Kr),null;case 4:return Oa(),null;case 10:return zs(S),null;default:return null}}function vl(S,R){return{value:S,source:R,stack:he(R)}}var sc=typeof WeakSet=="function"?WeakSet:Set;function gl(S,R){var k=R.source,V=R.stack;V===null&&k!==null&&(V=he(k)),k!==null&&re(k.type),R=R.value,S!==null&&S.tag===1&&re(S.type);try{console.error(R)}catch(J){setTimeout(function(){throw J})}}function lc(S,R){try{R.props=S.memoizedProps,R.state=S.memoizedState,R.componentWillUnmount()}catch(k){ua(S,k)}}function Cu(S){var R=S.ref;if(R!==null)if(typeof R=="function")try{R(null)}catch(k){ua(S,k)}else R.current=null}function uc(S,R){switch(R.tag){case 0:case 11:case 15:case 22:return;case 1:if(R.effectTag&256&&S!==null){var k=S.memoizedProps,V=S.memoizedState;S=R.stateNode,R=S.getSnapshotBeforeUpdate(R.elementType===R.type?k:xi(R.type,k),V),S.__reactInternalSnapshotBeforeUpdate=R}return;
2case 3:case 5:case 6:case 4:case 17:return}throw Error(d(163))}function Pu(S,R){if(R=R.updateQueue,R=R!==null?R.lastEffect:null,R!==null){var k=R=R.next;do{if((k.tag&S)===S){var V=k.destroy;k.destroy=void 0,V!==void 0&&V()}k=k.next}while(k!==R)}}function $u(S,R){if(R=R.updateQueue,R=R!==null?R.lastEffect:null,R!==null){var k=R=R.next;do{if((k.tag&S)===S){var V=k.create;k.destroy=V()}k=k.next}while(k!==R)}}function cc(S,R,k){switch(k.tag){case 0:case 11:case 15:case 22:$u(3,k);return;case 1:if(S=k.stateNode,k.effectTag&4)if(R===null)S.componentDidMount();else{var V=k.elementType===k.type?R.memoizedProps:xi(k.type,R.memoizedProps);S.componentDidUpdate(V,R.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}R=k.updateQueue,R!==null&&Kl(k,R,S);return;case 3:if(R=k.updateQueue,R!==null){if(S=null,k.child!==null)switch(k.child.tag){case 5:S=k.child.stateNode;break;case 1:S=k.child.stateNode}Kl(k,R,S)}return;case 5:S=k.stateNode,R===null&&k.effectTag&4&&Go(k.type,k.memoizedProps)&&S.focus();return;case 6:return;case 4:return;case 12:return;case 13:k.memoizedState===null&&(k=k.alternate,k!==null&&(k=k.memoizedState,k!==null&&(k=k.dehydrated,k!==null&&yi(k))));return;case 19:case 17:case 20:case 21:return}throw Error(d(163))}function Tu(S,R,k){switch(typeof Rl=="function"&&Rl(R),R.tag){case 0:case 11:case 14:case 15:case 22:if(S=R.updateQueue,S!==null&&(S=S.lastEffect,S!==null)){var V=S.next;Do(97<k?97:k,function(){var J=V;do{var ve=J.destroy;if(ve!==void 0){var be=R;try{ve()}catch(De){ua(be,De)}}J=J.next}while(J!==V)})}break;case 1:Cu(R),k=R.stateNode,typeof k.componentWillUnmount=="function"&&lc(R,k);break;case 5:Cu(R);break;case 4:Iu(S,R,k)}}function Ru(S){var R=S.alternate;S.return=null,S.child=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.alternate=null,S.firstEffect=null,S.lastEffect=null,S.pendingProps=null,S.memoizedProps=null,S.stateNode=null,R!==null&&Ru(R)}function Ou(S){return S.tag===5||S.tag===3||S.tag===4}function xu(S){e:{for(var R=S.return;R!==null;){if(Ou(R)){var k=R;break e}R=R.return}throw Error(d(160))}switch(R=k.stateNode,k.tag){case 5:var V=!1;break;case 3:R=R.containerInfo,V=!0;break;case 4:R=R.containerInfo,V=!0;break;default:throw Error(d(161))}k.effectTag&16&&(Yr(R,""),k.effectTag&=-17);e:t:for(k=S;;){for(;k.sibling===null;){if(k.return===null||Ou(k.return)){k=null;break e}k=k.return}for(k.sibling.return=k.return,k=k.sibling;k.tag!==5&&k.tag!==6&&k.tag!==18;){if(k.effectTag&2||k.child===null||k.tag===4)continue t;k.child.return=k,k=k.child}if(!(k.effectTag&2)){k=k.stateNode;break e}}V?ml(S,k,R):yl(S,k,R)}function ml(S,R,k){var V=S.tag,J=V===5||V===6;if(J)S=J?S.stateNode:S.stateNode.instance,R?k.nodeType===8?k.parentNode.insertBefore(S,R):k.insertBefore(S,R):(k.nodeType===8?(R=k.parentNode,R.insertBefore(S,k)):(R=k,R.appendChild(S)),k=k._reactRootContainer,k!=null||R.onclick!==null||(R.onclick=bi));else if(V!==4&&(S=S.child,S!==null))for(ml(S,R,k),S=S.sibling;S!==null;)ml(S,R,k),S=S.sibling}function yl(S,R,k){var V=S.tag,J=V===5||V===6;if(J)S=J?S.stateNode:S.stateNode.instance,R?k.insertBefore(S,R):k.appendChild(S);else if(V!==4&&(S=S.child,S!==null))for(yl(S,R,k),S=S.sibling;S!==null;)yl(S,R,k),S=S.sibling}function Iu(S,R,k){for(var V=R,J=!1,ve,be;;){if(!J){J=V.return;e:for(;;){if(J===null)throw Error(d(160));switch(ve=J.stateNode,J.tag){case 5:be=!1;break e;case 3:ve=ve.containerInfo,be=!0;break e;case 4:ve=ve.containerInfo,be=!0;break e}J=J.return}J=!0}if(V.tag===5||V.tag===6){e:for(var De=S,ot=V,st=k,Lt=ot;;)if(Tu(De,Lt,st),Lt.child!==null&&Lt.tag!==4)Lt.child.return=Lt,Lt=Lt.child;else{if(Lt===ot)break e;for(;Lt.sibling===null;){if(Lt.return===null||Lt.return===ot)break e;Lt=Lt.return}Lt.sibling.return=Lt.return,Lt=Lt.sibling}be?(De=ve,ot=V.stateNode,De.nodeType===8?De.parentNode.removeChild(ot):De.removeChild(ot)):ve.removeChild(V.stateNode)}else if(V.tag===4){if(V.child!==null){ve=V.stateNode.containerInfo,be=!0,V.child.return=V,V=V.child;continue}}else if(Tu(S,V,k),V.child!==null){V.child.return=V,V=V.child;continue}if(V===R)break;for(;V.sibling===null;){if(V.return===null||V.return===R)return;V=V.return,V.tag===4&&(J=!1)}V.sibling.return=V.return,V=V.sibling}}function bl(S,R){switch(R.tag){case 0:case 11:case 14:case 15:case 22:Pu(3,R);return;case 1:return;case 5:var k=R.stateNode;if(k!=null){var V=R.memoizedProps,J=S!==null?S.memoizedProps:V;S=R.type;var ve=R.updateQueue;if(R.updateQueue=null,ve!==null){for(k[zn]=V,S==="input"&&V.type==="radio"&&V.name!=null&&Rt(k,V),Wn(S,J),R=Wn(S,V),J=0;J<ve.length;J+=2){var be=ve[J],De=ve[J+1];be==="style"?eo(k,De):be==="dangerouslySetInnerHTML"?Cr(k,De):be==="children"?Yr(k,De):ue(k,be,De,R)}switch(S){case"input":ut(k,V);break;case"textarea":Ct(k,V);break;case"select":R=k._wrapperState.wasMultiple,k._wrapperState.wasMultiple=!!V.multiple,S=V.value,S!=null?wt(k,!!V.multiple,S,!1):R!==!!V.multiple&&(V.defaultValue!=null?wt(k,!!V.multiple,V.defaultValue,!0):wt(k,!!V.multiple,V.multiple?[]:"",!1))}}}return;case 6:if(R.stateNode===null)throw Error(d(162));R.stateNode.nodeValue=R.memoizedProps;return;case 3:R=R.stateNode,R.hydrate&&(R.hydrate=!1,yi(R.containerInfo));return;case 12:return;case 13:if(k=R,R.memoizedState===null?V=!1:(V=!0,k=R.child,Sl=fi()),k!==null)e:for(S=k;;){if(S.tag===5)ve=S.stateNode,V?(ve=ve.style,typeof ve.setProperty=="function"?ve.setProperty("display","none","important"):ve.display="none"):(ve=S.stateNode,J=S.memoizedProps.style,J=J!=null&&J.hasOwnProperty("display")?J.display:null,ve.style.display=Di("display",J));else if(S.tag===6)S.stateNode.nodeValue=V?"":S.memoizedProps;else if(S.tag===13&&S.memoizedState!==null&&S.memoizedState.dehydrated===null){ve=S.child.sibling,ve.return=S,S=ve;continue}else if(S.child!==null){S.child.return=S,S=S.child;continue}if(S===k)break;for(;S.sibling===null;){if(S.return===null||S.return===k)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}Au(R);return;case 19:Au(R);return;case 17:return}throw Error(d(163))}function Au(S){var R=S.updateQueue;if(R!==null){S.updateQueue=null;var k=S.stateNode;k===null&&(k=S.stateNode=new sc),R.forEach(function(V){var J=_c.bind(null,S,V);k.has(V)||(k.add(V),V.then(J,J))})}}var dc=typeof WeakMap=="function"?WeakMap:Map;function ku(S,R,k){k=Lo(k,null),k.tag=3,k.payload={element:null};var V=R.value;return k.callback=function(){xs||(xs=!0,El=V),gl(S,R)},k}function Du(S,R,k){k=Lo(k,null),k.tag=3;var V=S.type.getDerivedStateFromError;if(typeof V=="function"){var J=R.value;k.payload=function(){return gl(S,R),V(J)}}var ve=S.stateNode;return ve!==null&&typeof ve.componentDidCatch=="function"&&(k.callback=function(){typeof V!="function"&&(Wo===null?Wo=new Set([this]):Wo.add(this),gl(S,R));var be=R.stack;this.componentDidCatch(R.value,{componentStack:be!==null?be:""})}),k}var fc=Math.ceil,Es=ce.ReactCurrentDispatcher,Mu=ce.ReactCurrentOwner,dn=0,_l=8,Ii=16,Yi=32,ia=0,Cs=1,Lu=2,Ps=3,$s=4,wl=5,Xt=dn,ii=null,nr=null,Un=0,fn=ia,Ts=null,_o=1073741823,Va=1073741823,Rs=null,Ua=0,Os=!1,Sl=0,ju=500,zt=null,xs=!1,El=null,Wo=null,Is=!1,Ga=null,Ka=90,oa=null,Za=0,Cl=null,As=0;function Xi(){return(Xt&(Ii|Yi))!==dn?1073741821-(fi()/10|0):As!==0?As:As=1073741821-(fi()/10|0)}function aa(S,R,k){if(R=R.mode,(R&2)===0)return 1073741823;var V=ts();if((R&4)===0)return V===99?1073741823:1073741822;if((Xt&Ii)!==dn)return Un;if(k!==null)S=rs(S,k.timeoutMs|0||5e3,250);else switch(V){case 99:S=1073741823;break;case 98:S=rs(S,150,100);break;case 97:case 96:S=rs(S,5e3,250);break;case 95:S=2;break;default:throw Error(d(326))}return ii!==null&&S===Un&&--S,S}function Fo(S,R){if(50<Za)throw Za=0,Cl=null,Error(d(185));if(S=ks(S,R),S!==null){var k=ts();R===1073741823?(Xt&_l)!==dn&&(Xt&(Ii|Yi))===dn?Pl(S):(oi(S),Xt===dn&&Gi()):oi(S),(Xt&4)===dn||k!==98&&k!==99||(oa===null?oa=new Map([[S,R]]):(k=oa.get(S),(k===void 0||k>R)&&oa.set(S,R)))}}function ks(S,R){S.expirationTime<R&&(S.expirationTime=R);var k=S.alternate;
2k!==null&&k.expirationTime<R&&(k.expirationTime=R);var V=S.return,J=null;if(V===null&&S.tag===3)J=S.stateNode;else for(;V!==null;){if(k=V.alternate,V.childExpirationTime<R&&(V.childExpirationTime=R),k!==null&&k.childExpirationTime<R&&(k.childExpirationTime=R),V.return===null&&V.tag===3){J=V.stateNode;break}V=V.return}return J!==null&&(ii===J&&(Ms(R),fn===$s&&da(J,Un)),Zu(J,R)),J}function Ds(S){var R=S.lastExpiredTime;if(R!==0||(R=S.firstPendingTime,!Ku(S,R)))return R;var k=S.lastPingedTime;return S=S.nextKnownPendingLevel,S=k>S?k:S,2>=S&&R!==S?0:S}function oi(S){if(S.lastExpiredTime!==0)S.callbackExpirationTime=1073741823,S.callbackPriority=99,S.callbackNode=Hl(Pl.bind(null,S));else{var R=Ds(S),k=S.callbackNode;if(R===0)k!==null&&(S.callbackNode=null,S.callbackExpirationTime=0,S.callbackPriority=90);else{var V=Xi();if(R===1073741823?V=99:R===1||R===2?V=95:(V=10*(1073741821-R)-10*(1073741821-V),V=0>=V?99:250>=V?98:5250>=V?97:95),k!==null){var J=S.callbackPriority;if(S.callbackExpirationTime===R&&J>=V)return;k!==Wl&&Pa(k)}S.callbackExpirationTime=R,S.callbackPriority=V,R=R===1073741823?Hl(Pl.bind(null,S)):zl(V,Nu.bind(null,S),{timeout:10*(1073741821-R)-fi()}),S.callbackNode=R}}}function Nu(S,R){if(As=0,R)return R=Xi(),Al(S,R),oi(S),null;var k=Ds(S);if(k!==0){if(R=S.callbackNode,(Xt&(Ii|Yi))!==dn)throw Error(d(327));if(Aa(),S===ii&&k===Un||sa(S,k),nr!==null){var V=Xt;Xt|=Ii;var J=Bu();do try{vc();break}catch(De){Fu(S,De)}while(!0);if(Bs(),Xt=V,Es.current=J,fn===Cs)throw R=Ts,sa(S,k),da(S,k),oi(S),R;if(nr===null)switch(J=S.finishedWork=S.current.alternate,S.finishedExpirationTime=k,V=fn,ii=null,V){case ia:case Cs:throw Error(d(345));case Lu:Al(S,2<k?2:k);break;case Ps:if(da(S,k),V=S.lastSuspendedTime,k===V&&(S.nextKnownPendingLevel=$l(J)),_o===1073741823&&(J=Sl+ju-fi(),10<J)){if(Os){var ve=S.lastPingedTime;if(ve===0||ve>=k){S.lastPingedTime=k,sa(S,k);break}}if(ve=Ds(S),ve!==0&&ve!==k)break;if(V!==0&&V!==k){S.lastPingedTime=V;break}S.timeoutHandle=Ko(la.bind(null,S),J);break}la(S);break;case $s:if(da(S,k),V=S.lastSuspendedTime,k===V&&(S.nextKnownPendingLevel=$l(J)),Os&&(J=S.lastPingedTime,J===0||J>=k)){S.lastPingedTime=k,sa(S,k);break}if(J=Ds(S),J!==0&&J!==k)break;if(V!==0&&V!==k){S.lastPingedTime=V;break}if(Va!==1073741823?V=10*(1073741821-Va)-fi():_o===1073741823?V=0:(V=10*(1073741821-_o)-5e3,J=fi(),k=10*(1073741821-k)-J,V=J-V,0>V&&(V=0),V=(120>V?120:480>V?480:1080>V?1080:1920>V?1920:3e3>V?3e3:4320>V?4320:1960*fc(V/1960))-V,k<V&&(V=k)),10<V){S.timeoutHandle=Ko(la.bind(null,S),V);break}la(S);break;case wl:if(_o!==1073741823&&Rs!==null){ve=_o;var be=Rs;if(V=be.busyMinDurationMs|0,0>=V?V=0:(J=be.busyDelayMs|0,ve=fi()-(10*(1073741821-ve)-(be.timeoutMs|0||5e3)),V=ve<=J?0:J+V-ve),10<V){da(S,k),S.timeoutHandle=Ko(la.bind(null,S),V);break}}la(S);break;default:throw Error(d(329))}if(oi(S),S.callbackNode===R)return Nu.bind(null,S)}}return null}function Pl(S){var R=S.lastExpiredTime;if(R=R!==0?R:1073741823,(Xt&(Ii|Yi))!==dn)throw Error(d(327));if(Aa(),S===ii&&R===Un||sa(S,R),nr!==null){var k=Xt;Xt|=Ii;var V=Bu();do try{hc();break}catch(J){Fu(S,J)}while(!0);if(Bs(),Xt=k,Es.current=V,fn===Cs)throw k=Ts,sa(S,R),da(S,R),oi(S),k;if(nr!==null)throw Error(d(261));S.finishedWork=S.current.alternate,S.finishedExpirationTime=R,ii=null,la(S),oi(S)}return null}function pc(){if(oa!==null){var S=oa;oa=null,S.forEach(function(R,k){Al(k,R),oi(k)}),Gi()}}function qu(S,R){var k=Xt;Xt|=1;try{return S(R)}finally{Xt=k,Xt===dn&&Gi()}}function Wu(S,R){var k=Xt;Xt&=-2,Xt|=_l;try{return S(R)}finally{Xt=k,Xt===dn&&Gi()}}function sa(S,R){S.finishedWork=null,S.finishedExpirationTime=0;var k=S.timeoutHandle;if(k!==-1&&(S.timeoutHandle=-1,Zo(k)),nr!==null)for(k=nr.return;k!==null;){var V=k;switch(V.tag){case 1:V=V.type.childContextTypes,V!=null&&Ca();break;case 3:Oa(),er(xn),er(Hr);break;case 5:Zs(V);break;case 4:Oa();break;case 13:er(Kr);break;case 19:er(Kr);break;case 10:zs(V)}k=k.return}ii=S,nr=ca(S.current,null),Un=R,fn=ia,Ts=null,Va=_o=1073741823,Rs=null,Ua=0,Os=!1}function Fu(S,R){do{try{if(Bs(),ps.current=_s,hs)for(var k=sn.memoizedState;k!==null;){var V=k.queue;V!==null&&(V.pending=null),k=k.next}if(No=0,An=In=sn=null,hs=!1,nr===null||nr.return===null)return fn=Cs,Ts=R,nr=null;e:{var J=S,ve=nr.return,be=nr,De=R;if(R=Un,be.effectTag|=2048,be.firstEffect=be.lastEffect=null,De!==null&&typeof De=="object"&&typeof De.then=="function"){var ot=De;if((be.mode&2)===0){var st=be.alternate;st?(be.updateQueue=st.updateQueue,be.memoizedState=st.memoizedState,be.expirationTime=st.expirationTime):(be.updateQueue=null,be.memoizedState=null)}var Lt=(Kr.current&1)!==0,Wt=ve;do{var hr;if(hr=Wt.tag===13){var Sr=Wt.memoizedState;if(Sr!==null)hr=Sr.dehydrated!==null;else{var gi=Wt.memoizedProps;hr=gi.fallback===void 0?!1:gi.unstable_avoidThisFallback!==!0?!0:!Lt}}if(hr){var gn=Wt.updateQueue;if(gn===null){var Qe=new Set;Qe.add(ot),Wt.updateQueue=Qe}else gn.add(ot);if((Wt.mode&2)===0){if(Wt.effectTag|=64,be.effectTag&=-2981,be.tag===1)if(be.alternate===null)be.tag=17;else{var Ue=Lo(1073741823,null);Ue.tag=2,jo(be,Ue)}be.expirationTime=1073741823;break e}De=void 0,be=R;var pt=J.pingCache;if(pt===null?(pt=J.pingCache=new dc,De=new Set,pt.set(ot,De)):(De=pt.get(ot),De===void 0&&(De=new Set,pt.set(ot,De))),!De.has(be)){De.add(be);var Tt=bc.bind(null,J,ot,be);ot.then(Tt,Tt)}Wt.effectTag|=4096,Wt.expirationTime=R;break e}Wt=Wt.return}while(Wt!==null);De=Error((re(be.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
3
4Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`+he(be))}fn!==wl&&(fn=Lu),De=vl(De,be),Wt=ve;do{switch(Wt.tag){case 3:ot=De,Wt.effectTag|=4096,Wt.expirationTime=R;var Mt=ku(Wt,ot,R);Gl(Wt,Mt);break e;case 1:ot=De;var Ft=Wt.type,Gt=Wt.stateNode;if((Wt.effectTag&64)===0&&(typeof Ft.getDerivedStateFromError=="function"||Gt!==null&&typeof Gt.componentDidCatch=="function"&&(Wo===null||!Wo.has(Gt)))){Wt.effectTag|=4096,Wt.expirationTime=R;var yr=Du(Wt,ot,R);Gl(Wt,yr);break e}}Wt=Wt.return}while(Wt!==null)}nr=Vu(nr)}catch(Ur){R=Ur;continue}break}while(!0)}function Bu(){var S=Es.current;return Es.current=_s,S===null?_s:S}function zu(S,R){S<_o&&2<S&&(_o=S),R!==null&&S<Va&&2<S&&(Va=S,Rs=R)}function Ms(S){S>Ua&&(Ua=S)}function hc(){for(;nr!==null;)nr=Hu(nr)}function vc(){for(;nr!==null&&!Ju();)nr=Hu(nr)}function Hu(S){var R=Gu(S.alternate,S,Un);return S.memoizedProps=S.pendingProps,R===null&&(R=Vu(S)),Mu.current=null,R}function Vu(S){nr=S;do{var R=nr.alternate;if(S=nr.return,(nr.effectTag&2048)===0){if(R=oc(R,nr,Un),Un===1||nr.childExpirationTime!==1){for(var k=0,V=nr.child;V!==null;){var J=V.expirationTime,ve=V.childExpirationTime;J>k&&(k=J),ve>k&&(k=ve),V=V.sibling}nr.childExpirationTime=k}if(R!==null)return R;S!==null&&(S.effectTag&2048)===0&&(S.firstEffect===null&&(S.firstEffect=nr.firstEffect),nr.lastEffect!==null&&(S.lastEffect!==null&&(S.lastEffect.nextEffect=nr.firstEffect),S.lastEffect=nr.lastEffect),1<nr.effectTag&&(S.lastEffect!==null?S.lastEffect.nextEffect=nr:S.firstEffect=nr,S.lastEffect=nr))}else{if(R=ac(nr),R!==null)return R.effectTag&=2047,R;S!==null&&(S.firstEffect=S.lastEffect=null,S.effectTag|=2048)}if(R=nr.sibling,R!==null)return R;nr=S}while(nr!==null);return fn===ia&&(fn=wl),null}function $l(S){var R=S.expirationTime;return S=S.childExpirationTime,R>S?R:S}function la(S){var R=ts();return Do(99,gc.bind(null,S,R)),null}function gc(S,R){do Aa();while(Ga!==null);if((Xt&(Ii|Yi))!==dn)throw Error(d(327));var k=S.finishedWork,V=S.finishedExpirationTime;if(k===null)return null;if(S.finishedWork=null,S.finishedExpirationTime=0,k===S.current)throw Error(d(177));
4S.callbackNode=null,S.callbackExpirationTime=0,S.callbackPriority=90,S.nextKnownPendingLevel=0;var J=$l(k);if(S.firstPendingTime=J,V<=S.lastSuspendedTime?S.firstSuspendedTime=S.lastSuspendedTime=S.nextKnownPendingLevel=0:V<=S.firstSuspendedTime&&(S.firstSuspendedTime=V-1),V<=S.lastPingedTime&&(S.lastPingedTime=0),V<=S.lastExpiredTime&&(S.lastExpiredTime=0),S===ii&&(nr=ii=null,Un=0),1<k.effectTag?k.lastEffect!==null?(k.lastEffect.nextEffect=k,J=k.firstEffect):J=k:J=k.firstEffect,J!==null){var ve=Xt;Xt|=Yi,Mu.current=null,Li=So;var be=Fn();if($o(be)){if("selectionStart"in be)var De={start:be.selectionStart,end:be.selectionEnd};else e:{De=(De=be.ownerDocument)&&De.defaultView||window;var ot=De.getSelection&&De.getSelection();if(ot&&ot.rangeCount!==0){De=ot.anchorNode;var st=ot.anchorOffset,Lt=ot.focusNode;ot=ot.focusOffset;try{De.nodeType,Lt.nodeType}catch{De=null;break e}var Wt=0,hr=-1,Sr=-1,gi=0,gn=0,Qe=be,Ue=null;t:for(;;){for(var pt;Qe!==De||st!==0&&Qe.nodeType!==3||(hr=Wt+st),Qe!==Lt||ot!==0&&Qe.nodeType!==3||(Sr=Wt+ot),Qe.nodeType===3&&(Wt+=Qe.nodeValue.length),(pt=Qe.firstChild)!==null;)Ue=Qe,Qe=pt;for(;;){if(Qe===be)break t;if(Ue===De&&++gi===st&&(hr=Wt),Ue===Lt&&++gn===ot&&(Sr=Wt),(pt=Qe.nextSibling)!==null)break;Qe=Ue,Ue=Qe.parentNode}Qe=pt}De=hr===-1||Sr===-1?null:{start:hr,end:Sr}}else De=null}De=De||{start:0,end:0}}else De=null;io={activeElementDetached:null,focusedElem:be,selectionRange:De},So=!1,zt=J;do try{mc()}catch(ur){if(zt===null)throw Error(d(330));ua(zt,ur),zt=zt.nextEffect}while(zt!==null);zt=J;do try{for(be=S,De=R;zt!==null;){var Tt=zt.effectTag;if(Tt&16&&Yr(zt.stateNode,""),Tt&128){var Mt=zt.alternate;if(Mt!==null){var Ft=Mt.ref;Ft!==null&&(typeof Ft=="function"?Ft(null):Ft.current=null)}}switch(Tt&1038){case 2:xu(zt),zt.effectTag&=-3;break;case 6:xu(zt),zt.effectTag&=-3,bl(zt.alternate,zt);break;case 1024:zt.effectTag&=-1025;break;case 1028:zt.effectTag&=-1025,bl(zt.alternate,zt);break;case 4:bl(zt.alternate,zt);break;case 8:st=zt,Iu(be,st,De),Ru(st)}zt=zt.nextEffect}}catch(ur){if(zt===null)throw Error(d(330));ua(zt,ur),zt=zt.nextEffect}while(zt!==null);if(Ft=io,Mt=Fn(),Tt=Ft.focusedElem,De=Ft.selectionRange,Mt!==Tt&&Tt&&Tt.ownerDocument&&Po(Tt.ownerDocument.documentElement,Tt)){for(De!==null&&$o(Tt)&&(Mt=De.start,Ft=De.end,Ft===void 0&&(Ft=Mt),"selectionStart"in Tt?(Tt.selectionStart=Mt,Tt.selectionEnd=Math.min(Ft,Tt.value.length)):(Ft=(Mt=Tt.ownerDocument||document)&&Mt.defaultView||window,Ft.getSelection&&(Ft=Ft.getSelection(),st=Tt.textContent.length,be=Math.min(De.start,st),De=De.end===void 0?be:Math.min(De.end,st),!Ft.extend&&be>De&&(st=De,De=be,be=st),st=va(Tt,be),Lt=va(Tt,De),st&&Lt&&(Ft.rangeCount!==1||Ft.anchorNode!==st.node||Ft.anchorOffset!==st.offset||Ft.focusNode!==Lt.node||Ft.focusOffset!==Lt.offset)&&(Mt=Mt.createRange(),Mt.setStart(st.node,st.offset),Ft.removeAllRanges(),be>De?(Ft.addRange(Mt),Ft.extend(Lt.node,Lt.offset)):(Mt.setEnd(Lt.node,Lt.offset),Ft.addRange(Mt)))))),Mt=[],Ft=Tt;Ft=Ft.parentNode;)Ft.nodeType===1&&Mt.push({element:Ft,left:Ft.scrollLeft,top:Ft.scrollTop});for(typeof Tt.focus=="function"&&Tt.focus(),Tt=0;Tt<Mt.length;Tt++)Ft=Mt[Tt],Ft.element.scrollLeft=Ft.left,Ft.element.scrollTop=Ft.top}So=!!Li,io=Li=null,S.current=k,zt=J;do try{for(Tt=S;zt!==null;){var Gt=zt.effectTag;if(Gt&36&&cc(Tt,zt.alternate,zt),Gt&128){Mt=void 0;var yr=zt.ref;if(yr!==null){var Ur=zt.stateNode;zt.tag,Mt=Ur,typeof yr=="function"?yr(Mt):yr.current=Mt}}zt=zt.nextEffect}}catch(ur){if(zt===null)throw Error(d(330));ua(zt,ur),zt=zt.nextEffect}while(zt!==null);zt=null,ec(),Xt=ve}else S.current=k;if(Is)Is=!1,Ga=S,Ka=R;else for(zt=J;zt!==null;)R=zt.nextEffect,zt.nextEffect=null,zt=R;if(R=S.firstPendingTime,R===0&&(Wo=null),R===1073741823?S===Cl?Za++:(Za=0,Cl=S):Za=0,typeof Tl=="function"&&Tl(k.stateNode,V),oi(S),xs)throw xs=!1,S=El,El=null,S;return(Xt&_l)!==dn||Gi(),null}function mc(){for(;zt!==null;){var S=zt.effectTag;(S&256)!==0&&uc(zt.alternate,zt),(S&512)===0||Is||(Is=!0,zl(97,function(){return Aa(),null})),zt=zt.nextEffect}}function Aa(){if(Ka!==90){var S=97<Ka?97:Ka;return Ka=90,Do(S,yc)}}function yc(){if(Ga===null)return!1;var S=Ga;if(Ga=null,(Xt&(Ii|Yi))!==dn)throw Error(d(331));var R=Xt;for(Xt|=Yi,S=S.current.firstEffect;S!==null;){try{var k=S;if((k.effectTag&512)!==0)switch(k.tag){case 0:case 11:case 15:case 22:Pu(5,k),$u(5,k)}}catch(V){if(S===null)throw Error(d(330));ua(S,V)}k=S.nextEffect,S.nextEffect=null,S=k}return Xt=R,Gi(),!0}function Uu(S,R,k){R=vl(k,R),R=ku(S,R,1073741823),jo(S,R),S=ks(S,1073741823),S!==null&&oi(S)}function ua(S,R){if(S.tag===3)Uu(S,S,R);else for(var k=S.return;k!==null;){if(k.tag===3){Uu(k,S,R);break}else if(k.tag===1){var V=k.stateNode;if(typeof k.type.getDerivedStateFromError=="function"||typeof V.componentDidCatch=="function"&&(Wo===null||!Wo.has(V))){S=vl(R,S),S=Du(k,S,1073741823),jo(k,S),k=ks(k,1073741823),k!==null&&oi(k);break}}k=k.return}}function bc(S,R,k){var V=S.pingCache;V!==null&&V.delete(R),ii===S&&Un===k?fn===$s||fn===Ps&&_o===1073741823&&fi()-Sl<ju?sa(S,Un):Os=!0:Ku(S,k)&&(R=S.lastPingedTime,R!==0&&R<k||(S.lastPingedTime=k,oi(S)))}function _c(S,R){var k=S.stateNode;k!==null&&k.delete(R),R=0,R===0&&(R=Xi(),R=aa(R,S,null)),S=ks(S,R),S!==null&&oi(S)}var Gu;Gu=function(S,R,k){var V=R.expirationTime;if(S!==null){var J=R.pendingProps;if(S.memoizedProps!==J||xn.current)Zi=!0;else{if(V<k){switch(Zi=!1,R.tag){case 3:mu(R),ll();break;case 5:if(eu(R),R.mode&4&&k!==1&&J.hidden)return R.expirationTime=R.childExpirationTime=1,null;break;case 1:vn(R.type)&&go(R);break;case 4:Ks(R,R.stateNode.containerInfo);break;case 10:V=R.memoizedProps.value,J=R.type._context,gr(os,J._currentValue),J._currentValue=V;break;case 13:if(R.memoizedState!==null)return V=R.child.childExpirationTime,V!==0&&V>=k?yu(S,R,k):(gr(Kr,Kr.current&1),R=bo(S,R,k),R!==null?R.sibling:null);gr(Kr,Kr.current&1);break;case 19:if(V=R.childExpirationTime>=k,(S.effectTag&64)!==0){if(V)return _u(S,R,k);R.effectTag|=64}if(J=R.memoizedState,J!==null&&(J.rendering=null,J.tail=null),gr(Kr,Kr.current),!V)return null}return bo(S,R,k)}Zi=!1}}else Zi=!1;switch(R.expirationTime=0,R.tag){case 2:if(V=R.type,S!==null&&(S.alternate=null,R.alternate=null,R.effectTag|=2),S=R.pendingProps,J=ko(R,Hr.current),Ta(R,k),J=Qs(null,R,V,S,J,k),R.effectTag|=1,typeof J=="object"&&J!==null&&typeof J.render=="function"&&J.$$typeof===void 0){if(R.tag=1,R.memoizedState=null,R.updateQueue=null,vn(V)){var ve=!0;go(R)}else ve=!1;
4R.memoizedState=J.state!==null&&J.state!==void 0?J.state:null,Hs(R);var be=V.getDerivedStateFromProps;typeof be=="function"&&ls(R,V,be,S),J.updater=us,R.stateNode=J,J._reactInternalFiber=R,Us(R,V,S,k),R=cl(null,R,V,!0,ve,k)}else R.tag=0,ni(null,R,J,k),R=R.child;return R;case 16:e:{if(J=R.elementType,S!==null&&(S.alternate=null,R.alternate=null,R.effectTag|=2),S=R.pendingProps,ae(J),J._status!==1)throw J._result;switch(J=J._result,R.type=J,ve=R.tag=Ec(J),S=xi(J,S),ve){case 0:R=ul(null,R,J,S,k);break e;case 1:R=gu(null,R,J,S,k);break e;case 11:R=fu(null,R,J,S,k);break e;case 14:R=pu(null,R,J,xi(J.type,S),V,k);break e}throw Error(d(306,J,""))}return R;case 0:return V=R.type,J=R.pendingProps,J=R.elementType===V?J:xi(V,J),ul(S,R,V,J,k);case 1:return V=R.type,J=R.pendingProps,J=R.elementType===V?J:xi(V,J),gu(S,R,V,J,k);case 3:if(mu(R),V=R.updateQueue,S===null||V===null)throw Error(d(282));if(V=R.pendingProps,J=R.memoizedState,J=J!==null?J.element:null,Vs(S,R),qa(R,V,null,k),V=R.memoizedState.element,V===J)ll(),R=bo(S,R,k);else{if((J=R.stateNode.hydrate)&&(qo=_i(R.stateNode.containerInfo.firstChild),yo=R,J=na=!0),J)for(k=Gs(R,null,V,k),R.child=k;k;)k.effectTag=k.effectTag&-3|1024,k=k.sibling;else ni(S,R,V,k),ll();R=R.child}return R;case 5:return eu(R),S===null&&sl(R),V=R.type,J=R.pendingProps,ve=S!==null?S.memoizedProps:null,be=J.children,ji(V,J)?be=null:ve!==null&&ji(V,ve)&&(R.effectTag|=16),vu(S,R),R.mode&4&&k!==1&&J.hidden?(R.expirationTime=R.childExpirationTime=1,R=null):(ni(S,R,be,k),R=R.child),R;case 6:return S===null&&sl(R),null;case 13:return yu(S,R,k);case 4:return Ks(R,R.stateNode.containerInfo),V=R.pendingProps,S===null?R.child=Ra(R,null,V,k):ni(S,R,V,k),R.child;case 11:return V=R.type,J=R.pendingProps,J=R.elementType===V?J:xi(V,J),fu(S,R,V,J,k);case 7:return ni(S,R,R.pendingProps,k),R.child;case 8:return ni(S,R,R.pendingProps.children,k),R.child;case 12:return ni(S,R,R.pendingProps.children,k),R.child;case 10:e:{V=R.type._context,J=R.pendingProps,be=R.memoizedProps,ve=J.value;var De=R.type._context;if(gr(os,De._currentValue),De._currentValue=ve,be!==null)if(De=be.value,ve=It(De,ve)?0:(typeof V._calculateChangedBits=="function"?V._calculateChangedBits(De,ve):1073741823)|0,ve===0){if(be.children===J.children&&!xn.current){R=bo(S,R,k);break e}}else for(De=R.child,De!==null&&(De.return=R);De!==null;){var ot=De.dependencies;if(ot!==null){be=De.child;for(var st=ot.firstContext;st!==null;){if(st.context===V&&(st.observedBits&ve)!==0){De.tag===1&&(st=Lo(k,null),st.tag=2,jo(De,st)),De.expirationTime<k&&(De.expirationTime=k),st=De.alternate,st!==null&&st.expirationTime<k&&(st.expirationTime=k),Ul(De.return,k),ot.expirationTime<k&&(ot.expirationTime=k);break}st=st.next}}else be=De.tag===10&&De.type===R.type?null:De.child;if(be!==null)be.return=De;else for(be=De;be!==null;){if(be===R){be=null;break}if(De=be.sibling,De!==null){De.return=be.return,be=De;break}be=be.return}De=be}ni(S,R,J.children,k),R=R.child}return R;case 9:return J=R.type,ve=R.pendingProps,V=ve.children,Ta(R,k),J=pi(J,ve.unstable_observedBits),V=V(J),R.effectTag|=1,ni(S,R,V,k),R.child;case 14:return J=R.type,ve=xi(J,R.pendingProps),ve=xi(J.type,ve),pu(S,R,J,ve,V,k);case 15:return hu(S,R,R.type,R.pendingProps,V,k);case 17:return V=R.type,J=R.pendingProps,J=R.elementType===V?J:xi(V,J),S!==null&&(S.alternate=null,R.alternate=null,R.effectTag|=2),R.tag=1,vn(V)?(S=!0,go(R)):S=!1,Ta(R,k),Xl(R,V,J),Us(R,V,J,k),cl(null,R,V,!0,S,k);case 19:return _u(S,R,k)}throw Error(d(156,R.tag))};var Tl=null,Rl=null;function wc(S){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var R=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(R.isDisabled||!R.supportsFiber)return!0;try{var k=R.inject(S);Tl=function(V){try{R.onCommitFiberRoot(k,V,void 0,(V.current.effectTag&64)===64)}catch{}},Rl=function(V){try{R.onCommitFiberUnmount(k,V)}catch{}}}catch{}return!0}function Sc(S,R,k,V){this.tag=S,this.key=k,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=R,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=V,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Qi(S,R,k,V){return new Sc(S,R,k,V)}function Ol(S){return S=S.prototype,!(!S||!S.isReactComponent)}
4function Ec(S){if(typeof S=="function")return Ol(S)?1:0;if(S!=null){if(S=S.$$typeof,S===Ve)return 11;if(S===dt)return 14}return 2}function ca(S,R){var k=S.alternate;return k===null?(k=Qi(S.tag,R,S.key,S.mode),k.elementType=S.elementType,k.type=S.type,k.stateNode=S.stateNode,k.alternate=S,S.alternate=k):(k.pendingProps=R,k.effectTag=0,k.nextEffect=null,k.firstEffect=null,k.lastEffect=null),k.childExpirationTime=S.childExpirationTime,k.expirationTime=S.expirationTime,k.child=S.child,k.memoizedProps=S.memoizedProps,k.memoizedState=S.memoizedState,k.updateQueue=S.updateQueue,R=S.dependencies,k.dependencies=R===null?null:{expirationTime:R.expirationTime,firstContext:R.firstContext,responders:R.responders},k.sibling=S.sibling,k.index=S.index,k.ref=S.ref,k}function Ls(S,R,k,V,J,ve){var be=2;if(V=S,typeof S=="function")Ol(S)&&(be=1);else if(typeof S=="string")be=5;else e:switch(S){case He:return Bo(k.children,J,ve,R);case Be:be=8,J|=7;break;case we:be=8,J|=1;break;case Oe:return S=Qi(12,k,R,J|8),S.elementType=Oe,S.type=Oe,S.expirationTime=ve,S;case Ye:return S=Qi(13,k,R,J),S.type=Ye,S.elementType=Ye,S.expirationTime=ve,S;case Ge:return S=Qi(19,k,R,J),S.elementType=Ge,S.expirationTime=ve,S;default:if(typeof S=="object"&&S!==null)switch(S.$$typeof){case Ne:be=10;break e;case qe:be=9;break e;case Ve:be=11;break e;case dt:be=14;break e;case ze:be=16,V=null;break e;case nt:be=22;break e}throw Error(d(130,S==null?S:typeof S,""))}return R=Qi(be,k,R,J),R.elementType=S,R.type=V,R.expirationTime=ve,R}function Bo(S,R,k,V){return S=Qi(7,S,V,R),S.expirationTime=k,S}function xl(S,R,k){return S=Qi(6,S,null,R),S.expirationTime=k,S}function Il(S,R,k){return R=Qi(4,S.children!==null?S.children:[],S.key,R),R.expirationTime=k,R.stateNode={containerInfo:S.containerInfo,pendingChildren:null,implementation:S.implementation},R}function Cc(S,R,k){this.tag=R,this.current=null,this.containerInfo=S,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=k,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ku(S,R){var k=S.firstSuspendedTime;return S=S.lastSuspendedTime,k!==0&&k>=R&&S<=R}function da(S,R){var k=S.firstSuspendedTime,V=S.lastSuspendedTime;k<R&&(S.firstSuspendedTime=R),(V>R||k===0)&&(S.lastSuspendedTime=R),R<=S.lastPingedTime&&(S.lastPingedTime=0),R<=S.lastExpiredTime&&(S.lastExpiredTime=0)}function Zu(S,R){R>S.firstPendingTime&&(S.firstPendingTime=R);var k=S.firstSuspendedTime;k!==0&&(R>=k?S.firstSuspendedTime=S.lastSuspendedTime=S.nextKnownPendingLevel=0:R>=S.lastSuspendedTime&&(S.lastSuspendedTime=R+1),R>S.nextKnownPendingLevel&&(S.nextKnownPendingLevel=R))}function Al(S,R){var k=S.lastExpiredTime;(k===0||k>R)&&(S.lastExpiredTime=R)}function Ns(S,R,k,V){var J=R.current,ve=Xi(),be=Wa.suspense;ve=aa(ve,J,be);e:if(k){k=k._reactInternalFiber;t:{if(Lr(k)!==k||k.tag!==1)throw Error(d(170));var De=k;do{switch(De.tag){case 3:De=De.stateNode.context;break t;case 1:if(vn(De.type)){De=De.stateNode.__reactInternalMemoizedMergedChildContext;break t}}De=De.return}while(De!==null);throw Error(d(171))}if(k.tag===1){var ot=k.type;if(vn(ot)){k=Vr(k,ot,De);break e}}k=De}else k=zr;return R.context===null?R.context=k:R.pendingContext=k,R=Lo(ve,be),R.payload={element:S},V=V===void 0?null:V,V!==null&&(R.callback=V),jo(J,R),Fo(J,ve),ve}function kl(S){return S=S.current,S.child?(S.child.tag===5,S.child.stateNode):null}function Yu(S,R){S=S.memoizedState,S!==null&&S.dehydrated!==null&&S.retryTime<R&&(S.retryTime=R)}function Dl(S,R){Yu(S,R),(S=S.alternate)&&Yu(S,R)}function Ml(S,R,k){k=k!=null&&k.hydrate===!0;var V=new Cc(S,R,k),J=Qi(3,null,null,R===2?7:R===1?3:0);V.current=J,J.stateNode=V,Hs(J),S[Jr]=V.current,k&&R!==0&&xr(S,S.nodeType===9?S:S.ownerDocument),this._internalRoot=V}Ml.prototype.render=function(S){Ns(S,this._internalRoot,null,null)},Ml.prototype.unmount=function(){var S=this._internalRoot,R=S.containerInfo;Ns(null,S,null,function(){R[Jr]=null})};function Ya(S){return!(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11&&(S.nodeType!==8||S.nodeValue!==" react-mount-point-unstable "))}function Pc(S,R){if(R||(R=S?S.nodeType===9?S.documentElement:S.firstChild:null,R=!(!R||R.nodeType!==1||!R.hasAttribute("data-reactroot"))),!R)for(var k;k=S.lastChild;)S.removeChild(k);return new Ml(S,0,R?{hydrate:!0}:void 0)}function qs(S,R,k,V,J){var ve=k._reactRootContainer;if(ve){var be=ve._internalRoot;if(typeof J=="function"){var De=J;J=function(){var st=kl(be);De.call(st)}}Ns(R,be,S,J)}else{if(ve=k._reactRootContainer=Pc(k,V),be=ve._internalRoot,typeof J=="function"){var ot=J;J=function(){var st=kl(be);ot.call(st)}}Wu(function(){Ns(R,be,S,J)})}return kl(be)}function $c(S,R,k){var V=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:V==null?null:""+V,children:S,containerInfo:R,implementation:k}}$r=function(S){if(S.tag===13){var R=rs(Xi(),150,100);Fo(S,R),Dl(S,R)}},dr=function(S){S.tag===13&&(Fo(S,3),Dl(S,3))},bn=function(S){if(S.tag===13){var R=Xi();R=aa(R,S,null),Fo(S,R),Dl(S,R)}},H=function(S,R,k){switch(R){case"input":if(ut(S,k),R=k.name,k.type==="radio"&&R!=null){for(k=S;k.parentNode;)k=k.parentNode;for(k=k.querySelectorAll("input[name="+JSON.stringify(""+R)+'][type="radio"]'),R=0;R<k.length;R++){var V=k[R];if(V!==S&&V.form===S.form){var J=Ei(V);if(!J)throw Error(d(90));ht(V),ut(V,J)}}}break;case"textarea":Ct(S,k);break;case"select":R=k.value,R!=null&&wt(S,!!k.multiple,R,!1)}},K=qu,Z=function(S,R,k,V,J){var ve=Xt;Xt|=4;try{return Do(98,S.bind(null,R,k,V,J))}finally{Xt=ve,Xt===dn&&Gi()}},te=function(){(Xt&(1|Ii|Yi))===dn&&(pc(),Aa())},oe=function(S,R){var k=Xt;Xt|=2;try{return S(R)}finally{Xt=k,Xt===dn&&Gi()}};function Xu(S,R){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ya(R))throw Error(d(200));return $c(S,R,null,k)}var Tc={Events:[wi,Si,Ei,q,j,$n,function(S){yn(S,Pn)},G,Q,Zt,un,Aa,{current:!1}]};return(function(S){var R=S.findFiberByHostInstance;return wc(o({},S,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ce.ReactCurrentDispatcher,findHostInstanceByFiber:function(k){return k=Nn(k),k===null?null:k.stateNode},findFiberByHostInstance:function(k){return R?R(k):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:qi,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}
4),reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tc,reactDom_production_min.createPortal=Xu,reactDom_production_min.findDOMNode=function(S){if(S==null)return null;if(S.nodeType===1)return S;var R=S._reactInternalFiber;if(R===void 0)throw typeof S.render=="function"?Error(d(188)):Error(d(268,Object.keys(S)));return S=Nn(R),S=S===null?null:S.stateNode,S},reactDom_production_min.flushSync=function(S,R){if((Xt&(Ii|Yi))!==dn)throw Error(d(187));var k=Xt;Xt|=1;try{return Do(99,S.bind(null,R))}finally{Xt=k,Gi()}},reactDom_production_min.hydrate=function(S,R,k){if(!Ya(R))throw Error(d(200));return qs(null,S,R,!0,k)},reactDom_production_min.render=function(S,R,k){if(!Ya(R))throw Error(d(200));return qs(null,S,R,!1,k)},reactDom_production_min.unmountComponentAtNode=function(S){if(!Ya(S))throw Error(d(40));return S._reactRootContainer?(Wu(function(){qs(null,null,S,!1,function(){S._reactRootContainer=null,S[Jr]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=qu,reactDom_production_min.unstable_createPortal=function(S,R){return Xu(S,R,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},reactDom_production_min.unstable_renderSubtreeIntoContainer=function(S,R,k,V){if(!Ya(k))throw Error(d(200));if(S==null||S._reactInternalFiber===void 0)throw Error(d(38));return qs(S,R,k,!1,V)},reactDom_production_min.version="16.14.0",reactDom_production_min}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports);function _typeof$d(l){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$d(l)}function toPrimitive$1(l,o){if(_typeof$d(l)!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(_typeof$d(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function toPropertyKey$1(l){var o=toPrimitive$1(l,"string");return _typeof$d(o)=="symbol"?o:o+""}function _defineProperty$1z(l,o,u){return(o=toPropertyKey$1(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _objectSpread$1r(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?Object(arguments[o]):{},d=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&d.push.apply(d,Object.getOwnPropertySymbols(u).filter(function(f){return Object.getOwnPropertyDescriptor(u,f).enumerable})),d.forEach(function(f){_defineProperty$1z(l,f,u[f])})}return l}function _classCallCheck$2k(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2c(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,toPropertyKey$1(d.key),d)}}function _createClass$2c(l,o,u){return o&&_defineProperties$2c(l.prototype,o),u&&_defineProperties$2c(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _assertThisInitialized$1y(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _possibleConstructorReturn$1F(l,o){if(o&&(_typeof$d(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1y(l)}function _getPrototypeOf$1y(l){return _getPrototypeOf$1y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1y(l)}function _setPrototypeOf$1y(l,o){return _setPrototypeOf$1y=Object.
4setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1y(l,o)}function _inherits$1F(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1y(l,o)}var consoleLogger={type:"logger",log:function(o){this.output("log",o)},warn:function(o){this.output("warn",o)},error:function(o){this.output("error",o)},output:function(o,u){console&&console[o]&&console[o].apply(console,u)}},Logger=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2k(this,l),this.init(o,u)}return _createClass$2c(l,[{key:"init",value:function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=d.prefix||"i18next:",this.logger=u||consoleLogger,this.options=d,this.debug=d.debug}},{key:"setDebug",value:function(u){this.debug=u}},{key:"log",value:function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return this.forward(d,"log","",!0)}},{key:"warn",value:function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return this.forward(d,"warn","",!0)}},{key:"error",value:function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return this.forward(d,"error","")}},{key:"deprecate",value:function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return this.forward(d,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(u,d,f,p){return p&&!this.debug?null:(typeof u[0]=="string"&&(u[0]="".concat(f).concat(this.prefix," ").concat(u[0])),this.logger[d](u))}},{key:"create",value:function(u){return new l(this.logger,_objectSpread$1r({},{prefix:"".concat(this.prefix,":").concat(u,":")},this.options))}}]),l})(),baseLogger=new Logger,EventEmitter=(function(){function l(){_classCallCheck$2k(this,l),this.observers={}}return _createClass$2c(l,[{key:"on",value:function(u,d){var f=this;return u.split(" ").forEach(function(p){f.observers[p]=f.observers[p]||[],f.observers[p].push(d)}),this}},{key:"off",value:function(u,d){if(this.observers[u]){if(!d){delete this.observers[u];return}this.observers[u]=this.observers[u].filter(function(f){return f!==d})}}},{key:"emit",value:function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];if(this.observers[u]){var h=[].concat(this.observers[u]);h.forEach(function(g){g.apply(void 0,f)})}if(this.observers["*"]){var v=[].concat(this.observers["*"]);v.forEach(function(g){g.apply(g,[u].concat(f))})}}}]),l})();function defer(){var l,o,u=new Promise(function(d,f){l=d,o=f});return u.resolve=l,u.reject=o,u}function makeString(l){return l==null?"":""+l}function copy(l,o,u){l.forEach(function(d){o[d]&&(u[d]=o[d])})}function getLastOfPath(l,o,u){function d(v){return v&&v.indexOf("###")>-1?v.replace(/###/g,"."):v}function f(){return!l||typeof l=="string"}for(var p=typeof o!="string"?[].concat(o):o.split(".");p.length>1;){if(f())return{};var h=d(p.shift());!l[h]&&u&&(l[h]=new u),Object.prototype.hasOwnProperty.call(l,h)?l=l[h]:l={}}return f()?{}:{obj:l,k:d(p.shift())}}function setPath(l,o,u){var d=getLastOfPath(l,o,Object),f=d.obj,p=d.k;f[p]=u}function pushPath(l,o,u,d){var f=getLastOfPath(l,o,Object),p=f.obj,h=f.k;p[h]=p[h]||[],p[h].push(u)}function getPath$1(l,o){var u=getLastOfPath(l,o),d=u.obj,f=u.k;if(d)return d[f]}function getPathWithDefaults(l,o,u){var d=getPath$1(l,u);return d!==void 0?d:getPath$1(o,u)}function deepExtend(l,o,u){for(var d in o)d!=="__proto__"&&d!=="constructor"&&(d in l?typeof l[d]=="string"||l[d]instanceof String||typeof o[d]=="string"||o[d]instanceof String?u&&(l[d]=o[d]):deepExtend(l[d],o[d],u):l[d]=o[d]);return l}function regexEscape(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function escape$2(l){return typeof l=="string"?l.replace(/[&<>
4"'\/]/g,function(o){return _entityMap[o]}):l}var isIE10$1=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ResourceStore=(function(l){_inherits$1F(o,l);function o(u){var d,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _classCallCheck$2k(this,o),d=_possibleConstructorReturn$1F(this,_getPrototypeOf$1y(o).call(this)),isIE10$1&&EventEmitter.call(_assertThisInitialized$1y(d)),d.data=u||{},d.options=f,d.options.keySeparator===void 0&&(d.options.keySeparator="."),d}return _createClass$2c(o,[{key:"addNamespaces",value:function(d){this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}},{key:"removeNamespaces",value:function(d){var f=this.options.ns.indexOf(d);f>-1&&this.options.ns.splice(f,1)}},{key:"getResource",value:function(d,f,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator,g=[d,f];return p&&typeof p!="string"&&(g=g.concat(p)),p&&typeof p=="string"&&(g=g.concat(v?p.split(v):p)),d.indexOf(".")>-1&&(g=d.split(".")),getPath$1(this.data,g)}},{key:"addResource",value:function(d,f,p,h){var v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},g=this.options.keySeparator;g===void 0&&(g=".");var m=[d,f];p&&(m=m.concat(g?p.split(g):p)),d.indexOf(".")>-1&&(m=d.split("."),h=f,f=m[1]),this.addNamespaces(f),setPath(this.data,m,h),v.silent||this.emit("added",d,f,p,h)}},{key:"addResources",value:function(d,f,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var v in p)(typeof p[v]=="string"||Object.prototype.toString.apply(p[v])==="[object Array]")&&this.addResource(d,f,v,p[v],{silent:!0});h.silent||this.emit("added",d,f,p)}},{key:"addResourceBundle",value:function(d,f,p,h,v){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},m=[d,f];d.indexOf(".")>-1&&(m=d.split("."),h=p,p=f,f=m[1]),this.addNamespaces(f);var y=getPath$1(this.data,m)||{};h?deepExtend(y,p,v):y=_objectSpread$1r({},y,p),setPath(this.data,m,y),g.silent||this.emit("added",d,f,p)}},{key:"removeResourceBundle",value:function(d,f){this.hasResourceBundle(d,f)&&delete this.data[d][f],this.removeNamespaces(f),this.emit("removed",d,f)}},{key:"hasResourceBundle",value:function(d,f){return this.getResource(d,f)!==void 0}},{key:"getResourceBundle",value:function(d,f){return f||(f=this.options.defaultNS),this.options.compatibilityAPI==="v1"?_objectSpread$1r({},{},this.getResource(d,f)):this.getResource(d,f)}},{key:"getDataByLanguage",value:function(d){return this.data[d]}},{key:"toJSON",value:function(){return this.data}}]),o})(EventEmitter),postProcessor={processors:{},addPostProcessor:function(o){this.processors[o.name]=o},handle:function(o,u,d,f,p){var h=this;return o.forEach(function(v){h.processors[v]&&(u=h.processors[v].process(u,d,f,p))}),u}},checkedLoadedFor={},Translator=(function(l){_inherits$1F(o,l);function o(u){var d,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _classCallCheck$2k(this,o),d=_possibleConstructorReturn$1F(this,_getPrototypeOf$1y(o).call(this)),isIE10$1&&EventEmitter.call(_assertThisInitialized$1y(d)),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
4i18nFormat","utils"],u,_assertThisInitialized$1y(d)),d.options=f,d.options.keySeparator===void 0&&(d.options.keySeparator="."),d.logger=baseLogger.create("translator"),d}return _createClass$2c(o,[{key:"changeLanguage",value:function(d){d&&(this.language=d)}},{key:"exists",value:function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},p=this.resolve(d,f);return p&&p.res!==void 0}},{key:"extractFromKey",value:function(d,f){var p=f.nsSeparator!==void 0?f.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");var h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,v=f.ns||this.options.defaultNS;if(p&&d.indexOf(p)>-1){var g=d.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:d,namespaces:v};var m=d.split(p);(p!==h||p===h&&this.options.ns.indexOf(m[0])>-1)&&(v=m.shift()),d=m.join(h)}return typeof v=="string"&&(v=[v]),{key:d,namespaces:v}}},{key:"translate",value:function(d,f,p){var h=this;if(_typeof$d(f)!=="object"&&this.options.overloadTranslationOptionHandler&&(f=this.options.overloadTranslationOptionHandler(arguments)),f||(f={}),d==null)return"";Array.isArray(d)||(d=[String(d)]);var v=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,g=this.extractFromKey(d[d.length-1],f),m=g.key,y=g.namespaces,b=y[y.length-1],w=f.lng||this.language,E=f.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(w&&w.toLowerCase()==="cimode"){if(E){var P=f.nsSeparator||this.options.nsSeparator;return b+P+m}return m}var C=this.resolve(d,f),T=C&&C.res,O=C&&C.usedKey||m,x=C&&C.exactUsedKey||m,A=Object.prototype.toString.apply(T),D=["[object Number]","[object Function]","[object RegExp]"],j=f.joinArrays!==void 0?f.joinArrays:this.options.joinArrays,M=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof T!="string"&&typeof T!="boolean"&&typeof T!="number";if(M&&T&&N&&D.indexOf(A)<0&&!(typeof j=="string"&&A==="[object Array]")){if(!f.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,T,f):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");if(v){var q=A==="[object Array]",z=q?[]:{},H=q?x:O;for(var U in T)if(Object.prototype.hasOwnProperty.call(T,U)){var F="".concat(H).concat(v).concat(U);z[U]=this.translate(F,_objectSpread$1r({},f,{joinArrays:!1,ns:y})),z[U]===F&&(z[U]=T[U])}T=z}}else if(M&&typeof j=="string"&&A==="[object Array]")T=T.join(j),T&&(T=this.extendTranslation(T,d,f,p));else{var B=!1,G=!1,Q=f.count!==void 0&&typeof f.count!="string",K=o.hasDefaultValue(f),Z=Q?this.pluralResolver.getSuffix(w,f.count):"",te=f["defaultValue".concat(Z)]||f.defaultValue;!this.isValidLookup(T)&&K&&(B=!0,T=te),this.isValidLookup(T)||(G=!0,T=m);var oe=K&&te!==T&&this.options.updateMissing;if(G||B||oe){if(this.logger.log(oe?"updateKey":"missingKey",w,b,m,oe?te:T),v){var fe=this.resolve(m,_objectSpread$1r({},f,{keySeparator:!1}));fe&&fe.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 le=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,f.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(var Ae=0;Ae<Re.length;Ae++)le.push(Re[Ae]);else this.options.saveMissingTo==="all"?le=this.languageUtils.toResolveHierarchy(f.lng||this.language):le.push(f.lng||this.language);var _e=function(se,$e,Ee){h.options.missingKeyHandler?h.options.missingKeyHandler(se,b,$e,oe?Ee:T,oe,f):h.backendConnector&&h.backendConnector.saveMissing&&h.backendConnector.saveMissing(se,b,$e,oe?Ee:T,oe,f),h.emit("missingKey",se,b,$e,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?le.forEach(function(ee){h.pluralResolver.getSuffixes(ee).forEach(function(se){_e([ee],m+se,f["defaultValue".concat(se)]||te)})}):_e(le,m,te))}T=this.extendTranslation(T,d,f,C,p),G&&T===m&&this.options.appendNamespaceToMissingKey&&(T="".concat(b,":").concat(m)),G&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(T))}return T}},{key:"extendTranslation",value:function(d,f,p,h,v){var g=this;if(this.i18nFormat&&this.i18nFormat.parse)d=this.i18nFormat.parse(d,p,h.usedLng,h.usedNS,h.usedKey,{resolved:h});else if(!p.skipInterpolation){p.interpolation&&this.interpolator.init(_objectSpread$1r({},p,{interpolation:_objectSpread$1r({},this.options.interpolation,p.interpolation)}));var m=p.interpolation&&p.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y;if(m){var b=d.match(this.interpolator.nestingRegexp);y=b&&b.length}var w=p.replace&&typeof p.replace!="string"?p.replace:p;if(this.options.interpolation.defaultVariables&&(w=_objectSpread$1r({},this.options.interpolation.defaultVariables,w)),d=this.interpolator.interpolate(d,w,p.lng||this.language,p),m){var E=d.match(this.interpolator.nestingRegexp),P=E&&E.length;y<P&&(p.nest=!1)}p.nest!==!1&&(d=this.interpolator.nest(d,function(){for(var O=arguments.length,x=new Array(O),A=0;A<O;A++)x[A]=arguments[A];return v&&v[0]===x[0]&&!p.context?(g.logger.warn("It seems you are nesting recursively key: ".concat(x[0]," in key: ").concat(f[0])),null):g.translate.apply(g,x.concat([f]))},p)),p.interpolation&&this.interpolator.reset()}var C=p.postProcess||this.options.postProcess,T=typeof C=="string"?[C]:C;return d!=null&&T&&T.length&&p.applyPostProcessor!==!1&&(d=postProcessor.handle(T,d,f,this.options&&this.options.postProcessPassResolved?_objectSpread$1r({i18nResolved:h},p):p,this)),d}},{key:"resolve",value:function(d){var f=this,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,v,g,m,y;
4return typeof d=="string"&&(d=[d]),d.forEach(function(b){if(!f.isValidLookup(h)){var w=f.extractFromKey(b,p),E=w.key;v=E;var P=w.namespaces;f.options.fallbackNS&&(P=P.concat(f.options.fallbackNS));var C=p.count!==void 0&&typeof p.count!="string",T=p.context!==void 0&&typeof p.context=="string"&&p.context!=="",O=p.lngs?p.lngs:f.languageUtils.toResolveHierarchy(p.lng||f.language,p.fallbackLng);P.forEach(function(x){f.isValidLookup(h)||(y=x,!checkedLoadedFor["".concat(O[0],"-").concat(x)]&&f.utils&&f.utils.hasLoadedNamespace&&!f.utils.hasLoadedNamespace(y)&&(checkedLoadedFor["".concat(O[0],"-").concat(x)]=!0,f.logger.warn('key "'.concat(v,'" for languages "').concat(O.join(", "),`" won't get resolved as namespace "`).concat(y,'" 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!!!")),O.forEach(function(A){if(!f.isValidLookup(h)){m=A;var D=E,j=[D];if(f.i18nFormat&&f.i18nFormat.addLookupKeys)f.i18nFormat.addLookupKeys(j,E,A,x,p);else{var M;C&&(M=f.pluralResolver.getSuffix(A,p.count)),C&&T&&j.push(D+M),T&&j.push(D+="".concat(f.options.contextSeparator).concat(p.context)),C&&j.push(D+=M)}for(var N;N=j.pop();)f.isValidLookup(h)||(g=N,h=f.getResource(A,x,N,p))}}))})}}),{res:h,usedKey:v,exactUsedKey:g,usedLng:m,usedNS:y}}},{key:"isValidLookup",value:function(d){return d!==void 0&&!(!this.options.returnNull&&d===null)&&!(!this.options.returnEmptyString&&d==="")}},{key:"getResource",value:function(d,f,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(d,f,p,h):this.resourceStore.getResource(d,f,p,h)}}],[{key:"hasDefaultValue",value:function(d){var f="defaultValue";for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)&&f===p.substring(0,f.length)&&d[p]!==void 0)return!0;return!1}}]),o})(EventEmitter);function capitalize$2(l){return l.charAt(0).toUpperCase()+l.slice(1)}var LanguageUtil=(function(){function l(o){_classCallCheck$2k(this,l),this.options=o,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}return _createClass$2c(l,[{key:"getScriptPartFromCode",value:function(u){if(!u||u.indexOf("-")<0)return null;var d=u.split("-");return d.length===2||(d.pop(),d[d.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(d.join("-"))}},{key:"getLanguagePartFromCode",value:function(u){if(!u||u.indexOf("-")<0)return u;var d=u.split("-");return this.formatLanguageCode(d[0])}},{key:"formatLanguageCode",value:function(u){if(typeof u=="string"&&u.indexOf("-")>-1){var d=["hans","hant","latn","cyrl","cans","mong","arab"],f=u.split("-");return this.options.lowerCaseLng?f=f.map(function(p){return p.toLowerCase()}):f.length===2?(f[0]=f[0].toLowerCase(),f[1]=f[1].toUpperCase(),d.indexOf(f[1].toLowerCase())>-1&&(f[1]=capitalize$2(f[1].toLowerCase()))):f.length===3&&(f[0]=f[0].toLowerCase(),f[1].length===2&&(f[1]=f[1].toUpperCase()),f[0]!=="sgn"&&f[2].length===2&&(f[2]=f[2].toUpperCase()),d.indexOf(f[1].toLowerCase())>-1&&(f[1]=capitalize$2(f[1].toLowerCase())),d.indexOf(f[2].toLowerCase())>-1&&(f[2]=capitalize$2(f[2].toLowerCase()))),f.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?u.toLowerCase():u}},{key:"isWhitelisted",value:function(u){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(u)}},{key:"isSupportedCode",value:function(u){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(u=this.getLanguagePartFromCode(u)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(u)>-1}},{key:"getBestMatchFromCodes",value:function(u){var d=this;if(!u)return null;var f;return u.forEach(function(p){if(!f){var h=d.formatLanguageCode(p);(!d.options.supportedLngs||d.isSupportedCode(h))&&(f=h)}}),!f&&this.options.supportedLngs&&u.forEach(function(p){if(!f){var h=d.getLanguagePartFromCode(p);if(d.isSupportedCode(h))return f=h;f=d.options.supportedLngs.find(function(v){if(v.indexOf(h)===0)return v})}}),f||(f=this.getFallbackCodes(this.options.fallbackLng)[0]),f}},{key:"getFallbackCodes",value:function(u,d){if(!u)return[];if(typeof u=="function"&&(u=u(d)),typeof u=="string"&&(u=[u]),Object.prototype.toString.apply(u)==="[object Array]")return u;if(!d)return u.default||[];var f=u[d];
4return f||(f=u[this.getScriptPartFromCode(d)]),f||(f=u[this.formatLanguageCode(d)]),f||(f=u[this.getLanguagePartFromCode(d)]),f||(f=u.default),f||[]}},{key:"toResolveHierarchy",value:function(u,d){var f=this,p=this.getFallbackCodes(d||this.options.fallbackLng||[],u),h=[],v=function(m){m&&(f.isSupportedCode(m)?h.push(m):f.logger.warn("rejecting language code not found in supportedLngs: ".concat(m)))};return typeof u=="string"&&u.indexOf("-")>-1?(this.options.load!=="languageOnly"&&v(this.formatLanguageCode(u)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&v(this.getScriptPartFromCode(u)),this.options.load!=="currentOnly"&&v(this.getLanguagePartFromCode(u))):typeof u=="string"&&v(this.formatLanguageCode(u)),p.forEach(function(g){h.indexOf(g)<0&&v(f.formatLanguageCode(g))}),h}}]),l})(),sets=[{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}],_rulesPluralsTypes={1:function(o){return+(o>1)},2:function(o){return+(o!=1)},3:function(o){return 0},4:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},5:function(o){return o==0?0:o==1?1:o==2?2:o%100>=3&&o%100<=10?3:o%100>=11?4:5},6:function(o){return o==1?0:o>=2&&o<=4?1:2},7:function(o){return o==1?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},8:function(o){return o==1?0:o==2?1:o!=8&&o!=11?2:3},9:function(o){return+(o>=2)},10:function(o){return o==1?0:o==2?1:o<7?2:o<11?3:4},11:function(o){return o==1||o==11?0:o==2||o==12?1:o>2&&o<20?2:3},12:function(o){return+(o%10!=1||o%100==11)},13:function(o){return+(o!==0)},14:function(o){return o==1?0:o==2?1:o==3?2:3},15:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&(o%100<10||o%100>=20)?1:2},16:function(o){return o%10==1&&o%100!=11?0:o!==0?1:2},17:function(o){return o==1||o%10==1&&o%100!=11?0:1},18:function(o){return o==0?0:o==1?1:2},19:function(o){return o==1?0:o==0||o%100>1&&o%100<11?1:o%100>10&&o%100<20?2:3},20:function(o){return o==1?0:o==0||o%100>0&&o%100<20?1:2},21:function(o){return o%100==1?1:o%100==2?2:o%100==3||o%100==4?3:0},22:function(o){return o==1?0:o==2?1:(o<0||o>10)&&o%10==0?2:3}};function createRules(){var l={};return sets.forEach(function(o){o.lngs.forEach(function(u){l[u]={numbers:o.nr,plurals:_rulesPluralsTypes[o.fc]}})}),l}var PluralResolver=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2k(this,l),this.languageUtils=o,this.options=u,this.logger=baseLogger.create("pluralResolver"),this.rules=createRules()}return _createClass$2c(l,[{key:"addRule",value:function(u,d){this.rules[u]=d}},{key:"getRule",value:function(u){return this.rules[u]||this.rules[this.languageUtils.getLanguagePartFromCode(u)]}},{key:"needsPlural",value:function(u){var d=this.getRule(u);return d&&d.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(u,d){return this.getSuffixes(u).map(function(f){return d+f})}},{key:"getSuffixes",value:function(u){var d=this,f=this.getRule(u);return f?f.numbers.map(function(p){return d.getSuffix(u,p)}):[]}},{key:"getSuffix",value:function(u,d){var f=this,p=this.getRule(u);if(p){var h=p.noAbs?p.plurals(d):p.plurals(Math.abs(d)),v=p.numbers[h];this.options.simplifyPluralSuffix&&p.numbers.length===2&&p.numbers[
40]===1&&(v===2?v="plural":v===1&&(v=""));var g=function(){return f.options.prepend&&v.toString()?f.options.prepend+v.toString():v.toString()};return this.options.compatibilityJSON==="v1"?v===1?"":typeof v=="number"?"_plural_".concat(v.toString()):g():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&p.numbers.length===2&&p.numbers[0]===1?g():this.options.prepend&&h.toString()?this.options.prepend+h.toString():h.toString()}return this.logger.warn("no plural rule found for: ".concat(u)),""}}]),l})(),Interpolator=(function(){function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$2k(this,l),this.logger=baseLogger.create("interpolator"),this.options=o,this.format=o.interpolation&&o.interpolation.format||function(u){return u},this.init(o)}return _createClass$2c(l,[{key:"init",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u.interpolation||(u.interpolation={escapeValue:!0});var d=u.interpolation;this.escape=d.escape!==void 0?d.escape:escape$2,this.escapeValue=d.escapeValue!==void 0?d.escapeValue:!0,this.useRawValueToEscape=d.useRawValueToEscape!==void 0?d.useRawValueToEscape:!1,this.prefix=d.prefix?regexEscape(d.prefix):d.prefixEscaped||"{{",this.suffix=d.suffix?regexEscape(d.suffix):d.suffixEscaped||"}}",this.formatSeparator=d.formatSeparator?d.formatSeparator:d.formatSeparator||",",this.unescapePrefix=d.unescapeSuffix?"":d.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":d.unescapeSuffix||"",this.nestingPrefix=d.nestingPrefix?regexEscape(d.nestingPrefix):d.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=d.nestingSuffix?regexEscape(d.nestingSuffix):d.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=d.nestingOptionsSeparator?d.nestingOptionsSeparator:d.nestingOptionsSeparator||",",this.maxReplaces=d.maxReplaces?d.maxReplaces:1e3,this.alwaysFormat=d.alwaysFormat!==void 0?d.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var u="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(u,"g");var d="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(d,"g");var f="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(f,"g")}},{key:"interpolate",value:function(u,d,f,p){var h=this,v,g,m,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(T){return T.replace(/\$/g,"$$$$")}var w=function(O){if(O.indexOf(h.formatSeparator)<0){var x=getPathWithDefaults(d,y,O);return h.alwaysFormat?h.format(x,void 0,f):x}var A=O.split(h.formatSeparator),D=A.shift().trim(),j=A.join(h.formatSeparator).trim();return h.format(getPathWithDefaults(d,y,D),j,f,p)};this.resetRegExp();var E=p&&p.missingInterpolationHandler||this.options.missingInterpolationHandler,P=p&&p.interpolation&&p.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,C=[{regex:this.regexpUnescape,safeValue:function(O){return b(O)}},{regex:this.regexp,safeValue:function(O){return h.escapeValue?b(h.escape(O)):b(O)}}];
4return C.forEach(function(T){for(m=0;v=T.regex.exec(u);){if(g=w(v[1].trim()),g===void 0)if(typeof E=="function"){var O=E(u,v,p);g=typeof O=="string"?O:""}else if(P){g=v[0];continue}else h.logger.warn("missed to pass in variable ".concat(v[1]," for interpolating ").concat(u)),g="";else typeof g!="string"&&!h.useRawValueToEscape&&(g=makeString(g));if(u=u.replace(v[0],T.safeValue(g)),T.regex.lastIndex=0,m++,m>=h.maxReplaces)break}}),u}},{key:"nest",value:function(u,d){var f=this,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,v,g=_objectSpread$1r({},p);g.applyPostProcessor=!1,delete g.defaultValue;function m(E,P){var C=this.nestingOptionsSeparator;if(E.indexOf(C)<0)return E;var T=E.split(new RegExp("".concat(C,"[ ]*{"))),O="{".concat(T[1]);E=T[0],O=this.interpolate(O,g),O=O.replace(/'/g,'"');try{g=JSON.parse(O),P&&(g=_objectSpread$1r({},P,g))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),x),"".concat(E).concat(C).concat(O)}return delete g.defaultValue,E}for(;h=this.nestingRegexp.exec(u);){var y=[],b=!1;if(h[0].includes(this.formatSeparator)&&!/{.*}/.test(h[1])){var w=h[1].split(this.formatSeparator).map(function(E){return E.trim()});h[1]=w.shift(),y=w,b=!0}if(v=d(m.call(this,h[1].trim(),g),g),v&&h[0]===u&&typeof v!="string")return v;typeof v!="string"&&(v=makeString(v)),v||(this.logger.warn("missed to resolve ".concat(h[1]," for nesting ").concat(u)),v=""),b&&(v=y.reduce(function(E,P){return f.format(E,P,p.lng,p)},v.trim())),u=u.replace(h[0],v),this.regexp.lastIndex=0}return u}}]),l})();function remove$1(l,o){for(var u=l.indexOf(o);u!==-1;)l.splice(u,1),u=l.indexOf(o)}var Connector=(function(l){_inherits$1F(o,l);function o(u,d,f){var p,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return _classCallCheck$2k(this,o),p=_possibleConstructorReturn$1F(this,_getPrototypeOf$1y(o).call(this)),isIE10$1&&EventEmitter.call(_assertThisInitialized$1y(p)),p.backend=u,p.store=d,p.services=f,p.languageUtils=f.languageUtils,p.options=h,p.logger=baseLogger.create("backendConnector"),p.state={},p.queue=[],p.backend&&p.backend.init&&p.backend.init(f,h.backend,h),p}return _createClass$2c(o,[{key:"queueLoad",value:function(d,f,p,h){var v=this,g=[],m=[],y=[],b=[];return d.forEach(function(w){var E=!0;f.forEach(function(P){var C="".concat(w,"|").concat(P);!p.reload&&v.store.hasResourceBundle(w,P)?v.state[C]=2:v.state[C]<0||(v.state[C]===1?m.indexOf(C)<0&&m.push(C):(v.state[C]=1,E=!1,m.indexOf(C)<0&&m.push(C),g.indexOf(C)<0&&g.push(C),b.indexOf(P)<0&&b.push(P)))}),E||y.push(w)}),(g.length||m.length)&&this.queue.push({pending:m,loaded:{},errors:[],callback:h}),{toLoad:g,pending:m,toLoadLanguages:y,toLoadNamespaces:b}}},{key:"loaded",value:function(d,f,p){var h=d.split("|"),v=h[0],g=h[1];f&&this.emit("failedLoading",v,g,f),p&&this.store.addResourceBundle(v,g,p),this.state[d]=f?-1:2;var m={};this.queue.forEach(function(y){pushPath(y.loaded,[v],g),remove$1(y.pending,d),f&&y.errors.push(f),y.pending.length===0&&!y.done&&(Object.keys(y.loaded).forEach(function(b){m[b]||(m[b]=[]),y.loaded[b].length&&y.loaded[b].forEach(function(w){m[b].indexOf(w)<0&&m[b].push(w)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(function(y){return!y.done})}},{key:"read",value:function(d,f,p){var h=this,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,m=arguments.length>5?arguments[5]:void 0;return d.length?this.backend[p](d,f,function(y,b){if(y&&b&&v<5){setTimeout(function(){h.read.call(h,d,f,p,v+1,g*2,m)},g);return}m(y,b)}):m(null,{})}},{key:"prepareLoading",value:function(d,f){var p=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=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."),v&&v();typeof d=="string"&&(d=this.languageUtils.toResolveHierarchy(d)),typeof f=="string"&&(f=[f]);var g=this.queueLoad(d,f,h,v);
4if(!g.toLoad.length)return g.pending.length||v(),null;g.toLoad.forEach(function(m){p.loadOne(m)})}},{key:"load",value:function(d,f,p){this.prepareLoading(d,f,{},p)}},{key:"reload",value:function(d,f,p){this.prepareLoading(d,f,{reload:!0},p)}},{key:"loadOne",value:function(d){var f=this,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",h=d.split("|"),v=h[0],g=h[1];this.read(v,g,"read",void 0,void 0,function(m,y){m&&f.logger.warn("".concat(p,"loading namespace ").concat(g," for language ").concat(v," failed"),m),!m&&y&&f.logger.log("".concat(p,"loaded namespace ").concat(g," for language ").concat(v),y),f.loaded(d,m,y)})}},{key:"saveMissing",value:function(d,f,p,h,v){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(f)){this.logger.warn('did not save key "'.concat(p,'" as the namespace "').concat(f,'" 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!!!");return}p==null||p===""||(this.backend&&this.backend.create&&this.backend.create(d,f,p,h,null,_objectSpread$1r({},g,{isUpdate:v})),!(!d||!d[0])&&this.store.addResource(d[0],f,p,h))}}]),o})(EventEmitter);function get$1(){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(o){var u={};if(_typeof$d(o[1])==="object"&&(u=o[1]),typeof o[1]=="string"&&(u.defaultValue=o[1]),typeof o[2]=="string"&&(u.tDescription=o[2]),_typeof$d(o[2])==="object"||_typeof$d(o[3])==="object"){var d=o[3]||o[2];Object.keys(d).forEach(function(f){u[f]=d[f]})}return u},interpolation:{escapeValue:!0,format:function(o,u,d,f){return o},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function transformOptions(l){return typeof l.ns=="string"&&(l.ns=[l.ns]),typeof l.fallbackLng=="string"&&(l.fallbackLng=[l.fallbackLng]),typeof l.fallbackNS=="string"&&(l.fallbackNS=[l.fallbackNS]),l.whitelist&&(l.whitelist&&l.whitelist.indexOf("cimode")<0&&(l.whitelist=l.whitelist.concat(["cimode"])),l.supportedLngs=l.whitelist),l.nonExplicitWhitelist&&(l.nonExplicitSupportedLngs=l.nonExplicitWhitelist),l.supportedLngs&&l.supportedLngs.indexOf("cimode")<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),l}function noop$4(){}var I18n=(function(l){_inherits$1F(o,l);function o(){var u,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1?arguments[1]:void 0;if(_classCallCheck$2k(this,o),u=_possibleConstructorReturn$1F(this,_getPrototypeOf$1y(o).call(this)),isIE10$1&&EventEmitter.call(_assertThisInitialized$1y(u)),u.options=transformOptions(d),u.services={},u.logger=baseLogger,u.modules={external:[]},f&&!u.isInitialized&&!d.isClone){if(!u.options.initImmediate)return u.init(d,f),_possibleConstructorReturn$1F(u,_assertThisInitialized$1y(u));setTimeout(function(){u.init(d,f)},0)}return u}return _createClass$2c(o,[{key:"init",value:function(){var d=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;typeof f=="function"&&(p=f,f={}),f.whitelist&&!f.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),f.nonExplicitWhitelist&&!f.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "
4nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=_objectSpread$1r({},get$1(),this.options,transformOptions(f)),this.format=this.options.interpolation.format,p||(p=noop$4);function h(P){return P?typeof P=="function"?new P:P:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(h(this.modules.logger),this.options):baseLogger.init(null,this.options);var v=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);var g=this.services;g.logger=baseLogger,g.resourceStore=this.store,g.languageUtils=v,g.pluralResolver=new PluralResolver(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g.interpolator=new Interpolator(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Connector(h(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(P){for(var C=arguments.length,T=new Array(C>1?C-1:0),O=1;O<C;O++)T[O-1]=arguments[O];d.emit.apply(d,[P].concat(T))}),this.modules.languageDetector&&(g.languageDetector=h(this.modules.languageDetector),g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=h(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(P){for(var C=arguments.length,T=new Array(C>1?C-1:0),O=1;O<C;O++)T[O-1]=arguments[O];d.emit.apply(d,[P].concat(T))}),this.modules.external.forEach(function(P){P.init&&P.init(d)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var y=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];y.forEach(function(P){d[P]=function(){var C;return(C=d.store)[P].apply(C,arguments)}});var b=["addResource","addResources","addResourceBundle","removeResourceBundle"];b.forEach(function(P){d[P]=function(){var C;return(C=d.store)[P].apply(C,arguments),d}});var w=defer(),E=function(){var C=function(O,x){d.isInitialized&&d.logger.warn("init: i18next is already initialized. You should call init just once!"),d.isInitialized=!0,d.options.isClone||d.logger.log("initialized",d.options),d.emit("initialized",d.options),w.resolve(x),p(O,x)};if(d.languages&&d.options.compatibilityAPI!=="v1"&&!d.isInitialized)return C(null,d.t.bind(d));d.changeLanguage(d.options.lng,C)};return this.options.resources||!this.options.initImmediate?E():setTimeout(E,0),w}},{key:"loadResources",value:function(d){var f=this,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$4,h=p,v=typeof d=="string"?d:this.language;if(typeof d=="function"&&(h=d),!this.options.resources||this.options.partialBundledLanguages){if(v&&v.toLowerCase()==="cimode")return h();var g=[],m=function(w){if(w){var E=f.services.languageUtils.toResolveHierarchy(w);E.forEach(function(P){g.indexOf(P)<0&&g.push(P)})}};if(v)m(v);else{var y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.forEach(function(b){return m(b)})}this.options.preload&&this.options.preload.forEach(function(b){return m(b)}),this.services.backendConnector.load(g,this.options.ns,h)}else h(null)}},{key:"reloadResources",value:function(d,f,p){var h=defer();return d||(d=this.languages),f||(f=this.options.ns),p||(p=noop$4),this.services.backendConnector.reload(d,f,function(v){h.resolve(),p(v)}),h}},{key:"use",value:function(d){if(!d)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!d.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return d.type==="backend"&&(this.modules.backend=d),(d.type==="logger"||d.log&&d.warn&&d.error)&&(this.modules.logger=
4d),d.type==="languageDetector"&&(this.modules.languageDetector=d),d.type==="i18nFormat"&&(this.modules.i18nFormat=d),d.type==="postProcessor"&&postProcessor.addPostProcessor(d),d.type==="3rdParty"&&this.modules.external.push(d),this}},{key:"changeLanguage",value:function(d,f){var p=this;this.isLanguageChangingTo=d;var h=defer();this.emit("languageChanging",d);var v=function(y,b){b?(p.language=b,p.languages=p.services.languageUtils.toResolveHierarchy(b),p.translator.changeLanguage(b),p.isLanguageChangingTo=void 0,p.emit("languageChanged",b),p.logger.log("languageChanged",b)):p.isLanguageChangingTo=void 0,h.resolve(function(){return p.t.apply(p,arguments)}),f&&f(y,function(){return p.t.apply(p,arguments)})},g=function(y){var b=typeof y=="string"?y:p.services.languageUtils.getBestMatchFromCodes(y);b&&(p.language||(p.language=b,p.languages=p.services.languageUtils.toResolveHierarchy(b)),p.translator.language||p.translator.changeLanguage(b),p.services.languageDetector&&p.services.languageDetector.cacheUserLanguage(b)),p.loadResources(b,function(w){v(w,b)})};return!d&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!d&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(g):g(d),h}},{key:"getFixedT",value:function(d,f){var p=this,h=function v(g,m){var y;if(_typeof$d(m)!=="object"){for(var b=arguments.length,w=new Array(b>2?b-2:0),E=2;E<b;E++)w[E-2]=arguments[E];y=p.options.overloadTranslationOptionHandler([g,m].concat(w))}else y=_objectSpread$1r({},m);return y.lng=y.lng||v.lng,y.lngs=y.lngs||v.lngs,y.ns=y.ns||v.ns,p.t(g,y)};return typeof d=="string"?h.lng=d:h.lngs=d,h.ns=f,h}},{key:"t",value:function(){var d;return this.translator&&(d=this.translator).translate.apply(d,arguments)}},{key:"exists",value:function(){var d;return this.translator&&(d=this.translator).exists.apply(d,arguments)}},{key:"setDefaultNamespace",value:function(d){this.options.defaultNS=d}},{key:"hasLoadedNamespace",value:function(d){var f=this,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
4if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var h=this.languages[0],v=this.options?this.options.fallbackLng:!1,g=this.languages[this.languages.length-1];if(h.toLowerCase()==="cimode")return!0;var m=function(w,E){var P=f.services.backendConnector.state["".concat(w,"|").concat(E)];return P===-1||P===2};if(p.precheck){var y=p.precheck(this,m);if(y!==void 0)return y}return!!(this.hasResourceBundle(h,d)||!this.services.backendConnector.backend||m(h,d)&&(!v||m(g,d)))}},{key:"loadNamespaces",value:function(d,f){var p=this,h=defer();return this.options.ns?(typeof d=="string"&&(d=[d]),d.forEach(function(v){p.options.ns.indexOf(v)<0&&p.options.ns.push(v)}),this.loadResources(function(v){h.resolve(),f&&f(v)}),h):(f&&f(),Promise.resolve())}},{key:"loadLanguages",value:function(d,f){var p=defer();typeof d=="string"&&(d=[d]);var h=this.options.preload||[],v=d.filter(function(g){return h.indexOf(g)<0});return v.length?(this.options.preload=h.concat(v),this.loadResources(function(g){p.resolve(),f&&f(g)}),p):(f&&f(),Promise.resolve())}},{key:"dir",value:function(d){if(d||(d=this.languages&&this.languages.length>0?this.languages[0]:this.language),!d)return"rtl";var f=["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"];return f.indexOf(this.services.languageUtils.getLanguagePartFromCode(d))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1?arguments[1]:void 0;return new o(d,f)}},{key:"cloneInstance",value:function(){var d=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$4,h=_objectSpread$1r({},this.options,f,{isClone:!0}),v=new o(h),g=["store","services","language"];return g.forEach(function(m){v[m]=d[m]}),v.services=_objectSpread$1r({},this.services),v.services.utils={hasLoadedNamespace:v.hasLoadedNamespace.bind(v)},v.translator=new Translator(v.services,v.options),v.translator.on("*",function(m){for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];v.emit.apply(v,[m].concat(b))}),v.init(h,p),v.translator.options=v.options,v.translator.backendConnector.services.utils={hasLoadedNamespace:v.hasLoadedNamespace.bind(v)},v}}]),o})(EventEmitter),i18next=new I18n,arr=[],each=arr.forEach,slice=arr.slice;function defaults$1(l){return each.call(slice.call(arguments,1),function(o){if(o)for(var u in o)l[u]===void 0&&(l[u]=o[u])}),l}var cookie={create:function(o,u,d,f){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/"},h;if(d){var v=new Date;v.setTime(v.getTime()+d*60*1e3),h="; expires="+v.toUTCString()}else h="";f=f?"domain="+f+";":"",p=Object.keys(p).reduce(function(g,m){return g+";"+m.replace(/([A-Z])/g,function(y){return"-"+y.toLowerCase()})+"="+p[m]},""),document.cookie=o+"="+encodeURIComponent(u)+h+";"+f+p},read:function(o){for(var u=o+"=",d=document.cookie.split(";"),f=0;f<d.length;f++){for(var p=d[f];p.charAt(0)===" ";)p=p.substring(1,p.length);if(p.indexOf(u)===0)return p.substring(u.length,p.length)}return null},remove:function(o){this.create(o,"",-1)}},cookie$1={name:"cookie",lookup:function(o){var u;if(o.lookupCookie&&typeof document<"u"){var d=cookie.read(o.lookupCookie);d&&(u=d)}return u},cacheUserLanguage:function(o,u){u.lookupCookie&&typeof document<"u"&&cookie.create(u.lookupCookie,o,u.cookieMinutes,u.cookieDomain,u.cookieOptions)}},querystring={name:"querystring",lookup:function(o){var u;if(typeof window<"u")for(var d=window.location.search.substring(1),f=d.split("&"),p=0;p<f.length;p++){var h=f[p].indexOf("=");if(h>0){var v=f[p].substring(0,h);v===o.lookupQuerystring&&(u=f[p].substring(h+1))}}return u}},hasLocalStorageSupport;try{hasLocalStorageSupport=window!=="undefined"&&window.localStorage!==null;var testKey="i18next.translate.boo";window.localStorage.setItem(testKey,"foo"),window.localStorage.removeItem(testKey)}catch{hasLocalStorageSupport=!1}var localStorage$1={name:"localStorage",lookup:function(o){var u;if(o.lookupLocalStorage&&hasLocalStorageSupport){var d=window.localStorage.getItem(o.lookupLocalStorage);d&&(u=d)}return u},cacheUserLanguage:function(o,u){u.lookupLocalStorage&&hasLocalStorageSupport&&window.localStorage.setItem(u.lookupLocalStorage,o)}}
4,hasSessionStorageSupport;try{hasSessionStorageSupport=window!=="undefined"&&window.sessionStorage!==null;var testKey$1="i18next.translate.boo";window.sessionStorage.setItem(testKey$1,"foo"),window.sessionStorage.removeItem(testKey$1)}catch{hasSessionStorageSupport=!1}var sessionStorage={name:"sessionStorage",lookup:function(o){var u;if(o.lookupsessionStorage&&hasSessionStorageSupport){var d=window.sessionStorage.getItem(o.lookupsessionStorage);d&&(u=d)}return u},cacheUserLanguage:function(o,u){u.lookupsessionStorage&&hasSessionStorageSupport&&window.sessionStorage.setItem(u.lookupsessionStorage,o)}},navigator$1={name:"navigator",lookup:function(o){var u=[];if(typeof navigator<"u"){if(navigator.languages)for(var d=0;d<navigator.languages.length;d++)u.push(navigator.languages[d]);navigator.userLanguage&&u.push(navigator.userLanguage),navigator.language&&u.push(navigator.language)}return u.length>0?u:void 0}},htmlTag={name:"htmlTag",lookup:function(o){var u,d=o.htmlTag||(typeof document<"u"?document.documentElement:null);return d&&typeof d.getAttribute=="function"&&(u=d.getAttribute("lang")),u}},path={name:"path",lookup:function(o){var u;if(typeof window<"u"){var d=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(d instanceof Array)if(typeof o.lookupFromPathIndex=="number"){if(typeof d[o.lookupFromPathIndex]!="string")return;u=d[o.lookupFromPathIndex].replace("/","")}else u=d[0].replace("/","")}return u}},subdomain={name:"subdomain",lookup:function(o){var u;if(typeof window<"u"){var d=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);d instanceof Array&&(typeof o.lookupFromSubdomainIndex=="number"?u=d[o.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):u=d[0].replace("http://","").replace("https://","").replace(".",""))}return u}};function getDefaults$1(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0,checkForSimilarInWhitelist:!1}}var Browser=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2k(this,l),this.type="languageDetector",this.detectors={},this.init(o,u)}return _createClass$2c(l,[{key:"init",value:function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=u,this.options=defaults$1(d,this.options||{},getDefaults$1()),this.options.checkForSimilarInWhitelist&&(this.options.checkWhitelist=!0),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=f,this.addDetector(cookie$1),this.addDetector(querystring),this.addDetector(localStorage$1),this.addDetector(sessionStorage),this.addDetector(navigator$1),this.addDetector(htmlTag),this.addDetector(path),this.addDetector(subdomain)}},{key:"addDetector",value:function(u){this.detectors[u.name]=u}},{key:"detect",value:function(u){var d=this;u||(u=this.options.order);var f=[];u.forEach(function(v){if(d.detectors[v]){var g=d.detectors[v].lookup(d.options);g&&typeof g=="string"&&(g=[g]),g&&(f=f.concat(g))}});var p;if(f.forEach(function(v){if(!p){var g=d.services.languageUtils.formatLanguageCode(v);(!d.options.checkWhitelist||d.services.languageUtils.isWhitelisted(g))&&(p=g),!p&&d.options.checkForSimilarInWhitelist&&(p=d.getSimilarInWhitelist(g))}}),!p){var h=this.i18nOptions.fallbackLng;typeof h=="string"&&(h=[h]),h||(h=[]),Object.prototype.toString.apply(h)==="[object Array]"?p=h[0]:p=h[0]||h.default&&h.default[0]}return p}},{key:"cacheUserLanguage",value:function(u,d){var f=this;d||(d=this.options.caches),d&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(u)>-1||d.forEach(function(p){f.detectors[p]&&f.detectors[p].cacheUserLanguage(u,f.options)}))}},{key:"getSimilarInWhitelist",value:function(u){var d=this;if(this.i18nOptions.whitelist){if(u.includes("-")){var f=u.split("-")[0],p=this.services.languageUtils.formatLanguageCode(f);if(this.services.languageUtils.isWhitelisted(p))return p;u=p}var h=this.i18nOptions.whitelist.find(function(v){var g=d.services.languageUtils.formatLanguageCode(v);if(g.startsWith(u))return g});if(h)return h}}}]),l})();Browser.type="languageDetector";function _objectWithoutPropertiesLoose$o(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function _objectWithoutProperties$q(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$o(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}var voidElements,hasRequiredVoidElements;function requireVoidElements(){return hasRequiredVoidElements||(hasRequiredVoidElements=1,voidElements={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),voidElements}var voidElementsExports=requireVoidElements();const e=getDefaultExportFromCjs(voidElementsExports);var t=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n(l){var o={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},u=l.match(/<\/?([^\s]+?)[/\s>]/);if(u&&(o.name=u[1],(e[u[1]]||l.charAt(l.length-2)==="/")&&(o.voidElement=!0),o.name.startsWith("!--"))){var d=l.indexOf("-->");return{type:"comment",comment:d!==-1?l.slice(4,d):""}}for(var f=new RegExp(t),p=null;(p=f.exec(l))!==null;)if(p[0].trim())if(p[1]){var h=p[1].trim(),v=[h,""];h.indexOf("=")>-1&&(v=h.split("=")),o.attrs[v[0]]=v[1],f.lastIndex--}else p[2]&&(o.attrs[p[2]]=p[3].trim().substring(1,p[3].length-1));return o}var r$1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$1=/^\s*$/,s=Object.create(null);function a(l,o){switch(o.type){case"text":return l+o.content;case"tag":return l+="<"+o.name+(o.attrs?(function(u){var d=[];for(var f in u)d.push(f+'="'+u[f]+'"');return d.length?" "+d.join(" "):""})(o.attrs):"")+(o.voidElement?"/>":">"),o.voidElement?l:l+o.children.reduce(a,"")+"</"+o.name+">";
4case"comment":return l+"<!--"+o.comment+"-->"}}var c={parse:function(l,o){o||(o={}),o.components||(o.components=s);var u,d=[],f=[],p=-1,h=!1;if(l.indexOf("<")!==0){var v=l.indexOf("<");d.push({type:"text",content:v===-1?l:l.substring(0,v)})}return l.replace(r$1,function(g,m){if(h){if(g!=="</"+u.name+">")return;h=!1}var y,b=g.charAt(1)!=="/",w=g.startsWith("<!--"),E=m+g.length,P=l.charAt(E);if(w){var C=n(g);return p<0?(d.push(C),d):((y=f[p]).children.push(C),d)}if(b&&(p++,(u=n(g)).type==="tag"&&o.components[u.name]&&(u.type="component",h=!0),u.voidElement||h||!P||P==="<"||u.children.push({type:"text",content:l.slice(E,l.indexOf("<",E))}),p===0&&d.push(u),(y=f[p-1])&&y.children.push(u),f[p]=u),(!b||u.voidElement)&&(p>-1&&(u.voidElement||u.name===g.slice(2,-1))&&(p--,u=p===-1?d:f[p]),!h&&P!=="<"&&P)){y=p===-1?d:f[p].children;var T=l.indexOf("<",E),O=l.slice(E,T===-1?void 0:T);i$1.test(O)&&(O=" "),(T>-1&&p+y.length>=0||O!==" ")&&y.push({type:"text",content:O})}}),d},stringify:function(l){return l.reduce(function(o,u){return o+a("",u)},"")}},matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},unescapeHtmlEntity=function(o){return htmlEntities[o]},unescape=function(o){return o.replace(matchHtmlEntity,unescapeHtmlEntity)};function ownKeys$1r(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1q(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1r(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1r(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}var defaultOptions$1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape},i18nInstance,I18nContext=reactExports.createContext();function setDefaults(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions$1=_objectSpread$1q(_objectSpread$1q({},defaultOptions$1),l)}function getDefaults(){return defaultOptions$1}var ReportNamespaces=(function(){function l(){_classCallCheck$2k(this,l),this.usedNamespaces={}}return _createClass$2c(l,[{key:"addUsedNamespaces",value:function(u){var d=this;u.forEach(function(f){d.usedNamespaces[f]||(d.usedNamespaces[f]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),l})();function setI18n(l){i18nInstance=l}function getI18n(){return i18nInstance}var initReactI18next={type:"3rdParty",init:function(o){setDefaults(o.options.react),setI18n(o)}};function warn(){if(console&&console.warn){for(var l,o=arguments.length,u=new Array(o),d=0;d<o;d++)u[d]=arguments[d];typeof u[0]=="string"&&(u[0]="react-i18next:: ".concat(u[0])),(l=console).warn.apply(l,u)}}var alreadyWarned={};function warnOnce(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];typeof o[0]=="string"&&alreadyWarned[o[0]]||(typeof o[0]=="string"&&(alreadyWarned[o[0]]=new Date),warn.apply(void 0,o))}function loadNamespaces(l,o,u){l.loadNamespaces(o,function(){if(l.isInitialized)u();else{var d=function f(){setTimeout(function(){l.off("initialized",f)},0),u()};l.on("initialized",d)}})}function oldI18nextHasLoadedNamespace(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=o.languages[0],f=o.options?o.options.fallbackLng:!1,p=o.languages[o.languages.length-1];if(d.toLowerCase()==="cimode")return!0;var h=function(g,m){var y=o.services.backendConnector.state["".concat(g,"|").concat(m)];return y===-1||y===2};return u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!h(o.isLanguageChangingTo,l)?!1:!!(o.hasResourceBundle(d,l)||!o.services.backendConnector.backend||o.options.resources&&!o.options.partialBundledLanguages||h(d,l)&&(!f||h(p,l)))}function hasLoadedNamespace(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
4if(!o.languages||!o.languages.length)return warnOnce("i18n.languages were undefined or empty",o.languages),!0;var d=o.options.ignoreJSONStructure!==void 0;return d?o.hasLoadedNamespace(l,{precheck:function(p,h){if(u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1&&p.services.backendConnector.backend&&p.isLanguageChangingTo&&!h(p.isLanguageChangingTo,l))return!1}}):oldI18nextHasLoadedNamespace(l,o,u)}function getDisplayName$1(l){return l.displayName||l.name||(typeof l=="string"&&l.length>0?l:"Unknown")}var _excluded$t=["format"],_excluded2$1=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function ownKeys$1q(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1p(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1q(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1q(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function hasChildren(l,o){if(!l)return!1;var u=l.props?l.props.children:l.children;return o?u.length>0:!!u}function getChildren(l){return l?l.props?l.props.children:l.children:[]}function hasValidReactChildren(l){return Object.prototype.toString.call(l)!=="[object Array]"?!1:l.every(function(o){return reactExports.isValidElement(o)})}function getAsArray(l){return Array.isArray(l)?l:[l]}function mergeProps(l,o){var u=_objectSpread$1p({},o);return u.props=Object.assign(l.props,o.props),u}function nodesToString(l,o){if(!l)return"";var u="",d=getAsArray(l),f=o.transSupportBasicHtmlNodes&&o.transKeepBasicHtmlNodesFor?o.transKeepBasicHtmlNodesFor:[];return d.forEach(function(p,h){if(typeof p=="string")u+="".concat(p);else if(reactExports.isValidElement(p)){var v=Object.keys(p.props).length,g=f.indexOf(p.type)>-1,m=p.props.children;if(!m&&g&&v===0)u+="<".concat(p.type,"/>");else if(!m&&(!g||v!==0))u+="<".concat(h,"></").concat(h,">");else if(p.props.i18nIsDynamicList)u+="<".concat(h,"></").concat(h,">");else if(g&&v===1&&typeof m=="string")u+="<".concat(p.type,">").concat(m,"</").concat(p.type,">");else{var y=nodesToString(m,o);u+="<".concat(h,">").concat(y,"</").concat(h,">")}}else if(p===null)warn("Trans: the passed in value is invalid - seems you passed in a null child.");else if(_typeof$d(p)==="object"){var b=p.format,w=_objectWithoutProperties$q(p,_excluded$t),E=Object.keys(w);if(E.length===1){var P=b?"".concat(E[0],", ").concat(b):E[0];u+="{{".concat(P,"}}")}else warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",p)}else warn("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",p)}),u}function renderNodes(l,o,u,d,f,p){if(o==="")return[];var h=d.transKeepBasicHtmlNodesFor||[],v=o&&new RegExp(h.join("|")).test(o);if(!l&&!v)return[o];var g={};function m(T){var O=getAsArray(T);O.forEach(function(x){typeof x!="string"&&(hasChildren(x)?m(getChildren(x)):_typeof$d(x)==="object"&&!reactExports.isValidElement(x)&&Object.assign(g,x))})}m(l);var y=c.parse("<0>".concat(o,"</0>")),b=_objectSpread$1p(_objectSpread$1p({},g),f);function w(T,O,x){var A=getChildren(T),D=P(A,O.children,x);return hasValidReactChildren(A)&&D.length===0?A:D}function E(T,O,x,A,D){T.dummy&&(T.children=O),x.push(reactExports.cloneElement(T,_objectSpread$1p(_objectSpread$1p({},T.props),{},{key:A}),D?void 0:O))}function P(T,O,x){var A=getAsArray(T),D=getAsArray(O);return D.reduce(function(j,M,N){var q=M.children&&M.children[0]&&M.children[0].content&&u.services.interpolator.interpolate(M.children[0].content,b,u.language);if(M.type==="tag"){var z=A[parseInt(M.name,10)];!z&&x.length===1&&x[0][M.name]&&(z=x[0][M.name]),z||(z={});var H=Object.keys(M.attrs).length!==0?mergeProps({props:M.attrs},z):z,U=reactExports.isValidElement(H),F=U&&hasChildren(M,!0)&&!M.voidElement,B=v&&_typeof$d(H)==="object"&&H.dummy&&!U,G=_typeof$d(l)==="object"&&l!==null&&Object.hasOwnProperty.call(l,M.name);if(typeof H=="string"){var Q=u.services.interpolator.interpolate(H,b,u.language);
4j.push(Q)}else if(hasChildren(H)||F){var K=w(H,M,x);E(H,K,j,N)}else if(B){var Z=P(A,M.children,x);j.push(reactExports.cloneElement(H,_objectSpread$1p(_objectSpread$1p({},H.props),{},{key:N}),Z))}else if(Number.isNaN(parseFloat(M.name)))if(G){var te=w(H,M,x);E(H,te,j,N,M.voidElement)}else if(d.transSupportBasicHtmlNodes&&h.indexOf(M.name)>-1)if(M.voidElement)j.push(reactExports.createElement(M.name,{key:"".concat(M.name,"-").concat(N)}));else{var oe=P(A,M.children,x);j.push(reactExports.createElement(M.name,{key:"".concat(M.name,"-").concat(N)},oe))}else if(M.voidElement)j.push("<".concat(M.name," />"));else{var fe=P(A,M.children,x);j.push("<".concat(M.name,">").concat(fe,"</").concat(M.name,">"))}else if(_typeof$d(H)==="object"&&!U){var le=M.children[0]?q:null;le&&j.push(le)}else M.children.length===1&&q?j.push(reactExports.cloneElement(H,_objectSpread$1p(_objectSpread$1p({},H.props),{},{key:N}),q)):j.push(reactExports.cloneElement(H,_objectSpread$1p(_objectSpread$1p({},H.props),{},{key:N})))}else if(M.type==="text"){var Re=d.transWrapTextNodes,Ae=p?d.unescape(u.services.interpolator.interpolate(M.content,b,u.language)):u.services.interpolator.interpolate(M.content,b,u.language);Re?j.push(reactExports.createElement(Re,{key:"".concat(M.name,"-").concat(N)},Ae)):j.push(Ae)}return j},[])}var C=P([{dummy:!0,children:l||[]}],y,getAsArray(l||[]));return getChildren(C[0])}function Trans(l){var o=l.children,u=l.count,d=l.parent,f=l.i18nKey,p=l.context,h=l.tOptions,v=h===void 0?{}:h,g=l.values,m=l.defaults,y=l.components,b=l.ns,w=l.i18n,E=l.t,P=l.shouldUnescape,C=_objectWithoutProperties$q(l,_excluded2$1),T=reactExports.useContext(I18nContext)||{},O=T.i18n,x=T.defaultNS,A=w||O||getI18n();if(!A)return warnOnce("You will need to pass in an i18next instance by using i18nextReactModule"),o;var D=E||A.t.bind(A)||function(Q){return Q};p&&(v.context=p);var j=_objectSpread$1p(_objectSpread$1p({},getDefaults()),A.options&&A.options.react),M=b||D.ns||x||A.options&&A.options.defaultNS;M=typeof M=="string"?[M]:M||["translation"];var N=m||nodesToString(o,j)||j.transEmptyNodeValue||f,q=j.hashTransKey,z=f||(q?q(N):N),H=g?v.interpolation:{interpolation:_objectSpread$1p(_objectSpread$1p({},v.interpolation),{},{prefix:"#$?",suffix:"?$#"})},U=_objectSpread$1p(_objectSpread$1p(_objectSpread$1p(_objectSpread$1p({},v),{},{count:u},g),H),{},{defaultValue:N,ns:M}),F=z?D(z,U):N,B=renderNodes(y||o,F,A,j,U,P),G=d!==void 0?d:j.defaultTransParent;return G?reactExports.createElement(G,C,B):B}function _arrayWithHoles$n(l){if(Array.isArray(l))return l}function _iterableToArrayLimit$n(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o===0){if(Object(u)!==u)return;g=!1}else for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayLikeToArray$G(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _unsupportedIterableToArray$G(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$G(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$G(l,o):void 0}}function _nonIterableRest$n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray$n(l,o){return _arrayWithHoles$n(l)||_iterableToArrayLimit$n(l,o)||_unsupportedIterableToArray$G(l,o)||_nonIterableRest$n()}function ownKeys$1p(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1o(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
5o%2?ownKeys$1p(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1p(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}var usePrevious$1=function(o,u){var d=reactExports.useRef();return reactExports.useEffect(function(){d.current=o},[o,u]),d.current};function useTranslation(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.i18n,d=reactExports.useContext(I18nContext)||{},f=d.i18n,p=d.defaultNS,h=u||f||getI18n();if(h&&!h.reportNamespaces&&(h.reportNamespaces=new ReportNamespaces),!h){warnOnce("You will need to pass in an i18next instance by using initReactI18next");var v=function(z){return Array.isArray(z)?z[z.length-1]:z},g=[v,{},!1];return g.t=v,g.i18n={},g.ready=!1,g}h.options.react&&h.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=_objectSpread$1o(_objectSpread$1o(_objectSpread$1o({},getDefaults()),h.options.react),o),y=m.useSuspense,b=m.keyPrefix,w=l||p||h.options&&h.options.defaultNS;w=typeof w=="string"?[w]:w||["translation"],h.reportNamespaces.addUsedNamespaces&&h.reportNamespaces.addUsedNamespaces(w);var E=(h.isInitialized||h.initializedStoreOnce)&&w.every(function(q){return hasLoadedNamespace(q,h,m)});function P(){return h.getFixedT(null,m.nsMode==="fallback"?w:w[0],b)}var C=reactExports.useState(P),T=_slicedToArray$n(C,2),O=T[0],x=T[1],A=w.join(),D=usePrevious$1(A),j=reactExports.useRef(!0);reactExports.useEffect(function(){var q=m.bindI18n,z=m.bindI18nStore;j.current=!0,!E&&!y&&loadNamespaces(h,w,function(){j.current&&x(P)}),E&&D&&D!==A&&j.current&&x(P);function H(){j.current&&x(P)}return q&&h&&h.on(q,H),z&&h&&h.store.on(z,H),function(){j.current=!1,q&&h&&q.split(" ").forEach(function(U){return h.off(U,H)}),z&&h&&z.split(" ").forEach(function(U){return h.store.off(U,H)})}},[h,A]);var M=reactExports.useRef(!0);reactExports.useEffect(function(){j.current&&!M.current&&x(P),M.current=!1},[h,b]);var N=[O,h,E];if(N.t=O,N.i18n=h,N.ready=E,E||!E&&!y)return N;throw new Promise(function(q){loadNamespaces(h,w,function(){q()})})}var _excluded$s=["forwardedRef"];function ownKeys$1o(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1n(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1o(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1o(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function withTranslation(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(d){function f(h){var v=h.forwardedRef,g=_objectWithoutProperties$q(h,_excluded$s),m=useTranslation(l,_objectSpread$1n(_objectSpread$1n({},g),{},{keyPrefix:o.keyPrefix})),y=_slicedToArray$n(m,3),b=y[0],w=y[1],E=y[2],P=_objectSpread$1n(_objectSpread$1n({},g),{},{t:b,i18n:w,tReady:E});return o.withRef&&v?P.ref=v:!o.withRef&&v&&(P.forwardedRef=v),reactExports.createElement(d,P)}f.displayName="withI18nextTranslation(".concat(getDisplayName$1(d),")"),f.WrappedComponent=d;var p=function(v,g){return reactExports.createElement(f,Object.assign({},v,{forwardedRef:g}))};return o.withRef?reactExports.forwardRef(p):f}}function I18nextProvider(l){var o=l.i18n,u=l.defaultNS,d=l.children,f=reactExports.useMemo(function(){return{i18n:o,defaultNS:u}},[o,u]);return reactExports.createElement(I18nContext.Provider,{value:f},d)}var classnames={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function(l){(function(){var o={}.hasOwnProperty;function u(){for(var p="",h=0;h<arguments.length;h++){var v=arguments[h];v&&(p=f(p,d(v)))}return p}function d(p){if(typeof p=="string"||typeof p=="number")return p;if(typeof p!="object")return"";if(Array.isArray(p))return u.apply(null,p);if(p.toString!==Object.prototype.toString&&!p.toString.toString().includes("[native code]"))return p.toString();var h="";for(var v in p)o.call(p,v)&&p[v]&&(h=f(h,v));return h}function f(p,h){return h?p?p+" "+h:p+h:p}
5l.exports?(u.default=u,l.exports=u):window.classNames=u})()})(classnames)),classnames.exports}var classnamesExports=requireClassnames();const classNames=getDefaultExportFromCjs(classnamesExports);function _inheritsLoose(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,_setPrototypeOf$1y(l,o)}var changedArray=function(o,u){return o===void 0&&(o=[]),u===void 0&&(u=[]),o.length!==u.length||o.some(function(d,f){return!Object.is(d,u[f])})},initialState$3={error:null},ErrorBoundary$1=(function(l){_inheritsLoose(o,l);function o(){for(var d,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return d=l.call.apply(l,[this].concat(p))||this,d.state=initialState$3,d.resetErrorBoundary=function(){for(var v,g=arguments.length,m=new Array(g),y=0;y<g;y++)m[y]=arguments[y];d.props.onReset==null||(v=d.props).onReset.apply(v,m),d.reset()},d}o.getDerivedStateFromError=function(f){return{error:f}};var u=o.prototype;return u.reset=function(){this.setState(initialState$3)},u.componentDidCatch=function(f,p){var h,v;(h=(v=this.props).onError)==null||h.call(v,f,p)},u.componentDidUpdate=function(f,p){var h=this.state.error,v=this.props.resetKeys;if(h!==null&&p.error!==null&&changedArray(f.resetKeys,v)){var g,m;(g=(m=this.props).onResetKeysChange)==null||g.call(m,f.resetKeys,v),this.reset()}},u.render=function(){var f=this.state.error,p=this.props,h=p.fallbackRender,v=p.FallbackComponent,g=p.fallback;if(f!==null){var m={error:f,resetErrorBoundary:this.resetErrorBoundary};if(reactExports.isValidElement(g))return g;if(typeof h=="function")return h(m);if(v)return reactExports.createElement(v,m);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o})(reactExports.Component);function withErrorBoundary(l,o){var u=function(p){return reactExports.createElement(ErrorBoundary$1,o,reactExports.createElement(l,p))},d=l.displayName||l.name||"Unknown";return u.displayName="withErrorBoundary("+d+")",u}var Visibility={},interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,(function(l){function o(u){return u&&u.__esModule?u:{default:u}}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(interopRequireDefault)),interopRequireDefault.exports}var interopRequireWildcard={exports:{}},_typeof$c={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,(function(l){function o(u){"@babel/helpers - typeof";return l.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},l.exports.__esModule=!0,l.exports.default=l.exports,o(u)}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(_typeof$c)),_typeof$c.exports}var hasRequiredInteropRequireWildcard;function requireInteropRequireWildcard(){return hasRequiredInteropRequireWildcard||(hasRequiredInteropRequireWildcard=1,(function(l){var o=require_typeof().default;function u(d,f){if(typeof WeakMap=="function")var p=new WeakMap,h=new WeakMap;return(l.exports=u=function(g,m){if(!m&&g&&g.__esModule)return g;var y,b,w={__proto__:null,default:g};if(g===null||o(g)!="object"&&typeof g!="function")return w;if(y=m?h:p){if(y.has(g))return y.get(g);y.set(g,w)}for(var E in g)E!=="default"&&{}.hasOwnProperty.call(g,E)&&((b=(y=Object.defineProperty)&&Object.getOwnPropertyDescriptor(g,E))&&(b.get||b.set)?y(w,E,b):w[E]=g[E]);return w},l.exports.__esModule=!0,l.exports.default=l.exports)(d,f)}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(interopRequireWildcard)),interopRequireWildcard.exports}var createSvgIcon$1={};function chainPropTypes(l,o){return function(){return null}}function _extends$v(){return _extends$v=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)({}).hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$v.apply(null,arguments)}function isPlainObject$2(l){return l&&_typeof$d(l)==="object"&&l.constructor===Object}function deepmerge$1(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},d=u.clone?_extends$v({},l):l;return isPlainObject$2(l)&&isPlainObject$2(o)&&Object.keys(o).forEac
5h(function(f){f!=="__proto__"&&(isPlainObject$2(o[f])&&f in l?d[f]=deepmerge$1(l[f],o[f],u):d[f]=o[f])}),d}var propTypes$1={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=l,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var l=requireReactPropTypesSecret();function o(){}function u(){}return u.resetWarningCache=o,factoryWithThrowingShims=function(){function d(h,v,g,m,y,b){if(b!==l){var w=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 w.name="Invariant Violation",w}}d.isRequired=d;function f(){return d}var p={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:o};return p.PropTypes=p,p},factoryWithThrowingShims}var hasRequiredPropTypes$1;function requirePropTypes$1(){return hasRequiredPropTypes$1||(hasRequiredPropTypes$1=1,propTypes$1.exports=requireFactoryWithThrowingShims()()),propTypes$1.exports}var propTypesExports=requirePropTypes$1();const PropTypes=getDefaultExportFromCjs(propTypesExports);var elementAcceptingRef=chainPropTypes(PropTypes.element);elementAcceptingRef.isRequired=chainPropTypes(PropTypes.element.isRequired);const elementTypeAcceptingRef=chainPropTypes();function exactProp(l){return l}function formatMuiErrorMessage(l){for(var o="https://mui.com/production-error/?code="+l,u=1;u<arguments.length;u+=1)o+="&args[]="+encodeURIComponent(arguments[u]);return"Minified Material-UI error #"+l+"; visit "+o+" for the full message."}var reactIs$1={exports:{}},reactIs_production_min$1={};var hasRequiredReactIs_production_min$1;function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var l=60103,o=60106,u=60107,d=60108,f=60114,p=60109,h=60110,v=60112,g=60113,m=60120,y=60115,b=60116,w=60121,E=60122,P=60117,C=60129,T=60131;if(typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;l=O("react.element"),o=O("react.portal"),u=O("react.fragment"),d=O("react.strict_mode"),f=O("react.profiler"),p=O("react.provider"),h=O("react.context"),v=O("react.forward_ref"),g=O("react.suspense"),m=O("react.suspense_list"),y=O("react.memo"),b=O("react.lazy"),w=O("react.block"),E=O("react.server.block"),P=O("react.fundamental"),C=O("react.debug_trace_mode"),T=O("react.legacy_hidden")}function x(B){if(typeof B=="object"&&B!==null){var G=B.$$typeof;switch(G){case l:switch(B=B.type,B){case u:case f:case d:case g:case m:return B;default:switch(B=B&&B.$$typeof,B){case h:case v:case b:case y:case p:return B;default:return G}}case o:return G}}}var A=p,D=l,j=v,M=u,N=b,q=y,z=o,H=f,U=d,F=g;return reactIs_production_min$1.ContextConsumer=h,reactIs_production_min$1.ContextProvider=A,reactIs_production_min$1.Element=D,reactIs_production_min$1.ForwardRef=j,reactIs_production_min$1.Fragment=M,reactIs_production_min$1.Lazy=N,reactIs_production_min$1.Memo=q,reactIs_production_min$1.Portal=z,reactIs_production_min$1.Profiler=H,reactIs_production_min$1.StrictMode=U,reactIs_production_min$1.Suspense=F,reactIs_production_min$1.isAsyncMode=function(){return!1},reactIs_production_min$1.isConcurrentMode=function(){return!1},reactIs_production_min$1.isContextConsumer=function(B){return x(B)===h},reactIs_production_min$1.isContextProvider=function(B){return x(B)===p},reactIs_production_min$1.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===l},reactIs_production_min$1.isForwardRef=function(B){return x(B)===v},reactIs_production_min$1.isFragment=function(B){return x(B)===u},reactIs_production_min$1.isLazy=function(B){return x(B)===b},reactIs_production_min$1.isMemo=function(B){return x(B)===y},reactIs_production_min$1.isPortal=function(B){return x(B)===o},reactIs_production_min$1.isProfiler=function(B){return x(B)===f},reactIs_production_min$1.isStrictMode=function(B){return x(B)===d},reactIs_production_min$1.isSuspense=function(B){return x(B)===g},reactIs_production_min$1.isValidElementType=function(B){return typeof B=="str
5ing"||typeof B=="function"||B===u||B===f||B===C||B===d||B===g||B===m||B===T||typeof B=="object"&&B!==null&&(B.$$typeof===b||B.$$typeof===y||B.$$typeof===p||B.$$typeof===h||B.$$typeof===v||B.$$typeof===P||B.$$typeof===w||B[0]===E)},reactIs_production_min$1.typeOf=x,reactIs_production_min$1}var hasRequiredReactIs$1;function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,reactIs$1.exports=requireReactIs_production_min$1()),reactIs$1.exports}var reactIsExports=requireReactIs$1(),fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(l){var o="".concat(l).match(fnNameMatchRegex),u=o&&o[1];return u||""}function getFunctionComponentName(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return l.displayName||l.name||getFunctionName(l)||o}function getWrappedName(l,o,u){var d=getFunctionComponentName(o);return l.displayName||(d!==""?"".concat(u,"(").concat(d,")"):u)}function getDisplayName(l){if(l!=null){if(typeof l=="string")return l;if(typeof l=="function")return getFunctionComponentName(l,"Component");if(_typeof$d(l)==="object")switch(l.$$typeof){case reactIsExports.ForwardRef:return getWrappedName(l,l.render,"ForwardRef");case reactIsExports.Memo:return getWrappedName(l,l.type,"memo");default:return}}}function HTMLElementType(l,o,u,d,f){return null}const ponyfillGlobal=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();var refType=PropTypes.oneOfType([PropTypes.func,PropTypes.object]);const esm$b=Object.freeze(Object.defineProperty({__proto__:null,HTMLElementType,chainPropTypes,deepmerge:deepmerge$1,elementAcceptingRef,elementTypeAcceptingRef,exactProp,formatMuiErrorMessage,getDisplayName,ponyfillGlobal,refType},Symbol.toStringTag,{value:"Module"}));function capitalize$1(l){if(typeof l!="string")throw new Error(formatMuiErrorMessage(7));return l.charAt(0).toUpperCase()+l.slice(1)}function createChainedFunction(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return o.reduce(function(d,f){return f==null?d:function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];d.apply(this,v),f.apply(this,v)}},function(){})}function r(l){var o,u,d="";if(typeof l=="string"||typeof l=="number")d+=l;else if(typeof l=="object")if(Array.isArray(l))for(o=0;o<l.length;o++)l[o]&&(u=r(l[o]))&&(d&&(d+=" "),d+=u);else for(o in l)l[o]&&(d&&(d+=" "),d+=o);return d}function clsx$1(){for(var l,o,u=0,d="";u<arguments.length;)(l=arguments[u++])&&(o=r(l))&&(d&&(d+=" "),d+=o);return d}var hasSymbol=typeof Symbol=="function"&&Symbol.for;const nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";var pseudoClasses=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function createGenerateClassName(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.disableGlobal,u=o===void 0?!1:o,d=l.productionPrefix,f=d===void 0?"jss":d,p=l.seed,h=p===void 0?"":p,v=h===""?"":"".concat(h,"-"),g=0,m=function(){return g+=1,g};return function(y,b){var w=b.options.name;if(w&&w.indexOf("Mui")===0&&!b.options.link&&!u){if(pseudoClasses.indexOf(y.key)!==-1)return"Mui-".concat(y.key);var E="".concat(v).concat(w,"-").concat(y.key);return!b.options.theme[nested]||h!==""?E:"".concat(E,"-").concat(m())}return"".concat(v).concat(f).concat(m())}}function createStyles$1(l){return l}function getThemeProps(l){var o=l.theme,u=l.name,d=l.props;if(!o||!o.props||!o.props[u])return d;var f=o.props[u],p;for(p in f)d[p]===void 0&&(d[p]=f[p]);return d}function warning(l,o){}const tinyWarning_esm=Object.freeze(Object.defineProperty({__proto__:null,default:warning},Symbol.toStringTag,{value:"Module"}));var _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},isBrowser$2=(typeof window>"u"?"undefined":_typeof$b(window))==="object"&&(typeof document>"u"?"undefined":_typeof$b(document))==="object"&&document.nodeType===9,plainObjectConstrurctor={}.constructor;function cloneStyle(l){if(l==null||typeof l!="object")return l;if(Array.isArray(l))return l.map(cloneStyle);if(l.constructor!==plainObjectConstrurctor)return l;var o={};for(var u in l)o[u]=cloneStyle(l[u]);return o}function createRule(l,o,u){l===void 0&&(l="unnamed");var d=u.jss,f=cloneStyle(o),p=d.plugins.onCreateRule(l,f,u);return p||(l[0],null)}var join$1=function(o,u){for(var d="",f=0;f<o.length&&o[f]!=="!important";f++)d&&(d+=u),d+=o[f];return d}
5,toCssValue=function(o){if(!Array.isArray(o))return o;var u="";if(Array.isArray(o[0]))for(var d=0;d<o.length&&o[d]!=="!important";d++)u&&(u+=", "),u+=join$1(o[d]," ");else u=join$1(o,", ");return o[o.length-1]==="!important"&&(u+=" !important"),u};function getWhitespaceSymbols(l){return l&&l.format===!1?{linebreak:"",space:""}:{linebreak:`
6`,space:" "}}function indentStr(l,o){for(var u="",d=0;d<o;d++)u+="  ";return u+l}function toCss(l,o,u){u===void 0&&(u={});var d="";if(!o)return d;var f=u,p=f.indent,h=p===void 0?0:p,v=o.fallbacks;u.format===!1&&(h=-1/0);var g=getWhitespaceSymbols(u),m=g.linebreak,y=g.space;if(l&&h++,v)if(Array.isArray(v))for(var b=0;b<v.length;b++){var w=v[b];for(var E in w){var P=w[E];P!=null&&(d&&(d+=m),d+=indentStr(E+":"+y+toCssValue(P)+";",h))}}else for(var C in v){var T=v[C];T!=null&&(d&&(d+=m),d+=indentStr(C+":"+y+toCssValue(T)+";",h))}for(var O in o){var x=o[O];x!=null&&O!=="fallbacks"&&(d&&(d+=m),d+=indentStr(O+":"+y+toCssValue(x)+";",h))}return!d&&!u.allowEmpty||!l?d:(h--,d&&(d=""+m+d+m),indentStr(""+l+y+"{"+d,h)+indentStr("}",h))}var escapeRegex=/([[\].#*$><+~=|^:(),"'`\s])/g,nativeEscape=typeof CSS<"u"&&CSS.escape,escape$1=(function(l){return nativeEscape?nativeEscape(l):l.replace(escapeRegex,"\\$1")}),BaseStyleRule=(function(){function l(u,d,f){this.type="style",this.isProcessed=!1;var p=f.sheet,h=f.Renderer;this.key=u,this.options=f,this.style=d,p?this.renderer=p.renderer:h&&(this.renderer=new h)}var o=l.prototype;return o.prop=function(d,f,p){if(f===void 0)return this.style[d];var h=p?p.force:!1;if(!h&&this.style[d]===f)return this;var v=f;(!p||p.process!==!1)&&(v=this.options.jss.plugins.onChangeValue(f,d,this));var g=v==null||v===!1,m=d in this.style;if(g&&!m&&!h)return this;var y=g&&m;if(y?delete this.style[d]:this.style[d]=v,this.renderable&&this.renderer)return y?this.renderer.removeProperty(this.renderable,d):this.renderer.setProperty(this.renderable,d,v),this;var b=this.options.sheet;return b&&b.attached,this},l})(),StyleRule=(function(l){_inheritsLoose(o,l);function o(d,f,p){var h;h=l.call(this,d,f,p)||this;var v=p.selector,g=p.scoped,m=p.sheet,y=p.generateId;return v?h.selectorText=v:g!==!1&&(h.id=y(_assertThisInitialized$1y(_assertThisInitialized$1y(h)),m),h.selectorText="."+escape$1(h.id)),h}var u=o.prototype;return u.applyTo=function(f){var p=this.renderer;if(p){var h=this.toJSON();for(var v in h)p.setProperty(f,v,h[v])}return this},u.toJSON=function(){var f={};for(var p in this.style){var h=this.style[p];typeof h!="object"?f[p]=h:Array.isArray(h)&&(f[p]=toCssValue(h))}return f},u.toString=function(f){var p=this.options.sheet,h=p?p.options.link:!1,v=h?_extends$v({},f,{allowEmpty:!0}):f;return toCss(this.selectorText,this.style,v)},_createClass$2c(o,[{key:"selector",set:function(f){if(f!==this.selectorText){this.selectorText=f;var p=this.renderer,h=this.renderable;if(!(!h||!p)){var v=p.setSelector(h,f);v||p.replaceRule(h,this)}}},get:function(){return this.selectorText}}]),o})(BaseStyleRule),pluginStyleRule={onCreateRule:function(o,u,d){return o[0]==="@"||d.parent&&d.parent.type==="keyframes"?null:new StyleRule(o,u,d)}},defaultToStringOptions={indent:1,children:!0},atRegExp=/@([\w-]+)/,ConditionalRule=(function(){function l(u,d,f){this.type="conditional",this.isProcessed=!1,this.key=u;var p=u.match(atRegExp);this.at=p?p[1]:"unknown",this.query=f.name||"@"+this.at,this.options=f,this.rules=new RuleList(_extends$v({},f,{parent:this}));for(var h in d)this.rules.add(h,d[h]);this.rules.process()}var o=l.prototype;return o.getRule=function(d){return this.rules.get(d)},o.indexOf=function(d){return this.rules.indexOf(d)},o.addRule=function(d,f,p){var h=this.rules.add(d,f,p);return h?(this.options.jss.plugins.onProcessRule(h),h):null},o.replaceRule=function(d,f,p){var h=this.rules.replace(d,f,p);return h&&this.options.jss.plugins.onProcessRule(h),h},o.toString=function(d){d===void 0&&(d=defaultToStringOptions);var f=getWhitespaceSymbols(d),p=f.linebreak;if(d.indent==null&&(d.indent=defaultToStringOptions.indent),d.children==null&&(d.children=defaultToStringOptions.children),d.children===!1)return this.query+" {}";var h=this.rules.toString(d);return h?this.query+" {"+p+h+p+"}":""},l})(),keyRegExp=/@container|@media|@supports\s+/,pluginConditionalRule={onCreateRule:function(o,u,d){return keyRegExp.test(o)?new ConditionalRule(o,u,d):null}},defaultToStringOptions$1={indent:1,children:!0},nameRegExp=/@keyframes\s+([\w-]+)/,KeyframesRule=(function(){function l(u,d,f){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var p=u.match(nameRegExp);p&&p[1]?this.name=p[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=f;var h=f.scoped,v=f.sheet,g=f.generateId;this.id=h===!1?this.name:escape$1(g(this,v)),this.rules=new RuleList(_extends$v({},f,{parent:this}));for(var m in d)this.rules.add(m,d[m],_extends$v({},f,{parent:this}));this.rules.process()}var o=l.prototype;return o.toString=function(d){d===void 0&&(d=defaultToStringOptions$1);var f=getWhitespaceSymbols(d),p=f.linebreak;if(d.indent==null&&(d.indent=defaultToStringOptions$1.indent),d.children==null&&(d.children=defaultToStringOptions$1.children),d.children===!1)return this.at+" "+this.id+" {}";var h=this.rules.toString(d);return h&&(h=""+p+h+p),this.at+" "+this.id+" {"+h+"}"},l})(),keyRegExp$1=/@keyframes\s+/,refRegExp$1=/\$([\w-]+)/g,findReferencedKeyframe=function(o,u){return typeof o=="str
6ing"?o.replace(refRegExp$1,function(d,f){return f in u?u[f]:d}):o},replaceRef=function(o,u,d){var f=o[u],p=findReferencedKeyframe(f,d);p!==f&&(o[u]=p)},pluginKeyframesRule={onCreateRule:function(o,u,d){return typeof o=="string"&&keyRegExp$1.test(o)?new KeyframesRule(o,u,d):null},onProcessStyle:function(o,u,d){return u.type!=="style"||!d||("animation-name"in o&&replaceRef(o,"animation-name",d.keyframes),"animation"in o&&replaceRef(o,"animation",d.keyframes)),o},onChangeValue:function(o,u,d){var f=d.options.sheet;if(!f)return o;switch(u){case"animation":return findReferencedKeyframe(o,f.keyframes);case"animation-name":return findReferencedKeyframe(o,f.keyframes);default:return o}}},KeyframeRule=(function(l){_inheritsLoose(o,l);function o(){return l.apply(this,arguments)||this}var u=o.prototype;return u.toString=function(f){var p=this.options.sheet,h=p?p.options.link:!1,v=h?_extends$v({},f,{allowEmpty:!0}):f;return toCss(this.key,this.style,v)},o})(BaseStyleRule),pluginKeyframeRule={onCreateRule:function(o,u,d){return d.parent&&d.parent.type==="keyframes"?new KeyframeRule(o,u,d):null}},FontFaceRule=(function(){function l(u,d,f){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=u,this.style=d,this.options=f}var o=l.prototype;return o.toString=function(d){var f=getWhitespaceSymbols(d),p=f.linebreak;if(Array.isArray(this.style)){for(var h="",v=0;v<this.style.length;v++)h+=toCss(this.at,this.style[v]),this.style[v+1]&&(h+=p);return h}return toCss(this.at,this.style,d)},l})(),keyRegExp$2=/@font-face/,pluginFontFaceRule={onCreateRule:function(o,u,d){return keyRegExp$2.test(o)?new FontFaceRule(o,u,d):null}},ViewportRule=(function(){function l(u,d,f){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=u,this.style=d,this.options=f}var o=l.prototype;return o.toString=function(d){return toCss(this.key,this.style,d)},l})(),pluginViewportRule={onCreateRule:function(o,u,d){return o==="@viewport"||o==="@-ms-viewport"?new ViewportRule(o,u,d):null}},SimpleRule=(function(){function l(u,d,f){this.type="simple",this.isProcessed=!1,this.key=u,this.value=d,this.options=f}var o=l.prototype;return o.toString=function(d){if(Array.isArray(this.value)){for(var f="",p=0;p<this.value.length;p++)f+=this.key+" "+this.value[p]+";",this.value[p+1]&&(f+=`
7`);return f}return this.key+" "+this.value+";"},l})(),keysMap={"@charset":!0,"@import":!0,"@namespace":!0},pluginSimpleRule={onCreateRule:function(o,u,d){return o in keysMap?new SimpleRule(o,u,d):null}},plugins$1=[pluginStyleRule,pluginConditionalRule,pluginKeyframesRule,pluginKeyframeRule,pluginFontFaceRule,pluginViewportRule,pluginSimpleRule],defaultUpdateOptions={process:!0},forceUpdateOptions={force:!0,process:!0},RuleList=(function(){function l(u){this.map={},this.raw={},this.index=[],this.counter=0,this.options=u,this.classes=u.classes,this.keyframes=u.keyframes}var o=l.prototype;return o.add=function(d,f,p){var h=this.options,v=h.parent,g=h.sheet,m=h.jss,y=h.Renderer,b=h.generateId,w=h.scoped,E=_extends$v({classes:this.classes,parent:v,sheet:g,jss:m,Renderer:y,generateId:b,scoped:w,name:d,keyframes:this.keyframes,selector:void 0},p),P=d;d in this.raw&&(P=d+"-d"+this.counter++),this.raw[P]=f,P in this.classes&&(E.selector="."+escape$1(this.classes[P]));var C=createRule(P,f,E);if(!C)return null;this.register(C);var T=E.index===void 0?this.index.length:E.index;return this.index.splice(T,0,C),C},o.replace=function(d,f,p){var h=this.get(d),v=this.index.indexOf(h);h&&this.remove(h);var g=p;return v!==-1&&(g=_extends$v({},p,{index:v})),this.add(d,f,g)},o.get=function(d){return this.map[d]},o.remove=function(d){this.unregister(d),delete this.raw[d.key],this.index.splice(this.index.indexOf(d),1)},o.indexOf=function(d){return this.index.indexOf(d)},o.process=function(){var d=this.options.jss.plugins;this.index.slice(0).forEach(d.onProcessRule,d)},o.register=function(d){this.map[d.key]=d,d instanceof StyleRule?(this.map[d.selector]=d,d.id&&(this.classes[d.key]=d.id)):d instanceof KeyframesRule&&this.keyframes&&(this.keyframes[d.name]=d.id)},o.unregister=function(d){delete this.map[d.key],d instanceof StyleRule?(delete this.map[d.selector],delete this.classes[d.key]):d instanceof KeyframesRule&&delete this.keyframes[d.name]},o.update=function(){var d,f,p;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(d=arguments.length<=0?void 0:arguments[0],f=arguments.length<=1?void 0:arguments[1],p=arguments.length<=2?void 0:arguments[2]):(f=arguments.length<=0?void 0:arguments[0],p=arguments.length<=1?void 0:arguments[1],d=null),d)this.updateOne(this.get(d),f,p);else for(var h=0;h<this.index.length;h++)this.updateOne(this.index[h],f,p)},o.updateOne=function(d,f,p){p===void 0&&(p=defaultUpdateOptions);var h=this.options,v=h.jss.plugins,g=h.sheet;if(d.rules instanceof l){d.rules.update(f,p);return}var m=d.style;if(v.onUpdate(f,d,g,p),p.process&&m&&m!==d.style){v.onProcessStyle(d.style,d,g);for(var y in d.style){var b=d.style[y],w=m[y];b!==w&&d.prop(y,b,forceUpdateOptions)}for(var E in m){var P=d.style[E],C=m[E];P==null&&P!==C&&d.prop(E,null,forceUpdateOptions)}}},o.toString=function(d){for(var f="",p=this.options.sheet,h=p?p.options.link:!1,v=getWhitespaceSymbols(d),g=v.linebreak,m=0;m<this.index.length;m++){var y=this.index[m],b=y.toString(d);!b&&!h||(f&&(f+=g),f+=b)}return f},l})(),StyleSheet=(function(){function l(u,d){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=_extends$v({},d,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),d.Renderer&&(this.renderer=new d.Renderer(this)),this.rules=new RuleList(this.options);for(var f in u)this.rules.add(f,u[f]);this.rules.process()}var o=l.prototype;return o.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},o.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},o.addRule=function(d,f,p){var h=this.queue;this.attached&&!h&&(this.queue=[]);var v=this.rules.add(d,f,p);return v?(this.options.jss.plugins.onProcessRule(v),this.attached?(this.deployed&&(h?h.push(v):(this.insertRule(v),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),v):(this.deployed=!1,v)):null},o.replaceRule=function(d,f,p){var h=this.rules.get(d);if(!h)return this.addRule(d,f,p);var v=this.rules.replace(d,f,p);return v&&this.options.jss.plugins.onProcessRule(v),this.attached?(this.deployed&&this.renderer&&(v?h.renderable&&this.renderer.replaceRule(h.renderable,v):this.renderer.deleteRule(h)),v):(this.deployed=!1,v)},o.insertRule=function(d){this.renderer&&this.renderer.insertRule(d)},o.addRules=function(d,f){var p=[];for(var h in d){var v=this.addRule(h,d[h],f);v&&p.push(v)}return p},o.getRule=function(d){return this.rules.get(d)},o.deleteRule=function(d){var f=typeof d=="object"?d:this.rules.get(d);return!f||this.attached&&!f.renderable?!1:(this.rules.remove(f),this.attached&&f.renderable&&this.renderer?this.renderer.deleteRule(f.renderable):!0)},o.indexOf=function(d){return this.rules.indexOf(d)},o.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},o.update=function(){var d;return(d=this.rules).update.apply(d,arguments),this},o.updateOne=function(d,f,p){return this.rules.updateOne(d,f,p),this},o.toString=function(d){return this.rules.toString(d)},l})(),PluginsRegistry=(function(){function l(){this.plugins={internal:[],external:[]},this.registry={}}var o=l.prototype;return o.onCreateRule=function(d,f,p){for(var h=0;h<this.registry.onCreateRule.length;h++){var v=this.registry.onCreateRule[h](d,f,p);if(v)return v}return null},o.onProcessRule=function(d){if(!d.isProcessed){for(var f=d.options.sheet,p=0;p<this.registry.onProcessRule.length;p++)this.registry.onProcessRule[p](d,f);d.style&&this.onProcessStyle(d.style,d,f),d.isProcessed=!0}},o.onProcessStyle=function(d,f,p){for(var h=0;h<this.registry.onProcessStyle.length;h++)f.style=this.registry.onProcessStyle[h](f.style,f,p)},o.onProcessSheet=function(d){for(var f=0;f<this.registry.onProcessSheet.length;f++)this.registry.onProcessSheet[f](d)},o.onUpdate=function(d,f,p,h){for(var v=0;v<this.registry.onUpdate.length;v++)this.registry.onUpdate[v](d,f,p,h)},o.onChangeValue=function(d,f,p){for(var h=d,v=0;v<this.registry.onChangeValue.length;v++)h=this.registry.onChangeValue[v](h,f,p);return h},o.use=function(d,f){f===void 0&&(f={queue:"external"});var p=this.plugins[f.queue];p.indexOf(d)===-1&&(p.push(d),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(h,v){for(var g in v)g in h&&h[g].push(v[g]);return h},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},l})(),SheetsRegistry=(function(){function l(){this.registry=[]}var o=l.prototype;return o.add=function(d){var f=this.registry,p=d.options.index;if(f.indexOf(d)===-1){if(f.length===0||p>=this.index){f.push(d);return}for(var h=0;h<f.length;h++)if(f[h].options.index>p){f.splice(h,0,d);return}}},o.reset=function(){this.registry=[]},o.remove=function(d){var f=this.registry.indexOf(d);this.registry.splice(f,1)},o.toString=function(d){for(var f=d===void 0?{}:d,p=f.attached,h=_objectWithoutPropertiesLoose$o(f,["attached"]),v=getWhitespaceSymbols(h),g=v.linebreak,m="",y=0;y<this.registry.length;y++){var b=this.registry[y];p!=null&&b.attached!==p||(m&&(m+=g),m+=b.toString(h))}return m},_createClass$2c(l,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),l})(),sheets=new SheetsRegistry,globalThis$1=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ns$2="2f1acc6c3a606b082e5eef5e54414ffb";globalThis$1[ns$2]==null&&(globalThis$1[ns$2]=0);var moduleId=globalThis$1[ns$2]++,createGenerateId=function(o){o===void 0&&(o={});var u=0,d=function(p,h){u+=1;var v="",g="";return h&&(h.options.classNamePrefix&&(g=h.options.classNamePrefix),h.options.jss.id!=null&&(v=String(h.options.jss.id))),o.minify?""+(g||"c")+moduleId+v+u:g+p.key+"-"+moduleId+(v?"-"+v:"")+"-"+u};return d},memoize$3=function(o){var u;return function(){return u||(u=o()),u}},getPropertyValue=function(o,u){try{return o.attributeStyleMap?o.attributeStyleMap.get(u):o.style.getPropertyValue(u)}catch{return""}},setProperty=function(o,u,d){try{var f=d;if(Array.isArray(d)&&(f=toCssValue(d)),o.attributeStyleMap)o.attributeStyleMap.set(u,f);else{var p=f?f.indexOf("!important"):-1,h=p>-1?f.substr(0,p-1):f;o.style.setProperty(u,h,p>-1?"important":"")}}catch{return!1}return!0},removeProperty=function(o,u){try{o.attributeStyleMap?o.attributeStyleMap.delete(u):o.style.removeProperty(u)}catch{}},setSelector=function(o,u){return o.selectorText=u,o.selectorText===u},getHead$1=memoize$3(function(){return document.querySelector("head")});function findHigherSheet(l,o){for(var u=0;u<l.length;u++){var d=l[u];if(d.attached&&d.options.index>o.index&&d.options.insertionPoint===o.insertionPoint)return d}return null}function findHighestSheet(l,o){for(var u=l.length-1;u>=0;u--){var d=l[u];if(d.attached&&d.options.insertionPoint===o.insertionPoint)return d}return null}function findCommentNode(l){for(var o=getHead$1(),u=0;u<o.childNodes.length;u++){var d=o.childNodes[u];if(d.nodeType===8&&d.nodeValue.trim()===l)return d}return null}function findPrevNode(l){var o=sheets.registry;if(o.length>0){var u=findHigherSheet(o,l);if(u&&u.renderer)return{parent:u.renderer.element.parentNode,node:u.renderer.element};if(u=findHighestSheet(o,l),u&&u.renderer)return{parent:u.renderer.element.parentNode,node:u.renderer.element.nextSibling}}var d=l.insertionPoint;
7if(d&&typeof d=="string"){var f=findCommentNode(d);if(f)return{parent:f.parentNode,node:f.nextSibling}}return!1}function insertStyle(l,o){var u=o.insertionPoint,d=findPrevNode(o);if(d!==!1&&d.parent){d.parent.insertBefore(l,d.node);return}if(u&&typeof u.nodeType=="number"){var f=u,p=f.parentNode;p&&p.insertBefore(l,f.nextSibling);return}getHead$1().appendChild(l)}var getNonce=memoize$3(function(){var l=document.querySelector('meta[property="csp-nonce"]');return l?l.getAttribute("content"):null}),_insertRule=function(o,u,d){try{"insertRule"in o?o.insertRule(u,d):"appendRule"in o&&o.appendRule(u)}catch{return!1}return o.cssRules[d]},getValidRuleInsertionIndex=function(o,u){var d=o.cssRules.length;return u===void 0||u>d?d:u},createStyle=function(){var o=document.createElement("style");return o.textContent=`
8`,o},DomRenderer=(function(){function l(u){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.hasInsertedRules=!1,this.cssRules=[],u&&sheets.add(u),this.sheet=u;var d=this.sheet?this.sheet.options:{},f=d.media,p=d.meta,h=d.element;this.element=h||createStyle(),this.element.setAttribute("data-jss",""),f&&this.element.setAttribute("media",f),p&&this.element.setAttribute("data-meta",p);var v=getNonce();v&&this.element.setAttribute("nonce",v)}var o=l.prototype;return o.attach=function(){if(!(this.element.parentNode||!this.sheet)){insertStyle(this.element,this.sheet.options);var d=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&d&&(this.hasInsertedRules=!1,this.deploy())}},o.detach=function(){if(this.sheet){var d=this.element.parentNode;d&&d.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
9`)}},o.deploy=function(){var d=this.sheet;if(d){if(d.options.link){this.insertRules(d.rules);return}this.element.textContent=`
10`+d.toString()+`
11`}},o.insertRules=function(d,f){for(var p=0;p<d.index.length;p++)this.insertRule(d.index[p],p,f)},o.insertRule=function(d,f,p){if(p===void 0&&(p=this.element.sheet),d.rules){var h=d,v=p;if(d.type==="conditional"||d.type==="keyframes"){var g=getValidRuleInsertionIndex(p,f);if(v=_insertRule(p,h.toString({children:!1}),g),v===!1)return!1;this.refCssRule(d,g,v)}return this.insertRules(h.rules,v),v}var m=d.toString();if(!m)return!1;var y=getValidRuleInsertionIndex(p,f),b=_insertRule(p,m,y);return b===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(d,y,b),b)},o.refCssRule=function(d,f,p){d.renderable=p,d.options.parent instanceof StyleSheet&&this.cssRules.splice(f,0,p)},o.deleteRule=function(d){var f=this.element.sheet,p=this.indexOf(d);return p===-1?!1:(f.deleteRule(p),this.cssRules.splice(p,1),!0)},o.indexOf=function(d){return this.cssRules.indexOf(d)},o.replaceRule=function(d,f){var p=this.indexOf(d);return p===-1?!1:(this.element.sheet.deleteRule(p),this.cssRules.splice(p,1),this.insertRule(f,p))},o.getRules=function(){return this.element.sheet.cssRules},l})(),instanceCounter=0,Jss=(function(){function l(u){this.id=instanceCounter++,this.version="10.10.0",this.plugins=new PluginsRegistry,this.options={id:{minify:!1},createGenerateId,Renderer:isBrowser$2?DomRenderer:null,plugins:[]},this.generateId=createGenerateId({minify:!1});for(var d=0;d<plugins$1.length;d++)this.plugins.use(plugins$1[d],{queue:"internal"});this.setup(u)}var o=l.prototype;return o.setup=function(d){return d===void 0&&(d={}),d.createGenerateId&&(this.options.createGenerateId=d.createGenerateId),d.id&&(this.options.id=_extends$v({},this.options.id,d.id)),(d.createGenerateId||d.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),d.insertionPoint!=null&&(this.options.insertionPoint=d.insertionPoint),"Renderer"in d&&(this.options.Renderer=d.Renderer),d.plugins&&this.use.apply(this,d.plugins),this},o.createStyleSheet=function(d,f){f===void 0&&(f={});var p=f,h=p.index;typeof h!="number"&&(h=sheets.index===0?0:sheets.index+1);var v=new StyleSheet(d,_extends$v({},f,{jss:this,generateId:f.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:h}));return this.plugins.onProcessSheet(v),v},o.removeStyleSheet=function(d){return d.detach(),sheets.remove(d),this},o.createRule=function(d,f,p){if(f===void 0&&(f={}),p===void 0&&(p={}),typeof d=="object")return this.createRule(void 0,d,f);var h=_extends$v({},p,{name:d,jss:this,Renderer:this.options.Renderer});h.generateId||(h.generateId=this.generateId),h.classes||(h.classes={}),h.keyframes||(h.keyframes={});var v=createRule(d,f,h);return v&&this.plugins.onProcessRule(v),v},o.use=function(){for(var d=this,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return p.forEach(function(v){d.plugins.use(v)}),this},l})(),createJss=function(o){return new Jss(o)},hasCSSTOMSupport=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function getDynamicStyles(l){var o=null;for(var u in l){var d=l[u],f=typeof d;if(f==="function")o||(o={}),o[u]=d;else if(f==="object"&&d!==null&&!Array.isArray(d)){var p=getDynamicStyles(d);p&&(o||(o={}),o[u]=p)}}return o}createJss();var now$1=Date.now(),fnValuesNs="fnValues"+now$1,fnRuleNs="fnStyle"+ ++now$1,functionPlugin=function(){return{onCreateRule:function(u,d,f){if(typeof d!="function")return null;var p=createRule(u,{},f);return p[fnRuleNs]=d,p}
11,onProcessStyle:function(u,d){if(fnValuesNs in d||fnRuleNs in d)return u;var f={};for(var p in u){var h=u[p];typeof h=="function"&&(delete u[p],f[p]=h)}return d[fnValuesNs]=f,u},onUpdate:function(u,d,f,p){var h=d,v=h[fnRuleNs];v&&(h.style=v(u)||{});var g=h[fnValuesNs];if(g)for(var m in g)h.prop(m,g[m](u),p)}}},at="@global",atPrefix="@global ",GlobalContainerRule=(function(){function l(u,d,f){this.type="global",this.at=at,this.isProcessed=!1,this.key=u,this.options=f,this.rules=new RuleList(_extends$v({},f,{parent:this}));for(var p in d)this.rules.add(p,d[p]);this.rules.process()}var o=l.prototype;return o.getRule=function(d){return this.rules.get(d)},o.addRule=function(d,f,p){var h=this.rules.add(d,f,p);return h&&this.options.jss.plugins.onProcessRule(h),h},o.replaceRule=function(d,f,p){var h=this.rules.replace(d,f,p);return h&&this.options.jss.plugins.onProcessRule(h),h},o.indexOf=function(d){return this.rules.indexOf(d)},o.toString=function(d){return this.rules.toString(d)},l})(),GlobalPrefixedRule=(function(){function l(u,d,f){this.type="global",this.at=at,this.isProcessed=!1,this.key=u,this.options=f;var p=u.substr(atPrefix.length);this.rule=f.jss.createRule(p,d,_extends$v({},f,{parent:this}))}var o=l.prototype;return o.toString=function(d){return this.rule?this.rule.toString(d):""},l})(),separatorRegExp$1=/\s*,\s*/g;function addScope(l,o){for(var u=l.split(separatorRegExp$1),d="",f=0;f<u.length;f++)d+=o+" "+u[f].trim(),u[f+1]&&(d+=", ");return d}function handleNestedGlobalContainerRule(l,o){var u=l.options,d=l.style,f=d?d[at]:null;if(f){for(var p in f)o.addRule(p,f[p],_extends$v({},u,{selector:addScope(p,l.selector)}));delete d[at]}}function handlePrefixedGlobalRule(l,o){var u=l.options,d=l.style;for(var f in d)if(!(f[0]!=="@"||f.substr(0,at.length)!==at)){var p=addScope(f.substr(at.length),l.selector);o.addRule(p,d[f],_extends$v({},u,{selector:p})),delete d[f]}}function jssGlobal(){function l(u,d,f){if(!u)return null;if(u===at)return new GlobalContainerRule(u,d,f);if(u[0]==="@"&&u.substr(0,atPrefix.length)===atPrefix)return new GlobalPrefixedRule(u,d,f);var p=f.parent;return p&&(p.type==="global"||p.options.parent&&p.options.parent.type==="global")&&(f.scoped=!1),!f.selector&&f.scoped===!1&&(f.selector=u),null}function o(u,d){u.type!=="style"||!d||(handleNestedGlobalContainerRule(u,d),handlePrefixedGlobalRule(u,d))}return{onCreateRule:l,onProcessRule:o}}var separatorRegExp=/\s*,\s*/g,parentRegExp=/&/g,refRegExp=/\$([\w-]+)/g;function jssNested(){function l(f,p){return function(h,v){var g=f.getRule(v)||p&&p.getRule(v);return g?g.selector:v}}function o(f,p){for(var h=p.split(separatorRegExp),v=f.split(separatorRegExp),g="",m=0;m<h.length;m++)for(var y=h[m],b=0;b<v.length;b++){var w=v[b];g&&(g+=", "),g+=w.indexOf("&")!==-1?w.replace(parentRegExp,y):y+" "+w}return g}function u(f,p,h){if(h)return _extends$v({},h,{index:h.index+1});var v=f.options.nestingLevel;v=v===void 0?1:v+1;var g=_extends$v({},f.options,{nestingLevel:v,index:p.indexOf(f)+1});return delete g.name,g}function d(f,p,h){if(p.type!=="style")return f;var v=p,g=v.options.parent,m,y;for(var b in f){var w=b.indexOf("&")!==-1,E=b[0]==="@";if(!(!w&&!E)){if(m=u(v,g,m),w){var P=o(b,v.selector);y||(y=l(g,h)),P=P.replace(refRegExp,y);var C=v.key+"-"+b;"replaceRule"in g?g.replaceRule(C,f[b],_extends$v({},m,{selector:P})):g.addRule(C,f[b],_extends$v({},m,{selector:P}))}else E&&g.addRule(b,{},m).addRule(v.key,f[b],{selector:v.selector});delete f[b]}}return f}return{onProcessStyle:d}}var uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$2={};function toHyphenLower(l){return"-"+l.toLowerCase()}function hyphenateStyleName(l){if(cache$2.hasOwnProperty(l))return cache$2[l];var o=l.replace(uppercasePattern,toHyphenLower);return cache$2[l]=msPattern.test(o)?"-"+o:o}function convertCase(l){var o={};for(var u in l){var d=u.indexOf("--")===0?u:hyphenateStyleName(u);o[d]=l[u]}return l.fallbacks&&(Array.isArray(l.fallbacks)?o.fallbacks=l.fallbacks.map(convertCase):o.fallbacks=convertCase(l.fallbacks)),o}function camelCase(){function l(u){if(Array.isArray(u)){for(var d=0;d<u.length;d++)u[d]=convertCase(u[d]);return u}return convertCase(u)}function o(u,d,f){if(d.indexOf("--")===0)return u;
11var p=hyphenateStyleName(d);return d===p?u:(f.prop(p,u),null)}return{onProcessStyle:l,onChangeValue:o}}var px=hasCSSTOMSupport&&CSS?CSS.px:"px",ms$1=hasCSSTOMSupport&&CSS?CSS.ms:"ms",percent=hasCSSTOMSupport&&CSS?CSS.percent:"%",defaultUnits={"animation-delay":ms$1,"animation-duration":ms$1,"background-position":px,"background-position-x":px,"background-position-y":px,"background-size":px,border:px,"border-bottom":px,"border-bottom-left-radius":px,"border-bottom-right-radius":px,"border-bottom-width":px,"border-left":px,"border-left-width":px,"border-radius":px,"border-right":px,"border-right-width":px,"border-top":px,"border-top-left-radius":px,"border-top-right-radius":px,"border-top-width":px,"border-width":px,"border-block":px,"border-block-end":px,"border-block-end-width":px,"border-block-start":px,"border-block-start-width":px,"border-block-width":px,"border-inline":px,"border-inline-end":px,"border-inline-end-width":px,"border-inline-start":px,"border-inline-start-width":px,"border-inline-width":px,"border-start-start-radius":px,"border-start-end-radius":px,"border-end-start-radius":px,"border-end-end-radius":px,margin:px,"margin-bottom":px,"margin-left":px,"margin-right":px,"margin-top":px,"margin-block":px,"margin-block-end":px,"margin-block-start":px,"margin-inline":px,"margin-inline-end":px,"margin-inline-start":px,padding:px,"padding-bottom":px,"padding-left":px,"padding-right":px,"padding-top":px,"padding-block":px,"padding-block-end":px,"padding-block-start":px,"padding-inline":px,"padding-inline-end":px,"padding-inline-start":px,"mask-position-x":px,"mask-position-y":px,"mask-size":px,height:px,width:px,"min-height":px,"max-height":px,"min-width":px,"max-width":px,bottom:px,left:px,top:px,right:px,inset:px,"inset-block":px,"inset-block-end":px,"inset-block-start":px,"inset-inline":px,"inset-inline-end":px,"inset-inline-start":px,"box-shadow":px,"text-shadow":px,"column-gap":px,"column-rule":px,"column-rule-width":px,"column-width":px,"font-size":px,"font-size-delta":px,"letter-spacing":px,"text-decoration-thickness":px,"text-indent":px,"text-stroke":px,"text-stroke-width":px,"word-spacing":px,motion:px,"motion-offset":px,outline:px,"outline-offset":px,"outline-width":px,perspective:px,"perspective-origin-x":percent,"perspective-origin-y":percent,"transform-origin":percent,"transform-origin-x":percent,"transform-origin-y":percent,"transform-origin-z":percent,"transition-delay":ms$1,"transition-duration":ms$1,"vertical-align":px,"flex-basis":px,"shape-margin":px,size:px,gap:px,grid:px,"grid-gap":px,"row-gap":px,"grid-row-gap":px,"grid-column-gap":px,"grid-template-rows":px,"grid-template-columns":px,"grid-auto-rows":px,"grid-auto-columns":px,"box-shadow-x":px,"box-shadow-y":px,"box-shadow-blur":px,"box-shadow-spread":px,"font-line-height":px,"text-shadow-x":px,"text-shadow-y":px,"text-shadow-blur":px};function addCamelCasedVersion(l){var o=/(-[a-z])/g,u=function(h){return h[1].toUpperCase()},d={};for(var f in l)d[f]=l[f],d[f.replace(o,u)]=l[f];return d}var units=addCamelCasedVersion(defaultUnits);function iterate(l,o,u){if(o==null)return o;if(Array.isArray(o))for(var d=0;d<o.length;d++)o[d]=iterate(l,o[d],u);else if(typeof o=="object")if(l==="fallbacks")for(var f in o)o[f]=iterate(f,o[f],u);else for(var p in o)o[p]=iterate(l+"-"+p,o[p],u);else if(typeof o=="number"&&isNaN(o)===!1){var h=u[l]||units[l];return h&&!(o===0&&h===px)?typeof h=="function"?h(o).toString():""+o+h:o.toString()}return o}function defaultUnit(l){l===void 0&&(l={});var o=addCamelCasedVersion(l);function u(f,p){if(p.type!=="style")return f;for(var h in f)f[h]=iterate(h,f[h],o);return f}function d(f,p){return iterate(p,f,o)}return{onProcessStyle:u,onChangeValue:d}}function _arrayWithoutHoles$w(l){if(Array.isArray(l))return _arrayLikeToArray$G(l)}function _iterableToArray$w(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _nonIterableSpread$w(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray$w(l){return _arrayWithoutHoles$w(l)||_iterableToArray$w(l)||_unsupportedIterableToArray$G(l)||_nonIterableSpread$w()}var js="",css$1="",vendor$1="",browser$2="",isTouch=isBrowser$2&&"ontouchstart"in document.documentElement;if(isBrowser$2){var jsCssMap={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},_document$createEleme=document.createElement("p"),style$3=_document$createEleme.style,testProp="Transform";for(var key$1 in jsCssMap)if(key$1+testProp in style$3){js=key$1,css$1=jsCssMap[key$1];break}js==="Webkit"&&"msHyphens"in style$3&&(js="ms",css$1=jsCssMap.ms,browser$2="edge"),js==="Webkit"&&"-apple-trailing-word"in style$3&&(vendor$1="apple")}var prefix$3={js,css:css$1,vendor:vendor$1,browser:browser$2,isTouch};function supportedKeyframes(l){return l[1]==="-"||prefix$3.js==="ms"?l:"@"+prefix$3.css+"keyframes"+l.substr(10)}var appearence={noPrefill:["appearance"],supportedProperty:function(o){return o!=="appearance"?!1:prefix$3.js==="ms"?"-webkit-"+o:prefix$3.css+o}},colorAdjust={noPrefill:["color-adjust"],supportedProperty:function(o){return o!=="color-adjust"?!1:prefix$3.js==="Webkit"?prefix$3.css+"print-"+o:o}},regExp=/[-\s]+(.)?/g;function toUpper(l,o){return o?o.toUpperCase():""}function camelize(l){return l.replace(regExp,toUpper)}function pascalize(l){return camelize("-"+l)}var mask={noPrefill:["mask"],supportedProperty:function(o,u){if(!/^mask/.test(o))return!1;if(prefix$3.js==="Webkit"){var d="mask-image";if(camelize(d)in u)return o;if(prefix$3.js+pascalize(d)in u)return prefix$3.css+o}return o}},textOrientation={noPrefill:["text-orientation"],supportedProperty:function(o){return o!=="text-orientation"?!1:prefix$3.vendor==="apple"&&!prefix$3.isTouch?prefix$3.css+o:o}},transform$1={noPrefill:["transform"],supportedProperty:function(o,u,d){return o!=="transform"?!1:d.transform?o:prefix$3.css+o}},transition={noPrefill:["transition"],supportedProperty:function(o,u,d){return o!=="transition"?!1:d.transition?o:prefix$3.css+o}},writingMode={noPrefill:["writing-mode"],supportedProperty:function(o){return o!=="writing-mode"?!1:prefix$3.js==="Webkit"||prefix$3.js==="ms"&&prefix$3.browser!=="edge"?prefix$3.css+o:o}},userSelect={noPrefill:["user-select"],supportedProperty:function(o){return o!=="user-select"?!1:prefix$3.js==="Moz"||prefix$3.js==="ms"||prefix$3.vendor==="apple"?prefix$3.css+o:o}},breakPropsOld={supportedProperty:function(o,u){if(!/^break-/.test(o))return!1;if(prefix$3.js==="Webkit"){var d="WebkitColumn"+pascalize(o);return d in u?prefix$3.css+"column-"+o:!1}if(prefix$3.js==="Moz"){var f="page"+pascalize(o);return f in u?"page-"+o:!1}return!1}},inlineLogicalOld={supportedProperty:function(o,u){if(!/^(border|margin|padding)-inline/.test(o))return!1;if(prefix$3.js==="Moz")return o;var d=o.replace("-inline","");return prefix$3.js+pascalize(d)in u?prefix$3.css+d:!1}},unprefixed={supportedProperty:function(o,u){return camelize(o)in u?o:!1}},prefixed={supportedProperty:function(o,u){var d=pascalize(o);return o[0]==="-"||o[0]==="-"&&o[1]==="-"?o:prefix$3.js+d in u?prefix$3.css+o:prefix$3.js!=="Webkit"&&"Webkit"+d in u?"-webkit-"+o:!1}},scrollSnap={supportedProperty:function(o){return o.substring(0,11)!=="scroll-snap"?!1:prefix$3.js==="ms"?""+prefix$3.css+o:o}},overscrollBehavior={supportedProperty:function(o){return o!=="overscroll-behavior"?!1:prefix$3.js==="ms"?prefix$3.css+"scroll-chaining":o}},propMap={"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"},flex2012={supportedProperty:function(o,u){var d=propMap[o];return d&&prefix$3.js+pascalize(d)in u?prefix$3.css+d:!1}},propMap$1={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"},propKeys=Object.keys(propMap$1),prefixCss=function(o){return prefix$3.css+o}
12,flex2009={supportedProperty:function(o,u,d){var f=d.multiple;if(propKeys.indexOf(o)>-1){var p=propMap$1[o];if(!Array.isArray(p))return prefix$3.js+pascalize(p)in u?prefix$3.css+p:!1;if(!f)return!1;for(var h=0;h<p.length;h++)if(!(prefix$3.js+pascalize(p[0])in u))return!1;return p.map(prefixCss)}return!1}},plugins=[appearence,colorAdjust,mask,textOrientation,transform$1,transition,writingMode,userSelect,breakPropsOld,inlineLogicalOld,unprefixed,prefixed,scrollSnap,overscrollBehavior,flex2012,flex2009],propertyDetectors=plugins.filter(function(l){return l.supportedProperty}).map(function(l){return l.supportedProperty}),noPrefill=plugins.filter(function(l){return l.noPrefill}).reduce(function(l,o){return l.push.apply(l,_toConsumableArray$w(o.noPrefill)),l},[]),el,cache$1={};if(isBrowser$2){el=document.createElement("p");var computed=window.getComputedStyle(document.documentElement,"");for(var key$1$1 in computed)isNaN(key$1$1)||(cache$1[computed[key$1$1]]=computed[key$1$1]);noPrefill.forEach(function(l){return delete cache$1[l]})}function supportedProperty17(l,o){if(o===void 0&&(o={}),!el)return l;if(cache$1[l]!=null)return cache$1[l];(l==="transition"||l==="transform")&&(o[l]=l in el.style);for(var u=0;u<propertyDetectors.length&&(cache$1[l]=propertyDetectors[u](l,el.style,o),!cache$1[l]);u++);try{el.style[l]=""}catch{return!1}return cache$1[l]}var cache$1$1={},transitionProperties={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},transPropsRegExp=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,el$1;function prefixTransitionCallback(l,o,u){if(o==="var")return"var";if(o==="all")return"all";if(u==="all")return", all";var d=o?supportedProperty17(o):", "+supportedProperty17(u);return d||o||u}isBrowser$2&&(el$1=document.createElement("p"));function supportedValue(l,o){var u=o;if(!el$1||l==="content")return o;if(typeof u!="string"||!isNaN(parseInt(u,10)))return u;var d=l+u;if(cache$1$1[d]!=null)return cache$1$1[d];try{el$1.style[l]=u}catch{return cache$1$1[d]=!1,!1}if(transitionProperties[l])u=u.replace(transPropsRegExp,prefixTransitionCallback);else if(el$1.style[l]===""&&(u=prefix$3.css+u,u==="-ms-flex"&&(el$1.style[l]="-ms-flexbox"),el$1.style[l]=u,el$1.style[l]===""))return cache$1$1[d]=!1,!1;return el$1.style[l]="",cache$1$1[d]=u,cache$1$1[d]}function jssVendorPrefixer(){function l(f){if(f.type==="keyframes"){var p=f;p.at=supportedKeyframes(p.at)}}function o(f){for(var p in f){var h=f[p];if(p==="fallbacks"&&Array.isArray(h)){f[p]=h.map(o);continue}var v=!1,g=supportedProperty17(p);g&&g!==p&&(v=!0);var m=!1,y=supportedValue(g,toCssValue(h));y&&y!==h&&(m=!0),(v||m)&&(v&&delete f[p],f[g||p]=y||h)}return f}function u(f,p){return p.type!=="style"?f:o(f)}function d(f,p){return supportedValue(p,toCssValue(f))||f}return{onProcessRule:l,onProcessStyle:u,onChangeValue:d}}function jssPropsSort(){var l=function(u,d){return u.length===d.length?u>d?1:-1:u.length-d.length};return{onProcessStyle:function(u,d){if(d.type!=="style")return u;for(var f={},p=Object.keys(u).sort(l),h=0;h<p.length;h++)f[p[h]]=u[p[h]];return f}}}function jssPreset(){return{plugins:[functionPlugin(),jssGlobal(),jssNested(),camelCase(),defaultUnit(),typeof window>"u"?null:jssVendorPrefixer(),jssPropsSort()]}}function mergeClasses(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.baseClasses,u=l.newClasses;if(l.Component,!u)return o;var d=_extends$v({},o);return Object.keys(u).forEach(function(f){u[f]&&(d[f]="".concat(o[f]," ").concat(u[f]))}),d}var multiKeyStore={set:function(o,u,d,f){var p=o.get(u);p||(p=new Map,o.set(u,p)),p.set(d,f)},get:function(o,u,d){var f=o.get(u);return f?f.get(d):void 0},delete:function(o,u,d){var f=o.get(u);f.delete(d)}},ThemeContext=React.createContext(null);function useTheme$2(){var l=React.useContext(ThemeContext);return l}var jss=createJss(jssPreset()),generateClassName=createGenerateClassName(),sheetsManager=new Map,defaultOptions={disableGeneration:!1,generateClassName,jss,sheetsCache:null,sheetsManager,sheetsRegistry:null},StylesContext=React.createContext(defaultOptions),injectFirstNode;function StylesProvider(l){var o=l.children,u=l.injectFirst,d=u===void 0?!1:u,f=l.disableGeneration,p=f===void 0?!1:f,h=_objectWithoutProperties$q(l,["children","injectFirst","disableGeneration"]),v=React.useContext(StylesContext),g=_extends$v({},v,{disableGeneration:p},h);if(!g.jss.options.insertionPoint&&d&&typeof window<"u"){if(!injectFirstNode){var m=document.head;injectFirstNode=document.createComment("mui-inject-first"),m.insertBefore(injectFirstNode,m.firstChild)}g.jss=createJss({plugins:jssPreset().plugins,insertionPoint:injectFirstNode})}return React.createElement(StylesContext.Provider,{value:g},o)}var indexCounter=-1e9;function increment(){return indexCounter+=1,indexCounter}var noopTheme={};function getStylesCreator(l){var o=typeof l=="function";return{create:function(d,f){var p;try{p=o?l(d):l}catch(g){throw g}if(!f||!d.overrides||!d.overrides[f])return p;var h=d.overrides[f],v=_extends$v({},p);
12return Object.keys(h).forEach(function(g){v[g]=deepmerge$1(v[g],h[g])}),v},options:{}}}function getClasses(l,o,u){var d=l.state,f=l.stylesOptions;if(f.disableGeneration)return o||{};d.cacheClasses||(d.cacheClasses={value:null,lastProp:null,lastJSS:{}});var p=!1;return d.classes!==d.cacheClasses.lastJSS&&(d.cacheClasses.lastJSS=d.classes,p=!0),o!==d.cacheClasses.lastProp&&(d.cacheClasses.lastProp=o,p=!0),p&&(d.cacheClasses.value=mergeClasses({baseClasses:d.cacheClasses.lastJSS,newClasses:o,Component:u})),d.cacheClasses.value}function attach(l,o){var u=l.state,d=l.theme,f=l.stylesOptions,p=l.stylesCreator,h=l.name;if(!f.disableGeneration){var v=multiKeyStore.get(f.sheetsManager,p,d);v||(v={refs:0,staticSheet:null,dynamicStyles:null},multiKeyStore.set(f.sheetsManager,p,d,v));var g=_extends$v({},p.options,f,{theme:d,flip:typeof f.flip=="boolean"?f.flip:d.direction==="rtl"});g.generateId=g.serverGenerateClassName||g.generateClassName;var m=f.sheetsRegistry;if(v.refs===0){var y;f.sheetsCache&&(y=multiKeyStore.get(f.sheetsCache,p,d));var b=p.create(d,h);y||(y=f.jss.createStyleSheet(b,_extends$v({link:!1},g)),y.attach(),f.sheetsCache&&multiKeyStore.set(f.sheetsCache,p,d,y)),m&&m.add(y),v.staticSheet=y,v.dynamicStyles=getDynamicStyles(b)}if(v.dynamicStyles){var w=f.jss.createStyleSheet(v.dynamicStyles,_extends$v({link:!0},g));w.update(o),w.attach(),u.dynamicSheet=w,u.classes=mergeClasses({baseClasses:v.staticSheet.classes,newClasses:w.classes}),m&&m.add(w)}else u.classes=v.staticSheet.classes;v.refs+=1}}function update$5(l,o){var u=l.state;u.dynamicSheet&&u.dynamicSheet.update(o)}function detach$1(l){var o=l.state,u=l.theme,d=l.stylesOptions,f=l.stylesCreator;if(!d.disableGeneration){var p=multiKeyStore.get(d.sheetsManager,f,u);p.refs-=1;var h=d.sheetsRegistry;p.refs===0&&(multiKeyStore.delete(d.sheetsManager,f,u),d.jss.removeStyleSheet(p.staticSheet),h&&h.remove(p.staticSheet)),o.dynamicSheet&&(d.jss.removeStyleSheet(o.dynamicSheet),h&&h.remove(o.dynamicSheet))}}function useSynchronousEffect(l,o){var u=React.useRef([]),d,f=React.useMemo(function(){return{}},o);u.current!==f&&(u.current=f,d=l()),React.useEffect(function(){return function(){d&&d()}},[f])}function makeStyles$3(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.name,d=o.classNamePrefix,f=o.Component,p=o.defaultTheme,h=p===void 0?noopTheme:p,v=_objectWithoutProperties$q(o,["name","classNamePrefix","Component","defaultTheme"]),g=getStylesCreator(l),m=u||d||"makeStyles";g.options={index:increment(),name:u,meta:m,classNamePrefix:m};var y=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=useTheme$2()||h,P=_extends$v({},React.useContext(StylesContext),v),C=React.useRef(),T=React.useRef();useSynchronousEffect(function(){var x={name:u,state:{},stylesCreator:g,stylesOptions:P,theme:E};return attach(x,w),T.current=!1,C.current=x,function(){detach$1(x)}},[E,g]),React.useEffect(function(){T.current&&update$5(C.current,w),T.current=!0});var O=getClasses(C.current,w.classes,f);return O};return y}var ServerStyleSheets=(function(){function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$2k(this,l),this.options=o}return _createClass$2c(l,[{key:"collect",value:function(u){var d=new Map;this.sheetsRegistry=new SheetsRegistry;var f=createGenerateClassName();return React.createElement(StylesProvider,_extends$v({sheetsManager:d,serverGenerateClassName:f,sheetsRegistry:this.sheetsRegistry},this.options),u)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(u){return React.createElement("style",_extends$v({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},u))}}]),l})(),reactIs={exports:{}},reactIs_production_min={};var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var l=typeof Symbol=="function"&&Symbol.for,o=l?Symbol.for("react.element"):60103,u=l?Symbol.for("react.portal"):60106,d=l?Symbol.for("react.fragment"):60107,f=l?Symbol.for("react.strict_mode"):60108,p=l?Symbol.for("react.profiler"):60114,h=l?Symbol.for("react.provider"):60109,v=l?Symbol.for("react.context"):60110,g=l?Symbol.for("react.async_mode"):60111,m=l?Symbol.for("react.concurrent_mode"):60111,y=l?Symbol.for("react.forward_ref"):60112,b
12=l?Symbol.for("react.suspense"):60113,w=l?Symbol.for("react.suspense_list"):60120,E=l?Symbol.for("react.memo"):60115,P=l?Symbol.for("react.lazy"):60116,C=l?Symbol.for("react.block"):60121,T=l?Symbol.for("react.fundamental"):60117,O=l?Symbol.for("react.responder"):60118,x=l?Symbol.for("react.scope"):60119;function A(j){if(typeof j=="object"&&j!==null){var M=j.$$typeof;switch(M){case o:switch(j=j.type,j){case g:case m:case d:case p:case f:case b:return j;default:switch(j=j&&j.$$typeof,j){case v:case y:case P:case E:case h:return j;default:return M}}case u:return M}}}function D(j){return A(j)===m}return reactIs_production_min.AsyncMode=g,reactIs_production_min.ConcurrentMode=m,reactIs_production_min.ContextConsumer=v,reactIs_production_min.ContextProvider=h,reactIs_production_min.Element=o,reactIs_production_min.ForwardRef=y,reactIs_production_min.Fragment=d,reactIs_production_min.Lazy=P,reactIs_production_min.Memo=E,reactIs_production_min.Portal=u,reactIs_production_min.Profiler=p,reactIs_production_min.StrictMode=f,reactIs_production_min.Suspense=b,reactIs_production_min.isAsyncMode=function(j){return D(j)||A(j)===g},reactIs_production_min.isConcurrentMode=D,reactIs_production_min.isContextConsumer=function(j){return A(j)===v},reactIs_production_min.isContextProvider=function(j){return A(j)===h},reactIs_production_min.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===o},reactIs_production_min.isForwardRef=function(j){return A(j)===y},reactIs_production_min.isFragment=function(j){return A(j)===d},reactIs_production_min.isLazy=function(j){return A(j)===P},reactIs_production_min.isMemo=function(j){return A(j)===E},reactIs_production_min.isPortal=function(j){return A(j)===u},reactIs_production_min.isProfiler=function(j){return A(j)===p},reactIs_production_min.isStrictMode=function(j){return A(j)===f},reactIs_production_min.isSuspense=function(j){return A(j)===b},reactIs_production_min.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===d||j===m||j===p||j===f||j===b||j===w||typeof j=="object"&&j!==null&&(j.$$typeof===P||j.$$typeof===E||j.$$typeof===h||j.$$typeof===v||j.$$typeof===y||j.$$typeof===T||j.$$typeof===O||j.$$typeof===x||j.$$typeof===C)},reactIs_production_min.typeOf=A,reactIs_production_min}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=requireReactIs_production_min()),reactIs.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var l=requireReactIs(),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},u={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},d={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[l.ForwardRef]=d,p[l.Memo]=f;function h(P){return l.isMemo(P)?f:p[P.$$typeof]||o}var v=Object.defineProperty,g=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,w=Object.prototype;function E(P,C,T){if(typeof C!="string"){if(w){var O=b(C);O&&O!==w&&E(P,O,T)}var x=g(C);m&&(x=x.concat(m(C)));for(var A=h(P),D=h(C),j=0;j<x.length;++j){var M=x[j];if(!u[M]&&!(T&&T[M])&&!(D&&D[M])&&!(A&&A[M])){var N=y(C,M);try{v(P,M,N)}catch{}}}}return P}return hoistNonReactStatics_cjs=E,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistNonReactStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);function omit$3(l,o){var u={};return Object.keys(l).forEach(function(d){o.indexOf(d)===-1&&(u[d]=l[d])}),u}function styled$1(l){var o=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=f.name,h=_objectWithoutProperties$q(f,["name"]),v=p,g=typeof d=="function"?function(w){return{root:function(P){return d(_extends$v({theme:w},P))}}}:{root:d},m=makeStyles$3(g,_extends$v({Component:l,name:p||l.displayName,classNamePrefix:v},h)),y;d.filterProps&&(y=d.filterProps,delete d.filterProps),d.propTypes&&(d.propTypes,delete d.propTypes);var b=React.forwardRef(function(E,P){var C=E.children,T=E.className,O=E.clone,x=E.component,A=_objectWithoutProperties$q(E,["children","className","clone","component"]),D=m(E),j=clsx$1(D.root,T),M=A;if(y&&(M=omit$3(M,y)),O)return React.cloneElement(C,_extends$v({className:clsx$1(C.props.className,j)},M));if(typeof C=="function")return C(_extends$v({className:j},M));var N=x||l;return React.createElement(N,_extends$v({ref:P,className:j},M),C)});return hoistNonReactStatics(b,l),b};return o}function mergeOuterLocalTheme(l,o){if(typeof o=="function"){var u=o(l);return u}return _extends$v({},l,o)}function ThemeProvider(l){var o=l.children,u=l.theme,d=useTheme$2(),f=React.useMemo(function(){var p=d===null?u:mergeOuterLocalTheme(d,u);return p!=null&&(p[nested]=d!==null),p},[u,d]);return React.createElement(ThemeContext.Provider,{value:f},o)}var withStyles$3=function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(d){var f=u.defaultTheme,p=u.withTheme,h=p===void 0?!1:p,v=u.name,g=_objectWithoutProperties$q(u,["defaultTheme","withTheme","name"]),m=v,y=makeStyles$3(o,_extends$v({defaultTheme:f,Component:d,name:v||d.displayName,classNamePrefix:m},g)),b=React.forwardRef(function(E,P){E.classes;var C=E.innerRef,T=_objectWithoutProperties$q(E,["classes","innerRef"]),O=y(_extends$v({},d.defaultProps,E)),x,A=T;return(typeof v=="string"||h)&&(x=useTheme$2()||f,v&&(A=getThemeProps({theme:x,name:v,props:T})),h&&!A.theme&&(A.theme=x)),React.createElement(d,_extends$v({ref:C||P,classes:O},A))});return hoistNonReactStatics(b,d),b}};function withThemeCreator(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.defaultTheme,u=function(f){var p=React.forwardRef(function(v,g){var m=v.innerRef,y=_objectWithoutProperties$q(v,["innerRef"]),b=useTheme$2()||o;return React.createElement(f,_extends$v({theme:b,ref:m||g},y))});return hoistNonReactStatics(p,f),p};return u}var withTheme$3=withThemeCreator();const esm$a=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheets,StylesContext,StylesProvider,ThemeProvider,createGenerateClassName,createStyles:createStyles$1,getThemeProps,jssPreset,makeStyles:makeStyles$3,mergeClasses,sheetsManager,styled:styled$1,useTheme:useTheme$2,withStyles:withStyles$3,withTheme:withTheme$3,withThemeCreator},Symbol.toStringTag,{value:"Module"}));var keys=["xs","sm","md","lg","xl"];function createBreakpoints$1(l){var o=l.values,u=o===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,d=l.unit,f=d===void 0?"px":d,p=l.step,h=p===void 0?5:p,v=_objectWithoutProperties$q(l,["values","unit","step"]);function g(E){var P=typeof u[E]=="number"?u[E]:E;return"@media (min-width:".concat(P).concat(f,")")}function m(E){var P=keys.indexOf(E)+1,C=u[keys[P]];if(P===keys.length)return g("xs");var T=typeof C=="number"&&P>0?C:E;return"@media (max-width:".concat(T-h/100).concat(f,")")}function y(E,P){var C=keys.indexOf(P);return C===keys.length-1?g(E):"@media (min-width:".concat(typeof u[E]=="number"?u[E]:E).concat(f,") and ")+"(max-width:".concat((C!==-1&&typeof u[keys[C+1]]=="number"?u[keys[C+1]]:P)-h/100).concat(f,")")}function b(E){return y(E,E)}function w(E){return u[E]}return _extends$v({keys,values:u,up:g,down:m,between:y,only:b,width:w},v)}function createMixins$1(l,o,u){var d;return _extends$v({gutters:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
13      paddingLeft: theme.spacing(2),
14      paddingRight: theme.spacing(2),
15      [theme.breakpoints.up('sm')]: {
16        paddingLeft: theme.spacing(3),
17        paddingRight: theme.spacing(3),
18      },
19      `].join(`
20`)),_extends$v({paddingLeft:o(2),paddingRight:o(2)},p,_defineProperty$1z({},l.up("sm"),_extends$v({paddingLeft:o(3),paddingRight:o(3)},p[l.up("sm")])))},toolbar:(d={minHeight:56},_defineProperty$1z(d,"".concat(l.up("xs")," and (orientation: landscape)"),{minHeight:48}),_defineProperty$1z(d,l.up("sm"),{minHeight:64}),d)},u)}var common$1={black:"#000",white:"#fff"},grey$1={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"},indigo$1={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"},pink$1={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"},red$1={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"},orange$1={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"},blue$1={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"},green$1={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"};function clamp$2(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(o,l),u)}function hexToRgb(l){l=l.substr(1);var o=new RegExp(".{1,".concat(l.length>=6?2:1,"}"),"g"),u=l.match(o);return u&&u[0].length===1&&(u=u.map(function(d){return d+d})),u?"rgb".concat(u.length===4?"a":"","(").concat(u.map(function(d,f){return f<3?parseInt(d,16):Math.round(parseInt(d,16)/255*1e3)/1e3}).join(", "),")"):""}function intToHex(l){var o=l.toString(16);return o.length===1?"0".concat(o):o}function rgbToHex(l){if(l.indexOf("#")===0)return l;var o=decomposeColor(l),u=o.values;return"#".concat(u.map(function(d){return intToHex(d)}).join(""))}function hslToRgb(l){l=decomposeColor(l);var o=l,u=o.values,d=u[0],f=u[1]/100,p=u[2]/100,h=f*Math.min(p,1-p),v=function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(b+d/30)%12;return p-h*Math.max(Math.min(w-3,9-w,1),-1)},g="rgb",m=[Math.round(v(0)*255),Math.round(v(8)*255),Math.round(v(4)*255
20)];return l.type==="hsla"&&(g+="a",m.push(u[3])),recomposeColor({type:g,values:m})}function decomposeColor(l){if(l.type)return l;if(l.charAt(0)==="#")return decomposeColor(hexToRgb(l));var o=l.indexOf("("),u=l.substring(0,o);if(["rgb","rgba","hsl","hsla"].indexOf(u)===-1)throw new Error(formatMuiErrorMessage(3,l));var d=l.substring(o+1,l.length-1).split(",");return d=d.map(function(f){return parseFloat(f)}),{type:u,values:d}}function recomposeColor(l){var o=l.type,u=l.values;return o.indexOf("rgb")!==-1?u=u.map(function(d,f){return f<3?parseInt(d,10):d}):o.indexOf("hsl")!==-1&&(u[1]="".concat(u[1],"%"),u[2]="".concat(u[2],"%")),"".concat(o,"(").concat(u.join(", "),")")}function getContrastRatio(l,o){var u=getLuminance(l),d=getLuminance(o);return(Math.max(u,d)+.05)/(Math.min(u,d)+.05)}function getLuminance(l){l=decomposeColor(l);var o=l.type==="hsl"?decomposeColor(hslToRgb(l)).values:l.values;return o=o.map(function(u){return u/=255,u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}),Number((.2126*o[0]+.7152*o[1]+.0722*o[2]).toFixed(3))}function emphasize(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return getLuminance(l)>.5?darken(l,o):lighten(l,o)}function fade(l,o){return alpha(l,o)}function alpha(l,o){return l=decomposeColor(l),o=clamp$2(o),(l.type==="rgb"||l.type==="hsl")&&(l.type+="a"),l.values[3]=o,recomposeColor(l)}function darken(l,o){if(l=decomposeColor(l),o=clamp$2(o),l.type.indexOf("hsl")!==-1)l.values[2]*=1-o;else if(l.type.indexOf("rgb")!==-1)for(var u=0;u<3;u+=1)l.values[u]*=1-o;return recomposeColor(l)}function lighten(l,o){if(l=decomposeColor(l),o=clamp$2(o),l.type.indexOf("hsl")!==-1)l.values[2]+=(100-l.values[2])*o;else if(l.type.indexOf("rgb")!==-1)for(var u=0;u<3;u+=1)l.values[u]+=(255-l.values[u])*o;return recomposeColor(l)}var light={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:common$1.white,default:grey$1[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}},dark={text:{primary:common$1.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:grey$1[800],default:"#303030"},action:{active:common$1.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 addLightOrDark(l,o,u,d){var f=d.light||d,p=d.dark||d*1.5;l[o]||(l.hasOwnProperty(u)?l[o]=l[u]:o==="light"?l.light=lighten(l.main,f):o==="dark"&&(l.dark=darken(l.main,p)))}function createPalette$1(l){var o=l.primary,u=o===void 0?{light:indigo$1[300],main:indigo$1[500],dark:indigo$1[700]}:o,d=l.secondary,f=d===void 0?{light:pink$1.A200,main:pink$1.A400,dark:pink$1.A700}:d,p=l.error,h=p===void 0?{light:red$1[300],main:red$1[500],dark:red$1[700]}:p,v=l.warning,g=v===void 0?{light:orange$1[300],main:orange$1[500],dark:orange$1[700]}:v,m=l.info,y=m===void 0?{light:blue$1[300],main:blue$1[500],dark:blue$1[700]}:m,b=l.success,w=b===void 0?{light:green$1[300],main:green$1[500],dark:green$1[700]}:b,E=l.type,P=E===void 0?"light":E,C=l.contrastThreshold,T=C===void 0?3:C,O=l.tonalOffset,x=O===void 0?.2:O,A=_objectWithoutProperties$q(l,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(q){var z=getContrastRatio(q,dark.text.primary)>=T?dark.text.primary:light.text.primary;return z}var j=function(z){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(z=_extends$v({},z),!z.main&&z[H]&&(z.main=z[H]),!z.main)throw new Error(formatMuiErrorMessage(4,H));if(typeof z.main!="string")throw new Error(formatMuiErrorMessage(5,JSON.stringify(z.main)));return addLightOrDark(z,"light",U,x),addLightOrDark(z,"dark",F,x),z.contrastText||(z.contrastText=D(z.main)),z},M={dark,light},N=deepmerge$1(_extends$v({common:common$1,type:P,primary:j(u),secondary:j(f,"A400","A200","A700"),error:j(h),warning:j(g),info:j(y),success:j(w),grey:grey$1,contrastThreshold:T,getContrastText:D,augmentColor:j,tonalOffset:x},M[P]),A);return N}function round$1(l){return Math.round(l*1e5)/1e5}function roundWithDeprecationWarning(l){return round$1(l)}var caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography$1(l,o){var u=typeof o=="function"?o(l):o,d=u.fontFamily,f=d===void 0?defaultFontFamily:d,p=u.fontSize,h=p===void 0?14:p,v=u.fontWeightLight,g=v===void 0?300:v,m=u.fontWeightRegular,y=m
20===void 0?400:m,b=u.fontWeightMedium,w=b===void 0?500:b,E=u.fontWeightBold,P=E===void 0?700:E,C=u.htmlFontSize,T=C===void 0?16:C,O=u.allVariants,x=u.pxToRem,A=_objectWithoutProperties$q(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),D=h/14,j=x||function(q){return"".concat(q/T*D,"rem")},M=function(z,H,U,F,B){return _extends$v({fontFamily:f,fontWeight:z,fontSize:j(H),lineHeight:U},f===defaultFontFamily?{letterSpacing:"".concat(round$1(F/H),"em")}:{},B,O)},N={h1:M(g,96,1.167,-1.5),h2:M(g,60,1.2,-.5),h3:M(y,48,1.167,0),h4:M(y,34,1.235,.25),h5:M(y,24,1.334,0),h6:M(w,20,1.6,.15),subtitle1:M(y,16,1.75,.15),subtitle2:M(w,14,1.57,.1),body1:M(y,16,1.5,.15),body2:M(y,14,1.43,.15),button:M(w,14,1.75,.4,caseAllCaps),caption:M(y,12,1.66,.4),overline:M(y,12,2.66,1,caseAllCaps)};return deepmerge$1(_extends$v({htmlFontSize:T,pxToRem:j,round:roundWithDeprecationWarning,fontFamily:f,fontSize:h,fontWeightLight:g,fontWeightRegular:y,fontWeightMedium:w,fontWeightBold:P},N),A,{clone:!1})}var shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(){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(shadowKeyUmbraOpacity,")"),"".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(shadowKeyPenumbraOpacity,")"),"".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(shadowAmbientShadowOpacity,")")].join(",")}var shadows$1=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shape$1={borderRadius:4};function merge(l,o){return o?deepmerge$1(l,o,{clone:!1}):l}var values$3={xs:0,sm:600,md:960,lg:1280,xl:1920},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:function(o){return"@media (min-width:".concat(values$3[o],"px)")}};function handleBreakpoints(l,o,u){if(Array.isArray(o)){var d=l.theme.breakpoints||defaultBreakpoints;return o.reduce(function(h,v,g){return h[d.up(d.keys[g])]=u(o[g]),h},{})}if(_typeof$d(o)==="object"){var f=l.theme.breakpoints||defaultBreakpoints;return Object.keys(o).reduce(function(h,v){return h[f.up(v)]=u(o[v]),h},{})}var p=u(o);return p}function breakpoints(l){var o=function(d){var f=l(d),p=d.theme.breakpoints||defaultBreakpoints,h=p.keys.reduce(function(v,g){return d[g]&&(v=v||{},v[p.up(g)]=l(_extends$v({theme:d.theme},d[g]))),v},null);return merge(f,h)};return o.propTypes={},o.filterProps=["xs","sm","md","lg","xl"].concat(_toConsumableArray$w(l.filterProps)),o}function getPath(l,o){return!o||typeof o!="string"?null:o.split(".").reduce(function(u,d){return u&&u[d]?u[d]:null},l)}function style$2(l){var o=l.prop,u=l.cssProperty,d=u===void 0?l.prop:u,f=l.themeKey,p=l.transform,h=function(g){if(g[o]==null)return null;var m=g[o],y=g.theme,b=getPath(y,f)||{},w=function(P){var C;return typeof b=="function"?C=b(P):Array.isArray(b)?C=b[P]||P:(C=getPath(b,P)||P,p&&(C=p(C))),d===!1?C:_defineProperty$1z({},d,C)};return handleBreakpoints(g,m,w)};return h.propTypes={},h.filterProps=[o],h}function compose$3(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];var d=function(p){return o.reduce(function(h,v){var g=v(p);return g?merge(h,g):h},{})};return d.propTypes={},d.filterProps=o.reduce(function(f,p){return f.concat(p.filterProps)},[]),d}function getBorder(l){return typeof l!="number"?l:"".concat(l,"px solid")}var border=style$2({prop:"border",themeKey:"borders",transform:getBorder}),borderTop=style$2({prop:"borderTop",themeKey:"borders",transform:getBorder}),borderRight=style$2({prop:"borderRight",themeKey:"borders",transform:getBorder}),borderBottom=style$2({prop:"borderBottom",themeKey:"borders",transform:getBorder}),borderLeft=style$2({prop:"borderLeft",themeKey:"borders",transform:getBorder}),borderColor=style$2({prop:"borderColor",themeKey:"palette"}),borderRadius=style$2({prop:"borderRadius",themeKey:"shape"}),borders=compose$3(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderRadius);function omit$2(l,o){var u={};return Object.keys(l).forEach(function(d){o.indexOf(d)===-1&&(u[d]=l[d])}),u}function styleFunctionSx(l){var o=function(d){var f=l(d);return d.css?_extends$v({}
20,merge(f,l(_extends$v({theme:d.theme},d.css))),omit$2(d.css,[l.filterProps])):d.sx?_extends$v({},merge(f,l(_extends$v({theme:d.theme},d.sx))),omit$2(d.sx,[l.filterProps])):f};return o.propTypes={},o.filterProps=["css","sx"].concat(_toConsumableArray$w(l.filterProps)),o}function css(l){return styleFunctionSx(l)}var displayPrint=style$2({prop:"displayPrint",cssProperty:!1,transform:function(o){return{"@media print":{display:o}}}}),displayRaw=style$2({prop:"display"}),overflow=style$2({prop:"overflow"}),textOverflow=style$2({prop:"textOverflow"}),visibility=style$2({prop:"visibility"}),whiteSpace=style$2({prop:"whiteSpace"});const display=compose$3(displayPrint,displayRaw,overflow,textOverflow,visibility,whiteSpace);var flexBasis=style$2({prop:"flexBasis"}),flexDirection=style$2({prop:"flexDirection"}),flexWrap=style$2({prop:"flexWrap"}),justifyContent=style$2({prop:"justifyContent"}),alignItems=style$2({prop:"alignItems"}),alignContent=style$2({prop:"alignContent"}),order=style$2({prop:"order"}),flex=style$2({prop:"flex"}),flexGrow=style$2({prop:"flexGrow"}),flexShrink=style$2({prop:"flexShrink"}),alignSelf=style$2({prop:"alignSelf"}),justifyItems=style$2({prop:"justifyItems"}),justifySelf=style$2({prop:"justifySelf"}),flexbox=compose$3(flexBasis,flexDirection,flexWrap,justifyContent,alignItems,alignContent,order,flex,flexGrow,flexShrink,alignSelf,justifyItems,justifySelf),gridGap=style$2({prop:"gridGap"}),gridColumnGap=style$2({prop:"gridColumnGap"}),gridRowGap=style$2({prop:"gridRowGap"}),gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"}),grid=compose$3(gridGap,gridColumnGap,gridRowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea),color$1=style$2({prop:"color",themeKey:"palette"}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),palette=compose$3(color$1,bgcolor),position$1=style$2({prop:"position"}),zIndex$2=style$2({prop:"zIndex",themeKey:"zIndex"}),top=style$2({prop:"top"}),right=style$2({prop:"right"}),bottom=style$2({prop:"bottom"}),left=style$2({prop:"left"});const positions=compose$3(position$1,zIndex$2,top,right,bottom,left);var boxShadow=style$2({prop:"boxShadow",themeKey:"shadows"});function transform(l){return l<=1?"".concat(l*100,"%"):l}var width=style$2({prop:"width",transform}),maxWidth=style$2({prop:"maxWidth",transform}),minWidth=style$2({prop:"minWidth",transform}),height=style$2({prop:"height",transform}),maxHeight=style$2({prop:"maxHeight",transform}),minHeight=style$2({prop:"minHeight",transform}),sizeWidth=style$2({prop:"size",cssProperty:"width",transform}),sizeHeight=style$2({prop:"size",cssProperty:"height",transform}),boxSizing=style$2({prop:"boxSizing"}),sizing=compose$3(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);function memoize$2(l){var o={};return function(u){return o[u]===void 0&&(o[u]=l(u)),o[u]}}var properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize$2(function(l){if(l.length>2)if(aliases[l])l=aliases[l];else return[l];var o=l.split(""),u=_slicedToArray$n(o,2),d=u[0],f=u[1],p=properties[d],h=directions[f]||"";return Array.isArray(h)?h.map(function(v){return p+v}):[p+h]}),spacingKeys=["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 createUnarySpacing(l){var o=l.spacing||8;return typeof o=="number"?function(u){return o*u}:Array.isArray(o)?function(u){return o[u]}:typeof o=="function"?o:function(){}}
20function getValue$3(l,o){if(typeof o=="string"||o==null)return o;var u=Math.abs(o),d=l(u);return o>=0?d:typeof d=="number"?-d:"-".concat(d)}function getStyleFromPropValue(l,o){return function(u){return l.reduce(function(d,f){return d[f]=getValue$3(o,u),d},{})}}function spacing(l){var o=l.theme,u=createUnarySpacing(o);return Object.keys(l).map(function(d){if(spacingKeys.indexOf(d)===-1)return null;var f=getCssProperties(d),p=getStyleFromPropValue(f,u),h=l[d];return handleBreakpoints(l,h,p)}).reduce(merge,{})}spacing.propTypes={};spacing.filterProps=spacingKeys;var fontFamily=style$2({prop:"fontFamily",themeKey:"typography"}),fontSize=style$2({prop:"fontSize",themeKey:"typography"}),fontStyle=style$2({prop:"fontStyle",themeKey:"typography"}),fontWeight=style$2({prop:"fontWeight",themeKey:"typography"}),letterSpacing=style$2({prop:"letterSpacing"}),lineHeight=style$2({prop:"lineHeight"}),textAlign=style$2({prop:"textAlign"}),typography=compose$3(fontFamily,fontSize,fontStyle,fontWeight,letterSpacing,lineHeight,textAlign);const esm$9=Object.freeze(Object.defineProperty({__proto__:null,alignContent,alignItems,alignSelf,bgcolor,border,borderBottom,borderColor,borderLeft,borderRadius,borderRight,borderTop,borders,bottom,boxSizing,breakpoints,color:color$1,compose:compose$3,createUnarySpacing,css,display,flex,flexBasis,flexDirection,flexGrow,flexShrink,flexWrap,flexbox,fontFamily,fontSize,fontStyle,fontWeight,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnGap,gridGap,gridRow,gridRowGap,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,height,justifyContent,justifyItems,justifySelf,left,letterSpacing,lineHeight,maxHeight,maxWidth,minHeight,minWidth,order,palette,position:position$1,positions,right,shadows:boxShadow,sizeHeight,sizeWidth,sizing,spacing,style:style$2,styleFunctionSx,textAlign,top,typography,width,zIndex:zIndex$2},Symbol.toStringTag,{value:"Module"}));function createSpacing$1(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(l.mui)return l;var o=createUnarySpacing({spacing:l}),u=function(){for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return p.length===0?o(1):p.length===1?o(p[0]):p.map(function(v){if(typeof v=="string")return v;var g=o(v);return typeof g=="number"?"".concat(g,"px"):g}).join(" ")};return Object.defineProperty(u,"unit",{get:function(){return l}}),u.mui=!0,u}var easing={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)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(l){return"".concat(Math.round(l),"ms")}const transitions$2={easing,duration,create:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=u.duration,f=d===void 0?duration.standard:d,p=u.easing,h=p===void 0?easing.easeInOut:p,v=u.delay,g=v===void 0?0:v;return _objectWithoutProperties$q(u,["duration","easing","delay"]),(Array.isArray(o)?o:[o]).map(function(m){return"".concat(m," ").concat(typeof f=="string"?f:formatMs(f)," ").concat(h," ").concat(typeof g=="string"?g:formatMs(g))}).join(",")},getAutoHeightDuration:function(o){if(!o)return 0;var u=o/36;return Math.round((4+15*Math.pow(u,.25)+u/5)*10)}};var zIndex$1={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function createTheme$1(){for(var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.breakpoints,u=o===void 0?{}:o,d=l.mixins,f=d===void 0?{}:d,p=l.palette,h=p===void 0?{}:p,v=l.spacing,g=l.typography,m=g===void 0?{}:g,y=_objectWithoutProperties$q(l,["breakpoints","mixins","palette","spacing","typography"]),b=createPalette$1(h),w=createBreakpoints$1(u),E=createSpacing$1(v),P=deepmerge$1({breakpoints:w,direction:"ltr",mixins:createMixins$1(w,E,f),overrides:{},palette:b,props:{},shadows:shadows$1,typography:createTypography$1(b,m),spacing:E,shape:shape$1,transitions:transitions$2,zIndex:zIndex$1},y),C=arguments.length,T=new Array(C>1?C-1:0),O=1;O<C;O++)T[O-1]=arguments[O];return P=T.reduce(function(x,A){return deepmerge$1(x,A)},P),P}function createMuiTheme(){return createTheme$1.apply(void 0,arguments)}var defaultTheme$1=createTheme$1();function withStyles$2(l,o){return withStyles$3(l,_extends$v({defaultTheme:defaultTheme$1},o))}var styles$37=function(o){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:o.typography.pxToRem(24),transition:o.transitions.create("fill",{duration:o.transitions.duration.shorter})},colorPrimary:{color:o.palette.primary.main},colorSecondary:{color:o.palette.secondary.main},colorAction:{color:o.palette.action.active},colorError:{color:o.palette.error.main},colorDisabled:{color:o.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:o.typography.pxToRem(20)},fontSizeLarge:{fontSize:o.typography.pxToRem(35)}}},SvgIcon$1=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.color,v=h===void 0?"inherit":h,g=o.component,m=g===void 0?"svg":g,y=o.fontSize,b=y===void 0?"medium":y,w=o.htmlColor,E=o.titleAccess,P=o.viewB
20ox,C=P===void 0?"0 0 24 24":P,T=_objectWithoutProperties$q(o,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return reactExports.createElement(m,_extends$v({className:clsx$1(f.root,p,v!=="inherit"&&f["color".concat(capitalize$1(v))],b!=="default"&&b!=="medium"&&f["fontSize".concat(capitalize$1(b))]),focusable:"false",viewBox:C,color:w,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:u},T),d,E?reactExports.createElement("title",null,E):null)});SvgIcon$1.muiName="SvgIcon";const SvgIcon$2=withStyles$2(styles$37,{name:"MuiSvgIcon"})(SvgIcon$1),SvgIcon=Object.freeze(Object.defineProperty({__proto__:null,default:SvgIcon$2},Symbol.toStringTag,{value:"Module"}));function createSvgIcon(l,o){var u=function(f,p){return React.createElement(SvgIcon$2,_extends$v({ref:p},f),l)};return u.muiName=SvgIcon$2.muiName,React.memo(React.forwardRef(u))}function debounce$3(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,u;function d(){for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];var v=this,g=function(){l.apply(v,p)};clearTimeout(u),u=setTimeout(g,o)}return d.clear=function(){clearTimeout(u)},d}function deprecatedPropType(l,o){return function(){return null}}function isMuiElement(l,o){return reactExports.isValidElement(l)&&o.indexOf(l.type.muiName)!==-1}function ownerDocument(l){return l&&l.ownerDocument||document}function ownerWindow(l){var o=ownerDocument(l);return o.defaultView||window}function requirePropFactory(l){return function(){return null}}function setRef$1(l,o){typeof l=="function"?l(o):l&&(l.current=o)}function unsupportedProp(l,o,u,d,f){return null}function useControlled(l){var o=l.controlled,u=l.default;l.name,l.state;var d=reactExports.useRef(o!==void 0),f=d.current,p=reactExports.useState(u),h=p[0],v=p[1],g=f?o:h,m=reactExports.useCallback(function(y){f||v(y)},[]);return[g,m]}var useEnhancedEffect$a=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useEventCallback(l){var o=reactExports.useRef(l);return useEnhancedEffect$a(function(){o.current=l}),reactExports.useCallback(function(){return o.current.apply(void 0,arguments)},[])}function useForkRef(l,o){return reactExports.useMemo(function(){return l==null&&o==null?null:function(u){setRef$1(l,u),setRef$1(o,u)}},[l,o])}function useId(l){var o=reactExports.useState(l),u=o[0],d=o[1],f=l||u;return reactExports.useEffect(function(){u==null&&d("mui-".concat(Math.round(Math.random()*1e5)))},[u]),f}var hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout=null,inputTypesWhitelist={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 focusTriggersKeyboardModality(l){var o=l.type,u=l.tagName;return!!(u==="INPUT"&&inputTypesWhitelist[o]&&!l.readOnly||u==="TEXTAREA"&&!l.readOnly||l.isContentEditable)}function handleKeyDown(l){l.metaKey||l.altKey||l.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(l){l.addEventListener("keydown",handleKeyDown,!0),l.addEventListener("mousedown",handlePointerDown,!0),l.addEventListener("pointerdown",handlePointerDown,!0),l.addEventListener("touchstart",handlePointerDown,!0),l.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(l){var o=l.target;try{return o.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(o)}function handleBlurVisible(){hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(function(){hadFocusVisibleRecently=!1},100)}function useIsFocusVisible(){var l=reactExports.useCallback(function(o){var u=reactDomExports.findDOMNode(o);u!=null&&prepare(u.ownerDocument)},[]);return{isFocusVisible,onBlurVisible:handleBlurVisible,ref:l}}const utils$4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:capitalize$1,createChainedFunction,createSvgIcon,debounce:debounce$3,deprecatedPropType,isMuiElement,ownerDocument,ownerWindow,requirePropFactory,setRef:setRef$1,unstable_useId:useId,unsupportedProp,useControlled,useEventCallback,useForkRef,useIsFocusVisible},Symbol.toStringTag,{value:"Module"})),require$$0$8=getAugmentedNamespace(utils$4);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,(function(l){Object.defineProperty(l,"__esMo
20dule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=require$$0$8})(createSvgIcon$1)),createSvgIcon$1}var hasRequiredVisibility;function requireVisibility(){if(hasRequiredVisibility)return Visibility;hasRequiredVisibility=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-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"}),"Visibility");return Visibility.default=f,Visibility}var VisibilityExports=requireVisibility();const VisibilityIcon$1=getDefaultExportFromCjs(VisibilityExports);var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var l=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=l,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var l=require_freeGlobal(),o=typeof self=="object"&&self&&self.Object===Object&&self,u=l||o||Function("return this")();return _root=u,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var l=require_root(),o=l.Symbol;return _Symbol=o,_Symbol}var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function l(o,u){for(var d=-1,f=o==null?0:o.length,p=Array(f);++d<f;)p[d]=u(o[d],d,o);return p}return _arrayMap=l,_arrayMap}var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var l=Array.isArray;return isArray_1=l,isArray_1}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var l=require_Symbol(),o=Object.prototype,u=o.hasOwnProperty,d=o.toString,f=l?l.toStringTag:void 0;function p(h){var v=u.call(h,f),g=h[f];try{h[f]=void 0;var m=!0}catch{}var y=d.call(h);return m&&(v?h[f]=g:delete h[f]),y}return _getRawTag=p,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var l=Object.prototype,o=l.toString;function u(d){return o.call(d)}return _objectToString=u,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var l=require_Symbol(),o=require_getRawTag(),u=require_objectToString(),d="[object Null]",f="[object Undefined]",p=l?l.toStringTag:void 0;function h(v){return v==null?v===void 0?f:d:p&&p in Object(v)?o(v):u(v)}return _baseGetTag=h,_baseGetTag}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function l(o){return o!=null&&typeof o=="object"}return isObjectLike_1=l,isObjectLike_1}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var l=require_baseGetTag(),o=requireIsObjectLike(),u="[object Symbol]";function d(f){return typeof f=="symbol"||o(f)&&l(f)==u}return isSymbol_1=d,isSymbol_1}var _baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var l=require_Symbol(),o=require_arrayMap(),u=requireIsArray(),d=requireIsSymbol(),f=l?l.prototype:void 0,p=f?f.toString:void 0;function h(v){if(typeof v=="string")return v;if(u(v))return o(v,h)+"";if(d(v))return p?p.call(v):"";var g=v+"";return g=="0"&&1/v==-1/0?"-0":g}return _baseToString=h,_baseToString}var _baseSlice,hasRequired_baseSlice;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;hasRequired_baseSlice=1;function l(o,u,d){var f=-1,p=o.length;u<0&&(u=-u>p?0:p+u),d=d>p?p:d,d<0&&(d+=p),p=u>d?0:d-u>>>0,u>>>=0;for(var h=Array(p);++f<p;)h[f]=o[f+u];return h}return _baseSlice=l,_baseSlice}var _castSlice,hasRequired_castSlice;function require_castSlice(){if(hasRequired_castSlice)return _castSlice;
vendor: 4,516 bytes, line 20
20hasRequired_castSlice=1;var l=require_baseSlice();function o(u,d,f){var p=u.length;return f=f===void 0?p:f,!d&&f>=p?u:l(u,d,f)}return _castSlice=o,_castSlice}var _hasUnicode,hasRequired_hasUnicode;function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var l="\\ud800-\\udfff",o="\\u0300-\\u036f",u="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",f=o+u+d,p="\\ufe0e\\ufe0f",h="\\u200d",v=RegExp("["+h+l+f+p+"]");function g(m){return v.test(m)}return _hasUnicode=g,_hasUnicode}var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function l(o){var u=typeof o;return o!=null&&(u=="object"||u=="function")}return isObject_1=l,isObject_1}var _baseIsRegExp,hasRequired_baseIsRegExp;function require_baseIsRegExp(){if(hasRequired_baseIsRegExp)return _baseIsRegExp;hasRequired_baseIsRegExp=1;var l=require_baseGetTag(),o=requireIsObjectLike(),u="[object RegExp]";function d(f){return o(f)&&l(f)==u}return _baseIsRegExp=d,_baseIsRegExp}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function l(o){return function(u){return o(u)}}return _baseUnary=l,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,(function(l,o){var u=require_freeGlobal(),d=o&&!o.nodeType&&o,f=d&&!0&&l&&!l.nodeType&&l,p=f&&f.exports===d,h=p&&u.process,v=(function(){try{var g=f&&f.require&&f.require("util").types;return g||h&&h.binding&&h.binding("util")}catch{}})();l.exports=v})(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isRegExp_1,hasRequiredIsRegExp;function requireIsRegExp(){if(hasRequiredIsRegExp)return isRegExp_1;hasRequiredIsRegExp=1;var l=require_baseIsRegExp(),o=require_baseUnary(),u=require_nodeUtil(),d=u&&u.isRegExp,f=d?o(d):l;return isRegExp_1=f,isRegExp_1}var _baseProperty,hasRequired_baseProperty;function require_baseProperty(){if(hasRequired_baseProperty)return _baseProperty;hasRequired_baseProperty=1;function l(o){return function(u){return u?.[o]}}return _baseProperty=l,_baseProperty}var _asciiSize,hasRequired_asciiSize;function require_asciiSize(){if(hasRequired_asciiSize)return _asciiSize;hasRequired_asciiSize=1;var l=require_baseProperty(),o=l("length");return _asciiSize=o,_asciiSize}var _unicodeSize,hasRequired_unicodeSize;function require_unicodeSize(){if(hasRequired_unicodeSize)return _unicodeSize;hasRequired_unicodeSize=1;var l="\\ud800-\\udfff",o="\\u0300-\\u036f",u="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",f=o+u+d,p="\\ufe0e\\ufe0f",h="["+l+"]",v="["+f+"]",g="\\ud83c[\\udffb-\\udfff]",m="(?:"+v+"|"+g+")",y="[^"+l+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",P=m+"?",C="["+p+"]?",T="(?:"+E+"(?:"+[y,b,w].join("|")+")"+C+P+")*",O=C+P+T,x="(?:"+[y+v+"?",v,b,w,h].join("|")+")",A=RegExp(g+"(?="+g+")|"+x+O,"g");function D(j){for(var M=A.lastIndex=0;A.test(j);)++M;return M}return _unicodeSize=D,_unicodeSize}var _stringSize,hasRequired_stringSize;function require_stringSize(){if(hasRequired_stringSize)return _stringSize;hasRequired_stringSize=1;var l=require_asciiSize(),o=require_hasUnicode(),u=require_unicodeSize();function d(f){return o(f)?u(f):l(f)}return _stringSize=d,_stringSize}var _asciiToArray,hasRequired_asciiToArray;function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;hasRequired_asciiToArray=1;function l(o){return o.split("")}return _asciiToArray=l,_asciiToArray}var _unicodeToArray,hasRequired_unicodeToArray;function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var l="\\ud800-\\udfff",o="\\u0300-\\u036f",u="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",f=o+u+d,p="\\ufe0e\\ufe0f",h="["+l+"]",v="["+f+"]",g="\\ud83c[\\udffb-\\udfff]",m="(?:"+v+"|"+g+")",y="[^"+l+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",P=m+"?",C="["+p+"]?",T="(?:"+E+"(?:"+[y,b,w].join("|")+")"+C+P+")*",O=C+P+T,x="(?:"+[y+v+"?",v,b,w,h].join("|")+")",A=RegExp(g+"(?="+g+")|"+x+O,"g");function D(j){return j.match(A)||[]}return _unicodeToArray=D,_unicodeToArray}var _stringToArray,hasRequired_stringToArray;function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var l=require_asciiToArray(),o=require_hasUnicode(),u=require_unicodeToArray();function d(f){return o(f)?u(f):l(f)}
20return _stringToArray=d,_stringToArray}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var l=/\s/;function o(u){for(var d=u.length;d--&&l.test(u.charAt(d)););return d}return _trimmedEndIndex=o,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var l=require_trimmedEndIndex(),o=/^\s+/;function u(d){return d&&d.slice(0,l(d)+1).replace(o,"")}return _baseTrim=u,_baseTrim}var toNumber_1,hasRequiredToNumber;function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var l=require_baseTrim(),o=requireIsObject(),u=requireIsSymbol(),d=NaN,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,h=/^0o[0-7]+$/i,v=parseInt;function g(m){if(typeof m=="number")return m;if(u(m))return d;if(o(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=o(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=l(m);var b=p.test(m);return b||h.test(m)?v(m.slice(2),b?2:8):f.test(m)?d:+m}return toNumber_1=g,toNumber_1}var toFinite_1,hasRequiredToFinite;function requireToFinite(){if(hasRequiredToFinite)return toFinite_1;hasRequiredToFinite=1;var l=requireToNumber(),o=1/0,u=17976931348623157e292;function d(f){if(!f)return f===0?f:0;if(f=l(f),f===o||f===-o){var p=f<0?-1:1;return p*u}return f===f?f:0}return toFinite_1=d,toFinite_1}var toInteger_1,hasRequiredToInteger;function requireToInteger(){if(hasRequiredToInteger)return toInteger_1;hasRequiredToInteger=1;var l=requireToFinite();function o(u){var d=l(u),f=d%1;return d===d?f?d-f:d:0}return toInteger_1=o,toInteger_1}var toString_1,hasRequiredToString;function requireToString(){if(hasRequiredToString)return toString_1;hasRequiredToString=1;var l=require_baseToString();function o(u){return u==null?"":l(u)}return toString_1=o,toString_1}var truncate_1,hasRequiredTruncate;function requireTruncate(){if(hasRequiredTruncate)return truncate_1;hasRequiredTruncate=1;var l=require_baseToString(),o=require_castSlice(),u=require_hasUnicode(),d=requireIsObject(),f=requireIsRegExp(),p=require_stringSize(),h=require_stringToArray(),v=requireToInteger(),g=requireToString(),m=30,y="...",b=/\w*$/;function w(E,P){var C=m,T=y;if(d(P)){var O="separator"in P?P.separator:O;C="length"in P?v(P.length):C,T="omission"in P?l(P.omission):T}E=g(E);var x=E.length;if(u(E)){var A=h(E);x=A.length}if(C>=x)return E;var D=C-p(T);if(D<1)return T;var j=A?o(A,0,D).join(""):E.slice(0,D);if(O===void 0)return j+T;if(A&&(D+=j.length-D),f(O)){if(E.slice(D).search(O)){var M,N=j;for(O.global||(O=RegExp(O.source,g(b.exec(O))+"g")),O.lastIndex=0;M=O.exec(N);)var q=M.index;j=j.slice(0,q===void 0?D:q)}}else if(E.indexOf(l(O),D)!=D){var z=j.lastIndexOf(O);z>-1&&(j=j.slice(0,z))}return j+T}return truncate_1=w,truncate_1}var truncateExports=requireTruncate();const truncate=getDefaultExportFromCjs(truncateExports);var _createCaseFirst,hasRequired_createCaseFirst;function require_createCaseFirst(){if(hasRequired_createCaseFirst)return _createCaseFirst;hasRequired_createCaseFirst=1;var l=require_castSlice(),o=require_hasUnicode(),u=require_stringToArray(),d=requireToString();function f(p){return function(h){h=d(h);var v=o(h)?u(h):void 0,g=v?v[0]:h.charAt(0),m=v?l(v,1).join(""):h.slice(1);return g[p]()+m}}return _createCaseFirst=f,_createCaseFirst}var upperFirst_1,hasRequiredUpperFirst;function requireUpperFirst(){if(hasRequiredUpperFirst)return upperFirst_1;hasRequiredUpperFirst=1;var l=require_createCaseFirst(),o=l("toUpperCase");return upperFirst_1=o,upperFirst_1}var capitalize_1,hasRequiredCapitalize;function requireCapitalize(){if(hasRequiredCapitalize)return capitalize_1;hasRequiredCapitalize=1;var l=requireToString(),o=requireUpperFirst();function u(d){return o(l(d).toLowerCase())}return capitalize_1=u,capitalize_1}var capitalizeExports=requireCapitalize();const capitalize=getDefaultExportFromCjs(capitalizeExports);function useResizeObserver(l){l===void 0&&(l={});var o=reactExports.useRef(null),u=l.onResize,d=reactExports.useRef(void 0);d.current=u;var f=reactExports.useRef(),p=l.ref||o,h=reactExports.useState({width:void 0,height:void 0}),v=h[0],g=h[1],m=reactExports.useRef({width:void 0,height:void 0});return reactExports.useEffect(function(){f.current||(f.current=ne
20w ResizeObserver(function(y){if(Array.isArray(y)&&y.length){var b=y[0],w=Math.round(b.contentRect.width),E=Math.round(b.contentRect.height);if(m.current.width!==w||m.current.height!==E){var P={width:w,height:E};d.current?d.current(P):(m.current.width=w,m.current.height=E,g(P))}}}))},[]),reactExports.useEffect(function(){if(!(typeof p!="object"||p===null||!(p.current instanceof Element))){var y=p.current;return f.current.observe(y),function(){return f.current.unobserve(y)}}},[p]),reactExports.useMemo(function(){return{ref:p,width:v.width,height:v.height}},[p,v?v.width:null,v?v.height:null])}var now_1,hasRequiredNow;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var l=require_root(),o=function(){return l.Date.now()};return now_1=o,now_1}var debounce_1,hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var l=requireIsObject(),o=requireNow(),u=requireToNumber(),d="Expected a function",f=Math.max,p=Math.min;function h(v,g,m){var y,b,w,E,P,C,T=0,O=!1,x=!1,A=!0;if(typeof v!="function")throw new TypeError(d);g=u(g)||0,l(m)&&(O=!!m.leading,x="maxWait"in m,w=x?f(u(m.maxWait)||0,g):w,A="trailing"in m?!!m.trailing:A);function D(B){var G=y,Q=b;return y=b=void 0,T=B,E=v.apply(Q,G),E}function j(B){return T=B,P=setTimeout(q,g),O?D(B):E}function M(B){var G=B-C,Q=B-T,K=g-G;return x?p(K,w-Q):K}function N(B){var G=B-C,Q=B-T;return C===void 0||G>=g||G<0||x&&Q>=w}function q(){var B=o();if(N(B))return z(B);P=setTimeout(q,M(B))}function z(B){return P=void 0,A&&y?D(B):(y=b=void 0,E)}function H(){P!==void 0&&clearTimeout(P),T=0,y=C=b=P=void 0}function U(){return P===void 0?E:z(o())}function F(){var B=o(),G=N(B);if(y=arguments,b=this,C=B,G){if(P===void 0)return j(C);if(x)return clearTimeout(P),P=setTimeout(q,g),D(C)}return P===void 0&&(P=setTimeout(q,g)),E}return F.cancel=H,F.flush=U,F}return debounce_1=h,debounce_1}var debounceExports=requireDebounce();const debounce$2=getDefaultExportFromCjs(debounceExports);var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var l=require_baseGetTag(),o=requireIsObject(),u="[object AsyncFunction]",d="[object Function]",f="[object GeneratorFunction]",p="[object Proxy]";function h(v){if(!o(v))return!1;var g=l(v);return g==d||g==f||g==u||g==p}return isFunction_1=h,isFunction_1}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var l=require_root(),o=l["__core-js_shared__"];return _coreJsData=o,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var l=require_coreJsData(),o=(function(){var d=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""})();function u(d){return!!o&&o in d}return _isMasked=u,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var l=Function.prototype,o=l.toString;function u(d){if(d!=null){try{return o.call(d)}catch{}try{return d+""}catch{}}return""}return _toSource=u,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var l=requireIsFunction(),o=require_isMasked(),u=requireIsObject(),d=require_toSource(),f=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,h=Function.prototype,v=Object.prototype,g=h.toString,m=v.hasOwnProperty,y=RegExp("^"+g.call(m).replace(f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(w){if(!u(w)||o(w))return!1;var E=l(w)?y:p;return E.test(d(w))}return _baseIsNative=b,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function l(o,u){return o?.[u]}return _getValue=l,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var l=require_baseIsNative(),o=require_getValue();function u(d,f){var p=o(d,f);return l(p)?p:void 0}return _getNative=u,_getNative}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var l=require_getNative(),o=l(Object,"create");return _nativeCreate=o,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var l=require_nativeCreate();function o(){this.__data__=l?l(null):{},this.size=0}return _hashClear=o,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function l(o){var u=this.has(o)&&delete this.__data__[o];return this.size-=u?1:0,u}return _hashDelete=l,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var l=require_nativeCreate(),o="__lodash_hash_undefined__",u=Object.prototype,d=u.hasOwnProperty;function f(p){var h=this.__data__;if(l){var v=h[p];return v===o?void 0:v}return d.call(h,p)?h[p]:void 0}return _hashGet=f,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var l=require_nativeCreate(),o=Object.prototype,u=o.hasOwnProperty;function d(f){var p=this.__data__;return l?p[f]!==void 0:u.call(p,f)}return _hashHas=d,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var l=require_nativeCreate(),o="__lodash_hash_undefined__";function u(d,f){var p=this.__data__;return this.size+=this.has(d)?0:1,p[d]=l&&f===void 0?o:f,this}return _hashSet=u,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var l=require_hashClear(),o=require_hashDelete(),u=require_hashGet(),d=require_hashHas(),f=require_hashSet();function p(h){var v=-1,g=h==null?0:h.length;for(this.clear();++v<g;){var m=h[v];this.set(m[0],m[1])}}return p.prototype.clear=l,p.prototype.delete=o,p.prototype.get=u,p.prototype.has=d,p.prototype.set=f,_Hash=p,_Hash}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function l(){this.__data__=[],this.size=0}return _listCacheClear=l,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function l(o,u){return o===u||o!==o&&u!==u}return eq_1=l,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var l=requireEq();function o(u,d){for(var f=u.length;f--;)if(l(u[f][0],d))return f;return-1}return _assocIndexOf=o,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var l=require_assocIndexOf(),o=Array.prototype,u=o.splice;function d(f){var p=this.__data__,h=l(p,f);if(h<0)return!1;var v=p.length-1;return h==v?p.pop():u.call(p,h,1),--this.size,!0}return _listCacheDelete=d,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;
vendor: 4,210 bytes, line 20
20function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var l=require_assocIndexOf();function o(u){var d=this.__data__,f=l(d,u);return f<0?void 0:d[f][1]}return _listCacheGet=o,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var l=require_assocIndexOf();function o(u){return l(this.__data__,u)>-1}return _listCacheHas=o,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var l=require_assocIndexOf();function o(u,d){var f=this.__data__,p=l(f,u);return p<0?(++this.size,f.push([u,d])):f[p][1]=d,this}return _listCacheSet=o,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var l=require_listCacheClear(),o=require_listCacheDelete(),u=require_listCacheGet(),d=require_listCacheHas(),f=require_listCacheSet();function p(h){var v=-1,g=h==null?0:h.length;for(this.clear();++v<g;){var m=h[v];this.set(m[0],m[1])}}return p.prototype.clear=l,p.prototype.delete=o,p.prototype.get=u,p.prototype.has=d,p.prototype.set=f,_ListCache=p,_ListCache}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var l=require_getNative(),o=require_root(),u=l(o,"Map");return _Map=u,_Map}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var l=require_Hash(),o=require_ListCache(),u=require_Map();function d(){this.size=0,this.__data__={hash:new l,map:new(u||o),string:new l}}return _mapCacheClear=d,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function l(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}return _isKeyable=l,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var l=require_isKeyable();function o(u,d){var f=u.__data__;return l(d)?f[typeof d=="string"?"string":"hash"]:f.map}return _getMapData=o,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var l=require_getMapData();function o(u){var d=l(this,u).delete(u);return this.size-=d?1:0,d}return _mapCacheDelete=o,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var l=require_getMapData();function o(u){return l(this,u).get(u)}return _mapCacheGet=o,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var l=require_getMapData();function o(u){return l(this,u).has(u)}return _mapCacheHas=o,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var l=require_getMapData();function o(u,d){var f=l(this,u),p=f.size;return f.set(u,d),this.size+=f.size==p?0:1,this}return _mapCacheSet=o,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var l=require_mapCacheClear(),o=require_mapCacheDelete(),u=require_mapCacheGet(),d=require_mapCacheHas(),f=require_mapCacheSet();function p(h){var v=-1,g=h==null?0:h.length;for(this.clear();++v<g;){var m=h[v];this.set(m[0],m[1])}}return p.prototype.clear=l,p.prototype.delete=o,p.prototype.get=u,p.prototype.has=d,p.prototype.set=f,_MapCache=p,_MapCache}var _setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var l="__lodash_hash_undefined__";function o(u){return this.__data__.set(u,l),this}return _setCacheAdd=o,_setCacheAdd}
20var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function l(o){return this.__data__.has(o)}return _setCacheHas=l,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var l=require_MapCache(),o=require_setCacheAdd(),u=require_setCacheHas();function d(f){var p=-1,h=f==null?0:f.length;for(this.__data__=new l;++p<h;)this.add(f[p])}return d.prototype.add=d.prototype.push=o,d.prototype.has=u,_SetCache=d,_SetCache}var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function l(o,u,d,f){for(var p=o.length,h=d+(f?1:-1);f?h--:++h<p;)if(u(o[h],h,o))return h;return-1}return _baseFindIndex=l,_baseFindIndex}var _baseIsNaN,hasRequired_baseIsNaN;function require_baseIsNaN(){if(hasRequired_baseIsNaN)return _baseIsNaN;hasRequired_baseIsNaN=1;function l(o){return o!==o}return _baseIsNaN=l,_baseIsNaN}var _strictIndexOf,hasRequired_strictIndexOf;function require_strictIndexOf(){if(hasRequired_strictIndexOf)return _strictIndexOf;hasRequired_strictIndexOf=1;function l(o,u,d){for(var f=d-1,p=o.length;++f<p;)if(o[f]===u)return f;return-1}return _strictIndexOf=l,_strictIndexOf}var _baseIndexOf,hasRequired_baseIndexOf;function require_baseIndexOf(){if(hasRequired_baseIndexOf)return _baseIndexOf;hasRequired_baseIndexOf=1;var l=require_baseFindIndex(),o=require_baseIsNaN(),u=require_strictIndexOf();function d(f,p,h){return p===p?u(f,p,h):l(f,o,h)}return _baseIndexOf=d,_baseIndexOf}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var l=require_baseIndexOf();function o(u,d){var f=u==null?0:u.length;return!!f&&l(u,d,0)>-1}return _arrayIncludes=o,_arrayIncludes}var _arrayIncludesWith,hasRequired_arrayIncludesWith;function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;hasRequired_arrayIncludesWith=1;function l(o,u,d){for(var f=-1,p=o==null?0:o.length;++f<p;)if(d(u,o[f]))return!0;return!1}return _arrayIncludesWith=l,_arrayIncludesWith}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function l(o,u){return o.has(u)}return _cacheHas=l,_cacheHas}var _Set,hasRequired_Set;function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var l=require_getNative(),o=require_root(),u=l(o,"Set");return _Set=u,_Set}var noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;hasRequiredNoop=1;function l(){}return noop_1=l,noop_1}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function l(o){var u=-1,d=Array(o.size);return o.forEach(function(f){d[++u]=f}),d}return _setToArray=l,_setToArray}var _createSet,hasRequired_createSet;function require_createSet(){if(hasRequired_createSet)return _createSet;hasRequired_createSet=1;var l=require_Set(),o=requireNoop(),u=require_setToArray(),d=1/0,f=l&&1/u(new l([,-0]))[1]==d?function(p){return new l(p)}:o;return _createSet=f,_createSet}var _baseUniq,hasRequired_baseUniq;function require_baseUniq(){if(hasRequired_baseUniq)return _baseUniq;hasRequired_baseUniq=1;var l=require_SetCache(),o=require_arrayIncludes(),u=require_arrayIncludesWith(),d=require_cacheHas(),f=require_createSet(),p=require_setToArray(),h=200;function v(g,m,y){var b=-1,w=o,E=g.length,P=!0,C=[],T=C;if(y)P=!1,w=u;else if(E>=h){var O=m?null:f(g);if(O)return p(O);P=!1,w=d,T=new l}else T=m?[]:C;e:for(;++b<E;){var x=g[b],A=m?m(x):x;if(x=y||x!==0?x:0,P&&A===A){for(var D=T.length;D--;)if(T[D]===A)continue e;m&&T.push(A),C.push(x)}else w(T,A,y)||(T!==C&&T.push(A),C.push(x))}return C}return _baseUniq=v,_baseUniq}var uniq_1,hasRequiredUniq;function requireUniq(){if(hasRequiredUniq)return uniq_1;hasRequiredUniq=1;var l=require_baseUniq();function o(u){return u&&u.length?l(u):[]}return uniq_1=o,uniq_1}var uniqExports=requireUniq();const uniq=getDefaultExportFromCjs(uniqExports);var Help={},hasRequiredHelp;function requireHelp(){if(hasRequiredHelp)return Help;hasRequiredHelp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Help,"__esModule",{value:!0}),Help.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59
20-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");return Help.default=f,Help}var HelpExports=requireHelp();const HelpIcon=getDefaultExportFromCjs(HelpExports);var _baseExtremum,hasRequired_baseExtremum;function require_baseExtremum(){if(hasRequired_baseExtremum)return _baseExtremum;hasRequired_baseExtremum=1;var l=requireIsSymbol();function o(u,d,f){for(var p=-1,h=u.length;++p<h;){var v=u[p],g=d(v);if(g!=null&&(m===void 0?g===g&&!l(g):f(g,m)))var m=g,y=v}return y}return _baseExtremum=o,_baseExtremum}var _baseGt,hasRequired_baseGt;function require_baseGt(){if(hasRequired_baseGt)return _baseGt;hasRequired_baseGt=1;function l(o,u){return o>u}return _baseGt=l,_baseGt}var _stackClear,hasRequired_stackClear;function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var l=require_ListCache();function o(){this.__data__=new l,this.size=0}return _stackClear=o,_stackClear}var _stackDelete,hasRequired_stackDelete;function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;hasRequired_stackDelete=1;function l(o){var u=this.__data__,d=u.delete(o);return this.size=u.size,d}return _stackDelete=l,_stackDelete}var _stackGet,hasRequired_stackGet;function require_stackGet(){if(hasRequired_stackGet)return _stackGet;hasRequired_stackGet=1;function l(o){return this.__data__.get(o)}return _stackGet=l,_stackGet}var _stackHas,hasRequired_stackHas;function require_stackHas(){if(hasRequired_stackHas)return _stackHas;hasRequired_stackHas=1;function l(o){return this.__data__.has(o)}return _stackHas=l,_stackHas}var _stackSet,hasRequired_stackSet;function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var l=require_ListCache(),o=require_Map(),u=require_MapCache(),d=200;function f(p,h){var v=this.__data__;if(v instanceof l){var g=v.__data__;if(!o||g.length<d-1)return g.push([p,h]),this.size=++v.size,this;v=this.__data__=new u(g)}return v.set(p,h),this.size=v.size,this}return _stackSet=f,_stackSet}var _Stack,hasRequired_Stack;function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var l=require_ListCache(),o=require_stackClear(),u=require_stackDelete(),d=require_stackGet(),f=require_stackHas(),p=require_stackSet();function h(v){var g=this.__data__=new l(v);this.size=g.size}return h.prototype.clear=o,h.prototype.delete=u,h.prototype.get=d,h.prototype.has=f,h.prototype.set=p,_Stack=h,_Stack}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function l(o,u){for(var d=-1,f=o==null?0:o.length;++d<f;)if(u(o[d],d,o))return!0;return!1}return _arraySome=l,_arraySome}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var l=require_SetCache(),o=require_arraySome(),u=require_cacheHas(),d=1,f=2;function p(h,v,g,m,y,b){var w=g&d,E=h.length,P=v.length;if(E!=P&&!(w&&P>E))return!1;var C=b.get(h),T=b.get(v);if(C&&T)return C==v&&T==h;var O=-1,x=!0,A=g&f?new l:void 0;for(b.set(h,v),b.set(v,h);++O<E;){var D=h[O],j=v[O];if(m)var M=w?m(j,D,O,v,h,b):m(D,j,O,h,v,b);if(M!==void 0){if(M)continue;x=!1;break}if(A){if(!o(v,function(N,q){if(!u(A,q)&&(D===N||y(D,N,g,m,b)))return A.push(q)})){x=!1;break}}else if(!(D===j||y(D,j,g,m,b))){x=!1;break}}return b.delete(h),b.delete(v),x}return _equalArrays=p,_equalArrays}var _Uint8Array,hasRequired_Uint8Array;function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var l=require_root(),o=l.Uint8Array;return _Uint8Array=o,_Uint8Array}var _mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function l(o){var u=-1,d=Array(o.size);return o.forEach(function(f,p){d[++u]=[p,f]}),d}return _mapToArray=l,_mapToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var l=require_Symbol(),o=require_Uint8Array(),u=requireEq(),d=require_equalArrays(),f=require_mapToArray(),p=require_setToArray(),h=1,v=2,g="[object Boolean]",m="[object Date]",y="[object Error]",b="[object Map]",w="[object Number]",E="[object RegExp]",P="[object Set]",C="[object String]",T="[object Symbol]",O="[object ArrayBuffer]",x="[object DataView]",A=l?l.prototype:void 0,D=A?A.valueOf:void 0;function j(M,N,q,z,H,U,F){switch(q){case x:if(M.byteLength!=N.byteLength||M.byteOffset!=N.byteOffset)return!1;M=M.buffer,N=N.buffer;case O:return!(M.byteLength!=N.byteLength||!U(new o(M),new o(N)));case g:case m:case w:return u(+M,+N);case y:return M.name==N.name&&M.message==N.message;case E:case C:return M==N+"";case b:var B=f;case P:var G=z&h;if(B||(B=p),M.size!=N.size&&!G)return!1;var Q=F.get(M);if(Q)return Q==N;z|=v,F.set(M,N);var K=d(B(M),B(N),z,H,U,F);return F.delete(M),K;case T:if(D)return D.call(M)==D.call(N)}return!1}return _equalByTag=j,_equalByTag}var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function l(o,u){for(var d=-1,f=u.length,p=o.length;++d<f;)o[p+d]=u[d];return o}return _arrayPush=l,_arrayPush}var _baseGetAllKeys,hasRequired_baseGetAllKeys;function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var l=require_arrayPush(),o=requireIsArray();function u(d,f,p){var h=f(d);return o(d)?h:l(h,p(d))}return _baseGetAllKeys=u,_baseGetAllKeys}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function l(o,u){for(var d=-1,f=o==null?0:o.length,p=0,h=[];++d<f;){var v=o[d];u(v,d,o)&&(h[p++]=v)}return h}return _arrayFilter=l,_arrayFilter}var stubArray_1,hasRequiredStubArray;function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;hasRequiredStubArray=1;function l(){return[]}return stubArray_1=l,stubArray_1}var _getSymbols,hasRequired_getSymbols;
vendor: 19,787 bytes, line 20
20function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var l=require_arrayFilter(),o=requireStubArray(),u=Object.prototype,d=u.propertyIsEnumerable,f=Object.getOwnPropertySymbols,p=f?function(h){return h==null?[]:(h=Object(h),l(f(h),function(v){return d.call(h,v)}))}:o;return _getSymbols=p,_getSymbols}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function l(o,u){for(var d=-1,f=Array(o);++d<o;)f[d]=u(d);return f}return _baseTimes=l,_baseTimes}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var l=require_baseGetTag(),o=requireIsObjectLike(),u="[object Arguments]";function d(f){return o(f)&&l(f)==u}return _baseIsArguments=d,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var l=require_baseIsArguments(),o=requireIsObjectLike(),u=Object.prototype,d=u.hasOwnProperty,f=u.propertyIsEnumerable,p=l((function(){return arguments})())?l:function(h){return o(h)&&d.call(h,"callee")&&!f.call(h,"callee")};return isArguments_1=p,isArguments_1}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function l(){return!1}return stubFalse_1=l,stubFalse_1}isBuffer.exports;var hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,(function(l,o){var u=require_root(),d=requireStubFalse(),f=o&&!o.nodeType&&o,p=f&&!0&&l&&!l.nodeType&&l,h=p&&p.exports===f,v=h?u.Buffer:void 0,g=v?v.isBuffer:void 0,m=g||d;l.exports=m})(isBuffer,isBuffer.exports)),isBuffer.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var l=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function u(d,f){var p=typeof d;return f=f??l,!!f&&(p=="number"||p!="symbol"&&o.test(d))&&d>-1&&d%1==0&&d<f}return _isIndex=u,_isIndex}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var l=9007199254740991;function o(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=l}return isLength_1=o,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var l=require_baseGetTag(),o=requireIsLength(),u=requireIsObjectLike(),d="[object Arguments]",f="[object Array]",p="[object Boolean]",h="[object Date]",v="[object Error]",g="[object Function]",m="[object Map]",y="[object Number]",b="[object Object]",w="[object RegExp]",E="[object Set]",P="[object String]",C="[object WeakMap]",T="[object ArrayBuffer]",O="[object DataView]",x="[object Float32Array]",A="[object Float64Array]",D="[object Int8Array]",j="[object Int16Array]",M="[object Int32Array]",N="[object Uint8Array]",q="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",U={};U[x]=U[A]=U[D]=U[j]=U[M]=U[N]=U[q]=U[z]=U[H]=!0,U[d]=U[f]=U[T]=U[p]=U[O]=U[h]=U[v]=U[g]=U[m]=U[y]=U[b]=U[w]=U[E]=U[P]=U[C]=!1;function F(B){return u(B)&&o(B.length)&&!!U[l(B)]}return _baseIsTypedArray=F,_baseIsTypedArray}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var l=require_baseIsTypedArray(),o=require_baseUnary(),u=require_nodeUtil(),d=u&&u.isTypedArray,f=d?o(d):l;return isTypedArray_1=f,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var l=require_baseTimes(),o=requireIsArguments(),u=requireIsArray(),d=requireIsBuffer(),f=require_isIndex(),p=requireIsTypedArray(),h=Object.prototype,v=h.hasOwnProperty;function g(m,y){var b=u(m),w=!b&&o(m),E=!b&&!w&&d(m),P=!b&&!w&&!E&&p(m),C=b||w||E||P,T=C?l(m.length,String):[],O=T.length;for(var x in m)(y||v.call(m,x))&&!(C&&(x=="length"||E&&(x=="offset"||x=="parent")||P&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||f(x,O)))&&T.push(x);return T}return _arrayLikeKeys=g,_arrayLikeKeys}var _isPrototype,hasRequired_isPrototype;function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var l=Object.prototype;function o(u){var d=u&&u.constructor,f=typeof d=="function"&&d.prototype||l;return u===f}return _isPrototype=o,_isPrototype}var _overArg,hasRequired_overArg;function require_overArg(){if(hasRequired_overArg)return _overArg;hasRequired_overArg=1;function l(o,u){return function(d){return o(u(d))}}return _overArg=l,_overArg}var _nativeKeys,hasRequired_nativeKeys;function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var l=require_overArg(),o=l(Object.keys,Object);return _nativeKeys=o,_nativeKeys}var _baseKeys,hasRequired_baseKeys;function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var l=require_isPrototype(),o=require_nativeKeys(),u=Object.prototype,d=u.hasOwnProperty;function f(p){if(!l(p))return o(p);var h=[];for(var v in Object(p))d.call(p,v)&&v!="constructor"&&h.push(v);return h}return _baseKeys=f,_baseKeys}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var l=requireIsFunction(),o=requireIsLength();function u(d){return d!=null&&o(d.length)&&!l(d)}return isArrayLike_1=u,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var l=require_arrayLikeKeys(),o=require_baseKeys(),u=requireIsArrayLike();function d(f){return u(f)?l(f):o(f)}return keys_1=d,keys_1}var _getAllKeys,hasRequired_getAllKeys;function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var l=require_baseGetAllKeys(),o=require_getSymbols(),u=requireKeys();function d(f){return l(f,u,o)}return _getAllKeys=d,_getAllKeys}var _equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var l=require_getAllKeys(),o=1,u=Object.prototype,d=u.hasOwnProperty;function f(p,h,v,g,m,y){var b=v&o,w=l(p),E=w.length,P=l(h),C=P.length;if(E!=C&&!b)return!1;for(var T=E;T--;){var O=w[T];if(!(b?O in h:d.call(h,O)))return!1}var x=y.get(p),A=y.get(h);if(x&&A)return x==h&&A==p;var D=!0;y.set(p,h),y.set(h,p);for(var j=b;++T<E;){O=w[T];var M=p[O],N=h[O];if(g)var q=b?g(N,M,O,h,p,y):g(M,N,O,p,h,y);if(!(q===void 0?M===N||m(M,N,v,g,y):q)){D=!1;break}j||(j=O=="constructor")}if(D&&!j){var z=p.constructor,H=h.constructor;z!=H&&"constructor"in p&&"constructor"in h&&!(typeof z=="function"&&z instanceof z&&typeof H=="function"&&H instanceof H)&&(D=!1)}return y.delete(p),y.delete(h),D}return _equalObjects=f,_equalObjects}var _DataView,hasRequired_DataView;function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var l=require_getNative(),o=require_root(),u=l(o,"DataView");return _DataView=u,_DataView}var _Promise,hasRequired_Promise;function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var l=require_getNative(),o=require_root(),u=l(o,"Promise");return _Promise=u,_Promise}var _WeakMap,hasRequired_WeakMap;function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var l=require_getNative(),o=require_root(),u=l(o,"WeakMap");return _WeakMap=u,_WeakMap}var _getTag,hasRequired_getTag;function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var l=require_DataView(),o=require_Map(),u=require_Promise(),d=require_Set(),f=require_WeakMap(),p=require_baseGetTag(),h=require_toSource(),v="[object Map]",g="[object Object]",m="[object Promise]",y="[object Set]",b="[object WeakMap]",w="[object DataView]",E=h(l),P=h(o),C=h(u),T=h(d),O=h(f),x=p;return(l&&x(new l(new ArrayBuffer(1)))!=w||o&&x(new o)!=v||u&&x(u.resolve())!=m||d&&x(new d)!=y||f&&x(new f)!=b)&&(x=function(A){var D=p(A),j=D==g?A.constructor:void 0,M=j?h(j):"";if(M)switch(M){case E:return w;case P:return v;case C:return m;case T:return y;case O:return b}return D}),_getTag=x,_getTag}var _baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var l=require_Stack(),o=require_equalArrays(),u=require_equalByTag(),d=require_equalObjects(),f=require_getTag(),p=requireIsArray(),h=requireIsBuffer(),v=requireIsTypedArray(),g=1,m="[object Arguments]",y="[object Array]",b="[object Object]",w=Object.prototype,E=w.hasOwnProperty;function P(C,T,O,x,A,D){var j=p(C),M=p(T),N=j?y:f(C),q=M?y:f(T);N=N==m?b:N,q=q==m?b:q;var z=N==b,H=q==b,U=N==q;if(U&&h(C)){if(!h(T))return!1;j=!0,z=!1}if(U&&!z)return D||(D=new l),j||v(C)?o(C,T,O,x,A,D):u(C,T,N,O,x,A,D);if(!(O&g)){var F=z&&E.call(C,"__wrapped__"),B=H&&E.call(T,"__wrapped__");if(F||B){var G=F?C.value():C,Q=B?T.value():T;return D||(D=new l),A(G,Q,O,x,D)}}return U?(D||(D=new l),d(C,T,O,x,A,D)):!1}return _baseIsEqualDeep=P,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var l=require_baseIsEqualDeep(),o=requireIsObjectLike();function u(d,f,p,h,v){return d===f?!0:d==null||f==null||!o(d)&&!o(f)?d!==d&&f!==f:l(d,f,p,h,u,v)}return _baseIsEqual=u,_baseIsEqual}var _baseIsMatch,hasRequired_baseIsMatch;function require_baseIsMatch(){if(hasRequired_baseIsMatch)return _baseIsMatch;hasRequired_baseIsMatch=1;var l=require_Stack(),o=require_baseIsEqual(),u=1,d=2;function f(p,h,v,g){var m=v.length,y=m,b=!g;if(p==null)return!y;for(p=Object(p);m--;){var w=v[m];if(b&&w[2]?w[1]!==p[w[0]]:!(w[0]in p))return!1}for(;++m<y;){w=v[m];var E=w[0],P=p[E],C=w[1];if(b&&w[2]){if(P===void 0&&!(E in p))return!1}else{var T=new l;if(g)var O=g(P,C,E,p,h,T);if(!(O===void 0?o(C,P,u|d,g,T):O))return!1}}return!0}return _baseIsMatch=f,_baseIsMatch}var _isStrictComparable,hasRequired_isStrictComparable;function require_isStrictComparable(){if(hasRequired_isStrictComparable)return _isStrictComparable;hasRequired_isStrictComparable=1;var l=requireIsObject();function o(u){return u===u&&!l(u)}return _isStrictComparable=o,_isStrictComparable}var _getMatchData,hasRequired_getMatchData;function require_getMatchData(){if(hasRequired_getMatchData)return _getMatchData;hasRequired_getMatchData=1;var l=require_isStrictComparable(),o=requireKeys();function u(d){for(var f=o(d),p=f.length;p--;){var h=f[p],v=d[h];f[p]=[h,v,l(v)]}return f}return _getMatchData=u,_getMatchData}var _matchesStrictComparable,hasRequired_matchesStrictComparable;function require_matchesStrictComparable(){if(hasRequired_matchesStrictComparable)return _matchesStrictComparable;hasRequired_matchesStrictComparable=1;function l(o,u){return function(d){return d==null?!1:d[o]===u&&(u!==void 0||o in Object(d))}}return _matchesStrictComparable=l,_matchesStrictComparable}var _baseMatches,hasRequired_baseMatches;function require_baseMatches(){if(hasRequired_baseMatches)return _baseMatches;hasRequired_baseMatches=1;var l=require_baseIsMatch(),o=require_getMatchData(),u=require_matchesStrictComparable();function d(f){var p=o(f);return p.length==1&&p[0][2]?u(p[0][0],p[0][1]):function(h){return h===f||l(h,f,p)}}return _baseMatches=d,_baseMatches}var _isKey,hasRequired_isKey;function require_isKey(){if(hasRequired_isKey)return _isKey;hasRequired_isKey=1;var l=requireIsArray(),o=requireIsSymbol(),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function f(p,h){if(l(p))return!1;var v=typeof p;return v=="number"||v=="symbol"||v=="boolean"||p==null||o(p)?!0:d.test(p)||!u.test(p)||h!=null&&p in Object(h)}return _isKey=f,_isKey}var memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var l=require_MapCache(),o="Expected a function";function u(d,f){if(typeof d!="function"||f!=null&&typeof f!="function")throw new TypeError(o);var p=function(){var h=arguments,v=f?f.apply(this,h):h[0],g=p.cache;if(g.has(v))return g.get(v);var m=d.apply(this,h);return p.cache=g.set(v,m)||g,m};return p.cache=new(u.Cache||l),p}return u.Cache=l,memoize_1=u,memoize_1}var _memoizeCapped,hasRequired_memoizeCapped;function require_memoizeCapped(){if(hasRequired_memoizeCapped)return _memoizeCapped;hasRequired_memoizeCapped=1;var l=requireMemoize(),o=500;function u(d){var f=l(d,function(h){return p.size===o&&p.clear(),h}),p=f.cache;return f}return _memoizeCapped=u,_memoizeCapped}var _stringToPath,hasRequired_stringToPath;function require_stringToPath(){if(hasRequired_stringToPath)return _stringToPath;hasRequired_stringToPath=1;var l=require_memoizeCapped(),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=l(function(f){var p=[];return f.charCodeAt(0)===46&&p.push(""),f.replace(o,function(h,v,g,m){p.push(g?m.replace(u,"$1"):v||h)}),p});return _stringToPath=d,_stringToPath}var _castPath,hasRequired_castPath;function require_castPath(){if(hasRequired_castPath)return _castPath;hasRequired_castPath=1;var l=requireIsArray(),o=require_isKey(),u=require_stringToPath(),d=requireToString();function f(p,h){return l(p)?p:o(p,h)?[p]:u(d(p))}return _castPath=f,_castPath}var _toKey,hasRequired_toKey;function require_toKey(){if(hasRequired_toKey)return _toKey;hasRequired_toKey=1;var l=requireIsSymbol();function o(u){if(typeof u=="string"||l(u))return u;var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return _toKey=o,_toKey}var _baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var l=require_castPath(),o=require_toKey();function u(d,f){f=l(f,d);for(var p=0,h=f.length;d!=null&&p<h;)d=d[o(f[p++])];return p&&p==h?d:void 0}return _baseGet=u,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var l=require_baseGet();function o(u,d,f){var p=u==null?void 0:l(u,d);return p===void 0?f:p}return get_1=o,get_1}var _baseHasIn,hasRequired_baseHasIn;function require_baseHasIn(){if(hasRequired_baseHasIn)return _baseHasIn;hasRequired_baseHasIn=1;function l(o,u){return o!=null&&u in Object(o)}return _baseHasIn=l,_baseHasIn}var _hasPath,hasRequired_hasPath;function require_hasPath(){if(hasRequired_hasPath)return _hasPath;hasRequired_hasPath=1;var l=require_castPath(),o=requireIsArguments(),u=requireIsArray(),d=require_isIndex(),f=requireIsLength(),p=require_toKey();function h(v,g,m){g=l(g,v);for(var y=-1,b=g.length,w=!1;++y<b;){var E=p(g[y]);if(!(w=v!=null&&m(v,E)))break;v=v[E]}return w||++y!=b?w:(b=v==null?0:v.length,!!b&&f(b)&&d(E,b)&&(u(v)||o(v)))}return _hasPath=h,_hasPath}var hasIn_1,hasRequiredHasIn;function requireHasIn(){if(hasRequiredHasIn)return hasIn_1;hasRequiredHasIn=1;var l=require_baseHasIn(),o=require_hasPath();function u(d,f){return d!=null&&o(d,f,l)}return hasIn_1=u,hasIn_1}var _baseMatchesProperty,hasRequired_baseMatchesProperty;function require_baseMatchesProperty(){if(hasRequired_baseMatchesProperty)return _baseMatchesProperty;hasRequired_baseMatchesProperty=1;var l=require_baseIsEqual(),o=requireGet(),u=requireHasIn(),d=require_isKey(),f=require_isStrictComparable(),p=require_matchesStrictComparable(),h=require_toKey(),v=1,g=2;function m(y,b){return d(y)&&f(b)?p(h(y),b):function(w){var E=o(w,y);return E===void 0&&E===b?u(w,y):l(b,E,v|g)}}return _baseMatchesProperty=m,_baseMatchesProperty}var identity_1,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity_1;hasRequiredIdentity=1;function l(o){return o}return identity_1=l,identity_1}var _basePropertyDeep,hasRequired_basePropertyDeep;function require_basePropertyDeep(){if(hasRequired_basePropertyDeep)return _basePropertyDeep;hasRequired_basePropertyDeep=1;var l=require_baseGet();function o(u){return function(d){return l(d,u)}}return _basePropertyDeep=o,_basePropertyDeep}var property_1,hasRequiredProperty;function requireProperty(){if(hasRequiredProperty)return property_1;hasRequiredProperty=1;var l=require_baseProperty(),o=require_basePropertyDeep(),u=require_isKey(),d=require_toKey();function f(p){return u(p)?l(d(p)):o(p)}return property_1=f,property_1}var _baseIteratee,hasRequired_baseIteratee;function require_baseIteratee(){if(hasRequired_baseIteratee)return _baseIteratee;hasRequired_baseIteratee=1;var l=require_baseMatches(),o=require_baseMatchesProperty(),u=requireIdentity(),d=requireIsArray(),f=requireProperty();function p(h){return typeof h=="function"?h:h==null?u:typeof h=="object"?d(h)?o(h[0],h[1]):l(h):f(h)}return _baseIteratee=p,_baseIteratee}var maxBy_1,hasRequiredMaxBy;function requireMaxBy(){if(hasRequiredMaxBy)return maxBy_1;hasRequiredMaxBy=1;var l=require_baseExtremum(),o=require_baseGt(),u=require_baseIteratee();function d(f,p){return f&&f.length?l(f,u(p,2),o):void 0}return maxBy_1=d,maxBy_1}var maxByExports=requireMaxBy();const maxBy=getDefaultExportFromCjs(maxByExports);var isEqual_1,hasRequiredIsEqual;function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var l=require_baseIsEqual();function o(u,d){return l(u,d)}return isEqual_1=o,isEqual_1}var isEqualExports=requireIsEqual();const isEqual$3=getDefaultExportFromCjs(isEqualExports);var _defineProperty$1y,hasRequired_defineProperty;function require_defineProperty(){if(hasRequired_defineProperty)return _defineProperty$1y;hasRequired_defineProperty=1;var l=require_getNative(),o=(function(){try{var u=l(Object,"defineProperty");return u({},"",{}),u}catch{}})();return _defineProperty$1y=o,_defineProperty$1y}var _baseAssignValue,hasRequired_baseAssignValue;function require_baseAssignValue(){if(hasRequired_baseAssignValue)return _baseAssignValue;hasRequired_baseAssignValue=1;var l=require_defineProperty();function o(u,d,f){d=="__proto__"&&l?l(u,d,{configurable:!0,enumerable:!0,value:f,writable:!0}):u[d]=f}return _baseAssignValue=o,_baseAssignValue}var _createBaseFor,hasRequired_createBaseFor;function require_createBaseFor(){if(hasRequired_createBaseFor)return _createBaseFor;hasRequired_createBaseFor=1;function l(o){return function(u,d,f){for(var p=-1,h=Object(u),v=f(u),g=v.length;g--;){var m=v[o?g:++p];if(d(h[m],m,h)===!1)break}return u}}return _createBaseFor=l,_createBaseFor}var _baseFor,hasRequired_baseFor;function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var l=require_createBaseFor(),o=l();return _baseFor=o,_baseFor}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var l=require_baseFor(),o=requireKeys();function u(d,f){return d&&l(d,f,o)}return _baseForOwn=u,_baseForOwn}var mapValues_1,hasRequiredMapValues;function requireMapValues(){if(hasRequiredMapValues)return mapValues_1;hasRequiredMapValues=1;var l=require_baseAssignValue(),o=require_baseForOwn(),u=require_baseIteratee();function d(f,p){var h={};return p=u(p,3),o(f,function(v,g,m){l(h,g,p(v,g,m))}),h}return mapValues_1=d,mapValues_1}var mapValuesExports=requireMapValues();const mapValues=getDefaultExportFromCjs(mapValuesExports);var isEmpty_1,hasRequiredIsEmpty;function requireIsEmpty(){if(hasRequiredIsEmpty)return isEmpty_1;hasRequiredIsEmpty=1;var l=require_baseKeys(),o=require_getTag(),u=requireIsArguments(),d=requireIsArray(),f=requireIsArrayLike(),p=requireIsBuffer(),h=require_isPrototype(),v=requireIsTypedArray(),g="[object Map]",m="[object Set]",y=Object.prototype,b=y.hasOwnProperty;function w(E){if(E==null)return!0;
20if(f(E)&&(d(E)||typeof E=="string"||typeof E.splice=="function"||p(E)||v(E)||u(E)))return!E.length;var P=o(E);if(P==g||P==m)return!E.size;if(h(E))return!l(E).length;for(var C in E)if(b.call(E,C))return!1;return!0}return isEmpty_1=w,isEmpty_1}var isEmptyExports=requireIsEmpty();const isEmpty$1=getDefaultExportFromCjs(isEmptyExports);var AddCircle={},hasRequiredAddCircle;function requireAddCircle(){if(hasRequiredAddCircle)return AddCircle;hasRequiredAddCircle=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(AddCircle,"__esModule",{value:!0}),AddCircle.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddCircle");return AddCircle.default=f,AddCircle}var AddCircleExports=requireAddCircle();const IncludeIcon=getDefaultExportFromCjs(AddCircleExports);var RemoveCircle={},hasRequiredRemoveCircle;function requireRemoveCircle(){if(hasRequiredRemoveCircle)return RemoveCircle;hasRequiredRemoveCircle=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(RemoveCircle,"__esModule",{value:!0}),RemoveCircle.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"}),"RemoveCircle");return RemoveCircle.default=f,RemoveCircle}var RemoveCircleExports=requireRemoveCircle();const ExcludeIcon=getDefaultExportFromCjs(RemoveCircleExports);var Search={},hasRequiredSearch;function requireSearch(){if(hasRequiredSearch)return Search;hasRequiredSearch=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Search,"__esModule",{value:!0}),Search.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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"}),"Search");return Search.default=f,Search}var SearchExports=requireSearch();const SearchIcon$1=getDefaultExportFromCjs(SearchExports);var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var l=requireEq(),o=requireIsArrayLike(),u=require_isIndex(),d=requireIsObject();function f(p,h,v){if(!d(v))return!1;var g=typeof h;return(g=="number"?o(v)&&u(h,v.length):g=="string"&&h in v)?l(v[h],p):!1}return _isIterateeCall=f,_isIterateeCall}var chunk_1,hasRequiredChunk;function requireChunk(){if(hasRequiredChunk)return chunk_1;hasRequiredChunk=1;var l=require_baseSlice(),o=require_isIterateeCall(),u=requireToInteger(),d=Math.ceil,f=Math.max;function p(h,v,g){(g?o(h,v,g):v===void 0)?v=1:v=f(u(v),0);var m=h==null?0:h.length;if(!m||v<1)return[];for(var y=0,b=0,w=Array(d(m/v));y<m;)w[b++]=l(h,y,y+=v);return w}return chunk_1=p,chunk_1}var chunkExports=requireChunk();const chunk=getDefaultExportFromCjs(chunkExports);var max_1,hasRequiredMax;function requireMax(){if(hasRequiredMax)return max_1;hasRequiredMax=1;var l=require_baseExtremum(),o=require_baseGt(),u=requireIdentity();function d(f){return f&&f.length?l(f,u,o):void 0}return max_1=d,max_1}var maxExports=requireMax();const max=getDefaultExportFromCjs(maxExports);var _baseLt,hasRequired_baseLt;function require_baseLt(){if(hasRequired_baseLt)return _baseLt;hasRequired_baseLt=1;function l(o,u){return o<u}return _baseLt=l,_baseLt}var min_1,hasRequiredMin;function requireMin(){if(hasRequiredMin)return min_1;hasRequiredMin=1;var l=require_baseExtremum(),o=require_baseLt(),u=requireIdentity();function d(f){return f&&f.length?l(f,u,o):void 0}return min_1=d,min_1}var minExports=requireMin();const min=getDefaultExportFromCjs(minExports);var _isFlattenable,hasRequired_isFlattenable;function require_isFlattenable(){if(hasRequired_isFlattenable)return _isFlattenable;hasRequired_isFlattenable=1;var l=require_Symbol(),o=requireIsArguments(),u=requireIsArray(),d=l?l.isConcatSpreadable:void 0;
vendor: 4,535 bytes, line 20
20function f(p){return u(p)||o(p)||!!(d&&p&&p[d])}return _isFlattenable=f,_isFlattenable}var _baseFlatten,hasRequired_baseFlatten;function require_baseFlatten(){if(hasRequired_baseFlatten)return _baseFlatten;hasRequired_baseFlatten=1;var l=require_arrayPush(),o=require_isFlattenable();function u(d,f,p,h,v){var g=-1,m=d.length;for(p||(p=o),v||(v=[]);++g<m;){var y=d[g];f>0&&p(y)?f>1?u(y,f-1,p,h,v):l(v,y):h||(v[v.length]=y)}return v}return _baseFlatten=u,_baseFlatten}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var l=requireIsArrayLike();function o(u,d){return function(f,p){if(f==null)return f;if(!l(f))return u(f,p);for(var h=f.length,v=d?h:-1,g=Object(f);(d?v--:++v<h)&&p(g[v],v,g)!==!1;);return f}}return _createBaseEach=o,_createBaseEach}var _baseEach,hasRequired_baseEach;function require_baseEach(){if(hasRequired_baseEach)return _baseEach;hasRequired_baseEach=1;var l=require_baseForOwn(),o=require_createBaseEach(),u=o(l);return _baseEach=u,_baseEach}var _baseMap,hasRequired_baseMap;function require_baseMap(){if(hasRequired_baseMap)return _baseMap;hasRequired_baseMap=1;var l=require_baseEach(),o=requireIsArrayLike();function u(d,f){var p=-1,h=o(d)?Array(d.length):[];return l(d,function(v,g,m){h[++p]=f(v,g,m)}),h}return _baseMap=u,_baseMap}var _baseSortBy,hasRequired_baseSortBy;function require_baseSortBy(){if(hasRequired_baseSortBy)return _baseSortBy;hasRequired_baseSortBy=1;function l(o,u){var d=o.length;for(o.sort(u);d--;)o[d]=o[d].value;return o}return _baseSortBy=l,_baseSortBy}var _compareAscending,hasRequired_compareAscending;function require_compareAscending(){if(hasRequired_compareAscending)return _compareAscending;hasRequired_compareAscending=1;var l=requireIsSymbol();function o(u,d){if(u!==d){var f=u!==void 0,p=u===null,h=u===u,v=l(u),g=d!==void 0,m=d===null,y=d===d,b=l(d);if(!m&&!b&&!v&&u>d||v&&g&&y&&!m&&!b||p&&g&&y||!f&&y||!h)return 1;if(!p&&!v&&!b&&u<d||b&&f&&h&&!p&&!v||m&&f&&h||!g&&h||!y)return-1}return 0}return _compareAscending=o,_compareAscending}var _compareMultiple,hasRequired_compareMultiple;function require_compareMultiple(){if(hasRequired_compareMultiple)return _compareMultiple;hasRequired_compareMultiple=1;var l=require_compareAscending();function o(u,d,f){for(var p=-1,h=u.criteria,v=d.criteria,g=h.length,m=f.length;++p<g;){var y=l(h[p],v[p]);if(y){if(p>=m)return y;var b=f[p];return y*(b=="desc"?-1:1)}}return u.index-d.index}return _compareMultiple=o,_compareMultiple}var _baseOrderBy,hasRequired_baseOrderBy;function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var l=require_arrayMap(),o=require_baseGet(),u=require_baseIteratee(),d=require_baseMap(),f=require_baseSortBy(),p=require_baseUnary(),h=require_compareMultiple(),v=requireIdentity(),g=requireIsArray();function m(y,b,w){b.length?b=l(b,function(C){return g(C)?function(T){return o(T,C.length===1?C[0]:C)}:C}):b=[v];var E=-1;b=l(b,p(u));var P=d(y,function(C,T,O){var x=l(b,function(A){return A(C)});return{criteria:x,index:++E,value:C}});return f(P,function(C,T){return h(C,T,w)})}return _baseOrderBy=m,_baseOrderBy}var _apply,hasRequired_apply;function require_apply(){if(hasRequired_apply)return _apply;hasRequired_apply=1;function l(o,u,d){switch(d.length){case 0:return o.call(u);case 1:return o.call(u,d[0]);case 2:return o.call(u,d[0],d[1]);case 3:return o.call(u,d[0],d[1],d[2])}return o.apply(u,d)}return _apply=l,_apply}var _overRest,hasRequired_overRest;function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var l=require_apply(),o=Math.max;function u(d,f,p){return f=o(f===void 0?d.length-1:f,0),function(){for(var h=arguments,v=-1,g=o(h.length-f,0),m=Array(g);++v<g;)m[v]=h[f+v];v=-1;for(var y=Array(f+1);++v<f;)y[v]=h[v];return y[f]=p(m),l(d,this,y)}}return _overRest=u,_overRest}var constant_1,hasRequiredConstant;function requireConstant(){if(hasRequiredConstant)return constant_1;hasRequiredConstant=1;function l(o){return function(){return o}}return constant_1=l,constant_1}var _baseSetToString,hasRequired_baseSetToString;function require_baseSetToString(){if(hasRequired_baseSetToString)return _baseSetToString;hasRequired_baseSetToString=1;var l=requireConstant(),o=require_defineProperty(),u=requireIdentity(),d=o?function(f,p){return o(f,"toString",{configurable:!0,enumerable:!1,value:l(p),writable:!0})}:u;return _baseSetToString=d,_baseSetToString}var _shortOut,hasRequired_shortOut;
20function require_shortOut(){if(hasRequired_shortOut)return _shortOut;hasRequired_shortOut=1;var l=800,o=16,u=Date.now;function d(f){var p=0,h=0;return function(){var v=u(),g=o-(v-h);if(h=v,g>0){if(++p>=l)return arguments[0]}else p=0;return f.apply(void 0,arguments)}}return _shortOut=d,_shortOut}var _setToString,hasRequired_setToString;function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var l=require_baseSetToString(),o=require_shortOut(),u=o(l);return _setToString=u,_setToString}var _baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var l=requireIdentity(),o=require_overRest(),u=require_setToString();function d(f,p){return u(o(f,p,l),f+"")}return _baseRest=d,_baseRest}var sortBy_1,hasRequiredSortBy;function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var l=require_baseFlatten(),o=require_baseOrderBy(),u=require_baseRest(),d=require_isIterateeCall(),f=u(function(p,h){if(p==null)return[];var v=h.length;return v>1&&d(p,h[0],h[1])?h=[]:v>2&&d(h[0],h[1],h[2])&&(h=[h[0]]),o(p,l(h,1),[])});return sortBy_1=f,sortBy_1}var sortByExports=requireSortBy();const sortBy=getDefaultExportFromCjs(sortByExports);var _baseSum,hasRequired_baseSum;function require_baseSum(){if(hasRequired_baseSum)return _baseSum;hasRequired_baseSum=1;function l(o,u){for(var d,f=-1,p=o.length;++f<p;){var h=u(o[f]);h!==void 0&&(d=d===void 0?h:d+h)}return d}return _baseSum=l,_baseSum}var sum_1,hasRequiredSum;function requireSum(){if(hasRequiredSum)return sum_1;hasRequiredSum=1;var l=require_baseSum(),o=requireIdentity();function u(d){return d&&d.length?l(d,o):0}return sum_1=u,sum_1}var sumExports=requireSum();const sum=getDefaultExportFromCjs(sumExports);var lib$3={},Range$1={},utils$3={},types$1={},hasRequiredTypes$1;function requireTypes$1(){if(hasRequiredTypes$1)return types$1;hasRequiredTypes$1=1,Object.defineProperty(types$1,"__esModule",{value:!0}),types$1.Direction=void 0;var l;return(function(o){o.Right="to right",o.Left="to left",o.Down="to bottom",o.Up="to top"})(l||(types$1.Direction=l={})),types$1}var hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,(function(l){var o=utils$3&&utils$3.__spreadArray||function(F,B,G){if(G||arguments.length===2)for(var Q=0,K=B.length,Z;Q<K;Q++)(Z||!(Q in B))&&(Z||(Z=Array.prototype.slice.call(B,0,Q)),Z[Q]=B[Q]);return F.concat(Z||Array.prototype.slice.call(B))};Object.defineProperty(l,"__esModule",{value:!0}),l.isIOS=l.useThumbOverlap=l.assertUnreachable=l.voidFn=l.getTrackBackground=l.replaceAt=l.schd=l.translate=l.getClosestThumbIndex=l.translateThumbs=l.getPaddingAndBorder=l.getMargin=l.checkInitialOverlap=l.checkValuesAgainstBoundaries=l.checkBoundaries=l.isVertical=l.relativeValue=l.normalizeValue=l.isStepDivisible=l.isTouchEvent=l.getStepDecimals=void 0;var u=requireReact(),d=requireTypes$1(),f=function(F){var B=F.toString().split(".")[1];return B?B.length:0};l.getStepDecimals=f;function p(F){return F.touches&&F.touches.length||F.changedTouches&&F.changedTouches.length}l.isTouchEvent=p;function h(F,B,G){var Q=(B-F)/G,K=8,Z=Number(Q.toFixed(K));return parseInt(Z.toString(),10)===Z}l.isStepDivisible=h;function v(F,B,G,Q,K,Z,te){var oe=1e11;if(F=Math.round(F*oe)/oe,!Z){var fe=te[B-1],le=te[B+1];if(fe&&fe>F)return fe;if(le&&le<F)return le}if(F>Q)return Q;if(F<G)return G;var Re=Math.floor(F*oe-G*oe)%Math.floor(K*oe),Ae=Math.floor(F*oe-Math.abs(Re)),_e=Re===0?F:Ae/oe,ee=Math.abs(Re/oe)<K/2?_e:_e+K,se=(0,l.getStepDecimals)(K);return parseFloat(ee.toFixed(se))}l.normalizeValue=v;function g(F,B,G){return(F-B)/(G-B)}l.relativeValue=g;function m(F){return F===d.Direction.Up||F===d.Direction.Down}l.isVertical=m;function y(F,B,G){if(B>=G)throw new RangeError("min (".concat(B,") is equal/bigger than max (").concat(G,")"));if(F<B)throw new RangeError("value (".concat(F,") is smaller than min (").concat(B,")"));if(F>G)throw new RangeError("value (".concat(F,") is bigger than max (").concat(G,")"))}l.checkBoundaries=y;function b(F,B,G){return F<B?B:F>G?G:F}l.checkValuesAgainstBoundaries=b;function w(F){if(!(F.length<2)&&!F.slice(1).every(function(B,G){return F[G]<=B}))throw new RangeError("values={[".concat(F,"]} needs to be sorted when allowOverlap={false}"))}l.checkInitialOverlap=w;function E(F){var B=window.getComputedStyle(F);return{top:parseInt(B["margin-top"],10),bottom:parseInt(B["margin-bottom"],10),left:parseInt(B["margin-left"],10),right:parseInt(B["margin-right"],10)}}l.getMargin=E;function P(F){var B=window.getComputedStyle(F);return{top:parseInt(B["padding-top"],10)+parseInt(B["border-top-width"],10),bottom:parseInt(B["padding-bottom"],10)+parseInt(B["border-bottom-width"],10),left:parseInt(B["padding-left"],10)+parseInt(B["border-left-width"],10),right:parseInt(B["padding-right"],10)+parseInt(B["border-right-width"],10)}}l.getPaddingAndBorder=P;function C(F,B,G){var Q=G?-1:1;F.forEach(function(K,Z){return O(K,Q*B[Z].x,B[Z].y)})}l.translateThumbs=C;function T(F,B,G,Q){for(var K=0,Z=H(F[0],B,G,Q),te=1;te<F.length;te++){var oe=H(F[te],B,G,Q);oe<Z&&(Z=oe,K=te)}return K}l.getClosestThumbIndex=T;function O(F,B,G){F.style.transform="translate(".concat(B,"px, ").concat(G,"px)")}l.translate=O;var x=function(F){var B=[],G=null,Q=function(){for(var K=[],Z=0;Z<arguments.length;Z++)K[Z]=arguments[Z];B=K,!G&&(G=requestAnimationFrame(function(){G=null,F.apply(void 0,B)}))};return Q};l.schd=x;function A(F,B,G){var Q=F.slice(0);return Q[B]=G,Q}l.replaceAt=A;function D(F){var B=F.values,G=F.colors,Q=F.min,K=F.max,Z=F.direction,te=Z===void 0?d.Direction.Right:Z,oe=F.rtl,fe=oe===void 0?!1:oe;fe&&te===d.Direction.Right?te=d.Direction.Left:fe&&d.Direction.Left&&(te=d.Direction.Right);var le=B.slice(0).sort(function(Ae,_e){return Ae-_e}).map(function(Ae){return(Ae-Q)/(K-Q)*100}),Re=le.reduce(function(Ae,_e,ee){return"".concat(Ae,", ").concat(G[ee]," ").concat(_e,"%, ").concat(G[ee+1]," ").concat(_e,"%")},"");return"linear-gradient(".concat(te,", ").concat(G[0]," 0%").concat(Re,", ").concat(G[G.length-1]," 100%)")}
20l.getTrackBackground=D;function j(){}l.voidFn=j;function M(F){throw new Error("Didn't expect to get here")}l.assertUnreachable=M;var N=function(F,B,G,Q,K){K===void 0&&(K=function(te){return te});var Z=Math.ceil(o([F],Array.from(F.children),!0).reduce(function(te,oe){var fe=Math.ceil(oe.getBoundingClientRect().width);if(oe.innerText&&oe.innerText.includes(G)&&oe.childElementCount===0){var le=oe.cloneNode(!0);le.innerHTML=K(B.toFixed(Q)),le.style.visibility="hidden",document.body.appendChild(le),fe=Math.ceil(le.getBoundingClientRect().width),document.body.removeChild(le)}return fe>te?fe:te},F.getBoundingClientRect().width));return Z},q=function(F,B,G,Q,K,Z,te){te===void 0&&(te=function(le){return le});var oe=[],fe=function(le){var Re=N(G[le],Q[le],K,Z,te),Ae=B[le].x;B.forEach(function(_e,ee){var se=_e.x,$e=N(G[ee],Q[ee],K,Z,te);le!==ee&&(Ae>=se&&Ae<=se+$e||Ae+Re>=se&&Ae+Re<=se+$e)&&(oe.includes(ee)||(oe.push(le),oe.push(ee),oe=o(o([],oe,!0),[le,ee],!1),fe(ee)))})};return fe(F),Array.from(new Set(oe.sort()))},z=function(F,B,G,Q,K,Z){Q===void 0&&(Q=.1),K===void 0&&(K=" - "),Z===void 0&&(Z=function(ee){return ee});var te=(0,l.getStepDecimals)(Q),oe=(0,u.useState)({}),fe=oe[0],le=oe[1],Re=(0,u.useState)(Z(B[G].toFixed(te))),Ae=Re[0],_e=Re[1];return(0,u.useEffect)(function(){if(F){var ee=F.getThumbs();if(ee.length<1)return;var se={},$e=F.getOffsets(),Ee=q(G,$e,ee,B,K,te,Z),xe=Z(B[G].toFixed(te));if(Ee.length){var Se=Ee.reduce(function(ce,ue,pe,Te){return ce.length?o(o([],ce,!0),[$e[Te[pe]].x],!1):[$e[Te[pe]].x]},[]);if(Math.min.apply(Math,Se)===$e[G].x){var Ie=[];Ee.forEach(function(ce){Ie.push(B[ce].toFixed(te))}),xe=Array.from(new Set(Ie.sort(function(ce,ue){return parseFloat(ce)-parseFloat(ue)}))).map(Z).join(K);var ge=Math.min.apply(Math,Se),Y=Math.max.apply(Math,Se),ie=ee[Ee[Se.indexOf(Y)]].getBoundingClientRect().width;se.left="".concat(Math.abs(ge-(Y+ie))/2,"px"),se.transform="translate(-50%, 0)"}else se.visibility="hidden"}_e(xe),le(se)}},[F,B]),[Ae,fe]};l.useThumbOverlap=z;function H(F,B,G,Q){var K=F.getBoundingClientRect(),Z=K.left,te=K.top,oe=K.width,fe=K.height;return m(Q)?Math.abs(G-(te+fe/2)):Math.abs(B-(Z+oe/2))}var U=function(){var F,B=((F=navigator.userAgentData)===null||F===void 0?void 0:F.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(B)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};l.isIOS=U})(utils$3)),utils$3}var hasRequiredRange;function requireRange(){if(hasRequiredRange)return Range$1;hasRequiredRange=1;var l=Range$1&&Range$1.__extends||(function(){var b=function(w,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,C){P.__proto__=C}||function(P,C){for(var T in C)Object.prototype.hasOwnProperty.call(C,T)&&(P[T]=C[T])},b(w,E)};return function(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");b(w,E);function P(){this.constructor=w}w.prototype=E===null?Object.create(E):(P.prototype=E.prototype,new P)}})(),o=Range$1&&Range$1.__createBinding||(Object.create?(function(b,w,E,P){P===void 0&&(P=E);var C=Object.getOwnPropertyDescriptor(w,E);(!C||("get"in C?!w.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return w[E]}}),Object.defineProperty(b,P,C)}):(function(b,w,E,P){P===void 0&&(P=E),b[P]=w[E]})),u=Range$1&&Range$1.__setModuleDefault||(Object.create?(function(b,w){Object.defineProperty(b,"default",{enumerable:!0,value:w})}):function(b,w){b.default=w}),d=Range$1&&Range$1.__importStar||function(b){if(b&&b.__esModule)return b;var w={};if(b!=null)for(var E in b)E!=="default"&&Object.prototype.hasOwnProperty.call(b,E)&&o(w,b,E);return u(w,b),w},f=Range$1&&Range$1.__spreadArray||function(b,w,E){if(E||arguments.length===2)for(var P=0,C=w.length,T;P<C;P++)(T||!(P in w))&&(T||(T=Array.prototype.slice.call(w,0,P)),T[P]=w[P]);return b.concat(T||Array.prototype.slice.call(w))};Object.defineProperty(Range$1,"__esModule",{value:!0});var p=d(requireReact()),h=requireUtils$2(),v=requireTypes$1(),g=["ArrowRight","ArrowUp","k","PageUp"],m=["ArrowLeft","ArrowDown","j","PageDown"],y=(function(b){l(w,b);function w(E){var P=b.call(this,E)||this;
20if(P.trackRef=p.createRef(),P.thumbRefs=[],P.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(P.props.values.length).fill(0).map(function(C,T){return T}),isChanged:!1,markOffsets:[]},P.getOffsets=function(){var C=P.props,T=C.direction,O=C.values,x=C.min,A=C.max,D=P.trackRef.current;if(!D)return console.warn("No track element found."),[];var j=D.getBoundingClientRect(),M=(0,h.getPaddingAndBorder)(D);return P.getThumbs().map(function(N,q){var z={x:0,y:0},H=N.getBoundingClientRect(),U=(0,h.getMargin)(N);switch(T){case v.Direction.Right:return z.x=(U.left+M.left)*-1,z.y=((H.height-j.height)/2+M.top)*-1,z.x+=j.width*(0,h.relativeValue)(O[q],x,A)-H.width/2,z;case v.Direction.Left:return z.x=(U.right+M.right)*-1,z.y=((H.height-j.height)/2+M.top)*-1,z.x+=j.width-j.width*(0,h.relativeValue)(O[q],x,A)-H.width/2,z;case v.Direction.Up:return z.x=((H.width-j.width)/2+U.left+M.left)*-1,z.y=-M.left,z.y+=j.height-j.height*(0,h.relativeValue)(O[q],x,A)-H.height/2,z;case v.Direction.Down:return z.x=((H.width-j.width)/2+U.left+M.left)*-1,z.y=-M.left,z.y+=j.height*(0,h.relativeValue)(O[q],x,A)-H.height/2,z;default:return(0,h.assertUnreachable)(T)}})},P.getThumbs=function(){return P.trackRef&&P.trackRef.current?Array.from(P.trackRef.current.children).filter(function(C){return C.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},P.getTargetIndex=function(C){return P.getThumbs().findIndex(function(T){return T===C.target||T.contains(C.target)})},P.addTouchEvents=function(C){document.addEventListener("touchmove",P.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",P.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",P.schdOnEnd,{passive:!1})},P.addMouseEvents=function(C){document.addEventListener("mousemove",P.schdOnMouseMove),document.addEventListener("mouseup",P.schdOnEnd)},P.onMouseDownTrack=function(C){var T;if(!(C.button!==0||(0,h.isIOS)()))if(C.persist(),C.preventDefault(),P.addMouseEvents(C.nativeEvent),P.props.values.length>1&&P.props.draggableTrack){if(P.thumbRefs.some(function(x){var A;return(A=x.current)===null||A===void 0?void 0:A.contains(C.target)}))return;P.setState({draggedTrackPos:[C.clientX,C.clientY]},function(){return P.onMove(C.clientX,C.clientY)})}else{var O=(0,h.getClosestThumbIndex)(P.thumbRefs.map(function(x){return x.current}),C.clientX,C.clientY,P.props.direction);(T=P.thumbRefs[O].current)===null||T===void 0||T.focus(),P.setState({draggedThumbIndex:O},function(){return P.onMove(C.clientX,C.clientY)})}},P.onResize=function(){(0,h.translateThumbs)(P.getThumbs(),P.getOffsets(),P.props.rtl),P.calculateMarkOffsets()},P.onTouchStartTrack=function(C){var T;if(C.persist(),P.addTouchEvents(C.nativeEvent),P.props.values.length>1&&P.props.draggableTrack){if(P.thumbRefs.some(function(x){var A;return(A=x.current)===null||A===void 0?void 0:A.contains(C.target)}))return;P.setState({draggedTrackPos:[C.touches[0].clientX,C.touches[0].clientY]},function(){return P.onMove(C.touches[0].clientX,C.touches[0].clientY)})}else{var O=(0,h.getClosestThumbIndex)(P.thumbRefs.map(function(x){return x.current}),C.touches[0].clientX,C.touches[0].clientY,P.props.direction);(T=P.thumbRefs[O].current)===null||T===void 0||T.focus(),P.setState({draggedThumbIndex:O},function(){return P.onMove(C.touches[0].clientX,C.touches[0].clientY)})}},P.onMouseOrTouchStart=function(C){if(!P.props.disabled){var T=(0,h.isTouchEvent)(C);if(!(!T&&C.button!==0)){var O=P.getTargetIndex(C);O!==-1&&(T?P.addTouchEvents(C):P.addMouseEvents(C),P.setState({draggedThumbIndex:O,thumbZIndexes:P.state.thumbZIndexes.map(function(x,A){return A===O?Math.max.apply(Math,P.state.thumbZIndexes):x<=P.state.thumbZIndexes[O]?x:x-1})}))}}},P.onMouseMove=function(C){C.preventDefault(),P.onMove(C.clientX,C.clientY)},P.onTouchMove=function(C){C.preventDefault(),P.onMove(C.touches[0].clientX,C.touches[0].clientY)},P.onKeyDown=function(C){var T=P.props,O=T.values,x=T.onChange,A=T.step,D=T.rtl,j=T.direction,M=P.state.isChanged,N=P.getTargetIndex(C.nativeEvent),q=D||j===v.Direction.Left||j===v.Direction.Down?-1:1;N!==-1&&(g.includes(C.key)?(C.preventDefault(),P.setState({draggedThumbIndex:N,isChanged:!0}),x((0,h.replaceAt)(O,N,P.normalizeValue(O[N]+q*(C.key==="PageUp"?A*10:A),N)))):m.includes(C.key)?(C.preventDefault(),P.setState({draggedThumbIndex:N,isChanged:!0}),x((0,h.replaceAt)(O,N,P.normalizeValue(O[N]-q*(C.key==="PageDown"?A*10:A),N)))):C.key==="Tab"?P.setState({draggedThumbIndex:-1},function(){M&&P.fireOnFinalChange()}):M&&P.fireOnFinalChange())},P.onKeyUp=function(C){var T=P.state.isChanged;P.setState({draggedThumbIndex:-1},function(){T&&P.fireOnFinalChange()})},P.onMove=function(C,T){var O=P.state,x=O.draggedThumbIndex,A=O.draggedTrackPos,D=P.props,j=D.direction,M=D.min,N=D.max,q=D.onChange,z
20=D.values,H=D.step,U=D.rtl;if(x===-1&&A[0]===-1&&A[1]===-1)return null;var F=P.trackRef.current;if(!F)return null;var B=F.getBoundingClientRect(),G=(0,h.isVertical)(j)?B.height:B.width;if(A[0]!==-1&&A[1]!==-1){var Q=C-A[0],K=T-A[1],Z=0;switch(j){case v.Direction.Right:case v.Direction.Left:Z=Q/G*(N-M);break;case v.Direction.Down:case v.Direction.Up:Z=K/G*(N-M);break;default:(0,h.assertUnreachable)(j)}if(U&&(Z*=-1),Math.abs(Z)>=H/2){for(var te=0;te<P.thumbRefs.length;te++){if(z[te]===N&&Math.sign(Z)===1||z[te]===M&&Math.sign(Z)===-1)return;var oe=z[te]+Z;oe>N?Z=N-z[te]:oe<M&&(Z=M-z[te])}for(var fe=z.slice(0),te=0;te<P.thumbRefs.length;te++)fe=(0,h.replaceAt)(fe,te,P.normalizeValue(z[te]+Z,te));P.setState({draggedTrackPos:[C,T]}),q(fe)}}else{var le=0;switch(j){case v.Direction.Right:le=(C-B.left)/G*(N-M)+M;break;case v.Direction.Left:le=(G-(C-B.left))/G*(N-M)+M;break;case v.Direction.Down:le=(T-B.top)/G*(N-M)+M;break;case v.Direction.Up:le=(G-(T-B.top))/G*(N-M)+M;break;default:(0,h.assertUnreachable)(j)}U&&(le=N+M-le),Math.abs(z[x]-le)>=H/2&&q((0,h.replaceAt)(z,x,P.normalizeValue(le,x)))}},P.normalizeValue=function(C,T){var O=P.props,x=O.min,A=O.max,D=O.step,j=O.allowOverlap,M=O.values;return(0,h.normalizeValue)(C,T,x,A,D,j,M)},P.onEnd=function(C){if(C.preventDefault(),document.removeEventListener("mousemove",P.schdOnMouseMove),document.removeEventListener("touchmove",P.schdOnTouchMove),document.removeEventListener("mouseup",P.schdOnEnd),document.removeEventListener("touchend",P.schdOnEnd),document.removeEventListener("touchcancel",P.schdOnEnd),P.state.draggedThumbIndex===-1&&P.state.draggedTrackPos[0]===-1&&P.state.draggedTrackPos[1]===-1)return null;P.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){P.fireOnFinalChange()})},P.fireOnFinalChange=function(){P.setState({isChanged:!1});var C=P.props,T=C.onFinalChange,O=C.values;T&&T(O)},P.updateMarkRefs=function(C){if(!C.renderMark){P.numOfMarks=void 0,P.markRefs=void 0;return}P.numOfMarks=(C.max-C.min)/P.props.step,P.markRefs=[];for(var T=0;T<P.numOfMarks+1;T++)P.markRefs[T]=p.createRef()},P.calculateMarkOffsets=function(){if(!(!P.props.renderMark||!P.trackRef||!P.numOfMarks||!P.markRefs||P.trackRef.current===null)){for(var C=window.getComputedStyle(P.trackRef.current),T=parseInt(C.width,10),O=parseInt(C.height,10),x=parseInt(C.paddingLeft,10),A=parseInt(C.paddingTop,10),D=[],j=0;j<P.numOfMarks+1;j++){var M=9999,N=9999;if(P.markRefs[j].current){var q=P.markRefs[j].current.getBoundingClientRect();M=q.height,N=q.width}P.props.direction===v.Direction.Left||P.props.direction===v.Direction.Right?D.push([Math.round(T/P.numOfMarks*j+x-N/2),-Math.round((M-O)/2)]):D.push([Math.round(O/P.numOfMarks*j+A-M/2),-Math.round((N-T)/2)])}P.setState({markOffsets:D})}},E.step===0)throw new Error('"step" property should be a positive number');return P.schdOnMouseMove=(0,h.schd)(P.onMouseMove),P.schdOnTouchMove=(0,h.schd)(P.onTouchMove),P.schdOnEnd=(0,h.schd)(P.onEnd),P.thumbRefs=E.values.map(function(){return p.createRef()}),P.updateMarkRefs(E),P}return w.prototype.componentDidMount=function(){var E=this,P=this.props,C=P.values,T=P.min,O=P.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",E.onResize)},unobserve:function(){return window.removeEventListener("resize",E.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,h.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(x){return(0,h.checkBoundaries)(x,E.props.min,E.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,h.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),C.forEach(function(x){(0,h.isStepDivisible)(T,x,O)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},w.prototype.componentDidUpdate=function(E,P){var C=this.props,T=C.max,O=C.min,x=C.step,A=C.values,D=C.rtl;(E.max!==T||E.min!==O||E.step!==x)&&this.updateMarkRefs(this.props),(0,h.translateThumbs)(this.getThumbs(),this.getOffsets(),D),(E.max!==T||E.min!==O||E.step!==x||P.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),A.forEach(function(j){(0,h.isStepDivisible)(O,j,x)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},w.prototype.componentWillUnmount=function(){var E={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,E),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},w.prototype.render=function(){var E=this,P=this.props,C=P.label,T=P.labelledBy,O=P.renderTrack,x=P.renderThumb,A=P.renderMark,D=A===void 0?function(){return null}:A,j=P.values,M=P.min,N=P.max,q=P.allowOverlap,z=P.disabled,H=this.state,U=H.draggedThumbIndex,F=H.thumbZIndexes,B=H.markOffsets;return O({props:{style:{transform:"scale(1)",cursor:U>-1?"grabbing":this.props.draggableTrack?(0,h.isVertical)(this.props.direction)?"ns-resize":"ew-resize":j.length===1&&!z?"pointer":"inherit"},onMouseDown:z?h.voidFn:this.onMouseDownTrack,onTouchStart:z?h.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:z,children:f(f([],B.map(function(G,Q,K){return D({props:{style:E.props.direction===v.Direction.Left||E.props.direction===v.Direction.Right?{position:"absolute",left:"".concat(G[0],"px"),marginTop:"".concat(G[1],"px")}:{position:"absolute",top:"".concat(G[0],"px"),marginLeft:"".concat(G[1],"px")},key:"mark".concat(Q),ref:E.markRefs[Q]},index:Q})}),!0),j.map(function(G,Q){var K=E.state.draggedThumbIndex===Q;return x({index:Q,value:G,isDragged:K,props:{style:{position:"absolute",zIndex:F[Q],cursor:z?"inherit":K?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:Q,tabIndex:z?void 0:0,"aria-valuemax":q?N:j[Q+1]||N,"aria-valuemin":q?M:j[Q-1]||M,"aria-valuenow":G,draggable:!1,ref:E.thumbRef
20s[Q],"aria-label":C,"aria-labelledby":T,role:"slider",onKeyDown:z?h.voidFn:E.onKeyDown,onKeyUp:z?h.voidFn:E.onKeyUp}})}),!0)})},w.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:v.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},w})(p.Component);return Range$1.default=y,Range$1}var hasRequiredLib$3;function requireLib$3(){return hasRequiredLib$3||(hasRequiredLib$3=1,(function(l){var o=lib$3&&lib$3.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(l,"__esModule",{value:!0}),l.checkValuesAgainstBoundaries=l.relativeValue=l.useThumbOverlap=l.Direction=l.getTrackBackground=l.Range=void 0;var u=o(requireRange());l.Range=u.default;var d=requireUtils$2();Object.defineProperty(l,"getTrackBackground",{enumerable:!0,get:function(){return d.getTrackBackground}}),Object.defineProperty(l,"useThumbOverlap",{enumerable:!0,get:function(){return d.useThumbOverlap}}),Object.defineProperty(l,"relativeValue",{enumerable:!0,get:function(){return d.relativeValue}}),Object.defineProperty(l,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return d.checkValuesAgainstBoundaries}});var f=requireTypes$1();Object.defineProperty(l,"Direction",{enumerable:!0,get:function(){return f.Direction}})})(lib$3)),lib$3}var libExports$3=requireLib$3(),entry={},DatePicker$1={},cjs$7={},hasRequiredCjs$7;function requireCjs$7(){return hasRequiredCjs$7||(hasRequiredCjs$7=1,(function(l){var o=cjs$7&&cjs$7.__spreadArray||function(d,f,p){if(p||arguments.length===2)for(var h=0,v=f.length,g;h<v;h++)(g||!(h in f))&&(g||(g=Array.prototype.slice.call(f,0,h)),g[h]=f[h]);return d.concat(g||Array.prototype.slice.call(f))};Object.defineProperty(l,"__esModule",{value:!0}),l.allEvents=l.changeEvents=l.otherEvents=l.transitionEvents=l.animationEvents=l.wheelEvents=l.uiEvents=l.pointerEvents=l.touchEvents=l.selectionEvents=l.dragEvents=l.mouseEvents=l.mediaEvents=l.keyboardEvents=l.imageEvents=l.formEvents=l.focusEvents=l.compositionEvents=l.clipboardEvents=void 0,l.clipboardEvents=["onCopy","onCut","onPaste"],l.compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],l.focusEvents=["onFocus","onBlur"],l.formEvents=["onInput","onInvalid","onReset","onSubmit"],l.imageEvents=["onLoad","onError"],l.keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],l.mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],l.mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],l.dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],l.selectionEvents=["onSelect"],l.touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],l.pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],l.uiEvents=["onScroll"],l.wheelEvents=["onWheel"],l.animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],l.transitionEvents=["onTransitionEnd"],l.otherEvents=["onToggle"],l.changeEvents=["onChange"],l.allEvents=o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o([],l.clipboardEvents,!0),l.compositionEvents,!0),l.focusEvents,!0),l.formEvents,!0),l.imageEvents,!0),l.keyboardEvents,!0),l.mediaEvents,!0),l.mouseEvents,!0),l.dragEvents,!0),l.selectionEvents,!0),l.touchEvents,!0),l.pointerEvents,!0),l.uiEvents,!0),l.wheelEvents,!0),l.animationEvents,!0),l.transitionEvents,!0),l.changeEvents,!0),l.otherEvents,!0);function u(d,f){var p={};return l.allEvents.forEach(function(h){var v=d[h];v&&(f?p[h]=(function(g){return v(g,f(h))}):p[h]=v)}),p}l.default=u})(cjs$7)),cjs$7}function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(l,o){return l.concat(o)},[]).filter(function(l){return typeof l=="string"}).join(" ")}const esm$8=Object.freeze(Object.defineProperty({__proto__:null,default:mergeClassNames},Symbol.toStringTag,{value:"Module"})),require$$3$1=getAugmentedNamespace(esm$8);var lodash_memoize,hasRequiredLodash_memoize;function requireLodash_memoize(){if(hasRequiredLodash_memoize)return lodash_memoize;hasRequiredLodash_memoize=1;var l="Expected a function",o="__lodash_hash_undefined__",u="[object Function]",d="[object GeneratorFunction]",f=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,h=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&c
20ommonjsGlobal,v=typeof self=="object"&&self&&self.Object===Object&&self,g=h||v||Function("return this")();function m(ue,pe){return ue?.[pe]}function y(ue){var pe=!1;if(ue!=null&&typeof ue.toString!="function")try{pe=!!(ue+"")}catch{}return pe}var b=Array.prototype,w=Function.prototype,E=Object.prototype,P=g["__core-js_shared__"],C=(function(){var ue=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return ue?"Symbol(src)_1."+ue:""})(),T=w.toString,O=E.hasOwnProperty,x=E.toString,A=RegExp("^"+T.call(O).replace(f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=b.splice,j=Ee(g,"Map"),M=Ee(Object,"create");function N(ue){var pe=-1,Te=ue?ue.length:0;for(this.clear();++pe<Te;){var Ce=ue[pe];this.set(Ce[0],Ce[1])}}function q(){this.__data__=M?M(null):{}}function z(ue){return this.has(ue)&&delete this.__data__[ue]}function H(ue){var pe=this.__data__;if(M){var Te=pe[ue];return Te===o?void 0:Te}return O.call(pe,ue)?pe[ue]:void 0}function U(ue){var pe=this.__data__;return M?pe[ue]!==void 0:O.call(pe,ue)}function F(ue,pe){var Te=this.__data__;return Te[ue]=M&&pe===void 0?o:pe,this}N.prototype.clear=q,N.prototype.delete=z,N.prototype.get=H,N.prototype.has=U,N.prototype.set=F;function B(ue){var pe=-1,Te=ue?ue.length:0;for(this.clear();++pe<Te;){var Ce=ue[pe];this.set(Ce[0],Ce[1])}}function G(){this.__data__=[]}function Q(ue){var pe=this.__data__,Te=ee(pe,ue);if(Te<0)return!1;var Ce=pe.length-1;return Te==Ce?pe.pop():D.call(pe,Te,1),!0}function K(ue){var pe=this.__data__,Te=ee(pe,ue);return Te<0?void 0:pe[Te][1]}function Z(ue){return ee(this.__data__,ue)>-1}function te(ue,pe){var Te=this.__data__,Ce=ee(Te,ue);return Ce<0?Te.push([ue,pe]):Te[Ce][1]=pe,this}B.prototype.clear=G,B.prototype.delete=Q,B.prototype.get=K,B.prototype.has=Z,B.prototype.set=te;function oe(ue){var pe=-1,Te=ue?ue.length:0;for(this.clear();++pe<Te;){var Ce=ue[pe];this.set(Ce[0],Ce[1])}}function fe(){this.__data__={hash:new N,map:new(j||B),string:new N}}function le(ue){return $e(this,ue).delete(ue)}function Re(ue){return $e(this,ue).get(ue)}function Ae(ue){return $e(this,ue).has(ue)}function _e(ue,pe){return $e(this,ue).set(ue,pe),this}oe.prototype.clear=fe,oe.prototype.delete=le,oe.prototype.get=Re,oe.prototype.has=Ae,oe.prototype.set=_e;function ee(ue,pe){for(var Te=ue.length;Te--;)if(Y(ue[Te][0],pe))return Te;return-1}function se(ue){if(!ce(ue)||Se(ue))return!1;var pe=ie(ue)||y(ue)?A:p;return pe.test(Ie(ue))}function $e(ue,pe){var Te=ue.__data__;return xe(pe)?Te[typeof pe=="string"?"string":"hash"]:Te.map}function Ee(ue,pe){var Te=m(ue,pe);return se(Te)?Te:void 0}function xe(ue){var pe=typeof ue;return pe=="string"||pe=="number"||pe=="symbol"||pe=="boolean"?ue!=="__proto__":ue===null}function Se(ue){return!!C&&C in ue}function Ie(ue){if(ue!=null){try{return T.call(ue)}catch{}try{return ue+""}catch{}}return""}function ge(ue,pe){if(typeof ue!="function"||pe&&typeof pe!="function")throw new TypeError(l);var Te=function(){var Ce=arguments,Fe=pe?pe.apply(this,Ce):Ce[0],He=Te.cache;if(He.has(Fe))return He.get(Fe);var we=ue.apply(this,Ce);return Te.cache=He.set(Fe,we),we};return Te.cache=new(ge.Cache||oe),Te}ge.Cache=oe;function Y(ue,pe){return ue===pe||ue!==ue&&pe!==pe}function ie(ue){var pe=ce(ue)?x.call(ue):"";return pe==u||pe==d}function ce(ue){var pe=typeof ue;return!!ue&&(pe=="object"||pe=="function")}return lodash_memoize=ge,lodash_memoize}var lodash_memoizeExports=requireLodash_memoize();const memoize$1=getDefaultExportFromCjs(lodash_memoizeExports);function resolver(l){return JSON.stringify(l)}function uniqDefined(l){return l.filter(function(o,u){return o&&l.indexOf(o)===u})}function normalizeLocales(l){return l.map(function(o){if(!o||o.indexOf("-")===-1||o.toLowerCase()!==o)return o;var u=o.split("-");return u[0]+"-"+u[1].toUpperCase()})}function getUserLocalesInternal(l){var o=l===void 0?{}:l,u=o.useFallbackLocale,d=u===void 0?!0:u,f=o.fallbackLocale,p=f===void 0?"en-US":f,h=[];if(typeof window<"u"){var v=window,g=v.navigator;h=h.concat(g.languages,g.language,g.userLanguage,g.browserLanguage,g.systemLanguage)}return d&&h.push(p),normalizeLocales(uniqDefined(h))}var getUserLocales=memoize$1(getUserLocalesInternal,resolver);function getUserLocaleInternal(l){return getUserLocales(l)[0]||null}var getUserLocale=memoize$1(getUserLocaleInternal,resolver);const esm$7=Object.freeze(Object.defineProperty({__proto__:null,default:getUserLocale,getUserLocale,getUserLocales},Symbol.toStringTag,{value:"Module"}));function makeGetEdgeOfNeighbor(l,o,u){return function(f,p){p===void 0&&(p=u);var h=l(f)+p;return o(h)}}function makeGetEnd(l){return function(u){return new Date(l(u).getTime()-1)}}function makeGetRange(l,o){return function(d){return[l(d),o(d)]}}function getYear(l){if(l instanceof Date)return l.getFullYear();if(typeof l=="number")return l;var o=parseInt(l,10);if(typeof l=="string"&&!isNaN(o))return o;throw new Error("Failed to get year from date: ".concat(l,"."))}function getMonth(l){if(l instanceof Date)return l.getMonth();throw new Error("Failed to get month from date: ".concat(l,"."))}function getDate(l){if(l instanceof Date)return l.getDate();throw new Error("Failed to get year from date: ".concat(l,"."))}function getCenturyStart(l){var o=getYear(l),u=o+(-o+1)%100,d=new Date;return d.setFullYear(u,0,1),d.setHours(0,0,0,0),d}var getPreviousCenturyStart=makeGetEdgeOfNeighbor(getYear,getCenturyStart,-100),getNextCenturyStart=makeGetEdgeOfNeighbor(getYear,getCenturyStart,100),getCenturyEnd=makeGetEnd(getNextCenturyStart),getPreviousCenturyEnd=makeGetEdgeOfNeighbor(getYear,getCenturyEnd,-100),getCenturyRange=makeGetRange(getCenturyStart,getCenturyEnd);function getDecadeStart(l){var o=getYear(l),u=o+(-o+1)%10,d=new Date;return d.setFullYear(u,0,1),d.setHours(0,0,0,0),d}var getPreviousDecadeStart=makeGetEdgeOfNeighbor(getYear,getDecadeStart,-10),getNextDecadeStart=makeGetEdgeOfNeighbor(getYear,getDecadeStart,10),getDecadeEnd=makeGetEnd(getNextDecadeStart),getPreviousDecadeEnd=makeGetEdgeOfNeighbor(getYear,getDecadeEnd,-10),getDecadeRange=makeGetRange(getDecadeStart,getDecadeEnd);function getYearStart(l){var o=getYear(l),u=new Date;return u.setFullYear(o,0,1),u.setHours(0,0,0,0),u}var getPreviousYearStart=makeGetEdgeOfNeighbor(getYear,getYearStart,-1),getNextYearStart=makeGetEdgeOfNeighbor(getYear,getYearStart,1),getYearEnd=makeGetEnd(getNextYearStart),getPreviousYearEnd=makeGetEdgeOfNeighbor(getYear,getYearEnd,-1),getYearRange=makeGetRange(getYearStart,getYearEnd);function makeGetEdgeOfNeighborMonth(l,o){return function(d,f){f===void 0&&(f=o);var p=getYear(d),h=getMonth(d)+f,v=new Date;return v.setFullYear(p,h,1),v.setHours(0,0,0,0),l(v)}}function getMonthStart(l){var o=getYear(l),u=getMonth(l),d=new Date;return d.setFullYear(o,u,1),d.setHours(0,0,0,0),d}var getPreviousMonthStart=makeGetEdgeOfNeighborMonth(getMonthStart,-1),getNextMonthStart=makeGetEdgeOfNeighborMonth(getMonthStart,1),getMonthEnd=makeGetEnd(getNextMonthStart),getPreviousMonthEnd=makeGetEdgeOfNeighborMonth(getMonthEnd,-1),getMonthRange=makeGetRange(getMonthStart,getMonthEnd);function makeGetEdgeOfNeighborDay(l,o){return function(d,f){f===void 0&&(f=o);var p=getYear(d),h=getMonth(d),v=getDate(d)+f,g=new Date;return g.setFullYear(p,h,v),g.setHours(0,0,0,0),l(g)}}function getDayStart(l){var o=getYear(l),u=getMonth(l),d=getDate(l),f=new Date;return f.setFullYear(o,u,d),f.setHours(0,0,0,0),f}var getNextDayStart=makeGetEdgeOfNeighborDay(getDayStart,1),getDayEnd=makeGetEnd(getNextDayStart),getDayRange=makeGetRange(getDayStart,getDayEnd);function getDaysInMonth(l){return getDate(getMonthEnd(l))}var _CALENDAR_TYPE_LOCALE;function _toConsumableArray$v(l){return _arrayWithoutHoles$v(l)||_iterableToArray$v(l)||_unsupportedIterableToArray$F(l)||_nonIterableSpread$v()}function _nonIterableSpread$v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$F(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$F(l,o);var u=Object.prototype.toString.call(l).slice(8,-1);
21if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return _arrayLikeToArray$F(l,o)}}function _iterableToArray$v(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$v(l){if(Array.isArray(l))return _arrayLikeToArray$F(l)}function _arrayLikeToArray$F(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=new Array(o);u<o;u++)d[u]=l[u];return d}function _defineProperty$1x(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}var CALENDAR_TYPES={ARABIC:"Arabic",HEBREW:"Hebrew",ISO_8601:"ISO 8601",US:"US"},CALENDAR_TYPE_LOCALES=(_CALENDAR_TYPE_LOCALE={},_defineProperty$1x(_CALENDAR_TYPE_LOCALE,CALENDAR_TYPES.US,["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"]),_defineProperty$1x(_CALENDAR_TYPE_LOCALE,CALENDAR_TYPES.ARABIC,["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]),_defineProperty$1x(_CALENDAR_TYPE_LOCALE,CALENDAR_TYPES.HEBREW,["he","he-IL"]),_CALENDAR_TYPE_LOCALE),WEEKDAYS=_toConsumableArray$v(Array(7)).map(function(l,o){return o}),formatterCache=new Map;function getFormatter(l){return function(o,u){var d=o||getUserLocale();formatterCache.has(d)||formatterCache.set(d,new Map);var f=formatterCache.get(d);return f.has(l)||f.set(l,new Intl.DateTimeFormat(d,l).format),f.get(l)(u)}}function toSafeHour(l){var o=new Date(l);return new Date(o.setHours(12))}function getSafeFormatter(l){return function(o,u){return getFormatter(l)(o,toSafeHour(u))}}var formatDayOptions={day:"numeric"},formatLongDateOptions={day:"numeric",month:"long",year:"numeric"},formatMonthOptions={month:"long"},formatMonthYearOptions={month:"long",year:"numeric"},formatShortWeekdayOptions={weekday:"short"},formatWeekdayOptions={weekday:"long"},formatYearOptions={year:"numeric"},formatDay=getSafeFormatter(formatDayOptions),formatLongDate=getSafeFormatter(formatLongDateOptions),formatMonth=getSafeFormatter(formatMonthOptions),formatMonthYear=getSafeFormatter(formatMonthYearOptions),formatShortWeekday=getSafeFormatter(formatShortWeekdayOptions),formatWeekday=getSafeFormatter(formatWeekdayOptions),formatYear=getSafeFormatter(formatYearOptions),SUNDAY=WEEKDAYS[0],FRIDAY=WEEKDAYS[5],SATURDAY=WEEKDAYS[6];function getDayOfWeek(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CALENDAR_TYPES.ISO_8601,u=l.getDay();switch(o){case CALENDAR_TYPES.ISO_8601:return(u+6)%7;case CALENDAR_TYPES.ARABIC:return(u+1)%7;case CALENDAR_TYPES.HEBREW:case CALENDAR_TYPES.US:return u;default:throw new Error("Unsupported calendar type.")}}function getBeginOfCenturyYear(l){var o=getCenturyStart(l);return getYear(o)}function getBeginOfDecadeYear(l){var o=getDecadeStart(l);return getYear(o)}function getBeginOfWeek(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CALENDAR_TYPES.ISO_8601,u=getYear(l),d=getMonth(l),f=l.getDate()-getDayOfWeek(l,o);return new Date(u,d,f)}function getWeekNumber(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CALENDAR_TYPES.ISO_8601,u=o===CALENDAR_TYPES.US?CALENDAR_TYPES.US:CALENDAR_TYPES.ISO_8601,d=getBeginOfWeek(l,o),f=getYear(l)+1,p,h;do p=new Date(f,0,u===CALENDAR_TYPES.ISO_8601?4:1),h=getBeginOfWeek(p,o),f-=1;while(l<h);return Math.round((d-h)/(864e5*7))+1}function getBegin(l,o){switch(l){case"century":return getCenturyStart(o);case"decade":return getDecadeStart(o);case"year":return getYearStart(o);case"month":return getMonthStart(o);case"day":return getDayStart(o);default:throw new Error("Invalid rangeType: ".concat(l))}}function getBeginPrevious(l,o){switch(l){case"century":return getPreviousCenturyStart(o);case"decade":return getPreviousDecadeStart(o);case"year":return getPreviousYearStart(o);case"month":return getPreviousMonthStart(o);default:throw new Error("Invalid rangeType: ".concat(l))}}function getBeginNext(l,o){switch(l){case"century":return getNextCenturyStart(o);case"decade":return getNextDecadeStart(o);case"year":return getNextYearStart(o);case"month":return getNextMonthStart(o);default:throw new Error("Invalid rangeType: ".concat(l))}}var getBeginPrevious2=function(o,u){switch(o){case"decade":return getPreviousDecadeStart(u,-100);case"year":return getPreviousYearStart(u,-10);case"month":return getPreviousMonthStart(u,-12);default:throw new Error("Invalid rangeType: ".concat(o))}},getBeginNext2=function(o,u){switch(o){case"decade":return getNextDecadeStart(u,100);case"year":return getNextYearStart(u,10);case"month":return getNextMonthStart(u,12);default:throw new Error("Invalid rangeType: ".concat(o))}};function getEnd(l,o){switch(l){case"century":return getCenturyEnd(o);case"decade":return getDecadeEnd(o);case"year":return getYearEnd(o);case"month":return getMonthEnd(o);case"day":return getDayEnd(o);default:throw new Error("Invalid rangeType: ".concat(l))}}function getEndPrevious(l,o){switch(l){case"century":return getPreviousCenturyEnd(o);case"decade":return getPreviousDecadeEnd(o);case"year":return getPreviousYearEnd(o);case"month":return getPreviousMonthEnd(o);default:throw new Error("Invalid rangeType: ".concat(l))}}var getEndPrevious2=function(o,u){switch(o){case"decade":return getPreviousDecadeEnd(u,-100);case"year":return getPreviousYearEnd(u,-10);case"month":return getPreviousMonthEnd(u,-12);default:throw new Error("Invalid rangeType: ".concat(o))}};function getRange(l,o){switch(l){case"century":return getCenturyRange(o);case"decade":return getDecadeRange(o);case"year":return getYearRange(o);case"month":return getMonthRange(o);case"day":return getDayRange(o);default:throw new Error("Invalid rangeType: ".concat(l))}}function getValueRange(l,o,u){var d=[o,u].sort(function(f,p){return f-p});return[getBegin(l,d[0]),getEnd(l,d[1])]}function toYearLabel(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:formatYear,u=arguments.length>2?arguments[2]:void 0;return u.map(function(d){return o(l,d)}).join(" – ")}function getCenturyLabel(l,o,u){return toYearLabel(l,o,getCenturyRange(u))}function getDecadeLabel(l,o,u){return toYearLabel(l,o,getDecadeRange(u))}function isWeekend(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CALENDAR_TYPES.ISO_8601,u=l.getDay();switch(o){case CALENDAR_TYPES.ARABIC:case CALENDAR_TYPES.HEBREW:return u===FRIDAY||u===SATURDAY;case CALENDAR_TYPES.ISO_8601:case CALENDAR_TYPES.US:return u===SATURDAY||u===SUNDAY;default:throw new Error("Unsupported calendar type.")}}function _typeof$a(l){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$a(l)}var calendarTypes=Object.values(CALENDAR_TYPES),allViews$1=["century","decade","year","month"],isCalendarType=PropTypes.oneOf(calendarTypes),isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isMinDate=function(o,u,d){var f=o[u];if(!f)return null;if(!(f instanceof Date))return new Error("Invalid prop `".concat(u,"` of type `").concat(_typeof$a(f),"` supplied to `").concat(d,"`, expected instance of `Date`."));var p=o.maxDate;return p&&f>p?new Error("Invalid prop `".concat(u,"` of type `").concat(_typeof$a(f),"` supplied to `").concat(d,"`, minDate cannot be larger than maxDate.")):null},isMaxDate=function(o,u,d){var f=o[u];if(!f)return null;if(!(f instanceof Date))return new Error("Invalid prop `".concat(u,"` of type `").concat(_typeof$a(f),"` supplied to `").concat(d,"`, expected instance of `Date`."));var p=o.minDate;return p&&f<p?new Error("Invalid prop `".concat(u,"` of type `").concat(_typeof$a(f),"` supplied to `").concat(d,"`, maxDate cannot be smaller than minDate.")):null},isRef$1=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isValue=PropTypes.oneOfType([PropTypes.instanceOf(Date),PropTypes.arrayOf(PropTypes.instanceOf(Date))]),isViews=PropTypes.arrayOf(PropTypes.oneOf(allViews$1)),isView=function(o,u,d){var f=o[u],p=o.views,h=p||allViews$1;return f!==void 0&&h.indexOf(f)===-1?new Error("Invalid prop `".concat(u,"` of value `").concat(f,"` supplied to `").concat(d,"`, expected one of [").concat(h.map(function(v){return'"'.concat(v,'"')}).join(", "),"].")):null};isView.isRequired=function(l,o,u){var d=l[o];return d?isView(l,o,u):new Error("The prop `".concat(o,"` is marked as required in `").concat(u,"`, but its value is `").concat(d,"`."))};var tileGroupProps={activeStartDate:PropTypes.instanceOf(Date).isRequired,hover:PropTypes.instanceOf(Date),locale:PropTypes.string,maxDate:isMaxDate,minDate:isMinDate,onClick:PropTypes.func,onMouseOver:PropTypes.func,tileClassName:PropTypes.oneOfType([PropTypes.func,isClassName]),tileContent:PropTypes.oneOfType([PropTypes.func,PropTypes.node]),value:isValue,valueType:PropTypes.string},tileProps={activeStartDate:PropTypes.instanceOf(Date).isRequired,classes:PropTypes.arrayOf(PropTypes.string).isRequired,date:PropTypes.instanceOf(Date).isRequired,locale:PropTypes.string,maxDate:isMaxDate,minDate:isMinDate,onClick:PropTypes.func,onMouseOver:PropTypes.func,style:PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string,PropTypes.number])),tileClassName:PropTypes.oneOfType([PropTypes.func,isClassName]),tileContent:PropTypes.oneOfType([PropTypes.func,PropTypes.node]),tileDisabled:PropTypes.func},className$6="react-calendar__navigation";function Navigation(l){var o=l.activeStartDate,u=l.drillUp,d=l.formatMonthYear,f=d===void 0?formatMonthYear:d,p=l.formatYear,h=p===void 0?formatYear:p,v=l.locale,g=l.maxDate,m=l.minDate,y=l.navigationAriaLabel,b=y===void 0?"":y,w=l.navigationAriaLive,E=l.navigationLabel,P=l.next2AriaLabel,C=P===void 0?"":P,T=l.next2Label,O=T===void 0?"»":T,x=l.nextAriaLabel,A=x===void 0?"":x,D=l.nextLabel,j=D===void 0?"›":D,M=l.prev2AriaLabel,N=M===void 0?"":M,q=l.prev2Label,z=q===void 0?"«":q,H=l.prevAriaLabel,U=H===void 0?"":H,F=l.prevLabel,B=F===void 0?"‹":F,G=l.setActiveStartDate,Q=l.showDoubleView,K=l.view,Z=l.views,te=Z.indexOf(K)>0,oe=K!=="century",fe=getBeginPrevious(K,o),le=oe&&getBeginPrevious2(K,o),Re=getBeginNext(K,o),Ae=oe&&getBeginNext2(K,o),_e=(function(){if(fe.getFullYear()<0)return!0;var ie=getEndPrevious(K,o);return m&&m>=ie})(),ee=oe&&(function(){if(le.getFullYear()<0)return!0;var ie=getEndPrevious2(K,o);return m&&m>=ie})(),se=g&&g<Re,$e=oe&&g&&g<Ae;function Ee(){G(fe,"prev")}function xe(){G(le,"prev2")}function Se(){G(Re,"next")}function Ie(){G(Ae,"next2")}function ge(ie){var ce=(function(){switch(K){case"century":return getCenturyLabel(v,h,ie);case"decade":return getDecadeLabel(v,h,ie);case"year":return h(v,ie);case"month":return f(v,ie);default:throw new Error("Invalid view: ".concat(K,"."))}})();return E?E({date:ie,label:ce,locale:v||getUserLocale(),view:K}):ce}function Y(){var ie="".concat(className$6,"__label");return React.createElement("button",{"aria-label":b,"aria-live":w,className:ie,disabled:!te,onClick:u,style:{flexGrow:1},type:"button"},React.createElement("span",{className:"".concat(ie,"__labelText ").concat(ie,"__labelText--from")},ge(o)),Q&&React.createElement(React.Fragment,null,React.createElement("span",{className:"".concat(ie,"__divider")}," – "),React.createElement("span",{className:"".concat(ie,"__labelText ").concat(ie,"__labelText--to")},ge(Re))))}return React.createElement("div",{className:className$6},z!==null&&oe&&React.createElement("button",{"aria-label":N,className:"".concat(className$6,"__arrow ").concat(className$6,"__prev2-button"),disabled:ee,onClick:xe,type:"button"},z),B!==null&&React.createElement("button",{"aria-label":U,className:"".concat(className$6,"__arrow ").concat(className$6,"__prev-button"),disabled:_e,onClick:Ee,type:"button"},B),Y(),j!==null&&React.createElement("button",{"aria-label":A,className:"".concat(className$6,"__arrow ").concat(className$6,"__next-button"),disabled:se,onClick:Se,type:"button"},j),O!==null&&oe&&React.createElement("button",{"aria-label":C,className:"".concat(className$6,"__arrow ").concat(className$6,"__next2-button"),disabled:$e,onClick:Ie,type:"button"},O))}Navigation.propTypes={activeStartDate:PropTypes.instanceOf(Date).isRequired,drillUp:PropTypes.func.isRequired,formatMonthYear:PropTypes.func,formatYear:PropTypes.func,locale:PropTypes.string,maxDate:Pro
21pTypes.instanceOf(Date),minDate:PropTypes.instanceOf(Date),navigationAriaLabel:PropTypes.string,navigationAriaLive:PropTypes.string,navigationLabel:PropTypes.func,next2AriaLabel:PropTypes.string,next2Label:PropTypes.node,nextAriaLabel:PropTypes.string,nextLabel:PropTypes.node,prev2AriaLabel:PropTypes.string,prev2Label:PropTypes.node,prevAriaLabel:PropTypes.string,prevLabel:PropTypes.node,setActiveStartDate:PropTypes.func.isRequired,showDoubleView:PropTypes.bool,view:isView.isRequired,views:isViews.isRequired};var _excluded$r=["children","className","direction","count","offset","style","wrap"];function _extends$u(){return _extends$u=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$u.apply(this,arguments)}function ownKeys$1n(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1m(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1n(Object(u),!0).forEach(function(d){_defineProperty$1w(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1n(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1w(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _objectWithoutProperties$p(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$n(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$n(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}function toPercent(l){return"".concat(l,"%")}function Flex(l){var o=l.children,u=l.className,d=l.direction,f=l.count,p=l.offset,h=l.style,v=l.wrap,g=_objectWithoutProperties$p(l,_excluded$r);return React.createElement("div",_extends$u({className:u,style:_objectSpread$1m({display:"flex",flexDirection:d,flexWrap:v?"wrap":"no-wrap"},h)},g),React.Children.map(o,function(m,y){return React.cloneElement(m,_objectSpread$1m(_objectSpread$1m({},m.props),{},{style:{flexBasis:toPercent(100/f),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:p&&y===0?toPercent(100*p/f):null}}))}))}Flex.propTypes={children:PropTypes.node,className:PropTypes.string,count:PropTypes.number.isRequired,direction:PropTypes.string,offset:PropTypes.number,style:PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string,PropTypes.number])),wrap:PropTypes.bool};function _toConsumableArray$u(l){return _arrayWithoutHoles$u(l)||_iterableToArray$u(l)||_unsupportedIterableToArray$E(l)||_nonIterableSpread$u()}function _nonIterableSpread$u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$E(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$E(l,o);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return _arrayLikeToArray$E(l,o)}}function _iterableToArray$u(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$u(l){if(Array.isArray(l))return _arrayLikeToArray$E(l)}function _arrayLikeToArray$E(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=new Array(o);u<o;u++)d[u]=l[u];return d}function between(l,o,u){return o&&o>l?o:u&&u<l?u:l}function isValueWithinRange(l,o){return o[0]<=l&&o[1]>=l}function isRangeWithinRange(l,o){return l[0]<=o[0]&&l[1]>=o[1]}function doRangesOverlap(l,o){return isValueWithinRange(l[0],o)||isValueWithinRange(l[1],o)}function getRangeClassNames(l,o,u){var d=doRangesOverlap(o,l),f=[];if(d){f.push(u);var p=isValueWithinRange(l[0],o),h=isValueWithinRange(l[1],o);p&&f.push("".concat(u,"Start")),h&&f.push("".concat(u,"End")),p&&h&&f.push("".concat(u,"BothEnds"))}return f}function getTileClasses(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.value,u=l.valueType,d=l.date,f=l.dateType,p=l.hover,h="react-calendar__tile",v=[h];if(!d)return v;if(!Array.isArray(d)&&!f)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var g=new Date,m=Array.isArray(d)?d:getRange(f,d);if(isValueWithinRange(g,m)&&v.push("".concat(h,"--now")),!o)return v;if(!Array.isArray(o)&&!u)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var y=Array.isArray(o)?o:getRange(u,o);isRangeWithinRange(y,m)?v.push("".concat(h,"--active")):doRangesOverlap(y,m)&&v.push("".concat(h,"--hasActive"));var b=getRangeClassNames(y,m,"".concat(h,"--range"));v.push.apply(v,_toConsumableArray$u(b));var w=[].concat(o);if(p&&w.length===1){var E=p>y[0]?[y[0],p]:[p,y[0]],P=getRangeClassNames(E,m,"".concat(h,"--h
22over"));v.push.apply(v,_toConsumableArray$u(P))}return v}var _excluded$q=["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"];function ownKeys$1m(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1l(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1m(Object(u),!0).forEach(function(d){_defineProperty$1v(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1m(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1v(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$t(){return _extends$t=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$t.apply(this,arguments)}function _objectWithoutProperties$o(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$m(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$m(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}function TileGroup(l){for(var o=l.className,u=l.count,d=u===void 0?3:u,f=l.dateTransform,p=l.dateType,h=l.end,v=l.hover,g=l.offset,m=l.start,y=l.step,b=y===void 0?1:y,w=l.tile,E=l.value,P=l.valueType,C=_objectWithoutProperties$o(l,_excluded$q),T=[],O=m;O<=h;O+=b){var x=f(O);T.push(React.createElement(w,_extends$t({key:x.getTime(),classes:getTileClasses({value:E,valueType:P,date:x,dateType:p,hover:v}),date:x,point:O},C)))}return React.createElement(Flex,{className:o,count:d,offset:g,wrap:!0},T)}TileGroup.propTypes=_objectSpread$1l(_objectSpread$1l({},tileGroupProps),{},{activeStartDate:PropTypes.instanceOf(Date),count:PropTypes.number,dateTransform:PropTypes.func.isRequired,dateType:PropTypes.string,offset:PropTypes.number,step:PropTypes.number,tile:PropTypes.func.isRequired});function _typeof$9(l){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$9(l)}function ownKeys$1l(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1k(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1l(Object(u),!0).forEach(function(d){_defineProperty$1u(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1l(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _classCallCheck$2j(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2b(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$2b(l,o,u){return o&&_defineProperties$2b(l.prototype,o),u&&_defineProperties$2b(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _inherits$1E(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1x(l,o)}function _setPrototypeOf$1x(l,o){return _setPrototypeOf$1x=Object.
22setPrototypeOf?Object.setPrototypeOf.bind():function(d,f){return d.__proto__=f,d},_setPrototypeOf$1x(l,o)}function _createSuper$2(l){var o=_isNativeReflectConstruct$1w();return function(){var d=_getPrototypeOf$1x(l),f;if(o){var p=_getPrototypeOf$1x(this).constructor;f=Reflect.construct(d,arguments,p)}else f=d.apply(this,arguments);return _possibleConstructorReturn$1E(this,f)}}function _possibleConstructorReturn$1E(l,o){if(o&&(_typeof$9(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1x(l)}function _assertThisInitialized$1x(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1x(l){return _getPrototypeOf$1x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},_getPrototypeOf$1x(l)}function _defineProperty$1u(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function datesAreDifferent(l,o){return l&&!o||!l&&o||l&&o&&l.getTime()!==o.getTime()}function getValue$2(l,o){var u=l.activeStartDate,d=l.date,f=l.view;return typeof o=="function"?o({activeStartDate:u,date:d,view:f}):o}var Tile=(function(l){_inherits$1E(u,l);var o=_createSuper$2(u);function u(){var d;_classCallCheck$2j(this,u);for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return d=o.call.apply(o,[this].concat(p)),_defineProperty$1u(_assertThisInitialized$1x(d),"state",{}),d}return _createClass$2b(u,[{key:"render",value:function(){var f=this.props,p=f.activeStartDate,h=f.children,v=f.classes,g=f.date,m=f.formatAbbr,y=f.locale,b=f.maxDate,w=f.maxDateTransform,E=f.minDate,P=f.minDateTransform,C=f.onClick,T=f.onMouseOver,O=f.style,x=f.tileDisabled,A=f.view,D=this.state,j=D.tileClassName,M=D.tileContent;return React.createElement("button",{className:mergeClassNames(v,j),disabled:E&&P(E)>g||b&&w(b)<g||x&&x({activeStartDate:p,date:g,view:A}),onClick:C&&function(N){return C(g,N)},onFocus:T&&function(){return T(g)},onMouseOver:T&&function(){return T(g)},style:O,type:"button"},m?React.createElement("abbr",{"aria-label":m(y,g)},h):h,M)}}],[{key:"getDerivedStateFromProps",value:function(f,p){var h=f.activeStartDate,v=f.tileClassName,g=f.tileContent,m={};return(v!==p.tileClassNameProps||datesAreDifferent(h,p.activeStartDateProps))&&(m.tileClassName=getValue$2(f,v),m.tileClassNameProps=v),(g!==p.tileContentProps||datesAreDifferent(h,p.activeStartDateProps))&&(m.tileContent=getValue$2(f,g),m.tileContentProps=g),m.activeStartDateProps=h,m}}]),u})(reactExports.Component);Tile.propTypes=_objectSpread$1k(_objectSpread$1k({},tileProps),{},{children:PropTypes.node.isRequired,formatAbbr:PropTypes.func,maxDateTransform:PropTypes.func.isRequired,minDateTransform:PropTypes.func.isRequired});var _excluded$p=["classes","formatYear"];function ownKeys$1k(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1j(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1k(Object(u),!0).forEach(function(d){_defineProperty$1t(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1k(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1t(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$s(){return _extends$s=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$s.apply(this,arguments)}function _objectWithoutProperties$n(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$l(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$l(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}var className$5="react-calendar__century-view__decades__decade";function Decade(l){var o=l.classes,u=l.formatYear,d=u===void 0?formatYear:u,f=_objectWithoutProperties$n(l,_excluded$p),p=f.date,h=f.locale;return React.createElement(Tile,_extends$s({},f,{classes:[].concat(o,className$5),maxDateTransform:getDecadeEnd,minDateTransform:getDecadeStart,view:"century"}),getDecadeLabel(h,d,p))}
22Decade.propTypes=_objectSpread$1j(_objectSpread$1j({},tileProps),{},{formatYear:PropTypes.func});function ownKeys$1j(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1i(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1j(Object(u),!0).forEach(function(d){_defineProperty$1s(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1j(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1s(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$r(){return _extends$r=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$r.apply(this,arguments)}function Decades(l){var o=l.activeStartDate,u=getBeginOfCenturyYear(o),d=u+99;return React.createElement(TileGroup,_extends$r({},l,{className:"react-calendar__century-view__decades",dateTransform:getDecadeStart,dateType:"decade",end:d,start:u,step:10,tile:Decade}))}Decades.propTypes=_objectSpread$1i({},tileGroupProps);function CenturyView(l){function o(){return React.createElement(Decades,l)}return React.createElement("div",{className:"react-calendar__century-view"},o())}var _excluded$o=["classes","formatYear"];function ownKeys$1i(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1h(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1i(Object(u),!0).forEach(function(d){_defineProperty$1r(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1i(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1r(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$q(){return _extends$q=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$q.apply(this,arguments)}function _objectWithoutProperties$m(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$k(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$k(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}var className$4="react-calendar__decade-view__years__year";function Year(l){var o=l.classes,u=l.formatYear,d=u===void 0?formatYear:u,f=_objectWithoutProperties$m(l,_excluded$o),p=f.date,h=f.locale;return React.createElement(Tile,_extends$q({},f,{classes:[].concat(o,className$4),maxDateTransform:getYearEnd,minDateTransform:getYearStart,view:"decade"}),d(h,p))}Year.propTypes=_objectSpread$1h(_objectSpread$1h({},tileProps),{},{formatYear:PropTypes.func});function ownKeys$1h(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1g(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1h(Object(u),!0).forEach(function(d){_defineProperty$1q(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1h(Object(u)).forEac
22h(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1q(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$p(){return _extends$p=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$p.apply(this,arguments)}function Years(l){var o=l.activeStartDate,u=getBeginOfDecadeYear(o),d=u+9;return React.createElement(TileGroup,_extends$p({},l,{className:"react-calendar__decade-view__years",dateTransform:function(p){var h=new Date;return h.setFullYear(p,0,1),h.setHours(0,0,0,0),h},dateType:"year",end:d,start:u,tile:Year}))}Years.propTypes=_objectSpread$1g({},tileGroupProps);function DecadeView(l){function o(){return React.createElement(Years,l)}return React.createElement("div",{className:"react-calendar__decade-view"},o())}var _excluded$n=["classes","formatMonth","formatMonthYear"];function ownKeys$1g(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1f(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1g(Object(u),!0).forEach(function(d){_defineProperty$1p(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1g(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1p(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$o(){return _extends$o=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$o.apply(this,arguments)}function _objectWithoutProperties$l(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$j(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$j(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}var className$3="react-calendar__year-view__months__month";function Month(l){var o=l.classes,u=l.formatMonth,d=u===void 0?formatMonth:u,f=l.formatMonthYear,p=f===void 0?formatMonthYear:f,h=_objectWithoutProperties$l(l,_excluded$n),v=h.date,g=h.locale;return React.createElement(Tile,_extends$o({},h,{classes:[].concat(o,className$3),formatAbbr:p,maxDateTransform:getMonthEnd,minDateTransform:getMonthStart,view:"year"}),d(g,v))}Month.propTypes=_objectSpread$1f(_objectSpread$1f({},tileProps),{},{formatMonth:PropTypes.func,formatMonthYear:PropTypes.func});function ownKeys$1f(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1e(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1f(Object(u),!0).forEach(function(d){_defineProperty$1o(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1f(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1o(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$n(){return _extends$n=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$n.apply(this,arguments)}function Months(l){var o=l.activeStartDate,u=0,d=11,f=getYear(o);return React.createElement(TileGroup,_extends$n({},l,{className:"react-calendar__year-view__months",dateTransform:function(h){var v=new Date;return v.setFullYear(f,h,1),v.setHours(0,0,0,0),v},dateType:"month",end:d,start:u,tile:Month}))}Months.propTypes=_objectSpread$1e(_objectSpread$1e({},tileGroupProps),{},{locale:PropTypes.string});function YearView(l){function o(){return React.createElement(Months,l)}return React.createElement("div",{className:"react-calendar__year-view"},o())}var _excluded$m=["formatDay","formatLongDate","calendarType","classes","currentMonthIndex"];function ownKeys$1e(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}
22function _objectSpread$1d(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1e(Object(u),!0).forEach(function(d){_defineProperty$1n(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1e(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1n(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$m(){return _extends$m=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$m.apply(this,arguments)}function _objectWithoutProperties$k(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$i(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$i(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}var className$2="react-calendar__month-view__days__day";function Day(l){var o=l.formatDay,u=o===void 0?formatDay:o,d=l.formatLongDate,f=d===void 0?formatLongDate:d,p=l.calendarType,h=l.classes,v=l.currentMonthIndex,g=_objectWithoutProperties$k(l,_excluded$m),m=g.date,y=g.locale;return React.createElement(Tile,_extends$m({},g,{classes:[].concat(h,className$2,isWeekend(m,p)?"".concat(className$2,"--weekend"):null,m.getMonth()!==v?"".concat(className$2,"--neighboringMonth"):null),formatAbbr:f,maxDateTransform:getDayEnd,minDateTransform:getDayStart,view:"month"}),u(y,m))}Day.propTypes=_objectSpread$1d(_objectSpread$1d({},tileProps),{},{currentMonthIndex:PropTypes.number.isRequired,formatDay:PropTypes.func,formatLongDate:PropTypes.func});var _excluded$l=["showFixedNumberOfWeeks","showNeighboringMonth"];function ownKeys$1d(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1c(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1d(Object(u),!0).forEach(function(d){_defineProperty$1m(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1d(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1m(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _extends$l(){return _extends$l=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$l.apply(this,arguments)}function _objectWithoutProperties$j(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$h(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$h(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}function Days(l){var o=l.activeStartDate,u=l.calendarType,d=l.showFixedNumberOfWeeks,f=l.showNeighboringMonth,p=_objectWithoutProperties$j(l,_excluded$l),h=getYear(o),v=getMonth(o),g=d||f,m=getDayOfWeek(o,u),y=g?0:m,b=(g?-m:0)+1,w=(function(){if(d)return b+42-1;var E=getDaysInMonth(o);if(f){var P=new Date;P.setFullYear(h,v,E),P.setHours(0,0,0,0);var C=7-getDayOfWeek(P,u)-1;return E+C}return E})();return React.createElement(TileGroup,_extends$l({},p,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:v,dateTransform:function(P){var C=new Date;return C.setFullYear(h,v,P),C.setHours(0,0,0,0),C},dateType:"day",end:w,offset:y,start:b,tile:Day}))}Days.propTypes=_objectSpread$1c({calendarType:isCalendarType.isRequired,showFixedNumberOfWeeks:PropTypes.bool,showNeighboringMonth:PropTypes.bool},tileGroupProps);var className$1="react-calendar__month-view__weekdays",weekdayClassName="".concat(className$1,"__weekday");function Weekdays(l){for(var o=l.calendarType,u=l.formatShortWeekday,d=u===void 0?formatShortWeekday:u,f=l.formatWeekday,p=f===void 0?formatWeekday:f,h=l.locale,v=l.onMouseLeave,g=new Date,m=getMonthStart(g),y=getYear(m),b=getMonth(m),w=[],E=1;E<=7;E+=1){var P=new Date(y,b,E-getDayOfWeek(m,o)),C=p(h,P);w.push(React.createElement("div",{key:E,className:mergeClassNames(weekdayClassName,isWeekend(P,o)&&"".concat(weekdayClassName,"--weekend"))},React.createElement("abbr",{"aria-label":C,title:C},d(h,P).replace(".",""))))}return React.createElement(Flex,{className:className$1,count:7,onFocus:v,onMouseOver:v},w)}Weekdays.propTypes={calendarType:isCalendarType.isRequired,formatShortWeekday:PropTypes.func,formatWeekday:PropTypes.func,locale:PropTypes.string,onMouseLeave:PropTypes.func};var _excluded$k=["date","onClickWeekNumber","weekNumber"];function _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$k.apply(this,arguments)}function ownKeys$1c(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1b(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
22o%2?ownKeys$1c(Object(u),!0).forEach(function(d){_defineProperty$1l(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1c(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1l(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _objectWithoutProperties$i(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$g(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$g(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}var className="react-calendar__tile";function WeekNumber(l){var o=l.date,u=l.onClickWeekNumber,d=l.weekNumber,f=_objectWithoutProperties$i(l,_excluded$k),p=_objectSpread$1b({className},f),h=React.createElement("span",null,d);return u?React.createElement("button",_extends$k({},p,{onClick:function(g){return u(d,o,g)},type:"button"}),h):React.createElement("div",p,h)}WeekNumber.propTypes={date:PropTypes.instanceOf(Date).isRequired,onClickWeekNumber:PropTypes.func,weekNumber:PropTypes.node.isRequired};function WeekNumbers(l){var o=l.activeStartDate,u=l.calendarType,d=l.onClickWeekNumber,f=l.onMouseLeave,p=l.showFixedNumberOfWeeks,h=(function(){if(p)return 6;var m=getDaysInMonth(o),y=getDayOfWeek(o,u),b=m-(7-y);return 1+Math.ceil(b/7)})(),v=(function(){for(var m=getYear(o),y=getMonth(o),b=getDate(o),w=[],E=0;E<h;E+=1)w.push(getBeginOfWeek(new Date(m,y,b+E*7),u));return w})(),g=v.map(function(m){return getWeekNumber(m,u)});return React.createElement(Flex,{className:"react-calendar__month-view__weekNumbers",count:h,direction:"column",onFocus:f,onMouseOver:f,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},g.map(function(m,y){return React.createElement(WeekNumber,{key:m,date:v[y],onClickWeekNumber:d,weekNumber:m})}))}WeekNumbers.propTypes={activeStartDate:PropTypes.instanceOf(Date).isRequired,calendarType:isCalendarType.isRequired,onClickWeekNumber:PropTypes.func,onMouseLeave:PropTypes.func,showFixedNumberOfWeeks:PropTypes.bool};var _excluded$j=["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"];function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$j.apply(this,arguments)}function _objectWithoutProperties$h(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$f(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$f(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}function getCalendarTypeFromLocale(l){return Object.keys(CALENDAR_TYPE_LOCALES).find(function(o){return CALENDAR_TYPE_LOCALES[o].includes(l)})||CALENDAR_TYPES.ISO_8601}function MonthView(l){var o=l.activeStartDate,u=l.locale,d=l.onMouseLeave,f=l.showFixedNumberOfWeeks,p=l.calendarType,h=p===void 0?getCalendarTypeFromLocale(u):p,v=l.formatShortWeekday,g=l.formatWeekday,m=l.onClickWeekNumber,y=l.showWeekNumbers,b=_objectWithoutProperties$h(l,_excluded$j);function w(){return React.createElement(Weekdays,{calendarType:h,formatShortWeekday:v,formatWeekday:g,locale:u,onMouseLeave:d})}function E(){return y?React.createElement(WeekNumbers,{activeStartDate:o,calendarType:h,onClickWeekNumber:m,onMouseLeave:d,showFixedNumberOfWeeks:f}):null}function P(){return React.createElement(Days,_extends$j({calendarType:h},b))}var C="react-calendar__month-view";return React.createElement("div",{className:mergeClassNames(C,y?"".concat(C,"--weekNumbers"):"")},React.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},E(),React.createElement("div",{style:{flexGrow:1,width:"100%"}},w(),P())))}MonthView.propTypes={activeStartDate:PropTypes.instanceOf(Date).isRequired,calendarType:isCalendarType,formatShortWeekday:PropTypes.func,formatWeekday:PropTypes.func,locale:PropTypes.string,onClickWeekNumber:PropTypes.func,onMouseLeave:PropTypes.func,showFixedNumberOfWeeks:PropTypes.bool,showWeekNumbers:PropTypes.bool};var _excluded$i=["activeStartDate","defaultActiveStartDate","defaultValue","defaultView","maxDetail","minDetail","value","view"];function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$i.apply(this,arguments)}function _typeof$8(l){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$8(l)}function _classCallCheck$2i(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2a(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$2a(l,o,u){return o&&_defineProperties$2a(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _inherits$1D(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1w(l,o)}function _setPrototypeOf$1w(l,o){return _setPrototypeOf$1w=Object.
22setPrototypeOf?Object.setPrototypeOf.bind():function(d,f){return d.__proto__=f,d},_setPrototypeOf$1w(l,o)}function _createSuper$1(l){var o=_isNativeReflectConstruct$1v();return function(){var d=_getPrototypeOf$1w(l),f;if(o){var p=_getPrototypeOf$1w(this).constructor;f=Reflect.construct(d,arguments,p)}else f=d.apply(this,arguments);return _possibleConstructorReturn$1D(this,f)}}function _possibleConstructorReturn$1D(l,o){if(o&&(_typeof$8(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1w(l)}function _assertThisInitialized$1w(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1w(l){return _getPrototypeOf$1w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},_getPrototypeOf$1w(l)}function ownKeys$1b(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1a(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1b(Object(u),!0).forEach(function(d){_defineProperty$1k(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1b(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1k(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _objectWithoutProperties$g(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$e(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$e(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}function _toConsumableArray$t(l){return _arrayWithoutHoles$t(l)||_iterableToArray$t(l)||_unsupportedIterableToArray$D(l)||_nonIterableSpread$t()}function _nonIterableSpread$t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$D(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$D(l,o);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return _arrayLikeToArray$D(l,o)}}function _iterableToArray$t(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$t(l){if(Array.isArray(l))return _arrayLikeToArray$D(l)}function _arrayLikeToArray$D(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=new Array(o);u<o;u++)d[u]=l[u];return d}var defaultMinDate=new Date;defaultMinDate.setFullYear(1,0,1);defaultMinDate.setHours(0,0,0,0);var defaultMaxDate=new Date(864e13),baseClassName$1="react-calendar",allViews=["century","decade","year","month"],allValueTypes=[].concat(_toConsumableArray$t(allViews.slice(1)),["day"]);function toDate(l){return l instanceof Date?l:new Date(l)}function getLimitedViews(l,o){return allViews.slice(allViews.indexOf(l),allViews.indexOf(o)+1)}function isViewAllowed(l,o,u){var d=getLimitedViews(o,u);return d.indexOf(l)!==-1}function getView(l,o,u){return isViewAllowed(l,o,u)?l:u}function getValueType(l){return allValueTypes[allViews.indexOf(l)]}function getValue$1(l,o){if(!l)return null;var u=Array.isArray(l)&&l.length===2?l[o]:l;if(!u)return null;var d=toDate(u);if(isNaN(d.getTime()))throw new Error("Invalid date: ".concat(l));return d}function getDetailValue(l,o){var u=l.value,d=l.minDate,f=l.maxDate,p=l.maxDetail,h=getValue$1(u,o);if(!h)return null;var v=getValueType(p),g=[getBegin,getEnd][o](v,h);return between(g,d,f)}var getDetailValueFrom=function(o){return getDetailValue(o,0)},getDetailValueTo=function(o){return getDetailValue(o,1)},getDetailValueArray=function(o){var u=o.value;return Array.isArray(u)?u:[getDetailValueFrom,getDetailValueTo].map(function(d){return d(o)})};function getActiveStartDate(l){var o=l.maxDate,u=l.maxDetail,d=l.minDate,f=l.minDetail,p=l.value,h=l.view,v=getView(h,f,u),g=getDetailValueFrom({value:p,minDate:d,maxDate:o,maxDetail:u})||new Date;return getBegin(v,g)}function getInitialActiveStartDate(l){var o=l.activeStartDate,u=l.defaultActiveStartDate,d=l.defaultValue,f=l.defaultView,p=l.maxDetail,h=l.minDetail,v=l.value,g=l.view,m=_objectWithoutProperties$g(l,_excluded$i),y=getView(g,h,p),b=o||u;return b?getBegin(y,b):getActiveStartDate(_objectSpread$1a({maxDetail:p,minDetail:h,value:v||d,view:g||f},m))}var getIsSingleValue=function(o){return o&&[].concat(o).length===1}
23,Calendar=(function(l){_inherits$1D(u,l);var o=_createSuper$1(u);function u(){var d;_classCallCheck$2i(this,u);for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return d=o.call.apply(o,[this].concat(p)),_defineProperty$1k(_assertThisInitialized$1w(d),"state",{activeStartDate:d.props.defaultActiveStartDate,value:d.props.defaultValue,view:d.props.defaultView}),_defineProperty$1k(_assertThisInitialized$1w(d),"setStateAndCallCallbacks",function(v,g,m){var y=_assertThisInitialized$1w(d),b=y.activeStartDate,w=y.view,E=d.props,P=E.allowPartialRange,C=E.onActiveStartDateChange,T=E.onChange,O=E.onViewChange,x=E.selectRange,A={activeStartDate:b,view:w};d.setState(v,function(){var D={action:v.action,activeStartDate:v.activeStartDate||d.activeStartDate,value:v.value||d.value,view:v.view||d.view};function j(N){return N in v&&(_typeof$8(v[N])!==_typeof$8(A[N])||(v[N]instanceof Date?v[N].getTime()!==A[N].getTime():v[N]!==A[N]))}if(j("activeStartDate")&&C&&C(D),j("view")&&O&&O(D),j("value")&&T)if(x){var M=getIsSingleValue(v.value);M?P&&T([v.value],g):T(v.value,g)}else T(v.value,g);m&&m(D)})}),_defineProperty$1k(_assertThisInitialized$1w(d),"setActiveStartDate",function(v,g){d.setStateAndCallCallbacks({action:g,activeStartDate:v})}),_defineProperty$1k(_assertThisInitialized$1w(d),"drillDown",function(v,g){if(d.drillDownAvailable){d.onClickTile(v,g);var m=_assertThisInitialized$1w(d),y=m.view,b=m.views,w=d.props.onDrillDown,E=b[b.indexOf(y)+1];d.setStateAndCallCallbacks({action:"drillDown",activeStartDate:v,view:E},void 0,w)}}),_defineProperty$1k(_assertThisInitialized$1w(d),"drillUp",function(){if(d.drillUpAvailable){var v=_assertThisInitialized$1w(d),g=v.activeStartDate,m=v.view,y=v.views,b=d.props.onDrillUp,w=y[y.indexOf(m)-1],E=getBegin(w,g);d.setStateAndCallCallbacks({action:"drillUp",activeStartDate:E,view:w},void 0,b)}}),_defineProperty$1k(_assertThisInitialized$1w(d),"onChange",function(v,g){var m=_assertThisInitialized$1w(d),y=m.value,b=d.props,w=b.goToRangeStartOnSelect,E=b.selectRange;d.onClickTile(v,g);var P=E&&!getIsSingleValue(y),C;if(E){var T=_assertThisInitialized$1w(d),O=T.valueType;P?C=getBegin(O,v):C=getValueRange(O,y,v)}else C=d.getProcessedValue(v);var x=!E||P||w?getActiveStartDate(_objectSpread$1a(_objectSpread$1a({},d.props),{},{value:C})):null;g.persist(),d.setStateAndCallCallbacks({action:"onChange",activeStartDate:x,value:C},g)}),_defineProperty$1k(_assertThisInitialized$1w(d),"onClickTile",function(v,g){var m=_assertThisInitialized$1w(d),y=m.view,b=d.props,w=b.onClickDay,E=b.onClickDecade,P=b.onClickMonth,C=b.onClickYear,T=(function(){switch(y){case"century":return E;case"decade":return C;case"year":return P;case"month":return w;default:throw new Error("Invalid view: ".concat(y,"."))}})();T&&T(v,g)}),_defineProperty$1k(_assertThisInitialized$1w(d),"onMouseOver",function(v){d.setState(function(g){return g.hover&&g.hover.getTime()===v.getTime()?null:{hover:v}})}),_defineProperty$1k(_assertThisInitialized$1w(d),"onMouseLeave",function(){d.setState({hover:null})}),d}return _createClass$2a(u,[{key:"activeStartDate",get:function(){var f=this.props.activeStartDate,p=this.state.activeStartDate;return f||p||getInitialActiveStartDate(this.props)}},{key:"value",get:function(){var f=this.props,p=f.selectRange,h=f.value,v=this.state.value;return p&&getIsSingleValue(v)?v:h!==void 0?h:v}},{key:"valueType",get:function(){var f=this.props.maxDetail;return getValueType(f)}},{key:"view",get:function(){var f=this.props,p=f.minDetail,h=f.maxDetail,v=f.view,g=this.state.view;return getView(v||g,p,h)}},{key:"views",get:function(){var f=this.props,p=f.minDetail,h=f.maxDetail;return getLimitedViews(p,h)}},{key:"hover",get:function(){var f=this.props.selectRange,p=this.state.hover;return f?p:null}},{key:"drillDownAvailable",get:function(){var f=this.view,p=this.views;return p.indexOf(f)<p.length-1}},{key:"drillUpAvailable",get:function(){var f=this.view,p=this.views;return p.indexOf(f)>0}},{key:"getProcessedValue",value:function(f){var p=this.props,h=p.minDate,v=p.maxDate,g=p.maxDetail,m=p.returnValue,y=(function(){switch(m){case"start":return getDetailValueFrom;case"end":return getDetailValueTo;case"range":return getDetailValueArray;default:throw new Error("Invalid returnValue.")}})();return y({value:f,minDate:h,maxDate:v,maxDetail:g})}},{key:"renderContent",value:function(f){var p=this.activeStartDate,h=this.onMouseOver,v=this.valueType,g=this.value,m=this.view,y=this.props,b=y.calendarType,w=y.locale,E=y.maxDate,P=y.minDate,C=y.selectRange,T=y.tileClassName,O=y.tileContent,x=y.tileDisabled,A=this.hover,D=f?getBeginNext(m,p):getBegin(m,p),j=this.drillDownAvailable?this.drillDown:this.onChange,M={activeStartDate:D,hover:A,locale:w,maxDate:E,minDate:P,onClick:j,onMouseOver:C?h:null,tileClassName:T,tileContent:O,tileDisabled:x,value:g,valueType:v};switch(m){case"century":{var N=this.props.formatYear;return React.createElement(CenturyView,_extends$i({formatYear:N},M))}case"decade":{var q=this.props.formatYear;return React.createElement(DecadeView,_extends$i({formatYear:q},M))}case"year":{var z=this.props,H=z.formatMonth,U=z.formatMonthYear;return React.createElement(YearView,_extends$i({formatMonth:H,formatMonthYear:U},M))}case"month":{var F=this.props,B=F.formatDay,G=F.formatLongDate,Q=F.formatShortWeekday,K=F.formatWeekday,Z=F.onClickWeekNumber,te=F.showDoubleView,oe=F.showFixedNumberOfWeeks,fe=F.showNeighboringMonth,le=F.showWeekNumbers,Re=this.onMouseLeave;return React.createElement(MonthView,_extends$i({calendarType:b,formatDay:B,formatLongDate:G,formatShortWeekday:Q,formatWeekday:K,onClickWeekNumber:Z,onMouseLeave:C?Re:null,showFixedNumberOfWeeks:typeof oe<"u"?oe:te,showNeighboringMonth:fe,showWeekNumbers:le},M))}default:throw new Error("Invalid view: ".concat(m,"."))}}},{key:"renderNavigation",value:function(){var f=this.props.showNavigation;if(!f)return null;var p=this.activeStartDate,h=this.view,v=this.views,g=this.props,m=g.formatMonthYear,y=g.formatYear,b=g.locale,w=g.maxDate,E=g.minDate,P=g.
23navigationAriaLabel,C=g.navigationAriaLive,T=g.navigationLabel,O=g.next2AriaLabel,x=g.next2Label,A=g.nextAriaLabel,D=g.nextLabel,j=g.prev2AriaLabel,M=g.prev2Label,N=g.prevAriaLabel,q=g.prevLabel,z=g.showDoubleView;return React.createElement(Navigation,{activeStartDate:p,drillUp:this.drillUp,formatMonthYear:m,formatYear:y,locale:b,maxDate:w,minDate:E,navigationAriaLabel:P,navigationAriaLive:C,navigationLabel:T,next2AriaLabel:O,next2Label:x,nextAriaLabel:A,nextLabel:D,prev2AriaLabel:j,prev2Label:M,prevAriaLabel:N,prevLabel:q,setActiveStartDate:this.setActiveStartDate,showDoubleView:z,view:h,views:v})}},{key:"render",value:function(){var f=this.props,p=f.className,h=f.inputRef,v=f.selectRange,g=f.showDoubleView,m=this.onMouseLeave,y=this.value,b=[].concat(y);return React.createElement("div",{className:mergeClassNames(baseClassName$1,v&&b.length===1&&"".concat(baseClassName$1,"--selectRange"),g&&"".concat(baseClassName$1,"--doubleView"),p),ref:h},this.renderNavigation(),React.createElement("div",{className:"".concat(baseClassName$1,"__viewContainer"),onBlur:v?m:null,onMouseLeave:v?m:null},this.renderContent(),g&&this.renderContent(!0)))}}]),u})(reactExports.Component);Calendar.defaultProps={goToRangeStartOnSelect:!0,maxDate:defaultMaxDate,maxDetail:"month",minDate:defaultMinDate,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var isActiveStartDate=PropTypes.instanceOf(Date),isLooseValue=PropTypes.oneOfType([PropTypes.string,isValue]);Calendar.propTypes={activeStartDate:isActiveStartDate,allowPartialRange:PropTypes.bool,calendarType:isCalendarType,className:isClassName,defaultActiveStartDate:isActiveStartDate,defaultValue:isLooseValue,defaultView:isView,formatDay:PropTypes.func,formatLongDate:PropTypes.func,formatMonth:PropTypes.func,formatMonthYear:PropTypes.func,formatShortWeekday:PropTypes.func,formatWeekday:PropTypes.func,formatYear:PropTypes.func,goToRangeStartOnSelect:PropTypes.bool,inputRef:isRef$1,locale:PropTypes.string,maxDate:isMaxDate,maxDetail:PropTypes.oneOf(allViews),minDate:isMinDate,minDetail:PropTypes.oneOf(allViews),navigationAriaLabel:PropTypes.string,navigationAriaLive:PropTypes.oneOf(["off","polite","assertive"]),navigationLabel:PropTypes.func,next2AriaLabel:PropTypes.string,next2Label:PropTypes.node,nextAriaLabel:PropTypes.string,nextLabel:PropTypes.node,onActiveStartDateChange:PropTypes.func,onChange:PropTypes.func,onClickDay:PropTypes.func,onClickDecade:PropTypes.func,onClickMonth:PropTypes.func,onClickWeekNumber:PropTypes.func,onClickYear:PropTypes.func,onDrillDown:PropTypes.func,onDrillUp:PropTypes.func,onViewChange:PropTypes.func,prev2AriaLabel:PropTypes.string,prev2Label:PropTypes.node,prevAriaLabel:PropTypes.string,prevLabel:PropTypes.node,returnValue:PropTypes.oneOf(["start","end","range"]),selectRange:PropTypes.bool,showDoubleView:PropTypes.bool,showFixedNumberOfWeeks:PropTypes.bool,showNavigation:PropTypes.bool,showNeighboringMonth:PropTypes.bool,showWeekNumbers:PropTypes.bool,tileClassName:PropTypes.oneOfType([PropTypes.func,isClassName]),tileContent:PropTypes.oneOfType([PropTypes.func,PropTypes.node]),tileDisabled:PropTypes.func,value:isLooseValue,view:isView};const esm$6=Object.freeze(Object.defineProperty({__proto__:null,Calendar,CenturyView,DecadeView,MonthView,Navigation,YearView,default:Calendar},Symbol.toStringTag,{value:"Module"})),require$$4$2=getAugmentedNamespace(esm$6);var cjs$6={},Fit={},cjs$5={},hasRequiredCjs$6;function requireCjs$6(){if(hasRequiredCjs$6)return cjs$5;hasRequiredCjs$6=1,Object.defineProperty(cjs$5,"__esModule",{value:!0});function l(u){return u.getBoundingClientRect()}function o(u,d){return{get collidedTop(){return l(u).top<l(d).top},get collidedBottom(){return l(u).bottom>l(d).bottom},get collidedLeft(){return l(u).left<l(d).left},get collidedRight(){return l(u).right>l(d).right},get overflowTop(){return l(d).top-l(u).top},get overflowBottom(){return l(u).bottom-l(d).bottom},get overflowLeft(){return l(d).left-l(u).left},get overflowRight(){return l(u).right-l(d).right}}}return cjs$5.default=o,cjs$5}const require$$4$1=getAugmentedNamespace(tinyWarning_esm);var hasRequiredFit;function requireFit(){if(hasRequiredFit)return Fit;hasRequiredFit=1;var l=Fit&&Fit.__extends||(function(){var M=function(N,q){return M=Object.
23setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,H){z.__proto__=H}||function(z,H){for(var U in H)Object.prototype.hasOwnProperty.call(H,U)&&(z[U]=H[U])},M(N,q)};return function(N,q){if(typeof q!="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");M(N,q);function z(){this.constructor=N}N.prototype=q===null?Object.create(q):(z.prototype=q.prototype,new z)}})(),o=Fit&&Fit.__assign||function(){return o=Object.assign||function(M){for(var N,q=1,z=arguments.length;q<z;q++){N=arguments[q];for(var H in N)Object.prototype.hasOwnProperty.call(N,H)&&(M[H]=N[H])}return M},o.apply(this,arguments)},u=Fit&&Fit.__createBinding||(Object.create?(function(M,N,q,z){z===void 0&&(z=q);var H=Object.getOwnPropertyDescriptor(N,q);(!H||("get"in H?!N.__esModule:H.writable||H.configurable))&&(H={enumerable:!0,get:function(){return N[q]}}),Object.defineProperty(M,z,H)}):(function(M,N,q,z){z===void 0&&(z=q),M[z]=N[q]})),d=Fit&&Fit.__setModuleDefault||(Object.create?(function(M,N){Object.defineProperty(M,"default",{enumerable:!0,value:N})}):function(M,N){M.default=N}),f=Fit&&Fit.__importStar||function(M){if(M&&M.__esModule)return M;var N={};if(M!=null)for(var q in M)q!=="default"&&Object.prototype.hasOwnProperty.call(M,q)&&u(N,M,q);return d(N,M),N},p=Fit&&Fit.__rest||function(M,N){var q={};for(var z in M)Object.prototype.hasOwnProperty.call(M,z)&&N.indexOf(z)<0&&(q[z]=M[z]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,z=Object.getOwnPropertySymbols(M);H<z.length;H++)N.indexOf(z[H])<0&&Object.prototype.propertyIsEnumerable.call(M,z[H])&&(q[z[H]]=M[z[H]]);return q},h=Fit&&Fit.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Fit,"__esModule",{value:!0});var v=f(requireReact()),g=requireReactDom(),m=h(requirePropTypes$1()),y=h(requireCjs$6()),b=h(require$$4$1),w=typeof document<"u",E=w&&"CSS"in window&&"supports"in window.CSS&&CSS.supports("display","contents"),P=w&&"MutationObserver"in window;function C(M){return M.charAt(0).toUpperCase()+M.slice(1)}function T(M){for(var N=M.parentElement;N;){var q=window.getComputedStyle(N).overflow;if(q.split(" ").every(function(z){return z==="auto"||z==="scroll"}))return N;N=N.parentElement}return document.documentElement}function O(M){var N=M.axis,q=M.container,z=M.element,H=M.invertAxis,U=M.scrollContainer,F=M.secondary,B=M.spacing,G=window.getComputedStyle(z),Q=q.parentElement;if(!Q)return;var K=(0,y.default)(Q,U),Z=(0,y.default)(Q,document.documentElement),te=N==="x",oe=te?"left":"top",fe=te?"right":"bottom",le=te?"width":"height",Re="overflow".concat(C(oe)),Ae="overflow".concat(C(fe)),_e="scroll".concat(C(oe)),ee=C(le),se="offset".concat(ee),$e="client".concat(ee),Ee="min-".concat(le),xe=U[se]-U[$e],Se=typeof B=="object"?B[oe]:B,Ie=-Math.max(K[Re],Z[Re]+document.documentElement[_e])-Se,ge=typeof B=="object"?B[fe]:B,Y=-Math.max(K[Ae],Z[Ae]-document.documentElement[_e])-ge-xe;F&&(Ie+=Q[$e],Y+=Q[$e]);var ie=z[se];function ce(){z.style[oe]="auto",z.style[fe]=F?"0":"100%"}function ue(){z.style[oe]=F?"0":"100%",z.style[fe]="auto"}function pe(we,Oe){var Ne=ie<=we;return Ne&&Oe(),Ne}function Te(){return pe(Ie,ce)}function Ce(){return pe(Y,ue)}function Fe(){var we=Ie>Y,Oe=G.getPropertyValue(Ee),Ne=Oe?parseInt(Oe,10):null;function qe(Be){(0,b.default)(!Ne||Be>=Ne,"<Fit />'s child will not fit anywhere with its current ".concat(Ee," of ").concat(Ne,"px."));var Ve=Math.max(Be,Ne||0);(0,b.default)(!1,"<Fit />'s child needed to have its ".concat(le," decreased to ").concat(Ve,"px.")),z.style[le]="".concat(Ve,"px")}we?(qe(Ie),ce()):(qe(Y),ue())}var He;H?He=Te()||Ce():He=Ce()||Te(),He||Fe()}function x(M){O(M)}function A(M){O(o(o({},M),{axis:M.axis==="x"?"y":"x",secondary:!0}))}function D(M){var N=M.invertAxis,q=M.invertSecondaryAxis,z=p(M,["invertAxis","invertSecondaryAxis"]);x(o(o({},z),{invertAxis:N})),A(o(o({},z),{invertAxis:q}))}var j=(function(M){l(N,M);function N(){var q=M!==null&&M.apply(this,arguments)||this;return q.fit=function(){var z=q,H=z.scrollContainer,U=z.container,F=z.element;if(!(!H||!U||!F)){var B=F.clientWidth,G=F.clientHeight;if(!(q.elementWidth===B&&q.elementHeight===G)){q.elementWidth=B,q.elementHeight=G;var Q=U.parentElement;if(Q){var K=window.getComputedStyle(F),Z=K.position;Z!=="absolute"&&(F.style.position="absolute");var te=window.getComputedStyle(Q),oe=te.position;oe!=="relative"&&oe!=="absolute"&&(Q.style.position="relative");var fe=q.props,le=fe.invertAxis,Re=fe.invertSecondaryAxis,Ae=fe.mainAxis,_e=Ae===void 0?"y":Ae,ee=fe.spacing,se=ee===void 0?8:ee;D({axis:_e,container:U,element:F,invertAxis:le,invertSecondaryAxis:Re,scrollC
23ontainer:H,spacing:se})}}}},q}return N.prototype.componentDidMount=function(){var q=this;if(!E){var z=(0,g.findDOMNode)(this);if(!z||!(z instanceof HTMLElement))return;this.container=z,this.element=z,this.scrollContainer=T(z)}this.fit();var H=function(){q.fit()};if(P&&this.element){var U=new MutationObserver(H);U.observe(this.element,{attributes:!0,attributeFilter:["class","style"]})}},N.prototype.render=function(){var q=this,z=this.props.children,H=v.default.Children.only(z);return E?v.default.createElement("span",{ref:function(U){q.container=U;var F=U&&U.firstElementChild;!F||!(F instanceof HTMLElement)||(q.element=F,q.scrollContainer=T(F))},style:{display:"contents"}},H):H},N.propTypes={children:m.default.node.isRequired,invertAxis:m.default.bool,invertSecondaryAxis:m.default.bool,mainAxis:m.default.oneOf(["x","y"]),spacing:m.default.oneOfType([m.default.number,m.default.shape({bottom:m.default.number.isRequired,left:m.default.number.isRequired,right:m.default.number.isRequired,top:m.default.number.isRequired})])},N})(v.Component);return Fit.default=j,Fit}var hasRequiredCjs$5;function requireCjs$5(){if(hasRequiredCjs$5)return cjs$6;hasRequiredCjs$5=1;var l=cjs$6&&cjs$6.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(cjs$6,"__esModule",{value:!0}),cjs$6.Fit=void 0;var o=l(requireFit());return cjs$6.Fit=o.default,cjs$6.default=o.default,cjs$6}var DateInput={},cjs$4={},hasRequiredCjs$4;function requireCjs$4(){return hasRequiredCjs$4||(hasRequiredCjs$4=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.getISOLocalDateTime=l.getISOLocalDate=l.getISOLocalMonth=l.getHoursMinutesSeconds=l.getHoursMinutes=l.getDaysInMonth=l.getDayRange=l.getNextDayEnd=l.getPreviousDayEnd=l.getDayEnd=l.getNextDayStart=l.getPreviousDayStart=l.getDayStart=l.getMonthRange=l.getNextMonthEnd=l.getPreviousMonthEnd=l.getMonthEnd=l.getNextMonthStart=l.getPreviousMonthStart=l.getMonthStart=l.getYearRange=l.getNextYearEnd=l.getPreviousYearEnd=l.getYearEnd=l.getNextYearStart=l.getPreviousYearStart=l.getYearStart=l.getDecadeRange=l.getNextDecadeEnd=l.getPreviousDecadeEnd=l.getDecadeEnd=l.getNextDecadeStart=l.getPreviousDecadeStart=l.getDecadeStart=l.getCenturyRange=l.getNextCenturyEnd=l.getPreviousCenturyEnd=l.getCenturyEnd=l.getNextCenturyStart=l.getPreviousCenturyStart=l.getCenturyStart=l.getMilliseconds=l.getSeconds=l.getMinutes=l.getHours=l.getDate=l.getMonthHuman=l.getMonth=l.getYear=void 0;function o(H,U,F){return function(G,Q){Q===void 0&&(Q=F);var K=H(G)+Q;return U(K)}}function u(H){return function(F){return new Date(H(F).getTime()-1)}}function d(H,U){return function(B){return[H(B),U(B)]}}function f(H){if(H instanceof Date)return H.getFullYear();if(typeof H=="number")return H;var U=parseInt(H,10);if(typeof H=="string"&&!isNaN(U))return U;throw new Error("Failed to get year from date: ".concat(H,"."))}l.getYear=f;function p(H){if(H instanceof Date)return H.getMonth();throw new Error("Failed to get month from date: ".concat(H,"."))}l.getMonth=p;function h(H){if(H instanceof Date)return H.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(H,"."))}l.getMonthHuman=h;
23function v(H){if(H instanceof Date)return H.getDate();throw new Error("Failed to get year from date: ".concat(H,"."))}l.getDate=v;function g(H){if(H instanceof Date)return H.getHours();if(typeof H=="string"){var U=H.split(":");if(U.length>=2){var F=U[0];if(F){var B=parseInt(F,10);if(!isNaN(B))return B}}}throw new Error("Failed to get hours from date: ".concat(H,"."))}l.getHours=g;function m(H){if(H instanceof Date)return H.getMinutes();if(typeof H=="string"){var U=H.split(":");if(U.length>=2){var F=U[1]||"0",B=parseInt(F,10);if(!isNaN(B))return B}}throw new Error("Failed to get minutes from date: ".concat(H,"."))}l.getMinutes=m;function y(H){if(H instanceof Date)return H.getSeconds();if(typeof H=="string"){var U=H.split(":");if(U.length>=2){var F=U[2]||"0",B=parseInt(F,10);if(!isNaN(B))return B}}throw new Error("Failed to get seconds from date: ".concat(H,"."))}l.getSeconds=y;function b(H){if(H instanceof Date)return H.getMilliseconds();if(typeof H=="string"){var U=H.split(":");if(U.length>=2){var F=U[2]||"0",B=F.split(".")[1]||"0",G=parseInt(B,10);if(!isNaN(G))return G}}throw new Error("Failed to get seconds from date: ".concat(H,"."))}l.getMilliseconds=b;function w(H){var U=f(H),F=U+(-U+1)%100,B=new Date;return B.setFullYear(F,0,1),B.setHours(0,0,0,0),B}l.getCenturyStart=w,l.getPreviousCenturyStart=o(f,w,-100),l.getNextCenturyStart=o(f,w,100),l.getCenturyEnd=u(l.getNextCenturyStart),l.getPreviousCenturyEnd=o(f,l.getCenturyEnd,-100),l.getNextCenturyEnd=o(f,l.getCenturyEnd,100),l.getCenturyRange=d(w,l.getCenturyEnd);function E(H){var U=f(H),F=U+(-U+1)%10,B=new Date;return B.setFullYear(F,0,1),B.setHours(0,0,0,0),B}l.getDecadeStart=E,l.getPreviousDecadeStart=o(f,E,-10),l.getNextDecadeStart=o(f,E,10),l.getDecadeEnd=u(l.getNextDecadeStart),l.getPreviousDecadeEnd=o(f,l.getDecadeEnd,-10),l.getNextDecadeEnd=o(f,l.getDecadeEnd,10),l.getDecadeRange=d(E,l.getDecadeEnd);function P(H){var U=f(H),F=new Date;return F.setFullYear(U,0,1),F.setHours(0,0,0,0),F}l.getYearStart=P,l.getPreviousYearStart=o(f,P,-1),l.getNextYearStart=o(f,P,1),l.getYearEnd=u(l.getNextYearStart),l.getPreviousYearEnd=o(f,l.getYearEnd,-1),l.getNextYearEnd=o(f,l.getYearEnd,1),l.getYearRange=d(P,l.getYearEnd);function C(H,U){return function(B,G){G===void 0&&(G=U);var Q=f(B),K=p(B)+G,Z=new Date;return Z.setFullYear(Q,K,1),Z.setHours(0,0,0,0),H(Z)}}function T(H){var U=f(H),F=p(H),B=new Date;return B.setFullYear(U,F,1),B.setHours(0,0,0,0),B}l.getMonthStart=T,l.getPreviousMonthStart=C(T,-1),l.getNextMonthStart=C(T,1),l.getMonthEnd=u(l.getNextMonthStart),l.getPreviousMonthEnd=C(l.getMonthEnd,-1),l.getNextMonthEnd=C(l.getMonthEnd,1),l.getMonthRange=d(T,l.getMonthEnd);function O(H,U){return function(B,G){G===void 0&&(G=U);var Q=f(B),K=p(B),Z=v(B)+G,te=new Date;return te.setFullYear(Q,K,Z),te.setHours(0,0,0,0),H(te)}}function x(H){var U=f(H),F=p(H),B=v(H),G=new Date;return G.setFullYear(U,F,B),G.setHours(0,0,0,0),G}l.getDayStart=x,l.getPreviousDayStart=O(x,-1),l.getNextDayStart=O(x,1),l.getDayEnd=u(l.getNextDayStart),l.getPreviousDayEnd=O(l.getDayEnd,-1),l.getNextDayEnd=O(l.getDayEnd,1),l.getDayRange=d(x,l.getDayEnd);function A(H){return v((0,l.getMonthEnd)(H))}l.getDaysInMonth=A;function D(H,U){U===void 0&&(U=2);var F="".concat(H);return F.length>=U?H:"0000".concat(F).slice(-U)}function j(H){var U=D(g(H)),F=D(m(H));return"".concat(U,":").concat(F)}l.getHoursMinutes=j;function M(H){var U=D(g(H)),F=D(m(H)),B=D(y(H));return"".concat(U,":").concat(F,":").concat(B)}l.getHoursMinutesSeconds=M;function N(H){var U=D(f(H),4),F=D(h(H));return"".concat(U,"-").concat(F)}l.getISOLocalMonth=N;function q(H){var U=D(f(H),4),F=D(h(H)),B=D(v(H));return"".concat(U,"-").concat(F,"-").concat(B)}l.getISOLocalDate=q;function z(H){return"".concat(q(H),"T").concat(M(H))}l.getISOLocalDateTime=z})(cjs$4)),cjs$4}var Divider$1={},hasRequiredDivider;function requireDivider(){return hasRequiredDivider||(hasRequiredDivider=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=f;var o=d(requireReact()),u=d(requirePropTypes$1());function d(p){return p&&p.__esModule?p:{default:p}}function f(p){var h=p.children;return o.default.createElement("span",{className:"react-date-picker__inputGroup__divider"},h)}f.propTypes={children:u.default.node}})(Divider$1)),Divider$1}var DayInput={},Input$3={},cjs$3={},hasRequiredCjs$3;function requireCjs$3(){if(hasRequiredCjs$3)return cjs$3;
23hasRequiredCjs$3=1,Object.defineProperty(cjs$3,"__esModule",{value:!0}),cjs$3.updateInputWidth=cjs$3.measureText=cjs$3.getFontShorthand=void 0;var l=["normal","small-caps"];function o(p){if(!p)return"";var h=window.getComputedStyle(p);if(h.font)return h.font;var v=h.fontFamily!=="";if(!v)return"";var g=l.includes(h.fontVariant)?h.fontVariant:"normal";return"".concat(h.fontStyle," ").concat(g," ").concat(h.fontWeight," ").concat(h.fontSize," / ").concat(h.lineHeight," ").concat(h.fontFamily)}cjs$3.getFontShorthand=o;var u;function d(p,h){var v=u||(u=document.createElement("canvas")),g=v.getContext("2d");if(!g)return null;g.font=h;var m=g.measureText(p).width;return Math.ceil(m)}cjs$3.measureText=d;function f(p){if(typeof document>"u"||!p)return null;var h=o(p),v=p.value||p.placeholder,g=d(v,h);return g===null?null:(p.style.width="".concat(g,"px"),g)}return cjs$3.updateInputWidth=f,cjs$3.default=f,cjs$3}var hasRequiredInput$1;function requireInput$1(){return hasRequiredInput$1||(hasRequiredInput$1=1,(function(l){function o(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(O){return typeof O}:o=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},o(C)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=P;var u=g(requireReact()),d=g(requirePropTypes$1()),f=g(require$$3$1),p=v(requireCjs$3());function h(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return h=function(){return C},C}function v(C){if(C&&C.__esModule)return C;if(C===null||o(C)!=="object"&&typeof C!="function")return{default:C};var T=h();if(T&&T.has(C))return T.get(C);var O={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in C)if(Object.prototype.hasOwnProperty.call(C,A)){var D=x?Object.getOwnPropertyDescriptor(C,A):null;D&&(D.get||D.set)?Object.defineProperty(O,A,D):O[A]=C[A]}return O.default=C,T&&T.set(C,O),O}function g(C){return C&&C.__esModule?C:{default:C}}var m=typeof window<"u"&&"navigator"in window&&navigator.userAgent.match(/ Edge\/1/);function y(C){var T=C.target;m?requestAnimationFrame(function(){return T.select()}):T.select()}function b(C){if(!document.fonts)return;var T=(0,p.getFontShorthand)(C);if(!T)return;var O=document.fonts.check(T);if(O)return;function x(){(0,p.default)(C)}document.fonts.addEventListener("loadingdone",x)}function w(){return typeof window>"u"?null:window.getSelection().toString()}function E(C){return function(O){var x=O.key,A=O.target,D=A.value,j=!isNaN(parseInt(x,10)),M=w();j&&(M||D.length<=C)||O.preventDefault()}}function P(C){var T=C.ariaLabel,O=C.autoFocus,x=C.className,A=C.disabled,D=C.itemRef,j=C.max,M=C.min,N=C.name,q=C.nameForClass,z=C.onChange,H=C.onKeyDown,U=C.onKeyUp,F=C.placeholder,B=F===void 0?"--":F,G=C.renderAriaLabelAsTitle,Q=C.required,K=C.showLeadingZeros,Z=C.step,te=C.value,oe=K&&te!==null&&te<10,fe=j.toString().length;return[oe&&u.default.createElement("span",{key:"leadingZero",className:"".concat(x,"__leadingZero")},"0"),u.default.createElement("input",{key:"input","aria-label":T,autoComplete:"off",autoFocus:O,className:(0,f.default)("".concat(x,"__input"),"".concat(x,"__").concat(q||N),oe&&"".concat(x,"__input--hasLeadingZero")),"data-input":"true",disabled:A,inputMode:"numeric",max:j,min:M,name:N,onChange:z,onFocus:y,onKeyDown:H,onKeyPress:E(fe),onKeyUp:function(Re){(0,p.default)(Re.target),U&&U(Re)},placeholder:B,ref:function(Re){Re&&((0,p.default)(Re),b(Re)),D&&D(Re,N)},required:Q,step:Z,title:G&&T,type:"number",value:te!==null?te:""})]}P.propTypes={ariaLabel:d.default.string,autoFocus:d.default.bool,className:d.default.string.isRequired,disabled:d.default.bool,itemRef:d.default.func,max:d.default.number,min:d.default.number,name:d.default.string,nameForClass:d.default.string,onChange:d.default.func,onKeyDown:d.default.func,onKeyUp:d.default.func,placeholder:d.default.string,required:d.default.bool,showLeadingZeros:d.default.bool,step:d.default.number,value:d.default.number}})(Input$3)),Input$3}var propTypes={},hasRequiredPropTypes;function requirePropTypes(){if(hasRequiredPropTypes)return propT
23ypes;hasRequiredPropTypes=1,Object.defineProperty(propTypes,"__esModule",{value:!0}),propTypes.isMaxDate=propTypes.isMinDate=propTypes.isValueType=void 0;var l=o(requirePropTypes$1());function o(P){return P&&P.__esModule?P:{default:P}}function u(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(T){return typeof T}:u=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},u(P)}function d(P){return v(P)||h(P)||p(P)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(P,C){if(P){if(typeof P=="string")return g(P,C);var T=Object.prototype.toString.call(P).slice(8,-1);if(T==="Object"&&P.constructor&&(T=P.constructor.name),T==="Map"||T==="Set")return Array.from(P);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return g(P,C)}}function h(P){if(typeof Symbol<"u"&&Symbol.iterator in Object(P))return Array.from(P)}function v(P){if(Array.isArray(P))return g(P)}function g(P,C){(C==null||C>P.length)&&(C=P.length);for(var T=0,O=new Array(C);T<C;T++)O[T]=P[T];return O}var m=["century","decade","year","month"],y=[].concat(d(m.slice(1)),["day"]),b=l.default.oneOf(y);propTypes.isValueType=b;var w=function(C,T,O){var x=C[T];if(!x)return null;if(!(x instanceof Date))return new Error("Invalid prop `".concat(T,"` of type `").concat(u(x),"` supplied to `").concat(O,"`, expected instance of `Date`."));var A=C.maxDate;return A&&x>A?new Error("Invalid prop `".concat(T,"` of type `").concat(u(x),"` supplied to `").concat(O,"`, minDate cannot be larger than maxDate.")):null};propTypes.isMinDate=w;var E=function(C,T,O){var x=C[T];if(!x)return null;if(!(x instanceof Date))return new Error("Invalid prop `".concat(T,"` of type `").concat(u(x),"` supplied to `").concat(O,"`, expected instance of `Date`."));var A=C.minDate;return A&&x<A?new Error("Invalid prop `".concat(T,"` of type `").concat(u(x),"` supplied to `").concat(O,"`, maxDate cannot be smaller than minDate.")):null};return propTypes.isMaxDate=E,propTypes}var utils$2={},hasRequiredUtils$1;function requireUtils$1(){if(hasRequiredUtils$1)return utils$2;hasRequiredUtils$1=1,Object.defineProperty(utils$2,"__esModule",{value:!0}),utils$2.between=h,utils$2.safeMin=g,utils$2.safeMax=m;function l(y){return f(y)||d(y)||u(y)||o()}function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(y,b){if(y){if(typeof y=="string")return p(y,b);var w=Object.prototype.toString.call(y).slice(8,-1);if(w==="Object"&&y.constructor&&(w=y.constructor.name),w==="Map"||w==="Set")return Array.from(y);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return p(y,b)}}function d(y){if(typeof Symbol<"u"&&Symbol.iterator in Object(y))return Array.from(y)}function f(y){if(Array.isArray(y))return p(y)}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var w=0,E=new Array(b);w<b;w++)E[w]=y[w];return E}function h(y,b,w){return b&&b>y?b:w&&w<y?w:y}function v(y){return y!==null&&y!==!1&&!Number.isNaN(Number(y))}function g(){for(var y=arguments.length,b=new Array(y),w=0;w<y;w++)b[w]=arguments[w];return Math.min.apply(Math,l(b.filter(v)))}function m(){for(var y=arguments.length,b=new Array(y),w=0;w<y;w++)b[w]=arguments[w];return Math.max.apply(Math,l(b.filter(v)))}return utils$2}var hasRequiredDayInput;function requireDayInput(){return hasRequiredDayInput||(hasRequiredDayInput=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=b;var o=v(requireReact()),u=v(requirePropTypes$1()),d=requireCjs$4(),f=v(requireInput$1()),p=requirePropTypes(),h=requireUtils$1();function v(w){return w&&w.__esModule?w:{default:w}}function g(){return g=Object.assign||function(w){for(var E=1;E<arguments.length;E++){var P=arguments[E];for(var C in P)Object.prototype.hasOwnProperty.call(P,C)&&(w[C]=P[C])}return w},g.apply(this,arguments)}function m(w,E){if(w==null)return{};var P=y(w,E),C,T;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(w);for(T=0;T<O.length;T++)C=O[T],!(E.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(P[C]=w[C])}return P}
25function y(w,E){if(w==null)return{};var P={},C=Object.keys(w),T,O;for(O=0;O<C.length;O++)T=C[O],!(E.indexOf(T)>=0)&&(P[T]=w[T]);return P}function b(w){var E=w.maxDate,P=w.minDate,C=w.month,T=w.year,O=m(w,["maxDate","minDate","month","year"]),x=(function(){return C?(0,d.getDaysInMonth)(new Date(T,C-1,1)):31})();function A(M){return M&&T===(0,d.getYear)(M)&&C===(0,d.getMonthHuman)(M)}var D=(0,h.safeMin)(x,A(E)&&(0,d.getDate)(E)),j=(0,h.safeMax)(1,A(P)&&(0,d.getDate)(P));return o.default.createElement(f.default,g({max:D,min:j,name:"day"},O))}b.propTypes={ariaLabel:u.default.string,className:u.default.string.isRequired,disabled:u.default.bool,itemRef:u.default.func,maxDate:p.isMaxDate,minDate:p.isMinDate,month:u.default.number,onChange:u.default.func,onKeyDown:u.default.func,onKeyUp:u.default.func,placeholder:u.default.string,renderAriaLabelAsTitle:u.default.bool,required:u.default.bool,showLeadingZeros:u.default.bool,value:u.default.number,year:u.default.number}})(DayInput)),DayInput}var MonthInput={},hasRequiredMonthInput;function requireMonthInput(){return hasRequiredMonthInput||(hasRequiredMonthInput=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=b;var o=v(requireReact()),u=v(requirePropTypes$1()),d=requireCjs$4(),f=v(requireInput$1()),p=requirePropTypes(),h=requireUtils$1();function v(w){return w&&w.__esModule?w:{default:w}}function g(){return g=Object.assign||function(w){for(var E=1;E<arguments.length;E++){var P=arguments[E];for(var C in P)Object.prototype.hasOwnProperty.call(P,C)&&(w[C]=P[C])}return w},g.apply(this,arguments)}function m(w,E){if(w==null)return{};var P=y(w,E),C,T;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(w);for(T=0;T<O.length;T++)C=O[T],!(E.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(P[C]=w[C])}return P}function y(w,E){if(w==null)return{};var P={},C=Object.keys(w),T,O;for(O=0;O<C.length;O++)T=C[O],!(E.indexOf(T)>=0)&&(P[T]=w[T]);return P}function b(w){var E=w.maxDate,P=w.minDate,C=w.year,T=m(w,["maxDate","minDate","year"]);function O(D){return D&&C===(0,d.getYear)(D)}var x=(0,h.safeMin)(12,O(E)&&(0,d.getMonthHuman)(E)),A=(0,h.safeMax)(1,O(P)&&(0,d.getMonthHuman)(P));return o.default.createElement(f.default,g({max:x,min:A,name:"month"},T))}b.propTypes={ariaLabel:u.default.string,className:u.default.string.isRequired,disabled:u.default.bool,itemRef:u.default.func,maxDate:p.isMaxDate,minDate:p.isMinDate,onChange:u.default.func,onKeyDown:u.default.func,onKeyUp:u.default.func,placeholder:u.default.string,renderAriaLabelAsTitle:u.default.bool,required:u.default.bool,showLeadingZeros:u.default.bool,value:u.default.number,year:u.default.number}})(MonthInput)),MonthInput}var MonthSelect={},dateFormatter={};const require$$0$7=getAugmentedNamespace(esm$7);var hasRequiredDateFormatter;function requireDateFormatter(){if(hasRequiredDateFormatter)return dateFormatter;hasRequiredDateFormatter=1,Object.defineProperty(dateFormatter,"__esModule",{value:!0}),dateFormatter.getFormatter=u,dateFormatter.formatShortMonth=dateFormatter.formatMonth=void 0;var l=o(require$$0$7);function o(m){return m&&m.__esModule?m:{default:m}}function u(m){return function(y,b){return b.toLocaleString(y||(0,l.default)(),m)}}function d(m){var y=new Date(m);return new Date(y.setHours(12))}function f(m){return function(y,b){return u(m)(y,d(b))}}var p={month:"long"},h={month:"short"},v=f(p);dateFormatter.formatMonth=v;var g=f(h);return dateFormatter.formatShortMonth=g,dateFormatter}var hasRequiredMonthSelect;function requireMonthSelect(){return hasRequiredMonthSelect||(hasRequiredMonthSelect=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=x;var o=g(requireReact()),u=g(requirePropTypes$1()),d=g(require$$3$1),f=requireCjs$4(),p=requireDateFormatter(),h=requirePropTypes(),v=requireUtils$1();function g(A){return A&&A.__esModule?A:{default:A}}function m(){return m=Object.assign||function(A){for(var D=1;D<arguments.length;D++){var j=arguments[D];for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(A[M]=j[M])}return A},m.apply(this,arguments)}function y(A){return P(A)||E(A)||w(A)||b()}function b(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(A,D){if(A){if(typeof A=="string")return C(A,D);var j=Object.prototype.toString.call(A).slice(8,-1);if(j==="Object"&&A.constructor&&(j=A.constructor.name),j==="Map"||j==="Set")return Array.from(A);
26if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return C(A,D)}}function E(A){if(typeof Symbol<"u"&&Symbol.iterator in Object(A))return Array.from(A)}function P(A){if(Array.isArray(A))return C(A)}function C(A,D){(D==null||D>A.length)&&(D=A.length);for(var j=0,M=new Array(D);j<D;j++)M[j]=A[j];return M}function T(A,D){if(A==null)return{};var j=O(A,D),M,N;if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(A);for(N=0;N<q.length;N++)M=q[N],!(D.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(A,M)&&(j[M]=A[M])}return j}function O(A,D){if(A==null)return{};var j={},M=Object.keys(A),N,q;for(q=0;q<M.length;q++)N=M[q],!(D.indexOf(N)>=0)&&(j[N]=A[N]);return j}function x(A){var D=A.ariaLabel,j=A.className,M=A.itemRef,N=A.locale,q=A.maxDate,z=A.minDate,H=A.placeholder,U=H===void 0?"--":H,F=A.renderAriaLabelAsTitle,B=A.short,G=A.value,Q=A.year,K=T(A,["ariaLabel","className","itemRef","locale","maxDate","minDate","placeholder","renderAriaLabelAsTitle","short","value","year"]);function Z(Ae){return Ae&&Q===(0,f.getYear)(Ae)}var te=(0,v.safeMin)(12,Z(q)&&(0,f.getMonthHuman)(q)),oe=(0,v.safeMax)(1,Z(z)&&(0,f.getMonthHuman)(z)),fe=y(Array(12)).map(function(Ae,_e){return new Date(2019,_e,1)}),le="month",Re=B?p.formatShortMonth:p.formatMonth;return o.default.createElement("select",m({"aria-label":D,className:(0,d.default)("".concat(j,"__input"),"".concat(j,"__").concat(le)),"data-input":"true",name:le,ref:function(_e){M&&M(_e,le)},title:F&&D,value:G!==null?G:""},K),!G&&o.default.createElement("option",{value:""},U),fe.map(function(Ae){var _e=(0,f.getMonthHuman)(Ae),ee=_e<oe||_e>te;return o.default.createElement("option",{key:_e,disabled:ee,value:_e},Re(N,Ae))}))}x.propTypes={ariaLabel:u.default.string,className:u.default.string.isRequired,disabled:u.default.bool,itemRef:u.default.func,locale:u.default.string,maxDate:h.isMaxDate,minDate:h.isMinDate,onChange:u.default.func,onKeyDown:u.default.func,onKeyUp:u.default.func,placeholder:u.default.string,renderAriaLabelAsTitle:u.default.bool,required:u.default.bool,short:u.default.bool,value:u.default.number,year:u.default.number}})(MonthSelect)),MonthSelect}var YearInput={},hasRequiredYearInput;function requireYearInput(){return hasRequiredYearInput||(hasRequiredYearInput=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=b;var o=v(requireReact()),u=v(requirePropTypes$1()),d=requireCjs$4(),f=v(requireInput$1()),p=requirePropTypes(),h=requireUtils$1();function v(w){return w&&w.__esModule?w:{default:w}}function g(){return g=Object.assign||function(w){for(var E=1;E<arguments.length;E++){var P=arguments[E];for(var C in P)Object.prototype.hasOwnProperty.call(P,C)&&(w[C]=P[C])}return w},g.apply(this,arguments)}function m(w,E){if(w==null)return{};var P=y(w,E),C,T;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(w);for(T=0;T<O.length;T++)C=O[T],!(E.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(P[C]=w[C])}return P}function y(w,E){if(w==null)return{};var P={},C=Object.keys(w),T,O;for(O=0;O<C.length;O++)T=C[O],!(E.indexOf(T)>=0)&&(P[T]=w[T]);return P}function b(w){var E=w.maxDate,P=w.minDate,C=w.placeholder,T=C===void 0?"----":C,O=w.valueType,x=m(w,["maxDate","minDate","placeholder","valueType"]),A=(0,h.safeMin)(275760,E&&(0,d.getYear)(E)),D=(0,h.safeMax)(0,P&&(0,d.getYear)(P)),j=(function(){return O==="century"?10:1})();return o.default.createElement(f.default,g({max:A,min:D,name:"year",placeholder:T,step:j},x))}b.propTypes={ariaLabel:u.default.string,className:u.default.string.isRequired,disabled:u.default.bool,itemRef:u.default.func,maxDate:p.isMaxDate,minDate:p.isMinDate,onChange:u.default.func,onKeyDown:u.default.func,onKeyUp:u.default.func,placeholder:u.default.string,renderAriaLabelAsTitle:u.default.bool,required:u.default.bool,value:u.default.number,valueType:p.isValueType}})(YearInput)),YearInput}var NativeInput={},hasRequiredNativeInput;function requireNativeInput(){return hasRequiredNativeInput||(hasRequiredNativeInput=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=h;var o=p(requireReact()),u=p(requirePropTypes$1()),d=requireCjs$4(),f=requirePropTypes();
26function p(v){return v&&v.__esModule?v:{default:v}}function h(v){var g=v.ariaLabel,m=v.disabled,y=v.maxDate,b=v.minDate,w=v.name,E=v.onChange,P=v.required,C=v.value,T=v.valueType,O=(function(){switch(T){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType.")}})(),x=(function(){switch(T){case"century":case"decade":case"year":return d.getYear;case"month":return d.getISOLocalMonth;case"day":return d.getISOLocalDate;default:throw new Error("Invalid valueType.")}})();function A(D){D.stopPropagation()}return o.default.createElement("input",{"aria-label":g,disabled:m,max:y?x(y):null,min:b?x(b):null,name:w,onChange:E,onFocus:A,required:P,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:O,value:C?x(C):""})}h.propTypes={ariaLabel:u.default.string,disabled:u.default.bool,maxDate:f.isMaxDate,minDate:f.isMinDate,name:u.default.string,onChange:u.default.func,required:u.default.bool,value:u.default.oneOfType([u.default.string,u.default.instanceOf(Date)]),valueType:f.isValueType}})(NativeInput)),NativeInput}var dates={},hasRequiredDates;function requireDates(){if(hasRequiredDates)return dates;hasRequiredDates=1,Object.defineProperty(dates,"__esModule",{value:!0}),dates.getBegin=o,dates.getEnd=u;var l=requireCjs$4();function o(d,f){switch(d){case"century":return(0,l.getCenturyStart)(f);case"decade":return(0,l.getDecadeStart)(f);case"year":return(0,l.getYearStart)(f);case"month":return(0,l.getMonthStart)(f);case"day":return(0,l.getDayStart)(f);default:throw new Error("Invalid rangeType: ".concat(d))}}function u(d,f){switch(d){case"century":return(0,l.getCenturyEnd)(f);case"decade":return(0,l.getDecadeEnd)(f);case"year":return(0,l.getYearEnd)(f);case"month":return(0,l.getMonthEnd)(f);case"day":return(0,l.getDayEnd)(f);default:throw new Error("Invalid rangeType: ".concat(d))}}return dates}var hasRequiredDateInput;function requireDateInput(){return hasRequiredDateInput||(hasRequiredDateInput=1,(function(l){function o(we){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(Ne){return typeof Ne}:o=function(Ne){return Ne&&typeof Symbol=="function"&&Ne.constructor===Symbol&&Ne!==Symbol.prototype?"symbol":typeof Ne},o(we)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=O(requireReact()),d=C(requirePropTypes$1()),f=requireCjs$4(),p=C(requireDivider()),h=C(requireDayInput()),v=C(requireMonthInput()),g=C(requireMonthSelect()),m=C(requireYearInput()),y=C(requireNativeInput()),b=requireDateFormatter(),w=requireDates(),E=requirePropTypes(),P=requireUtils$1();function C(we){return we&&we.__esModule?we:{default:we}}function T(){if(typeof WeakMap!="function")return null;var we=new WeakMap;return T=function(){return we},we}function O(we){if(we&&we.__esModule)return we;if(we===null||o(we)!=="object"&&typeof we!="function")return{default:we};var Oe=T();if(Oe&&Oe.has(we))return Oe.get(we);var Ne={},qe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Be in we)if(Object.prototype.hasOwnProperty.call(we,Be)){var Ve=qe?Object.getOwnPropertyDescriptor(we,Be):null;Ve&&(Ve.get||Ve.set)?Object.defineProperty(Ne,Be,Ve):Ne[Be]=we[Be]}return Ne.default=we,Oe&&Oe.set(we,Ne),Ne}function x(){return x=Object.assign||function(we){for(var Oe=1;Oe<arguments.length;Oe++){var Ne=arguments[Oe];for(var qe in Ne)Object.prototype.hasOwnProperty.call(Ne,qe)&&(we[qe]=Ne[qe])}return we},x.apply(this,arguments)}function A(we,Oe){return M(we)||j(we,Oe)||fe(we,Oe)||D()}function D(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(we,Oe){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(we)))){var Ne=[],qe=!0,Be=!1,Ve=void 0;try{for(var Ye=we[Symbol.iterator](),Ge;!(qe=(Ge=Ye.next()).done)&&(Ne.push(Ge.value),!(Oe&&Ne.length===Oe));qe=!0);}catch(dt){Be=!0,Ve=dt}finally{try{!qe&&Ye.return!=null&&Ye.return()}finally{if(Be)throw Ve}}return Ne}}function M(we){if(Array.isArray(we))return we}function N(we,Oe){if(!(we instanceof Oe))throw new TypeError("Cannot call a class as a function")}function q(we,Oe){for(var Ne=0;Ne<Oe.length;Ne++){var qe=Oe[Ne];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(we,qe.key,qe)}}function z(we,Oe,Ne){return Oe&&q(we.prototype,Oe),Ne&&q(we,Ne),we}function H(we,Oe){if(typeof Oe!="function"&&Oe!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),Oe&&U(we,Oe)}
27function U(we,Oe){return U=Object.setPrototypeOf||function(qe,Be){return qe.__proto__=Be,qe},U(we,Oe)}function F(we){var Oe=Q();return function(){var qe=K(we),Be;if(Oe){var Ve=K(this).constructor;Be=Reflect.construct(qe,arguments,Ve)}else Be=qe.apply(this,arguments);return B(this,Be)}}function B(we,Oe){return Oe&&(o(Oe)==="object"||typeof Oe=="function")?Oe:G(we)}function G(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function K(we){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(Ne){return Ne.__proto__||Object.getPrototypeOf(Ne)},K(we)}function Z(we,Oe,Ne){return Oe in we?Object.defineProperty(we,Oe,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):we[Oe]=Ne,we}function te(we){return Re(we)||le(we)||fe(we)||oe()}function oe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(we,Oe){if(we){if(typeof we=="string")return Ae(we,Oe);var Ne=Object.prototype.toString.call(we).slice(8,-1);if(Ne==="Object"&&we.constructor&&(Ne=we.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(we);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return Ae(we,Oe)}}function le(we){if(typeof Symbol<"u"&&Symbol.iterator in Object(we))return Array.from(we)}function Re(we){if(Array.isArray(we))return Ae(we)}function Ae(we,Oe){(Oe==null||Oe>we.length)&&(Oe=we.length);for(var Ne=0,qe=new Array(Oe);Ne<Oe;Ne++)qe[Ne]=we[Ne];return qe}var _e=new Date;_e.setFullYear(1,0,1),_e.setHours(0,0,0,0);var ee=new Date(864e13),se=["century","decade","year","month"],$e=[].concat(te(se.slice(1)),["day"]);function Ee(we){return we instanceof Date?we:new Date(we)}function xe(we,Oe){return we&&!Oe||!we&&Oe||we&&Oe&&we.getTime()!==Oe.getTime()}function Se(we){return $e[se.indexOf(we)]}function Ie(we,Oe){if(!we)return null;var Ne=Array.isArray(we)&&we.length===2?we[Oe]:we;if(!Ne)return null;var qe=Ee(Ne);if(isNaN(qe.getTime()))throw new Error("Invalid date: ".concat(we));return qe}function ge(we,Oe){var Ne=we.value,qe=we.minDate,Be=we.maxDate,Ve=we.maxDetail,Ye=Ie(Ne,Oe);if(!Ye)return null;var Ge=Se(Ve),dt=[w.getBegin,w.getEnd][Oe](Ge,Ye);return(0,P.between)(dt,qe,Be)}var Y=function(Oe){return ge(Oe,0)},ie=function(Oe){return ge(Oe,1)},ce=function(Oe){var Ne=Oe.value;return Array.isArray(Ne)?Ne:[Y,ie].map(function(qe){return qe(Oe)})};function ue(we){return we.getAttribute("data-input")==="true"}function pe(we,Oe){var Ne=we;do Ne=Ne[Oe];while(Ne&&!ue(Ne));return Ne}function Te(we){we&&we.focus()}function Ce(we,Oe,Ne){var qe=[],Be=new RegExp(Object.keys(Oe).map(function(Ye){return"".concat(Ye,"+")}).join("|"),"g"),Ve=we.match(Be);return we.split(Be).reduce(function(Ye,Ge,dt){var ze=Ge&&u.default.createElement(p.default,{key:"separator_".concat(dt)},Ge),nt=[].concat(te(Ye),[ze]),Ze=Ve&&Ve[dt];if(Ze){var _t=Oe[Ze]||Oe[Object.keys(Oe).find(function(ae){return Ze.match(ae)})];!Ne&&qe.includes(_t)?nt.push(Ze):(nt.push(_t(Ze,dt)),qe.push(_t))}return nt},[])}var Fe=(function(we){H(Ne,we);var Oe=F(Ne);function Ne(){var qe;N(this,Ne);for(var Be=arguments.length,Ve=new Array(Be),Ye=0;Ye<Be;Ye++)Ve[Ye]=arguments[Ye];return qe=Oe.call.apply(Oe,[this].concat(Ve)),Z(G(qe),"state",{year:null,month:null,day:null}),Z(G(qe),"onClick",function(Ge){if(Ge.target===Ge.currentTarget){var dt=Ge.target.children[1];Te(dt)}}),Z(G(qe),"onKeyDown",function(Ge){switch(Ge.key){case"ArrowLeft":case"ArrowRight":case qe.divider:{Ge.preventDefault();var dt=Ge.target,ze=Ge.key==="ArrowLeft"?"previousElementSibling":"nextElementSibling",nt=pe(dt,ze);Te(nt);break}}}),Z(G(qe),"onKeyUp",function(Ge){var dt=Ge.key,ze=Ge.target,nt=!isNaN(parseInt(dt,10));if(nt){var Ze=ze.value,_t=ze.getAttribute("max");if(Ze*10>_t||Ze.length>=_t.length){var ae="nextElementSibling",re=pe(ze,ae);Te(re)}}}),Z(G(qe),"onChange",function(Ge){var dt=Ge.target,ze=dt.name,nt=dt.value;qe.setState(Z({},ze,nt?parseInt(nt,10):null),qe.onChangeExternal)}),Z(G(qe),"onChangeNative",function(Ge){var dt=qe.props.onChange,ze=Ge.target.value;if(dt){var nt=(function(){if(!ze)return null;var Ze=ze.split("-"),_t=A(Ze,3),ae=_t[0],re=_t[1],he=_t[2],Pe=parseInt(ae,10),We=parseInt(re,10)-1||0,yt=parseInt(he,10)||1,ct=new Date;return ct.setFullYear(Pe,We,yt),ct.setHours(0,0,0,0),ct})();dt(nt,!1)}}),Z(G(qe),"onChangeExternal",function(){var Ge=qe.props.onChange;
28if(Ge){var dt=[qe.dayInput,qe.monthInput,qe.yearInput].filter(Boolean),ze={};if(dt.forEach(function(he){ze[he.name]=he.value}),dt.every(function(he){return!he.value}))Ge(null,!1);else if(dt.every(function(he){return he.value&&he.validity.valid})){var nt=parseInt(ze.year,10),Ze=parseInt(ze.month,10)-1||0,_t=parseInt(ze.day||1,10),ae=new Date;ae.setFullYear(nt,Ze,_t),ae.setHours(0,0,0,0);var re=qe.getProcessedValue(ae);Ge(re,!1)}}}),Z(G(qe),"renderDay",function(Ge,dt){var ze=qe.props,nt=ze.autoFocus,Ze=ze.dayAriaLabel,_t=ze.dayPlaceholder,ae=ze.showLeadingZeros,re=qe.state,he=re.day,Pe=re.month,We=re.year;if(Ge&&Ge.length>2)throw new Error("Unsupported token: ".concat(Ge));var yt=Ge&&Ge.length===2;return u.default.createElement(h.default,x({key:"day"},qe.commonInputProps,{ariaLabel:Ze,autoFocus:dt===0&&nt,month:Pe,placeholder:_t,showLeadingZeros:yt||ae,value:he,year:We}))}),Z(G(qe),"renderMonth",function(Ge,dt){var ze=qe.props,nt=ze.autoFocus,Ze=ze.locale,_t=ze.monthAriaLabel,ae=ze.monthPlaceholder,re=ze.showLeadingZeros,he=qe.state,Pe=he.month,We=he.year;if(Ge&&Ge.length>4)throw new Error("Unsupported token: ".concat(Ge));if(Ge.length>2)return u.default.createElement(g.default,x({key:"month"},qe.commonInputProps,{ariaLabel:_t,autoFocus:dt===0&&nt,locale:Ze,placeholder:ae,short:Ge.length===3,value:Pe,year:We}));var yt=Ge&&Ge.length===2;return u.default.createElement(v.default,x({key:"month"},qe.commonInputProps,{ariaLabel:_t,autoFocus:dt===0&&nt,placeholder:ae,showLeadingZeros:yt||re,value:Pe,year:We}))}),Z(G(qe),"renderYear",function(Ge,dt){var ze=qe.props,nt=ze.autoFocus,Ze=ze.yearAriaLabel,_t=ze.yearPlaceholder,ae=qe.state.year;return u.default.createElement(m.default,x({key:"year"},qe.commonInputProps,{ariaLabel:Ze,autoFocus:dt===0&&nt,placeholder:_t,value:ae,valueType:qe.valueType}))}),qe}return z(Ne,[{key:"getProcessedValue",value:function(Be){var Ve=this.props,Ye=Ve.minDate,Ge=Ve.maxDate,dt=Ve.maxDetail,ze=Ve.returnValue,nt=(function(){switch(ze){case"start":return Y;case"end":return ie;case"range":return ce;default:throw new Error("Invalid returnValue.")}})();return nt({value:Be,minDate:Ye,maxDate:Ge,maxDetail:dt})}},{key:"renderCustomInputs",value:function(){var Be=this.placeholder,Ve=this.props.format,Ye={d:this.renderDay,M:this.renderMonth,y:this.renderYear},Ge=typeof Ve<"u";return Ce(Be,Ye,Ge)}},{key:"renderNativeInput",value:function(){var Be=this.props,Ve=Be.disabled,Ye=Be.maxDate,Ge=Be.minDate,dt=Be.name,ze=Be.nativeInputAriaLabel,nt=Be.required,Ze=this.state.value;return u.default.createElement(y.default,{key:"date",ariaLabel:ze,disabled:Ve,maxDate:Ye||ee,minDate:Ge||_e,name:dt,onChange:this.onChangeNative,required:nt,value:Ze,valueType:this.valueType})}},{key:"render",value:function(){var Be=this.props.className;return u.default.createElement("div",{className:Be,onClick:this.onClick},this.renderNativeInput(),this.renderCustomInputs())}},{key:"formatDate",get:function(){var Be=this.props.maxDetail,Ve={year:"numeric"},Ye=se.indexOf(Be);return Ye>=2&&(Ve.month="numeric"),Ye>=3&&(Ve.day="numeric"),(0,b.getFormatter)(Ve)}},{key:"divider",get:function(){var Be=this.placeholder.match(/[^0-9a-z]/i);return Be?Be[0]:null}},{key:"placeholder",get:function(){var Be=this.props,Ve=Be.format,Ye=Be.locale;if(Ve)return Ve;var Ge=2017,dt=11,ze=11,nt=new Date(Ge,dt,ze),Ze=this.formatDate(Ye,nt),_t=["year","month","day"],ae=["y","M","d"];function re(Pe,We){return(0,b.getFormatter)(Z({useGrouping:!1},Pe,"numeric"))(Ye,We).match(/\d{1,}/)}var he=Ze;return _t.forEach(function(Pe,We){var yt=re(Pe,nt),ct=ae[We];he=he.replace(yt,ct)}),he}},{key:"commonInputProps",get:function(){var Be=this,Ve=this.props,Ye=Ve.className,Ge=Ve.disabled,dt=Ve.isCalendarOpen,ze=Ve.maxDate,nt=Ve.minDate,Ze=Ve.renderAriaLabelAsTitle,_t=Ve.required;return{className:Ye,disabled:Ge,maxDate:ze||ee,minDate:nt||_e,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,renderAriaLabelAsTitle:Ze,required:_t||dt,itemRef:function(re,he){Be["".concat(he,"Input")]=re}}}},{key:"valueType",get:function(){var Be=this.props.maxDetail;return Se(Be)}}],[{key:"getDerivedStateFromProps",value:function(Be,Ve){var Ye=Be.minDate,Ge=Be.maxDate,dt=Be.maxDetail,ze={};Be.isCalendarOpen!==Ve.isCalendarOpen&&(ze.isCalendarOpen=Be.isCalendarOpen);
28var nt=Y({value:Be.value,minDate:Ye,maxDate:Ge,maxDetail:dt}),Ze=[nt,Ve.value];return(ze.isCalendarOpen||xe.apply(void 0,te(Ze.map(function(_t){return Y({value:_t,minDate:Ye,maxDate:Ge,maxDetail:dt})})))||xe.apply(void 0,te(Ze.map(function(_t){return ie({value:_t,minDate:Ye,maxDate:Ge,maxDetail:dt})}))))&&(nt?(ze.year=(0,f.getYear)(nt),ze.month=(0,f.getMonthHuman)(nt),ze.day=(0,f.getDate)(nt)):(ze.year=null,ze.month=null,ze.day=null),ze.value=nt),ze}}]),Ne})(u.PureComponent);l.default=Fe,Fe.defaultProps={maxDetail:"month",name:"date",returnValue:"start"};var He=d.default.oneOfType([d.default.string,d.default.instanceOf(Date)]);Fe.propTypes={autoFocus:d.default.bool,className:d.default.string.isRequired,dayAriaLabel:d.default.string,dayPlaceholder:d.default.string,disabled:d.default.bool,format:d.default.string,isCalendarOpen:d.default.bool,locale:d.default.string,maxDate:E.isMaxDate,maxDetail:d.default.oneOf(se),minDate:E.isMinDate,monthAriaLabel:d.default.string,monthPlaceholder:d.default.string,name:d.default.string,nativeInputAriaLabel:d.default.string,onChange:d.default.func,renderAriaLabelAsTitle:d.default.bool,required:d.default.bool,returnValue:d.default.oneOf(["start","end","range"]),showLeadingZeros:d.default.bool,value:d.default.oneOfType([He,d.default.arrayOf(He)]),yearAriaLabel:d.default.string,yearPlaceholder:d.default.string}})(DateInput)),DateInput}var hasRequiredDatePicker;function requireDatePicker(){return hasRequiredDatePicker||(hasRequiredDatePicker=1,(function(l){function o(ee){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function($e){return typeof $e}:o=function($e){return $e&&typeof Symbol=="function"&&$e.constructor===Symbol&&$e!==Symbol.prototype?"symbol":typeof $e},o(ee)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=w(requireReact()),d=y(requirePropTypes$1()),f=y(requireCjs$7()),p=y(require$$3$1),h=y(require$$4$2),v=y(requireCjs$5()),g=y(requireDateInput()),m=requirePropTypes();function y(ee){return ee&&ee.__esModule?ee:{default:ee}}function b(){if(typeof WeakMap!="function")return null;var ee=new WeakMap;return b=function(){return ee},ee}function w(ee){if(ee&&ee.__esModule)return ee;if(ee===null||o(ee)!=="object"&&typeof ee!="function")return{default:ee};var se=b();if(se&&se.has(ee))return se.get(ee);var $e={},Ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var xe in ee)if(Object.prototype.hasOwnProperty.call(ee,xe)){var Se=Ee?Object.getOwnPropertyDescriptor(ee,xe):null;Se&&(Se.get||Se.set)?Object.defineProperty($e,xe,Se):$e[xe]=ee[xe]}return $e.default=ee,se&&se.set(ee,$e),$e}function E(ee,se){if(ee==null)return{};var $e=P(ee,se),Ee,xe;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(ee);for(xe=0;xe<Se.length;xe++)Ee=Se[xe],!(se.indexOf(Ee)>=0)&&Object.prototype.propertyIsEnumerable.call(ee,Ee)&&($e[Ee]=ee[Ee])}return $e}function P(ee,se){if(ee==null)return{};var $e={},Ee=Object.keys(ee),xe,Se;for(Se=0;Se<Ee.length;Se++)xe=Ee[Se],!(se.indexOf(xe)>=0)&&($e[xe]=ee[xe]);return $e}function C(){return C=Object.assign||function(ee){for(var se=1;se<arguments.length;se++){var $e=arguments[se];for(var Ee in $e)Object.prototype.hasOwnProperty.call($e,Ee)&&(ee[Ee]=$e[Ee])}return ee},C.apply(this,arguments)}function T(ee,se){return j(ee)||D(ee,se)||x(ee,se)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(ee,se){if(ee){if(typeof ee=="string")return A(ee,se);var $e=Object.prototype.toString.call(ee).slice(8,-1);if($e==="Object"&&ee.constructor&&($e=ee.constructor.name),$e==="Map"||$e==="Set")return Array.from(ee);if($e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return A(ee,se)}}function A(ee,se){(se==null||se>ee.length)&&(se=ee.length);for(var $e=0,Ee=new Array(se);$e<se;$e++)Ee[$e]=ee[$e];return Ee}function D(ee,se){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ee)))){var $e=[],Ee=!0,xe=!1,Se=void 0;try{for(var Ie=ee[Symbol.iterator](),ge;!(Ee=(ge=Ie.next()).done)&&($e.push(ge.value),!(se&&$e.length===se));Ee=!0);}catch(Y){xe=!0,Se=Y}finally{try{!Ee&&Ie.return!=null&&Ie.return()}finally{if(xe)throw Se}}return $e}}function j(ee){if(Array.isArray(ee))return ee}function M(ee,se){if(!(ee instanceof se))throw new TypeError("Cannot call a class as a function")}function N(ee,se){for(var $e=0;$e<se.length;$e++){var Ee=se[$e];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ee,Ee.key,Ee)}}function q(ee,se,$e){return se&&N(ee.prototype,se),$e&&N(ee,$e),ee}function z(ee,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(se&&se.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),se&&H(ee,se)}
29function H(ee,se){return H=Object.setPrototypeOf||function(Ee,xe){return Ee.__proto__=xe,Ee},H(ee,se)}function U(ee){var se=G();return function(){var Ee=Q(ee),xe;if(se){var Se=Q(this).constructor;xe=Reflect.construct(Ee,arguments,Se)}else xe=Ee.apply(this,arguments);return F(this,xe)}}function F(ee,se){return se&&(o(se)==="object"||typeof se=="function")?se:B(ee)}function B(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee}function G(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Q(ee){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function($e){return $e.__proto__||Object.getPrototypeOf($e)},Q(ee)}function K(ee,se,$e){return se in ee?Object.defineProperty(ee,se,{value:$e,enumerable:!0,configurable:!0,writable:!0}):ee[se]=$e,ee}var Z="react-date-picker",te=["mousedown","focusin","touchstart"],oe=["century","decade","year","month"],fe=(function(ee){z($e,ee);var se=U($e);function $e(){var Ee;M(this,$e);for(var xe=arguments.length,Se=new Array(xe),Ie=0;Ie<xe;Ie++)Se[Ie]=arguments[Ie];return Ee=se.call.apply(se,[this].concat(Se)),K(B(Ee),"state",{}),K(B(Ee),"calendarRef",u.default.createRef()),K(B(Ee),"onOutsideAction",function(ge){Ee.wrapper&&!Ee.wrapper.contains(ge.target)&&Ee.closeCalendar()}),K(B(Ee),"onChange",function(ge){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee.props.closeCalendar,ie=Ee.props.onChange;Y&&Ee.closeCalendar(),ie&&ie(ge)}),K(B(Ee),"onFocus",function(ge){var Y=Ee.props,ie=Y.disabled,ce=Y.onFocus,ue=Y.openCalendarOnFocus;ce&&ce(ge),!ie&&ue&&Ee.openCalendar()}),K(B(Ee),"onCalendarKeydown",function(ge){ge.key==="Escape"&&(ge.stopPropagation(),Ee.closeCalendar())}),K(B(Ee),"openCalendar",function(){Ee.setState({isOpen:!0},function(){Ee.calendarRef.current.addEventListener("keydown",Ee.onCalendarKeydown)})}),K(B(Ee),"closeCalendar",function(){Ee.setState(function(ge){return ge.isOpen?{isOpen:!1}:null},function(){Ee.calendarRef.current.removeEventListener("keydown",Ee.onCalendarKeydown)})}),K(B(Ee),"toggleCalendar",function(){Ee.setState(function(ge){return{isOpen:!ge.isOpen}},function(){var ge=Ee.state.isOpen;ge?(Ee.calendarRef.current.focus(),Ee.calendarRef.current.addEventListener("keydown",Ee.onCalendarKeydown)):Ee.calendarRef.current.removeEventListener("keydown",Ee.onCalendarKeydown)})}),K(B(Ee),"stopPropagation",function(ge){return ge.stopPropagation()}),K(B(Ee),"clear",function(){return Ee.onChange(null)}),Ee}return q($e,[{key:"componentDidMount",value:function(){this.handleOutsideActionListeners()}},{key:"componentDidUpdate",value:function(xe,Se){var Ie=this.state.isOpen,ge=this.props,Y=ge.onCalendarClose,ie=ge.onCalendarOpen;if(Ie!==Se.isOpen){this.handleOutsideActionListeners();var ce=Ie?ie:Y;ce&&ce()}}},{key:"componentWillUnmount",value:function(){this.handleOutsideActionListeners(!1)}},{key:"handleOutsideActionListeners",value:function(xe){var Se=this,Ie=this.state.isOpen,ge=typeof xe<"u"?xe:Ie,Y=ge?"addEventListener":"removeEventListener";te.forEach(function(ie){return document[Y](ie,Se.onOutsideAction)})}},{key:"renderInputs",value:function(){var xe=this.props,Se=xe.autoFocus,Ie=xe.calendarAriaLabel,ge=xe.calendarIcon,Y=xe.clearAriaLabel,ie=xe.clearIcon,ce=xe.dayAriaLabel,ue=xe.dayPlaceholder,pe=xe.disableCalendar,Te=xe.disabled,Ce=xe.format,Fe=xe.locale,He=xe.maxDate,we=xe.maxDetail,Oe=xe.minDate,Ne=xe.monthAriaLabel,qe=xe.monthPlaceholder,Be=xe.name,Ve=xe.nativeInputAriaLabel,Ye=xe.renderAriaLabelAsTitle,Ge=Ye===void 0?!1:Ye,dt=xe.required,ze=xe.returnValue,nt=xe.showLeadingZeros,Ze=xe.value,_t=xe.yearAriaLabel,ae=xe.yearPlaceholder,re=this.state.isOpen,he=[].concat(Ze),Pe=T(he,1),We=Pe[0],yt={dayAriaLabel:ce,monthAriaLabel:Ne,nativeInputAriaLabel:Ve,yearAriaLabel:_t},ct={dayPlaceholder:ue,monthPlaceholder:qe,yearPlaceholder:ae};return u.default.createElement("div",{className:"".concat(Z,"__wrapper")},u.default.createElement(g.default,C({},yt,ct,{autoFocus:Se,className:"".concat(Z,"__inputGroup"),disabled:Te,format:Ce,isCalendarOpen:re,locale:Fe,maxDate:He,maxDetail:we,minDate:Oe,name:Be,onChange:this.onChange,renderAriaLabelAsTitle:Ge,required:dt,returnValue:ze,showLeadingZeros:nt,value:We})),ie!==null&&u.default.createElement("button",{"aria-label":Y,className:"".concat(Z,"__clear-button ").concat(Z,"__button"),disabled:Te,onClick:this.clear,onFocus:this.stopPropagation,t
29ype:"button"},ie),ge!==null&&!pe&&u.default.createElement("button",{"aria-expanded":!!re,"aria-label":Ie,className:"".concat(Z,"__calendar-button ").concat(Z,"__button"),disabled:Te,onBlur:this.resetValue,onClick:this.toggleCalendar,onFocus:this.stopPropagation,onKeyDown:this.onCalendarKeydown,type:"button"},ge))}},{key:"renderCalendar",value:function(){var xe=this.props.disableCalendar,Se=this.state.isOpen;if(Se===null||xe)return null;var Ie=this.props,ge=Ie.calendarClassName;Ie.className;var Y=Ie.calendarNavigationAriaLabel,ie=Ie.calendarNextAriaLabel,ce=Ie.calendarNext2AriaLabel,ue=Ie.calendarPrevAriaLabel,pe=Ie.calendarPrev2AriaLabel;Ie.onChange;var Te=Ie.value,Ce=E(Ie,["calendarClassName","className","calendarNavigationAriaLabel","calendarNextAriaLabel","calendarNext2AriaLabel","calendarPrevAriaLabel","calendarPrev2AriaLabel","onChange","value"]),Fe="".concat(Z,"__calendar");return u.default.createElement(v.default,null,u.default.createElement("div",{className:(0,p.default)(Fe,"".concat(Fe,"--").concat(Se?"open":"closed"))},u.default.createElement(h.default,C({className:ge,navigationAriaLabel:Y,nextAriaLabel:ie,next2AriaLabel:ce,onChange:this.onChange,prevAriaLabel:ue,prev2AriaLabel:pe,value:Te||null,inputRef:this.calendarRef},Ce))))}},{key:"render",value:function(){var xe=this,Se=this.props,Ie=Se.className,ge=Se.disabled,Y=this.state.isOpen;return u.default.createElement("div",C({className:(0,p.default)(Z,"".concat(Z,"--").concat(Y?"open":"closed"),"".concat(Z,"--").concat(ge?"disabled":"enabled"),Ie)},this.eventProps,{onFocus:this.onFocus,ref:function(ce){ce&&(xe.wrapper=ce)}}),this.renderInputs(),this.renderCalendar())}},{key:"eventProps",get:function(){return(0,f.default)(this.props)}}],[{key:"getDerivedStateFromProps",value:function(xe,Se){return xe.isOpen!==Se.isOpenProps?{isOpen:xe.isOpen,isOpenProps:xe.isOpen}:null}}]),$e})(u.PureComponent);l.default=fe;var le={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},Re=u.default.createElement("svg",C({},le,{className:"".concat(Z,"__calendar-button__icon ").concat(Z,"__button__icon")}),u.default.createElement("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),u.default.createElement("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),u.default.createElement("line",{x1:"13",x2:"13",y1:"0",y2:"4"})),Ae=u.default.createElement("svg",C({},le,{className:"".concat(Z,"__clear-button__icon ").concat(Z,"__button__icon")}),u.default.createElement("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),u.default.createElement("line",{x1:"15",x2:"4",y1:"4",y2:"15"}));fe.defaultProps={calendarIcon:Re,clearIcon:Ae,closeCalendar:!0,isOpen:null,openCalendarOnFocus:!0,returnValue:"start"};var _e=d.default.oneOfType([d.default.string,d.default.instanceOf(Date)]);fe.propTypes={autoFocus:d.default.bool,calendarAriaLabel:d.default.string,calendarClassName:d.default.oneOfType([d.default.string,d.default.arrayOf(d.default.string)]),calendarIcon:d.default.node,calendarNavigationAriaLabel:d.default.string,calendarNextAriaLabel:d.default.string,calendarNext2AriaLabel:d.default.string,calendarPrevAriaLabel:d.default.string,calendarPrev2AriaLabel:d.default.string,className:d.default.oneOfType([d.default.string,d.default.arrayOf(d.default.string)]),clearAriaLabel:d.default.string,clearIcon:d.default.node,closeCalendar:d.default.bool,dayAriaLabel:d.default.string,dayPlaceholder:d.default.string,disableCalendar:d.default.bool,disabled:d.default.bool,format:d.default.string,isOpen:d.default.bool,locale:d.default.string,maxDate:m.isMaxDate,maxDetail:d.default.oneOf(oe),minDate:m.isMinDate,monthAriaLabel:d.default.string,monthPlaceholder:d.default.string,name:d.default.string,nativeInputAriaLabel:d.default.string,onCalendarClose:d.default.func,onCalendarOpen:d.default.func,onChange:d.default.func,onFocus:d.default.func,openCalendarOnFocus:d.default.bool,required:d.default.bool,renderAriaLabelAsTitle:d.default.bool,returnValue:d.default.oneOf(["start","end","range"]),showLeadingZeros:d.default.bool,value:d.default.oneOfType([_e,d.default.arrayOf(_e)]),yearAriaLabel:d.default.string,yearPlaceholder:d.default.string}})(DatePicker$1)),DatePicker$1}var hasRequiredEntry;function requireEntry(){return hasRequiredEntry||(hasRequiredEntry=1,(function(l){Object.defineProperty(l,"__esMo
29dule",{value:!0}),l.default=void 0;var o=u(requireDatePicker());function u(f){return f&&f.__esModule?f:{default:f}}var d=o.default;l.default=d})(entry)),entry}var entryExports=requireEntry();const DatePicker=getDefaultExportFromCjs(entryExports);var _arrayAggregator,hasRequired_arrayAggregator;function require_arrayAggregator(){if(hasRequired_arrayAggregator)return _arrayAggregator;hasRequired_arrayAggregator=1;function l(o,u,d,f){for(var p=-1,h=o==null?0:o.length;++p<h;){var v=o[p];u(f,v,d(v),o)}return f}return _arrayAggregator=l,_arrayAggregator}var _baseAggregator,hasRequired_baseAggregator;function require_baseAggregator(){if(hasRequired_baseAggregator)return _baseAggregator;hasRequired_baseAggregator=1;var l=require_baseEach();function o(u,d,f,p){return l(u,function(h,v,g){d(p,h,f(h),g)}),p}return _baseAggregator=o,_baseAggregator}var _createAggregator,hasRequired_createAggregator;function require_createAggregator(){if(hasRequired_createAggregator)return _createAggregator;hasRequired_createAggregator=1;var l=require_arrayAggregator(),o=require_baseAggregator(),u=require_baseIteratee(),d=requireIsArray();function f(p,h){return function(v,g){var m=d(v)?l:o,y=h?h():{};return m(v,p,u(g,2),y)}}return _createAggregator=f,_createAggregator}var groupBy_1,hasRequiredGroupBy;function requireGroupBy(){if(hasRequiredGroupBy)return groupBy_1;hasRequiredGroupBy=1;var l=require_baseAssignValue(),o=require_createAggregator(),u=Object.prototype,d=u.hasOwnProperty,f=o(function(p,h,v){d.call(p,v)?p[v].push(h):l(p,v,[h])});return groupBy_1=f,groupBy_1}var groupByExports=requireGroupBy();const groupBy=getDefaultExportFromCjs(groupByExports);var Cancel={},hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel;hasRequiredCancel=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Cancel,"__esModule",{value:!0}),Cancel.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return Cancel.default=f,Cancel}var CancelExports=requireCancel();const CancelIcon$1=getDefaultExportFromCjs(CancelExports);var Close={},hasRequiredClose;function requireClose(){if(hasRequiredClose)return Close;hasRequiredClose=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Close,"__esModule",{value:!0}),Close.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return Close.default=f,Close}var CloseExports=requireClose();const CloseIcon$2=getDefaultExportFromCjs(CloseExports);var negate_1,hasRequiredNegate;function requireNegate(){if(hasRequiredNegate)return negate_1;hasRequiredNegate=1;var l="Expected a function";function o(u){if(typeof u!="function")throw new TypeError(l);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}return negate_1=o,negate_1}var _assignValue,hasRequired_assignValue;function require_assignValue(){if(hasRequired_assignValue)return _assignValue;hasRequired_assignValue=1;var l=require_baseAssignValue(),o=requireEq(),u=Object.prototype,d=u.hasOwnProperty;function f(p,h,v){var g=p[h];(!(d.call(p,h)&&o(g,v))||v===void 0&&!(h in p))&&l(p,h,v)}return _assignValue=f,_assignValue}var _baseSet,hasRequired_baseSet;function require_baseSet(){if(hasRequired_baseSet)return _baseSet;hasRequired_baseSet=1;var l=require_assignValue(),o=require_castPath(),u=require_isIndex(),d=requireIsObject(),f=require_toKey();function p(h,v,g,m){if(!d(h))return h;v=o(v,h);for(var y=-1,b=v.length,w=b-1,E=h;E!=null&&++y<b;){var P=f(v[y]),C=g;if(P==="__proto__"||P==="constructor"||P==="prototype")return h;if(y!=w){var T=E[P];C=m?m(T,P,E):void 0,C===void 0&&(C=d(T)?T:u(v[y+1])?[]:{})}l(E,P,C),E=E[P]}return h}return _baseSet=p,_baseSet}var _basePickBy,hasRequired_basePickBy;function require_basePickBy(){if(hasRequired_basePickBy)return _basePickBy;hasRequired_basePickBy=1;var l=require_baseGet(),o=require_baseSet(),u=require_castPath();function d(f,p,h){for(var v=-1,g=p.length,m={};++v<g;){var y=p[v],b=l(f,y);h(b,y)&&o(m,u(y,f),b)}return m}return _basePickBy=d,_basePickBy}var _getPrototype,hasRequired_getPrototype;
29function require_getPrototype(){if(hasRequired_getPrototype)return _getPrototype;hasRequired_getPrototype=1;var l=require_overArg(),o=l(Object.getPrototypeOf,Object);return _getPrototype=o,_getPrototype}var _getSymbolsIn,hasRequired_getSymbolsIn;function require_getSymbolsIn(){if(hasRequired_getSymbolsIn)return _getSymbolsIn;hasRequired_getSymbolsIn=1;var l=require_arrayPush(),o=require_getPrototype(),u=require_getSymbols(),d=requireStubArray(),f=Object.getOwnPropertySymbols,p=f?function(h){for(var v=[];h;)l(v,u(h)),h=o(h);return v}:d;return _getSymbolsIn=p,_getSymbolsIn}var _nativeKeysIn,hasRequired_nativeKeysIn;function require_nativeKeysIn(){if(hasRequired_nativeKeysIn)return _nativeKeysIn;hasRequired_nativeKeysIn=1;function l(o){var u=[];if(o!=null)for(var d in Object(o))u.push(d);return u}return _nativeKeysIn=l,_nativeKeysIn}var _baseKeysIn,hasRequired_baseKeysIn;function require_baseKeysIn(){if(hasRequired_baseKeysIn)return _baseKeysIn;hasRequired_baseKeysIn=1;var l=requireIsObject(),o=require_isPrototype(),u=require_nativeKeysIn(),d=Object.prototype,f=d.hasOwnProperty;function p(h){if(!l(h))return u(h);var v=o(h),g=[];for(var m in h)m=="constructor"&&(v||!f.call(h,m))||g.push(m);return g}return _baseKeysIn=p,_baseKeysIn}var keysIn_1,hasRequiredKeysIn;function requireKeysIn(){if(hasRequiredKeysIn)return keysIn_1;hasRequiredKeysIn=1;var l=require_arrayLikeKeys(),o=require_baseKeysIn(),u=requireIsArrayLike();function d(f){return u(f)?l(f,!0):o(f)}return keysIn_1=d,keysIn_1}var _getAllKeysIn,hasRequired_getAllKeysIn;function require_getAllKeysIn(){if(hasRequired_getAllKeysIn)return _getAllKeysIn;hasRequired_getAllKeysIn=1;var l=require_baseGetAllKeys(),o=require_getSymbolsIn(),u=requireKeysIn();function d(f){return l(f,u,o)}return _getAllKeysIn=d,_getAllKeysIn}var pickBy_1,hasRequiredPickBy;function requirePickBy(){if(hasRequiredPickBy)return pickBy_1;hasRequiredPickBy=1;var l=require_arrayMap(),o=require_baseIteratee(),u=require_basePickBy(),d=require_getAllKeysIn();function f(p,h){if(p==null)return{};var v=l(d(p),function(g){return[g]});return h=o(h),u(p,v,function(g,m){return h(g,m[0])})}return pickBy_1=f,pickBy_1}var omitBy_1,hasRequiredOmitBy;function requireOmitBy(){if(hasRequiredOmitBy)return omitBy_1;hasRequiredOmitBy=1;var l=require_baseIteratee(),o=requireNegate(),u=requirePickBy();function d(f,p){return u(f,o(l(p)))}return omitBy_1=d,omitBy_1}var omitByExports=requireOmitBy();const omitBy=getDefaultExportFromCjs(omitByExports);var Cached={},hasRequiredCached;function requireCached(){if(hasRequiredCached)return Cached;hasRequiredCached=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Cached,"__esModule",{value:!0}),Cached.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");return Cached.default=f,Cached}var CachedExports=requireCached();const ReloadIcon=getDefaultExportFromCjs(CachedExports);var ReactReduxContext=React.createContext(null);function defaultNoopBatch(l){l()}var batch=defaultNoopBatch,setBatch=function(o){return batch=o},getBatch=function(){return batch};function createListenerCollection(){var l=getBatch(),o=null,u=null;return{clear:function(){o=null,u=null},notify:function(){l(function(){for(var f=o;f;)f.callback(),f=f.next})},get:function(){for(var f=[],p=o;p;)f.push(p),p=p.next;return f},subscribe:function(f){var p=!0,h=u={callback:f,next:null,prev:u};return h.prev?h.prev.next=h:o=h,function(){!p||o===null||(p=!1,h.next?h.next.prev=h.prev:u=h.prev,h.prev?h.prev.next=h.next:o=h.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(l,o){var u,d=nullListeners;function f(b){return g(),d.subscribe(b)}function p(){d.notify()}function h(){y.onStateChange&&y.onStateChange()}function v(){return!!u}function g(){u||(u=o?o.addNestedSub(h):l.subscribe(h),d=createListenerCollection())}function m(){u&&(u(),u=void 0,d.clear(),d=nullListeners)}var y={addNestedSub:f,notifyNestedSubs:p,handleChangeWrapper:h,isSubscribed:v,trySubscribe:g,tryUnsubscribe:m,getListeners:function(){return d}};return y}var useIsomorphicLayoutEffect$2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(l){var o=l.store,u=l.context,d=l.children,f=reactExports.useMemo(function(){var v=createSubscription(o);return{store:o,subscription:v}},[o]),p=reactExports.useMemo(function(){return o.getState()},[o]);useIsomorphicLayoutEffect$2(function(){var v=f.subscription;return v.onStateChange=v.notifyNestedSubs,v.trySubscribe(),p!==o.getState()&&v.notifyNestedSubs(),function(){v.tryUnsubscribe(),v.onStateChange=null}},[f,p]);var h=u||ReactReduxContext;return React.createElement(h.Provider,{value:f},d)}var _excluded$h=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY$2=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(l,o){var u=l[1];return[o.payload,u+1]}function useIsomorphicLayoutEffectWithArgs(l,o,u){useIsomorphicLayoutEffect$2(function(){return l.apply(void 0,o)},u)}function captureWrapperProps(l,o,u,d,f,p,h){l.current=d,o.current=f,u.current=!1,p.current&&(p.current=null,h())}function subscribeUpdates(l,o,u,d,f,p,h,v,g,m){if(l){var y=!1,b=null,w=function(){if(!y){var C=o.getState(),T,O;try{T=d(C,f.current)}catch(x){O=x,b=x}O||(b=null),T===p.current?h.current||g():(p.current=T,v.current=T,h.current=!0,m({type:"STORE_UPDATED",payload:{error:O}}))}};u.onStateChange=w,u.trySubscribe(),w();var E=function(){if(y=!0,u.tryUnsubscribe(),u.onStateChange=null,b)throw b};return E}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(l,o){o===void 0&&(o={});var u=o,d=u.getDisplayName,f=d===void 0?function(A){return"ConnectAdvanced("+A+")"}:d,p=u.methodName,h=p===void 0?"connectAdvanced":p,v=u.renderCountProp,g=v===void 0?void 0:v,m=u.shouldHandleStateChanges,y=m===void 0?!0:m,b=u.storeKey,w=b===void 0?"store":b;u.withRef;var E=u.forwardRef,P=E===void 0?!1:E,C=u.context,T=C===void 0?ReactReduxContext:C,O=_objectWithoutPropertiesLoose$o(u,_excluded$h),x=T;return function(D){var j=D.displayName||D.name||"Component",M=f(j),N=_extends$v({},O,{getDisplayName:f,methodName:h,renderCountProp:g,shouldHandleStateChanges:y,storeKey:w,displayName:M,wrappedComponentName:j,WrappedComponent:D}),q=O.pure;function z(G){return l(G.dispatch,N)}var H=q?reactExports.useMemo:function(G){return G()};function U(G){var Q=reactExports.useMemo(function(){var Ce=G.reactReduxForwardedRef,Fe=_objectWithoutPropertiesLoose$o(G,_excluded2);return[G.context,Ce,Fe]},[G]),K=Q[0],Z=Q[1],te=Q[2],oe=reactExports.useMemo(function(){return K&&K.Consumer&&reactIsExports.isContextConsumer(React.createElement(K.Consumer,null))?K:x}
29,[K,x]),fe=reactExports.useContext(oe),le=!!G.store&&!!G.store.getState&&!!G.store.dispatch;fe&&fe.store;var Re=le?G.store:fe.store,Ae=reactExports.useMemo(function(){return z(Re)},[Re]),_e=reactExports.useMemo(function(){if(!y)return NO_SUBSCRIPTION_ARRAY;var Ce=createSubscription(Re,le?null:fe.subscription),Fe=Ce.notifyNestedSubs.bind(Ce);return[Ce,Fe]},[Re,le,fe]),ee=_e[0],se=_e[1],$e=reactExports.useMemo(function(){return le?fe:_extends$v({},fe,{subscription:ee})},[le,fe,ee]),Ee=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY$2,initStateUpdates),xe=Ee[0],Se=xe[0],Ie=Ee[1];if(Se&&Se.error)throw Se.error;var ge=reactExports.useRef(),Y=reactExports.useRef(te),ie=reactExports.useRef(),ce=reactExports.useRef(!1),ue=H(function(){return ie.current&&te===Y.current?ie.current:Ae(Re.getState(),te)},[Re,Se,te]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[Y,ge,ce,te,ue,ie,se]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[y,Re,ee,Ae,Y,ge,ce,ie,se,Ie],[Re,ee,Ae]);var pe=reactExports.useMemo(function(){return React.createElement(D,_extends$v({},ue,{ref:Z}))},[Z,D,ue]),Te=reactExports.useMemo(function(){return y?React.createElement(oe.Provider,{value:$e},pe):pe},[oe,pe,$e]);return Te}var F=q?React.memo(U):U;if(F.WrappedComponent=D,F.displayName=U.displayName=M,P){var B=React.forwardRef(function(Q,K){return React.createElement(F,_extends$v({},Q,{reactReduxForwardedRef:K}))});return B.displayName=M,B.WrappedComponent=D,hoistNonReactStatics(B,D)}return hoistNonReactStatics(F,D)}}function is(l,o){return l===o?l!==0||o!==0||1/l===1/o:l!==l&&o!==o}function shallowEqual$1(l,o){if(is(l,o))return!0;if(typeof l!="object"||l===null||typeof o!="object"||o===null)return!1;var u=Object.keys(l),d=Object.keys(o);if(u.length!==d.length)return!1;for(var f=0;f<u.length;f++)if(!Object.prototype.hasOwnProperty.call(o,u[f])||!is(l[u[f]],o[u[f]]))return!1;return!0}function bindActionCreators$1(l,o){var u={},d=function(h){var v=l[h];typeof v=="function"&&(u[h]=function(){return o(v.apply(void 0,arguments))})};for(var f in l)d(f);return u}function wrapMapToPropsConstant(l){return function(u,d){var f=l(u,d);function p(){return f}return p.dependsOnOwnProps=!1,p}}function getDependsOnOwnProps(l){return l.dependsOnOwnProps!==null&&l.dependsOnOwnProps!==void 0?!!l.dependsOnOwnProps:l.length!==1}function wrapMapToPropsFunc(l,o){return function(d,f){f.displayName;var p=function(v,g){return p.dependsOnOwnProps?p.mapToProps(v,g):p.mapToProps(v)};return p.dependsOnOwnProps=!0,p.mapToProps=function(v,g){p.mapToProps=l,p.dependsOnOwnProps=getDependsOnOwnProps(l);var m=p(v,g);return typeof m=="function"&&(p.mapToProps=m,p.dependsOnOwnProps=getDependsOnOwnProps(m),m=p(v,g)),m},p}}function whenMapDispatchToPropsIsFunction(l){return typeof l=="function"?wrapMapToPropsFunc(l):void 0}function whenMapDispatchToPropsIsMissing(l){return l?void 0:wrapMapToPropsConstant(function(o){return{dispatch:o}})}function whenMapDispatchToPropsIsObject(l){return l&&typeof l=="object"?wrapMapToPropsConstant(function(o){return bindActionCreators$1(l,o)}):void 0}const defaultMapDispatchToPropsFactories=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];function whenMapStateToPropsIsFunction(l){return typeof l=="function"?wrapMapToPropsFunc(l):void 0}function whenMapStateToPropsIsMissing(l){return l?void 0:wrapMapToPropsConstant(function(){return{}})}const defaultMapStateToPropsFactories=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];function defaultMergeProps(l,o,u){return _extends$v({},u,l,o)}function wrapMergePropsFunc(l){return function(u,d){d.displayName;var f=d.pure,p=d.areMergedPropsEqual,h=!1,v;return function(m,y,b){var w=l(m,y,b);return h?(!f||!p(w,v))&&(v=w):(h=!0,v=w),v}}}function whenMergePropsIsFunction(l){return typeof l=="function"?wrapMergePropsFunc(l):void 0}function whenMergePropsIsOmitted(l){return l?void 0:function(){return defaultMergeProps}}const defaultMergePropsFactories=[whenMergePropsIsFunction,whenMergePropsIsOmitted];var _excluded$g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(l,o,u,d){return function(p,h){return u(l(p,h),o(d,h),h)}}function pureFinalPropsSelectorFactory(l,o,u,d,f){var p=f.areStatesEqual,h=f.areOwnPropsEqual,v=f.areStatePropsEqual,g=!1,m,y,b,w,E;
29function P(A,D){return m=A,y=D,b=l(m,y),w=o(d,y),E=u(b,w,y),g=!0,E}function C(){return b=l(m,y),o.dependsOnOwnProps&&(w=o(d,y)),E=u(b,w,y),E}function T(){return l.dependsOnOwnProps&&(b=l(m,y)),o.dependsOnOwnProps&&(w=o(d,y)),E=u(b,w,y),E}function O(){var A=l(m,y),D=!v(A,b);return b=A,D&&(E=u(b,w,y)),E}function x(A,D){var j=!h(D,y),M=!p(A,m,D,y);return m=A,y=D,j&&M?C():j?T():M?O():E}return function(D,j){return g?x(D,j):P(D,j)}}function finalPropsSelectorFactory(l,o){var u=o.initMapStateToProps,d=o.initMapDispatchToProps,f=o.initMergeProps,p=_objectWithoutPropertiesLoose$o(o,_excluded$g),h=u(l,p),v=d(l,p),g=f(l,p),m=p.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory;return m(h,v,g,l,p)}var _excluded$f=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(l,o,u){for(var d=o.length-1;d>=0;d--){var f=o[d](l);if(f)return f}return function(p,h){throw new Error("Invalid value of type "+typeof l+" for "+u+" argument when connecting component "+h.wrappedComponentName+".")}}function strictEqual(l,o){return l===o}function createConnect(l){var o={},u=o.connectHOC,d=u===void 0?connectAdvanced:u,f=o.mapStateToPropsFactories,p=f===void 0?defaultMapStateToPropsFactories:f,h=o.mapDispatchToPropsFactories,v=h===void 0?defaultMapDispatchToPropsFactories:h,g=o.mergePropsFactories,m=g===void 0?defaultMergePropsFactories:g,y=o.selectorFactory,b=y===void 0?finalPropsSelectorFactory:y;return function(E,P,C,T){T===void 0&&(T={});var O=T,x=O.pure,A=x===void 0?!0:x,D=O.areStatesEqual,j=D===void 0?strictEqual:D,M=O.areOwnPropsEqual,N=M===void 0?shallowEqual$1:M,q=O.areStatePropsEqual,z=q===void 0?shallowEqual$1:q,H=O.areMergedPropsEqual,U=H===void 0?shallowEqual$1:H,F=_objectWithoutPropertiesLoose$o(O,_excluded$f),B=match(E,p,"mapStateToProps"),G=match(P,v,"mapDispatchToProps"),Q=match(C,m,"mergeProps");return d(b,_extends$v({methodName:"connect",getDisplayName:function(Z){return"Connect("+Z+")"},shouldHandleStateChanges:!!E,initMapStateToProps:B,initMapDispatchToProps:G,initMergeProps:Q,pure:A,areStatesEqual:j,areOwnPropsEqual:N,areStatePropsEqual:z,areMergedPropsEqual:U},F))}}const connect=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);var PluginContext$1=React.createContext(),_baseUpdate,hasRequired_baseUpdate;function require_baseUpdate(){if(hasRequired_baseUpdate)return _baseUpdate;hasRequired_baseUpdate=1;var l=require_baseGet(),o=require_baseSet();function u(d,f,p,h){return o(d,f,p(l(d,f)),h)}return _baseUpdate=u,_baseUpdate}var _castFunction,hasRequired_castFunction;function require_castFunction(){if(hasRequired_castFunction)return _castFunction;hasRequired_castFunction=1;var l=requireIdentity();function o(u){return typeof u=="function"?u:l}return _castFunction=o,_castFunction}var update_1,hasRequiredUpdate$1;function requireUpdate$1(){if(hasRequiredUpdate$1)return update_1;hasRequiredUpdate$1=1;var l=require_baseUpdate(),o=require_castFunction();function u(d,f,p){return d==null?d:l(d,f,o(p))}return update_1=u,update_1}var updateExports$1=requireUpdate$1();const update$4=getDefaultExportFromCjs(updateExports$1);function ownKeys$1a(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread2(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1a(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1a(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function formatProdErrorMessage(l){return"Minified Redux error #"+l+"; visit https://redux.js.org/Errors?code="+l+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes$2={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject$1(l){if(typeof l!="object"||l===null)return!1;for(var o=l;
29Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(l)===o}function createStore$1(l,o,u){var d;if(typeof o=="function"&&typeof u=="function"||typeof u=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof o=="function"&&typeof u>"u"&&(u=o,o=void 0),typeof u<"u"){if(typeof u!="function")throw new Error(formatProdErrorMessage(1));return u(createStore$1)(l,o)}if(typeof l!="function")throw new Error(formatProdErrorMessage(2));var f=l,p=o,h=[],v=h,g=!1;function m(){v===h&&(v=h.slice())}function y(){if(g)throw new Error(formatProdErrorMessage(3));return p}function b(C){if(typeof C!="function")throw new Error(formatProdErrorMessage(4));if(g)throw new Error(formatProdErrorMessage(5));var T=!0;return m(),v.push(C),function(){if(T){if(g)throw new Error(formatProdErrorMessage(6));T=!1,m();var x=v.indexOf(C);v.splice(x,1),h=null}}}function w(C){if(!isPlainObject$1(C))throw new Error(formatProdErrorMessage(7));if(typeof C.type>"u")throw new Error(formatProdErrorMessage(8));if(g)throw new Error(formatProdErrorMessage(9));try{g=!0,p=f(p,C)}finally{g=!1}for(var T=h=v,O=0;O<T.length;O++){var x=T[O];x()}return C}function E(C){if(typeof C!="function")throw new Error(formatProdErrorMessage(10));f=C,w({type:ActionTypes$2.REPLACE})}function P(){var C,T=b;return C={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(formatProdErrorMessage(11));function A(){x.next&&x.next(y())}A();var D=T(A);return{unsubscribe:D}}},C[$$observable]=function(){return this},C}return w({type:ActionTypes$2.INIT}),d={dispatch:w,subscribe:b,getState:y,replaceReducer:E},d[$$observable]=P,d}var legacy_createStore=createStore$1;function assertReducerShape(l){Object.keys(l).forEach(function(o){var u=l[o],d=u(void 0,{type:ActionTypes$2.INIT});if(typeof d>"u")throw new Error(formatProdErrorMessage(12));if(typeof u(void 0,{type:ActionTypes$2.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(l){for(var o=Object.keys(l),u={},d=0;d<o.length;d++){var f=o[d];typeof l[f]=="function"&&(u[f]=l[f])}var p=Object.keys(u),h;try{assertReducerShape(u)}catch(v){h=v}return function(g,m){if(g===void 0&&(g={}),h)throw h;for(var y=!1,b={},w=0;w<p.length;w++){var E=p[w],P=u[E],C=g[E],T=P(C,m);if(typeof T>"u")throw m&&m.type,new Error(formatProdErrorMessage(14));b[E]=T,y=y||T!==C}return y=y||p.length!==Object.keys(g).length,y?b:g}}function bindActionCreator(l,o){return function(){return o(l.apply(this,arguments))}}function bindActionCreators(l,o){if(typeof l=="function")return bindActionCreator(l,o);if(typeof l!="object"||l===null)throw new Error(formatProdErrorMessage(16));var u={};for(var d in l){var f=l[d];typeof f=="function"&&(u[d]=bindActionCreator(f,o))}return u}function compose$2(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return o.length===0?function(d){return d}:o.length===1?o[0]:o.reduce(function(d,f){return function(){return d(f.apply(void 0,arguments))}})}function applyMiddleware(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return function(d){return function(){var f=d.apply(void 0,arguments),p=function(){throw new Error(formatProdErrorMessage(15))},h={getState:f.getState,dispatch:function(){return p.apply(void 0,arguments)}},v=o.map(function(g){return g(h)});return p=compose$2.apply(void 0,v)(f.dispatch),_objectSpread2(_objectSpread2({},f),{},{dispatch:p})}}}const redux=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes$2,applyMiddleware,bindActionCreators,combineReducers,compose:compose$2,createStore:createStore$1,legacy_createStore},Symbol.toStringTag,{value:"Module"}));function createMuiStrictModeTheme(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return createTheme$1.apply(void 0,[deepmerge$1({unstable_strictMode:!0},l)].concat(u))}function createStyles(l){return l}function makeStyles$2(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return makeStyles$3(l,_extends$v({defaultTheme:defaultTheme$1},o))}function isUnitless(l){return String(parseFloat(l)).length===String(l).length}function getUnit(l){return String(l).match(/[\d.\-+]*\s*(.*)/)[1]||""}function toUnitless(l){return parseFloat(l)}function convertLength(l){return function(o,u){var d=getUnit(o);if(d===u)return o;var f=toUnitless(o);if(d!=="px"){if(d==="em")f=toUnitless(o)*toUnitless(l);else if(d==="rem")return f=toUnitless(o)*toUnitless(l),o}var p=f;if(u!=="px")if(u==="em")p=f/toUnitless(l);else if(u==="rem")p=f/toUnitless(l);else return o;return parseFloat(p.toFixed(5))+u}}function alignProperty(l){var o=l.size,u=l.grid,d=o-o%u,f=d+u;return o-d<f-o?d:f}function fontGrid(l){var o=l.lineHeight,u=l.pixels,d=l.htmlFontSize;return u/(o*d)}function responsiveProperty(l){var o=l.cssProperty,u=l.min,d=l.max,f=l.unit,p=f===void 0?"rem":f,h=l.breakpoints,v=h===void 0?[600,960,1280]:h,g=l.transform,m=g===void 0?null:g,y=_defineProperty$1z({}
29,o,"".concat(u).concat(p)),b=(d-u)/v[v.length-1];return v.forEach(function(w){var E=u+b*w;m!==null&&(E=m(E)),y["@media (min-width:".concat(w,"px)")]=_defineProperty$1z({},o,"".concat(Math.round(E*1e4)/1e4).concat(p))}),y}function responsiveFontSizes(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.breakpoints,d=u===void 0?["sm","md","lg"]:u,f=o.disableAlign,p=f===void 0?!1:f,h=o.factor,v=h===void 0?2:h,g=o.variants,m=g===void 0?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:g,y=_extends$v({},l);y.typography=_extends$v({},y.typography);var b=y.typography,w=convertLength(b.htmlFontSize),E=d.map(function(P){return y.breakpoints.values[P]});return m.forEach(function(P){var C=b[P],T=parseFloat(w(C.fontSize,"rem"));if(!(T<=1)){var O=T,x=1+(O-1)/v,A=C.lineHeight;if(!isUnitless(A)&&!p)throw new Error(formatMuiErrorMessage(6));isUnitless(A)||(A=parseFloat(w(A,"rem"))/parseFloat(T));var D=null;p||(D=function(M){return alignProperty({size:M,grid:fontGrid({pixels:4,lineHeight:A,htmlFontSize:b.htmlFontSize})})}),b[P]=_extends$v({},C,responsiveProperty({cssProperty:"fontSize",min:x,max:O,unit:"rem",breakpoints:E,transform:D}))}}),y}var styled=function(o){var u=styled$1(o);return function(d,f){return u(d,_extends$v({defaultTheme:defaultTheme$1},f))}};function useTheme$1(){var l=useTheme$2()||defaultTheme$1;return l}var withTheme$2=withThemeCreator({defaultTheme:defaultTheme$1}),_metaMap,hasRequired_metaMap;function require_metaMap(){if(hasRequired_metaMap)return _metaMap;hasRequired_metaMap=1;var l=require_WeakMap(),o=l&&new l;return _metaMap=o,_metaMap}var _baseSetData,hasRequired_baseSetData;function require_baseSetData(){if(hasRequired_baseSetData)return _baseSetData;hasRequired_baseSetData=1;var l=requireIdentity(),o=require_metaMap(),u=o?function(d,f){return o.set(d,f),d}:l;return _baseSetData=u,_baseSetData}var _baseCreate,hasRequired_baseCreate;function require_baseCreate(){if(hasRequired_baseCreate)return _baseCreate;hasRequired_baseCreate=1;var l=requireIsObject(),o=Object.create,u=(function(){function d(){}return function(f){if(!l(f))return{};if(o)return o(f);d.prototype=f;var p=new d;return d.prototype=void 0,p}})();return _baseCreate=u,_baseCreate}var _createCtor,hasRequired_createCtor;function require_createCtor(){if(hasRequired_createCtor)return _createCtor;hasRequired_createCtor=1;var l=require_baseCreate(),o=requireIsObject();function u(d){return function(){var f=arguments;switch(f.length){case 0:return new d;case 1:return new d(f[0]);case 2:return new d(f[0],f[1]);case 3:return new d(f[0],f[1],f[2]);case 4:return new d(f[0],f[1],f[2],f[3]);case 5:return new d(f[0],f[1],f[2],f[3],f[4]);case 6:return new d(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new d(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var p=l(d.prototype),h=d.apply(p,f);return o(h)?h:p}}return _createCtor=u,_createCtor}var _createBind,hasRequired_createBind;function require_createBind(){if(hasRequired_createBind)return _createBind;hasRequired_createBind=1;var l=require_createCtor(),o=require_root(),u=1;function d(f,p,h){var v=p&u,g=l(f);function m(){var y=this&&this!==o&&this instanceof m?g:f;return y.apply(v?h:this,arguments)}return m}return _createBind=d,_createBind}var _composeArgs,hasRequired_composeArgs;function require_composeArgs(){if(hasRequired_composeArgs)return _composeArgs;hasRequired_composeArgs=1;var l=Math.max;function o(u,d,f,p){for(var h=-1,v=u.length,g=f.length,m=-1,y=d.length,b=l(v-g,0),w=Array(y+b),E=!p;++m<y;)w[m]=d[m];for(;++h<g;)(E||h<v)&&(w[f[h]]=u[h]);for(;b--;)w[m++]=u[h++];return w}return _composeArgs=o,_composeArgs}var _composeArgsRight,hasRequired_composeArgsRight;function require_composeArgsRight(){if(hasRequired_composeArgsRight)return _composeArgsRight;hasRequired_composeArgsRight=1;var l=Math.max;function o(u,d,f,p){for(var h=-1,v=u.length,g=-1,m=f.length,y=-1,b=d.length,w=l(v-m,0),E=Array(w+b),P=!p;++h<w;)E[h]=u[h];for(var C=h;++y<b;)E[C+y]=d[y];for(;++g<m;)(P||h<v)&&(E[C+f[g]]=u[h++]);return E}return _composeArgsRight=o,_composeArgsRight}var _countHolders,hasRequired_countHolders;function require_countHolders(){if(hasRequired_countHolders)return _countHolders;hasRequired_countHolders=1;function l(o,u){for(var d=o.length,f=0;d--;)o[d]===u&&++f;return f}return _countHolders=l,_countHolders}var _baseLodash,hasRequired_baseLodash;function require_baseLodash(){if(hasRequired_baseLodash)return _baseLodash;hasRequired_baseLodash=1;function l(){}return _baseLodash=l,_baseLodash}var _LazyWrapper,hasRequired_LazyWrapper;
29function require_LazyWrapper(){if(hasRequired_LazyWrapper)return _LazyWrapper;hasRequired_LazyWrapper=1;var l=require_baseCreate(),o=require_baseLodash(),u=4294967295;function d(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}return d.prototype=l(o.prototype),d.prototype.constructor=d,_LazyWrapper=d,_LazyWrapper}var _getData,hasRequired_getData;function require_getData(){if(hasRequired_getData)return _getData;hasRequired_getData=1;var l=require_metaMap(),o=requireNoop(),u=l?function(d){return l.get(d)}:o;return _getData=u,_getData}var _realNames,hasRequired_realNames;function require_realNames(){if(hasRequired_realNames)return _realNames;hasRequired_realNames=1;var l={};return _realNames=l,_realNames}var _getFuncName,hasRequired_getFuncName;function require_getFuncName(){if(hasRequired_getFuncName)return _getFuncName;hasRequired_getFuncName=1;var l=require_realNames(),o=Object.prototype,u=o.hasOwnProperty;function d(f){for(var p=f.name+"",h=l[p],v=u.call(l,p)?h.length:0;v--;){var g=h[v],m=g.func;if(m==null||m==f)return g.name}return p}return _getFuncName=d,_getFuncName}var _LodashWrapper,hasRequired_LodashWrapper;function require_LodashWrapper(){if(hasRequired_LodashWrapper)return _LodashWrapper;hasRequired_LodashWrapper=1;var l=require_baseCreate(),o=require_baseLodash();function u(d,f){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=void 0}return u.prototype=l(o.prototype),u.prototype.constructor=u,_LodashWrapper=u,_LodashWrapper}var _copyArray,hasRequired_copyArray;function require_copyArray(){if(hasRequired_copyArray)return _copyArray;hasRequired_copyArray=1;function l(o,u){var d=-1,f=o.length;for(u||(u=Array(f));++d<f;)u[d]=o[d];return u}return _copyArray=l,_copyArray}var _wrapperClone,hasRequired_wrapperClone;function require_wrapperClone(){if(hasRequired_wrapperClone)return _wrapperClone;hasRequired_wrapperClone=1;var l=require_LazyWrapper(),o=require_LodashWrapper(),u=require_copyArray();function d(f){if(f instanceof l)return f.clone();var p=new o(f.__wrapped__,f.__chain__);return p.__actions__=u(f.__actions__),p.__index__=f.__index__,p.__values__=f.__values__,p}return _wrapperClone=d,_wrapperClone}var wrapperLodash,hasRequiredWrapperLodash;function requireWrapperLodash(){if(hasRequiredWrapperLodash)return wrapperLodash;hasRequiredWrapperLodash=1;var l=require_LazyWrapper(),o=require_LodashWrapper(),u=require_baseLodash(),d=requireIsArray(),f=requireIsObjectLike(),p=require_wrapperClone(),h=Object.prototype,v=h.hasOwnProperty;function g(m){if(f(m)&&!d(m)&&!(m instanceof l)){if(m instanceof o)return m;if(v.call(m,"__wrapped__"))return p(m)}return new o(m)}return g.prototype=u.prototype,g.prototype.constructor=g,wrapperLodash=g,wrapperLodash}var _isLaziable,hasRequired_isLaziable;function require_isLaziable(){if(hasRequired_isLaziable)return _isLaziable;hasRequired_isLaziable=1;var l=require_LazyWrapper(),o=require_getData(),u=require_getFuncName(),d=requireWrapperLodash();function f(p){var h=u(p),v=d[h];if(typeof v!="function"||!(h in l.prototype))return!1;if(p===v)return!0;var g=o(v);return!!g&&p===g[0]}return _isLaziable=f,_isLaziable}var _setData,hasRequired_setData;function require_setData(){if(hasRequired_setData)return _setData;hasRequired_setData=1;var l=require_baseSetData(),o=require_shortOut(),u=o(l);return _setData=u,_setData}var _getWrapDetails,hasRequired_getWrapDetails;function require_getWrapDetails(){if(hasRequired_getWrapDetails)return _getWrapDetails;hasRequired_getWrapDetails=1;var l=/\{\n\/\* \[wrapped with (.+)\] \*/,o=/,? & /;function u(d){var f=d.match(l);return f?f[1].split(o):[]}return _getWrapDetails=u,_getWrapDetails}var _insertWrapDetails,hasRequired_insertWrapDetails;function require_insertWrapDetails(){if(hasRequired_insertWrapDetails)return _insertWrapDetails;hasRequired_insertWrapDetails=1;var l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function o(u,d){var f=d.length;if(!f)return u;var p=f-1;return d[p]=(f>1?"& ":"")+d[p],d=d.join(f>2?", ":" "),u.replace(l,`{
30/* [wrapped with `+d+`] */
31`)}return _insertWrapDetails=o,_insertWrapDetails}var _arrayEach,hasRequired_arrayEach;function require_arrayEach(){if(hasRequired_arrayEach)return _arrayEach;hasRequired_arrayEach=1;function l(o,u){for(var d=-1,f=o==null?0:o.length;++d<f&&u(o[d],d,o)!==!1;);return o}return _arrayEach=l,_arrayEach}var _updateWrapDetails,hasRequired_updateWrapDetails;
31function require_updateWrapDetails(){if(hasRequired_updateWrapDetails)return _updateWrapDetails;hasRequired_updateWrapDetails=1;var l=require_arrayEach(),o=require_arrayIncludes(),u=1,d=2,f=8,p=16,h=32,v=64,g=128,m=256,y=512,b=[["ary",g],["bind",u],["bindKey",d],["curry",f],["curryRight",p],["flip",y],["partial",h],["partialRight",v],["rearg",m]];function w(E,P){return l(b,function(C){var T="_."+C[0];P&C[1]&&!o(E,T)&&E.push(T)}),E.sort()}return _updateWrapDetails=w,_updateWrapDetails}var _setWrapToString,hasRequired_setWrapToString;function require_setWrapToString(){if(hasRequired_setWrapToString)return _setWrapToString;hasRequired_setWrapToString=1;var l=require_getWrapDetails(),o=require_insertWrapDetails(),u=require_setToString(),d=require_updateWrapDetails();function f(p,h,v){var g=h+"";return u(p,o(g,d(l(g),v)))}return _setWrapToString=f,_setWrapToString}var _createRecurry,hasRequired_createRecurry;function require_createRecurry(){if(hasRequired_createRecurry)return _createRecurry;hasRequired_createRecurry=1;var l=require_isLaziable(),o=require_setData(),u=require_setWrapToString(),d=4,f=8,p=32,h=64;function v(g,m,y,b,w,E,P,C,T,O){var x=m&f,A=x?P:void 0,D=x?void 0:P,j=x?E:void 0,M=x?void 0:E;m|=x?p:h,m&=~(x?h:p),m&d||(m&=-4);var N=[g,m,w,j,A,M,D,C,T,O],q=y.apply(void 0,N);return l(g)&&o(q,N),q.placeholder=b,u(q,g,m)}return _createRecurry=v,_createRecurry}var _getHolder,hasRequired_getHolder;function require_getHolder(){if(hasRequired_getHolder)return _getHolder;hasRequired_getHolder=1;function l(o){var u=o;return u.placeholder}return _getHolder=l,_getHolder}var _reorder,hasRequired_reorder;function require_reorder(){if(hasRequired_reorder)return _reorder;hasRequired_reorder=1;var l=require_copyArray(),o=require_isIndex(),u=Math.min;function d(f,p){for(var h=f.length,v=u(p.length,h),g=l(f);v--;){var m=p[v];f[v]=o(m,h)?g[m]:void 0}return f}return _reorder=d,_reorder}var _replaceHolders,hasRequired_replaceHolders;function require_replaceHolders(){if(hasRequired_replaceHolders)return _replaceHolders;hasRequired_replaceHolders=1;var l="__lodash_placeholder__";function o(u,d){for(var f=-1,p=u.length,h=0,v=[];++f<p;){var g=u[f];(g===d||g===l)&&(u[f]=l,v[h++]=f)}return v}return _replaceHolders=o,_replaceHolders}var _createHybrid,hasRequired_createHybrid;function require_createHybrid(){if(hasRequired_createHybrid)return _createHybrid;hasRequired_createHybrid=1;var l=require_composeArgs(),o=require_composeArgsRight(),u=require_countHolders(),d=require_createCtor(),f=require_createRecurry(),p=require_getHolder(),h=require_reorder(),v=require_replaceHolders(),g=require_root(),m=1,y=2,b=8,w=16,E=128,P=512;function C(T,O,x,A,D,j,M,N,q,z){var H=O&E,U=O&m,F=O&y,B=O&(b|w),G=O&P,Q=F?void 0:d(T);function K(){for(var Z=arguments.length,te=Array(Z),oe=Z;oe--;)te[oe]=arguments[oe];if(B)var fe=p(K),le=u(te,fe);if(A&&(te=l(te,A,D,B)),j&&(te=o(te,j,M,B)),Z-=le,B&&Z<z){var Re=v(te,fe);return f(T,O,C,K.placeholder,x,te,Re,N,q,z-Z)}var Ae=U?x:this,_e=F?Ae[T]:T;return Z=te.length,N?te=h(te,N):G&&Z>1&&te.reverse(),H&&q<Z&&(te.length=q),this&&this!==g&&this instanceof K&&(_e=Q||d(_e)),_e.apply(Ae,te)}return K}return _createHybrid=C,_createHybrid}var _createCurry,hasRequired_createCurry;function require_createCurry(){if(hasRequired_createCurry)return _createCurry;hasRequired_createCurry=1;var l=require_apply(),o=require_createCtor(),u=require_createHybrid(),d=require_createRecurry(),f=require_getHolder(),p=require_replaceHolders(),h=require_root();function v(g,m,y){var b=o(g);function w(){for(var E=arguments.length,P=Array(E),C=E,T=f(w);C--;)P[C]=arguments[C];var O=E<3&&P[0]!==T&&P[E-1]!==T?[]:p(P,T);if(E-=O.length,E<y)return d(g,m,u,w.placeholder,void 0,P,O,void 0,void 0,y-E);var x=this&&this!==h&&this instanceof w?b:g;return l(x,this,P)}return w}return _createCurry=v,_createCurry}var _createPartial,hasRequired_createPartial;function require_createPartial(){if(hasRequired_createPartial)return _createPartial;hasRequired_createPartial=1;var l=require_apply(),o=require_createCtor(),u=require_root(),d=1;function f(p,h,v,g){var m=h&d,y=o(p);function b(){for(var w=-1,E=arguments.length,P=-1,C=g.length,T=Array(C+E),O=this&&this!==u&&this instanceof b?y:p;++P<C;)T[P]=g[P];for(;E--;)T[P++]=arguments[++w];return l(O,m?v:this,T)}return b}
31return _createPartial=f,_createPartial}var _mergeData,hasRequired_mergeData;function require_mergeData(){if(hasRequired_mergeData)return _mergeData;hasRequired_mergeData=1;var l=require_composeArgs(),o=require_composeArgsRight(),u=require_replaceHolders(),d="__lodash_placeholder__",f=1,p=2,h=4,v=8,g=128,m=256,y=Math.min;function b(w,E){var P=w[1],C=E[1],T=P|C,O=T<(f|p|g),x=C==g&&P==v||C==g&&P==m&&w[7].length<=E[8]||C==(g|m)&&E[7].length<=E[8]&&P==v;if(!(O||x))return w;C&f&&(w[2]=E[2],T|=P&f?0:h);var A=E[3];if(A){var D=w[3];w[3]=D?l(D,A,E[4]):A,w[4]=D?u(w[3],d):E[4]}return A=E[5],A&&(D=w[5],w[5]=D?o(D,A,E[6]):A,w[6]=D?u(w[5],d):E[6]),A=E[7],A&&(w[7]=A),C&g&&(w[8]=w[8]==null?E[8]:y(w[8],E[8])),w[9]==null&&(w[9]=E[9]),w[0]=E[0],w[1]=T,w}return _mergeData=b,_mergeData}var _createWrap,hasRequired_createWrap;function require_createWrap(){if(hasRequired_createWrap)return _createWrap;hasRequired_createWrap=1;var l=require_baseSetData(),o=require_createBind(),u=require_createCurry(),d=require_createHybrid(),f=require_createPartial(),p=require_getData(),h=require_mergeData(),v=require_setData(),g=require_setWrapToString(),m=requireToInteger(),y="Expected a function",b=1,w=2,E=8,P=16,C=32,T=64,O=Math.max;function x(A,D,j,M,N,q,z,H){var U=D&w;if(!U&&typeof A!="function")throw new TypeError(y);var F=M?M.length:0;if(F||(D&=-97,M=N=void 0),z=z===void 0?z:O(m(z),0),H=H===void 0?H:m(H),F-=N?N.length:0,D&T){var B=M,G=N;M=N=void 0}var Q=U?void 0:p(A),K=[A,D,j,M,N,B,G,q,z,H];if(Q&&h(K,Q),A=K[0],D=K[1],j=K[2],M=K[3],N=K[4],H=K[9]=K[9]===void 0?U?0:A.length:O(K[9]-F,0),!H&&D&(E|P)&&(D&=-25),!D||D==b)var Z=o(A,D,j);else D==E||D==P?Z=u(A,D,H):(D==C||D==(b|C))&&!N.length?Z=f(A,D,j,M):Z=d.apply(void 0,K);var te=Q?l:v;return g(te(Z,K),A,D)}return _createWrap=x,_createWrap}var curry_1,hasRequiredCurry;function requireCurry(){if(hasRequiredCurry)return curry_1;hasRequiredCurry=1;var l=require_createWrap(),o=8;function u(d,f,p){f=p?void 0:f;var h=l(d,o,void 0,void 0,void 0,void 0,void 0,f);return h.placeholder=u.placeholder,h}return u.placeholder={},curry_1=u,curry_1}var curryExports=requireCurry();const curry=getDefaultExportFromCjs(curryExports);function ownKeys$19(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$19(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$19(Object(u),!0).forEach(function(d){_defineProperty$1j(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$19(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1j(l,o,u){return(o=_toPropertyKey$2R(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2R(l){var o=_toPrimitive$2R(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2R(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _withPlugins$1(l,o){function u(f,p){var h=reactExports.useContext(PluginContext$1),v=_objectSpread$19(_objectSpread$19({},f),p?{ref:p}:{}),g=(h||{})[l];if(isEmpty$1(g)||isEmpty$1(g.wrap)&&isEmpty$1(g.add))return React.createElement(o,v);var m=(g.add||[]).map(function(w){return w.component}),y=React.createElement(o,Object.assign({},v,{PluginComponents:m}));if(isEmpty$1(g.wrap))return y;var b=function(E,P){var C=P.component;return React.createElement(C,Object.assign({targetProps:v},v,{PluginComponents:m,TargetComponent:o}),E)};return g.wrap.slice().reverse().reduce(b,React.createElement(o,v))}var d=React.forwardRef(u);return d.displayName="WithPlugins(".concat(l,")"),d}var withPlugins$1=curry(_withPlugins$1),getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[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;function validate(l){return typeof l=="string"&&REGEX.test(l)}var byteToHex=[];for(var i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=(byteToHex[l[o+0]]+byteToHex[l[o+1]]+byteToHex[l[o+2]]+byteToHex[l[o+3]]+"-"+byteToHex[l[o+4]]+byteToHex[l[o+5]]+"-"+byteToHex[l[o+6]]+byteToHex[l[o+7]]+"-"+byteToHex[l[o+8]]+byteToHex[l[o+9]]+"-"+byteToHex[l[o+10]]+byteToHex[l[o+11]]+byteToHex[l[o+12]]+byteToHex[l[o+13]]+byteToHex[l[o+14]]+byteToHex[l[o+15]]).toLowerCase();
31if(!validate(u))throw TypeError("Stringified UUID is invalid");return u}function v4(l,o,u){l=l||{};var d=l.random||(l.rng||rng)();return d[6]=d[6]&15|64,d[8]=d[8]&63|128,stringify(d)}var ActionTypes$1={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_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",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_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",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",SHIFT_BOOK_VIEW:"mirador/SHIFT_BOOK_VIEW"},NOT_FOUND="NOT_FOUND";function createSingletonCache(l){var o;return{get:function(d){return o&&l(o.key,d)?o.value:NOT_FOUND},put:function(d,f){o={key:d,value:f}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}}function createLruCache(l,o){var u=[];function d(v){var g=u.findIndex(function(y){return o(v,y.key)});if(g>-1){var m=u[g];return g>0&&(u.splice(g,1),u.unshift(m)),m.value}return NOT_FOUND}function f(v,g){d(v)===NOT_FOUND&&(u.unshift({key:v,value:g}),u.length>l&&u.pop())}function p(){return u}function h(){u=[]}return{get:d,put:f,getEntries:p,clear:h}}var defaultEqualityCheck=function(o,u){return o===u};function createCacheKeyComparator(l){return function(u,d){if(u===null||d===null||u.length!==d.length)return!1;for(var f=u.length,p=0;p<f;p++)if(!l(u[p],d[p]))return!1;return!0}}
31function defaultMemoize(l,o){var u=typeof o=="object"?o:{equalityCheck:o},d=u.equalityCheck,f=d===void 0?defaultEqualityCheck:d,p=u.maxSize,h=p===void 0?1:p,v=u.resultEqualityCheck,g=createCacheKeyComparator(f),m=h===1?createSingletonCache(g):createLruCache(h,g);function y(){var b=m.get(arguments);if(b===NOT_FOUND){if(b=l.apply(null,arguments),v){var w=m.getEntries(),E=w.find(function(P){return v(P.value,b)});E&&(b=E.value)}m.put(arguments,b)}return b}return y.clearCache=function(){return m.clear()},y}function getDependencies(l){var o=Array.isArray(l[0])?l[0]:l;if(!o.every(function(d){return typeof d=="function"})){var u=o.map(function(d){return typeof d=="function"?"function "+(d.name||"unnamed")+"()":typeof d}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+u+"]")}return o}function createSelectorCreator(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];var f=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];var m=0,y,b={memoizeOptions:void 0},w=v.pop();if(typeof w=="object"&&(b=w,w=v.pop()),typeof w!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof w+"]");var E=b,P=E.memoizeOptions,C=P===void 0?u:P,T=Array.isArray(C)?C:[C],O=getDependencies(v),x=l.apply(void 0,[function(){return m++,w.apply(null,arguments)}].concat(T)),A=l(function(){for(var j=[],M=O.length,N=0;N<M;N++)j.push(O[N].apply(null,arguments));return y=x.apply(null,j),y});return Object.assign(A,{resultFunc:w,memoizedResultFunc:x,dependencies:O,lastResult:function(){return y},recomputations:function(){return m},resetRecomputations:function(){return m=0}}),A};return f}var createSelector=createSelectorCreator(defaultMemoize),createStructuredSelector=function(o,u){if(u===void 0&&(u=createSelector),typeof o!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof o));var d=Object.keys(o),f=u(d.map(function(p){return o[p]}),function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];return h.reduce(function(g,m,y){return g[d[y]]=m,g},{})});return f};const es$1=Object.freeze(Object.defineProperty({__proto__:null,createSelector,createSelectorCreator,createStructuredSelector,defaultEqualityCheck,defaultMemoize},Symbol.toStringTag,{value:"Module"}));var _baseFilter,hasRequired_baseFilter;function require_baseFilter(){if(hasRequired_baseFilter)return _baseFilter;hasRequired_baseFilter=1;var l=require_baseEach();function o(u,d){var f=[];return l(u,function(p,h,v){d(p,h,v)&&f.push(p)}),f}return _baseFilter=o,_baseFilter}var filter_1,hasRequiredFilter;function requireFilter(){if(hasRequiredFilter)return filter_1;hasRequiredFilter=1;var l=require_arrayFilter(),o=require_baseFilter(),u=require_baseIteratee(),d=requireIsArray();function f(p,h){var v=d(p)?l:o;return v(p,u(h,3))}return filter_1=f,filter_1}var filterExports=requireFilter();const filter$1=getDefaultExportFromCjs(filterExports);var flatten_1,hasRequiredFlatten;function requireFlatten(){if(hasRequiredFlatten)return flatten_1;hasRequiredFlatten=1;var l=require_baseFlatten();function o(u){var d=u==null?0:u.length;return d?l(u,1):[]}return flatten_1=o,flatten_1}var flattenExports=requireFlatten();const flatten=getDefaultExportFromCjs(flattenExports);var compact_1,hasRequiredCompact;function requireCompact(){if(hasRequiredCompact)return compact_1;hasRequiredCompact=1;function l(o){for(var u=-1,d=o==null?0:o.length,f=0,p=[];++u<d;){var h=o[u];h&&(p[f++]=h)}return p}return compact_1=l,compact_1}var compactExports=requireCompact();const compact=getDefaultExportFromCjs(compactExports);function _classCallCheck$2h(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$29(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2Q(d.key),d)}}function _createClass$29(l,o,u){return o&&_defineProperties$29(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2Q(l){var o=_toPrimitive$2Q(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2Q(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationResource$1=(function(){function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$2h(this,l),this.resource=o}return _createClass$29(l,[{key:"isOnlyTag",value:function(){return this.motivations.length===1&&this.motivations[0]==="oa:tagging"}},{key:"id",get:function(){return this._id=this._id||this.resource["@id"]||this.resources[0]&&this.resources[0]["@id"]||v4(),this._id}},{key:"targetId",get:function(){var u=this.on[0];switch(typeof u){case"string":return u.replace(/#?xywh=(.*)$/,"");case"object":return u.full.replace(/#?xywh=(.*)$/,"");default:return null}}},{key:"motivations",get:function(){return flatten(compact(new Array(this.resource.motivation)))}},{key:"resources",get:function(){return flatten(compact(new Array(this.resource.resource)))}},{key:"on",get:function(){return flatten(compact(new Array(this.resource.on)))}},{key:"tags",get:function(){return this.isOnlyTag()?this.resources.map(function(u){return u.chars}):this.resources.filter(function(u){return u["@type"]==="oa:Tag"}).map(function(u){return u.chars})}},{key:"chars",get:function(){return this.resources.filter(function(u){return u["@type"]!=="oa:Tag"}).map(function(u){return u.chars}).join(" ")}},{key:"selector",get:function(){var u=this.on[0];switch(typeof u){case"string":return u;case"object":return u.selector["@type"]==="oa:Choice"?u.selector.default:u.selector;default:return null}}},{key:"svgSelector",get:function(){var u=this.on[0];switch(typeof u){case"string":return null;case"object":return u.selector&&u.selector.item&&u.selector.item["@type"]==="oa:SvgSelector"?u.selector.item:null;default:return null}}},{key:"fragmentSelector",get:function(){var u=this.selector,d;switch(typeof u){case"string":d=u.match(/xywh=(.*)$/);break;case"object":d=u.value.match(/xywh=(.*)$/);break;default:return null}return d&&d[1].split(",").map(function(f){return parseInt(f,10)})}}])})();function _classCallCheck$2g(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$28(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2P(d.
31key),d)}}function _createClass$28(l,o,u){return o&&_defineProperties$28(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2P(l){var o=_toPrimitive$2P(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2P(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationList$2=(function(){function l(o,u){_classCallCheck$2g(this,l),this.json=o,this.target=u}return _createClass$28(l,[{key:"id",get:function(){return this.json["@id"]}},{key:"present",value:function(){return this.resources&&this.resources.length>0}},{key:"resources",get:function(){var u=this;return this._resources=this._resources||(function(){return!u.json||!u.json.resources?[]:flatten([u.json.resources]).map(function(d){return new AnnotationResource$1(d)})})(),this._resources}}])})();function _classCallCheck$2f(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$27(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2O(d.key),d)}}function _createClass$27(l,o,u){return o&&_defineProperties$27(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2O(l){var o=_toPrimitive$2O(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2O(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationItem$1=(function(){function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$2f(this,l),this.resource=o}return _createClass$27(l,[{key:"isOnlyTag",value:function(){return this.motivations.length===1&&this.motivations[0]==="tagging"}},{key:"id",get:function(){return this._id=this._id||this.resource.id||v4(),this._id}},{key:"targetId",get:function(){var u=this.target[0];switch(typeof u){case"string":return u.replace(/#?xywh=(.*)$/,"");case"object":return u.source&&u.source.id||u.source||u.id;default:return null}}},{key:"motivations",get:function(){return flatten(compact(new Array(this.resource.motivation)))}},{key:"body",get:function(){return flatten(compact(new Array(this.resource.body)))}},{key:"resources",get:function(){return this.body}},{key:"tags",get:function(){return this.isOnlyTag()?this.body.map(function(u){return u.value}):this.body.filter(function(u){return u.purpose==="tagging"}).map(function(u){return u.value})}},{key:"target",get:function(){return flatten(compact(new Array(this.resource.target)))}},{key:"chars",get:function(){return this.isOnlyTag()?null:this.body.filter(function(u){return u.purpose!=="tagging"}).map(function(u){return u.value}).join(" ")}},{key:"selector",get:function(){var u=this.target[0];switch(typeof u){case"string":return u;case"object":return flatten(compact(new Array(u.selector)));default:return null}}},{key:"svgSelector",get:function(){var u=this.selector;switch(typeof u){case"string":return null;case"object":return u.find(function(d){return d.type&&d.type==="SvgSelector"});default:return null}}},{key:"fragmentSelector",get:function(){var u=this.selector,d,f;switch(typeof u){case"string":d=u.match(/xywh=(.*)$/);break;case"object":f=u.find(function(p){return p.type&&p.type==="FragmentSelector"}),d=f&&f.value.match(/xywh=(.*)$/);break;default:return null}return d&&d[1].split(",").map(function(p){return parseInt(p,10)})}}])})();function _classCallCheck$2e(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$26(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2N(d.key),d)}}function _createClass$26(l,o,u){return o&&_defineProperties$26(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2N(l){var o=_toPrimitive$2N(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2N(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationPage$2=(function(){function l(o,u){_classCallCheck$2e(this,l),this.json=o,this.target=u}return _createClass$26(l,[{key:"id",get:function(){return this.json.id}},{key:"present",value:function(){return this.items&&this.items.length>0}},{key:"items",get:function(){var u=this;return this._items=this._items||(function(){return!u.json||!u.json.items?[]:flatten([u.json.items]).map(function(d){return new AnnotationItem$1(d)})})(),this._items}},{key:"resources",get:function(){return this.items}}])})();function _classCallCheck$2d(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$25(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2M(d.key),d)}}function _createClass$25(l,o,u){return u&&_defineProperties$25(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2M(l){var o=_toPrimitive$2M(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2M(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationFactory$1=(function(){function l(){_classCallCheck$2d(this,l)}return _createClass$25(l,null,[{key:"determineAnnotation",value:function(u,d){return u?u.type==="AnnotationPage"?new AnnotationPage$2(u,d):new AnnotationList$2(u,d):null}}])})();function _slicedToArray$m(l,o){return _arrayWithHoles$m(l)||_iterableToArrayLimit$m(l,o)||_unsupportedIterableToArray$C(l,o)||_nonIterableRest$m()}function _nonIterableRest$m(){throw new TypeError(`Invalid attempt to de
31structure non-iterable instance.
32In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$C(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$C(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$C(l,o):void 0}}function _arrayLikeToArray$C(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$m(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$m(l){if(Array.isArray(l))return l}function _defineProperty$1i(l,o,u){return(o=_toPropertyKey$2L(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2L(l){var o=_toPrimitive$2L(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2L(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}const settings$1={state:{},canvasNavigation:{height:50,width:50},selectedTheme:"light",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:_defineProperty$1i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementRight:_defineProperty$1i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementTop:_defineProperty$1i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementBottom:_defineProperty$1i({},"@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",et:"Eesti",fa:"فارسی",fr:"Français",ja:"日本語",kr:"한국어",lt:"Lietuvių",nl:"Nederlands","nb-NO":"Norwegian Bokmål",pl:"Polski","pt-B
32R":"Português do Brasil",vi:"Tiếng Việt","zh-CN":"中文(简体)","zh-TW":"中文(繁體)",it:"Italiano",sr:"Српски",sv:"Svenska",bg:"Български"},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:!0,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:!0,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:v4(),isWorkspaceAddVisible:!1,exposeModeOn:!1,height:5e3,showZoomControls:!1,type:"mosaic",viewportPosition:{x:0,y:0},width:5e3},workspaceControlPanel:{enabled:!0},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(o){var u=_slicedToArray$m(o,2),d=u[0];return u[1],!d.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 miradorSlice$1(l){return settings$1.state.slice?l[settings$1.state.slice]:l}function _classCallCheck$2c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$24(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2K(d.key),d)}}function _createClass$24(l,o,u){return o&&_defineProperties$24(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2K(l){var o=_toPrimitive$2K(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2K(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var CanvasGroupings$1=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"single",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_classCallCheck$2c(this,l),this.canvases=o,this.viewType=u,this.shiftBookView=d,this._groupings=null}return _createClass$24(l,[{key:"getCanvases",value:function(u){if(this.viewType==="single")return this.groupings()[u];var d=this.canvases[u];return this.groupings().find(function(f){return f.indexOf(d)>=0})}},{key:"groupings",value:function(){var u=this;if(this._groupings)return this._groupings;if(this.viewType==="scroll")return[this.canvases];if(this.viewType!=="book")return this.canvases.map(function(f){return[f]});var d=[];return this.canvases.forEach(function(f,p){if(p===0){d.push([f]);return}var h=p%2!==0,v=!h;h&&!u.shiftBookView||v&&u.shiftBookView?d.push([f]):d[d.length-1].push(f)}),this._groupings=d,d}}])})(),flattenDeep_1,hasRequiredFlattenDeep;function requireFlattenDeep(){if(hasRequiredFlattenDeep)return flatten
32Deep_1;hasRequiredFlattenDeep=1;var l=require_baseFlatten(),o=1/0;function u(d){var f=d==null?0:d.length;return f?l(d,o):[]}return flattenDeep_1=u,flattenDeep_1}var flattenDeepExports=requireFlattenDeep();const flattenDeep=getDefaultExportFromCjs(flattenDeepExports);var JSONLDResource=(function(){function l(o){this.__jsonld=o,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return l.prototype.getProperty=function(o){var u=null;return this.__jsonld&&(u=this.__jsonld[o],u||(u=this.__jsonld["@"+o])),u},l})(),distCommonjs$1={},hasRequiredDistCommonjs$1;function requireDistCommonjs$1(){if(hasRequiredDistCommonjs$1)return distCommonjs$1;hasRequiredDistCommonjs$1=1,Object.defineProperty(distCommonjs$1,"__esModule",{value:!0}),distCommonjs$1.ViewingHint=distCommonjs$1.ViewingDirection=distCommonjs$1.ServiceType=distCommonjs$1.ServiceProfile=distCommonjs$1.RenderingFormat=distCommonjs$1.MediaType=distCommonjs$1.IIIFResourceType=distCommonjs$1.ExternalResourceType=distCommonjs$1.Behavior=distCommonjs$1.AnnotationMotivation=void 0;var l;(function(y){y.BOOKMARKING="oa:bookmarking",y.CLASSIFYING="oa:classifying",y.COMMENTING="oa:commenting",y.DESCRIBING="oa:describing",y.EDITING="oa:editing",y.HIGHLIGHTING="oa:highlighting",y.IDENTIFYING="oa:identifying",y.LINKING="oa:linking",y.MODERATING="oa:moderating",y.PAINTING="sc:painting",y.QUESTIONING="oa:questioning",y.REPLYING="oa:replying",y.TAGGING="oa:tagging",y.TRANSCRIBING="oad:transcribing"})(l||(distCommonjs$1.AnnotationMotivation=l={}));var o;(function(y){y.AUTO_ADVANCE="auto-advance",y.CONTINUOUS="continuous",y.FACING_PAGES="facing-pages",y.HIDDEN="hidden",y.INDIVIDUALS="individuals",y.MULTI_PART="multi-part",y.NO_NAV="no-nav",y.NON_PAGED="non-paged",y.PAGED="paged",y.REPEAT="repeat",y.SEQUENCE="sequence",y.THUMBNAIL_NAV="thumbnail-nav",y.TOGETHER="together",y.UNORDERED="unordered"})(o||(distCommonjs$1.Behavior=o={}));var u;(function(y){y.CANVAS="canvas",y.CHOICE="choice",y.OA_CHOICE="oa:choice",y.CONTENT_AS_TEXT="contentastext",y.DATASET="dataset",y.DOCUMENT="document",y.IMAGE="image",y.MODEL="model",y.MOVING_IMAGE="movingimage",y.PDF="pdf",y.PHYSICAL_OBJECT="physicalobject",y.SOUND="sound",y.TEXT="text",y.TEXTUALBODY="textualbody",y.VIDEO="video"})(u||(distCommonjs$1.ExternalResourceType=u={}));var d;(function(y){y.ANNOTATION="annotation",y.ANNOTATION_COLLECTION="annotationcollection",y.ANNOTATION_PAGE="annotationpage",y.CANVAS="canvas",y.COLLECTION="collection",y.MANIFEST="manifest",y.RANGE="range",y.SEQUENCE="sequence"})(d||(distCommonjs$1.IIIFResourceType=d={}));var f;(function(y){y.APNG="image/apng",y.AUDIO_MP4="audio/mp4",y.AUDIO_OGG="audio/ogg",y.AVIF="audio/avif",y.CORTO="application/corto",y.DICOM="application/dicom",y.DRACO="application/draco",y.EPUB="application/epub+zip",y.GIF="image/gif",y.GIRDER="image/vnd.kitware.girder",y.GLB="model/gltf-binary",y.GLTF="model/gltf+json",y.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',y.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',y.JPG="image/jpeg",y.M3U8="application/vnd.apple.mpegurl",y.MP3="audio/mp3",y.MPEG="audio/mpeg",y.MPEG_DASH="application/dash+xml",y.OBJ="model/obj",y.OPF="application/oebps-package+xml",y.PDF="application/pdf",y.PLY="application/ply",y.PNG="image/png",y.SVG="image/svg+xml",y.THREEJS="application/vnd.threejs+json",y.USDZ="model/vnd.usd+zip",y.VIDEO_MP4="video/mp4",y.VIDEO_OGG="video/ogg",y.WAV="audio/wav",y.WEBM="video/webm",y.WEBP="image/webp"})(f||(distCommonjs$1.MediaType=f={}));var p;(function(y){y.DOC="application/msword",y.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",y.ODT="application/vnd.oasis.opendocument.text",y.PDF="application/pdf"})(p||(distCommonjs$1.RenderingFormat=p={}));var h;(function(y){y.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",y.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",y.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",y.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",y.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",y.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",y.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",y.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",y.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",y.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",y.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",y.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",y.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",y.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",y.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",y.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",y.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",y.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",y.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",y.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",y.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",y.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",y.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",y.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",y.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",y.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",y.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",y.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",y.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",y.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",y.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",y.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",y.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",y.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",y.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",y.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",y.SEARCH_0="http://iiif.io/api/search/0/search",y.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",y.SEARCH_1="http://iiif.io/api/search/1/search",y.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",y.SEARCH_2="http://iiif.io/api/search/2/search",y.SEARCH_2_AUTO_COMPLETE="http://iiif.io/api/search/2/autocomplete",y.TRACKING_EXTENSIONS="http://universalviewer.i
32o/tracking-extensions-profile",y.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",y.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",y.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",y.DOWNLOAD_EXTENSIONS="http://universalviewer.io/download-extensions-profile",y.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",y.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"})(h||(distCommonjs$1.ServiceProfile=h={}));var v;(function(y){y.IMAGE_SERVICE_2="ImageService2",y.IMAGE_SERVICE_3="ImageService3",y.SEARCH_SERVICE_2="SearchService2",y.AUTO_COMPLETE_SERVICE_2="AutoCompleteService2"})(v||(distCommonjs$1.ServiceType=v={}));var g;(function(y){y.BOTTOM_TO_TOP="bottom-to-top",y.LEFT_TO_RIGHT="left-to-right",y.RIGHT_TO_LEFT="right-to-left",y.TOP_TO_BOTTOM="top-to-bottom"})(g||(distCommonjs$1.ViewingDirection=g={}));var m;return(function(y){y.CONTINUOUS="continuous",y.INDIVIDUALS="individuals",y.NON_PAGED="non-paged",y.PAGED="paged",y.TOP="top"})(m||(distCommonjs$1.ViewingHint=m={})),distCommonjs$1}var distCommonjsExports$1=requireDistCommonjs$1(),__extends$j=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),ManifestResource=(function(l){__extends$j(o,l);function o(u,d){var f=l.call(this,u)||this;return f.options=d,f}return o.prototype.getIIIFResourceType=function(){return Utils.normaliseType(this.getProperty("type"))},o.prototype.getLabel=function(){var u=this.getProperty("label");return u?PropertyValue.parse(u,this.options.locale):new PropertyValue([],this.options.locale)},o.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},o.prototype.getMetadata=function(){var u=this.getProperty("metadata"),d=[];if(!u)return d;for(var f=0;f<u.length;f++){var p=u[f],h=new LabelValuePair(this.options.locale);h.parse(p),d.push(h)}return d},o.prototype.getRendering=function(u){for(var d=this.getRenderings(),f=0;f<d.length;f++){var p=d[f];if(p.getFormat()===u)return p}return null},o.prototype.getRenderings=function(){var u;this.__jsonld?u=this.__jsonld.rendering:u=this.rendering;var d=[];if(!u)return d;Array.isArray(u)||(u=[u]);for(var f=0;f<u.length;f++){var p=u[f];d.push(new Rendering(p,this.options))}return d},o.prototype.getRequiredStatement=function(){var u=null,d=this.getProperty("requiredStatement");return d&&(u=new LabelValuePair(this.options.locale),u.parse(d)),u},o.prototype.getService=function(u){return Utils.getService(this,u)},o.prototype.getServices=function(){return Utils.getServices(this)},o.prototype.getThumbnail=function(){var u=this.getProperty("thumbnail");return Array.isArray(u)&&(u=u[0]),u?new Thumbnail(u,this.options):null},o.prototype.isAnnotation=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.ANNOTATION},o.prototype.isCanvas=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.CANVAS},o.prototype.isCollection=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.COLLECTION},o.prototype.isManifest=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.MANIFEST},o.prototype.isRange=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.RANGE},o.prototype.isSequence=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.SEQUENCE},o})(JSONLDResource),__extends$i=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}
32o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Resource=(function(l){__extends$i(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getFormat=function(){var u=this.getProperty("format");return u?u.toLowerCase():null},o.prototype.getResources=function(){var u=[];if(!this.__jsonld.resources)return u;for(var d=0;d<this.__jsonld.resources.length;d++){var f=this.__jsonld.resources[d],p=new Annotation(f,this.options);u.push(p)}return u},o.prototype.getType=function(){var u=this.getProperty("type");return u?Utils.normaliseType(u):null},o.prototype.getWidth=function(){return this.getProperty("width")},o.prototype.getHeight=function(){return this.getProperty("height")},o.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},o.prototype.getMaxHeight=function(){var u=this.getProperty("maxHeight");return u?null:this.getMaxWidth()},o})(ManifestResource),__extends$h=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),IIIFResource=(function(l){__extends$h(o,l);function o(u,d){var f=l.call(this,u,d)||this;f.index=-1,f.isLoaded=!1;var p={defaultLabel:"-",locale:"en-GB",resource:f,pessimisticAccessControl:!1};return f.options=Object.assign(p,d),f}return o.prototype.getAttribution=function(){var u=this.getProperty("attribution");return u?PropertyValue.parse(u,this.options.locale):new PropertyValue([],this.options.locale)},o.prototype.getDescription=function(){var u=this.getProperty("description");return u===void 0&&(u=this.getProperty("summary")),u?PropertyValue.parse(u,this.options.locale):new PropertyValue([],this.options.locale)},o.prototype.getSummary=function(){var u=this.getProperty("summary");return u===void 0&&(u=this.getProperty("description")),u?PropertyValue.parse(u,this.options.locale):new PropertyValue([],this.options.locale)},o.prototype.getHomepage=function(){var u=this.getProperty("homepage");return u?typeof u=="string"?u:(Array.isArray(u)&&u.length&&(u=u[0]),u["@id"]||u.id):null},o.prototype.getIIIFResourceType=function(){return Utils.normaliseType(this.getProperty("type"))},o.prototype.getLogo=function(){var u=this.getProperty("logo");if(!u){var d=this.getProperty("provider");if(!d)return null;var f=d.find(function(p){return p.logo!==void 0});f&&f.logo!==void 0?u=f.logo:u=null}return u?typeof u=="string"?u:(Array.isArray(u)&&u.length&&(u=u[0]),u["@id"]||u?.id):null},o.prototype.getLicense=function(){return Utils.getLocalisedValue(this.getProperty("license"),this.options.locale)},o.prototype.getRights=function(){var u=this.getProperty("rights");return u?typeof u=="string"?u:(Array.isArray(u)&&u.length&&(u=u[0]),u["@id"]||u.id):null},o.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},o.prototype.getRelated=function(){return this.getProperty("related")},o.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},o.prototype.getTrackingLabel=function(){var u=this.getService(distCommonjsExports$1.ServiceProfile.TRACKING_EXTENSIONS);return u?u.getProperty("trackingLabel"):""},o.prototype.getDefaultTree=function(){return this.defaultTree=new TreeNode("root"),this.defaultTree.data=this,this.defaultTree},o.prototype.getRequiredStatement=function(){var u=null,d=this.getProperty("requiredStatement");if(d)u=new LabelValuePair(this.options.locale),u.parse(d);else{var f=this.getAttribution();f&&f.length&&(u=new LabelValuePair(this.options.locale),u.value=f)}return u},o.prototype.isCollection=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.COLLECTION},o.prototype.isManifest=function(){return this.getIIIFResourceType()===distCommonjsExports$1.IIIFResourceType.MANIFEST},o.prototype.load=function(){var u=this;return new Promise(function(d){if(u.isLoaded)d(u);else{var f=u.options;f.navDate=u.getNavDate();var p=u.__jsonld.id;p||(p=u.__jsonld["@id"]),Utils.loadManifest(p).then(function(h){u.parentLabel=u.getLabel().getValue(f.locale);var v=Deserialiser.parse(h,f);u=Object.assign(u,v),u.index=f.index,d(u)})}})},o})(ManifestResource),__extends$g=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}
32o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Annotation=(function(l){__extends$g(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getBody=function(){var u=[],d=this.getProperty("body");if(d)if(Array.isArray(d))for(var f=0;f<d.length;f++){var p=d[f];if(p.items)for(var h=0;h<p.items.length;h++){var v=p.items[h];u.push(new AnnotationBody(v,this.options))}else u.push(new AnnotationBody(p,this.options))}else if(d.items)for(var f=0;f<d.items.length;f++){var p=d.items[f];u.push(new AnnotationBody(p,this.options))}else u.push(new AnnotationBody(d,this.options));return u},o.prototype.getMotivation=function(){var u=this.getProperty("motivation");return u||null},o.prototype.getOn=function(){return this.getProperty("on")},o.prototype.getTarget=function(){return this.getProperty("target")},o.prototype.getResource=function(){return new Resource(this.getProperty("resource"),this.options)},o})(ManifestResource),__extends$f=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),AnnotationBody=(function(l){__extends$f(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getFormat=function(){var u=this.getProperty("format");return u?Utils.getMediaType(u):null},o.prototype.getType=function(){var u=this.getProperty("type");return u?Utils.normaliseType(this.getProperty("type")):null},o.prototype.getValue=function(){return this.getProperty("value")},o.prototype.getLanguage=function(){return this.getProperty("language")},o.prototype.getWidth=function(){return this.getProperty("width")},o.prototype.getHeight=function(){return this.getProperty("height")},o})(ManifestResource),__extends$e=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),AnnotationList$1=(function(l){__extends$e(o,l);function o(u,d,f){var p=l.call(this,d)||this;return p.label=u,p.options=f,p}return o.prototype.getIIIFResourceType=function(){return Utils.normaliseType(this.getProperty("type"))},o.prototype.getLabel=function(){return this.label},o.prototype.getResources=function(){var u=this,d=this.getProperty("resources");return d.map(function(f){return new Annotation(f,u.options)})},o.prototype.load=function(){var u=this;return new Promise(function(d,f){if(u.isLoaded)d(u);else{var p=u.__jsonld.id;p||(p=u.__jsonld["@id"]),Utils.loadManifest(p).then(function(h){u.__jsonld=h,u.context=u.getProperty("context"),u.id=u.getProperty("id"),u.isLoaded=!0,d(u)}).catch(f)}})},o})(JSONLDResource),__extends$d=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),AnnotationPage$1=(function(l){__extends$d(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getItems=function(){return this.getProperty("items")},o.prototype.getAnnotations=function(){var u=[],d=this.getProperty("items");if(!d||!Array.isArray(d))return u;for(var f=0;f<d.length;f++){var p=new Annotation(d[f],this.options);u.push(p)}return u},o})(ManifestResource),__extends$c=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}
32o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Canvas=(function(l){__extends$c(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getCanonicalImageUri=function(u){var d=null,f="full",p=0,h="default",v=u,g=v+",";if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])d=this.externalResource.data["@id"],v||(v=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)&&(h="native");else{var m=void 0;if(m=this.getImages(),m&&m.length){var y=m[0],b=y.getResource(),w=b.getServices();v||(v=b.getWidth());var E=w?w.find(function(x){return Utils.isImageProfile(x.getProfile())||Utils.isImageServiceType(x.getIIIFResourceType())}):null;if(E)d=E.id,h=Utils.getImageQuality(E.getProfile());else if(v===b.getWidth())return b.id}if(m=this.getContent(),m&&m.length){var y=m[0],P=y.getBody(),C=P[0],w=C.getServices();v||(v=C.getWidth());var E=w?w.find(function(j){return Utils.isImageServiceType(j.getIIIFResourceType())}):null;if(E)d=E.id,h=Utils.getImageQuality(E.getProfile());else if(v===C.getWidth())return C.id}if(!d){var T=this.getProperty("thumbnail");if(T){if(typeof T=="string")return T;if(T["@id"])return T["@id"];if(T.length)return T[0].id}}}d&&d.endsWith("/")&&(d=d.substr(0,d.length-1));var O=[d,f,g,p,h+".jpg"].join("/");return O},o.prototype.getMaxDimensions=function(){var u=null,d;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(d=this.externalResource.data.profile,Array.isArray(d)&&(d=d.filter(function(f){var p;return(p=f.maxWidth)!==null&&p!==void 0?p:f.maxwidth})[0],d&&(u=new Size(d.maxWidth,d.maxHeight?d.maxHeight:d.maxWidth)))),u},o.prototype.getContent=function(){var u=[],d=this.__jsonld.items||this.__jsonld.content;if(!d)return u;var f=null;if(d.length&&(f=new AnnotationPage$1(d[0],this.options)),!f)return u;for(var p=f.getAnnotations(),h=0;h<p.length;h++){var v=p[h];u.push(v)}return u},o.prototype.getAnnotations=function(){var u=[],d=this.__jsonld.annotations;if(!d||!Array.isArray(d))return u;for(var f=0;f<d.length;f++){var p=new AnnotationPage$1(d[f],this.options);u.push(p)}return u},o.prototype.getDuration=function(){return this.getProperty("duration")},o.prototype.getImages=function(){var u=[];if(!this.__jsonld.images)return u;for(var d=0;d<this.__jsonld.images.length;d++){var f=this.__jsonld.images[d],p=new Annotation(f,this.options);u.push(p)}return u},o.prototype.getIndex=function(){return this.getProperty("index")},o.prototype.getOtherContent=function(){var u=this,d=Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")],f=function(h,v){return typeof h!="string"?!1:h.toLowerCase()===h.toLowerCase()},p=d.filter(function(h){return h&&f(h["@type"])}).map(function(h,v){return new AnnotationList$1(h.label||"Annotation list ".concat(v),h,u.options)}).map(function(h){return h.load()});return Promise.all(p)},o.prototype.getWidth=function(){return this.getProperty("width")},o.prototype.getHeight=function(){return this.getProperty("height")},o.prototype.getViewingHint=function(){var u=this.getProperty("viewingHint");return Array.isArray(u)&&(u=u[0]),u||null},Object.defineProperty(o.prototype,"imageResources",{get:function(){var u=this,d=flattenDeep([this.getImages().map(function(f){return f.getResource()}),this.getContent().map(function(f){return f.getBody()})]);return flatten(d.map(function(f){switch(f.getProperty("type").toLowerCase()){case distCommonjsExports$1.ExternalResourceType.CHOICE:case distCommonjsExports$1.ExternalResourceType.OA_CHOICE:return new o({images:flatten([f.getProperty("default"),f.getProperty("item")]).map(function(p){return{resource:p}})},u.options).getImages().map(function(p){return p.getResource()});default:return f}}))},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"resourceAnnotations",{get:function(){return flatten
32Deep([this.getImages(),this.getContent()])},enumerable:!1,configurable:!0}),o.prototype.resourceAnnotation=function(u){return this.resourceAnnotations.find(function(d){return d.getResource().id===u||flatten(new Array(d.getBody())).some(function(f){return f.id===u})})},o.prototype.onFragment=function(u){var d=this.resourceAnnotation(u);if(d){var f=d.getProperty("on"),p=d.getProperty("target");if(!(!f||!p)){var h=(f||p).match(/xywh=(.*)$/);if(h)return h[1].split(",").map(function(v){return parseInt(v,10)})}}},Object.defineProperty(o.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter(function(u){return u&&u.getServices()[0]&&u.getServices()[0].id})},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map(function(u){return u.getServices()[0].id})},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!1,configurable:!0}),o})(Resource),__extends$b=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Collection=(function(l){__extends$b(o,l);function o(u,d){var f=l.call(this,u,d)||this;return f.items=[],f._collections=null,f._manifests=null,u.__collection=f,f}return o.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter(function(u){return u.isCollection()})},o.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter(function(u){return u.isManifest()})},o.prototype.getCollectionByIndex=function(u){for(var d=this.getCollections(),f,p=0;p<d.length;p++){var h=d[p];h.index===u&&(f=h)}if(f)return f.options.index=u,f.load();throw new Error("Collection index not found")},o.prototype.getManifestByIndex=function(u){for(var d=this.getManifests(),f,p=0;p<d.length;p++){var h=d[p];h.index===u&&(f=h)}if(f)return f.options.index=u,f.load();throw new Error("Manifest index not found")},o.prototype.getTotalCollections=function(){return this.getCollections().length},o.prototype.getTotalManifests=function(){return this.getManifests().length},o.prototype.getTotalItems=function(){return this.items.length},o.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):distCommonjsExports$1.ViewingDirection.LEFT_TO_RIGHT},o.prototype.getBehavior=function(){var u=this.getProperty("behavior");return Array.isArray(u)&&(u=u[0]),u||null},o.prototype.getViewingHint=function(){var u=this.getProperty("viewingHint");return Array.isArray(u)&&(u=u[0]),u||null},o.prototype.getDefaultTree=function(){return l.prototype.getDefaultTree.call(this),this.defaultTree.data.type=Utils.normaliseType(TreeNodeType.COLLECTION),this._parseManifests(this),this._parseCollections(this),Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},o.prototype._parseManifests=function(u){if(u.getManifests()&&u.getManifests().length)for(var d=0;d<u.getManifests().length;d++){var f=u.getManifests()[d],p=f.getDefaultTree();p.label=f.parentLabel||f.getLabel().getValue(this.options.locale)||"manifest "+(d+1),p.navDate=f.getNavDate(),p.data.id=f.id,p.data.type=Utils.normaliseType(TreeNodeType.MANIFEST),u.defaultTree.addNode(p)}},o.prototype._parseCollections=function(u){if(u.getCollections()&&u.getCollections().length)for(var d=0;d<u.getCollections().length;d++){var f=u.getCollections()[d],p=f.getDefaultTree();p.label=f.parentLabel||f.getLabel().getValue(this.options.locale)||"collection "+(d+1),p.navDate=f.getNavDate(),p.data.id=f.id,p.data.type=Utils.normaliseType(TreeNodeType.COLLECTION),u.defaultTree.addNode(p)}},o})(IIIFResource),Duration=(function(){function l(o,u){this.start=o,this.end=u}return l.prototype.getLength=function(){return this.end-this.start},l})(),LabelValuePair=(function(){function l(o){this.defaultLocale=o}return l.prototype.parse=function(o){this.resource=o,this.label=PropertyValue.parse(this.resource.label,this.defaultLocale),this.value=Pro
32pertyValue.parse(this.resource.value,this.defaultLocale)},l.prototype.getLabel=function(o){return this.label===null?null:(Array.isArray(o)&&!o.length&&(o=void 0),this.label.getValue(o||this.defaultLocale))},l.prototype.getLabels=function(o){return this.label===null?[]:(Array.isArray(o)&&!o.length&&(o=void 0),this.label.getValues(o||this.defaultLocale))},l.prototype.setLabel=function(o){this.label===null&&(this.label=new PropertyValue([])),this.label.setValue(o,this.defaultLocale)},l.prototype.getValue=function(o,u){return u===void 0&&(u="<br/>"),this.value===null?null:(Array.isArray(o)&&!o.length&&(o=void 0),this.value.getValue(o||this.defaultLocale,u))},l.prototype.getValues=function(o){return this.value===null?[]:(Array.isArray(o)&&!o.length&&(o=void 0),this.value.getValues(o||this.defaultLocale))},l.prototype.setValue=function(o){this.value===null&&(this.value=new PropertyValue([])),this.value.setValue(o,this.defaultLocale)},l})(),__extends$a=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})();(function(l){__extends$a(o,l);function o(){return l!==null&&l.apply(this,arguments)||this}return o.getValue=function(u,d){return u.getValue(d,"<br/>")},o.getValues=function(u,d){return u.getValues(d)},o})(Array);var distCommonjs={},hasRequiredDistCommonjs;function requireDistCommonjs(){return hasRequiredDistCommonjs||(hasRequiredDistCommonjs=1,Object.defineProperty(distCommonjs,"__esModule",{value:!0}),distCommonjs.CONTINUE=100,distCommonjs.SWITCHING_PROTOCOLS=101,distCommonjs.PROCESSING=102,distCommonjs.OK=200,distCommonjs.CREATED=201,distCommonjs.ACCEPTED=202,distCommonjs.NON_AUTHORITATIVE_INFORMATION=203,distCommonjs.NO_CONTENT=204,distCommonjs.RESET_CONTENT=205,distCommonjs.PARTIAL_CONTENT=206,distCommonjs.MULTI_STATUS=207,distCommonjs.MULTIPLE_CHOICES=300,distCommonjs.MOVED_PERMANENTLY=301,distCommonjs.MOVED_TEMPORARILY=302,distCommonjs.SEE_OTHER=303,distCommonjs.NOT_MODIFIED=304,distCommonjs.USE_PROXY=305,distCommonjs.TEMPORARY_REDIRECT=307,distCommonjs.BAD_REQUEST=400,distCommonjs.UNAUTHORIZED=401,distCommonjs.PAYMENT_REQUIRED=402,distCommonjs.FORBIDDEN=403,distCommonjs.NOT_FOUND=404,distCommonjs.METHOD_NOT_ALLOWED=405,distCommonjs.NOT_ACCEPTABLE=406,distCommonjs.PROXY_AUTHENTICATION_REQUIRED=407,distCommonjs.REQUEST_TIME_OUT=408,distCommonjs.CONFLICT=409,distCommonjs.GONE=410,distCommonjs.LENGTH_REQUIRED=411,distCommonjs.PRECONDITION_FAILED=412,distCommonjs.REQUEST_ENTITY_TOO_LARGE=413,distCommonjs.REQUEST_URI_TOO_LARGE=414,distCommonjs.UNSUPPORTED_MEDIA_TYPE=415,distCommonjs.REQUESTED_RANGE_NOT_SATISFIABLE=416,distCommonjs.EXPECTATION_FAILED=417,distCommonjs.IM_A_TEAPOT=418,distCommonjs.UNPROCESSABLE_ENTITY=422,distCommonjs.LOCKED=423,distCommonjs.FAILED_DEPENDENCY=424,distCommonjs.UNORDERED_COLLECTION=425,distCommonjs.UPGRADE_REQUIRED=426,distCommonjs.PRECONDITION_REQUIRED=428,distCommonjs.TOO_MANY_REQUESTS=429,distCommonjs.REQUEST_HEADER_FIELDS_TOO_LARGE=431,distCommonjs.INTERNAL_SERVER_ERROR=500,distCommonjs.NOT_IMPLEMENTED=501,distCommonjs.BAD_GATEWAY=502,distCommonjs.SERVICE_UNAVAILABLE=503,distCommonjs.GATEWAY_TIME_OUT=504,distCommonjs.HTTP_VERSION_NOT_SUPPORTED=505,distCommonjs.VARIANT_ALSO_NEGOTIATES=506,distCommonjs.INSUFFICIENT_STORAGE=507,distCommonjs.BANDWIDTH_LIMIT_EXCEEDED=509,distCommonjs.NOT_EXTENDED=510,distCommonjs.NETWORK_AUTHENTICATION_REQUIRED=511),distCommonjs}var distCommonjsExports=requireDistCommonjs();function unfetch_module(l,o){return o=o||{},new Promise(function(u,d){var f=new XMLHttpRequest,p=[],h=[],v={},g=function(){return{ok:(f.status/100|0)==2,statusText:f.statusText,status:f.status,url:f.responseURL,text:function(){return Promise.resolve(f.responseText)},json:function(){return Promise.resolve(f.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([f.response]))},clone:g,headers:{keys:function(){return p},entries:function(){return h},get:function(y){return v[y.toLowerCase()]},has:function(y){return y.toLowerCase()in v}}}};for(var m in f.open(o.method||"get",l,!0),f.onload=function(){f.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,b,w){p.push(b=b.toLowerCase()),h.push([b,w]),v[b]=v[b]?v[b]+","+w:w}),u(g())},f.onerror=d,f.withCredentials=o.credentials=="include",o.headers)f.setRequestHeader(m,o.headers[m]);f.send(o.body||null)})}const unfetch_module$1=Object.freeze(Object.defineProperty({__proto__:null,default:unfetch_module},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(unfetch_module$1);var browser$1,hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,browser$1=self.fetch||(self.fetch=require$$0$6.default||require$$0$6)),browser$1}var browserExports=requireBrowser$1();const fetch$1=getDefaultExportFromCjs(browserExports);
32var __awaiter=function(l,o,u,d){function f(p){return p instanceof u?p:new u(function(h){h(p)})}return new(u||(u=Promise))(function(p,h){function v(y){try{m(d.next(y))}catch(b){h(b)}}function g(y){try{m(d.throw(y))}catch(b){h(b)}}function m(y){y.done?p(y.value):f(y.value).then(v,g)}m((d=d.apply(l,o||[])).next())})},__generator=function(l,o){var u={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},d,f,p,h=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return h.next=v(0),h.throw=v(1),h.return=v(2),typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function v(m){return function(y){return g([m,y])}}function g(m){if(d)throw new TypeError("Generator is already executing.");for(;h&&(h=0,m[0]&&(u=0)),u;)try{if(d=1,f&&(p=m[0]&2?f.return:m[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,m[1])).done)return p;switch(f=0,p&&(m=[m[0]&2,p.value]),m[0]){case 0:case 1:p=m;break;case 4:return u.label++,{value:m[1],done:!1};case 5:u.label++,f=m[1],m=[0];continue;case 7:m=u.ops.pop(),u.trys.pop();continue;default:if(p=u.trys,!(p=p.length>0&&p[p.length-1])&&(m[0]===6||m[0]===2)){u=0;continue}if(m[0]===3&&(!p||m[1]>p[0]&&m[1]<p[3])){u.label=m[1];break}if(m[0]===6&&u.label<p[1]){u.label=p[1],p=m;break}if(p&&u.label<p[2]){u.label=p[2],u.ops.push(m);break}p[2]&&u.ops.pop(),u.trys.pop();continue}m=o.call(l,u)}catch(y){m=[6,y],f=0}finally{d=p=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},Utils=(function(){function l(){}return l.getMediaType=function(o){return o=o.toLowerCase(),o=o.split(";")[0],o.trim()},l.getImageQuality=function(o){return o===distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||o===distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||o===distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||o===distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_1||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_2||o===distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},l.getInexactLocale=function(o){return o.indexOf("-")!==-1?o.substr(0,o.indexOf("-")):o},l.getLocalisedValue=function(o,u){if(!Array.isArray(o))return o;for(var d=0;d<o.length;d++){var f=o[d],p=f["@language"];if(u===p)return f["@value"]}for(var h=u.substr(0,u.indexOf("-")),d=0;d<o.length;d++){var v=o[d],g=v["@language"];if(g===h)return v["@value"]}return null},l.generateTreeNodeIds=function(o,u){u===void 0&&(u=0);var d;o.parentNode?d=o.parentNode.id+"-"+u:d="0",o.id=d;for(var f=0;f<o.nodes.length;f++){var p=o.nodes[f];l.generateTreeNodeIds(p,f)}},l.normaliseType=function(o){if(o=(o||"").toLowerCase(),o.indexOf(":")!==-1){var u=o.split(":");return u[1]}return o},l.normaliseUrl=function(o){return o=o.substr(o.indexOf("://")),o.indexOf("#")!==-1&&(o=o.split("#")[0]),o},l.normalisedUrlsMatch=function(o,u){return l.normaliseUrl(o)===l.normaliseUrl(u)},l.isImageProfile=function(o){return!!(l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},l.isImageServiceType=function(o){return o!==null&&o.toLowerCase()===distCommonjsExports$1.ServiceType.IMAGE_SERVICE_2.toLowerCase()||o===distCommonjsExports$1.ServiceType.IMAGE_SERVICE_3.toLowerCase()},l.isLevel0ImageProfile=function(o){return!!(l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_LEVEL_0)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},l.isLevel1ImageProfile=function(o){return!!(l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_LEVEL_1)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},l.isLevel2ImageProfile=function(o){return!!(l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_LEVEL_2)||l.normalisedUrlsMatch(o,distCommonjsExports$1.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},l.parseManifest=function(o,u){return Deserialiser.parse(o,u)}
32,l.checkStatus=function(o){if(o.ok)return o;var u=new Error(o.statusText);return u.response=o,Promise.reject(u)},l.loadManifest=function(o){return new Promise(function(u,d){fetch(o).then(l.checkStatus).then(function(f){return f.json()}).then(function(f){u(f)}).catch(function(f){d()})})},l.loadExternalResourcesAuth1=function(o,u,d,f,p,h,v,g){return new Promise(function(m,y){var b=o.map(function(w){return l.loadExternalResourceAuth1(w,u,d,f,p,h,v,g)});Promise.all(b).then(function(){m(o)}).catch(function(w){y(w)})})},l.loadExternalResourceAuth1=function(o,u,d,f,p,h,v,g){return __awaiter(this,void 0,void 0,function(){var m;return __generator(this,function(y){switch(y.label){case 0:return[4,f(o)];case 1:return m=y.sent(),m?[4,o.getData(m)]:[3,6];case 2:return y.sent(),o.status!==distCommonjsExports.OK?[3,3]:[2,o];case 3:return[4,l.doAuthChain(o,u,d,p,h,v,g)];case 4:y.sent(),y.label=5;case 5:if(o.status===distCommonjsExports.OK||o.status===distCommonjsExports.MOVED_TEMPORARILY)return[2,o];throw l.createAuthorizationFailedError();case 6:return[4,o.getData()];case 7:return y.sent(),o.status===distCommonjsExports.MOVED_TEMPORARILY||o.status===distCommonjsExports.UNAUTHORIZED?[4,l.doAuthChain(o,u,d,p,h,v,g)]:[3,9];case 8:y.sent(),y.label=9;case 9:if(o.status===distCommonjsExports.OK||o.status===distCommonjsExports.MOVED_TEMPORARILY)return[2,o];throw l.createAuthorizationFailedError()}})})},l.doAuthChain=function(o,u,d,f,p,h,v){return __awaiter(this,void 0,void 0,function(){var g,m,y,b,w,E,P,C,C;return __generator(this,function(T){switch(T.label){case 0:return o.isAccessControlled()?(g=o.externalService,g&&(g.options=o.options),m=o.kioskService,m&&(m.options=o.options),y=o.clickThroughService,y&&(y.options=o.options),b=o.loginService,b&&(b.options=o.options),!o.isResponseHandled&&o.status===distCommonjsExports.MOVED_TEMPORARILY?[4,h(o)]:[3,2]):[2,o];case 1:return T.sent(),[2,o];case 2:return w=null,E=null,w=g,w?(E=w,[4,l.attemptResourceWithToken(o,d,w)]):[3,4];
vendor: 4,282 bytes, line 32
32case 3:return T.sent(),[2,o];case 4:return w=m,w?(E=w,P=u(w),P?[4,f(P)]:[3,7]):[3,7];case 5:return T.sent(),[4,l.attemptResourceWithToken(o,d,w)];case 6:return T.sent(),[2,o];case 7:return w=y,w?(E=w,[4,p(o,w)]):[3,11];case 8:return C=T.sent(),C?[4,f(C)]:[3,11];case 9:return T.sent(),[4,l.attemptResourceWithToken(o,d,w)];case 10:return T.sent(),[2,o];case 11:return w=b,w?(E=w,[4,p(o,w)]):[3,15];case 12:return C=T.sent(),C?[4,f(C)]:[3,15];case 13:return T.sent(),[4,l.attemptResourceWithToken(o,d,w)];case 14:return T.sent(),[2,o];case 15:return E&&v(o,E),[2]}})})},l.attemptResourceWithToken=function(o,u,d){return __awaiter(this,void 0,void 0,function(){var f,p;return __generator(this,function(h){switch(h.label){case 0:return f=d.getService(distCommonjsExports$1.ServiceProfile.AUTH_1_TOKEN),f?[4,u(o,f)]:[3,3];case 1:return p=h.sent(),p&&p.accessToken?[4,o.getData(p)]:[3,3];case 2:return h.sent(),[2,o];case 3:return[2]}})})},l.loadExternalResourcesAuth09=function(o,u,d,f,p,h,v,g,m,y){return new Promise(function(b,w){var E=o.map(function(P){return l.loadExternalResourceAuth09(P,u,d,f,p,h,v,g,m,y)});Promise.all(E).then(function(){b(o)}).catch(function(P){w(P)})})},l.loadExternalResourceAuth09=function(o,u,d,f,p,h,v,g,m,y){return new Promise(function(b,w){y&&y.pessimisticAccessControl?o.getData().then(function(){o.isAccessControlled()?o.clickThroughService?(b(d(o)),b(f(o))):p(o).then(function(){h(o,!0).then(function(E){o.getData(E).then(function(){b(m(o))}).catch(function(P){w(l.createInternalServerError(P))})}).catch(function(E){w(l.createInternalServerError(E))})}).catch(function(E){w(l.createInternalServerError(E))}):b(o)}).catch(function(E){w(l.createInternalServerError(E))}):g(o,u).then(function(E){E?o.getData(E).then(function(){o.status===distCommonjsExports.OK?b(m(o)):l.authorize(o,u,d,f,p,h,v,g).then(function(){b(m(o))}).catch(function(P){w(l.createAuthorizationFailedError())})}).catch(function(P){w(l.createAuthorizationFailedError())}):l.authorize(o,u,d,f,p,h,v,g).then(function(){b(m(o))}).catch(function(P){w(l.createAuthorizationFailedError())})}).catch(function(E){w(l.createAuthorizationFailedError())})})},l.createError=function(o,u){var d=new Error;return d.message=u,d.name=String(o),d},l.createAuthorizationFailedError=function(){return l.createError(StatusCode.AUTHORIZATION_FAILED,"Authorization failed")},l.createRestrictedError=function(){return l.createError(StatusCode.RESTRICTED,"Restricted")},l.createInternalServerError=function(o){return l.createError(StatusCode.INTERNAL_SERVER_ERROR,o)},l.authorize=function(o,u,d,f,p,h,v,g){return new Promise(function(m,y){o.getData().then(function(){o.isAccessControlled()?g(o,u).then(function(b){b?o.getData(b).then(function(){o.status===distCommonjsExports.OK?m(o):l.showAuthInteraction(o,u,d,f,p,h,v,m,y)}).catch(function(w){y(l.createInternalServerError(w))}):h(o,!1).then(function(w){w?v(o,w,u).then(function(){o.getData(w).then(function(){o.status===distCommonjsExports.OK?m(o):l.showAuthInteraction(o,u,d,f,p,h,v,m,y)}).catch(function(E){y(l.createInternalServerError(E))})}).catch(function(E){y(l.createInternalServerError(E))}):l.showAuthInteraction(o,u,d,f,p,h,v,m,y)})}).catch(function(b){y(l.createInternalServerError(b))}):m(o)})})},l.showAuthInteraction=function(o,u,d,f,p,h,v,g,m){o.status===distCommonjsExports.MOVED_TEMPORARILY&&!o.isResponseHandled?g(o):o.clickThroughService&&!o.isResponseHandled?d(o).then(function(){h(o,!0).then(function(y){v(o,y,u).then(function(){o.getData(y).then(function(){g(o)}).catch(function(b){m(l.createInternalServerError(b))})}).catch(function(b){m(l.createInternalServerError(b))})}).catch(function(y){m(l.createInternalServerError(y))})}):p(o).then(function(){h(o,!0).then(function(y){v(o,y,u).then(function(){o.getData(y).then(function(){g(o)}).catch(function(b){m(l.createInternalServerError(b))})}).catch(function(b){m(l.createInternalServerError(b))})}).catch(function(y){m(l.createInternalServerError(y))})})},l.getService=function(o,u){for(var d=this.getServices(o),f=0;f<d.length;f++){var p=d[f];if(p.getProfile()===u)return p}return null},l.getResourceById=function(o,u){return l.traverseAndFind(o.__jsonld,"@id",u)},l.traverseAndFind=function(o,u,d){if(o.hasOwnProperty(u)&&o[u]===d)return o;for(var f=0;f<Object.keys(o).length;
32f++)if(typeof o[Object.keys(o)[f]]=="object"){var p=l.traverseAndFind(o[Object.keys(o)[f]],u,d);if(p!=null)return p}},l.getServices=function(o,u){var d=u===void 0?{}:u,f=d.onlyService,p=f===void 0?!1:f,h=d.onlyServices,v=h===void 0?!1:h,g=d.skipParentResources,m=g===void 0?!1:g,y=[];!m&&o&&o.options&&o.options.resource&&o.options.resource!==o&&y.push.apply(y,l.getServices(o.options.resource,{onlyServices:!0}));var b=v?[]:(o.__jsonld||o).service||[];if(Array.isArray(b)||(b=[b]),p||b.push.apply(b,(o.__jsonld||o).services||[]),b.length===0)return y;for(var w=0;w<b.length;w++){var E=b[w];if(typeof E=="string"){var P=this.getResourceById(o.options.resource,E);P&&y.push(new Service(P.__jsonld||P,o.options))}else y.push(new Service(E,o.options))}return y},l.getTemporalComponent=function(o){var u=/t=([^&]+)/g.exec(o),d=null;return u&&u[1]&&(d=u[1].split(",")),d},l})(),__extends$9=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),LocalizedValue=(function(){function l(o,u,d){d===void 0&&(d="none"),Array.isArray(o)&&o.length===1?this._value=o[0]:this._value=o,(u==="none"||u==="@none")&&(u=void 0),this._locale=u,this._defaultLocale=d}return l.parseV2Value=function(o,u){return typeof o=="string"?new l(o,void 0,u):o["@value"]?new l(o["@value"],o["@language"],u):null},Object.defineProperty(l.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locale",{get:function(){return this._locale===void 0?this._defaultLocale:this._locale},enumerable:!1,configurable:!0}),l.prototype.addValue=function(o){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(o)?this._value=this._value.concat(o):this._value.push(o)},l})(),PropertyValue=(function(l){__extends$9(o,l);function o(u,d){u===void 0&&(u=[]);var f=l.apply(this,u)||this;return f.__proto__=o.prototype,f._defaultLocale=d,f}return o.parse=function(u,d){if(!u)return new o([],d);if(Array.isArray(u)){var f=u.map(function(h){return LocalizedValue.parseV2Value(h,d)}).filter(function(h){return h!==null}),p=f.reduce(function(h,v){var g=v._locale;return g||(g="none"),h[g]?h[g].addValue(v._value):h[g]=v,h},{});return new o(Object.values(p),d)}else{if(typeof u=="string")return new o([new LocalizedValue(u,void 0,d)],d);if(u["@language"]){var f=LocalizedValue.parseV2Value(u);return new o(f!==null?[f]:[],d)}else if(u["@value"]){var f=LocalizedValue.parseV2Value(u);return new o(f!==null?[f]:[],d)}else return new o(Object.keys(u).map(function(h){var v=u[h];if(!Array.isArray(v))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new LocalizedValue(v,h,d)}),d)}},o.prototype.getSuitableLocale=function(u){for(var d=Array.from(this.values()).map(function(E){return E._locale}).filter(function(E){return E!==void 0}),f=function(E){var P=d.find(function(C){return C===E});if(P)return{value:P}},p=0,h=u;p<h.length;p++){var v=h[p],g=f(v);if(typeof g=="object")return g.value}for(var m=function(E){var P=d.find(function(C){return Utils.getInexactLocale(C)===Utils.getInexactLocale(E)});if(P)return{value:P}},y=0,b=u;y<b.length;y++){var v=b[y],w=m(v);if(typeof w=="object")return w.value}},o.prototype.setValue=function(u,d){var f=void 0;if(!d)f=this.find(function(h){return h._locale===void 0});else{var p=this.getSuitableLocale([d]);p&&(f=this.find(function(h){return h._locale===p}))}f?f._value=u:this.push(new LocalizedValue(u,d,this._defaultLocale))},o.prototype.getValue=function(u,d){var f=this.getValues(u);return f.length===0?null:d?f.join(d):f[0]},o.prototype.getValues=function(u){if(!this.length)return[];var d;
32if(u?Array.isArray(u)?d=u:d=[u]:d=[],this.length===1&&this[0]._locale===void 0){var f=this[0]._value;return Array.isArray(f)?f:[f]}var p=this.getSuitableLocale(d);if(p){var f=this.find(function(m){return m._locale===p})._value;return Array.isArray(f)?f:[f]}var h=!this.find(function(g){return g._locale===void 0});if(h){var f=this[0]._value;return Array.isArray(f)?f:[f]}var v=this.find(function(g){return g._locale===void 0});return v?Array.isArray(v._value)?v._value:[v._value]:[]},o})(Array),__extends$8=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Manifest=(function(l){__extends$8(o,l);function o(u,d){var f=l.call(this,u,d)||this;if(f.index=0,f._allRanges=null,f.items=[],f._topRanges=[],f.__jsonld.structures&&f.__jsonld.structures.length)for(var p=f._getTopRanges(),h=0;h<p.length;h++){var v=p[h];f._parseRanges(v,String(h))}return f}return o.prototype.getPosterCanvas=function(){var u=this.getProperty("posterCanvas");return u&&(u=new Canvas(u,this.options)),u},o.prototype.getAccompanyingCanvas=function(){var u=this.getProperty("accompanyingCanvas");return u&&(u=new Canvas(u,this.options)),u},o.prototype.getBehavior=function(){var u=this.getProperty("behavior");return Array.isArray(u)&&(u=u[0]),u||null},o.prototype.getDefaultTree=function(){if(l.prototype.getDefaultTree.call(this),this.defaultTree.data.type=Utils.normaliseType(TreeNodeType.MANIFEST),!this.isLoaded)return this.defaultTree;var u=this.getTopRanges();return u.length&&u[0].getTree(this.defaultTree),Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},o.prototype._getTopRanges=function(){var u=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var d=0;d<this.__jsonld.structures.length;d++){var f=this.__jsonld.structures[d];f.viewingHint===distCommonjsExports$1.ViewingHint.TOP&&u.push(f)}if(!u.length){var p={};p.ranges=this.__jsonld.structures,u.push(p)}}return u},o.prototype.getTopRanges=function(){return this._topRanges},o.prototype._getRangeById=function(u){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var d=0;d<this.__jsonld.structures.length;d++){var f=this.__jsonld.structures[d];if(f["@id"]===u||f.id===u)return f}return null},o.prototype._parseRanges=function(u,d,f){var p=null;if(typeof u=="string"&&(p=u,u=this._getRangeById(p)),!u){console.warn("Range:",p,"does not exist");return}var h=new Range(u,this.options);h.parentRange=f,h.path=d,f?f.items.push(h):this._topRanges.push(h);var v=u.items||u.members;if(v)for(var g=0;g<v.length;g++){var m=v[g];if(m["@type"]&&m["@type"].toLowerCase()==="sc:range"||m.type&&m.type.toLowerCase()==="range")this._parseRanges(m,d+"/"+g,h);else if(m["@type"]&&m["@type"].toLowerCase()==="sc:canvas"||m.type&&m.type.toLowerCase()==="canvas"){h.canvases||(h.canvases=[]);var y=m.id||m["@id"];h.canvases.push(y)}}else if(u.ranges)for(var g=0;g<u.ranges.length;g++)this._parseRanges(u.ranges[g],d+"/"+g,h)},o.prototype.getAllRanges=function(){if(this._allRanges!=null)return this._allRanges;this._allRanges=[];for(var u=this.getTopRanges(),d=function(h){var v=u[h];v.id&&f._allRanges.push(v);var g=function(y,b){y.add(b);var w=b.getRanges();return w.length?w.reduce(g,y):y},m=Array.from(v.getRanges().reduce(g,new Set));f._allRanges=f._allRanges.concat(m)},f=this,p=0;p<u.length;p++)d(p);return this._allRanges},o.prototype.getRangeById=function(u){for(var d=this.getAllRanges(),f=0;f<d.length;f++){var p=d[f];if(p.id===u)return p}return null},o.prototype.getRangeByPath=function(u){for(var d=this.getAllRanges(),f=0;f<d.length;f++){var p=d[f];if(p.path===u)return p}return null},o.prototype.getSequences=function(){if(this.items.length)return this.items;var u=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(u)for(var d=0;d<u.length;d++){var f=u[d],p=new Sequence(f,this.options);this.items.push(p)}else if(this.__jsonld.items){var p=new Sequence(this.__jsonld.items,this.options);this.items.push(p)}return this.items}
32,o.prototype.getSequenceByIndex=function(u){return this.getSequences()[u]},o.prototype.getTotalSequences=function(){return this.getSequences().length},o.prototype.getManifestType=function(){var u=this.getService(distCommonjsExports$1.ServiceProfile.UI_EXTENSIONS);return u?u.getProperty("manifestType"):ManifestType.EMPTY},o.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},o.prototype.isPagingEnabled=function(){var u=this.getViewingHint();if(u)return u===distCommonjsExports$1.ViewingHint.PAGED;var d=this.getBehavior();return d?d===distCommonjsExports$1.Behavior.PAGED:!1},o.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},o.prototype.getViewingHint=function(){var u=this.getProperty("viewingHint");return Array.isArray(u)&&(u=u[0]),u||null},o})(IIIFResource),ManifestType;(function(l){l.EMPTY="",l.MANUSCRIPT="manuscript",l.MONOGRAPH="monograph"})(ManifestType||(ManifestType={}));var __extends$7=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Range=(function(l){__extends$7(o,l);function o(u,d){var f=l.call(this,u,d)||this;return f._ranges=null,f.canvases=null,f.items=[],f}return o.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},o.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var u=[],d=[],f=0,p=this.canvases;f<p.length;f++){var h=p[f];if(h){var v=h.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,h],g=v[1],m=v[2],y=v[3];g&&(u.push(parseFloat(m)),d.push(parseFloat(y)))}}if(u.length&&d.length)return new Duration(Math.min.apply(Math,u),Math.max.apply(Math,d))}else{for(var b=this.getRanges(),u=[],d=[],w=0,E=b;w<E.length;w++){var P=E[w],C=P.getDuration();C&&(u.push(C.start),d.push(C.end))}if(u.length&&d.length)return new Duration(Math.min.apply(Math,u),Math.max.apply(Math,d))}var T,O;if(this.canvases&&this.canvases.length)for(var x=0;x<this.canvases.length;x++){var h=this.canvases[x],A=Utils.getTemporalComponent(h);A&&A.length>1&&(x===0&&(T=Number(A[0])),x===this.canvases.length-1&&(O=Number(A[1])))}else for(var b=this.getRanges(),x=0;x<b.length;x++){var P=b[x],C=P.getDuration();C&&(x===0&&(T=C.start),x===b.length-1&&(O=C.end))}if(T!==void 0&&O!==void 0)return new Duration(T,O)},o.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter(function(u){return u.isRange()})},o.prototype.getBehavior=function(){var u=this.getProperty("behavior");return Array.isArray(u)&&(u=u[0]),u||null},o.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},o.prototype.getViewingHint=function(){var u=this.getProperty("viewingHint");return Array.isArray(u)&&(u=u[0]),u||null},o.prototype.getTree=function(u){u.data=this,this.treeNode=u;var d=this.getRanges();if(d&&d.length)for(var f=0;f<d.length;f++){var p=d[f],h=new TreeNode;u.addNode(h),this._parseTreeNode(h,p)}return Utils.generateTreeNodeIds(u),u},o.prototype.spansTime=function(u){var d=this.getDuration();return!!(d&&u>=d.start&&u<=d.end)},o.prototype._parseTreeNode=function(u,d){u.label=d.getLabel().getValue(this.options.locale),u.data=d,u.data.type=Utils.normaliseType(TreeNodeType.RANGE),d.treeNode=u;var f=d.getRanges();if(f&&f.length)for(var p=0;p<f.length;p++){var h=f[p],v=h.getBehavior();if(v!==distCommonjsExports$1.Behavior.NO_NAV){var g=new TreeNode;u.addNode(g),this._parseTreeNode(g,h)}}},o})(ManifestResource),__extends$6=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}
32o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Rendering=(function(l){__extends$6(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getFormat=function(){return this.getProperty("format")},o})(ManifestResource),__extends$5=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Sequence=(function(l){__extends$5(o,l);function o(u,d){var f=l.call(this,u,d)||this;return f.items=[],f._thumbnails=null,f}return o.prototype.getCanvases=function(){if(this.items.length)return this.items;var u=this.__jsonld.canvases||this.__jsonld.elements;if(u)for(var d=0;d<u.length;d++){var f=u[d],p=new Canvas(f,this.options);p.index=d,this.items.push(p)}else if(this.__jsonld)for(var d=0;d<this.__jsonld.length;d++){var f=this.__jsonld[d],p=new Canvas(f,this.options);p.index=d,this.items.push(p)}return this.items},o.prototype.getCanvasById=function(u){for(var d=0;d<this.getTotalCanvases();d++){var f=this.getCanvasByIndex(d),p=Utils.normaliseUrl(f.id);if(Utils.normaliseUrl(u)===p)return f}return null},o.prototype.getCanvasByIndex=function(u){return this.getCanvases()[u]},o.prototype.getCanvasIndexById=function(u){for(var d=0;d<this.getTotalCanvases();d++){var f=this.getCanvasByIndex(d);if(f.id===u)return d}return null},o.prototype.getCanvasIndexByLabel=function(u,d){u=u.trim(),isNaN(u)||(u=parseInt(u,10).toString(),d&&(u+="r"));for(var f=/(\d*)\D+(\d*)/,p,h,v,g,m,y=0;y<this.getTotalCanvases();y++){var b=this.getCanvasByIndex(y);if(b.getLabel().getValue(this.options.locale)===u)return y;if(p=f.exec(u),!!p&&(g=p[1],m=p[2],!!m&&(v="^"+g+"\\D+"+m+"$",h=new RegExp(v),h.test(b.getLabel().toString()))))return y}return-1},o.prototype.getLastCanvasLabel=function(u){for(var d=this.getTotalCanvases()-1;d>=0;d--){var f=this.getCanvasByIndex(d),p=f.getLabel().getValue(this.options.locale);if(u){var h=/^[a-zA-Z0-9]*$/;if(h.test(p))return p}else if(p)return p}return this.options.defaultLabel},o.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},o.prototype.getNextPageIndex=function(u,d){var f;if(d){var p=this.getPagedIndices(u),h=this.getViewingDirection();h&&h===distCommonjsExports$1.ViewingDirection.RIGHT_TO_LEFT?f=p[0]+1:f=p[p.length-1]+1}else f=u+1;return f>this.getLastPageIndex()?-1:f},o.prototype.getPagedIndices=function(u,d){var f=[];if(!d)f.push(u);else{this.isFirstCanvas(u)||this.isLastCanvas(u)?f=[u]:u%2?f=[u,u+1]:f=[u-1,u];var p=this.getViewingDirection();p&&p===distCommonjsExports$1.ViewingDirection.RIGHT_TO_LEFT&&(f=f.reverse())}return f},o.prototype.getPrevPageIndex=function(u,d){var f;if(d){var p=this.getPagedIndices(u),h=this.getViewingDirection();h&&h===distCommonjsExports$1.ViewingDirection.RIGHT_TO_LEFT?f=p[p.length-1]-1:f=p[0]-1}else f=u-1;return f},o.prototype.getStartCanvasIndex=function(){var u=this.getStartCanvas();if(u)for(var d=0;d<this.getTotalCanvases();d++){var f=this.getCanvasByIndex(d);if(f.id===u)return d}return 0},o.prototype.getThumbs=function(u,d){for(var f=[],p=this.getTotalCanvases(),h=0;h<p;h++){var v=this.getCanvasByIndex(h),g=new Thumb(u,v);f.push(g)}return f},o.prototype.getThumbnails=function(){if(this._thumbnails!=null)return this._thumbnails;this._thumbnails=[];for(var u=this.getCanvases(),d=0;d<u.length;d++){var f=u[d].getThumbnail();f&&this._thumbnails.push(f)}return this._thumbnails},o.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},o.prototype.getTotalCanvases=function(){return this.getCanvases().length},o.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},o.prototype.getViewingHint=function(){var u=this.getProperty("viewingHint");return Array.isArray(u)&&(u=u[0]),u||null},o.prototype.isCanvasIndexOutOfRange=function(u){return u>this.getTotalCanvases()-1},o.prototype.isFirstCanvas=function(u){return u===0},o.prototype.isLastCanvas=function(u){return u===this.getTotalCanvases()-1},o.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},o.prototype.isPagingEnabled=function(){var u=this.getViewingHint();return u?u===distCommonjsExports$1.ViewingHint.PAGED:!1},o.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2===0},o})(ManifestResource),Deserialiser=(function(){function l(){}
32return l.parse=function(o,u){return typeof o=="string"&&(o=JSON.parse(o)),this.parseJson(o,u)},l.parseJson=function(o,u){var d;if(u&&u.navDate&&!isNaN(u.navDate.getTime())&&(o.navDate=u.navDate.toString()),o["@type"])switch(o["@type"]){case"sc:Collection":d=this.parseCollection(o,u);break;case"sc:Manifest":d=this.parseManifest(o,u);break;default:return null}else switch(o.type){case"Collection":d=this.parseCollection(o,u);break;case"Manifest":d=this.parseManifest(o,u);break;default:return null}return d.isLoaded=!0,d},l.parseCollection=function(o,u){var d=new Collection(o,u);return u?(d.index=u.index||0,u.resource&&(d.parentCollection=u.resource.parentCollection)):d.index=0,this.parseCollections(d,u),this.parseManifests(d,u),this.parseItems(d,u),d},l.parseCollections=function(o,u){var d;if(o.__jsonld.collections?d=o.__jsonld.collections:o.__jsonld.items&&(d=o.__jsonld.items.filter(function(h){return h.type.toLowerCase()==="collection"})),d)for(var f=0;f<d.length;f++){u&&(u.index=f);var p=this.parseCollection(d[f],u);p.index=f,p.parentCollection=o,o.items.push(p)}},l.parseManifest=function(o,u){var d=new Manifest(o,u);return d},l.parseManifests=function(o,u){var d;if(o.__jsonld.manifests?d=o.__jsonld.manifests:o.__jsonld.items&&(d=o.__jsonld.items.filter(function(h){return h.type.toLowerCase()==="manifest"})),d)for(var f=0;f<d.length;f++){var p=this.parseManifest(d[f],u);p.index=f,p.parentCollection=o,o.items.push(p)}},l.parseItem=function(o,u){if(o["@type"]){if(o["@type"].toLowerCase()==="sc:manifest")return this.parseManifest(o,u);if(o["@type"].toLowerCase()==="sc:collection")return this.parseCollection(o,u)}else if(o.type){if(o.type.toLowerCase()==="manifest")return this.parseManifest(o,u);if(o.type.toLowerCase()==="collection")return this.parseCollection(o,u)}return null},l.parseItems=function(o,u){var d=o.__jsonld.members||o.__jsonld.items;if(d)for(var f=function(g){u&&(u.index=g);var m=p.parseItem(d[g],u);if(!m)return{value:void 0};if(o.items.filter(function(y){return y.id===m.id})[0])return"continue";m.index=g,m.parentCollection=o,o.items.push(m)},p=this,h=0;h<d.length;h++){var v=f(h);if(typeof v=="object")return v.value}},l})(),__extends$4=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Service=(function(l){__extends$4(o,l);function o(u,d){return l.call(this,u,d)||this}return o.prototype.getProfile=function(){var u=this.getProperty("profile");return u||(u=this.getProperty("dcterms:conformsTo")),Array.isArray(u)?u[0]:u},o.prototype.getConfirmLabel=function(){return Utils.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},o.prototype.getDescription=function(){return Utils.getLocalisedValue(this.getProperty("description"),this.options.locale)},o.prototype.getFailureDescription=function(){return Utils.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},o.prototype.getFailureHeader=function(){return Utils.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},o.prototype.getHeader=function(){return Utils.getLocalisedValue(this.getProperty("header"),this.options.locale)},o.prototype.getServiceLabel=function(){return Utils.getLocalisedValue(this.getProperty("label"),this.options.locale)},o.prototype.getInfoUri=function(){var u=this.id;return u.endsWith("/")||(u+="/"),u+="info.json",u},o})(ManifestResource),Size=(function(){function l(o,u){this.width=o,this.height=u}return l})(),StatusCode;(function(l){l[l.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",l[l.FORBIDDEN=2]="FORBIDDEN",l[l.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",l[l.RESTRICTED=4]="RESTRICTED"})(StatusCode||(StatusCode={}));var Thumb=(function(){function l(o,u){this.data=u,this.index=u.index,this.width=o;var d=u.getHeight()/u.getWidth();d?this.height=Math.floor(this.width*d):this.height=o,this.uri=u.getCanonicalImageUri(o),this.label=u.getLabel().getValue(),this.viewingHint=u.getViewingHint()}return l})(),__extends$3=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}
32o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),Thumbnail=(function(l){__extends$3(o,l);function o(u,d){return l.call(this,u,d)||this}return o})(Resource),TreeNode=(function(){function l(o,u){this.label=o,this.data=u||{},this.nodes=[]}return l.prototype.addNode=function(o){this.nodes.push(o),o.parentNode=this},l.prototype.isCollection=function(){return this.data.type===Utils.normaliseType(TreeNodeType.COLLECTION)},l.prototype.isManifest=function(){return this.data.type===Utils.normaliseType(TreeNodeType.MANIFEST)},l.prototype.isRange=function(){return this.data.type===Utils.normaliseType(TreeNodeType.RANGE)},l})(),TreeNodeType;(function(l){l.COLLECTION="collection",l.MANIFEST="manifest",l.RANGE="range"})(TreeNodeType||(TreeNodeType={}));function _classCallCheck$2b(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$23(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2J(d.key),d)}}function _createClass$23(l,o,u){return o&&_defineProperties$23(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2J(l){var o=_toPrimitive$2J(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2J(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var MiradorCanvas$2=(function(){function l(o){_classCallCheck$2b(this,l),this.canvas=o}return _createClass$23(l,[{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 flatten(new Array(this.canvas.__jsonld.otherContent)).filter(function(u){return u&&(typeof u=="string"||u["@type"]==="sc:AnnotationList")}).map(function(u){return typeof u=="string"?u:u["@id"]})}},{key:"canvasAnnotationPages",get:function(){return flatten(new Array(this.canvas.__jsonld.annotations)).filter(function(u){return u&&u.type==="AnnotationPage"})}},{key:"imageResource",get:function(){return this.imageResources[0]}},{key:"imageResources",get:function(){var u=this,d=flattenDeep([this.canvas.getImages().map(function(f){return f.getResource()}),this.canvas.getContent().map(function(f){return f.getBody()})]);return flatten(d.map(function(f){return f.getProperty("type")==="oa:Choice"?new Canvas({images:flatten([f.getProperty("default"),f.getProperty("item")]).map(function(p){return{resource:p}})},u.canvas.options).getImages().map(function(p){return p.getResource()}):f}))}},{key:"videoResources",get:function(){var u=flattenDeep([this.canvas.getContent().map(function(d){return d.getBody()})]);return flatten(u.filter(function(d){return d.getProperty("type")==="Video"}))}},{key:"audioResources",get:function(){var u=flattenDeep([this.canvas.getContent().map(function(d){return d.getBody()})]);return flatten(u.filter(function(d){return d.getProperty("type")==="Sound"}))}},{key:"vttContent",get:function(){var u=flattenDeep([this.canvas.getContent().map(function(d){return d.getBody()})]);return flatten(u.filter(function(d){return d.getProperty("format")==="text/vtt"}))}},{key:"resourceAnnotations",get:function(){return flattenDeep([this.canvas.getImages(),this.canvas.getContent()])}},{key:"resourceAnnotation",value:function(u){return this.resourceAnnotations.find(function(d){return d.getResource().id===u||flatten(new Array(d.getBody())).some(function(f){return f.id===u})})}},{key:"onFragment",value:function(u){var d=this.resourceAnnotation(u);if(d){var f=d.getProperty("on"),p=d.getProperty("target"),h=(f||p).match(/xywh=(.*)$/);if(h)return h[1].split(",").map(function(v){return parseInt(v,10)})}}},{key:"iiifImageResources",get:function(){return this.imageResources.filter(function(u){return u&&u.getServices()[0]&&u.getServices()[0].id})}},{key:"imageServiceIds",get:function(){return this.iiifImageResources.map(function(u){return u.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)}}])})();function getWindowManifests$1(l){return Object.values(miradorSlice$1(l).windows).map(function(o){return o.manifestId})}function getWindows$1(l){return miradorSlice$1(l).windows||{}}function getWindow$2(l,o){var u=o.windowId;return getWindows$1(l)[u]}var getViewer$1=createSelector([function(l){return miradorSlice$1(l).viewers},function(l,o){var u=o.windowId;return u}],function(l,o){return l[o]});function getWorkspace$1(l){return miradorSlice$1(l).workspace}var getWindowIds$1=createSelector([getWorkspace$1],function(l){var o=l.windowIds;return o||[]});function getManifests$1(l){return miradorSlice$1(l).manifests||{}}function getManifest$1(l,o){var u=o.manifestId,d=o.windowId,f=getManifests$1(l);return f&&f[u||d&&(getWindow$2(l,{windowId:d})||{}).manifestId]}function getCatalog$1(l){return miradorSlice$1(l).catalog||{}}function isStringOrNumber(l){return typeof l=="string"||typeof l=="number"}var FlatObjectCache=(function(){function l(){this._cache={}}var o=l.prototype;return o.set=function(d,f){this._cache[d]=f},o.get=function(d){return this._cache[d]},o.remove=function(d){delete this._cache[d]},o.clear=function(){this._cache={}},o.isValidCacheKey=function(d){return isStringOrNumber(d)},l})(),defaultCacheCreator=FlatObjectCache,defaultCacheKeyValidator=function(){return!0};function createCachedSelector(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return function(d,f){if(f)throw new Error('[re-reselect] "options" as second argument is not supported anymore. Please provide an option object as single argument.');var p=typeof d=="function"?{keySelector:d}:Object.assign({},d),h=0,v=o.pop(),g=Array.isArray(o[0])?o[0]:[].concat(o),m=function(){return h++,v.a
32pply(void 0,arguments)};o.push(m);var y=p.cacheObject||new defaultCacheCreator,b=p.selectorCreator||createSelector,w=y.isValidCacheKey||defaultCacheKeyValidator;p.keySelectorCreator&&(p.keySelector=p.keySelectorCreator({keySelector:p.keySelector,inputSelectors:g,resultFunc:v}));var E=function(){var C=p.keySelector.apply(p,arguments);if(w(C)){var T=y.get(C);return T===void 0&&(T=b.apply(void 0,o),y.set(C,T)),T.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+C+'" has been returned by keySelector function.')};return E.getMatchingSelector=function(){var P=p.keySelector.apply(p,arguments);return y.get(P)},E.removeMatchingSelector=function(){var P=p.keySelector.apply(p,arguments);y.remove(P)},E.clearCache=function(){y.clear()},E.resultFunc=v,E.dependencies=g,E.cache=y,E.recomputations=function(){return h},E.resetRecomputations=function(){return h=0},E.keySelector=p.keySelector,E}}function _classCallCheck$2a(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$22(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2I(d.key),d)}}function _createClass$22(l,o,u){return o&&_defineProperties$22(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2I(l){var o=_toPrimitive$2I(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2I(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var MiradorManifest$1=(function(){function l(o){_classCallCheck$2a(this,l),this.manifest=o}return _createClass$22(l,[{key:"startCanvas",get:function(){var u,d=this.manifest.getSequences()[0];if(d){if(u=d.getProperty("startCanvas"),!u){var f=this.manifest.getProperty("start")||d.getProperty("start");u=f&&(f.id||f.source)}return u&&d.getCanvasById(u)||void 0}}},{key:"canvasAt",value:function(u){var d=this.manifest.getSequences()[0],f=d&&d.getCanvases();return f&&f[u]}}])})();function asArray$1(l){return l===void 0?[]:Array.isArray(l)?l:[l]}function _classCallCheck$29(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$21(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2H(d.key),d)}}function _createClass$21(l,o,u){return o&&_defineProperties$21(l.prototype,o),u&&_defineProperties$21(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2H(l){var o=_toPrimitive$2H(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2H(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function isLevel0ImageProfile$1(l){var o=l.getProfile();return o.endsWith("#level1")||o.endsWith("#level2")?!1:o==="level0"?!0:Utils.isLevel0ImageProfile(o)}function isLevel2ImageProfile$1(l){var o=l.getProfile();return o.endsWith("#level0")||o.endsWith("#level1")?!1:o==="level2"?!0:Utils.isLevel2ImageProfile(o)}function iiifv3ImageServiceType$1(l){var o=l.getProperty("type")||[];return asArray$1(o).some(function(u){return u.startsWith("ImageService")})}function iiifImageService$1(l){var o=l&&l.getServices().find(function(u){return iiifv3ImageServiceType$1(u)||Utils.isImageProfile(u.getProfile())});if(o)return o}var ThumbnailFactory$1=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$29(this,l),this.resource=o,this.iiifOpts=u}return _createClass$21(l,[{key:"iiifThumbnailUrl",value:function(u){var d,f,p,h=120,v=h,g=h,m=this.iiifOpts,y=m.maxHeight,b=m.maxWidth;y&&(v=Math.max(y,h)),b&&(g=Math.max(b,h));var w=iiifImageService$1(u);if(!w)return l.staticImageUrl(u);var E=u.getWidth()&&u.getHeight()&&u.getWidth()/u.getHeight(),P=b&&y?b*y:v*g,C=l.selectBestImageSize(w,P);if(C)f=C.width,p=C.height,d="".concat(f,",").concat(p);else if(isLevel0ImageProfile$1(w)){if(!w.getProperty("height")&&!w.getProperty("width"))return l.staticImageUrl(u)}else y&&b?isLevel2ImageProfile$1(w)?(d="!".concat(g,",").concat(v),f=g,p=v,E&&E>1&&(p=Math.round(g/E)),E&&E<1&&(f=Math.round(v*E))):g/v<E?(d="".concat(g,","),f=g,E&&(p=Math.round(g/E))):(d=",".concat(v),p=v,E&&(f=Math.round(v*E))):y&&!b?(d=",".concat(v),p=v,E&&(f=Math.round(v*E))):!y&&b?(d="".concat(g,","),f=g,E&&(p=Math.round(g/E))):(d=",".concat(h),p=h,E&&(f=Math.round(p*E)));var T="full",O=Utils.getImageQuality(w.getProfile()),x=w.id.replace(/\/+$/,""),A=this.getFormat(w);return{height:p,url:[x,T,d,0,"".concat(O,".").concat(A)].join("/"),width:f}}},{key:"getFormat",value:function(u){var d=this.iiifOpts.preferredFormats,f=d===void 0?[]:d,p=u.getProperty("preferredFormats");if(!p)return"jpg";var h=p.filter(function(v){return f.includes(v)});
32return h[0]?h[0]:!p.includes("jpg")&&f.includes("jpg")?"jpg":p[0]?p[0]:"jpg"}},{key:"getSourceContentResource",value:function(u){var d=u.getThumbnail();if(d)return typeof d.__jsonld=="string"?d.__jsonld:!u.isCollection()&&!u.isManifest()&&!u.isCanvas()&&u.getType()==="image"&&iiifImageService$1(u)&&!iiifImageService$1(d)?u:d;if(u.isCollection()){var f=u.getManifests()[0];return f?this.getSourceContentResource(f):void 0}if(u.isManifest()){var p=new MiradorManifest$1(u),h=p.startCanvas||p.canvasAt(0);return h?this.getSourceContentResource(h):void 0}if(u.isCanvas()){var v=l.getPreferredImage(u);return v?this.getSourceContentResource(v):void 0}if(u.getType()==="image")return u}},{key:"get",value:function(){if(this.resource){var u=this.getSourceContentResource(this.resource);if(u)return typeof u=="string"?{url:u}:this.iiifThumbnailUrl(u)}}}],[{key:"staticImageUrl",value:function(u){return{height:u.getProperty("height"),url:u.id,width:u.getProperty("width")}}},{key:"getPreferredImage",value:function(u){var d=new MiradorCanvas$2(u);return d.iiifImageResources[0]||d.imageResource}},{key:"selectBestImageSize",value:function(u,d){var f=asArray$1(u.getProperty("sizes")),p={default:!0,height:u.getProperty("height")||Number.MAX_SAFE_INTEGER,width:u.getProperty("width")||Number.MAX_SAFE_INTEGER},h=function(g){return g.width*g.height-d};if(p=f.reduce(function(v,g){var m=h(g);return m<0?v:Math.abs(m)<Math.abs(h(v))?g:v},p),p.width*p.height>d*6&&(p=f.reduce(function(v,g){return Math.abs(h(g))<Math.abs(h(v))?g:v},p)),!p.default)return p}}])})();function getBestThumbnail$1(l,o){return new ThumbnailFactory$1(l,o).get()}function _toConsumableArray$s(l){return _arrayWithoutHoles$s(l)||_iterableToArray$s(l)||_unsupportedIterableToArray$B(l)||_nonIterableSpread$s()}function _nonIterableSpread$s(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$B(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$B(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$B(l,o):void 0}}function _iterableToArray$s(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$s(l){if(Array.isArray(l))return _arrayLikeToArray$B(l)}function _arrayLikeToArray$B(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys$18(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$18(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$18(Object(u),!0).forEach(function(d){_defineProperty$1h(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$18(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1h(l,o,u){return(o=_toPropertyKey$2G(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2G(l){var o=_toPrimitive$2G(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2G(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function getCompanionWindows$1(l){return miradorSlice$1(l).companionWindows||{}}var getCompanionWindow$1=createSelector([getCompanionWindows$1,function(l,o){var u=o.companionWindowId;return u}],function(l,o){return o&&l[o]}),getThumbnailNavigationPosition$1=createSelector([getWindow$2,getCompanionWindows$1],function(l,o){return l&&o[l.thumbnailNavigationId]&&o[l.thumbnailNavigationId].position}),getCompanionWindowIndexByWindowAndPosition$1=createSelector([getWindows$1,getCompanionWindows$1],function(l,o){return(Object.keys(l)||[]).reduce(function(u,d){return _objectSpread$18(_objectSpread$18({},u),{},_defineProperty$1h({},d,groupBy(l[d].companionWindowIds,function(f){return o[f]&&o[f].position})))},{})}),getCompanionWindowsByWindowAndPosition$1=createSelector([getWindows$1,getCompanionWindows$1],function(l,o){return(Object.keys(l)||[]).reduce(function(u,d){return _objectSpread$18(_objectSpread$18({},u),{},_defineProperty$1h({},d,groupBy(l[d].companionWindowIds.map(function(f){return o[f]}),function(f){return f.position})))},{})}),getCompanionWindowsOfWindow$1=createSelector([function(l,o){var u=o.windowId;return u},getCompanionWindowsByWindowAndPosition$1],function(l,o){return o[l]||{}}),getCompanionWindowIdsOfWindow$1=createSelector([function(l,o){var u=o.windowId;return u},getCompanionWindowIndexByWindowAndPosition$1],function(l,o){return o[l]||{}}),getCompanionWindowsForPosition$1=createSelector([getCompanionWindowsOfWindow$1,function(l,o){var u=o.position;return{position:u}}],function(l,o){var u=o.position;return l[u]||EMPTY_ARRAY$1}),getCompanionWindowsForContent$1=createSelector([getCompanionWindowsOfWindow$1,function(l,o){var u=o.content;return{content:u}}],function(l,o){var u,d=o.content;return(u=[]).concat.apply(u,_toConsumableArray$s(Object.values(l))).filter(function(f){return f.content===d})}),EMPTY_ARRAY$1=[],getCompanionWindowIdsForPosition$1=createSelector([getCompanionWindowIdsOfWindow$1,function(l,o){var u=o.position;return{position:u}}],function(l,o){var u=o.position;return l[u]||EMPTY_ARRAY$1}),getCompanionAreaVisibility$1=createSelector([function(l,o){var u=o.position;return u},getWindow$2],function(l,o){if(!o)return!1;var u=o.companionAreaOpen,d=o.sideBarOpen;return l!=="left"?!0:!!(u&&d)}),selectCompanionWindowDimensions$1=createSelector([getCompanionWindowsOfWindow$1],function(l){var o,u=0,d=0;return(o=[]).concat.apply(o,_toConsumableArray$s(Object.values(l))).forEac
33h(function(f){f.position.match(/right/)&&(u+=235),f.position.match(/bottom/)&&(d+=201)}),{height:d,width:u}}),cjs$2,hasRequiredCjs$2;function requireCjs$2(){if(hasRequiredCjs$2)return cjs$2;hasRequiredCjs$2=1;var l=function(x){return o(x)&&!u(x)};function o(O){return!!O&&typeof O=="object"}function u(O){var x=Object.prototype.toString.call(O);return x==="[object RegExp]"||x==="[object Date]"||p(O)}var d=typeof Symbol=="function"&&Symbol.for,f=d?Symbol.for("react.element"):60103;function p(O){return O.$$typeof===f}function h(O){return Array.isArray(O)?[]:{}}function v(O,x){return x.clone!==!1&&x.isMergeableObject(O)?C(h(O),O,x):O}function g(O,x,A){return O.concat(x).map(function(D){return v(D,A)})}function m(O,x){if(!x.customMerge)return C;var A=x.customMerge(O);return typeof A=="function"?A:C}function y(O){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(O).filter(function(x){return Object.propertyIsEnumerable.call(O,x)}):[]}function b(O){return Object.keys(O).concat(y(O))}function w(O,x){try{return x in O}catch{return!1}}function E(O,x){return w(O,x)&&!(Object.hasOwnProperty.call(O,x)&&Object.propertyIsEnumerable.call(O,x))}function P(O,x,A){var D={};return A.isMergeableObject(O)&&b(O).forEach(function(j){D[j]=v(O[j],A)}),b(x).forEach(function(j){E(O,j)||(w(O,j)&&A.isMergeableObject(x[j])?D[j]=m(j,A)(O[j],x[j],A):D[j]=v(x[j],A))}),D}function C(O,x,A){A=A||{},A.arrayMerge=A.arrayMerge||g,A.isMergeableObject=A.isMergeableObject||l,A.cloneUnlessOtherwiseSpecified=v;var D=Array.isArray(x),j=Array.isArray(O),M=D===j;return M?D?A.arrayMerge(O,x,A):P(O,x,A):v(x,A)}C.all=function(x,A){if(!Array.isArray(x))throw new Error("first argument should be an array");return x.reduce(function(D,j){return C(D,j,A)},{})};var T=C;return cjs$2=T,cjs$2}var cjsExports$1=requireCjs$2();const deepmerge=getDefaultExportFromCjs(cjsExports$1);function _slicedToArray$l(l,o){return _arrayWithHoles$l(l)||_iterableToArrayLimit$l(l,o)||_unsupportedIterableToArray$A(l,o)||_nonIterableRest$l()}function _nonIterableRest$l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$A(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$A(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$A(l,o):void 0}}function _arrayLikeToArray$A(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$l(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$l(l){if(Array.isArray(l))return l}function getConfig$1(l){var o=miradorSlice$1(l||{});return o.config||{}}function getExportableState$1(l){var o=getConfig$1(l).export;return Object.entries(o).reduce(function(u,d){var f=_slicedToArray$l(d,2),p=f[0],h=f[1];return h===!0?u[p]=l[p]:h.filter&&(u[p]=Object.entries(l[p]).filter(h.filter).reduce(function(v,g){var m=_slicedToArray$l(g,2),y=m[0],b=m[1];return v[y]=b,v},{})),u},{})}var getLanguagesFromConfigWithCurrent$1=createSelector([getConfig$1],function(l){var o=l.availableLanguages,u=l.language;return Object.keys(o).map(function(d){return{current:d===u,label:o[d],locale:d}})}),getShowZoomControlsConfig$1=createSelector([getWorkspace$1,getConfig$1],function(l,o){return l.showZoomControls===void 0?o.workspace.showZoomControls:l.showZoomControls}),getTheme$1=createSelector([getConfig$1],function(l){var o=l.theme,u=l.themes,d=l.selectedTheme;return deepmerge(o,u[d]||{})}),getThemeIds$1=createSelector([getConfig$1],function(l){var o=l.themes;return Object.keys(o)}),getContainerId$1=createSelector([getConfig$1],function(l){var o=l.id;return o}
34),getThemeDirection$1=createSelector([getConfig$1],function(l){var o=l.theme;return o.direction||"ltr"}),getRequestsConfig$1=createSelector([getConfig$1],function(l){var o=l.requests;return o||{}});function _toConsumableArray$r(l){return _arrayWithoutHoles$r(l)||_iterableToArray$r(l)||_unsupportedIterableToArray$z(l)||_nonIterableSpread$r()}function _nonIterableSpread$r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$z(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$z(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$z(l,o):void 0}}function _iterableToArray$r(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$r(l){if(Array.isArray(l))return _arrayLikeToArray$z(l)}function _arrayLikeToArray$z(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function createManifestoInstance$1(l,o){if(l){var u=Utils.parseManifest(l,o?{locale:o}:void 0);return typeof u.getSequences!="function"&&(u.getSequences=function(){return[]}),u}}var getLocale$1=createSelector([getCompanionWindow$1,getConfig$1],function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.locale||o.language}),getManifestStatus$1=createSelector([getManifest$1],function(l){return l||{missing:!0}}),getManifestError$1=createSelector([getManifest$1],function(l){return l&&l.error}),getContextualManifestoInstance$1=createCachedSelector(getManifest$1,getLocale$1,function(l,o){return l&&createManifestoInstance$1(l.json,o)})(function(l,o){var u=o.companionWindowId,d=o.manifestId,f=o.windowId;return[d,f,getLocale$1(l,{companionWindowId:u})].join(" - ")}),getManifestoInstance$1=createSelector(getContextualManifestoInstance$1,function(l,o){var u=o.json;return u},getLocale$1,function(l,o,u){return o&&createManifestoInstance$1(o,u)||l}),getManifestLocale$1=createSelector([getManifestoInstance$1],function(l){return l&&l.options&&l.options.locale&&l.options.locale.replace(/-.*$/,"")});function getProperty$1(l){return createSelector([getManifestoInstance$1],function(o){return o&&o.getProperty(l)})}var getManifestLogo$1=createSelector([getManifestoInstance$1],function(l){return l&&l.getLogo()}),getManifestProvider$1=createSelector([getProperty$1("provider"),getManifestLocale$1],function(l,o){return l&&l[0].label&&PropertyValue.parse(l[0].label,o).getValue()}),getManifestHomepage$1=createSelector([getProperty$1("homepage"),getManifestLocale$1],function(l,o){return l&&asArray$1(l).map(function(u){return{label:PropertyValue.parse(u.label,o).getValue(),value:u.id||u["@id"]}})}),getManifestRenderings$1=createSelector([getManifestoInstance$1],function(l){return l&&l.getRenderings().map(function(o){return{label:o.getLabel().getValue(),value:o.id}})}),getManifestSeeAlso=createSelector([getProperty$1("seeAlso"),getManifestLocale$1],function(l,o){return l&&asArray$1(l).map(function(u){return{format:u.format,label:PropertyValue.parse(u.label,o).getValue(o),value:u.id||u["@id"]}})}),getManifestRelated=createSelector([getProperty$1("related"),getManifestLocale$1],function(l,o){return l&&asArray$1(l).map(function(u){return typeof u=="string"?{value:u}:{format:u.format,label:PropertyValue.parse(u.label,o).getValue(o),value:u.id||u["@id"]}})}),getRequiredStatement$1=createSelector([getManifestoInstance$1],function(l){return l&&asArray$1(l.getRequiredStatement()).flatMap(function(o){var u,d,f,p=(u=o?.getValues())!==null&&u!==void 0?u:[];if(!p.length)return[];var h=(d=(f=o.label)===null||f===void 0?void 0:f.getValues(o.defaultLocale))!==null&&d!==void 0?d:[];return Array.from({length:Math.max(h.length,p.length)},function(v,g){return g}).filter(function(v){return p[v]}).map(function(v){var g;return{label:(g=h[v])!==null&&g!==void 0?g:null,values:[p[v]]}})})}),getRights$1=createSelector([getProperty$1("rights"),getProperty$1("license"),getManifestLocale$1],function(l,o,u){var d=l||o;return asArray$1(PropertyValue.parse(d,u).getValues())});
35function getManifestThumbnail$1(l,o){var u=getManifestoInstance$1(l,o),d=getConfig$1(l),f=d.thumbnails,p=f===void 0?{}:f;if(u){var h=getBestThumbnail$1(u,{maxHeight:80,maxWidth:120,preferredFormats:p.preferredFormats});return h&&h.url}}var getManifestTitle$1=createSelector([getManifestoInstance$1],function(l){return l&&l.getLabel().getValue()}),getManifestDescription$1=createSelector([getLocale$1,getManifestoInstance$1],function(l,o){return o&&o.getDescription().getValue(l)}),getManifestUrl$1=createSelector([getManifestoInstance$1],function(l){return l&&l.id});function getDestructuredMetadata$1(l){return l&&l.getMetadata().map(function(o){return{label:o.getLabel(),values:o.getValues()}})}var getManifestMetadata$1=createSelector([getManifestoInstance$1],function(l){return l&&getDestructuredMetadata$1(l)});function getLocalesForStructure$1(l){var o=[];return Array.isArray(l)?o.push.apply(o,_toConsumableArray$r(l.filter(function(u){return typeof u=="object"&&u["@language"]}).map(function(u){return u["@language"]}))):l&&typeof l=="object"&&l["@language"]&&o.push(l["@language"]),o}function getLocales$1(l){if(!l)return[];for(var o=l.getProperty("metadata")||[],u={},d=0;d<o.length;d+=1){var f=o[d];getLocalesForStructure$1(f.label).forEach(function(p){u[p]=!0}),getLocalesForStructure$1(f.value).forEach(function(p){u[p]=!0})}return Object.keys(u)}var getMetadataLocales$1=createSelector([getManifestoInstance$1],function(l){return getLocales$1(l)}),getManifestSearchService$1=createSelector([getManifestoInstance$1],function(l){if(!l)return null;var o=l.getService("http://iiif.io/api/search/0/search")||l.getService("http://iiif.io/api/search/1/search");return o||null}),getManifestAutocompleteService$1=createSelector([getManifestSearchService$1],function(l){var o=l&&(l.getService("http://iiif.io/api/search/0/autocomplete")||l.getService("http://iiif.io/api/search/1/autocomplete"));return o&&o}),getSequences$1=createSelector([getManifestoInstance$1],function(l){if(!l||!l.getTopRanges)return null;var o=l.getTopRanges(),u=o.filter(function(p){return p.getProperty("viewingHint")==="top"}),d=[];u.length===0&&o.length===1&&(d=o[0].getRanges().filter(function(p){return p.getBehavior()==="sequence"}));var f=[].concat(l.getSequences(),d);return f}),getSequence$1=createSelector([getSequences$1,getWindow$2,function(l,o){var u=o.sequenceId;return u}],function(l,o,u){if(!l)return null;if(u||o&&o.sequenceId){var d=l.find(function(f){return f.id===(u||o.sequenceId)});if(d)return d}return l[0]}),getCanvasIndex$1=createSelector([getWindow$2,getSequence$1],function(l,o){return(o&&l&&l.canvasId&&o.getCanvasById(l.canvasId)||{}).index||0}),getSequenceViewingHint$1=createSelector([getSequence$1,getManifestoInstance$1],function(l,o){if(!o)return null;var u=l&&l.getViewingHint()||o.getViewingHint();return u||null}),getSequenceViewingDirection$1=createSelector([getWindow$2,getSequence$1,getManifestoInstance$1],function(l,o,u){var d=l&&l.viewingDirection||o&&o.getViewingDirection()||u&&u.getViewingDirection();return d||null}),getSequenceBehaviors$1=createSelector([getSequence$1,getManifestoInstance$1],function(l,o){if(!o||!l)return[];var u=l&&l.getProperty("behavior");if(u)return Array.isArray(u)?u:[u];var d=o.getProperty("behavior");return d?Array.isArray(d)?d:[d]:[]}),getSequenceTreeStructure$1=createSelector([getSequence$1,getManifestoInstance$1],function(l,o){return l&&l.getProperty("type")&&l.isRange()?l.getTree(new TreeNode("root")):o&&o.getDefaultTree()});function _slicedToArray$k(l,o){return _arrayWithHoles$k(l)||_iterableToArrayLimit$k(l,o)||_unsupportedIterableToArray$y(l,o)||_nonIterableRest$k()}function _nonIterableRest$k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
36In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$y(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$y(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$y(l,o):void 0}}function _arrayLikeToArray$y(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$k(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}
36finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$k(l){if(Array.isArray(l))return l}function getElasticLayout$1(l){return miradorSlice$1(l).elasticLayout}var getFullScreenEnabled$1=createSelector([getWorkspace$1],function(l){return l.isFullscreenEnabled});function getLatestError$1(l){var o=_slicedToArray$k(miradorSlice$1(l).errors.items,1),u=o[0];return miradorSlice$1(l).errors[u]}var getWorkspaceType$1=createSelector([getWorkspace$1],function(l){var o=l.type;return o}),getFocusedWindowId$2=createSelector([getWorkspace$1],function(l){var o=l.focusedWindowId;return o}),isFocused$1=function(o,u){var d=u.windowId;return getFocusedWindowId$2(o)===d};function ownKeys$17(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$17(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$17(Object(u),!0).forEach(function(d){_defineProperty$1g(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$17(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1g(l,o,u){return(o=_toPropertyKey$2F(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2F(l){var o=_toPrimitive$2F(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2F(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var getWindowConfig$1=createSelector([getConfig$1,getWindow$2],function(l){var o=l.window,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _objectSpread$17(_objectSpread$17({},o),u)});function getWindowTitles$1(l){var o={};return Object.keys(getWindows$1(l)).forEach(function(u){o[u]=getManifestTitle$1(l,{windowId:u})}),o}var getMaximizedWindowsIds$1=createSelector([getWindows$1],function(l){return Object.values(l).filter(function(o){return o.maximized===!0}).map(function(o){return o.id})}),getWindowViewType$1=createSelector([getWindow$2,getWindowConfig$1,getSequenceViewingHint$1,getSequenceBehaviors$1],function(l,o,u,d){var f=o.views,p=f===void 0?[]:f,h=o.defaultView;if(l&&l.view)return l.view;var v=(p||[]).find(function(g){return g.behaviors&&g.behaviors.some(function(m){return u===m||d.includes(m)})});return v&&v.key||h}),getAllowedWindowViewTypes$1=createSelector([getSequenceViewingHint$1,getSequenceBehaviors$1,getWindowConfig$1],function(l,o,u){var d=u.views,f=d===void 0?[]:d,p=u.defaultView;return(f||[]).reduce(function(h,v){return(v.key===p||!v.behaviors||v.behaviors.some(function(g){return l===g||o.includes(g)}))&&h.push(v.key),h},[])}),getWindowDraggability$1=createSelector([getWorkspaceType$1,getWindow$2,function(l){return getWindowIds$1(l).length>1}],function(l,o,u){return l==="elastic"?!0:u&&o&&o.maximized===!1}),selectInfoResponses$1=function(o){return miradorSlice$1(o).infoResponses},getCanvases$1=createSelector([getSequence$1],function(l){return l&&l.getCanvases()||[]}),getCanvas$1=createSelector([getSequence$1,function(l,o){var u=o.canvasId;return u}],function(l,o){if(!(!l||!o))return l.getCanvasById(o)}),getCurrentCanvas$1=createSelector([getSequence$1,getWindow$2],function(l,o){if(!(!l||!o))return o.canvasId?l.getCanvasById(o.canvasId):l.getCanvasByIndex(0)}),getVisibleCanvasIds$1=createSelector([getWindow$2],function(l){return l&&(l.visibleCanvases||l.canvasId&&[l.canvasId])||[]}),getVisibleCanvases$1=createSelector([getVisibleCanvasIds$1,getCanvases$1],function(l,o){return(o||[]).filter(function(u){return l.includes(u.id)})}),getCanvasGroupings$1=createSelector([getCanvases$1,getWindowViewType$1,getWindowConfig$1],function(l,o,u){var d=u.shiftBookView,f=d===void 0?!1:d;return l&&new CanvasGroupings$1(l,o,f).groupings()}),getCanvasGrouping$1=createSelector([getCanvasGroupings$1,function(l,o){var u=o.canvasId;return u}],function(l,o){return l&&l.find(function(u){return u.some(function(d){return d.id===o})})||[]}),getNextCanvasGrouping$1=createSelector([getCanvasGroupings$1,getCurrentCanvas$1],function(l,o,u){if(!(!l||!o)){var d=l.findIndex(function(p){return p.some(function(h){return h.id===o.id})});if(!(d<0||d+1>=l.length)){var f=l[d+1];return f}}}),getPreviousCanvasGrouping$1=createSelector([getCanvasGroupings$1,getCurrentCanvas$1],function(l,o,u){if(!(!l||!o)){var d=l.findIndex(function(p){return p.some(function(h){return h.id===o.id})});if(!(d<1)){var f=l[d-1];return f}}}),getCanvasLabel$1=createSelector([getCanvas$1],function(l){return l&&(l.getLabel().length>0?l.getLabel().getValue():String(l.index+1))}),getCanvasDescription$1=createSelector([getCanvas$1],function(l){return l&&l.getProperty("description")}),getVisibleCanvasNonTiledResources$1=createSelector([getVisibleCanvase
36s$1],function(l){return flatten(l.map(function(o){return new MiradorCanvas$2(o).imageResources})).filter(function(o){return o.getServices().length<1})}),getVisibleCanvasVideoResources$1=createSelector([getVisibleCanvases$1],function(l){return flatten(l.map(function(o){return new MiradorCanvas$2(o).videoResources}))}),getVisibleCanvasCaptions$1=createSelector([getVisibleCanvases$1],function(l){return flatten(l.map(function(o){return new MiradorCanvas$2(o).vttContent}))}),getVisibleCanvasAudioResources$1=createSelector([getVisibleCanvases$1],function(l){return flatten(l.map(function(o){return new MiradorCanvas$2(o).audioResources}))}),selectInfoResponse$1=createSelector([function(l,o){var u=o.infoId;return u},getCanvas$1,selectInfoResponses$1],function(l,o,u){var d=l;if(!l){if(!o)return;var f=new MiradorCanvas$2(o),p=f.iiifImageResources[0];d=p&&p.getServices()[0].id}return d&&u[d]&&!u[d].isFetching&&u[d]}),_excluded$e=["canvasId"];function _objectWithoutProperties$f(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$d(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$d(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}var getAnnotations$1=function(o){return miradorSlice$1(o).annotations},getMotivation$1=createSelector([getConfig$1,function(l,o){var u=o.motivations;return u}],function(l,o){return o||l.annotations.filteredMotivations}),getAnnotationsOnCanvas$1=createSelector([getCanvas$1,getAnnotations$1],function(l,o){return!o||!l?[]:o[l.id]?flatten(Object.values(o[l.id])):[]}),getPresentAnnotationsCanvas$1=createSelector([getAnnotationsOnCanvas$1],function(l){return filter$1(Object.values(l).map(function(o){return o&&AnnotationFactory$1.determineAnnotation(o.json)}),function(o){return o&&o.present()})}),getAnnotationsOnSelectedCanvases$1=createSelector([function(l,o){var u=o.canvasId,d=_objectWithoutProperties$f(o,_excluded$e);return u?[u]:getVisibleCanvasIds$1(l,d)},getAnnotations$1],function(l,o){return!o||l.length===0?[]:flatten(l.map(function(u){return o[u]&&Object.values(o[u])}))}),getPresentAnnotationsOnSelectedCanvases$1=createSelector([getAnnotationsOnSelectedCanvases$1],function(l){return filter$1(Object.values(l).map(function(o){return o&&AnnotationFactory$1.determineAnnotation(o.json)}),function(o){return o&&o.present()})}),getAnnotationResourcesByMotivationForCanvas$1=createSelector([getPresentAnnotationsCanvas$1,getMotivation$1],function(l,o){return filter$1(flatten(l.map(function(u){return u.resources})),function(u){return u.motivations.some(function(d){return o.includes(d)})})}),getAnnotationResourcesByMotivation$1=createSelector([getPresentAnnotationsOnSelectedCanvases$1,getMotivation$1],function(l,o){return filter$1(flatten(l.map(function(u){return u.resources})),function(u){return u.motivations.some(function(d){return o.includes(d)})})}),getSelectedAnnotationId$1=createSelector([getWindow$2],function(l){var o=l.selectedAnnotationId;return o});createSelector([getPresentAnnotationsOnSelectedCanvases$1,getSelectedAnnotationId$1],function(l,o){return l.map(function(u){return{id:u["@id"]||u.id,resources:u.resources.filter(function(d){return o===d.id})}}).filter(function(u){return u.resources.length>0})});var getSearches$1=function(o){return miradorSlice$1(o).searches},getSearchForWindow$1=createSelector([function(l,o){var u=o.windowId;return u},getSearches$1],function(l,o){return!l||!o?{}:o[l]}),getSearchForCompanionWindow$1=createSelector([getSearchForWindow$1,function(l,o){var u=o.companionWindowId;return u}],function(l,o){if(!(!l||!o))return l[o]}),getSearchResponsesForCompanionWindow$1=createSelector([getSearchForCompanionWindow$1],function(l){return l?Object.values(l.data):[]}),getSearchQuery$1=createSelector([getSearchForCompanionWindow$1],function(l){return l&&l.query}),getSearchIsFetching$1=createSelector([getSearchResponsesForCompanionWindow$1],function(l){return l.some(function(o){return o.isFetching})}),getSearchNumTotal$1=createSelector([getSearchForCompanionWindow$1],function(l){var o;if(!(!l||!l.data)){var u=Object.values(l.data).find(function(d){return!d.isFetching&&d.json&&d.json.within});return u==null||(o=u.json)===null||o===void 0||(o=o.within)===null||o===void 0?void 0:o.total}}),getNextSearchId$1=createSelector([getSearchForCompanionWindow$1],function(l){if(!(!l||!l.data)){var o=Object.values(l.data).find(function(u){return!u.isFetching&&u.json&&u.json.next&&!l.data[u.json.next]});return o&&o.json&&o.json.next}}),getSearchHitsForCompanionWindow$1=createSelector([getSearchResponsesForCompanionWindow$1],function(l){return flatten(l.map(function(o){return!o||!o.json||o.isFetching||!o.json.hits?[]:o.json.hits}))}),getSortedSearchHitsForCompanionWindow$1=createSelector([getSearchHitsForCompanionWindow$1,getCanvases$1,function(l,o){var u=o.companionWindowId,d=o.windowId;return function(f){return getResourceAnnotationForSearchHit$1(l,{annotationUri:f,companionWindowId:u,windowId:d})}}],function(l,o,u){if(!o||o.length===0)return[];if(!l||l.length===0)return[];var d=o.map(function(f){return f.id});return[].concat(l).sort(function(f,p){var h=u(f.annotations[0]),v=u(p.annotations[0]);return d.indexOf(h.targetId)-d.indexOf(v.targetId)})}),searchResultsToAnnotation$1=function(o){var u=o.map(function(d){if(!(!d||!d.json||d.isFetching||!d.json.resources)){var f=new AnnotationList$2(d.json);return{id:f.id,resources:f.resources}}}
36).filter(Boolean);return{id:(u.find(function(d){return d.id})||{}).id,resources:flatten(u.map(function(d){return d.resources}))}},getSearchAnnotationsForCompanionWindow$1=createSelector([getSearchResponsesForCompanionWindow$1],function(l){return l&&searchResultsToAnnotation$1(l)});function sortSearchAnnotationsByCanvasOrder$1(l,o){if(!l||!l.resources||l.length===0)return[];if(!o||o.length===0)return[];var u=o.map(function(d){return d.id});return[].concat(l.resources).sort(function(d,f){return u.indexOf(d.targetId)-u.indexOf(f.targetId)})}var getSortedSearchAnnotationsForCompanionWindow$1=createSelector([getSearchAnnotationsForCompanionWindow$1,getCanvases$1],function(l,o){return sortSearchAnnotationsByCanvasOrder$1(l,o)}),getSearchAnnotationsForWindow$1=createSelector([getSearchForWindow$1],function(l){if(!l)return[];var o=Object.values(l).map(function(u){return Object.values(u.data)});return o.map(function(u){return searchResultsToAnnotation$1(u)}).filter(function(u){return u.resources.length>0})}),getSelectedContentSearchAnnotationIds$1=createSelector([getWindow$2,getSearchForCompanionWindow$1],function(l,o){return o&&o.selectedContentSearchAnnotationIds||[]}),getResourceAnnotationForSearchHit$1=createSelector([getSearchAnnotationsForCompanionWindow$1,function(l,o){var u=o.annotationUri;return u}],function(l,o){return l.resources.find(function(u){return u.id===o})}),getResourceAnnotationLabel$1=createSelector([getResourceAnnotationForSearchHit$1,getManifestLocale$1],function(l,o){return l&&l.resource&&l.resource.label?PropertyValue.parse(l.resource.label,o).getValues():[]}),getAnnotationById$1=createSelector([getSearchAnnotationsForWindow$1,function(l,o){var u=o.annotationId;return u}],function(l,o){var u=flatten(l.map(function(d){return d.resources}));return u.find(function(d){return d.id===o})}),getCanvasForAnnotation$1=createSelector([getAnnotationById$1,function(l,o){var u=o.windowId;return function(d){return getCanvas$1(l,{canvasId:d,windowId:u})}}],function(l,o){var u=l&&l.targetId;return u&&o(u)}),isArrayLikeObject_1,hasRequiredIsArrayLikeObject;function requireIsArrayLikeObject(){if(hasRequiredIsArrayLikeObject)return isArrayLikeObject_1;hasRequiredIsArrayLikeObject=1;var l=requireIsArrayLike(),o=requireIsObjectLike();function u(d){return o(d)&&l(d)}return isArrayLikeObject_1=u,isArrayLikeObject_1}var union_1,hasRequiredUnion;function requireUnion(){if(hasRequiredUnion)return union_1;hasRequiredUnion=1;var l=require_baseFlatten(),o=require_baseRest(),u=require_baseUniq(),d=requireIsArrayLikeObject(),f=o(function(p){return u(l(p,1,d,!0))});return union_1=f,union_1}var unionExports=requireUnion();const union$1=getDefaultExportFromCjs(unionExports);var _baseDifference,hasRequired_baseDifference;function require_baseDifference(){if(hasRequired_baseDifference)return _baseDifference;hasRequired_baseDifference=1;var l=require_SetCache(),o=require_arrayIncludes(),u=require_arrayIncludesWith(),d=require_arrayMap(),f=require_baseUnary(),p=require_cacheHas(),h=200;function v(g,m,y,b){var w=-1,E=o,P=!0,C=g.length,T=[],O=m.length;if(!C)return T;y&&(m=d(m,f(y))),b?(E=u,P=!1):m.length>=h&&(E=p,P=!1,m=new l(m));e:for(;++w<C;){var x=g[w],A=y==null?x:y(x);if(x=b||x!==0?x:0,P&&A===A){for(var D=O;D--;)if(m[D]===A)continue e;T.push(x)}else E(m,A,b)||T.push(x)}return T}return _baseDifference=v,_baseDifference}var without_1,hasRequiredWithout;function requireWithout(){if(hasRequiredWithout)return without_1;hasRequiredWithout=1;var l=require_baseDifference(),o=require_baseRest(),u=requireIsArrayLikeObject(),d=o(function(f,p){return u(f)?l(f,p):[]});return without_1=d,without_1}var withoutExports=requireWithout();const without$2=getDefaultExportFromCjs(withoutExports);function ownKeys$16(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$16(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$16(Object(u),!0).forEach(function(d){_defineProperty$1f(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$16(Object(u)).forEac
36h(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1f(l,o,u){return(o=_toPropertyKey$2E(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2E(l){var o=_toPrimitive$2E(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2E(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _objectDestructuringEmpty$1(l){if(l==null)throw new TypeError("Cannot destructure "+l)}function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)({}).hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$h.apply(null,arguments)}function _toConsumableArray$q(l){return _arrayWithoutHoles$q(l)||_iterableToArray$q(l)||_unsupportedIterableToArray$x(l)||_nonIterableSpread$q()}function _nonIterableSpread$q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
37In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$x(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$x(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$x(l,o):void 0}}function _iterableToArray$q(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$q(l){if(Array.isArray(l))return _arrayLikeToArray$x(l)}function _arrayLikeToArray$x(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function rangeContainsCanvasId$1(l,o){for(var u=l.getCanvasIds(),d=0;d<u.length;d+=1)if(Utils.normalisedUrlsMatch(u[d],o))return!0;return!1}function getAllParentIds$1(l){return l.parentNode===void 0?[]:l.parentNode.parentNode===void 0?[l.parentNode.id]:[].concat(_toConsumableArray$q(getAllParentIds$1(l.parentNode)),[l.parentNode.id])}function getVisibleNodeIdsInSubTree$1(l,o){return l.reduce(function(u,d){var f=[];f.push.apply(f,_toConsumableArray$q(u));var p=o.reduce(function(v,g){return v||rangeContainsCanvasId$1(d.data,g)},!1),h=d.nodes.length>0?getVisibleNodeIdsInSubTree$1(d.nodes,o):[];return f.push.apply(f,_toConsumableArray$q(h)),(p||h.length>0)&&f.push({containsVisibleCanvas:p,descendantsContainVisibleCanvas:h.length>0,id:d.id,leaf:d.nodes.length===0,parentIds:getAllParentIds$1(d)}),f},[])}var getVisibleLeafAndBranchNodeIds$1=createSelector([getSequenceTreeStructure$1,getVisibleCanvasIds$1],function(l,o){return o.length===0||!l?[]:getVisibleNodeIdsInSubTree$1(l.nodes,o)}),getVisibleNodeIds$1=createSelector([getVisibleLeafAndBranchNodeIds$1],function(l){return l.map(function(o){return o.id})}),getVisibleBranchNodeIds$1=createSelector([getVisibleLeafAndBranchNodeIds$1],function(l){return l.reduce(function(o,u){return u.leaf||!u.descendantsContainVisibleCanvas?o:[].concat(_toConsumableArray$q(o),[u.id])},[])}),getCanvasContainingNodeIds$1=createSelector([getVisibleLeafAndBranchNodeIds$1],function(l){return l.reduce(function(o,u){return u.containsVisibleCanvas?[].concat(_toConsumableArray$q(o),[u]):o},[])});function getManuallyExpandedNodeIds$1(l,o,u){var d=o.companionWindowId,f=getCompanionWindow$1(l,{companionWindowId:d});return f.tocNodes?Object.keys(f.tocNodes).reduce(function(p,h){return f.tocNodes[h].expanded===u?[].concat(_toConsumableArray$q(p),[h]):p},[]):[]}function getExpandedNodeIds$1(l,o){var u=o.companionWindowId,d=o.windowId,f=getVisibleBranchNodeIds$1(l,{companionWindowId:u,windowId:d}),p=getManuallyExpandedNodeIds$1(l,{companionWindowId:u},!0),h=getManuallyExpandedNodeIds$1(l,{companionWindowId:u},!1);return without$2.apply(void 0,[union$1(p,f)].concat(_toConsumableArray$q(h)))}function getNodeIdToScrollTo$1(l,o){var u=_extends$h({},(_objectDestructuringEmpty$1(o),o)),d=getCanvasContainingNodeIds$1(l,_objectSpread$16({},u)),f=getManuallyExpandedNodeIds$1(l,u,!1);if(d&&d.length>0){for(var p=0;p<d[0].parentIds.length;p+=1)if(f.indexOf(d[0].parentIds[p])!==-1)return d[0].parentIds[p];return d[0].id}return null}var getDefaultSidebarVariant$1=createSelector([getSequenceTreeStructure$1],function(l){return l&&l.nodes&&l.nodes.length>0?"tableOfContents":"item"}),getCanvasLayers$1=createSelector([getCanvas$1],function(l){if(!l)return[];var o=new MiradorCanvas$2(l);return o.imageResources}),getLayers$1=createSelector([function(l){return miradorSlice$1(l).layers||{}},function(l,o){var u=o.windowId;return u},function(l,o){var u=o.canvasId;return u}],function(l,o,u){return(l[o]||{})[u]}),getSortedLayers$1=createSelector([getCanvasLayers$1,getLayers$1],function(l,o){if(!o)return l;var u=l.sort(function(d,f){return o[d.id]&&o[d.id].index!==void 0&&o[f.id]&&o[f.id].index!==void 0?o[d.id].index-o[f.id].index:o[d.id]&&o[d.id].index!==void 0?-1:o[f.id]&&o[f.id].index!==void 0?1:0});return u}
37),getLayersForVisibleCanvases$1=createSelector([getVisibleCanvasIds$1,function(l,o){var u=o.windowId;return function(d){return getLayers$1(l,{canvasId:d,windowId:u})}}],function(l,o){return l.reduce(function(u,d){return u[d]=o(d),u},{})});function _createForOfIteratorHelper$2(l,o){var u=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!u){if(Array.isArray(l)||(u=_unsupportedIterableToArray$w(l))||o){u&&(l=u);var d=0,f=function(){};return{s:f,n:function(){return d>=l.length?{done:!0}:{done:!1,value:l[d++]}},e:function(m){throw m},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
38In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,h=!0,v=!1;return{s:function(){u=u.call(l)},n:function(){var m=u.next();return h=m.done,m},e:function(m){v=!0,p=m},f:function(){try{h||u.return==null||u.return()}finally{if(v)throw p}}}}function _unsupportedIterableToArray$w(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$w(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$w(l,o):void 0}}function _arrayLikeToArray$w(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys$15(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$15(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$15(Object(u),!0).forEach(function(d){_defineProperty$1e(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$15(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1e(l,o,u){return(o=_toPropertyKey$2D(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2D(l){var o=_toPrimitive$2D(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2D(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var getAuthProfiles$1=createSelector([getConfig$1],function(l){var o=l.auth,u=o===void 0?{}:o,d=u.serviceProfiles,f=d===void 0?[]:d;return f}),getAccessTokens$1=function(o){return miradorSlice$1(o).accessTokens||{}},getAuth$1=function(o){return miradorSlice$1(o).auth||{}},selectCurrentAuthServices$1=createSelector([getVisibleCanvases$1,selectInfoResponses$1,getAuthProfiles$1,getAuth$1,function(l,o){var u=o.iiifResources;return u}],function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments.length>2?arguments[2]:void 0,d=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0,p=f;if(!p&&l&&(p=flatten(l.map(function(v){var g=new MiradorCanvas$2(v),m=g.iiifImageResources;return m.map(function(y){var b=y.getServices()[0],w=o[b.id];return w&&w.json?_objectSpread$15(_objectSpread$15({},w.json),{},{options:{}}):b})}))),!p)return[];if(p.length===0)return[];var h=p.map(function(v){var g,m=Utils.getServices(v),y=_createForOfIteratorHelper$2(u),b;try{var w=function(){var C=b.value,T=m.filter(function(D){return C.profile===D.getProfile()}),O=_createForOfIteratorHelper$2(T),x;try{for(O.s();!(x=O.n()).done;){var A=x.value;if(g=A,!d[A.id]||d[A.id].isFetching||d[A.id].ok)return{v:A}}}catch(D){O.e(D)}finally{O.f()}},E;for(y.s();!(b=y.n()).done;)if(E=w(),E)return E.v}catch(P){y.e(P)}finally{y.f()}return g});return Object.values(h.reduce(function(v,g){return g&&!v[g.id]&&(v[g.id]=g),v},{}))}),normalizeUrl$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$5=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredNormalizeUrl;function requireNormalizeUrl(){if(hasRequiredNormalizeUrl)return normalizeUrl$1.exports;hasRequiredNormalizeUrl=1;const l=typeof URL>"u"?require$$0$5.URL:URL,o="text/plain",u="us-ascii",d=(h,v)=>v.some(g=>g instanceof RegExp?g.test(h):g===h),f=(h,{stripHash:v})=>{const g=h.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!g)throw new Error(`Invalid URL: ${h}`);const m=g[1].split(";"),y=g[2],b=v?"":g[3];let w=!1;m[m.length-1]==="base64"&&(m.pop(),w=!0);const E=(m.shift()||"").toLowerCase(),C=[...m.map(T=>{let[O,x=""]=T.split("=").map(A=>A.trim());return O==="charset"&&(x=x.toLowerCase(),x===u)?"":`${O}${x?`=${x}`:""}`}
38).filter(Boolean)];return w&&C.push("base64"),(C.length!==0||E&&E!==o)&&C.unshift(E),`data:${C.join(";")},${w?y.trim():y}${b?`#${b}`:""}`},p=(h,v)=>{if(v={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...v},Reflect.has(v,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(v,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(v,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(h=h.trim(),/^data:/i.test(h))return f(h,v);const g=h.startsWith("//");!g&&/^\.*\//.test(h)||(h=h.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,v.defaultProtocol));const y=new l(h);if(v.forceHttp&&v.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(v.forceHttp&&y.protocol==="https:"&&(y.protocol="http:"),v.forceHttps&&y.protocol==="http:"&&(y.protocol="https:"),v.stripAuthentication&&(y.username="",y.password=""),v.stripHash&&(y.hash=""),y.pathname&&(y.pathname=y.pathname.replace(/((?!:).|^)\/{2,}/g,(b,w)=>/^(?!\/)/g.test(w)?`${w}/`:"/")),y.pathname&&(y.pathname=decodeURI(y.pathname)),v.removeDirectoryIndex===!0&&(v.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(v.removeDirectoryIndex)&&v.removeDirectoryIndex.length>0){let b=y.pathname.split("/");const w=b[b.length-1];d(w,v.removeDirectoryIndex)&&(b=b.slice(0,b.length-1),y.pathname=b.slice(1).join("/")+"/")}if(y.hostname&&(y.hostname=y.hostname.replace(/\.$/,""),v.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(y.hostname)&&(y.hostname=y.hostname.replace(/^www\./,""))),Array.isArray(v.removeQueryParameters))for(const b of[...y.searchParams.keys()])d(b,v.removeQueryParameters)&&y.searchParams.delete(b);return v.sortQueryParameters&&y.searchParams.sort(),v.removeTrailingSlash&&(y.pathname=y.pathname.replace(/\/$/,"")),h=y.toString(),(v.removeTrailingSlash||y.pathname==="/")&&y.hash===""&&(h=h.replace(/\/$/,"")),g&&!v.normalizeProtocol&&(h=h.replace(/^http:\/\//,"//")),v.stripProtocol&&(h=h.replace(/^(?:https?:)?\/\//,"")),h};return normalizeUrl$1.exports=p,normalizeUrl$1.exports.default=p,normalizeUrl$1.exports}var normalizeUrlExports=requireNormalizeUrl();const normalizeUrl=getDefaultExportFromCjs(normalizeUrlExports);function ownKeys$14(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$14(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$14(Object(u),!0).forEach(function(d){_defineProperty$1d(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$14(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1d(l,o,u){return(o=_toPropertyKey$2C(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toConsumableArray$p(l){return _arrayWithoutHoles$p(l)||_iterableToArray$p(l)||_unsupportedIterableToArray$v(l)||_nonIterableSpread$p()}function _nonIterableSpread$p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$p(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$p(l){if(Array.isArray(l))return _arrayLikeToArray$v(l)}function _slicedToArray$j(l,o){return _arrayWithHoles$j(l)||_iterableToArrayLimit$j(l,o)||_unsupportedIterableToArray$v(l,o)||_nonIterableRest$j()}function _nonIterableRest$j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$v(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$v(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$v(l,o):void 0}}function _arrayLikeToArray$v(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$j(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o===0){if(Object(u)!==u)return;g=!1}else for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}
40finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$j(l){if(Array.isArray(l))return l}function _classCallCheck$28(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$20(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2C(d.key),d)}}function _createClass$20(l,o,u){return o&&_defineProperties$20(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2C(l){var o=_toPrimitive$2C(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2C(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var CanvasWorld$1=(function(){function l(o,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left-to-right";_classCallCheck$28(this,l),this.canvases=o.map(function(f){return new MiradorCanvas$2(f)}),this.layers=u,this.viewingDirection=d,this._canvasDimensions=null}return _createClass$20(l,[{key:"canvasIds",get:function(){return this.canvases.map(function(u){return u.id})}},{key:"canvasDimensions",get:function(){if(this._canvasDimensions)return this._canvasDimensions;var u=_slicedToArray$j(this.canvasDirection,2),d=u[0],f=u[1],p=f===0?Math.min.apply(Math,_toConsumableArray$p(this.canvases.map(function(b){return b.getHeight()}))):Math.min.apply(Math,_toConsumableArray$p(this.canvases.map(function(b){return b.getWidth()}))),h=0,v=0,g=this.canvases.reduce(function(b,w){var E=0,P=0;return isNaN(w.aspectRatio)||(f===0?(E=p,P=Math.floor(p*w.aspectRatio)):(P=p,E=Math.floor(p*(1/w.aspectRatio)))),b.push({canvas:w,height:E,width:P,x:h,y:v}),h+=d*P,v+=f*E,b},[]),m=f===0?p:Math.abs(v),y=d===0?p:Math.abs(h);return this._canvasDimensions=g.reduce(function(b,w){return b.push(_objectSpread$14(_objectSpread$14({},w),{},{x:d===-1?w.x+y-w.width:w.x,y:f===-1?w.y+m-w.height:w.y})),b},[]),this._canvasDimensions}},{key:"contentResourceToWorldCoordinates",value:function(u){var d=this.canvases.findIndex(function(w){return w.imageResources.find(function(E){return E.id===u.id})}),f=this.canvases[d];if(!f)return[];var p=this.canvasToWorldCoordinates(f.id),h=_slicedToArray$j(p,4),v=h[0],g=h[1],m=h[2],y=h[3],b=f.onFragment(u.id);return b?[v+b[0],g+b[1],b[2],b[3]]:[v,g,m,y]}},{key:"canvasToWorldCoordinates",value:function(u){var d=this.canvasDimensions.find(function(f){return f.canvas.id===u});return[d.x,d.y,d.width,d.height]}},{key:"canvasDirection",get:function(){switch(this.viewingDirection){case"left-to-right":return[1,0];case"right-to-left":return[-1,0];case"top-to-bottom":return[0,1];case"bottom-to-top":return[0,-1];default:return[1,0]}}},{key:"contentResource",value:function(u){var d=this.canvases.find(function(f){return f.imageServiceIds.some(function(p){return normalizeUrl(p,{stripAuthentication:!1})===normalizeUrl(u,{stripAuthentication:!1})})});if(d)return d.imageResources.find(function(f){return normalizeUrl(f.getServices()[0].id,{stripAuthentication:!1})===normalizeUrl(u,{stripAuthentication:!1})})}},{key:"getLayerMetadata",value:function(u){if(this.layers){var d=this.canvases.find(function(v){return v.imageResources.find(function(g){return g.id===u.id})});if(d){var f=d.imageResources.findIndex(function(v){return v.id===u.id}),p=this.layers[d.canvas.id],h=p&&p[u.id];return _objectSpread$14({index:f,opacity:1,total:d.imageResources.length,visibility:!0},h)}}}},{key:"layerOpacityOfImageResource",value:function(u){var d=this.getLayerMetadata(u);return d?d.visibility?d.opacity:0:1}},{key:"layerIndexOfImageResource",value:function(u){var d=this.getLayerMetadata(u);if(d)return d.total-d.index-1}},{key:"offsetByCanvas",value:function(u){var d=this.canvasToWorldCoordinates(u);return{x:d[0],y:d[1]}}},{key:"worldBounds",value:function(){var u=Math.max.apply(Math,_toConsumableArray$p(this.canvasDimensions.map(function(f){return f.x+f.width}))),d=Math.max.apply(Math,_toConsumableArray$p(this.canvasDimensions.map(function(f){return f.y+f.height})));return[0,0,u,d]}},{key:"canvasAtPoint",value:function(u){var d=this.canvasDimensions.find(function(f){return f.x<=u.x&&u.x<=f.x+f.width&&f.y<=u.y&&u.y<=f.y+f.height});return d&&d.canvas}}])}
40)(),getCurrentCanvasWorld$1=createSelector(getVisibleCanvases$1,getLayersForVisibleCanvases$1,getSequenceViewingDirection$1,function(l,o,u){return new CanvasWorld$1(l,o,u)});function ownKeys$13(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$13(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$13(Object(u),!0).forEach(function(d){_defineProperty$1c(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$13(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1c(l,o,u){return(o=_toPropertyKey$2B(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2B(l){var o=_toPrimitive$2B(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2B(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var defaultProps$3={content:null,position:null};function addCompanionWindow$1(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultProps$3,d="cw-".concat(v4());return{id:d,payload:_objectSpread$13(_objectSpread$13(_objectSpread$13({},u),o),{},{id:d,windowId:l}),type:ActionTypes$1.ADD_COMPANION_WINDOW,windowId:l}}function addOrUpdateCompanionWindow$1(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultProps$3;return function(d,f){var p=f(),h=o.position,v=h==="left"&&getCompanionWindowIdsForPosition$1(p,{position:h,windowId:l})[0];d(v?updateCompanionWindow$1(l,v,o):addCompanionWindow$1(l,o,u))}}function updateCompanionWindow$1(l,o,u){return{id:o,payload:u,type:ActionTypes$1.UPDATE_COMPANION_WINDOW,windowId:l}}function removeCompanionWindow$1(l,o){return{id:o,type:ActionTypes$1.REMOVE_COMPANION_WINDOW,windowId:l}}function toggleNode$1(l,o,u){return function(d,f){var p=f(),h=getManuallyExpandedNodeIds$1(p,{companionWindowId:o},!1),v=getManuallyExpandedNodeIds$1(p,{companionWindowId:o},!0),g=getVisibleNodeIds$1(p,{id:o,windowId:l}),m=h.indexOf(u)!==-1||v.indexOf(u)===-1&&g.indexOf(u)===-1;return d({id:o,payload:_defineProperty$1c({},u,{expanded:m}),type:ActionTypes$1.TOGGLE_TOC_NODE,windowId:l})}}function ownKeys$12(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$12(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$12(Object(u),!0).forEach(function(d){_defineProperty$1b(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$12(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1b(l,o,u){return(o=_toPropertyKey$2A(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2A(l){var o=_toPrimitive$2A(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2A(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function importConfig$2(l){return{config:l,type:ActionTypes$1.IMPORT_CONFIG}}function setConfig$1(l){return{config:l,type:ActionTypes$1.SET_CONFIG}}function updateConfig$1(l){return{config:l,type:ActionTypes$1.UPDATE_CONFIG}}function importMiradorState$1(l){var o=_objectSpread$12(_objectSpread$12({},l),{},{workspace:_objectSpread$12(_objectSpread$12({},l.workspace),{},{id:v4()})});return{state:o,type:ActionTypes$1.IMPORT_MIRADOR_STATE}}function addError$1(l){return{id:"error-".concat(v4()),message:l,type:ActionTypes$1.ADD_ERROR}}function removeError$1(l){return{id:l,type:ActionTypes$1.REMOVE_ERROR}}var _excluded$d=["companionWindows","manifest"];function ownKeys$11(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$11(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
40o%2?ownKeys$11(Object(u),!0).forEach(function(d){_defineProperty$1a(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$11(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1a(l,o,u){return(o=_toPropertyKey$2z(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2z(l){var o=_toPrimitive$2z(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2z(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _toConsumableArray$o(l){return _arrayWithoutHoles$o(l)||_iterableToArray$o(l)||_unsupportedIterableToArray$u(l)||_nonIterableSpread$o()}function _nonIterableSpread$o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$u(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$u(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$u(l,o):void 0}}function _iterableToArray$o(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$o(l){if(Array.isArray(l))return _arrayLikeToArray$u(l)}function _arrayLikeToArray$u(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _objectWithoutProperties$e(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$c(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$c(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function focusWindow$1(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{pan:o,type:ActionTypes$1.FOCUS_WINDOW,windowId:l}}function addWindow$1(l){var o=l.companionWindows,u=l.manifest,d=_objectWithoutProperties$e(l,_excluded$d);return function(f,p){var h=miradorSlice$1(p()),v=h.config,g=h.workspace.windowIds,m=g===void 0?[]:g,y=m.length,b=d.id||"window-".concat(v4()),w="cw-".concat(v4()),E=[{content:"thumbnailNavigation",default:!0,id:w,position:d.thumbnailNavigationPosition||v.thumbnailNavigation.defaultPosition,windowId:b}].concat(_toConsumableArray$o((o||[]).map(function(T,O){return _objectSpread$11(_objectSpread$11({},T),{},{id:"cw-".concat(v4())})})));(d.sideBarPanel||v.window.defaultSideBarPanel||v.window.sideBarPanel)&&E.unshift({content:d.sideBarPanel||d.defaultSearchQuery&&"search"||v.window.defaultSideBarPanel||v.window.sideBarPanel,default:!0,id:"cw-".concat(v4()),position:"left",windowId:b});var P={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:E.map(function(T){return T.id}),draggingEnabled:!0,highlightAllAnnotations:v.window.highlightAllAnnotations||!1,id:b,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:v.window.sideBarOpenByDefault!==void 0?v.window.sideBarOpenByDefault||!!d.defaultSearchQuery:v.window.sideBarOpen||!!d.defaultSearchQuery,sideBarPanel:d.sideBarPanel||v.window.defaultSideBarPanel||v.window.sideBarPanel,thumbnailNavigationId:w},C=_objectSpread$11(_objectSpread$11({},v.window.elastic||{height:400,width:480}),{},{x:200+(Math.floor(y/10)*50+y*30%300),y:200+y*50%300});f({companionWindows:E,elasticLayout:C,manifest:u,type:ActionTypes$1.ADD_WINDOW,window:_objectSpread$11(_objectSpread$11({},P),d)})}}function updateWindow$1(l,o){return{id:l,payload:o,type:ActionTypes$1.UPDATE_WINDOW}}function maximizeWindow$1(l,o){return{type:ActionTypes$1.MAXIMIZE_WINDOW,windowId:l}}function minimizeWindow$1(l){return{type:ActionTypes$1.MINIMIZE_WINDOW,windowId:l}}function setCompanionAreaOpen$1(l,o){return{id:l,payload:{companionAreaOpen:o},type:ActionTypes$1.UPDATE_WINDOW}}function removeWindow$1(l){return{type:ActionTypes$1.REMOVE_WINDOW,windowId:l}}function toggleWindowSideBar$1(l){return{type:ActionTypes$1.TOGGLE_WINDOW_SIDE_BAR,windowId:l}}function setWindowThumbnailPosition$1(l,o){return function(u,d){var f=d(),p=f.windows,h=p[l].thumbnailNavigationId;u({id:h,payload:{position:o},type:ActionTypes$1.UPDATE_COMPANION_WINDOW})}}function setWindowViewType$1(l,o){return{type:ActionTypes$1.SET_WINDOW_VIEW_TYPE,viewType:o,windowId:l}}function showCollectionDialog$1(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2?arguments[2]:void 0;return{collectionPath:o,manifestId:l,type:ActionTypes$1.SHOW_COLLECTION_DIALOG,windowId:u}}function hideCollectionDialog$1(l){return{type:ActionTypes$1.HIDE_COLLECTION_DIALOG,windowId:l}}function shiftBookView(l,o){return{type:ActionTypes$1.SHIFT_BOOK_VIEW,windowId:l,doShift:o}}function ownKeys$10(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$10(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
41o%2?ownKeys$10(Object(u),!0).forEach(function(d){_defineProperty$19(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$10(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$19(l,o,u){return(o=_toPropertyKey$2y(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2y(l){var o=_toPrimitive$2y(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2y(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function requestManifest$1(l,o){return{manifestId:l,properties:o,type:ActionTypes$1.REQUEST_MANIFEST}}function receiveManifest$1(l,o){return{manifestId:l,manifestJson:o,type:ActionTypes$1.RECEIVE_MANIFEST}}function receiveManifestFailure$1(l,o){return{error:o,manifestId:l,type:ActionTypes$1.RECEIVE_MANIFEST_FAILURE}}function fetchManifest$2(l,o){return requestManifest$1(l,_objectSpread$10(_objectSpread$10({},o),{},{isFetching:!0}))}function removeManifest$1(l){return{manifestId:l,type:ActionTypes$1.REMOVE_MANIFEST}}function requestInfoResponse$1(l,o,u){return{imageResource:o,infoId:l,type:ActionTypes$1.REQUEST_INFO_RESPONSE,windowId:u}}function receiveInfoResponse$1(l,o,u,d){return{infoId:l,infoJson:o,ok:u,tokenServiceId:d,type:ActionTypes$1.RECEIVE_INFO_RESPONSE}}function receiveDegradedInfoResponse$1(l,o,u,d,f){return{infoId:l,infoJson:o,ok:u,tokenServiceId:d,type:ActionTypes$1.RECEIVE_DEGRADED_INFO_RESPONSE,windowId:f}}function receiveInfoResponseFailure$1(l,o,u){return{error:o,infoId:l,tokenServiceId:u,type:ActionTypes$1.RECEIVE_INFO_RESPONSE_FAILURE}}function fetchInfoResponse$2(l){var o=l.imageId,u=l.imageResource,d=l.windowId,f=u&&u.getServices()[0],p=o||f.id;return requestInfoResponse$1(p,f,d)}function removeInfoResponse$1(l){return{infoId:l,type:ActionTypes$1.REMOVE_INFO_RESPONSE}}function ownKeys$$(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$$(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$$(Object(u),!0).forEach(function(d){_defineProperty$18(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$$(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$18(l,o,u){return(o=_toPropertyKey$2x(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2x(l){var o=_toPrimitive$2x(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2x(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function setCanvas$1(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return function(f,p){var h=p(),v=getConfig$1(h).osdConfig.preserveViewport,g=u;if(!g){var m=getCanvasGrouping$1(h,{canvasId:o,windowId:l});g=(m||[]).map(function(y){return y.id})}f(_objectSpread$$(_objectSpread$$({},d),{},{canvasId:o,preserveViewport:v,type:ActionTypes$1.SET_CANVAS,visibleCanvases:g,windowId:l}))}}function setNextCanvas$1(l){return function(o,u){var d=u(),f=getNextCanvasGrouping$1(d,{windowId:l}),p=(f||[]).map(function(h){return h.id});f&&o(setCanvas$1(l,p[0],p))}}function setPreviousCanvas$1(l){return function(o,u){var d=u(),f=getPreviousCanvasGrouping$1(d,{windowId:l}),p=(f||[]).map(function(h){return h.id});f&&o(setCanvas$1(l,p[0],p))}}function updateViewport$1(l,o){return{payload:o,type:ActionTypes$1.UPDATE_VIEWPORT,windowId:l}}
41function updateWorkspace$1(l){return{config:l,type:ActionTypes$1.UPDATE_WORKSPACE}}function setWorkspaceFullscreen$1(l){return{isFullscreenEnabled:l,type:ActionTypes$1.SET_WORKSPACE_FULLSCREEN}}function toggleZoomControls$1(l){return{showZoomControls:l,type:ActionTypes$1.TOGGLE_ZOOM_CONTROLS}}function updateWorkspaceMosaicLayout$1(l){return{layout:l,type:ActionTypes$1.UPDATE_WORKSPACE_MOSAIC_LAYOUT}}function setWorkspaceAddVisibility$1(l){return{isWorkspaceAddVisible:l,type:ActionTypes$1.SET_WORKSPACE_ADD_VISIBILITY}}function setWorkspaceViewportPosition$1(l){var o=l.x,u=l.y;return{payload:{position:{x:o,y:u}},type:ActionTypes$1.SET_WORKSPACE_VIEWPORT_POSITION}}function setWorkspaceViewportDimensions$1(l){var o=l.width,u=l.height;return{payload:{position:{height:u,width:o}},type:ActionTypes$1.SET_WORKSPACE_VIEWPORT_POSITION}}function toggleDraggingEnabled$1(){return{type:ActionTypes$1.TOGGLE_DRAGGING}}function requestCanvasAnnotations$1(l,o){return{canvasId:o,type:ActionTypes$1.REQUEST_CANVAS_ANNOTATIONS,windowId:l}}function requestAnnotation$1(l,o){return{annotationId:o,targetId:l,type:ActionTypes$1.REQUEST_ANNOTATION}}function receiveAnnotation$1(l,o,u){return{annotationId:o,annotationJson:u,targetId:l,type:ActionTypes$1.RECEIVE_ANNOTATION}}function receiveAnnotationFailure$1(l,o,u){return{annotationId:o,error:u,targetId:l,type:ActionTypes$1.RECEIVE_ANNOTATION_FAILURE}}function selectAnnotation$1(l,o){return{annotationId:o,type:ActionTypes$1.SELECT_ANNOTATION,windowId:l}}function deselectAnnotation$1(l,o){return{annotationId:o,type:ActionTypes$1.DESELECT_ANNOTATION,windowId:l}}function toggleAnnotationDisplay$1(l){return{type:ActionTypes$1.TOGGLE_ANNOTATION_DISPLAY,windowId:l}}function hoverAnnotation$1(l,o){return{annotationIds:o,type:ActionTypes$1.HOVER_ANNOTATION,windowId:l}}function ownKeys$_(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$_(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$_(Object(u),!0).forEach(function(d){_defineProperty$17(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$_(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$17(l,o,u){return(o=_toPropertyKey$2w(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2w(l){var o=_toPrimitive$2w(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2w(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function addAuthenticationRequest$1(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return{id:o,profile:u,type:ActionTypes$1.ADD_AUTHENTICATION_REQUEST,windowId:l}}function resolveAuthenticationRequest$1(l,o,u){return _objectSpread$_({id:l,tokenServiceId:o,type:ActionTypes$1.RESOLVE_AUTHENTICATION_REQUEST},u)}function requestAccessToken$1(l,o){return{authId:o,serviceId:l,type:ActionTypes$1.REQUEST_ACCESS_TOKEN}}function receiveAccessToken$1(l,o,u){return{authId:l,json:u,serviceId:o,type:ActionTypes$1.RECEIVE_ACCESS_TOKEN}}function receiveAccessTokenFailure$1(l,o,u){return{authId:l,error:u,serviceId:o,type:ActionTypes$1.RECEIVE_ACCESS_TOKEN_FAILURE}}function resolveAccessTokenRequest$1(l,o,u){return u.accessToken?receiveAccessToken$1(l,o,u):receiveAccessTokenFailure$1(l,o,u)}function resetAuthenticationState$1(l){var o=l.authServiceId,u=l.tokenServiceId;return{id:o,tokenServiceId:u,type:ActionTypes$1.RESET_AUTHENTICATION_STATE}}function updateElasticWindowLayout$1(l,o){return{payload:o,type:ActionTypes$1.UPDATE_ELASTIC_WINDOW_LAYOUT,windowId:l}}function requestSearch$1(l,o,u,d){return{companionWindowId:o,query:d,searchId:u,type:ActionTypes$1.REQUEST_SEARCH,windowId:l}}function receiveSearch$1(l,o,u,d){return{companionWindowId:o,searchId:u,searchJson:d,type:ActionTypes$1.RECEIVE_SEARCH,windowId:l}}function receiveSearchFailure$1(l,o,u,d){return{companionWindowId:o,error:d,searchId:u,type:ActionTypes$1.RECEIVE_SEARCH_FAILURE,windowId:l}}function removeSearch$1(l,o){return{companionWindowId:o,type:ActionTypes$1.REMOVE_SEARCH,windowId:l}}function fetchSearch$1(l,o,u,d){return requestSearch$1(l,o,u,d)}function setContentSearchCurrentAnnotation$1(l,o,u){return{annotationIds:u,companionWindowId:o,type:ActionTypes$1.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS,windowId:l}}function updateLayers$1(l,o,u){return{canvasId:o,payload:u,type:ActionTypes$1.UPDATE_LAYERS,windowId:l}}function addResource$1(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0;return{manifestId:l,manifestJson:o,payload:u,type:ActionTypes$1.ADD_RESOURCE}}function removeResource$1(l){return{manifestId:l,type:ActionTypes$1.REMOVE_RESOURCE}}const actions$2=Object.freeze(Object.defineProperty({__proto__:null,addAuthenticationRequest:addAuthenticationRequest$1,addCompanionWindow:addCompanionWindow$1,addError:addError$1,addOrUpdateCompanionWindow:addOrUpdateCompanionWindow$1,addResource:addResource$1,addWindow:addWindow$1,deselectAnnotation:deselectAnnotation$1,fetchInfoResponse:fetchInfoResponse$2,fetchManifest:fetchManifest$2,fetchSearch:fetchSearch$1,focusWindow:focusWindow$1,hideCollectionDialog:hideCollectionDialog$1,hoverAnnotation:hoverAnnotation$1,importConfig:importConfig$2,importMiradorState:importMiradorState$1,maximizeWindow:maximizeWindow$1,minimizeWindow:minimizeWindow$1,receiveAcce
41ssToken:receiveAccessToken$1,receiveAccessTokenFailure:receiveAccessTokenFailure$1,receiveAnnotation:receiveAnnotation$1,receiveAnnotationFailure:receiveAnnotationFailure$1,receiveDegradedInfoResponse:receiveDegradedInfoResponse$1,receiveInfoResponse:receiveInfoResponse$1,receiveInfoResponseFailure:receiveInfoResponseFailure$1,receiveManifest:receiveManifest$1,receiveManifestFailure:receiveManifestFailure$1,receiveSearch:receiveSearch$1,receiveSearchFailure:receiveSearchFailure$1,removeCompanionWindow:removeCompanionWindow$1,removeError:removeError$1,removeInfoResponse:removeInfoResponse$1,removeManifest:removeManifest$1,removeResource:removeResource$1,removeSearch:removeSearch$1,removeWindow:removeWindow$1,requestAccessToken:requestAccessToken$1,requestAnnotation:requestAnnotation$1,requestCanvasAnnotations:requestCanvasAnnotations$1,requestInfoResponse:requestInfoResponse$1,requestManifest:requestManifest$1,requestSearch:requestSearch$1,resetAuthenticationState:resetAuthenticationState$1,resolveAccessTokenRequest:resolveAccessTokenRequest$1,resolveAuthenticationRequest:resolveAuthenticationRequest$1,selectAnnotation:selectAnnotation$1,setCanvas:setCanvas$1,setCompanionAreaOpen:setCompanionAreaOpen$1,setConfig:setConfig$1,setContentSearchCurrentAnnotation:setContentSearchCurrentAnnotation$1,setNextCanvas:setNextCanvas$1,setPreviousCanvas:setPreviousCanvas$1,setWindowThumbnailPosition:setWindowThumbnailPosition$1,setWindowViewType:setWindowViewType$1,setWorkspaceAddVisibility:setWorkspaceAddVisibility$1,setWorkspaceFullscreen:setWorkspaceFullscreen$1,setWorkspaceViewportDimensions:setWorkspaceViewportDimensions$1,setWorkspaceViewportPosition:setWorkspaceViewportPosition$1,shiftBookView,showCollectionDialog:showCollectionDialog$1,toggleAnnotationDisplay:toggleAnnotationDisplay$1,toggleDraggingEnabled:toggleDraggingEnabled$1,toggleNode:toggleNode$1,toggleWindowSideBar:toggleWindowSideBar$1,toggleZoomControls:toggleZoomControls$1,updateCompanionWindow:updateCompanionWindow$1,updateConfig:updateConfig$1,updateElasticWindowLayout:updateElasticWindowLayout$1,updateLayers:updateLayers$1,updateViewport:updateViewport$1,updateWindow:updateWindow$1,updateWorkspace:updateWorkspace$1,updateWorkspaceMosaicLayout:updateWorkspaceMosaicLayout$1},Symbol.toStringTag,{value:"Module"}));var styles$36=function(o){var u={};return o.shadows.forEach(function(d,f){u["elevation".concat(f)]={boxShadow:d}}),_extends$v({root:{backgroundColor:o.palette.background.paper,color:o.palette.text.primary,transition:o.transitions.create("box-shadow")},rounded:{borderRadius:o.shape.borderRadius},outlined:{border:"1px solid ".concat(o.palette.divider)}},u)},Paper=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?"div":p,v=o.square,g=v===void 0?!1:v,m=o.elevation,y=m===void 0?1:m,b=o.variant,w=b===void 0?"elevation":b,E=_objectWithoutProperties$q(o,["classes","className","component","square","elevation","variant"]);return reactExports.createElement(h,_extends$v({className:clsx$1(d.root,f,w==="outlined"?d.outlined:d["elevation".concat(y)],!g&&d.rounded),ref:u},E))});const Paper$1=withStyles$2(styles$36,{name:"MuiPaper"})(Paper);let windowObject;typeof window<"u"?windowObject=window:typeof self<"u"?windowObject=self:windowObject=global;let cancelFrame=null,requestFrame=null;const TIMEOUT_DURATION=20,clearTimeoutFn=windowObject.clearTimeout,setTimeoutFn=windowObject.setTimeout,cancelAnimationFrameFn=windowObject.cancelAnimationFrame||windowObject.mozCancelAnimationFrame||windowObject.webkitCancelAnimationFrame,requestAnimationFrameFn=windowObject.requestAnimationFrame||windowObject.mozRequestAnimationFrame||windowObject.webkitRequestAnimationFrame;cancelAnimationFrameFn==null||requestAnimationFrameFn==null?(cancelFrame=clearTimeoutFn,requestFrame=function(o){return setTimeoutFn(o,TIMEOUT_DURATION)}):(cancelFrame=function([o,u]){cancelAnimationFrameFn(o),clearTimeoutFn(u)},requestFrame=function(o){const u=requestAnimationFrameFn(function(){clearTimeoutFn(d),o()}),d=setTimeoutFn(function(){cancelAnimationFrameFn(u),o()},TIMEOUT_DURATION);return[u,d]});function createDetectElementResize(l){let o,u,d,f,p,h,v;const g=typeof document<"u"&&document.attachEvent;if(!g){h=function(O){const x=O.__resizeTriggers__,A=x.firstElementChild,D=x.lastElementChild,j=A.firstElementChild;D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight,j.style.width=A.offsetWidth+1+"px",j.style.height=A.offsetHeight+1+"px",A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight},p=function(O){return O.offsetWidth!==O.__resizeLast__.width||O.offsetHeight!==O.__resizeLast__.height},v=function(O){if(O.target.className&&typeof O.target.className.indexOf=="function"&&O.target.className.indexOf("contract-trigger")<0&&O.target.className.indexOf("expand-trigger")<0)return;const x=this;h(this),this.__resizeRAF__&&cancelFrame(this.__resizeRAF__),this.__resizeRAF__=requestFrame(function(){p(x)&&(x.__resizeLast__.width=x.offsetWidth,x.__resizeLast__.height=x.offsetHeight,x.__resizeListeners__.forEach(function(j){j.call(x,O)}))})};let w=!1,E="";d="animationstart";const P="Webkit Moz O ms".split(" ");let C="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),T="";{const O=document.createElement("fakeelement");
41if(O.style.animationName!==void 0&&(w=!0),w===!1){for(let x=0;x<P.length;x++)if(O.style[P[x]+"AnimationName"]!==void 0){T=P[x],E="-"+T.toLowerCase()+"-",d=C[x],w=!0;break}}}u="resizeanim",o="@"+E+"keyframes "+u+" { from { opacity: 0; } to { opacity: 0; } } ",f=E+"animation: 1ms "+u+"; "}const m=function(w){if(!w.getElementById("detectElementResize")){const E=(o||"")+".resize-triggers { "+(f||"")+'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%; }',P=w.head||w.getElementsByTagName("head")[0],C=w.createElement("style");C.id="detectElementResize",C.type="text/css",l!=null&&C.setAttribute("nonce",l),C.styleSheet?C.styleSheet.cssText=E:C.appendChild(w.createTextNode(E)),P.appendChild(C)}};return{addResizeListener:function(w,E){if(g)w.attachEvent("onresize",E);else{if(!w.__resizeTriggers__){const P=w.ownerDocument,C=windowObject.getComputedStyle(w);C&&C.position==="static"&&(w.style.position="relative"),m(P),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=P.createElement("div")).className="resize-triggers";const T=P.createElement("div");T.className="expand-trigger",T.appendChild(P.createElement("div"));const O=P.createElement("div");O.className="contract-trigger",w.__resizeTriggers__.appendChild(T),w.__resizeTriggers__.appendChild(O),w.appendChild(w.__resizeTriggers__),h(w),w.addEventListener("scroll",v,!0),d&&(w.__resizeTriggers__.__animationListener__=function(A){A.animationName===u&&h(w)},w.__resizeTriggers__.addEventListener(d,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(E)}},removeResizeListener:function(w,E){if(g)w.detachEvent("onresize",E);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(E),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",v,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(d,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}}}}class AutoSizer extends reactExports.Component{constructor(...o){super(...o),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:u,disableWidth:d,onResize:f}=this.props;if(this._parentNode){const p=window.getComputedStyle(this._parentNode)||{},h=parseFloat(p.paddingLeft||"0"),v=parseFloat(p.paddingRight||"0"),g=parseFloat(p.paddingTop||"0"),m=parseFloat(p.paddingBottom||"0"),y=this._parentNode.getBoundingClientRect(),b=y.height-g-m,w=y.width-h-v;if(!u&&this.state.height!==b||!d&&this.state.width!==w){this.setState({height:b,width:w});const E=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof f=="function"&&f({height:b,width:w,get scaledHeight(){return E(),b},get scaledWidth(){return E(),w}})}}},this._setRef=u=>{this._autoSizer=u}}componentDidMount(){const{nonce:o}=this.props,u=this._autoSizer?this._autoSizer.parentNode:null;if(u!=null&&u.ownerDocument&&u.ownerDocument.defaultView&&u instanceof u.ownerDocument.defaultView.HTMLElement){this._parentNode=u;const d=u.ownerDocument.defaultView.ResizeObserver;d!=null?(this._resizeObserver=new d(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(u)):(this._detectElementResize=createDetectElementResize(o),this._detectElementResize.addResizeListener(u,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:o,defaultHeight:u,defaultWidth:d,disableHeight:f=!1,disableWidth:p=!1,doNotBailOutOnEmptyChildren:h=!1,nonce:v,onResize:g,style:m={},tagName:y="div",...b}=this.props,{height:w,width:E}=this.state,P={overflow:"visible"},C={};let T=!1;return f||(w===0&&(T=!0),P.height=0,C.height=w,C.scaledHeight=w),p||(E===0&&(T=!0),P.width=0,C.width=E,C.scaledWidth=E),h&&(T=!1),reactExports.createElement(y,{ref:this._setRef,style:{...P,...m},...b},!T&&o(C))}}var safeIsNaN=Number.isNaN||function(o){return typeof o=="number"&&o!==o};function isEqual$2(l,o){return!!(l===o||safeIsNaN(l)&&safeIsNaN(o))}function areInputsEqual$1(l,o){if(l.length!==o.length)return!1;for(var u=0;u<l.length;u++)if(!isEqual$2(l[u],o[u]))return!1;return!0}function memoizeOne(l,o){o===void 0&&(o=areInputsEqual$1);var u,d=[],f,p=!1;function h(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];return p&&u===this&&o(v,d)||(f=l.apply(this,v),p=!0,u=this,d=v),f}return h}var hasNativePerformanceNow=typeof performance=="object"&&typeof performance.now=="function",now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(l){cancelAnimationFrame(l.id)}function requestTimeout(l,o){var u=now();function d(){now()-u>=o?l.call(null):f.id=requestAnimationFrame(d)}var f={id:requestAnimationFrame(d)};return f}var size=-1;function getScrollbarSize$1(l){if(l===void 0&&(l=!1),size===-1||l){var o=document.createElement("div"),u=o.style;u.width="50px",u.height="50px",u.overflow="scroll",document.body.appendChild(o),size=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}return size}var cachedRTLResult=null;function getRTLOffsetType(l){if(l===void 0&&(l=!1),cachedRTLResult===null||l){var o=document.createElement("div"),u=o.style;u.width="50px",u.height="50px",u.overflow="scroll",u.direction="rtl";var d=document.createElement("div"),f=d.style;return f.width="100px",f.height="100px",o.appendChild(d),document.body.appendChild(o),o.scrollLeft>0?cachedRTLResult="positive-descending":(o.scrollLeft=1,o.scrollLeft===0?cachedRTLResult="negative":cachedRTLResult="positive-ascending"),document.body.removeChild(o),cachedRTLResult}return cachedRTLResult}var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function(o,u){return o};function createListComponent(l){var o,u=l.getItemOffset,d=l.getEstimatedTotalSize,f=l.getItemSize,p=l.getOffsetForIndexAndAlignment,h=l.getStartIndexForOffset,v=l.getStopIndexForStartIndex,g=l.initInstanceProps,m=l.shouldResetStyleCacheOnItemSizeChange,y=l.validateProps;return o=(function(b){_inheritsLoose(w,b);function w(P){var C;return C=b.call(this,P)||this,C._instanceProps=g(C.props,_assertThisInitialized$1y(C)),C._outerRef=void 0,C._resetIsScrollingTimeoutId=null,C.state={instance:_assertThisInitialized$1y(C),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof C.props.initialScrollOffset=="number"?C.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},C._callOnItemsRendered=void 0,C._callOnItemsRendered=memoizeOne(function(T,O,x,A){return C.props.onItemsRendered({overscanStartIndex:T,overscanStopIndex:O,visibleStartIndex:x,visibleStopIndex:A})}),C._callOnScroll=void 0,C._callOnScroll=memoizeOne(function(T,O,x){return C.props.onScroll({scrollDirection:T,scrollOffset:O,scrollUpdateWasRequested:x})}),C._getItemStyle=void 0,C._getItemStyle=function(T){var O=C.props,x=O.direction,A=O.itemSize,D=O.layout,j=C._getItemStyleCache(m&&A,m&&D,m&&x),M;if(j.hasOwnProperty(T))M=j[T];else{var N=u(C.props,T,C._instanceProps),q=f(C.props,T,C._instanceProps),z=x==="horizontal"||D==="horizontal",H=x==="rtl",U=z?N:0;j[T]=M={position:"absolute",left:H?void 0:U,right:H?U:void 0,top:z?0:N,height:z?"100%":q,width:z?q:"100%"}}return M},C._getItemStyleCache=void 0,C._getItemStyleCache=memoizeOne(function(T,O,x){return{}}),C._onScrollHorizontal=function(T){var O=T.currentTarget,x=O.clientWidth,A=O.scrollLeft,D=O.scrollWidth;C.setState(function(j){if(j.scrollOffset===A)return null;var M=C.props.direction,N=A;if(M==="rtl")switch(getRTLOffsetType()){case"negative":N=-A;break;case"positive-descending":N=D-x-A;break}return N=Math.max(0,Math.min(N,D-x)),{isScrolling:!0,scrollDirection:j.scrollOffset<N?"forward":"backward",scrollOffset:N,scrollUpdateWasRequested:!1}},C._resetIsScrollingDebounced)},C._onScrollVertical=function(T){var O=T.currentTarget,x=O.clientHeight,A=O.scrollHeight,D=O.scrollTop;C.setState(function(j){if(j.scrollOffset===D)return null;var M=Math.max(0,Math.min(D,A-x));
vendor: 7,205 bytes, line 41
41return{isScrolling:!0,scrollDirection:j.scrollOffset<M?"forward":"backward",scrollOffset:M,scrollUpdateWasRequested:!1}},C._resetIsScrollingDebounced)},C._outerRefSetter=function(T){var O=C.props.outerRef;C._outerRef=T,typeof O=="function"?O(T):O!=null&&typeof O=="object"&&O.hasOwnProperty("current")&&(O.current=T)},C._resetIsScrollingDebounced=function(){C._resetIsScrollingTimeoutId!==null&&cancelTimeout(C._resetIsScrollingTimeoutId),C._resetIsScrollingTimeoutId=requestTimeout(C._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},C._resetIsScrolling=function(){C._resetIsScrollingTimeoutId=null,C.setState({isScrolling:!1},function(){C._getItemStyleCache(-1,null)})},C}w.getDerivedStateFromProps=function(C,T){return validateSharedProps$1(C,T),y(C),null};var E=w.prototype;return E.scrollTo=function(C){C=Math.max(0,C),this.setState(function(T){return T.scrollOffset===C?null:{scrollDirection:T.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(C,T){T===void 0&&(T="auto");var O=this.props,x=O.itemCount,A=O.layout,D=this.state.scrollOffset;C=Math.max(0,Math.min(C,x-1));var j=0;if(this._outerRef){var M=this._outerRef;A==="vertical"?j=M.scrollWidth>M.clientWidth?getScrollbarSize$1():0:j=M.scrollHeight>M.clientHeight?getScrollbarSize$1():0}this.scrollTo(p(this.props,C,T,D,this._instanceProps,j))},E.componentDidMount=function(){var C=this.props,T=C.direction,O=C.initialScrollOffset,x=C.layout;if(typeof O=="number"&&this._outerRef!=null){var A=this._outerRef;T==="horizontal"||x==="horizontal"?A.scrollLeft=O:A.scrollTop=O}this._callPropsCallbacks()},E.componentDidUpdate=function(){var C=this.props,T=C.direction,O=C.layout,x=this.state,A=x.scrollOffset,D=x.scrollUpdateWasRequested;if(D&&this._outerRef!=null){var j=this._outerRef;if(T==="horizontal"||O==="horizontal")if(T==="rtl")switch(getRTLOffsetType()){case"negative":j.scrollLeft=-A;break;case"positive-ascending":j.scrollLeft=A;break;default:var M=j.clientWidth,N=j.scrollWidth;j.scrollLeft=N-M-A;break}else j.scrollLeft=A;else j.scrollTop=A}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&cancelTimeout(this._resetIsScrollingTimeoutId)},E.render=function(){var C=this.props,T=C.children,O=C.className,x=C.direction,A=C.height,D=C.innerRef,j=C.innerElementType,M=C.innerTagName,N=C.itemCount,q=C.itemData,z=C.itemKey,H=z===void 0?defaultItemKey$1:z,U=C.layout,F=C.outerElementType,B=C.outerTagName,G=C.style,Q=C.useIsScrolling,K=C.width,Z=this.state.isScrolling,te=x==="horizontal"||U==="horizontal",oe=te?this._onScrollHorizontal:this._onScrollVertical,fe=this._getRangeToRender(),le=fe[0],Re=fe[1],Ae=[];if(N>0)for(var _e=le;_e<=Re;_e++)Ae.push(reactExports.createElement(T,{data:q,key:H(_e,q),index:_e,isScrolling:Q?Z:void 0,style:this._getItemStyle(_e)}));var ee=d(this.props,this._instanceProps);return reactExports.createElement(F||B||"div",{className:O,onScroll:oe,ref:this._outerRefSetter,style:_extends$v({position:"relative",height:A,width:K,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},G)},reactExports.createElement(j||M||"div",{children:Ae,ref:D,style:{height:te?"100%":ee,pointerEvents:Z?"none":void 0,width:te?ee:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var C=this.props.itemCount;if(C>0){var T=this._getRangeToRender(),O=T[0],x=T[1],A=T[2],D=T[3];this._callOnItemsRendered(O,x,A,D)}}if(typeof this.props.onScroll=="function"){var j=this.state,M=j.scrollDirection,N=j.scrollOffset,q=j.scrollUpdateWasRequested;this._callOnScroll(M,N,q)}},E._getRangeToRender=function(){var C=this.props,T=C.itemCount,O=C.overscanCount,x=this.state,A=x.isScrolling,D=x.scrollDirection,j=x.scrollOffset;if(T===0)return[0,0,0,0];var M=h(this.props,j,this._instanceProps),N=v(this.props,M,j,this._instanceProps),q=!A||D==="backward"?Math.max(1,O):1,z=!A||D==="forward"?Math.max(1,O):1;return[Math.max(0,M-q),Math.max(0,Math.min(T-1,N+z)),M,N]},w})(reactExports.PureComponent),o.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},o}var validateSharedProps$1=function(o,u){o.children,o.direction,o.height,o.layout,o.innerTagName,o.outerTagName,o.width,u.instance},DEFAULT_ESTIMATED_ITEM_SIZE$1=50,getItemMetadata$1=function(o,u,d){var f=o,p=f.itemSize,h=d.itemMetadataMap,v=d.lastMeasuredIndex;if(u>v){var g=0;if(v>=0){var m=h[v];g=m.offset+m.size}for(var y=v+1;y<=u;y++){var b=p(y);h[y]={offset:g,size:b},g+=b}d.lastMeasuredIndex=u}return h[u]},findNearestItem$1=function(o,u,d){var f=u.itemMetadataMap,p=u.lastMeasuredIndex,h=p>0?f[p].offset:0;return h>=d?findNearestItemBinarySearch$1(o,u,p,0,d):findNearestItemExponentialSearch$1(o,u,Math.max(0,p),d)},findNearestItemBinarySearch$1=function(o,u,d,f,p){for(;f<=d;){var h=f+Math.floor((d-f)/2),v=getItemMetadata$1(o,h,u).offset;if(v===p)return h;v<p?f=h+1:v>p&&(d=h-1)}return f>0?f-1:0},findNearestItemExponentialSearch$1=function(o,u,d,f){for(var p=o.itemCount,h=1;d<p&&getItemMetadata$1(o,d,u).offset<f;)d+=h,h*=2;return findNearestItemBinarySearch$1(o,u,Math.min(d,p-1),Math.floor(d/2),f)},getEstimatedTotalSize=function(o,u){var d=o.itemCount,f=u.itemMetadataMap,p=u.estimatedItemSize,h=u.lastMeasuredIndex,v=0;if(h>=d&&(h=d-1),h>=0){var g=f[h];v=g.offset+g.size}var m=d-h-1,y=m*p;return v+y},VariableSizeList=createListComponent({getItemOffset:function(o,u,d){return getItemMetadata$1(o,u,d).offset},getItemSize:function(o,u,d){return d.itemMetadataMap[u].size},getEstimatedTotalSize,getOffsetForIndexAndAlignment:function(o,u,d,f,p,h){var v=o.direction,g=o.height,m=o.layout,y=o.width,b=v==="horizontal"||m==="horizontal",w=b?y:g,E=getItemMetadata$1(o,u,p),P=getEstimatedTotalSize(o,p),C=Math.max(0,Math.min(P-w,E.offset)),T=Math.max(0,E.offset-w+E.size+h);switch(d==="smart"&&(f>=T-w&&f<=C+w?d="auto":d="center"),d){case"start":return C;case"end":return T;case"center":return Math.round(T+(C-T)/2);default:return f>=T&&f<=C?f:f<T?T:C}},getStartIndexForOffset:function(o,u,d){return findNearestItem$1(o,d,u)},getStopIndexForStartIndex:function(o,u,d,f){for(var p=o.direction,h=o.height,v=o.itemCount,g=o.layout,m=o.width,y=p==="horizontal"||g==="horizontal",b=y?m:h,w=getItemMetadata$1(o,u,f),E=d+b,P=w.offset+w.size,C=u;C<v-1&&P<E;)C++,P+=getItemMetadata$1(o,C,f).size;return C},initInstanceProps:function(o,u){var d=o,f=d.estimatedItemSize,p={itemMetadataMap:{},estimatedItemSize:f||DEFAULT_ESTIMATED_ITEM_SIZE$1,lastMeasuredIndex:-1};return u.resetAfterIndex=function(h,v){v===void 0&&(v=!0),p.lastMeasuredIndex=Math.min(p.lastMeasuredIndex,h-1),u._getItemStyleCache(-1),v&&u.forceUpdate()},p},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(o){o.itemSize}}),intersectionObserver={},hasRequiredIntersectionObserver;function requireIntersectionObserver(){return hasRequiredIntersectionObserver||(hasRequiredIntersectionObserver=1,(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Ob
41ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var l=window.document,o=[],u=null,d=null;function f(x){this.time=x.time,this.target=x.target,this.rootBounds=E(x.rootBounds),this.boundingClientRect=E(x.boundingClientRect),this.intersectionRect=E(x.intersectionRect||w()),this.isIntersecting=!!x.intersectionRect;var A=this.boundingClientRect,D=A.width*A.height,j=this.intersectionRect,M=j.width*j.height;D?this.intersectionRatio=Number((M/D).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function p(x,A){var D=A||{};if(typeof x!="function")throw new Error("callback must be a function");if(D.root&&D.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=v(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=x,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(D.rootMargin),this.thresholds=this._initThresholds(D.threshold),this.root=D.root||null,this.rootMargin=this._rootMarginValues.map(function(j){return j.value+j.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}p.prototype.THROTTLE_TIMEOUT=100,p.prototype.POLL_INTERVAL=null,p.prototype.USE_MUTATION_OBSERVER=!0,p._setupCrossOriginUpdater=function(){return u||(u=function(x,A){!x||!A?d=w():d=P(x,A),o.forEach(function(D){D._checkForIntersections()})}),u},p._resetCrossOriginUpdater=function(){u=null,d=null},p.prototype.observe=function(x){var A=this._observationTargets.some(function(D){return D.element==x});if(!A){if(!(x&&x.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:x,entry:null}),this._monitorIntersections(x.ownerDocument),this._checkForIntersections()}},p.prototype.unobserve=function(x){this._observationTargets=this._observationTargets.filter(function(A){return A.element!=x}),this._unmonitorIntersections(x.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},p.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},p.prototype.takeRecords=function(){var x=this._queuedEntries.slice();return this._queuedEntries=[],x},p.prototype._initThresholds=function(x){var A=x||[0];return Array.isArray(A)||(A=[A]),A.sort().filter(function(D,j,M){if(typeof D!="number"||isNaN(D)||D<0||D>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return D!==M[j-1]})},p.prototype._parseRootMargin=function(x){var A=x||"0px",D=A.split(/\s+/).map(function(j){var M=/^(-?\d*\.?\d+)(px|%)$/.exec(j);if(!M)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(M[1]),unit:M[2]}});return D[1]=D[1]||D[0],D[2]=D[2]||D[0],D[3]=D[3]||D[1],D},p.prototype._monitorIntersections=function(x){var A=x.defaultView;if(A&&this._monitoringDocuments.indexOf(x)==-1){var D=this._checkForIntersections,j=null,M=null;if(this.POLL_INTERVAL?j=A.setInterval(D,this.POLL_INTERVAL):(g(A,"resize",D,!0),g(x,"scroll",D,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in A&&(M=new A.MutationObserver(D),M.observe(x,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(x),this._monitoringUnsubscribes.push(function(){var q=x.defaultView;q&&(j&&q.clearInterval(j),m(q,"resize",D,!0)),m(x,"scroll",D,!0),M&&M.disconnect()}),x!=(this.root&&this.root.ownerDocument||l)){var N=O(x);N&&this._monitorIntersections(N.ownerDocument)}}},p.prototype._unmonitorIntersections=function(x){var A=this._monitoringDocuments.indexOf(x);if(A!=-1){var D=this.root&&this.root.ownerDocument||l,j=this._observationTargets.some(function(q){var z=q.element.ownerDocument;if(z==x)return!0;for(;z&&z!=D;){var H=O(z);if(z=H&&H.ownerDocument,z==x)return!0}return!1});if(!j){var M=this._monitoringUnsubscribes[A];if(this._monitoringDocuments.splice(A,1),this._monitoringUnsubscribes.splice(A,1),M(),x!=D){var N=O(x);N&&this._unmonitorIntersections(N.ownerDocument)}}}},p.prototype._unmonitorAllIntersections=function(){var x=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var A=0;A<x.length;A++)x[A]()},p.prototype._checkForIntersections=function(){if(!(!this.root&&u&&!d)){var x=this._rootIsInDom(),A=x?this._getRootRect():w();
41this._observationTargets.forEach(function(D){var j=D.element,M=b(j),N=this._rootContainsTarget(j),q=D.entry,z=x&&N&&this._computeTargetAndRootIntersection(j,M,A),H=D.entry=new f({time:h(),target:j,boundingClientRect:M,rootBounds:u&&!this.root?null:A,intersectionRect:z});q?x&&N?this._hasCrossedThreshold(q,H)&&this._queuedEntries.push(H):q&&q.isIntersecting&&this._queuedEntries.push(H):this._queuedEntries.push(H)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},p.prototype._computeTargetAndRootIntersection=function(x,A,D){if(window.getComputedStyle(x).display!="none"){for(var j=A,M=T(x),N=!1;!N&&M;){var q=null,z=M.nodeType==1?window.getComputedStyle(M):{};if(z.display=="none")return null;if(M==this.root||M.nodeType==9)if(N=!0,M==this.root||M==l)u&&!this.root?!d||d.width==0&&d.height==0?(M=null,q=null,j=null):q=d:q=D;else{var H=T(M),U=H&&b(H),F=H&&this._computeTargetAndRootIntersection(H,U,D);U&&F?(M=H,q=P(U,F)):(M=null,j=null)}else{var B=M.ownerDocument;M!=B.body&&M!=B.documentElement&&z.overflow!="visible"&&(q=b(M))}if(q&&(j=y(q,j)),!j)break;M=M&&T(M)}return j}},p.prototype._getRootRect=function(){var x;if(this.root)x=b(this.root);else{var A=l.documentElement,D=l.body;x={top:0,left:0,right:A.clientWidth||D.clientWidth,width:A.clientWidth||D.clientWidth,bottom:A.clientHeight||D.clientHeight,height:A.clientHeight||D.clientHeight}}return this._expandRectByRootMargin(x)},p.prototype._expandRectByRootMargin=function(x){var A=this._rootMarginValues.map(function(j,M){return j.unit=="px"?j.value:j.value*(M%2?x.width:x.height)/100}),D={top:x.top-A[0],right:x.right+A[1],bottom:x.bottom+A[2],left:x.left-A[3]};return D.width=D.right-D.left,D.height=D.bottom-D.top,D},p.prototype._hasCrossedThreshold=function(x,A){var D=x&&x.isIntersecting?x.intersectionRatio||0:-1,j=A.isIntersecting?A.intersectionRatio||0:-1;if(D!==j)for(var M=0;M<this.thresholds.length;M++){var N=this.thresholds[M];if(N==D||N==j||N<D!=N<j)return!0}},p.prototype._rootIsInDom=function(){return!this.root||C(l,this.root)},p.prototype._rootContainsTarget=function(x){return C(this.root||l,x)&&(!this.root||this.root.ownerDocument==x.ownerDocument)},p.prototype._registerInstance=function(){o.indexOf(this)<0&&o.push(this)},p.prototype._unregisterInstance=function(){var x=o.indexOf(this);x!=-1&&o.splice(x,1)};function h(){return window.performance&&performance.now&&performance.now()}function v(x,A){var D=null;return function(){D||(D=setTimeout(function(){x(),D=null},A))}}function g(x,A,D,j){typeof x.addEventListener=="function"?x.addEventListener(A,D,j):typeof x.attachEvent=="function"&&x.attachEvent("on"+A,D)}function m(x,A,D,j){typeof x.removeEventListener=="function"?x.removeEventListener(A,D,j):typeof x.detatchEvent=="function"&&x.detatchEvent("on"+A,D)}
41function y(x,A){var D=Math.max(x.top,A.top),j=Math.min(x.bottom,A.bottom),M=Math.max(x.left,A.left),N=Math.min(x.right,A.right),q=N-M,z=j-D;return q>=0&&z>=0&&{top:D,bottom:j,left:M,right:N,width:q,height:z}||null}function b(x){var A;try{A=x.getBoundingClientRect()}catch{}return A?(A.width&&A.height||(A={top:A.top,right:A.right,bottom:A.bottom,left:A.left,width:A.right-A.left,height:A.bottom-A.top}),A):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function E(x){return!x||"x"in x?x:{top:x.top,y:x.top,bottom:x.bottom,left:x.left,x:x.left,right:x.right,width:x.width,height:x.height}}function P(x,A){var D=A.top-x.top,j=A.left-x.left;return{top:D,left:j,height:A.height,width:A.width,bottom:D+A.height,right:j+A.width}}function C(x,A){for(var D=A;D;){if(D==x)return!0;D=T(D)}return!1}function T(x){var A=x.parentNode;return x.nodeType==9&&x!=l?O(x):A&&A.nodeType==11&&A.host?A.host:A&&A.assignedSlot?A.assignedSlot.parentNode:A}function O(x){try{return x.defaultView&&x.defaultView.frameElement||null}catch{return null}}window.IntersectionObserver=p,window.IntersectionObserverEntry=f})()),intersectionObserver}requireIntersectionObserver();var styles$35=function(o){return{root:{margin:0},body2:o.typography.body2,body1:o.typography.body1,caption:o.typography.caption,button:o.typography.button,h1:o.typography.h1,h2:o.typography.h2,h3:o.typography.h3,h4:o.typography.h4,h5:o.typography.h5,h6:o.typography.h6,subtitle1:o.typography.subtitle1,subtitle2:o.typography.subtitle2,overline:o.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:o.palette.primary.main},colorSecondary:{color:o.palette.secondary.main},colorTextPrimary:{color:o.palette.text.primary},colorTextSecondary:{color:o.palette.text.secondary},colorError:{color:o.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Typography=reactExports.forwardRef(function(o,u){var d=o.align,f=d===void 0?"inherit":d,p=o.classes,h=o.className,v=o.color,g=v===void 0?"initial":v,m=o.component,y=o.display,b=y===void 0?"initial":y,w=o.gutterBottom,E=w===void 0?!1:w,P=o.noWrap,C=P===void 0?!1:P,T=o.paragraph,O=T===void 0?!1:T,x=o.variant,A=x===void 0?"body1":x,D=o.variantMapping,j=D===void 0?defaultVariantMapping:D,M=_objectWithoutProperties$q(o,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),N=m||(O?"p":j[A]||defaultVariantMapping[A])||"span";return reactExports.createElement(N,_extends$v({className:clsx$1(p.root,h,A!=="inherit"&&p[A],g!=="initial"&&p["color".concat(capitalize$1(g))],C&&p.noWrap,E&&p.gutterBottom,O&&p.paragraph,f!=="inherit"&&p["align".concat(capitalize$1(f))],b!=="initial"&&p["display".concat(capitalize$1(b))]),ref:u},M))});const Typography$1=withStyles$2(styles$35,{name:"MuiTypography"})(Typography);var _a,marginRE=/^-?\d*\.?\d+(px|%)$/;function parseRootMargin(l){var o=l?l.trim():"0px",u=o.split(/\s+/).map(function(y){if(!marginRE.test(y))throw new Error("rootMargin must be a string literal containing pixels and/or percent values");return y}),d=u.shift(),f=u[0],p=f===void 0?d:f,h=u[1],v=h===void 0?d:h,g=u[2],m=g===void 0?p:g;return d+" "+p+" "+v+" "+m}function shallowCompare(l,o){return Array.isArray(l)&&Array.isArray(o)&&l.length===o.length?l.some(function(u,d){return shallowCompare(l[d],o[d])}):l!==o}var hasOwnProperty=(_a=Object.prototype,_a.hasOwnProperty),toString$1=_a.toString;function isChildrenWithRef(l){return l&&hasOwnProperty.call(l,"ref")}var observerElementsMap=new Map;function getPooled(l){l===void 0&&(l={});for(var o=l.root||null,u=parseRootMargin(l.rootMargin),d=Array.isArray(l.threshold)?l.threshold:[l.threshold!=null?l.threshold:0],f=observerElementsMap.keys(),p;p=f.next().value;){var h=o!==p.root||u!==p.rootMargin||shallowCompare(d,p.thresholds);if(!h)return p}return null}function findObserverElement(l,o){var u=observerElementsMap.get(l);if(u){for(var d=u.values(),f=void 0;f=d.next().value;)if(f.target===o.target)return f}return null}function callback(l,o){for(var u=0;u<l.length;u++){var d=findObserverElement(o,l[u]);d&&d.handleChange(l[u])}}function createObserver(l){var o=getPooled(l);if(o)return o;var u=new IntersectionObserver(callback,l);return observerElementsMap.set(u,new Set),u}function observeElement(l){var o;l.observer&&!observerElementsMap.has(l.observer)&&observerElementsMap.set(l.observer,new Set),(o=observerElementsMap.get(l.observer))===null||o===void 0||o.add(l),l.observer.observe(l.target)}function unobserveElement(l,o){if(observerElementsMap.has(l.observer)){var u=observerElementsMap.get(l.observer);u?.delete(l)&&(u.size>0?l.observer.unobserve(o):(l.observer.disconnect(),observerElementsMap.delete(l.observer)))}}var __extends$2=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){l(o,u);function d(){this.constructor=o}
41o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),observerOptions=["root","rootMargin","threshold"],observableProps=["root","rootMargin","threshold","disabled"],getOptions$1=function(l){return observerOptions.reduce(function(o,u){var d,f=u==="root"&&toString$1.call(l.root)==="[object String]";return Object.assign(o,(d={},d[u]=f?document.querySelector(l[u]):l[u],d))},{})},ReactIntersectionObserver=(function(l){__extends$2(o,l);function o(){var u=l!==null&&l.apply(this,arguments)||this;return u.handleChange=function(d){u.props.onChange(d,u.externalUnobserve)},u.handleNode=function(d){var f=u.props.children;if(isChildrenWithRef(f)){var p=f.ref;typeof p=="function"?p(d):p&&hasOwnProperty.call(p,"current")&&(p.current=d)}if(u.targetNode=void 0,d){var h=reactDomExports.findDOMNode(d);h&&h.nodeType===1&&(u.targetNode=h)}},u.observe=function(){if(u.props.children==null||u.props.disabled)return!1;if(!u.targetNode)throw new Error("ReactIntersectionObserver: Can't find DOM node in the provided children. Make sure to render at least one DOM node in the tree.");return u.observer=createObserver(getOptions$1(u.props)),u.target=u.targetNode,observeElement(u),!0},u.unobserve=function(d){unobserveElement(u,d)},u.externalUnobserve=function(){u.targetNode&&u.unobserve(u.targetNode)},u}return o.prototype.getSnapshotBeforeUpdate=function(u){var d=this;this.prevTargetNode=this.targetNode;var f=observableProps.some(function(p){return shallowCompare(d.props[p],u[p])});return f&&this.prevTargetNode&&(u.disabled||this.unobserve(this.prevTargetNode)),f},o.prototype.componentDidUpdate=function(u,d,f){var p=!1;f||(p=this.prevTargetNode!==this.targetNode,p&&this.prevTargetNode!=null&&this.unobserve(this.prevTargetNode)),(f||p)&&this.observe()},o.prototype.componentDidMount=function(){this.observe()},o.prototype.componentWillUnmount=function(){this.targetNode&&this.unobserve(this.targetNode)},o.prototype.render=function(){var u=this.props.children;return u!=null?React.cloneElement(React.Children.only(u),{ref:this.handleNode}):null},o.displayName="IntersectionObserver",o})(React.Component);function ownKeys$Z(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$Z(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$Z(Object(u),!0).forEach(function(d){_defineProperty$16(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$Z(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$16(l,o,u){return(o=_toPropertyKey$2v(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$27(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1$(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2v(d.key),d)}}function _createClass$1$(l,o,u){return o&&_defineProperties$1$(l.prototype,o),u&&_defineProperties$1$(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2v(l){var o=_toPrimitive$2v(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2v(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1t(l,o,u){return o=_getPrototypeOf$1v(o),_possibleConstructorReturn$1C(l,_isNativeReflectConstruct$1u()?Reflect.construct(o,u||[],_getPrototypeOf$1v(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1C(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1v(l)}function _assertThisInitialized$1v(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1u(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1u=function(){return!!l})()}function _getPrototypeOf$1v(l){return _getPrototypeOf$1v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
41)},_getPrototypeOf$1v(l)}function _inherits$1C(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1v(l,o)}function _setPrototypeOf$1v(l,o){return _setPrototypeOf$1v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1v(l,o)}var IIIFThumbnail$1=(function(l){function o(u){var d;return _classCallCheck$27(this,o),d=_callSuper$1t(this,o,[u]),d.state={loaded:!1},d.handleIntersection=d.handleIntersection.bind(d),d}return _inherits$1C(o,l),_createClass$1$(o,[{key:"componentDidMount",value:function(){var d=this;this.setState(function(f){return _objectSpread$Z(_objectSpread$Z({},f),{},{image:d.image()})})}},{key:"componentDidUpdate",value:function(d){var f=this,p=this.props,h=p.maxHeight,v=p.maxWidth,g=p.resource;(d.maxHeight!==h||d.maxWidth!==v||d.resource!==g)&&this.setState(function(m){return _objectSpread$Z(_objectSpread$Z({},m),{},{image:f.image()})})}},{key:"handleIntersection",value:function(d){var f=this.state.loaded;f||!d.isIntersecting||this.setState(function(p){return _objectSpread$Z(_objectSpread$Z({},p),{},{loaded:!0})})}},{key:"imageStyles",value:function(){var d=this.props,f=d.maxHeight,p=d.maxWidth,h=d.style,v=this.image(),g={height:"auto",width:"auto"};if(!v)return _objectSpread$Z(_objectSpread$Z({},h),{},{height:f||"auto",width:p||"auto"});var m=v.height,y=v.width;if(m&&y)if(f&&m>f||p&&y>p){var b=y/m;f&&p?p/f<b?(g.height=Math.round(p/b),g.width=p):(g.height=f,g.width=Math.round(f*b)):f?(g.height=f,g.maxWidth=Math.round(f*b)):p&&(g.width=p,g.maxHeight=Math.round(p/b))}else g.width=y,g.height=m;else m&&!y?g.height=f:!m&&y?g.width=p:(g.width=p,g.height=f);return _objectSpread$Z(_objectSpread$Z({},g),h)}},{key:"image",value:function(){var d=this.props,f=d.thumbnail,p=d.resource,h=d.maxHeight,v=d.maxWidth,g=d.thumbnailsConfig;if(f)return f;var m=getBestThumbnail$1(p,_objectSpread$Z(_objectSpread$Z({},g),{},{maxHeight:h,maxWidth:v}));if(m&&m.url)return m}},{key:"label",value:function(){var d=this.props,f=d.label,p=d.resource;return f||o.getUseableLabel(p)}},{key:"render",value:function(){var d=this.props,f=d.children,p=d.classes,h=d.imagePlaceholder,v=d.labelled,g=d.thumbnail,m=d.variant,y=this.state,b=y.image,w=y.loaded,E=w&&(g||b)||{},P=E.url,C=P===void 0?h:P;return React.createElement("div",{className:classNames(p.root,_defineProperty$16({},p["".concat(m,"Root")],m))},React.createElement(ReactIntersectionObserver,{onChange:this.handleIntersection},React.createElement("img",{alt:"",role:"presentation",src:C,style:this.imageStyles(),className:p.image})),v&&React.createElement("div",{className:classNames(p.label,_defineProperty$16({},p["".concat(m,"Label")],m))},React.createElement(Typography$1,{variant:"caption",classes:{root:classNames(p.caption,_defineProperty$16({},p["".concat(m,"Caption")],m))}},this.label())),f)}}],[{key:"getUseableLabel",value:function(d,f){return d&&d.getLabel&&d.getLabel().length>0?d.getLabel().getValue():String(f+1)}}])})(reactExports.Component);IIIFThumbnail$1.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 mapStateToProps$1a=function(o){return{thumbnailsConfig:getConfig$1(o).thumbnails}},styles$34=function(o){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:{}}},enhance$1n=compose$2(withStyles$2(styles$34),withTranslation(),connect(mapStateToProps$1a),withPlugins$1("IIIFThumbnail"));const IIIFThumbnail=enhance$1n(IIIFThumbnail$1);var ns$1=function(o){return flatten([o]).map(function(u){return[settings$1.createGenerateClassNameOptions.productionPrefix,u].join("-")}).join(" ")};function ownKeys$Y(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$Y(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
41o%2?ownKeys$Y(Object(u),!0).forEach(function(d){_defineProperty$15(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$Y(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$15(l,o,u){return(o=_toPropertyKey$2u(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$26(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1_(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2u(d.key),d)}}function _createClass$1_(l,o,u){return o&&_defineProperties$1_(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2u(l){var o=_toPrimitive$2u(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2u(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1s(l,o,u){return o=_getPrototypeOf$1u(o),_possibleConstructorReturn$1B(l,_isNativeReflectConstruct$1t()?Reflect.construct(o,u||[],_getPrototypeOf$1u(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1B(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1u(l)}function _assertThisInitialized$1u(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1t(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1t=function(){return!!l})()}function _getPrototypeOf$1u(l){return _getPrototypeOf$1u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1u(l)}function _inherits$1B(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1u(l,o)}function _setPrototypeOf$1u(l,o){return _setPrototypeOf$1u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1u(l,o)}var ThumbnailCanvasGrouping$1=(function(l){function o(u){var d;return _classCallCheck$26(this,o),d=_callSuper$1s(this,o,[u]),d.setCanvas=d.setCanvas.bind(d),d}return _inherits$1B(o,l),_createClass$1_(o,[{key:"setCanvas",value:function(d){var f=this.props.setCanvas;f(d.currentTarget.dataset.canvasId)}},{key:"currentCanvasClass",value:function(d){var f=this.props.index;return d.includes(f)?"current-canvas-grouping":""}},{key:"render",value:function(){var d=this.props,f=d.index,p=d.style,h=d.data,v=d.classes,g=d.currentCanvasId,m=h.canvasGroupings,y=h.position,b=h.height,w=m[f],E=8;return React.createElement("div",{style:_objectSpread$Y(_objectSpread$Y({},p),{},{boxSizing:"content-box",height:Number.isInteger(p.height)?p.height-E:null,left:Number.isInteger(p.left)?p.left+E:null,top:p.top+E,width:Number.isInteger(p.width)?p.width-E:null}),className:ns$1("thumbnail-nav-container"),role:"gridcell","aria-colindex":f+1},React.createElement("div",{role:"button","data-canvas-id":w[0].id,"data-canvas-index":w[0].index,onKeyUp:this.setCanvas,onClick:this.setCanvas,tabIndex:-1,style:{height:y==="far-right"?"auto":"".concat(b-E,"px"),width:y==="far-bottom"?"auto":"".concat(p.width,"px")},className:classNames(ns$1(["thumbnail-nav-canvas","thumbnail-nav-canvas-".concat(f),this.currentCanvasClass(w.map(function(P){return P.index}))]),v.canvas,_defineProperty$15({},v.currentCanvas,w.map(function(P){return P.id}).includes(g)))},w.map(function(P,C){return React.createElement(IIIFThumbnail,{key:P.id,resource:P,labelled:!0,maxHeight:y==="far-right"?p.height-1.5*E:b-1.5*E,variant:"inside"})})))}}])})(reactExports.PureComponent),mapDispatchToProps$P=function(o,u){var d=u.data;return{setCanvas:function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];return o(setCanvas$1.apply(actions$2,[d.windowId].concat(h)))}}},mapStateToProps$19=function(o,u){var d=u.data;return{currentCanvasId:(getCurrentCanvas$1(o,{windowId:d.windowId})||{}).id}},styles$33=function(o){return{canvas:{"&$currentCanvas":{outline:"2px s
41olid ".concat(o.palette.primary.main),outlineOffset:"3px"},"&:hover":{outline:"9px solid ".concat(o.palette.action.hover),outlineOffset:"-2px"},boxSizing:"border-box",color:o.palette.common.white,cursor:"pointer",display:"inline-block",outline:0,whiteSpace:"nowrap"},currentCanvas:{}}},enhance$1m=compose$2(withTranslation(),withStyles$2(styles$33),connect(mapStateToProps$19,mapDispatchToProps$P),withPlugins$1("ThumbnailCanvasGrouping"));const ThumbnailCanvasGrouping=enhance$1m(ThumbnailCanvasGrouping$1);function _classCallCheck$25(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1Z(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2t(d.key),d)}}function _createClass$1Z(l,o,u){return o&&_defineProperties$1Z(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2t(l){var o=_toPrimitive$2t(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2t(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1r(l,o,u){return o=_getPrototypeOf$1t(o),_possibleConstructorReturn$1A(l,_isNativeReflectConstruct$1s()?Reflect.construct(o,u||[],_getPrototypeOf$1t(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1A(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1t(l)}function _assertThisInitialized$1t(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1s(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1s=function(){return!!l})()}function _getPrototypeOf$1t(l){return _getPrototypeOf$1t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1t(l)}function _inherits$1A(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1t(l,o)}function _setPrototypeOf$1t(l,o){return _setPrototypeOf$1t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1t(l,o)}var ThumbnailNavigation$1=(function(l){function o(u){var d;return _classCallCheck$25(this,o),d=_callSuper$1r(this,o,[u]),d.scrollbarSize=15,d.spacing=8,d.calculateScaledSize=d.calculateScaledSize.bind(d),d.itemCount=d.itemCount.bind(d),d.handleKeyUp=d.handleKeyUp.bind(d),d.nextCanvas=d.nextCanvas.bind(d),d.previousCanvas=d.previousCanvas.bind(d),d.gridRef=React.createRef(),d}return _inherits$1A(o,l),_createClass$1Z(o,[{key:"componentDidUpdate",value:function(d){var f=this.props,p=f.canvasIndex,h=f.position,v=f.view;if(d.view!==v&&h!=="off"&&this.gridRef.current.resetAfterIndex(0),d.canvasIndex!==p){var g=p;v==="book"&&(g=Math.ceil(g/2)),this.gridRef.current.scrollToItem(g,"center")}}},{key:"handleKeyUp",value:function(d){var f=this.props.position,p="ArrowRight",h="ArrowLeft";switch(f==="far-right"&&(p="ArrowDown",h="ArrowUp"),d.key){case p:this.nextCanvas();break;case h:this.previousCanvas();break}}},{key:"calculateScaledSize",value:function(d){var f=this.props,p=f.thumbnailNavigation,h=f.canvasGroupings,v=f.position,g=h[d]||[],m=new CanvasWorld$1(g),y=m.worldBounds();switch(v){case"far-right":{var b=Math.floor(this.calculatingWidth(g.length)*y[3]/y[2]);return Number.isInteger(b)?b+this.spacing:p.width+this.spacing}default:{if(y[3]===0)return p.width+this.spacing;var w=Math.ceil((p.height-this.scrollbarSize-this.spacing-4)*y[2]/y[3]);return w}}}},{key:"calculatingWidth",value:function(d){var f=this.props.thumbnailNavigation;return d===1?f.width:f.width*2}},{key:"rightWidth",value:function(){var d=this.props,f=d.view,p=d.thumbnailNavigation;return f==="book"?p.width*2:p.width}},{key:"style",value:function(){var d=this.props,f=d.position,p=d.thumbnailNavigation;return f==="far-right"?{height:"100%",minHeight:0,width:"".concat(this.rightWidth()+this.scrollbarSize+this.spacing,"px")}:{height:"".concat(p.height,"px"),width:"100%"}}},{key:"areaHeight",value:function(d){var f=this.props,p=f.position,h=f.thumbnailNavigation;return p==="far-right"?d:h.height}},{key:"itemCount",value:function(){var d=this.props.canvasGroupings;return d.length}},{key:"nextCanvas",value:function(){var d=this.props,f=d.hasNextCanvas,p=d.setNextCanvas;f&&p()}},{key:"previousCanvas",value:function(){var d=this.props,f=d.hasPreviousCanvas,p=d.setPreviousCanvas;f&&p()}},{key:"render",value:function(){var d=this,f=this.props,p=f.t,h=f.canvasGroupings,v=f.classes,g=f.position,m=f.thumbnailNavigation,y=f.viewingDirection,b=f.windowId;if(g==="off")return React.createElement(React.Fragment,null);var w=y==="right-to-left"?"rtl":"ltr",E={canvasGroupings:h,height:m.height-this.spacing-this.scrollbarSize,position:g,windowId:b};return React.createElement(Paper$1,{className:classNames(ns$1("thumb-navigation"),v.thumbNavigation),"aria-label":p("thumbnailNavigation"),square:!0,elevation:0,style:this.style(),tabIndex:0,onKeyUp:this.handleKeyUp,role:"grid"},React.createElement("div",{role:"row",style:{height:"100%",width:"100%"}},React.createElement(AutoSizer,{defaultHeight:100,defaultWidth:400},function(P){var C=P.height,T=P.width;return React.createElement(VariableSizeList,{direction:w,height:d.areaHeight(C),itemCount:d.itemCount(),itemSize:d.calculateScaledSize,width:T,layout:g==="far-bottom"?"horizontal":"vertical",itemData:E,ref:d.gridRef}
41,ThumbnailCanvasGrouping)})))}}])})(reactExports.Component);ThumbnailNavigation$1.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},view:void 0,viewingDirection:""};var mapStateToProps$18=function(o,u){var d=u.windowId;return{canvasGroupings:getCanvasGroupings$1(o,{windowId:d}),canvasIndex:getCanvasIndex$1(o,{windowId:d}),hasNextCanvas:!!getNextCanvasGrouping$1(o,{windowId:d}),hasPreviousCanvas:!!getPreviousCanvasGrouping$1(o,{windowId:d}),position:getCompanionWindow$1(o,{companionWindowId:getWindow$2(o,{windowId:d}).thumbnailNavigationId}).position,thumbnailNavigation:getConfig$1(o).thumbnailNavigation,view:getWindowViewType$1(o,{windowId:d}),viewingDirection:getSequenceViewingDirection$1(o,{windowId:d})}},mapDispatchToProps$O=function(o,u){var d=u.windowId;return{setNextCanvas:function(){return o(setNextCanvas$1(d))},setPreviousCanvas:function(){return o(setPreviousCanvas$1(d))}}},styles$32=function(o){return{thumbNavigation:{"&:focus":{boxShadow:0,outline:0}}}},enhance$1l=compose$2(withStyles$2(styles$32),withTranslation(),connect(mapStateToProps$18,mapDispatchToProps$O),withPlugins$1("ThumbnailNavigation"));const ThumbnailNavigation=enhance$1l(ThumbnailNavigation$1);var VisibilitySharp={},hasRequiredVisibilitySharp;function requireVisibilitySharp(){if(hasRequiredVisibilitySharp)return VisibilitySharp;hasRequiredVisibilitySharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(VisibilitySharp,"__esModule",{value:!0}),VisibilitySharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return VisibilitySharp.default=f,VisibilitySharp}var VisibilitySharpExports=requireVisibilitySharp();const VisibilityIcon=getDefaultExportFromCjs(VisibilitySharpExports);var VisibilityOffSharp={},hasRequiredVisibilityOffSharp;function requireVisibilityOffSharp(){if(hasRequiredVisibilityOffSharp)return VisibilityOffSharp;hasRequiredVisibilityOffSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(VisibilityOffSharp,"__esModule",{value:!0}),VisibilityOffSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return VisibilityOffSharp.default=f,VisibilityOffSharp}var VisibilityOffSharpExports=requireVisibilityOffSharp();const VisibilityOffIcon=getDefaultExportFromCjs(VisibilityOffSharpExports);var RADIUS_STANDARD=10,RADIUS_DOT=4,styles$31=function(o){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:o.typography.fontFamily,fontWeight:o.typography.fontWeightMedium,fontSize:o.typography.pxToRem(12),minWidth:RADIUS_STANDARD*2,lineHeight:1,padding:"0 6px",height:RADIUS_STANDARD*2,borderRadius:RADIUS_STANDARD,zIndex:1,transition:o.transitions.create("transform",{easing:o.transitions.easing.easeInOut,duration:o.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:o.palette.primary.main,color:o.palette.primary.contrastText},colorSecondary:{backgroundColor:o.palette.secondary.main,color:o.palette.secondary.contrastText},colorError:{backgroundColor:o.palette.error.main,color:o.palette.error.contrastText},dot:{borderRadius:RADIUS_DOT,height:RADIUS_DOT*2,minWidth:RADIUS_DOT*2,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%)"}}
41,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:o.transitions.create("transform",{easing:o.transitions.easing.easeInOut,duration:o.transitions.duration.leavingScreen})}}},Badge=reactExports.forwardRef(function(o,u){var d=o.anchorOrigin,f=d===void 0?{vertical:"top",horizontal:"right"}:d,p=o.badgeContent,h=o.children,v=o.classes,g=o.className,m=o.color,y=m===void 0?"default":m,b=o.component,w=b===void 0?"span":b,E=o.invisible,P=o.max,C=P===void 0?99:P,T=o.overlap,O=T===void 0?"rectangle":T,x=o.showZero,A=x===void 0?!1:x,D=o.variant,j=D===void 0?"standard":D,M=_objectWithoutProperties$q(o,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),N=E;E==null&&(p===0&&!A||p==null&&j!=="dot")&&(N=!0);var q="";return j!=="dot"&&(q=p>C?"".concat(C,"+"):p),reactExports.createElement(w,_extends$v({className:clsx$1(v.root,g),ref:u},M),h,reactExports.createElement("span",{className:clsx$1(v.badge,v["".concat(f.horizontal).concat(capitalize$1(f.vertical),"}")],v["anchorOrigin".concat(capitalize$1(f.vertical)).concat(capitalize$1(f.horizontal)).concat(capitalize$1(O))],y!=="default"&&v["color".concat(capitalize$1(y))],N&&v.invisible,j==="dot"&&v.dot)},q))});const Badge$1=withStyles$2(styles$31,{name:"MuiBadge"})(Badge),config$1={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(o){return o.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=(function(l){_inheritsLoose(o,l);function o(d,f){var p;p=l.call(this,d,f)||this;var h=f,v=h&&!h.isMounting?d.enter:d.appear,g;return p.appearStatus=null,d.in?v?(g=EXITED,p.appearStatus=ENTERING):g=ENTERED:d.unmountOnExit||d.mountOnEnter?g=UNMOUNTED:g=EXITED,p.state={status:g},p.nextCallback=null,p}o.getDerivedStateFromProps=function(f,p){var h=f.in;return h&&p.status===UNMOUNTED?{status:EXITED}:null};var u=o.prototype;return u.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},u.componentDidUpdate=function(f){var p=null;if(f!==this.props){var h=this.state.status;this.props.in?h!==ENTERING&&h!==ENTERED&&(p=ENTERING):(h===ENTERING||h===ENTERED)&&(p=EXITING)}this.updateStatus(!1,p)},u.componentWillUnmount=function(){this.cancelNextCallback()},u.getTimeouts=function(){var f=this.props.timeout,p,h,v;return p=h=v=f,f!=null&&typeof f!="number"&&(p=f.exit,h=f.enter,v=f.appear!==void 0?f.appear:h),{exit:p,enter:h,appear:v}},u.updateStatus=function(f,p){if(f===void 0&&(f=!1),p!==null)if(this.cancelNextCallback(),p===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);h&&forceReflow(h)}this.performEnter(f)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},u.performEnter=function(f){var p=this,h=this.props.enter,v=this.context?this.context.
vendor: 4,110 bytes, line 41
41isMounting:f,g=this.props.nodeRef?[v]:[ReactDOM.findDOMNode(this),v],m=g[0],y=g[1],b=this.getTimeouts(),w=v?b.appear:b.enter;if(!f&&!h||config$1.disabled){this.safeSetState({status:ENTERED},function(){p.props.onEntered(m)});return}this.props.onEnter(m,y),this.safeSetState({status:ENTERING},function(){p.props.onEntering(m,y),p.onTransitionEnd(w,function(){p.safeSetState({status:ENTERED},function(){p.props.onEntered(m,y)})})})},u.performExit=function(){var f=this,p=this.props.exit,h=this.getTimeouts(),v=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!p||config$1.disabled){this.safeSetState({status:EXITED},function(){f.props.onExited(v)});return}this.props.onExit(v),this.safeSetState({status:EXITING},function(){f.props.onExiting(v),f.onTransitionEnd(h.exit,function(){f.safeSetState({status:EXITED},function(){f.props.onExited(v)})})})},u.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},u.safeSetState=function(f,p){p=this.setNextCallback(p),this.setState(f,p)},u.setNextCallback=function(f){var p=this,h=!0;return this.nextCallback=function(v){h&&(h=!1,p.nextCallback=null,f(v))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},u.onTransitionEnd=function(f,p){this.setNextCallback(p);var h=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),v=f==null&&!this.props.addEndListener;if(!h||v){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var g=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],m=g[0],y=g[1];this.props.addEndListener(m,y)}f!=null&&setTimeout(this.nextCallback,f)},u.render=function(){var f=this.state.status;if(f===UNMOUNTED)return null;var p=this.props,h=p.children;p.in,p.mountOnEnter,p.unmountOnExit,p.appear,p.enter,p.exit,p.timeout,p.addEndListener,p.onEnter,p.onEntering,p.onEntered,p.onExit,p.onExiting,p.onExited,p.nodeRef;var v=_objectWithoutPropertiesLoose$o(p,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof h=="function"?h(f,v):React.cloneElement(React.Children.only(h),v))},o})(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$3(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;function getChildMapping(l,o){var u=function(p){return o&&reactExports.isValidElement(p)?o(p):p},d=Object.create(null);return l&&reactExports.Children.map(l,function(f){return f}).forEach(function(f){d[f.key]=u(f)}),d}function mergeChildMappings(l,o){l=l||{},o=o||{};function u(y){return y in o?o[y]:l[y]}var d=Object.create(null),f=[];for(var p in l)p in o?f.length&&(d[p]=f,f=[]):f.push(p);var h,v={};for(var g in o){if(d[g])for(h=0;h<d[g].length;h++){var m=d[g][h];v[d[g][h]]=u(m)}v[g]=u(g)}for(h=0;h<f.length;h++)v[f[h]]=u(f[h]);return v}function getProp(l,o,u){return u[o]!=null?u[o]:l.props[o]}function getInitialChildMapping(l,o){return getChildMapping(l.children,function(u){return reactExports.cloneElement(u,{onExited:o.bind(null,u),in:!0,appear:getProp(u,"appear",l),enter:getProp(u,"enter",l),exit:getProp(u,"exit",l)})})}function getNextChildMapping(l,o,u){var d=getChildMapping(l.children),f=mergeChildMappings(o,d);return Object.keys(f).forEach(function(p){var h=f[p];if(reactExports.isValidElement(h)){var v=p in o,g=p in d,m=o[p],y=reactExports.isValidElement(m)&&!m.props.in;g&&(!v||y)?f[p]=reactExports.cloneElement(h,{onExited:u.bind(null,h),in:!0,exit:getProp(h,"exit",l),enter:getProp(h,"enter",l)}):!g&&v&&!y?f[p]=reactExports.cloneElement(h,{in:!1}):g&&v&&reactExports.isValidElement(m)&&(f[p]=reactExports.cloneElement(h,{onExited:u.bind(null,h),in:m.props.in,exit:getProp(h,"exit",l),enter
41:getProp(h,"enter",l)}))}}),f}var values$2=Object.values||function(l){return Object.keys(l).map(function(o){return l[o]})},defaultProps$2={component:"div",childFactory:function(o){return o}},TransitionGroup=(function(l){_inheritsLoose(o,l);function o(d,f){var p;p=l.call(this,d,f)||this;var h=p.handleExited.bind(_assertThisInitialized$1y(p));return p.state={contextValue:{isMounting:!0},handleExited:h,firstRender:!0},p}var u=o.prototype;return u.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},u.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(f,p){var h=p.children,v=p.handleExited,g=p.firstRender;return{children:g?getInitialChildMapping(f,v):getNextChildMapping(f,h,v),firstRender:!1}},u.handleExited=function(f,p){var h=getChildMapping(this.props.children);f.key in h||(f.props.onExited&&f.props.onExited(p),this.mounted&&this.setState(function(v){var g=_extends$v({},v.children);return delete g[f.key],{children:g}}))},u.render=function(){var f=this.props,p=f.component,h=f.childFactory,v=_objectWithoutPropertiesLoose$o(f,["component","childFactory"]),g=this.state.contextValue,m=values$2(this.state.children).map(h);return delete v.appear,delete v.enter,delete v.exit,p===null?React.createElement(TransitionGroupContext.Provider,{value:g},m):React.createElement(TransitionGroupContext.Provider,{value:g},React.createElement(p,v,m))},o})(React.Component);TransitionGroup.propTypes={};TransitionGroup.defaultProps=defaultProps$2;var useEnhancedEffect$9=typeof window>"u"?reactExports.useEffect:reactExports.useLayoutEffect;function Ripple(l){var o=l.classes,u=l.pulsate,d=u===void 0?!1:u,f=l.rippleX,p=l.rippleY,h=l.rippleSize,v=l.in,g=l.onExited,m=g===void 0?function(){}:g,y=l.timeout,b=reactExports.useState(!1),w=b[0],E=b[1],P=clsx$1(o.ripple,o.rippleVisible,d&&o.ripplePulsate),C={width:h,height:h,top:-(h/2)+p,left:-(h/2)+f},T=clsx$1(o.child,w&&o.childLeaving,d&&o.childPulsate),O=useEventCallback(m);return useEnhancedEffect$9(function(){if(!v){E(!0);var x=setTimeout(O,y);return function(){clearTimeout(x)}}},[O,v,y]),reactExports.createElement("span",{className:P,style:C},reactExports.createElement("span",{className:T}))}var DURATION=550,DELAY_RIPPLE=80,styles$30=function(o){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(DURATION,"ms ").concat(o.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(o.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(DURATION,"ms ").concat(o.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(o.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)"}}}},TouchRipple=reactExports.forwardRef(function(o,u){var d=o.center,f=d===void 0?!1:d,p=o.classes,h=o.className,v=_objectWithoutProperties$q(o,["center","classes","className"]),g=reactExports.useState([]),m=g[0],y=g[1],b=reactExports.useRef(0),w=reactExports.useRef(null);reactExports.useEffect(function(){w.current&&(w.current(),w.current=null)},[m]);var E=reactExports.useRef(!1),P=reactExports.useRef(null),C=reactExports.useRef(null),T=reactExports.useRef(null);reactExports.useEffect(function(){return function(){clearTimeout(P.current)}},[]);var O=reactExports.useCallback(function(j){var M=j.pulsate,N=j.rippleX,q=j.rippleY,z=j.rippleSize,H=j.cb;y(function(U){return[].concat(_toConsumableArray$w(U),[reactExports.createElement(Ripple,{key:b.current,classes:p,timeout:DURATION,pulsate:M,rippleX:N,rippleY:q,rippleSize:z})])}),b.current+=1,w.current=H},[p]),x=reactExports.useCallback(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=arguments.length>2?arguments[2]:void 0,q=M.pulsate,z=q===void 0?!1:q,H=M.center,U=H===void 0?f||M.pulsate:H,F=M.fakeElement,B=F===void 0?!1:F;if(j.type==="mousedown"&&E.current){E.current=!1;return}j.type==="touchstart"&&(E.current=!0);var G=B?null:T.current,Q=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0},K,Z,te;if(U||j.clientX===0&&j.clientY===0||!j.clientX&&!j.touches)K=Math.round(Q.width/2),Z=Math.round(Q.height/2);else{var oe=j.touches?j.touches[0]:j,fe=oe.clientX,le=oe.clientY;K=Math.round(fe-Q.left),Z=Math.round(le-Q.top)}if(U)te=Math.sqrt((2*Math.pow(Q.width,2)+Math.pow(Q.height,2))/3),te%2===0&&(te+=1);else{var Re=Math.max(Math.abs((G?G.clientWidth:0)-K),K)*2+2,Ae=Math.max(Math.abs((G?G.clientHeight:0)-Z),Z)*2+2;te=Math.sqrt(Math.pow(Re,2)+Math.pow(Ae,2))}j.touches?C.current===null&&(C.current=function(){O({pulsate:z,rippleX:K,rippleY:Z,rippleSize:te,cb:N})},P.current=setTimeout(function(){C.current&&(C.current(),C.current=null)},DELAY_RIPPLE)):O({pulsate:z,rippleX:K,rippleY:Z,rippleSize:te,cb:N})},[f,O]),A=reactExports.useCallback(function(){x({},{pulsate:!0})},[x]),D=reactExports.useCallback(function(j,M){if(clearTimeout(P.current),j.type==="touchend"&&C.current){j.persist(),C.current(),C.current=null,P.current=setTimeout(function(){D(j,M)});return}C.current=null,y(function(N){return N.length>0?N.slice(1):N}),w.current=M},[]);return reactExports.useImperativeHandle(u,function(){return{pulsate:A,start:x,stop:D}},[A,x,D]),reactExports.createElement("span",_extends$v({className:clsx$1(p.root,h),ref:T},v),reactExports.createElement(TransitionGroup,{component:null,exit:!0},m))});const TouchRipple$1=withStyles$2(styles$30,{flip:!1,name:"MuiTouchRipple"})(reactExports.memo(TouchRipple));var styles$2$={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:{}},ButtonBase=reactExports.forwardRef(function(o,u){var d=o.action,f=o.buttonRef,p=o.centerRipple,h=p===void 0?!1:p,v=o.children,g=o.classes,m=o.className,y=o.component,b=y===void 0?"button":y,w=o.disabled,E=w===void 0?!1:w,P=o.disableRipple,C=P===void 0?!1:P,T=o.disableTouchRipple,O=T===void 0?!1:T,x=o.focusRipple,A=x===void 0?!1:x,D=o.focusVisibleClassName,j=o.onBlur,M=o.onClick,N=o.onFocus,q=o.onFocusVisible,z=o.onKeyDown,H=o.onKeyUp,U=o.onMouseDown,F=o.onMouseLeave,B=o.onMouseUp,G=o.onTouchEnd,Q=o.onTouchMove,K=o.onTouchStart,Z=o.onDragLeave,te=o.tabIndex,oe=te===void 0?0:te,fe=o.TouchRippleProps,le=o.type,Re=le===void 0?"button":le,Ae=_objectWithoutProperties$q(o,["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"]),_e=reactExports.useRef(null);function ee(){return reactDomExports.findDOMNode(_e.current)}var se=reactExports.useRef(null),$e=reactExports.useState(!1),Ee=$e[0],xe=$e[1];E&&Ee&&xe(!1);var Se=useIsFocusVisible(),Ie=Se.isFocusVisible,ge=Se.onBlurVisible,Y=Se.ref;reactExports.useImperativeHandle(d,function(){return{focusVisible:function(){xe(!0),_e.current.focus()}}},[]),reactExports.useEffect(function(){Ee&&A&&!C&&se.current.pulsate()},[C,A,Ee]);function ie(he,Pe){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O;return useEventCallback(function(yt){Pe&&Pe(yt);var ct=We;return!ct&&se.current&&se.current[he](yt),!0})}
41var ce=ie("start",U),ue=ie("stop",Z),pe=ie("stop",B),Te=ie("stop",function(he){Ee&&he.preventDefault(),F&&F(he)}),Ce=ie("start",K),Fe=ie("stop",G),He=ie("stop",Q),we=ie("stop",function(he){Ee&&(ge(he),xe(!1)),j&&j(he)},!1),Oe=useEventCallback(function(he){_e.current||(_e.current=he.currentTarget),Ie(he)&&(xe(!0),q&&q(he)),N&&N(he)}),Ne=function(){var Pe=ee();return b&&b!=="button"&&!(Pe.tagName==="A"&&Pe.href)},qe=reactExports.useRef(!1),Be=useEventCallback(function(he){A&&!qe.current&&Ee&&se.current&&he.key===" "&&(qe.current=!0,he.persist(),se.current.stop(he,function(){se.current.start(he)})),he.target===he.currentTarget&&Ne()&&he.key===" "&&he.preventDefault(),z&&z(he),he.target===he.currentTarget&&Ne()&&he.key==="Enter"&&!E&&(he.preventDefault(),M&&M(he))}),Ve=useEventCallback(function(he){A&&he.key===" "&&se.current&&Ee&&!he.defaultPrevented&&(qe.current=!1,he.persist(),se.current.stop(he,function(){se.current.pulsate(he)})),H&&H(he),M&&he.target===he.currentTarget&&Ne()&&he.key===" "&&!he.defaultPrevented&&M(he)}),Ye=b;Ye==="button"&&Ae.href&&(Ye="a");var Ge={};Ye==="button"?(Ge.type=Re,Ge.disabled=E):((Ye!=="a"||!Ae.href)&&(Ge.role="button"),Ge["aria-disabled"]=E);var dt=useForkRef(f,u),ze=useForkRef(Y,_e),nt=useForkRef(dt,ze),Ze=reactExports.useState(!1),_t=Ze[0],ae=Ze[1];reactExports.useEffect(function(){ae(!0)},[]);var re=_t&&!C&&!E;return reactExports.createElement(Ye,_extends$v({className:clsx$1(g.root,m,Ee&&[g.focusVisible,D],E&&g.disabled),onBlur:we,onClick:M,onFocus:Oe,onKeyDown:Be,onKeyUp:Ve,onMouseDown:ce,onMouseLeave:Te,onMouseUp:pe,onDragLeave:ue,onTouchEnd:Fe,onTouchMove:He,onTouchStart:Ce,ref:nt,tabIndex:E?-1:oe},Ge,Ae),v,re?reactExports.createElement(TouchRipple$1,_extends$v({ref:se,center:h},fe)):null)});const ButtonBase$1=withStyles$2(styles$2$,{name:"MuiButtonBase"})(ButtonBase);var styles$2_=function(o){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:o.palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest}),"&:hover":{backgroundColor:alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:o.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:o.palette.primary.main,"&:hover":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:o.palette.secondary.main,"&:hover":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:o.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},IconButton=reactExports.forwardRef(function(o,u){var d=o.edge,f=d===void 0?!1:d,p=o.children,h=o.classes,v=o.className,g=o.color,m=g===void 0?"default":g,y=o.disabled,b=y===void 0?!1:y,w=o.disableFocusRipple,E=w===void 0?!1:w,P=o.size,C=P===void 0?"medium":P,T=_objectWithoutProperties$q(o,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return reactExports.createElement(ButtonBase$1,_extends$v({className:clsx$1(h.root,v,m!=="default"&&h["color".concat(capitalize$1(m))],b&&h.disabled,C==="small"&&h["size".concat(capitalize$1(C))],{start:h.edgeStart,end:h.edgeEnd}[f]),centerRipple:!0,focusRipple:!E,disabled:b,ref:u},T),reactExports.createElement("span",{className:h.label},p))});const IconButton$1=withStyles$2(styles$2_,{name:"MuiIconButton"})(IconButton);var reflow=function(o){return o.scrollTop};function getTransitionProps(l,o){var u=l.timeout,d=l.style,f=d===void 0?{}:d;return{duration:f.transitionDuration||typeof u=="number"?u:u[o.mode]||0,delay:f.transitionDelay}}function getScale(l){return"scale(".concat(l,", ").concat(Math.pow(l,2),")")}var styles$2Z={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},Grow=reactExports.forwardRef(function(o,u){var d=o.children,f=o.disableStrictModeCompat,p=f===void 0?!1:f,h=o.in,v=o.onEnter,g=o.onEntered,m=o.onEntering,y=o.onExit,b=o.onExited,w=o.onExiting,E=o.style,P=o.timeout,C=P===void 0?"auto":P,T=o.TransitionComponent,O=T===void 0?Transition:T,x=_objectWithoutProperties$q(o,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=reactExports.useRef(),D=reactExports.useRef(),j=useTheme$1(),M=j.unstable_strictMode&&!p,N=reactExports.useRef(null),q=useForkRef(d.ref,u),z=useForkRef(M?N:void 0,q),H=function(oe){return function(fe,le){if(oe){var Re=M?[N.current,fe]:[fe,le],Ae=_slicedToArray$n(Re,2),_e=Ae[0],ee=Ae[1];ee===void 0?oe(_e):oe(_e,ee)}}},U=H(m),F=H(function(te,oe){reflow(te);var fe=getTransitionProps({style:E,timeout:C},{mode:"enter"}),le=fe.duration,Re=fe.delay,Ae;C==="auto"?(Ae=j.transitions.getAutoHeightDuration(te.clientHeight),D.current=Ae):Ae=le,te.
vendor: 20,810 bytes, line 41
41style.transition=[j.transitions.create("opacity",{duration:Ae,delay:Re}),j.transitions.create("transform",{duration:Ae*.666,delay:Re})].join(","),v&&v(te,oe)}),B=H(g),G=H(w),Q=H(function(te){var oe=getTransitionProps({style:E,timeout:C},{mode:"exit"}),fe=oe.duration,le=oe.delay,Re;C==="auto"?(Re=j.transitions.getAutoHeightDuration(te.clientHeight),D.current=Re):Re=fe,te.style.transition=[j.transitions.create("opacity",{duration:Re,delay:le}),j.transitions.create("transform",{duration:Re*.666,delay:le||Re*.333})].join(","),te.style.opacity="0",te.style.transform=getScale(.75),y&&y(te)}),K=H(b),Z=function(oe,fe){var le=M?oe:fe;C==="auto"&&(A.current=setTimeout(le,D.current||0))};return reactExports.useEffect(function(){return function(){clearTimeout(A.current)}},[]),reactExports.createElement(O,_extends$v({appear:!0,in:h,nodeRef:M?N:void 0,onEnter:F,onEntered:B,onEntering:U,onExit:Q,onExited:K,onExiting:G,addEndListener:Z,timeout:C==="auto"?null:C},x),function(te,oe){return reactExports.cloneElement(d,_extends$v({style:_extends$v({opacity:0,transform:getScale(.75),visibility:te==="exited"&&!h?"hidden":void 0},styles$2Z[te],E,d.props.style),ref:z},oe))})});Grow.muiSupportAuto=!0;var isBrowser$1=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",timeoutDuration=(function(){for(var l=["Edge","Trident","Firefox"],o=0;o<l.length;o+=1)if(isBrowser$1&&navigator.userAgent.indexOf(l[o])>=0)return 1;return 0})();function microtaskDebounce(l){var o=!1;return function(){o||(o=!0,window.Promise.resolve().then(function(){o=!1,l()}))}}function taskDebounce(l){var o=!1;return function(){o||(o=!0,setTimeout(function(){o=!1,l()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce$1=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction$2(l){var o={};return l&&o.toString.call(l)==="[object Function]"}function getStyleComputedProperty(l,o){if(l.nodeType!==1)return[];var u=l.ownerDocument.defaultView,d=u.getComputedStyle(l,null);return o?d[o]:d}function getParentNode(l){return l.nodeName==="HTML"?l:l.parentNode||l.host}function getScrollParent$1(l){if(!l)return document.body;switch(l.nodeName){case"HTML":case"BODY":return l.ownerDocument.body;case"#document":return l.body}var o=getStyleComputedProperty(l),u=o.overflow,d=o.overflowX,f=o.overflowY;return/(auto|scroll|overlay)/.test(u+f+d)?l:getScrollParent$1(getParentNode(l))}function getReferenceNode(l){return l&&l.referenceNode?l.referenceNode:l}var isIE11=isBrowser$1&&!!(window.MSInputMethodContext&&document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE(l){return l===11?isIE11:l===10?isIE10:isIE11||isIE10}function getOffsetParent(l){if(!l)return document.documentElement;for(var o=isIE(10)?document.body:null,u=l.offsetParent||null;u===o&&l.nextElementSibling;)u=(l=l.nextElementSibling).offsetParent;var d=u&&u.nodeName;return!d||d==="BODY"||d==="HTML"?l?l.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(u.nodeName)!==-1&&getStyleComputedProperty(u,"position")==="static"?getOffsetParent(u):u}function isOffsetContainer(l){var o=l.nodeName;return o==="BODY"?!1:o==="HTML"||getOffsetParent(l.firstElementChild)===l}function getRoot(l){return l.parentNode!==null?getRoot(l.parentNode):l}function findCommonOffsetParent(l,o){if(!l||!l.nodeType||!o||!o.nodeType)return document.documentElement;var u=l.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING,d=u?l:o,f=u?o:l,p=document.createRange();p.setStart(d,0),p.setEnd(f,0);var h=p.commonAncestorContainer;if(l!==h&&o!==h||d.contains(f))return isOffsetContainer(h)?h:getOffsetParent(h);var v=getRoot(l);return v.host?findCommonOffsetParent(v.host,o):findCommonOffsetParent(l,getRoot(o).host)}function getScroll$2(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",u=o==="top"?"scrollTop":"scrollLeft",d=l.nodeName;if(d==="BODY"||d==="HTML"){var f=l.ownerDocument.documentElement,p=l.ownerDocument.scrollingElement||f;return p[u]}return l[u]}function includeScroll(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=getScroll$2(o,"top"),f=getScroll$2(o,"left"),p=u?-1:1;return l.top+=d*p,l.bottom+=d*p,l.left+=f*p,l.right+=f*p,l}function getBordersSize$1(l,o){var u=o==="x"?"Left":"Top",d=u==="Left"?"Right":"Bottom";return parseFloat(l["border"+u+"Width"])+parseFloat(l["border"+d+"Width"])}function getSize$1(l,o,u,d){return Math.max(o["offset"+l],o["scroll"+l],u["client"+l],u["offset"+l],u["scroll"+l],isIE(10)?parseInt(u["offset"+l])+parseInt(d["margin"+(l==="Height"?"Top":"Left")])+parseInt(d["margin"+(l==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(l){var o=l.body,u=l.documentElement,d=isIE(10)&&getComputedStyle(u);return{height:getSize$1("Height",o,u,d),width:getSize$1("Width",o,u,d)}}var classCallCheck=function(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function l(o,u){for(var d=0;d<u.length;d++){var f=u[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,f.key,f)}}return function(o,u,d){return u&&l(o.prototype,u),d&&l(o,d),o}})(),defineProperty$1=function(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l},_extends$g=Object.assign||function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l};function getClientRect(l){return _extends$g({},l,{right:l.left+l.width,bottom:l.top+l.height})}function getBoundingClientRect(l){var o={};try{if(isIE(10)){o=l.getBoundingClientRect();var u=getScroll$2(l,"top"),d=getScroll$2(l,"left");o.top+=u,o.left+=d,o.bottom+=u,o.right+=d}else o=l.getBoundingClientRect()}catch{}var f={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p=l.nodeName==="HTML"?getWindowSizes(l.ownerDocument):{},h=p.width||l.clientWidth||f.width,v=p.height||l.clientHeight||f.height,g=l.offsetWidth-h,m=l.offsetHeight-v;if(g||m){var y=getStyleComputedProperty(l);g-=getBordersSize$1(y,"x"),m-=getBordersSize$1(y,"y"),f.width-=g,f.height-=m}return getClientRect(f)}function getOffsetRectRelativeToArbitraryNode(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=isIE(10),f=o.nodeName==="HTML",p=getBoundingClientRect(l),h=getBoundingClientRect(o),v=getScrollParent$1(l),g=getStyleComputedProperty(o),m=parseFloat(g.borderTopWidth),y=parseFloat(g.borderLeftWidth);u&&f&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0));var b=getClientRect({top:p.top-h.top-m,left:p.left-h.left-y,width:p.width,height:p.height});if(b.marginTop=0,b.marginLeft=0,!d&&f){var w=parseFloat(g.marginTop),E=parseFloat(g.marginLeft);b.top-=m-w,b.bottom-=m-w,b.left-=y-E,b.right-=y-E,b.marginTop=w,b.marginLeft=E}return(d&&!u?o.contains(v):o===v&&v.nodeName!=="BODY")&&(b=includeScroll(b,o)),b}function getViewportOffsetRectRelativeToArtbitraryNode(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=l.ownerDocument.documentElement,d=getOffsetRectRelativeToArbitraryNode(l,u),f=Math.max(u.clientWidth,window.innerWidth||0),p=Math.max(u.clientHeight,window.innerHeight||0),h=o?0:getScroll$2(u),v=o?0:getScroll$2(u,"left"),g={top:h-d.top+d.marginTop,left:v-d.left+d.marginLeft,width:f,height:p};return getClientRect(g)}function isFixed(l){var o=l.nodeName;if(o==="BODY"||o==="HTML")return!1;if(getStyleComputedProperty(l,"position")==="fixed")return!0;var u=getParentNode(l);return u?isFixed(u):!1}function getFixedPositionOffsetParent(l){if(!l||!l.parentElement||isIE())return document.documentElement;for(var o=l.parentElement;o&&getStyleComputedProperty(o,"transform")==="none";)o=o.parentElement;return o||document.documentElement}function getBoundaries(l,o,u,d){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,p={top:0,left:0},h=f?getFixedPositionOffsetParent(l):findCommonOffsetParent(l,getReferenceNode(o));if(d==="viewport")p=getViewportOffsetRectRelativeToArtbitraryNode(h,f);else{var v=void 0;d==="scrollParent"?(v=getScrollParent$1(getParentNode(o)),v.nodeName==="BODY"&&(v=l.ownerDocument.documentElement)):d==="window"?v=l.ownerDocument.documentElement:v=d;var g=getOffsetRectRelativeToArbitraryNode(v,h,f);if(v.nodeName==="HTML"&&!isFixed(h)){var m=getWindowSizes(l.ownerDocument),y=m.height,b=m.width;p.top+=g.top-g.marginTop,p.bottom=y+g.top,p.left+=g.left-g.marginLeft,p.right=b+g.left}else p=g}u=u||0;var w=typeof u=="number";return p.left+=w?u:u.left||0,p.top+=w?u:u.top||0,p.right-=w?u:u.right||0,p.bottom-=w?u:u.bottom||0,p}function getArea(l){var o=l.width,u=l.height;return o*u}function computeAutoPlacement(l,o,u,d,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(l.indexOf("auto")===-1)return l;var h=getBoundaries(u,d,p,f),v={top:{width:h.width,height:o.top-h.top},right:{width:h.right-o.right,height:h.height},bottom:{width:h.width,height:h.bottom-o.bottom},left:{width:o.left-h.left,height:h.height}},g=Object.keys(v).map(function(w){return _extends$g({key:w},v[w],{area:getArea(v[w])})}).sort(function(w,E){return E.area-w.area}),m=g.filter(function(w){var E=w.width,P=w.height;return E>=u.clientWidth&&P>=u.clientHeight}),y=m.length>0?m[0].key:g[0].key,b=l.split("-")[1];return y+(b?"-"+b:"")}function getReferenceOffsets(l,o,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,f=d?getFixedPositionOffsetParent(o):findCommonOffsetParent(o,getReferenceNode(u));return getOffsetRectRelativeToArbitraryNode(u,f,d)}function getOuterSizes(l){var o=l.ownerDocument.defaultView,u=o.getComputedStyle(l),d=parseFloat(u.marginTop||0)+parseFloat(u.marginBottom||0),f=parseFloat(u.marginLeft||0)+parseFloat(u.marginRight||0),p={width:l.offsetWidth+f,height:l.offsetHeight+d};return p}function getOppositePlacement(l){var o={left:"right",right:"left",bottom:"top",top:"bottom"};return l.replace(/left|right|bottom|top/g,function(u){return o[u]})}function getPopperOffsets(l,o,u){u=u.split("-")[0];var d=getOuterSizes(l),f={width:d.width,height:d.height},p=["right","left"].indexOf(u)!==-1,h=p?"top":"left",v=p?"left":"top",g=p?"height":"width",m=p?"width":"height";return f[h]=o[h]+o[g]/2-d[g]/2,u===v?f[v]=o[v]-d[m]:f[v]=o[getOppositePlacement(v)],f}function find$1(l,o){return Array.prototype.find?l.find(o):l.filter(o)[0]}function findIndex$2(l,o,u){if(Array.prototype.findIndex)return l.findIndex(function(f){return f[o]===u});var d=find$1(l,function(f){return f[o]===u});return l.indexOf(d)}function runModifiers(l,o,u){var d=u===void 0?l:l.slice(0,findIndex$2(l,"name",u));return d.forEach(function(f){f.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var p=f.function||f.fn;f.enabled&&isFunction$2(p)&&(o.offsets.popper=getClientRect(o.offsets.popper),o.offsets.reference=getClientRect(o.offsets.reference),o=p(o,f))}),o}function update$3(){if(!this.state.isDestroyed){var l={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};l.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),l.placement=computeAutoPlacement(this.options.placement,l.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),l.originalPlacement=l.placement,l.positionFixed=this.options.positionFixed,l.offsets.popper=getPopperOffsets(this.popper,l.offsets.reference,l.placement),l.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",l=runModifiers(this.modifiers,l),this.state.isCreated?this.options.onUpdate(l):(this.state.isCreated=!0,this.options.onCreate(l))}}function isModifierEnabled(l,o){return l.some(function(u){var d=u.name,f=u.enabled;return f&&d===o})}function getSupportedPropertyName(l){for(var o=[!1,"ms","Webkit","Moz","O"],u=l.charAt(0).toUpperCase()+l.slice(1),d=0;d<o.length;d++){var f=o[d],p=f?""+f+u:l;if(typeof document.body.style[p]<"u")return p}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(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[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow$1(l){var o=l.ownerDocument;return o?o.defaultView:window}function attachToScrollParents(l,o,u,d){var f=l.nodeName==="BODY",p=f?l.ownerDocument.defaultView:l;p.addEventListener(o,u,{passive:!0}),f||attachToScrollParents(getScrollParent$1(p.parentNode),o,u,d),d.push(p)}function setupEventListeners(l,o,u,d){u.updateBound=d,getWindow$1(l).addEventListener("resize",u.updateBound,{passive:!0});var f=getScrollParent$1(l);return attachToScrollParents(f,"scroll",u.updateBound,u.scrollParents),u.scrollElement=f,u.eventsEnabled=!0,u}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(l,o){return getWindow$1(l).removeEventListener("resize",o.updateBound),o.scrollParents.forEach(function(u){u.removeEventListener("scroll",o.updateBound)}),o.updateBound=null,o.scrollParents=[],o.scrollElement=null,o.eventsEnabled=!1,o}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(l){return l!==""&&!isNaN(parseFloat(l))&&isFinite(l)}function setStyles(l,o){Object.keys(o).forEach(function(u){var d="";["width","height","top","right","bottom","left"].indexOf(u)!==-1&&isNumeric(o[u])&&(d="px"),l.style[u]=o[u]+d})}function setAttributes(l,o){Object.keys(o).forEach(function(u){var d=o[u];d!==!1?l.setAttribute(u,o[u]):l.removeAttribute(u)})}function applyStyle(l){return setStyles(l.instance.popper,l.styles),setAttributes(l.instance.popper,l.attributes),l.arrowElement&&Object.keys(l.arrowStyles).length&&setStyles(l.arrowElement,l.arrowStyles),l}function applyStyleOnLoad(l,o,u,d,f){var p=getReferenceOffsets(f,o,l,u.positionFixed),h=computeAutoPlacement(u.placement,p,o,l,u.modifiers.flip.boundariesElement,u.modifiers.flip.padding);return o.setAttribute("x-placement",h),setStyles(o,{position:u.positionFixed?"fixed":"absolute"}),u}function getRoundedOffsets(l,o){var u=l.offsets,d=u.popper,f=u.reference,p=Math.round,h=Math.floor,v=function(O){return O},g=p(f.width),m=p(d.width),y=["left","right"].indexOf(l.placement)!==-1,b=l.placement.indexOf("-")!==-1,w=g%2===m%2,E=g%2===1&&m%2===1,P=o?y||b||w?p:h:v,C=o?p:v;return{left:P(E&&!b&&o?d.left-1:d.left),top:C(d.top),bottom:C(d.bottom),right:P(d.right)}}var isFirefox$1=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(l,o){var u=o.x,d=o.y,f=l.offsets.popper,p=find$1(l.instance.modifiers,function(A){return A.name==="applyStyle"}).gpuAcceleration;p!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var h=p!==void 0?p:o.gpuAcceleration,v=getOffsetParent(l.instance.popper),g=getBoundingClientRect(v),m={position:f.position},y=getRoundedOffsets(l,window.devicePixelRatio<2||!isFirefox$1),b=u==="bottom"?"top":"bottom",w=d==="right"?"left":"right",E=getSupportedPropertyName("transform"),P=void 0,C=void 0;if(b==="bottom"?v.nodeName==="HTML"?C=-v.clientHeight+y.bottom:C=-g.height+y.bottom:C=y.top,w==="right"?v.nodeName==="HTML"?P=-v.clientWidth+y.right:P=-g.width+y.right:P=y.left,h&&E)m[E]="translate3d("+P+"px, "+C+"px, 0)",m[b]=0,m[w]=0,m.willChange="transform";else{var T=b==="bottom"?-1:1,O=w==="right"?-1:1;m[b]=C*T,m[w]=P*O,m.willChange=b+", "+w}var x={"x-placement":l.placement};return l.attributes=_extends$g({},x,l.attributes),l.styles=_extends$g({},m,l.styles),l.arrowStyles=_extends$g({},l.offsets.arrow,l.arrowStyles),l}function isModifierRequired(l,o,u){var d=find$1(l,function(v){var g=v.name;return g===o}),f=!!d&&l.some(function(v){return v.name===u&&v.enabled&&v.order<d.order});if(!f){var p="`"+o+"`",h="`"+u+"`";console.warn(h+" modifier is required by "+p+" modifier in order to work, be sure to include it before "+p+"!")}return f}function arrow(l,o){var u;if(!isModifierRequired(l.instance.modifiers,"arrow","keepTogether"))return l;var d=o.element;if(typeof d=="string"){if(d=l.instance.popper.querySelector(d),!d)return l}else if(!l.instance.popper.contains(d))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),l;var f=l.placement.split("-")[0],p=l.offsets,h=p.popper,v=p.reference,g=["left","right"].indexOf(f)!==-1,m=g?"height":"width",y=g?"Top":"Left",b=y.toLowerCase(),w=g?"left":"top",E=g?"bottom":"right",P=getOuterSizes(d)[m];v[E]-P<h[b]&&(l.offsets.popper[b]-=h[b]-(v[E]-P)),v[b]+P>h[E]&&(l.offsets.popper[b]+=v[b]+P-h[E]),l.offsets.popper=getClientRect(l.offsets.popper);var C=v[b]+v[m]/2-P/2,T=getStyleComputedProperty(l.instance.popper),O=parseFloat(T["margin"+y]),x=parseFloat(T["border"+y+"Width"]),A=C-l.offsets.popper[b]-O-x;return A=Math.max(Math.min(h[m]-P,A),0),l.arrowElement=d,l.offsets.arrow=(u={},defineProperty$1(u,b,Math.round(A)),defineProperty$1(u,w,""),u),l}function getOppositeVariation(l){return l==="end"?"start":l==="start"?"end":l}var placements=["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"],validPlacements=placements.slice(3);function clockwise(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=validPlacements.indexOf(l),d=validPlacements.slice(u+1).concat(validPlacements.slice(0,u));return o?d.reverse():d}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(l,o){if(isModifierEnabled(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)return l;var u=getBoundaries(l.instance.popper,l.instance.reference,o.padding,o.boundariesElement,l.positionFixed),d=l.placement.split("-")[0],f=getOppositePlacement(d),p=l.placement.split("-")[1]||"",h=[];switch(o.behavior){case BEHAVIORS.FLIP:h=[d,f];break;case BEHAVIORS.CLOCKWISE:h=clockwise(d);break;case BEHAVIORS.COUNTERCLOCKWISE:h=clockwise(d,!0);break;default:h=o.behavior}return h.forEach(function(v,g){if(d!==v||h.length===g+1)return l;d=l.placement.split("-")[0],f=getOppositePlacement(d);var m=l.offsets.popper,y=l.offsets.reference,b=Math.floor,w=d==="left"&&b(m.right)>b(y.left)||d==="right"&&b(m.left)<b(y.right)||d==="top"&&b(m.bottom)>b(y.top)||d==="bottom"&&b(m.top)<b(y.bottom),E=b(m.left)<b(u.left),P=b(m.right)>b(u.right),C=b(m.top)<b(u.top),T=b(m.bottom)>b(u.bottom),O=d==="left"&&E||d==="right"&&P||d==="top"&&C||d==="bottom"&&T,x=["top","bottom"].indexOf(d)!==-1,A=!!o.flipVariations&&(x&&p==="start"&&E||x&&p==="end"&&P||!x&&p==="start"&&C||!x&&p==="end"&&T),D=!!o.flipVariationsByContent&&(x&&p==="start"&&P||x&&p==="end"&&E||!x&&p==="start"&&T||!x&&p==="end"&&C),j=A||D;(w||O||j)&&(l.flipped=!0,(w||O)&&(d=h[g+1]),j&&(p=getOppositeVariation(p)),l.placement=d+(p?"-"+p:""),l.offsets.popper=_extends$g({},l.offsets.popper,getPopperOffsets(l.instance.popper,l.offsets.reference,l.placement)),l=runModifiers(l.instance.modifiers,l,"flip"))}),l}function keepTogether(l){var o=l.offsets,u=o.popper,d=o.reference,f=l.placement.split("-")[0],p=Math.floor,h=["top","bottom"].indexOf(f)!==-1,v=h?"right":"bottom",g=h?"left":"top",m=h?"width":"height";return u[v]<p(d[g])&&(l.offsets.popper[g]=p(d[g])-u[m]),u[g]>p(d[v])&&(l.offsets.popper[g]=p(d[v])),l}function toValue(l,o,u,d){var f=l.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),p=+f[1],h=f[2];if(!p)return l;if(h.indexOf("%")===0){var v=void 0;h==="%p"?v=u:v=d;var g=getClientRect(v);return g[o]/100*p}else if(h==="vh"||h==="vw"){var m=void 0;return h==="vh"?m=Math.max(document.documentElement.clientHeight,window.innerHeight||0):m=Math.max(document.documentElement.clientWidth,window.innerWidth||0),m/100*p}else return p}function parseOffset(l,o,u,d){var f=[0,0],p=["right","left"].indexOf(d)!==-1,h=l.split(/(\+|\-)/).map(function(y){return y.trim()}),v=h.indexOf(find$1(h,function(y){return y.search(/,|\s/)!==-1}));h[v]&&h[v].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var g=/\s*,\s*|\s+/,m=v!==-1?[h.slice(0,v).concat([h[v].split(g)[0]]),[h[v].split(g)[1]].concat(h.slice(v+1))]:[h];return m=m.map(function(y,b){var w=(b===1?!p:p)?"height":"width",E=!1;return y.reduce(function(P,C){return P[P.length-1]===""&&["+","-"].indexOf(C)!==-1?(P[P.length-1]=C,E=!0,P):E?(P[P.length-1]+=C,E=!1,P):P.concat(C)},[]).map(function(P){return toValue(P,w,o,u)})}
vendor: 6,754 bytes, line 41
41),m.forEach(function(y,b){y.forEach(function(w,E){isNumeric(w)&&(f[b]+=w*(y[E-1]==="-"?-1:1))})}),f}function offset$1(l,o){var u=o.offset,d=l.placement,f=l.offsets,p=f.popper,h=f.reference,v=d.split("-")[0],g=void 0;return isNumeric(+u)?g=[+u,0]:g=parseOffset(u,p,h,v),v==="left"?(p.top+=g[0],p.left-=g[1]):v==="right"?(p.top+=g[0],p.left+=g[1]):v==="top"?(p.left+=g[0],p.top-=g[1]):v==="bottom"&&(p.left+=g[0],p.top+=g[1]),l.popper=p,l}function preventOverflow(l,o){var u=o.boundariesElement||getOffsetParent(l.instance.popper);l.instance.reference===u&&(u=getOffsetParent(u));var d=getSupportedPropertyName("transform"),f=l.instance.popper.style,p=f.top,h=f.left,v=f[d];f.top="",f.left="",f[d]="";var g=getBoundaries(l.instance.popper,l.instance.reference,o.padding,u,l.positionFixed);f.top=p,f.left=h,f[d]=v,o.boundaries=g;var m=o.priority,y=l.offsets.popper,b={primary:function(E){var P=y[E];return y[E]<g[E]&&!o.escapeWithReference&&(P=Math.max(y[E],g[E])),defineProperty$1({},E,P)},secondary:function(E){var P=E==="right"?"left":"top",C=y[P];return y[E]>g[E]&&!o.escapeWithReference&&(C=Math.min(y[P],g[E]-(E==="right"?y.width:y.height))),defineProperty$1({},P,C)}};return m.forEach(function(w){var E=["left","top"].indexOf(w)!==-1?"primary":"secondary";y=_extends$g({},y,b[E](w))}),l.offsets.popper=y,l}function shift$1(l){var o=l.placement,u=o.split("-")[0],d=o.split("-")[1];if(d){var f=l.offsets,p=f.reference,h=f.popper,v=["bottom","top"].indexOf(u)!==-1,g=v?"left":"top",m=v?"width":"height",y={start:defineProperty$1({},g,p[g]),end:defineProperty$1({},g,p[g]+p[m]-h[m])};l.offsets.popper=_extends$g({},h,y[d])}return l}function hide(l){if(!isModifierRequired(l.instance.modifiers,"hide","preventOverflow"))return l;var o=l.offsets.reference,u=find$1(l.instance.modifiers,function(d){return d.name==="preventOverflow"}).boundaries;if(o.bottom<u.top||o.left>u.right||o.top>u.bottom||o.right<u.left){if(l.hide===!0)return l;l.hide=!0,l.attributes["x-out-of-boundaries"]=""}else{if(l.hide===!1)return l;l.hide=!1,l.attributes["x-out-of-boundaries"]=!1}return l}function inner(l){var o=l.placement,u=o.split("-")[0],d=l.offsets,f=d.popper,p=d.reference,h=["left","right"].indexOf(u)!==-1,v=["top","left"].indexOf(u)===-1;return f[h?"left":"top"]=p[u]-(v?f[h?"width":"height"]:0),l.placement=getOppositePlacement(o),l.offsets.popper=getClientRect(f),l}var modifiers={shift:{order:100,enabled:!0,fn:shift$1},offset:{order:200,enabled:!0,fn:offset$1,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers},Popper$1=(function(){function l(o,u){var d=this,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,l),this.scheduleUpdate=function(){return requestAnimationFrame(d.update)},this.update=debounce$1(this.update.bind(this)),this.options=_extends$g({},l.Defaults,f),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=u&&u.jquery?u[0]:u,this.options.modifiers={},Object.keys(_extends$g({},l.Defaults.modifiers,f.modifiers)).forEach(function(h){d.options.modifiers[h]=_extends$g({},l.Defaults.modifiers[h]||{},f.modifiers?f.modifiers[h]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(h){return _extends$g({name:h},d.options.modifiers[h])}).sort(function(h,v){return h.order-v.order}),this.modifiers.forEach(function(h){h.enabled&&isFunction$2(h.onLoad)&&h.onLoad(d.reference,d.popper,d.options,h,d.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return createClass(l,[{key:"update",value:function(){return update$3.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),l})();Popper$1.Utils=(typeof window<"u"?window:global).PopperUtils;Popper$1.placements=placements;Popper$1.Defaults=Defaults;function getContainer$1(l){return l=typeof l=="function"?l():l,reactDomExports.findDOMNode(l)}var useEnhancedEffect$8=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,Portal=reactExports.forwardRef(function(o,u){var d=o.children,f=o.container,p=o.disablePortal,h=p===void 0?!1:p,v=o.onRendered,g=reactExports.useState(null),m=g[0],y=g[1],b=useForkRef(reactExports.isValidElement(d)?d.ref:null,u);return useEnhancedEffect$8(function(){h||y(getContainer$1(f)||document.body)},[f,h]),useEnhancedEffect$8(function(){if(m&&!h)return setRef$1(u,m),function(){setRef$1(u,null)}},[u,m,h]),useEnhancedEffect$8(function(){v&&(m||h)&&v()},[v,m,h]),h?reactExports.isValidElement(d)?reactExports.cloneElement(d,{ref:b}):d:m&&reactDomExports.createPortal(d,m)});function flipPlacement(l,o){var u=o&&o.direction||"ltr";if(u==="ltr")return l;switch(l){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 l}}function getAnchorEl$1(l){return typeof l=="function"?l():l}var useEnhancedEffect$7=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,defaultPopperOptions={},Popper=reactExports.forwardRef(function(o,u){var d=o.anchorEl,f=o.children,p=o.container,h=o.disablePortal,v=h===void 0?!1:h,g=o.keepMounted,m=g===void 0?!1:g,y=o.modifiers,b=o.open,w=o.placement,E=w===void 0?"bottom":w,P=o.popperOptions,C=P===void 0?defaultPopperOptions:P,T=o.popperRef,O=o.style,x=o.transition,A=x===void 0?!1:x,D=_objectWithoutProperties$q(o,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),j=reactExports.useRef(null),M=useForkRef(j,u),N=reactExports.useRef(null),q=useForkRef(N,T),z=reactExports.useRef(q);useEnhancedEffect$7(function(){z.current=q},[q]),reactExports.useImperativeHandle(T,function(){return N.current},[]);var H=reactExports.useState(!0),U=H[0],F=H[1],B=useTheme$2(),G=flipPlacement(E,B),Q=reactExports.useState(G),K=Q[
410],Z=Q[1];reactExports.useEffect(function(){N.current&&N.current.update()});var te=reactExports.useCallback(function(){if(!(!j.current||!d||!b)){N.current&&(N.current.destroy(),z.current(null));var _e=function($e){Z($e.placement)};getAnchorEl$1(d);var ee=new Popper$1(getAnchorEl$1(d),j.current,_extends$v({placement:G},C,{modifiers:_extends$v({},v?{}:{preventOverflow:{boundariesElement:"window"}},y,C.modifiers),onCreate:createChainedFunction(_e,C.onCreate),onUpdate:createChainedFunction(_e,C.onUpdate)}));z.current(ee)}},[d,v,y,b,G,C]),oe=reactExports.useCallback(function(_e){setRef$1(M,_e),te()},[M,te]),fe=function(){F(!1)},le=function(){N.current&&(N.current.destroy(),z.current(null))},Re=function(){F(!0),le()};if(reactExports.useEffect(function(){return function(){le()}},[]),reactExports.useEffect(function(){!b&&!A&&le()},[b,A]),!m&&!b&&(!A||U))return null;var Ae={placement:K};return A&&(Ae.TransitionProps={in:b,onEnter:fe,onExited:Re}),reactExports.createElement(Portal,{disablePortal:v,container:p},reactExports.createElement("div",_extends$v({ref:oe,role:"tooltip"},D,{style:_extends$v({position:"fixed",top:0,left:0,display:!b&&m&&!A?"none":null},O)}),typeof f=="function"?f(Ae):f))});function round(l){return Math.round(l*1e5)/1e5}function arrowGenerator(){return{'&[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"}}}}var styles$2Y=function(o){return{popper:{zIndex:o.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:arrowGenerator(),tooltip:{backgroundColor:alpha(o.palette.grey[700],.9),borderRadius:o.shape.borderRadius,color:o.palette.common.white,fontFamily:o.typography.fontFamily,padding:"4px 8px",fontSize:o.typography.pxToRem(10),lineHeight:"".concat(round(14/10),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:o.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:alpha(o.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:o.typography.pxToRem(14),lineHeight:"".concat(round(16/14),"em"),fontWeight:o.typography.fontWeightRegular},tooltipPlacementLeft:_defineProperty$1z({transformOrigin:"right center",margin:"0 24px "},o.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:_defineProperty$1z({transformOrigin:"left center",margin:"0 24px"},o.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:_defineProperty$1z({transformOrigin:"center bottom",margin:"24px 0"},o.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:_defineProperty$1z({transformOrigin:"center top",margin:"24px 0"},o.breakpoints.up("sm"),{margin:"14px 0"})}},hystersisOpen=!1,hystersisTimer=null,Tooltip=reactExports.forwardRef(function(o,u){var d=o.arrow,f=d===void 0?!1:d,p=o.children,h=o.classes,v=o.disableFocusListener,g=v===void 0?!1:v,m=o.disableHoverListener,y=m===void 0?!1:m,b=o.disableTouchListener,w=b===void 0?!1:b,E=o.enterDelay,P=E===void 0?100:E,C=o.enterNextDelay,T=C===void 0?0:C,O=o.enterTouchDelay,x=O===void 0?700:O,A=o.id,D=o.interactive,j=D===void 0?!1:D,M=o.leaveDelay,N=M===void 0?0:M,q=o.leaveTouchDelay,z=q===void 0?1500:q,H=o.onClose,U=o.onOpen,F=o.open,B=o.placement,G=B===void 0?"bottom":B,Q=o.PopperComponent,K=Q===void 0?Popper:Q,Z=o.PopperProps,te=o.title,oe=o.TransitionComponent,fe=oe===void 0?Grow:oe,le=o.TransitionProps,Re=_objectWithoutProperties$q(o,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),Ae=useTheme$1(),_e=reactExports.useState(),ee=_e[0],se=_e[1],$e=reactExports.useState(null),Ee=$e[0],xe=$e[1],Se=reactExports.useRef(!1),Ie=reactExports.useRef(),ge=reactExports.useRef(),Y=reactExports.useRef(),ie=reactExports.useRef(),ce=useControlled({controlled:F,default:!1,name:"Tooltip",state:"open"}),ue=_slicedToArray$n(ce,2),pe=ue[0],Te=ue[1],Ce=pe,Fe=useId(A);reactExports.useEffect(function(){return function(){clearTimeout(Ie.current),clearTimeout(ge.current),clearTimeout(Y.current),clearTimeout(ie.current)}},[]);var He=function(ut){clearTimeout(hystersisTimer),hystersisOpen=!0,Te(!0),U&&U(ut)},we=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(Me){var vt=p.props;Me.type==="mouseover"&&vt.onMouseOver&&ut&&vt.onMouseOver(Me),!(Se.current&&Me.type!=="touchstart")&&(ee&&ee.removeAttribute("title"),clearTimeout(ge.current),clearTimeout(Y.current),P||hystersisOpen&&T?(Me.persist(),ge.current=setTimeout(function(){He(Me)},hystersisOpen?T:P)):He(Me))}},Oe=useIsFocusVisible(),Ne=Oe.isFocusVisible,qe=Oe.onBlurVisible,Be=Oe.ref,Ve=reactExports.useState(!1),Ye=Ve[0],Ge=Ve[1],dt=function(){Ye&&(Ge(!1),qe())},ze=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(Me){ee||se(Me.currentTarget),Ne(Me)&&(Ge(!0),we()(Me));var vt=p.props;vt.onFocus&&ut&&vt.onFocus(Me)}},nt=function(ut){clearTimeout(hystersisTimer),hystersisTimer=setTimeout(function(){hystersisOpen=!1},800+N),Te(!1),H&&H(ut),clearTimeout(Ie.current),Ie.current=setTimeout(function(){Se.current=!1},Ae.transitions.duration.shortest)},Ze=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(Me){var vt=p.props;Me.type==="blur"&&(vt.onBlur&&ut&&vt.onBlur(Me),dt()),Me.type==="mouseleave"&&vt.onMouseLeave&&Me.currentTarget===ee&&vt.onMouseLeave(Me),clearTimeout(ge.current),clearTimeout(Y.current),Me.persist(),Y.current=setTimeout(function(){nt(Me)},N)}},_t=function(ut){Se.current=!0;var Me=p.props;Me.onTouchStart&&Me.onTouchStart(ut)},ae=function(ut){_t(ut),clearTimeout(Y.current),clearTimeout(Ie.current),clearTimeout(ie.current),ut.persist(),ie.current=setTimeout(function(){we()(ut)},x)},re=function(ut){p.props.onTouchEnd&&p.props.onTouchEnd(ut),clearTimeout(ie.current),clearTimeout(Y.current),ut.persist(),Y.current=setTimeout(function(){nt(ut)},z)},he=useForkRef(se,u),Pe=useForkRef(Be,he),We=reactExports.useCallback(function(Rt){setRef$1(Pe,reactDomExports.findDOMNode(Rt))},[Pe]),yt=useForkRef(p.ref,We);te===""&&(Ce=!1);var ct=!Ce&&!y,ht=_extends$v({"aria-describedby":Ce?Fe:null,title:ct&&typeof te=="string"?te:null},Re,p.props,{className:clsx$1(Re.className,p.props.className),onTouchStart:_t,ref:yt}
41),bt={};w||(ht.onTouchStart=ae,ht.onTouchEnd=re),y||(ht.onMouseOver=we(),ht.onMouseLeave=Ze(),j&&(bt.onMouseOver=we(!1),bt.onMouseLeave=Ze(!1))),g||(ht.onFocus=ze(),ht.onBlur=Ze(),j&&(bt.onFocus=ze(!1),bt.onBlur=Ze(!1)));var xt=reactExports.useMemo(function(){return deepmerge$1({popperOptions:{modifiers:{arrow:{enabled:!!Ee,element:Ee}}}},Z)},[Ee,Z]);return reactExports.createElement(reactExports.Fragment,null,reactExports.cloneElement(p,ht),reactExports.createElement(K,_extends$v({className:clsx$1(h.popper,j&&h.popperInteractive,f&&h.popperArrow),placement:G,anchorEl:ee,open:ee?Ce:!1,id:ht["aria-describedby"],transition:!0},bt,xt),function(Rt){var ut=Rt.placement,Me=Rt.TransitionProps;return reactExports.createElement(fe,_extends$v({timeout:Ae.transitions.duration.shorter},Me,le),reactExports.createElement("div",{className:clsx$1(h.tooltip,h["tooltipPlacement".concat(capitalize$1(ut.split("-")[0]))],Se.current&&h.touch,f&&h.tooltipArrow)},te,f?reactExports.createElement("span",{className:h.arrow,ref:xe}):null))}))});const Tooltip$1=withStyles$2(styles$2Y,{name:"MuiTooltip",flip:!1})(Tooltip);var _excluded$c=["badge","children","containerId","dispatch","BadgeProps","TooltipProps"];function _objectWithoutProperties$d(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$b(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$b(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function MiradorMenuButton$4(l){var o=l["aria-label"],u=l.badge,d=l.children,f=l.containerId;l.dispatch;var p=l.BadgeProps,h=l.TooltipProps,v=_objectWithoutProperties$d(l,_excluded$c),g=React.createElement(IconButton$1,v,u?React.createElement(Badge$1,p,d):d);return v.disabled?g:React.createElement(Tooltip$1,Object.assign({PopperProps:{container:document.querySelector("#".concat(f," .").concat(ns$1("viewer")))},title:o},h),g)}MiradorMenuButton$4.defaultProps={badge:!1,BadgeProps:{},dispatch:function(){},TooltipProps:{}};var mapStateToProps$17=function(o){return{containerId:getContainerId$1(o)}},enhance$1k=compose$2(connect(mapStateToProps$17,null),withPlugins$1("MiradorMenuButton"));const MiradorMenuButton$3=enhance$1k(MiradorMenuButton$4);function _classCallCheck$24(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1Y(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2s(d.key),d)}}function _createClass$1Y(l,o,u){return o&&_defineProperties$1Y(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2s(l){var o=_toPrimitive$2s(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2s(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1q(l,o,u){return o=_getPrototypeOf$1s(o),_possibleConstructorReturn$1z(l,_isNativeReflectConstruct$1r()?Reflect.construct(o,u||[],_getPrototypeOf$1s(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1z(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1s(l)}function _assertThisInitialized$1s(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1r(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1r=function(){return!!l})()}function _getPrototypeOf$1s(l){return _getPrototypeOf$1s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
41)},_getPrototypeOf$1s(l)}function _inherits$1z(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1s(l,o)}function _setPrototypeOf$1s(l,o){return _setPrototypeOf$1s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1s(l,o)}var AnnotationSettings$1=(function(l){function o(){return _classCallCheck$24(this,o),_callSuper$1q(this,o,arguments)}return _inherits$1z(o,l),_createClass$1Y(o,[{key:"render",value:function(){var d=this.props,f=d.displayAll,p=d.displayAllDisabled,h=d.t,v=d.toggleAnnotationDisplay;return React.createElement(MiradorMenuButton$3,{"aria-label":h(f?"displayNoAnnotations":"highlightAllAnnotations"),onClick:v,disabled:p,size:"small"},f?React.createElement(VisibilityIcon,null):React.createElement(VisibilityOffIcon,null))}}])})(reactExports.Component),mapStateToProps$16=function(o,u){var d=u.windowId;return{displayAll:getWindow$2(o,{windowId:d}).highlightAllAnnotations,displayAllDisabled:getAnnotationResourcesByMotivation$1(o,{windowId:d}).length<2}},mapDispatchToProps$N=function(o,u){var d=u.windowId;return{toggleAnnotationDisplay:function(){o(toggleAnnotationDisplay$1(d))}}},enhance$1j=compose$2(withTranslation(),connect(mapStateToProps$16,mapDispatchToProps$N),withPlugins$1("AnnotationSettings"));const AnnotationSettings=enhance$1j(AnnotationSettings$1),CancelIcon=createSvgIcon(reactExports.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"}));var styles$2X=function(o){var u=o.palette.type==="light"?o.palette.grey[300]:o.palette.grey[700],d=alpha(o.palette.text.primary,.26);return{root:{fontFamily:o.typography.fontFamily,fontSize:o.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:o.palette.getContrastText(u),backgroundColor:u,borderRadius:32/2,whiteSpace:"nowrap",transition:o.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:o.palette.type==="light"?o.palette.grey[700]:o.palette.grey[300],fontSize:o.typography.pxToRem(12)},"& $avatarColorPrimary":{color:o.palette.primary.contrastText,backgroundColor:o.palette.primary.dark},"& $avatarColorSecondary":{color:o.palette.secondary.contrastText,backgroundColor:o.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:o.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:o.palette.primary.main,color:o.palette.primary.contrastText},colorSecondary:{backgroundColor:o.palette.secondary.main,color:o.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:emphasize(u,.08)},"&:active":{boxShadow:o.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:emphasize(o.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:emphasize(o.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:emphasize(u,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:emphasize(o.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:emphasize(o.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat(o.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:alpha(o.palette.text.primary,o.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:o.palette.primary.main,border:"1px solid ".concat(o.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity)}},outlinedSecondary:{color:o.palette.secondary.main,border:"1px solid ".concat(o.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:o.palette.type==="light"?o.palette.grey[700]:o.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:d,height:22,width:22,curs
41or:"pointer",margin:"0 5px 0 -6px","&:hover":{color:alpha(d,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:alpha(o.palette.primary.contrastText,.7),"&:hover, &:active":{color:o.palette.primary.contrastText}},deleteIconColorSecondary:{color:alpha(o.palette.secondary.contrastText,.7),"&:hover, &:active":{color:o.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:alpha(o.palette.primary.main,.7),"&:hover, &:active":{color:o.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:alpha(o.palette.secondary.main,.7),"&:hover, &:active":{color:o.palette.secondary.main}}}};function isDeleteKeyboardEvent(l){return l.key==="Backspace"||l.key==="Delete"}var Chip=reactExports.forwardRef(function(o,u){var d=o.avatar,f=o.classes,p=o.className,h=o.clickable,v=o.color,g=v===void 0?"default":v,m=o.component,y=o.deleteIcon,b=o.disabled,w=b===void 0?!1:b,E=o.icon,P=o.label,C=o.onClick,T=o.onDelete,O=o.onKeyDown,x=o.onKeyUp,A=o.size,D=A===void 0?"medium":A,j=o.variant,M=j===void 0?"default":j,N=_objectWithoutProperties$q(o,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),q=reactExports.useRef(null),z=useForkRef(q,u),H=function(Re){Re.stopPropagation(),T&&T(Re)},U=function(Re){Re.currentTarget===Re.target&&isDeleteKeyboardEvent(Re)&&Re.preventDefault(),O&&O(Re)},F=function(Re){Re.currentTarget===Re.target&&(T&&isDeleteKeyboardEvent(Re)?T(Re):Re.key==="Escape"&&q.current&&q.current.blur()),x&&x(Re)},B=h!==!1&&C?!0:h,G=D==="small",Q=m||(B?ButtonBase$1:"div"),K=Q===ButtonBase$1?{component:"div"}:{},Z=null;if(T){var te=clsx$1(g!=="default"&&(M==="default"?f["deleteIconColor".concat(capitalize$1(g))]:f["deleteIconOutlinedColor".concat(capitalize$1(g))]),G&&f.deleteIconSmall);Z=y&&reactExports.isValidElement(y)?reactExports.cloneElement(y,{className:clsx$1(y.props.className,f.deleteIcon,te),onClick:H}):reactExports.createElement(CancelIcon,{className:clsx$1(f.deleteIcon,te),onClick:H})}var oe=null;d&&reactExports.isValidElement(d)&&(oe=reactExports.cloneElement(d,{className:clsx$1(f.avatar,d.props.className,G&&f.avatarSmall,g!=="default"&&f["avatarColor".concat(capitalize$1(g))])}));var fe=null;return E&&reactExports.isValidElement(E)&&(fe=reactExports.cloneElement(E,{className:clsx$1(f.icon,E.props.className,G&&f.iconSmall,g!=="default"&&f["iconColor".concat(capitalize$1(g))])})),reactExports.createElement(Q,_extends$v({role:B||T?"button":void 0,className:clsx$1(f.root,p,g!=="default"&&[f["color".concat(capitalize$1(g))],B&&f["clickableColor".concat(capitalize$1(g))],T&&f["deletableColor".concat(capitalize$1(g))]],M!=="default"&&[f.outlined,{primary:f.outlinedPrimary,secondary:f.outlinedSecondary}[g]],w&&f.disabled,G&&f.sizeSmall,B&&f.clickable,T&&f.deletable),"aria-disabled":w?!0:void 0,tabIndex:B||T?0:void 0,onClick:C,onKeyDown:U,onKeyUp:F,ref:z},K,N),oe||fe,reactExports.createElement("span",{className:clsx$1(f.label,G&&f.labelSmall)},P),Z)});const Chip$1=withStyles$2(styles$2X,{name:"MuiChip"})(Chip);var ListContext=reactExports.createContext({}),styles$2W={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},List=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.component,v=h===void 0?"ul":h,g=o.dense,m=g===void 0?!1:g,y=o.disablePadding,b=y===void 0?!1:y,w=o.subheader,E=_objectWithoutProperties$q(o,["children","classes","className","component","dense","disablePadding","subheader"]),P=reactExports.useMemo(function(){return{dense:m}},[m]);return reactExports.createElement(ListContext.Provider,{value:P},reactExports.createElement(v,_extends$v({className:clsx$1(f.root,p,m&&f.dense,!b&&f.padding,w&&f.subheader),ref:u},E),w,d))});const List$1=withStyles$2(styles$2W,{name:"MuiList"})(List);function getScrollbarSize(){var l=document.createElement("div");l.style.width="99px",l.style.height="99px",l.style.position="absolute",l.style.top="-9999px",l.
41style.overflow="scroll",document.body.appendChild(l);var o=l.offsetWidth-l.clientWidth;return document.body.removeChild(l),o}function nextItem(l,o,u){return l===o?l.firstChild:o&&o.nextElementSibling?o.nextElementSibling:u?null:l.firstChild}function previousItem(l,o,u){return l===o?u?l.firstChild:l.lastChild:o&&o.previousElementSibling?o.previousElementSibling:u?null:l.lastChild}function textCriteriaMatches(l,o){if(o===void 0)return!0;var u=l.innerText;return u===void 0&&(u=l.textContent),u=u.trim().toLowerCase(),u.length===0?!1:o.repeating?u[0]===o.keys[0]:u.indexOf(o.keys.join(""))===0}function moveFocus(l,o,u,d,f,p){for(var h=!1,v=f(l,o,o?u:!1);v;){if(v===l.firstChild){if(h)return;h=!0}var g=d?!1:v.disabled||v.getAttribute("aria-disabled")==="true";if(!v.hasAttribute("tabindex")||!textCriteriaMatches(v,p)||g)v=f(l,v,u);else{v.focus();return}}}var useEnhancedEffect$6=typeof window>"u"?reactExports.useEffect:reactExports.useLayoutEffect,MenuList=reactExports.forwardRef(function(o,u){var d=o.actions,f=o.autoFocus,p=f===void 0?!1:f,h=o.autoFocusItem,v=h===void 0?!1:h,g=o.children,m=o.className,y=o.disabledItemsFocusable,b=y===void 0?!1:y,w=o.disableListWrap,E=w===void 0?!1:w,P=o.onKeyDown,C=o.variant,T=C===void 0?"selectedMenu":C,O=_objectWithoutProperties$q(o,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=reactExports.useRef(null),A=reactExports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect$6(function(){p&&x.current.focus()},[p]),reactExports.useImperativeHandle(d,function(){return{adjustStyleForScrollbar:function(H,U){var F=!x.current.style.width;if(H.clientHeight<x.current.clientHeight&&F){var B="".concat(getScrollbarSize(),"px");x.current.style[U.direction==="rtl"?"paddingLeft":"paddingRight"]=B,x.current.style.width="calc(100% + ".concat(B,")")}return x.current}}},[]);var D=function(H){var U=x.current,F=H.key,B=ownerDocument(U).activeElement;if(F==="ArrowDown")H.preventDefault(),moveFocus(U,B,E,b,nextItem);else if(F==="ArrowUp")H.preventDefault(),moveFocus(U,B,E,b,previousItem);else if(F==="Home")H.preventDefault(),moveFocus(U,null,E,b,nextItem);else if(F==="End")H.preventDefault(),moveFocus(U,null,E,b,previousItem);else if(F.length===1){var G=A.current,Q=F.toLowerCase(),K=performance.now();G.keys.length>0&&(K-G.lastTime>500?(G.keys=[],G.repeating=!0,G.previousKeyMatched=!0):G.repeating&&Q!==G.keys[0]&&(G.repeating=!1)),G.lastTime=K,G.keys.push(Q);var Z=B&&!G.repeating&&textCriteriaMatches(B,G);G.previousKeyMatched&&(Z||moveFocus(U,B,!1,b,nextItem,G))?H.preventDefault():G.previousKeyMatched=!1}P&&P(H)},j=reactExports.useCallback(function(z){x.current=reactDomExports.findDOMNode(z)},[]),M=useForkRef(j,u),N=-1;reactExports.Children.forEach(g,function(z,H){reactExports.isValidElement(z)&&(z.props.disabled||(T==="selectedMenu"&&z.props.selected||N===-1)&&(N=H))});var q=reactExports.Children.map(g,function(z,H){if(H===N){var U={};return v&&(U.autoFocus=!0),z.props.tabIndex===void 0&&T==="selectedMenu"&&(U.tabIndex=0),reactExports.cloneElement(z,U)}return z});return reactExports.createElement(List$1,_extends$v({role:"menu",ref:M,className:m,onKeyDown:D,tabIndex:p?0:-1},O),q)}),styles$2V=function(o){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:o.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:o.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(o.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:o.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},useEnhancedEffect$5=typeof window>"u"?reactExports.useEffect:reactExports.useLayoutEffect,ListItem=reactExports.forwardRef(function(o,u){var d=o.alignItems,f=d===void 0?"center":d,p=o.autoFocus,h=p===void 0?!1:p,v=o.button,g=v===void 0?!1:v,m=o.children,y=o.classes,b=o.className,w=o.component,E=o.ContainerComponent,P=E===void 0?"li":E,C=o.ContainerProps;C=C===void 0?{}:C;var T=C.className,O=_objectWithoutProperties$q(C,["className"]),x=o.dense,A=x===void 0?!1:x,D=o.disabled,j=D===void 0?!1:D,M=o.disableGutters,N=M===void 0?!1:M,q=o.divider,z=q===void 0?!1:q,H=o.focusVisibleClassName,U=o.selected,F=U===void 0?!1:U,B=_objectWithoutProperties$q(o,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),G=reactExports.useContext(ListContext),Q={dense:A||G.dense||!1,alignItems:f},K=reactExports.useRef(null);useEnhancedEffect$5(function(){h&&K.current&&K.current.focus()},[h]);var Z=reactExports.Children.toArray(m),te=Z.length&&isMuiElement(Z[Z.length-1],["ListItemSecondaryAction"]),oe=reactExports.useCallback(function(Ae){K.current=reactDomExports.findDOMNode(Ae)},[]),fe=useForkRef(oe,u),le=_extends$v({className:clsx$1(y.root,b,Q.dense&&y.dense,!N&&y.gutters,z&&y.divider,j&&y.disabled,g&&y.button,f!=="center"&&y.alignItemsFlexStart,te&&y.secondaryAction,F&&y.selected),disabled:j},B),Re=w||"li";return g&&(le.component=w||"div",le.focusVisibleClassName=clsx$1(y.focusVisible,H),Re=ButtonBase$1),te?(Re=!le.component&&!w?"div":Re,P==="li"&&(Re==="li"?Re="div":le.component==="li"&&(le.component="div")),reactExports.createElement(ListContext.Provider,{value:Q}
41,reactExports.createElement(P,_extends$v({className:clsx$1(y.container,T),ref:fe},O),reactExports.createElement(Re,le,Z),Z.pop()))):reactExports.createElement(ListContext.Provider,{value:Q},reactExports.createElement(Re,_extends$v({ref:fe},le),Z))});const ListItem$1=withStyles$2(styles$2V,{name:"MuiListItem"})(ListItem);var styles$2U=function(o){return{root:_extends$v({},o.typography.body1,_defineProperty$1z({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},o.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:_extends$v({},o.typography.body2,{minHeight:"auto"})}},MenuItem=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?"li":p,v=o.disableGutters,g=v===void 0?!1:v,m=o.ListItemClasses,y=o.role,b=y===void 0?"menuitem":y,w=o.selected,E=o.tabIndex,P=_objectWithoutProperties$q(o,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]),C;return o.disabled||(C=E!==void 0?E:-1),reactExports.createElement(ListItem$1,_extends$v({button:!0,role:b,tabIndex:C,component:h,selected:w,disableGutters:g,classes:_extends$v({dense:d.dense},m),className:clsx$1(d.root,f,w&&d.selected,!g&&d.gutters),ref:u},P))});const MenuItem$1=withStyles$2(styles$2U,{name:"MuiMenuItem"})(MenuItem);var styles$2T={root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},ListItemText=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.disableTypography,v=h===void 0?!1:h,g=o.inset,m=g===void 0?!1:g,y=o.primary,b=o.primaryTypographyProps,w=o.secondary,E=o.secondaryTypographyProps,P=_objectWithoutProperties$q(o,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),C=reactExports.useContext(ListContext),T=C.dense,O=y??d;O!=null&&O.type!==Typography$1&&!v&&(O=reactExports.createElement(Typography$1,_extends$v({variant:T?"body2":"body1",className:f.primary,component:"span",display:"block"},b),O));var x=w;return x!=null&&x.type!==Typography$1&&!v&&(x=reactExports.createElement(Typography$1,_extends$v({variant:"body2",className:f.secondary,color:"textSecondary",display:"block"},E),x)),reactExports.createElement("div",_extends$v({className:clsx$1(f.root,p,T&&f.dense,m&&f.inset,O&&x&&f.multiline),ref:u},P),O,x)});const ListItemText$1=withStyles$2(styles$2T,{name:"MuiListItemText"})(ListItemText);const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create:create$1}=Object,{apply:apply$2,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(o){return o});seal||(seal=function(o){return o});apply$2||(apply$2=function(o,u){for(var d=arguments.length,f=new Array(d>2?d-2:0),p=2;p<d;p++)f[p-2]=arguments[p];return o.apply(u,f)});construct||(construct=function(o){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];return new o(...d)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unappl
vendor: 4,971 bytes, line 41
41y(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(l){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];return apply$2(l,o,d)}}function unconstruct(l){return function(){for(var o=arguments.length,u=new Array(o),d=0;d<o;d++)u[d]=arguments[d];return construct(l,u)}}function addToSet(l,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(l,null);let d=o.length;for(;d--;){let f=o[d];if(typeof f=="string"){const p=u(f);p!==f&&(isFrozen(o)||(o[d]=p),f=p)}l[f]=!0}return l}function cleanArray(l){for(let o=0;o<l.length;o++)objectHasOwnProperty(l,o)||(l[o]=null);return l}function clone(l){const o=create$1(null);for(const[u,d]of entries(l))objectHasOwnProperty(l,u)&&(Array.isArray(d)?o[u]=cleanArray(d):d&&typeof d=="object"&&d.constructor===Object?o[u]=clone(d):o[u]=d);return o}function lookupGetter(l,o){for(;l!==null;){const d=getOwnPropertyDescriptor(l,o);if(d){if(d.get)return unapply(d.get);if(typeof d.value=="function")return unapply(d.value)}l=getPrototypeOf(l)}function u(){return null}return u}const html$1=freeze(["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","search","section","select","shadow","slot","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"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","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"]),mathMl$1=freeze(["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","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html$2=freeze(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
41spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","targetx","targety","transform","transform-origin","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"]),mathMl=freeze(["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"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR,ATTR_WHITESPACE,CUSTOM_ELEMENT,DATA_ATTR,DOCTYPE_NAME,ERB_EXPR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,MUSTACHE_EXPR,TMPLIT_EXPR});const NODE_TYPE={element:1,text:3,progressingInstruction:7,comment:8,document:9},getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(o,u){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let d=null;
41const f="data-tt-policy-suffix";u&&u.hasAttribute(f)&&(d=u.getAttribute(f));const p="dompurify"+(d?"#"+d:"");try{return o.createPolicy(p,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},_createHooksMap=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const o=kt=>createDOMPurify(kt);if(o.version="3.3.2",o.removed=[],!l||!l.document||l.document.nodeType!==NODE_TYPE.document||!l.Element)return o.isSupported=!1,o;let{document:u}=l;const d=u,f=d.currentScript,{DocumentFragment:p,HTMLTemplateElement:h,Node:v,Element:g,NodeFilter:m,NamedNodeMap:y=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:b,DOMParser:w,trustedTypes:E}=l,P=g.prototype,C=lookupGetter(P,"cloneNode"),T=lookupGetter(P,"remove"),O=lookupGetter(P,"nextSibling"),x=lookupGetter(P,"childNodes"),A=lookupGetter(P,"parentNode");if(typeof h=="function"){const kt=u.createElement("template");kt.content&&kt.content.ownerDocument&&(u=kt.content.ownerDocument)}let D,j="";const{implementation:M,createNodeIterator:N,createDocumentFragment:q,getElementsByTagName:z}=u,{importNode:H}=d;let U=_createHooksMap();o.isSupported=typeof entries=="function"&&typeof A=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:B,TMPLIT_EXPR:G,DATA_ATTR:Q,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:oe}=EXPRESSIONS;let{IS_ALLOWED_URI:fe}=EXPRESSIONS,le=null;const Re=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let Ae=null;const _e=addToSet({},[...html$2,...svg,...mathMl,...xml]);let ee=Object.seal(create$1(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,$e=null;const Ee=Object.seal(create$1(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,Se=!0,Ie=!1,ge=!0,Y=!1,ie=!0,ce=!1,ue=!1,pe=!1,Te=!1,Ce=!1,Fe=!1,He=!0,we=!1;const Oe="user-content-";let Ne=!0,qe=!1,Be={},Ve=null;const Ye=addToSet({},["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"]);let Ge=null;const dt=addToSet({},["audio","video","img","source","image","track"]);let ze=null;const nt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",_t="http://www.w3.org/2000/svg",ae="http://www.w3.org/1999/xhtml";let re=ae,he=!1,Pe=null;const We=addToSet({},[Ze,_t,ae],stringToString);let yt=addToSet({},["mi","mo","mn","ms","mtext"]),ct=addToSet({},["annotation-xml"]);const ht=addToSet({},["title","style","font","a","script"]);let bt=null;const xt=["application/xhtml+xml","text/html"],Rt="text/html";let ut=null,Me=null;const vt=u.createElement("form"),Ot=function(je){return je instanceof RegExp||je instanceof Function},ft=function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Me&&Me===je)){if((!je||typeof je!="object")&&(je={}),je=clone(je),bt=xt.indexOf(je.PARSER_MEDIA_TYPE)===-1?Rt:je.PARSER_MEDIA_TYPE,ut=bt==="application/xhtml+xml"?stringToString:stringToLowerCase,le=objectHasOwnProperty(je,"ALLOWED_TAGS")?addToSet({},je.ALLOWED_TAGS,ut):Re,Ae=objectHasOwnProperty(je,"ALLOWED_ATTR")?addToSet({},je.ALLOWED_ATTR,ut):_e,Pe=objectHasOwnProperty(je,"ALLOWED_NAMESPACES")?addToSet({},je.ALLOWED_NAMESPACES,stringToString):We,ze=objectHasOwnProperty(je,"ADD_URI_SAFE_ATTR")?addToSet(clone(nt),je.ADD_URI_SAFE_ATTR,ut):nt,Ge=objectHasOwnProperty(je,"ADD_DATA_URI_TAGS")?addToSet(clone(dt),je.ADD_DATA_URI_TAGS,ut):dt,Ve=objectHasOwnProperty(je,"FORBID_CONTENTS")?addToSet({},je.FORBID_CONTENTS,ut):Ye,se=objectHasOwnProperty(je,"FORBID_TAGS")?addToSet({},je.FORBID_TAGS,ut):clone({}),$e=objectHasOwnProperty(je,"FORBID_ATTR")?addToSet({},je.FORBID_ATTR,ut):clone({}
vendor: 9,959 bytes, line 41
41),Be=objectHasOwnProperty(je,"USE_PROFILES")?je.USE_PROFILES:!1,xe=je.ALLOW_ARIA_ATTR!==!1,Se=je.ALLOW_DATA_ATTR!==!1,Ie=je.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=je.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Y=je.SAFE_FOR_TEMPLATES||!1,ie=je.SAFE_FOR_XML!==!1,ce=je.WHOLE_DOCUMENT||!1,Te=je.RETURN_DOM||!1,Ce=je.RETURN_DOM_FRAGMENT||!1,Fe=je.RETURN_TRUSTED_TYPE||!1,pe=je.FORCE_BODY||!1,He=je.SANITIZE_DOM!==!1,we=je.SANITIZE_NAMED_PROPS||!1,Ne=je.KEEP_CONTENT!==!1,qe=je.IN_PLACE||!1,fe=je.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,re=je.NAMESPACE||ae,yt=je.MATHML_TEXT_INTEGRATION_POINTS||yt,ct=je.HTML_INTEGRATION_POINTS||ct,ee=je.CUSTOM_ELEMENT_HANDLING||{},je.CUSTOM_ELEMENT_HANDLING&&Ot(je.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=je.CUSTOM_ELEMENT_HANDLING.tagNameCheck),je.CUSTOM_ELEMENT_HANDLING&&Ot(je.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=je.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),je.CUSTOM_ELEMENT_HANDLING&&typeof je.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=je.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(Se=!1),Ce&&(Te=!0),Be&&(le=addToSet({},text),Ae=create$1(null),Be.html===!0&&(addToSet(le,html$1),addToSet(Ae,html$2)),Be.svg===!0&&(addToSet(le,svg$1),addToSet(Ae,svg),addToSet(Ae,xml)),Be.svgFilters===!0&&(addToSet(le,svgFilters),addToSet(Ae,svg),addToSet(Ae,xml)),Be.mathMl===!0&&(addToSet(le,mathMl$1),addToSet(Ae,mathMl),addToSet(Ae,xml))),objectHasOwnProperty(je,"ADD_TAGS")||(Ee.tagCheck=null),objectHasOwnProperty(je,"ADD_ATTR")||(Ee.attributeCheck=null),je.ADD_TAGS&&(typeof je.ADD_TAGS=="function"?Ee.tagCheck=je.ADD_TAGS:(le===Re&&(le=clone(le)),addToSet(le,je.ADD_TAGS,ut))),je.ADD_ATTR&&(typeof je.ADD_ATTR=="function"?Ee.attributeCheck=je.ADD_ATTR:(Ae===_e&&(Ae=clone(Ae)),addToSet(Ae,je.ADD_ATTR,ut))),je.ADD_URI_SAFE_ATTR&&addToSet(ze,je.ADD_URI_SAFE_ATTR,ut),je.FORBID_CONTENTS&&(Ve===Ye&&(Ve=clone(Ve)),addToSet(Ve,je.FORBID_CONTENTS,ut)),je.ADD_FORBID_CONTENTS&&(Ve===Ye&&(Ve=clone(Ve)),addToSet(Ve,je.ADD_FORBID_CONTENTS,ut)),Ne&&(le["#text"]=!0),ce&&addToSet(le,["html","head","body"]),le.table&&(addToSet(le,["tbody"]),delete se.tbody),je.TRUSTED_TYPES_POLICY){if(typeof je.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof je.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=je.TRUSTED_TYPES_POLICY,j=D.createHTML("")}else D===void 0&&(D=_createTrustedTypesPolicy(E,f)),D!==null&&typeof j=="string"&&(j=D.createHTML(""));freeze&&freeze(je),Me=je}},wt=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Nt=addToSet({},[...mathMl$1,...mathMlDisallowed]),jt=function(je){let Et=A(je);(!Et||!Et.tagName)&&(Et={namespaceURI:re,tagName:"template"});const At=stringToLowerCase(je.tagName),ir=stringToLowerCase(Et.tagName);return Pe[je.namespaceURI]?je.namespaceURI===_t?Et.namespaceURI===ae?At==="svg":Et.namespaceURI===Ze?At==="svg"&&(ir==="annotation-xml"||yt[ir]):!!wt[At]:je.namespaceURI===Ze?Et.namespaceURI===ae?At==="math":Et.namespaceURI===_t?At==="math"&&ct[ir]:!!Nt[At]:je.namespaceURI===ae?Et.namespaceURI===_t&&!ct[ir]||Et.namespaceURI===Ze&&!yt[ir]?!1:!Nt[At]&&(ht[At]||!wt[At]):!!(bt==="application/xhtml+xml"&&Pe[je.namespaceURI]):!1},Ct=function(je){arrayPush(o.removed,{element:je});try{A(je).removeChild(je)}catch{T(je)}},mt=function(je,Et){try{arrayPush(o.removed,{attribute:Et.getAttributeNode(je),from:Et})}catch{arrayPush(o.removed,{attribute:null,from:Et})}if(Et.removeAttribute(je),je==="is")if(Te||Ce)try{Ct(Et)}catch{}else try{Et.setAttribute(je,"")}catch{}},qt=function(je){let Et=null,At=null;if(pe)je="<remove></remove>"+je;else{const _r=stringMatch(je,/^[\r\n\t ]+/);At=_r&&_r[0]}bt==="application/xhtml+xml"&&re===ae&&(je='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+je+"</body></html>");const ir=D?D.createHTML(je):je;if(re===ae)try{Et=new w().parseFromString(ir,bt)}catch{}if(!Et||!Et.documentElement){Et=M.createDocument(re,"template",null);try{Et.documentElement.innerHTML=he?j:ir}catch{}}const br=Et.body||Et.documentElement;return je&&At&&br.insertBefore(u.createTextNode(At),br.childNodes[0]||null),re===ae?z.call(Et,ce?"html":"body")[0]:ce?Et.documentElement:br},Er=function(je){return N.call(je.ownerDocument||je,je,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Kt=function(je){return je instanceof b&&(typeof je.nodeName!="string"||typeof je.textContent!="string"||typeof je.removeChild!="function"||!(je.attributes instanceof y)||typeof je.removeAttribute!="function"||typeof je.setAttribute!="function"||typeof je.namespaceURI!="string"||typeof je.insertBefore!="function"||typeof je.hasChildNodes!="function")},lr=function(je){return typeof v=="function"&&je instanceof v};function Cr(kt,je,Et){arrayForEach(kt,At=>{At.call(o,je,Et,Me)})}const Yr=function(je){let Et=null;if(Cr(U.beforeSanitizeElements,je,null),Kt(je))return Ct(je),!0;const At=ut(je.nodeName);if(Cr(U.uponSanitizeElement,je,{tagName:At,allowedTags:le}),ie&&je.hasChildNodes()&&!lr(je.firstElementChild)&&regExpTest(/<[/\w!]/g,je.innerHTML)&&regExpTest(/<[/\w!]/g,je.textContent)||je.nodeType===NODE_TYPE.progressingInstruction||ie&&je.nodeType===NODE_TYPE.comment&&regExpTest(/<[/\w]/g,je.data))return Ct(je),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(At))&&(!le[At]||se[At])){if(!se[At]&&Pr(At)&&(ee.tagNameCheck instanceof RegExp&&regExpTest(ee.tagNameCheck,At)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(At)))return!1;if(Ne&&!Ve[At]){const ir=A(je)||je.parentNode,br=x(je)||je.childNodes;if(br&&ir){const _r=br.length;for(let Ar=_r-1;Ar>=0;--Ar){const Lr=C(br[Ar],!0);Lr.__removalCount=(je.__removalCount||0)+1,ir.insertBefore(Lr,O(je))}}}return Ct(je),!0}return je instanceof g&&!jt(je)||(At==="noscript"||At==="noembed"||At==="noframes")&&regExpTest(/<\/no(script|embed|frames)/i,je.innerHTML)?(Ct(je),!0):(Y&&je.nodeType===NODE_TYPE.text&&(Et=je.textContent,arrayForEach([F,B,G],ir=>{Et=stringReplace(Et,ir," ")}),je.textContent!==Et&&(arrayPush(o.removed,{element:je.cloneNode()}),je.textContent=Et)),Cr(U.afterSanitizeElements,je,null),!1)},cr=function(je,Et,At){if($e[Et]||He&&(Et==="id"||Et==="name")&&(At in u||At in vt))return!1;if(!(Se&&!$e[Et]&&regExpTest(Q,Et))){if(!(xe&&regExpTest(K,Et))){if(!(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(Et,je))){if(!Ae[Et]||$e[Et]){if(!(Pr(je)&&(ee.tagNameCheck instanceof RegExp&&regExpTest(ee.tagNameCheck,je)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(je))&&(ee.attributeNameCheck instanceof RegExp&&regExpTest(ee.attributeNameCheck,Et)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Et,je))||Et==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&regExpTest(ee.tagNameCheck,At)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(At))))return!1}else if(!ze[Et]){if(!regExpTest(fe,stringReplace(At,te,""))){if(!((Et==="src"||Et==="xlink:href"||Et==="href")&&je!=="script"&&stringIndexOf(At,"data:")===0&&Ge[je])){if(!(Ie&&!regExpTest(Z,stringReplace(At,te,"")))){if(At)return!1}}}}}}}return!0},Pr=function(je){return je!=="annotation-xml"&&stringMatch(je,oe)},vr=function(je){Cr(U.beforeSanitizeAttributes,je,null);const{attributes:Et}=je;if(!Et||Kt(je))return;const At={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let ir=Et.length;for(;ir--;){const br=Et[ir],{name:_r,namespaceURI:Ar,value:Lr}=br,mn=ut(_r),kn=Lr;let wr=_r==="value"?kn:stringTrim(kn);if(At.attrName=mn,At.attrValue=wr,At.keepAttr=!0,At.forceKeepAttr=void 0,Cr(U.uponSanitizeAttribute,je,At),wr=At.attrValue,we&&(mn==="id"||mn==="name")&&(mt(_r,je),wr=Oe+wr),ie&&regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,wr)){mt(_r,je);continue}if(mn==="attributename"&&stringMatch(wr,"href")){mt(_r,je);continue}if(At.forceKeepAttr)continue;if(!At.keepAttr){mt(_r,je);continue}if(!ge&&regExpTest(/\/>/i,wr)){mt(_r,je);continue}Y&&arrayForEach([F,B,G],rn=>{wr=stringReplace(wr,rn," ")});const Nn=ut(je.nodeName);if(!cr(Nn,mn,wr)){mt(_r,je);continue}if(D&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!Ar)switch(E.getAttributeType(Nn,mn)){case"TrustedHTML":{wr=D.createHTML(wr);break}case"TrustedScriptURL":{wr=D.createScriptURL(wr);break}}if(wr!==kn)try{Ar?je.setAttributeNS(Ar,_r,wr):je.setAttribute(_r,wr),Kt(je)?Ct(je):arrayPop(o.removed)}catch{mt(_r,je)}}Cr(U.afterSanitizeAttributes,je,null)},ln=function kt(je){let Et=null;const At=Er(je);for(Cr(U.beforeSanitizeShadowDOM,je,null);Et=At.nextNode();)Cr(U.uponSanitizeShadowNode,Et,null),Yr(Et),vr(Et),Et.content instanceof p&&kt(Et.content);Cr(U.afterSanitizeShadowDOM,je,null)};return o.sanitize=function(kt){let je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=null,At=null,ir=null,br=null;if(he=!kt,he&&(kt="<!-->"),typeof kt!="string"&&!lr(kt))if(typeof kt.toString=="function"){if(kt=kt.toString(),typeof kt!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!o.isSupported)return kt;if(ue||ft(je),o.removed=[],typeof kt=="string"&&(qe=!1),qe){if(kt.nodeName){const Lr=ut(kt.nodeName);if(!le[Lr]||se[Lr])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(kt instanceof v)Et=qt("<!---->"),At=Et.ownerDocument.importNode(kt,!0),At.nodeType===NODE_TYPE.element&&At.nodeName==="BODY"||At.nodeName==="HTML"?Et=At:Et.appendChild(At);else{if(!Te&&!Y&&!ce&&kt.indexOf("<")===-1)return D&&Fe?D.createHTML(kt):kt;if(Et=qt(kt),!Et)return Te?null:Fe?j:""}Et&&pe&&Ct(Et.firstChild);const _r=Er(qe?kt:Et);for(;ir=_r.nextNode();)Yr(ir),vr(ir),ir.content instanceof p&&ln(ir.content);if(qe)return kt;if(Te){if(Ce)for(br=q.call(Et.ownerDocument);
41Et.firstChild;)br.appendChild(Et.firstChild);else br=Et;return(Ae.shadowroot||Ae.shadowrootmode)&&(br=H.call(d,br,!0)),br}let Ar=ce?Et.outerHTML:Et.innerHTML;return ce&&le["!doctype"]&&Et.ownerDocument&&Et.ownerDocument.doctype&&Et.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,Et.ownerDocument.doctype.name)&&(Ar="<!DOCTYPE "+Et.ownerDocument.doctype.name+`>
42`+Ar),Y&&arrayForEach([F,B,G],Lr=>{Ar=stringReplace(Ar,Lr," ")}),D&&Fe?D.createHTML(Ar):Ar},o.setConfig=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ft(kt),ue=!0},o.clearConfig=function(){Me=null,ue=!1},o.isValidAttribute=function(kt,je,Et){Me||ft({});const At=ut(kt),ir=ut(je);return cr(At,ir,Et)},o.addHook=function(kt,je){typeof je=="function"&&arrayPush(U[kt],je)},o.removeHook=function(kt,je){if(je!==void 0){const Et=arrayLastIndexOf(U[kt],je);return Et===-1?void 0:arraySplice(U[kt],Et,1)[0]}return arrayPop(U[kt])},o.removeHooks=function(kt){U[kt]=[]},o.removeAllHooks=function(){U=_createHooksMap()},o}var purify=createDOMPurify(),liberal={},noHtml={ALLOWED_TAGS:[]},iiif={ALLOWED_ATTR:["href","src","alt"],ALLOWED_TAGS:["a","b","br","i","img","p","span"]},mirador2={ALLOWED_ATTR:["href","target","src","alt","dir"],ALLOWED_TAGS:["a","b","br","i","img","p","span","strong","em","ul","ol","li"]},htmlRules={iiif,liberal,mirador2,noHtml};function _classCallCheck$23(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1X(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2r(d.key),d)}}function _createClass$1X(l,o,u){return o&&_defineProperties$1X(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2r(l){var o=_toPrimitive$2r(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2r(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1p(l,o,u){return o=_getPrototypeOf$1r(o),_possibleConstructorReturn$1y(l,_isNativeReflectConstruct$1q()?Reflect.construct(o,u||[],_getPrototypeOf$1r(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1y(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1r(l)}function _assertThisInitialized$1r(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1q(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1q=function(){return!!l})()}function _getPrototypeOf$1r(l){return _getPrototypeOf$1r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1r(l)}function _inherits$1y(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1r(l,o)}function _setPrototypeOf$1r(l,o){return _setPrototypeOf$1r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1r(l,o)}var SanitizedHtml$1=(function(l){function o(){return _classCallCheck$23(this,o),_callSuper$1p(this,o,arguments)}return _inherits$1y(o,l),_createClass$1X(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.htmlString,h=d.ruleSet;return purify.addHook("afterSanitizeAttributes",function(v){"target"in v&&(v.setAttribute("target","_blank"),v.setAttribute("rel","noopener noreferrer"))}),React.createElement("span",{className:[f.root,ns$1("third-party-html")].join(" "),dangerouslySetInnerHTML:{__html:purify.sanitize(p,htmlRules[h])}})}}])})(reactExports.Component);SanitizedHtml$1.defaultProps={classes:{}};var styles$2S=function(o){return{root:{"& a":{color:o.palette.primary.main,textDecoration:"underline"}}}};const SanitizedHtml=withStyles$2(styles$2S)(SanitizedHtml$1);function _classCallCheck$22(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1W(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2q(d.key),d)}}function _createClass$1W(l,o,u){return o&&_defineProperties$1W(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2q(l){var o=_toPrimitive$2q(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2q(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1o(l,o,u){return o=_getPrototypeOf$1q(o),_possibleConstructorReturn$1x(l,_isNativeReflectConstruct$1p()?Reflect.construct(o,u||[],_getPrototypeOf$1q(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1x(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1q(l)}function _assertThisInitialized$1q(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1p(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1p=function(){return!!l})()}function _getPrototypeOf$1q(l){return _getPrototypeOf$1q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
42)},_getPrototypeOf$1q(l)}function _inherits$1x(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1q(l,o)}function _setPrototypeOf$1q(l,o){return _setPrototypeOf$1q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1q(l,o)}var ScrollTo=(function(l){function o(u){var d;return _classCallCheck$22(this,o),d=_callSuper$1o(this,o,[u]),d.scrollToRef=React.createRef(),d}return _inherits$1x(o,l),_createClass$1W(o,[{key:"componentDidMount",value:function(){var d=this.props.scrollTo;d&&this.scrollToElement()}},{key:"componentDidUpdate",value:function(d){var f=this.props.scrollTo;f&&d.scrollTo!==f&&this.scrollToElement()}},{key:"containerBoundingRect",value:function(){var d=this.props.containerRef;return!d||!d.current||!d.current.domEl?{}:d.current.domEl.getBoundingClientRect()}},{key:"scrollToBoundingRect",value:function(){return this.elementToScrollTo()?this.elementToScrollTo().getBoundingClientRect():{}}},{key:"elementToScrollTo",value:function(){return!this.scrollToRef||!this.scrollToRef.current?null:this.scrollToRef.current}},{key:"scrollabelContainer",value:function(){var d=this.props.containerRef;return!d||!d.current||!d.current.domEl?null:d.current.domEl.getElementsByClassName("mirador-scrollto-scrollable")[0]}},{key:"elementIsVisible",value:function(){var d=this.props.offsetTop;
42return!(this.scrollToBoundingRect().top<this.containerBoundingRect().top+d||this.scrollToBoundingRect().bottom>this.containerBoundingRect().bottom)}},{key:"scrollToElement",value:function(){var d=this.props,f=d.offsetTop,p=d.scrollTo;if(p&&this.elementToScrollTo()&&!this.elementIsVisible()&&this.scrollabelContainer()){var h=this.elementToScrollTo().offsetTop-this.containerBoundingRect().height/2+f;this.scrollabelContainer().scrollTo(0,h)}}},{key:"render",value:function(){var d=this.props,f=d.children,p=d.scrollTo;return p?React.createElement("div",{ref:this.scrollToRef},f):f}}])})(reactExports.Component);ScrollTo.defaultProps={offsetTop:0};function _defineProperty$14(l,o,u){return(o=_toPropertyKey$2p(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$21(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1V(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2p(d.key),d)}}function _createClass$1V(l,o,u){return o&&_defineProperties$1V(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2p(l){var o=_toPrimitive$2p(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2p(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1n(l,o,u){return o=_getPrototypeOf$1p(o),_possibleConstructorReturn$1w(l,_isNativeReflectConstruct$1o()?Reflect.construct(o,u||[],_getPrototypeOf$1p(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1w(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1p(l)}function _assertThisInitialized$1p(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1o(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1o=function(){return!!l})()}function _getPrototypeOf$1p(l){return _getPrototypeOf$1p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1p(l)}function _inherits$1w(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1p(l,o)}function _setPrototypeOf$1p(l,o){return _setPrototypeOf$1p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1p(l,o)}var CanvasAnnotations$1=(function(l){function o(u){var d;return _classCallCheck$21(this,o),d=_callSuper$1n(this,o,[u]),d.handleClick=d.handleClick.bind(d),d.handleAnnotationHover=d.handleAnnotationHover.bind(d),d.handleAnnotationBlur=d.handleAnnotationBlur.bind(d),d}return _inherits$1w(o,l),_createClass$1V(o,[{key:"handleClick",value:function(d,f){var p=this.props,h=p.deselectAnnotation,v=p.selectAnnotation,g=p.selectedAnnotationId,m=p.windowId;g===f.id?h(m,f.id):v(m,f.id)}},{key:"handleAnnotationHover",value:function(d){var f=this.props,p=f.hoverAnnotation,h=f.windowId;p(h,[d.id])}},{key:"handleAnnotationBlur",value:function(){var d=this.props,f=d.hoverAnnotation,p=d.windowId;f(p,[])}},{key:"render",value:function(){var d=this,f=this.props,p=f.annotations,h=f.classes,v=f.index,g=f.label,m=f.selectedAnnotationId,y=f.t,b=f.totalSize,w=f.listContainerComponent,E=f.htmlSanitizationRuleSet,P=f.hoveredAnnotationIds,C=f.containerRef;return p.length===0?React.createElement(React.Fragment,null):React.createElement(React.Fragment,null,React.createElement(Typography$1,{className:h.sectionHeading,variant:"overline"},y("annotationCanvasLabel",{context:"".concat(v+1,"/").concat(b),label:g})),React.createElement(MenuList,{autoFocusItem:!0,variant:"selectedMenu"},p.map(function(T){return React.createElement(ScrollTo,{containerRef:C,key:"".concat(T.id,"-scroll"),offsetTop:96,scrollTo:m===T.id},React.createElement(MenuItem$1,{button:!0,component:w,className:clsx$1(h.annotationListItem,_defineProperty$14({},h.hovered,P.includes(T.id))),key:T.id,annotationid:T.id,selected:m===T.id,onClick:function(x){return d.handleClick(x,T)},onFocus:function(){return d.handleAnnotationHover(T)},onBlur:d.handleAnnotationBlur,onMouseEnter:function(){return d.handleAnnotationHover(T)},onMouseLeave:d.handleAnnotationBlur},React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body2"}},React.createElement(SanitizedHtml,{ruleSet:E,htmlString:T.content}),React.createElement("div",null,T.tags.map(function(O){return React.createElement(Chip$1,{size:"small",variant:"outlined",label:O,id:O,className:h.chip,key:O.toString()})})))))})))}}])})(reactExports.Component);CanvasAnnotations$1.defaultProps={annotations:[],classes:{},containerRef:void 0,hoveredAnnotationIds:[],htmlSanitizationRuleSet:"iiif",listContainerComponent:"li",selectedAnnotationId:void 0};function getIdAndContentOfResources(l){return l.map(function(o,u){return{content:o.chars,id:o.id,tags:o.tags,targetId:o.targetId}})}var mapStateToProps$15=function(o,u){var d=u.canvasId,f=u.windowId;return{annotations:getIdAndContentOfResources(getAnnotationResourcesByMotivationForCanvas$1(o,{canvasId:d,windowId:f})),htmlSanitizationRuleSet:getConfig$1(o).annotations.htmlSanitizationRuleSet,label:getCanvasLabel$1(o,{canvasId:d,windowId:f}),selectedAnnotationId:getSelectedAnnotationId$1(o,{windowId:f})}},mapDispatchToProps$M={deselectAnnotation:deselectAnnotation$1,hoverAnnotation:hoverAnnotation$1,selectAnnotation:selectAnnotation$1},styles$2R=function(o){return{annotationListItem:{"&$hovered":{backgroundColor:o.palette.action.hover},"&:hover,&:focus":{backgroundColor:o.palette.action.hover},borderBottom:"0.5px solid ".concat(o.palette.divider),cursor:"pointer",whiteSpace:"normal"},chip:{backgroundColor:o.palette.background.paper,marginRight:o.spacing(.5),marginTop:o.spacing(1)},hovered:{},sectionHeading:{paddingLeft:o.spacing(2),paddingRight:o.spacing(1),paddingTop:o.spacing(2)}}},enhance$1i=compose$2(withTranslation(),withStyles$2(styles$2R),connect(mapStateToProps$15,mapDispatchToProps$M),withPlugins$1("CanvasAnnotations"));const CanvasAnnotations=enhance$1i(CanvasAnnotations$1);var purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},deepPurple={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},cyan={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},teal={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},lightGreen={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},lime={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},yellow={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},amber={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},deepOrange={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"}
42,brown={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},blueGrey={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};const index$1=Object.freeze(Object.defineProperty({__proto__:null,amber,blue:blue$1,blueGrey,brown,common:common$1,cyan,deepOrange,deepPurple,green:green$1,grey:grey$1,indigo:indigo$1,lightBlue,lightGreen,lime,orange:orange$1,pink:pink$1,purple,red:red$1,teal,yellow},Symbol.toStringTag,{value:"Module"}));function _toArray(l){return _arrayWithHoles$n(l)||_iterableToArray$w(l)||_unsupportedIterableToArray$G(l)||_nonIterableRest$n()}var styles$2Q=function(o){return{root:{height:0,overflow:"hidden",transition:o.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}},Collapse=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.collapsedHeight,v=o.collapsedSize,g=v===void 0?"0px":v,m=o.component,y=m===void 0?"div":m,b=o.disableStrictModeCompat,w=b===void 0?!1:b,E=o.in,P=o.onEnter,C=o.onEntered,T=o.onEntering,O=o.onExit,x=o.onExited,A=o.onExiting,D=o.style,j=o.timeout,M=j===void 0?duration.standard:j,N=o.TransitionComponent,q=N===void 0?Transition:N,z=_objectWithoutProperties$q(o,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),H=useTheme$1(),U=reactExports.useRef(),F=reactExports.useRef(null),B=reactExports.useRef(),G=typeof(h||g)=="number"?"".concat(h||g,"px"):h||g;reactExports.useEffect(function(){return function(){clearTimeout(U.current)}},[]);var Q=H.unstable_strictMode&&!w,K=reactExports.useRef(null),Z=useForkRef(u,Q?K:void 0),te=function($e){return function(Ee,xe){if($e){var Se=Q?[K.current,Ee]:[Ee,xe],Ie=_slicedToArray$n(Se,2),ge=Ie[0],Y=Ie[1];Y===void 0?$e(ge):$e(ge,Y)}}},oe=te(function(se,$e){se.style.height=G,P&&P(se,$e)}),fe=te(function(se,$e){var Ee=F.current?F.current.clientHeight:0,xe=getTransitionProps({style:D,timeout:M},{mode:"enter"}),Se=xe.duration;if(M==="auto"){var Ie=H.transitions.getAutoHeightDuration(Ee);se.style.transitionDuration="".concat(Ie,"ms"),B.current=Ie}else se.style.transitionDuration=typeof Se=="string"?Se:"".concat(Se,"ms");se.style.height="".concat(Ee,"px"),T&&T(se,$e)}),le=te(function(se,$e){se.style.height="auto",C&&C(se,$e)}),Re=te(function(se){var $e=F.current?F.current.clientHeight:0;se.style.height="".concat($e,"px"),O&&O(se)}),Ae=te(x),_e=te(function(se){var $e=F.current?F.current.clientHeight:0,Ee=getTransitionProps({style:D,timeout:M},{mode:"exit"}),xe=Ee.duration;if(M==="auto"){var Se=H.transitions.getAutoHeightDuration($e);se.style.transitionDuration="".concat(Se,"ms"),B.current=Se}else se.style.transitionDuration=typeof xe=="string"?xe:"".concat(xe,"ms");se.style.height=G,A&&A(se)}),ee=function($e,Ee){var xe=Q?$e:Ee;M==="auto"&&(U.current=setTimeout(xe,B.current||0))};return reactExports.createElement(q,_extends$v({in:E,onEnter:oe,onEntered:le,onEntering:fe,onExit:Re,onExited:Ae,onExiting:_e,addEndListener:ee,nodeRef:Q?K:void 0,timeout:M==="auto"?null:M},z),function(se,$e){return reactExports.createElement(y,_extends$v({className:clsx$1(f.root,f.container,p,{entered:f.entered,exited:!E&&G==="0px"&&f.hidden}[se]),style:_extends$v({minHeight:G},D),ref:Z},$e),reactExports.createElement("div",{className:f.wrapper,ref:F},reactExports.createElement("div",{className:f.wrapperInner},d)))})});Collapse.muiSupportAuto=!0;const Collapse$1=withStyles$2(styles$2Q,{name:"MuiCollapse"})(Collapse);var AccordionContext=reactExports.createContext({}),styles$2P=function(o){var u={duration:o.transitions.duration.shortest};return{root:{position:"relative",transition:o.transitions.create(["margin"],u),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:o.palette.divider,transition:o.transitions.create(["opacity","background-color"],u)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}
42},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:o.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:o.shape.borderRadius,borderTopRightRadius:o.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:o.shape.borderRadius,borderBottomRightRadius:o.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}},Accordion=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.defaultExpanded,v=h===void 0?!1:h,g=o.disabled,m=g===void 0?!1:g,y=o.expanded,b=o.onChange,w=o.square,E=w===void 0?!1:w,P=o.TransitionComponent,C=P===void 0?Collapse$1:P,T=o.TransitionProps,O=_objectWithoutProperties$q(o,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),x=useControlled({controlled:y,default:v,name:"Accordion",state:"expanded"}),A=_slicedToArray$n(x,2),D=A[0],j=A[1],M=reactExports.useCallback(function(F){j(!D),b&&b(F,!D)},[D,b,j]),N=reactExports.Children.toArray(d),q=_toArray(N),z=q[0],H=q.slice(1),U=reactExports.useMemo(function(){return{expanded:D,disabled:m,toggle:M}},[D,m,M]);return reactExports.createElement(Paper$1,_extends$v({className:clsx$1(f.root,p,D&&f.expanded,m&&f.disabled,!E&&f.rounded),ref:u,square:E},O),reactExports.createElement(AccordionContext.Provider,{value:U},z),reactExports.createElement(C,_extends$v({in:D,timeout:"auto"},T),reactExports.createElement("div",{"aria-labelledby":z.props.id,id:z.props["aria-controls"],role:"region"},H)))});const Accordion$1=withStyles$2(styles$2P,{name:"MuiAccordion"})(Accordion);var styles$2O={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},AccordionActions=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.disableSpacing,h=p===void 0?!1:p,v=_objectWithoutProperties$q(o,["classes","className","disableSpacing"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,!h&&d.spacing),ref:u},v))});const AccordionActions_default=withStyles$2(styles$2O,{name:"MuiAccordionActions"})(AccordionActions);var styles$2N=function(o){return{root:{display:"flex",padding:o.spacing(1,2,2)}}},AccordionDetails=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=_objectWithoutProperties$q(o,["classes","className"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f),ref:u},p))});const AccordionDetails$1=withStyles$2(styles$2N,{name:"MuiAccordionDetails"})(AccordionDetails);var styles$2M=function(o){var u={duration:o.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:o.transitions.create(["min-height","background-color"],u),padding:o.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:o.palette.action.focus},"&$disabled":{opacity:o.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:o.transitions.create(["margin"],u),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:o.transitions.create("transform",u),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}},AccordionSummary=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.expandIcon,v=o.focusVisibleClassName,g=o.IconButtonProps,m=g===void 0?{}:g,y=o.onClick,b=_objectWithoutProperties$q(o,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),w=reactExports.useContext(AccordionContext),E=w.disabled,P=E===void 0?!1:E,C=w.expanded,T=w.toggle,O=function(A){T&&T(A),y&&y(A)};return reactExports.createElement(ButtonBase$1,_extends$v({focusRipple:!1,disableRipple:!0,disabled:P,component:"div","aria-expanded":C,className:clsx$1(f.root,p,P&&f.disabled,C&&f.expanded),focusVisibleClassName:clsx$1(f.focusVisible,f.focused,v),onClick:O,ref:u},b),reactExports.createElement("div",{className:clsx$1(f.content,C&&f.expanded)},d),h&&reactExports.createElement(IconButton$1,_extends$v({className:clsx$1(f.expandIcon,C&&f.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},m),h))});const AccordionSummary$1=withStyles$2(styles$2M,{name:"MuiAccordionSummary"})(AccordionSummary);var styles$2L=function(o){var u=o.palette.type==="light"?o.palette.grey[100]:o.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:o.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:u,color:o.palette.getContrastText(u)},colorPrimary:{backgroundColor:o.palette.primary.main,color:o.palette.primary.contrastText},colorSecondary:{backgroundColor:o.palette.secondary.main,color:o.palette.secondary.c
42ontrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}},AppBar=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"primary":p,v=o.position,g=v===void 0?"fixed":v,m=_objectWithoutProperties$q(o,["classes","className","color","position"]);return reactExports.createElement(Paper$1,_extends$v({square:!0,component:"header",elevation:4,className:clsx$1(d.root,d["position".concat(capitalize$1(g))],d["color".concat(capitalize$1(h))],f,g==="fixed"&&"mui-fixed"),ref:u},m))});const AppBar$1=withStyles$2(styles$2L,{name:"MuiAppBar"})(AppBar),Person=createSvgIcon(reactExports.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"}));var styles$2K=function(o){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:o.typography.fontFamily,fontSize:o.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:o.palette.background.default,backgroundColor:o.palette.type==="light"?o.palette.grey[400]:o.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:o.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}};function useLoaded(l){var o=l.src,u=l.srcSet,d=reactExports.useState(!1),f=d[0],p=d[1];return reactExports.useEffect(function(){if(!(!o&&!u)){p(!1);var h=!0,v=new Image;return v.src=o,v.srcSet=u,v.onload=function(){h&&p("loaded")},v.onerror=function(){h&&p("error")},function(){h=!1}}},[o,u]),f}var Avatar=reactExports.forwardRef(function(o,u){var d=o.alt,f=o.children,p=o.classes,h=o.className,v=o.component,g=v===void 0?"div":v,m=o.imgProps,y=o.sizes,b=o.src,w=o.srcSet,E=o.variant,P=E===void 0?"circular":E,C=_objectWithoutProperties$q(o,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),T=null,O=useLoaded({src:b,srcSet:w}),x=b||w,A=x&&O!=="error";return A?T=reactExports.createElement("img",_extends$v({alt:d,src:b,srcSet:w,sizes:y,className:p.img},m)):f!=null?T=f:x&&d?T=d[0]:T=reactExports.createElement(Person,{className:p.fallback}),reactExports.createElement(g,_extends$v({className:clsx$1(p.root,p.system,p[P],h,!A&&p.colorDefault),ref:u},C),T)});const Avatar$1=withStyles$2(styles$2K,{name:"MuiAvatar"})(Avatar);var styles$2J={entering:{opacity:1},entered:{opacity:1}},defaultTimeout$2={enter:duration.enteringScreen,exit:duration.leavingScreen},Fade=reactExports.forwardRef(function(o,u){var d=o.children,f=o.disableStrictModeCompat,p=f===void 0?!1:f,h=o.in,v=o.onEnter,g=o.onEntered,m=o.onEntering,y=o.onExit,b=o.onExited,w=o.onExiting,E=o.style,P=o.TransitionComponent,C=P===void 0?Transition:P,T=o.timeout,O=T===void 0?defaultTimeout$2:T,x=_objectWithoutProperties$q(o,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),A=useTheme$1(),D=A.unstable_strictMode&&!p,j=reactExports.useRef(null),M=useForkRef(d.ref,u),N=useForkRef(D?j:void 0,M),q=function(K){return function(Z,te){if(K){var oe=D?[j.current,Z]:[Z,te],fe=_slicedToArray$n(oe,2),le=fe[0],Re=fe[1];Re===void 0?K(le):K(le,Re)}}},z=q(m),H=q(function(Q,K){reflow(Q);var Z=getTransitionProps({style:E,timeout:O},{mode:"enter"});Q.style.webkitTransition=A.transitions.create("opacity",Z),Q.style.transition=A.transitions.create("opacity",Z),v&&v(Q,K)}),U=q(g),F=q(w),B=q(function(Q){var K=getTransitionProps({style:E,timeout:O},{mode:"exit"});Q.style.webkitTransition=A.transitions.create("opacity",K),Q.style.transition=A.transitions.create("opacity",K),y&&y(Q)}),G=q(b);return reactExports.createElement(C,_extends$v({appear:!0,in:h,nodeRef:D?j:void 0,onEnter:H,onEntered:U,onEntering:z,onExit:B,onExited:G,onExiting:F,timeout:O},x),function(Q,K){return reactExports.cloneElement(d,_extends$v({style:_extends$v({opacity:0,visibility:Q==="exited"&&!h?"hidden":void 0},styles$2J[Q],E,d.props.style),ref:N},K))})}),styles$2I={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"}},Backdrop=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.invisible,v=h===void 0?!1:h,g=o.open,m=o.transitionDuration,y=o.TransitionComponent,b=y===void 0?Fade:y,w=_objectWithoutProperties$q(o,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return reactExports.createElement(b,_extends$v({in:g,timeout:m},w),reactExports.createElement("div",{className:clsx$1(f.root,p,v&&f.invisible),"aria-hidden":!0,ref:u},d))});const Backdrop$1=withStyles$2(styles$2I,{name:"MuiBackdrop"})(Backdrop);var styles$2H=function(o){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:o.palette.background.paper}}},BottomNavigation=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.component,v=h===void 0?"div":h,g=o.onChange,m=o.showLabels,y=m===void 0?!1:m,b=o.value,w=_objectWithoutProperties$q(o,["children","classes","className","component","onChange","showLabels","value"]);return reactExports.createElement(v,_extends$v({className:clsx$1(f.root,p),ref:u},w),reactExports.Children.map(d,function(E,P){if(!reactExports.isValidElement(E))return null;var C=E.props.value===void 0?P:E.props.value;return reactExports.cloneElement(E,{selected:C===b,showLabel:E.props.showLabel!==void 0?E.props.showLabel:y,value:C,onChange:g})}))});const BottomNavigation_default=withStyles$2(styles$2H,{name:"MuiBottomN
42avigation"})(BottomNavigation);var styles$2G=function(o){return{root:{transition:o.transitions.create(["color","padding-top"],{duration:o.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:o.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:o.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:o.typography.fontFamily,fontSize:o.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:o.typography.pxToRem(14)}}}},BottomNavigationAction=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.icon,h=o.label,v=o.onChange,g=o.onClick,m=o.selected,y=o.showLabel,b=o.value,w=_objectWithoutProperties$q(o,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]),E=function(C){v&&v(C,b),g&&g(C)};return reactExports.createElement(ButtonBase$1,_extends$v({ref:u,className:clsx$1(d.root,f,m?d.selected:!y&&d.iconOnly),focusRipple:!0,onClick:E},w),reactExports.createElement("span",{className:d.wrapper},p,reactExports.createElement("span",{className:clsx$1(d.label,m?d.selected:!y&&d.iconOnly)},h)))});const BottomNavigationAction_default=withStyles$2(styles$2G,{name:"MuiBottomNavigationAction"})(BottomNavigationAction);var styleFunction=styleFunctionSx(compose$3(borders,display,flexbox,grid,positions,palette,boxShadow,sizing,spacing,typography)),Box=styled("div")(styleFunction,{name:"MuiBox"});const MoreHorizIcon=createSvgIcon(reactExports.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"}));var styles$2F=function(o){return{root:{display:"flex",marginLeft:o.spacing(.5),marginRight:o.spacing(.5),backgroundColor:o.palette.grey[100],color:o.palette.grey[700],borderRadius:2,cursor:"pointer","&:hover, &:focus":{backgroundColor:o.palette.grey[200]},"&:active":{boxShadow:o.shadows[0],backgroundColor:emphasize(o.palette.grey[200],.12)}},icon:{width:24,height:16}}};function BreadcrumbCollapsed(l){var o=l.classes,u=_objectWithoutProperties$q(l,["classes"]);return reactExports.createElement(ButtonBase$1,_extends$v({component:"li",className:o.root,focusRipple:!0},u),reactExports.createElement(MoreHorizIcon,{className:o.icon}))}const BreadcrumbCollapsed$1=withStyles$2(styles$2F,{name:"PrivateBreadcrumbCollapsed"})(BreadcrumbCollapsed);var styles$2E={root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"},li:{},separator:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}};function insertSeparators(l,o,u){return l.reduce(function(d,f,p){return p<l.length-1?d=d.concat(f,reactExports.createElement("li",{"aria-hidden":!0,key:"separator-".concat(p),className:o},u)):d.push(f),d},[])}var Breadcrumbs=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.component,v=h===void 0?"nav":h,g=o.expandText,m=g===void 0?"Show path":g,y=o.itemsAfterCollapse,b=y===void 0?1:y,w=o.itemsBeforeCollapse,E=w===void 0?1:w,P=o.maxItems,C=P===void 0?8:P,T=o.separator,O=T===void 0?"/":T,x=_objectWithoutProperties$q(o,["children","classes","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),A=reactExports.useState(!1),D=A[0],j=A[1],M=function(z){var H=function(F){j(!0);var B=F.currentTarget.parentNode.querySelector("a[href],button,[tabindex]");B&&B.focus()};return E+b>=z.length?z:[].concat(_toConsumableArray$w(z.slice(0,E)),[reactExports.createElement(BreadcrumbCollapsed$1,{"aria-label":m,key:"ellipsis",onClick:H})],_toConsumableArray$w(z.slice(z.length-b,z.length)))},N=reactExports.Children.toArray(d).filter(function(q){return reactExports.isValidElement(q)}).map(function(q,z){return reactExports.createElement("li",{className:f.li,key:"child-".concat(z)},q)});return reactExports.createElement(Typography$1,_extends$v({ref:u,component:v,color:"textSecondary",className:clsx$1(f.root,p)},x),reactExports.createElement("ol",{className:f.ol},insertSeparators(D||C&&N.length<=C?N:M(N),f.separator,O)))});const Breadcrumbs_default=withStyles$2(styles$2E,{name:"MuiBreadcrumbs"})(Breadcrumbs);var styles$2D=function(o){return{root:_extends$v({},o.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:o.shape.borderRadius,color:o.palette.text.primary,transition:o.transitions.create(["background-color","box-shadow","border"],{duration:o.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:o.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:o.palette.primary.main,"&:hover":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:o.palette.secondary.main,"&:hover":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(o.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(o.palette.action.disabledBackgroun
vendor: 8,973 bytes, line 42
42d)}},outlinedPrimary:{color:o.palette.primary.main,border:"1px solid ".concat(alpha(o.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(o.palette.primary.main),backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:o.palette.secondary.main,border:"1px solid ".concat(alpha(o.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(o.palette.secondary.main),backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(o.palette.action.disabled)}},contained:{color:o.palette.getContrastText(o.palette.grey[300]),backgroundColor:o.palette.grey[300],boxShadow:o.shadows[2],"&:hover":{backgroundColor:o.palette.grey.A100,boxShadow:o.shadows[4],"@media (hover: none)":{boxShadow:o.shadows[2],backgroundColor:o.palette.grey[300]},"&$disabled":{backgroundColor:o.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:o.shadows[6]},"&:active":{boxShadow:o.shadows[8]},"&$disabled":{color:o.palette.action.disabled,boxShadow:o.shadows[0],backgroundColor:o.palette.action.disabledBackground}},containedPrimary:{color:o.palette.primary.contrastText,backgroundColor:o.palette.primary.main,"&:hover":{backgroundColor:o.palette.primary.dark,"@media (hover: none)":{backgroundColor:o.palette.primary.main}}},containedSecondary:{color:o.palette.secondary.contrastText,backgroundColor:o.palette.secondary.main,"&:hover":{backgroundColor:o.palette.secondary.dark,"@media (hover: none)":{backgroundColor:o.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:o.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:o.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}}}},Button=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.color,v=h===void 0?"default":h,g=o.component,m=g===void 0?"button":g,y=o.disabled,b=y===void 0?!1:y,w=o.disableElevation,E=w===void 0?!1:w,P=o.disableFocusRipple,C=P===void 0?!1:P,T=o.endIcon,O=o.focusVisibleClassName,x=o.fullWidth,A=x===void 0?!1:x,D=o.size,j=D===void 0?"medium":D,M=o.startIcon,N=o.type,q=N===void 0?"button":N,z=o.variant,H=z===void 0?"text":z,U=_objectWithoutProperties$q(o,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),F=M&&reactExports.createElement("span",{className:clsx$1(f.startIcon,f["iconSize".concat(capitalize$1(j))])},M),B=T&&reactExports.createElement("span",{className:clsx$1(f.endIcon,f["iconSize".concat(capitalize$1(j))])},T);return reactExports.createElement(ButtonBase$1,_extends$v({className:clsx$1(f.root,f[H],p,v==="inherit"?f.colorInherit:v!=="default"&&f["".concat(H).concat(capitalize$1(v))],j!=="medium"&&[f["".concat(H,"Size").concat(capitalize$1(j))],f["size".concat(capitalize$1(j))]],E&&f.disableElevation,b&&f.disabled,A&&f.fullWidth),component:m,disabled:b,focusRipple:!C,focusVisibleClassName:clsx$1(f.focusVisible,O),ref:u,type:q},U),reactExports.createElement("span",{className:f.label},F,d,B))});const Button$1=withStyles$2(styles$2D,{name:"MuiButton"})(Button);Button$1.styles;var styles$2C=function(o){return{root:{display:"inline-flex",borderRadius:o.shape.borderRadius},contained:{boxShadow:o.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(o.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(o.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:alpha(o.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:alpha(o.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:o.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:o.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(o.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(o.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(o.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(o.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:o.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:o.palette.secondary.dark}}}},ButtonGroup=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.color,v=h===void 0?"default":h,g=o.component,m=g===void 0?"div":g,y=o.disabled,b=y===void 0?!1:y,w=o.disableElevation,E=w===void 0?!1:w,P=o.disableFocusRipple,C=P===void 0?!1:P,T=o.disableRipple,O=T===void 0?!1:T,x=o.fullWidth,A=x===void 0?!1:x,D=o.orientation,j=D===void 0?"horizontal":D,M=o.size,N=M===void 0?"medium":M,q=o.variant,z=q===void 0?"outlined":q,H=_objectWithoutProperties$q(o,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),U=clsx$1(f.grouped,f["grouped".concat(capitalize$1(j))],f["grouped".concat(capitalize$1(z))],f["grouped".concat(capitalize$1(z)).concat(capitalize$1(j))],f["grouped".concat(capitalize$1(z)).concat(v!=="default"?capitalize$1(v):"")],b&&f.disabled);return reactExports.createElement(m,_extends$v({role:"group",className:clsx$1(f.root,p,A&&f.fullWidth,E&&f.disableElevation,z==="contained"&&f.contained,j==="vertical"&&f.vertical),ref:u},H),reactExports.Children.map(d,function(F){return reactExports.isValidElement(F)?reactExports.cloneElement(F,{className:clsx$1(U,F.props.className),color:F.props.color||v,disabled:F.props.disabled||b,disableElevation:F.props.disableElevation||E,disableFocusRipple:C,disableRipple:O,fullWidth:A,size:F.props.size||N,variant:F.props.variant||z}):null}))});const ButtonGroup$1=withStyles$2(styles$2C,{name:"MuiButtonGroup"})(ButtonGroup);var styles$2B={root:{overflow:"hidden"}},Card=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.raised,h=p===void 0?!1:p,v=_objectWithoutProperties$q(o,["classes","className","raised"]);return reactExports.createElement(Paper$1,_extends$v({className:clsx$1(d.root,f),elevation:h?8:1,ref:u},v))});const Card$1=withStyles$2(styles$2B,{name:"MuiCard"})(Card);var styles$2A=function(o){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:o.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:o.transitions.create("opacity",{duration:o.transitions.duration.short})}}},CardActionArea=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.focusVisibleClassName,v=_objectWithoutProperties$q(o,["children","classes","className","focusVisibleClassName"]);return reactExports.createElement(ButtonBase$1,_extends$v({className:clsx$1(f.root,p),focusVisibleClassName:clsx$1(h,f.focu
42sVisible),ref:u},v),d,reactExports.createElement("span",{className:f.focusHighlight}))});const CardActionArea_default=withStyles$2(styles$2A,{name:"MuiCardActionArea"})(CardActionArea);var styles$2z={root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},CardActions=reactExports.forwardRef(function(o,u){var d=o.disableSpacing,f=d===void 0?!1:d,p=o.classes,h=o.className,v=_objectWithoutProperties$q(o,["disableSpacing","classes","className"]);return reactExports.createElement("div",_extends$v({className:clsx$1(p.root,h,!f&&p.spacing),ref:u},v))});const CardActions_default=withStyles$2(styles$2z,{name:"MuiCardActions"})(CardActions);var styles$2y={root:{padding:16,"&:last-child":{paddingBottom:24}}},CardContent=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?"div":p,v=_objectWithoutProperties$q(o,["classes","className","component"]);return reactExports.createElement(h,_extends$v({className:clsx$1(d.root,f),ref:u},v))});const CardContent$1=withStyles$2(styles$2y,{name:"MuiCardContent"})(CardContent);var styles$2x={root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},CardHeader=reactExports.forwardRef(function(o,u){var d=o.action,f=o.avatar,p=o.classes,h=o.className,v=o.component,g=v===void 0?"div":v,m=o.disableTypography,y=m===void 0?!1:m,b=o.subheader,w=o.subheaderTypographyProps,E=o.title,P=o.titleTypographyProps,C=_objectWithoutProperties$q(o,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),T=E;T!=null&&T.type!==Typography$1&&!y&&(T=reactExports.createElement(Typography$1,_extends$v({variant:f?"body2":"h5",className:p.title,component:"span",display:"block"},P),T));var O=b;return O!=null&&O.type!==Typography$1&&!y&&(O=reactExports.createElement(Typography$1,_extends$v({variant:f?"body2":"body1",className:p.subheader,color:"textSecondary",component:"span",display:"block"},w),O)),reactExports.createElement(g,_extends$v({className:clsx$1(p.root,h),ref:u},C),f&&reactExports.createElement("div",{className:p.avatar},f),reactExports.createElement("div",{className:p.content},T,O),d&&reactExports.createElement("div",{className:p.action},d))});const CardHeader_default=withStyles$2(styles$2x,{name:"MuiCardHeader"})(CardHeader);var styles$2w={root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},MEDIA_COMPONENTS=["video","audio","picture","iframe","img"],CardMedia=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.component,v=h===void 0?"div":h,g=o.image,m=o.src,y=o.style,b=_objectWithoutProperties$q(o,["children","classes","className","component","image","src","style"]),w=MEDIA_COMPONENTS.indexOf(v)!==-1,E=!w&&g?_extends$v({backgroundImage:'url("'.concat(g,'")')},y):y;return reactExports.createElement(v,_extends$v({className:clsx$1(f.root,p,w&&f.media,"picture img".indexOf(v)!==-1&&f.img),ref:u,style:E,src:w?g||m:void 0},b),d)});const CardMedia_default=withStyles$2(styles$2w,{name:"MuiCardMedia"})(CardMedia);var FormControlContext=reactExports.createContext();function useFormControl$1(){return reactExports.useContext(FormControlContext)}function useFormControl(){return reactExports.useContext(FormControlContext)}var styles$2v={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},SwitchBase=reactExports.forwardRef(function(o,u){var d=o.autoFocus,f=o.checked,p=o.checkedIcon,h=o.classes,v=o.className,g=o.defaultChecked,m=o.disabled,y=o.icon,b=o.id,w=o.inputProps,E=o.inputRef,P=o.name,C=o.onBlur,T=o.onChange,O=o.onFocus,x=o.readOnly,A=o.required,D=o.tabIndex,j=o.type,M=o.value,N=_objectWithoutProperties$q(o,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),q=useControlled({controlled:f,default:!!g,
42name:"SwitchBase",state:"checked"}),z=_slicedToArray$n(q,2),H=z[0],U=z[1],F=useFormControl(),B=function(oe){O&&O(oe),F&&F.onFocus&&F.onFocus(oe)},G=function(oe){C&&C(oe),F&&F.onBlur&&F.onBlur(oe)},Q=function(oe){var fe=oe.target.checked;U(fe),T&&T(oe,fe)},K=m;F&&typeof K>"u"&&(K=F.disabled);var Z=j==="checkbox"||j==="radio";return reactExports.createElement(IconButton$1,_extends$v({component:"span",className:clsx$1(h.root,v,H&&h.checked,K&&h.disabled),disabled:K,tabIndex:null,role:void 0,onFocus:B,onBlur:G,ref:u},N),reactExports.createElement("input",_extends$v({autoFocus:d,checked:f,defaultChecked:g,className:h.input,disabled:K,id:Z&&b,name:P,onChange:Q,readOnly:x,ref:E,required:A,tabIndex:D,type:j,value:M},w)),H?p:y)});const SwitchBase$1=withStyles$2(styles$2v,{name:"PrivateSwitchBase"})(SwitchBase),CheckBoxOutlineBlankIcon=createSvgIcon(reactExports.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),CheckBoxIcon=createSvgIcon(reactExports.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),IndeterminateCheckBoxIcon=createSvgIcon(reactExports.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));var styles$2u=function(o){return{root:{color:o.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:o.palette.primary.main,"&:hover":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:o.palette.action.disabled}},colorSecondary:{"&$checked":{color:o.palette.secondary.main,"&:hover":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:o.palette.action.disabled}}}},defaultCheckedIcon$1=reactExports.createElement(CheckBoxIcon,null),defaultIcon$1=reactExports.createElement(CheckBoxOutlineBlankIcon,null),defaultIndeterminateIcon=reactExports.createElement(IndeterminateCheckBoxIcon,null),Checkbox=reactExports.forwardRef(function(o,u){var d=o.checkedIcon,f=d===void 0?defaultCheckedIcon$1:d,p=o.classes,h=o.color,v=h===void 0?"secondary":h,g=o.icon,m=g===void 0?defaultIcon$1:g,y=o.indeterminate,b=y===void 0?!1:y,w=o.indeterminateIcon,E=w===void 0?defaultIndeterminateIcon:w,P=o.inputProps,C=o.size,T=C===void 0?"medium":C,O=_objectWithoutProperties$q(o,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),x=b?E:m,A=b?E:f;return reactExports.createElement(SwitchBase$1,_extends$v({type:"checkbox",classes:{root:clsx$1(p.root,p["color".concat(capitalize$1(v))],b&&p.indeterminate),checked:p.checked,disabled:p.disabled},color:v,inputProps:_extends$v({"data-indeterminate":b},P),icon:reactExports.cloneElement(x,{fontSize:x.props.fontSize===void 0&&T==="small"?T:x.props.fontSize}),checkedIcon:reactExports.cloneElement(A,{fontSize:A.props.fontSize===void 0&&T==="small"?T:A.props.fontSize}),ref:u},O))});const Checkbox_default=withStyles$2(styles$2u,{name:"MuiCheckbox"})(Checkbox);var SIZE=44,styles$2t=function(o){return{root:{display:"inline-block"},static:{transition:o.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:o.transitions.create("transform")},colorPrimary:{color:o.palette.primary.main},colorSecondary:{color:o.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:o.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:o.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"}}},CircularProgress$1=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"primary":p,v=o.disableShrink,g=v===void 0?!1:v,m=o.size,y=m===void 0?40:m,b=o.style,w=o.thickness,E=w===void 0?3.6:w,P=o.value,C=P===void 0?0:P,T=o.variant,O=T===void 0?"indeterminate":T,x=_objectWithoutProperties$q(o,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),A={},D={},j={};if(O==="determinate"||O==="static"){var M=2*Math.PI*((SIZE-E)/2);A.strokeDasharray=M.toFixed(3),j["aria-valuenow"]=Math.round(C),A.strokeDashoffset="".concat(((100-C)/100*M).toFixed(3),"px"),D.transform="rotate(-90deg)"}return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,h!=="inherit"&&d["color".concat(capitalize$1(h))],{determinate:d.determinate,indeterminate:d.indeterminate,static:d.static}[O]),style:_extends$v({width:y,height:y},D,b),ref:u,role:"progressbar"},j,x),reactExports.createElement("svg",{className:d.svg,viewBox:"".concat(SIZE/2," ").concat(SIZE/2," ").concat(SIZE," ").concat(SIZE)},reactExports.createElement("circle",{className:clsx$1(d.circle,g&&d.circleDisableShrink,{determinate:d.circleDeterminate,indeterminate:d.circleIndeterminate,static:d.circleStatic}[O]),style:A,cx:SIZE,cy:SIZE,r:(SIZE-E)/2,fill:"none",strokeWidth:E})))});const CircularProgress$2=withStyles$2(styles$2t,{name:"MuiCircularProgress",flip:!1})(CircularProgress$1),CircularProgress=Object.freeze(Object.defineProperty({__proto__:null,default:CircularProgress$2},Symbol.toStringTag,{value:"Module"}));function mapEventPropToEvent(l){return l.substring(2).toLowerCase()}function clickedRootScrollbar(l){return document.documentElement.clientWidth<l.clientX||document.documentElement.clientHeight<l.clientY}function ClickAwayListener(l){var o=l.children,u=l.disableReactTree,d=u===void 0?!1:u,f=l.mouseEvent,p=f===void 0?"onClick":f,h=l.onClickAway,v=l.touchEvent,g=v===void 0?"onTouchEnd":v,m=reactExports.useRef(!1),y=reactExports.useRef(null),b=reactExports.useRef(!1),w=reactExports.useRef(!1);reactExports.useEffect(function(){return setTimeout(function(){b.current=!0},0),function(){b.current=!1}},[]);var E=reactExports.useCallback(function(x){y.current=reactDomExports.findDOMNode(x)},[]),P=useForkRef(o.ref,E),C=useEventCallback(function(x){var A=w.current;if(w.current=!1,!(!b.current||!y.current||clickedRootScrollbar(x))){if(m.current){m.current=!1;return}var D;if(x.composedPath)D=x.composedPath().indexOf(y.current)>-1;else{var j=ownerDocument(y.current);D=!j.documentElement.contains(x.target)||y.current.contains(x.target)}!D&&(d||!A)&&h(x)}}),T=function(A){return function(D){w.current=!0;var j=o.props[A];
42j&&j(D)}},O={ref:P};return g!==!1&&(O[g]=T(g)),reactExports.useEffect(function(){if(g!==!1){var x=mapEventPropToEvent(g),A=ownerDocument(y.current),D=function(){m.current=!0};return A.addEventListener(x,C),A.addEventListener("touchmove",D),function(){A.removeEventListener(x,C),A.removeEventListener("touchmove",D)}}},[C,g]),p!==!1&&(O[p]=T(p)),reactExports.useEffect(function(){if(p!==!1){var x=mapEventPropToEvent(p),A=ownerDocument(y.current);return A.addEventListener(x,C),function(){A.removeEventListener(x,C)}}},[C,p]),reactExports.createElement(reactExports.Fragment,null,reactExports.cloneElement(o,O))}var styles$2s=function(o){return{root:_defineProperty$1z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:o.spacing(2),paddingRight:o.spacing(2),display:"block"},o.breakpoints.up("sm"),{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(o.breakpoints.values).reduce(function(u,d){var f=o.breakpoints.values[d];return f!==0&&(u[o.breakpoints.up(d)]={maxWidth:f}),u},{}),maxWidthXs:_defineProperty$1z({},o.breakpoints.up("xs"),{maxWidth:Math.max(o.breakpoints.values.xs,444)}),maxWidthSm:_defineProperty$1z({},o.breakpoints.up("sm"),{maxWidth:o.breakpoints.values.sm}),maxWidthMd:_defineProperty$1z({},o.breakpoints.up("md"),{maxWidth:o.breakpoints.values.md}),maxWidthLg:_defineProperty$1z({},o.breakpoints.up("lg"),{maxWidth:o.breakpoints.values.lg}),maxWidthXl:_defineProperty$1z({},o.breakpoints.up("xl"),{maxWidth:o.breakpoints.values.xl})}},Container=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?"div":p,v=o.disableGutters,g=v===void 0?!1:v,m=o.fixed,y=m===void 0?!1:m,b=o.maxWidth,w=b===void 0?"lg":b,E=_objectWithoutProperties$q(o,["classes","className","component","disableGutters","fixed","maxWidth"]);return reactExports.createElement(h,_extends$v({className:clsx$1(d.root,f,y&&d.fixed,g&&d.disableGutters,w!==!1&&d["maxWidth".concat(capitalize$1(String(w)))]),ref:u},E))});const Container_default=withStyles$2(styles$2s,{name:"MuiContainer"})(Container);var html={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},body=function(o){return _extends$v({color:o.palette.text.primary},o.typography.body2,{backgroundColor:o.palette.background.default,"@media print":{backgroundColor:o.palette.common.white}})},styles$2r=function(o){return{"@global":{html,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:_extends$v({margin:0},body(o),{"&::backdrop":{backgroundColor:o.palette.background.default}})}}};function CssBaseline(l){var o=l.children,u=o===void 0?null:o;return l.classes,reactExports.createElement(reactExports.Fragment,null,u)}const CssBaseline_default=withStyles$2(styles$2r,{name:"MuiCssBaseline"})(CssBaseline);function isOverflowing(l){var o=ownerDocument(l);return o.body===l?ownerWindow(o).innerWidth>o.documentElement.clientWidth:l.scrollHeight>l.clientHeight}function ariaHidden(l,o){o?l.setAttribute("aria-hidden","true"):l.removeAttribute("aria-hidden")}function getPaddingRight(l){return parseInt(window.getComputedStyle(l)["padding-right"],10)||0}function ariaHiddenSiblings(l,o,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],f=arguments.length>4?arguments[4]:void 0,p=[o,u].concat(_toConsumableArray$w(d)),h=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(l.children,function(v){v.nodeType===1&&p.indexOf(v)===-1&&h.indexOf(v.tagName)===-1&&ariaHidden(v,f)})}function findIndexOf(l,o){var u=-1;return l.some(function(d,f){return o(d)?(u=f,!0):!1}),u}function handleContainer(l,o){var u=[],d=[],f=l.container,p;if(!o.disableScrollLock){if(isOverflowing(f)){var h=getScrollbarSize();u.push({value:f.style.paddingRight,key:"padding-right",el:f}),f.style["padding-right"]="".concat(getPaddingRight(f)+h,"px"),p=ownerDocument(f).querySelectorAll(".mui-fixed"),[].forEach.call(p,function(y){d.push(y.style.paddingRight),y.style.paddingRight="".concat(getPaddingRight(y)+h,"px")})}var v=f.parentElement,g=v.nodeName==="HTML"&&window.getComputedStyle(v)["overflow-y"]==="scroll"?v:f;u.push({value:g.style.overflow,key:"overflow",el:g}),g.style.overflow="hidden"}var m=function(){p&&[].forEach.call(p,function(b,w){d[w]?b.style.paddingRight=d[w]:b.style.removeProperty("padding-right")}),u.forEach(function(b){var w=b.value,E=b.el,P=b.key;w?E.style.setProperty(P,w):E.style.removeProperty(P)})};return m}function getHiddenSiblings(l){var o=[];return[].forEach.call(l.children,function(u){u.getAttribute&&u.getAttribute("aria-hidden")==="true"&&o.push(u)}),o}var ModalManager=(function(){function l(){_classCallCheck$2k(this,l),this.modals=[],this.containers=[]}return _createClass$2c(l,[{key:"add",value:function(u,d){var f=this.modals.indexOf(u);if(f!==-1)return f;f=this.modals.length,this.modals.push(u),u.modalRef&&ariaHidden(u.modalRef,!1);var p=getHiddenSiblings(d);ariaHiddenSiblings(d,u.mountNode,u.modalRef,p,!0);var h=findIndexOf(this.containers,function(v){return v.container===d});return h!==-1?(this.containers[h].modals.push(u),f):(this.containers.push({modals:[u],container:d,restore:null,hiddenSiblingNodes:p}),f)}},{key:"mount",value:function(u,d){var f=findIndexOf(this.containers,function(h){return h.modals.indexOf(u)!==-1}),p=this.containers[f];p.restore||(p.restore=handleContainer(p,d))}},{key:"remove",value:function(u){var d=this.modals.indexOf(u);if(d===-1)return d;var f=findIndexOf(this.containers,function(v){return v.modals.indexOf(u)!==-1}),p=this.containers[f];if(p.modals.splice(p.modals.indexOf(u),1),this.modals.splice(d,1),p.modals.length===0)p.restore&&p.restore(
42),u.modalRef&&ariaHidden(u.modalRef,!0),ariaHiddenSiblings(p.container,u.mountNode,u.modalRef,p.hiddenSiblingNodes,!1),this.containers.splice(f,1);else{var h=p.modals[p.modals.length-1];h.modalRef&&ariaHidden(h.modalRef,!1)}return d}},{key:"isTopModal",value:function(u){return this.modals.length>0&&this.modals[this.modals.length-1]===u}}]),l})();function Unstable_TrapFocus(l){var o=l.children,u=l.disableAutoFocus,d=u===void 0?!1:u,f=l.disableEnforceFocus,p=f===void 0?!1:f,h=l.disableRestoreFocus,v=h===void 0?!1:h,g=l.getDoc,m=l.isEnabled,y=l.open,b=reactExports.useRef(),w=reactExports.useRef(null),E=reactExports.useRef(null),P=reactExports.useRef(),C=reactExports.useRef(null),T=reactExports.useCallback(function(A){C.current=reactDomExports.findDOMNode(A)},[]),O=useForkRef(o.ref,T),x=reactExports.useRef();return reactExports.useEffect(function(){x.current=y},[y]),!x.current&&y&&typeof window<"u"&&(P.current=g().activeElement),reactExports.useEffect(function(){if(y){var A=ownerDocument(C.current);!d&&C.current&&!C.current.contains(A.activeElement)&&(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex",-1),C.current.focus());var D=function(){var q=C.current;if(q!==null){if(!A.hasFocus()||p||!m()||b.current){b.current=!1;return}C.current&&!C.current.contains(A.activeElement)&&C.current.focus()}},j=function(q){p||!m()||q.keyCode!==9||A.activeElement===C.current&&(b.current=!0,q.shiftKey?E.current.focus():w.current.focus())};A.addEventListener("focus",D,!0),A.addEventListener("keydown",j,!0);var M=setInterval(function(){D()},50);return function(){clearInterval(M),A.removeEventListener("focus",D,!0),A.removeEventListener("keydown",j,!0),v||(P.current&&P.current.focus&&P.current.focus(),P.current=null)}}},[d,p,v,m,y]),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{tabIndex:0,ref:w,"data-test":"sentinelStart"}),reactExports.cloneElement(o,{ref:O}),reactExports.createElement("div",{tabIndex:0,ref:E,"data-test":"sentinelEnd"}))}var styles$2q={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"}},SimpleBackdrop=reactExports.forwardRef(function(o,u){var d=o.invisible,f=d===void 0?!1:d,p=o.open,h=_objectWithoutProperties$q(o,["invisible","open"]);return p?reactExports.createElement("div",_extends$v({"aria-hidden":!0,ref:u},h,{style:_extends$v({},styles$2q.root,f?styles$2q.invisible:{},h.style)})):null});function getContainer(l){return l=typeof l=="function"?l():l,reactDomExports.findDOMNode(l)}function getHasTransition(l){return l.children?l.children.props.hasOwnProperty("in"):!1}var defaultManager=new ModalManager,styles$2p=function(o){return{root:{position:"fixed",zIndex:o.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},Modal=reactExports.forwardRef(function(o,u){var d=useTheme$2(),f=getThemeProps({name:"MuiModal",props:_extends$v({},o),theme:d}),p=f.BackdropComponent,h=p===void 0?SimpleBackdrop:p,v=f.BackdropProps,g=f.children,m=f.closeAfterTransition,y=m===void 0?!1:m,b=f.container,w=f.disableAutoFocus,E=w===void 0?!1:w,P=f.disableBackdropClick,C=P===void 0?!1:P,T=f.disableEnforceFocus,O=T===void 0?!1:T,x=f.disableEscapeKeyDown,A=x===void 0?!1:x,D=f.disablePortal,j=D===void 0?!1:D,M=f.disableRestoreFocus,N=M===void 0?!1:M,q=f.disableScrollLock,z=q===void 0?!1:q,H=f.hideBackdrop,U=H===void 0?!1:H,F=f.keepMounted,B=F===void 0?!1:F,G=f.manager,Q=G===void 0?defaultManager:G,K=f.onBackdropClick,Z=f.onClose,te=f.onEscapeKeyDown,oe=f.onRendered,fe=f.open,le=_objectWithoutProperties$q(f,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Re=reactExports.useState(!0),Ae=Re[0],_e=Re[1],ee=reactExports.useRef({}),se=reactExports.useRef(null),$e=reactExports.useRef(null),Ee=useForkRef($e,u),xe=getHasTransition(f),Se=function(){return ownerDocument(se.current)},Ie=function(){return ee.current.modalRef=$e.current,ee.current.mountNode=se.current,ee.current},ge=function(){Q.mount(Ie(),{disableScrollLock:z}),$e.current.scrollTop=0},Y=useEventCallback(function(){var Oe=getContainer(b)||Se().body;Q.add(Ie(),Oe),$e.current&&ge()}),ie=reactExports.useCallback(function(){return Q.isTopModal(Ie())},[Q]),ce=useEventCallback(function(Oe){se.current=Oe,Oe&&(oe&&oe(),fe&&ie()?ge():ariaHidden($e.current,!0))}),ue=reactExports.useCallback(function(){Q.remove(Ie())},[Q]);if(reactExports.useEffect(function(){return function(){ue()}},[ue]),reactExports.useEffect(function(){fe?Y():(!xe||!y)&&ue()},[fe,ue,xe,y,Y]),!B&&!fe&&(!xe||Ae))return null;var pe=function(){_e(!1)},Te=function(){_e(!0),y&&ue()},Ce=function(Ne){Ne.target===Ne.currentTarget&&(K&&K(Ne),!C&&Z&&Z(Ne,"backdropClick"))},Fe=function(Ne){Ne.key!=="Escape"||!ie()||(te&&te(Ne),A||(Ne.stopPropagation(),Z&&Z(Ne,"escapeKeyDown")))},He=styles$2p(d||{zIndex:zIndex$1}),we={};return g.props.tabIndex===void 0&&(we.tabIndex=g.props.tabIndex||"-1"),xe&&(we.onEnter=createChainedFunction(pe,g.props.onEnter),we.onExited=createChainedFunction(Te,g.props.onExited)),reactExports.createElement(Portal,{ref:ce,container:b,disablePortal:j},reactExports.createElement("div",_extends$v({ref:Ee,onKeyDown:Fe,role:"presentation"},le,{style:_extends$v({},He.root,!fe&&Ae?He.hidden:{},le.style)}),U?null:reactExports.createElement(h,_extends$v({open:fe,onClick:Ce},v)),reactExports.createElement(Unstable_TrapFocus,{disableEnforceFocus:O,disableAutoFocus:E,disableRestoreFocus:N,getDoc:Se,isEnabled:ie,open:fe},reactExports.cloneElement(g,we))))}),styles$2o=function(o){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',dis
42play:"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(o.breakpoints.values.xs,444),"&$paperScrollBody":_defineProperty$1z({},o.breakpoints.down(Math.max(o.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:o.breakpoints.values.sm,"&$paperScrollBody":_defineProperty$1z({},o.breakpoints.down(o.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:o.breakpoints.values.md,"&$paperScrollBody":_defineProperty$1z({},o.breakpoints.down(o.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:o.breakpoints.values.lg,"&$paperScrollBody":_defineProperty$1z({},o.breakpoints.down(o.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:o.breakpoints.values.xl,"&$paperScrollBody":_defineProperty$1z({},o.breakpoints.down(o.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%"}}}},defaultTransitionDuration$1={enter:duration.enteringScreen,exit:duration.leavingScreen},Dialog=reactExports.forwardRef(function(o,u){var d=o.BackdropProps,f=o.children,p=o.classes,h=o.className,v=o.disableBackdropClick,g=v===void 0?!1:v,m=o.disableEscapeKeyDown,y=m===void 0?!1:m,b=o.fullScreen,w=b===void 0?!1:b,E=o.fullWidth,P=E===void 0?!1:E,C=o.maxWidth,T=C===void 0?"sm":C,O=o.onBackdropClick,x=o.onClose,A=o.onEnter,D=o.onEntered,j=o.onEntering,M=o.onEscapeKeyDown,N=o.onExit,q=o.onExited,z=o.onExiting,H=o.open,U=o.PaperComponent,F=U===void 0?Paper$1:U,B=o.PaperProps,G=B===void 0?{}:B,Q=o.scroll,K=Q===void 0?"paper":Q,Z=o.TransitionComponent,te=Z===void 0?Fade:Z,oe=o.transitionDuration,fe=oe===void 0?defaultTransitionDuration$1:oe,le=o.TransitionProps,Re=o["aria-describedby"],Ae=o["aria-labelledby"],_e=_objectWithoutProperties$q(o,["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"]),ee=reactExports.useRef(),se=function(xe){ee.current=xe.target},$e=function(xe){xe.target===xe.currentTarget&&xe.target===ee.current&&(ee.current=null,O&&O(xe),!g&&x&&x(xe,"backdropClick"))};return reactExports.createElement(Modal,_extends$v({className:clsx$1(p.root,h),BackdropComponent:Backdrop$1,BackdropProps:_extends$v({transitionDuration:fe},d),closeAfterTransition:!0},g?{disableBackdropClick:g}:{},{disableEscapeKeyDown:y,onEscapeKeyDown:M,onClose:x,open:H,ref:u},_e),reactExports.createElement(te,_extends$v({appear:!0,in:H,timeout:fe,onEnter:A,onEntering:j,onEntered:D,onExit:N,onExiting:z,onExited:q,role:"none presentation"},le),reactExports.createElement("div",{className:clsx$1(p.container,p["scroll".concat(capitalize$1(K))]),onMouseUp:$e,onMouseDown:se},reactExports.createElement(F,_extends$v({elevation:24,role:"dialog","aria-describedby":Re,"aria-labelledby":Ae},G,{className:clsx$1(p.paper,p["paperScroll".concat(capitalize$1(K))],p["paperWidth".concat(capitalize$1(String(T)))],G.className,w&&p.paperFullScreen,P&&p.paperFullWidth)}),f))))});const Dialog$1=withStyles$2(styles$2o,{name:"MuiDialog"})(Dialog);var styles$2n={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},DialogActions=reactExports.forwardRef(function(o,u){var d=o.disableSpacing,f=d===void 0?!1:d,p=o.classes,h=o.className,v=_objectWithoutProperties$q(o,["disableSpacing","classes","className"]);return reactExports.createElement("div",_extends$v({className:clsx$1(p.root,h,!f&&p.spacing),ref:u},v))});const DialogActions$1=withStyles$2(styles$2n,{name:"MuiDialogActions"})(DialogActions);var styles$2m=function(o){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(o.palette.divider),borderBottom:"1px solid ".concat(o.palette.divider)}}},DialogContent=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.dividers,h=p===void 0?!1:p,v=_objectWithoutProperties$q(o,["classes","className","dividers"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,h&&d.dividers),ref:u},v))});const DialogContent$1=withStyles$2(styles$2m,{name:"MuiDialogContent"})(DialogContent);var styles$2l={root:{marginBottom:12}},DialogContentText=reactExports.forwardRef(function(o,u){return reactExports.createElement(Typography$1,_extends$v({component:"p",variant:"body1",color:"textSecondary",ref:u},o))});const DialogContentText$1=withStyles$2(styles$2l,{name:"MuiDialogContentText"})(DialogContentText);var styles$2k={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},DialogTitle=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.disableTypography,v=h===void 0?!1:h,g=_objectWithoutProperties$q(o,["children","classes","className","disableTypography"]);return reactExports.createElement("div",_extends$v({className:clsx$1(f.root,p),ref:u},g),v?d:reactExports.createElement(Typography$1,{component:"h2",variant:"h6"},d))});const DialogTitle$1=withStyles$2(styles$2k,{name:"MuiDialogTitle"})(DialogTitle);var styles$2j=function(o){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:o.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:alpha(o.palette.divider,.08)},middle:{marginLeft:o.spacing(2),marginRight:o.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},Divider=reactExports.forwardRef(function(o,u){var d=o.absolute,f=d===void 0?!1:d,p=o.classes,h=o.className,v=o.component,g=v===void 0?"hr":v,m=o.flexItem,y=m===void 0?!1:m,b=o.light,w=b===void 0?!1:b,E=o.orientation,P=E===void 0?"horizontal":E,C=o.role,T=C===void 0?g!=="hr"?"separator":void 0:C,O=o.variant,x=O===void 0?"fullWidth":O,A=_objectWithoutProperties$q(o,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return reactExports.createElement(g,_extends$v({className:clsx$1(p.root,h,x!=="fullWidth"&&p[x],f&&p.absolute,y&&p.flexItem,w&&p.light,P==="vertical"&&p.vertical),role:T,ref:u},A))});const Divider_default=withStyles$2(styles$2j,{name:"MuiDivider"})(Divider);function getTranslateValue(l,o){var u=o.getBoundingClientRect(),d;if(o.fakeTransform)d=o.fakeTransform;else{var f=window.getComputedStyle(o);d=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}var p=0,h=0;
42if(d&&d!=="none"&&typeof d=="string"){var v=d.split("(")[1].split(")")[0].split(",");p=parseInt(v[4],10),h=parseInt(v[5],10)}return l==="left"?"translateX(".concat(window.innerWidth,"px) translateX(").concat(p-u.left,"px)"):l==="right"?"translateX(-".concat(u.left+u.width-p,"px)"):l==="up"?"translateY(".concat(window.innerHeight,"px) translateY(").concat(h-u.top,"px)"):"translateY(-".concat(u.top+u.height-h,"px)")}function setTranslateValue(l,o){var u=getTranslateValue(l,o);u&&(o.style.webkitTransform=u,o.style.transform=u)}var defaultTimeout$1={enter:duration.enteringScreen,exit:duration.leavingScreen},Slide=reactExports.forwardRef(function(o,u){var d=o.children,f=o.direction,p=f===void 0?"down":f,h=o.in,v=o.onEnter,g=o.onEntered,m=o.onEntering,y=o.onExit,b=o.onExited,w=o.onExiting,E=o.style,P=o.timeout,C=P===void 0?defaultTimeout$1:P,T=o.TransitionComponent,O=T===void 0?Transition:T,x=_objectWithoutProperties$q(o,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=useTheme$1(),D=reactExports.useRef(null),j=reactExports.useCallback(function(K){D.current=reactDomExports.findDOMNode(K)},[]),M=useForkRef(d.ref,j),N=useForkRef(M,u),q=function(Z){return function(te){Z&&(te===void 0?Z(D.current):Z(D.current,te))}},z=q(function(K,Z){setTranslateValue(p,K),reflow(K),v&&v(K,Z)}),H=q(function(K,Z){var te=getTransitionProps({timeout:C,style:E},{mode:"enter"});K.style.webkitTransition=A.transitions.create("-webkit-transform",_extends$v({},te,{easing:A.transitions.easing.easeOut})),K.style.transition=A.transitions.create("transform",_extends$v({},te,{easing:A.transitions.easing.easeOut})),K.style.webkitTransform="none",K.style.transform="none",m&&m(K,Z)}),U=q(g),F=q(w),B=q(function(K){var Z=getTransitionProps({timeout:C,style:E},{mode:"exit"});K.style.webkitTransition=A.transitions.create("-webkit-transform",_extends$v({},Z,{easing:A.transitions.easing.sharp})),K.style.transition=A.transitions.create("transform",_extends$v({},Z,{easing:A.transitions.easing.sharp})),setTranslateValue(p,K),y&&y(K)}),G=q(function(K){K.style.webkitTransition="",K.style.transition="",b&&b(K)}),Q=reactExports.useCallback(function(){D.current&&setTranslateValue(p,D.current)},[p]);return reactExports.useEffect(function(){if(!(h||p==="down"||p==="right")){var K=debounce$3(function(){D.current&&setTranslateValue(p,D.current)});return window.addEventListener("resize",K),function(){K.clear(),window.removeEventListener("resize",K)}}},[p,h]),reactExports.useEffect(function(){h||Q()},[h,Q]),reactExports.createElement(O,_extends$v({nodeRef:D,onEnter:z,onEntered:U,onEntering:H,onExit:B,onExited:G,onExiting:F,appear:!0,in:h,timeout:C},x),function(K,Z){return reactExports.cloneElement(d,_extends$v({ref:N,style:_extends$v({visibility:K==="exited"&&!h?"hidden":void 0},E,d.props.style)},Z))})}),styles$2i=function(o){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:o.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(o.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(o.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(o.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(o.palette.divider)},modal:{}}},oppositeDirection={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(l){return["left","right"].indexOf(l)!==-1}function getAnchor(l,o){return l.direction==="rtl"&&isHorizontal(o)?oppositeDirection[o]:o}var defaultTransitionDuration={enter:duration.enteringScreen,exit:duration.leavingScreen},Drawer=reactExports.forwardRef(function(o,u){var d=o.anchor,f=d===void 0?"left":d,p=o.BackdropProps,h=o.children,v=o.classes,g=o.className,m=o.elevation,y=m===void 0?16:m,b=o.ModalProps;b=b===void 0?{}:b;var w=b.BackdropProps,E=_objectWithoutProperties$q(b,["BackdropProps"]),P=o.onClose,C=o.open,T=C===void 0?!1:C,O=o.PaperProps,x=O===void 0?{}:O,A=o.SlideProps,D=o.TransitionComponent,j=D===void 0?Slide:D,M=o.transitionDuration,N=M===void 0?defaultTransitionDuration:M,q=o.variant,z=q===void 0?"temporary":q,H=_objectWithoutProperties$q(o,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),U=useTheme$1(),F=reactExports.useRef(!1);reactExports.useEffect(function(){F.current=!0},[]);var B=getAnchor(U,f),G=reactExports.createElement(Paper$1,_extends$v({elevation:z==="temporary"?y:0,square:!0},x,{className:clsx$1(v.paper,v["paperAnchor".concat(capitalize$1(B))],x.className,z!=="temporary"&&v["paperAnchorDocked".concat(capitalize$1(B))])}),h);if(z==="permanent")return reactExports.createElement("div",_extends$v({className:clsx$1(v.root,v.docked,g),ref:u},H),G);var Q=reactExports.createElement(j,_extends$v({in:T,direction:oppositeDirection[B],timeout:N,appear:F.current},A),G);return z==="persistent"?reactExports.createElement("div",_extends$v({className:clsx$1(v.root,v.docked,g),ref:u},H),Q):reactExports.createElement(Modal,_extends$v({BackdropProps:_extends$v({},p,w,{transitionDuration:N}),BackdropComponent:Backdrop$1,className:clsx$1(v.root,v.modal,g),open:T,onClose:P,ref:u},H,E),Q)});const Drawer$1=withStyles$2(styles$2i,{name:"MuiDrawer",flip:!1})(Drawer);var ExpansionPanelContext=reactExports.createContext({}),styles$2h=function(o){var u={duration:o.transitions.duration.shortest};return{root:{position:"relative",transition:o.transitions.create(["margin"],u),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:o.palette.divider,transition:o.transitions.create(["opacity","background-color"],u)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}
42},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:o.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:o.shape.borderRadius,borderTopRightRadius:o.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:o.shape.borderRadius,borderBottomRightRadius:o.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}},ExpansionPanel=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.defaultExpanded,v=h===void 0?!1:h,g=o.disabled,m=g===void 0?!1:g,y=o.expanded,b=o.onChange,w=o.square,E=w===void 0?!1:w,P=o.TransitionComponent,C=P===void 0?Collapse$1:P,T=o.TransitionProps,O=_objectWithoutProperties$q(o,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),x=useControlled({controlled:y,default:v,name:"ExpansionPanel",state:"expanded"}),A=_slicedToArray$n(x,2),D=A[0],j=A[1],M=reactExports.useCallback(function(F){j(!D),b&&b(F,!D)},[D,b,j]),N=reactExports.Children.toArray(d),q=_toArray(N),z=q[0],H=q.slice(1),U=reactExports.useMemo(function(){return{expanded:D,disabled:m,toggle:M}},[D,m,M]);return reactExports.createElement(Paper$1,_extends$v({className:clsx$1(f.root,p,D&&f.expanded,m&&f.disabled,!E&&f.rounded),ref:u,square:E},O),reactExports.createElement(ExpansionPanelContext.Provider,{value:U},z),reactExports.createElement(C,_extends$v({in:D,timeout:"auto"},T),reactExports.createElement("div",{"aria-labelledby":z.props.id,id:z.props["aria-controls"],role:"region"},H)))});const ExpansionPanel_default=withStyles$2(styles$2h,{name:"MuiExpansionPanel"})(ExpansionPanel);var styles$2g={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},ExpansionPanelActions=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.disableSpacing,h=p===void 0?!1:p,v=_objectWithoutProperties$q(o,["classes","className","disableSpacing"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,!h&&d.spacing),ref:u},v))});const ExpansionPanelActions_default=withStyles$2(styles$2g,{name:"MuiExpansionPanelActions"})(ExpansionPanelActions);var styles$2f=function(o){return{root:{display:"flex",padding:o.spacing(1,2,2)}}},ExpansionPanelDetails=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=_objectWithoutProperties$q(o,["classes","className"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f),ref:u},p))});const ExpansionPanelDetails_default=withStyles$2(styles$2f,{name:"MuiExpansionPanelDetails"})(ExpansionPanelDetails);var styles$2e=function(o){var u={duration:o.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:o.transitions.create(["min-height","background-color"],u),padding:o.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:o.palette.action.focus},"&$disabled":{opacity:o.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:o.transitions.create(["margin"],u),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:o.transitions.create("transform",u),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}},ExpansionPanelSummary=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.expandIcon,v=o.IconButtonProps,g=o.onBlur,m=o.onClick,y=o.onFocusVisible,b=_objectWithoutProperties$q(o,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),w=reactExports.useState(!1),E=w[0],P=w[1],C=function(q){P(!0),y&&y(q)},T=function(q){P(!1),g&&g(q)},O=reactExports.useContext(ExpansionPanelContext),x=O.disabled,A=x===void 0?!1:x,D=O.expanded,j=O.toggle,M=function(q){j&&j(q),m&&m(q)};return reactExports.createElement(ButtonBase$1,_extends$v({focusRipple:!1,disableRipple:!0,disabled:A,component:"div","aria-expanded":D,className:clsx$1(f.root,p,A&&f.disabled,D&&f.expanded,E&&f.focused),onFocusVisible:C,onBlur:T,onClick:M,ref:u},b),reactExports.createElement("div",{className:clsx$1(f.content,D&&f.expanded)},d),h&&reactExports.createElement(IconButton$1,_extends$v({className:clsx$1(f.expandIcon,D&&f.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},v),h))});const ExpansionPanelSummary_default=withStyles$2(styles$2e,{name:"MuiExpansionPanelSummary"})(ExpansionPanelSummary);var styles$2d=function(o){return{root:_extends$v({},o.typography.button,{boxSizing:"border-box",minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:o.shadows[6],"&:active":{boxShadow:o.shadows[12]},color:o.palette.getContrastText(o.palette.grey[300]),backgroundColor:o.palette.grey[300],"&:hover":{backgroundColor:o.palette.grey.A100,"@media (hover: none)":{backgroundColor:o.palette.grey[300]},"&$disabled":{backgroundColor:o.palette.action.disabledBackgroun
42d},textDecoration:"none"},"&$focusVisible":{boxShadow:o.shadows[6]},"&$disabled":{color:o.palette.action.disabled,boxShadow:o.shadows[0],backgroundColor:o.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:o.palette.primary.contrastText,backgroundColor:o.palette.primary.main,"&:hover":{backgroundColor:o.palette.primary.dark,"@media (hover: none)":{backgroundColor:o.palette.primary.main}}},secondary:{color:o.palette.secondary.contrastText,backgroundColor:o.palette.secondary.main,"&:hover":{backgroundColor:o.palette.secondary.dark,"@media (hover: none)":{backgroundColor:o.palette.secondary.main}}},extended:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}},Fab=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.color,v=h===void 0?"default":h,g=o.component,m=g===void 0?"button":g,y=o.disabled,b=y===void 0?!1:y,w=o.disableFocusRipple,E=w===void 0?!1:w,P=o.focusVisibleClassName,C=o.size,T=C===void 0?"large":C,O=o.variant,x=O===void 0?"circular":O,A=_objectWithoutProperties$q(o,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return reactExports.createElement(ButtonBase$1,_extends$v({className:clsx$1(f.root,p,T!=="large"&&f["size".concat(capitalize$1(T))],b&&f.disabled,x==="extended"&&f.extended,{primary:f.primary,secondary:f.secondary,inherit:f.colorInherit}[v]),component:m,disabled:b,focusRipple:!E,focusVisibleClassName:clsx$1(f.focusVisible,P),ref:u},A),reactExports.createElement("span",{className:f.label},d))});const Fab$1=withStyles$2(styles$2d,{name:"MuiFab"})(Fab);function formControlState(l){var o=l.props,u=l.states,d=l.muiFormControl;return u.reduce(function(f,p){return f[p]=o[p],d&&typeof o[p]>"u"&&(f[p]=d[p]),f},{})}function getStyleValue(l,o){return parseInt(l[o],10)||0}var useEnhancedEffect$4=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,styles$2c={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},TextareaAutosize=reactExports.forwardRef(function(o,u){var d=o.onChange,f=o.rows,p=o.rowsMax,h=o.rowsMin,v=o.maxRows,g=o.minRows,m=g===void 0?1:g,y=o.style,b=o.value,w=_objectWithoutProperties$q(o,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),E=v||p,P=f||h||m,C=reactExports.useRef(b!=null),T=C.current,O=reactExports.useRef(null),x=useForkRef(u,O),A=reactExports.useRef(null),D=reactExports.useRef(0),j=reactExports.useState({}),M=j[0],N=j[1],q=reactExports.useCallback(function(){var H=O.current,U=window.getComputedStyle(H),F=A.current;F.style.width=U.width,F.value=H.value||o.placeholder||"x",F.value.slice(-1)===`
43`&&(F.value+=" ");var B=U["box-sizing"],G=getStyleValue(U,"padding-bottom")+getStyleValue(U,"padding-top"),Q=getStyleValue(U,"border-bottom-width")+getStyleValue(U,"border-top-width"),K=F.scrollHeight-G;F.value="x";var Z=F.scrollHeight-G,te=K;P&&(te=Math.max(Number(P)*Z,te)),E&&(te=Math.min(Number(E)*Z,te)),te=Math.max(te,Z);var oe=te+(B==="border-box"?G+Q:0),fe=Math.abs(te-K)<=1;N(function(le){return D.current<20&&(oe>0&&Math.abs((le.outerHeightStyle||0)-oe)>1||le.overflow!==fe)?(D.current+=1,{overflow:fe,outerHeightStyle:oe}):le})},[E,P,o.placeholder]);reactExports.useEffect(function(){var H=debounce$3(function(){D.current=0,q()});return window.addEventListener("resize",H),function(){H.clear(),window.removeEventListener("resize",H)}},[q]),useEnhancedEffect$4(function(){q()}),reactExports.useEffect(function(){D.current=0},[b]);var z=function(U){D.current=0,T||q(),d&&d(U)};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("textarea",_extends$v({value:b,onChange:z,ref:x,rows:P,style:_extends$v({height:M.outerHeightStyle,overflow:M.overflow?"hidden":null},y)}
43,w)),reactExports.createElement("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:A,tabIndex:-1,style:_extends$v({},styles$2c.shadow,y)}))});function hasValue(l){return l!=null&&!(Array.isArray(l)&&l.length===0)}function isFilled(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l&&(hasValue(l.value)&&l.value!==""||o&&hasValue(l.defaultValue)&&l.defaultValue!=="")}function isAdornedStart(l){return l.startAdornment}var styles$2b=function(o){var u=o.palette.type==="light",d={color:"currentColor",opacity:u?.42:.5,transition:o.transitions.create("opacity",{duration:o.transitions.duration.shorter})},f={opacity:"0 !important"},p={opacity:u?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:_extends$v({},o.typography.body1,{color:o.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:o.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":d,"&::-moz-placeholder":d,"&:-ms-input-placeholder":d,"&::-ms-input-placeholder":d,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":f,"&::-moz-placeholder":f,"&:-ms-input-placeholder":f,"&::-ms-input-placeholder":f,"&:focus::-webkit-input-placeholder":p,"&:focus::-moz-placeholder":p,"&:focus:-ms-input-placeholder":p,"&:focus::-ms-input-placeholder":p},"&$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:{}}},useEnhancedEffect$3=typeof window>"u"?reactExports.useEffect:reactExports.useLayoutEffect,InputBase=reactExports.forwardRef(function(o,u){var d=o["aria-describedby"],f=o.autoComplete,p=o.autoFocus,h=o.classes,v=o.className;o.color;var g=o.defaultValue,m=o.disabled,y=o.endAdornment;o.error;var b=o.fullWidth,w=b===void 0?!1:b,E=o.id,P=o.inputComponent,C=P===void 0?"input":P,T=o.inputProps,O=T===void 0?{}:T,x=o.inputRef;o.margin;var A=o.multiline,D=A===void 0?!1:A,j=o.name,M=o.onBlur,N=o.onChange,q=o.onClick,z=o.onFocus,H=o.onKeyDown,U=o.onKeyUp,F=o.placeholder,B=o.readOnly,G=o.renderSuffix,Q=o.rows,K=o.rowsMax,Z=o.rowsMin,te=o.maxRows,oe=o.minRows,fe=o.startAdornment,le=o.type,Re=le===void 0?"text":le,Ae=o.value,_e=_objectWithoutProperties$q(o,["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"]),ee=O.value!=null?O.value:Ae,se=reactExports.useRef(ee!=null),$e=se.current,Ee=reactExports.useRef(),xe=reactExports.useCallback(function(Ye){},[]),Se=useForkRef(O.ref,xe),Ie=useForkRef(x,Se),ge=useForkRef(Ee,Ie),Y=reactExports.useState(!1),ie=Y[0],ce=Y[1],ue=useFormControl$1(),pe=formControlState({props:o,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});pe.focused=ue?ue.focused:ie,reactExports.useEffect(function(){!ue&&m&&ie&&(ce(!1),M&&M())},[ue,m,ie,M]);var Te=ue&&ue.onFilled,Ce=ue&&ue.onEmpty,Fe=reactExports.useCallback(function(Ye){isFilled(Ye)?Te&&Te():Ce&&Ce()},[Te,Ce]);useEnhancedEffect$3(function(){$e&&Fe({value:ee})},[ee,Fe,$e]);
43var He=function(Ge){if(pe.disabled){Ge.stopPropagation();return}z&&z(Ge),O.onFocus&&O.onFocus(Ge),ue&&ue.onFocus?ue.onFocus(Ge):ce(!0)},we=function(Ge){M&&M(Ge),O.onBlur&&O.onBlur(Ge),ue&&ue.onBlur?ue.onBlur(Ge):ce(!1)},Oe=function(Ge){if(!$e){var dt=Ge.target||Ee.current;if(dt==null)throw new Error(formatMuiErrorMessage(1));Fe({value:dt.value})}for(var ze=arguments.length,nt=new Array(ze>1?ze-1:0),Ze=1;Ze<ze;Ze++)nt[Ze-1]=arguments[Ze];O.onChange&&O.onChange.apply(O,[Ge].concat(nt)),N&&N.apply(void 0,[Ge].concat(nt))};reactExports.useEffect(function(){Fe(Ee.current)},[]);var Ne=function(Ge){Ee.current&&Ge.currentTarget===Ge.target&&Ee.current.focus(),q&&q(Ge)},qe=C,Be=_extends$v({},O,{ref:ge});typeof qe!="string"?Be=_extends$v({inputRef:ge,type:Re},Be,{ref:null}):D?Q&&!te&&!oe&&!K&&!Z?qe="textarea":(Be=_extends$v({minRows:Q||oe,rowsMax:K,maxRows:te},Be),qe=TextareaAutosize):Be=_extends$v({type:Re},Be);var Ve=function(Ge){Fe(Ge.animationName==="mui-auto-fill-cancel"?Ee.current:{value:"x"})};return reactExports.useEffect(function(){ue&&ue.setAdornedStart(!!fe)},[ue,fe]),reactExports.createElement("div",_extends$v({className:clsx$1(h.root,h["color".concat(capitalize$1(pe.color||"primary"))],v,pe.disabled&&h.disabled,pe.error&&h.error,w&&h.fullWidth,pe.focused&&h.focused,ue&&h.formControl,D&&h.multiline,fe&&h.adornedStart,y&&h.adornedEnd,pe.margin==="dense"&&h.marginDense),onClick:Ne,ref:u},_e),fe,reactExports.createElement(FormControlContext.Provider,{value:null},reactExports.createElement(qe,_extends$v({"aria-invalid":pe.error,"aria-describedby":d,autoComplete:f,autoFocus:p,defaultValue:g,disabled:pe.disabled,id:E,onAnimationStart:Ve,name:j,placeholder:F,readOnly:B,required:pe.required,rows:Q,value:ee,onKeyDown:H,onKeyUp:U},Be,{className:clsx$1(h.input,O.className,pe.disabled&&h.disabled,D&&h.inputMultiline,pe.hiddenLabel&&h.inputHiddenLabel,fe&&h.inputAdornedStart,y&&h.inputAdornedEnd,Re==="search"&&h.inputTypeSearch,pe.margin==="dense"&&h.inputMarginDense),onBlur:we,onChange:Oe,onFocus:He}))),y,G?G(_extends$v({},pe,{startAdornment:fe})):null)});const InputBase$1=withStyles$2(styles$2b,{name:"MuiInputBase"})(InputBase);var styles$2a=function(o){var u=o.palette.type==="light",d=u?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",f=u?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:f,borderTopLeftRadius:o.shape.borderRadius,borderTopRightRadius:o.shape.borderRadius,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),"&:hover":{backgroundColor:u?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:f}},"&$focused":{backgroundColor:u?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:u?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:o.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(o.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:o.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(d),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(o.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:o.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:o.palette.type==="light"?null:"#fff",caretColor:o.palette.type==="light"?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}}},FilledInput=reactExports.forwardRef(function(o,u){var d=o.disableUnderline,f=o.classes,p=o.fullWidth,h=p===void 0?!1:p,v=o.inputComponent,g=v===void 0?"input":v,m=o.multiline,y=m===void 0?!1:m,b=o.type,w=b===void 0?"text":b,E=_objectWithoutProperties$q(o,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return reactExports.createElement(InputBase$1,_extends$v({classes:_extends$v({},f,{root:clsx$1(f.root,!d&&f.underline),underline:null}),fullWidth:h,inputComponent:g,multiline:y,ref:u,type:w}
43,E))});FilledInput.muiName="Input";const FilledInput$1=withStyles$2(styles$2a,{name:"MuiFilledInput"})(FilledInput);var styles$29={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%"}},FormControl=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.color,v=h===void 0?"primary":h,g=o.component,m=g===void 0?"div":g,y=o.disabled,b=y===void 0?!1:y,w=o.error,E=w===void 0?!1:w,P=o.fullWidth,C=P===void 0?!1:P,T=o.focused,O=o.hiddenLabel,x=O===void 0?!1:O,A=o.margin,D=A===void 0?"none":A,j=o.required,M=j===void 0?!1:j,N=o.size,q=o.variant,z=q===void 0?"standard":q,H=_objectWithoutProperties$q(o,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),U=reactExports.useState(function(){var ee=!1;return d&&reactExports.Children.forEach(d,function(se){if(isMuiElement(se,["Input","Select"])){var $e=isMuiElement(se,["Select"])?se.props.input:se;$e&&isAdornedStart($e.props)&&(ee=!0)}}),ee}),F=U[0],B=U[1],G=reactExports.useState(function(){var ee=!1;return d&&reactExports.Children.forEach(d,function(se){isMuiElement(se,["Input","Select"])&&isFilled(se.props,!0)&&(ee=!0)}),ee}),Q=G[0],K=G[1],Z=reactExports.useState(!1),te=Z[0],oe=Z[1],fe=T!==void 0?T:te;b&&fe&&oe(!1);var le,Re=reactExports.useCallback(function(){K(!0)},[]),Ae=reactExports.useCallback(function(){K(!1)},[]),_e={adornedStart:F,setAdornedStart:B,color:v,disabled:b,error:E,filled:Q,focused:fe,fullWidth:C,hiddenLabel:x,margin:(N==="small"?"dense":void 0)||D,onBlur:function(){oe(!1)},onEmpty:Ae,onFilled:Re,onFocus:function(){oe(!0)},registerEffect:le,required:M,variant:z};return reactExports.createElement(FormControlContext.Provider,{value:_e},reactExports.createElement(m,_extends$v({className:clsx$1(f.root,p,D!=="none"&&f["margin".concat(capitalize$1(D))],C&&f.fullWidth),ref:u},H),d))});const FormControl$1=withStyles$2(styles$29,{name:"MuiFormControl"})(FormControl);var styles$28=function(o){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:o.palette.text.disabled}}}},FormControlLabel=reactExports.forwardRef(function(o,u){o.checked;var d=o.classes,f=o.className,p=o.control,h=o.disabled;o.inputRef;var v=o.label,g=o.labelPlacement,m=g===void 0?"end":g;o.name,o.onChange,o.value;var y=_objectWithoutProperties$q(o,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),b=useFormControl(),w=h;typeof w>"u"&&typeof p.props.disabled<"u"&&(w=p.props.disabled),typeof w>"u"&&b&&(w=b.disabled);var E={disabled:w};return["checked","name","onChange","value","inputRef"].forEach(function(P){typeof p.props[P]>"u"&&typeof o[P]<"u"&&(E[P]=o[P])}),reactExports.createElement("label",_extends$v({className:clsx$1(d.root,f,m!=="end"&&d["labelPlacement".concat(capitalize$1(m))],w&&d.disabled),ref:u},y),reactExports.cloneElement(p,E),reactExports.createElement(Typography$1,{component:"span",className:clsx$1(d.label,w&&d.disabled)},v))});const FormControlLabel$1=withStyles$2(styles$28,{name:"MuiFormControlLabel"})(FormControlLabel);var styles$27={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},FormGroup=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.row,h=p===void 0?!1:p,v=_objectWithoutProperties$q(o,["classes","className","row"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,h&&d.row),ref:u},v))});const FormGroup$1=withStyles$2(styles$27,{name:"MuiFormGroup"})(FormGroup);var styles$26=function(o){return{root:_extends$v({color:o.palette.text.secondary},o.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:o.palette.text.disabled},"&$error":{color:o.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},FormHelperText=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.component,v=h===void 0?"p":h;o.disabled,o.error,o.filled,o.focused,o.margin,o.required,o.variant;var g=_objectWithoutProperties$q(o,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"]),m=useFormControl(),y=formControlState({props:o,muiFormControl:m,states:["variant","margin","disabled","error","filled","focused","required"]});return reactExports.createElement(v,_extends$v({className:clsx$1(f.root,(y.variant==="filled"||y.variant==="outlined")&&f.contained,p,y.disabled&&f.disabled,y.error&&f.error,y.filled&&f.filled,y.focused&&f.focused,y.required&&f.required,y.margin==="dense"&&f.marginDense),ref:u},g),d===" "?reactExports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):d)});const FormHelperText$1=withStyles$2(styles$26,{name:"MuiFormHelperText"})(FormHelperText);var styles$25=function(o){return{root:_extends$v({color:o.palette.text.secondary},o.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:o.palette.primary.main},"&$disabled":{color:o.palette.text.disabled},"&$error":{color:o.palette.error.main}}),colorSecondary:{"&$focused":{color:o.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:o.palette.error.main}}}},FormLabel=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className;o.color;var h=o.component,v=h===void 0?"label":h;o.disabled,o.error,o.filled,o.focused,o.required;var g=_objectWithoutProperties$q(o,["children","classes","className","color","component","disabled","error","filled","focused","required"]),m=useFormControl(),y=formControlState({props:o,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]});return reactExports.createElement(v,_extends$v({className:clsx$1(f.root,f["color".concat(capitalize$1(y.color||"primary"))],p,y.disabled&&f.disabled,y.error&&f.error,y.filled&&f.filled,y.focused&&f.focused,y.required&&f.required),ref:u},g),d,y.required&&reactExports.createElement("span",{"aria-hidden":!0,
43className:clsx$1(f.asterisk,y.error&&f.error)}," ","*"))});const FormLabel$1=withStyles$2(styles$25,{name:"MuiFormLabel"})(FormLabel);var SPACINGS=[0,1,2,3,4,5,6,7,8,9,10],GRID_SIZES=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function generateGrid(l,o,u){var d={};GRID_SIZES.forEach(function(f){var p="grid-".concat(u,"-").concat(f);if(f===!0){d[p]={flexBasis:0,flexGrow:1,maxWidth:"100%"};return}if(f==="auto"){d[p]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};return}var h="".concat(Math.round(f/12*1e8)/1e6,"%");d[p]={flexBasis:h,flexGrow:0,maxWidth:h}}),u==="xs"?_extends$v(l,d):l[o.breakpoints.up(u)]=d}function getOffset(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,u=parseFloat(l);return"".concat(u/o).concat(String(l).replace(String(u),"")||"px")}function generateGutter(l,o){var u={};return SPACINGS.forEach(function(d){var f=l.spacing(d);f!==0&&(u["spacing-".concat(o,"-").concat(d)]={margin:"-".concat(getOffset(f,2)),width:"calc(100% + ".concat(getOffset(f),")"),"& > $item":{padding:getOffset(f,2)}})}),u}var styles$24=function(o){return _extends$v({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"}},generateGutter(o,"xs"),o.breakpoints.keys.reduce(function(u,d){return generateGrid(u,o,d),u},{}))},Grid=reactExports.forwardRef(function(o,u){var d=o.alignContent,f=d===void 0?"stretch":d,p=o.alignItems,h=p===void 0?"stretch":p,v=o.classes,g=o.className,m=o.component,y=m===void 0?"div":m,b=o.container,w=b===void 0?!1:b,E=o.direction,P=E===void 0?"row":E,C=o.item,T=C===void 0?!1:C,O=o.justify,x=o.justifyContent,A=x===void 0?"flex-start":x,D=o.lg,j=D===void 0?!1:D,M=o.md,N=M===void 0?!1:M,q=o.sm,z=q===void 0?!1:q,H=o.spacing,U=H===void 0?0:H,F=o.wrap,B=F===void 0?"wrap":F,G=o.xl,Q=G===void 0?!1:G,K=o.xs,Z=K===void 0?!1:K,te=o.zeroMinWidth,oe=te===void 0?!1:te,fe=_objectWithoutProperties$q(o,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),le=clsx$1(v.root,g,w&&[v.container,U!==0&&v["spacing-xs-".concat(String(U))]],T&&v.item,oe&&v.zeroMinWidth,P!=="row"&&v["direction-xs-".concat(String(P))],B!=="wrap"&&v["wrap-xs-".concat(String(B))],h!=="stretch"&&v["align-items-xs-".concat(String(h))],f!=="stretch"&&v["align-content-xs-".concat(String(f))],(O||A)!=="flex-start"&&v["justify-content-xs-".concat(String(O||A))],Z!==!1&&v["grid-xs-".concat(String(Z))],z!==!1&&v["grid-sm-".concat(String(z))],N!==!1&&v["grid-md-".concat(String(N))],j!==!1&&v["grid-lg-".concat(String(j))],Q!==!1&&v["grid-xl-".concat(String(Q))]);return reactExports.createElement(y,_extends$v({className:le,ref:u},fe))}),StyledGrid=withStyles$2(styles$24,{name:"MuiGrid"})(Grid),styles$23={root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},GridList=reactExports.forwardRef(function(o,u){var d=o.cellHeight,f=d===void 0?180:d,p=o.children,h=o.classes,v=o.className,g=o.cols,m=g===void 0?2:g,y=o.component,b=y===void 0?"ul":y,w=o.spacing,E=w===void 0?4:w,P=o.style,C=_objectWithoutProperties$q(o,["cellHeight","children","classes","className","cols","component","spacing","style"]);return reactExports.createElement(b,_extends$v({className:clsx$1(h.root,v),ref:u,style:_extends$v({margin:-E/2},P)},C),reactExports.Children.map(p,function(T){if(!reactExports.isValidElement(T))return null;var O=T.props.cols||1,x=T.props.rows||1;return reactExports.cloneElement(T,{style:_extends$v({width:"".concat(100/m*O,"%"),height:f==="auto"?"auto":f*x+E,padding:E/2},T.props.style)})}))});const GridList_default=withStyles$2(styles$23,{name:"MuiGridList"})(GridList);var styles$22={root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",to
43p:"50%"}},fit$1=function(o,u){if(!(!o||!o.complete))if(o.width/o.height>o.parentElement.offsetWidth/o.parentElement.offsetHeight){var d,f;(d=o.classList).remove.apply(d,_toConsumableArray$w(u.imgFullWidth.split(" "))),(f=o.classList).add.apply(f,_toConsumableArray$w(u.imgFullHeight.split(" ")))}else{var p,h;(p=o.classList).remove.apply(p,_toConsumableArray$w(u.imgFullHeight.split(" "))),(h=o.classList).add.apply(h,_toConsumableArray$w(u.imgFullWidth.split(" ")))}};function ensureImageCover$1(l,o){l&&(l.complete?fit$1(l,o):l.addEventListener("load",function(){fit$1(l,o)}))}var GridListTile=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className;o.cols;var h=o.component,v=h===void 0?"li":h;o.rows;var g=_objectWithoutProperties$q(o,["children","classes","className","cols","component","rows"]),m=reactExports.useRef(null);return reactExports.useEffect(function(){ensureImageCover$1(m.current,f)}),reactExports.useEffect(function(){var y=debounce$3(function(){fit$1(m.current,f)});return window.addEventListener("resize",y),function(){y.clear(),window.removeEventListener("resize",y)}},[f]),reactExports.createElement(v,_extends$v({className:clsx$1(f.root,p),ref:u},g),reactExports.createElement("div",{className:f.tile},reactExports.Children.map(d,function(y){return reactExports.isValidElement(y)?y.type==="img"||isMuiElement(y,["Image"])?reactExports.cloneElement(y,{ref:m}):y:null})))});const GridListTile_default=withStyles$2(styles$22,{name:"MuiGridListTile"})(GridListTile);var styles$21=function(o){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:o.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:o.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:o.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:o.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}},GridListTileBar=reactExports.forwardRef(function(o,u){var d=o.actionIcon,f=o.actionPosition,p=f===void 0?"right":f,h=o.classes,v=o.className,g=o.subtitle,m=o.title,y=o.titlePosition,b=y===void 0?"bottom":y,w=_objectWithoutProperties$q(o,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),E=d&&p;return reactExports.createElement("div",_extends$v({className:clsx$1(h.root,v,b==="top"?h.titlePositionTop:h.titlePositionBottom,g&&h.rootSubtitle),ref:u},w),reactExports.createElement("div",{className:clsx$1(h.titleWrap,{left:h.titleWrapActionPosLeft,right:h.titleWrapActionPosRight}[E])},reactExports.createElement("div",{className:h.title},m),g?reactExports.createElement("div",{className:h.subtitle},g):null),d?reactExports.createElement("div",{className:clsx$1(h.actionIcon,E==="left"&&h.actionIconActionPosLeft)},d):null)});const GridListTileBar_default=withStyles$2(styles$21,{name:"MuiGridListTileBar"})(GridListTileBar);function useMediaQuery$1(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=useTheme$2(),d=getThemeProps({theme:u,name:"MuiUseMediaQuery",props:{}}),f=typeof l=="function"?l(u):l;f=f.replace(/^@media( ?)/m,"");var p=typeof window<"u"&&typeof window.matchMedia<"u",h=_extends$v({},d,o),v=h.defaultMatches,g=v===void 0?!1:v,m=h.matchMedia,y=m===void 0?p?window.matchMedia:null:m,b=h.noSsr,w=b===void 0?!1:b,E=h.ssrMatchMedia,P=E===void 0?null:E,C=reactExports.useState(function(){return w&&p?y(f).matches:P?P(f).matches:g}),T=C[0],O=C[1];return reactExports.useEffect(function(){var x=!0;if(p){var A=y(f),D=function(){x&&O(A.matches)};return D(),A.addListener(D),function(){x=!1,A.removeListener(D)}}},[f,y,p]),T}const useMediaQuery=Object.freeze(Object.defineProperty({__proto__:null,default:useMediaQuery$1},Symbol.toStringTag,{value:"Module"}));var isWidthUp=function(o,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return d?keys.indexOf(o)<=keys.indexOf(u):keys.indexOf(o)<keys.indexOf(u)},isWidthDown=function(o,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return d?keys.indexOf(u)<=keys.indexOf(o):keys.indexOf(u)<keys.indexOf(o)},useEnhancedEffect$2=typeof window>"u"?reactExports.useEffect:reactExports.useLayoutEffect,withWidth=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(u){var d=o.withTheme,f=d===void 0?!1:d,p=o.noSSR,h=p===void 0?!1:p,v=o.initialWidth;function g(m){var y=useTheme$1(),b=m.theme||y,w=getThemeProps({theme:b,name:"MuiWithWidth",props:_extends$v({},m)}),E=w.initialWidth,P=w.width,C=_objectWithoutProperties$q(w,["initialWidth","width"]),T=reactExports.useState(!1),O=T[0],x=T[1];useEnhancedEffect$2(function(){x(!0)},[]);var A=b.breakpoints.keys.slice().reverse(),D=A.reduce(function(M,N){var q=useMediaQuery$1(b.breakpoints.up(N));return!M&&q?N:M},null),j=_extends$v({width:P||(O||h?D:void 0)||E||v},f?{theme:b}:{},C);return j.width===void 0?null:reactExports.createElement(u,j)}return hoistNonReactStatics(g,u),g}};function HiddenJs(l){var o=l.children,u=l.only,d=l.width,f=useTheme$1(),p=!0;if(u)if(Array.isArray(u))for(var h=0;h<u.length;h+=1){var v=u[h];if(d===v){p=!1;break}}else u&&d===u&&(p=!1);if(p)for(var g=0;g<f.breakpoints.keys.length;g+=1){var m=f.breakpoints.keys[g],y=l["".concat(m,"Up")],b=l["".concat(m,"Down")];if(y&&isWidthUp(m,d)||b&&isWidthDown(m,d)){p=!1;break}}return p?o:null}HiddenJs.propTypes={children:PropTypes.node,className:PropTypes.string,implementation:PropTypes.oneOf(["js","css"]),initialWidth:PropTypes.oneOf(["xs","sm","md","lg","xl"]),lgDown:PropTypes.bool,lgUp:PropTypes.bool,mdDown:PropTypes.bool,mdUp:PropTypes.bool,only:PropTypes.oneOfType([PropTypes.oneOf(["xs","sm","md","lg","xl"]),PropTypes.arrayOf(PropTypes.oneOf(["xs","sm","md","lg","xl"]))]),smDown:PropTypes.bool,smUp:PropTypes.bool,width:PropTypes.string.isRequired,xlDown:PropTypes.bool,xlUp:PropTypes.bool,xsDown:PropTypes.bool,xsUp:PropTypes.bool};const HiddenJs$1=withWidth()(HiddenJs);var styles$20=function(o){var u={display:"none"};return o.breakpoints.keys.reduce(function(d,f){return d["only".concat(capitalize$1(f))]=_defineProperty$1z({},o.breakpoints.only(f),u),d["".concat(f,"Up")]=_defineProperty$1z({},o.breakpoints.up(f),u),d["".concat(f,"Down")]=_defineProperty$1z({},o.breakpoints.down(f),u),d},{})};function HiddenCss(l){var o=l.children,u=l.classes,d=l.className,f=l.only;_objectWithoutProperties$q(l,["children","classes","className","only"]);var p=useTheme$1(),h=[];d&&h.push(d);for(var v=0;v<p.breakpoints.keys.length;v+=1){var g=p.breakpoints.keys[v],m=l["".concat(g,"Up")],y=l["".concat(g,"Down")];m&&h.push(u["".concat(g,"Up")]),y&&h.push(u["".concat(g,"Down")])}if(f){var b=Array.isArray(f)?f:[f];b.forEach(function(w){h.push(u["only".concat(capitalize$1(w))])})}return reactExports.createElement("div",{className:h.join(" ")},o)}const HiddenCss$1=withStyles$2(styles$20,{name:"PrivateHiddenCss"})(HiddenCss);function Hidden(l){var o=l.implementation,u=o===void 0?"js":o,d=l.lgDown,f=d===void 0?!1:d,p=l.lgUp,h=p===void 0?!1:p,v=l.mdDown,g=v===void 0?!1:v,m=l.mdUp,y=m===void 0?!1:m,b=l.smDown,w=b===void 0?!1:b,E=l.smUp,P=E===void 0?!1:E,C=l.xlDown,T=C===void 0?!1:C,O=l.xlUp,x=O===void 0?!1:O,A=l.xsDown,D=A===void 0?!1:A,j=l.xsUp,M=j===void 0?!1:j,N=_objectWithoutProperties$q(l,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return u==="js"?reactExports.createElement(HiddenJs$1,_extends$v({lgDown:f,lgUp:h,mdDown:g,mdUp:y,smDown:w,smUp:P,xlDown:T,xlUp:x,xsDown:D,xsUp:M},N)):reactExports.createElement(HiddenCss$1,_extends$v({lgDown:f,lgUp:h,mdDown:g,mdUp:y,smDown:w,smUp:P,xlDown:T,xlUp:x,xsDown:D,xsUp:M},N))}var styles$1$=function(o){return{root:{userSelect:"none",fontSize:o.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:o.palette.primary.main},colorSecondary:{color:o.palette.secondary.main},colorAction:{color:o.palette.action.active},colorError:{color:o.palette.error.main},colorDisabled:{color:o.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:o.typography.pxToRem(20)},fontSizeLarge:{fontSize:o.typography.pxToRem(36)}}},Icon=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"inherit":p,v=o.component,g=v===void 0?"span":v,m=o.fontSize,y=m===void 0?"medium":m,b=_objectWithoutProperties$q(o,["classes","className","color","component","fontSize"]);return reactExports.createElement(g,_extends$v({className:clsx$1("material-icons",d.root,f,h!=="inherit"&&d["color".concat(capitalize$1(h))],y!=="default"&&y!=="medium"&&d["fontSize".concat(capitalize$1(y))]),"aria-hidden":!0,ref:u},b))});Icon.muiName="Icon";const Icon_default=withStyles$2(styles$1$,{name:"MuiIcon"})(Icon);var styles$1_={root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},ImageList=reactExports.forwardRef(function(o,u){var d=o.cellHeight,f=o.children,p=o.classes,h=o.className,v=o.cols,g=v===void 0?2:v,m=o.component,y=m
43===void 0?"ul":m,b=o.gap,w=b===void 0?4:b,E=o.rowHeight,P=E===void 0?180:E,C=o.spacing,T=o.style,O=_objectWithoutProperties$q(o,["cellHeight","children","classes","className","cols","component","gap","rowHeight","spacing","style"]),x=C||w,A=d||P;return reactExports.createElement(y,_extends$v({className:clsx$1(p.root,h),ref:u,style:_extends$v({margin:-x/2},T)},O),reactExports.Children.map(f,function(D){if(!reactExports.isValidElement(D))return null;var j=D.props.cols||1,M=D.props.rows||1;return reactExports.cloneElement(D,{style:_extends$v({width:"".concat(100/g*j,"%"),height:A==="auto"?"auto":A*M+x,padding:x/2},D.props.style)})}))});const ImageList_default=withStyles$2(styles$1_,{name:"MuiImageList"})(ImageList);var styles$1Z={root:{boxSizing:"border-box",flexShrink:0},item:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},fit=function(o,u){if(!(!o||!o.complete))if(o.width/o.height>o.parentElement.offsetWidth/o.parentElement.offsetHeight){var d,f;(d=o.classList).remove.apply(d,_toConsumableArray$w(u.imgFullWidth.split(" "))),(f=o.classList).add.apply(f,_toConsumableArray$w(u.imgFullHeight.split(" ")))}else{var p,h;(p=o.classList).remove.apply(p,_toConsumableArray$w(u.imgFullHeight.split(" "))),(h=o.classList).add.apply(h,_toConsumableArray$w(u.imgFullWidth.split(" ")))}};function ensureImageCover(l,o){l&&(l.complete?fit(l,o):l.addEventListener("load",function(){fit(l,o)}))}var ImageListItem=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className;o.cols;var h=o.component,v=h===void 0?"li":h;o.rows;var g=_objectWithoutProperties$q(o,["children","classes","className","cols","component","rows"]),m=reactExports.useRef(null);return reactExports.useEffect(function(){ensureImageCover(m.current,f)}),reactExports.useEffect(function(){var y=debounce$3(function(){fit(m.current,f)});return window.addEventListener("resize",y),function(){y.clear(),window.removeEventListener("resize",y)}},[f]),reactExports.createElement(v,_extends$v({className:clsx$1(f.root,p),ref:u},g),reactExports.createElement("div",{className:f.item},reactExports.Children.map(d,function(y){return reactExports.isValidElement(y)?y.type==="img"||isMuiElement(y,["Image"])?reactExports.cloneElement(y,{ref:m}):y:null})))});const ImageListItem_default=withStyles$2(styles$1Z,{name:"MuiImageListItem"})(ImageListItem);var styles$1Y=function(o){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:o.typography.fontFamily},positionBottom:{bottom:0},positionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:o.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:o.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:o.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}},ImageListItemBar=reactExports.forwardRef(function(o,u){var d=o.actionIcon,f=o.actionPosition,p=f===void 0?"right":f,h=o.classes,v=o.className,g=o.subtitle,m=o.title,y=o.position,b=y===void 0?"bottom":y,w=o.titlePosition,E=_objectWithoutProperties$q(o,["actionIcon","actionPosition","classes","className","subtitle","title","position","titlePosition"]),P=w||b,C=d&&p;return reactExports.createElement("div",_extends$v({className:clsx$1(h.root,v,g&&h.rootSubtitle,{bottom:h.positionBottom,top:h.positionTop}[P]),ref:u},E),reactExports.createElement("div",{className:clsx$1(h.titleWrap,{left:h.titleWrapActionPosLeft,right:h.titleWrapActionPosRight}[C])},reactExports.createElement("div",{className:h.title},m),g?reactExports.createElement("div",{className:h.subtitle},g):null),d?reactExports.createElement("div",{className:clsx$1(h.actionIcon,C==="left"&&h.actionIconActionPosLeft)},d):null)});const ImageListItemBar_default=withStyles$2(styles$1Y,{name:"MuiImageListItemBar"})(ImageListItemBar);var styles$1X=function(o){var u=o.palette.type==="light",d=u?"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:o.palette.secondary.main}}
43,underline:{"&:after":{borderBottom:"2px solid ".concat(o.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:o.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(d),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(o.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(d)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},Input$1=reactExports.forwardRef(function(o,u){var d=o.disableUnderline,f=o.classes,p=o.fullWidth,h=p===void 0?!1:p,v=o.inputComponent,g=v===void 0?"input":v,m=o.multiline,y=m===void 0?!1:m,b=o.type,w=b===void 0?"text":b,E=_objectWithoutProperties$q(o,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return reactExports.createElement(InputBase$1,_extends$v({classes:_extends$v({},f,{root:clsx$1(f.root,!d&&f.underline),underline:null}),fullWidth:h,inputComponent:g,multiline:y,ref:u,type:w},E))});Input$1.muiName="Input";const Input$2=withStyles$2(styles$1X,{name:"MuiInput"})(Input$1);var styles$1W={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:{}},InputAdornment=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.component,v=h===void 0?"div":h,g=o.disablePointerEvents,m=g===void 0?!1:g,y=o.disableTypography,b=y===void 0?!1:y,w=o.position,E=o.variant,P=_objectWithoutProperties$q(o,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),C=useFormControl$1()||{},T=E;return E&&C.variant,C&&!T&&(T=C.variant),reactExports.createElement(FormControlContext.Provider,{value:null},reactExports.createElement(v,_extends$v({className:clsx$1(f.root,p,w==="end"?f.positionEnd:f.positionStart,m&&f.disablePointerEvents,C.hiddenLabel&&f.hiddenLabel,T==="filled"&&f.filled,C.margin==="dense"&&f.marginDense),ref:u},P),typeof d=="string"&&!b?reactExports.createElement(Typography$1,{color:"textSecondary"},d):d))});const InputAdornment$1=withStyles$2(styles$1W,{name:"MuiInputAdornment"})(InputAdornment);var styles$1V=function(o){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:o.transitions.create(["color","transform"],{duration:o.transitions.duration.shorter,easing:o.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)"}}}},InputLabel=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.disableAnimation,h=p===void 0?!1:p;o.margin;var v=o.shrink;o.variant;var g=_objectWithoutProperties$q(o,["classes","className","disableAnimation","margin","shrink","variant"]),m=useFormControl(),y=v;typeof y>"u"&&m&&(y=m.filled||m.focused||m.adornedStart);var b=formControlState({props:o,muiFormControl:m,states:["margin","variant"]});return reactExports.createElement(FormLabel$1,_extends$v({"data-shrink":y,className:clsx$1(d.root,f,m&&d.formControl,!h&&d.animated,y&&d.shrink,b.margin==="dense"&&d.marginDense,{filled:d.filled,outlined:d.outlined}[b.variant]),classes:{focused:d.focused,disabled:d.disabled,error:d.error,required:d.required,asterisk:d.asterisk},ref:u},g))});const InputLabel$1=withStyles$2(styles$1V,{name:"MuiInputLabel"})(InputLabel);var TRANSITION_DURATION=4,styles$1U=function(o){var u=function(h){return o.palette.type==="light"?lighten(h,.62):darken(h,.5)},d=u(o.palette.primary.main),f=u(o.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:d},colorSecondary:{backgroundColor:f},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(d," 0%, ").concat(d," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(f," 0%, ").concat(f," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:o.palette.primary.main},barColorSecondary:{backgroundColor:o.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(TRANSITION_DURATION,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(TRANSITION_DURATION,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(TRANSITION_DURATION,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}},LinearProgress=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"primary":p,v=o.value,g=o.valueBuffer,m=o.variant,y=m===void 0?"indeterminate":m,b=_objectWithoutProperties$q(o,["classes","className","color","value","valueBuffer","variant"]),w=useTheme$1(),E={},P={bar1:{},bar2:{}};if((y==="determinate"||y==="buffer")&&v!==void 0){E["aria-valuenow"]=Math.round(v),E["aria-valuemin"]=0,E["aria-valuemax"]=100;var C=v-100;w.direction==="rtl"&&(C=-C),P.bar1.transform="translateX(".concat(C,"%)")}if(y==="buffer"&&g!==void 0){var T=(g||0)-100;w.direction==="rtl"&&(T=-T),P.bar2.transform="translateX(".concat(T,"%)")}return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,d["color".concat(capitalize$1(h))],f,{determinate:d.determinate,indeterminate:d.indeterminate,buffer:d.buffer,query:d.query}[y]),role:"progressbar"},E,{ref:u},b),y==="buffer"?reactExports.createElement("div",{className:clsx$1(d.dashed,d["dashedColor".concat(capitalize$1(h))])}):null,reactExports.createElement("div",{className:clsx$1(d.bar,d["barColor".concat(capitalize$1(h))],(y==="indeterminate"||y==="query")&&d.bar1Indeterminate,{determinate:d.bar1Determinate,buffer:d.bar1Buffer}[y]),style:P.bar1}),y==="determinate"?null:reactExports.createElement("div",{className:clsx$1(d.bar,(y==="indeterminate"||y==="query")&&d.bar2Indeterminate,y==="buffer"?[d["color".concat(capitalize$1(h))],d.bar2Buffer]:d["barColor".concat(capitalize$1(h))]),style:P.bar2}))});const LinearProgress$1=withStyles$2(styles$1U,{name:"MuiLinearProgress"})(LinearProgress);var styles$1T={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:{}},Link=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"primary":p,v=o.component,g=v===void 0?"a":v,m=o.onBlur,y=o.onFocus,b=o.TypographyClasses,w=o.underline,E=w===void 0?"hover":w,P=o.variant,C=P===void 0?"inherit":P,T=_objectWithoutProperties$q(o,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),O=useIsFocusVisible(),x=O.isFocusVisible,A=O.onBlurVisible,D=O.ref,j=reactExports.useState(!1),M=j[0],N=j[1],q=useForkRef(u,D),z=function(F){M&&(A(),N(!1)),m&&m(F)},H=function(F){x(F)&&N(!0),y&&y(F)};return reactExports.createElement(Typography$1,_extends$v({className:clsx$1(d.root,d["underline".concat(capitalize$1(E))],f,M&&d.focusVisible,g==="button"&&d.button),classes:b,color:h,component:g,onBlur:z,onF
43ocus:H,ref:q,variant:C},T))});const Link$1=withStyles$2(styles$1T,{name:"MuiLink"})(Link);var styles$1S={root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},ListItemAvatar=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=_objectWithoutProperties$q(o,["classes","className"]),h=reactExports.useContext(ListContext);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,h.alignItems==="flex-start"&&d.alignItemsFlexStart),ref:u},p))});const ListItemAvatar_default=withStyles$2(styles$1S,{name:"MuiListItemAvatar"})(ListItemAvatar);var styles$1R=function(o){return{root:{minWidth:56,color:o.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}},ListItemIcon=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=_objectWithoutProperties$q(o,["classes","className"]),h=reactExports.useContext(ListContext);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f,h.alignItems==="flex-start"&&d.alignItemsFlexStart),ref:u},p))});const ListItemIcon$1=withStyles$2(styles$1R,{name:"MuiListItemIcon"})(ListItemIcon);var styles$1Q={root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},ListItemSecondaryAction=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=_objectWithoutProperties$q(o,["classes","className"]);return reactExports.createElement("div",_extends$v({className:clsx$1(d.root,f),ref:u},p))});ListItemSecondaryAction.muiName="ListItemSecondaryAction";const ListItemSecondaryAction_default=withStyles$2(styles$1Q,{name:"MuiListItemSecondaryAction"})(ListItemSecondaryAction);var styles$1P=function(o){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:o.palette.text.secondary,fontFamily:o.typography.fontFamily,fontWeight:o.typography.fontWeightMedium,fontSize:o.typography.pxToRem(14)},colorPrimary:{color:o.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},ListSubheader=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"default":p,v=o.component,g=v===void 0?"li":v,m=o.disableGutters,y=m===void 0?!1:m,b=o.disableSticky,w=b===void 0?!1:b,E=o.inset,P=E===void 0?!1:E,C=_objectWithoutProperties$q(o,["classes","className","color","component","disableGutters","disableSticky","inset"]);return reactExports.createElement(g,_extends$v({className:clsx$1(d.root,f,h!=="default"&&d["color".concat(capitalize$1(h))],P&&d.inset,!w&&d.sticky,!y&&d.gutters),ref:u},C))});const ListSubheader$1=withStyles$2(styles$1P,{name:"MuiListSubheader"})(ListSubheader);function getOffsetTop(l,o){var u=0;return typeof o=="number"?u=o:o==="center"?u=l.height/2:o==="bottom"&&(u=l.height),u}function getOffsetLeft(l,o){var u=0;return typeof o=="number"?u=o:o==="center"?u=l.width/2:o==="right"&&(u=l.width),u}function getTransformOriginValue(l){return[l.horizontal,l.vertical].map(function(o){return typeof o=="number"?"".concat(o,"px"):o}).join(" ")}function getScrollParent(l,o){for(var u=o,d=0;u&&u!==l;)u=u.parentElement,d+=u.scrollTop;return d}function getAnchorEl(l){return typeof l=="function"?l():l}var styles$1O={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},Popover=reactExports.forwardRef(function(o,u){var d=o.action,f=o.anchorEl,p=o.anchorOrigin,h=p===void 0?{vertical:"top",horizontal:"left"}:p,v=o.anchorPosition,g=o.anchorReference,m=g===void 0?"anchorEl":g,y=o.children,b=o.classes,w=o.className,E=o.container,P=o.elevation,C=P===void 0?8:P,T=o.getContentAnchorEl,O=o.marginThreshold,x=O===void 0?16:O,A=o.onEnter,D=o.onEntered,j=o.onEntering,M=o.onExit,N=o.onExited,q=o.onExiting,z=o.open,H=o.PaperProps,U=H===void 0?{}:H,F=o.transformOrigin,B=F===void 0?{vertical:"top",horizontal:"left"}:F,G=o.TransitionComponent,Q=G===void 0?Grow:G,K=o.transitionDuration,Z=K===void 0?"auto":K,te=o.TransitionProps,oe=te===void 0?{}:te,fe=_objectWithoutProperties$q(o,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","o
43pen","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),le=reactExports.useRef(),Re=reactExports.useCallback(function(Ie){if(m==="anchorPosition")return v;var ge=getAnchorEl(f),Y=ge&&ge.nodeType===1?ge:ownerDocument(le.current).body,ie=Y.getBoundingClientRect(),ce=Ie===0?h.vertical:"center";return{top:ie.top+getOffsetTop(ie,ce),left:ie.left+getOffsetLeft(ie,h.horizontal)}},[f,h.horizontal,h.vertical,v,m]),Ae=reactExports.useCallback(function(Ie){var ge=0;if(T&&m==="anchorEl"){var Y=T(Ie);if(Y&&Ie.contains(Y)){var ie=getScrollParent(Ie,Y);ge=Y.offsetTop+Y.clientHeight/2-ie||0}}return ge},[h.vertical,m,T]),_e=reactExports.useCallback(function(Ie){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{vertical:getOffsetTop(Ie,B.vertical)+ge,horizontal:getOffsetLeft(Ie,B.horizontal)}},[B.horizontal,B.vertical]),ee=reactExports.useCallback(function(Ie){var ge=Ae(Ie),Y={width:Ie.offsetWidth,height:Ie.offsetHeight},ie=_e(Y,ge);if(m==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(ie)};var ce=Re(ge),ue=ce.top-ie.vertical,pe=ce.left-ie.horizontal,Te=ue+Y.height,Ce=pe+Y.width,Fe=ownerWindow(getAnchorEl(f)),He=Fe.innerHeight-x,we=Fe.innerWidth-x;if(ue<x){var Oe=ue-x;ue-=Oe,ie.vertical+=Oe}else if(Te>He){var Ne=Te-He;ue-=Ne,ie.vertical+=Ne}if(pe<x){var qe=pe-x;pe-=qe,ie.horizontal+=qe}else if(Ce>we){var Be=Ce-we;pe-=Be,ie.horizontal+=Be}return{top:"".concat(Math.round(ue),"px"),left:"".concat(Math.round(pe),"px"),transformOrigin:getTransformOriginValue(ie)}},[f,m,Re,Ae,_e,x]),se=reactExports.useCallback(function(){var Ie=le.current;if(Ie){var ge=ee(Ie);ge.top!==null&&(Ie.style.top=ge.top),ge.left!==null&&(Ie.style.left=ge.left),Ie.style.transformOrigin=ge.transformOrigin}},[ee]),$e=function(ge,Y){j&&j(ge,Y),se()},Ee=reactExports.useCallback(function(Ie){le.current=reactDomExports.findDOMNode(Ie)},[]);reactExports.useEffect(function(){z&&se()}),reactExports.useImperativeHandle(d,function(){return z?{updatePosition:function(){se()}}:null},[z,se]),reactExports.useEffect(function(){if(z){var Ie=debounce$3(function(){se()});return window.addEventListener("resize",Ie),function(){Ie.clear(),window.removeEventListener("resize",Ie)}}},[z,se]);var xe=Z;Z==="auto"&&!Q.muiSupportAuto&&(xe=void 0);var Se=E||(f?ownerDocument(getAnchorEl(f)).body:void 0);return reactExports.createElement(Modal,_extends$v({container:Se,open:z,ref:u,BackdropProps:{invisible:!0},className:clsx$1(b.root,w)},fe),reactExports.createElement(Q,_extends$v({appear:!0,in:z,onEnter:A,onEntered:D,onExit:M,onExited:N,onExiting:q,timeout:xe},oe,{onEntering:createChainedFunction($e,oe.onEntering)}),reactExports.createElement(Paper$1,_extends$v({elevation:C,ref:Ee},U,{className:clsx$1(b.paper,U.className)}),y)))});const Popover$1=withStyles$2(styles$1O,{name:"MuiPopover"})(Popover);var RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},styles$1N={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},Menu=reactExports.forwardRef(function(o,u){var d=o.autoFocus,f=d===void 0?!0:d,p=o.children,h=o.classes,v=o.disableAutoFocusItem,g=v===void 0?!1:v,m=o.MenuListProps,y=m===void 0?{}:m,b=o.onClose,w=o.onEntering,E=o.open,P=o.PaperProps,C=P===void 0?{}:P,T=o.PopoverClasses,O=o.transitionDuration,x=O===void 0?"auto":O,A=o.TransitionProps;A=A===void 0?{}:A;var D=A.onEntering,j=_objectWithoutProperties$q(A,["onEntering"]),M=o.variant,N=M===void 0?"selectedMenu":M,q=_objectWithoutProperties$q(o,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),z=useTheme$1(),H=f&&!g&&E,U=reactExports.useRef(null),F=reactExports.useRef(null),B=function(){return F.current},G=function(oe,fe){U.current&&U.current.adjustStyleForScrollbar(oe,z),w&&w(oe,fe),D&&D(oe,fe)},Q=function(oe){oe.key==="Tab"&&(oe.preventDefault(),b&&b(oe,"tabKeyDown"))},K=-1;reactExports.Children.map(p,function(te,oe){reactExports.isValidElement(te)&&(te.props.disabled||(N!=="menu"&&te.props.selected||K===-1)&&(K=oe))});var Z=reactExports.Children.map(p,function(te,oe){return oe===K?reactExports.cloneElement(te,{ref:function(le){F.current=reactDomExports.findDOMNode(le),setRef$1(te.ref,le)}}):te});return reactExports.createElement(Popover$1,_extends$v({getContentAnchorEl:B,classes:T,onClose:b,TransitionProps:_extends$v({onEntering:G},j),anchorOrigin:z.direction==="rtl"?RTL_ORIGIN:LTR_ORIGIN,transformOrigin:z.direction==="rtl"?RTL_ORIGIN:LTR_ORIGIN,PaperProps:_extends$v({},C,{classes:_extends$v({},C.classes,{root:h.paper})}),open:E,ref:u,transitionDuration:x},q),reactExports.createElement(MenuList,_extends$v({onKeyDown:Q,actions:U,autoFocus:f&&(K===-1||g),autoFocusItem:H,variant:N},y,{className:clsx$1(h.list,y.className)}),Z))});const Menu$1=withStyles$2(styles$1N,{name:"MuiMenu"})(Menu);var styles$1M=function(o){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:o.palette.background.default,padding:8},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:o.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:o.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:o.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},dotActive:{backgroundColor:o.palette.primary.main},progress:{width:"50%"}}},MobileStepper=reactExports.forwardRef(function(o,u){var d=o.activeStep,f=d===void 0?0:d,p=o.backButton,h=o.classes,v=o.className,g=o.LinearProgressProps,m=o.nextButton,y=o.position,b=y===void 0?"bottom":y,w=o.steps,E=o.variant,P=E===void 0?"dots":E,C=_objectWithoutProperties$q(o,["activeStep","backButton","classes","className","LinearProgressProps","nextButton","position","steps","variant"]);return reactExports.createElement(Paper$1,_extends$v({square:!0,elevation:0,
43className:clsx$1(h.root,h["position".concat(capitalize$1(b))],v),ref:u},C),p,P==="text"&&reactExports.createElement(reactExports.Fragment,null,f+1," / ",w),P==="dots"&&reactExports.createElement("div",{className:h.dots},_toConsumableArray$w(new Array(w)).map(function(T,O){return reactExports.createElement("div",{key:O,className:clsx$1(h.dot,O===f&&h.dotActive)})})),P==="progress"&&reactExports.createElement(LinearProgress$1,_extends$v({className:h.progress,variant:"determinate",value:Math.ceil(f/(w-1)*100)},g)),m)});const MobileStepper_default=withStyles$2(styles$1M,{name:"MuiMobileStepper"})(MobileStepper);var NativeSelectInput=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.disabled,h=o.IconComponent,v=o.inputRef,g=o.variant,m=g===void 0?"standard":g,y=_objectWithoutProperties$q(o,["classes","className","disabled","IconComponent","inputRef","variant"]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("select",_extends$v({className:clsx$1(d.root,d.select,d[m],f,p&&d.disabled),disabled:p,ref:v||u},y)),o.multiple?null:reactExports.createElement(h,{className:clsx$1(d.icon,d["icon".concat(capitalize$1(m))],p&&d.disabled)}))});const ArrowDropDownIcon$1=createSvgIcon(reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}));var styles$1L=function(o){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:o.palette.type==="light"?"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:o.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:o.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:o.palette.action.active,"&$disabled":{color:o.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%"}}},defaultInput=reactExports.createElement(Input$2,null),NativeSelect=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.IconComponent,h=p===void 0?ArrowDropDownIcon$1:p,v=o.input,g=v===void 0?defaultInput:v,m=o.inputProps;o.variant;var y=_objectWithoutProperties$q(o,["children","classes","IconComponent","input","inputProps","variant"]),b=useFormControl(),w=formControlState({props:o,muiFormControl:b,states:["variant"]});return reactExports.cloneElement(g,_extends$v({inputComponent:NativeSelectInput,inputProps:_extends$v({children:d,classes:f,IconComponent:h,variant:w.variant,type:void 0},m,g?g.props.inputProps:{}),ref:u},y))});NativeSelect.muiName="Select";const NativeSelect_default=withStyles$2(styles$1L,{name:"MuiNativeSelect"})(NativeSelect);var useEnhancedEffect$1=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function NoSsr(l){var o=l.children,u=l.defer,d=u===void 0?!1:u,f=l.fallback,p=f===void 0?null:f,h=reactExports.useState(!1),v=h[0],g=h[1];return useEnhancedEffect$1(function(){d||g(!0)},[d]),reactExports.useEffect(function(){d&&g(!0)},[d]),reactExports.createElement(reactExports.Fragment,null,v?o:p)}var styles$1K=function(o){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:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})}}},NotchedOutline=reactExports.forwardRef(function(o,u){o.children;var d=o.classes,f=o.className,p=o.label,h=o.labelWidth,v=o.notched,g=o.style,m=_objectWithoutProperties$q(o,["children","classes","className","label","labelWidth","notched","style"]),y=useTheme$1(),b=y.direction==="rtl"?"right":"left";if(p!==void 0)return reactExports.createElement("fieldset",_extends$v({"aria-hidden":!0,
43className:clsx$1(d.root,f),ref:u,style:g},m),reactExports.createElement("legend",{className:clsx$1(d.legendLabelled,v&&d.legendNotched)},p?reactExports.createElement("span",null,p):reactExports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var w=h>0?h*.75+8:.01;return reactExports.createElement("fieldset",_extends$v({"aria-hidden":!0,style:_extends$v(_defineProperty$1z({},"padding".concat(capitalize$1(b)),8),g),className:clsx$1(d.root,f),ref:u},m),reactExports.createElement("legend",{className:d.legend,style:{width:v?w:.01}},reactExports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))});const NotchedOutline$1=withStyles$2(styles$1K,{name:"PrivateNotchedOutline"})(NotchedOutline);var styles$1J=function(o){var u=o.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:o.shape.borderRadius,"&:hover $notchedOutline":{borderColor:o.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:u}},"&$focused $notchedOutline":{borderColor:o.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:o.palette.error.main},"&$disabled $notchedOutline":{borderColor:o.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:o.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:u},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:o.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:o.palette.type==="light"?null:"#fff",caretColor:o.palette.type==="light"?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},OutlinedInput=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.fullWidth,p=f===void 0?!1:f,h=o.inputComponent,v=h===void 0?"input":h,g=o.label,m=o.labelWidth,y=m===void 0?0:m,b=o.multiline,w=b===void 0?!1:b,E=o.notched,P=o.type,C=P===void 0?"text":P,T=_objectWithoutProperties$q(o,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return reactExports.createElement(InputBase$1,_extends$v({renderSuffix:function(x){return reactExports.createElement(NotchedOutline$1,{className:d.notchedOutline,label:g,labelWidth:y,notched:typeof E<"u"?E:!!(x.startAdornment||x.filled||x.focused)})},classes:_extends$v({},d,{root:clsx$1(d.root,d.underline),notchedOutline:null}),fullWidth:p,inputComponent:v,multiline:w,ref:u,type:C},T))});OutlinedInput.muiName="Input";const OutlinedInput$1=withStyles$2(styles$1J,{name:"MuiOutlinedInput"})(OutlinedInput),RadioButtonUncheckedIcon=createSvgIcon(reactExports.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),RadioButtonCheckedIcon=createSvgIcon(reactExports.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var styles$1I=function(o){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeIn,duration:o.transitions.duration.shortest})},checked:{}}};function RadioButtonIcon(l){var o=l.checked,u=l.classes,d=l.fontSize;return reactExports.createElement("div",{className:clsx$1(u.root,o&&u.checked)},reactExports.createElement(RadioButtonUncheckedIcon,{fontSize:d}),reactExports.createElement(RadioButtonCheckedIcon,{fontSize:d,className:u.layer}))}const RadioButtonIcon$1=withStyles$2(styles$1I,{name:"PrivateRadioButtonIcon"})(RadioButtonIcon);var RadioGroupContext=reactExports.createContext();function useRadioGroup(){return reactExports.useContext(RadioGroupContext)}var styles$1H=function(o){return{root:{color:o.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:o.palette.primary.main,"&:hover":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:o.palette.action.disabled}},colorSecondary:{"&$checked":{color:o.palette.secondary.main,"&:hover":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:o.palette.action.disabled}}}},defaultCheckedIcon=reactExports.createElement(RadioButtonIcon$1,{checked:!0}),defaultIcon=reactExports.createElement(RadioButtonIcon$1,null),Radio=reactExports.forwardRef(function(o,u){var d=o.checked,f=o.classes,p=o.color,h=p===void 0?"secondary":p,v=o.name,g=o.onChange,m=o.size,y=m===void 0?"medium":m,b=_objectWithoutProperties$q(o,["checked","classes","color","name","onChange","size"]),w=useRadioGroup(),E=d,P=createChainedFunction(g,w&&w.onChange),C=v;return w&&(typeof E>"u"&&(E=w.value===o.value),typeof C>"u"&&(C=w.name)),reactExports.createElement(SwitchBase$1,_extends$v({color:h,type:"radio",icon:reactExports.cloneElement(defaultIcon,{fontSize:y==="small"?"small":"medium"}),checkedIcon:reactExports.cloneElement(defaultCheckedIcon,{fontSize:y==="small"?"small":"medium"}),classes:{root:clsx$1(f.root,f["color".concat(capitalize$1(h))]),checked:f.checked,disabled:f.disabled},name:C,checked:E,onChange:P,ref:u},b))});const Radio$1=withStyles$2(styles$1H,{name:"MuiRadio"})(Radio);var RadioGroup=reactExports.forwardRef(function(o,u){var d=o.actions,f=o.children,p=o.name,h=o.value,v=o.onChange,g=_objectWithoutProperties$q(o,["actions","children","name","value","onChange"]),m=reactExports.useRef(null),y=useControlled({controlled:h,default:o.defaultValue,name:"RadioGroup"}),b=_slicedToArray$n(y,2),w=b[0],E=b[1];reactExports.useImperativeHandle(d,function(){return{focus:function(){var x=m.current.querySelector("input:not(:disabled):checked");x||(x=m.current.querySelector("input:not(:disabled)")),x&&x.focus()}}},[]);var P=useForkRef(u,m),C=function(x){E(x.target.value),v&&v(x,x.target.value)},T=useId(p);return reactExports.createElement(RadioGroupContext.Provider,{value:{name:T,onChange:C,value:w}},reactExports.createElement(FormGroup$1,_extends$v({role:"radiogroup",ref:P},g),f))});function _createSuper(l){var o=_isNativeReflectConstruct$1n();return function(){var d=_getPrototypeOf$1y(l),f;if(o){var p=_getPrototypeOf$1y(this).constructor;f=Reflect.construct(d,arguments,p)}else f=d.apply(this,arguments);return _possibleConstructorReturn$1F(this,f)}}function _isNativeReflectConstruct$1n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var RootRef=(function(l){_inherits$1F(u,l);var o=_createSuper(u);function u(){return _classCallCheck$2k(this,u),o.apply(this,arguments)}
43return _createClass$2c(u,[{key:"componentDidMount",value:function(){this.ref=reactDomExports.findDOMNode(this),setRef$1(this.props.rootRef,this.ref)}},{key:"componentDidUpdate",value:function(f){var p=reactDomExports.findDOMNode(this);(f.rootRef!==this.props.rootRef||this.ref!==p)&&(f.rootRef!==this.props.rootRef&&setRef$1(f.rootRef,null),this.ref=p,setRef$1(this.props.rootRef,this.ref))}},{key:"componentWillUnmount",value:function(){this.ref=null,setRef$1(this.props.rootRef,null)}},{key:"render",value:function(){return this.props.children}}]),u})(reactExports.Component);function areEqualValues(l,o){return _typeof$d(o)==="object"&&o!==null?l===o:String(l)===String(o)}function isEmpty(l){return l==null||typeof l=="string"&&!l.trim()}var SelectInput=reactExports.forwardRef(function(o,u){var d=o["aria-label"],f=o.autoFocus,p=o.autoWidth,h=o.children,v=o.classes,g=o.className,m=o.defaultValue,y=o.disabled,b=o.displayEmpty,w=o.IconComponent,E=o.inputRef,P=o.labelId,C=o.MenuProps,T=C===void 0?{}:C,O=o.multiple,x=o.name,A=o.onBlur,D=o.onChange,j=o.onClose,M=o.onFocus,N=o.onOpen,q=o.open,z=o.readOnly,H=o.renderValue,U=o.SelectDisplayProps,F=U===void 0?{}:U,B=o.tabIndex;o.type;var G=o.value,Q=o.variant,K=Q===void 0?"standard":Q,Z=_objectWithoutProperties$q(o,["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"]),te=useControlled({controlled:G,default:m,name:"Select"}),oe=_slicedToArray$n(te,2),fe=oe[0],le=oe[1],Re=reactExports.useRef(null),Ae=reactExports.useState(null),_e=Ae[0],ee=Ae[1],se=reactExports.useRef(q!=null),$e=se.current,Ee=reactExports.useState(),xe=Ee[0],Se=Ee[1],Ie=reactExports.useState(!1),ge=Ie[0],Y=Ie[1],ie=useForkRef(u,E);reactExports.useImperativeHandle(ie,function(){return{focus:function(){_e.focus()},node:Re.current,value:fe}},[_e,fe]),reactExports.useEffect(function(){f&&_e&&_e.focus()},[f,_e]),reactExports.useEffect(function(){if(_e){var nt=ownerDocument(_e).getElementById(P);if(nt){var Ze=function(){getSelection().isCollapsed&&_e.focus()};return nt.addEventListener("click",Ze),function(){nt.removeEventListener("click",Ze)}}}},[P,_e]);var ce=function(Ze,_t){Ze?N&&N(_t):j&&j(_t),$e||(Se(p?null:_e.clientWidth),Y(Ze))},ue=function(Ze){Ze.button===0&&(Ze.preventDefault(),_e.focus(),ce(!0,Ze))},pe=function(Ze){ce(!1,Ze)},Te=reactExports.Children.toArray(h),Ce=function(Ze){var _t=Te.map(function(re){return re.props.value}).indexOf(Ze.target.value);if(_t!==-1){var ae=Te[_t];le(ae.props.value),D&&D(Ze,ae)}},Fe=function(Ze){return function(_t){O||ce(!1,_t);var ae;if(O){ae=Array.isArray(fe)?fe.slice():[];var re=fe.indexOf(Ze.props.value);re===-1?ae.push(Ze.props.value):ae.splice(re,1)}else ae=Ze.props.value;Ze.props.onClick&&Ze.props.onClick(_t),fe!==ae&&(le(ae),D&&(_t.persist(),Object.defineProperty(_t,"target",{writable:!0,value:{value:ae,name:x}}),D(_t,Ze)))}},He=function(Ze){if(!z){var _t=[" ","ArrowUp","ArrowDown","Enter"];_t.indexOf(Ze.key)!==-1&&(Ze.preventDefault(),ce(!0,Ze))}},we=_e!==null&&($e?q:ge),Oe=function(Ze){!we&&A&&(Ze.persist(),Object.defineProperty(Ze,"target",{writable:!0,value:{value:fe,name:x}}),A(Ze))};delete Z["aria-invalid"];var Ne,qe,Be=[],Ve=!1;(isFilled({value:fe})||b)&&(H?Ne=H(fe):Ve=!0);var Ye=Te.map(function(nt){if(!reactExports.isValidElement(nt))return null;var Ze;if(O){if(!Array.isArray(fe))throw new Error(formatMuiErrorMessage(2));Ze=fe.some(function(_t){return areEqualValues(_t,nt.props.value)}),Ze&&Ve&&Be.push(nt.props.children)}else Ze=areEqualValues(fe,nt.props.value),Ze&&Ve&&(qe=nt.props.children);return reactExports.cloneElement(nt,{"aria-selected":Ze?"true":void 0,onClick:Fe(nt),onKeyUp:function(ae){ae.key===" "&&ae.preventDefault(),nt.props.onKeyUp&&nt.props.onKeyUp(ae)},role:"option",selected:Ze,value:void 0,"data-value":nt.props.value})});Ve&&(Ne=O?Be.join(", "):qe);var Ge=xe;!p&&$e&&_e&&(Ge=_e.clientWidth);var dt;typeof B<"u"?dt=B:dt=y?null:0;
43var ze=F.id||(x?"mui-component-select-".concat(x):void 0);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",_extends$v({className:clsx$1(v.root,v.select,v.selectMenu,v[K],g,y&&v.disabled),ref:ee,tabIndex:dt,role:"button","aria-disabled":y?"true":void 0,"aria-expanded":we?"true":void 0,"aria-haspopup":"listbox","aria-label":d,"aria-labelledby":[P,ze].filter(Boolean).join(" ")||void 0,onKeyDown:He,onMouseDown:y||z?null:ue,onBlur:Oe,onFocus:M},F,{id:ze}),isEmpty(Ne)?reactExports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Ne),reactExports.createElement("input",_extends$v({value:Array.isArray(fe)?fe.join(","):fe,name:x,ref:Re,"aria-hidden":!0,onChange:Ce,tabIndex:-1,className:v.nativeInput,autoFocus:f},Z)),reactExports.createElement(w,{className:clsx$1(v.icon,v["icon".concat(capitalize$1(K))],we&&v.iconOpen,y&&v.disabled)}),reactExports.createElement(Menu$1,_extends$v({id:"menu-".concat(x||""),anchorEl:_e,open:we,onClose:pe},T,{MenuListProps:_extends$v({"aria-labelledby":P,role:"listbox",disableListWrap:!0},T.MenuListProps),PaperProps:_extends$v({},T.PaperProps,{style:_extends$v({minWidth:Ge},T.PaperProps!=null?T.PaperProps.style:null)})}),Ye))}),styles$1G=styles$1L,_ref$5=reactExports.createElement(Input$2,null),_ref2$3=reactExports.createElement(FilledInput$1,null),Select=reactExports.forwardRef(function l(o,u){var d=o.autoWidth,f=d===void 0?!1:d,p=o.children,h=o.classes,v=o.displayEmpty,g=v===void 0?!1:v,m=o.IconComponent,y=m===void 0?ArrowDropDownIcon$1:m,b=o.id,w=o.input,E=o.inputProps,P=o.label,C=o.labelId,T=o.labelWidth,O=T===void 0?0:T,x=o.MenuProps,A=o.multiple,D=A===void 0?!1:A,j=o.native,M=j===void 0?!1:j,N=o.onClose,q=o.onOpen,z=o.open,H=o.renderValue,U=o.SelectDisplayProps,F=o.variant,B=F===void 0?"standard":F,G=_objectWithoutProperties$q(o,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),Q=M?NativeSelectInput:SelectInput,K=useFormControl(),Z=formControlState({props:o,muiFormControl:K,states:["variant"]}),te=Z.variant||B,oe=w||{standard:_ref$5,outlined:reactExports.createElement(OutlinedInput$1,{label:P,labelWidth:O}),filled:_ref2$3}[te];return reactExports.cloneElement(oe,_extends$v({inputComponent:Q,inputProps:_extends$v({children:p,IconComponent:y,variant:te,type:void 0,multiple:D},M?{id:b}:{autoWidth:f,displayEmpty:g,labelId:C,MenuProps:x,onClose:N,onOpen:q,open:z,renderValue:H,SelectDisplayProps:_extends$v({id:b},U)},E,{classes:E?mergeClasses({baseClasses:h,newClasses:E.classes,Component:l}):h},w?w.props.inputProps:{}),ref:u},G))});Select.muiName="Select";const Select$1=withStyles$2(styles$1G,{name:"MuiSelect"})(Select);var styles$1F=function(o){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:_extends$v({zIndex:1},o.typography.body2,{fontSize:o.typography.pxToRem(12),lineHeight:1.2,transition:o.transitions.create(["transform"],{duration:o.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:o.palette.primary.contrastText,transform:"rotate(45deg)"}}};function ValueLabel(l){var o=l.children,u=l.classes,d=l.className,f=l.open,p=l.value,h=l.valueLabelDisplay;return h==="off"?o:reactExports.cloneElement(o,{className:clsx$1(o.props.className,(f||h==="on")&&u.open,u.thumb)},reactExports.createElement("span",{className:clsx$1(u.offset,d)},reactExports.createElement("span",{className:u.circle},reactExports.createElement("span",{className:u.label},p))))}const ValueLabel$1=withStyles$2(styles$1F,{name:"PrivateValueLabel"})(ValueLabel);function asc(l,o){return l-o}function clamp$1(l,o,u){return Math.min(Math.max(o,l),u)}function findClosest(l,o){var u=l.reduce(function(f,p,h){var v=Math.abs(o-p);return f===null||v<f.distance||v===f.distance?{distance:v,index:h}:f},null),d=u.index;return d}function trackFinger(l,o){if(o.current!==void 0&&l.changedTouches){for(var u=0;u<l.changedTouches.length;u+=1){var d=l.changedTouches[u];if(d.identifier===o.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:l.clientX,y:l.clientY}}function valueToPercent(l,o,u){return(l-o)*100/(u-o)}function percentToValue(l,o,u){return(u-o)*l+o}
vendor: 4,244 bytes, line 43
43function getDecimalPrecision(l){if(Math.abs(l)<1){var o=l.toExponential().split("e-"),u=o[0].split(".")[1];return(u?u.length:0)+parseInt(o[1],10)}var d=l.toString().split(".")[1];return d?d.length:0}function roundValueToStep(l,o,u){var d=Math.round((l-u)/o)*o+u;return Number(d.toFixed(getDecimalPrecision(o)))}function setValueIndex(l){var o=l.values,u=l.source,d=l.newValue,f=l.index;if(o[f]===d)return u;var p=o.slice();return p[f]=d,p}function focusThumb(l){var o=l.sliderRef,u=l.activeIndex,d=l.setActive;(!o.current.contains(document.activeElement)||Number(document.activeElement.getAttribute("data-index"))!==u)&&o.current.querySelector('[role="slider"][data-index="'.concat(u,'"]')).focus(),d&&d(u)}var axisProps={horizontal:{offset:function(o){return{left:"".concat(o,"%")}},leap:function(o){return{width:"".concat(o,"%")}}},"horizontal-reverse":{offset:function(o){return{right:"".concat(o,"%")}},leap:function(o){return{width:"".concat(o,"%")}}},vertical:{offset:function(o){return{bottom:"".concat(o,"%")}},leap:function(o){return{height:"".concat(o,"%")}}}},Identity=function(o){return o},styles$1E=function(o){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:o.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:o.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:o.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:o.palette.type==="light"?lighten(o.palette.primary.main,.62):darken(o.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:o.transitions.create(["box-shadow"],{duration:o.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(alpha(o.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(alpha(o.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(alpha(o.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(alpha(o.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:o.palette.background.paper,opacity:.8},markLabel:_extends$v({},o.typography.body2,{color:o.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:o.palette.text.primary}}},Slider$1=reactExports.forwardRef(function(o,u){var d=o["aria-label"],f=o["aria-labelledby"],p=o["aria-valuetext"],h=o.classes,v=o.className,g=o.color,m=g===void 0?"primary":g,y=o.component,b=y===void 0?"span":y,w=o.defaultValue,E=o.disabled,P=E===void 0?!1:E,C=o.getAriaLabel,T=o.getAriaValueText,O=o.marks,x=O===void 0?!1:O,A=o.max,D=A===void 0?100:A,j=o.min,M=j===void 0?0:j,N=o.name,q=o.onChange,z
43=o.onChangeCommitted,H=o.onMouseDown,U=o.orientation,F=U===void 0?"horizontal":U,B=o.scale,G=B===void 0?Identity:B,Q=o.step,K=Q===void 0?1:Q,Z=o.ThumbComponent,te=Z===void 0?"span":Z,oe=o.track,fe=oe===void 0?"normal":oe,le=o.value,Re=o.ValueLabelComponent,Ae=Re===void 0?ValueLabel$1:Re,_e=o.valueLabelDisplay,ee=_e===void 0?"off":_e,se=o.valueLabelFormat,$e=se===void 0?Identity:se,Ee=_objectWithoutProperties$q(o,["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"]),xe=useTheme$1(),Se=reactExports.useRef(),Ie=reactExports.useState(-1),ge=Ie[0],Y=Ie[1],ie=reactExports.useState(-1),ce=ie[0],ue=ie[1],pe=useControlled({controlled:le,default:w,name:"Slider"}),Te=_slicedToArray$n(pe,2),Ce=Te[0],Fe=Te[1],He=Array.isArray(Ce),we=He?Ce.slice().sort(asc):[Ce];we=we.map(function(ft){return clamp$1(ft,M,D)});var Oe=x===!0&&K!==null?_toConsumableArray$w(Array(Math.floor((D-M)/K)+1)).map(function(ft,wt){return{value:M+K*wt}}):x||[],Ne=useIsFocusVisible(),qe=Ne.isFocusVisible,Be=Ne.onBlurVisible,Ve=Ne.ref,Ye=reactExports.useState(-1),Ge=Ye[0],dt=Ye[1],ze=reactExports.useRef(),nt=useForkRef(Ve,ze),Ze=useForkRef(u,nt),_t=useEventCallback(function(ft){var wt=Number(ft.currentTarget.getAttribute("data-index"));qe(ft)&&dt(wt),ue(wt)}),ae=useEventCallback(function(){Ge!==-1&&(dt(-1),Be()),ue(-1)}),re=useEventCallback(function(ft){var wt=Number(ft.currentTarget.getAttribute("data-index"));ue(wt)}),he=useEventCallback(function(){ue(-1)}),Pe=xe.direction==="rtl",We=useEventCallback(function(ft){var wt=Number(ft.currentTarget.getAttribute("data-index")),Nt=we[wt],jt=(D-M)/10,Ct=Oe.map(function(Cr){return Cr.value}),mt=Ct.indexOf(Nt),qt,Er=Pe?"ArrowLeft":"ArrowRight",Kt=Pe?"ArrowRight":"ArrowLeft";switch(ft.key){case"Home":qt=M;break;case"End":qt=D;break;case"PageUp":K&&(qt=Nt+jt);break;case"PageDown":K&&(qt=Nt-jt);break;case Er:case"ArrowUp":K?qt=Nt+K:qt=Ct[mt+1]||Ct[Ct.length-1];break;case Kt:case"ArrowDown":K?qt=Nt-K:qt=Ct[mt-1]||Ct[0];break;default:return}if(ft.preventDefault(),K&&(qt=roundValueToStep(qt,K,M)),qt=clamp$1(qt,M,D),He){var lr=qt;qt=setValueIndex({values:we,source:Ce,newValue:qt,index:wt}).sort(asc),focusThumb({sliderRef:ze,activeIndex:qt.indexOf(lr)})}Fe(qt),dt(wt),q&&q(ft,qt),z&&z(ft,qt)}),yt=reactExports.useRef(),ct=F;Pe&&F!=="vertical"&&(ct+="-reverse");var ht=function(wt){var Nt=wt.finger,jt=wt.move,Ct=jt===void 0?!1:jt,mt=wt.values,qt=wt.source,Er=ze.current,Kt=Er.getBoundingClientRect(),lr=Kt.width,Cr=Kt.height,Yr=Kt.bottom,cr=Kt.left,Pr;ct.indexOf("vertical")===0?Pr=(Yr-Nt.y)/Cr:Pr=(Nt.x-cr)/lr,ct.indexOf("-reverse")!==-1&&(Pr=1-Pr);var vr;if(vr=percentToValue(Pr,M,D),K)vr=roundValueToStep(vr,K,M);else{var ln=Oe.map(function(At){return At.value}),kt=findClosest(ln,vr);vr=ln[kt]}vr=clamp$1(vr,M,D);var je=0;if(He){Ct?je=yt.current:je=findClosest(mt,vr);var Et=vr;vr=setValueIndex({values:mt,source:qt,newValue:vr,index:je}).sort(asc),je=vr.indexOf(Et),yt.current=je}return{newValue:vr,activeIndex:je}},bt=useEventCallback(function(ft){var wt=trackFinger(ft,Se);
43if(wt){var Nt=ht({finger:wt,move:!0,values:we,source:Ce}),jt=Nt.newValue,Ct=Nt.activeIndex;focusThumb({sliderRef:ze,activeIndex:Ct,setActive:Y}),Fe(jt),q&&q(ft,jt)}}),xt=useEventCallback(function(ft){var wt=trackFinger(ft,Se);if(wt){var Nt=ht({finger:wt,values:we,source:Ce}),jt=Nt.newValue;Y(-1),ft.type==="touchend"&&ue(-1),z&&z(ft,jt),Se.current=void 0;var Ct=ownerDocument(ze.current);Ct.removeEventListener("mousemove",bt),Ct.removeEventListener("mouseup",xt),Ct.removeEventListener("touchmove",bt),Ct.removeEventListener("touchend",xt)}}),Rt=useEventCallback(function(ft){ft.preventDefault();var wt=ft.changedTouches[0];wt!=null&&(Se.current=wt.identifier);var Nt=trackFinger(ft,Se),jt=ht({finger:Nt,values:we,source:Ce}),Ct=jt.newValue,mt=jt.activeIndex;focusThumb({sliderRef:ze,activeIndex:mt,setActive:Y}),Fe(Ct),q&&q(ft,Ct);var qt=ownerDocument(ze.current);qt.addEventListener("touchmove",bt),qt.addEventListener("touchend",xt)});reactExports.useEffect(function(){var ft=ze.current;ft.addEventListener("touchstart",Rt);var wt=ownerDocument(ft);return function(){ft.removeEventListener("touchstart",Rt),wt.removeEventListener("mousemove",bt),wt.removeEventListener("mouseup",xt),wt.removeEventListener("touchmove",bt),wt.removeEventListener("touchend",xt)}},[xt,bt,Rt]);var ut=useEventCallback(function(ft){H&&H(ft),ft.preventDefault();var wt=trackFinger(ft,Se),Nt=ht({finger:wt,values:we,source:Ce}),jt=Nt.newValue,Ct=Nt.activeIndex;focusThumb({sliderRef:ze,activeIndex:Ct,setActive:Y}),Fe(jt),q&&q(ft,jt);var mt=ownerDocument(ze.current);mt.addEventListener("mousemove",bt),mt.addEventListener("mouseup",xt)}),Me=valueToPercent(He?we[0]:M,M,D),vt=valueToPercent(we[we.length-1],M,D)-Me,Ot=_extends$v({},axisProps[ct].offset(Me),axisProps[ct].leap(vt));return reactExports.createElement(b,_extends$v({ref:Ze,className:clsx$1(h.root,h["color".concat(capitalize$1(m))],v,P&&h.disabled,Oe.length>0&&Oe.some(function(ft){return ft.label})&&h.marked,fe===!1&&h.trackFalse,F==="vertical"&&h.vertical,fe==="inverted"&&h.trackInverted),onMouseDown:ut},Ee),reactExports.createElement("span",{className:h.rail}),reactExports.createElement("span",{className:h.track,style:Ot}),reactExports.createElement("input",{value:we.join(","),name:N,type:"hidden"}),Oe.map(function(ft,wt){var Nt=valueToPercent(ft.value,M,D),jt=axisProps[ct].offset(Nt),Ct;return fe===!1?Ct=we.indexOf(ft.value)!==-1:Ct=fe==="normal"&&(He?ft.value>=we[0]&&ft.value<=we[we.length-1]:ft.value<=we[0])||fe==="inverted"&&(He?ft.value<=we[0]||ft.value>=we[we.length-1]:ft.value>=we[0]),reactExports.createElement(reactExports.Fragment,{key:ft.value},reactExports.createElement("span",{style:jt,"data-index":wt,className:clsx$1(h.mark,Ct&&h.markActive)}),ft.label!=null?reactExports.createElement("span",{"aria-hidden":!0,"data-index":wt,style:jt,className:clsx$1(h.markLabel,Ct&&h.markLabelActive)},ft.label):null)}),we.map(function(ft,wt){var Nt=valueToPercent(ft,M,D),jt=axisProps[ct].offset(Nt);return reactExports.createElement(Ae,{key:wt,valueLabelFormat:$e,valueLabelDisplay:ee,className:h.valueLabel,value:typeof $e=="function"?$e(G(ft),wt):$e,index:wt,open:ce===wt||ge===wt||ee==="on",disabled:P},reactExports.createElement(te,{className:clsx$1(h.thumb,h["thumbColor".concat(capitalize$1(m))],ge===wt&&h.active,P&&h.disabled,Ge===wt&&h.focusVisible),tabIndex:P?null:0,role:"slider",style:jt,"data-index":wt,"aria-label":C?C(wt):d,"aria-labelledby":f,"aria-orientation":F,"aria-valuemax":G(D),"aria-valuemin":G(M),"aria-valuenow":G(ft),"aria-valuetext":T?T(G(ft),wt):p,onKeyDown:We,onFocus:_t,onBlur:ae,onMouseOver:re,onMouseLeave:he}))}))});const Slider$2=withStyles$2(styles$1E,{name:"MuiSlider"})(Slider$1),Slider=Object.freeze(Object.defineProperty({__proto__:null,default:Slider$2},Symbol.toStringTag,{value:"Module"}));var styles$1D=function(o){var u=o.palette.type==="light"?.8:.98,d=emphasize(o.palette.background.default,u);return{root:_extends$v({},o.typography.body2,_defineProperty$1z({color:o.palette.getContrastText(d),backgroundColor:d,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:o.shape.borderRadius,flexGrow:1},o.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},SnackbarContent=reactExports.forwardRef(function(o,u){var d=o.action,f=o.classes,p=o.className,h=o.message,v=o.role,g=v===void 0?"alert":v,m=_objectWithoutProperties$q(o,["action","classes","className","message","role"]);return reactExports.createElement(Paper$1,_extends$v({role:g,square:!0,elevation:6,className:clsx$1(f.root,p),ref:u},m),reactExports.createElement("div",{className:f.message},h),d?reactExports.createElement("div",{className:f.action},d):null)});const SnackbarContent$1=withStyles$2(styles$1D,{name:"MuiSnackbarContent"})(SnackbarContent);var styles$1C=function(o){var u={top:8},d={bottom:8},f={justifyContent:"flex-end"},p={justifyContent:"flex-start"},h={top:24},v={bottom:24},g={right:24},m={left:24},y={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:o.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:_extends$v({},u,_defineProperty$1z({},o.breakpoints.up("sm"),_extends$v({},h,y))),anchorOriginBottomCenter:_extends$v({},d,_defineProperty$1z({},o.breakpoints.up("sm"),_extends$v({},v,y))),anchorOriginTopRight:_extends$v({},u,f,_defineProperty$1z({},o.breakpoints.up("sm"),_extends$v({left:"auto"},h,g))),anchorOriginBottomRight:_extends$v({},d,f,_defineProperty$1z({},o.breakpoints.up("sm"),_extends$v({left:"auto"},v,g))),anchorOriginTopLeft:_extends$v({},u,p,_defineProperty$1z({},o.breakpoints.up("sm"),_extends$v({right:"auto"},h,m))),anchorOriginBottomLeft:_extends$v({},d,p,_defineProperty$1z({},o.breakpoints.up("sm"),_extends$v({right:"auto"},v,m)))}},Snackbar=reactExports.forwardRef(function(o,u){var d=o.action,f=o.anchorOrigin;f=f===void 0?{vertical:"bottom",horizontal:"center"}:f;var p=f.vertical,h=f.horizontal,v=o.autoHideDuration,g=v===void 0?null:v,m=o.children,y=o.classes,b=o.className,w=o.ClickAwayListenerProps,E=o.ContentProps,P=o.disableWindowBlurListener,C=P===void 0?!1:P,T=o.message,O=o.onClose,x=o.onEnter,A=o.onEntered,D=o.onEntering,j=o.onExit,M=o.onExited,N=o.onExiting,q=o.onMouseEnter,z=o.onMouseLeave,H=o.open,U=o.resumeHideDuration,F=o.TransitionComponent,B=F===void 0?Grow:F,G=o.transitionDuration,Q=G===void 0?{enter:duration.enteringScreen,exit:duration.leavingScreen}:G,K=o.TransitionProps,Z=_objectWithoutProperties$q(o,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),te=reactExports.useRef(),oe=reactExports.useState(!0),fe=oe[0],le=oe[1],Re=useEventCallback(function(){O&&O.apply(void 0,arguments)}),Ae=useEventCallback(function(Ie){!O||Ie==null||(clearTimeout(te.current),te.current=setTimeout(function(){Re(null,"timeout")},Ie))});reactExports.useEffect(function(){return H&&Ae(g),function(){clearTimeout(te.current)}},[H,g,Ae]);var _e=function(){clearTimeout(te.current)},ee=reactExports.useCallback(function(){g!=null&&Ae(U??g*.5)},[g,U,Ae]),se=function(ge){q&&q(ge),_e()},$e=function(ge){z&&z(ge),ee()},Ee=function(ge){O&&O(ge,"clickaway")},xe=function(){le(!0)},Se=function(){le(!1)};return reactExports.useEffect(function(){if(!C&&H)return window.addEventListener("focus",ee),window.addEventListener("blur",_e),function(){window.removeEventListener("focus",ee),window.removeEventListener("blur",_e)}},[C,ee,H]),!H&&fe?null:reactExports.createElement(ClickAwayListener,_extends$v({onClickAway:Ee},w),reactExports.createElement("div",_extends$v({className:clsx$1(y.root,y["anchorOrigin".concat(capitalize$1(p)).concat(capitalize$1(h))],b),onMouseEnter:se,onMouseLeave:$e,ref:u},Z),reactExports.createElement(B,_extends$v({appear:!0,in:H,onEnter:createChainedFunction(Se,x),onEntered:A,onEntering:D,onExit:j,onExited:createChainedFunction(xe,M),onExiting:N,timeout:Q,direction:p==="top"?"down":"up"},K),m||reactExports.createElement(SnackbarContent$1,_extends$v({message:T,action:d},E)))))});const Snackbar$1=withStyles$2(styles$1C,{flip:!1,name:"MuiSnackbar"})(Snackbar);var styles$1B={root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},Step=reactExports.forwardRef(function(o,u){var d=o.active,f=d===void 0?!1:d,p=o.alternativeLabel,h=o.children,v=o.classes,g=o.className,m=o.completed,y=m===void 0?!1:m,b=o.connector,w=o.disabled,E=w===void 0?!1:w,P=o.expanded,C=P===void 0?!1:P,T=o.index,O=o.last,x=o.orientation,A=_objectWithoutProperties$q(o,["active","alternativeLabel","children","classes","className","completed","connector","disabled","expanded","index","last","orientation"]),D=b?reactExports.cloneElement(b,{orientation:x,alternativeLabel:p,index:T,active:f,completed:y,disabled:E}):null,j=reactExports.createElement("div",_extends$v({className:clsx$1(v.root,v[x],g,p&&v.alternativeLabel,y&&v.completed),ref:u},A),D&&p&&T!==0?D:null,reactExports.Children.map(h,function(M){return reactExports.isValidElement(M)?reactExports.cloneElement(M,_extends$v({active:f,alternativeLabel:p,completed:y,disabled:E,exp
43anded:C,last:O,icon:T+1,orientation:x},M.props)):null}));return D&&!p&&T!==0?reactExports.createElement(reactExports.Fragment,null,D,j):j});const Step_default=withStyles$2(styles$1B,{name:"MuiStep"})(Step),CheckCircle=createSvgIcon(reactExports.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),Warning=createSvgIcon(reactExports.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));var styles$1A=function(o){return{root:{display:"block",color:o.palette.text.disabled,"&$completed":{color:o.palette.primary.main},"&$active":{color:o.palette.primary.main},"&$error":{color:o.palette.error.main}},text:{fill:o.palette.primary.contrastText,fontSize:o.typography.caption.fontSize,fontFamily:o.typography.fontFamily},active:{},completed:{},error:{}}},_ref$4=reactExports.createElement("circle",{cx:"12",cy:"12",r:"12"}),StepIcon=reactExports.forwardRef(function(o,u){var d=o.completed,f=d===void 0?!1:d,p=o.icon,h=o.active,v=h===void 0?!1:h,g=o.error,m=g===void 0?!1:g,y=o.classes;if(typeof p=="number"||typeof p=="string"){var b=clsx$1(y.root,v&&y.active,m&&y.error,f&&y.completed);return m?reactExports.createElement(Warning,{className:b,ref:u}):f?reactExports.createElement(CheckCircle,{className:b,ref:u}):reactExports.createElement(SvgIcon$2,{className:b,ref:u},_ref$4,reactExports.createElement("text",{className:y.text,x:"12",y:"16",textAnchor:"middle"},p))}return p});const StepIcon$1=withStyles$2(styles$1A,{name:"MuiStepIcon"})(StepIcon);var styles$1z=function(o){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:o.palette.text.secondary,"&$active":{color:o.palette.text.primary,fontWeight:500},"&$completed":{color:o.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:o.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}},StepLabel=reactExports.forwardRef(function(o,u){var d=o.active,f=d===void 0?!1:d,p=o.alternativeLabel,h=p===void 0?!1:p,v=o.children,g=o.classes,m=o.className,y=o.completed,b=y===void 0?!1:y,w=o.disabled,E=w===void 0?!1:w,P=o.error,C=P===void 0?!1:P;o.expanded;var T=o.icon;o.last;var O=o.optional,x=o.orientation,A=x===void 0?"horizontal":x,D=o.StepIconComponent,j=o.StepIconProps,M=_objectWithoutProperties$q(o,["active","alternativeLabel","children","classes","className","completed","disabled","error","expanded","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),N=D;return T&&!N&&(N=StepIcon$1),reactExports.createElement("span",_extends$v({className:clsx$1(g.root,g[A],m,E&&g.disabled,h&&g.alternativeLabel,C&&g.error),ref:u},M),T||N?reactExports.createElement("span",{className:clsx$1(g.iconContainer,h&&g.alternativeLabel)},reactExports.createElement(N,_extends$v({completed:b,active:f,error:C,icon:T},j))):null,reactExports.createElement("span",{className:g.labelContainer},v?reactExports.createElement(Typography$1,{variant:"body2",component:"span",display:"block",className:clsx$1(g.label,h&&g.alternativeLabel,b&&g.completed,f&&g.active,C&&g.error)},v):null,O))});StepLabel.muiName="StepLabel";const StepLabel$1=withStyles$2(styles$1z,{name:"MuiStepLabel"})(StepLabel);var styles$1y={root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},StepButton=reactExports.forwardRef(function(o,u){var d=o.active,f=o.alternativeLabel,p=o.children,h=o.classes,v=o.className,g=o.completed,m=o.disabled;o.expanded;var y=o.icon;o.last;var b=o.optional,w=o.orientation,E=_objectWithoutProperties$q(o,["active","alternativeLabel","children","classes","className","completed","disabled","expanded","icon","last","optional","orientation"]),P={active:d,alternativeLabel:f,completed:g,disabled:m,icon:y,optional:b,orientation:w},C=isMuiElement(p,["StepLabel"])?reactExports.cloneElement(p,P):reactExports.createElement(StepLabel$1,P,p);return reactExports.createElement(ButtonBase$1,_extends$v({focusRipple:!0,disabled:m,TouchRippleProps:{className:h.touchRipple},className:clsx$1(h.root,h[w],v),ref:u},E),C)});const StepButton_default=withStyles$2(styles$1y,{name:"MuiStepButton"})(StepButton);var styles$1x=function(o){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:o.palette.type==="light"?o.palette.grey[400]:o.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}},StepConnector=reactExports.forwardRef(function(o,u){var d=o.active,f=o.alternativeLabel,p=f===void 0?!1:f,h=o.classes,v=o.className,g=o.completed,m=o.disabled;o.index;var y=o.orientation,b=y===void 0?"horizontal":y,w=_objectWithoutProperties$q(o,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return reactExports.createElement("div",_extends$v({className:clsx$1(h.root,h[b],v,p&&h.alternativeLabel,d&&h.active,g&&h.completed,m&&h.disabled),ref:u},w),reactExports.createElement("span",{className:clsx$1(h.line,{horizontal:h.lineHorizontal,vertical:h.lineVertical}[b])}))});const StepConnector$1=withStyles$2(styles$1x,{name:"MuiStepConnector"})(StepConnector);var styles$1w=function(o){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat(o.palette.type==="light"?o.palette.grey[400]:o.palette.grey[600])},last:{borderLeft:"none"},transition:{}}},StepContent=reactExports.forwardRef(function(o,u){var d=o.active;o.alternativeLabel;var f=o.children,p=o.classes,h=o.className;o.completed;var v=o.expanded,g=o.last;o.optional,o.orientation;
43var m=o.TransitionComponent,y=m===void 0?Collapse$1:m,b=o.transitionDuration,w=b===void 0?"auto":b,E=o.TransitionProps,P=_objectWithoutProperties$q(o,["active","alternativeLabel","children","classes","className","completed","expanded","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),C=w;return w==="auto"&&!y.muiSupportAuto&&(C=void 0),reactExports.createElement("div",_extends$v({className:clsx$1(p.root,h,g&&p.last),ref:u},P),reactExports.createElement(y,_extends$v({in:d||v,className:p.transition,timeout:C,unmountOnExit:!0},E),f))});const StepContent_default=withStyles$2(styles$1w,{name:"MuiStepContent"})(StepContent);var styles$1v={root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},defaultConnector=reactExports.createElement(StepConnector$1,null),Stepper=reactExports.forwardRef(function(o,u){var d=o.activeStep,f=d===void 0?0:d,p=o.alternativeLabel,h=p===void 0?!1:p,v=o.children,g=o.classes,m=o.className,y=o.connector,b=y===void 0?defaultConnector:y,w=o.nonLinear,E=w===void 0?!1:w,P=o.orientation,C=P===void 0?"horizontal":P,T=_objectWithoutProperties$q(o,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),O=reactExports.isValidElement(b)?reactExports.cloneElement(b,{orientation:C}):null,x=reactExports.Children.toArray(v),A=x.map(function(D,j){var M={index:j,active:!1,completed:!1,disabled:!1};return f===j?M.active=!0:!E&&f>j?M.completed=!0:!E&&f<j&&(M.disabled=!0),reactExports.cloneElement(D,_extends$v({alternativeLabel:h,connector:O,last:j+1===x.length,orientation:C},M,D.props))});return reactExports.createElement(Paper$1,_extends$v({square:!0,elevation:0,className:clsx$1(g.root,g[C],m,h&&g.alternativeLabel),ref:u},T),A)});const Stepper_default=withStyles$2(styles$1v,{name:"MuiStepper"})(Stepper);var styles$1u=function(o){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:o.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}},SwipeArea=reactExports.forwardRef(function(o,u){var d=o.anchor,f=o.classes,p=o.className,h=o.width,v=_objectWithoutProperties$q(o,["anchor","classes","className","width"]);return reactExports.createElement("div",_extends$v({className:clsx$1(f.root,f["anchor".concat(capitalize$1(d))],p),ref:u,style:_defineProperty$1z({},isHorizontal(d)?"width":"height",h)},v))});const SwipeArea$1=withStyles$2(styles$1u,{name:"PrivateSwipeArea"})(SwipeArea);var UNCERTAINTY_THRESHOLD=3,nodeThatClaimedTheSwipe=null;function calculateCurrentX(l,o){return l==="right"?document.body.offsetWidth-o[0].pageX:o[0].pageX}function calculateCurrentY(l,o){return l==="bottom"?window.innerHeight-o[0].clientY:o[0].clientY}function getMaxTranslate(l,o){return l?o.clientWidth:o.clientHeight}function getTranslate(l,o,u,d){return Math.min(Math.max(u?o-l:d+o-l,0),d)}function getDomTreeShapes(l,o){for(var u=[];l&&l!==o;){var d=window.getComputedStyle(l);d.getPropertyValue("position")==="absolute"||d.getPropertyValue("overflow-x")==="hidden"?u=[]:(l.clientWidth>0&&l.scrollWidth>l.clientWidth||l.clientHeight>0&&l.scrollHeight>l.clientHeight)&&u.push(l),l=l.parentElement}return u}function findNativeHandler(l){var o=l.domTreeShapes,u=l.start,d=l.current,f=l.anchor,p={scrollPosition:{x:"scrollLeft",y:"scrollTop"},scrollLength:{x:"scrollWidth",y:"scrollHeight"},clientLength:{x:"clientWidth",y:"clientHeight"}};return o.some(function(h){var v=d>=u;(f==="top"||f==="left")&&(v=!v);var g=f==="left"||f==="right"?"x":"y",m=h[p.scrollPosition[g]],y=m>0,b=m+h[p.clientLength[g]]<h[p.scrollLength[g]];return v&&b||!v&&y?h:null})}var iOS=typeof navigator<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent),transitionDurationDefault={enter:duration.enteringScreen,exit:duration.leavingScreen},useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,SwipeableDrawer=reactExports.forwardRef(function(o,u){var d=useTheme$1(),f=getThemeProps({name:"MuiSwipeableDrawer",props:_extends$v({},o),theme:d}),p=f.anchor,h=p===void 0?"left":p,v=f.disableBackdropTransition,g=v===void 0?!1:v,m=f.disableDiscovery,y=m===void 0?!1:m,b=f.disableSwipeToOpen,w=b===void 0?iOS:b,E=f.hideBackdrop,P=f.hysteresis,C=P===void 0?.52:P,T=f.minFlingVelocity,O=T===void 0?450:T,x=f.ModalProps;x=x===void 0?{}:x;var A=x.BackdropProps,D=_objectWithoutProperties$q(x,["BackdropProps"]),j=f.onClose,M=f.onOpen,N=f.open,q=f.PaperProps,z=q===void 0?{}:q,H=f.SwipeAreaProps,U=f.swipeAreaWidth,F=U===void 0?20:U,B=f.transitionDuration,G=B===void 0?transitionDurationDefault:B,Q=f.variant,K=Q===void 0?"temporary":Q,Z=_objectWithoutProperties$q(f,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),te=reactExports.useState(!1),oe=te[0],fe=te[1],le=reactExports.useRef({isSwiping:null}),Re=reactExports.useRef(),Ae=reactExports.useRef(),_e=reactExports.useRef(),ee=reactExports.useRef(!1),se=reactExports.useRef();useEnhancedEffect(function(){se.current=null},[N]);var $e=reactExports.useCallback(function(ge){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=Y.mode,ce=ie===void 0?null:ie,ue=Y.changeTransition,pe=ue===void 0?!0:ue,Te=getAnchor(d,h),Ce=["right","bottom"].indexOf(Te)!==-1?1:-1,Fe=isHorizontal(h),He=Fe?"translate(".concat(Ce*ge,"px, 0)"):"translate(0, ".concat(Ce*ge,"px)"),we=_e.current.style;we.webkitTransform=He,we.transform=He;var Oe="";if(ce&&(Oe=d.transitions.create("all",getTransitionProps({timeout:G},{mode:ce}))),pe&&(we.webkitTransition=Oe,we.transition=Oe),!g&&!E){var Ne=Ae.current.style;Ne.opacity=1-ge/getMaxTranslate(Fe,_e.current),pe&&(Ne.webkitTransition=Oe,Ne.transition=Oe)}},[h,g,E,d,G]),Ee=useEventCallback(function(ge){if(ee.current){if(nodeThatClaimedTheSwipe=null,ee.current=!1,fe(!1),!le.current.isSwiping){le.current.isSwiping=null;return}le.current.isSwiping=null;var Y=getAnchor(d,h),ie=isHorizontal(h),ce;ie?ce=calculateCurrentX(Y,ge.changedTouches):ce=calculateCurrentY(Y,ge.changedTouches);var ue=ie?le.current.startX:le.current.startY,pe=getMaxTranslate(ie,_e.current),Te=getTranslate(ce,ue,N,pe),Ce=Te/pe;if(Math.abs(le.current.velocity)>O&&(se.current=Math.abs((pe-Te)/le.current.velocity)*1e3),N){le.current.velocity>O||Ce>C?j():$e(0,{mode:"exit"});return}le.current.velocity<-O||1-Ce>C?M():$e(getMaxTranslate(ie,_e.current),{mode:"enter"})}}),xe=useEventCallback(function(ge){if(!(!_e.current||!ee.current)&&!(nodeThatClaimedTheSwipe!=null&&nodeThatClaimedTheSwipe!==le.current)){var Y=getAnchor(d,h),ie=isHorizontal(h),ce=calculateCurrentX(Y,ge.touches),ue=calculateCurrentY(Y,ge.touches);if(N&&_e.current.contains(ge.target)&&nodeThatClaimedTheSwipe==null){var pe=getDomTreeShapes(ge.target,_e.current),Te=findNativeHandler({domTreeShapes:pe,start:ie?le.current.startX:le.current.startY,current:ie?ce:ue,anchor:h});if(Te){nodeThatClaimedTheSwipe=Te;return}nodeThatClaimedTheSwipe=le.current}if(le.current.isSwiping==null){var Ce=Math.abs(ce-le.current.startX),Fe=Math.abs(ue-le.current.startY);Ce>Fe&&ge.cancelable&&ge.preventDefault();var He=ie?Ce>Fe&&Ce>UNCERTAINTY_THRESHOLD:Fe>Ce&&Fe>UNCERTAINTY_THRESHOLD;if(He===!0||(ie?Fe>UNCERTAINTY_THRESHOLD:Ce>UNCERTAINTY_THRESHOLD)){if(le.current.isSwiping=He,!He){Ee(ge);return}le.current.startX=ce,le.current.startY=ue,!y&&!N&&(ie?le.current.startX-=F:le.current.startY-=F)}}if(le.current.isSwiping){var we=getMaxTranslate(ie,_e.current),Oe=ie?le.current.startX:le.current.startY;N&&!le.current.paperHit&&(Oe=Math.min(Oe,we));var Ne=getTranslate(ie?ce:ue,Oe,N,we);if(N)if(le.current.paperHit)Ne===0&&(le.current.startX=ce,le.current.startY=ue);else{var qe=ie?ce<we:ue<we;if(qe)le.current.paperHit=!0,le.current.startX=ce,le.current.startY=ue;else return}le.current.lastTranslate===null&&(le.current.lastTranslate=Ne,le.current.lastTime=performance.now()+1);var Be=(Ne-le.current.lastTranslate)/(performance.now()-le.current.lastTime)*1e3;
43le.current.velocity=le.current.velocity*.4+Be*.6,le.current.lastTranslate=Ne,le.current.lastTime=performance.now(),ge.cancelable&&ge.preventDefault(),$e(Ne)}}}),Se=useEventCallback(function(ge){if(!ge.defaultPrevented&&!ge.muiHandled&&!(N&&!Ae.current.contains(ge.target)&&!_e.current.contains(ge.target))){var Y=getAnchor(d,h),ie=isHorizontal(h),ce=calculateCurrentX(Y,ge.touches),ue=calculateCurrentY(Y,ge.touches);if(!N){if(w||ge.target!==Re.current)return;if(ie){if(ce>F)return}else if(ue>F)return}ge.muiHandled=!0,nodeThatClaimedTheSwipe=null,le.current.startX=ce,le.current.startY=ue,fe(!0),!N&&_e.current&&$e(getMaxTranslate(ie,_e.current)+(y?20:-F),{changeTransition:!1}),le.current.velocity=0,le.current.lastTime=null,le.current.lastTranslate=null,le.current.paperHit=!1,ee.current=!0}});reactExports.useEffect(function(){if(K==="temporary"){var ge=ownerDocument(_e.current);return ge.addEventListener("touchstart",Se),ge.addEventListener("touchmove",xe,{passive:!1}),ge.addEventListener("touchend",Ee),function(){ge.removeEventListener("touchstart",Se),ge.removeEventListener("touchmove",xe,{passive:!1}),ge.removeEventListener("touchend",Ee)}}},[K,Se,xe,Ee]),reactExports.useEffect(function(){return function(){nodeThatClaimedTheSwipe===le.current&&(nodeThatClaimedTheSwipe=null)}},[]),reactExports.useEffect(function(){N||fe(!1)},[N]);var Ie=reactExports.useCallback(function(ge){Ae.current=reactDomExports.findDOMNode(ge)},[]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Drawer$1,_extends$v({open:K==="temporary"&&oe?!0:N,variant:K,ModalProps:_extends$v({BackdropProps:_extends$v({},A,{ref:Ie})},D),PaperProps:_extends$v({},z,{style:_extends$v({pointerEvents:K==="temporary"&&!N?"none":""},z.style),ref:_e}),anchor:h,transitionDuration:se.current||G,onClose:j,ref:u},Z)),!w&&K==="temporary"&&reactExports.createElement(NoSsr,null,reactExports.createElement(SwipeArea$1,_extends$v({anchor:h,ref:Re,width:F},H))))}),styles$1t=function(o){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:o.palette.type==="light"?o.palette.grey[50]:o.palette.grey[400],transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:o.palette.type==="light"?o.palette.grey[400]:o.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:o.palette.type==="light"?.12:.1}},colorPrimary:{"&$checked":{color:o.palette.primary.main,"&:hover":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:o.palette.type==="light"?o.palette.grey[400]:o.palette.grey[800]},"&$checked + $track":{backgroundColor:o.palette.primary.main},"&$disabled + $track":{backgroundColor:o.palette.type==="light"?o.palette.common.black:o.palette.common.white}},colorSecondary:{"&$checked":{color:o.palette.secondary.main,"&:hover":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:o.palette.type==="light"?o.palette.grey[400]:o.palette.grey[800]},"&$checked + $track":{backgroundColor:o.palette.secondary.main},"&$disabled + $track":{backgroundColor:o.palette.type==="light"?o.palette.common.black:o.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:o.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:o.transitions.create(["opacity","background-color"],{duration:o.transitions.duration.shortest}),backgroundColor:o.palette.type==="light"?o.palette.common.black:o.palette.common.white,opacity:o.palette.type==="light"?.38:.3}}},Switch=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=p===void 0?"secondary":p,v=o.edge,g=v===void 0?!1:v,m=o.size,y=m===void 0?"medium":m,b=_objectWithoutProperties$q(o,["classes","className","color","edge","size"]),w=reactExports.createElement("span",{className:d.thumb});return reactExports.createElement("span",{className:clsx$1(d.root,f,{start:d.edgeStart,end:d.edgeEnd}[g],y==="small"&&d["size".concat(capitalize$1(y))])},reactExports.createElement(SwitchBase$1,_extends$v({type:"checkbox",icon:w,checkedIcon:w,classes:{root:clsx$1(d.switchBase,d["color".concat(capitalize$1(h))]),input
vendor: 4,993 bytes, lines 43-44
43:d.input,checked:d.checked,disabled:d.disabled},ref:u},b)),reactExports.createElement("span",{className:d.track}))});const Switch$1=withStyles$2(styles$1t,{name:"MuiSwitch"})(Switch);var styles$1s=function(o){var u;return{root:_extends$v({},o.typography.button,(u={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},_defineProperty$1z(u,o.breakpoints.up("sm"),{padding:"6px 24px"}),_defineProperty$1z(u,"overflow","hidden"),_defineProperty$1z(u,"whiteSpace","normal"),_defineProperty$1z(u,"textAlign","center"),_defineProperty$1z(u,o.breakpoints.up("sm"),{minWidth:160}),u)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:o.palette.text.secondary,"&$selected":{color:o.palette.primary.main},"&$disabled":{color:o.palette.text.disabled}},textColorSecondary:{color:o.palette.text.secondary,"&$selected":{color:o.palette.secondary.main},"&$disabled":{color:o.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:o.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}},Tab=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.disabled,h=p===void 0?!1:p,v=o.disableFocusRipple,g=v===void 0?!1:v,m=o.fullWidth,y=o.icon,b=o.indicator,w=o.label,E=o.onChange,P=o.onClick,C=o.onFocus,T=o.selected,O=o.selectionFollowsFocus,x=o.textColor,A=x===void 0?"inherit":x,D=o.value,j=o.wrapped,M=j===void 0?!1:j,N=_objectWithoutProperties$q(o,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]),q=function(U){E&&E(U,D),P&&P(U)},z=function(U){O&&!T&&E&&E(U,D),C&&C(U)};return reactExports.createElement(ButtonBase$1,_extends$v({focusRipple:!g,className:clsx$1(d.root,d["textColor".concat(capitalize$1(A))],f,h&&d.disabled,T&&d.selected,w&&y&&d.labelIcon,m&&d.fullWidth,M&&d.wrapped),ref:u,role:"tab","aria-selected":T,disabled:h,onClick:q,onFocus:z,tabIndex:T?0:-1},N),reactExports.createElement("span",{className:d.wrapper},y,w),b)});const Tab$1=withStyles$2(styles$1s,{name:"MuiTab"})(Tab);var TableContext=reactExports.createContext(),styles$1r=function(o){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_extends$v({},o.typography.body2,{padding:o.spacing(2),color:o.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}},defaultComponent$4="table",Table=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?defaultComponent$4:p,v=o.padding,g=v===void 0?"normal":v,m=o.size,y=m===void 0?"medium":m,b=o.stickyHeader,w=b===void 0?!1:b,E=_objectWithoutProperties$q(o,["classes","className","component","padding","size","stickyHeader"]),P=reactExports.useMemo(function(){return{padding:g,size:y,stickyHeader:w}},[g,y,w]);return reactExports.createElement(TableContext.Provider,{value:P},reactExports.createElement(h,_extends$v({role:h===defaultComponent$4?null:"table",ref:u,className:clsx$1(d.root,f,w&&d.stickyHeader)},E)))});const Table_default=withStyles$2(styles$1r,{name:"MuiTable"})(Table);var Tablelvl2Context=reactExports.createContext(),styles$1q={root:{display:"table-row-group"}},tablelvl2$2={variant:"body"},defaultComponent$3="tbody",TableBody=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?defaultComponent$3:p,v=_objectWithoutProperties$q(o,["classes","className","component"]);return reactExports.createElement(Tablelvl2Context.Provider,{value:tablelvl2$2},reactExports.createElement(h,_extends$v({className:clsx$1(d.root,f),ref:u,role:h===defaultComponent$3?null:"rowgroup"},v)))});const TableBody_default=withStyles$2(styles$1q,{name:"MuiTableBody"})(TableBody);var styles$1p=function(o){return{root:_extends$v({},o.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:`1px solid
44    `.concat(o.palette.type==="light"?lighten(alpha(o.palette.divider,1),.88):darken(alpha(o.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:o.palette.text.primary,lineHeight:o.typography.pxToRem(24),fontWeight:o.typography.fontWeightMedium},body:{color:o.palette.text.primary},footer:{color:o.palette.text.secondary,lineHeight:o.typography.pxToRem(21),fontSize:o.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}}
44,alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:o.palette.background.default}}},TableCell=reactExports.forwardRef(function(o,u){var d=o.align,f=d===void 0?"inherit":d,p=o.classes,h=o.className,v=o.component,g=o.padding,m=o.scope,y=o.size,b=o.sortDirection,w=o.variant,E=_objectWithoutProperties$q(o,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),P=reactExports.useContext(TableContext),C=reactExports.useContext(Tablelvl2Context),T=C&&C.variant==="head",O,x;v?(x=v,O=T?"columnheader":"cell"):x=T?"th":"td";var A=m;!A&&T&&(A="col");var D=g||(P&&P.padding?P.padding:"normal"),j=y||(P&&P.size?P.size:"medium"),M=w||C&&C.variant,N=null;return b&&(N=b==="asc"?"ascending":"descending"),reactExports.createElement(x,_extends$v({ref:u,className:clsx$1(p.root,p[M],h,f!=="inherit"&&p["align".concat(capitalize$1(f))],D!=="normal"&&p["padding".concat(capitalize$1(D))],j!=="medium"&&p["size".concat(capitalize$1(j))],M==="head"&&P&&P.stickyHeader&&p.stickyHeader),"aria-sort":N,role:O,scope:A},E))});const TableCell$1=withStyles$2(styles$1p,{name:"MuiTableCell"})(TableCell);var styles$1o={root:{width:"100%",overflowX:"auto"}},TableContainer=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?"div":p,v=_objectWithoutProperties$q(o,["classes","className","component"]);return reactExports.createElement(h,_extends$v({ref:u,className:clsx$1(d.root,f)},v))});const TableContainer_default=withStyles$2(styles$1o,{name:"MuiTableContainer"})(TableContainer);var styles$1n={root:{display:"table-footer-group"}},tablelvl2$1={variant:"footer"},defaultComponent$2="tfoot",TableFooter=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?defaultComponent$2:p,v=_objectWithoutProperties$q(o,["classes","className","component"]);return reactExports.createElement(Tablelvl2Context.Provider,{value:tablelvl2$1},reactExports.createElement(h,_extends$v({className:clsx$1(d.root,f),ref:u,role:h===defaultComponent$2?null:"rowgroup"},v)))});const TableFooter_default=withStyles$2(styles$1n,{name:"MuiTableFooter"})(TableFooter);var styles$1m={root:{display:"table-header-group"}},tablelvl2={variant:"head"},defaultComponent$1="thead",TableHead=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?defaultComponent$1:p,v=_objectWithoutProperties$q(o,["classes","className","component"]);return reactExports.createElement(Tablelvl2Context.Provider,{value:tablelvl2},reactExports.createElement(h,_extends$v({className:clsx$1(d.root,f),ref:u,role:h===defaultComponent$1?null:"rowgroup"},v)))});const TableHead_default=withStyles$2(styles$1m,{name:"MuiTableHead"})(TableHead);var styles$1l=function(o){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:_defineProperty$1z({paddingLeft:o.spacing(2),paddingRight:o.spacing(2)},o.breakpoints.up("sm"),{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}),regular:o.mixins.toolbar,dense:{minHeight:48}}},Toolbar=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?"div":p,v=o.disableGutters,g=v===void 0?!1:v,m=o.variant,y=m===void 0?"regular":m,b=_objectWithoutProperties$q(o,["classes","className","component","disableGutters","variant"]);return reactExports.createElement(h,_extends$v({className:clsx$1(d.root,d[y],f,!g&&d.gutters),ref:u},b))});const Toolbar$1=withStyles$2(styles$1l,{name:"MuiToolbar"})(Toolbar),KeyboardArrowLeft=createSvgIcon(reactExports.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),KeyboardArrowRight=createSvgIcon(reactExports.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));var _ref$3=reactExports.createElement(KeyboardArrowRight,null),_ref2$2=reactExports.createElement(KeyboardArrowLeft,null),_ref3=reactExports.createElement(KeyboardArrowLeft,null),_ref4=reactExports.createElement(KeyboardArrowRight,null),TablePaginationActions=reactExports.forwardRef(function(o,u){var d=o.backIconButtonProps,f=o.count,p=o.nextIconButtonProps,h=o.onChangePage,v=h===void 0?function(){}:h,g=o.onPageChange,m=g===void 0?function(){}:g,y=o.page,b=o.rowsPerPage,w=_objectWithoutProperties$q(o,["backIconButtonProps","count","nextIconButtonProps","onChangePage","onPageChange","page","rowsPerPage"]),E=useTheme$1(),P=function(O){v(O,y-1),m(O,y-1)},C=function(O){v(O,y+1),m(O,y+1)};return reactExports.createElement("div",_extends$v({ref:u},w),reactExports.createElement(IconButton$1,_extends$v({onClick:P,disabled:y===0,color:"inherit"},d),E.direction==="rtl"?_ref$3:_ref2$2),reactExports.createElement(IconButton$1,_extends$v({onClick:C,disabled:f!==-1?y>=Math.ceil(f/b)-1:!1,color:"inherit"},p),E.direction==="rtl"?_ref3:_ref4))}),styles$1k=function(o){return{root:{color:o.palette.text.primary,fontSize:o.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}},defaultLabelDisplayedRows=function(o){var u=o.from,d=o.to,f=o.count;return"".concat(u,"-").concat(d," of ").concat(f!==-1?f:"more than ".concat(d))},defaultRowsPerPageOptions=[10,25,50,100],TablePagination=reactExports.forwardRef(function(o,u){var d=o.ActionsComponent,f=d===void 0?TablePaginationActions:d,p=o.backIconButtonProps,h=o.backIconButtonText,v=h===void 0?"Previous page":h,g=o.classes,m=o.className,y=o.colSpan,b=o.component,w=b===void 0?TableCell$1:b,E=o.c
44ount,P=o.labelDisplayedRows,C=P===void 0?defaultLabelDisplayedRows:P,T=o.labelRowsPerPage,O=T===void 0?"Rows per page:":T,x=o.nextIconButtonProps,A=o.nextIconButtonText,D=A===void 0?"Next page":A,j=o.onChangePage,M=o.onPageChange,N=o.onChangeRowsPerPage,q=o.onRowsPerPageChange,z=o.page,H=o.rowsPerPage,U=o.rowsPerPageOptions,F=U===void 0?defaultRowsPerPageOptions:U,B=o.SelectProps,G=B===void 0?{}:B,Q=_objectWithoutProperties$q(o,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onPageChange","onChangeRowsPerPage","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps"]),K=N||q,Z;(w===TableCell$1||w==="td")&&(Z=y||1e3);var te=useId(),oe=useId(),fe=G.native?"option":MenuItem$1;return reactExports.createElement(w,_extends$v({className:clsx$1(g.root,m),colSpan:Z,ref:u},Q),reactExports.createElement(Toolbar$1,{className:g.toolbar},reactExports.createElement("div",{className:g.spacer}),F.length>1&&reactExports.createElement(Typography$1,{color:"inherit",variant:"body2",className:g.caption,id:oe},O),F.length>1&&reactExports.createElement(Select$1,_extends$v({classes:{select:g.select,icon:g.selectIcon},input:reactExports.createElement(InputBase$1,{className:clsx$1(g.input,g.selectRoot)}),value:H,onChange:K,id:te,labelId:oe},G),F.map(function(le){return reactExports.createElement(fe,{className:g.menuItem,key:le.value?le.value:le,value:le.value?le.value:le},le.label?le.label:le)})),reactExports.createElement(Typography$1,{color:"inherit",variant:"body2",className:g.caption},C({from:E===0?0:z*H+1,to:E!==-1?Math.min(E,(z+1)*H):(z+1)*H,count:E===-1?-1:E,page:z})),reactExports.createElement(f,{className:g.actions,backIconButtonProps:_extends$v({title:v,"aria-label":v},p),count:E,nextIconButtonProps:_extends$v({title:D,"aria-label":D},x),onChangePage:j,onPageChange:M,page:z,rowsPerPage:H})))});const TablePagination_default=withStyles$2(styles$1k,{name:"MuiTablePagination"})(TablePagination);var styles$1j=function(o){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:o.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:alpha(o.palette.secondary.main,o.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}},defaultComponent="tr",TableRow=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.component,h=p===void 0?defaultComponent:p,v=o.hover,g=v===void 0?!1:v,m=o.selected,y=m===void 0?!1:m,b=_objectWithoutProperties$q(o,["classes","className","component","hover","selected"]),w=reactExports.useContext(Tablelvl2Context);return reactExports.createElement(h,_extends$v({ref:u,className:clsx$1(d.root,f,w&&{head:d.head,footer:d.footer}[w.variant],g&&d.hover,y&&d.selected),role:h===defaultComponent?null:"row"},b))});const TableRow_default=withStyles$2(styles$1j,{name:"MuiTableRow"})(TableRow),ArrowDownwardIcon=createSvgIcon(reactExports.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}));var styles$1i=function(o){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:o.palette.text.secondary},"&:hover":{color:o.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:o.palette.text.primary,"&& $icon":{opacity:1,color:o.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:o.transitions.create(["opacity","transform"],{duration:o.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}},TableSortLabel=reactExports.forwardRef(function(o,u){var d=o.active,f=d===void 0?!1:d,p=o.children,h=o.classes,v=o.className,g=o.direction,m=g===void 0?"asc":g,y=o.hideSortIcon,b=y===void 0?!1:y,w=o.IconComponent,E=w===void 0?ArrowDownwardIcon:w,P=_objectWithoutProperties$q(o,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return reactExports.createElement(ButtonBase$1,_extends$v({className:clsx$1(h.root,v,f&&h.active),component:"span",disableRipple:!0,ref:u},P),p,b&&!f?null:reactExports.createElement(E,{className:clsx$1(h.icon,h["iconDirection".concat(capitalize$1(m))])}))});const TableSortLabel_default=withStyles$2(styles$1i,{name:"MuiTableSortLabel"})(TableSortLabel);var cachedType;
44function detectScrollType(){if(cachedType)return cachedType;var l=document.createElement("div"),o=document.createElement("div");return o.style.width="10px",o.style.height="1px",l.appendChild(o),l.dir="rtl",l.style.fontSize="14px",l.style.width="4px",l.style.height="1px",l.style.position="absolute",l.style.top="-1000px",l.style.overflow="scroll",document.body.appendChild(l),cachedType="reverse",l.scrollLeft>0?cachedType="default":(l.scrollLeft=1,l.scrollLeft===0&&(cachedType="negative")),document.body.removeChild(l),cachedType}function getNormalizedScrollLeft(l,o){var u=l.scrollLeft;if(o!=="rtl")return u;var d=detectScrollType();switch(d){case"negative":return l.scrollWidth-l.clientWidth+u;case"reverse":return l.scrollWidth-l.clientWidth-u;default:return u}}function easeInOutSin(l){return(1+Math.sin(Math.PI*l-Math.PI/2))/2}function animate(l,o,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},p=d.ease,h=p===void 0?easeInOutSin:p,v=d.duration,g=v===void 0?300:v,m=null,y=o[l],b=!1,w=function(){b=!0},E=function P(C){if(b){f(new Error("Animation cancelled"));return}m===null&&(m=C);var T=Math.min(1,(C-m)/g);if(o[l]=h(T)*(u-y)+y,T>=1){requestAnimationFrame(function(){f(null)});return}requestAnimationFrame(P)};return y===u?(f(new Error("Element already at target position")),w):(requestAnimationFrame(E),w)}var styles$1h={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ScrollbarSize(l){var o=l.onChange,u=_objectWithoutProperties$q(l,["onChange"]),d=reactExports.useRef(),f=reactExports.useRef(null),p=function(){d.current=f.current.offsetHeight-f.current.clientHeight};return reactExports.useEffect(function(){var h=debounce$3(function(){var v=d.current;p(),v!==d.current&&o(d.current)});return window.addEventListener("resize",h),function(){h.clear(),window.removeEventListener("resize",h)}},[o]),reactExports.useEffect(function(){p(),o(d.current)},[o]),reactExports.createElement("div",_extends$v({style:styles$1h,ref:f},u))}var styles$1g=function(o){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create()},colorPrimary:{backgroundColor:o.palette.primary.main},colorSecondary:{backgroundColor:o.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}},TabIndicator=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.color,h=o.orientation,v=_objectWithoutProperties$q(o,["classes","className","color","orientation"]);return reactExports.createElement("span",_extends$v({className:clsx$1(d.root,d["color".concat(capitalize$1(p))],f,h==="vertical"&&d.vertical),ref:u},v))});const TabIndicator$1=withStyles$2(styles$1g,{name:"PrivateTabIndicator"})(TabIndicator);var styles$1f={root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},_ref$2=reactExports.createElement(KeyboardArrowLeft,{fontSize:"small"}),_ref2$1=reactExports.createElement(KeyboardArrowRight,{fontSize:"small"}),TabScrollButton=reactExports.forwardRef(function(o,u){var d=o.classes,f=o.className,p=o.direction,h=o.orientation,v=o.disabled,g=_objectWithoutProperties$q(o,["classes","className","direction","orientation","disabled"]);return reactExports.createElement(ButtonBase$1,_extends$v({component:"div",className:clsx$1(d.root,f,v&&d.disabled,h==="vertical"&&d.vertical),ref:u,role:null,tabIndex:null},g),p==="left"?_ref$2:_ref2$1)});const TabScrollButton$1=withStyles$2(styles$1f,{name:"MuiTabScrollButton"})(TabScrollButton);var styles$1e=function(o){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:_defineProperty$1z({},o.breakpoints.down("xs"),{display:"none"}),indicator:{}}},Tabs=reactExports.forwardRef(function(o,u){var d=o["aria-label"],f=o["aria-labelledby"],p=o.action,h=o.centered,v=h===void 0?!1:h,g=o.children,m=o.classes,y=o.className,b=o.component,w=b===void 0?"div":b,E=o.indicatorColor,P=E===void 0?"secondary":E,C=o.onChange,T=o.orientation,O=T===void 0?"horizontal":T,x=o.ScrollButtonComponent,A=x===void 0?TabScrollButton$1:x,D=o.scrollButtons,j=D===void 0?"auto":D,M=o.selectionFollowsFocus,N=o.TabIndicatorProps,q=N===void 0?{}:N,z=o.TabScrollButtonProps,H=o.textColor,U=H===void 0?"inherit":H,F=o.value,B=o.variant,G=B===void 0?"standard":B,Q=_objectWithoutProperties$q(o,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),K=useTheme$1(),Z=G==="scrollable",te=K.direction==="rtl",oe=O==="vertical",fe=oe?"scrollTop":"scrollLeft",le=oe?"top":"left",Re=oe?"bottom":"right",Ae=oe?"clientHeight":"clientWidth",_e=oe?"height":"width",ee=reactExports.useState(!1),se=ee[0],$e=ee[1],Ee=reactExports.useState({}),xe=Ee[0],Se=Ee[1],Ie=reactExports.useState({start:!1,end:!1}),ge=Ie[0],Y=Ie[1],ie=reactExports.useState({overflow:"hidden",marginBottom:null}),ce=ie[0],ue=ie[1],pe=new Map,Te=reactExports.useRef(null),Ce=reactExports.useRef(null),Fe=function(){var he=Te.current,Pe;if(he){var We=he.getBoundingClientRect();Pe={clientWidth:he.clientWidth,scrollLeft:he.scrollLeft,scrollTop:he.scrollTop,scrollLeftNormalized:getNormalizedScrollLeft(he,K.direction),scrollWidth:he.scrollWidth,top:We.top,bottom:We.bottom,left:We.left,right:We.right}}var yt;if(he&&F!==!1){var ct=Ce.current.children;if(ct.length>0){var ht=ct[pe.get(F)];yt=ht?ht.getBoundingClientRect():null}}return{tabsMeta:Pe,tabMeta:yt}},He=useEventCallback(function(){var re,he=Fe(),Pe=he.tabsMeta,We=he.tabMeta,yt=0;if(We&&Pe)if(oe)yt=We.top-Pe.top+Pe.scrollTop;else{var ct=te?Pe.scrollLeftNormalized+Pe.clientWidth-Pe.scrollWidth:Pe.scrollLeft;yt=We.left-Pe.left+ct}var ht=(re={},_defineProperty$1z(re,le,yt),_defineProperty$1z(re,_e,We?We[_e]:0),re);if(isNaN(xe[le])||isNaN(xe[_e]))Se(ht);else{var bt=Math.abs(xe[le]-ht[le]),xt=Math.abs(xe[_e]-ht[_e]);(bt>=1||xt>=1)&&Se(ht)}}),we=function(he){animate(fe,Te.current,he)},Oe=function(he){var Pe=Te.current[fe];oe?Pe+=he:(Pe+=he*(te?-1:1),Pe*=te&&detectScrollType()==="reverse"?-1:1),we(Pe)},Ne=function(){Oe(-Te.current[Ae])},qe=function(){Oe(Te.current[Ae])},Be=reactExports.useCallback(function(re){ue({overflow:null,marginBottom:-re})},[]),Ve=function(){var he={};he.scrollbarSizeListener=Z?reactExports.createElement(ScrollbarSize,{className:m.scrollable,onChange:Be}):null;var Pe=ge.start||ge.end,We=Z&&(j==="auto"&&Pe||j==="desktop"||j==="on");return he.scrollButtonStart=We?reactExports.createElement(A,_extends$v({orientation:O,direction:te?"right":"left",onClick:Ne,disabled:!ge.start,className:clsx$1(m.scrollButtons,j!=="on"&&m.scrollButtonsDesktop)},z)):null,he.scrollButtonEnd=We?reactExports.createElement(A,_extends$v({orientation:O,direction:te?"left":"right",onClick:qe,disabled:!ge.end,className:clsx$1(m.scrollButtons,j!=="on"&&m.scrollButtonsDesktop)},z)):null,he},Ye=useEventCallback(function(){var re=Fe(),he=re.tabsMeta,Pe=re.tabMeta;if(!(!Pe||!he)){if(Pe[le]<he[le]){var We=he[fe]+(Pe[le]-he[le]);we(We)}else if(Pe[Re]>he[Re]){var yt=he[fe]+(Pe[Re]-he[Re]);we(yt)}}}),Ge=useEventCallback(function(){if(Z&&j!=="off"){var re=Te.current,he=re.scrollTop,Pe=re.scrollHeight,We=re.clientHeight,yt=re.scrollWidth,ct=re.clientWidth,ht,bt;if(oe)ht=he>1,bt=he<Pe-We-1;else{var xt=getNormalizedScrollLeft(Te.current,K.direction);ht=te?xt<yt-ct-1:xt>1,bt=te?xt>1:xt<yt-ct-1}(ht!==ge.start||bt!==ge.end)&&Y({start:ht,end:bt})}});reactExports.useEffect(function(){var re=debounce$3(function(){He(),Ge()}),he=ownerWindow(Te.current);return he.addEventListener("resize",re),function(){re.clear(),he.removeEventListener("resize",re)}},[He,Ge]);var dt=reactExports.useCallback(debounce$3(function(){Ge()}));reactExports.useEffect(function(){return function(){dt.clear()}},[dt]),reactExports.useEffect(function(){$e(!0)},[]),reactExports.useEffect(function(){He(),Ge()}),reactExports.useEffect(function(){Ye()},[Ye,xe]),reactExports.useImperativeHandle(p,function(){return{updateIndicator:He,updateScrollButtons:Ge}},[He,Ge]);var ze=reactExports.createElement(TabIndicator$1,_extends$v({className:m.indicator,orientation:O,color:P},q,{style:_extends$v({},xe,q.style)})),nt=0,Ze=reactExports.Children.map(g,function(re){if(!reactExports.isValidElement(re))return null;var he=re.props.value===void 0?nt:re.props.value;pe.set(he,nt);var Pe=he===F;return nt+=1,reactExports.cloneElement(re,{fullWidth:G==="fullWidth",indicator:Pe&&!se&&ze,selected:Pe,selectionFollowsFocus:M,onChange:C,textColor:U,value:he})}),_t=function(he){var Pe=he.target,We=Pe.getAttribute("role");
44if(We==="tab"){var yt=null,ct=O!=="vertical"?"ArrowLeft":"ArrowUp",ht=O!=="vertical"?"ArrowRight":"ArrowDown";switch(O!=="vertical"&&K.direction==="rtl"&&(ct="ArrowRight",ht="ArrowLeft"),he.key){case ct:yt=Pe.previousElementSibling||Ce.current.lastChild;break;case ht:yt=Pe.nextElementSibling||Ce.current.firstChild;break;case"Home":yt=Ce.current.firstChild;break;case"End":yt=Ce.current.lastChild;break}yt!==null&&(yt.focus(),he.preventDefault())}},ae=Ve();return reactExports.createElement(w,_extends$v({className:clsx$1(m.root,y,oe&&m.vertical),ref:u},Q),ae.scrollButtonStart,ae.scrollbarSizeListener,reactExports.createElement("div",{className:clsx$1(m.scroller,Z?m.scrollable:m.fixed),style:ce,ref:Te,onScroll:dt},reactExports.createElement("div",{"aria-label":d,"aria-labelledby":f,className:clsx$1(m.flexContainer,oe&&m.flexContainerVertical,v&&!Z&&m.centered),onKeyDown:_t,ref:Ce,role:"tablist"},Ze),se&&ze),ae.scrollButtonEnd)});const Tabs$1=withStyles$2(styles$1e,{name:"MuiTabs"})(Tabs);var variantComponent={standard:Input$2,filled:FilledInput$1,outlined:OutlinedInput$1},styles$1d={root:{}},TextField=reactExports.forwardRef(function(o,u){var d=o.autoComplete,f=o.autoFocus,p=f===void 0?!1:f,h=o.children,v=o.classes,g=o.className,m=o.color,y=m===void 0?"primary":m,b=o.defaultValue,w=o.disabled,E=w===void 0?!1:w,P=o.error,C=P===void 0?!1:P,T=o.FormHelperTextProps,O=o.fullWidth,x=O===void 0?!1:O,A=o.helperText,D=o.hiddenLabel,j=o.id,M=o.InputLabelProps,N=o.inputProps,q=o.InputProps,z=o.inputRef,H=o.label,U=o.multiline,F=U===void 0?!1:U,B=o.name,G=o.onBlur,Q=o.onChange,K=o.onFocus,Z=o.placeholder,te=o.required,oe=te===void 0?!1:te,fe=o.rows,le=o.rowsMax,Re=o.maxRows,Ae=o.minRows,_e=o.select,ee=_e===void 0?!1:_e,se=o.SelectProps,$e=o.type,Ee=o.value,xe=o.variant,Se=xe===void 0?"standard":xe,Ie=_objectWithoutProperties$q(o,["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"]),ge={};if(Se==="outlined"&&(M&&typeof M.shrink<"u"&&(ge.notched=M.shrink),H)){var Y,ie=(Y=M?.required)!==null&&Y!==void 0?Y:oe;ge.label=reactExports.createElement(reactExports.Fragment,null,H,ie&&" *")}ee&&((!se||!se.native)&&(ge.id=void 0),ge["aria-describedby"]=void 0);var ce=A&&j?"".concat(j,"-helper-text"):void 0,ue=H&&j?"".concat(j,"-label"):void 0,pe=variantComponent[Se],Te=reactExports.createElement(pe,_extends$v({"aria-describedby":ce,autoComplete:d,autoFocus:p,defaultValue:b,fullWidth:x,multiline:F,name:B,rows:fe,rowsMax:le,maxRows:Re,minRows:Ae,type:$e,value:Ee,id:j,inputRef:z,onBlur:G,onChange:Q,onFocus:K,placeholder:Z,inputProps:N},ge,q));return reactExports.createElement(FormControl$1,_extends$v({className:clsx$1(v.root,g),disabled:E,error:C,fullWidth:x,hiddenLabel:D,ref:u,required:oe,color:y,variant:Se},Ie),H&&reactExports.createElement(InputLabel$1,_extends$v({htmlFor:j,id:ue},M),H),ee?reactExports.createElement(Select$1,_extends$v({"aria-describedby":ce,id:j,labelId:ue,value:Ee,input:Te},se),h):Te,A&&reactExports.createElement(FormHelperText$1,_extends$v({id:ce},T),A))});const TextField$1=withStyles$2(styles$1d,{name:"MuiTextField"})(TextField);function defaultTrigger(l,o){var u=o.disableHysteresis,d=u===void 0?!1:u,f=o.threshold,p=f===void 0?100:f,h=o.target,v=l.current;return h&&(l.current=h.pageYOffset!==void 0?h.pageYOffset:h.scrollTop),!d&&v!==void 0&&l.current<v?!1:l.current>p}var defaultTarget=typeof window<"u"?window:null;function useScrollTrigger(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.getTrigger,u=o===void 0?defaultTrigger:o,d=l.target,f=d===void 0?defaultTarget:d,p=_objectWithoutProperties$q(l,["getTrigger","target"]),h=reactExports.useRef(),v=reactExports.useState(function(){return u(h,p)}),g=v[0],m=v[1];return reactExports.useEffect(function(){var y=function(){m(u(h,_extends$v({target:f},p)))};return y(),f.addEventListener("scroll",y),function(){f.removeEventListener("scroll",y)}},[f,u,JSON.stringify(p)]),g}var withMobileDialog=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(u){var d=o.breakpoint,f=d===void 0?"sm":d;function p(h){return reactExports.createElement(u,_extends$v({fullScreen:isWidthDown(f,h.width)},h))}return withWidth()(p)}},styles$1c={entering:{transform:"none"},entered:{transform:"none"}},defaultTimeout={enter:duration.enteringScreen,exit:duration.leavingScreen},Zoom=reactExports.forwardRef(function(o,u){var d=o.children,f=o.disableStrictModeCompat,p=f===void 0?!1:f,h=o.in,v=o.onEnter,g=o.onEntered,m=o.onEntering,y=o.onExit,b=o.onExited,w=o.onExiting,E=o.style,P=o.timeout,C=P===void 0?defaultTimeout:P,T=o.TransitionComponent,O=T===void 0?Transition:T,x=_objectWithoutProperties$q(o,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=useTheme$1(),D=A.unstable_strictMode&&!p,j=reactExports.useRef(null),M=useForkRef(d.ref,u),N=useForkRef(D?j:void 0,M),q=function(K){return function(Z,te){if(K){var oe=D?[j.current,Z]:[Z,te],fe=_slicedToArray$n(oe,2),le=fe[0],Re=fe[1];Re===void 0?K(le):K(le,Re)}}},z=q(m),H=q(function(Q,K){reflow(Q);var Z=getTransitionProps({style:E,timeout:C},{mode:"enter"});Q.style.webkitTransition=A.transitions.create("transform",Z),Q.style.transition=A.transitions.create("transform",Z),v&&v(Q,K)}),U=q(g),F=q(w),B=q(function(Q){var K=getTransitionProps({style:E,timeout:C},{mode:"exit"});Q.style.webkitTransition=A.transitions.create("transform",K),Q.style.transition=A.transitions.create("transform",K),y&&y(Q)}),G=q(b);return reactExports.createElement(O,_extends$v({appear:!0,in:h,nodeRef:D?j:void 0,onEnter:H,onEntered:U,onEntering:z,onExit:B,onExited:G,onExiting:F,timeout:C},x),function(Q,K){return reactExports.cloneElement(d,_extends$v({style:_extends$v({transform:"scale(0)",visibility:Q==="exited"&&!h?"hidden":void 0},styles$1c[Q],E,d.props.style),ref:N},K))})});const esm$5=Object.freeze(Object.defineProperty({__proto__:null,Accordion:Accordion$1,AccordionActions:AccordionActions_default,AccordionDetail
44s:AccordionDetails$1,AccordionSummary:AccordionSummary$1,AppBar:AppBar$1,Avatar:Avatar$1,Backdrop:Backdrop$1,Badge:Badge$1,BottomNavigation:BottomNavigation_default,BottomNavigationAction:BottomNavigationAction_default,Box,Breadcrumbs:Breadcrumbs_default,Button:Button$1,ButtonBase:ButtonBase$1,ButtonGroup:ButtonGroup$1,Card:Card$1,CardActionArea:CardActionArea_default,CardActions:CardActions_default,CardContent:CardContent$1,CardHeader:CardHeader_default,CardMedia:CardMedia_default,Checkbox:Checkbox_default,Chip:Chip$1,CircularProgress:CircularProgress$2,ClickAwayListener,Collapse:Collapse$1,Container:Container_default,CssBaseline:CssBaseline_default,Dialog:Dialog$1,DialogActions:DialogActions$1,DialogContent:DialogContent$1,DialogContentText:DialogContentText$1,DialogTitle:DialogTitle$1,Divider:Divider_default,Drawer:Drawer$1,ExpansionPanel:ExpansionPanel_default,ExpansionPanelActions:ExpansionPanelActions_default,ExpansionPanelDetails:ExpansionPanelDetails_default,ExpansionPanelSummary:ExpansionPanelSummary_default,Fab:Fab$1,Fade,FilledInput:FilledInput$1,FormControl:FormControl$1,FormControlLabel:FormControlLabel$1,FormGroup:FormGroup$1,FormHelperText:FormHelperText$1,FormLabel:FormLabel$1,Grid:StyledGrid,GridList:GridList_default,GridListTile:GridListTile_default,GridListTileBar:GridListTileBar_default,Grow,Hidden,Icon:Icon_default,IconButton:IconButton$1,ImageList:ImageList_default,ImageListItem:ImageListItem_default,ImageListItemBar:ImageListItemBar_default,Input:Input$2,InputAdornment:InputAdornment$1,InputBase:InputBase$1,InputLabel:Input
44Label$1,LinearProgress:LinearProgress$1,Link:Link$1,List:List$1,ListItem:ListItem$1,ListItemAvatar:ListItemAvatar_default,ListItemIcon:ListItemIcon$1,ListItemSecondaryAction:ListItemSecondaryAction_default,ListItemText:ListItemText$1,ListSubheader:ListSubheader$1,Menu:Menu$1,MenuItem:MenuItem$1,MenuList,MobileStepper:MobileStepper_default,Modal,ModalManager,MuiThemeProvider:ThemeProvider,NativeSelect:NativeSelect_default,NoSsr,OutlinedInput:OutlinedInput$1,Paper:Paper$1,Popover:Popover$1,Popper,Portal,Radio:Radio$1,RadioGroup,RootRef,Select:Select$1,ServerStyleSheets,Slide,Slider:Slider$2,Snackbar:Snackbar$1,SnackbarContent:SnackbarContent$1,Step:Step_default,StepButton:StepButton_default,StepConnector:StepConnector$1,StepContent:StepContent_default,StepIcon:StepIcon$1,StepLabel:StepLabel$1,Stepper:Stepper_default,StylesProvider,SvgIcon:SvgIcon$2,SwipeableDrawer,Switch:Switch$1,Tab:Tab$1,TabScrollButton:TabScrollButton$1,Table:Table_default,TableBody:TableBody_default,TableCell:TableCell$1,TableContainer:TableContainer_default,TableFooter:TableFooter_default,TableHead:TableHead_default,TablePagination:TablePagination_default,TableRow:TableRow_default,TableSortLabel:TableSortLabel_default,Tabs:Tabs$1,TextField:TextField$1,TextareaAutosize,ThemeProvider,Toolbar:Toolbar$1,Tooltip:Tooltip$1,Typography:Typography$1,Unstable_TrapFocus,Zoom,alpha,capitalize:capitalize$1,colors:index$1,createChainedFunction,createGenerateClassName,createMuiTheme,createStyles,createSvgIcon,createTheme:createTheme$1,darken,debounce:debounce$3,decomposeColor,deprecatedPropType,duration,easing,emphasize,fade,getContrastRatio,getLuminance,hexToRgb,hslToRgb,isMuiElement,isWidthDown,isWidthUp,jssPreset,lighten,makeStyles:makeStyles$2,ownerDocument,ownerWindow,recomposeColor,requirePropFactory,responsiveFontSizes,rgbToHex,setRef:setRef$1,styleFunction,styled,unstable_createMuiStrictModeTheme:createMuiStrictModeTheme,unstable_useId:useId,unsupportedProp,useControlled,useEventCallback,useForkRef,useFormControl,useIsFocusVisible,useMediaQuery:useMediaQuery$1,useRadioGroup,useScrollTrigger,useTheme:useTheme$1,withMobileDialog,withStyles:withStyles$2,withTheme:withTheme$2,withWidth},Symbol.toStringTag,{value:"Module"}));var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var l=function(o,u,d,f,p,h,v,g){if(!o){var m;if(u===void 0)m=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[d,f,p,h,v,g],b=0;m=new Error(u.replace(/%s/g,function(){return y[b++]})),m.name="Invariant Violation"}throw m.framesToPop=1,m}};return browser=l,browser}var index_umd$1={exports:{}},index_umd=index_umd$1.exports,hasRequiredIndex_umd;function requireIndex_umd(){return hasRequiredIndex_umd||(hasRequiredIndex_umd=1,(function(l,o){(function(u,d){d(o)})(index_umd,(function(u){function d(p,h,v,g){var m,y=!1,b=0;function w(){m&&clearTimeout(m)}function E(){w(),y=!0}typeof h!="boolean"&&(g=v,v=h,h=void 0);function P(){for(var C=arguments.length,T=new Array(C),O=0;O<C;O++)T[O]=arguments[O];var x=this,A=Date.now()-b;if(y)return;function D(){b=Date.now(),v.apply(x,T)}function j(){m=void 0}g&&!m&&D(),w(),g===void 0&&A>p?D():h!==!0&&(m=setTimeout(g?j:D,g===void 0?p-A:p))}return P.cancel=E,P}function f(p,h,v){return v===void 0?d(p,h,!1):d(p,v,h!==!1)}u.debounce=f,u.throttle=d,Object.defineProperty(u,"__esModule",{value:!0})}))})(index_umd$1,index_umd$1.exports)),index_umd$1.exports}var collectionUtils={exports:{}},hasRequiredCollectionUtils;function requireCollectionUtils(){if(hasRequiredCollectionUtils)return collectionUtils.exports;hasRequiredCollectionUtils=1;var l=collectionUtils.exports={};return l.forEach=function(o,u){for(var d=0;d<o.length;d++){var f=u(o[d]);if(f)return f}},collectionUtils.exports}var elementUtils,hasRequiredElementUtils;function requireElementUtils(){return hasRequiredElementUtils||(hasRequiredElementUtils=1,elementUtils=function(l){var o=l.stateHandler.getState;function u(h){var v=o(h);return v&&!!v.isDetectable}function d(h){o(h).isDetectable=!0}function f(h){return!!o(h).busy}function p(h,v){o(h).busy=!!v}return{isDetectable:u,markAsDetectable:d,isBusy:f,markBusy:p}}),elementUtils}var listenerHandler,hasRequiredListenerHandler;function requireListenerHandler(){return hasRequiredListenerHandler||(hasRequiredListenerHandler=1,listenerHandler=function(l){var o={};function u(h){var v=l.get(h);return v===void 0?[]:o[v]||[]}function d(h,v){var g=l.get(h);o[g]||(o[g]=[]),o[g].push(v)}function f(h,v){for(var g=u(h),m=0,y=g.length;m<y;++m)if(g[m]===v){g.splice(m,1);break}}function p(h){var v=u(h);v&&(v.length=0)}return{get:u,add:d,removeListener:f,removeAllListeners:p}}),listenerHandler}var idGenerator,hasRequiredIdGenerator;function requireIdGenerator(){return hasRequiredIdGenerator||(hasRequiredIdGenerator=1,idGenerator=function(){var l=1;function o(){return l++}return{generate:o}}),idGenerator}var idHandler,hasRequiredIdHandler;function requireIdHandler(){return hasRequiredIdHandler||(hasRequiredIdHandler=1,idHandler=function(l){var o=l.idGenerator,u=l.stateHandler.getState;function d(p){var h=u(p);return h&&h.id!==void 0?h.id:null}function f(p){var h=u(p);if(!h)throw new Error("setId required the element to have a resize detection state.");var v=o.generate();return h.id=v,v}return{get:d,set:f}}),idHandler}var reporter,hasRequiredReporter;function requireReporter(){return hasRequiredReporter||(hasRequiredReporter=1,reporter=function(l){function o(){}var u={log:o,warn:o,error:o};if(!l&&window.console){var d=function(f,p){f[p]=function(){var v=console[p];if(v.apply)v.apply(console,arguments);else for(var g=0;g<arguments.length;g++)v(arguments[g])}};d(u,"log"),d(u,"warn"),d(u,"error")}return u}),reporter}var browserDetector={exports:{}},hasRequiredBrowserDetector;function requireBrowserDetector(){if(hasRequiredBrowserDetector)return browserDetector.exports;hasRequiredBrowserDetector=1;var l=browserDetector.exports={};return l.isIE=function(o){function u(){var f=navigator.userAgent.toLowerCase();return f.indexOf("msie")!==-1||f.indexOf("trident")!==-1||f.indexOf(" edge/")!==-1}if(!u())return!1;if(!o)return!0;var d=(function(){var f,p=3,h=document.createElement("div"),v=h.getElementsByTagName("i");do h.innerHTML="<!--[if gt IE "+ ++p+"]><i></i><![endif]-->";while(v[0]);return p>4?p:f})();return o===d},l.isLegacyOpera=function(){return!!window.opera},browserDetector.exports}var utils$1={exports:{}},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$1.exports;hasRequiredUtils=1;var l=utils$1.exports={};l.getOption=o;function o(u,d,f){var p=u[d];return p==null&&f!==void 0?f:p}return utils$1.exports}var batchProcessor,hasRequiredBatchProcessor;function requireBatchProcessor(){if(hasRequiredBatchProcessor)return batchProcessor;hasRequiredBatchProcessor=1;var l=requireUtils();batchProcessor=function(d){d=d||{};var f=d.reporter,p=l.getOption(d,"async",!0),h=l.getOption(d,"auto",!0);h&&!p&&(f&&f.warn("Invalid options combination. auto=true and async=false is invali
44d. Setting async=true."),p=!0);var v=o(),g,m=!1;function y(T,O){!m&&h&&p&&v.size()===0&&E(),v.add(T,O)}function b(){for(m=!0;v.size();){var T=v;v=o(),T.process()}m=!1}function w(T){m||(T===void 0&&(T=p),g&&(P(g),g=null),T?E():b())}function E(){g=C(b)}function P(T){var O=clearTimeout;return O(T)}function C(T){var O=function(x){return setTimeout(x,0)};return O(T)}return{add:y,force:w}};function o(){var u={},d=0,f=0,p=0;function h(m,y){y||(y=m,m=0),m>f?f=m:m<p&&(p=m),u[m]||(u[m]=[]),u[m].push(y),d++}function v(){for(var m=p;m<=f;m++)for(var y=u[m],b=0;b<y.length;b++){var w=y[b];w()}}function g(){return d}return{add:h,process:v,size:g}}return batchProcessor}var stateHandler,hasRequiredStateHandler;function requireStateHandler(){if(hasRequiredStateHandler)return stateHandler;hasRequiredStateHandler=1;var l="_erd";function o(f){return f[l]={},u(f)}function u(f){return f[l]}function d(f){delete f[l]}return stateHandler={initState:o,getState:u,cleanState:d},stateHandler}var object,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1;var l=requireBrowserDetector();return object=function(o){o=o||{};var u=o.reporter,d=o.batchProcessor,f=o.stateHandler.getState;if(!u)throw new Error("Missing required dependency: reporter.");function p(y,b){function w(){b(y)}if(l.isIE(8))f(y).object={proxy:w},y.attachEvent("onresize",w);else{var E=g(y);if(!E)throw new Error("Element is not detectable by this strategy.");E.contentDocument.defaultView.addEventListener("resize",w)}}function h(y){var b=o.important?" !important; ":"; ";return(y.join(b)+b).trim()}function v(y,b,w){w||(w=b,b=y,y=null),y=y||{},y.debug;function E(P,C){var T=h(["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"]),O=!1,x=window.getComputedStyle(P),A=P.offsetWidth,D=P.offsetHeight;f(P).startSize={width:A,height:D};function j(){function M(){if(x.position==="static"){P.style.setProperty("position","relative",y.important?"important":"");var z=function(H,U,F,B){function G(K){return K.replace(/[^-\d\.]/g,"")}var Q=F[B];Q!=="auto"&&G(Q)!=="0"&&(H.warn("An element that is positioned static has style."+B+"="+Q+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+B+" will be set to 0. Element: ",U),U.style.setProperty(B,"0",y.important?"important":""))};z(u,P,x,"top"),z(u,P,x,"right"),z(u,P,x,"bottom"),z(u,P,x,"left")}}function N(){O||M();function z(U,F){if(!U.contentDocument){var B=f(U);B.checkForObjectDocumentTimeoutId&&window.clearTimeout(B.checkForObjectDocumentTimeoutId),B.checkForObjectDocumentTimeoutId=setTimeout(function(){B.checkForObjectDocumentTimeoutId=0,z(U,F)},100);return}F(U.contentDocument)}var H=this;z(H,function(F){C(P)})}x.position!==""&&(M(),O=!0);var q=document.createElement("object");q.style.cssText=T,q.tabIndex=-1,q.type="text/html",q.setAttribute("aria-hidden","true"),q.onload=N,l.isIE()||(q.data="about:blank"),f(P)&&(P.appendChild(q),f(P).object=q,l.isIE()&&(q.data="about:blank"))}d?d.add(j):j()}l.isIE(8)?w(b):E(b,w)}function g(y){return f(y).object}function m(y){if(f(y)){var b=g(y);b&&(l.isIE(8)?y.detachEvent("onresize",b.proxy):y.removeChild(b),f(y).checkForObjectDocumentTimeoutId&&window.clearTimeout(f(y).checkForObjectDocumentTimeoutId),delete f(y).object)}}return{makeDetectable:v,addListener:p,uninstall:m}},object}var scroll$2,hasRequiredScroll;function requireScroll(){if(hasRequiredScroll)return scroll$2;hasRequiredScroll=1;var l=requireCollectionUtils().forEach;return scroll$2=function(o){o=o||{};var u=o.reporter,d=o.batchProcessor,f=o.stateHandler.getState;o.stateHandler.hasState;var p=o.idHandler;if(!d)throw new Error("Missing required dependency: batchProcessor");if(!u)throw new Error("Missing required dependency: reporter.");var h=b(),v="erd_scroll_detection_scrollbar_style",g="erd_scroll_detection_container";function m(j){w(j,v,g)}m(window.document);function y(j){var M=o.important?" !important; ":"; ";return(j.join(M)+M).trim()}function b(){var j=500,M=500,N=document.createElement("div");N.style.cssText=y(["position: absolute","width: "+j*2+"px","height: "+M*2+"px","visibility: hidden","margin: 0","padding: 0"]);var q=document.createElement("div");q.style.cssText=y(["position: absolute","width: "+j+"px","height: "+M+"px","overflow: scroll","visibility: none","top: "+-j*3+"px","left: "+-M*3+"px","visibility: hidden","margin: 0","padding: 0"]),q.appendChild(N),document.body.insertBefore(q,document.body.firstChild);var z=j-q.clientWidth,H=M-q.clientHeight;return document.body.removeChild(q),{width:z,height:H}}function w(j,M,N){function q(F,B){B=B||function(Q){j.head.appendChild(Q)};var G=j.createElement("style");return G.innerHTML=F,G.id=M,B(G),G}if(!j.getElementById(M)){var z=N+"_animation",H=N+"_animation_active",U=`/* Created by the element-resize-detector library. */
45`;U+="."+N+" >
45 div::-webkit-scrollbar { "+y(["display: none"])+` }
46
47`,U+="."+H+" { "+y(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+z,"animation-name: "+z])+` }
48`,U+="@-webkit-keyframes "+z+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
49`,U+="@keyframes "+z+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",q(U)}}function E(j){j.className+=" "+g+"_animation_active"}function P(j,M,N){if(j.addEventListener)j.addEventListener(M,N);else if(j.attachEvent)j.attachEvent("on"+M,N);else return u.error("[scroll] Don't know how to add event listeners.")}function C(j,M,N){if(j.removeEventListener)j.removeEventListener(M,N);else if(j.detachEvent)j.detachEvent("on"+M,N);else return u.error("[scroll] Don't know how to remove event listeners.")}function T(j){return f(j).container.childNodes[0].childNodes[0].childNodes[0]}function O(j){return f(j).container.childNodes[0].childNodes[0].childNodes[1]}function x(j,M){var N=f(j).listeners;if(!N.push)throw new Error("Cannot add listener to an element that is not detectable.");f(j).listeners.push(M)}function A(j,M,N){N||(N=M,M=j,j=null),j=j||{};function q(){if(j.debug){var Se=Array.prototype.slice.call(arguments);if(Se.unshift(p.get(M),"Scroll: "),u.log.apply)u.log.apply(null,Se);else for(var Ie=0;Ie<Se.length;Ie++)u.log(Se[Ie])}}function z(Se){function Ie(ge){var Y=ge.getRootNode&&ge.getRootNode().contains(ge);return ge===ge.ownerDocument.body||ge.ownerDocument.body.contains(ge)||Y}return!Ie(Se)||window.getComputedStyle(Se)===null}function H(Se){var Ie=f(Se).container.childNodes[0],ge=window.getComputedStyle(Ie);return!ge.width||ge.width.indexOf("px")===-1}function U(){var Se=window.getComputedStyle(M),Ie={};return Ie.position=Se.position,Ie.width=M.offsetWidth,Ie.height=M.offsetHeight,Ie.top=Se.top,Ie.right=Se.right,Ie.bottom=Se.bottom,Ie.left=Se.left,Ie.widthCSS=Se.width,Ie.heightCSS=Se.height,Ie}function F(){var Se=U();f(M).startSize={width:Se.width,height:Se.height},q("Element start size",f(M).startSize)}function B(){f(M).listeners=[]}function G(){if(q("storeStyle invoked."),!f(M)){q("Aborting because element has been uninstalled");return}var Se=U();f(M).style=Se}function Q(Se,Ie,ge){f(Se).lastWidth=Ie,f(Se).lastHeight=ge}function K(Se){return T(Se).childNodes[0]}function Z(){return 2*h.width+1}function te(){return 2*h.height+1}function oe(Se){return Se+10+Z()}function fe(Se){return Se+10+te()}function le(Se){return Se*2+Z()}function Re(Se){return Se*2+te()}function Ae(Se,Ie,ge){var Y=T(Se),ie=O(Se),ce=oe(Ie),ue=fe(ge),pe=le(Ie),Te=Re(ge);Y.scrollLeft=ce,Y.scrollTop=ue,ie.scrollLeft=pe,ie.scrollTop=Te}function _e(){var Se=f(M).container;if(!Se){Se=document.createElement("div"),Se.className=g,Se.style.cssText=y(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),f(M).container=Se,E(Se),M.appendChild(Se);var Ie=function(){f(M).onRendered&&f(M).onRendered()};P(Se,"animationstart",Ie),f(M).onAnimationStart=Ie}return Se}function ee(){function Se(){var Ge=f(M).style;if(Ge.position==="static"){M.style.setProperty("position","relative",j.important?"important":"");var dt=function(ze,nt,Ze,_t){function ae(he){return he.replace(/[^-\d\.]/g,"")}var re=Ze[_t];re!=="auto"&&ae(re)!=="0"&&(ze.warn("An element that is positioned static has style."+_t+"="+re+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+_t+" will be set to 0. Element: ",nt),nt.style[_t]=0)};dt(u,M,Ge,"top"),dt(u,M,Ge,"right"),dt(u,M,Ge,"bottom"),dt(u,M,Ge,"left")}}function Ie(Ge,dt,ze,nt){return Ge=Ge?Ge+"px":"0",dt=dt?dt+"px":"0",ze=ze?ze+"px":"0",nt=nt?nt+"px":"0",["left: "+Ge,"top: "+dt,"right: "+nt,"bottom: "+ze]}if(q("Injecting elements"),!f(M)){q("Aborting because element has been uninstalled");return}Se();var ge=f(M).container;ge||(ge=_e());var Y=h.width,ie=h.height,ce=y(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),ue=y(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Ie(-(1+Y),-(1+ie),-ie,-Y))),pe=y(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Te=y(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Ce=y(["position: absolute","left: 0","top: 0"]),Fe=y(["position: absolute","width: 200%","height: 200%"]),He=document.createElement("div"),we=document.createElement("div"),Oe=document.createElement("div"),Ne=document.createElement("div"),qe=document.createElement("div"),Be=document.createElement("div");He.dir="ltr",He.style.cssText=ce,He.className=g,we.className=g,we.style.cssText=ue,Oe.style.cssText=pe,Ne.style.cssText=Ce,qe.style.cssText=Te,Be.style.cssText=Fe,Oe.appendChild(Ne),qe.appendChild(Be),we.appendChild(Oe),we.appendChild(qe),He.appendChild(we),ge.appendChild(He);function Ve(){var Ge=f(M);Ge&&Ge.onExpand?Ge.onExpand():q("Aborting expand scroll handler: element has been uninstalled")}function Ye(){var Ge=f(M);Ge&&Ge.onShrink?Ge.onShrink():q("Aborting shrink scroll handler: element has been uninstalled")}P(Oe,"scroll",Ve),P(qe,"scroll",Ye),f(M).onExpandScroll=Ve,f(M).onShrinkScroll=Ye}function se(){function Se(pe,Te,Ce){var Fe=K(pe),He=oe(Te),we=fe(Ce);Fe.style.setProperty("width",He+"px",j.important?"important":""),Fe.style.setProperty("height",we+"px",j.important?"important":"")}function Ie(pe){var Te=M.offsetWidth,Ce=M.offsetHeight,Fe=Te!==f(M).lastWidth||Ce!==f(M).lastHeight;q("Storing current size",Te,Ce),Q(M,Te,Ce),d.add(0,function(){if(Fe){if(!f(M)){q("Aborting because element has been uninstalled");return}if(!ge()){q("Aborting because element container has not been initialized");return}if(j.debug){var we=M.offsetWidth,Oe=M.offsetHeight;(we!==Te||Oe!==Ce)&&u.warn(p.get(M),"Scroll: Size changed before updating detector elements.")}Se(M,Te,Ce)}}),d.add(1,function(){if(!f(M)){q("Aborting because element has been uninstalled");return}if(!ge()){q("Aborting because element container has not been initialized");return}Ae(M,Te,Ce)}),Fe&&pe&&d.add(2,function(){if(!f(M)){q("Aborting because element has been uninstalled");return}if(!ge()){q("Aborting because element container has not been initialized");return}pe()})}function ge(){return!!f(M).container}
49function Y(){function pe(){return f(M).lastNotifiedWidth===void 0}q("notifyListenersIfNeeded invoked");var Te=f(M);if(pe()&&Te.lastWidth===Te.startSize.width&&Te.lastHeight===Te.startSize.height)return q("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(Te.lastWidth===Te.lastNotifiedWidth&&Te.lastHeight===Te.lastNotifiedHeight)return q("Not notifying: Size already notified");q("Current size not notified, notifying..."),Te.lastNotifiedWidth=Te.lastWidth,Te.lastNotifiedHeight=Te.lastHeight,l(f(M).listeners,function(Ce){Ce(M)})}function ie(){if(q("startanimation triggered."),H(M)){q("Ignoring since element is still unrendered...");return}q("Element rendered.");var pe=T(M),Te=O(M);(pe.scrollLeft===0||pe.scrollTop===0||Te.scrollLeft===0||Te.scrollTop===0)&&(q("Scrollbars out of sync. Updating detector elements..."),Ie(Y))}function ce(){if(q("Scroll detected."),H(M)){q("Scroll event fired while unrendered. Ignoring...");return}Ie(Y)}if(q("registerListenersAndPositionElements invoked."),!f(M)){q("Aborting because element has been uninstalled");return}f(M).onRendered=ie,f(M).onExpand=ce,f(M).onShrink=ce;var ue=f(M).style;Se(M,ue.width,ue.height)}function $e(){if(q("finalizeDomMutation invoked."),!f(M)){q("Aborting because element has been uninstalled");return}var Se=f(M).style;Q(M,Se.width,Se.height),Ae(M,Se.width,Se.height)}function Ee(){N(M)}function xe(){q("Installing..."),B(),F(),d.add(0,G),d.add(1,ee),d.add(2,se),d.add(3,$e),d.add(4,Ee)}q("Making detectable..."),z(M)?(q("Element is detached"),_e(),q("Waiting until element is attached..."),f(M).onRendered=function(){q("Element is now attached"),xe()}):xe()}function D(j){var M=f(j);M&&(M.onExpandScroll&&C(T(j),"scroll",M.onExpandScroll),M.onShrinkScroll&&C(O(j),"scroll",M.onShrinkScroll),M.onAnimationStart&&C(M.container,"animationstart",M.onAnimationStart),M.container&&j.removeChild(M.container))}return{makeDetectable:A,addListener:x,uninstall:D,initDocument:m}},scroll$2}var elementResizeDetector,hasRequiredElementResizeDetector;function requireElementResizeDetector(){if(hasRequiredElementResizeDetector)return elementResizeDetector;hasRequiredElementResizeDetector=1;var l=requireCollectionUtils().forEach,o=requireElementUtils(),u=requireListenerHandler(),d=requireIdGenerator(),f=requireIdHandler(),p=requireReporter(),h=requireBrowserDetector(),v=requireBatchProcessor(),g=requireStateHandler(),m=requireObject(),y=requireScroll();function b(C){return Array.isArray(C)||C.length!==void 0}function w(C){if(Array.isArray(C))return C;var T=[];return l(C,function(O){T.push(O)}),T}function E(C){return C&&C.nodeType===1}elementResizeDetector=function(C){C=C||{};var T;if(C.idHandler)T={get:function(Z){return C.idHandler.get(Z,!0)},set:C.idHandler.set};else{var O=d(),x=f({idGenerator:O,stateHandler:g});T=x}var A=C.reporter;if(!A){var D=A===!1;A=p(D)}var j=P(C,"batchProcessor",v({reporter:A})),M={};M.callOnAdd=!!P(C,"callOnAdd",!0),M.debug=!!P(C,"debug",!1);var N=u(T),q=o({stateHandler:g}),z,H=P(C,"strategy","object"),U=P(C,"important",!1),F={reporter:A,batchProcessor:j,stateHandler:g,idHandler:T,important:U};if(H==="scroll"&&(h.isLegacyOpera()?(A.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),H="object"):h.isIE(9)&&(A.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),H="object")),H==="scroll")z=y(F);else if(H==="object")z=m(F);else throw new Error("Invalid strategy name: "+H);var B={};function G(Z,te,oe){function fe(se){var $e=N.get(se);l($e,function(xe){xe(se)})}function le(se,$e,Ee){N.add($e,Ee),se&&Ee($e)}if(oe||(oe=te,te=Z,Z={}),!te)throw new Error("At least one element required.");if(!oe)throw new Error("Listener required.");if(E(te))te=[te];else if(b(te))te=w(te);else return A.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var Re=0,Ae=P(Z,"callOnAdd",M.callOnAdd),_e=P(Z,"onReady",function(){}),ee=P(Z,"debug",M.debug);l(te,function($e){g.getState($e)||(g.initState($e),T.set($e));var Ee=T.get($e);if(ee&&A.log("Attaching listener to element",Ee,$e),!q.isDetectable($e)){if(ee&&A.log(Ee,"Not detectable."),q.isBusy($e)){ee&&A.log(Ee,"System busy making it detectable"),le(Ae,$e,oe),B[Ee]=B[Ee]||[],B[Ee].push(function(){Re++,Re===te.length&&_e()});return}return ee&&A.log(Ee,"Making detectable..."),q.markBusy($e,!0),z.makeDetectable({debug:ee,important:U},$e,function(Se){if(ee&&A.log(Ee,"onElementDetectable"),g.getState(Se)){q.markAsDetectable(Se),q.markBusy(Se,!1),z.addListener(Se,fe),le(Ae,Se,oe);var Ie=g.getState(Se);if(Ie&&Ie.startSize){var ge=Se.offsetWidth,Y=Se.offsetHeight;(Ie.startSize.width!==ge||Ie.startSize.height!==Y)&&fe(Se)}B[Ee]&&l(B[Ee],function(ie){ie()})}else ee&&A.log(Ee,"Element uninstalled before being detectable.");delete B[Ee],Re++,Re===te.length&&_e()})}ee&&A.log(Ee,"Already detecable, adding listener."),le(Ae,$e,oe),Re++}),Re===te.length&&_e()}
49function Q(Z){if(!Z)return A.error("At least one element is required.");if(E(Z))Z=[Z];else if(b(Z))Z=w(Z);else return A.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");l(Z,function(te){N.removeAllListeners(te),z.uninstall(te),g.cleanState(te)})}function K(Z){z.initDocument&&z.initDocument(Z)}return{listenTo:G,removeListener:N.removeListener,removeAllListeners:N.removeAllListeners,uninstall:Q,initDocument:K}};function P(C,T,O){var x=C[T];return x==null&&O!==void 0?O:x}return elementResizeDetector}var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(o,u,d,f){var p=d?d.call(f,o,u):void 0;if(p!==void 0)return!!p;if(o===u)return!0;if(typeof o!="object"||!o||typeof u!="object"||!u)return!1;var h=Object.keys(o),v=Object.keys(u);if(h.length!==v.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(u),m=0;m<h.length;m++){var y=h[m];if(!g(y))return!1;var b=o[y],w=u[y];if(p=d?d.call(f,b,w,y):void 0,p===!1||p===void 0&&b!==w)return!1}return!0}),shallowequal}var reactSizeme,hasRequiredReactSizeme;function requireReactSizeme(){if(hasRequiredReactSizeme)return reactSizeme;hasRequiredReactSizeme=1;function l(K){return K&&typeof K=="object"&&"default"in K?K.default:K}var o=requireReact(),u=l(o),d=l(requireReactDom()),f=l(requireBrowser()),p=requireIndex_umd(),h=l(requireElementResizeDetector()),v=l(requireShallowequal());function g(K,Z){if(!(K instanceof Z))throw new TypeError("Cannot call a class as a function")}function m(K,Z){for(var te=0;te<Z.length;te++){var oe=Z[te];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(K,oe.key,oe)}}function y(K,Z,te){return Z&&m(K.prototype,Z),K}function b(K,Z,te){return Z in K?Object.defineProperty(K,Z,{value:te,enumerable:!0,configurable:!0,writable:!0}):K[Z]=te,K}function w(){return w=Object.assign||function(K){for(var Z=1;Z<arguments.length;Z++){var te=arguments[Z];for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&(K[oe]=te[oe])}return K},w.apply(this,arguments)}function E(K,Z){var te=Object.keys(K);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(K);Z&&(oe=oe.filter(function(fe){return Object.getOwnPropertyDescriptor(K,fe).enumerable})),te.push.apply(te,oe)}return te}function P(K){for(var Z=1;Z<arguments.length;Z++){var te=arguments[Z]!=null?arguments[Z]:{};Z%2?E(Object(te),!0).forEach(function(oe){b(K,oe,te[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(te)):E(Object(te)).forEach(function(oe){Object.defineProperty(K,oe,Object.getOwnPropertyDescriptor(te,oe))})}return K}function C(K,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(Z&&Z.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Z&&O(K,Z)}function T(K){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},T(K)}function O(K,Z){return O=Object.setPrototypeOf||function(oe,fe){return oe.__proto__=fe,oe},O(K,Z)}function x(K,Z){if(K==null)return{};var te={},oe=Object.keys(K),fe,le;for(le=0;le<oe.length;le++)fe=oe[le],!(Z.indexOf(fe)>=0)&&(te[fe]=K[fe]);return te}function A(K,Z){if(K==null)return{};var te=x(K,Z),oe,fe;if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(K);for(fe=0;fe<le.length;fe++)oe=le[fe],!(Z.indexOf(oe)>=0)&&Object.prototype.propertyIsEnumerable.call(K,oe)&&(te[oe]=K[oe])}return te}function D(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function j(K,Z){return Z&&(typeof Z=="object"||typeof Z=="function")?Z:D(K)}var M={};function N(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";return M[K]||(M[K]=h({strategy:K})),M[K]}var q="react-sizeme: an error occurred whilst stopping to listen to node size changes",z={monitorWidth:!0,monitorHeight:!1,monitorPosition:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function H(K){return K.displayName||K.name||"Component"}var U=(function(K){C(Z,K);function Z(){return g(this,Z),j(this,T(Z).apply(this,arguments))}return y(Z,[{key:"render",value:function(){return o.Children.only(this.props.children)}}]),Z})(o.Component);b(U,"displayName","SizeMeReferenceWrapper");function F(K){var Z=K.className,te=K.style,oe={};return!Z&&!te?oe.style={width:"100%",height:"100%"}:(Z&&(oe.className=Z),te&&(oe.style=te)),u.createElement("div",oe)}F.displayName="SizeMePlaceholder";var B=function(Z){function te(oe){var fe=oe.explicitRef,le=oe.className,Re=oe.style,Ae=oe.size,_e=oe.disablePlaceholder;oe.onSize;var ee=A(oe,["explicitRef","className","style","size","disablePlaceholder","onSize"]),se=Ae==null||Ae.width==null&&Ae.height==null&&Ae.position==null,$e=se&&!_e,Ee={className:le,style:Re};Ae!=null&&(Ee.size=Ae);var xe=$e?u.createElement(F,{className:le,style:Re}):u.createElement(Z,w({},Ee,ee));return u.createElement(U,{ref:fe},xe)}return te.displayName="SizeMeRenderer(".concat(H(Z),")"),te};function G(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z,Z=K.monitorWidth,te=Z===void 0?z.monitorWidth:Z,oe=K.monitorHeight,fe=oe===void 0?z.monitorHeight:oe,le=K.monitorPosition,Re=le===void 0?z.monitorPosition:le,Ae=K.refreshRate,_e=Ae===void 0?z.refreshRate:Ae,ee=K.refreshMode,se=ee===void 0?z.refreshMode:ee,$e=K.noPlaceholder,Ee=$e===void 0?z.noPlaceholder:$e,xe=K.resizeDetectorStrategy,Se=xe===void 0?z.resizeDetectorStrategy:xe;f(te||fe||Re,'You have to monitor at least one of the width, height, or position when using "sizeMe"'),f(_e>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),f(se==="throttle"||se==="debounce",'The refreshMode should have a value of "throttle" or "debounce"');var Ie=se==="throttle"?p.throttle:p.debounce;return function(Y){var ie=B(Y),ce=(function(ue){C(pe,ue);function pe(){var Te,Ce;g(this,pe);for(var Fe=arguments.length,He=new Array(Fe),we=0;we<Fe;we++)He[we]=arguments[we];return Ce=j(this,(Te=T(pe)).call.apply(Te,[this].concat(He))),b(D(Ce),"domEl",null),b(D(Ce),"state",{width:void 0,height:void 0,position:void 0}),b(D(Ce),"uninstall",function(){if(Ce.domEl){try{Ce.detector.uninstall(Ce.domEl)}catch{console.warn(q)}Ce.domEl=null}}),b(D(Ce),"determineStrategy",function(Oe){Oe.onSize?(Ce.callbackState||(Ce.callbackState=P({},Ce.state)),Ce.strategy="callback"):Ce.strategy="render"}),b(D(Ce),"strategisedSetState",function(Oe){Ce.strategy==="callback"&&(Ce.callbackState=Oe,Ce.props.onSize(Oe)),Ce.setState(Oe)}),b(D(Ce),"strategisedGetState",function(){return Ce.strategy==="callback"?Ce.callbackState:Ce.state}),b(D(Ce),"refCallback",function(Oe){Ce.element=Oe}),b(D(Ce),"hasSizeChanged",function(Oe,Ne){var qe=Oe,Be=Ne,Ve=qe.position||{}
49,Ye=Be.position||{};return te&&qe.width!==Be.width||fe&&qe.height!==Be.height||Re&&(Ve.top!==Ye.top||Ve.left!==Ye.left||Ve.bottom!==Ye.bottom||Ve.right!==Ye.right)}),b(D(Ce),"checkIfSizeChanged",Ie(_e,function(Oe){var Ne=Oe.getBoundingClientRect(),qe=Ne.width,Be=Ne.height,Ve=Ne.right,Ye=Ne.left,Ge=Ne.top,dt=Ne.bottom,ze={width:te?qe:null,height:fe?Be:null,position:Re?{right:Ve,left:Ye,top:Ge,bottom:dt}:null};Ce.hasSizeChanged(Ce.strategisedGetState(),ze)&&Ce.strategisedSetState(ze)})),Ce}return y(pe,[{key:"componentDidMount",value:function(){this.detector=N(Se),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 Ce=this.element&&d.findDOMNode(this.element);if(!Ce){this.uninstall();return}this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(Ce)||this.domEl!==Ce)&&(this.uninstall(),this.domEl=Ce,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=Ce,this.detector.listenTo(this.domEl,this.checkIfSizeChanged))}},{key:"render",value:function(){var Ce=G.enableSSRBehaviour||G.noPlaceholders||Ee||this.strategy==="callback",Fe=P({},this.state);return u.createElement(ie,w({explicitRef:this.refCallback,size:this.strategy==="callback"?null:Fe,disablePlaceholder:Ce},this.props))}}]),pe})(u.Component);return b(ce,"displayName","SizeMe(".concat(H(Y),")")),ce.WrappedComponent=Y,ce}}G.enableSSRBehaviour=!1,G.noPlaceholders=!1;var Q=(function(K){C(Z,K);function Z(te){var oe;g(this,Z),oe=j(this,T(Z).call(this,te)),b(D(oe),"createComponent",function(le){oe.SizeAware=G(le)(function(Re){var Ae=Re.children;return Ae})}),b(D(oe),"onSize",function(le){return oe.setState({size:le})}),te.children,te.render;var fe=A(te,["children","render"]);return oe.createComponent(fe),oe.state={size:{width:void 0,height:void 0}},oe}return y(Z,[{key:"componentDidUpdate",value:function(oe){var fe=this.props;fe.children,fe.render;var le=A(fe,["children","render"]);oe.children,oe.render;var Re=A(oe,["children","render"]);v(le,Re)||this.createComponent(le)}},{key:"render",value:function(){var oe=this.SizeAware,fe=this.props.children||this.props.render;return u.createElement(oe,{onSize:this.onSize},fe({size:this.state.size}))}}]),Z})(o.Component);return b(Q,"defaultProps",{children:void 0,render:void 0}),G.SizeMe=Q,G.withSize=G,reactSizeme=G,reactSizeme}var reactSizemeExports=requireReactSizeme(),withRef=function(){return function(o){var u=reactExports.forwardRef(function(d,f){return React.createElement(o,Object.assign({innerRef:f},d))});return u}},CloseSharp={},hasRequiredCloseSharp;function requireCloseSharp(){if(hasRequiredCloseSharp)return CloseSharp;hasRequiredCloseSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(CloseSharp,"__esModule",{value:!0}),CloseSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return CloseSharp.default=f,CloseSharp}var CloseSharpExports=requireCloseSharp();const CloseIcon$1=getDefaultExportFromCjs(CloseSharpExports);var OpenInNewSharp={},hasRequiredOpenInNewSharp;function requireOpenInNewSharp(){if(hasRequiredOpenInNewSharp)return OpenInNewSharp;hasRequiredOpenInNewSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(OpenInNewSharp,"__esModule",{value:!0}),OpenInNewSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNewSharp");return OpenInNewSharp.default=f,OpenInNewSharp}var OpenInNewSharpExports=requireOpenInNewSharp();const OpenInNewIcon=getDefaultExportFromCjs(OpenInNewSharpExports);var DragIndicatorSharp={},hasRequiredDragIndicatorSharp;function requireDragIndicatorSharp(){if(hasRequiredDragIndicatorSharp)return DragIndicatorSharp;hasRequiredDragIndicatorSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(DragIndicatorSharp,"__esModule",{value:!0}),DragIndicatorSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return DragIndicatorSharp.default=f,DragIndicatorSharp}var DragIndicatorSharpExports=requireDragIndicatorSharp();const MoveIcon=getDefaultExportFromCjs(DragIndicatorSharpExports);var cjs$1={exports:{}},Draggable$2={},clsx={exports:{}},hasRequiredClsx;
49function requireClsx(){if(hasRequiredClsx)return clsx.exports;hasRequiredClsx=1;function l(u){var d,f,p="";if(typeof u=="string"||typeof u=="number")p+=u;else if(typeof u=="object")if(Array.isArray(u)){var h=u.length;for(d=0;d<h;d++)u[d]&&(f=l(u[d]))&&(p&&(p+=" "),p+=f)}else for(f in u)u[f]&&(p&&(p+=" "),p+=f);return p}function o(){for(var u,d,f=0,p="",h=arguments.length;f<h;f++)(u=arguments[f])&&(d=l(u))&&(p&&(p+=" "),p+=d);return p}return clsx.exports=o,clsx.exports.clsx=o,clsx.exports}var domFns={},shims={},hasRequiredShims;function requireShims(){if(hasRequiredShims)return shims;hasRequiredShims=1,Object.defineProperty(shims,"__esModule",{value:!0}),shims.dontSetMe=f,shims.findInArray=l,shims.int=d,shims.isFunction=o,shims.isNum=u;function l(p,h){for(let v=0,g=p.length;v<g;v++)if(h.apply(h,[p[v],v,p]))return p[v]}function o(p){return typeof p=="function"||Object.prototype.toString.call(p)==="[object Function]"}function u(p){return typeof p=="number"&&!isNaN(p)}function d(p){return parseInt(p,10)}function f(p,h,v){if(p[h])return new Error(`Invalid prop ${h} passed to ${v} - do not set this, set it on the child.`)}return shims}var getPrefix={},hasRequiredGetPrefix;function requireGetPrefix(){if(hasRequiredGetPrefix)return getPrefix;hasRequiredGetPrefix=1,Object.defineProperty(getPrefix,"__esModule",{value:!0}),getPrefix.browserPrefixToKey=u,getPrefix.browserPrefixToStyle=d,getPrefix.default=void 0,getPrefix.getPrefix=o;const l=["Moz","Webkit","O","ms"];function o(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||p in h)return"";for(let v=0;v<l.length;v++)if(u(p,l[v])in h)return l[v];return""}function u(p,h){return h?`${h}${f(p)}`:p}function d(p,h){return h?`-${h.toLowerCase()}-${p}`:p}function f(p){let h="",v=!0;for(let g=0;g<p.length;g++)v?(h+=p[g].toUpperCase(),v=!1):p[g]==="-"?v=!0:h+=p[g];return h}return getPrefix.default=o(),getPrefix}var hasRequiredDomFns;function requireDomFns(){if(hasRequiredDomFns)return domFns;hasRequiredDomFns=1,Object.defineProperty(domFns,"__esModule",{value:!0}),domFns.addClassName=j,domFns.addEvent=h,domFns.addUserSelectStyles=x,domFns.createCSSTransform=E,domFns.createSVGTransform=P,domFns.getTouch=T,domFns.getTouchIdentifier=O,domFns.getTranslation=C,domFns.innerHeight=y,domFns.innerWidth=b,domFns.matchesSelector=f,domFns.matchesSelectorAndParentsTo=p,domFns.offsetXYFromParent=w,domFns.outerHeight=g,domFns.outerWidth=m,domFns.removeClassName=M,domFns.removeEvent=v,domFns.scheduleRemoveUserSelectStyles=A;var l=requireShims(),o=u(requireGetPrefix());function u(N,q){if(typeof WeakMap=="function")var z=new WeakMap,H=new WeakMap;return(u=function(U,F){if(!F&&U&&U.__esModule)return U;var B,G,Q={__proto__:null,default:U};if(U===null||typeof U!="object"&&typeof U!="function")return Q;if(B=F?H:z){if(B.has(U))return B.get(U);B.set(U,Q)}for(const K in U)K!=="default"&&{}.hasOwnProperty.call(U,K)&&((G=(B=Object.defineProperty)&&Object.getOwnPropertyDescriptor(U,K))&&(G.get||G.set)?B(Q,K,G):Q[K]=U[K]);return Q})(N,q)}let d="";function f(N,q){return d||(d=(0,l.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(z){return(0,l.isFunction)(N[z])})),(0,l.isFunction)(N[d])?N[d](q):!1}function p(N,q,z){let H=N;do{if(f(H,q))return!0;if(H===z)return!1;H=H.parentNode}while(H);return!1}function h(N,q,z,H){if(!N)return;const U={capture:!0,...H};N.addEventListener?N.addEventListener(q,z,U):N.attachEvent?N.attachEvent("on"+q,z):N["on"+q]=z}function v(N,q,z,H){if(!N)return;const U={capture:!0,...H};N.removeEventListener?N.removeEventListener(q,z,U):N.detachEvent?N.detachEvent("on"+q,z):N["on"+q]=null}function g(N){let q=N.clientHeight;const z=N.ownerDocument.defaultView.getComputedStyle(N);return q+=(0,l.int)(z.borderTopWidth),q+=(0,l.int)(z.borderBottomWidth),q}function m(N){let q=N.clientWidth;const z=N.ownerDocument.defaultView.getComputedStyle(N);return q+=(0,l.int)(z.borderLeftWidth),q+=(0,l.int)(z.borderRightWidth),q}function y(N){let q=N.clientHeight;const z=N.ownerDocument.defaultView.getComputedStyle(N);return q-=(0,l.int)(z.paddingTop),q-=(0,l.int)(z.paddingBottom),q}function b(N){let q=N.clientWidth;const z=N.ownerDocument.defaultView.getComputedStyle(N);return q-=(0,l.int)(z.paddingLeft),q-=(0,l.int)(z.paddingRight),q}function w(N,q,z){const U=q===q.ownerDocument.body?{left:0,top:0}:q.getBoundingClientRect(),F=(N.clientX+q.scrollLeft-U.left)/z,B=(N.clientY+q.scrollTop-U.top)/z;return{x:F,y:B}}function E(N,q){const z=C(N,q,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:z}}function P(N,q){return C(N,q,"")}function C(N,q,z){let{x:H,y:U}=N,F=`translate(${H}${z},${U}${z})`;if(q){const B=`${typeof q.x=="string"?q.x:q.x+z}`,G=`${typeof q.y=="string"?q.y:q.y+z}`;F=`translate(${B}, ${G})`+F}return F}function T(N,q){return N.targetTouches&&(0,l.findInArray)(N.targetTouches,z=>q===z.identifier)||N.changedTouches&&(0,l.findInArray)(N.changedTouches,z=>q===z.identifier)}function O(N){if(N.targetTouches&&N.targetTouches[0])return N.targetTouches[0].identifier;if(N.changedTouches&&N.changedTouches[0])return N.changedTouches[0].identifier}function x(N){if(!N)return;let q=N.getElementById("react-draggable-style-el");q||(q=N.createElement("style"),q.type="text/css",q.id="react-draggable-style-el",q.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
50`,q.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
51`,N.getElementsByTagName("head")[0].appendChild(q)),N.body&&j(N.body,"react-draggable-transparent-selection")}function A(N){window.requestAnimationFrame?window.requestAnimationFrame(()=>{D(N)}):D(N)}function D(N){if(N)try{if(N.body&&M(N.body,"react-draggable-transparent-selection"),N.selection)N.selection.empty();else{const q=(N.defaultView||window).getSelection();q&&q.type!=="Caret"&&q.removeAllRanges()}}catch{}}function j(N,q){N.classList?N.classList.add(q):N.className.match(new RegExp(`(?:^|\\s)${q}(?!\\S)`))||(N.className+=` ${q}`)}function M(N,q){N.classList?N.classList.remove(q):N.className=N.className.replace(new RegExp(`(?:^|\\s)${q}(?!\\S)`,"g"),"")}return domFns}var positionFns={},hasRequiredPositionFns;function requirePositionFns(){if(hasRequiredPositionFns)return positionFns;hasRequiredPositionFns=1,Object.defineProperty(positionFns,"__esModule",{value:!0}
51),positionFns.canDragX=f,positionFns.canDragY=p,positionFns.createCoreData=v,positionFns.createDraggableData=g,positionFns.getBoundPosition=u,positionFns.getControlPosition=h,positionFns.snapToGrid=d;var l=requireShims(),o=requireDomFns();function u(b,w,E){if(!b.props.bounds)return[w,E];let{bounds:P}=b.props;P=typeof P=="string"?P:m(P);const C=y(b);if(typeof P=="string"){const{ownerDocument:T}=C,O=T.defaultView;let x;if(P==="parent"?x=C.parentNode:x=C.getRootNode().querySelector(P),!(x instanceof O.HTMLElement))throw new Error('Bounds selector "'+P+'" could not find an element.');const A=x,D=O.getComputedStyle(C),j=O.getComputedStyle(A);P={left:-C.offsetLeft+(0,l.int)(j.paddingLeft)+(0,l.int)(D.marginLeft),top:-C.offsetTop+(0,l.int)(j.paddingTop)+(0,l.int)(D.marginTop),right:(0,o.innerWidth)(A)-(0,o.outerWidth)(C)-C.offsetLeft+(0,l.int)(j.paddingRight)-(0,l.int)(D.marginRight),bottom:(0,o.innerHeight)(A)-(0,o.outerHeight)(C)-C.offsetTop+(0,l.int)(j.paddingBottom)-(0,l.int)(D.marginBottom)}}return(0,l.isNum)(P.right)&&(w=Math.min(w,P.right)),(0,l.isNum)(P.bottom)&&(E=Math.min(E,P.bottom)),(0,l.isNum)(P.left)&&(w=Math.max(w,P.left)),(0,l.isNum)(P.top)&&(E=Math.max(E,P.top)),[w,E]}function d(b,w,E){const P=Math.round(w/b[0])*b[0],C=Math.round(E/b[1])*b[1];return[P,C]}function f(b){return b.props.axis==="both"||b.props.axis==="x"}function p(b){return b.props.axis==="both"||b.props.axis==="y"}function h(b,w,E){const P=typeof w=="number"?(0,o.getTouch)(b,w):null;if(typeof w=="number"&&!P)return null;const C=y(E),T=E.props.offsetParent||C.offsetParent||C.ownerDocument.body;return(0,o.offsetXYFromParent)(P||b,T,E.props.scale)}function v(b,w,E){const P=!(0,l.isNum)(b.lastX),C=y(b);return P?{node:C,deltaX:0,deltaY:0,lastX:w,lastY:E,x:w,y:E}:{node:C,deltaX:w-b.lastX,deltaY:E-b.lastY,lastX:b.lastX,lastY:b.lastY,x:w,y:E}}function g(b,w){const E=b.props.scale;return{node:w.node,x:b.state.x+w.deltaX/E,y:b.state.y+w.deltaY/E,deltaX:w.deltaX/E,deltaY:w.deltaY/E,lastX:b.state.x,lastY:b.state.y}}function m(b){return{left:b.left,top:b.top,right:b.right,bottom:b.bottom}}function y(b){const w=b.findDOMNode();if(!w)throw new Error("<DraggableCore>: Unmounted during event!");return w}return positionFns}var DraggableCore={},log$1={},hasRequiredLog;function requireLog(){if(hasRequiredLog)return log$1;hasRequiredLog=1,Object.defineProperty(log$1,"__esModule",{value:!0}),log$1.default=l;function l(){}return log$1}var hasRequiredDraggableCore;function requireDraggableCore(){if(hasRequiredDraggableCore)return DraggableCore;hasRequiredDraggableCore=1,Object.defineProperty(DraggableCore,"__esModule",{value:!0}),DraggableCore.default=void 0;var l=g(requireReact()),o=v(requirePropTypes$1()),u=v(requireReactDom()),d=requireDomFns(),f=requirePositionFns(),p=requireShims(),h=v(requireLog());function v(C){return C&&C.__esModule?C:{default:C}}function g(C,T){if(typeof WeakMap=="function")var O=new WeakMap,x=new WeakMap;return(g=function(A,D){if(!D&&A&&A.__esModule)return A;var j,M,N={__proto__:null,default:A};if(A===null||typeof A!="object"&&typeof A!="function")return N;if(j=D?x:O){if(j.has(A))return j.get(A);j.set(A,N)}for(const q in A)q!=="default"&&{}.hasOwnProperty.call(A,q)&&((M=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(A,q))&&(M.get||M.set)?j(N,q,M):N[q]=A[q]);return N})(C,T)}function m(C,T,O){return(T=y(T))in C?Object.defineProperty(C,T,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[T]=O,C}function y(C){var T=b(C,"string");return typeof T=="symbol"?T:T+""}function b(C,T){if(typeof C!="object"||!C)return C;var O=C[Symbol.toPrimitive];if(O!==void 0){var x=O.call(C,T);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(C)}const w={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let E=w.mouse,P=class extends l.Component{constructor(){super(...arguments),m(this,"dragging",!1),m(this,"lastX",NaN),m(this,"lastY",NaN),m(this,"touchIdentifier",null),m(this,"mounted",!1),m(this,"handleDragStart",T=>{if(this.props.onMouseDown(T),!this.props.allowAnyClick&&typeof T.button=="number"&&T.button!==0)return!1;const O=this.findDOMNode();if(!O||!O.ownerDocument||!O.ownerDocument.body)throw new Error("<DraggableCore>
51 not mounted on DragStart!");const{ownerDocument:x}=O;if(this.props.disabled||!(T.target instanceof x.defaultView.Node)||this.props.handle&&!(0,d.matchesSelectorAndParentsTo)(T.target,this.props.handle,O)||this.props.cancel&&(0,d.matchesSelectorAndParentsTo)(T.target,this.props.cancel,O))return;T.type==="touchstart"&&!this.props.allowMobileScroll&&T.preventDefault();const A=(0,d.getTouchIdentifier)(T);this.touchIdentifier=A;const D=(0,f.getControlPosition)(T,A,this);if(D==null)return;const{x:j,y:M}=D,N=(0,f.createCoreData)(this,j,M);(0,h.default)("DraggableCore: handleDragStart: %j",N),(0,h.default)("calling",this.props.onStart),!(this.props.onStart(T,N)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,d.addUserSelectStyles)(x),this.dragging=!0,this.lastX=j,this.lastY=M,(0,d.addEvent)(x,E.move,this.handleDrag),(0,d.addEvent)(x,E.stop,this.handleDragStop))}),m(this,"handleDrag",T=>{const O=(0,f.getControlPosition)(T,this.touchIdentifier,this);if(O==null)return;let{x,y:A}=O;if(Array.isArray(this.props.grid)){let M=x-this.lastX,N=A-this.lastY;if([M,N]=(0,f.snapToGrid)(this.props.grid,M,N),!M&&!N)return;x=this.lastX+M,A=this.lastY+N}const D=(0,f.createCoreData)(this,x,A);if((0,h.default)("DraggableCore: handleDrag: %j",D),this.props.onDrag(T,D)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const N=document.createEvent("MouseEvents");N.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(N)}return}this.lastX=x,this.lastY=A}),m(this,"handleDragStop",T=>{if(!this.dragging)return;const O=(0,f.getControlPosition)(T,this.touchIdentifier,this);if(O==null)return;let{x,y:A}=O;if(Array.isArray(this.props.grid)){let N=x-this.lastX||0,q=A-this.lastY||0;[N,q]=(0,f.snapToGrid)(this.props.grid,N,q),x=this.lastX+N,A=this.lastY+q}const D=(0,f.createCoreData)(this,x,A);if(this.props.onStop(T,D)===!1||this.mounted===!1)return!1;const M=this.findDOMNode();M&&this.props.enableUserSelectHack&&(0,d.scheduleRemoveUserSelectStyles)(M.ownerDocument),(0,h.default)("DraggableCore: handleDragStop: %j",D),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,M&&((0,h.default)("DraggableCore: Removing handlers"),(0,d.removeEvent)(M.ownerDocument,E.move,this.handleDrag),(0,d.removeEvent)(M.ownerDocument,E.stop,this.handleDragStop))}),m(this,"onMouseDown",T=>(E=w.mouse,this.handleDragStart(T))),m(this,"onMouseUp",T=>(E=w.mouse,this.handleDragStop(T))),m(this,"onTouchStart",T=>(E=w.touch,this.handleDragStart(T))),m(this,"onTouchEnd",T=>(E=w.touch,this.handleDragStop(T)))}componentDidMount(){this.mounted=!0;const T=this.findDOMNode();T&&(0,d.addEvent)(T,w.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const T=this.findDOMNode();if(T){const{ownerDocument:O}=T;(0,d.removeEvent)(O,w.mouse.move,this.handleDrag),(0,d.removeEvent)(O,w.touch.move,this.handleDrag),(0,d.removeEvent)(O,w.mouse.stop,this.handleDragStop),(0,d.removeEvent)(O,w.touch.stop,this.handleDragStop),(0,d.removeEvent)(T,w.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,d.scheduleRemoveUserSelectStyles)(O)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:u.default.findDOMNode(this)}render(){return l.cloneElement(l.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return DraggableCore.default=P,m(P,"displayName","DraggableCore"),m(P,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(C,T){if(C[T]&&C[T].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),m(P,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),DraggableCore}var hasRequiredDraggable;function requireDraggable(){return hasRequiredDraggable||(hasRequiredDraggable=1,
vendor: 4,217 bytes, line 51
51(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"DraggableCore",{enumerable:!0,get:function(){return g.default}}),l.default=void 0;var o=b(requireReact()),u=y(requirePropTypes$1()),d=y(requireReactDom()),f=requireClsx(),p=requireDomFns(),h=requirePositionFns(),v=requireShims(),g=y(requireDraggableCore()),m=y(requireLog());function y(O){return O&&O.__esModule?O:{default:O}}function b(O,x){if(typeof WeakMap=="function")var A=new WeakMap,D=new WeakMap;return(b=function(j,M){if(!M&&j&&j.__esModule)return j;var N,q,z={__proto__:null,default:j};if(j===null||typeof j!="object"&&typeof j!="function")return z;if(N=M?D:A){if(N.has(j))return N.get(j);N.set(j,z)}for(const H in j)H!=="default"&&{}.hasOwnProperty.call(j,H)&&((q=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(j,H))&&(q.get||q.set)?N(z,H,q):z[H]=j[H]);return z})(O,x)}function w(){return w=Object.assign?Object.assign.bind():function(O){for(var x=1;x<arguments.length;x++){var A=arguments[x];for(var D in A)({}).hasOwnProperty.call(A,D)&&(O[D]=A[D])}return O},w.apply(null,arguments)}function E(O,x,A){return(x=P(x))in O?Object.defineProperty(O,x,{value:A,enumerable:!0,configurable:!0,writable:!0}):O[x]=A,O}function P(O){var x=C(O,"string");return typeof x=="symbol"?x:x+""}function C(O,x){if(typeof O!="object"||!O)return O;var A=O[Symbol.toPrimitive];if(A!==void 0){var D=A.call(O,x);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(O)}class T extends o.Component{static getDerivedStateFromProps(x,A){let{position:D}=x,{prevPropsPosition:j}=A;return D&&(!j||D.x!==j.x||D.y!==j.y)?((0,m.default)("Draggable: getDerivedStateFromProps %j",{position:D,prevPropsPosition:j}),{x:D.x,y:D.y,prevPropsPosition:{...D}}):null}constructor(x){super(x),E(this,"onDragStart",(A,D)=>{if((0,m.default)("Draggable: onDragStart: %j",D),this.props.onStart(A,(0,h.createDraggableData)(this,D))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),E(this,"onDrag",(A,D)=>{if(!this.state.dragging)return!1;(0,m.default)("Draggable: onDrag: %j",D);const j=(0,h.createDraggableData)(this,D),M={x:j.x,y:j.y,slackX:0,slackY:0};if(this.props.bounds){const{x:q,y:z}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[H,U]=(0,h.getBoundPosition)(this,M.x,M.y);M.x=H,M.y=U,M.slackX=this.state.slackX+(q-M.x),M.slackY=this.state.slackY+(z-M.y),j.x=M.x,j.y=M.y,j.deltaX=M.x-this.state.x,j.deltaY=M.y-this.state.y}if(this.props.onDrag(A,j)===!1)return!1;this.setState(M)}),E(this,"onDragStop",(A,D)=>{if(!this.state.dragging||this.props.onStop(A,(0,h.createDraggableData)(this,D))===!1)return!1;(0,m.default)("Draggable: onDragStop: %j",D);const M={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:q,y:z}=this.props.position;M.x=q,M.y=z}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},x.position&&!(x.onDrag||x.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.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??d.default.findDOMNode(this)}render(){const{axis:x,bounds:A,children:D,defaultPosition:j,defaultClassName:M,defaultClassNameDragging:N,defaultClassNameDragged:q,position:z,positionOffset:H,scale:U,...F}=this.props;let B={},G=null;const K=!!!z||this.state.dragging,Z=z||j,te={x:(0,h.canDragX)(this)&&K?this.state.x:Z.x,y:(0,h.canDragY)(this)&&K?this.state.y:Z.y};this.state.isElementSVG?G=(0,p.createSVGTransform)(te,H):B=(0,p.createCSSTransform)(te,H);const oe=(0,f.clsx)(D.props.className||"",M,{[N]:this.state.dragging,[q]:this.state.dragged});return o.createElement(g.default,w({},F,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}
51),o.cloneElement(o.Children.only(D),{className:oe,style:{...D.props.style,...B},transform:G}))}}l.default=T,E(T,"displayName","Draggable"),E(T,"propTypes",{...g.default.propTypes,axis:u.default.oneOf(["both","x","y","none"]),bounds:u.default.oneOfType([u.default.shape({left:u.default.number,right:u.default.number,top:u.default.number,bottom:u.default.number}),u.default.string,u.default.oneOf([!1])]),defaultClassName:u.default.string,defaultClassNameDragging:u.default.string,defaultClassNameDragged:u.default.string,defaultPosition:u.default.shape({x:u.default.number,y:u.default.number}),positionOffset:u.default.shape({x:u.default.oneOfType([u.default.number,u.default.string]),y:u.default.oneOfType([u.default.number,u.default.string])}),position:u.default.shape({x:u.default.number,y:u.default.number}),className:v.dontSetMe,style:v.dontSetMe,transform:v.dontSetMe}),E(T,"defaultProps",{...g.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Draggable$2)),Draggable$2}var hasRequiredCjs$1;function requireCjs$1(){if(hasRequiredCjs$1)return cjs$1.exports;hasRequiredCjs$1=1;const{default:l,DraggableCore:o}=requireDraggable();return cjs$1.exports=l,cjs$1.exports.default=l,cjs$1.exports.DraggableCore=o,cjs$1.exports}var cjsExports=requireCjs$1();const Draggable$1=getDefaultExportFromCjs(cjsExports);React.Fragment;function jsx(l,o,u){const d=u===void 0?o:{...o,key:u};return React.createElement(l,d)}const jsxs=jsx;var __assign$2=function(){return __assign$2=Object.assign||function(l){for(var o,u=1,d=arguments.length;u<d;u++){o=arguments[u];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(l[f]=o[f])}return l},__assign$2.apply(this,arguments)},rowSizeBase={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},colSizeBase={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},edgeBase={width:"20px",height:"20px",position:"absolute",zIndex:1},styles$1b={top:__assign$2(__assign$2({},rowSizeBase),{top:"-5px"}),right:__assign$2(__assign$2({},colSizeBase),{left:void 0,right:"-5px"}),bottom:__assign$2(__assign$2({},rowSizeBase),{top:void 0,bottom:"-5px"}),left:__assign$2(__assign$2({},colSizeBase),{left:"-5px"}),topRight:__assign$2(__assign$2({},edgeBase),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$2(__assign$2({},edgeBase),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$2(__assign$2({},edgeBase),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$2(__assign$2({},edgeBase),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Resizer=reactExports.memo(function(l){var o=l.onResizeStart,u=l.direction,d=l.children,f=l.replaceStyles,p=l.className,h=reactExports.useCallback(function(m){o(m,u)},[o,u]),v=reactExports.useCallback(function(m){o(m,u)},[o,u]),g=reactExports.useMemo(function(){return __assign$2(__assign$2({position:"absolute",userSelect:"none"},styles$1b[u]),f??{})},[f,u]);return jsx("div",{className:p||void 0,style:g,onMouseDown:h,onTouchStart:v,children:d})}),__extends$1=(function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function d(){this.constructor=o}o.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),__assign$1=function(){return __assign$1=Object.assign||function(l){for(var o,u=1,d=arguments.length;u<d;u++){o=arguments[u];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(l[f]=o[f])}return l},__assign$1.apply(this,arguments)},DEFAULT_SIZE={width:"auto",height:"auto"},clamp=function(l,o,u){return Math.max(Math.min(l,u),o)},snap=function(l,o,u){var d=Math.round(l/o);return d*o+u*(d-1)},hasDirection=function(l,o){return new RegExp(l,"i").test(o)},isTouchEvent$1=function(l){return!!(l.touches&&l.touches.length)},isMouseEvent=function(l){return!!((l.clientX||l.clientX===0)&&(l.clientY||l.clientY===0))},findClosestSnap=function(l,o,u){u===void 0&&(u=0);var d=o.reduce(function(p,h,v){return Math.abs(h-l)<Math.abs(o[p]-l)?v:p},0),f=Math.abs(o[d]-l);return u===0||f<u?o[d]:l},getStringSize=function(l){return l=l.toString(),l==="auto"||l.endsWith("px")||l.endsWith("%")||l.endsWith("vh")||l.endsWith("vw")||l.endsWith("vmax")||l.endsWith("vmin")?l:"".concat(l,"px")}
51,getPixelSize=function(l,o,u,d){if(l&&typeof l=="string"){if(l.endsWith("px"))return Number(l.replace("px",""));if(l.endsWith("%")){var f=Number(l.replace("%",""))/100;return o*f}if(l.endsWith("vw")){var f=Number(l.replace("vw",""))/100;return u*f}if(l.endsWith("vh")){var f=Number(l.replace("vh",""))/100;return d*f}}return l},calculateNewMax=function(l,o,u,d,f,p,h){return d=getPixelSize(d,l.width,o,u),f=getPixelSize(f,l.height,o,u),p=getPixelSize(p,l.width,o,u),h=getPixelSize(h,l.height,o,u),{maxWidth:typeof d>"u"?void 0:Number(d),maxHeight:typeof f>"u"?void 0:Number(f),minWidth:typeof p>"u"?void 0:Number(p),minHeight:typeof h>"u"?void 0:Number(h)}},normalizeToPair=function(l){return Array.isArray(l)?l:[l,l]},definedProps=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=(function(l){__extends$1(o,l);function o(u){var d,f,p,h,v=l.call(this,u)||this;return v.ratio=1,v.resizable=null,v.parentLeft=0,v.parentTop=0,v.resizableLeft=0,v.resizableRight=0,v.resizableTop=0,v.resizableBottom=0,v.targetLeft=0,v.targetTop=0,v.delta={width:0,height:0},v.appendBase=function(){if(!v.resizable||!v.window)return null;var g=v.parentNode;if(!g)return null;var m=v.window.document.createElement("div");return m.style.width="100%",m.style.height="100%",m.style.position="absolute",m.style.transform="scale(0, 0)",m.style.left="0",m.style.flex="0 0 100%",m.classList?m.classList.add(baseClassName):m.className+=baseClassName,g.appendChild(m),m},v.removeBase=function(g){var m=v.parentNode;m&&m.removeChild(g)},v.state={isResizing:!1,width:(f=(d=v.propsSize)===null||d===void 0?void 0:d.width)!==null&&f!==void 0?f:"auto",height:(h=(p=v.propsSize)===null||p===void 0?void 0:p.height)!==null&&h!==void 0?h:"auto",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"},flexBasis:void 0},v.onResizeStart=v.onResizeStart.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.onMouseUp=v.onMouseUp.bind(v),v}return Object.defineProperty(o.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){var u=0,d=0;if(this.resizable&&this.window){var f=this.resizable.offsetWidth,p=this.resizable.offsetHeight,h=this.resizable.style.position;h!=="relative"&&(this.resizable.style.position="relative"),u=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:f,d=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:p,this.resizable.style.position=h}return{width:u,height:d}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"sizeStyle",{get:function(){var u=this,d=this.props.size,f=function(v){var g;if(typeof u.state[v]>"u"||u.state[v]==="auto")return"auto";if(u.propsSize&&u.propsSize[v]&&(!((g=u.propsSize[v])===null||g===void 0)&&g.toString().endsWith("%"))){if(u.state[v].toString().endsWith("%"))return u.state[v].toString();var m=u.getParentSize(),y=Number(u.state[v].toString().replace("px","")),b=y/m[v]*100;return"".concat(b,"%")}return getStringSize(u.state[v])},p=d&&typeof d.width<"u"&&!this.state.isResizing?getStringSize(d.width):f("width"),h=d&&typeof d.height<"u"&&!this.state.isResizing?getStringSize(d.height):f("height");return{width:p,height:h}}
51,enumerable:!1,configurable:!0}),o.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var u=this.appendBase();if(!u)return{width:0,height:0};var d=!1,f=this.parentNode.style.flexWrap;f!=="wrap"&&(d=!0,this.parentNode.style.flexWrap="wrap"),u.style.position="relative",u.style.minWidth="100%",u.style.minHeight="100%";var p={width:u.offsetWidth,height:u.offsetHeight};return d&&(this.parentNode.style.flexWrap=f),this.removeBase(u),p},o.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},o.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},o.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var u=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:u.flexBasis!=="auto"?u.flexBasis:void 0})}},o.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},o.prototype.createSizeForCssProperty=function(u,d){var f=this.propsSize&&this.propsSize[d];return this.state[d]==="auto"&&this.state.original[d]===u&&(typeof f>"u"||f==="auto")?"auto":u},o.prototype.calculateNewMaxFromBoundary=function(u,d){var f=this.props.boundsByDirection,p=this.state.direction,h=f&&hasDirection("left",p),v=f&&hasDirection("top",p),g,m;if(this.props.bounds==="parent"){var y=this.parentNode;y&&(g=h?this.resizableRight-this.parentLeft:y.offsetWidth+(this.parentLeft-this.resizableLeft),m=v?this.resizableBottom-this.parentTop:y.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(g=h?this.resizableRight:this.window.innerWidth-this.resizableLeft,m=v?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(g=h?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),m=v?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return g&&Number.isFinite(g)&&(u=u&&u<g?u:g),m&&Number.isFinite(m)&&(d=d&&d<m?d:m),{maxWidth:u,maxHeight:d}},o.prototype.calculateNewSizeFromDirection=function(u,d){var f=this.props.scale||1,p=normalizeToPair(this.props.resizeRatio||1),h=p[0],v=p[1],g=this.state,m=g.direction,y=g.original,b=this.props,w=b.lockAspectRatio,E=b.lockAspectRatioExtraHeight,P=b.lockAspectRatioExtraWidth,C=y.width,T=y.height,O=E||0,x=P||0;return hasDirection("right",m)&&(C=y.width+(u-y.x)*h/f,w&&(T=(C-x)/this.ratio+O)),hasDirection("left",m)&&(C=y.width-(u-y.x)*h/f,w&&(T=(C-x)/this.ratio+O)),hasDirection("bottom",m)&&(T=y.height+(d-y.y)*v/f,w&&(C=(T-O)*this.ratio+x)),hasDirection("top",m)&&(T=y.height-(d-y.y)*v/f,w&&(C=(T-O)*this.ratio+x)),{newWidth:C,newHeight:T}},o.prototype.calculateNewSizeFromAspectRatio=function(u,d,f,p){var h=this.props,v=h.lockAspectRatio,g=h.lockAspectRatioExtraHeight,m=h.lockAspectRatioExtraWidth,y=typeof p.width>"u"?10:p.width,b=typeof f.width>"u"||f.width<0?u:f.width,w=typeof p.height>"u"?10:p.height,E=typeof f.height>"u"||f.height<0?d:f.height,P=g||0,C=m||0;if(v){var T=(w-P)*this.ratio+C,O=(E-P)*this.ratio+C,x=(y-C)/this.ratio+P,A=(b-C)/this.ratio+P,D=Math.max(y,T),j=Math.min(b,O),M=Math.max(w,x),N=Math.min(E,A);u=clamp(u,D,j),d=clamp(d,M,N)}else u=clamp(u,y,b),d=clamp(d,w,E);return{newWidth:u,newHeight:d}},o.prototype.setBoundingClientRect=function(){var u=1/(this.props.scale||1);if(this.props.bounds==="parent"){var d=this.parentNode;
51if(d){var f=d.getBoundingClientRect();this.parentLeft=f.left*u,this.parentTop=f.top*u}}if(this.props.bounds&&typeof this.props.bounds!="string"){var p=this.props.bounds.getBoundingClientRect();this.targetLeft=p.left*u,this.targetTop=p.top*u}if(this.resizable){var h=this.resizable.getBoundingClientRect(),v=h.left,g=h.top,m=h.right,y=h.bottom;this.resizableLeft=v*u,this.resizableRight=m*u,this.resizableTop=g*u,this.resizableBottom=y*u}},o.prototype.onResizeStart=function(u,d){if(!(!this.resizable||!this.window)){var f=0,p=0;if(u.nativeEvent&&isMouseEvent(u.nativeEvent)?(f=u.nativeEvent.clientX,p=u.nativeEvent.clientY):u.nativeEvent&&isTouchEvent$1(u.nativeEvent)&&(f=u.nativeEvent.touches[0].clientX,p=u.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var h=this.props.onResizeStart(u,d,this.resizable);if(h===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var v,g=this.window.getComputedStyle(this.resizable);if(g.flexBasis!=="auto"){var m=this.parentNode;if(m){var y=this.window.getComputedStyle(m).flexDirection;this.flexDir=y.startsWith("row")?"row":"column",v=g.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var b={original:{x:f,y:p,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign$1(__assign$1({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(u.target).cursor||"auto"}),direction:d,flexBasis:v};this.setState(b)}},o.prototype.onMouseMove=function(u){var d=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent$1(u))try{u.preventDefault(),u.stopPropagation()}catch{}var f=this.props,p=f.maxWidth,h=f.maxHeight,v=f.minWidth,g=f.minHeight,m=isTouchEvent$1(u)?u.touches[0].clientX:u.clientX,y=isTouchEvent$1(u)?u.touches[0].clientY:u.clientY,b=this.state,w=b.direction,E=b.original,P=b.width,C=b.height,T=this.getParentSize(),O=calculateNewMax(T,this.window.innerWidth,this.window.innerHeight,p,h,v,g);p=O.maxWidth,h=O.maxHeight,v=O.minWidth,g=O.minHeight;var x=this.calculateNewSizeFromDirection(m,y),A=x.newHeight,D=x.newWidth,j=this.calculateNewMaxFromBoundary(p,h);this.props.snap&&this.props.snap.x&&(D=findClosestSnap(D,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(A=findClosestSnap(A,this.props.snap.y,this.props.snapGap));var M=this.calculateNewSizeFromAspectRatio(D,A,{width:j.maxWidth,height:j.maxHeight},{width:v,height:g});if(D=M.newWidth,A=M.newHeight,this.props.grid){var N=snap(D,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),q=snap(A,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),z=this.props.snapGap||0,H=z===0||Math.abs(N-D)<=z?N:D,U=z===0||Math.abs(q-A)<=z?q:A;D=H,A=U}var F={width:D-E.width,height:A-E.height};if(this.delta=F,P&&typeof P=="string"){if(P.endsWith("%")){var B=D/T.width*100;D="".concat(B,"%")}else if(P.endsWith("vw")){var G=D/this.window.innerWidth*100;D="".concat(G,"vw")}else if(P.endsWith("vh")){var Q=D/this.window.innerHeight*100;D="".concat(Q,"vh")}}if(C&&typeof C=="string"){if(C.endsWith("%")){var B=A/T.height*100;A="".concat(B,"%")}else if(C.endsWith("vw")){var G=A/this.window.innerWidth*100;A="".concat(G,"vw")}else if(C.endsWith("vh")){var Q=A/this.window.innerHeight*100;A="".concat(Q,"vh")}}var K={width:this.createSizeForCssProperty(D,"width"),height:this.createSizeForCssProperty(A,"height")};this.flexDir==="row"?K.flexBasis=K.width:this.flexDir==="column"&&(K.flexBasis=K.height);var Z=this.state.width!==K.width,te=this.state.height!==K.height,oe=this.state.flexBasis!==K.flexBasis,fe=Z||te||oe;fe&&reactDomExports.flushSync(function(){d.setState(K)}),this.props.onResize&&fe&&this.props.onResize(u,w,this.resizable,F)}},o.prototype.onMouseUp=function(u){var d,f,p=this.state,h=p.isResizing,v=p.direction;p.original,!(!h||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(u,v,this.resizable,this.delta),this.props.size&&this.setState({width:(d=this.props.size.width)!==null&&d!==void 0?d:"auto",height:(f=this.props.size.height)!==null&&f!==void 0?f:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign$1(__assign$1({},this.state.backgroundStyle),{cursor:"auto"})}))},o.prototype.updateSize=function(u){var d,f;this.setState({width:(d=u.width)!==null&&d!==void 0?d:"auto",height:(f=u.height)!==null&&f!==void 0?f:"auto"})},o.prototype.renderResizer=function(){var u=this,d=this.props,f=d.enable,p=d.handleStyles,h=d.handleClasses,v=d.handleWrapperStyle,g=d.handleWrapperClass,m=d.handleComponent;if(!f)return null;var y=Object.keys(f).map(function(b){return f[b]!==!1?jsx(Resizer,{direction:b,onResizeStart:u.onResizeStart,replaceStyles:p&&p[b],className:h&&h[b],children:m&&m[b]?m[b]:null},b):null});return jsx("div",{className:g,style:v,children:y})},o.prototype.render=function(){var u=this,d=Object.keys(this.props).reduce(function(h,v){return definedProps.indexOf(v)!==-1||(h[v]=u.props[v]),h},{}),f=__assign$1(__assign$1(__assign$1({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});this.state.flexBasis&&(f.flexBasis=this.state.flexBasis);var p=this.props.as||"div";return jsxs(p,__assign$1({style:f,className:this.props.className},d,{ref:function(h){h&&(u.resizable=h)},children:[this.state.isResizing&&jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},o.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{}
51,grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},o})(reactExports.PureComponent);var extendStatics=function(l,o){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])},extendStatics(l,o)};function __extends(l,o){extendStatics(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}var __assign=function(){return __assign=Object.assign||function(o){for(var u,d=1,f=arguments.length;d<f;d++){u=arguments[d];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(o[p]=u[p])}return o},__assign.apply(this,arguments)};function __rest(l,o){var u={};for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&o.indexOf(d)<0&&(u[d]=l[d]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(l);f<d.length;f++)o.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(l,d[f])&&(u[d[f]]=l[d[f]]);return u}var resizableStyle={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},getEnableResizingByFlag=function(l){return{bottom:l,bottomLeft:l,bottomRight:l,left:l,right:l,top:l,topLeft:l,topRight:l}},Rnd=(function(l){__extends(o,l);function o(u){var d=l.call(this,u)||this;return d.resizingPosition={x:0,y:0},d.offsetFromParent={left:0,top:0},d.resizableElement={current:null},d.originalPosition={x:0,y:0},d.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:u.maxWidth,maxHeight:u.maxHeight},d.onResizeStart=d.onResizeStart.bind(d),d.onResize=d.onResize.bind(d),d.onResizeStop=d.onResizeStop.bind(d),d.onDragStart=d.onDragStart.bind(d),d.onDrag=d.onDrag.bind(d),d.onDragStop=d.onDragStop.bind(d),d.getMaxSizesFromProps=d.getMaxSizesFromProps.bind(d),d}return o.prototype.componentDidMount=function(){this.updateOffsetFromParent();var u=this.offsetFromParent,d=u.left,f=u.top,p=this.getDraggablePosition(),h=p.x,v=p.y;this.draggable.setState({x:h-d,y:v-f}),this.forceUpdate()},o.prototype.getDraggablePosition=function(){var u=this.draggable.state,d=u.x,f=u.y;return{x:d,y:f}},o.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},o.prototype.getParentSize=function(){return this.resizable.getParentSize()},o.prototype.getMaxSizesFromProps=function(){var u=typeof this.props.maxWidth>"u"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,d=typeof this.props.maxHeight>"u"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:u,maxHeight:d}},o.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},o.prototype.getOffsetHeight=function(u){var d=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/d;case"body":return document.body.offsetHeight/d;default:return u.offsetHeight}},o.prototype.getOffsetWidth=function(u){var d=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/d;case"body":return document.body.offsetWidth/d;default:return u.offsetWidth}},o.prototype.onDragStart=function(u,d){if(this.props.onDragStart&&this.props.onDragStart(u,d)===!1)return!1;var f=this.getDraggablePosition();if(this.originalPosition=f,!!this.props.bounds){var p=this.getParent(),h=this.props.scale,v;if(this.props.bounds==="parent")v=p;else if(this.props.bounds==="body"){var g=p.getBoundingClientRect(),m=g.left,y=g.top,b=document.body.getBoundingClientRect(),w=-(m-p.offsetLeft*h-b.left)/h,E=-(y-p.offsetTop*h-b.top)/h,P=(document.body.offsetWidth-this.resizable.size.width*h)/h+w,C=(document.body.offsetHeight-this.resizable.size.height*h)/h+E;return this.setState({bounds:{top:E,right:P,bottom:C,left:w}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var T=p.getBoundingClientRect(),O=T.left,x=T.top,A=-(O-p.offsetLeft*h)/h,D=-(x-p.offsetTop*h)/h,P=(window.innerWidth-this.resizable.size.width*h)/h+A,C=(window.innerHeight-this.resizable.size.height*h)/h+D;return this.setState({bounds:{top:D,right:P,bottom:C,left:A}})}
51else typeof this.props.bounds=="string"?v=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(v=this.props.bounds);if(!(!(v instanceof HTMLElement)||!(p instanceof HTMLElement))){var j=v.getBoundingClientRect(),M=j.left,N=j.top,q=p.getBoundingClientRect(),z=q.left,H=q.top,U=(M-z)/h,F=N-H;if(this.resizable){this.updateOffsetFromParent();var B=this.offsetFromParent;this.setState({bounds:{top:F-B.top,right:U+(v.offsetWidth-this.resizable.size.width)-B.left/h,bottom:F+(v.offsetHeight-this.resizable.size.height)-B.top,left:U-B.left/h}})}}}},o.prototype.onDrag=function(u,d){if(this.props.onDrag){var f=this.offsetFromParent,p=f.left,h=f.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(u,__assign(__assign({},d),{x:d.x+p,y:d.y+h}));if(this.props.dragAxis==="x")return this.props.onDrag(u,__assign(__assign({},d),{x:d.x+p,y:this.originalPosition.y+h,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(u,__assign(__assign({},d),{x:this.originalPosition.x+p,y:d.y+h,deltaX:0}))}},o.prototype.onDragStop=function(u,d){if(this.props.onDragStop){var f=this.offsetFromParent,p=f.left,h=f.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(u,__assign(__assign({},d),{x:d.x+p,y:d.y+h}));if(this.props.dragAxis==="x")return this.props.onDragStop(u,__assign(__assign({},d),{x:d.x+p,y:this.originalPosition.y+h,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(u,__assign(__assign({},d),{x:this.originalPosition.x+p,y:d.y+h,deltaX:0}))}},o.prototype.onResizeStart=function(u,d,f){if(this.props.onResizeStart&&this.props.onResizeStart(u,d,f)===!1)return!1;u.stopPropagation(),this.setState({resizing:!0});var p=this.props.scale,h=this.offsetFromParent,v=this.getDraggablePosition();if(this.resizingPosition={x:v.x+h.left,y:v.y+h.top},this.originalPosition=v,this.props.bounds){var g=this.getParent(),m=void 0;this.props.bounds==="parent"?m=g:this.props.bounds==="body"?m=document.body:this.props.bounds==="window"?m=window:typeof this.props.bounds=="string"?m=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(m=this.props.bounds);var y=this.getSelfElement();if(y instanceof Element&&(m instanceof HTMLElement||m===window)&&g instanceof HTMLElement){var b=this.getMaxSizesFromProps(),w=b.maxWidth,E=b.maxHeight,P=this.getParentSize();if(w&&typeof w=="string")if(w.endsWith("%")){var C=Number(w.replace("%",""))/100;w=P.width*C}else w.endsWith("px")&&(w=Number(w.replace("px","")));if(E&&typeof E=="string")if(E.endsWith("%")){var C=Number(E.replace("%",""))/100;E=P.height*C}else E.endsWith("px")&&(E=Number(E.replace("px","")));var T=y.getBoundingClientRect(),O=T.left,x=T.top,A=this.props.bounds==="window"?{left:0,top:0}:m.getBoundingClientRect(),D=A.left,j=A.top,M=this.getOffsetWidth(m),N=this.getOffsetHeight(m),q=d.toLowerCase().endsWith("left"),z=d.toLowerCase().endsWith("right"),H=d.startsWith("top"),U=d.startsWith("bottom");if((q||H)&&this.resizable){var F=(O-D)/p+this.resizable.size.width;this.setState({maxWidth:F>Number(w)?w:F})}if(z||this.props.lockAspectRatio&&!q&&!H){var F=M+(D-O)/p;this.setState({maxWidth:F>Number(w)?w:F})}if((H||q)&&this.resizable){var F=(x-j)/p+this.resizable.size.height;this.setState({maxHeight:F>Number(E)?E:F})}
51if(U||this.props.lockAspectRatio&&!H&&!q){var F=N+(j-x)/p;this.setState({maxHeight:F>Number(E)?E:F})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight})},o.prototype.onResize=function(u,d,f,p){var h=this,v={x:this.originalPosition.x,y:this.originalPosition.y},g=-p.width,m=-p.height,y=["top","left","topLeft","bottomLeft","topRight"];y.includes(d)&&(d==="bottomLeft"?v.x+=g:(d==="topRight"||(v.x+=g),v.y+=m));var b=this.draggable.state;(v.x!==b.x||v.y!==b.y)&&reactDomExports.flushSync(function(){h.draggable.setState(v)}),this.updateOffsetFromParent();var w=this.offsetFromParent,E=this.getDraggablePosition().x+w.left,P=this.getDraggablePosition().y+w.top;this.resizingPosition={x:E,y:P},this.props.onResize&&this.props.onResize(u,d,f,p,{x:E,y:P})},o.prototype.onResizeStop=function(u,d,f,p){this.setState({resizing:!1});var h=this.getMaxSizesFromProps(),v=h.maxWidth,g=h.maxHeight;this.setState({maxWidth:v,maxHeight:g}),this.props.onResizeStop&&this.props.onResizeStop(u,d,f,p,this.resizingPosition)},o.prototype.updateSize=function(u){this.resizable&&this.resizable.updateSize({width:u.width,height:u.height})},o.prototype.updatePosition=function(u){this.draggable.setState(u)},o.prototype.updateOffsetFromParent=function(){var u=this.props.scale,d=this.getParent(),f=this.getSelfElement();if(!d||f===null)return{top:0,left:0};var p=d.getBoundingClientRect(),h=p.left,v=p.top,g=f.getBoundingClientRect(),m=this.getDraggablePosition(),y=d.scrollLeft,b=d.scrollTop;this.offsetFromParent={left:g.left-h+y-m.x*u,top:g.top-v+b-m.y*u}},o.prototype.render=function(){var u=this,d=this.props,f=d.disableDragging,p=d.style,h=d.dragHandleClassName,v=d.position,g=d.onMouseDown,m=d.onMouseUp,y=d.dragAxis,b=d.dragGrid,w=d.bounds,E=d.enableUserSelectHack,P=d.cancel,C=d.children;d.onResizeStart,d.onResize,d.onResizeStop,d.onDragStart,d.onDrag,d.onDragStop;var T=d.resizeHandleStyles,O=d.resizeHandleClasses,x=d.resizeHandleComponent,A=d.enableResizing,D=d.resizeGrid,j=d.resizeHandleWrapperClass,M=d.resizeHandleWrapperStyle,N=d.scale,q=d.allowAnyClick,z=d.dragPositionOffset,H=__rest(d,["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","allowAnyClick","dragPositionOffset"]),U=this.props.default?__assign({},this.props.default):void 0;delete H.default;var F=f||h?{cursor:"auto"}:{cursor:"move"},B=__assign(__assign(__assign({},resizableStyle),F),p),G=this.offsetFromParent,Q=G.left,K=G.top,Z;v&&(Z={x:v.x-Q,y:v.y-K});var te=this.state.resizing?void 0:Z,oe=this.state.resizing?"both":y;return reactExports.createElement(Draggable$1,{ref:function(fe){fe&&(u.draggable=fe)},handle:h?".".concat(h):void 0,defaultPosition:U,onMouseDown:g,onMouseUp:m,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:oe,disabled:f,grid:b,bounds:w?this.state.bounds:void 0,position:te,enableUserSelectHack:E,cancel:P,scale:N,allowAnyClick:q,nodeRef:this.resizableElement,positionOffset:z},reactExports.createElement(Resizable,__assign({},H,{ref:function(fe){fe&&(u.resizable=fe,u.resizableElement.current=fe.resizable)},defaultSize:U,size:this.props.size,enable:typeof A=="boolean"?getEnableResizingByFlag(A):A,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:B,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:D,handleWrapperClass:j,handleWrapperStyle:M,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:T,handleClasses:O,handleComponent:x,scale:this.props.scale}),C))},o.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(){}},o})(reactExports.PureComponent);function ownKeys$X(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$X(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
51o%2?ownKeys$X(Object(u),!0).forEach(function(d){_defineProperty$13(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$X(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$13(l,o,u){return(o=_toPropertyKey$2o(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$20(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1U(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2o(d.key),d)}}function _createClass$1U(l,o,u){return o&&_defineProperties$1U(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2o(l){var o=_toPrimitive$2o(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2o(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1m(l,o,u){return o=_getPrototypeOf$1o(o),_possibleConstructorReturn$1v(l,_isNativeReflectConstruct$1m()?Reflect.construct(o,u||[],_getPrototypeOf$1o(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1v(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1o(l)}function _assertThisInitialized$1o(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1m(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1m=function(){return!!l})()}function _getPrototypeOf$1o(l){return _getPrototypeOf$1o=Object.
51setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1o(l)}function _inherits$1v(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1o(l,o)}function _setPrototypeOf$1o(l,o){return _setPrototypeOf$1o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1o(l,o)}var CompanionWindow$1=(function(l){function o(){return _classCallCheck$20(this,o),_callSuper$1m(this,o,arguments)}return _inherits$1v(o,l),_createClass$1U(o,[{key:"openInNewStyle",value:function(){var d=this.props.direction;return d==="rtl"?{transform:"scale(-1, 1)"}:{}}},{key:"resizeHandles",value:function(){var d=this.props,f=d.direction,p=d.position,h={ltr:{default:"left",opposite:"right"},rtl:{default:"right",opposite:"left"}},v={bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};return p==="right"||p==="far-right"?_objectSpread$X(_objectSpread$X({},v),{},_defineProperty$13({},h[f].default,!0)):p==="left"?_objectSpread$X(_objectSpread$X({},v),{},_defineProperty$13({},h[f].opposite,!0)):p==="bottom"||p==="far-bottom"?_objectSpread$X(_objectSpread$X({},v),{},{top:!0}):v}},{key:"render",value:function(){var d=this.props,f=d.ariaLabel,p=d.classes,h=d.paperClassName,v=d.onCloseClick,g=d.updateCompanionWindow,m=d.isDisplayed,y=d.position,b=d.t,w=d.title,E=d.children,P=d.titleControls,C=d.size,T=d.defaultSidebarPanelWidth,O=d.defaultSidebarPanelHeight,x=y==="bottom"||y==="far-bottom",A=React.Children.map(E,function(D){return D?React.cloneElement(D,{parentactions:{closeCompanionWindow:v}}):null});return React.createElement(Paper$1,{className:[p.root,y==="bottom"?p.horizontal:p.vertical,p["companionWindow-".concat(y)],ns$1("companion-window-".concat(y)),h].join(" "),style:{display:m?null:"none",order:y==="left"?-1:null},square:!0,component:"aside","aria-label":f||w},React.createElement(Rnd,{className:[p.rnd],style:{display:"flex",position:"relative"},default:{height:x?O:"100%",width:x?"auto":T},disableDragging:!0,enableResizing:this.resizeHandles(),minHeight:50,minWidth:y==="left"?235:100},React.createElement(Toolbar$1,{className:[p.toolbar,p.companionWindowHeader,C.width<370?p.small:null,ns$1("companion-window-header")].join(" "),disableGutters:!0},React.createElement(Typography$1,{variant:"h3",className:p.windowSideBarTitle},w),y==="left"?g&&React.createElement(MiradorMenuButton$3,{"aria-label":b("openInCompanionWindow"),onClick:function(){g({position:"right"})}},React.createElement(OpenInNewIcon,{style:this.openInNewStyle()})):React.createElement(React.Fragment,null,g&&React.createElement(MiradorMenuButton$3,{"aria-label":b(y==="bottom"?"moveCompanionWindowToRight":"moveCompanionWindowToBottom"),className:p.positionButton,onClick:function(){g({position:y==="bottom"?"right":"bottom"})}},React.createElement(MoveIcon,null)),React.createElement(MiradorMenuButton$3,{"aria-label":b("closeCompanionWindow"),className:p.closeButton,onClick:v},React.createElement(CloseIcon$1,null))),P&&React.createElement("div",{className:[p.titleControls,x?p.companionWindowTitleControlsBottom:p.companionWindowTitleControls,ns$1("companion-window-title-controls")].join(" ")},P)),React.createElement(Paper$1,{className:[p.content,ns$1("scrollto-scrollable")].join(" "),elevation:0},A)))}}])})(reactExports.Component);CompanionWindow$1.defaultProps={ariaLabel:void 0,children:void 0,defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,isDisplayed:!1,onCloseClick:function(){},paperClassName:"",position:null,size:{},t:function(o){return o},title:null,titleControls:null,updateCompanionWindow:void 0};function ownKeys$W(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$W(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
51o%2?ownKeys$W(Object(u),!0).forEach(function(d){_defineProperty$12(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$W(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$12(l,o,u){return(o=_toPropertyKey$2n(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2n(l){var o=_toPrimitive$2n(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2n(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$14=function(o,u){var d=u.id,f=u.windowId,p=getCompanionWindow$1(o,{companionWindowId:d}),h=getWindowConfig$1(o,{windowId:f}),v=h.defaultSidebarPanelHeight,g=h.defaultSidebarPanelWidth;return _objectSpread$W(_objectSpread$W({},p),{},{defaultSidebarPanelHeight:v,defaultSidebarPanelWidth:g,direction:getThemeDirection$1(o),isDisplayed:p&&p.content&&p.content.length>0})},mapDispatchToProps$L=function(o,u){var d=u.windowId,f=u.id;return{onCloseClick:function(){return o(removeCompanionWindow$1(d,f))},updateCompanionWindow:function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return o(updateCompanionWindow$1.apply(actions$2,[d,f].concat(v)))}}},styles$1a=function(o){return{closeButton:{order:4},"companionWindow-bottom":{borderTop:"0.5px solid ".concat(o.palette.divider)},"companionWindow-left":{borderRight:"0.5px solid ".concat(o.palette.divider)},"companionWindow-right":{borderLeft:"0.5px solid ".concat(o.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:o.palette.shades.light,justifyContent:"space-between",minHeight:"max-content",paddingLeft:o.spacing(2)},vertical:{},windowSideBarTitle:_objectSpread$W(_objectSpread$W({},o.typography.subtitle1),{},{alignSelf:"center",flexGrow:1,width:160})}},enhance$1h=compose$2(withRef(),withTranslation(),withStyles$2(styles$1a),reactSizemeExports.withSize(),connect(mapStateToProps$14,mapDispatchToProps$L),withPlugins$1("CompanionWindow"));const CompanionWindow=enhance$1h(CompanionWindow$1);function _classCallCheck$1$(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1T(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2m(d.key),d)}}function _createClass$1T(l,o,u){return o&&_defineProperties$1T(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2m(l){var o=_toPrimitive$2m(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2m(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1l(l,o,u){return o=_getPrototypeOf$1n(o),_possibleConstructorReturn$1u(l,_isNativeReflectConstruct$1l()?Reflect.construct(o,u||[],_getPrototypeOf$1n(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1u(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1n(l)}function _assertThisInitialized$1n(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1l(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1l=function(){return!!l})()}function _getPrototypeOf$1n(l){return _getPrototypeOf$1n=Object.
51setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1n(l)}function _inherits$1u(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1n(l,o)}function _setPrototypeOf$1n(l,o){return _setPrototypeOf$1n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1n(l,o)}var WindowSideBarAnnotationsPanel$1=(function(l){function o(u){var d;return _classCallCheck$1$(this,o),d=_callSuper$1l(this,o,[u]),d.containerRef=React.createRef(),d}return _inherits$1u(o,l),_createClass$1T(o,[{key:"render",value:function(){var d=this,f=this.props,p=f.annotationCount,h=f.classes,v=f.canvasIds,g=f.t,m=f.windowId,y=f.id;return React.createElement(CompanionWindow,{title:g("annotations"),paperClassName:ns$1("window-sidebar-annotation-panel"),windowId:m,id:y,ref:this.containerRef,otherRef:this.containerRef,titleControls:React.createElement(AnnotationSettings,{windowId:m})},React.createElement("div",{className:h.section},React.createElement(Typography$1,{component:"p",variant:"subtitle2"},g("showingNumAnnotations",{count:p,number:p}))),v.map(function(b,w){return React.createElement(CanvasAnnotations,{canvasId:b,containerRef:d.containerRef,key:b,index:w,totalSize:v.length,windowId:m})}))}}])})(reactExports.Component);WindowSideBarAnnotationsPanel$1.defaultProps={canvasIds:[],t:function(o){return o}};var mapStateToProps$13=function(o,u){var d=u.windowId;return{annotationCount:getAnnotationResourcesByMotivation$1(o,{windowId:d}).length,canvasIds:getVisibleCanvasIds$1(o,{windowId:d})}},styles$19=function(o){return{section:{borderBottom:".5px solid ".concat(o.palette.section_divider),paddingBottom:o.spacing(1),paddingLeft:o.spacing(2),paddingRight:o.spacing(1),paddingTop:o.spacing(2)}}},enhance$1g=compose$2(withTranslation(),withStyles$2(styles$19),connect(mapStateToProps$13,null),withPlugins$1("WindowSideBarAnnotationsPanel"));const WindowSideBarAnnotationsPanel=enhance$1g(WindowSideBarAnnotationsPanel$1);var KeyboardArrowDownSharp={},hasRequiredKeyboardArrowDownSharp;function requireKeyboardArrowDownSharp(){if(hasRequiredKeyboardArrowDownSharp)return KeyboardArrowDownSharp;hasRequiredKeyboardArrowDownSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(KeyboardArrowDownSharp,"__esModule",{value:!0}),KeyboardArrowDownSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownSharp");return KeyboardArrowDownSharp.default=f,KeyboardArrowDownSharp}var KeyboardArrowDownSharpExports=requireKeyboardArrowDownSharp();const KeyboardArrowDown=getDefaultExportFromCjs(KeyboardArrowDownSharpExports);var KeyboardArrowUpSharp={},hasRequiredKeyboardArrowUpSharp;function requireKeyboardArrowUpSharp(){if(hasRequiredKeyboardArrowUpSharp)return KeyboardArrowUpSharp;hasRequiredKeyboardArrowUpSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(KeyboardArrowUpSharp,"__esModule",{value:!0}),KeyboardArrowUpSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"}),"KeyboardArrowUpSharp");return KeyboardArrowUpSharp.default=f,KeyboardArrowUpSharp}var KeyboardArrowUpSharpExports=requireKeyboardArrowUpSharp();const KeyboardArrowUp=getDefaultExportFromCjs(KeyboardArrowUpSharpExports);function _classCallCheck$1_(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1S(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2l(d.key),d)}}function _createClass$1S(l,o,u){return o&&_defineProperties$1S(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2l(l){var o=_toPrimitive$2l(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2l(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1k(l,o,u){return o=_getPrototypeOf$1m(o),_possibleConstructorReturn$1t(l,_isNativeReflectConstruct$1k()?Reflect.construct(o,u||[],_getPrototypeOf$1m(l).
51constructor):o.apply(l,u))}function _possibleConstructorReturn$1t(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1m(l)}function _assertThisInitialized$1m(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1k(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1k=function(){return!!l})()}function _getPrototypeOf$1m(l){return _getPrototypeOf$1m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1m(l)}function _inherits$1t(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1m(l,o)}function _setPrototypeOf$1m(l,o){return _setPrototypeOf$1m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1m(l,o)}var CollapsibleSection$1=(function(l){function o(u){var d;return _classCallCheck$1_(this,o),d=_callSuper$1k(this,o,[u]),d.state={open:!0},d.toggleSection=d.toggleSection.bind(d),d}return _inherits$1t(o,l),_createClass$1S(o,[{key:"toggleSection",value:function(){var d=this.state.open;this.setState({open:!d})}},{key:"render",value:function(){var d=this.props,f=d.children,p=d.classes,h=d.id,v=d.label,g=d.t,m=this.state.open;return React.createElement(React.Fragment,null,React.createElement("div",{className:p.container},React.createElement(Typography$1,{className:p.heading,id:h,onClick:this.toggleSection,variant:"overline",component:"h4"},v),React.createElement(MiradorMenuButton$3,{"aria-label":g(m?"collapseSection":"expandSection",{section:v}),"aria-expanded":m,className:p.button,onClick:this.toggleSection},m?React.createElement(KeyboardArrowUp,null):React.createElement(KeyboardArrowDown,null))),m&&f)}}])})(reactExports.Component),styles$18={button:{padding:0},container:{display:"flex",justifyContent:"space-between"},heading:{cursor:"pointer"}},enhance$1f=compose$2(withTranslation(),withStyles$2(styles$18));const CollapsibleSection=enhance$1f(CollapsibleSection$1);function _classCallCheck$1Z(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1R(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2k(d.key),d)}}function _createClass$1R(l,o,u){return o&&_defineProperties$1R(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2k(l){var o=_toPrimitive$2k(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2k(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1j(l,o,u){return o=_getPrototypeOf$1l(o),_possibleConstructorReturn$1s(l,_isNativeReflectConstruct$1j()?Reflect.construct(o,u||[],_getPrototypeOf$1l(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1s(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1l(l)}function _assertThisInitialized$1l(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1j(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1j=function(){return!!l})()}function _getPrototypeOf$1l(l){return _getPrototypeOf$1l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
51)},_getPrototypeOf$1l(l)}function _inherits$1s(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1l(l,o)}function _setPrototypeOf$1l(l,o){return _setPrototypeOf$1l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1l(l,o)}var LabelValueMetadata=(function(l){function o(){return _classCallCheck$1Z(this,o),_callSuper$1j(this,o,arguments)}return _inherits$1s(o,l),_createClass$1R(o,[{key:"render",value:function(){var d=this.props,f=d.defaultLabel,p=d.labelValuePairs;return p.length===0?React.createElement(React.Fragment,null):React.createElement("dl",{className:ns$1("label-value-metadata")},p.reduce(function(h,v,g){return h.concat([React.createElement(Typography$1,{component:"dt",key:"label-".concat(g),variant:"subtitle2"},v.label||f),React.createElement(Typography$1,{style:{marginBottom:".5em",marginLeft:"0px"},component:"dd",key:"value-".concat(g),variant:"body1"},React.createElement(SanitizedHtml,{htmlString:v.values.join(", "),ruleSet:"iiif"}))])},[]))}}])})(reactExports.Component);LabelValueMetadata.defaultProps={defaultLabel:void 0};var _excluded$b=["classes"];function ownKeys$V(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$V(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$V(Object(u),!0).forEach(function(d){_defineProperty$11(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$V(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$11(l,o,u){return(o=_toPropertyKey$2j(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2j(l){var o=_toPrimitive$2j(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2j(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _objectWithoutProperties$c(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$a(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$a(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}var PluginHook$1=React.forwardRef(function(l,o){var u=l.PluginComponents;l.classes;var d=_objectWithoutProperties$c(l,_excluded$b);return u?u.map(function(f,p){return React.isValidElement(f)?React.cloneElement(f,_objectSpread$V(_objectSpread$V({},d),{},{ref:o})):React.createElement(f,Object.assign({ref:o},d,{key:p}))}):null});function _classCallCheck$1Y(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1Q(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2i(d.key),d)}}function _createClass$1Q(l,o,u){return o&&_defineProperties$1Q(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2i(l){var o=_toPrimitive$2i(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2i(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1i(l,o,u){return o=_getPrototypeOf$1k(o),_possibleConstructorReturn$1r(l,_isNativeReflectConstruct$1i()?Reflect.construct(o,u||[],_getPrototypeOf$1k(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1r(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1k(l)}function _assertThisInitialized$1k(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1i(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1i=function(){return!!l})()}function _getPrototypeOf$1k(l){return _getPrototypeOf$1k=Object.
51setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1k(l)}function _inherits$1r(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1k(l,o)}function _setPrototypeOf$1k(l,o){return _setPrototypeOf$1k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1k(l,o)}var CanvasInfo$1=(function(l){function o(){return _classCallCheck$1Y(this,o),_callSuper$1i(this,o,arguments)}return _inherits$1r(o,l),_createClass$1Q(o,[{key:"render",value:function(){var d=this.props,f=d.canvasDescription,p=d.canvasLabel,h=d.canvasMetadata,v=d.id,g=d.index,m=d.t,y=d.totalSize;return React.createElement(CollapsibleSection,{id:"".concat(v,"-currentItem-").concat(g),label:m("currentItem",{context:"".concat(g+1,"/").concat(y)})},p&&React.createElement(Typography$1,{"aria-labelledby":"".concat(v,"-currentItem-").concat(g," ").concat(v,"-currentItem-").concat(g,"-heading"),id:"".concat(v,"-currentItem-").concat(g,"-heading"),variant:"h4",component:"h5"},p),f&&React.createElement(Typography$1,{variant:"body1"},React.createElement(SanitizedHtml,{htmlString:f,ruleSet:"iiif"})),h&&h.length>0&&React.createElement(LabelValueMetadata,{labelValuePairs:h}),React.createElement(PluginHook$1,this.props))}}])})(reactExports.Component);CanvasInfo$1.defaultProps={canvasDescription:null,canvasLabel:null,canvasMetadata:[],index:1,t:function(o){return o},totalSize:1};var mapStateToProps$12=function(o,u){var d=u.canvasId,f=u.id,p=u.windowId;return{canvasDescription:getCanvasDescription$1(o,{canvasId:d,companionWindowId:f,windowId:p}),canvasLabel:getCanvasLabel$1(o,{canvasId:d,companionWindowId:f,windowId:p}),canvasMetadata:getDestructuredMetadata$1(getCanvas$1(o,{canvasId:d,companionWindowId:f,windowId:p}))}},enhance$1e=compose$2(withTranslation(),connect(mapStateToProps$12),withPlugins$1("CanvasInfo"));const CanvasInfo=enhance$1e(CanvasInfo$1);function _classCallCheck$1X(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1P(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2h(d.key),d)}}function _createClass$1P(l,o,u){return o&&_defineProperties$1P(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2h(l){var o=_toPrimitive$2h(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2h(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1h(l,o,u){return o=_getPrototypeOf$1j(o),_possibleConstructorReturn$1q(l,_isNativeReflectConstruct$1h()?Reflect.construct(o,u||[],_getPrototypeOf$1j(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1q(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1j(l)}function _assertThisInitialized$1j(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1h(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1h=function(){return!!l})()}function _getPrototypeOf$1j(l){return _getPrototypeOf$1j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1j(l)}function _inherits$1q(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1j(l,o)}function _setPrototypeOf$1j(l,o){return _setPrototypeOf$1j=Object.
51setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1j(l,o)}var LocalePicker$1=(function(l){function o(){return _classCallCheck$1X(this,o),_callSuper$1h(this,o,arguments)}return _inherits$1q(o,l),_createClass$1P(o,[{key:"render",value:function(){var d=this.props,f=d.availableLocales,p=d.classes,h=d.locale,v=d.setLocale;return!v||f.length<2?React.createElement(React.Fragment,null):React.createElement(FormControl$1,null,React.createElement(Select$1,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:h,onChange:function(m){v(m.target.value)},name:"locale",classes:{select:p.select},className:p.selectEmpty},f.map(function(g){return React.createElement(MenuItem$1,{key:g,value:g},React.createElement(Typography$1,{variant:"body2"},g))})))}}])})(reactExports.Component);LocalePicker$1.defaultProps={availableLocales:[],classes:{},locale:"",setLocale:void 0};var styles$17=function(o){return{select:{"&:focus":{backgroundColor:o.palette.background.paper}},selectEmpty:{backgroundColor:o.palette.background.paper}}},enhance$1d=compose$2(withTranslation(),withStyles$2(styles$17));const LocalePicker=enhance$1d(LocalePicker$1);function _classCallCheck$1W(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1O(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2g(d.key),d)}}function _createClass$1O(l,o,u){return o&&_defineProperties$1O(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2g(l){var o=_toPrimitive$2g(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2g(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1g(l,o,u){return o=_getPrototypeOf$1i(o),_possibleConstructorReturn$1p(l,_isNativeReflectConstruct$1g()?Reflect.construct(o,u||[],_getPrototypeOf$1i(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1p(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1i(l)}function _assertThisInitialized$1i(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1g(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1g=function(){return!!l})()}function _getPrototypeOf$1i(l){return _getPrototypeOf$1i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1i(l)}function _inherits$1p(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1i(l,o)}function _setPrototypeOf$1i(l,o){return _setPrototypeOf$1i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1i(l,o)}var ManifestInfo$1=(function(l){function o(){return _classCallCheck$1W(this,o),_callSuper$1g(this,o,arguments)}return _inherits$1p(o,l),_createClass$1O(o,[{key:"render",value:function(){var d=this.props,f=d.manifestDescription,p=d.manifestLabel,h=d.manifestMetadata,v=d.id,g=d.t;return React.createElement(CollapsibleSection,{id:"".concat(v,"-resource"),label:g("resource")},p&&React.createElement(Typography$1,{"aria-labelledby":"".concat(v,"-resource ").concat(v,"-resource-heading"),id:"".concat(v,"-resource-heading"),variant:"h4",component:"h5"},p),f&&React.createElement(Typography$1,{variant:"body1"},React.createElement(SanitizedHtml,{htmlString:f,ruleSet:"iiif"})),h.length>0&&React.createElement(LabelValueMetadata,{labelValuePairs:h}),React.createElement(PluginHook$1,this.props))}}])})(reactExports.Component);ManifestInfo$1.defaultProps={manifestDescription:null,manifestLabel:null,manifestMetadata:[],t:function(o){return o}};var mapStateToProps$11=function(o,u){var d=u.id,f=u.manifestId,p=u.windowId;return{manifestDescription:getManifestDescription$1(o,{companionWindowId:d,manifestId:f,windowId:p}),manifestLabel:getManifestTitle$1(o,{companionWindowId:d,manifestId:f,windowId:p}),manifestMetadata:getManifestMetadata$1(o,{companionWindowId:d,manifestId:f,windowId:p})}},enhance$1c=compose$2(withTranslation(),connect(mapStateToProps$11),withPlugins$1("ManifestInfo"));const ManifestInfo=enhance$1c(ManifestInfo$1);var ViewListSharp={},hasRequiredViewListSharp;function requireViewListSharp(){if(hasRequiredViewListSharp)return ViewListSharp;hasRequiredViewListSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ViewListSharp,"__esModule",{value:!0}),ViewListSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h12v-4H8v4zm0 5h12v-4H8v4zM8 5v4h12V5H8z"}),"ViewListSharp");return ViewListSharp.default=f,ViewListSharp}var ViewListSharpExports=requireViewListSharp();const ThumbnailListIcon=getDefaultExportFromCjs(ViewListSharpExports);function _classCallCheck$1V(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1N(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2f(d.key),d)}}function _createClass$1N(l,o,u){return o&&_defineProperties$1N(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2f(l){var o=_toPrimitive$2f(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2f(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1f(l,o,u){return o=_getPrototypeOf$1h(o),_possibleConstructorReturn$1o(l,_isNativeReflectConstruct$1f()?Reflect.construct(o,u||[],_getPrototypeOf$1h(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1o(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1h(l)}function _assertThisInitialized$1h(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1f(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1f=function(){return!!l})()}function _getPrototypeOf$1h(l){return _getPrototypeOf$1h=Object.
51setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1h(l)}function _inherits$1o(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1h(l,o)}function _setPrototypeOf$1h(l,o){return _setPrototypeOf$1h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1h(l,o)}var CollectionInfo$1=(function(l){function o(u){var d;return _classCallCheck$1V(this,o),d=_callSuper$1f(this,o,[u]),d.openCollectionDialog=d.openCollectionDialog.bind(d),d}return _inherits$1o(o,l),_createClass$1N(o,[{key:"openCollectionDialog",value:function(){var d=this.props,f=d.collectionPath,p=d.showCollectionDialog,h=d.windowId,v=f[f.length-1];p(v,f.slice(0,-1),h)}},{key:"render",value:function(){var d=this.props,f=d.collectionLabel,p=d.collectionPath,h=d.id,v=d.t;return p.length===0?null:React.createElement(CollapsibleSection,{id:"".concat(h,"-collection"),label:v("collection")},f&&React.createElement(Typography$1,{"aria-labelledby":"".concat(h,"-resource ").concat(h,"-resource-heading"),id:"".concat(h,"-resource-heading"),variant:"h4"},f),React.createElement(Button$1,{color:"primary",onClick:this.openCollectionDialog,startIcon:React.createElement(ThumbnailListIcon,null)},v("showCollection")))}}])})(reactExports.Component);CollectionInfo$1.defaultProps={collectionLabel:null,collectionPath:[],t:function(o){return o},windowId:null};var mapStateToProps$10=function(o,u){u.id;var d=u.windowId,f=getWindow$2(o,{windowId:d})||{},p=f.collectionPath,h=p[p.length-1];return{collectionLabel:getManifestTitle$1(o,{manifestId:h}),collectionPath:p}},mapDispatchToProps$K={showCollectionDialog:showCollectionDialog$1},enhance$1b=compose$2(withTranslation(),connect(mapStateToProps$10,mapDispatchToProps$K),withPlugins$1("CollectionInfo"));const CollectionInfo=enhance$1b(CollectionInfo$1);function _classCallCheck$1U(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1M(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2e(d.key),d)}}function _createClass$1M(l,o,u){return o&&_defineProperties$1M(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2e(l){var o=_toPrimitive$2e(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2e(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1e(l,o,u){return o=_getPrototypeOf$1g(o),_possibleConstructorReturn$1n(l,_isNativeReflectConstruct$1e()?Reflect.construct(o,u||[],_getPrototypeOf$1g(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1n(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1g(l)}function _assertThisInitialized$1g(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1e(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1e=function(){return!!l})()}function _getPrototypeOf$1g(l){return _getPrototypeOf$1g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1g(l)}function _inherits$1n(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1g(l,o)}function _setPrototypeOf$1g(l,o){return _setPrototypeOf$1g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1g(l,o)}var ManifestRelatedLinks$1=(function(l){function o(){return _classCallCheck$1U(this,o),_callSuper$1e(this,o,arguments)}return _inherits$1n(o,l),_createClass$1M(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.homepage,h=d.manifestUrl,v=d.related,g=d.renderings,m=d.seeAlso,y=d.id,b=d.t;
51return React.createElement(CollapsibleSection,{id:"".concat(y,"-related"),label:b("related")},React.createElement(Typography$1,{"aria-labelledby":"".concat(y,"-related ").concat(y,"-related-heading"),id:"".concat(y,"-related-heading"),variant:"h4",component:"h5"},b("links")),React.createElement("dl",{className:classNames(ns$1("label-value-metadata"),f.labelValueMetadata)},p&&React.createElement(React.Fragment,null,React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},b("iiif_homepage")),p.map(function(w){return React.createElement(Typography$1,{key:w.value,variant:"body1",component:"dd"},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:w.value},w.label||w.value))})),g&&g.length>0&&React.createElement(React.Fragment,null,React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},b("iiif_renderings")),g.map(function(w){return React.createElement(Typography$1,{key:w.value,variant:"body1",component:"dd"},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:w.value},w.label||w.value))})),v&&React.createElement(React.Fragment,null,React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},b("iiif_related")),v.map(function(w){return React.createElement(Typography$1,{key:w.value,variant:"body1",component:"dd"},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:w.value},w.label||w.value),w.format&&React.createElement(Typography$1,{component:"span"}," (".concat(w.format,")")))})),m&&React.createElement(React.Fragment,null,React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},b("iiif_seeAlso")),m.map(function(w){return React.createElement(Typography$1,{key:w.value,variant:"body1",component:"dd"},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:w.value},w.label||w.value),w.format&&React.createElement(Typography$1,{component:"span"}," (".concat(w.format,")")))})),h&&React.createElement(React.Fragment,null,React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},b("iiif_manifest")),React.createElement(Typography$1,{variant:"body1",component:"dd"},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:h},h)))),React.createElement(PluginHook$1,this.props))}}])})(reactExports.Component);ManifestRelatedLinks$1.defaultProps={homepage:null,manifestUrl:null,related:null,renderings:null,seeAlso:null,t:function(o){return o}};var mapStateToProps$$=function(o,u){u.id;var d=u.windowId;return{homepage:getManifestHomepage$1(o,{windowId:d}),manifestUrl:getManifestUrl$1(o,{windowId:d}),related:getManifestRelated(o,{windowId:d}),renderings:getManifestRenderings$1(o,{windowId:d}),seeAlso:getManifestSeeAlso(o,{windowId:d})}},styles$16={labelValueMetadata:{"& dd":{marginBottom:".5em",marginLeft:"0"}}},enhance$1a=compose$2(withStyles$2(styles$16),withTranslation(),connect(mapStateToProps$$),withPlugins$1("ManifestRelatedLinks"));const ManifestRelatedLinks=enhance$1a(ManifestRelatedLinks$1);function _classCallCheck$1T(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1L(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2d(d.key),d)}}function _createClass$1L(l,o,u){return o&&_defineProperties$1L(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2d(l){var o=_toPrimitive$2d(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2d(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1d(l,o,u){return o=_getPrototypeOf$1f(o),_possibleConstructorReturn$1m(l,_isNativeReflectConstruct$1d()?Reflect.construct(o,u||[],_getPrototypeOf$1f(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1m(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1f(l)}function _assertThisInitialized$1f(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1d(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1d=function(){return!!l})()}function _getPrototypeOf$1f(l){return _getPrototypeOf$1f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
51)},_getPrototypeOf$1f(l)}function _inherits$1m(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1f(l,o)}function _setPrototypeOf$1f(l,o){return _setPrototypeOf$1f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1f(l,o)}var WindowSideBarInfoPanel$1=(function(l){function o(){return _classCallCheck$1T(this,o),_callSuper$1d(this,o,arguments)}return _inherits$1m(o,l),_createClass$1L(o,[{key:"render",value:function(){var d=this.props,f=d.windowId,p=d.id,h=d.canvasIds,v=d.classes,g=d.collectionPath,m=d.t,y=d.locale,b=d.setLocale,w=d.availableLocales,E=d.showLocalePicker;return React.createElement(CompanionWindow,{title:m("aboutThisItem"),paperClassName:ns$1("window-sidebar-info-panel"),windowId:f,id:p,titleControls:E&&React.createElement(LocalePicker,{locale:y,setLocale:b,availableLocales:w})},h.map(function(P,C){return React.createElement("div",{key:P,className:v.section},React.createElement(CanvasInfo,{id:p,canvasId:P,index:C,totalSize:h.length,windowId:f}))}),g.length>0&&React.createElement("div",{className:v.section},React.createElement(CollectionInfo,{id:p,windowId:f})),React.createElement("div",{className:v.section},React.createElement(ManifestInfo,{id:p,windowId:f})),React.createElement("div",{className:v.section},React.createElement(ManifestRelatedLinks,{id:p,windowId:f})))}}])})(reactExports.Component);WindowSideBarInfoPanel$1.defaultProps={availableLocales:[],canvasIds:[],classes:{},collectionPath:[],locale:"",setLocale:void 0,showLocalePicker:!1,t:function(o){return o}};var mapStateToProps$_=function(o,u){var d=u.id,f=u.windowId;return{availableLocales:getMetadataLocales$1(o,{companionWindowId:d,windowId:f}),canvasIds:getVisibleCanvasIds$1(o,{windowId:f}),collectionPath:(getWindow$2(o,{windowId:f})||{}).collectionPath,locale:getCompanionWindow$1(o,{companionWindowId:d}).locale||getManifestLocale$1(o,{windowId:f}),showLocalePicker:getWindowConfig$1(o,{windowId:f}).showLocalePicker}},mapDispatchToProps$J=function(o,u){var d=u.windowId,f=u.id;return{setLocale:function(h){return o(updateCompanionWindow$1(d,f,{locale:h}))}}},styles$15=function(o){return{section:{borderBottom:".5px solid ".concat(o.palette.section_divider),paddingBottom:o.spacing(1),paddingLeft:o.spacing(2),paddingRight:o.spacing(1),paddingTop:o.spacing(2)}}},enhance$19=compose$2(withTranslation(),withStyles$2(styles$15),connect(mapStateToProps$_,mapDispatchToProps$J),withPlugins$1("WindowSideBarInfoPanel"));const WindowSideBarInfoPanel=enhance$19(WindowSideBarInfoPanel$1);var ReorderSharp={},hasRequiredReorderSharp;function requireReorderSharp(){if(hasRequiredReorderSharp)return ReorderSharp;hasRequiredReorderSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ReorderSharp,"__esModule",{value:!0}),ReorderSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}),"ReorderSharp");return ReorderSharp.default=f,ReorderSharp}var ReorderSharpExports=requireReorderSharp();const ItemListIcon=getDefaultExportFromCjs(ReorderSharpExports);var SortSharp={},hasRequiredSortSharp;function requireSortSharp(){if(hasRequiredSortSharp)return SortSharp;hasRequiredSortSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(SortSharp,"__esModule",{value:!0}),SortSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortSharp");return SortSharp.default=f,SortSharp}var SortSharpExports=requireSortSharp();const TocIcon=getDefaultExportFromCjs(SortSharpExports);var ArrowForwardSharp={},hasRequiredArrowForwardSharp;function requireArrowForwardSharp(){if(hasRequiredArrowForwardSharp)return ArrowForwardSharp;hasRequiredArrowForwardSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ArrowForwardSharp,"__esModule",{value:!0}),ArrowForwardSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}),"ArrowForwardSharp");return ArrowForwardSharp.default=f,ArrowForwardSharp}var ArrowForwardSharpExports=requireArrowForwardSharp();const ArrowForwardIcon=getDefaultExportFromCjs(ArrowForwardSharpExports);function _classCallCheck$1S(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1K(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2c(d.key),d)}}function _createClass$1K(l,o,u){return o&&_defineProperties$1K(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2c(l){var o=_toPrimitive$2c(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2c(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1c(l,o,u){return o=_getPrototypeOf$1e(o),_possibleConstructorReturn$1l(l,_isNativeReflectConstruct$1c()?Reflect.construct(o,u||[],_getPrototypeOf$1e(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1l(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1e(l)}function _assertThisInitialized$1e(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1c(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1c=function(){return!!l})()}function _getPrototypeOf$1e(l){return _getPrototypeOf$1e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
51)},_getPrototypeOf$1e(l)}function _inherits$1l(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1e(l,o)}function _setPrototypeOf$1e(l,o){return _setPrototypeOf$1e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1e(l,o)}var SidebarIndexItem$1=(function(l){function o(){return _classCallCheck$1S(this,o),_callSuper$1c(this,o,arguments)}return _inherits$1l(o,l),_createClass$1K(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.label;return React.createElement(React.Fragment,null,React.createElement(Typography$1,{className:classNames(f.label),variant:"body1"},p))}}])})(reactExports.Component),styles$14=function(o){return{label:{paddingLeft:o.spacing(1)}}},enhance$18=compose$2(withStyles$2(styles$14),withTranslation(),connect(null,null),withPlugins$1("SidebarIndexItem"));const SidebarIndexItem=enhance$18(SidebarIndexItem$1);function _classCallCheck$1R(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1J(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2b(d.key),d)}}function _createClass$1J(l,o,u){return o&&_defineProperties$1J(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2b(l){var o=_toPrimitive$2b(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2b(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1b(l,o,u){return o=_getPrototypeOf$1d(o),_possibleConstructorReturn$1k(l,_isNativeReflectConstruct$1b()?Reflect.construct(o,u||[],_getPrototypeOf$1d(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1k(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1d(l)}function _assertThisInitialized$1d(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1b(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1b=function(){return!!l})()}function _getPrototypeOf$1d(l){return _getPrototypeOf$1d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1d(l)}function _inherits$1k(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1d(l,o)}function _setPrototypeOf$1d(l,o){return _setPrototypeOf$1d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1d(l,o)}var SidebarIndexThumbnail$1=(function(l){function o(){return _classCallCheck$1R(this,o),_callSuper$1b(this,o,arguments)}return _inherits$1k(o,l),_createClass$1J(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.canvas,h=d.height,v=d.label,g=d.width;return React.createElement(React.Fragment,null,React.createElement("div",{style:{minWidth:50}},React.createElement(IIIFThumbnail,{label:v,resource:p,className:classNames(f.clickable),maxHeight:h,maxWidth:g})),React.createElement(Typography$1,{className:classNames(f.label),variant:"body1"},v))}}])})(reactExports.Component);SidebarIndexThumbnail$1.defaultProps={height:void 0,width:void 0};function ownKeys$U(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$U(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
51o%2?ownKeys$U(Object(u),!0).forEach(function(d){_defineProperty$10(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$U(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$10(l,o,u){return(o=_toPropertyKey$2a(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$2a(l){var o=_toPrimitive$2a(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2a(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$Z=function(o,u){return u.data,_objectSpread$U({},getConfig$1(o).canvasNavigation||{})},styles$13=function(o){return{label:{paddingLeft:o.spacing(1)}}},enhance$17=compose$2(withStyles$2(styles$13),withTranslation(),connect(mapStateToProps$Z,null),withPlugins$1("SidebarIndexThumbnail"));const SidebarIndexThumbnail=enhance$17(SidebarIndexThumbnail$1);function _classCallCheck$1Q(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1I(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$29(d.key),d)}}function _createClass$1I(l,o,u){return o&&_defineProperties$1I(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$29(l){var o=_toPrimitive$29(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$29(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1a(l,o,u){return o=_getPrototypeOf$1c(o),_possibleConstructorReturn$1j(l,_isNativeReflectConstruct$1a()?Reflect.construct(o,u||[],_getPrototypeOf$1c(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1j(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1c(l)}function _assertThisInitialized$1c(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1a(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1a=function(){return!!l})()}function _getPrototypeOf$1c(l){return _getPrototypeOf$1c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1c(l)}function _inherits$1j(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1c(l,o)}function _setPrototypeOf$1c(l,o){return _setPrototypeOf$1c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1c(l,o)}var SidebarIndexList$1=(function(l){function o(){return _classCallCheck$1Q(this,o),_callSuper$1a(this,o,arguments)}return _inherits$1j(o,l),_createClass$1I(o,[{key:"getIdAndLabelOfCanvases",value:function(){var d=this.props.canvases;return d.map(function(f,p){return{id:f.id,label:new MiradorCanvas$2(f).getLabel()}})}},{key:"render",value:function(){var d=this.props,f=d.canvases,p=d.classes,h=d.containerRef,v=d.selectedCanvasIds,g=d.setCanvas,m=d.variant,y=d.windowId,b=this.getIdAndLabelOfCanvases(f),w;return m==="thumbnail"?w=SidebarIndexThumbnail:w=SidebarIndexItem,React.createElement(MenuList,{variant:"selectedMenu"},b.map(function(E,P){var C=function(){g(y,E.id)};return React.createElement(ScrollTo,{containerRef:h,key:"".concat(E.id,"-").concat(m),offsetTop:96,scrollTo:v.includes(E.id)},React.createElement(MenuItem$1,{key:E.id,className:p.listItem,alignItems:"flex-start",onClick:C,button:!0,component:"li",selected:v.includes(E.id)},React.createElement(w,{label:E.label,canvas:f[P]})))}))}}])})(reactExports.Component);SidebarIndexList$1.defaultProps={selectedCanvasIds:[],variant:"item"};var mapStateToProps$Y=function(o,u){var d=u.id,f=u.windowId;return{canvases:getCanvases$1(o,{windowId:f}),selectedCanvasIds:getVisibleCanvasIds$1(o,{windowId:f}),variant:getCompanionWindow$1(o,{companionWindowId:d,windowId:f}).variant}},mapDispatchToProps$I=function(o,u){return u.id,u.windowId,{setCanvas:function(){return o(setCanvas$1.apply(actions$2,arguments))}}},styles$12=function(o){return{label:{paddingLeft:o.spacing(1)},listItem:{borderBottom:"0.5px solid ".concat(o.palette.divider),paddingRight:o.spacing(1)}}},enhance$16=compose$2(withStyles$2(styles$12),withTranslation(),connect(mapStateToProps$Y,mapDispatchToProps$I),withPlugins$1("SidebarIndexList"));const SidebarIndexList=enhance$16(SidebarIndexList$1);var colorManipulator={};const require$$3=getAugmentedNamespace(esm$b);var hasRequiredColorManipulator;function requireColorManipulator(){if(hasRequiredColorManipulator)return colorManipulator;hasRequiredColorManipulator=1,Object.defineProperty(colorManipulator,"__esMo
51dule",{value:!0}),colorManipulator.hexToRgb=u,colorManipulator.rgbToHex=f,colorManipulator.hslToRgb=p,colorManipulator.decomposeColor=h,colorManipulator.recomposeColor=v,colorManipulator.getContrastRatio=g,colorManipulator.getLuminance=m,colorManipulator.emphasize=y,colorManipulator.fade=b,colorManipulator.alpha=w,colorManipulator.darken=E,colorManipulator.lighten=P;var l=require$$3;function o(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(T,C),O)}function u(C){C=C.substr(1);var T=new RegExp(".{1,".concat(C.length>=6?2:1,"}"),"g"),O=C.match(T);return O&&O[0].length===1&&(O=O.map(function(x){return x+x})),O?"rgb".concat(O.length===4?"a":"","(").concat(O.map(function(x,A){return A<3?parseInt(x,16):Math.round(parseInt(x,16)/255*1e3)/1e3}).join(", "),")"):""}function d(C){var T=C.toString(16);return T.length===1?"0".concat(T):T}function f(C){if(C.indexOf("#")===0)return C;var T=h(C),O=T.values;return"#".concat(O.map(function(x){return d(x)}).join(""))}function p(C){C=h(C);var T=C,O=T.values,x=O[0],A=O[1]/100,D=O[2]/100,j=A*Math.min(D,1-D),M=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(H+x/30)%12;return D-j*Math.max(Math.min(U-3,9-U,1),-1)},N="rgb",q=[Math.round(M(0)*255),Math.round(M(8)*255),Math.round(M(4)*255)];return C.type==="hsla"&&(N+="a",q.push(O[3])),v({type:N,values:q})}function h(C){if(C.type)return C;if(C.charAt(0)==="#")return h(u(C));var T=C.indexOf("("),O=C.substring(0,T);if(["rgb","rgba","hsl","hsla"].indexOf(O)===-1)throw new Error((0,l.formatMuiErrorMessage)(3,C));var x=C.substring(T+1,C.length-1).split(",");return x=x.map(function(A){return parseFloat(A)}),{type:O,values:x}}function v(C){var T=C.type,O=C.values;return T.indexOf("rgb")!==-1?O=O.map(function(x,A){return A<3?parseInt(x,10):x}):T.indexOf("hsl")!==-1&&(O[1]="".concat(O[1],"%"),O[2]="".concat(O[2],"%")),"".concat(T,"(").concat(O.join(", "),")")}function g(C,T){var O=m(C),x=m(T);return(Math.max(O,x)+.05)/(Math.min(O,x)+.05)}function m(C){C=h(C);var T=C.type==="hsl"?h(p(C)).values:C.values;return T=T.map(function(O){return O/=255,O<=.03928?O/12.92:Math.pow((O+.055)/1.055,2.4)}),Number((.2126*T[0]+.7152*T[1]+.0722*T[2]).toFixed(3))}function y(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return m(C)>.5?E(C,T):P(C,T)}function b(C,T){return w(C,T)}function w(C,T){return C=h(C),T=o(T),(C.type==="rgb"||C.type==="hsl")&&(C.type+="a"),C.values[3]=T,v(C)}function E(C,T){if(C=h(C),T=o(T),C.type.indexOf("hsl")!==-1)C.values[2]*=1-T;else if(C.type.indexOf("rgb")!==-1)for(var O=0;O<3;O+=1)C.values[O]*=1-T;return v(C)}function P(C,T){if(C=h(C),T=o(T),C.type.indexOf("hsl")!==-1)C.values[2]+=(100-C.values[2])*T;else if(C.type.indexOf("rgb")!==-1)for(var O=0;O<3;O+=1)C.values[O]+=(255-C.values[O])*T;return v(C)}return colorManipulator}var colorManipulatorExports=requireColorManipulator(),TreeViewContext=reactExports.createContext({}),styles$11={root:{padding:0,margin:0,listStyle:"none"}};function arrayDiff(l,o){if(l.length!==o.length)return!0;for(var u=0;u<l.length;u+=1)if(l[u]!==o[u])return!0;return!1}var findNextFirstChar=function(o,u,d){for(var f=u;f<o.length;f+=1)if(d===o[f])return f;return-1},defaultExpandedDefault=[],defaultSelectedDefault=[],TreeView=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.defaultCollapseIcon,v=o.defaultEndIcon,g=o.defaultExpanded,m=g===void 0?defaultExpandedDefault:g,y=o.defaultExpandIcon,b=o.defaultParentIcon,w=o.defaultSelected,E=w===void 0?defaultSelectedDefault:w,P=o.disableSelection,C=P===void 0?!1:P,T=o.multiSelect,O=T===void 0?!1:T,x=o.expanded,A=o.onNodeSelect,D=o.onNodeToggle,j=o.selected,M=_objectWithoutProperties$q(o,["children","classes","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disableSelection","multiSelect","expanded","onNodeSelect","onNodeToggle","selected"]),N=reactExports.useState(null),q=N[0],z=N[1],H=reactExports.useState(null),U=H[0],F=H[1],B=reactExports.useRef({}),G=reactExports.useRef({}
51),Q=reactExports.useRef([]),K=useControlled({controlled:x,default:m,name:"TreeView",state:"expanded"}),Z=_slicedToArray$n(K,2),te=Z[0],oe=Z[1],fe=useControlled({controlled:j,default:E,name:"TreeView",state:"selected"}),le=_slicedToArray$n(fe,2),Re=le[0],Ae=le[1],_e=reactExports.useCallback(function(ut){return Array.isArray(te)?te.indexOf(ut)!==-1:!1},[te]),ee=reactExports.useCallback(function(ut){return Array.isArray(Re)?Re.indexOf(ut)!==-1:Re===ut},[Re]),se=function(Me){return q===Me},$e=function(Me){return U===Me},Ee=function(Me){var vt=Q.current.indexOf(Me);return vt!==-1&&vt+1<Q.current.length?Q.current[vt+1]:null},xe=function(Me){var vt=Q.current.indexOf(Me);return vt!==-1&&vt-1>=0?Q.current[vt-1]:null},Se=function(){return Q.current[Q.current.length-1]},Ie=function(){return Q.current[0]},ge=function(Me){return B.current[Me].parent},Y=function(Me,vt){var Ot=Q.current.indexOf(Me),ft=Q.current.indexOf(vt),wt=Math.min(Ot,ft),Nt=Math.max(Ot,ft);return Q.current.slice(wt,Nt+1)},ie=function(Me){Me&&(z(Me),F(Me))},ce=function(Me){return ie(Ee(Me))},ue=function(Me){return ie(xe(Me))},pe=function(){return ie(Ie())},Te=function(){return ie(Se())},Ce=function(Me,vt){var Ot,ft,wt=vt.toLowerCase(),Nt=[],jt=[];Object.keys(G.current).forEach(function(Ct){var mt=G.current[Ct],qt=B.current[Ct],Er=qt.parent?_e(qt.parent):!0;Er&&(Nt.push(Ct),jt.push(mt))}
51),Ot=Nt.indexOf(Me)+1,Ot===B.current.length&&(Ot=0),ft=findNextFirstChar(jt,Ot,wt),ft===-1&&(ft=findNextFirstChar(jt,0,wt)),ft>-1&&ie(Nt[ft])},Fe=function(Me){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U,Ot;te.indexOf(vt)!==-1?(Ot=te.filter(function(ft){return ft!==vt}),z(function(ft){var wt=B.current[ft];return ft&&(wt&&wt.parent?wt.parent.id:null)===vt?vt:ft})):Ot=[vt].concat(te),D&&D(Me,Ot),oe(Ot)},He=function(Me,vt){var Ot=B.current[vt],ft=B.current[Ot.parent],wt;if(ft)wt=ft.children.filter(function(Ct){return!_e(Ct)});else{var Nt=B.current[-1].children;wt=Nt.filter(function(Ct){return!_e(Ct)})}var jt=te.concat(wt);wt.length>0&&(oe(jt),D&&D(Me,jt))},we=reactExports.useRef(null),Oe=reactExports.useRef(!1),Ne=reactExports.useRef([]),qe=function(Me,vt){var Ot=Re,ft=vt.start,wt=vt.next,Nt=vt.current;!wt||!Nt||(Ne.current.indexOf(Nt)===-1&&(Ne.current=[]),Oe.current?Ne.current.indexOf(wt)!==-1?(Ot=Ot.filter(function(jt){return jt===ft||jt!==Nt}),Ne.current=Ne.current.filter(function(jt){return jt===ft||jt!==Nt})):(Ot.push(wt),Ne.current.push(wt)):(Ot.push(wt),Ne.current.push(Nt,wt)),A&&A(Me,Ot),Ae(Ot))},Be=function(Me,vt){var Ot=Re,ft=vt.start,wt=vt.end;Oe.current&&(Ot=Re.filter(function(Ct){return Ne.current.indexOf(Ct)===-1}));var Nt=Y(ft,wt);Ne.current=Nt;var jt=Ot.concat(Nt);jt=jt.filter(function(Ct,mt){return jt.indexOf(Ct)===mt}),A&&A(Me,jt),Ae(jt)},Ve=function(Me,vt){var Ot=[];Re.indexOf(vt)!==-1?Ot=Re.filter(function(ft){return ft!==vt}):Ot=[vt].concat(Re),A&&A(Me,Ot),Ae(Ot)},Ye=function(Me,vt){var Ot=O?[vt]:vt;A&&A(Me,Ot),Ae(Ot)},Ge=function(Me,vt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return vt?(Ot?Ve(Me,vt):Ye(Me,vt),we.current=vt,Oe.current=!1,Ne.current=[],!0):!1},dt=function(Me,vt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ft=vt.start,wt=ft===void 0?we.current:ft,Nt=vt.end,jt=vt.current;return Ot?qe(Me,{start:wt,next:Nt,current:jt}):Be(Me,{start:wt,end:Nt}),Oe.current=!0,!0},ze=function(Me,vt){we.current||(we.current=vt);var Ot=Oe.current?we.current:vt;return dt(Me,{start:Ot,end:Ie()})},nt=function(Me,vt){we.current||(we.current=vt);var Ot=Oe.current?we.current:vt;return dt(Me,{start:Ot,end:Se()})},Ze=function(Me,vt){return dt(Me,{end:Ee(vt),current:vt},!0)},_t=function(Me,vt){return dt(Me,{end:xe(vt),current:vt},!0)},ae=function(Me){return dt(Me,{start:Ie(),end:Se()})},re=function(Me,vt){var Ot=B.current[Me];B.current[Me]=_extends$v({},Ot,{children:vt,id:Me}),vt.forEach(function(ft){var wt=B.current[ft];B.current[ft]=_extends$v({},wt,{parent:Me,id:ft})})},he=reactExports.useCallback(function(ut){var Me=B.current[ut],vt=[];return Me&&(vt.push(ut),Me.children&&(vt.concat(Me.children),Me.children.forEach(function(Ot){vt.concat(he(Ot))}))),vt},[]),Pe=reactExports.useCallback(function(ut){var Me=_extends$v({},G.current);ut.forEach(function(vt){Me[vt]&&delete Me[vt]}),G.current=Me},[]),We=reactExports.useCallback(function(ut){var Me=he(ut);Pe(Me);var vt=_extends$v({},B.current);Me.forEach(function(Ot){var ft=vt[Ot];if(ft){if(ft.parent){var wt=vt[ft.parent];if(wt&&wt.children){var Nt=wt.children.filter(function(jt){return jt!==Ot});vt[ft.parent]=_extends$v({},wt,{children:Nt})}}delete vt[Ot]}}),B.current=vt,F(function(Ot){return Ot===ut?null:Ot})},[he,Pe]),yt=function(Me,vt){G.current[Me]=vt},ct=reactExports.useRef([]),ht=reactExports.useState(!1),bt=ht[0],xt=ht[1];reactExports.useEffect(function(){var ut=[];reactExports.Children.forEach(d,function(Me){reactExports.isValidElement(Me)&&Me.props.nodeId&&ut.push(Me.props.nodeId)}),arrayDiff(ct.current,ut)&&(B.current[-1]={parent:null,children:ut},ut.forEach(function(Me,vt){vt===0&&z(Me)}),Q.current=B.current[-1].children,ct.current=ut,xt(!0))},[d]),reactExports.useEffect(function(){var ut=function Me(vt){for(var Ot=[],ft=0;ft<vt.length;ft+=1){var wt=vt[ft];Ot.push(wt);var Nt=B.current[wt].children;_e(wt)&&Nt&&(Ot=Ot.concat(Me(Nt)))}return Ot};bt&&(Q.current=ut(B.current[-1].children))},[te,bt,_e,d]);var Rt=function(){return!1};return reactExports.createElement(TreeViewContext.Provider,{value:{icons:{defaultCollapseIcon:h,defaultExpandIcon:y,defaultParentIcon:b,defaultEndIcon:v}
51,focus:ie,focusFirstNode:pe,focusLastNode:Te,focusNextNode:ce,focusPreviousNode:ue,focusByFirstCharacter:Ce,expandAllSiblings:He,toggleExpansion:Fe,isExpanded:_e,isFocused:$e,isSelected:ee,selectNode:C?Rt:Ge,selectRange:C?Rt:dt,selectNextNode:C?Rt:Ze,selectPreviousNode:C?Rt:_t,rangeSelectToFirst:C?Rt:ze,rangeSelectToLast:C?Rt:nt,selectAllNodes:C?Rt:ae,isTabbable:se,multiSelect:O,getParent:ge,mapFirstChar:yt,addNodeToNodeMap:re,removeNodeFromNodeMap:We}},reactExports.createElement("ul",_extends$v({role:"tree","aria-multiselectable":O,className:clsx$1(f.root,p),ref:u},M),d))});const TreeView$1=withStyles$2(styles$11,{name:"MuiTreeView"})(TreeView);var ExpandMore={},hasRequiredExpandMore;function requireExpandMore(){if(hasRequiredExpandMore)return ExpandMore;hasRequiredExpandMore=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ExpandMore,"__esModule",{value:!0}),ExpandMore.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");return ExpandMore.default=f,ExpandMore}
51var ExpandMoreExports=requireExpandMore();const ExpandMoreIcon$1=getDefaultExportFromCjs(ExpandMoreExports);var ChevronRight$1={},hasRequiredChevronRight;function requireChevronRight(){if(hasRequiredChevronRight)return ChevronRight$1;hasRequiredChevronRight=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ChevronRight$1,"__esModule",{value:!0}),ChevronRight$1.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");return ChevronRight$1.default=f,ChevronRight$1}var ChevronRightExports=requireChevronRight();const ChevronRightIcon$1=getDefaultExportFromCjs(ChevronRightExports);var styles$10=function(o){return{root:{listStyle:"none",margin:0,padding:0,outline:0,WebkitTapHighlightColor:"transparent","&:focus > $content $label":{backgroundColor:o.palette.action.hover},"&$selected > $content $label":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.selectedOpacity)},"&$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:alpha(o.palette.primary.main,o.palette.action.selectedOpacity+o.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:o.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}},isPrintableCharacter=function(o){return o&&o.length===1&&o.match(/\S/)},TreeItem=reactExports.forwardRef(function(o,u){var d=o.children,f=o.classes,p=o.className,h=o.collapseIcon,v=o.endIcon,g=o.expandIcon,m=o.icon,y=o.label,b=o.nodeId,w=o.onClick,E=o.onLabelClick,P=o.onIconClick,C=o.onFocus,T=o.onKeyDown,O=o.onMouseDown,x=o.TransitionComponent,A=x===void 0?Collapse$1:x,D=o.TransitionProps,j=_objectWithoutProperties$q(o,["children","classes","className","collapseIcon","endIcon","expandIcon","icon","label","nodeId","onClick","onLabelClick","onIconClick","onFocus","onKeyDown","onMouseDown","TransitionComponent","TransitionProps"]),M=reactExports.useContext(TreeViewContext),N=M.icons,q=M.focus,z=M.focusFirstNode,H=M.focusLastNode,U=M.focusNextNode,F=M.focusPreviousNode,B=M.focusByFirstCharacter,G=M.selectNode,Q=M.selectRange,K=M.selectNextNode,Z=M.selectPreviousNode,te=M.rangeSelectToFirst,oe=M.rangeSelectToLast,fe=M.selectAllNodes,le=M.expandAllSiblings,Re=M.toggleExpansion,Ae=M.isExpanded,_e=M.isFocused,ee=M.isSelected,se=M.isTabbable,$e=M.multiSelect,Ee=M.getParent,xe=M.mapFirstChar,Se=M.addNodeToNodeMap,Ie=M.removeNodeFromNodeMap,ge=reactExports.useRef(null),Y=reactExports.useRef(null),ie=useForkRef(ge,u),ce=m,ue=!!(Array.isArray(d)?d.length:d),pe=Ae?Ae(b):!1,Te=_e?_e(b):!1,Ce=se?se(b):!1,Fe=ee?ee(b):!1,He=N||{},we=useTheme$1();ce||(ue?(pe?ce=h||He.defaultCollapseIcon:ce=g||He.defaultExpandIcon,ce||(ce=He.defaultParentIcon)):ce=v||He.defaultEndIcon);var Oe=function(ze){Te||q(b);var nt=$e&&(ze.shiftKey||ze.ctrlKey||ze.metaKey);ue&&!ze.defaultPrevented&&!(nt&&Ae(b))&&Re(ze,b),nt?ze.shiftKey?Q(ze,{end:b}):G(ze,b,!0):G(ze,b),w&&w(ze)},Ne=function(ze){(ze.shiftKey||ze.ctrlKey||ze.metaKey)&&ze.preventDefault(),O&&O(ze)},qe=function(ze){return ue&&(pe?U(b):Re(ze)),!0},Be=function(ze){if(pe)return Re(ze,b),!0;var nt=Ee(b);return nt?(q(nt),!0):!1},Ve=function(ze){var nt=!1,Ze=ze.key;if(!(ze.altKey||ze.currentTarget!==ze.target)){var _t=ze.ctrlKey||ze.metaKey;switch(Ze){case" ":ge.current===ze.currentTarget&&($e&&ze.shiftKey?nt=Q(ze,{end:b}):$e?nt=G(ze,b,!0):nt=G(ze,b)),ze.stopPropagation();break;case"Enter":ge.current===ze.currentTarget&&ue&&(Re(ze),nt=!0),ze.stopPropagation();break;case"ArrowDown":$e&&ze.shiftKey&&K(ze,b),U(b),nt=!0;break;case"ArrowUp":$e&&ze.shiftKey&&Z(ze,b),F(b),nt=!0;break;case"ArrowRight":we.direction==="rtl"?nt=Be(ze):nt=qe(ze);break;case"ArrowLeft":we.direction==="rtl"?nt=qe(ze):nt=Be(ze);break;case"Home":$e&&_t&&ze.shiftKey&&te(ze,b),z(),nt=!0;break;case"End":$e&&_t&&ze.shiftKey&&oe(ze,b),H(),nt=!0;break;default:Ze==="*"?(le(ze,b),nt=!0):$e&&_t&&Ze.toLowerCase()==="a"?nt=fe(ze):!_t&&!ze.shiftKey&&isPrintableCharacter(Ze)&&(B(b,Ze),nt=!0)}nt&&(ze.preventDefault(),ze.stopPropagation()),T&&T(ze)}},Ye=function(ze){!Te&&ze.currentTarget===ze.target&&q(b),C&&C(ze)};reactExports.useEffect(function(){if(Se){var dt=[];
51reactExports.Children.forEach(d,function(ze){reactExports.isValidElement(ze)&&ze.props.nodeId&&dt.push(ze.props.nodeId)}),Se(b,dt)}},[d,b,Se]),reactExports.useEffect(function(){if(Ie)return function(){Ie(b)}},[b,Ie]),reactExports.useEffect(function(){xe&&y&&xe(b,Y.current.textContent.substring(0,1).toLowerCase())},[xe,b,y]),reactExports.useEffect(function(){Te&&ge.current.focus()},[Te]);var Ge;return $e?Ge=Fe:Fe&&(Ge=!0),reactExports.createElement("li",_extends$v({className:clsx$1(f.root,p,pe&&f.expanded,Fe&&f.selected),role:"treeitem",onKeyDown:Ve,onFocus:Ye,"aria-expanded":ue?pe:null,"aria-selected":Ge,ref:ie,tabIndex:Ce?0:-1},j),reactExports.createElement("div",{className:f.content,onClick:Oe,onMouseDown:Ne,ref:Y},reactExports.createElement("div",{onClick:P,className:f.iconContainer},ce),reactExports.createElement(Typography$1,{onClick:E,component:"div",className:f.label},y)),d&&reactExports.createElement(A,_extends$v({unmountOnExit:!0,className:f.group,in:pe,component:"ul",role:"group"},D),d))});const TreeItem$1=withStyles$2(styles$10,{name:"MuiTreeItem"})(TreeItem);function _defineProperty$$(l,o,u){return(o=_toPropertyKey$28(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$1P(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1H(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$28(d.key),d)}}function _createClass$1H(l,o,u){return o&&_defineProperties$1H(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$28(l){var o=_toPrimitive$28(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$28(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$19(l,o,u){return o=_getPrototypeOf$1b(o),_possibleConstructorReturn$1i(l,_isNativeReflectConstruct$19()?Reflect.construct(o,u||[],_getPrototypeOf$1b(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1i(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1b(l)}function _assertThisInitialized$1b(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$19(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$19=function(){return!!l})()}function _getPrototypeOf$1b(l){return _getPrototypeOf$1b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1b(l)}function _inherits$1i(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1b(l,o)}function _setPrototypeOf$1b(l,o){return _setPrototypeOf$1b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1b(l,o)}function getStartCanvasId(l){var o=l.data.__jsonld;if(o.startCanvas&&typeof o.startCanvas=="string")return o.startCanvas;if(o.start){if(o.start.type==="Canvas"&&typeof o.start.id=="string")return o.start.id;if(o.start.type==="SpecificResource"&&typeof o.start.source=="string")return o.start.source}return l.data.getCanvasIds()[0]}var SidebarIndexTableOfContents$1=(function(l){function o(){return _classCallCheck$1P(this,o),_callSuper$19(this,o,arguments)}return _inherits$1i(o,l),_createClass$1H(o,[{key:"handleKeyPressed",value:function(d,f){var p=this.props,h=p.expandedNodeIds,v=p.toggleNode;(d.key==="Enter"||d.key===" "||d.key==="Spacebar")&&this.selectTreeItem(f),(d.key==="ArrowLeft"&&h.indexOf(f.id)!==-1||d.key==="ArrowRight"&&h.indexOf(f.id)===-1&&f.nodes.length>0)&&v(f.id)}},{key:"selectTreeItem",value:function(d){var f=this.props,p=f.setCanvas,h=f.toggleNode,v=f.windowId;if(d.nodes.length>0&&h(d.id),!(!d.data.getCanvasIds()||d.data.getCanvasIds().length===0||d.nodes.length>0)){var g=getStartCanvasId(d),m=g.indexOf("#")===-1?g:g.substr(0,g.indexOf("#"));p(v,m)}}},{key:"buildTreeItems",value:function(d,f,p,h){var v=this,g=this.props.classes;return d?d.map(function(m){return React.createElement(ScrollTo,{containerRef:p,key:"".concat(m.id,"-scroll"),offsetTop:96,scrollTo:h===m.id},React.createElement(TreeItem$1,{key:m.id,nodeId:m.id,classes:{content:g.content,group:g.group,label:g.label,root:g.treeItemRoot,selected:g.selected},label:React.createElement("div",{className:clsx$1(_defineProperty$$({},g.visibleNode,f.indexOf(m.id)!==-1))},m.label),onClick:function(){return v.selectTreeItem(m)},onKeyDown:function(b){return v.handleKeyPressed(b,m)}},m.nodes&&m.nodes.length>0?v.buildTreeItems(m.nodes,f,p,h):null))}):null}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.treeStructure,h=d.visibleNodeIds,v=d.expandedNodeIds,g=d.containerRef,m=d.nodeIdToScrollTo;return p?React.createElement(React.Fragment,null,React.createElement(TreeView$1,{className:f.root,defaultCollapseIcon:React.createElement(ExpandMoreIcon$1,{color:"action"}),defaultExpandIcon:React.createElement(ChevronRightIcon$1,{color:"action"}),defaultEndIcon:React.createElement(React.Fragment,null),expanded:v},this.buildTreeItems(p.nodes,h,g,m))):React.createElement(React.Fragment,null)}}])})(reactExports.Component),mapStateToProps$X=function(o,u){var d=u.id,f=u.windowId;return{expandedNodeIds:getExpandedNodeIds$1(o,{companionWindowId:d,windowId:f}),nodeIdToScrollTo:getNodeIdToScrollTo$1(o,{companionWindowId:d,windowId:f}),treeStructure:getSequenceTreeStructure$1(o,{windowId:f}),visibleNodeIds:getVisibleNodeIds$1(o,{companionWindowId:d,windowId:f})}},mapDispatchToProps$H=function(o,u){var d=u.id,f=u.windowId;return{setCanvas:function(){return o(setCanvas$1.apply(actions$2,arguments))},toggleNode:function(h){return o(toggleNode$1(f,d,h))}}},styles$$=function(o){return{content:{alignItems:"flex-start",borderLeft:"1px solid transparent",padding:"8px 16px 8px 0",width:"auto"},group:{borderLeft:"1px solid ".concat(o.palette.grey[300])},label:{paddingLeft:0},root:{flexGrow:1},selected:{},treeItemRoot:{"&:focus > $content":{backgroundColor:o.palette.action.selected},"&:hover > $content":{backgroundColor:o.palette.action.hover},"&:hover >$content $label, &:focus > $content $label, &$selected > $content $label, &$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:"transparent"}}
51,visibleNode:{backgroundColor:colorManipulatorExports.alpha(o.palette.highlights.primary,.35),display:"inline"}}},enhance$15=compose$2(withStyles$2(styles$$),withTranslation(),connect(mapStateToProps$X,mapDispatchToProps$H),withPlugins$1("SidebarIndexTableOfContents"));const SidebarIndexTableOfContents=enhance$15(SidebarIndexTableOfContents$1);function _classCallCheck$1O(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1G(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$27(d.key),d)}}function _createClass$1G(l,o,u){return o&&_defineProperties$1G(l.prototype,o),u&&_defineProperties$1G(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$27(l){var o=_toPrimitive$27(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$27(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$18(l,o,u){return o=_getPrototypeOf$1a(o),_possibleConstructorReturn$1h(l,_isNativeReflectConstruct$18()?Reflect.construct(o,u||[],_getPrototypeOf$1a(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1h(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1a(l)}function _assertThisInitialized$1a(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$18(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$18=function(){return!!l})()}function _getPrototypeOf$1a(l){return _getPrototypeOf$1a=Object.
51setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1a(l)}function _inherits$1h(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1a(l,o)}function _setPrototypeOf$1a(l,o){return _setPrototypeOf$1a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1a(l,o)}var WindowSideBarCanvasPanel$1=(function(l){function o(u){var d;return _classCallCheck$1O(this,o),d=_callSuper$18(this,o,[u]),d.handleSequenceChange=d.handleSequenceChange.bind(d),d.handleVariantChange=d.handleVariantChange.bind(d),d.containerRef=React.createRef(),d}return _inherits$1h(o,l),_createClass$1G(o,[{key:"handleSequenceChange",value:function(d){var f=this.props.updateSequence;f(d.target.value)}},{key:"handleVariantChange",value:function(d,f){var p=this.props.updateVariant;p(f)}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.collection,h=d.id,v=d.showMultipart,g=d.sequenceId,m=d.sequences,y=d.t,b=d.variant,w=d.showToc,E=d.windowId,P;return b==="tableOfContents"?P=React.createElement(SidebarIndexTableOfContents,{id:h,c
51ontainerRef:this.containerRef,windowId:E}):P=React.createElement(SidebarIndexList,{id:h,containerRef:this.containerRef,windowId:E}),React.createElement(CompanionWindow,{title:y("canvasIndex"),id:h,windowId:E,ref:this.containerRef,otherRef:this.containerRef,titleControls:React.createElement(React.Fragment,null,m&&m.length>1&&React.createElement(FormControl$1,null,React.createElement(Select$1,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:g,onChange:this.handleSequenceChange,name:"sequenceId",classes:{select:f.select},className:f.selectEmpty},m.map(function(C,T){return React.createElement(MenuItem$1,{value:C.id,key:C.id},React.createElement(Typography$1,{variant:"body2"},o.getUseableLabel(C,T)))}))),React.createElement("div",{className:f.break}),React.createElement(Tabs$1,{value:b,onChange:this.handleVariantChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary"},w&&React.createElement(Tooltip$1,{title:y("tableOfContentsList"),value:"tableOfContents"},React.createElement(Tab$1,{className:f.variantTab,value:"tableOfContents","aria-label":y("tableOfContentsList"),"aria-controls":"tab-panel-".concat(h),icon:React.createElement(TocIcon,{style:{transform:"scale(-1, 1)"}})})),React.createElement(Tooltip$1,{title:y("itemList"),value:"item"},React.createElement(Tab$1,{className:f.variantTab,value:"item","aria-label":y("itemList"),"aria-controls":"tab-panel-".concat(h),icon:React.createElement(ItemListIcon,null)})),React.createElement(Tooltip$1,{title:y("thumbnailList"),value:"thumbnail"},React.createElement(Tab$1,{className:f.variantTab,value:"thumbnail","aria-label":y("thumbnailList"),"aria-controls":"tab-panel-".concat(h),icon:React.createElement(ThumbnailListIcon,null)}))))},React.createElement("div",{id:"tab-panel-".concat(h)},p&&React.createElement(Button$1,{fullWidth:!0,onClick:v,endIcon:React.createElement(ArrowForwardIcon,null)},React.createElement(Typography$1,{className:f.collectionNavigationButton},o.getUseableLabel(p))),P))}}],[{key:"getUseableLabel",value:function(d,f){return d&&d.getLabel&&d.getLabel().length>0?d.getLabel().getValue():d.id}}])})(reactExports.Component);WindowSideBarCanvasPanel$1.defaultProps={collection:null,sequenceId:null,sequences:[],showToc:!1};var mapStateToProps$W=function(o,u){var d=u.id,f=u.windowId,p=getSequenceTreeStructure$1(o,{windowId:f}),h=getWindow$2(o,{windowId:f}),v=o.config,g=getCompanionWindow$1(o,{companionWindowId:d}),m=h.collectionPath||[],y=m&&m[m.length-1],b=getSequence$1(o,{windowId:f});return{collection:y&&getManifestoInstance$1(o,{manifestId:y}),config:v,sequenceId:b&&b.id,sequences:getSequences$1(o,{windowId:f}),showToc:p&&p.nodes&&p.nodes.length>0,variant:g.variant||getDefaultSidebarVariant$1(o,{windowId:f})}},mapDispatchToProps$G=function(o,u){var d=u.id,f=u.windowId;return{showMultipart:function(){return o(addOrUpdateCompanionWindow$1(f,{content:"collection",position:"right"}))},updateSequence:function(h){return o(updateWindow$1(f,{sequenceId:h}))},updateVariant:function(h){return o(updateCompanionWindow$1(f,d,{variant:h}))}}},styles$_=function(o){return{break:{flexBasis:"100%",height:0},collectionNavigationButton:{textTransform:"none"},label:{paddingLeft:o.spacing(1)},select:{"&:focus":{backgroundColor:o.palette.background.paper}},selectEmpty:{backgroundColor:o.palette.background.paper},variantTab:{minWidth:"auto"}}},enhance$14=compose$2(withTranslation(),withStyles$2(styles$_),connect(mapStateToProps$W,mapDispatchToProps$G),withPlugins$1("WindowSideBarCanvasPanel"));const WindowSideBarCanvasPanel=enhance$14(WindowSideBarCanvasPanel$1);var styles$Z=function(o){return{root:{display:"block",backgroundColor:alpha(o.palette.text.primary,o.palette.type==="light"?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:o.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(o.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"}}},Skeleton=reactExports.forwardRef(function(o,u){var d=o.animation,f=d===void 0?"pulse":d,p=o.classes,h=o.className,v=o.component,g=v===void 0?"span":v,m=o.height,y=o.variant,b=y===void 0?"text":y,w=o.width,E=_objectWithoutProperties$q(o,["animation","classes","className","component","height","variant","width"]),P=!!E.children;return reactExports.createElement(g,_extends$v({ref:u,className:clsx$1(p.root,p[b],h,P&&[p.withChildren,!w&&p.fitContent,!m&&p.heightAuto],f!==!1&&p[f])},E,{style:_extends$v({width:w,height:m},E.style)}))});const Skeleton$1=withStyles$2(styles$Z,{name:"MuiSkeleton"})(Skeleton);var imagePromiseFactory=(function(l){var o=l.decode,u=o===void 0?!0:o,d=l.crossOrigin,f=d===void 0?"":d;return function(p){return new Promise(function(h,v){var g=new Image;f&&(g.crossOrigin=f),g.onload=function(){u&&g.decode?g.decode().then(h).catch(v):h()},g.onerror=v,g.src=p})}});function ownKeys$T(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$T(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
51o%2?ownKeys$T(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$T(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}var removeBlankArrayElements=function(o){return o.filter(function(u){return u})},stringToArray=function(o){return Array.isArray(o)?o:[o]},cache={},promiseFind=function(o,u){var d=!1;return new Promise(function(f,p){var h=function(g){return u(g).then(function(){d=!0,f(g)})};o.reduce(function(v,g){return v.catch(function(){if(!d)return h(g)})},h(o.shift())).catch(p)})};function useImage(l){var o=l.srcList,u=l.imgPromise,d=u===void 0?imagePromiseFactory({decode:!0}):u,f=l.useSuspense,p=f===void 0?!0:f,h=reactExports.useState(!1),v=h[1],g=removeBlankArrayElements(stringToArray(o)),m=g.join("");if(cache[m]||(cache[m]={promise:promiseFind(g,d),cache:"pending",error:null}),cache[m].cache==="resolved")return{src:cache[m].src,isLoading:!1,error:null};if(cache[m].cache==="rejected"){if(p)throw cache[m].error;return{isLoading:!1,error:cache[m].error,src:void 0}}if(cache[m].promise.then(function(y){cache[m]=_objectSpread$T(_objectSpread$T({},cache[m]),{},{cache:"resolved",src:y}),p||v(m)}).catch(function(y){cache[m]=_objectSpread$T(_objectSpread$T({},cache[m]),{},{cache:"rejected",error:y}),p||v(m)}),p)throw cache[m].promise;return{isLoading:!0,src:void 0,error:null}}var _excluded$a=["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"];function ownKeys$S(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$S(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$S(Object(u),!0).forEach(function(d){_defineProperty$1z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$S(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}var passthroughContainer=function(o){return o};function Img(l){var o=l.decode,u=o===void 0?!0:o,d=l.src,f=d===void 0?[]:d,p=l.loader,h=p===void 0?null:p,v=l.unloader,g=v===void 0?null:v,m=l.container,y=m===void 0?passthroughContainer:m,b=l.loaderContainer,w=b===void 0?passthroughContainer:b,E=l.unloaderContainer,P=E===void 0?passthroughContainer:E,C=l.imgPromise,T=l.crossorigin,O=l.useSuspense,x=O===void 0?!1:O,A=_objectWithoutPropertiesLoose$o(l,_excluded$a);C=C||imagePromiseFactory({decode:u,crossOrigin:T});var D=useImage({srcList:f,imgPromise:C,useSuspense:x}),j=D.src,M=D.isLoading;return j?y(React.createElement("img",_objectSpread$S({src:j},A))):!x&&M?w(h):!x&&g?P(g):null}function _classCallCheck$1N(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1F(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$26(d.key),d)}}function _createClass$1F(l,o,u){return o&&_defineProperties$1F(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$26(l){var o=_toPrimitive$26(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$26(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$17(l,o,u){return o=_getPrototypeOf$19(o),_possibleConstructorReturn$1g(l,_isNativeReflectConstruct$17()?Reflect.construct(o,u||[],_getPrototypeOf$19(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1g(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$19(l)}function _assertThisInitialized$19(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$17(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$17=function(){return!!l})()}function _getPrototypeOf$19(l){return _getPrototypeOf$19=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
51)},_getPrototypeOf$19(l)}function _inherits$1g(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$19(l,o)}function _setPrototypeOf$19(l,o){return _setPrototypeOf$19=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$19(l,o)}var AttributionPanel$1=(function(l){function o(){return _classCallCheck$1N(this,o),_callSuper$17(this,o,arguments)}return _inherits$1g(o,l),_createClass$1F(o,[{key:"render",value:function(){var d=this.props,f=d.manifestLogo,p=d.requiredStatement,h=d.rights,v=d.windowId,g=d.id,m=d.classes,y=d.t;return React.createElement(CompanionWindow,{title:y("attributionTitle"),paperClassName:ns$1("attribution-panel"),windowId:v,id:g},React.createElement("div",{className:m.section},p&&React.createElement(LabelValueMetadata,{labelValuePairs:p,defaultLabel:y("attribution")}),h&&h.length>0&&React.createElement("dl",{className:ns$1("label-value-metadata")},React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},y("rights")),h.map(function(b){return React.createElement(Typography$1,{variant:"body1",component:"dd",key:b.toString()},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:b},b))}))),f&&React.createElement("div",{className:m.section},React.createElement(Img,{src:[f],alt:"",role:"presentation",className:m.logo,unloader:React.createElement(Skeleton$1,{className:m.placeholder,variant:"rect",height:60,width:60})})),React.createElement(PluginHook$1,this.props))}}])})(reactExports.Component);AttributionPanel$1.defaultProps={classes:{},manifestLogo:null,requiredStatement:null,rights:null,t:function(o){return o}};var mapStateToProps$V=function(o,u){u.id;var d=u.windowId;return{manifestLogo:getManifestLogo$1(o,{windowId:d}),requiredStatement:getRequiredStatement$1(o,{windowId:d}),rights:getRights$1(o,{windowId:d})}},styles$Y=function(o){return{logo:{maxWidth:"100%"},placeholder:{backgroundColor:o.palette.grey[300]},section:{borderBottom:".5px solid ".concat(o.palette.section_divider),paddingBottom:o.spacing(1),paddingLeft:o.spacing(2),paddingRight:o.spacing(1),paddingTop:o.spacing(2)}}},enhance$13=compose$2(withStyles$2(styles$Y),withTranslation(),connect(mapStateToProps$V),withPlugins$1("AttributionPanel"));const AttributionPanel=enhance$13(AttributionPanel$1);var _basePropertyOf,hasRequired_basePropertyOf;function require_basePropertyOf(){if(hasRequired_basePropertyOf)return _basePropertyOf;hasRequired_basePropertyOf=1;function l(o){return function(u){return o?.[u]}}return _basePropertyOf=l,_basePropertyOf}var _deburrLetter,hasRequired_deburrLetter;function require_deburrLetter(){if(hasRequired_deburrLetter)return _deburrLetter;hasRequired_deburrLetter=1;var l=require_basePropertyOf(),o={À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},u=l(o);return _deburrLetter=u,_deburrLetter}var deburr_1,hasRequiredDeburr;function requireDeburr(){if(hasRequiredDeburr)return deburr_1;hasRequiredDeburr=1;var l=require_deburrLetter(),o=requireToString(),u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
517f]/g,d="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",h=d+f+p,v="["+h+"]",g=RegExp(v,"g");function m(y){return y=o(y),y&&y.replace(u,l).replace(g,"")}return deburr_1=m,deburr_1}var deburrExports=requireDeburr();const deburr=getDefaultExportFromCjs(deburrExports);var isObjectExports=requireIsObject();const isObject$1=getDefaultExportFromCjs(isObjectExports),CloseIcon=createSvgIcon(reactExports.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"})),ArrowDropDownIcon=createSvgIcon(reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}));function stripDiacritics(l){return typeof l.normalize<"u"?l.normalize("NFD").replace(/[\u0300-\u036f]/g,""):l}function createFilterOptions(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=l.ignoreAccents,u=o===void 0?!0:o,d=l.ignoreCase,f=d===void 0?!0:d,p=l.limit,h=l.matchFrom,v=h===void 0?"any":h,g=l.stringify,m=l.trim,y=m===void 0?!1:m;return function(b,w){var E=w.inputValue,P=w.getOptionLabel,C=y?E.trim():E;f&&(C=C.toLowerCase()),u&&(C=stripDiacritics(C));var T=b.filter(function(O){var x=(g||P)(O);return f&&(x=x.toLowerCase()),u&&(x=stripDiacritics(x)),v==="start"?x.indexOf(C)===0:x.indexOf(C)>-1});return typeof p=="number"?T.slice(0,p):T}}function findIndex$1(l,o){for(var u=0;u<l.length;u+=1)if(o(l[u]))return u;return-1}var defaultFilterOptions=createFilterOptions(),pageSize=5;function useAutocomplete(l){var o=l.autoComplete,u=o===void 0?!1:o,d=l.autoHighlight,f=d===void 0?!1:d,p=l.autoSelect,h=p===void 0?!1:p,v=l.blurOnSelect,g=v===void 0?!1:v,m=l.clearOnBlur,y=m===void 0?!l.freeSolo:m,b=l.clearOnEscape,w=b===void 0?!1:b,E=l.componentName,P=E===void 0?"useAutocomplete":E,C=l.debug,T=C===void 0?!1:C,O=l.defaultValue,x=O===void 0?l.multiple?[]:null:O,A=l.disableClearable,D=A===void 0?!1:A,j=l.disableCloseOnSelect,M=j===void 0?!1:j,N=l.disabledItemsFocusable,q=N===void 0?!1:N,z=l.disableListWrap,H=z===void 0?!1:z,U=l.filterOptions,F=U===void 0?defaultFilterOptions:U,B=l.filterSelectedOptions,G=B===void 0?!1:B,Q=l.freeSolo,K=Q===void 0?!1:Q,Z=l.getOptionDisabled,te=l.getOptionLabel,oe=te===void 0?function(Pt){return Pt}:te,fe=l.getOptionSelected,le=fe===void 0?function(Pt,$t){return Pt===$t}:fe,Re=l.groupBy,Ae=l.handleHomeEndKeys,_e=Ae===void 0?!l.freeSolo:Ae,ee=l.id,se=l.includeInputInList,$e=se===void 0?!1:se,Ee=l.inputValue,xe=l.multiple,Se=xe===void 0?!1:xe,Ie=l.onChange,ge=l.onClose,Y=l.onHighlightChange,ie=l.onInputChange,ce=l.onOpen,ue=l.open,pe=l.openOnFocus,Te=pe===void 0?!1:pe,Ce=l.options,Fe=l.selectOnFocus,He=Fe===void 0?!l.freeSolo:Fe,we=l.value,Oe=useId(ee),Ne=oe,qe=reactExports.useRef(!1),Be=reactExports.useRef(!0),Ve=reactExports.useRef(null),Ye=reactExports.useRef(null),Ge=reactExports.useState(null),dt=Ge[0],ze=Ge[1],nt=reactExports.useState(-1),Ze=nt[0],_t=nt[1],ae=f?0:-1,re=reactExports.useRef(ae),he=useControlled({controlled:we,default:x,name:P}),Pe=_slicedToArray$n(he,2),We=Pe[0],yt=Pe[1],ct=useControlled({controlled:Ee,default:"",name:P,state:"inputValue"}),ht=_slicedToArray$n(ct,2),bt=ht[0],xt=ht[1],Rt=reactExports.useState(!1),ut=Rt[0],Me=Rt[1],vt=useEventCallback(function(Pt,$t){var rt;if(Se)rt="";else if($t==null)rt="";else{var gt=Ne($t);rt=typeof gt=="string"?gt:""}bt!==rt&&(xt(rt),ie&&ie(Pt,rt,"reset"))});reactExports.useEffect(function(){vt(null,We)},[We,vt]);var Ot=useControlled({controlled:ue,default:!1,name:P,state:"open"}),ft=_slicedToArray$n(Ot,2),wt=ft[0],Nt=ft[1],jt=!Se&&We!=null&&bt===Ne(We),Ct=wt,mt=Ct?F(Ce.filter(function(Pt){return!(G&&(Se?We:[We]).some(function($t){return $t!==null&&le(Pt,$t)}))}),{inputValue:jt?"":bt,getOptionLabel:Ne}):[],qt=useEventCallback(function(Pt){Pt===-1?Ve.current.focus():dt.querySelector('[data-tag-index="'.concat(Pt,'"]')).focus()});reactExports.useEffect(function(){Se&&Ze>We.length-1&&(_t(-1),qt(-1))},[We,Se,Ze,qt]);function Er(Pt,$t){if(!Ye.current||Pt===-1)return-1;for(var rt=Pt;;){if($t==="next"&&rt===mt.length||$t==="previous"&&rt===-1)return-1;var gt=Ye.current.querySelector('[data-option-index="'.concat(rt,'"]')),tr=q?!1:gt&&(gt.disabled||gt.getAttribute("aria-disabled")==="true");if(gt&&!gt.hasAttribute("tabindex")||tr)rt+=$t==="next"?1:-1;else return rt}}var Kt=useEventCallback(function(Pt){var $t=Pt.event,rt=Pt.index,gt=Pt.reason,tr=gt===void 0?"auto":gt;if(re.current=rt,rt===-1?Ve.current.removeAttribute("aria-activedescendant"):Ve.current.setAttribute("aria-activedescendant","".concat(Oe,"-option-").concat(rt)),Y&&Y($t,rt===-1?null:mt[rt],tr),!!Ye.current){var qr=Ye.current.querySelector("[data-focus]");qr&&qr.removeAttribute("data-focus");var or=Ye.current.parentElement.querySelector('[role="listbox"]');if(or){if(rt===-1){or.scrollTop=0;return}var $r=Ye.current.querySelector('[data-option-index="'.concat(rt,'"]'));if($r&&($r.setAttribute("data-focus","true"),or.scrollHeight>or.clientHeight&&tr!=="mouse")){var dr=$r,bn=or.clientHeight+or.scrollTop,Tr=dr.offsetTop+dr.offsetHeight;Tr>bn?or.scrollTop=Tr-or.clientHeight:dr.offsetTop-dr.offsetHeight*(Re?1.3:0)<or.scrollTop&&(or.scrollTop=dr.offsetTop-dr.offsetHeight*(Re?1.3:0))}}}}),lr=useEventCallback(function(Pt){var $t=Pt.event,rt=Pt.diff,gt=Pt.direction,tr=gt===void 0?"next":gt,qr=Pt.reason,or=qr===void 0?"auto":qr;if(Ct){var $r=function(){var Rr=mt.length-1;if(rt==="reset")return ae;if(rt==="start")return 0;if(rt==="end")return Rr;var Dr=re.current+rt;return Dr<0?Dr===-1&&$e?-1:H&&re.current!==-1||Math.abs(rt)>1?0:Rr:Dr>Rr?Dr===Rr+1&&$e?-1:H||Math.abs(rt)>1?Rr:0:Dr},dr=Er($r(),tr);if(Kt({index:dr,reason:or,event:$t}),u&&rt!=="reset")if(dr===-1)Ve.current.value=bt;else{var bn=Ne(mt[dr]);Ve.current.value=bn;var Tr=bn.toLowerCase().indexOf(bt.toLowerCase());Tr===0&&bt.length>0&&Ve.current.setSelectionRange(bt.length,bn.length)}}}),Cr=reactExports.useCallback(function(){if(Ct){var Pt=Se?We[0]:We;if(mt.length===0||Pt==null){lr({diff:"reset"});return}if(Ye.current){if(!G&&Pt!=null){var $t=mt[re.current];
51if(Se&&$t&&findIndex$1(We,function(gt){return le($t,gt)})!==-1)return;var rt=findIndex$1(mt,function(gt){return le(gt,Pt)});rt===-1?lr({diff:"reset"}):Kt({index:rt});return}if(re.current>=mt.length-1){Kt({index:mt.length-1});return}Kt({index:re.current})}}},[mt.length===0,Se?!1:We,G,lr,Kt,Ct,bt,Se]),Yr=useEventCallback(function(Pt){setRef$1(Ye,Pt),Pt&&Cr()});reactExports.useEffect(function(){Cr()},[Cr]);var cr=function($t){wt||(Nt(!0),ce&&ce($t))},Pr=function($t,rt){wt&&(Nt(!1),ge&&ge($t,rt))},vr=function($t,rt,gt,tr){We!==rt&&(Ie&&Ie($t,rt,gt,tr),yt(rt))},ln=reactExports.useRef(!1),kt=function($t,rt){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"select-option",tr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"options",qr=gt,or=rt;if(Se){or=Array.isArray(We)?We.slice():[];var $r=findIndex$1(or,function(dr){return le(rt,dr)});$r===-1?or.push(rt):tr!=="freeSolo"&&(or.splice($r,1),qr="remove-option")}vt($t,or),vr($t,or,qr,{option:rt}),M||Pr($t,qr),(g===!0||g==="touch"&&ln.current||g==="mouse"&&!ln.current)&&Ve.current.blur()};function je(Pt,$t){if(Pt===-1)return-1;for(var rt=Pt;;){if($t==="next"&&rt===We.length||$t==="previous"&&rt===-1)return-1;var gt=dt.querySelector('[data-tag-index="'.concat(rt,'"]'));if(gt&&(!gt.hasAttribute("tabindex")||gt.disabled||gt.getAttribute("aria-disabled")==="true"))rt+=$t==="next"?1:-1;else return rt}}var Et=function($t,rt){if(Se){Pr($t,"toggleInput");var gt=Ze;Ze===-1?bt===""&&rt==="previous"&&(gt=We.length-1):(gt+=rt==="next"?1:-1,gt<0&&(gt=0),gt===We.length&&(gt=-1)),gt=je(gt,rt),_t(gt),qt(gt)}},At=function($t){qe.current=!0,xt(""),ie&&ie($t,"","clear"),vr($t,Se?[]:null,"clear")},ir=function($t){return function(rt){switch(Ze!==-1&&["ArrowLeft","ArrowRight"].indexOf(rt.key)===-1&&(_t(-1),qt(-1)),rt.key){case"Home":Ct&&_e&&(rt.preventDefault(),lr({diff:"start",direction:"next",reason:"keyboard",event:rt}));break;case"End":Ct&&_e&&(rt.preventDefault(),lr({diff:"end",direction:"previous",reason:"keyboard",event:rt}));break;case"PageUp":rt.preventDefault(),lr({diff:-pageSize,direction:"previous",reason:"keyboard",event:rt}),cr(rt);break;case"PageDown":rt.preventDefault(),lr({diff:pageSize,direction:"next",reason:"keyboard",event:rt}),cr(rt);break;case"ArrowDown":rt.preventDefault(),lr({diff:1,direction:"next",reason:"keyboard",event:rt}),cr(rt);break;case"ArrowUp":rt.preventDefault(),lr({diff:-1,direction:"previous",reason:"keyboard",event:rt}),cr(rt);break;case"ArrowLeft":Et(rt,"previous");break;case"ArrowRight":Et(rt,"next");break;case"Enter":if(rt.which===229)break;if(re.current!==-1&&Ct){var gt=mt[re.current],tr=Z?Z(gt):!1;if(rt.preventDefault(),tr)return;kt(rt,gt,"select-option"),u&&Ve.current.setSelectionRange(Ve.current.value.length,Ve.current.value.length)}else K&&bt!==""&&jt===!1&&(Se&&rt.preventDefault(),kt(rt,bt,"create-option","freeSolo"));break;case"Escape":Ct?(rt.preventDefault(),rt.stopPropagation(),Pr(rt,"escape")):w&&(bt!==""||Se&&We.length>0)&&(rt.preventDefault(),rt.stopPropagation(),At(rt));break;case"Backspace":if(Se&&bt===""&&We.length>0){var qr=Ze===-1?We.length-1:Ze,or=We.slice();or.splice(qr,1),vr(rt,or,"remove-option",{option:We[qr]})}break}$t.onKeyDown&&$t.onKeyDown(rt)}},br=function($t){Me(!0),Te&&!qe.current&&cr($t)},_r=function($t){if(Ye.current!==null&&document.activeElement===Ye.current.parentElement){Ve.current.focus();return}Me(!1),Be.current=!0,qe.current=!1,!(T&&bt!=="")&&(h&&re.current!==-1&&Ct?kt($t,mt[re.current],"blur"):h&&K&&bt!==""?kt($t,bt,"blur","freeSolo"):y&&vt($t,We),Pr($t,"blur"))},Ar=function($t){var rt=$t.target.value;bt!==rt&&(xt(rt),ie&&ie($t,rt,"input")),rt===""?!D&&!Se&&vr($t,null,"clear"):cr($t)},Lr=function($t){Kt({event:$t,index:Number($t.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},mn=function(){ln.current=!0},kn=function($t){var rt=Number($t.currentTarget.getAttribute("data-option-index"));kt($t,mt[rt],"select-option"),ln.current=!1},wr=function($t){return function(rt){var gt=We.slice();gt.splice($t,1),vr(rt,gt,"remove-option",{option:We[$t]})}},Nn=function($t){wt?Pr($t,"toggleInput"):cr($t)},rn=function($t){$t.target.getAttribute("id")!==Oe&&$t.preventDefault()},yn=function(){Ve.current.focus(),He&&Be.current&&Ve.current.selectionEnd-Ve.current.selectionStart===0&&Ve.current.select(),Be.current=!1},Qt=function($t){(bt===""||!wt)&&Nn($t)}
51,mr=K&&bt.length>0;mr=mr||(Se?We.length>0:We!==null);var un=mt;return Re&&(un=mt.reduce(function(Pt,$t,rt){var gt=Re($t);return Pt.length>0&&Pt[Pt.length-1].group===gt?Pt[Pt.length-1].options.push($t):Pt.push({key:rt,index:rt,group:gt,options:[$t]}),Pt},[])),{getRootProps:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _extends$v({"aria-owns":Ct?"".concat(Oe,"-popup"):null,role:"combobox","aria-expanded":Ct},$t,{onKeyDown:ir($t),onMouseDown:rn,onClick:yn})},getInputLabelProps:function(){return{id:"".concat(Oe,"-label"),htmlFor:Oe}},getInputProps:function(){return{id:Oe,value:bt,onBlur:_r,onFocus:br,onChange:Ar,onMouseDown:Qt,"aria-activedescendant":Ct?"":null,"aria-autocomplete":u?"both":"list","aria-controls":Ct?"".concat(Oe,"-popup"):null,autoComplete:"off",ref:Ve,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:At}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:Nn}},getTagProps:function($t){var rt=$t.index;return{key:rt,"data-tag-index":rt,tabIndex:-1,onDelete:wr(rt)}},getListboxProps:function(){return{role:"listbox",id:"".concat(Oe,"-popup"),"aria-labelledby":"".concat(Oe,"-label"),ref:Yr,onMouseDown:function(rt){rt.preventDefault()}}},getOptionProps:function($t){var rt=$t.index,gt=$t.option,tr=(Se?We:[We]).some(function(or){return or!=null&&le(gt,or)}),qr=Z?Z(gt):!1;return{key:rt,tabIndex:-1,role:"option",id:"".concat(Oe,"-option-").concat(rt),onMouseOver:Lr,onClick:kn,onTouchStart:mn,"data-option-index":rt,"aria-disabled":qr,"aria-selected":tr}},id:Oe,inputValue:bt,value:We,dirty:mr,popupOpen:Ct,focused:ut||Ze!==-1,anchorEl:dt,setAnchorEl:ze,focusedTag:Ze,groupedOptions:un}}var styles$X=function(o){var u;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}
51,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:o.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:_extends$v({},o.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:o.palette.text.secondary,padding:"14px 16px"},noOptions:{color:o.palette.text.secondary,padding:"14px 16px"},option:(u={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},_defineProperty$1z(u,o.breakpoints.up("sm"),{minHeight:"auto"}),_defineProperty$1z(u,'&[aria-selected="true"]',{backgroundColor:o.palette.action.selected}),_defineProperty$1z(u,'&[data-focus="true"]',{backgroundColor:o.palette.action.hover}),_defineProperty$1z(u,"&:active",{backgroundColor:o.palette.action.selected}),_defineProperty$1z(u,'&[aria-disabled="true"]',{opacity:o.palette.action.disabledOpacity,pointerEvents:"none"}),u),groupLabel:{backgroundColor:o.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}};function DisablePortal(l){l.anchorEl,l.open;var o=_objectWithoutProperties$q(l,["anchorEl","open"]);return reactExports.createElement("div",o)}var _ref$1=reactExports.createElement(CloseIcon,{fontSize:"small"}),_ref2=reactExports.createElement(ArrowDropDownIcon,null),Autocomplete=reactExports.forwardRef(function(o,u){o.autoComplete,o.autoHighlight,o.autoSelect,o.blurOnSelect;var d=o.ChipProps,f=o.classes,p=o.className,h=o.clearOnBlur;h===void 0&&o.freeSolo,o.clearOnEscape;var v=o.clearText,g=v===void 0?"Clear":v,m=o.closeIcon,y=m===void 0?_ref$1:m,b=o.closeText,w=b===void 0?"Close":b;o.debug;var E=o.defaultValue;E===void 0&&o.multiple;var P=o.disableClearable,C=P===void 0?!1:P;o.disableCloseOnSelect;var T=o.disabled,O=T===void 0?!1:T;o.disabledItemsFocusable,o.disableListWrap;var x=o.disablePortal,A=x===void 0?!1:x;o.filterOptions,o.filterSelectedOptions;var D=o.forcePopupIcon,j=D===void 0?"auto":D,M=o.freeSolo,N=M===void 0?!1:M,q=o.fullWidth,z=q===void 0?!1:q,H=o.getLimitTagsText,U=H===void 0?function(Ct){return"+".concat(Ct)}:H;o.getOptionDisabled;var F=o.getOptionLabel,B=F===void 0?function(Ct){return Ct}:F;o.getOptionSelected;var G=o.groupBy,Q=o.handleHomeEndKeys;Q===void 0&&o.freeSolo,o.id,o.includeInputInList,o.inputValue;var K=o.limitTags,Z=K===void 0?-1:K,te=o.ListboxComponent,oe=te===void 0?"ul":te,fe=o.ListboxProps,le=o.loading,Re=le===void 0?!1:le,Ae=o.loadingText,_e=Ae===void 0?"Loading…":Ae,ee=o.multiple,se=ee===void 0?!1:ee,$e=o.noOptionsText,Ee=$e===void 0?"No options":$e;o.onChange,o.onClose,o.onHighlightChange,o.onInputChange,o.onOpen,o.open,o.openOnFocus;var xe=o.openText,Se=xe===void 0?"Open":xe;o.options;var Ie=o.PaperComponent,ge=Ie===void 0?Paper$1:Ie,Y=o.PopperComponent,ie=Y===void 0?Popper:Y,ce=o.popupIcon,ue=ce===void 0?_ref2:ce,pe=o.renderGroup,Te=o.renderInput,Ce=o.renderOption,Fe=o.renderTags,He=o.selectOnFocus;He===void 0&&o.freeSolo;var we=o.size,Oe=we===void 0?"medium":we;o.value;var Ne=_objectWithoutProperties$q(o,["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"]),qe=A?DisablePortal:ie,Be=useAutocomplete(_extends$v({},o,{componentName:"Autocomplete"})),Ve=Be.getRootProps,Ye=Be.getInputProps,Ge=Be.getInputLabelProps,dt=Be.getPopupIndicatorProps,ze=Be.getClearProps,nt=Be.getTagProps,Ze=Be.getListboxProps,_t=Be.getOptionProps,ae=Be.value,re=Be.dirty,he=Be.id,Pe=Be.popupOpen,We=Be.focused,yt=Be.focusedTag,ct=Be.anchorEl,ht=Be.setAnchorEl,bt=Be.inputValue,xt=Be.groupedOptions,Rt;if(se&&ae.length>0){var ut=function(mt){return _extends$v({className:clsx$1(f.tag,Oe==="small"&&f.tagSizeSmall),disabled:O},nt(mt))};Fe?Rt=Fe(ae,ut):Rt=ae.map(function(Ct,mt){return reactExports.createElement(Chip$1,_extends$v({label:B(Ct),size:Oe},ut({index:mt}),d))})}if(Z>-1&&Array.isArray(Rt)){var Me=Rt.length-Z;!We&&Me>0&&(Rt=Rt.splice(0,Z),Rt.push(reactExports.createElement("span",{className:f.tag,key:Rt.length},U(Me))))}var vt=function(mt){return reactExports.createElement("li",{key:mt.key},reactExports.createElement(ListSubheader$1,{className:f.groupLabel,component:"div"},mt.group),reactExports.createElement("ul",{className:f.groupUl},mt.children))},Ot=pe||vt,ft=Ce||B,wt=function(mt,qt){var Er=_t({option:mt,index:qt});return reactExports.createElement("li",_extends$v({},Er,{className:f.option}),ft(mt,{selected:Er["aria-selected"],inputValue:bt}))},Nt=!C&&!O,jt=(!N||j===!0)&&j!==!1;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",_extends$v({ref:u,className:clsx$1(f.root,p,We&&f.focu
51sed,z&&f.fullWidth,Nt&&f.hasClearIcon,jt&&f.hasPopupIcon)},Ve(Ne)),Te({id:he,disabled:O,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:Ge(),InputProps:{ref:ht,className:f.inputRoot,startAdornment:Rt,endAdornment:reactExports.createElement("div",{className:f.endAdornment},Nt?reactExports.createElement(IconButton$1,_extends$v({},ze(),{"aria-label":g,title:g,className:clsx$1(f.clearIndicator,re&&f.clearIndicatorDirty)}),y):null,jt?reactExports.createElement(IconButton$1,_extends$v({},dt(),{disabled:O,"aria-label":Pe?w:Se,title:Pe?w:Se,className:clsx$1(f.popupIndicator,Pe&&f.popupIndicatorOpen)}),ue):null)},inputProps:_extends$v({className:clsx$1(f.input,yt===-1&&f.inputFocused),disabled:O},Ye())})),Pe&&ct?reactExports.createElement(qe,{className:clsx$1(f.popper,A&&f.popperDisablePortal),style:{width:ct?ct.clientWidth:null},role:"presentation",anchorEl:ct,open:!0},reactExports.createElement(ge,{className:f.paper},Re&&xt.length===0?reactExports.createElement("div",{className:f.loading},_e):null,xt.length===0&&!N&&!Re?reactExports.createElement("div",{className:f.noOptions},Ee):null,xt.length>0?reactExports.createElement(oe,_extends$v({className:f.listbox},Ze(),fe),xt.map(function(Ct,mt){return G?Ot({key:Ct.key,group:Ct.group,children:Ct.options.map(function(qt,Er){return wt(qt,Ct.index+Er)})}):wt(Ct,mt)})):null)):null)});const Autocomplete$1=withStyles$2(styles$X,{name:"MuiAutocomplete"})(Autocomplete);var SearchSharp={},hasRequiredSearchSharp;function requireSearchSharp(){if(hasRequiredSearchSharp)return SearchSharp;hasRequiredSearchSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(SearchSharp,"__esModule",{value:!0}),SearchSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return SearchSharp.default=f,SearchSharp}var SearchSharpExports=requireSearchSharp();const SearchIcon=getDefaultExportFromCjs(SearchSharpExports);var ChevronLeftSharp={},hasRequiredChevronLeftSharp;function requireChevronLeftSharp(){if(hasRequiredChevronLeftSharp)return ChevronLeftSharp;hasRequiredChevronLeftSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ChevronLeftSharp,"__esModule",{value:!0}),ChevronLeftSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}),"ChevronLeftSharp");return ChevronLeftSharp.default=f,ChevronLeftSharp}var ChevronLeftSharpExports=requireChevronLeftSharp();const ChevronLeftIcon=getDefaultExportFromCjs(ChevronLeftSharpExports);var ChevronRightSharp={},hasRequiredChevronRightSharp;function requireChevronRightSharp(){if(hasRequiredChevronRightSharp)return ChevronRightSharp;hasRequiredChevronRightSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ChevronRightSharp,"__esModule",{value:!0}),ChevronRightSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightSharp");return ChevronRightSharp.default=f,ChevronRightSharp}var ChevronRightSharpExports=requireChevronRightSharp();const ChevronRightIcon=getDefaultExportFromCjs(ChevronRightSharpExports);function _classCallCheck$1M(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1E(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$25(d.key),d)}}function _createClass$1E(l,o,u){return o&&_defineProperties$1E(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$25(l){var o=_toPrimitive$25(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$25(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$16(l,o,u){return o=_getPrototypeOf$18(o),_possibleConstructorReturn$1f(l,_isNativeReflectConstruct$16()?Reflect.construct(o,u||[],_getPrototypeOf$18(l).
51constructor):o.apply(l,u))}function _possibleConstructorReturn$1f(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$18(l)}function _assertThisInitialized$18(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$16(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$16=function(){return!!l})()}function _getPrototypeOf$18(l){return _getPrototypeOf$18=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$18(l)}function _inherits$1f(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$18(l,o)}function _setPrototypeOf$18(l,o){return _setPrototypeOf$18=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$18(l,o)}var SearchPanelNavigation$1=(function(l){function o(){return _classCallCheck$1M(this,o),_callSuper$16(this,o,arguments)}return _inherits$1f(o,l),_createClass$1E(o,[{key:"nextSearchResult",value:function(d){var f=this.props,p=f.searchHits,h=f.selectAnnotation;h(p[d+1].annotations[0])}},{key:"previousSearchResult",value:function(d){var f=this.props,p=f.searchHits,h=f.selectAnnotation;h(p[d-1].annotations[0])}},{key:"hasNextResult",value:function(d){var f=this.props.searchHits;return f.length===0?!1:d<f.length-1}},{key:"hasPreviousResult",value:function(d){var f=this.props.searchHits;return f.length===0?!1:d>0}},{key:"render",value:function(){var d=this,f=this.props,p=f.numTotal,h=f.searchHits,v=f.selectedContentSearchAnnotation,g=f.classes,m=f.t,y=f.direction,b=y==="rtl"?{transform:"rotate(180deg)"}:{},w=h.findIndex(function(P){return P.annotations.includes(v[0])}),E=h.length;return h.length<p&&(E+="+"),React.createElement(React.Fragment,null,h.length>0&&React.createElement(Typography$1,{variant:"body2",align:"center",classes:g},React.createElement(MiradorMenuButton$3,{"aria-label":m("searchPreviousResult"),disabled:!this.hasPreviousResult(w),onClick:function(){return d.previousSearchResult(w)}},React.createElement(ChevronLeftIcon,{style:b})),React.createElement("span",{role:"status",style:{unicodeBidi:"plaintext"}},m("pagination",{current:w+1,total:E})),React.createElement(MiradorMenuButton$3,{"aria-label":m("searchNextResult"),disabled:!this.hasNextResult(w),onClick:function(){return d.nextSearchResult(w)}},React.createElement(ChevronRightIcon,{style:b}))))}}])})(reactExports.Component);SearchPanelNavigation$1.defaultProps={classes:{},numTotal:void 0,searchHits:[],t:function(o){return o}};var mapStateToProps$U=function(o,u){var d=u.companionWindowId,f=u.windowId;return{direction:getThemeDirection$1(o),numTotal:getSearchNumTotal$1(o,{companionWindowId:d,windowId:f}),searchHits:getSortedSearchHitsForCompanionWindow$1(o,{companionWindowId:d,windowId:f}),selectedContentSearchAnnotation:getSelectedContentSearchAnnotationIds$1(o,{companionWindowId:d,windowId:f})}},mapDispatchToProps$F=function(o,u){var d=u.windowId;return{selectAnnotation:function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];return o(selectAnnotation$1.apply(actions$2,[d].concat(h)))}}},styles$W=function(o){return{body2:{marginLeft:"-16px",width:"100%"}}},enhance$12=compose$2(connect(mapStateToProps$U,mapDispatchToProps$F),withStyles$2(styles$W),withTranslation(),withPlugins$1("SearchPanelNavigation"));const SearchPanelNavigation=enhance$12(SearchPanelNavigation$1);function ownKeys$R(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$R(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
51o%2?ownKeys$R(Object(u),!0).forEach(function(d){_defineProperty$_(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$R(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$_(l,o,u){return(o=_toPropertyKey$24(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$1L(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1D(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$24(d.key),d)}}function _createClass$1D(l,o,u){return o&&_defineProperties$1D(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$24(l){var o=_toPrimitive$24(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$24(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$15(l,o,u){return o=_getPrototypeOf$17(o),_possibleConstructorReturn$1e(l,_isNativeReflectConstruct$15()?Reflect.construct(o,u||[],_getPrototypeOf$17(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1e(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$17(l)}function _assertThisInitialized$17(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$15(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$15=function(){return!!l})()}function _getPrototypeOf$17(l){return _getPrototypeOf$17=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$17(l)}function _inherits$1e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$17(l,o)}function _setPrototypeOf$17(l,o){return _setPrototypeOf$17=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$17(l,o)}var getMatch=function(o){return isObject$1(o)?o.match:o},SearchPanelControls$1=(function(l){function o(u){var d;return _classCallCheck$1L(this,o),d=_callSuper$15(this,o,[u]),d.state={search:u.query,suggestions:[]},d.handleChange=d.handleChange.bind(d),d.submitSearch=d.submitSearch.bind(d),d.getSuggestions=d.getSuggestions.bind(d),d.selectItem=d.selectItem.bind(d),d.fetchAutocomplete=debounce$2(d.fetchAutocomplete.bind(d),500),d.receiveAutocomplete=d.receiveAutocomplete.bind(d),d}return _inherits$1e(o,l),_createClass$1D(o,[{key:"componentDidUpdate",value:function(d){var f=this.props.query;f!==d.query&&this.setState({search:f})}},{key:"handleChange",value:function(d,f,p){p==="reset"&&!f||(this.setState({search:f,suggestions:[]}),f&&this.fetchAutocomplete(f))}},{key:"getSuggestions",value:function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=f.showEmpty,h=p===void 0?!1:p,v=this.state.suggestions,g=deburr(d.trim()).toLowerCase(),m=g.length;return m===0&&!h?[]:v}},{key:"fetchAutocomplete",value:function(d){var f=this.props.autocompleteService;f&&d&&fetch("".concat(f.id,"?q=").concat(d)).then(function(p){return p.json()}).then(this.receiveAutocomplete)}},{key:"receiveAutocomplete",value:function(d){this.setState({suggestions:d.terms})}},{key:"submitSearch",value:function(d){var f=this.props,p=f.companionWindowId,h=f.fetchSearch,v=f.searchService,g=f.windowId,m=this.state.search;d&&d.preventDefault(),m&&h(g,p,"".concat(v.id,"?q=").concat(m),m)}},{key:"selectItem",value:function(d,f,p){f&&getMatch(f)&&this.setState({search:getMatch(f)},this.submitSearch)}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.companionWindowId,h=d.searchIsFetching,v=d.t,g=d.windowId,m=this.state,y=m.search,b=m.suggestions,w="search-".concat(p);return React.createElement(React.Fragment,null,React.createElement("form",{onSubmit:this.submitSearch,className:f.form},React.createElement(Autocomplete$1,{id:w,inputValue:y,options:b,getOptionLabel:getMatch,getOptionSelected:function(P,C){return deburr(getMatch(P).trim()).toLowerCase()===deburr(getMatch(C).trim()).toLowerCase()},noOptionsText:"",onChange:this.selectItem,onInputChange:this.handleChange,freeSolo:!0,renderInput:function(P){return React.createElement(TextField$1,Object.assign({},P,{label:v("searchInputLabel"),InputProps:_objectSpread$R(_objectSpread$R({},P.InputProps),{},{endAdornment:React.createElement("div",{className:f.endAdornment},React.createElement(MiradorMenuButton$3,{"aria-label":v("searchSubmitAria"),type:"submit"},React.createElement(SearchIcon,null)),!!h&&React.createElement(CircularProgress$2,{className:f.searchProgress,size:50}))})}))}})),React.createElement(SearchPanelNavigation,{windowId:g,companionWindowId:p}))}}])})(reactExports.Component);SearchPanelControls$1.defaultProps={autocompleteService:void 0,classes:{},query:"",t:function(o){return o}};var mapStateToProps$T=function(o,u){var d=u.companionWindowId,f=u.windowId;return{autocompleteService:getManifestAutocompleteService$1(o,{windowId:f}),query:getSearchQuery$1(o,{companionWindowId:d,windowId:f}),searchIsFetching:getSearchIsFetching$1(o,{companionWindowId:d,windowId:f}),searchService:getManifestSearchService$1(o,{windowId:f})}},mapDispatchToProps$E={fetchSearch:fetchSearch$1},styles$V=function(o){return{endAdornment:{position:"absolute",right:0},form:{paddingBottom:o.spacing(1),paddingRight:o.spacing(1.5),width:"100%"},searchProgress:{position:"absolute",right:0}}},enhance$11=compose$2(connect(mapStateToProps$T,mapDispatchToProps$E),withStyles$2(styles$V),withTranslation(),withPlugins$1("SearchPanelControls"));const SearchPanelControls=enhance$11(SearchPanelControls$1);var ArrowBackSharp={},hasRequiredArrowBackSharp;function requireArrowBackSharp(){if(hasRequiredArrowBackSharp)return ArrowBackSharp;hasRequiredArrowBackSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ArrowBackSharp,"__esModule",{value:!0}),ArrowBackSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBackSharp");return ArrowBackSharp.default=f,ArrowBackSharp}var ArrowBackSharpExports=requireArrowBackSharp();const ArrowBackIcon=getDefaultExportFromCjs(ArrowBackSharpExports);var offScreenStyle={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",
51whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},MessageBlock=function(o){var u=o.message,d=o["aria-live"];return React.createElement("div",{style:offScreenStyle,role:"log","aria-live":d},u||"")};MessageBlock.propTypes={};function _classCallCheck$1K(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1d(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$1d(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var Announcer=(function(l){_inherits$1d(o,l);function o(){var u,d,f;_classCallCheck$1K(this,o);for(var p=arguments.length,h=Array(p),v=0;v<p;v++)h[v]=arguments[v];return f=(u=(d=_possibleConstructorReturn$1d(this,l.call.apply(l,[this].concat(h))),d),d.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},u),_possibleConstructorReturn$1d(d,f)}return o.getDerivedStateFromProps=function(d,f){var p=f.oldPolitemessage,h=f.oldPoliteMessageId,v=f.oldAssertiveMessage,g=f.oldAssertiveMessageId,m=d.politeMessage,y=d.politeMessageId,b=d.assertiveMessage,w=d.assertiveMessageId;return p!==m||h!==y?{politeMessage1:f.setAlternatePolite?"":m,politeMessage2:f.setAlternatePolite?m:"",oldPolitemessage:m,oldPoliteMessageId:y,setAlternatePolite:!f.setAlternatePolite}:v!==b||g!==w?{assertiveMessage1:f.setAlternateAssertive?"":b,assertiveMessage2:f.setAlternateAssertive?b:"",oldAssertiveMessage:b,oldAssertiveMessageId:w,setAlternateAssertive:!f.setAlternateAssertive}:null},o.prototype.render=function(){var d=this.state,f=d.assertiveMessage1,p=d.assertiveMessage2,h=d.politeMessage1,v=d.politeMessage2;return React.createElement("div",null,React.createElement(MessageBlock,{"aria-live":"assertive",message:f}),React.createElement(MessageBlock,{"aria-live":"assertive",message:p}),React.createElement(MessageBlock,{"aria-live":"polite",message:h}),React.createElement(MessageBlock,{"aria-live":"polite",message:v}))},o})(reactExports.Component);Announcer.propTypes={};var AnnouncerContext=React.createContext({announceAssertive:logContextWarning,announcePolite:logContextWarning});function logContextWarning(){console.warn("Announcement failed, LiveAnnouncer context is missing")}function _classCallCheck$1J(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1c(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$1c(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var LiveAnnouncer=(function(l){_inherits$1c(o,l);function o(u){_classCallCheck$1J(this,o);var d=_possibleConstructorReturn$1c(this,l.call(this,u));return d.announcePolite=function(f,p){d.setState({announcePoliteMessage:f,politeMessageId:p||""})},d.announceAssertive=function(f,p){d.setState({announceAssertiveMessage:f,assertiveMessageId:p||""})},d.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:d.announcePolite,announceAssertive:d.announceAssertive}},d}return o.prototype.render=function(){var d=this.state,f=d.announcePoliteMessage,p=d.politeMessageId,h=d.announceAssertiveMessage,v=d.assertiveMessageId,g=d.updateFunctions;return React.createElement(AnnouncerContext.Provider,{value:g},this.props.children,React.createElement(Announcer,{assertiveMessage:h,assertiveMessageId:v,politeMessage:f,politeMessageId:p}))},o}
51)(reactExports.Component),rngBrowser$1={exports:{}},hasRequiredRngBrowser$1;function requireRngBrowser$1(){if(hasRequiredRngBrowser$1)return rngBrowser$1.exports;hasRequiredRngBrowser$1=1;var l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(l){var o=new Uint8Array(16);rngBrowser$1.exports=function(){return l(o),o}}else{var u=new Array(16);rngBrowser$1.exports=function(){for(var f=0,p;f<16;f++)(f&3)===0&&(p=Math.random()*4294967296),u[f]=p>>>((f&3)<<3)&255;return u}}return rngBrowser$1.exports}var bytesToUuid_1$1,hasRequiredBytesToUuid$1;function requireBytesToUuid$1(){if(hasRequiredBytesToUuid$1)return bytesToUuid_1$1;hasRequiredBytesToUuid$1=1;for(var l=[],o=0;o<256;++o)l[o]=(o+256).toString(16).substr(1);function u(d,f){var p=f||0,h=l;return[h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]]].join("")}return bytesToUuid_1$1=u,bytesToUuid_1$1}var v4_1$1,hasRequiredV4$1;function requireV4$1(){if(hasRequiredV4$1)return v4_1$1;hasRequiredV4$1=1;var l=requireRngBrowser$1(),o=requireBytesToUuid$1();function u(d,f,p){var h=f&&p||0;typeof d=="string"&&(f=d==="binary"?new Array(16):null,d=null),d=d||{};var v=d.random||(d.rng||l)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,f)for(var g=0;g<16;++g)f[h+g]=v[g];return f||o(v)}return v4_1$1=u,v4_1$1}var v4Exports=requireV4$1();const uuidv4=getDefaultExportFromCjs(v4Exports);function _classCallCheck$1I(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1b(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$1b(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var AnnouncerMessage=(function(l){_inherits$1b(o,l);function o(){var u,d,f;_classCallCheck$1I(this,o);for(var p=arguments.length,h=Array(p),v=0;v<p;v++)h[v]=arguments[v];return f=(u=(d=_possibleConstructorReturn$1b(this,l.call.apply(l,[this].concat(h))),d),d.announce=function(){var g=d.props,m=g.message,y=g["aria-live"],b=g.announceAssertive,w=g.announcePolite;y==="assertive"&&b(m||"",uuidv4()),y==="polite"&&w(m||"",uuidv4())},u),_possibleConstructorReturn$1b(d,f)}return o.prototype.componentDidMount=function(){this.announce()},o.prototype.componentDidUpdate=function(d){var f=this.props.message;f!==d.message&&this.announce()},o.prototype.componentWillUnmount=function(){var d=this.props,f=d.clearOnUnmount,p=d.announceAssertive,h=d.announcePolite;(f===!0||f==="true")&&(p(""),h(""))},o.prototype.render=function(){return null},o})(reactExports.Component);AnnouncerMessage.propTypes={};var LiveMessenger=function(o){var u=o.children;return React.createElement(AnnouncerContext.Consumer,null,function(d){return u(d)})};LiveMessenger.propTypes={};function _toConsumableArray$n(l){return _arrayWithoutHoles$n(l)||_iterableToArray$n(l)||_unsupportedIterableToArray$t(l)||_nonIterableSpread$n()}function _nonIterableSpread$n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$t(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$t(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$t(l,o):void 0}}function _iterableToArray$n(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$n(l){if(Array.isArray(l))return _arrayLikeToArray$t(l)}function _arrayLikeToArray$t(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _classCallCheck$1H(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1C(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$23(d.key),d)}}function _createClass$1C(l,o,u){return o&&_defineProperties$1C(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$23(l){var o=_toPrimitive$23(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$23(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var TruncatedHit=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=d.maxChars,p=f===void 0?200:f,h=d.minimum,v=h===void 0?20:h;_classCallCheck$1H(this,l),this.hit=o,this.annotation=u,this.maxChars=p||200,this.minimum=v||20}return _createClass$1C(l,[{key:"match",get:function(){return this.hit.match||this.annotation&&this.annotation.resource.resource.chars||"-"}},{key:"charsOnSide",get:function(){var u=(this.maxChars-this.match.length)/2,d=[(this.hit.before||"").length,(this.hit.after||"").length].filter(function(f){return f>0});return Math.max(Math.min.apply(Math,[u].concat(_toConsumableArray$n(d))),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)):""}}])})();function _defineProperty$Z(l,o,u){return(o=_toPropertyKey$22(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$1G(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1B(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$22(d.
52key),d)}}function _createClass$1B(l,o,u){return o&&_defineProperties$1B(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$22(l){var o=_toPrimitive$22(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$22(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$14(l,o,u){return o=_getPrototypeOf$16(o),_possibleConstructorReturn$1a(l,_isNativeReflectConstruct$14()?Reflect.construct(o,u||[],_getPrototypeOf$16(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1a(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$16(l)}function _assertThisInitialized$16(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$14(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$14=function(){return!!l})()}function _getPrototypeOf$16(l){return _getPrototypeOf$16=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$16(l)}function _inherits$1a(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$16(l,o)}function _setPrototypeOf$16(l,o){return _setPrototypeOf$16=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$16(l,o)}var SearchHit$1=(function(l){function o(u){var d;return _classCallCheck$1G(this,o),d=_callSuper$14(this,o,[u]),d.handleClick=d.handleClick.bind(d),d}return _inherits$1a(o,l),_createClass$1B(o,[{key:"componentDidMount",value:function(){var d=this.props.selected;d&&this.announceHit()}},{key:"componentDidUpdate",value:function(d){var f=this.props.selected;f&&f!==d.selected&&this.announceHit()}},{key:"handleClick",value:function(){var d=this.props,f=d.annotation,p=d.annotationId,h=d.selectAnnotation;f&&p&&h(p)}},{key:"announceHit",value:function(){var d=this.props,f=d.annotation,p=d.annotationLabel,h=d.announcer,v=d.canvasLabel,g=d.hit,m=d.index,y=d.t,b=d.total;if(g){var w=new TruncatedHit(g,f);h([y("pagination",{current:m+1,total:b}),v,p,w.before,w.match,w.after].join(" "))}}},{key:"render",value:function(){var d=this.props,f=d.adjacent,p=d.annotation,h=d.annotationLabel,v=d.canvasLabel,g=d.classes,m=d.companionWindowId,y=d.containerRef,b=d.hit,w=d.focused,E=d.index,P=d.showDetails,C=d.selected,T=d.t,O=d.windowSelected;if(w&&!C)return null;var x=w?b:b&&new TruncatedHit(b,p),A=b&&x.before!==b.before&&x.after!==b.after,D="".concat(m,"-").concat(E);return React.createElement(ScrollTo,{containerRef:y,offsetTop:96,scrollTo:O&&!w},React.createElement(ListItem$1,{className:clsx$1(g.listItem,_defineProperty$Z(_defineProperty$Z(_defineProperty$Z(_defineProperty$Z({},g.adjacent,f),g.selected,C),g.focused,w),g.windowSelected,O)),button:!C,component:"li",onClick:this.handleClick,selected:C},React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body1"}},React.createElement(Typography$1,{className:g.subtitle,component:"div",variant:"subtitle2"},React.createElement(Chip$1,{component:"span",label:E+1,className:g.hitCounter}),React.createElement("span",{id:D},v)),h&&React.createElement(Typography$1,{variant:"subtitle2"},h),b&&React.createElement(React.Fragment,null,React.createElement(SanitizedHtml,{ruleSet:"iiif",htmlString:x.before})," ",React.createElement("strong",null,React.createElement(SanitizedHtml,{ruleSet:"iiif",htmlString:x.match}))," ",React.createElement(SanitizedHtml,{ruleSet:"iiif",htmlString:x.after})," ",A&&!w&&React.createElement(Button$1,{className:g.inlineButton,onClick:P,color:"secondary",size:"small","aria-describedby":D},T("more"))),!b&&p&&React.createElement(SanitizedHtml,{ruleSet:"iiif",htmlString:p.chars}))))}}])})(reactExports.Component);SearchHit$1.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(){}
52,selected:!1,showDetails:function(){},t:function(o){return o},total:void 0,windowSelected:!1};function ownKeys$Q(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$Q(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$Q(Object(u),!0).forEach(function(d){_defineProperty$Y(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$Q(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$Y(l,o,u){return(o=_toPropertyKey$21(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$21(l){var o=_toPrimitive$21(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$21(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _toConsumableArray$m(l){return _arrayWithoutHoles$m(l)||_iterableToArray$m(l)||_unsupportedIterableToArray$s(l)||_nonIterableSpread$m()}function _nonIterableSpread$m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$s(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$s(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$s(l,o):void 0}}function _iterableToArray$m(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$m(l){if(Array.isArray(l))return _arrayLikeToArray$s(l)}function _arrayLikeToArray$s(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}var mapStateToProps$S=function(o,u){var d=u.annotationId,f=u.hit,p=f===void 0?{annotations:[]}:f,h=u.companionWindowId,v=u.windowId,g=d||p.annotations[0],m=getResourceAnnotationForSearchHit$1(o,{annotationUri:g,companionWindowId:h,windowId:v}),y=getResourceAnnotationLabel$1(o,{annotationUri:g,companionWindowId:h,windowId:v}),b=getVisibleCanvasIds$1(o,{windowId:v}),w=getSelectedContentSearchAnnotationIds$1(o,{companionWindowId:h,windowId:v}),E=getSelectedAnnotationId$1(o,{windowId:v}),P=[d].concat(_toConsumableArray$m(p.annotations));return{adjacent:b.includes(m.targetId),annotation:m,annotationId:g,annotationLabel:y[0],canvasLabel:m&&getCanvasLabel$1(o,{canvasId:m.targetId,windowId:v}),selected:w[0]&&P.includes(w[0]),windowSelected:E&&P.includes(E)}},mapDispatchToProps$D=function(o,u){var d=u.windowId;return{selectAnnotation:function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];return o(selectAnnotation$1.apply(actions$2,[d].concat(h)))}}},styles$U=function(o){return{adjacent:{},focused:{},hitCounter:_objectSpread$Q(_objectSpread$Q({},o.typography.subtitle2),{},{backgroundColor:o.palette.hitCounter.default,height:30,marginRight:o.spacing(1),verticalAlign:"inherit"}),inlineButton:{"& span":{lineHeight:"1.5em"},margin:0,padding:0,textTransform:"none"},listItem:{"&$adjacent":{"& $hitCounter":{backgroundColor:o.palette.highlights.secondary},"&$windowSelected":{"& $hitCounter":{backgroundColor:o.palette.highlights.primary}}},"&$windowSelected":{"& $hitCounter":{backgroundColor:o.palette.highlights.primary},"&$focused":{"&:hover":{backgroundColor:"inherit"},backgroundColor:"inherit"}},borderBottom:"0.5px solid ".concat(o.palette.divider),paddingRight:8},selected:{},subtitle:{marginBottom:o.spacing(1.5)},windowSelected:{}}},enhance$10=compose$2(connect(mapStateToProps$S,mapDispatchToProps$D),withStyles$2(styles$U),withTranslation(),withPlugins$1("SearchHit"));const SearchHit=enhance$10(SearchHit$1);function _classCallCheck$1F(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1A(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$20(d.key),d)}}function _createClass$1A(l,o,u){return o&&_defineProperties$1A(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$20(l){var o=_toPrimitive$20(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$20(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$13(l,o,u){return o=_getPrototypeOf$15(o),_possibleConstructorReturn$19(l,_isNativeReflectConstruct$13()?Reflect.construct(o,u||[],_getPrototypeOf$15(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$19(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$15(l)}function _assertThisInitialized$15(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$13(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$13=function(){return!!l})()}function _getPrototypeOf$15(l){return _getPrototypeOf$15=Object.
53setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$15(l)}function _inherits$19(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$15(l,o)}function _setPrototypeOf$15(l,o){return _setPrototypeOf$15=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$15(l,o)}var SearchResults$1=(function(l){function o(u){var d;return _classCallCheck$1F(this,o),d=_callSuper$13(this,o,[u]),d.state={focused:!1},d.toggleFocus=d.toggleFocus.bind(d),d}return _inherits$19(o,l),_createClass$1A(o,[{key:"toggleFocus",value:function(){var d=this.state.focused;this.setState({focused:!d})}},{key:"renderSearchHitsAndAnnotations",value:function(d){var f=this,p=this.props,h=p.companionWindowId,v=p.containerRef,g=p.searchAnnotations,m=p.searchHits,y=p.windowId,b=this.state.focused;return m.length===0&&g.length>0?g.map(function(w,E){return React.createElement(SearchHit,{announcer:d,annotationId:w.id,companionWindowId:h,containerRef:v,key:w.id,focused:b,index:E,total:g.length,windowId:y,showDetail
53s:f.toggleFocus})}):m.map(function(w,E){return React.createElement(SearchHit,{announcer:d,containerRef:v,companionWindowId:h,key:w.annotations[0],focused:b,hit:w,index:E,total:m.length,windowId:y,showDetails:f.toggleFocus})})}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.companionWindowId,v=f.containerRef,g=f.isFetching,m=f.fetchSearch,y=f.nextSearch,b=f.query,w=f.searchAnnotations,E=f.searchHits,P=f.searchNumTotal,C=f.t,T=f.windowId,O=this.state.focused,x=b&&!g&&E.length===0&&w.length===0;return React.createElement(React.Fragment,null,O&&React.createElement(ScrollTo,{containerRef:v,offsetTop:96,scrollTo:!0},React.createElement(Button$1,{onClick:this.toggleFocus,className:p.navigation,size:"small"},React.createElement(ArrowBackIcon,null),C("backToResults"))),x&&React.createElement(Typography$1,{className:p.noResults},C("searchNoResults")),React.createElement(List$1,{disablePadding:!0},React.createElement(LiveMessenger,null,function(A){var D=A.announcePolite;return d.renderSearchHitsAndAnnotations(D)})),y&&React.createElement(Button$1,{className:p.moreButton,color:"secondary",onClick:function(){return m(T,h,y,b)}},C("moreResults"),React.createElement("br",null),"(".concat(C("searchResultsRemaining",{numLeft:P-E.length}),")")))}}])})(reactExports.Component);SearchResults$1.defaultProps={classes:{},containerRef:void 0,isFetching:!1,nextSearch:void 0,query:void 0,searchAnnotations:[],searchHits:[],searchNumTotal:void 0,t:function(o){return o}};function ownKeys$P(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$P(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$P(Object(u),!0).forEach(function(d){_defineProperty$X(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$P(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$X(l,o,u){return(o=_toPropertyKey$1$(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1$(l){var o=_toPrimitive$1$(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1$(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$R=function(o,u){var d=u.companionWindowId,f=u.windowId;return{isFetching:getSearchIsFetching$1(o,{companionWindowId:d,windowId:f}),nextSearch:getNextSearchId$1(o,{companionWindowId:d,windowId:f}),query:getSearchQuery$1(o,{companionWindowId:d,windowId:f}),searchAnnotations:getSortedSearchAnnotationsForCompanionWindow$1(o,{companionWindowId:d,windowId:f}),searchHits:getSortedSearchHitsForCompanionWindow$1(o,{companionWindowId:d,windowId:f}),searchNumTotal:getSearchNumTotal$1(o,{companionWindowId:d,windowId:f})}},mapDispatchToProps$C={fetchSearch:fetchSearch$1},styles$T=function(o){return{moreButton:{width:"100%"},navigation:{textTransform:"none"},noResults:_objectSpread$P(_objectSpread$P({},o.typography.h6),{},{padding:o.spacing(2)}),toggleFocus:_objectSpread$P({},o.typography.subtitle1)}},enhance$$=compose$2(connect(mapStateToProps$R,mapDispatchToProps$C),withStyles$2(styles$T),withTranslation(),withPlugins$1("SearchResults"));const SearchResults=enhance$$(SearchResults$1);function _classCallCheck$1E(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1z(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1_(d.key),d)}}function _createClass$1z(l,o,u){return o&&_defineProperties$1z(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1_(l){var o=_toPrimitive$1_(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1_(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$12(l,o,u){return o=_getPrototypeOf$14(o),_possibleConstructorReturn$18(l,_isNativeReflectConstruct$12()?Reflect.construct(o,u||[],_getPrototypeOf$14(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$18(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$14(l)}function _assertThisInitialized$14(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$12(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$12=function(){return!!l})()}function _getPrototypeOf$14(l){return _getPrototypeOf$14=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
53)},_getPrototypeOf$14(l)}function _inherits$18(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$14(l,o)}function _setPrototypeOf$14(l,o){return _setPrototypeOf$14=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$14(l,o)}var SearchPanel$1=(function(l){function o(u){var d;return _classCallCheck$1E(this,o),d=_callSuper$12(this,o,[u]),d.containerRef=React.createRef(),d}return _inherits$18(o,l),_createClass$1z(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.fetchSearch,h=d.windowId,v=d.id,g=d.query,m=d.removeSearch,y=d.searchService,b=d.suggestedSearches,w=d.t;return React.createElement(CompanionWindow,{ariaLabel:w("searchTitle"),title:React.createElement(React.Fragment,null,w("searchTitle"),g&&g!==""&&React.createElement(Chip$1,{"aria-label":w("clearSearchAria"),className:f.clearChip,color:"secondary",label:w("clearSearch"),onClick:m,onDelete:m,size:"small",variant:"outlined"})),windowId:h,id:v,titleControls:React.createElement(SearchPanelControls,{companionWindowId:v,windowId:h}),ref:this.containerRef},React.createElement(SearchResults,{containerRef:this.containerRef,companionWindowId:v,windowId:h}),p&&b&&g===""&&b.map(function(E){return React.createElement(Typography$1,{component:"p",key:E,variant:"body1"},React.createElement(Button$1,{className:f.inlineButton,color:"secondary",onClick:function(){return p("".concat(y.id,"?q=").concat(E),E)}},w("suggestSearch",{query:E})))}))}}])})(reactExports.Component);SearchPanel$1.defaultProps={classes:{},fetchSearch:void 0,query:"",suggestedSearches:[],t:function(o){return o}};var mapStateToProps$Q=function(o,u){var d=u.id,f=u.windowId;return{query:getSearchQuery$1(o,{companionWindowId:d,windowId:f}),searchService:getManifestSearchService$1(o,{windowId:f}),suggestedSearches:getWindow$2(o,{windowId:f}).suggestedSearches}},mapDispatchToProps$B=function(o,u){return{fetchSearch:function(f,p){return o(fetchSearch$1(u.windowId,u.id,f,p))},removeSearch:function(){return o(removeSearch$1(u.windowId,u.id))}}},styles$S=function(o){return{clearChip:{marginLeft:o.spacing(1)},inlineButton:{"& span":{lineHeight:"1.5em"},margin:o.spacing(2),padding:0,textAlign:"inherit",textTransform:"none"}}},enhance$_=compose$2(connect(mapStateToProps$Q,mapDispatchToProps$B),withStyles$2(styles$S),withTranslation(),withPlugins$1("SearchPanel"));const SearchPanel=enhance$_(SearchPanel$1);var DragHandleSharp={},hasRequiredDragHandleSharp;function requireDragHandleSharp(){if(hasRequiredDragHandleSharp)return DragHandleSharp;hasRequiredDragHandleSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(DragHandleSharp,"__esModule",{value:!0}),DragHandleSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleSharp");return DragHandleSharp.default=f,DragHandleSharp}var DragHandleSharpExports=requireDragHandleSharp();const DragHandleIcon=getDefaultExportFromCjs(DragHandleSharpExports);var VerticalAlignTopSharp={},hasRequiredVerticalAlignTopSharp;function requireVerticalAlignTopSharp(){if(hasRequiredVerticalAlignTopSharp)return VerticalAlignTopSharp;hasRequiredVerticalAlignTopSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(VerticalAlignTopSharp,"__esModule",{value:!0}),VerticalAlignTopSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTopSharp");return VerticalAlignTopSharp.default=f,VerticalAlignTopSharp}var VerticalAlignTopSharpExports=requireVerticalAlignTopSharp();const MoveToTopIcon=getDefaultExportFromCjs(VerticalAlignTopSharpExports);var OpacitySharp={},hasRequiredOpacitySharp;function requireOpacitySharp(){if(hasRequiredOpacitySharp)return OpacitySharp;hasRequiredOpacitySharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(OpacitySharp,"__esModule",{value:!0}),OpacitySharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return OpacitySharp.default=f,OpacitySharp}var OpacitySharpExports=requireOpacitySharp();const OpacityIcon=getDefaultExportFromCjs(OpacitySharpExports);function areInputsEqual(l,o){if(l.length!==o.length)return!1;for(var u=0;u<l.length;u++)if(l[u]!==o[u])return!1;return!0}function useMemoOne(l,o){var u=reactExports.useState(function(){return{inputs:o,result:l()}})[0],d=reactExports.useRef(!0),f=reactExports.useRef(u),p=d.current||!!(o&&f.current.inputs&&areInputsEqual(o,f.current.inputs)),h=p?f.current:{inputs:o,result:l()};return reactExports.useEffect(function(){d.current=!1,f.current=h},[h]),h.result}function useCallbackOne(l,o){return useMemoOne(function(){return l},o)}var useMemo=useMemoOne,useCallback=useCallbackOne,prefix$2="Invariant failed";function invariant$2(l,o){throw new Error(prefix$2)}var getRect=function(o){var u=o.top,d=o.right,f=o.bottom,p=o.left,h=d-p,v=f-u,g={top:u,right:d,bottom:f,left:p,width:h,height:v,x:p,y:u,center:{x:(d+p)/2,y:(f+u)/2}};return g}
53,expand=function(o,u){return{top:o.top-u.top,left:o.left-u.left,bottom:o.bottom+u.bottom,right:o.right+u.right}},shrink=function(o,u){return{top:o.top+u.top,left:o.left+u.left,bottom:o.bottom-u.bottom,right:o.right-u.right}},shift=function(o,u){return{top:o.top+u.y,left:o.left+u.x,bottom:o.bottom+u.y,right:o.right+u.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function(o){var u=o.borderBox,d=o.margin,f=d===void 0?noSpacing$1:d,p=o.border,h=p===void 0?noSpacing$1:p,v=o.padding,g=v===void 0?noSpacing$1:v,m=getRect(expand(u,f)),y=getRect(shrink(u,h)),b=getRect(shrink(y,g));return{marginBox:m,borderBox:getRect(u),paddingBox:y,contentBox:b,margin:f,border:h,padding:g}},parse=function(o){var u=o.slice(0,-2),d=o.slice(-2);if(d!=="px")return 0;var f=Number(u);return isNaN(f)&&invariant$2(),f},getWindowScroll$1=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function(o,u){var d=o.borderBox,f=o.border,p=o.margin,h=o.padding,v=shift(d,u);return createBox({borderBox:v,border:f,margin:p,padding:h})},withScroll=function(o,u){return u===void 0&&(u=getWindowScroll$1()),offset(o,u)},calculateBox=function(o,u){var d={top:parse(u.marginTop),right:parse(u.marginRight),bottom:parse(u.marginBottom),left:parse(u.marginLeft)},f={top:parse(u.paddingTop),right:parse(u.paddingRight),bottom:parse(u.paddingBottom),left:parse(u.paddingLeft)},p={top:parse(u.borderTopWidth),right:parse(u.borderRightWidth),bottom:parse(u.borderBottomWidth),left:parse(u.borderLeftWidth)};return createBox({borderBox:o,margin:d,padding:f,border:p})},getBox=function(o){var u=o.getBoundingClientRect(),d=window.getComputedStyle(o);return calculateBox(u,d)},rafSchd=function(o){var u=[],d=null,f=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];u=v,!d&&(d=requestAnimationFrame(function(){d=null,o.apply(void 0,u)}))};return f.cancel=function(){d&&(cancelAnimationFrame(d),d=null)},f};function log(l,o){}log.bind(null,"warn");log.bind(null,"error");function noop$2(){}function getOptions(l,o){return _extends$v({},l,{},o)}function bindEvents(l,o,u){var d=o.map(function(f){var p=getOptions(u,f.options);return l.addEventListener(f.eventName,f.fn,p),function(){l.removeEventListener(f.eventName,f.fn,p)}});return function(){d.forEach(function(p){p()})}}var prefix="Invariant failed";function RbdInvariant(l){this.message=l}RbdInvariant.prototype.toString=function(){return this.message};function invariant$1(l,o){throw new RbdInvariant(prefix)}var ErrorBoundary=(function(l){_inheritsLoose(o,l);function o(){for(var d,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return d=l.call.apply(l,[this].concat(p))||this,d.callbacks=null,d.unbind=noop$2,d.onWindowError=function(v){var g=d.getCallbacks();g.isDragging()&&g.tryAbort();var m=v.error;m instanceof RbdInvariant&&v.preventDefault()},d.getCallbacks=function(){if(!d.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return d.callbacks},d.setCallbacks=function(v){d.callbacks=v},d}var u=o.prototype;return u.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},u.componentDidCatch=function(f){if(f instanceof RbdInvariant){this.setState({});return}throw f},u.componentWillUnmount=function(){this.unbind()},u.render=function(){return this.props.children(this.setCallbacks)},o})(React.Component),dragHandleUsageInstructions=`
54  Press space bar to start a drag.
55  When dragging you can use the arrow keys to move the item around and escape to cancel.
56  Some screen readers may require you to be in focus mode or to use your pass through key
57`,position=function(o){return o+1},onDragStart=function(o){return`
58  You have lifted an item in position `+position(o.source.index)+`
59`},withLocation=function(o,u){var d=o.droppableId===u.droppableId,f=position(o.index),p=position(u.index);return d?`
60      You have moved the item from position `+f+`
61      to position `+p+`
62    `:`
63    You have moved the item from position `+f+`
64    in list `+o.droppableId+`
65    to list `+u.droppableId+`
66    in position `+p+`
67  `},withCombine=function(o,u,d){var f=u.droppableId===d.droppableId;return f?`
68      The item `+o+`
69      has been combined with `+d.draggableId:`
70      The item `+o+`
71      in list `+u.droppableId+`
72      has been combined with `+d.draggableId+`
73      in list `+d.droppableId+`
74    `},onDragUpdate=function(o){var u=o.destination;if(u)return withLocation(o.source,u);var d=o.combine;return d?withCombine(o.draggableId,o.source,d):"You are over an area that cannot be dropped on"},returnedToStart=function(o){return`
75  The item has returned to its starting position
76  of `+position(o.index)+`
77`}
77,onDragEnd=function(o){if(o.reason==="CANCEL")return`
78      Movement cancelled.
79      `+returnedToStart(o.source)+`
80    `;var u=o.destination,d=o.combine;return u?`
81      You have dropped the item.
82      `+withLocation(o.source,u)+`
83    `:d?`
84      You have dropped the item.
85      `+withCombine(o.draggableId,o.source,d)+`
86    `:`
87    The item has been dropped while not over a drop area.
88    `+returnedToStart(o.source)+`
89  `},preset={dragHandleUsageInstructions,onDragStart,onDragUpdate,onDragEnd},origin={x:0,y:0},add$1=function(o,u){return{x:o.x+u.x,y:o.y+u.y}},subtract$1=function(o,u){return{x:o.x-u.x,y:o.y-u.y}},isEqual=function(o,u){return o.x===u.x&&o.y===u.y},negate=function(o){return{x:o.x!==0?-o.x:0,y:o.y!==0?-o.y:0}},patch=function(o,u,d){var f;return d===void 0&&(d=0),f={},f[o]=u,f[o==="x"?"y":"x"]=d,f},distance$1=function(o,u){return Math.sqrt(Math.pow(u.x-o.x,2)+Math.pow(u.y-o.y,2))},closest=function(o,u){return Math.min.apply(Math,u.map(function(d){return distance$1(o,d)}))},apply$1=function(o){return function(u){return{x:o(u.x),y:o(u.y)}}},executeClip=(function(l,o){var u=getRect({top:Math.max(o.top,l.top),right:Math.min(o.right,l.right),bottom:Math.min(o.bottom,l.bottom),left:Math.max(o.left,l.left)});return u.width<=0||u.height<=0?null:u}),offsetByPosition=function(o,u){return{top:o.top+u.y,left:o.left+u.x,bottom:o.bottom+u.y,right:o.right+u.x}},getCorners=function(o){return[{x:o.left,y:o.top},{x:o.right,y:o.top},{x:o.left,y:o.bottom},{x:o.right,y:o.bottom}]},noSpacing={top:0,right:0,bottom:0,left:0},scroll=function(o,u){return u?offsetByPosition(o,u.scroll.diff.displacement):o},increase=function(o,u,d){if(d&&d.increasedBy){var f;return _extends$v({},o,(f={},f[u.end]=o[u.end]+d.increasedBy[u.line],f))}return o},clip=function(o,u){return u&&u.shouldClipSubject?executeClip(u.pageMarginBox,o):getRect(o)},getSubject=(function(l){var o=l.page,u=l.withPlaceholder,d=l.axis,f=l.frame,p=scroll(o.marginBox,f),h=increase(p,d,u),v=clip(h,f);return{page:o,withPlaceholder:u,active:v}}),scrollDroppable=(function(l,o){l.frame||invariant$1();var u=l.frame,d=subtract$1(o,u.scroll.initial),f=negate(d),p=_extends$v({},u,{scroll:{initial:u.scroll.initial,current:o,diff:{value:d,displacement:f},max:u.scroll.max}}),h=getSubject({page:l.subject.page,withPlaceholder:l.subject.withPlaceholder,axis:l.axis,frame:p}),v=_extends$v({},l,{frame:p,subject:h});return v});function values$1(l){return Object.values?Object.values(l):Object.keys(l).map(function(o){return l[o]})}function findIndex(l,o){if(l.findIndex)return l.findIndex(o);for(var u=0;u<l.length;u++)if(o(l[u]))return u;return-1}function find(l,o){if(l.find)return l.find(o);var u=findIndex(l,o);if(u!==-1)return l[u]}function toArray(l){return Array.prototype.slice.call(l)}var toDroppableMap=memoizeOne(function(l){return l.reduce(function(o,u){return o[u.descriptor.id]=u,o},{})}),toDraggableMap=memoizeOne(function(l){return l.reduce(function(o,u){return o[u.descriptor.id]=u,o},{})}),toDroppableList=memoizeOne(function(l){return values$1(l)}),toDraggableList=memoizeOne(function(l){return values$1(l)}),getDraggablesInsideDroppable=memoizeOne(function(l,o){var u=toDraggableList(o).filter(function(d){return l===d.descriptor.droppableId}).sort(function(d,f){return d.descriptor.index-f.descriptor.index});return u});function tryGetDestination(l){return l.at&&l.at.type==="REORDER"?l.at.destination:null}function tryGetCombine(l){return l.at&&l.at.type==="COMBINE"?l.at.combine:null}var removeDraggableFromList=memoizeOne(function(l,o){return o.filter(function(u){return u.descriptor.id!==l.descriptor.id})}
89),moveToNextCombine=(function(l){var o=l.isMovingForward,u=l.draggable,d=l.destination,f=l.insideDestination,p=l.previousImpact;if(!d.isCombineEnabled)return null;var h=tryGetDestination(p);if(!h)return null;function v(C){var T={type:"COMBINE",combine:{draggableId:C,droppableId:d.descriptor.id}};return _extends$v({},p,{at:T})}var g=p.displaced.all,m=g.length?g[0]:null;if(o)return m?v(m):null;var y=removeDraggableFromList(u,f);if(!m){if(!y.length)return null;var b=y[y.length-1];return v(b.descriptor.id)}var w=findIndex(y,function(C){return C.descriptor.id===m});w===-1&&invariant$1();var E=w-1;if(E<0)return null;var P=y[E];return v(P.descriptor.id)}),isHomeOf=(function(l,o){return l.descriptor.droppableId===o.descriptor.id}),noDisplacedBy={point:origin,value:0},emptyGroups={invisible:{},visible:{},all:[]},noImpact={displaced:emptyGroups,displacedBy:noDisplacedBy,at:null},isWithin=(function(l,o){return function(u){return l<=u&&u<=o}}),isPartiallyVisibleThroughFrame=(function(l){var o=isWithin(l.top,l.bottom),u=isWithin(l.left,l.right);return function(d){var f=o(d.top)&&o(d.bottom)&&u(d.left)&&u(d.right);if(f)return!0;var p=o(d.top)||o(d.bottom),h=u(d.left)||u(d.right),v=p&&h;if(v)return!0;var g=d.top<l.top&&d.bottom>l.bottom,m=d.left<l.left&&d.right>l.right,y=g&&m;if(y)return!0;var b=g&&h||m&&p;return b}}),isTotallyVisibleThroughFrame=(function(l){var o=isWithin(l.top,l.bottom),u=isWithin(l.left,l.right);return function(d){var f=o(d.top)&&o(d.bottom)&&u(d.left)&&u(d.right);return f}}),vertical={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},horizontal={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},isTotallyVisibleThroughFrameOnAxis=(function(l){return function(o){var u=isWithin(o.top,o.bottom),d=isWithin(o.left,o.right);return function(f){return l===vertical?u(f.top)&&u(f.bottom):d(f.left)&&d(f.right)}}}),getDroppableDisplaced=function(o,u){var d=u.frame?u.frame.scroll.diff.displacement:origin;return offsetByPosition(o,d)},isVisibleInDroppable=function(o,u,d){return u.subject.active?d(u.subject.active)(o):!1},isVisibleInViewport=function(o,u,d){return d(u)(o)},isVisible$1=function(o){var u=o.target,d=o.destination,f=o.viewport,p=o.withDroppableDisplacement,h=o.isVisibleThroughFrameFn,v=p?getDroppableDisplaced(u,d):u;return isVisibleInDroppable(v,d,h)&&isVisibleInViewport(v,f,h)},isPartiallyVisible=function(o){return isVisible$1(_extends$v({},o,{isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}))},isTotallyVisible=function(o){return isVisible$1(_extends$v({},o,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}))},isTotallyVisibleOnAxis=function(o){return isVisible$1(_extends$v({},o,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis(o.destination.axis)}))},getShouldAnimate=function(o,u,d){if(typeof d=="boolean")return d;if(!u)return!0;var f=u.invisible,p=u.visible;if(f[o])return!1;var h=p[o];return h?h.shouldAnimate:!0};function getTarget(l,o){var u=l.page.marginBox,d={top:o.point.y,right:0,bottom:0,left:o.point.x};return getRect(expand(u,d))}function getDisplacementGroups(l){var o=l.afterDragging,u=l.destination,d=l.displacedBy,f=l.viewport,p=l.forceShouldAnimate,h=l.last;return o.reduce(function(g,m){var y=getTarget(m,d),b=m.descriptor.id;g.all.push(b);var w=isPartiallyVisible({target:y,destination:u,viewport:f,withDroppableDisplacement:!0});if(!w)return g.invisible[m.descriptor.id]=!0,g;var E=getShouldAnimate(b,h,p),P={draggableId:b,shouldAnimate:E};return g.visible[b]=P,g},{all:[],visible:{},invisible:{}})}function getIndexOfLastItem(l,o){if(!l.length)return 0;var u=l[l.length-1].descriptor.index;return o.inHomeList?u:u+1}function goAtEnd(l){var o=l.insideDestination,u=l.inHomeList,d=l.displacedBy,f=l.destination,p=getIndexOfLastItem(o,{inHomeList:u});return{displaced:emptyGroups,displacedBy:d,at:{type:"REORDER",destination:{droppableId:f.descriptor.id,index:p}}}}function calculateReorderImpact(l){var o=l.draggable,u=l.insideDestination,d=l.destination,f=l.viewport,p=l.displacedBy,h=l.last,v=l.index,g=l.forceShouldAnimate,m=isHomeOf(o,d);if(v==null)return goAtEnd({insideDestination:u,inHomeList:m,displacedBy:p,destination:d});var y=find(u,function(C){return C.descriptor.index===v});if(!y)return goAtEnd({insideDestination:u,inHomeList:m,displacedBy:p,destination:d});var b=removeDraggableFromList(o,u),w=u.indexOf(y),E=b.slice(w),P=getDisplacementGroups({afterDragging:E,destination:d,displacedBy:p,last:h,viewport:f.frame,forceShouldAnimate:g});return{displaced:P,displacedBy:p,at:{type:"REORDER",destination:{droppableId:d.descriptor.id,index:v}}}}function didStartAfterCritical(l,o){return!!o.effected[l]}var fromCombine=(function(l){var o=l.isMovingForward,u=l.destination,d=l.draggables,f=l.combine,p=l.afterCritical;
89if(!u.isCombineEnabled)return null;var h=f.draggableId,v=d[h],g=v.descriptor.index,m=didStartAfterCritical(h,p);return m?o?g:g-1:o?g+1:g}),fromReorder=(function(l){var o=l.isMovingForward,u=l.isInHomeList,d=l.insideDestination,f=l.location;if(!d.length)return null;var p=f.index,h=o?p+1:p-1,v=d[0].descriptor.index,g=d[d.length-1].descriptor.index,m=u?g:g+1;return h<v||h>m?null:h}),moveToNextIndex=(function(l){var o=l.isMovingForward,u=l.isInHomeList,d=l.draggable,f=l.draggables,p=l.destination,h=l.insideDestination,v=l.previousImpact,g=l.viewport,m=l.afterCritical,y=v.at;if(y||invariant$1(),y.type==="REORDER"){var b=fromReorder({isMovingForward:o,isInHomeList:u,location:y.destination,insideDestination:h});return b==null?null:calculateReorderImpact({draggable:d,insideDestination:h,destination:p,viewport:g,last:v.displaced,displacedBy:v.displacedBy,index:b})}var w=fromCombine({isMovingForward:o,destination:p,displaced:v.displaced,draggables:f,combine:y.combine,afterCritical:m});return w==null?null:calculateReorderImpact({draggable:d,insideDestination:h,destination:p,viewport:g,last:v.displaced,displacedBy:v.displacedBy,index:w})}),getCombinedItemDisplacement=(function(l){var o=l.displaced,u=l.afterCritical,d=l.combineWith,f=l.displacedBy,p=!!(o.visible[d]||o.invisible[d]);return didStartAfterCritical(d,u)?p?origin:negate(f.point):p?f.point:origin}),whenCombining=(function(l){var o=l.afterCritical,u=l.impact,d=l.draggables,f=tryGetCombine(u);f||invariant$1();var p=f.draggableId,h=d[p].page.borderBox.center,v=getCombinedItemDisplacement({displaced:u.displaced,afterCritical:o,combineWith:p,displacedBy:u.displacedBy});return add$1(h,v)}),distanceFromStartToBorderBoxCenter=function(o,u){return u.margin[o.start]+u.borderBox[o.size]/2},distanceFromEndToBorderBoxCenter=function(o,u){return u.margin[o.end]+u.borderBox[o.size]/2},getCrossAxisBorderBoxCenter=function(o,u,d){return u[o.crossAxisStart]+d.margin[o.crossAxisStart]+d.borderBox[o.crossAxisSize]/2},goAfter=function(o){var u=o.axis,d=o.moveRelativeTo,f=o.isMoving;return patch(u.line,d.marginBox[u.end]+distanceFromStartToBorderBoxCenter(u,f),getCrossAxisBorderBoxCenter(u,d.marginBox,f))},goBefore=function(o){var u=o.axis,d=o.moveRelativeTo,f=o.isMoving;return patch(u.line,d.marginBox[u.start]-distanceFromEndToBorderBoxCenter(u,f),getCrossAxisBorderBoxCenter(u,d.marginBox,f))},goIntoStart=function(o){var u=o.axis,d=o.moveInto,f=o.isMoving;return patch(u.line,d.contentBox[u.start]+distanceFromStartToBorderBoxCenter(u,f),getCrossAxisBorderBoxCenter(u,d.contentBox,f))},whenReordering=(function(l){var o=l.impact,u=l.draggable,d=l.draggables,f=l.droppable,p=l.afterCritical,h=getDraggablesInsideDroppable(f.descriptor.id,d),v=u.page,g=f.axis;
89if(!h.length)return goIntoStart({axis:g,moveInto:f.page,isMoving:v});var m=o.displaced,y=o.displacedBy,b=m.all[0];if(b){var w=d[b];if(didStartAfterCritical(b,p))return goBefore({axis:g,moveRelativeTo:w.page,isMoving:v});var E=offset(w.page,y.point);return goBefore({axis:g,moveRelativeTo:E,isMoving:v})}var P=h[h.length-1];if(P.descriptor.id===u.descriptor.id)return v.borderBox.center;if(didStartAfterCritical(P.descriptor.id,p)){var C=offset(P.page,negate(p.displacedBy.point));return goAfter({axis:g,moveRelativeTo:C,isMoving:v})}return goAfter({axis:g,moveRelativeTo:P.page,isMoving:v})}),withDroppableDisplacement=(function(l,o){var u=l.frame;return u?add$1(o,u.scroll.diff.displacement):o}),getResultWithoutDroppableDisplacement=function(o){var u=o.impact,d=o.draggable,f=o.droppable,p=o.draggables,h=o.afterCritical,v=d.page.borderBox.center,g=u.at;return!f||!g?v:g.type==="REORDER"?whenReordering({impact:u,draggable:d,draggables:p,droppable:f,afterCritical:h}):whenCombining({impact:u,draggables:p,afterCritical:h})},getPageBorderBoxCenterFromImpact=(function(l){var o=getResultWithoutDroppableDisplacement(l),u=l.droppable,d=u?withDroppableDisplacement(u,o):o;return d}),scrollViewport=(function(l,o){var u=subtract$1(o,l.scroll.initial),d=negate(u),f=getRect({top:o.y,bottom:o.y+l.frame.height,left:o.x,right:o.x+l.frame.width}),p={frame:f,scroll:{initial:l.scroll.initial,max:l.scroll.max,current:o,diff:{value:u,displacement:d}}};return p});function getDraggables(l,o){return l.map(function(u){return o[u]})}function tryGetVisible(l,o){for(var u=0;u<o.length;u++){var d=o[u].visible[l];if(d)return d}return null}var speculativelyIncrease=(function(l){var o=l.impact,u=l.viewport,d=l.destination,f=l.draggables,p=l.maxScrollChange,h=scrollViewport(u,add$1(u.scroll.current,p)),v=d.frame?scrollDroppable(d,add$1(d.frame.scroll.current,p)):d,g=o.displaced,m=getDisplacementGroups({afterDragging:getDraggables(g.all,f),destination:d,displacedBy:o.displacedBy,viewport:h.frame,last:g,forceShouldAnimate:!1}),y=getDisplacementGroups({afterDragging:getDraggables(g.all,f),destination:v,displacedBy:o.displacedBy,viewport:u.frame,last:g,forceShouldAnimate:!1}),b={},w={},E=[g,m,y];g.all.forEach(function(C){var T=tryGetVisible(C,E);if(T){w[C]=T;return}b[C]=!0});var P=_extends$v({},o,{displaced:{all:g.all,invisible:b,visible:w}});return P}),withViewportDisplacement=(function(l,o){return add$1(l.scroll.diff.displacement,o)}),getClientFromPageBorderBoxCenter=(function(l){var o=l.pageBorderBoxCenter,u=l.draggable,d=l.viewport,f=withViewportDisplacement(d,o),p=subtract$1(f,u.page.borderBox.center);return add$1(u.client.borderBox.center,p)}),isTotallyVisibleInNewLocation=(function(l){var o=l.draggable,u=l.destination,d=l.newPageBorderBoxCenter,f=l.viewport,p=l.withDroppableDisplacement,h=l.onlyOnMainAxis,v=h===void 0?!1:h,g=subtract$1(d,o.page.borderBox.center),m=offsetByPosition(o.page.borderBox,g),y={target:m,destination:u,withDroppableDisplacement:p,viewport:f};return v?isTotallyVisibleOnAxis(y):isTotallyVisible(y)}),moveToNextPlace=(function(l){var o=l.isMovingForward,u=l.draggable,d=l.destination,f=l.draggables,p=l.previousImpact,h=l.viewport,v=l.previousPageBorderBoxCenter,g=l.previousClientSelection,m=l.afterCritical;if(!d.isEnabled)return null;var y=getDraggablesInsideDroppable(d.descriptor.id,f),b=isHomeOf(u,d),w=moveToNextCombine({isMovingForward:o,draggable:u,destination:d,insideDestination:y,previousImpact:p})||moveToNextIndex({isMovingForward:o,isInHomeList:b,draggable:u,draggables:f,destination:d,insideDestination:y,previousImpact:p,viewport:h,afterCritical:m});if(!w)return null;var E=getPageBorderBoxCenterFromImpact({impact:w,draggable:u,droppable:d,draggables:f,afterCritical:m}),P=isTotallyVisibleInNewLocation({draggable:u,destination:d,newPageBorderBoxCenter:E,viewport:h.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(P){var C=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:E,draggable:u,viewport:h});return{clientSelection:C,impact:w,scrollJumpRequest:null}}var T=subtract$1(E,v),O=speculativelyIncrease({impact:w,viewport:h,destination:d,draggables:f,maxScrollChange:T});return{clientSelection:g,impact:O,scrollJumpRequest:T}}),getKnownActive=function(o){var u=o.subject.active;return u||invariant$1(),u},getBestCrossAxisDroppable=(function(l){var o=l.isMovingForward,u=l.pageBorderBoxCenter,d=l.source,f=l.droppables,p=l.viewport,h=d.subject.active;if(!h)return null;var v=d.axis,g=isWithin(h[v.start],h[v.end]),m=toDroppableList(f).filter(function(b){return b!==d}).filter(function(b){return b.isEnabled}).filter(function(b){return!!b.subject.active}).filter(function(b){return isPartiallyVisibleThroughFrame(p.frame)(getKnownActive(b))}).filter(function(b){var w=getKnownActive(b);return o?h[v.crossAxisEnd]<w[v.crossAxisEnd]:w[v.crossAxisStart]<h[v.crossAxisStart]}).filter(function(b){var w=getKnownActive(b),E=isWithin(w[v.start],w[v.end]);return g(w[v.start])||g(w[v.end])||E(h[v.start])||E(h[v.end])}).sort(function(b,w){var E=getKnownActive(b)[v.crossAxisStart],P=getKnownActive(w)[v.crossAxisStart];return o?E-P:P-E}).filter(function(b,w,E){return getKnownActive(b)[v.crossAxisStart]===getKnownActive(E[0])[v.crossAxisStart]});if(!m.length)return null;if(m.length===1)return m[0];var y=m.filter(function(b){var w=isWithin(getKnownActive(b)[v.start],getKnownActive(b)[v.end]);return w(u[v.line])});return y.length===1?y[0]:y.length>1?y.sort(function(b,w){return getKnownActive(b)[v.start]-getKnownActive(w)[v.start]})[0]:m.sort(function(b,w){var E=closest(u,getCorners(getKnownActive(b))),P=closest(u,getCorners(getKnownActive(w)));return E!==P?E-P:getKnownActive(b)[v.start]-getKnownActive(w)[v.start]})[0]}),getCurrentPageBorderBoxCenter=function(o,u){var d=o.page.borderBox.center;return didStartAfterCritical(o.descriptor.id,u)?subtract$1(d,u.displacedBy.point):d},getCurrentPageBorderBox=function(o,u){var d=o.page.borderBox;return didStartAfterCritical(o.descriptor.id,u)?offsetByPosition(d,negate(u.displacedBy.point)):d},getClosestDraggable=(function(l){var o=l.pageBorderBoxCenter,u=l.viewport,d=l.destination,f=l.insideDestination,p=l.afterCritical,h=f.filter(function(v){return isTotallyVisible({target:getCurrentPageBorderBox(v,p),destination:d,viewport:u.frame,withDroppableDisplacement:!0})}).sort(function(v,g){var m=distance$1(o,withDroppableDisplacement(d,getCurrentPageBorderBoxCenter(v,p))),y=distance$1(o,withDroppableDisplacement(d,getCurrentPageBorderBoxCenter(g,p)));return m<y?-1:y<m?1:v.descriptor.index-g.descriptor.index});return h[0]||null}),getDisplacedBy=memoizeOne(function(o,u){var d=u[o.line];return{value:d,point:patch(o.line,d)}}),getRequiredGrowthForPlaceholder=function(o,u,d){var f=o.axis;if(o.descriptor.mode==="virtual")return patch(f.line,u[f.line]);var p=o.subject.page.contentBox[f.size],h=getDraggablesInsideDroppable(o.descriptor.id,d),v=h.reduce(function(y,b){return y+b.client.marginBox[f.size]},0),g=v+u[f.line],m=g-p;return m<=0?null:patch(f.line,m)},withMaxScroll=function(o,u){return _extends$v({},o,{scroll:_extends$v({},o.scroll,{max:u})})},addPlaceholder=function(o,u,d){var f=o.frame;isHomeOf(u,o)&&invariant$1(),o.subject.withPlaceholder&&invariant$1();var p=getDisplacedBy(o.axis,u.displaceBy).point,h=getRequiredGrowthForPlaceholder(o,p,d),v={placeholderSize:p,increasedBy:h,oldFrameMaxScroll:o.frame?o.frame.scroll.max:null};if(!f){var g=getSubject({page:o.subject.page,withPlaceholder:v,axis:o.axis,frame:o.frame});return _extends$v({},o,{subject:g})}var m=h?add$1(f.scroll.max,h):f.scroll.max,y=withMaxScroll(f,m),b=getSubject({page:o.subject.page,withPlaceholder:v,axis:o.axis,frame:y});return _extends$v({},o,{subject:b,frame:y})},removePlaceholder=function(o){var u=o.subject.withPlaceholder;u||invariant$1();var d=o.frame;if(!d){var f=getSubject({page:o.subject.page,axis:o.axis,frame:null,withPlaceholder:null});return _extends$v({},o,{subject:f})}var p=u.oldFrameMaxScroll;p||invariant$1();var h=withMaxScroll(d,p),v=getSubject({page:o.subject.page,axis:o.axis,frame:h,withPlaceholder:null});return _extends$v({},o,{subject:v,frame:h})},moveToNewDroppable=(function(l){var o=l.previousPageBorderBoxCenter,u=l.moveRelativeTo,d=l.insideDestination,f=l.draggable,p=l.draggables,h=l.destination,v=l.viewport,g=l.afterCritical;if(!u){if(d.length)return null;var m={displaced:emptyGroups,displacedBy:noDisplacedBy,at:{type:"REORDER",destination:{droppableId:h.descriptor.id,index:0}}},y=getPageBorderBoxCenterFromImpact({impact:m,draggable:f,droppable:h,draggables:p,afterCritical:g}),b=isHomeOf(f,h)?h:addPlaceholder(h,f,p),w=isTotallyVisibleInNewLocation({draggable:f,destination:b,newPageBorderBoxCenter:y,viewport:v.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return w?m:null}var E=o[h.axis.line]<=u.page.borderBox.center[h.axis.line],P=(function(){var T=u.descriptor.index;return u.descriptor.id===f.descriptor.id||E?T:T+1})(),C=getDisplacedBy(h.axis,f.displaceBy);return calculateReorderImpact({draggable:f,insideDestination:d,destination:h,viewport:v,displacedBy:C,last:emptyGroups,index:P})}),moveCrossAxis=(function(l){var o=l.isMovingForward,u=l.previousPageBorderBoxCenter,d=l.draggable,f=l.isOver,p=l.draggables,h=l.droppables,v=l.viewport,g=l.afterCritical,m=getBestCrossAxisDroppable({isMovingForward:o,pageBorderBoxCenter:u,source:f,droppables:h,viewport:v});if(!m)return null;var y=getDraggablesInsideDroppable(m.descriptor.id,p),b=getClosestDraggable({pageBorderBoxCenter:u,viewport:v,destination:m,insideDestination:y,afterCritical:g}),w=moveToNewDroppable({previousPageBorderBoxCenter:u,destination:m,draggable:d,draggables:p,moveRelativeTo:b,insideDestination:y,viewport:v,afterCritical:g});if(!w)return null;var E=getPageBorderBoxCenterFromImpact({impact:w,draggable:d,droppable:m,draggables:p,afterCritical:g}),P=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:E,draggable:d,viewport:v});return{clientSelection:P,impact:w,scrollJumpRequest:null}}),whatIsDraggedOver=(function(l){var o=l.at;return o?o.type==="REORDER"?o.destination.droppableId:o.combine.droppableId:null}),getDroppableOver=function(o,u){var d=whatIsDraggedOver(o);return d?u[d]:null},moveInDirection=(function(l){var o=l.state,u=l.type,d=getDroppableOver(o.impact,o.dimensions.droppables),f=!!d,p=o.dimensions.droppables[o.critical.droppable.
89id],h=d||p,v=h.axis.direction,g=v==="vertical"&&(u==="MOVE_UP"||u==="MOVE_DOWN")||v==="horizontal"&&(u==="MOVE_LEFT"||u==="MOVE_RIGHT");if(g&&!f)return null;var m=u==="MOVE_DOWN"||u==="MOVE_RIGHT",y=o.dimensions.draggables[o.critical.draggable.id],b=o.current.page.borderBoxCenter,w=o.dimensions,E=w.draggables,P=w.droppables;return g?moveToNextPlace({isMovingForward:m,previousPageBorderBoxCenter:b,draggable:y,destination:h,draggables:E,viewport:o.viewport,previousClientSelection:o.current.client.selection,previousImpact:o.impact,afterCritical:o.afterCritical}):moveCrossAxis({isMovingForward:m,previousPageBorderBoxCenter:b,draggable:y,isOver:h,draggables:E,droppables:P,viewport:o.viewport,afterCritical:o.afterCritical})});function isMovementAllowed(l){return l.phase==="DRAGGING"||l.phase==="COLLECTING"}function isPositionInFrame(l){var o=isWithin(l.top,l.bottom),u=isWithin(l.left,l.right);return function(f){return o(f.y)&&u(f.x)}}function getHasOverlap(l,o){return l.left<o.right&&l.right>o.left&&l.top<o.bottom&&l.bottom>o.top}function getFurthestAway(l){var o=l.pageBorderBox,u=l.draggable,d=l.candidates,f=u.page.borderBox.center,p=d.map(function(h){var v=h.axis,g=patch(h.axis.line,o.center[v.line],h.page.borderBox.center[v.crossAxisLine]);return{id:h.descriptor.id,distance:distance$1(f,g)}}).sort(function(h,v){return v.distance-h.distance});return p[0]?p[0].id:null}function getDroppableOver$1(l){var o=l.pageBorderBox,u=l.draggable,d=l.droppables,f=toDroppableList(d).filter(function(p){if(!p.isEnabled)return!1;var h=p.subject.active;if(!h||!getHasOverlap(o,h))return!1;if(isPositionInFrame(h)(o.center))return!0;var v=p.axis,g=h.center[v.crossAxisLine],m=o[v.crossAxisStart],y=o[v.crossAxisEnd],b=isWithin(h[v.crossAxisStart],h[v.crossAxisEnd]),w=b(m),E=b(y);return!w&&!E?!0:w?m<g:y>g});return f.length?f.length===1?f[0].descriptor.id:getFurthestAway({pageBorderBox:o,draggable:u,candidates:f}):null}var offsetRectByPosition=function(o,u){return getRect(offsetByPosition(o,u))},withDroppableScroll=(function(l,o){var u=l.frame;return u?offsetRectByPosition(o,u.scroll.diff.value):o});function getIsDisplaced(l){var o=l.displaced,u=l.id;return!!(o.visible[u]||o.invisible[u])}function atIndex(l){var o=l.draggable,u=l.closest,d=l.inHomeList;return u?d&&u.descriptor.index>o.descriptor.index?u.descriptor.index-1:u.descriptor.index:null}var getReorderImpact=(function(l){var o=l.pageBorderBoxWithDroppableScroll,u=l.draggable,d=l.destination,f=l.insideDestination,p=l.last,h=l.viewport,v=l.afterCritical,g=d.axis,m=getDisplacedBy(d.axis,u.displaceBy),y=m.value,b=o[g.start],w=o[g.end],E=removeDraggableFromList(u,f),P=find(E,function(T){var O=T.descriptor.id,x=T.page.borderBox.center[g.line],A=didStartAfterCritical(O,v),D=getIsDisplaced({displaced:p,id:O});return A?D?w<=x:b<x-y:D?w<=x+y:b<x}),C=atIndex({draggable:u,closest:P,inHomeList:isHomeOf(u,d)});return calculateReorderImpact({draggable:u,insideDestination:f,destination:d,viewport:h,last:p,displacedBy:m,index:C})}),combineThresholdDivisor=4,getCombineImpact=(function(l){var o=l.draggable,u=l.pageBorderBoxWithDroppableScroll,d=l.previousImpact,f=l.destination,p=l.insideDestination,h=l.afterCritical;if(!f.isCombineEnabled)return null;var v=f.axis,g=getDisplacedBy(f.axis,o.displaceBy),m=g.value,y=u[v.start],b=u[v.end],w=removeDraggableFromList(o,p),E=find(w,function(C){var T=C.descriptor.id,O=C.page.borderBox,x=O[v.size],A=x/combineThresholdDivisor,D=didStartAfterCritical(T,h),j=getIsDisplaced({displaced:d.displaced,id:T});return D?j?b>O[v.start]+A&&b<O[v.end]-A:y>O[v.start]-m+A&&y<O[v.end]-m-A:j?b>O[v.start]+m+A&&b<O[v.end]+m-A:y>O[v.start]+A&&y<O[v.end]-A});if(!E)return null;var P={displacedBy:g,displaced:d.displaced,at:{type:"COMBINE",combine:{draggableId:E.descriptor.id,droppableId:f.descriptor.id}}};return P}),getDragImpact=(function(l){var o=l.pageOffset,u=l.draggable,d=l.draggables,f=l.droppables,p=l.previousImpact,h=l.viewport,v=l.afterCritical,g=offsetRectByPosition(u.page.borderBox,o),m=getDroppableOver$1({pageBorderBox:g,draggable:u,droppables:f});if(!m)return noImpact;var y=f[m],b=getDraggablesInsideDroppable(y.descriptor.id,d),w=withDroppableScroll(y,g);return getCombineImpact({pageBorderBoxWithDroppableScroll:w,draggable:u,previousImpact:p,destination:y,insideDestination:b,afterCritical:v})||getReorderImpact({pageBorderBoxWithDroppableScroll:w,draggable:u,destination:y,insideDestination:b,last:p.displaced,viewport:h,afterCritical:v})}),patchDroppableMap=(function(l,o){var u;return _extends$v({},l,(u={},u[o.descriptor.id]=o,u))}),clearUnusedPlaceholder=function(o){var u=o.previousImpact,d=o.impact,f=o.droppables,p=whatIsDraggedOver(u),h=whatIsDraggedOver(d);if(!p||p===h)return f;var v=f[p];if(!v.subject.withPlaceholder)return f;var g=removePlaceholder(v);return patchDroppableMap(f,g)},recomputePlaceholders=(function(l){var o=l.draggable,u=l.draggables,d=l.droppables,f=l.previousImpact,p=l.impact,h=clearUnusedPlaceholder({previousImpact:f,impact:p,droppables:d}),v=whatIsDraggedOver(p);if(!v)return h;var g=d[v];if(isHomeOf(o,g)||g.subject.withPlaceholder)return h;var m=addPlaceholder(g,o,u);return patchDroppableMap(h,m)}),update$2=(function(l){var o=l.state,u=l.clientSelection,d=l.dimensions,f=l.viewport,p=l.impact,h=l.scrollJumpRequest,v=f||o.viewport,g=d||o.dimensions,m=u||o.current.client.selection,y=subtract$1(m,o.initial.client.selection),b={offset:y,selection:m,borderBoxCenter:add$1(o.initial.client.borderBoxCenter,y)},w={selection:add$1(b.selection,v.scroll.current),borderBoxCenter:add$1(b.borderBoxCenter,v.scroll.current),offset:add$1(b.offset,v.scroll.diff.value)},E={client:b,page:w};if(o.phase==="COLLECTING")return _extends$v({phase:"COLLECTING"},o,{dimensions:g,viewport:v,current:E});var P=g.draggables[o.critical.draggable.id],C=p||getDragImpact({pageOffset:w.offset,draggable:P,draggables:g.draggables,droppables:g.droppables,previousImpact:o.impact,viewport:v,afterCritical:
89o.afterCritical}),T=recomputePlaceholders({draggable:P,impact:C,previousImpact:o.impact,draggables:g.draggables,droppables:g.droppables}),O=_extends$v({},o,{current:E,dimensions:{draggables:g.draggables,droppables:T},impact:C,viewport:v,scrollJumpRequest:h||null,forceShouldAnimate:h?!1:null});return O});function getDraggables$1(l,o){return l.map(function(u){return o[u]})}var recompute=(function(l){var o=l.impact,u=l.viewport,d=l.draggables,f=l.destination,p=l.forceShouldAnimate,h=o.displaced,v=getDraggables$1(h.all,d),g=getDisplacementGroups({afterDragging:v,destination:f,displacedBy:o.displacedBy,viewport:u.frame,forceShouldAnimate:p,last:h});return _extends$v({},o,{displaced:g})}),getClientBorderBoxCenter=(function(l){var o=l.impact,u=l.draggable,d=l.droppable,f=l.draggables,p=l.viewport,h=l.afterCritical,v=getPageBorderBoxCenterFromImpact({impact:o,draggable:u,draggables:f,droppable:d,afterCritical:h});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:v,draggable:u,viewport:p})}),refreshSnap=(function(l){var o=l.state,u=l.dimensions,d=l.viewport;o.movementMode!=="SNAP"&&invariant$1();var f=o.impact,p=d||o.viewport,h=u||o.dimensions,v=h.draggables,g=h.droppables,m=v[o.critical.draggable.id],y=whatIsDraggedOver(f);y||invariant$1();var b=g[y],w=recompute({impact:f,viewport:p,destination:b,draggables:v}),E=getClientBorderBoxCenter({impact:w,draggable:m,droppable:b,draggables:v,viewport:p,afterCritical:o.afterCritical});return update$2({impact:w,clientSelection:E,state:o,dimensions:h,viewport:p})}),getHomeLocation=(function(l){return{index:l.index,droppableId:l.droppableId}}),getLiftEffect=(function(l){var o=l.draggable,u=l.home,d=l.draggables,f=l.viewport,p=getDisplacedBy(u.axis,o.displaceBy),h=getDraggablesInsideDroppable(u.descriptor.id,d),v=h.indexOf(o);v===-1&&invariant$1();var g=h.slice(v+1),m=g.reduce(function(E,P){return E[P.descriptor.id]=!0,E},{}),y={inVirtualList:u.descriptor.mode==="virtual",displacedBy:p,effected:m},b=getDisplacementGroups({afterDragging:g,destination:u,displacedBy:p,last:null,viewport:f.frame,forceShouldAnimate:!1}),w={displaced:b,displacedBy:p,at:{type:"REORDER",destination:getHomeLocation(o.descriptor)}};return{impact:w,afterCritical:y}}),patchDimensionMap=(function(l,o){return{draggables:l.draggables,droppables:patchDroppableMap(l.droppables,o)}}),offsetDraggable=(function(l){var o=l.draggable,u=l.offset,d=l.initialWindowScroll,f=offset(o.client,u),p=withScroll(f,d),h=_extends$v({},o,{placeholder:_extends$v({},o.placeholder,{client:f}),client:f,page:p});return h}),getFrame=(function(l){var o=l.frame;return o||invariant$1(),o}),adjustAdditionsForScrollChanges=(function(l){var o=l.additions,u=l.updatedDroppables,d=l.viewport,f=d.scroll.diff.value;return o.map(function(p){var h=p.descriptor.droppableId,v=u[h],g=getFrame(v),m=g.scroll.diff.value,y=add$1(f,m),b=offsetDraggable({draggable:p,offset:y,initialWindowScroll:d.scroll.initial});return b})}),publishWhileDraggingInVirtual=(function(l){var o=l.state,u=l.published,d=u.modified.map(function(A){var D=o.dimensions.droppables[A.droppableId],j=scrollDroppable(D,A.scroll);return j}),f=_extends$v({},o.dimensions.droppables,{},toDroppableMap(d)),p=toDraggableMap(adjustAdditionsForScrollChanges({additions:u.additions,updatedDroppables:f,viewport:o.viewport})),h=_extends$v({},o.dimensions.draggables,{},p);u.removals.forEach(function(A){delete h[A]});var v={droppables:f,draggables:h},g=whatIsDraggedOver(o.impact),m=g?v.droppables[g]:null,y=v.draggables[o.critical.draggable.id],b=v.droppables[o.critical.droppable.id],w=getLiftEffect({draggable:y,home:b,draggables:h,viewport:o.viewport}),E=w.impact,P=w.afterCritical,C=m&&m.isCombineEnabled?o.impact:E,T=getDragImpact({pageOffset:o.current.page.offset,draggable:v.draggables[o.critical.draggable.id],draggables:v.draggables,droppables:v.droppables,previousImpact:C,viewport:o.viewport,afterCritical:P}),O=_extends$v({phase:"DRAGGING"},o,{phase:"DRAGGING",impact:T,onLiftImpact:E,dimensions:v,afterCritical:P,forceShouldAnimate:!1});if(o.phase==="COLLECTING")return O;var x=_extends$v({phase:"DROP_PENDING"},O,{phase:"DROP_PENDING",reason:o.reason,isWaiting:!1});return x}),isSnapping=function(o){return o.movementMode==="SNAP"},postDroppableChange=function(o,u,d){var f=patchDimensionMap(o.dimensions,u);return!isSnapping(o)||d?update$2({state:o,dimensions:f}):refreshSnap({state:o,dimensions:f})};function removeScrollJumpRequest(l){return l.isDragging&&l.movementMode==="SNAP"?_extends$v({phase:"DRAGGING"},l,{scrollJumpRequest:null}):l}var idle={phase:"IDLE",completed:null,shouldFlush:!1},reducer=(function(l,o){if(l===void 0&&(l=idle),o.type==="FLUSH")return _extends$v({},idle,{shouldFlush:!0});if(o.type==="INITIAL_PUBLISH"){l.phase!=="IDLE"&&invariant$1();var u=o.payload,d=u.critical,f=u.clientSelection,p=u.viewport,h=u.dimensions,v=u.movementMode,g=h.draggables[d.draggable.id],m=h.droppables[d.droppable.
89id],y={selection:f,borderBoxCenter:g.client.borderBox.center,offset:origin},b={client:y,page:{selection:add$1(y.selection,p.scroll.initial),borderBoxCenter:add$1(y.selection,p.scroll.initial),offset:add$1(y.selection,p.scroll.diff.value)}},w=toDroppableList(h.droppables).every(function(Ie){return!Ie.isFixedOnPage}),E=getLiftEffect({draggable:g,home:m,draggables:h.draggables,viewport:p}),P=E.impact,C=E.afterCritical,T={phase:"DRAGGING",isDragging:!0,critical:d,movementMode:v,dimensions:h,initial:b,current:b,isWindowScrollAllowed:w,impact:P,afterCritical:C,onLiftImpact:P,viewport:p,scrollJumpRequest:null,forceShouldAnimate:null};return T}if(o.type==="COLLECTION_STARTING"){if(l.phase==="COLLECTING"||l.phase==="DROP_PENDING")return l;l.phase!=="DRAGGING"&&invariant$1();var O=_extends$v({phase:"COLLECTING"},l,{phase:"COLLECTING"});return O}if(o.type==="PUBLISH_WHILE_DRAGGING")return l.phase==="COLLECTING"||l.phase==="DROP_PENDING"||invariant$1(),publishWhileDraggingInVirtual({state:l,published:o.payload});if(o.type==="MOVE"){if(l.phase==="DROP_PENDING")return l;isMovementAllowed(l)||invariant$1();var x=o.payload.client;return isEqual(x,l.current.client.selection)?l:update$2({state:l,clientSelection:x,impact:isSnapping(l)?l.impact:null})}if(o.type==="UPDATE_DROPPABLE_SCROLL"){if(l.phase==="DROP_PENDING"||l.phase==="COLLECTING")return removeScrollJumpRequest(l);isMovementAllowed(l)||invariant$1();var A=o.payload,D=A.id,j=A.newScroll,M=l.dimensions.droppables[D];if(!M)return l;var N=scrollDroppable(M,j);return postDroppableChange(l,N,!1)}if(o.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(l.phase==="DROP_PENDING")return l;isMovementAllowed(l)||invariant$1();var q=o.payload,z=q.id,H=q.isEnabled,U=l.dimensions.droppables[z];U||invariant$1(),U.isEnabled===H&&invariant$1();var F=_extends$v({},U,{isEnabled:H});return postDroppableChange(l,F,!0)}if(o.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(l.phase==="DROP_PENDING")return l;isMovementAllowed(l)||invariant$1();var B=o.payload,G=B.id,Q=B.isCombineEnabled,K=l.dimensions.droppables[G];K||invariant$1(),K.isCombineEnabled===Q&&invariant$1();var Z=_extends$v({},K,{isCombineEnabled:Q});return postDroppableChange(l,Z,!0)}if(o.type==="MOVE_BY_WINDOW_SCROLL"){if(l.phase==="DROP_PENDING"||l.phase==="DROP_ANIMATING")return l;isMovementAllowed(l)||invariant$1(),l.isWindowScrollAllowed||invariant$1();var te=o.payload.newScroll;if(isEqual(l.viewport.scroll.current,te))return removeScrollJumpRequest(l);var oe=scrollViewport(l.viewport,te);return isSnapping(l)?refreshSnap({state:l,viewport:oe}):update$2({state:l,viewport:oe})}if(o.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!isMovementAllowed(l))return l;var fe=o.payload.maxScroll;if(isEqual(fe,l.viewport.scroll.max))return l;var le=_extends$v({},l.viewport,{scroll:_extends$v({},l.viewport.scroll,{max:fe})});return _extends$v({phase:"DRAGGING"},l,{viewport:le})}if(o.type==="MOVE_UP"||o.type==="MOVE_DOWN"||o.type==="MOVE_LEFT"||o.type==="MOVE_RIGHT"){if(l.phase==="COLLECTING"||l.phase==="DROP_PENDING")return l;l.phase!=="DRAGGING"&&invariant$1();var Re=moveInDirection({state:l,type:o.type});return Re?update$2({state:l,impact:Re.impact,clientSelection:Re.clientSelection,scrollJumpRequest:Re.scrollJumpRequest}):l}if(o.type==="DROP_PENDING"){var Ae=o.payload.reason;l.phase!=="COLLECTING"&&invariant$1();var _e=_extends$v({phase:"DROP_PENDING"},l,{phase:"DROP_PENDING",isWaiting:!0,reason:Ae});return _e}if(o.type==="DROP_ANIMATE"){var ee=o.payload,se=ee.completed,$e=ee.dropDuration,Ee=ee.newHomeClientOffset;l.phase==="DRAGGING"||l.phase==="DROP_PENDING"||invariant$1();var xe={phase:"DROP_ANIMATING",completed:se,dropDuration:$e,newHomeClientOffset:Ee,dimensions:l.dimensions};return xe}if(o.type==="DROP_COMPLETE"){var Se=o.payload.completed;return{phase:"IDLE",completed:Se,shouldFlush:!1}}return l}),beforeInitialCapture=function(o){return{type:"BEFORE_INITIAL_CAPTURE",payload:o}},lift=function(o){return{type:"LIFT",payload:o}},initialPublish=function(o){return{type:"INITIAL_PUBLISH",payload:o}},publishWhileDragging=function(o){return{type:"PUBLISH_WHILE_DRAGGING",payload:o}},collectionStarting=function(){return{type:"COLLECTION_STARTING",payload:null}},updateDroppableScroll=function(o){return{type:"UPDATE_DROPPABLE_SCROLL",payload:o}},updateDroppableIsEnabled=function(o){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:o}}
89,updateDroppableIsCombineEnabled=function(o){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:o}},move=function(o){return{type:"MOVE",payload:o}},moveByWindowScroll=function(o){return{type:"MOVE_BY_WINDOW_SCROLL",payload:o}},updateViewportMaxScroll=function(o){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:o}},moveUp=function(){return{type:"MOVE_UP",payload:null}},moveDown=function(){return{type:"MOVE_DOWN",payload:null}},moveRight=function(){return{type:"MOVE_RIGHT",payload:null}},moveLeft=function(){return{type:"MOVE_LEFT",payload:null}},flush$2=function(){return{type:"FLUSH",payload:null}},animateDrop=function(o){return{type:"DROP_ANIMATE",payload:o}},completeDrop=function(o){return{type:"DROP_COMPLETE",payload:o}},drop=function(o){return{type:"DROP",payload:o}},dropPending=function(o){return{type:"DROP_PENDING",payload:o}},dropAnimationFinished=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},lift$1=(function(l){return function(o){var u=o.getState,d=o.dispatch;return function(f){return function(p){if(p.type!=="LIFT"){f(p);return}var h=p.payload,v=h.id,g=h.clientSelection,m=h.movementMode,y=u();y.phase==="DROP_ANIMATING"&&d(completeDrop({completed:y.completed})),u().phase!=="IDLE"&&invariant$1(),d(flush$2()),d(beforeInitialCapture({draggableId:v,movementMode:m}));var b={shouldPublishImmediately:m==="SNAP"},w={draggableId:v,scrollOptions:b},E=l.startPublishing(w),P=E.critical,C=E.dimensions,T=E.viewport;d(initialPublish({critical:P,dimensions:C,clientSelection:g,movementMode:m,viewport:T}))}}}}),style$1=(function(l){return function(){return function(o){return function(u){u.type==="INITIAL_PUBLISH"&&l.dragging(),u.type==="DROP_ANIMATE"&&l.dropping(u.payload.completed.result.reason),(u.type==="FLUSH"||u.type==="DROP_COMPLETE")&&l.resting(),o(u)}}}}),curves={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},combine={opacity:{drop:0,combining:.7},scale:{drop:.75}},timings={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},outOfTheWayTiming=timings.outOfTheWay+"s "+curves.outOfTheWay,transitions$1={fluid:"opacity "+outOfTheWayTiming,snap:"transform "+outOfTheWayTiming+", opacity "+outOfTheWayTiming,drop:function(o){var u=o+"s "+curves.drop;return"transform "+u+", opacity "+u},outOfTheWay:"transform "+outOfTheWayTiming,placeholder:"height "+outOfTheWayTiming+", width "+outOfTheWayTiming+", margin "+outOfTheWayTiming},moveTo=function(o){return isEqual(o,origin)?null:"translate("+o.x+"px, "+o.y+"px)"},transforms={moveTo,drop:function(o,u){var d=moveTo(o);return d?u?d+" scale("+combine.scale.drop+")":d:null}},minDropTime=timings.minDropTime,maxDropTime=timings.maxDropTime,dropTimeRange=maxDropTime-minDropTime,maxDropTimeAtDistance=1500,cancelDropModifier=.6,getDropDuration=(function(l){var o=l.current,u=l.destination,d=l.reason,f=distance$1(o,u);if(f<=0)return minDropTime;if(f>=maxDropTimeAtDistance)return maxDropTime;var p=f/maxDropTimeAtDistance,h=minDropTime+dropTimeRange*p,v=d==="CANCEL"?h*cancelDropModifier:h;return Number(v.toFixed(2))}),getNewHomeClientOffset=(function(l){var o=l.impact,u=l.draggable,d=l.dimensions,f=l.viewport,p=l.afterCritical,h=d.draggables,v=d.droppables,g=whatIsDraggedOver(o),m=g?v[g]:null,y=v[u.descriptor.droppableId],b=getClientBorderBoxCenter({impact:o,draggable:u,draggables:h,afterCritical:p,droppable:m||y,viewport:f}),w=subtract$1(b,u.client.borderBox.center);return w}),getDropImpact=(function(l){var o=l.draggables,u=l.reason,d=l.lastImpact,f=l.home,p=l.viewport,h=l.onLiftImpact;if(!d.at||u!=="DROP"){var v=recompute({draggables:o,impact:h,destination:f,viewport:p,forceShouldAnimate:!0});return{impact:v,didDropInsideDroppable:!1}}if(d.at.type==="REORDER")return{impact:d,didDropInsideDroppable:!0};var g=_extends$v({},d,{displaced:emptyGroups});return{impact:g,didDropInsideDroppable:!0}}),drop$1=(function(l){var o=l.getState,u=l.dispatch;return function(d){return function(f){if(f.type!=="DROP"){d(f);return}var p=o(),h=f.payload.reason;if(p.phase==="COLLECTING"){u(dropPending({reason:h}));return}if(p.phase!=="IDLE"){var v=p.phase==="DROP_PENDING"&&p.isWaiting;v&&invariant$1(),p.phase==="DRAGGING"||p.phase==="DROP_PENDING"||invariant$1();var g=p.critical,m=p.dimensions,y=m.draggables[p.critical.draggable.id],b=getDropImpact({reason:h,lastImpact:p.impact,afterCritical:p.afterCritical,onLiftImpact:p.onLiftImpact,home:p.dimensions.droppables[p.critical.droppable.
89id],viewport:p.viewport,draggables:p.dimensions.draggables}),w=b.impact,E=b.didDropInsideDroppable,P=E?tryGetDestination(w):null,C=E?tryGetCombine(w):null,T={index:g.draggable.index,droppableId:g.droppable.id},O={draggableId:y.descriptor.id,type:y.descriptor.type,source:T,reason:h,mode:p.movementMode,destination:P,combine:C},x=getNewHomeClientOffset({impact:w,draggable:y,dimensions:m,viewport:p.viewport,afterCritical:p.afterCritical}),A={critical:p.critical,afterCritical:p.afterCritical,result:O,impact:w},D=!isEqual(p.current.client.offset,x)||!!O.combine;if(!D){u(completeDrop({completed:A}));return}var j=getDropDuration({current:p.current.client.offset,destination:x,reason:h}),M={newHomeClientOffset:x,dropDuration:j,completed:A};u(animateDrop(M))}}}}),getWindowScroll=(function(){return{x:window.pageXOffset,y:window.pageYOffset}});function getWindowScrollBinding(l){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(u){u.target!==window&&u.target!==window.document||l()}}}function getScrollListener(l){var o=l.onWindowScroll;function u(){o(getWindowScroll())}var d=rafSchd(u),f=getWindowScrollBinding(d),p=noop$2;function h(){return p!==noop$2}function v(){h()&&invariant$1(),p=bindEvents(window,[f])}function g(){h()||invariant$1(),d.cancel(),p(),p=noop$2}return{start:v,stop:g,isActive:h}}var shouldEnd=function(o){return o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATE"||o.type==="FLUSH"},scrollListener=(function(l){var o=getScrollListener({onWindowScroll:function(d){l.dispatch(moveByWindowScroll({newScroll:d}))}});return function(u){return function(d){!o.isActive()&&d.type==="INITIAL_PUBLISH"&&o.start(),o.isActive()&&shouldEnd(d)&&o.stop(),u(d)}}}),getExpiringAnnounce=(function(l){var o=!1,u=!1,d=setTimeout(function(){u=!0}),f=function(h){o||u||(o=!0,l(h),clearTimeout(d))};return f.wasCalled=function(){return o},f}),getAsyncMarshal=(function(){var l=[],o=function(p){var h=findIndex(l,function(m){return m.timerId===p});h===-1&&invariant$1();var v=l.splice(h,1),g=v[0];g.callback()},u=function(p){var h=setTimeout(function(){return o(h)}),v={timerId:h,callback:p};l.push(v)},d=function(){if(l.length){var p=[].concat(l);l.length=0,p.forEach(function(h){clearTimeout(h.timerId),h.callback()})}};return{add:u,flush:d}}),areLocationsEqual=function(o,u){return o==null&&u==null?!0:o==null||u==null?!1:o.droppableId===u.droppableId&&o.index===u.index},isCombineEqual=function(o,u){return o==null&&u==null?!0:o==null||u==null?!1:o.draggableId===u.draggableId&&o.droppableId===u.droppableId},isCriticalEqual=function(o,u){if(o===u)return!0;var d=o.draggable.id===u.draggable.id&&o.draggable.droppableId===u.draggable.droppableId&&o.draggable.type===u.draggable.type&&o.draggable.index===u.draggable.index,f=o.droppable.id===u.droppable.id&&o.droppable.type===u.droppable.type;return d&&f},withTimings=function(o,u){u()},getDragStart=function(o,u){return{draggableId:o.draggable.id,type:o.droppable.type,source:{droppableId:o.droppable.id,index:o.draggable.index},mode:u}},execute=function(o,u,d,f){if(!o){d(f(u));return}var p=getExpiringAnnounce(d),h={announce:p};o(u,h),p.wasCalled()||d(f(u))},getPublisher=(function(l,o){var u=getAsyncMarshal(),d=null,f=function(w,E){d&&invariant$1(),withTimings("onBeforeCapture",function(){var P=l().onBeforeCapture;if(P){var C={draggableId:w,mode:E};P(C)}})},p=function(w,E){d&&invariant$1(),withTimings("onBeforeDragStart",function(){var P=l().onBeforeDragStart;P&&P(getDragStart(w,E))})},h=function(w,E){d&&invariant$1();var P=getDragStart(w,E);d={mode:E,lastCritical:w,lastLocation:P.source,lastCombine:null},u.add(function(){withTimings("onDragStart",function(){return execute(l().onDragStart,P,o,preset.onDragStart)})})},v=function(w,E){var P=tryGetDestination(E),C=tryGetCombine(E);d||invariant$1();var T=!isCriticalEqual(w,d.lastCritical);T&&(d.lastCritical=w);var O=!areLocationsEqual(d.lastLocation,P);O&&(d.lastLocation=P);var x=!isCombineEqual(d.lastCombine,C);if(x&&(d.lastCombine=C),!(!T&&!O&&!x)){var A=_extends$v({},getDragStart(w,d.mode),{combine:C,destination:P});u.add(function(){withTimings("onDragUpdate",function(){return execute(l().onDragUpdate,A,o,preset.onDragUpdate)})})}},g=function(){d||invariant$1(),u.flush()},m=function(w){d||invariant$1(),d=null,withTimings("onDragEnd",function(){return execute(l().onDragEnd,w,o,preset.onDragEnd)})},y=function(){if(d){var w=_extends$v({},getDragStart(d.lastCritical,d.mode),{combine:null,destination:null,reason:"CANCEL"});m(w)}};return{beforeCapture:f,beforeStart:p,start:h,update:v,flush:g,drop:m,abort:y}}),responders=(function(l,o){var u=getPublisher(l,o);return function(d){return function(f){return function(p){if(p.type==="BEFORE_INITIAL_CAPTURE"){u.beforeCapture(p.payload.draggableId,p.payload.movementMode);return}if(p.type==="INITIAL_PUBLISH"){var h=p.payload.critical;u.beforeStart(h,p.payload.movementMode),f(p),u.start(h,p.payload.movementMode);return}if(p.type==="DROP_COMPLETE"){var v=p.payload.completed.result;u.flush(),f(p),u.drop(v);return}if(f(p),p.type==="FLUSH"){u.abort();return}var g=d.getState();g.phase==="DRAGGING"&&u.update(g.critical,g.impact)}}}}),dropAnimationFinish=(function(l){return function(o){return function(u){if(u.type!=="DROP_ANIMATION_FINISHED"){o(u);return}var d=l.getState();d.phase!=="DROP_ANIMATING"&&invariant$1(),l.dispatch(completeDrop({completed:d.completed}))}}}),dropAnimationFlushOnScroll=(function(l){var o=null,u=null;function d(){u&&(cancelAnimationFrame(u),u=null),o&&(o(),o=null)}return function(f){return function(p){if((p.type==="FLUSH"||p.type==="DROP_COMPLETE"||p.type==="DROP_ANIMATION_FINISHED")&&d(),f(p),p.type==="DROP_ANIMATE"){var h={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var g=l.getState();g.phase==="DROP_ANIMATING"&&l.dispatch(dropAnimationFinished())}};u=requestAnimationFrame(function(){u=null,o=bindEvents(window,[h])})}}}}),dimensionMarshalStopper=(function(l){return function(){return function(o){return function(u){(u.type==="DROP_COMPLETE"||u.type==="FLUSH"||u.type==="DROP_ANIMATE")&&l.stopPublishing(),o(u)}}}}),focus=(function(l){var o=!1;return function(){return function(u){return function(d){if(d.type==="INITIAL_PUBLISH"){o=!0,l.tryRecordFocus(d.payload.critical.draggable.id),u(d),l.tryRestoreFocusRecorded();return}if(u(d),!!o){if(d.type==="FLUSH"){o=!1,l.tryRestoreFocusRecorded();return}if(d.type==="DROP_COMPLETE"){o=!1;var f=d.payload.completed.result;f.combine&&l.tryShiftRecord(f.draggableId,f.combine.draggableId),l.tryRestoreFocusRecorded()}}}}}}),shouldStop=function(o){return o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATE"||o.type==="FLUSH"},autoScroll=(function(l){return function(o){return function(u){return function(d){if(shouldStop(d)){l.stop(),u(d);return}if(d.type==="INITIAL_PUBLISH"){u(d);var f=o.getState();f.phase!=="DRAGGING"&&invariant$1(),l.start(f);return}u(d),l.scroll(o.getState())}}}}),pendingDrop=(function(l){return function(o){return function(u){if(o(u),u.type==="PUBLISH_WHILE_DRAGGING"){var d=l.getState();d.phase==="DROP_PENDING"&&(d.isWaiting||l.dispatch(drop({reason:d.reason})))}}}}),composeEnhancers=compose$2,createStore=(function(l){var o=l.dimensionMarshal,u=l.focu
89sMarshal,d=l.styleMarshal,f=l.getResponders,p=l.announce,h=l.autoScroller;return createStore$1(reducer,composeEnhancers(applyMiddleware(style$1(d),dimensionMarshalStopper(o),lift$1(o),drop$1,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop,autoScroll(h),scrollListener,focus(u),responders(f,p))))}),clean$1=function(){return{additions:{},removals:{},modified:{}}};function createPublisher(l){var o=l.registry,u=l.callbacks,d=clean$1(),f=null,p=function(){f||(u.collectionStarting(),f=requestAnimationFrame(function(){f=null;var y=d,b=y.additions,w=y.removals,E=y.modified,P=Object.keys(b).map(function(O){return o.draggable.getById(O).getDimension(origin)}).sort(function(O,x){return O.descriptor.index-x.descriptor.index}),C=Object.keys(E).map(function(O){var x=o.droppable.getById(O),A=x.callbacks.getScrollWhileDragging();return{droppableId:O,scroll:A}}),T={additions:P,removals:Object.keys(w),modified:C};d=clean$1(),u.publish(T)}))},h=function(y){var b=y.descriptor.id;d.additions[b]=y,d.modified[y.descriptor.droppableId]=!0,d.removals[b]&&delete d.removals[b],p()},v=function(y){var b=y.descriptor;d.removals[b.id]=!0,d.modified[b.droppableId]=!0,d.additions[b.id]&&delete d.additions[b.id],p()},g=function(){f&&(cancelAnimationFrame(f),f=null,d=clean$1())};return{add:h,remove:v,stop:g}}var getMaxScroll=(function(l){var o=l.scrollHeight,u=l.scrollWidth,d=l.height,f=l.width,p=subtract$1({x:u,y:o},{x:f,y:d}),h={x:Math.max(0,p.x),y:Math.max(0,p.y)};return h}),getDocumentElement=(function(){var l=document.documentElement;return l||invariant$1(),l}),getMaxWindowScroll=(function(){var l=getDocumentElement(),o=getMaxScroll({scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth,width:l.clientWidth,height:l.clientHeight});return o}
89),getViewport=(function(){var l=getWindowScroll(),o=getMaxWindowScroll(),u=l.y,d=l.x,f=getDocumentElement(),p=f.clientWidth,h=f.clientHeight,v=d+p,g=u+h,m=getRect({top:u,left:d,right:v,bottom:g}),y={frame:m,scroll:{initial:l,current:l,max:o,diff:{value:origin,displacement:origin}}};return y}),getInitialPublish=(function(l){var o=l.critical,u=l.scrollOptions,d=l.registry,f=getViewport(),p=f.scroll.current,h=o.droppable,v=d.droppable.getAllByType(h.type).map(function(b){return b.callbacks.getDimensionAndWatchScroll(p,u)}),g=d.draggable.getAllByType(o.draggable.type).map(function(b){return b.getDimension(p)}),m={draggables:toDraggableMap(g),droppables:toDroppableMap(v)},y={dimensions:m,critical:o,viewport:f};return y});function shouldPublishUpdate(l,o,u){if(u.descriptor.id===o.id||u.descriptor.type!==o.type)return!1;var d=l.droppable.getById(u.descriptor.droppableId);return d.descriptor.mode==="virtual"}var createDimensionMarshal=(function(l,o){var u=null,d=createPublisher({callbacks:{publish:o.publishWhileDragging,collectionStarting:o.collectionStarting},registry:l}),f=function(E,P){l.droppable.exists(E)||invariant$1(),u&&o.updateDroppableIsEnabled({id:E,isEnabled:P})},p=function(E,P){u&&(l.droppable.exists(E)||invariant$1(),o.updateDroppableIsCombineEnabled({id:E,isCombineEnabled:P}))},h=function(E,P){u&&(l.droppable.exists(E)||invariant$1(),o.updateDroppableScroll({id:E,newScroll:P}))},v=function(E,P){u&&l.droppable.getById(E).callbacks.scroll(P)},g=function(){if(u){d.stop();var E=u.critical.droppable;l.droppable.getAllByType(E.type).forEach(function(P){return P.callbacks.dragStopped()}),u.unsubscribe(),u=null}},m=function(E){u||invariant$1();var P=u.critical.draggable;E.type==="ADDITION"&&shouldPublishUpdate(l,P,E.value)&&d.add(E.value),E.type==="REMOVAL"&&shouldPublishUpdate(l,P,E.value)&&d.remove(E.value)},y=function(E){u&&invariant$1();var P=l.draggable.getById(E.draggableId),C=l.droppable.getById(P.descriptor.droppableId),T={draggable:P.descriptor,droppable:C.descriptor},O=l.subscribe(m);return u={critical:T,unsubscribe:O},getInitialPublish({critical:T,registry:l,scrollOptions:E.scrollOptions})},b={updateDroppableIsEnabled:f,updateDroppableIsCombineEnabled:p,scrollDroppable:v,updateDroppableScroll:h,startPublishing:y,stopPublishing:g};return b}),canStartDrag=(function(l,o){return l.phase==="IDLE"?!0:l.phase!=="DROP_ANIMATING"||l.completed.result.draggableId===o?!1:l.completed.result.reason==="DROP"}),scrollWindow=(function(l){window.scrollBy(l.x,l.y)}),getScrollableDroppables=memoizeOne(function(l){return toDroppableList(l).filter(function(o){return!(!o.isEnabled||!o.frame)})}),getScrollableDroppableOver=function(o,u){var d=find(getScrollableDroppables(u),function(f){return f.frame||invariant$1(),isPositionInFrame(f.frame.pageMarginBox)(o)});return d},getBestScrollableDroppable=(function(l){var o=l.center,u=l.destination,d=l.droppables;if(u){var f=d[u];return f.frame?f:null}var p=getScrollableDroppableOver(o,d);return p}),config={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(o){return Math.pow(o,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},getDistanceThresholds=(function(l,o){var u=l[o.size]*config.startFromPercentage,d=l[o.size]*config.maxScrollAtPercentage,f={startScrollingFrom:u,maxScrollValueAt:d};return f}),getPercentage=(function(l){var o=l.startOfRange,u=l.endOfRange,d=l.current,f=u-o;if(f===0)return 0;var p=d-o,h=p/f;return h}),minScroll=1,getValueFromDistance=(function(l,o){if(l>o.startScrollingFrom)return 0;if(l<=o.maxScrollValueAt)return config.maxPixelScroll;if(l===o.startScrollingFrom)return minScroll;var u=getPercentage({startOfRange:o.maxScrollValueAt,endOfRange:o.startScrollingFrom,current:l}),d=1-u,f=config.maxPixelScroll*config.ease(d);return Math.ceil(f)}),accelerateAt=config.durationDampening.accelerateAt,stopAt=config.durationDampening.stopDampeningAt,dampenValueByTime=(function(l,o){var u=o,d=stopAt,f=Date.now(),p=f-u;if(p>=stopAt)return l;if(p<accelerateAt)return minScroll;var h=getPercentage({startOfRange:accelerateAt,endOfRange:d,current:p}),v=l*config.ease(h);return Math.ceil(v)}),getValue=(function(l){var o=l.distanceToEdge,u=l.thresholds,d=l.dragStartTime,f=l.shouldUseTimeDampening,p=getValueFromDistance(o,u);return p===0?0:f?Math.max(dampenValueByTime(p,d),minScroll):p}),getScrollOnAxis=(function(l){var o=l.container,u=l.distanceToEdges,d=l.dragStartTime,f=l.axis,p=l.shouldUseTimeDampening,h=getDistanceThresholds(o,f),v=u[f.end]<u[f.start];return v?getValue({distanceToEdge:u[f.end],thresholds:h,dragStartTime:d,shouldUseTimeDampening:p}):-1*getValue({distanceToEdge:u[f.start],thresholds:h,dragStartTime:d,shouldUseTimeDampening:p})}
89),adjustForSizeLimits=(function(l){var o=l.container,u=l.subject,d=l.proposedScroll,f=u.height>o.height,p=u.width>o.width;return!p&&!f?d:p&&f?null:{x:p?0:d.x,y:f?0:d.y}}),clean$2=apply$1(function(l){return l===0?0:l}),getScroll=(function(l){var o=l.dragStartTime,u=l.container,d=l.subject,f=l.center,p=l.shouldUseTimeDampening,h={top:f.y-u.top,right:u.right-f.x,bottom:u.bottom-f.y,left:f.x-u.left},v=getScrollOnAxis({container:u,distanceToEdges:h,dragStartTime:o,axis:vertical,shouldUseTimeDampening:p}),g=getScrollOnAxis({container:u,distanceToEdges:h,dragStartTime:o,axis:horizontal,shouldUseTimeDampening:p}),m=clean$2({x:g,y:v});if(isEqual(m,origin))return null;var y=adjustForSizeLimits({container:u,subject:d,proposedScroll:m});return y?isEqual(y,origin)?null:y:null}),smallestSigned=apply$1(function(l){return l===0?0:l>0?1:-1}),getOverlap=(function(){var l=function(u,d){return u<0?u:u>d?u-d:0};return function(o){var u=o.current,d=o.max,f=o.change,p=add$1(u,f),h={x:l(p.x,d.x),y:l(p.y,d.y)};return isEqual(h,origin)?null:h}})(),canPartiallyScroll=function(o){var u=o.max,d=o.current,f=o.change,p={x:Math.max(d.x,u.x),y:Math.max(d.y,u.y)},h=smallestSigned(f),v=getOverlap({max:p,current:d,change:h});return!v||h.x!==0&&v.x===0||h.y!==0&&v.y===0},canScrollWindow=function(o,u){return canPartiallyScroll({current:o.scroll.current,max:o.scroll.max,change:u})},getWindowOverlap=function(o,u){if(!canScrollWindow(o,u))return null;var d=o.scroll.max,f=o.scroll.current;return getOverlap({current:f,max:d,change:u})},canScrollDroppable=function(o,u){var d=o.frame;return d?canPartiallyScroll({current:d.scroll.current,max:d.scroll.max,change:u}):!1},getDroppableOverlap=function(o,u){var d=o.frame;return!d||!canScrollDroppable(o,u)?null:getOverlap({current:d.scroll.current,max:d.scroll.max,change:u})},getWindowScrollChange=(function(l){var o=l.viewport,u=l.subject,d=l.center,f=l.dragStartTime,p=l.shouldUseTimeDampening,h=getScroll({dragStartTime:f,container:o.frame,subject:u,center:d,shouldUseTimeDampening:p});return h&&canScrollWindow(o,h)?h:null}),getDroppableScrollChange=(function(l){var o=l.droppable,u=l.subject,d=l.center,f=l.dragStartTime,p=l.shouldUseTimeDampening,h=o.frame;if(!h)return null;var v=getScroll({dragStartTime:f,container:h.pageMarginBox,subject:u,center:d,shouldUseTimeDampening:p});return v&&canScrollDroppable(o,v)?v:null}),scroll$1=(function(l){var o=l.state,u=l.dragStartTime,d=l.shouldUseTimeDampening,f=l.scrollWindow,p=l.scrollDroppable,h=o.current.page.borderBoxCenter,v=o.dimensions.draggables[o.critical.draggable.id],g=v.page.marginBox;if(o.isWindowScrollAllowed){var m=o.viewport,y=getWindowScrollChange({dragStartTime:u,viewport:m,subject:g,center:h,shouldUseTimeDampening:d});if(y){f(y);return}}var b=getBestScrollableDroppable({center:h,destination:whatIsDraggedOver(o.impact),droppables:o.dimensions.droppables});if(b){var w=getDroppableScrollChange({dragStartTime:u,droppable:b,subject:g,center:h,shouldUseTimeDampening:d});w&&p(b.descriptor.id,w)}}),createFluidScroller=(function(l){var o=l.scrollWindow,u=l.scrollDroppable,d=rafSchd(o),f=rafSchd(u),p=null,h=function(y){p||invariant$1();var b=p,w=b.shouldUseTimeDampening,E=b.dragStartTime;scroll$1({state:y,scrollWindow:d,scrollDroppable:f,dragStartTime:E,shouldUseTimeDampening:w})},v=function(y){p&&invariant$1();var b=Date.now(),w=!1,E=function(){w=!0};scroll$1({state:y,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:E,scrollDroppable:E}),p={dragStartTime:b,shouldUseTimeDampening:w},w&&h(y)},g=function(){p&&(d.cancel(),f.cancel(),p=null)};return{start:v,stop:g,scroll:h}}),createJumpScroller=(function(l){var o=l.move,u=l.scrollDroppable,d=l.scrollWindow,f=function(m,y){var b=add$1(m.current.client.selection,y);o({client:b})},p=function(m,y){if(!canScrollDroppable(m,y))return y;var b=getDroppableOverlap(m,y);if(!b)return u(m.descriptor.id,y),null;var w=subtract$1(y,b);u(m.descriptor.id,w);var E=subtract$1(y,w);return E},h=function(m,y,b){if(!m||!canScrollWindow(y,b))return b;var w=getWindowOverlap(y,b);if(!w)return d(b),null;var E=subtract$1(b,w);d(E);var P=subtract$1(b,E);return P},v=function(m){var y=m.scrollJumpRequest;if(y){var b=whatIsDraggedOver(m.impact);b||invariant$1();var w=p(m.dimensions.droppables[b],y);if(w){var E=m.viewport,P=h(m.isWindowScrollAllowed,E,w);P&&f(m,P)}}};return v}),createAutoScroller=(function(l){var o=l.scrollDroppable,u=l.scrollWindow,d=l.move,f=createFluidScroller({scrollWindow:u,scrollDroppable:o}),p=createJumpScroller({move:d,scrollWindow:u,scrollDroppable:o}),h=function(m){if(m.phase==="DRAGGING"){if(m.movementMode==="FLUID"){f.scroll(m);return}m.scrollJumpRequest&&p(m)}},v={scroll:h,start:f.start,stop:f.stop};return v}),prefix$1="data-rbd",dragHandle=(function(){var l=prefix$1+"-drag-handle";return{base:l,draggableId:l+"-draggable-id",contextId:l+"-context-id"}})(),draggable=(function(){var l=prefix$1+"-draggable";return{base:l,contextId:l+"-context-id",id:l+"-id"}})(),droppable=(function(){var l=prefix$1+"-droppable";return{base:l,contextId:l+"-context-id",id:l+"-id"}})(),scrollContainer={contextId:prefix$1+"-scroll-container-context-id"},makeGetSelector=function(o){return function(u){return"["+u+'="'+o+'"]'}},getStyles=function(o,u){return o.map(function(d){var f=d.styles[u];return f?d.selector+" { "+f+" }":""}).join(" ")},noPointerEvents="pointer-events: none;",getStyles$1=(function(l){var o=makeGetSelector(l),u=(function(){var v=`
90      cursor: -webkit-grab;
91      cursor: grab;
92    `;return{selector:o(dragHandle.contextId),styles:{always:`
93          -webkit-touch-callout: none;
94          -webkit-tap-highlight-color: rgba(0,0,0,0);
95          touch-action: manipulation;
96        `,resting:v,dragging:noPointerEvents,dropAnimating:v}}})(),d=(function(){var v=`
97      transition: `+transitions$1.outOfTheWay+`;
98    `;return{selector:o(draggable.contextId),styles:{dragging:v,dropAnimating:v,userCancel:v}}})(),f={selector:o(droppable.contextId),styles:{always:"overflow-anchor: n
98one;"}},p={selector:"body",styles:{dragging:`
99        cursor: grabbing;
100        cursor: -webkit-grabbing;
101        user-select: none;
102        -webkit-user-select: none;
103        -moz-user-select: none;
104        -ms-user-select: none;
105        overflow-anchor: none;
106      `}},h=[d,u,f,p];return{always:getStyles(h,"always"),resting:getStyles(h,"resting"),dragging:getStyles(h,"dragging"),dropAnimating:getStyles(h,"dropAnimating"),userCancel:getStyles(h,"userCancel")}}),useIsomorphicLayoutEffect$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect,getHead=function(){var o=document.querySelector("head");return o||invariant$1(),o},createStyleEl=function(o){var u=document.createElement("style");return o&&u.setAttribute("nonce",o),u.type="text/css",u};function useStyleMarshal(l,o){var u=useMemo(function(){return getStyles$1(l)},[l]),d=reactExports.useRef(null),f=reactExports.useRef(null),p=useCallback(memoizeOne(function(b){var w=f.current;w||invariant$1(),w.textContent=b}),[]),h=useCallback(function(b){var w=d.current;w||invariant$1(),w.textContent=b},[]);useIsomorphicLayoutEffect$1(function(){!d.current&&!f.current||invariant$1();var b=createStyleEl(o),w=createStyleEl(o);return d.current=b,f.current=w,b.setAttribute(prefix$1+"-always",l),w.setAttribute(prefix$1+"-dynamic",l),getHead().appendChild(b),getHead().appendChild(w),h(u.always),p(u.resting),function(){var E=function(C){var T=C.current;T||invariant$1(),getHead().removeChild(T),C.current=null};E(d),E(f)}},[o,h,p,u.always,u.resting,l]);var v=useCallback(function(){return p(u.dragging)},[p,u.dragging]),g=useCallback(function(b){if(b==="DROP"){p(u.dropAnimating);return}p(u.userCancel)},[p,u.dropAnimating,u.userCancel]),m=useCallback(function(){f.current&&p(u.resting)},[p,u.resting]),y=useMemo(function(){return{dragging:v,dropping:g,resting:m}},[v,g,m]);return y}var getWindowFromEl=(function(l){return l&&l.ownerDocument?l.ownerDocument.defaultView:window});function isHtmlElement(l){return l instanceof getWindowFromEl(l).HTMLElement}function findDragHandle(l,o){var u="["+dragHandle.contextId+'="'+l+'"]',d=toArray(document.querySelectorAll(u));if(!d.length)return null;var f=find(d,function(p){return p.getAttribute(dragHandle.draggableId)===o});return!f||!isHtmlElement(f)?null:f}function useFocusMarshal(l){var o=reactExports.useRef({}),u=reactExports.useRef(null),d=reactExports.useRef(null),f=reactExports.useRef(!1),p=useCallback(function(w,E){var P={id:w,focus:E};return o.current[w]=P,function(){var T=o.current,O=T[w];O!==P&&delete T[w]}},[]),h=useCallback(function(w){var E=findDragHandle(l,w);E&&E!==document.activeElement&&E.focus()},[l]),v=useCallback(function(w,E){u.current===w&&(u.current=E)},[]),g=useCallback(function(){d.current||f.current&&(d.current=requestAnimationFrame(function(){d.current=null;var w=u.current;w&&h(w)}))},[h]),m=useCallback(function(w){u.current=null;var E=document.activeElement;E&&E.getAttribute(dragHandle.draggableId)===w&&(u.current=w)},[]);useIsomorphicLayoutEffect$1(function(){return f.current=!0,function(){f.current=!1;var w=d.current;w&&cancelAnimationFrame(w)}},[]);var y=useMemo(function(){return{register:p,tryRecordFocus:m,tryRestoreFocusRecorded:g,tryShiftRecord:v}},[p,m,g,v]);return y}function createRegistry(){var l={draggables:{},droppables:{}},o=[];function u(b){return o.push(b),function(){var E=o.indexOf(b);E!==-1&&o.splice(E,1)}}function d(b){o.length&&o.forEach(function(w){return w(b)})}function f(b){return l.draggables[b]||null}function p(b){var w=f(b);return w||invariant$1(),w}var h={register:function(w){l.draggables[w.descriptor.id]=w,d({type:"ADDITION",value:w})},update:function(w,E){var P=l.draggables[E.descriptor.id];P&&P.uniqueId===w.uniqueId&&(delete l.draggables[E.descriptor.id],l.draggables[w.descriptor.id]=w)},unregister:function(w){var E=w.descriptor.id,P=f(E);P&&w.uniqueId===P.uniqueId&&(delete l.draggables[E],d({type:"REMOVAL",value:w}))},getById:p,findById:f,exists:function(w){return!!f(w)},getAllByType:function(w){return values$1(l.draggables).filter(function(E){return E.descriptor.type===w})}};function v(b){return l.droppables[b]||null}function g(b){var w=v(b);return w||invariant$1(),w}var m={register:function(w){l.droppables[w.descriptor.id]=w},unregister:function(w){var E=v(w.descriptor.id);E&&w.uniqueId===E.uniqueId&&delete l.droppables[w.descriptor.id]},getById:g,findById:v,exists:function(w){return!!v(w)},getAllByType:function(w){return values$1(l.droppables).filter(function(E){return E.descriptor.type===w})}};function y(){l.draggables={},l.droppables={},o.length=0}return{draggable:h,droppable:m,subscribe:u,clean:y}}function useRegistry(){var l=useMemo(createRegistry,[]);return reactExports.useEffect(function(){return function(){requestAnimationFrame(l.clean)}},[l]),l}var StoreContext=React.createContext(null),getBodyElement=(function(){var l=document.body;return l||invariant$1(),l}),visuallyHidden={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId=function(o){return"rbd-announcement-"+o};function useAnnouncer(l){var o=useMemo(function(){return getId(l)},[l]),u=reactExports.useRef(null);reactExports.useEffect(function(){var p=document.createElement("div");return u.current=p,p.id=o,p.setAttribute("aria-live","assertive"),p.setAttribute("aria-atomic","true"),_extends$v(p.style,visuallyHidden),getBodyElement().appendChild(p),function(){setTimeout(function(){var g=getBodyElement();g.contains(p)&&g.removeChild(p),p===u.current&&(u.current=null)})}},[o]);var d=useCallback(function(f){var p=u.current;if(p){p.textContent=f;return}},[]);return d}var count=0,defaults={separator:"::"};function useUniqueId(l,o){return o===void 0&&(o=defaults),useMemo(function(){return""+l+o.separator+count++},[o.separator,l])}function getElementId(l){var o=l.contextId,u=l.uniqueId;return"rbd-hidden-text-"+o+"-"+u}function useHiddenTextElement(l){var o=l.contextId,u=l.text,d=useUniqueId("hidden-text",{separator:"-"}),f=useMemo(function(){return getElementId({contextId:o,uniqueId:d})},[d,o]);return reactExports.useEffect(function(){var h=document.createElement("div");return h.id=f,h.textContent=u,h.style.display="none",getBodyElement().appendChild(h),function(){var g=getBodyElement();g.contains(h)&&g.removeChild(h)}},[f,u]),f}var AppContext=React.createContext(null);function usePrevious(l){var o=reactExports.useRef(l);return reactExports.useEffect(function(){o.current=l}),o}function create(){var l=null;function o(){return!!l}function u(h){return h===l}function d(h){l&&invariant$1();var v={abandon:h};return l=v,v}function f(){l||invariant$1(),l=null}function p(){l&&(l.abandon(),f())}return{isClaimed:o,isActive:u,claim:d,release:f,tryAbandon:p}}var tab=9,enter=13,escape=27,space=32,pageUp=33,pageDown=34,end=35,home=36,arrowLeft=37,arrowUp=38,arrowRight=39,arrowDown=40,_preventedKeys,preventedKeys=(_preventedKeys={},_preventedKeys[enter]=!0,_preventedKeys[tab]=!0,_preventedKeys),preventStandardKeyEvents=(function(l){preventedKeys[l.keyCode]&&l.preventDefault()}),supportedEventName=(function(){var l="visibilitychange";if(typeof document>"u")return l;var o=[l,"ms"+l,"webkit"+l,"moz"+l,"o"+l],u=find(o,function(d){return"on"+d in document});return u||l})(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(l,o){return Math.abs(o.x-l.x)>=sloppyClickThreshold||Math.abs(o.y-l.y)>=sloppyClickThreshold}var idle$1={type:"IDLE"};function getCaptureBindings(l){var o=l.cancel,u=l.completed,d=l.getPhase,f=l.setPhase;return[{eventName:"mousemove",fn:function(h){var v=h.button,g=h.clientX,m=h.clientY;if(v===primaryButton){var y={x:g,y:m},b=d();if(b.type==="DRAGGING"){h.preventDefault(),b.actions.move(y);return}b.type!=="PENDING"&&invariant$1();var w=b.point;if(isSloppyClickThresholdExceeded(w,y)){h.preventDefault();var E=b.actions.fluidLift(y);f({type:"DRAGGING",actions:E})}}}},{eventName:"mouseup",fn:function(h){var v=d();if(v.type!=="DRAGGING"){o();return}h.preventDefault(),v.actions.drop({shouldBlockNextClick:!0}),u()}},{eventName:"mousedown",fn:function(h){d().type==="DRAGGING"&&h.preventDefault(),o()}},{eventName:"keydown",fn:function(h){var v=d();if(v.type==="PENDING"){o();return}if(h.keyCode===escape){h.preventDefault(),o();return}preventStandardKeyEvents(h)}},{eventName:"resize",fn:o},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){d().type==="PENDING"&&o()}},{eventName:"webkitmouseforcedown",fn:function(h){var v=d();if(v.type==="IDLE"&&invariant$1(),v.actions.shouldRespectForcePress()){o();return}h.preventDefault()}},{eventName:supportedEventName,fn:o}]}function useMouseSensor(l){var o=reactExports.useRef(idle$1),u=reactExports.useRef(noop$2),d=useMemo(function(){return{eventName:"mousedown",fn:function(b){if(!b.defaultPrevented&&b.button===primaryButton&&!(b.ctrlKey||b.metaKey||b.shiftKey||b.altKey)){var w=l.findClosestDraggableId(b);if(w){var E=l.tryGetLock(w,h,{sourceEvent:b});if(E){b.preventDefault();var P={x:b.clientX,y:b.clientY};u.current(),m(E,P)}}}}}},[l]),f=useMemo(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(b){if(!b.defaultPrevented){var w=l.findClosestDraggableId(b);if(w){var E=l.findOptionsForDraggable(w);E&&(E.shouldRespectForcePress||l.canGetLock(w)&&b.preventDefault())}}}}},[l]),p=useCallback(function(){var b={passive:!1,capture:!0};u.current=bindEvents(window,[f,d],b)},[f,d]),h=useCallback(function(){var y=o.current;y.type!=="IDLE"&&(o.current=idle$1,u.current(),p())},[p]),v=useCallback(function(){var y=o.current;h(),y.type==="DRAGGING"&&y.actions.cancel({shouldBlockNextClick:!0}),y.type==="PENDING"&&y.actions.abort()},[h]),g=useCallback(function(){var b={capture:!0,passive:!1},w=getCaptureBindings({cancel:v,completed:h,getPhase:function(){return o.current},setPhase:function(P){o.current=P}});u.current=bindEvents(window,w,b)},[v,h]),m=useCallback(function(b,w){o.current.type!=="IDLE"&&invariant$1(),o.current={type:"PENDING",point:w,actions:b},g()},[g]);useIsomorphicLayoutEffect$1(function(){return p(),function(){u.current()}},[p])}var _scrollJumpKeys;function noop$1$1(){}var scrollJumpKeys=(_scrollJumpKeys={},_scrollJumpKeys[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0,_scrollJumpKeys);function getDraggingBindings(l,o){function u(){o(),l.cancel()}function d(){o(),l.drop()}return[{eventName:"keydown",fn:function(p){if(p.keyCode===escape){p.preventDefault(),u();return}if(p.keyCode===space){p.preventDefault(),d();return}if(p.keyCode===arrowDown){p.preventDefault(),l.moveDown();return}if(p.keyCode===arrowUp){p.preventDefault(),l.moveUp();return}if(p.keyCode===arrowRight){p.preventDefault(),l.moveRight();return}if(p.keyCode===arrowLeft){p.preventDefault(),l.moveLeft();return}if(scrollJumpKeys[p.keyCode]){p.preventDefault();return}preventStandardKeyEvents(p)}},{eventName:"mousedown",fn:u},{eventName:"mouseup",fn:u},{eventName:"click",fn:u},{eventName:"touchstart",fn:u},{eventName:"resize",fn:u},{eventName:"wheel",fn:u,options:{passive:!0}},{eventName:supportedEventName,fn:u}]}function useKeyboardSensor(l){var o=reactExports.useRef(noop$1$1),u=useMemo(function(){return{eventName:"keydown",fn:function(p){if(p.defaultPrevented||p.keyCode!==space)return;var h=l.findClosestDraggableId(p);if(!h)return;var v=l.tryGetLock(h,y,{sourceEvent:p});if(!v)return;p.preventDefault();var g=!0,m=v.snapLift();o.current();function y(){g||invariant$1(),g=!1,o.current(),d()}o.current=bindEvents(window,getDraggingBindings(m,y),{capture:!0,passive:!1})}}},[l]),d=useCallback(function(){var p={passive:!1,capture:!0};o.current=bindEvents(window,[u],p)},[u]);useIsomorphicLayoutEffect$1(function(){return d(),function(){o.current()}},[d])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(l){var o=l.cancel,u=l.getPhase;return[{eventName:"orientationchange",fn:o},{eventName:"resize",fn:o},{eventName:"contextmenu",fn:function(f){f.preventDefault()}},{eventName:"keydown",fn:function(f){if(u().type!=="DRAGGING"){o();return}f.keyCode===escape&&f.preventDefault(),o()}},{eventName:supportedEventName,fn:o}]}function getHandleBindings(l){var o=l.cancel,u=l.completed,d=l.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(p){var h=d();if(h.type!=="DRAGGING"){o();return}h.hasMoved=!0;var v=p.touches[0],g=v.clientX,m=v.clientY,y={x:g,y:m};p.preventDefault(),h.actions.move(y)}},{eventName:"touchend",fn:function(p){var h=d();if(h.type!=="DRAGGING"){o();return}p.preventDefault(),h.actions.drop({shouldBlockNextClick:!0}),u()}},{eventName:"touchcancel",fn:function(p){if(d().type!=="DRAGGING"){o();return}p.preventDefault(),o()}},{eventName:"touchforcechange",fn:function(p){var h=d();h.type==="IDLE"&&invariant$1();var v=p.touches[0];if(v){var g=v.force>=forcePressThreshold;if(g){var m=h.actions.shouldRespectForcePress();if(h.type==="PENDING"){m&&o();return}if(m){if(h.hasMoved){p.preventDefault();return}o();return}p.preventDefault()}}}},{eventName:supportedEventName,fn:o}]}function useTouchSensor(l){var o=reactExports.useRef(idle$2),u=reactExports.useRef(noop$2),d=useCallback(function(){return o.current},[]),f=useCallback(function(E){o.current=E},[]),p=useMemo(function(){return{eventName:"touchstart",fn:function(E){if(!E.defaultPrevented){var P=l.findClosestDraggableId(E);if(P){var C=l.tryGetLock(P,v,{sourceEvent:E});if(C){var T=E.touches[0],O=T.clientX,x=T.clientY,A={x:O,y:x};u.current(),b(C,A)}}}}}},[l]),h=useCallback(function(){var E={capture:!0,passive:!1};u.current=bindEvents(window,[p],E)},[p]),v=useCallback(function(){var w=o.current;w.type!=="IDLE"&&(w.type==="PENDING"&&clearTimeout(w.longPressTimerId),f(idle$2),u.current(),h())},[h,f]),g=useCallback(function(){var w=o.current;v(),w.type==="DRAGGING"&&w.actions.cancel({shouldBlockNextClick:!0}),w.type==="PENDING"&&w.actions.abort()},[v]),m=useCallback(function(){var E={capture:!0,passive:!1},P={cancel:g,completed:v,getPhase:d},C=bindEvents(window,getHandleBindings(P),E),T=bindEvents(window,getWindowBindings(P),E);u.current=function(){C(),T()}},[g,d,v]),y=useCallback(function(){var E=d();E.type!=="PENDING"&&invariant$1();var P=E.actions.fluidLift(E.point);f({type:"DRAGGING",actions:P,hasMoved:!1})},[d,f]),b=useCallback(function(E,P){d().type!=="IDLE"&&invariant$1();
106var C=setTimeout(y,timeForLongPress);f({type:"PENDING",point:P,actions:E,longPressTimerId:C}),m()},[m,d,f,y]);useIsomorphicLayoutEffect$1(function(){return h(),function(){u.current();var P=d();P.type==="PENDING"&&(clearTimeout(P.longPressTimerId),f(idle$2))}},[d,h,f]),useIsomorphicLayoutEffect$1(function(){var E=bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return E},[])}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(l,o){if(o==null)return!1;var u=!!interactiveTagNames[o.tagName.toLowerCase()];if(u)return!0;var d=o.getAttribute("contenteditable");return d==="true"||d===""?!0:o===l?!1:isAnInteractiveElement(l,o.parentElement)}function isEventInInteractiveElement(l,o){var u=o.target;return isHtmlElement(u)?isAnInteractiveElement(l,u):!1}var getBorderBoxCenterPosition=(function(l){return getRect(l.getBoundingClientRect()).center});function isElement(l){return l instanceof getWindowFromEl(l).Element}var supportedMatchesName=(function(){var l="matches";if(typeof document>"u")return l;var o=[l,"msMatchesSelector","webkitMatchesSelector"],u=find(o,function(d){return d in Element.prototype});return u||l})();function closestPonyfill(l,o){return l==null?null:l[supportedMatchesName](o)?l:closestPonyfill(l.parentElement,o)}function closest$1(l,o){return l.closest?l.closest(o):closestPonyfill(l,o)}function getSelector(l){return"["+dragHandle.contextId+'="'+l+'"]'}function findClosestDragHandleFromEvent(l,o){var u=o.target;if(!isElement(u))return null;var d=getSelector(l),f=closest$1(u,d);return!f||!isHtmlElement(f)?null:f}function tryGetClosestDraggableIdFromEvent(l,o){var u=findClosestDragHandleFromEvent(l,o);return u?u.getAttribute(dragHandle.draggableId):null}function findDraggable(l,o){var u="["+draggable.contextId+'="'+l+'"]',d=toArray(document.querySelectorAll(u)),f=find(d,function(p){return p.getAttribute(draggable.id)===o});return!f||!isHtmlElement(f)?null:f}function preventDefault(l){l.preventDefault()}function _isActive(l){var o=l.expected,u=l.phase,d=l.isLockActive;return l.shouldWarn,!(!d()||o!==u)}function canStart(l){var o=l.lockAPI,u=l.store,d=l.registry,f=l.draggableId;if(o.isClaimed())return!1;var p=d.draggable.findById(f);return!(!p||!p.options.isEnabled||!canStartDrag(u.getState(),f))}function tryStart(l){var o=l.lockAPI,u=l.contextId,d=l.store,f=l.registry,p=l.draggableId,h=l.forceSensorStop,v=l.sourceEvent,g=canStart({lockAPI:o,store:d,registry:f,draggableId:p});if(!g)return null;var m=f.draggable.getById(p),y=findDraggable(u,m.descriptor.id);if(!y||v&&!m.options.canDragInteractiveElements&&isEventInInteractiveElement(y,v))return null;var b=o.claim(h||noop$2),w="PRE_DRAG";function E(){return m.options.shouldRespectForcePress}function P(){return o.isActive(b)}function C(M,N){_isActive({expected:M,phase:w,isLockActive:P,shouldWarn:!0})&&d.dispatch(N())}var T=C.bind(null,"DRAGGING");function O(M){function N(){o.release(),w="COMPLETED"}w!=="PRE_DRAG"&&(N(),w!=="PRE_DRAG"&&invariant$1()),d.dispatch(lift(M.liftActionArgs)),w="DRAGGING";function q(z,H){if(H===void 0&&(H={shouldBlockNextClick:!1}),M.cleanup(),H.shouldBlockNextClick){var U=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(U)}N(),d.dispatch(drop({reason:z}))}return _extends$v({isActive:function(){return _isActive({expected:"DRAGGING",phase:w,isLockActive:P,shouldWarn:!1})},shouldRespectForcePress:E,drop:function(H){return q("DROP",H)},cancel:function(H){return q("CANCEL",H)}},M.actions)}function x(M){var N=rafSchd(function(z){T(function(){return move({client:z})})}),q=O({liftActionArgs:{id:p,clientSelection:M,movementMode:"FLUID"},cleanup:function(){return N.cancel()},actions:{move:N}});return _extends$v({},q,{move:N})}function A(){var M={moveUp:function(){return T(moveUp)},moveRight:function(){return T(moveRight)},moveDown:function(){return T(moveDown)},moveLeft:function(){return T(moveLeft)}};return O({liftActionArgs:{id:p,clientSelection:getBorderBoxCenterPosition(y),movementMode:"SNAP"}
106,cleanup:noop$2,actions:M})}function D(){var M=_isActive({expected:"PRE_DRAG",phase:w,isLockActive:P,shouldWarn:!0});M&&o.release()}var j={isActive:function(){return _isActive({expected:"PRE_DRAG",phase:w,isLockActive:P,shouldWarn:!1})},shouldRespectForcePress:E,fluidLift:x,snapLift:A,abort:D};return j}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(l){var o=l.contextId,u=l.store,d=l.registry,f=l.customSensors,p=l.enableDefaultSensors,h=[].concat(p?defaultSensors:[],f||[]),v=reactExports.useState(function(){return create()})[0],g=useCallback(function(x,A){x.isDragging&&!A.isDragging&&v.tryAbandon()},[v]);useIsomorphicLayoutEffect$1(function(){var x=u.getState(),A=u.subscribe(function(){var D=u.getState();g(x,D),x=D});return A},[v,u,g]),useIsomorphicLayoutEffect$1(function(){return v.tryAbandon},[v.tryAbandon]);for(var m=useCallback(function(O){return canStart({lockAPI:v,registry:d,store:u,draggableId:O})},[v,d,u]),y=useCallback(function(O,x,A){return tryStart({lockAPI:v,registry:d,contextId:o,store:u,draggableId:O,forceSensorStop:x,sourceEvent:A&&A.sourceEvent?A.sourceEvent:null})},[o,v,d,u]),b=useCallback(function(O){return tryGetClosestDraggableIdFromEvent(o,O)},[o]),w=useCallback(function(O){var x=d.draggable.findById(O);return x?x.options:null},[d.draggable]),E=useCallback(function(){v.isClaimed()&&(v.tryAbandon(),u.getState().phase!=="IDLE"&&u.dispatch(flush$2()))},[v,u]),P=useCallback(v.isClaimed,[v]),C=useMemo(function(){return{canGetLock:m,tryGetLock:y,findClosestDraggableId:b,findOptionsForDraggable:w,tryReleaseLock:E,isLockClaimed:P}},[m,y,b,w,E,P]),T=0;T<h.length;T++)h[T](C)}var createResponders=function(o){return{onBeforeCapture:o.onBeforeCapture,onBeforeDragStart:o.onBeforeDragStart,onDragStart:o.onDragStart,onDragEnd:o.onDragEnd,onDragUpdate:o.onDragUpdate}};function getStore(l){return l.current||invariant$1(),l.current}function App$1(l){var o=l.contextId,u=l.setCallbacks,d=l.sensors,f=l.nonce,p=l.dragHandleUsageInstructions,h=reactExports.useRef(null),v=usePrevious(l),g=useCallback(function(){return createResponders(v.current)},[v]),m=useAnnouncer(o),y=useHiddenTextElement({contextId:o,text:p}),b=useStyleMarshal(o,f),w=useCallback(function(z){getStore(h).dispatch(z)},[]),E=useMemo(function(){return bindActionCreators({publishWhileDragging,updateDroppableScroll,updateDroppableIsEnabled,updateDroppableIsCombineEnabled,collectionStarting},w)},[w]),P=useRegistry(),C=useMemo(function(){return createDimensionMarshal(P,E)},[P,E]),T=useMemo(function(){return createAutoScroller(_extends$v({scrollWindow,scrollDroppable:C.scrollDroppable},bindActionCreators({move},w)))},[C.scrollDroppable,w]),O=useFocusMarshal(o),x=useMemo(function(){return createStore({announce:m,autoScroller:T,dimensionMarshal:C,focusMarshal:O,getResponders:g,styleMarshal:b})},[m,T,C,O,g,b]);h.current=x;var A=useCallback(function(){var z=getStore(h),H=z.getState();H.phase!=="IDLE"&&z.dispatch(flush$2())},[]),D=useCallback(function(){var z=getStore(h).getState();return z.isDragging||z.phase==="DROP_ANIMATING"},[]),j=useMemo(function(){return{isDragging:D,tryAbort:A}},[D,A]);u(j);var M=useCallback(function(z){return canStartDrag(getStore(h).getState(),z)},[]),N=useCallback(function(){return isMovementAllowed(getStore(h).getState())},[]),q=useMemo(function(){return{marshal:C,focus:O,contextId:o,canLift:M,isMovementAllowed:N,dragHandleUsageInstructionsId:y,registry:P}},[o,C,y,O,M,N,P]);return useSensorMarshal({contextId:o,store:x,registry:P,customSensors:d,enableDefaultSensors:l.enableDefaultSensors!==!1}),reactExports.useEffect(function(){return A},[A]),React.createElement(AppContext.Provider,{value:q},React.createElement(Provider,{context:StoreContext,store:x},l.children))}var count$1=0;function useInstanceCount(){return useMemo(function(){return""+count$1++},[])}function DragDropContext(l){var o=useInstanceCount(),u=l.dragHandleUsageInstructions||preset.dragHandleUsageInstructions;return React.createElement(ErrorBoundary,null,function(d){return React.createElement(App$1,{nonce:l.nonce,contextId:o,setCallbacks:d,dragHandleUsageInstructions:u,enableDefaultSensors:l.enableDefaultSensors,sensors:l.sensors,onBeforeCapture:l.onBeforeCapture,onBeforeDragStart:l.onBeforeDragStart,onDragStart:l.onDragStart,onDragUpdate:l.onDragUpdate,onDragEnd:l.onDragEnd},l.children)})}var isEqual$1=function(o){return function(u){return o===u}},isScroll=isEqual$1("scroll"),isAuto=isEqual$1("auto"),isEither=function(o,u){return u(o.overflowX)||u(o.overflowY)},isElementScrollable=function(o){var u=window.getComputedStyle(o),d={overflowX:u.overflowX,overflowY:u.overflowY};return isEither(d,isScroll)||isEither(d,isAuto)},isBodyScrollable=function(){return!1},getClosestScrollable=function l(o){return o==null?null:o===document.body?isBodyScrollable()?o:null:o===document.documentElement?null:isElementScrollable(o)?o:l(o.parentElement)},getScroll$1=(function(l){return{x:l.scrollLeft,y:l.scrollTop}}),getIsFixed=function l(o){if(!o)return!1;var u=window.getComputedStyle(o);return u.position==="fixed"?!0:l(o.parentElement)},getEnv=(function(l){var o=getClosestScrollable(l),u=getIsFixed(l);return{closestScrollable:o,isFixedOnPage:u}}),getDroppableDimension=(function(l){var o=l.descriptor,u=l.isEnabled,d=l.isCombine
106Enabled,f=l.isFixedOnPage,p=l.direction,h=l.client,v=l.page,g=l.closest,m=(function(){if(!g)return null;var E=g.scrollSize,P=g.client,C=getMaxScroll({scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,height:P.paddingBox.height,width:P.paddingBox.width});return{pageMarginBox:g.page.marginBox,frameClient:P,scrollSize:E,shouldClipSubject:g.shouldClipSubject,scroll:{initial:g.scroll,current:g.scroll,max:C,diff:{value:origin,displacement:origin}}}})(),y=p==="vertical"?vertical:horizontal,b=getSubject({page:v,withPlaceholder:null,axis:y,frame:m}),w={descriptor:o,isCombineEnabled:d,isFixedOnPage:f,axis:y,isEnabled:u,client:h,page:v,frame:m,subject:b};return w}),getClient=function(o,u){var d=getBox(o);if(!u||o!==u)return d;var f=d.paddingBox.top-u.scrollTop,p=d.paddingBox.left-u.scrollLeft,h=f+u.scrollHeight,v=p+u.scrollWidth,g={top:f,right:v,bottom:h,left:p},m=expand(g,d.border),y=createBox({borderBox:m,margin:d.margin,border:d.border,padding:d.padding});return y},getDimension=(function(l){var o=l.ref,u=l.descriptor,d=l.env,f=l.windowScroll,p=l.direction,h=l.isDropDisabled,v=l.isCombineEnabled,g=l.shouldClipSubject,m=d.closestScrollable,y=getClient(o,m),b=withScroll(y,f),w=(function(){if(!m)return null;var P=getBox(m),C={scrollHeight:m.scrollHeight,scrollWidth:m.scrollWidth};return{client:P,page:withScroll(P,f),scroll:getScroll$1(m),scrollSize:C,shouldClipSubject:g}})(),E=getDroppableDimension({descriptor:u,isEnabled:!h,isCombineEnabled:v,isFixedOnPage:d.isFixedOnPage,direction:p,client:y,page:b,closest:w});return E}),immediate={passive:!1},delayed={passive:!0},getListenerOptions=(function(l){return l.shouldPublishImmediately?immediate:delayed});function useRequiredContext(l){var o=reactExports.useContext(l);return o||invariant$1(),o}var getClosestScrollableFromDrag=function(o){return o&&o.env.closestScrollable||null};function useDroppablePublisher(l){var o=reactExports.useRef(null),u=useRequiredContext(AppContext),d=useUniqueId("droppable"),f=u.registry,p=u.marshal,h=usePrevious(l),v=useMemo(function(){return{id:l.droppableId,type:l.type,mode:l.mode}},[l.droppableId,l.mode,l.type]),g=reactExports.useRef(v),m=useMemo(function(){return memoizeOne(function(D,j){o.current||invariant$1();var M={x:D,y:j};p.updateDroppableScroll(v.id,M)})},[v.id,p]),y=useCallback(function(){var D=o.current;return!D||!D.env.closestScrollable?origin:getScroll$1(D.env.closestScrollable)},[]),b=useCallback(function(){var D=y();m(D.x,D.y)},[y,m]),w=useMemo(function(){return rafSchd(b)},[b]),E=useCallback(function(){var D=o.current,j=getClosestScrollableFromDrag(D);D&&j||invariant$1();var M=D.scrollOptions;if(M.shouldPublishImmediately){b();return}w()},[w,b]),P=useCallback(function(D,j){o.current&&invariant$1();var M=h.current,N=M.getDroppableRef();N||invariant$1();var q=getEnv(N),z={ref:N,descriptor:v,env:q,scrollOptions:j};o.current=z;var H=getDimension({ref:N,descriptor:v,env:q,windowScroll:D,direction:M.direction,isDropDisabled:M.isDropDisabled,isCombineEnabled:M.isCombineEnabled,shouldClipSubject:!M.ignoreContainerClipping}),U=q.closestScrollable;return U&&(U.setAttribute(scrollContainer.contextId,u.contextId),U.addEventListener("scroll",E,getListenerOptions(z.scrollOptions))),H},[u.contextId,v,E,h]),C=useCallback(function(){var D=o.current,j=getClosestScrollableFromDrag(D);return D&&j||invariant$1(),getScroll$1(j)},[]),T=useCallback(function(){var D=o.current;D||invariant$1();var j=getClosestScrollableFromDrag(D);o.current=null,j&&(w.cancel(),j.removeAttribute(scrollContainer.contextId),j.removeEventListener("scroll",E,getListenerOptions(D.scrollOptions)))},[E,w]),O=useCallback(function(D){var j=o.current;j||invariant$1();var M=getClosestScrollableFromDrag(j);M||invariant$1(),M.scrollTop+=D.y,M.scrollLeft+=D.x},[]),x=useMemo(function(){return{getDimensionAndWatchScroll:P,getScrollWhileDragging:C,dragStopped:T,scroll:O}},[T,P,C,O]),A=useMemo(function(){return{uniqueId:d,descriptor:v,callbacks:x}},[x,v,d]);useIsomorphicLayoutEffect$1(function(){return g.current=A.descriptor,f.droppable.register(A),function(){o.current&&T(),f.droppable.unregister(A)}},[x,v,T,A,p,f.droppable]),useIsomorphicLayoutEffect$1(function(){o.current&&p.updateDroppableIsEnabled(g.current.id,!l.isDropDisabled)},[l.isDropDisabled,p]),useIsomorphicLayoutEffect$1(function(){o.current&&p.updateDroppableIsCombine
106Enabled(g.current.id,l.isCombineEnabled)},[l.isCombineEnabled,p])}function noop$2$1(){}var empty={width:0,height:0,margin:noSpacing},getSize=function(o){var u=o.isAnimatingOpenOnMount,d=o.placeholder,f=o.animate;return u||f==="close"?empty:{height:d.client.borderBox.height,width:d.client.borderBox.width,margin:d.client.margin}},getStyle$1=function(o){var u=o.isAnimatingOpenOnMount,d=o.placeholder,f=o.animate,p=getSize({isAnimatingOpenOnMount:u,placeholder:d,animate:f});return{display:d.display,boxSizing:"border-box",width:p.width,height:p.height,marginTop:p.margin.top,marginRight:p.margin.right,marginBottom:p.margin.bottom,marginLeft:p.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:f!=="none"?transitions$1.placeholder:null}};function Placeholder(l){var o=reactExports.useRef(null),u=useCallback(function(){o.current&&(clearTimeout(o.current),o.current=null)},[]),d=l.animate,f=l.onTransitionEnd,p=l.onClose,h=l.contextId,v=reactExports.useState(l.animate==="open"),g=v[0],m=v[1];reactExports.useEffect(function(){return g?d!=="open"?(u(),m(!1),noop$2$1):o.current?noop$2$1:(o.current=setTimeout(function(){o.current=null,m(!1)}),u):noop$2$1},[d,g,u]);var y=useCallback(function(w){w.propertyName==="height"&&(f(),d==="close"&&p())},[d,p,f]),b=getStyle$1({isAnimatingOpenOnMount:g,animate:l.animate,placeholder:l.placeholder});return React.createElement(l.placeholder.tagName,{style:b,"data-rbd-placeholder-context-id":h,onTransitionEnd:y,ref:l.innerRef})}var Placeholder$1=React.memo(Placeholder),DroppableContext=React.createContext(null),AnimateInOut=(function(l){_inheritsLoose(o,l);function o(){for(var d,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return d=l.call.apply(l,[this].concat(p))||this,d.state={isVisible:!!d.props.on,data:d.props.on,animate:d.props.shouldAnimate&&d.props.on?"open":"none"},d.onClose=function(){d.state.animate==="close"&&d.setState({isVisible:!1})},d}o.getDerivedStateFromProps=function(f,p){return f.shouldAnimate?f.on?{isVisible:!0,data:f.on,animate:"open"}:p.isVisible?{isVisible:!0,data:p.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!f.on,data:f.on,animate:"none"}};var u=o.prototype;return u.render=function(){if(!this.state.isVisible)return null;var f={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(f)},o})(React.PureComponent),zIndexOptions={dragging:5e3,dropAnimating:4500},getDraggingTransition=function(o,u){return u?transitions$1.drop(u.duration):o?transitions$1.snap:transitions$1.fluid},getDraggingOpacity=function(o,u){return o?u?combine.opacity.drop:combine.opacity.combining:null},getShouldDraggingAnimate=function(o){return o.forceShouldAnimate!=null?o.forceShouldAnimate:o.mode==="SNAP"};function getDraggingStyle(l){var o=l.dimension,u=o.client,d=l.offset,f=l.combineWith,p=l.dropping,h=!!f,v=getShouldDraggingAnimate(l),g=!!p,m=g?transforms.drop(d,h):transforms.moveTo(d),y={position:"fixed",top:u.marginBox.top,left:u.marginBox.left,boxSizing:"border-box",width:u.borderBox.width,height:u.borderBox.height,transition:getDraggingTransition(v,p),transform:m,opacity:getDraggingOpacity(h,g),zIndex:g?zIndexOptions.dropAnimating:zIndexOptions.dragging,pointerEvents:"none"};return y}function getSecondaryStyle(l){return{transform:transforms.moveTo(l.offset),transition:l.shouldAnimateDisplacement?null:"none"}}function getStyle$1$1(l){return l.type==="DRAGGING"?getDraggingStyle(l):getSecondaryStyle(l)}function getDimension$1(l,o,u){u===void 0&&(u=origin);var d=window.getComputedStyle(o),f=o.getBoundingClientRect(),p=calculateBox(f,d),h=withScroll(p,u),v={client:p,tagName:o.tagName.toLowerCase(),display:d.display},g={x:p.marginBox.width,y:p.marginBox.height},m={descriptor:l,placeholder:v,displaceBy:g,client:p,page:h};return m}function useDraggablePublisher(l){var o=useUniqueId("draggable"),u=l.descriptor,d=l.registry,f=l.getDraggableRef,p=l.canDragInteractiveElements,h=l.shouldRespectForcePress,v=l.isEnabled,g=useMemo(function(){return{canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:v}},[p,v,h]),m=useCallback(function(E){var P=f();return P||invariant$1(),getDimension$1(u,P,E)},[u,f]),y=useMemo(function(){return{uniqueId:o,descriptor:u,options:g,getDimension:m}}
106,[u,m,g,o]),b=reactExports.useRef(y),w=reactExports.useRef(!0);useIsomorphicLayoutEffect$1(function(){return d.draggable.register(b.current),function(){return d.draggable.unregister(b.current)}},[d.draggable]),useIsomorphicLayoutEffect$1(function(){if(w.current){w.current=!1;return}var E=b.current;b.current=y,d.draggable.update(y,E)},[y,d.draggable])}function preventHtml5Dnd(l){l.preventDefault()}function Draggable(l){var o=reactExports.useRef(null),u=useCallback(function(z){o.current=z},[]),d=useCallback(function(){return o.current},[]),f=useRequiredContext(AppContext),p=f.contextId,h=f.dragHandleUsageInstructionsId,v=f.registry,g=useRequiredContext(DroppableContext),m=g.type,y=g.droppableId,b=useMemo(function(){return{id:l.draggableId,index:l.index,type:m,droppableId:y}},[l.draggableId,l.index,m,y]),w=l.children,E=l.draggableId,P=l.isEnabled,C=l.shouldRespectForcePress,T=l.canDragInteractiveElements,O=l.isClone,x=l.mapped,A=l.dropAnimationFinished;if(!O){var D=useMemo(function(){return{descriptor:b,registry:v,getDraggableRef:d,canDragInteractiveElements:T,shouldRespectForcePress:C,isEnabled:P}},[b,v,d,T,C,P]);useDraggablePublisher(D)}var j=useMemo(function(){return P?{tabIndex:0,role:"button","aria-describedby":h,"data-rbd-drag-handle-draggable-id":E,"data-rbd-drag-handle-context-id":p,draggable:!1,onDragStart:preventHtml5Dnd}:null},[p,h,E,P]),M=useCallback(function(z){x.type==="DRAGGING"&&x.dropping&&z.propertyName==="transform"&&A()},[A,x]),N=useMemo(function(){var z=getStyle$1$1(x),H=x.type==="DRAGGING"&&x.dropping?M:null,U={innerRef:u,draggableProps:{"data-rbd-draggable-context-id":p,"data-rbd-draggable-id":E,style:z,onTransitionEnd:H},dragHandleProps:j};return U},[p,j,E,x,M,u]),q=useMemo(function(){return{draggableId:b.id,type:b.type,source:{index:b.index,droppableId:b.droppableId}}},[b.droppableId,b.id,b.index,b.type]);return w(N,x.snapshot,q)}var isStrictEqual=(function(l,o){return l===o}),whatIsDraggedOverFromResult=(function(l){var o=l.combine,u=l.destination;return u?u.droppableId:o?o.droppableId:null}),getCombineWithFromResult=function(o){return o.combine?o.combine.draggableId:null},getCombineWithFromImpact=function(o){return o.at&&o.at.type==="COMBINE"?o.at.combine.draggableId:null};function getDraggableSelector(){var l=memoizeOne(function(f,p){return{x:f,y:p}}),o=memoizeOne(function(f,p,h,v,g){return{isDragging:!0,isClone:p,isDropAnimating:!!g,dropAnimation:g,mode:f,draggingOver:h,combineWith:v,combineTargetFor:null}}),u=memoizeOne(function(f,p,h,v,g,m,y){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:g,combineWith:m,mode:p,offset:f,dimension:h,forceShouldAnimate:y,snapshot:o(p,v,g,m,null)}}}),d=function(p,h){if(p.isDragging){if(p.critical.draggable.id!==h.draggableId)return null;var v=p.current.client.offset,g=p.dimensions.draggables[h.draggableId],m=whatIsDraggedOver(p.impact),y=getCombineWithFromImpact(p.impact),b=p.forceShouldAnimate;return u(l(v.x,v.y),p.movementMode,g,h.isClone,m,y,b)}if(p.phase==="DROP_ANIMATING"){var w=p.completed;if(w.result.draggableId!==h.draggableId)return null;var E=h.isClone,P=p.dimensions.draggables[h.draggableId],C=w.result,T=C.mode,O=whatIsDraggedOverFromResult(C),x=getCombineWithFromResult(C),A=p.dropDuration,D={duration:A,curve:curves.drop,moveTo:p.newHomeClientOffset,opacity:x?combine.opacity.drop:null,scale:x?combine.scale.drop:null};return{mapped:{type:"DRAGGING",offset:p.newHomeClientOffset,dimension:P,dropping:D,draggingOver:O,combineWith:x,mode:T,forceShouldAnimate:null,snapshot:o(T,E,O,x,D)}}}return null};return d}function getSecondarySnapshot(l){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:l,combineWith:null}}var atRest={mapped:{type:"SECONDARY",offset:origin,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};function getSecondarySelector(){var l=memoizeOne(function(h,v){return{x:h,y:v}}),o=memoizeOne(getSecondarySnapshot),u=memoizeOne(function(h,v,g){return v===void 0&&(v=null),{mapped:{type:"SECONDARY",offset:h,combineTargetFor:v,shouldAnimateDisplacement:g,snapshot:o(v)}}}),d=function(v){return v?u(origin,v,!0):null},f=function(v,g,m,y){var b=m.displaced.visible[v],w=!!(y.inVirtualList&&y.effected[v]),E=tryGetCombine(m),P=E&&E.draggableId===v?g:null;if(!b){if(!w)return d(P);if(m.displaced.invisible[v])return null;var C=negate(y.displacedBy.point),T=l(C.x,C.y);return u(T,P,!0)}if(w)return d(P);var O=m.displacedBy.point,x=l(O.x,O.y);return u(x,P,b.shouldAnimate)},p=function(v,g){if(v.isDragging)return v.critical.draggable.id===g.draggableId?null:f(g.draggableId,v.critical.draggable.id,v.impact,v.afterCritical);if(v.phase==="DROP_ANIMATING"){var m=v.completed;return m.result.draggableId===g.draggableId?null:f(g.draggableId,m.result.draggableId,m.impact,m.afterCritical)}return null};return p}var makeMapStateToProps=function(){var o=getDraggableSelector(),u=getSecondarySelector(),d=function(p,h){return o(p,h)||u(p,h)||atRest};return d},mapDispatchToProps$A={dropAnimationFinished},ConnectedDraggable=connect(makeMapStateToProps,mapDispatchToProps$A,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Draggable);function PrivateDraggable(l){var o=useRequiredContext(DroppableContext),u=o.isUsingCloneFor;return u===l.draggableId&&!l.isClone?null:React.createElement(ConnectedDraggable,l)}function PublicDraggable(l){var o=typeof l.isDragDisabled=="boolean"?!l.isDragDisabled:!0,u=!!l.disableInteractiveElementBlocking,d=!!l.shouldRespectForcePress;return React.createElement(PrivateDraggable,_extends$v({},l,{isClone:!1,isEnabled:o,canDragInteractiveElements:u,shouldRespectForcePress:d}))}function Droppable(l){var o=reactExports.useContext(AppContext);o||invariant$1();var u=o.contextId,d=o.isMovementAllowed,f=reactExports.useRef(null),p=reactExports.useRef(null),h=l.children,v=l.droppableId,g=l.type,m=l.mode,y=l.direction,b=l.ignoreContainerClipping,w=l.isDropDisabled,E=l.isCombine
106Enabled,P=l.snapshot,C=l.useClone,T=l.updateViewportMaxScroll,O=l.getContainerForClone,x=useCallback(function(){return f.current},[]),A=useCallback(function(U){f.current=U},[]);useCallback(function(){return p.current},[]);var D=useCallback(function(U){p.current=U},[]),j=useCallback(function(){d()&&T({maxScroll:getMaxWindowScroll()})},[d,T]);useDroppablePublisher({droppableId:v,type:g,mode:m,direction:y,isDropDisabled:w,isCombineEnabled:E,ignoreContainerClipping:b,getDroppableRef:x});var M=React.createElement(AnimateInOut,{on:l.placeholder,shouldAnimate:l.shouldAnimatePlaceholder},function(U){var F=U.onClose,B=U.data,G=U.animate;return React.createElement(Placeholder$1,{placeholder:B,onClose:F,innerRef:D,animate:G,contextId:u,onTransitionEnd:j})}),N=useMemo(function(){return{innerRef:A,placeholder:M,droppableProps:{"data-rbd-droppable-id":v,"data-rbd-droppable-context-id":u}}},[u,v,M,A]),q=C?C.dragging.draggableId:null,z=useMemo(function(){return{droppableId:v,type:g,isUsingCloneFor:q}},[v,q,g]);function H(){if(!C)return null;var U=C.dragging,F=C.render,B=React.createElement(PrivateDraggable,{draggableId:U.draggableId,index:U.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(G,Q){return F(G,Q,U)});return ReactDOM.createPortal(B,O())}return React.createElement(DroppableContext.Provider,{value:z},h(N,P),H())}var isMatchingType=function(o,u){return o===u.droppable.type},getDraggable=function(o,u){return u.draggables[o.draggable.id]},makeMapStateToProps$1=function(){var o={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},u=_extends$v({},o,{shouldAnimatePlaceholder:!1}),d=memoizeOne(function(h){return{draggableId:h.id,type:h.type,source:{index:h.index,droppableId:h.droppableId}}}),f=memoizeOne(function(h,v,g,m,y,b){var w=y.descriptor.id,E=y.descriptor.droppableId===h;if(E){var P=b?{render:b,dragging:d(y.descriptor)}:null,C={isDraggingOver:g,draggingOverWith:g?w:null,draggingFromThisWith:w,isUsingPlaceholder:!0};return{placeholder:y.placeholder,shouldAnimatePlaceholder:!1,snapshot:C,useClone:P}}if(!v)return u;if(!m)return o;var T={isDraggingOver:g,draggingOverWith:w,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:y.placeholder,shouldAnimatePlaceholder:!0,snapshot:T,useClone:null}}),p=function(v,g){var m=g.droppableId,y=g.type,b=!g.isDropDisabled,w=g.renderClone;if(v.isDragging){var E=v.critical;if(!isMatchingType(y,E))return u;var P=getDraggable(E,v.dimensions),C=whatIsDraggedOver(v.impact)===m;return f(m,b,C,C,P,w)}if(v.phase==="DROP_ANIMATING"){var T=v.completed;if(!isMatchingType(y,T.critical))return u;var O=getDraggable(T.critical,v.dimensions);return f(m,b,whatIsDraggedOverFromResult(T.result)===m,whatIsDraggedOver(T.impact)===m,O,w)}if(v.phase==="IDLE"&&v.completed&&!v.shouldFlush){var x=v.completed;if(!isMatchingType(y,x.critical))return u;var A=whatIsDraggedOver(x.impact)===m,D=!!(x.impact.at&&x.impact.at.type==="COMBINE"),j=x.critical.droppable.id===m;return A?D?o:u:j?o:u}return u};return p},mapDispatchToProps$1$1={updateViewportMaxScroll};function getBody$1(){return document.body||invariant$1(),document.body}var defaultProps$1={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody$1},ConnectedDroppable=connect(makeMapStateToProps$1,mapDispatchToProps$1$1,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Droppable);ConnectedDroppable.defaultProps=defaultProps$1;function ownKeys$O(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$O(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$O(Object(u),!0).forEach(function(d){_defineProperty$W(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$O(Object(u)).forEac
106h(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$W(l,o,u){return(o=_toPropertyKey$1Z(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$1D(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1y(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1Z(d.key),d)}}function _createClass$1y(l,o,u){return o&&_defineProperties$1y(l.prototype,o),u&&_defineProperties$1y(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1Z(l){var o=_toPrimitive$1Z(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1Z(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$11(l,o,u){return o=_getPrototypeOf$13(o),_possibleConstructorReturn$17(l,_isNativeReflectConstruct$11()?Reflect.construct(o,u||[],_getPrototypeOf$13(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$17(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$13(l)}function _assertThisInitialized$13(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$11(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$11=function(){return!!l})()}function _getPrototypeOf$13(l){return _getPrototypeOf$13=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$13(l)}function _inherits$17(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$13(l,o)}function _setPrototypeOf$13(l,o){return _setPrototypeOf$13=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$13(l,o)}function _slicedToArray$i(l,o){return _arrayWithHoles$i(l)||_iterableToArrayLimit$i(l,o)||_unsupportedIterableToArray$r(l,o)||_nonIterableRest$i()}function _nonIterableRest$i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
107In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$r(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$r(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$r(l,o):void 0}}function _arrayLikeToArray$r(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$i(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$i(l){if(Array.isArray(l))return l}var reorder=function(o,u,d){var f=Array.from(o),p=f.splice(u,1),h=_slicedToArray$i(p,1),v=h[0];return f.splice(d,0,v),f},CanvasLayers$1=(function(l){function o(u){var d;return _classCallCheck$1D(this,o),d=_callSuper$11(this,o,[u]),d.droppableId=v4(),d.onDragEnd=d.onDragEnd.bind(d),d.handleOpacityChange=d.handleOpacityChange.bind(d),d.setLayerVisibility=d.setLayerVisibility.bind(d),d.moveToTop=d.moveToTop.bind(d),d}return _inherits$17(o,l),_createClass$1y(o,[{key:"handleOpacityChange",value:function(d,f){var p=this.props,h=p.canvasId,v=p.updateLayers,g=p.windowId,m=_defineProperty$W({},d,{opacity:f/100});v(g,h,m)}},{key:"onDragEnd",value:function(d){var f=this.props,p=f.canvasId,h=f.layers,v=f.updateLayers,g=f.windowId;if(d.destination&&d.destination.droppableId===this.droppableId&&d.source.droppableId===this.droppableId){var m=reorder(h.map(function(b){return b.id}),d.source.index,d.destination.index),y=h.reduce(function(b,w){return b[w.id]={index:m.indexOf(w.id)},b},{});v(g,p,y)}}},{key:"setLayerVisibility",value:function(d,f){var p=this.props,h=p.canvasId,v=p.updateLayers,g=p.windowId,m=_defineProperty$W({},d,{visibility:f});v(g,h,m)}},{key:"moveToTop",value:function(d){var f=this.props,p=f.canvasId,h=f.layers,v=f.updateLayers,g=f.windowId,m=reorder(h.map(function(b){return b.id}),h.findIndex(function(b){return b.id===d}),0),y=h.reduce(function(b,w){return b[w.id]={index:m.indexOf(w.id)},b},{});v(g,p,y)}},{key:"renderLayer",value:function(d,f){var p=this,h=this.props,v=h.classes,g=h.layerMetadata,m=h.t,y={height:void 0,width:50},b=y.width,w=y.height,E=_objectSpread$O({opacity:1,visibility:!0},(g||{})[d.id]);return React.createElement("div",{style:{flex:1}},React.createElement("div",{style:{alignItems:"flex-start",display:"flex"}},React.createElement(IIIFThumbnail,{maxHeight:w,maxWidth:b,resource:d,classes:{image:v.image,root:v.thumbnail}}),React.createElement(Typography$1,{className:v.label,component:"div",variant:"body1"},o.getUseableLabel(d,f),React.createElement("div",null,React.createElement(MiradorMenuButton$3,{"aria-label":m(E.visibility?"layer_hide":"layer_show"),edge:"start",size:"small",onClick:function(){p.setLayerVisibility(d.id,!E.visibility)}},E.visibility?React.createElement(VisibilityIcon,null):React.createElement(VisibilityOffIcon,null)),E.index!==0&&React.createElement(MiradorMenuButton$3,{"aria-label":m("layer_moveToTop"),size:"small",onClick:function(){p.moveToTop(d.id)}},React.createElement(MoveToTopIcon,null))))),React.createElement("div",{style:{alignItems:"center",display:"flex"}},React.createElement(Tooltip$1,{title:m("layer_opacity")}
107,React.createElement(OpacityIcon,{className:v.opacityIcon,color:E.visibility?"inherit":"disabled",fontSize:"small"})),React.createElement(Input$2,{classes:{input:v.opacityInput},disabled:!E.visibility,value:Math.round(E.opacity*100),type:"number",min:0,max:100,onChange:function(C){return p.handleOpacityChange(d.id,C.target.value)},endAdornment:React.createElement(InputAdornment$1,{disableTypography:!0,position:"end"},React.createElement(Typography$1,{variant:"caption"},"%")),inputProps:{"aria-label":m("layer_opacity")}}),React.createElement(Slider$2,{className:v.slider,disabled:!E.visibility,value:E.opacity*100,onChange:function(C,T){return p.handleOpacityChange(d.id,T)}})))}},{key:"renderDraggableLayer",value:function(d,f){var p=this,h=this.props,v=h.classes,g=h.t;return React.createElement(PublicDraggable,{key:d.id,draggableId:d.id,index:f},function(m,y){return React.createElement(ListItem$1,Object.assign({ref:m.innerRef},m.draggableProps,{component:"li",className:clsx$1(v.listItem,_defineProperty$W({},v.dragging,y.isDragging)),disableGutters:!0,key:d.id}),React.createElement("div",Object.assign({},m.dragHandleProps,{className:v.dragHandle}),React.createElement(Tooltip$1,{title:g("layer_move")},React.createElement(DragHandleIcon,null))),p.renderLayer(d,f))})}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.index,v=f.label,g=f.layers,m=f.t,y=f.totalSize;return React.createElement(React.Fragment,null,y>1&&React.createElement(Typography$1,{className:p.sectionHeading,variant:"overline"},m("annotationCanvasLabel",{context:"".concat(h+1,"/").concat(y),label:v})),React.createElement(DragDropContext,{onDragEnd:this.onDragEnd},React.createElement(ConnectedDroppable,{droppableId:this.droppableId},function(b,w){return React.createElement(List$1,Object.assign({className:p.list},b.droppableProps,{ref:b.innerRef}),g&&g.map(function(E,P){return d.renderDraggableLayer(E,P)}),b.placeholder)})))}}],[{key:"getUseableLabel",value:function(d,f){return d&&d.getLabel&&d.getLabel().length>0?d.getLabel().getValue():String(f+1)}}])})(reactExports.Component);CanvasLayers$1.defaultProps={classes:{},layerMetadata:void 0};function ownKeys$N(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$N(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$N(Object(u),!0).forEach(function(d){_defineProperty$V(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$N(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$V(l,o,u){return(o=_toPropertyKey$1Y(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1Y(l){var o=_toPrimitive$1Y(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1Y(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$P=function(o,u){var d=u.canvasId,f=u.windowId;return{label:getCanvasLabel$1(o,{canvasId:d,windowId:f}),layerMetadata:getLayers$1(o,{canvasId:d,windowId:f}),layers:getSortedLayers$1(o,{canvasId:d,windowId:f})}},mapDispatchToProps$z={updateLayers:updateLayers$1},styles$R=function(o){return{dragging:{},dragHandle:{alignItems:"center",borderRight:"0.5px solid ".concat(o.palette.divider),display:"flex",flex:1,flexDirection:"row",marginBottom:-1*o.spacing(2)+.5,marginRight:o.spacing(1),marginTop:-1*o.spacing(2),maxWidth:o.spacing(3),width:o.spacing(3)},image:{borderBottom:"1px solid ".concat(o.palette.divider)},label:{paddingLeft:o.spacing(1)},list:{paddingTop:0},listItem:{"& $dragHandle":{"&:hover":{backgroundColor:o.palette.action.hover},backgroundColor:o.palette.shades.light},"&$dragging":{"& $dragHandle, & $dragHandle:hover":{backgroundColor:o.palette.action.selected},backgroundColor:o.palette.action.hover},alignItems:"stretch",borderBottom:"0.5px solid ".concat(o.palette.divider),cursor:"pointer",paddingBottom:o.spacing(2),paddingRight:o.spacing(1),paddingTop:o.spacing(2)},opacityIcon:{marginRight:o.spacing(.5)},opacityInput:_objectSpread$N(_objectSpread$N({},o.typography.caption),{},{"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},"-moz-appearance":"textfield",textAlign:"right",width:"3ch"}),sectionHeading:{paddingLeft:o.spacing(2),paddingRight:o.spacing(1),paddingTop:o.spacing(2)},slider:{marginLeft:o.spacing(2),marginRight:o.spacing(2),maxWidth:150},thumbnail:{minWidth:50}}},enhance$Z=compose$2(withTranslation(),withStyles$2(styles$R),connect(mapStateToProps$P,mapDispatchToProps$z));const CanvasLayers=enhance$Z(CanvasLayers$1);function _classCallCheck$1C(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1x(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1X(d.key),d)}}function _createClass$1x(l,o,u){return o&&_defineProperties$1x(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1X(l){var o=_toPrimitive$1X(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1X(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$10(l,o,u){return o=_getPrototypeOf$12(o),_possibleConstructorReturn$16(l,_isNativeReflectConstruct$10()?Reflect.construct(o,u||[],_getPrototypeOf$12(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$16(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$12(l)}function _assertThisInitialized$12(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$10(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$10=function(){return!!l})()}function _getPrototypeOf$12(l){return _getPrototypeOf$12=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
107)},_getPrototypeOf$12(l)}function _inherits$16(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$12(l,o)}function _setPrototypeOf$12(l,o){return _setPrototypeOf$12=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$12(l,o)}var LayersPanel$1=(function(l){function o(){return _classCallCheck$1C(this,o),_callSuper$10(this,o,arguments)}return _inherits$16(o,l),_createClass$1x(o,[{key:"render",value:function(){var d=this.props,f=d.canvasIds,p=d.id,h=d.t,v=d.windowId;return React.createElement(CompanionWindow,{title:h("layers"),id:p,windowId:v},f.map(function(g,m){return React.createElement(CanvasLayers,{canvasId:g,index:m,key:g,totalSize:f.length,windowId:v})}))}}])})(reactExports.Component);LayersPanel$1.defaultProps={canvasIds:[]};var mapStateToProps$O=function(o,u){u.id;var d=u.windowId;return{canvasIds:getVisibleCanvasIds$1(o,{windowId:d})}},styles$Q=function(o){return{}},enhance$Y=compose$2(withTranslation(),withStyles$2(styles$Q),connect(mapStateToProps$O),withPlugins$1("LayersPanel"));const LayersPanel=enhance$Y(LayersPanel$1);function _classCallCheck$1B(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1w(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1W(d.key),d)}}function _createClass$1w(l,o,u){return o&&_defineProperties$1w(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1W(l){var o=_toPrimitive$1W(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1W(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$$(l,o,u){return o=_getPrototypeOf$11(o),_possibleConstructorReturn$15(l,_isNativeReflectConstruct$$()?Reflect.construct(o,u||[],_getPrototypeOf$11(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$15(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$11(l)}function _assertThisInitialized$11(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$$(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$$=function(){return!!l})()}function _getPrototypeOf$11(l){return _getPrototypeOf$11=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$11(l)}function _inherits$15(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$11(l,o)}function _setPrototypeOf$11(l,o){return _setPrototypeOf$11=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$11(l,o)}var CustomPanel$1=(function(l){function o(){return _classCallCheck$1B(this,o),_callSuper$$(this,o,arguments)}return _inherits$15(o,l),_createClass$1w(o,[{key:"render",value:function(){var d=this.props,f=d.id,p=d.children,h=d.t,v=d.title,g=d.windowId;return React.createElement(CompanionWindow,{title:h(v),id:f,windowId:g},p)}}])})(reactExports.Component);CustomPanel$1.defaultProps={children:null};var mapStateToProps$N=function(o,u){return u.id,u.windowId,{}},styles$P=function(o){return{}},enhance$X=compose$2(withTranslation(),withStyles$2(styles$P),connect(mapStateToProps$N),withPlugins$1("CustomPanel"));const CustomPanel=enhance$X(CustomPanel$1);var ArrowUpwardSharp={},hasRequiredArrowUpwardSharp;function requireArrowUpwardSharp(){if(hasRequiredArrowUpwardSharp)return ArrowUpwardSharp;hasRequiredArrowUpwardSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ArrowUpwardSharp,"__esModule",{value:!0}),ArrowUpwardSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpwardSharp");return ArrowUpwardSharp.default=f,ArrowUpwardSharp}var ArrowUpwardSharpExports=requireArrowUpwardSharp();const ArrowUpwardIcon=getDefaultExportFromCjs(ArrowUpwardSharpExports);var _excluded$9=["manifest"];function _toConsumableArray$l(l){return _arrayWithoutHoles$l(l)||_iterableToArray$l(l)||_unsupportedIterableToArray$q(l)||_nonIterableSpread$l()}function _nonIterableSpread$l(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
108In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$q(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$q(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$q(l,o):void 0}}function _iterableToArray$l(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$l(l){if(Array.isArray(l))return _arrayLikeToArray$q(l)}function _arrayLikeToArray$q(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _objectWithoutProperties$b(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$9(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$9(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function _classCallCheck$1A(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1v(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1V(d.key),d)}}function _createClass$1v(l,o,u){return o&&_defineProperties$1v(l.prototype,o),u&&_defineProperties$1v(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1V(l){var o=_toPrimitive$1V(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1V(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$_(l,o,u){return o=_getPrototypeOf$10(o),_possibleConstructorReturn$14(l,_isNativeReflectConstruct$_()?Reflect.construct(o,u||[],_getPrototypeOf$10(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$14(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$10(l)}function _assertThisInitialized$10(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$_(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$_=function(){return!!l})()}function _getPrototypeOf$10(l){return _getPrototypeOf$10=Object.
108setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$10(l)}function _inherits$14(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$10(l,o)}function _setPrototypeOf$10(l,o){return _setPrototypeOf$10=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$10(l,o)}var WindowSideBarCollectionPanel$1=(function(l){function o(){return _classCallCheck$1A(this,o),_callSuper$_(this,o,arguments)}return _inherits$14(o,l),_createClass$1v(o,[{key:"isMultipart",value:function(){var d=this.props.collection;if(!d)return!1;var f=d.getProperty("behavior");return Array.isArray(f)?f.includes("multi-part"):f==="multi-part"}},{key:"render",value:function(){var d=this.props,f=d.canvasNavigation,p=d.classes,h=d.collectionPath,v=d.collection,g=d.id,m=d.isFetching,y=d.manifestId,b=d.parentCollection,w=d.updateCompanionWindow,E=d.updateWindow,P=d.t,C=d.variant,T=d.windowId,O=function(A){var D=A.manifest,j=_objectWithoutProperties$b(A,_excluded$9);return React.createElement(MenuItem$1,Object.assign({className:p.menuItem,alignItems:"flex-start",button:!0,component:"li",selected:y===D.id},j),C==="thumbnail"&&React.createElement(ListItemIcon$1,null,React.createElement(IIIFThumbnail,{resource:D,maxHeight:f.height,maxWidth:f.width})),React.createElement(ListItemText$1,null,o.getUseableLabel(D)))};return React.createElement(CompanionWindow,{title:P(this.isMultipart()?"multipartCollection":"collection"),windowId:T,id:g,titleControls:React.createElement(React.Fragment,null,b&&React.createElement(List$1,null,React.createElement(ListItem$1,{button:!0,onClick:function(){return w({collectionPath:h.slice(0,-1)})}},React.createElement(ListItemIcon$1,null,React.createElement(ArrowUpwardIcon,null)),React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body1"}},o.getUseableLabel(b)))),React.createElement(Typography$1,{variant:"h6"},v&&o.getUseableLabel(v),m&&React.createElement(Skeleton$1,{className:p.placeholder,variant:"text"})))},React.createElement(MenuList,null,m&&React.createElement(MenuItem$1,null,React.createElement(ListItemText$1,null,React.createElement(Skeleton$1,{className:p.placeholder,variant:"text"}),React.createElement(Skeleton$1,{className:p.placeholder,variant:"text"}),React.createElement(Skeleton$1,{className:p.placeholder,variant:"text"}))),v&&v.getCollections().map(function(x){var A=function(){w({collectionPath:[].concat(_toConsumableArray$l(h),[x.id])})};return React.createElement(O,{key:x.id,onClick:A,manifest:x})}),v&&v.getManifests().map(function(x){var A=function(){E({canvasId:null,collectionPath:h,manifestId:x.id}),w({multipart:!1})};return React.createElement(O,{key:x.id,onClick:A,manifest:x})})))}}],[{key:"getUseableLabel",value:function(d,f){return d&&d.getLabel&&d.getLabel().length>0?d.getLabel().getValue():d.id}}])})(reactExports.Component);WindowSideBarCollectionPanel$1.defaultProps={collection:null,collectionPath:[],error:null,isFetching:!1,parentCollection:null,ready:!1,t:function(o){return o},variant:null};var mapStateToProps$M=function(o,u){var d=u.id,f=u.windowId,p=getWindow$2(o,{windowId:f}),h=getCompanionWindow$1(o,{companionWindowId:d}),v=h.collectionPath,g=v||p.collectionPath,m=g&&g[g.length-1],y=g&&g[g.length-2],b=m&&getManifest$1(o,{manifestId:m}),w=y&&getManifest$1(o,{manifestId:y}),E=getManifest$1(o,{windowId:f});return{canvasNavigation:o.config.canvasNavigation,collection:b&&getManifestoInstance$1(o,{manifestId:b.id}),collectionId:m,collectionPath:g,error:b&&b.error,isFetching:b&&b.isFetching,manifestId:E&&E.id,parentCollection:w&&getManifestoInstance$1(o,{manifestId:w.id}),ready:b&&!!b.json,variant:h.variant||getDefaultSidebarVariant$1(o,{windowId:f})}},mapDispatchToProps$y=function(o,u){var d=u.id,f=u.windowId;return{updateCompanionWindow:function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return o(updateCompanionWindow$1.apply(actions$2,[f,d].concat(v)))},updateWindow:function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return o(updateWindow$1.apply(actions$2,[f].concat(v)))}}},styles$O=function(o){return{label:{paddingLeft:o.spacing(1)},menuItem:{borderBottom:"0.5px solid ".concat(o.palette.divider),paddingRight:o.spacing(1),whiteSpace:"normal"}}},enhance$W=compose$2(withStyles$2(styles$O),withTranslation(),connect(mapStateToProps$M,mapDispatchToProps$y),withPlugins$1("WindowSideBarCollectionPanel"));const WindowSideBarCollectionPanel=enhance$W(WindowSideBarCollectionPanel$1);var map={annotations:WindowSideBarAnnotationsPanel,attribution:AttributionPanel,canvas:WindowSideBarCanvasPanel,collection:WindowSideBarCollectionPanel,custom:CustomPanel,
108info:WindowSideBarInfoPanel,layers:LayersPanel,search:SearchPanel,thumbnailNavigation:ThumbnailNavigation};function ownKeys$M(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$M(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$M(Object(u),!0).forEach(function(d){_defineProperty$U(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$M(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$U(l,o,u){return(o=_toPropertyKey$1U(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1U(l){var o=_toPrimitive$1U(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1U(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _toConsumableArray$k(l){return _arrayWithoutHoles$k(l)||_iterableToArray$k(l)||_unsupportedIterableToArray$p(l)||_nonIterableSpread$k()}function _nonIterableSpread$k(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
109In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$p(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$p(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$p(l,o):void 0}}function _iterableToArray$k(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$k(l){if(Array.isArray(l))return _arrayLikeToArray$p(l)}function _arrayLikeToArray$p(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function createTargetToPluginMapping(l){return l.reduce(function(o,u){return update$4(o,[u.target,u.mode],function(d){return[].concat(_toConsumableArray$k(d||[]),[u])})},{})}function connectPluginsToStore(l){return l.map(function(o){return _objectSpread$M(_objectSpread$M({},o),{},{component:connectPluginComponent(o)})})}function addPluginsToCompanionWindowsRegistry(l){return l.filter(function(o){return o.companionWindowKey}).forEach(function(o){map[o.companionWindowKey]=o.component}),map}function connectPluginComponent(l){return!l.mapStateToProps&&!l.mapDispatchToProps?l.component:connect.apply(void 0,[l.mapStateToProps,l.mapDispatchToProps].concat(_toConsumableArray$k(l.connectOptions||[])))(l.component)}function _slicedToArray$h(l,o){return _arrayWithHoles$h(l)||_iterableToArrayLimit$h(l,o)||_unsupportedIterableToArray$o(l,o)||_nonIterableRest$h()}function _nonIterableRest$h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
110In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$o(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$o(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$o(l,o):void 0}}function _arrayLikeToArray$o(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$h(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$h(l){if(Array.isArray(l))return l}function PluginProvider(l){var o=l.plugins,u=l.children,d=reactExports.useState({}),f=_slicedToArray$h(d,2),p=f[0],h=f[1];return reactExports.useEffect(function(){var v=connectPluginsToStore(o);addPluginsToCompanionWindowsRegistry(v),h(createTargetToPluginMapping(v))},[o]),React.createElement(PluginContext$1.Provider,{value:p},u)}PluginProvider.defaultProps={children:null,plugins:[]};var dist$1={},key={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},webkit=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],moz=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],ms=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],document$1=typeof window<"u"&&typeof window.document<"u"?window.document:{},vendor="fullscreenEnabled"in document$1&&Object.keys(key)||webkit[0]in document$1&&webkit||moz[0]in document$1&&moz||ms[0]in document$1&&ms||[],fscreen={requestFullscreen:function(l){return l[vendor[key.requestFullscreen]]()},requestFullscreenFunction:function(l){return l[vendor[key.requestFullscreen]]},get exitFullscreen(){return document$1[vendor[key.exitFullscreen]].bind(document$1)},get fullscreenPseudoClass(){return":"+vendor[key.fullscreen]},addEventListener:function(l,o,u){return document$1.addEventListener(vendor[key[l]],o,u)},removeEventListener:function(l,o,u){return document$1.removeEventListener(vendor[key[l]],o,u)},get fullscreenEnabled(){return!!document$1[vendor[key.fullscreenEnabled]]},set fullscreenEnabled(l){},get fullscreenElement(){return document$1[vendor[key.fullscreenElement]]},set fullscreenElement(l){},get onfullscreenchange(){return document$1[("on"+vendor[key.fullscreenchange]).toLowerCase()]},set onfullscreenchange(l){return document$1[("on"+vendor[key.fullscreenchange]).toLowerCase()]=l},get onfullscreenerror(){return document$1[("on"+vendor[key.fullscreenerror]).toLowerCase()]},set onfullscreenerror(l){return document$1[("on"+vendor[key.fullscreenerror]).toLowerCase()]=l}};const fscreen_esm=Object.freeze(Object.defineProperty({__proto__:null,default:fscreen},Symbol.toStringTag,{value:"Module"})),require$$2$6=getAugmentedNamespace(fscreen_esm);var hasRequiredDist$1;function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1,Object.defineProperty(dist$1,"__esModule",{value:!0});var l=(function(){function w(E,P){for(var C=0;C<P.length;C++){var T=P[C];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}return function(E,P,C){return P&&w(E.prototype,P),C&&w(E,C),E}})(),o=requireReact(),u=v(o),d=requirePropTypes$1(),f=v(d),p=require$$2$6,h=v(p);function v(w){return w&&w.__esModule?w:{default:w}}function g(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function m(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}
vendor: 15,641 bytes, line 110
110function y(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}var b=(function(w){y(E,w);function E(P){g(this,E);var C=m(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,P));return C.fullScreenElement=null,C.detectFullScreen=C.detectFullScreen.bind(C),C}return l(E,[{key:"componentDidMount",value:function(){h.default.addEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentWillUnmount",value:function(){h.default.removeEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentDidUpdate",value:function(){this.handleProps(this.props)}},{key:"handleProps",value:function(C){var T=h.default.fullscreenElement===this.node;T&&!C.enabled?this.leaveFullScreen():!T&&C.enabled&&this.enterFullScreen()}},{key:"detectFullScreen",value:function(){h.default.fullscreenElement===this.node?(this.fullScreenElement=h.default.fullscreenElement,this.props.onChange(!0)):!h.default.fullscreenElement&&this.fullScreenElement&&(this.fullScreenElement=null,this.props.onChange(!1))}},{key:"enterFullScreen",value:function(){h.default.fullscreenEnabled&&h.default.requestFullscreen(this.node)}},{key:"leaveFullScreen",value:function(){h.default.fullscreenEnabled&&h.default.exitFullscreen()}},{key:"render",value:function(){var C=this,T=["fullscreen"];return this.props.enabled&&T.push("fullscreen-enabled"),u.default.createElement("div",{className:T.join(" "),ref:function(x){return C.node=x},style:this.props.enabled?{height:"100%",width:"100%"}:void 0},this.props.children)}}]),E})(o.Component);return b.propTypes={children:f.default.node.isRequired,enabled:f.default.bool.isRequired,onChange:f.default.func},b.defaultProps={enabled:!1,onChange:function(){}},dist$1.default=b,dist$1}var distExports$1=requireDist$1();const Fullscreen=getDefaultExportFromCjs(distExports$1);var HandlerRole;(function(l){l.SOURCE="SOURCE",l.TARGET="TARGET"})(HandlerRole||(HandlerRole={}));function invariant(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];if(!l){var p;if(o===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=0;p=new Error(o.replace(/%s/g,function(){return d[h++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}}var INIT_COORDS="dnd-core/INIT_COORDS",BEGIN_DRAG="dnd-core/BEGIN_DRAG",PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",HOVER="dnd-core/HOVER",DROP="dnd-core/DROP",END_DRAG="dnd-core/END_DRAG";function setClientOffset(l,o){return{type:INIT_COORDS,payload:{sourceClientOffset:o||null,clientOffset:l||null}}}function _typeof$7(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$7=function(u){return typeof u}:_typeof$7=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$7(l)}function get(l,o,u){return o.split(".").reduce(function(d,f){return d&&d[f]?d[f]:u||null},l)}function without$1(l,o){return l.filter(function(u){return u!==o})}function isObject(l){return _typeof$7(l)==="object"}function xor$1(l,o){var u=new Map,d=function(h){return u.set(h,u.has(h)?u.get(h)+1:1)};l.forEach(d),o.forEach(d);var f=[];return u.forEach(function(p,h){p===1&&f.push(h)}),f}function intersection(l,o){return l.filter(function(u){return o.indexOf(u)>-1})}var ResetCoordinatesAction={type:INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};function createBeginDrag(l){return function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},f=d.publishSource,p=f===void 0?!0:f,h=d.clientOffset,v=d.getSourceClientOffset,g=l.getMonitor(),m=l.getRegistry();l.dispatch(setClientOffset(h)),verifyInvariants$1(u,g,m);var y=getDraggableSource(u,g);if(y===null){l.dispatch(ResetCoordinatesAction);return}var b=null;h&&(verifyGetSourceClientOffsetIsFunction(v),b=v(y)),l.dispatch(setClientOffset(h,b));var w=m.getSource(y),E=w.beginDrag(g,y);verifyItemIsObject(E),m.pinSource(y);var P=m.getSourceType(y);return{type:BEGIN_DRAG,payload:{itemType:P,item:E,sourceId:y,clientOffset:h||null,sourceClientOffset:b||null,isSourcePublic:!!p}}}}function verifyInvariants$1(l,o,u){invariant(!o.isDragging(),"Cannot call beginDrag while dragging."),l.forEach(function(d){invariant(u.getSource(d),"Expected sourceIds to be registered.")})}function verifyGetSourceClientOffsetIsFunction(l){invariant(typeof l=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function verifyItemIsObject(l){invariant(isObject(l),"Item must be an object.")}function getDraggableSource(l,o){for(var u=null,d=l.length-1;d>=0;d--)if(o.canDragSource(l[d])){u=l[d];break}return u}function createPublishDragSource(l){return function(){var u=l.getMonitor();if(u.isDragging())return{type:PUBLISH_DRAG_SOURCE}}}function matchesType(l,o){return o===null?l===null:Array.isArray(l)?l.some(function(u){return u===o}):l===o}function createHover(l){return function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=d.clientOffset;verifyTargetIdsIsArray(u);var p=u.slice(0),h=l.getMonitor(),v=l.getRegistry();checkInvariants(p,h,v);var g=h.getItemType();return removeNonMatchingTargetIds(p,v,g),hoverAllTargets(p,h,v),{type:HOVER,payload:{targetIds:p,clientOffset:f||null}}}}function verifyTargetIdsIsArray(l){invariant(Array.isArray(l),"Expected targetIds to be an array.")}function checkInvariants(l,o,u){invariant(o.isDragging(),"Cannot call hover while not dragging."),invariant(!o.didDrop(),"Cannot call hover after drop.");for(var d=0;d<l.length;d++){var f=l[d];invariant(l.lastIndexOf(f)===d,"Expected targetIds to be unique in the passed array.");var p=u.getTarget(f);invariant(p,"Expected targetIds to be registered.")}}function removeNonMatchingTargetIds(l,o,u){for(var d=l.length-1;d>=0;d--){var f=l[d],p=o.getTargetType(f);matchesType(p,u)||l.splice(d,1)}}function hoverAllTargets(l,o,u){l.forEach(function(d){var f=u.getTarget(d);f.hover(o,d)})}function ownKeys$L(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$L(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$L(Object(u),!0).forEach(function(d){_defineProperty$T(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$L(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$T(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function createDrop(l){return function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=l.getMonitor(),f=l.getRegistry();verifyInvariants(d);var p=getDroppableTargets(d);p.forEach(function(h,v){var g=determineDropResult(h,v,f,d),m={type:DROP,payload:{dropResult:_objectSpread$L({},u,{},g)}};l.dispatch(m)})}}function verifyInvariants(l){invariant(l.isDragging(),"Cannot call drop while not dragging."),invariant(!l.didDrop(),"Cannot call drop twice during one drag operation.")}function determineDropResult(l,o,u,d){var f=u.getTarget(l),p=f?f.drop(d,l):void 0;return verifyDropResultType(p),typeof p>"u"&&(p=o===0?{}:d.getDropResult()),p}function verifyDropResultType(l){invariant(typeof l>"u"||isObject(l),"Drop result must either be an object or undefined.")}function getDroppableTargets(l){var o=l.getTargetIds().filter(l.canDropOnTarget,l);return o.reverse(),o}function createEndDrag(l){return function(){var u=l.getMonitor(),d=l.getRegistry();verifyIsDragging(u);var f=u.getSourceId(),p=d.getSource(f,!0);return p.endDrag(u,f),d.unpinSource(),{type:END_DRAG}}}function verifyIsDragging(l){invariant(l.isDragging(),"Cannot call endDrag while not dragging.")}function createDragDropActions(l){return{beginDrag:createBeginDrag(l),publishDragSource:createPublishDragSource(l),hover:createHover(l),drop:createDrop(l),endDrag:createEndDrag(l)}}var strictEquality=function(o,u){return o===u};function areCoordsEqual(l,o){return!l&&!o?!0:!l||!o?!1:l.x===o.x&&l.y===o.y}function areArraysEqual(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:strictEquality;if(l.length!==o.length)return!1;for(var d=0;d<l.length;++d)if(!u(l[d],o[d]))return!1;return!0}function ownKeys$K(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$K(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$K(Object(u),!0).forEach(function(d){_defineProperty$S(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$K(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$S(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}var initialState$2={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function dragOffset(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:initialState$2,o=arguments.length>1?arguments[1]:void 0,u=o.payload;switch(o.type){case INIT_COORDS:case BEGIN_DRAG:return{initialSourceClientOffset:u.sourceClientOffset,initialClientOffset:u.clientOffset,clientOffset:u.clientOffset};case HOVER:return areCoordsEqual(l.clientOffset,u.clientOffset)?l:_objectSpread$K({},l,{clientOffset:u.clientOffset});case END_DRAG:case DROP:return initialState$2;default:return l}}var ADD_SOURCE="dnd-core/ADD_SOURCE",ADD_TARGET="dnd-core/ADD_TARGET",REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",REMOVE_TARGET="dnd-core/REMOVE_TARGET";function addSource(l){return{type:ADD_SOURCE,payload:{sourceId:l}}}function addTarget(l){return{type:ADD_TARGET,payload:{targetId:l}}}function removeSource(l){return{type:REMOVE_SOURCE,payload:{sourceId:l}}}function removeTarget(l){return{type:REMOVE_TARGET,payload:{targetId:l}}}function ownKeys$J(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$J(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$J(Object(u),!0).forEach(function(d){_defineProperty$R(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$J(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$R(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}var initialState$1={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function dragOperation(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:initialState$1,o=arguments.length>1?arguments[1]:void 0,u=o.payload;switch(o.type){case BEGIN_DRAG:return _objectSpread$J({},l,{itemType:u.itemType,item:u.item,sourceId:u.sourceId,isSourcePublic:u.isSourcePublic,dropResult:null,didDrop:!1});case PUBLISH_DRAG_SOURCE:return _objectSpread$J({},l,{isSourcePublic:!0});case HOVER:return _objectSpread$J({},l,{targetIds:u.targetIds});case REMOVE_TARGET:return l.targetIds.indexOf(u.targetId)===-1?l:_objectSpread$J({},l,{targetIds:without$1(l.targetIds,u.targetId)});case DROP:return _objectSpread$J({},l,{dropResult:u.dropResult,didDrop:!0,targetIds:[]});case END_DRAG:return _objectSpread$J({},l,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return l}}function refCount$1(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,o=arguments.length>1?arguments[1]:void 0;switch(o.type){case ADD_SOURCE:case ADD_TARGET:return l+1;case REMOVE_SOURCE:case REMOVE_TARGET:return l-1;default:return l}}var NONE=[],ALL$1=[];NONE.__IS_NONE__=!0;ALL$1.__IS_ALL__=!0;function areDirty(l,o){if(l===NONE)return!1;if(l===ALL$1||typeof o>"u")return!0;var u=intersection(o,l);return u.length>0}function dirtyHandlerIds(){var l=arguments.length>1?arguments[1]:void 0;switch(l.type){case HOVER:break;case ADD_SOURCE:case ADD_TARGET:case REMOVE_TARGET:case REMOVE_SOURCE:return NONE;case BEGIN_DRAG:case PUBLISH_DRAG_SOURCE:case END_DRAG:case DROP:default:return ALL$1}var o=l.payload,u=o.targetIds,d=u===void 0?[]:u,f=o.prevTargetIds,p=f===void 0?[]:f,h=xor$1(d,p),v=h.length>0||!areArraysEqual(d,p);if(!v)return NONE;var g=p[p.length-1],m=d[d.length-1];return g!==m&&(g&&h.push(g),m&&h.push(m)),h}function stateId(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return l+1}function ownKeys$I(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$I(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$I(Object(u),!0).forEach(function(d){_defineProperty$Q(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$I(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$Q(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function reduce(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:dirtyHandlerIds(l.dirtyHandlerIds,{type:o.type,payload:_objectSpread$I({},o.payload,{prevTargetIds:get(l,"dragOperation.targetIds",[])})}),dragOffset:dragOffset(l.dragOffset,o),refCount:refCount$1(l.refCount,o),dragOperation:dragOperation(l.dragOperation,o),stateId:stateId(l.stateId)}}function add(l,o){return{x:l.x+o.x,y:l.y+o.y}}function subtract(l,o){return{x:l.x-o.x,y:l.y-o.y}}function getSourceClientOffset(l){var o=l.clientOffset,u=l.initialClientOffset,d=l.initialSourceClientOffset;return!o||!u||!d?null:subtract(add(o,d),u)}function getDifferenceFromInitialOffset(l){var o=l.clientOffset,u=l.initialClientOffset;return!o||!u?null:subtract(o,u)}function _classCallCheck$1z(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1u(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1u(l,o,u){return o&&_defineProperties$1u(l.prototype,o),l}var DragDropMonitorImpl=(function(){function l(o,u){_classCallCheck$1z(this,l),this.store=o,this.registry=u}return _createClass$1u(l,[{key:"subscribeToStateChange",value:function(u){var d=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},p=f.handlerIds;invariant(typeof u=="function","listener must be a function."),invariant(typeof p>"u"||Array.isArray(p),"handlerIds, when specified, must be an array of str
110ings.");var h=this.store.getState().stateId,v=function(){var m=d.store.getState(),y=m.stateId;try{var b=y===h||y===h+1&&!areDirty(m.dirtyHandlerIds,p);b||u()}finally{h=y}};return this.store.subscribe(v)}},{key:"subscribeToOffsetChange",value:function(u){var d=this;invariant(typeof u=="function","listener must be a function.");var f=this.store.getState().dragOffset,p=function(){var v=d.store.getState().dragOffset;v!==f&&(f=v,u())};return this.store.subscribe(p)}},{key:"canDragSource",value:function(u){if(!u)return!1;var d=this.registry.getSource(u);return invariant(d,"Expected to find a valid source."),this.isDragging()?!1:d.canDrag(this,u)}},{key:"canDropOnTarget",value:function(u){if(!u)return!1;var d=this.registry.getTarget(u);if(invariant(d,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var f=this.registry.getTargetType(u),p=this.getItemType();return matchesType(f,p)&&d.canDrop(this,u)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(u){if(!u)return!1;var d=this.registry.getSource(u,!0);if(invariant(d,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var f=this.registry.getSourceType(u),p=this.getItemType();return f!==p?!1:d.isDragging(this,u)}},{key:"isOverTarget",value:function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!u)return!1;var f=d.shallow;if(!this.isDragging())return!1;var p=this.registry.getTargetType(u),h=this.getItemType();if(h&&!matchesType(p,h))return!1;var v=this.getTargetIds();if(!v.length)return!1;var g=v.indexOf(u);return f?g===v.length-1:g>-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 getSourceClientOffset(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return getDifferenceFromInitialOffset(this.store.getState().dragOffset)}}]),l})(),nextUniqueId=0;function getNextUniqueId(){return nextUniqueId++}function _typeof$6(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(u){return typeof u}:_typeof$6=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$6(l)}function validateSourceContract(l){invariant(typeof l.canDrag=="function","Expected canDrag to be a function."),invariant(typeof l.beginDrag=="function","Expected beginDrag to be a function."),invariant(typeof l.endDrag=="function","Expected endDrag to be a function.")}function validateTargetContract(l){invariant(typeof l.canDrop=="function","Expected canDrop to be a function."),invariant(typeof l.hover=="function","Expected hover to be a function."),invariant(typeof l.drop=="function","Expected beginDrag to be a function.")}function validateType(l,o){if(o&&Array.isArray(l)){l.forEach(function(u){return validateType(u,!1)});return}invariant(typeof l=="string"||_typeof$6(l)==="symbol",o?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const scope=typeof global<"u"?global:self,BrowserMutationObserver=scope.MutationObserver||scope.WebKitMutationObserver;function makeRequestCallFromTimer(l){return function(){const u=setTimeout(f,0),d=setInterval(f,50);function f(){clearTimeout(u),clearInterval(d),l()}}}function makeRequestCallFromMutationObserver(l){let o=1;const u=new BrowserMutationObserver(l),d=document.createTextNode("");return u.observe(d,{characterData:!0}
vendor: 7,545 bytes, line 110
110),function(){o=-o,d.data=o}}const makeRequestCall=typeof BrowserMutationObserver=="function"?makeRequestCallFromMutationObserver:makeRequestCallFromTimer;class AsapQueue{enqueueTask(o){const{queue:u,requestFlush:d}=this;u.length||(d(),this.flushing=!0),u[u.length]=o}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:o}=this;for(;this.index<o.length;){const u=this.index;if(this.index++,o[u].call(),this.index>this.capacity){for(let d=0,f=o.length-this.index;d<f;d++)o[d]=o[d+this.index];o.length-=this.index,this.index=0}}o.length=0,this.index=0,this.flushing=!1},this.registerPendingError=o=>{this.pendingErrors.push(o),this.requestErrorThrow()},this.requestFlush=makeRequestCall(this.flush),this.requestErrorThrow=makeRequestCallFromTimer(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class RawTask{call(){try{this.task&&this.task()}catch(o){this.onError(o)}finally{this.task=null,this.release(this)}}constructor(o,u){this.onError=o,this.release=u,this.task=null}}class TaskFactory{create(o){const u=this.freeTasks,d=u.length?u.pop():new RawTask(this.onError,f=>u[u.length]=f);return d.task=o,d}constructor(o){this.onError=o,this.freeTasks=[]}}const asapQueue=new AsapQueue,taskFactory=new TaskFactory(asapQueue.registerPendingError);function asap$1(l){asapQueue.enqueueTask(taskFactory.create(l))}function _classCallCheck$1y(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1t(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1t(l,o,u){return o&&_defineProperties$1t(l.prototype,o),l}function _slicedToArray$g(l,o){return _arrayWithHoles$g(l)||_iterableToArrayLimit$g(l,o)||_nonIterableRest$g()}function _nonIterableRest$g(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$g(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$g(l){if(Array.isArray(l))return l}function getNextHandlerId(l){var o=getNextUniqueId().toString();switch(l){case HandlerRole.SOURCE:return"S".concat(o);case HandlerRole.TARGET:return"T".concat(o);default:throw new Error("Unknown Handler Role: ".concat(l))}}function parseRoleFromHandlerId(l){switch(l[0]){case"S":return HandlerRole.SOURCE;case"T":return HandlerRole.TARGET;default:invariant(!1,"Cannot parse handler ID: ".concat(l))}}function mapContainsValue(l,o){var u=l.entries(),d=!1;do{var f=u.next(),p=f.done,h=_slicedToArray$g(f.value,2),v=h[1];if(v===o)return!0;d=!!p}while(!d);return!1}var HandlerRegistryImpl=(function(){function l(o){_classCallCheck$1y(this,l),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=o}return _createClass$1t(l,[{key:"addSource",value:function(u,d){validateType(u),validateSourceContract(d);var f=this.addHandler(HandlerRole.SOURCE,u,d);return this.store.dispatch(addSource(f)),f}},{key:"addTarget",value:function(u,d){validateType(u,!0),validateTargetContract(d);var f=this.addHandler(HandlerRole.TARGET,u,d);return this.store.dispatch(addTarget(f)),f}},{key:"containsHandler",value:function(u){return mapContainsValue(this.dragSources,u)||mapContainsValue(this.dropTargets,u)}},{key:"getSource",value:function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;invariant(this.isSourceId(u),"Expected a valid source ID.");var f=d&&u===this.pinnedSourceId,p=f?this.pinnedSource:this.dragSources.get(u);return p}},{key:"getTarget",value:function(u){return invariant(this.isTargetId(u),"Expected a valid target ID."),this.dropTargets.get(u)}},{key:"getSourceType",value:function(u){return invariant(this.isSourceId(u),"Expected a valid source ID."),this.types.get(u)}},{key:"getTargetType",value:function(u){return invariant(this.isTargetId(u),"Expected a valid target ID."),this.types.get(u)}},{key:"isSourceId",value:function(u){var d=parseRoleFromHandlerId(u);return d===HandlerRole.SOURCE}},{key:"isTargetId",value:function(u){var d=parseRoleFromHandlerId(u);return d===HandlerRole.TARGET}},{key:"removeSource",value:function(u){var d=this;invariant(this.getSource(u),"Expected an existing source."),this.store.dispatch(removeSource(u)),asap$1(function(){d.dragSources.delete(u),d.types.delete(u)})}},{key:"removeTarget",value:function(u){invariant(this.getTarget(u),"Expected an existing target."),this.store.dispatch(removeTarget(u)),this.dropTargets.delete(u),this.types.delete(u)}},{key:"pinSource",value:function(u){var d=this.getSource(u);invariant(d,"Expected an existing source."),this.pinnedSourceId=u,this.pinnedSource=d}},{key:"unpinSource",value:function(){invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(u,d,f){var p=getNextHandlerId(u);return this.types.set(p,d),u===HandlerRole.SOURCE?this.dragSources.set(p,f):u===HandlerRole.TARGET&&this.dropTargets.set(p,f),p}}]),l})();function _classCallCheck$1x(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1s(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1s(l,o,u){return o&&_defineProperties$1s(l.prototype,o),l}function makeStoreInstance(l){var o=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return createStore$1(reduce,l&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))}var DragDropManagerImpl=(function(){function l(){var o=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;_classCallCheck$1x(this,l),this.isSetUp=!1,this.handleRefCountChange=function(){var f=o.store.getState().refCount>0;o.backend&&(f&&!o.isSetUp?(o.backend.setup(),o.isSetUp=!0):!f&&o.isSetUp&&(o.backend.teardown(),o.isSetUp=!1))};var d=makeStoreInstance(u);this.store=d,this.monitor=new DragDropMonitorImpl(d,new HandlerRegistryImpl(d)),d.subscribe(this.handleRefCountChange)}return _createClass$1s(l,[{key:"receiveBackend",value:function(u){this.backend=u}},{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 u=this,d=this.store.dispatch;function f(h){return function(){for(var v=arguments.length,g=new Array(v),m=0;m<v;m++)g[m]=arguments[m];var y=h.apply(u,g);typeof y<"u"&&d(y)}}var p=createDragDropActions(this);return Object.keys(p).reduce(function(h,v){var g=p[v];return h[v]=f(g),h},{})}},{key:"dispatch",value:function(u){this.store.dispatch(u)}}]),l})();function createDragDropManager(l,o,u,d){var f=new DragDropManagerImpl(d),p=l(f,o,u);return f.receiveBackend(p),f}var DndContext=reactExports.createContext({dragDropManager:void 0});function createDndContext(l,o,u,d){return{dragDropManager:createDragDropManager(l,o,u,d)}}function _slicedToArray$f(l,o){return _arrayWithHoles$f(l)||_iterableToArrayLimit$f(l,o)||_nonIterableRest$f()}function _nonIterableRest$f(){throw new TypeError("Invalid attempt to de
110structure non-iterable instance")}function _iterableToArrayLimit$f(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$f(l){if(Array.isArray(l))return l}function _objectWithoutProperties$a(l,o){if(l==null)return{};var u=_objectWithoutPropertiesLoose$8(l,o),d,f;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(f=0;f<p.length;f++)d=p[f],!(o.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(l,d)&&(u[d]=l[d])}return u}function _objectWithoutPropertiesLoose$8(l,o){if(l==null)return{};var u={},d=Object.keys(l),f,p;for(p=0;p<d.length;p++)f=d[p],!(o.indexOf(f)>=0)&&(u[f]=l[f]);return u}var refCount=0,DndProvider=reactExports.memo(function(l){var o=l.children,u=_objectWithoutProperties$a(l,["children"]),d=getDndContextValue(u),f=_slicedToArray$f(d,2),p=f[0],h=f[1];return reactExports.useEffect(function(){return h&&refCount++,function(){if(h&&(refCount--,refCount===0)){var v=getGlobalContext();v[instanceSymbol]=null}}},[]),reactExports.createElement(DndContext.Provider,{value:p},o)});DndProvider.displayName="DndProvider";function getDndContextValue(l){if("manager"in l){var o={dragDropManager:l.manager};return[o,!1]}var u=createSingletonDndContext(l.backend,l.context,l.options,l.debugMode),d=!l.context;return[u,d]}var instanceSymbol=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function createSingletonDndContext(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getGlobalContext(),u=arguments.length>2?arguments[2]:void 0,d=arguments.length>3?arguments[3]:void 0,f=o;return f[instanceSymbol]||(f[instanceSymbol]=createDndContext(l,o,u,d)),f[instanceSymbol]}function getGlobalContext(){return typeof global<"u"?global:window}var DragPreviewImage=reactExports.memo(function(l){var o=l.connect,u=l.src;if(typeof Image<"u"){var d=new Image;d.src=u,d.onload=function(){return o(d)}}return null});DragPreviewImage.displayName="DragPreviewImage";var useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function shallowEqual(l,o,u,d){var f=u?u.call(d,l,o):void 0;if(f!==void 0)return!!f;if(l===o)return!0;if(typeof l!="object"||!l||typeof o!="object"||!o)return!1;var p=Object.keys(l),h=Object.keys(o);if(p.length!==h.length)return!1;for(var v=Object.prototype.hasOwnProperty.bind(o),g=0;g<p.length;g++){var m=p[g];if(!v(m))return!1;var y=l[m],b=o[m];if(f=u?u.call(d,y,b,m):void 0,f===!1||f===void 0&&y!==b)return!1}return!0}function _slicedToArray$e(l,o){return _arrayWithHoles$e(l)||_iterableToArrayLimit$e(l,o)||_nonIterableRest$e()}function _nonIterableRest$e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$e(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$e(l){if(Array.isArray(l))return l}function useCollector(l,o,u){var d=reactExports.useState(function(){return o(l)}),f=_slicedToArray$e(d,2),p=f[0],h=f[1],v=reactExports.useCallback(function(){var g=o(l);shallowEqual(p,g)||(h(g),u&&u())},[p,l,u]);return useIsomorphicLayoutEffect(v,[]),[p,v]}function _slicedToArray$d(l,o){return _arrayWithHoles$d(l)||_iterableToArrayLimit$d(l,o)||_nonIterableRest$d()}function _nonIterableRest$d(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$d(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}
vendor: 6,083 bytes, line 110
110}return u}}function _arrayWithHoles$d(l){if(Array.isArray(l))return l}function useMonitorOutput(l,o,u){var d=useCollector(l,o,u),f=_slicedToArray$d(d,2),p=f[0],h=f[1];return useIsomorphicLayoutEffect(function(){var g=l.getHandlerId();if(g!=null)return l.subscribeToStateChange(h,{handlerIds:[g]})},[l,h]),p}function registerTarget(l,o,u){var d=u.getRegistry(),f=d.addTarget(l,o);return[f,function(){return d.removeTarget(f)}]}function registerSource(l,o,u){var d=u.getRegistry(),f=d.addSource(l,o);return[f,function(){return d.removeSource(f)}]}function useDragDropManager(){var l=reactExports.useContext(DndContext),o=l.dragDropManager;return invariant(o!=null,"Expected drag drop context"),o}function _classCallCheck$1w(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1r(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1r(l,o,u){return o&&_defineProperties$1r(l.prototype,o),l}var isCallingCanDrag=!1,isCallingIsDragging=!1,DragSourceMonitorImpl=(function(){function l(o){_classCallCheck$1w(this,l),this.sourceId=null,this.internalMonitor=o.getMonitor()}return _createClass$1r(l,[{key:"receiveHandlerId",value:function(u){this.sourceId=u}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){invariant(!isCallingCanDrag,"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 isCallingCanDrag=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{isCallingCanDrag=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;invariant(!isCallingIsDragging,"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 isCallingIsDragging=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{isCallingIsDragging=!1}}},{key:"subscribeToStateChange",value:function(u,d){return this.internalMonitor.subscribeToStateChange(u,d)}},{key:"isDraggingSource",value:function(u){return this.internalMonitor.isDraggingSource(u)}},{key:"isOverTarget",value:function(u,d){return this.internalMonitor.isOverTarget(u,d)}},{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(u){return this.internalMonitor.subscribeToOffsetChange(u)}},{key:"canDragSource",value:function(u){return this.internalMonitor.canDragSource(u)}},{key:"canDropOnTarget",value:function(u){return this.internalMonitor.canDropOnTarget(u)}},{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()}}]),l})();function setRef(l,o){typeof l=="function"?l(o):l.current=o}function cloneWithRef(l,o){var u=l.ref;return invariant(typeof u!="string","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"),u?reactExports.cloneElement(l,{ref:function(f){setRef(u,f),setRef(o,f)}}):reactExports.cloneElement(l,{ref:o})}function throwIfCompositeComponentElement(l){if(typeof l.type!="string"){var o=l.type.displayName||l.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(o," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function wrapHookToRecognizeElement(l){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!reactExports.isValidElement(o)){var d=o;return l(d,u),d}var f=o;throwIfCompositeComponentElement(f);var p=u?function(h){return l(h,u)}:l;return cloneWithRef(f,p)}}function wrapConnectorHooks(l){var o={};return Object.keys(l).forEach(function(u){var d=l[u];if(u.endsWith("Ref"))o[u]=l[u];else{var f=wrapHookToRecognizeElement(d);o[u]=function(){return f}}}),o}function _typeof$5(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(u){return typeof u}:_typeof$5=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$5(l)}function isRef(l){return l!==null&&_typeof$5(l)==="object"&&l.hasOwnProperty("current")}function _classCallCheck$1v(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1q(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1q(l,o,u){return o&&_defineProperties$1q(l.prototype,o),l}var SourceConnector=(function(){function l(o){var u=this;_classCallCheck$1v(this,l),this.hooks=wrapConnectorHooks({dragSource:function(f,p){u.clearDragSource(),u.dragSourceOptions=p||null,isRef(f)?u.dragSourceRef=f:u.dragSourceNode=f,u.re
110connectDragSource()},dragPreview:function(f,p){u.clearDragPreview(),u.dragPreviewOptions=p||null,isRef(f)?u.dragPreviewRef=f:u.dragPreviewNode=f,u.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=o}return _createClass$1q(l,[{key:"receiveHandlerId",value:function(u){this.handlerId!==u&&(this.handlerId=u,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var u=this.dragSource,d=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(d&&this.disconnectDragSource(),!!this.handlerId){if(!u){this.lastConnectedDragSource=u;return}d&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=u,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,u,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var u=this.dragPreview,d=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&d&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=u,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,u,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!shallowEqual(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!shallowEqual(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(u){this.dragSourceOptionsInternal=u}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(u){this.dragPreviewOptionsInternal=u}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}]),l})();function _slicedToArray$c(l,o){return _arrayWithHoles$c(l)||_iterableToArrayLimit$c(l,o)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$c(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$c(l){if(Array.isArray(l))return l}function _typeof$4(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(u){return typeof u}:_typeof$4=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$4(l)}function useDragSourceMonitor(){var l=useDragDropManager(),o=reactExports.useMemo(function(){return new DragSourceMonitorImpl(l)},[l]),u=reactExports.useMemo(function(){return new SourceConnector(l.getBackend())},[l]);return[o,u]}function useDragHandler(l,o,u){var d=useDragDropManager(),f=reactExports.useMemo(function(){return{beginDrag:function(){var h=l.current,v=h.begin,g=h.item;if(v){var m=v(o);return invariant(m==null||_typeof$4(m)==="object","dragSpec.begin() must either return an object, undefined, or null"),m||g||{}}return g||{}},canDrag:function(){return typeof l.current.canDrag=="boolean"?l.current.canDrag:typeof l.current.canDrag=="function"?l.current.canDrag(o):!0},isDragging:function(h,v){var g=l.current.isDragging;return g?g(o):v===h.getSourceId()},endDrag:function(){var h=l.current.end;h&&h(o.getItem(),o),u.reconnect()}}},[]);useIsomorphicLayoutEffect(function(){var h=registerSource(l.current.item.type,f,d),v=_slicedToArray$c(h,2),g=v[0],m=v[1];return o.receiveHandlerId(g),u.receiveHandlerId(g),m},[])}function _slicedToArray$b(l,o){return _arrayWithHoles$b(l)||_iterableToArrayLimit$b(l,o)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError("Invalid attempt to de
110structure non-iterable instance")}function _iterableToArrayLimit$b(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$b(l){if(Array.isArray(l))return l}function useDrag(l){var o=reactExports.useRef(l);o.current=l,invariant(l.item!=null,"item must be defined"),invariant(l.item.type!=null,"item type must be defined");var u=useDragSourceMonitor(),d=_slicedToArray$b(u,2),f=d[0],p=d[1];useDragHandler(o,f,p);var h=useMonitorOutput(f,o.current.collect||function(){return{}},function(){return p.reconnect()}),v=reactExports.useMemo(function(){return p.hooks.dragSource()},[p]),g=reactExports.useMemo(function(){return p.hooks.dragPreview()},[p]);return useIsomorphicLayoutEffect(function(){p.dragSourceOptions=o.current.options||null,p.reconnect()},[p]),useIsomorphicLayoutEffect(function(){p.dragPreviewOptions=o.current.previewOptions||null,p.reconnect()},[p]),[h,v,g]}function _classCallCheck$1u(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1p(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1p(l,o,u){return o&&_defineProperties$1p(l.prototype,o),l}var TargetConnector=(function(){function l(o){var u=this;_classCallCheck$1u(this,l),this.hooks=wrapConnectorHooks({dropTarget:function(f,p){u.clearDropTarget(),u.dropTargetOptions=p,isRef(f)?u.dropTargetRef=f:u.dropTargetNode=f,u.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=o}return _createClass$1p(l,[{key:"reconnect",value:function(){var u=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();u&&this.disconnectDropTarget();var d=this.dropTarget;if(this.handlerId){if(!d){this.lastConnectedDropTarget=d;return}u&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=d,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,d,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(u){u!==this.handlerId&&(this.handlerId=u,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!shallowEqual(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(u){this.dropTargetOptionsInternal=u}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}]),l})();function _classCallCheck$1t(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1o(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1o(l,o,u){return o&&_defineProperties$1o(l.prototype,o),l}var isCallingCanDrop=!1,DropTargetMonitorImpl=(function(){function l(o){_classCallCheck$1t(this,l),this.targetId=null,this.internalMonitor=o.getMonitor()}return _createClass$1o(l,[{key:"receiveHandlerId",value:function(u){this.targetId=u}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(u,d){return this.internalMonitor.subscribeToStateChange(u,d)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;invariant(!isCallingCanDrop,"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 isCallingCanDrop=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{isCallingCanDrop=!1}}},{key:"isOver",value:function(u){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,u):!1}},{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()}}]),l})();function _slicedToArray$a(l,o){return _arrayWithHoles$a(l)||_iterableToArrayLimit$a(l,o)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError("Invalid attempt to de
110structure non-iterable instance")}function _iterableToArrayLimit$a(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$a(l){if(Array.isArray(l))return l}function useDropTargetMonitor(){var l=useDragDropManager(),o=reactExports.useMemo(function(){return new DropTargetMonitorImpl(l)},[l]),u=reactExports.useMemo(function(){return new TargetConnector(l.getBackend())},[l]);return[o,u]}function useDropHandler(l,o,u){var d=useDragDropManager(),f=reactExports.useMemo(function(){return{canDrop:function(){var h=l.current.canDrop;return h?h(o.getItem(),o):!0},hover:function(){var h=l.current.hover;h&&h(o.getItem(),o)},drop:function(){var h=l.current.drop;if(h)return h(o.getItem(),o)}}},[o]);useIsomorphicLayoutEffect(function(){var h=registerTarget(l.current.accept,f,d),v=_slicedToArray$a(h,2),g=v[0],m=v[1];return o.receiveHandlerId(g),u.receiveHandlerId(g),m},[o,u])}function _slicedToArray$9(l,o){return _arrayWithHoles$9(l)||_iterableToArrayLimit$9(l,o)||_nonIterableRest$9()}function _nonIterableRest$9(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$9(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$9(l){if(Array.isArray(l))return l}function useDrop(l){var o=reactExports.useRef(l);o.current=l,invariant(l.accept!=null,"accept must be defined");var u=useDropTargetMonitor(),d=_slicedToArray$9(u,2),f=d[0],p=d[1];useDropHandler(o,f,p);var h=useMonitorOutput(f,o.current.collect||function(){return{}},function(){return p.reconnect()}),v=reactExports.useMemo(function(){return p.hooks.dropTarget()},[p]);return useIsomorphicLayoutEffect(function(){p.dropTargetOptions=l.options||null,p.reconnect()},[l.options]),[h,v]}function _slicedToArray$8(l,o){return _arrayWithHoles$8(l)||_iterableToArrayLimit$8(l,o)||_nonIterableRest$8()}function _nonIterableRest$8(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$8(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$8(l){if(Array.isArray(l))return l}function useDragLayer(l){var o=useDragDropManager(),u=o.getMonitor(),d=useCollector(u,l),f=_slicedToArray$8(d,2),p=f[0],h=f[1];return reactExports.useEffect(function(){return u.subscribeToOffsetChange(h)}),reactExports.useEffect(function(){return u.subscribeToStateChange(h)}),p}function _typeof$3(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(u){return typeof u}:_typeof$3=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$3(l)}function isFunction$1(l){return typeof l=="function"}function noop$1(){}function isObjectLike(l){return _typeof$3(l)==="object"&&l!==null}function isPlainObject(l){if(!isObjectLike(l))return!1;if(Object.getPrototypeOf(l)===null)return!0;for(var o=l;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(l)===o}function getDecoratedComponent(l){var o=l.current;return o==null?null:o.decoratedRef?o.decoratedRef.current:o}function isClassComponent(l){return l&&l.prototype&&typeof l.prototype.render=="function"}function isRefForwardingComponent(l){return l&&l.$$typeof&&l.$$typeof.toString()==="Symbol(react.forward_ref)"}function isRefable(l){return isClassComponent(l)||isRefForwardingComponent(l)}function _classCallCheck$1s(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1n(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1n(l,o,u){return o&&_defineProperties$1n(l.prototype,o),u&&_defineProperties$1n(l,u),l}var Disposable=(function(){function l(o){_classCallCheck$1s(this,l),this.isDisposed=!1,this.action=isFunction$1(o)?o:noop$1}return _createClass$1n(l,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(u){return u&&isFunction$1(u.dispose)}},{key:"_fixup",value:function(u){return l.isDisposable(u)?u:l.empty}},{key:"create",value:function(u){return new l(u)}}]),l})();Disposable.empty={dispose:noop$1};
vendor: 12,681 bytes, line 110
110var CompositeDisposable=(function(){function l(){_classCallCheck$1s(this,l),this.isDisposed=!1;for(var o=arguments.length,u=new Array(o),d=0;d<o;d++)u[d]=arguments[d];this.disposables=u}return _createClass$1n(l,[{key:"add",value:function(u){this.isDisposed?u.dispose():this.disposables.push(u)}},{key:"remove",value:function(u){var d=!1;if(!this.isDisposed){var f=this.disposables.indexOf(u);f!==-1&&(d=!0,this.disposables.splice(f,1),u.dispose())}return d}},{key:"clear",value:function(){if(!this.isDisposed){for(var u=this.disposables.length,d=new Array(u),f=0;f<u;f++)d[f]=this.disposables[f];this.disposables=[];for(var p=0;p<u;p++)d[p].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var u=this.disposables.length,d=new Array(u),f=0;f<u;f++)d[f]=this.disposables[f];this.disposables=[];for(var p=0;p<u;p++)d[p].dispose()}}}]),l})(),SerialDisposable=(function(){function l(){_classCallCheck$1s(this,l),this.isDisposed=!1}return _createClass$1n(l,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(u){var d=this.isDisposed;if(!d){var f=this.current;this.current=u,f&&f.dispose()}d&&u&&u.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var u=this.current;this.current=void 0,u&&u.dispose()}}}]),l})();function _typeof$2(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(u){return typeof u}:_typeof$2=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$2(l)}function _slicedToArray$7(l,o){return _arrayWithHoles$7(l)||_iterableToArrayLimit$7(l,o)||_nonIterableRest$7()}function _nonIterableRest$7(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$7(l,o){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]"){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$7(l){if(Array.isArray(l))return l}function _classCallCheck$1r(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1m(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1m(l,o,u){return o&&_defineProperties$1m(l.prototype,o),l}function _possibleConstructorReturn$13(l,o){return o&&(_typeof$2(o)==="object"||typeof o=="function")?o:_assertThisInitialized$$(l)}function _assertThisInitialized$$(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _getPrototypeOf$$(l){return _getPrototypeOf$$=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},_getPrototypeOf$$(l)}function _inherits$13(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),o&&_setPrototypeOf$$(l,o)}function _setPrototypeOf$$(l,o){return _setPrototypeOf$$=Object.setPrototypeOf||function(d,f){return d.__proto__=f,d},_setPrototypeOf$$(l,o)}function decorateHandler(l){var o=l.DecoratedComponent,u=l.createHandler,d=l.createMonitor,f=l.createConnector,p=l.registerHandler,h=l.containerDisplayName,v=l.getType,g=l.collect,m=l.options,y=m.arePropsEqual,b=y===void 0?shallowEqual:y,w=o,E=o.displayName||o.name||"Component",P=(function(C){_inherits$13(T,C);function T(O){var x;return _classCallCheck$1r(this,T),x=_possibleConstructorReturn$13(this,_getPrototypeOf$$(T).call(this,O)),x.decoratedRef=reactExports.createRef(),x.handleChange=function(){var A=x.getCurrentState();shallowEqual(A,x.state)||x.setState(A)},x.disposable=new SerialDisposable,x.receiveProps(O),x.dispose(),x}return _createClass$1m(T,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return invariant(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(x,A){return!b(x,this.props)||!shallowEqual(A,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(x){b(this.props,x)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(x){this.handler&&(this.handler.receiveProps(x),this.receiveType(v(x)))}},{key:"receiveType",value:function(x){if(!(!this.handlerMonitor||!this.manager||!this.handlerConnector)&&x!==this.currentType){this.currentType=x;var A=p(x,this.handler,this.manager),D=_slicedToArray$7(A,2),j=D[0],M=D[1];this.handlerId=j,this.handlerMonitor.receiveHandlerId(j),this.handlerConnector.receiveHandlerId(j);var N=this.manager.getMonitor(),q=N.subscribeToStateChange(this.handleChange,{handlerIds:[j]});this.disposable.setDisposable(new CompositeDisposable(new Disposable(q),new Disposable(M)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){if(!this.handlerConnector)return{};var x=g(this.handlerConnector.hooks,this.handlerMonitor,this.props);return x}},{key:"render",value:function(){var x=this;return reactExports.createElement(DndContext.Consumer,null,function(A){var D=A.dragDropManager;return x.receiveDragDropManager(D),typeof requestAnimationFrame<"u"&&requestAnimationFrame(function(){return x.handlerConnector.reconnect()}),reactExports.createElement(w,Object.assign({},x.props,x.getCurrentState(),{ref:isRefable(w)?x.decoratedRef:null}))})}},{key:"receiveDragDropManager",value:function(x){this.manager===void 0&&(invariant(x!==void 0,"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",E,E),x!==void 0&&(this.manager=x,this.handlerMonitor=d(x),this.handlerConnector=f(x.getBackend()),this.handler=u(this.handlerMonitor,this.decoratedRef)))}}]),T})(reactExports.Component);return P.DecoratedComponent=o,P.displayName="".concat(h,"(").concat(E,")"),hoistNonReactStatics(P,o)}function _typeof$1(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(u){return typeof u}:_typeof$1=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$1(l)}function isValidType(l,o){return typeof l=="string"||_typeof$1(l)==="symbol"||!!o&&Array.isArray(l)&&l.every(function(u){return isValidType(u,!1)})}function _classCallCheck$1q(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1l(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1l(l,o,u){return o&&_defineProperties$1l(l.prototype,o),l}var ALLOWED_SPEC_METHODS$1=["canDrag","beginDrag","isDragging","endDrag"],REQUIRED_SPEC_METHODS=["beginDrag"],SourceImpl=(function(){function l(o,u,d){var f=this;_classCallCheck$1q(this,l),this.props=null,this.beginDrag=function(){if(f.props){var p=f.spec.beginDrag(f.props,f.monitor,f.ref.current);return p}},this.spec=o,this.monitor=u,this.ref=d}return _createClass$1l(l,[{key:"receiveProps",value:function(u){this.props=u}},{key:"canDrag",value:function(){return this.props?this.spec.canDrag?this.spec.canDrag(this.props,this.monitor):!0:!1}},{key:"isDragging",value:function(u,d){return this.props?this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):d===u.getSourceId():!1}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,getDecoratedComponent(this.ref))}}]),l})();function createSourceFactory(l){return Object.keys(l).forEach(function(o){invariant(ALLOWED_SPEC_METHODS$1.indexOf(o)>-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',ALLOWED_SPEC_METHODS$1.join(", "),o),invariant(typeof l[o]=="function","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",o,o,l[o])}),REQUIRED_SPEC_METHODS.forEach(function(o){invariant(typeof l[o]=="function","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",o,o,l[o])}),function(u,d){return new SourceImpl(l,u,d)}}function DragSource(l,o,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=l;typeof l!="function"&&(invariant(isValidType(l),'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',l),f=function(){return l}),invariant(isPlainObject(o),'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',o);var p=createSourceFactory(o);return invariant(typeof u=="function",'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',u),invariant(isPlainObject(d),'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',u),function(v){return decorateHandler({containerDisplayName:"DragSource",createHandler:p,registerHandler:registerSource,createConnector:function(m){return new SourceConnector(m)},createMonitor:function(m){return new DragSourceMonitorImpl(m)},DecoratedComponent:v,getType:f,collect:u,options:d})}}function _classCallCheck$1p(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1k(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1k(l,o,u){return o&&_defineProperties$1k(l.prototype,o),l}var ALLOWED_SPEC_METHODS=["canDrop","hover","drop"],TargetImpl=(function(){function l(o,u,d){_classCallCheck$1p(this,l),this.props=null,this.spec=o,this.monitor=u,this.ref=d}return _createClass$1k(l,[{key:"receiveProps",value:function(u){this.props=u}},{key:"receiveMonitor",value:function(u){this.monitor=u}},{key:"canDrop",value:function(){return this.spec.canDrop?this.spec.canDrop(this.props,this.monitor):!0}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,getDecoratedComponent(this.ref))}},{key:"drop",value:function(){if(this.spec.drop){var u=this.spec.drop(this.props,this.monitor,this.ref.current);return u}}}]),l})();function createTargetFactory(l){return Object.keys(l).forEach(function(o){invariant(ALLOWED_SPEC_METHODS.indexOf(o)>-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',ALLOWED_SPEC_METHODS.join(", "),o),invariant(typeof l[o]=="function","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",o,o,l[o])}),function(u,d){return new TargetImpl(l,u,d)}}function DropTarget(l,o,u){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=l;typeof l!="function"&&(invariant(isValidType(l,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of str
110ings, 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',l),f=function(){return l}),invariant(isPlainObject(o),'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',o);var p=createTargetFactory(o);return invariant(typeof u=="function",'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',u),invariant(isPlainObject(d),'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',u),function(v){return decorateHandler({containerDisplayName:"DropTarget",createHandler:p,registerHandler:registerTarget,createMonitor:function(m){return new DropTargetMonitorImpl(m)},createConnector:function(m){return new TargetConnector(m)},DecoratedComponent:v,getType:f,collect:u,options:d})}}function _typeof(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(u){return typeof u}:_typeof=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof(l)}function _classCallCheck$1o(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1j(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1j(l,o,u){return o&&_defineProperties$1j(l.prototype,o),l}function _possibleConstructorReturn$12(l,o){return o&&(_typeof(o)==="object"||typeof o=="function")?o:_assertThisInitialized$_(l)}function _assertThisInitialized$_(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _getPrototypeOf$_(l){return _getPrototypeOf$_=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},_getPrototypeOf$_(l)}function _inherits$12(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),o&&_setPrototypeOf$_(l,o)}function _setPrototypeOf$_(l,o){return _setPrototypeOf$_=Object.setPrototypeOf||function(d,f){return d.__proto__=f,d},_setPrototypeOf$_(l,o)}function DragLayer(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return invariant(typeof l=="function",'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",l),invariant(isPlainObject(o),'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',o),function(d){var f=d,p=o.arePropsEqual,h=p===void 0?shallowEqual:p,v=f.displayName||f.name||"Component",g=(function(m){_inherits$12(y,m);function y(){var b;return _classCallCheck$1o(this,y),b=_possibleConstructorReturn$12(this,_getPrototypeOf$_(y).apply(this,arguments)),b.isCurrentlyMounted=!1,b.ref=reactExports.createRef(),b.handleChange=function(){if(b.isCurrentlyMounted){var w=b.getCurrentState();shallowEqual(w,b.state)||b.setState(w)}},b}return _createClass$1j(y,[{key:"getDecoratedComponentInstance",value:function(){return invariant(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(w,E){return!h(w,this.props)||!shallowEqual(E,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 w=this;return reactExports.createElement(DndContext.Consumer,null,function(E){var P=E.dragDropManager;return P===void 0||(w.receiveDragDropManager(P),!w.isCurrentlyMounted)?null:reactExports.createElement(f,Object.assign({},w.props,w.state,{ref:isRefable(f)?w.ref:null}))})}},{key:"receiveDragDropManager",value:function(w){if(this.manager===void 0){this.manager=w,invariant(_typeof(w)==="object","Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvi
110der 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",v,v);var E=this.manager.getMonitor();this.unsubscribeFromOffsetChange=E.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=E.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var w=this.manager.getMonitor();return l(w,this.props)}}]),y})(reactExports.Component);return g.displayName="DragLayer(".concat(v,")"),g.DecoratedComponent=d,hoistNonReactStatics(g,d)}}const esm$4=Object.freeze(Object.defineProperty({__proto__:null,DndContext,DndProvider,DragLayer,DragPreviewImage,DragSource,DropTarget,createDndContext,useDrag,useDragLayer,useDrop},Symbol.toStringTag,{value:"Module"})),createTransition=(function(l,o){return{_isMBTransition:!0,event:l,check:o}});var TouchTransition=createTransition("touchstart",function(l){return l.touches!=null}),HTML5DragTransition=createTransition("dragstart",function(l){return l.type?l.type.indexOf("drag")!==-1||l.type.indexOf("drop")!==-1:!1}),MouseTransition=createTransition("mousedown",function(l){return l.type?l.type.indexOf("touch")===-1&&l.type.indexOf("mouse")!==-1:!1});function objectAssign(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return u.forEach(function(f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(l[p]=f[p])}),l}function _toConsumableArray$j(l){return _arrayWithoutHoles$j(l)||_iterableToArray$j(l)||_unsupportedIterableToArray$n(l)||_nonIterableSpread$j()}function _nonIterableSpread$j(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
111In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$j(l){if(typeof Symbol<"u"&&Symbol.iterator in Object(l))return Array.from(l)}function _arrayWithoutHoles$j(l){if(Array.isArray(l))return _arrayLikeToArray$n(l)}function _createForOfIteratorHelper$1(l){if(typeof Symbol>"u"||l[Symbol.iterator]==null){if(Array.isArray(l)||(l=_unsupportedIterableToArray$n(l))){var o=0,u=function(){};return{s:u,n:function(){return o>=l.length?{done:!0}:{done:!1,value:l[o++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
112In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,f=!0,p=!1,h;return{s:function(){d=l[Symbol.iterator]()},n:function(){var g=d.next();return f=g.done,g},e:function(g){p=!0,h=g},f:function(){try{!f&&d.return!=null&&d.return()}finally{if(p)throw h}}}}function _unsupportedIterableToArray$n(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$n(l,o);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return _arrayLikeToArray$n(l,o)}}function _arrayLikeToArray$n(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=new Array(o);u<o;u++)d[u]=l[u];return d}function _classCallCheck$1n(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}var PreviewList=function l(){var o=this;_classCallCheck$1n(this,l),this.register=function(u){o.previews.push(u)},this.unregister=function(u){for(var d;(d=o.previews.indexOf(u))!==-1;)o.previews.splice(d,1)},this.backendChanged=function(u){var d=_createForOfIteratorHelper$1(o.previews),f;try{for(d.s();!(f=d.n()).done;){var p=f.value;p.backendChanged(u)}}catch(h){d.e(h)}finally{d.f()}},this.previews=[]},PreviewManager=new PreviewList,_default=function l(o,u,d){var f=this;_classCallCheck$1n(this,l),this.setup=function(){if(!(typeof window>"u")){if(f.constructor.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");f.constructor.isSetUp=!0,f.addEventListeners(window),f.backends[f.current].instance.setup()}},this.teardown=function(){typeof window>"u"||(f.constructor.isSetUp=!1,f.removeEventListeners(window),f.backends[f.current].instance.teardown())},this.connectDragSource=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return f.connectBackend("connectDragSource",v)},this.connectDragPreview=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return f.connectBackend("connectDragPreview",v)},this.connectDropTarget=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return f.connectBackend("connectDropTarget",v)},this.previewEnabled=function(){return f.backends[f.current].preview},this.addEventListeners=function(h){f.backends.forEach(function(v){v.transition&&h.addEventListener(v.transition.event,f.backendSwitcher,!0)})},this.removeEventListeners=function(h){f.backends.forEach(function(v){v.transition&&h.removeEventListener(v.transition.event,f.backendSwitcher,!0)})},this.backendSwitcher=function(h){var v=f.current,g=0;if(f.backends.some(function(b){return g!==f.current&&b.transition&&b.transition.check(h)?(f.current=g,!0):(g+=1,!1)}),f.current!==v){f.backends[v].instance.teardown(),Object.keys(f.nodes).forEac
112h(function(b){var w=f.nodes[b];w.handler(),w.handler=f.callBackend(w.func,w.args)}),PreviewManager.backendChanged(f);var m=f.backends[f.current];if(m.instance.setup(),m.skipDispatchOnTransition)return;var y=null;try{y=new h.constructor(h.type,h)}catch{y=document.createEvent("Event"),y.initEvent(h.type,h.bubbles,h.cancelable)}h.target.dispatchEvent(y)}},this.callBackend=function(h,v){var g;return(g=f.backends[f.current].instance)[h].apply(g,_toConsumableArray$j(v))},this.connectBackend=function(h,v){var g="".concat(h,"_").concat(v[0]),m=f.callBackend(h,v);return f.nodes[g]={func:h,args:v,handler:m},function(){var y,b=(y=f.nodes[g]).handler.apply(y,arguments);return delete f.nodes[g],b}};var p=objectAssign({backends:[]},d||{});if(p.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)
113        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=[],p.backends.forEach(function(h){if(!h.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(h));var v=h.transition;if(v&&!v._isMBTransition)throw new Error("You must specify a valid 'transition' property (either undefined or the return of 'createTransition') in your Backend entry: ".concat(h));f.backends.push({instance:h.backend(o,u,h.options),preview:h.preview||!1,transition:v,skipDispatchOnTransition:!!h.skipDispatchOnTransition})}),this.nodes={}};const MultiBackend=(function(l,o,u){return new _default(l,o,u)}),esm$3=Object.freeze(Object.defineProperty({__proto__:null,HTML5DragTransition,MouseTransition,MultiBackend:_default,PreviewManager,TouchTransition,createTransition,default:MultiBackend},Symbol.toStringTag,{value:"Module"}));var PreviewContext=React.createContext(),getStyle=function(o){var u="translate(".concat(o.x,"px, ").concat(o.y,"px)");return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:u,WebkitTransform:u}},Preview$1=function(o){var u=useDragLayer(function(p){return{currentOffset:p.getSourceClientOffset(),isDragging:p.isDragging(),itemType:p.getItemType(),item:p.getItem()}});if(!u.isDragging||u.currentOffset===null)return null;var d={itemType:u.itemType,item:u.item,style:getStyle(u.currentOffset)},f;return o.children&&typeof o.children=="function"?f=o.children(d):o.children?f=o.children:f=o.generator(d),React.createElement(PreviewContext.Provider,{value:d},f)};Preview$1.propTypes={generator:PropTypes.func,children:PropTypes.oneOfType([PropTypes.node,PropTypes.func])};var Context=PreviewContext;function _slicedToArray$6(l,o){return _arrayWithHoles$6(l)||_iterableToArrayLimit$6(l,o)||_unsupportedIterableToArray$m(l,o)||_nonIterableRest$6()}function _nonIterableRest$6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
114In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$m(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$m(l,o);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return _arrayLikeToArray$m(l,o)}}function _arrayLikeToArray$m(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=new Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$6(l,o){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(l)))){var u=[],d=!0,f=!1,p=void 0;try{for(var h=l[Symbol.iterator](),v;!(d=(v=h.next()).done)&&(u.push(v.value),!(o&&u.length===o));d=!0);}catch(g){f=!0,p=g}finally{try{!d&&h.return!=null&&h.return()}finally{if(f)throw p}}return u}}function _arrayWithHoles$6(l){if(Array.isArray(l))return l}var Preview=function(o){var u=reactExports.useState(!1),d=_slicedToArray$6(u,2),f=d[0],p=d[1];return reactExports.useEffect(function(){var h={backendChanged:function(g){p(g.previewEnabled())}};return PreviewManager.register(h),function(){PreviewManager.unregister(h)}}),f?React.createElement(Preview$1,o):null};Preview.Context=Context;Preview.propTypes=Preview$1.propTypes;const esm$2=Object.freeze(Object.defineProperty({__proto__:null,HTML5DragTransition,MouseTransition,Preview,TouchTransition,createTransition,default:MultiBackend},Symbol.toStringTag,{value:"Module"}));var HTML5toTouch$1={};function memoize(l){var o=null,u=function(){return o==null&&(o=l()),o};return u}function without(l,o){return l.filter(function(u){return u!==o})}function union(l,o){var u=new Set,d=function(h){return u.add(h)};l.forEach(d),o.forEach(d);var f=[];return u.forEach(function(p){return f.push(p)}),f}function _classCallCheck$1m(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1i(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1i(l,o,u){return o&&_defineProperties$1i(l.prototype,o),l}var EnterLeaveCounter=(function(){function l(o){_classCallCheck$1m(this,l),this.entered=[],this.isNodeInDocument=o}return _createClass$1i(l,[{key:"enter",value:function(u){var d=this,f=this.entered.length,p=function(v){return d.isNodeInDocument(v)&&(!v.contains||v.contains(u))};return this.entered=union(this.entered.filter(p),[u]),f===0&&this.entered.length>0}},{key:"leave",value:function(u){var d=this.entered.length;return this.entered=without(this.entered.filter(this.isNodeInDocument),u),d>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),l})(),isFirefox=memoize(function(){return/firefox/i.test(navigator.userAgent)}),isSafari=memoize(function(){return!!window.safari});function _classCallCheck$1l(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1h(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1h(l,o,u){return o&&_defineProperties$1h(l.prototype,o),l}var MonotonicInterpolant=(function(){function l(o,u){_classCallCheck$1l(this,l);for(var d=o.length,f=[],p=0;p<d;p++)f.push(p);f.sort(function(q,z){return o[q]<o[z]?-1:1});for(var h=[],v=[],g,m,y=0;y<d-1;y++)g=o[y+1]-o[y],m=u[y+1]-u[y],h.push(g),v.push(m/g);for(var b=[v[0]],w=0;w<h.length-1;w++){var E=v[w],P=v[w+1];if(E*P<=0)b.push(0);else{g=h[w];
114var C=h[w+1],T=g+C;b.push(3*T/((T+C)/E+(T+g)/P))}}b.push(v[v.length-1]);for(var O=[],x=[],A,D=0;D<b.length-1;D++){A=v[D];var j=b[D],M=1/h[D],N=j+b[D+1]-A-A;O.push((A-j-N)*M),x.push(N*M*M)}this.xs=o,this.ys=u,this.c1s=b,this.c2s=O,this.c3s=x}return _createClass$1h(l,[{key:"interpolate",value:function(u){var d=this.xs,f=this.ys,p=this.c1s,h=this.c2s,v=this.c3s,g=d.length-1;if(u===d[g])return f[g];for(var m=0,y=v.length-1,b;m<=y;){b=Math.floor(.5*(m+y));var w=d[b];if(w<u)m=b+1;else if(w>u)y=b-1;else return f[b]}g=Math.max(0,y);var E=u-d[g],P=E*E;return f[g]+p[g]*E+h[g]*P+v[g]*E*P}}]),l})(),ELEMENT_NODE$1=1;function getNodeClientOffset$1(l){var o=l.nodeType===ELEMENT_NODE$1?l:l.parentElement;if(!o)return null;var u=o.getBoundingClientRect(),d=u.top,f=u.left;return{x:f,y:d}}function getEventClientOffset$1(l){return{x:l.clientX,y:l.clientY}}function isImageNode(l){return l.nodeName==="IMG"&&(isFirefox()||!document.documentElement.contains(l))}function getDragPreviewSize(l,o,u,d){var f=l?o.width:u,p=l?o.height:d;return isSafari()&&l&&(p/=window.devicePixelRatio,f/=window.devicePixelRatio),{dragPreviewWidth:f,dragPreviewHeight:p}}function getDragPreviewOffset(l,o,u,d,f){var p=isImageNode(o),h=p?l:o,v=getNodeClientOffset$1(h),g={x:u.x-v.x,y:u.y-v.y},m=l.offsetWidth,y=l.offsetHeight,b=d.anchorX,w=d.anchorY,E=getDragPreviewSize(p,o,m,y),P=E.dragPreviewWidth,C=E.dragPreviewHeight,T=function(){var N=new MonotonicInterpolant([0,.5,1],[g.y,g.y/y*C,g.y+C-y]),q=N.interpolate(w);return isSafari()&&p&&(q+=(window.devicePixelRatio-1)*C),q},O=function(){var N=new MonotonicInterpolant([0,.5,1],[g.x,g.x/m*P,g.x+P-m]);return N.interpolate(b)},x=f.offsetX,A=f.offsetY,D=x===0||x,j=A===0||A;return{x:D?x:O(),y:j?A:T()}}var FILE="__NATIVE_FILE__",URL$1="__NATIVE_URL__",TEXT="__NATIVE_TEXT__";const NativeTypes=Object.freeze(Object.defineProperty({__proto__:null,FILE,TEXT,URL:URL$1},Symbol.toStringTag,{value:"Module"}));function getDataFromDataTransfer(l,o,u){var d=o.reduce(function(f,p){return f||l.getData(p)},"");return d??u}var _nativeTypesConfig;function _defineProperty$P(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}var nativeTypesConfig=(_nativeTypesConfig={},_defineProperty$P(_nativeTypesConfig,FILE,{exposeProperties:{files:function(o){return Array.prototype.slice.call(o.files)},items:function(o){return o.items}},matchesTypes:["Files"]}),_defineProperty$P(_nativeTypesConfig,URL$1,{exposeProperties:{urls:function(o,u){return getDataFromDataTransfer(o,u,"").split(`
115`)}}
115,matchesTypes:["Url","text/uri-list"]}),_defineProperty$P(_nativeTypesConfig,TEXT,{exposeProperties:{text:function(o,u){return getDataFromDataTransfer(o,u,"")}},matchesTypes:["Text","text/plain"]}),_nativeTypesConfig);function _classCallCheck$1k(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1g(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1g(l,o,u){return o&&_defineProperties$1g(l.prototype,o),l}var NativeDragSource=(function(){function l(o){_classCallCheck$1k(this,l),this.config=o,this.item={},this.initializeExposedProperties()}return _createClass$1g(l,[{key:"initializeExposedProperties",value:function(){var u=this;Object.keys(this.config.exposeProperties).forEach(function(d){Object.defineProperty(u.item,d,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(d,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(u){var d=this;if(u){var f={};Object.keys(this.config.exposeProperties).forEach(function(p){f[p]={value:d.config.exposeProperties[p](u,d.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,f)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(u,d){return d===u.getSourceId()}},{key:"endDrag",value:function(){}}]),l})();function createNativeDragSource(l,o){var u=new NativeDragSource(nativeTypesConfig[l]);return u.loadDataTransfer(o),u}function matchNativeItemType(l){if(!l)return null;var o=Array.prototype.slice.call(l.types||[]);return Object.keys(nativeTypesConfig).filter(function(u){var d=nativeTypesConfig[u].matchesTypes;return d.some(function(f){return o.indexOf(f)>-1})})[0]||null}function _classCallCheck$1j(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1f(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1f(l,o,u){return o&&_defineProperties$1f(l.prototype,o),l}var OptionsReader$1=(function(){function l(o){_classCallCheck$1j(this,l),this.globalContext=o}return _createClass$1f(l,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){if(this.window)return this.window.document}}]),l})();function ownKeys$H(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$H(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$H(Object(u),!0).forEach(function(d){_defineProperty$O(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$H(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$O(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$1i(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1e(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1e(l,o,u){return o&&_defineProperties$1e(l.prototype,o),l}var HTML5Backend=(function(){function l(o,u){var d=this;_classCallCheck$1i(this,l),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.get
115SourceClientOffset=function(f){return getNodeClientOffset$1(d.sourceNodes.get(f))},this.endDragNativeItem=function(){d.isDraggingNativeItem()&&(d.actions.endDrag(),d.registry.removeSource(d.currentNativeHandle),d.currentNativeHandle=null,d.currentNativeSource=null)},this.isNodeInDocument=function(f){return d.document&&d.document.body&&document.body.contains(f)},this.endDragIfSourceWasRemovedFromDOM=function(){var f=d.currentDragSourceNode;d.isNodeInDocument(f)||d.clearCurrentDragSourceNode()&&d.actions.endDrag()},this.handleTopDragStartCapture=function(){d.clearCurrentDragSourceNode(),d.dragStartSourceIds=[]},this.handleTopDragStart=function(f){if(!f.defaultPrevented){var p=d.dragStartSourceIds;d.dragStartSourceIds=null;var h=getEventClientOffset$1(f);d.monitor.isDragging()&&d.actions.endDrag(),d.actions.beginDrag(p||[],{publishSource:!1,getSourceClientOffset:d.getSourceClientOffset,clientOffset:h});var v=f.dataTransfer,g=matchNativeItemType(v);if(d.monitor.isDragging()){if(v&&typeof v.setDragImage=="function"){var m=d.monitor.getSourceId(),y=d.sourceNodes.get(m),b=d.sourcePreviewNodes.get(m)||y;if(b){var w=d.getCurrentSourcePreviewNodeOptions(),E=w.anchorX,P=w.anchorY,C=w.offsetX,T=w.offsetY,O={anchorX:E,anchorY:P},x={offsetX:C,offsetY:T},A=getDragPreviewOffset(y,b,h,O,x);v.setDragImage(b,A.x,A.y)}}try{v.setData("application/json",{})}catch{}d.setCurrentDragSourceNode(f.target);var D=d.getCurrentSourcePreviewNodeOptions(),j=D.captureDraggingState;j?d.actions.publishDragSource():setTimeout(function(){return d.actions.publishDragSource()},0)}else if(g)d.beginDragNativeItem(g);else{if(v&&!v.types&&(f.target&&!f.target.hasAttribute||!f.target.hasAttribute("draggable")))return;f.preventDefault()}}},this.handleTopDragEndCapture=function(){d.clearCurrentDragSourceNode()&&d.actions.endDrag()},this.handleTopDragEnterCapture=function(f){d.dragEnterTargetIds=[];var p=d.enterLeaveCounter.enter(f.target);if(!(!p||d.monitor.isDragging())){var h=f.dataTransfer,v=matchNativeItemType(h);v&&d.beginDragNativeItem(v,h)}},this.handleTopDragEnter=function(f){var p=d.dragEnterTargetIds;if(d.dragEnterTargetIds=[],!!d.monitor.isDragging()){d.altKeyPressed=f.altKey,isFirefox()||d.actions.hover(p,{clientOffset:getEventClientOffset$1(f)});var h=p.some(function(v){return d.monitor.canDropOnTarget(v)});h&&(f.preventDefault(),f.dataTransfer&&(f.dataTransfer.dropEffect=d.getCurrentDropEffect()))}},this.handleTopDragOverCapture=function(){d.dragOverTargetIds=[]},this.handleTopDragOver=function(f){var p=d.dragOverTargetIds;if(d.dragOverTargetIds=[],!d.monitor.isDragging()){f.preventDefault(),f.dataTransfer&&(f.dataTransfer.dropEffect="none");return}d.altKeyPressed=f.altKey,d.actions.hover(p||[],{clientOffset:getEventClientOffset$1(f)});var h=(p||[]).some(function(v){return d.monitor.canDropOnTarget(v)});h?(f.preventDefault(),f.dataTransfer&&(f.dataTransfer.dropEffect=d.getCurrentDropEffect())):d.isDraggingNativeItem()?f.preventDefault():(f.preventDefault(),f.dataTransfer&&(f.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(f){d.isDraggingNativeItem()&&f.preventDefault();var p=d.enterLeaveCounter.leave(f.target);p&&d.isDraggingNativeItem()&&d.endDragNativeItem()},this.handleTopDropCapture=function(f){d.dropTargetIds=[],f.preventDefault(),d.isDraggingNativeItem()&&d.currentNativeSource.loadDataTransfer(f.dataTransfer),d.enterLeaveCounter.reset()},this.handleTopDrop=function(f){var p=d.dropTargetIds;d.dropTargetIds=[],d.actions.hover(p,{clientOffset:getEventClientOffset$1(f)}),d.actions.drop({dropEffect:d.getCurrentDropEffect()}),d.isDraggingNativeItem()?d.endDragNativeItem():d.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(f){var p=f.target;typeof p.dragDrop=="function"&&(p.tagName==="INPUT"||p.tagName==="SELECT"||p.tagName==="TEXTAREA"||p.isContentEditable||(f.preventDefault(),p.dragDrop()))},this.options=new OptionsReader$1(u),this.actions=o.getActions(),this.monitor=o.getMonitor(),this.registry=o.getRegistry(),this.enterLeaveCounter=new EnterLeaveCounter(this.isNodeInDocument)}return _createClass$1e(l,[{key:"setup",value:function(){if(this.window!==void 0){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(){this.window!==void 0&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(u,d,f){var p=this;return this.sourcePreviewNodeOptions.set(u,f),this.sourcePreviewNodes.set(u,d),function(){p.sourcePreviewNodes.delete(u),p.sourcePreviewNodeOptions.delete(u)}}},{key:"connectDragSource",value:function(u,d,f){var p=this;this.sourceNodes.set(u,d),this.sourceNodeOptions.set(u,f);var h=function(m){return p.handleDragStart(m,u)},v=function(m){return p.handleSelectStart(m)};return d.setAttribute("draggable","true"),d.addEventListener("dragstart",h),d.addEventListener("selectstart",v),function(){p.sourceNodes.delete(u),p.sourceNodeOptions.delete(u),d.removeEventListener("dragstart",h),d.removeEventListener("selectstart",v),d.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(u,d){var f=this,p=function(m){return f.handleDragEnter(m,u)},h=function(m){return f.handleDragOver(m,u)},v=function(m){return f.handleDrop(m,u)};return d.addEventListener("dragenter",p),d.addEventListener("dragover",h),d.addEventListener("drop",v),function(){d.removeEventListener("dragenter",p),d.removeEventListener("dragover",h),d.removeEventListener("drop",v)}}},{key:"addEventListeners",value:function(u){u.addEventListener&&(u.addEventListener("dragstart",this.handleTopDragStart),u.addEventListener("dragstart",this.handleTopDragStartCapture,!0),u.addEventListener("dragend",this.handleTopDragEndCapture,!0),u.addEventListener("dragenter",this.handleTopDragEnter),u.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),u.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),u.addEventListener("dragover",this.handleTopDragOver),u.addEventListener("dragover",this.handleTopDragOverCapture,!0),u.addEventListener("drop",this.handleTopDrop),u.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(u){u.removeEventListener&&(u.removeEventListener("dragstart",this.handleTopDragStart),u.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),u.removeEventListener("dragend",this.handleTopDragEndCapture,!0),u.removeEventListener("dragenter",this.handleTopDragEnter),u.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),u.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),u.removeEventListener("dragover",this.handleTopDragOver),u.removeEventListener("dragover",this.handleTopDragOverCapture,!0),u.removeEventListener("drop",this.handleTopDrop),u.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var u=this.monitor.getSourceId(),d=this.sourceNodeOptions.get(u);return _objectSpread$H({dropEffect:this.altKeyPressed?"copy":"move"},d||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var u=this.monitor.getSourceId(),d=this.sourcePreviewNodeOptions.get(u);
115return _objectSpread$H({anchorX:.5,anchorY:.5,captureDraggingState:!1},d||{})}},{key:"isDraggingNativeItem",value:function(){var u=this.monitor.getItemType();return Object.keys(NativeTypes).some(function(d){return NativeTypes[d]===u})}},{key:"beginDragNativeItem",value:function(u,d){this.clearCurrentDragSourceNode(),this.currentNativeSource=createNativeDragSource(u,d),this.currentNativeHandle=this.registry.addSource(u,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(u){var d=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=u;var f=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){return d.window&&d.window.addEventListener("mousemove",d.endDragIfSourceWasRemovedFromDOM,!0)},f)}},{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):!1}},{key:"handleDragStart",value:function(u,d){u.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(d))}},{key:"handleDragEnter",value:function(u,d){this.dragEnterTargetIds.unshift(d)}},{key:"handleDragOver",value:function(u,d){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(d)}},{key:"handleDrop",value:function(u,d){this.dropTargetIds.unshift(d)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}]),l})(),emptyImage;function getEmptyImage(){return emptyImage||(emptyImage=new Image,emptyImage.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),emptyImage}var createBackend$1=function(o,u){return new HTML5Backend(o,u)};const esm$1=Object.freeze(Object.defineProperty({__proto__:null,NativeTypes,default:createBackend$1,getEmptyImage},Symbol.toStringTag,{value:"Module"})),require$$0$4=getAugmentedNamespace(esm$1);var ListenerType;(function(l){l.mouse="mouse",l.touch="touch",l.keyboard="keyboard"})(ListenerType||(ListenerType={}));var MouseButtons={Left:1},MouseButton={Left:0};function eventShouldStartDrag(l){return l.button===void 0||l.button===MouseButton.Left}function eventShouldEndDrag(l){return l.buttons===void 0||(l.buttons&MouseButtons.Left)===0}function isTouchEvent(l){return!!l.targetTouches}var ELEMENT_NODE=1;function getNodeClientOffset(l){var o=l.nodeType===ELEMENT_NODE?l:l.parentElement;if(o){var u=o.getBoundingClientRect(),d=u.top,f=u.left;return{x:f,y:d}}}function getEventClientTouchOffset(l,o){if(l.targetTouches.length===1)return getEventClientOffset(l.targetTouches[0]);if(o&&l.touches.length===1&&l.touches[0].target===o.target)return getEventClientOffset(l.touches[0])}function getEventClientOffset(l,o){return isTouchEvent(l)?getEventClientTouchOffset(l,o):{x:l.clientX,y:l.clientY}}function distance(l,o,u,d){return Math.sqrt(Math.pow(Math.abs(u-l),2)+Math.pow(Math.abs(d-o),2))}function inAngleRanges(l,o,u,d,f){if(!f)return!1;for(var p=Math.atan2(d-o,u-l)*180/Math.PI+180,h=0;h<f.length;++h)if((f[h].start==null||p>=f[h].start)&&(f[h].end==null||p<=f[h].end))return!0;return!1}var supportsPassive$1=(function(){var l=!1;try{addEventListener("test",function(){},Object.defineProperty({},"passive",{get:function(){return l=!0,!0}}))}catch{}return l})();function _classCallCheck$1h(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1d(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1d(l,o,u){return o&&_defineProperties$1d(l.prototype,o),l}var OptionsReader=(function(){function l(o,u){var d=this;_classCallCheck$1h(this,l),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=u,this.delayTouchStart=
vendor: 6,614 bytes, line 115
115o.delayTouchStart||o.delay||0,this.delayMouseStart=o.delayMouseStart||o.delay||0,Object.keys(o).forEach(function(f){o[f]!=null&&(d[f]=o[f])})}return _createClass$1d(l,[{key:"window",get:function(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}},{key:"document",get:function(){if(this.window)return this.window.document}}]),l})(),_eventNames;function _classCallCheck$1g(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1c(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function _createClass$1c(l,o,u){return o&&_defineProperties$1c(l.prototype,o),l}function _defineProperty$N(l,o,u){return o in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}var eventNames=(_eventNames={},_defineProperty$N(_eventNames,ListenerType.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),_defineProperty$N(_eventNames,ListenerType.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),_defineProperty$N(_eventNames,ListenerType.keyboard,{keydown:"keydown"}),_eventNames),TouchBackend=(function(){function l(o,u,d){var f=this;_classCallCheck$1g(this,l),this.getSourceClientOffset=function(p){return getNodeClientOffset(f.sourceNodes[p])},this.handleTopMoveStartCapture=function(p){eventShouldStartDrag(p)&&(f.moveStartSourceIds=[])},this.handleMoveStart=function(p){Array.isArray(f.moveStartSourceIds)&&f.moveStartSourceIds.unshift(p)},this.handleTopMoveStart=function(p){if(eventShouldStartDrag(p)){var h=getEventClientOffset(p);h&&(isTouchEvent(p)&&(f.lastTargetTouchFallback=p.targetTouches[0]),f._mouseClientOffset=h),f.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(p){if(eventShouldStartDrag(p)){var h=p.type===eventNames.touch.start?f.options.delayTouchStart:f.options.delayMouseStart;f.timeout=setTimeout(f.handleTopMoveStart.bind(f,p),h),f.waitingForDelay=!0}},this.handleTopMoveCapture=function(){f.dragOverTargetIds=[]},this.handleMove=function(p,h){f.dragOverTargetIds&&f.dragOverTargetIds.unshift(h)},this.handleTopMove=function(p){if(f.timeout&&clearTimeout(f.timeout),!(!f.document||f.waitingForDelay)){var h=f.moveStartSourceIds,v=f.dragOverTargetIds,g=f.options.enableHoverOutsideTarget,m=getEventClientOffset(p,f.lastTargetTouchFallback);if(m){if(f._isScrolling||!f.monitor.isDragging()&&inAngleRanges(f._mouseClientOffset.x||0,f._mouseClientOffset.y||0,m.x,m.y,f.options.scrollAngleRanges)){f._isScrolling=!0;return}if(!f.monitor.isDragging()&&f._mouseClientOffset.hasOwnProperty("x")&&h&&distance(f._mouseClientOffset.x||0,f._mouseClientOffset.y||0,m.x,m.y)>(f.options.touchSlop?f.options.touchSlop:0)&&(f.moveStartSourceIds=void 0,f.actions.beginDrag(h,{clientOffset:f._mouseClientOffset,getSourceClientOffset:f.getSourceClientOffset,publishSource:!1})),!!f.monitor.isDragging()){var y=f.sourceNodes[f.monitor.getSourceId()];f.installSourceNodeRemovalObserver(y),f.actions.publishDragSource(),p.preventDefault();var b=(v||[]).map(function(x){return f.targetNodes[x]}),w=f.options.getDropTargetElementsAtPoint?f.options.getDropTargetElementsAtPoint(m.x,m.y,b):f.document.elementsFromPoint(m.x,m.y),E=[];for(var P in w)if(w.hasOwnProperty(P)){var C=w[P];for(E.push(C);C;)C=C.parentElement,E.indexOf(C)===-1&&E.push(C)}var T=E.filter(function(x){return b.indexOf(x)>-1}).map(function(x){for(var A in f.targetNodes)if(x===f.targetNodes[A])return A}).filter(function(x){return!!x}).filter(function(x,A,D){return D.indexOf(x)===A});if(g){for(var O in f.targetNodes)if(f.targetNodes[O]&&f.targetNodes[O].contains(y)&&T.indexOf(O)===-1){T.unshift(O);break}}T.reverse(),f.actions.hover(T,{clientOffset:m})}}}},this.handleTopMoveEndCapture=function(p){if(f._isScrolling=!1,f.lastTargetTouchFallback=void 0,!!eventShouldEndDrag(p)){if(!f.monitor.isDragging()||f.monitor.didDrop()){f.moveStartSourceIds=void 0;return}p.preventDefault(),f._mouseClientOffset={},f.uninstallSourceNodeRemovalObserver(),f.actions.drop(),f.actions.endDrag()}},this.handleCancelOnEscape=function(p){p.key==="Escape"&&f.monitor.isDragging()&&(f._mouseClientOffset={},f.uninstallSourceNodeRemovalObserver(),f.actions.endDrag())},this.options=new OptionsReader(d,u),this.actions=o.getActions(),this.monitor=o.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(ListenerType.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(ListenerType.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(ListenerType.keyboard)}return _createClass$1c(l,[{key:"setup",value:function(){this.window&&(invariant(!l.isSetUp,"Cannot have two Touch backends at the same time."),l.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&&(l.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(u,d,f,p){var h=supportsPassive$1?{capture:p,passive:!1}:p;this.listenerTypes.forEach(function(v){var g=eventNames[v][d];g&&u.addEventListener(g,f,h)})}},{key:"removeEventListener",value:function(u,d,f,p){var h=supportsPassive$1?{capture:p,passive:!1}:p;
115this.listenerTypes.forEach(function(v){var g=eventNames[v][d];g&&u.removeEventListener(g,f,h)})}},{key:"connectDragSource",value:function(u,d){var f=this,p=this.handleMoveStart.bind(this,u);return this.sourceNodes[u]=d,this.addEventListener(d,"start",p),function(){delete f.sourceNodes[u],f.removeEventListener(d,"start",p)}}},{key:"connectDragPreview",value:function(u,d,f){var p=this;return this.sourcePreviewNodeOptions[u]=f,this.sourcePreviewNodes[u]=d,function(){delete p.sourcePreviewNodes[u],delete p.sourcePreviewNodeOptions[u]}}},{key:"connectDropTarget",value:function(u,d){var f=this;if(!this.document)return function(){return null};var p=function(v){if(!(!f.document||!f.monitor.isDragging())){var g;switch(v.type){case eventNames.mouse.move:g={x:v.clientX,y:v.clientY};break;case eventNames.touch.move:g={x:v.touches[0].clientX,y:v.touches[0].clientY};break}var m=g!=null?f.document.elementFromPoint(g.x,g.y):void 0,y=m&&d.contains(m);if(m===d||y)return f.handleMove(v,u)}};return this.addEventListener(this.document.body,"move",p),this.targetNodes[u]=d,function(){f.document&&(delete f.targetNodes[u],f.removeEventListener(f.document.body,"move",p))}}},{key:"getTopMoveStartHandler",value:function(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}},{key:"installSourceNodeRemovalObserver",value:function(u){var d=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=u,this.draggedSourceNodeRemovalObserver=new MutationObserver(function(){u&&!u.parentElement&&(d.resurrectSourceNode(),d.uninstallSourceNodeRemovalObserver())}),!(!u||!u.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(u.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}}]),l})(),createBackend=function(o,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new TouchBackend(o,u,d)};const esm=Object.freeze(Object.defineProperty({__proto__:null,default:createBackend},Symbol.toStringTag,{value:"Module"})),require$$1$3=getAugmentedNamespace(esm),require$$2$5=getAugmentedNamespace(esm$3);var hasRequiredHTML5toTouch;function requireHTML5toTouch(){if(hasRequiredHTML5toTouch)return HTML5toTouch$1;hasRequiredHTML5toTouch=1,Object.defineProperty(HTML5toTouch$1,"__esModule",{value:!0}),HTML5toTouch$1.default=void 0;var l=d(require$$0$4),o=d(require$$1$3),u=require$$2$5;function d(p){return p&&p.__esModule?p:{default:p}}var f={backends:[{backend:l.default,transition:u.MouseTransition},{backend:o.default,options:{enableMouseEvents:!0},preview:!0,transition:u.TouchTransition}]};return HTML5toTouch$1.default=f,HTML5toTouch$1}var HTML5toTouchExports=requireHTML5toTouch();const HTML5toTouch=getDefaultExportFromCjs(HTML5toTouchExports);var main={},convert51dab0c6={},hasRequiredConvert51dab0c6;function requireConvert51dab0c6(){if(hasRequiredConvert51dab0c6)return convert51dab0c6;hasRequiredConvert51dab0c6=1;function l(z){return z.reduce(function(H,U){var F=U[0],B=U[1];return H[F]=B,H[B]=F,H},{})}function o(z){return typeof z=="boolean"}function u(z){return typeof z=="function"}function d(z){return typeof z=="number"}function f(z){return z===null||typeof z>"u"}function p(z){return z&&typeof z=="object"}function h(z){return typeof z=="string"}function v(z,H){return z.indexOf(H)!==-1}function g(z){return parseFloat(z)===0?z:z[0]==="-"?z.slice(1):"-"+z}function m(z,H,U,F){return H+g(U)+F}function y(z){var H=z.indexOf(".");if(H===-1)z=100-parseFloat(z)+"%";else{var U=z.length-H-2;
115z=100-parseFloat(z),z=z.toFixed(U)+"%"}return z}function b(z){return z.replace(/ +/g," ").split(" ").map(function(H){return H.trim()}).filter(Boolean).reduce(function(H,U){var F=H.list,B=H.state,G=(U.match(/\(/g)||[]).length,Q=(U.match(/\)/g)||[]).length;return B.parensDepth>0?F[F.length-1]=F[F.length-1]+" "+U:F.push(U),B.parensDepth+=G-Q,{list:F,state:B}},{list:[],state:{parensDepth:0}}).list}function w(z){var H=b(z);if(H.length<=3||H.length>4)return z;var U=H[0],F=H[1],B=H[2],G=H[3];return[U,G,B,F].join(" ")}function E(z){return!o(z)&&!f(z)}function P(z){for(var H=[],U=0,F=0,B=!1;F<z.length;)!B&&z[F]===","?(H.push(z.substring(U,F).trim()),F++,U=F):z[F]==="("?(B=!0,F++):(z[F]===")"&&(B=!1),F++);return U!=F&&H.push(z.substring(U,F+1)),H}var C={padding:function(H){var U=H.value;return d(U)?U:w(U)},textShadow:function(H){var U=H.value,F=P(U).map(function(B){return B.replace(/(^|\s)(-*)([.|\d]+)/,function(G,Q,K,Z){if(Z==="0")return G;var te=K===""?"-":"";return""+Q+te+Z})});return F.join(",")},borderColor:function(H){var U=H.value;return w(U)},borderRadius:function(H){var U=H.value;if(d(U))return U;if(v(U,"/")){var F=U.split("/"),B=F[0],G=F[1],Q=C.borderRadius({value:B.trim()}),K=C.borderRadius({value:G.trim()});return Q+" / "+K}var Z=b(U);switch(Z.length){case 2:return Z.reverse().join(" ");case 4:{var te=Z[0],oe=Z[1],fe=Z[2],le=Z[3];return[oe,te,le,fe].join(" ")}default:return U}},background:function(H){var U=H.value,F=H.valuesToConvert,B=H.isRtl,G=H.bgImgDirectionRegex,Q=H.bgPosDirectionRegex;if(d(U))return U;var K=U.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return U=U.replace(K,C.backgroundPosition({value:K,valuesToConvert:F,isRtl:B,bgPosDirectionRegex:Q})),C.backgroundImage({value:U,valuesToConvert:F,bgImgDirectionRegex:G})},backgroundImage:function(H){var U=H.value,F=H.valuesToConvert,B=H.bgImgDirectionRegex;return!v(U,"url(")&&!v(U,"linear-gradient(")?U:U.replace(B,function(G,Q,K){return G.replace(K,F[K])})},backgroundPosition:function(H){var U=H.value,F=H.valuesToConvert,B=H.isRtl,G=H.bgPosDirectionRegex;return U.replace(B?/^((-|\d|\.)+%)/:null,function(Q,K){return y(K)}).replace(G,function(Q){return F[Q]})},backgroundPositionX:function(H){var U=H.value,F=H.valuesToConvert,B=H.isRtl,G=H.bgPosDirectionRegex;return d(U)?U:C.backgroundPosition({value:U,valuesToConvert:F,isRtl:B,bgPosDirectionRegex:G})},transition:function(H){var U=H.value,F=H.propertiesToConvert;return U.split(/,\s*/g).map(function(B){var G=B.split(" ");return G[0]=F[G[0]]||G[0],G.join(" ")}).join(", ")},transitionProperty:function(H){var U=H.value,F=H.propertiesToConvert;return U.split(/,\s*/g).map(function(B){return F[B]||B}).join(", ")},transform:function(H){var U=H.value,F="[^\\u0020-\\u007e]",B="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",G="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+F+"|"+B+")")+("(?:[_a-z0-9-]|"+F+"|"+B+")")+"*")+")?")+")|(?:inherit|auto))",Q=new RegExp("(translateX\\s*\\(\\s*)"+G+"(\\s*\\))","gi"),K=new RegExp("(translate\\s*\\(\\s*)"+G+"((?:\\s*,\\s*"+G+"){0,1}\\s*\\))","gi"),Z=new RegExp("(translate3d\\s*\\(\\s*)"+G+"((?:\\s*,\\s*"+G+"){0,2}\\s*\\))","gi"),te=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+G+"(\\s*\\))","gi");return U.replace(Q,m).replace(K,m).replace(Z,m).replace(te,m)}};C.objectPosition=C.backgroundPosition,C.margin=C.padding,C.borderWidth=C.padding,C.boxShadow=C.textShadow,C.webkitBoxShadow=C.boxShadow,C.mozBoxShadow=C.boxShadow,C.WebkitBoxShadow=C.boxShadow,C.MozBoxShadow=C.boxShadow,C.borderStyle=C.borderColor,C.webkitTransform=C.transform,C.mozTransform=C.transform,C.WebkitTransform=C.transform,C.MozTransform=C.transform,C.transformOrigin=C.backgroundPosition,C.webkitTransformOrigin=C.transformOrigin,C.mozTransformOrigin=C.transformOrigin,C.WebkitTransformOrigin=C.transformOrigin,C.MozTransformOrigin=C.transformOrigin,C.webkitTransition=C.transition,C.mozTransition=C.transition,C.WebkitTransition=C.transition,C.MozTransition=C.transition,C.webkitTransitionProperty=C.transitionProperty,C.mozTransitionProperty=C.transitionProperty,C.WebkitTransitionProperty=C.transitionProperty,C.MozTransitionProperty=C.transitionProperty,C["text-shadow"]=C.textShadow,C["border-color"]=C.borderColor,C["border-radius"]=C.borderRadius,C["background-image"]=C.backgroundImage,C["background-position"]=C.backgroundPosition,C["background-position-x"]=C.backgroundPositionX,C["object-position"]=C.objectPosition,C["border-width"]=C.padding,C["box-shadow"]=C.textShadow,C["-webkit-box-shadow"]=C.textShadow,C["-moz-box-shadow"]=C.textShadow,C["border-style"]=C.borderColor,C["-webkit-transform"]=C.transform,C["-moz-transform"]=C.transform,C["transform-origin"]=C.transformOrigin,C["-webkit-transform-origin"]=C.transformOrigin,C["-moz-transform-origin"]=C.transformOrigin,C["-webkit-transition"]=C.transition,C["-moz-transition"]=C.transition,C["transition-property"]=C.transitionProperty,C["-webkit-transition-property"]=C.transitionProperty,C["-moz-transition-property"]=C.transitionProperty;var T=l([["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"]]),O=["content"],x=l([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),A=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),D=new RegExp("(left)|(right)");function j(z){return Object.keys(z).reduce(function(H,U){var F=z[U];if(h(F)&&(F=F.trim()),v(O,U))return H[U]=F,H;var B=M(U,F),G=B.key,Q=B.value;return H[G]=Q,H},Array.isArray(z)?[]:{})}function M(z,H){var U=/\/\*\s?@noflip\s?\*\//.test(H),F=U?z:N(z),B=U?H:q(F,H);return{key:F,value:B}}function N(z){return T[z]||z}function q(z,H){if(!E(H))return H;if(p(H))return j(H);
115var U=d(H),F=u(H),B=U||F?H:H.replace(/ !important.*?$/,""),G=!U&&B.length!==H.length,Q=C[z],K;return Q?K=Q({value:B,valuesToConvert:x,propertiesToConvert:T,isRtl:!0,bgImgDirectionRegex:A,bgPosDirectionRegex:D}):K=x[B]||B,G?K+" !important":K}return convert51dab0c6.arrayToObject=l,convert51dab0c6.calculateNewBackgroundPosition=y,convert51dab0c6.canConvertValue=E,convert51dab0c6.convert=j,convert51dab0c6.convertProperty=M,convert51dab0c6.flipSign=g,convert51dab0c6.flipTransformSign=m,convert51dab0c6.getPropertyDoppelganger=N,convert51dab0c6.getValueDoppelganger=q,convert51dab0c6.getValuesAsList=b,convert51dab0c6.handleQuartetValues=w,convert51dab0c6.includes=v,convert51dab0c6.isBoolean=o,convert51dab0c6.isFunction=u,convert51dab0c6.isNullOrUndefined=f,convert51dab0c6.isNumber=d,convert51dab0c6.isObject=p,convert51dab0c6.isString=h,convert51dab0c6.propertiesToConvert=T,convert51dab0c6.propertyValueConverters=C,convert51dab0c6.propsToIgnore=O,convert51dab0c6.splitShadow=P,convert51dab0c6.valuesToConvert=x,convert51dab0c6}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var l=requireConvert51dab0c6();return cjs=l.convert,cjs}var hasRequiredMain;function requireMain(){if(hasRequiredMain)return main;hasRequiredMain=1,Object.defineProperty(main,"__esModule",{value:!0});var l=requireCjs(),o=l.default||l;function u(d){var f=d===void 0?{}:d,p=f.enabled,h=p===void 0?!0:p,v=f.opt,g=v===void 0?"out":v;return{onProcessStyle:function(m,y,b){if(y.type==="font-face")return m;if(!h)return typeof m.flip=="boolean"&&delete m.flip,m;var w=g==="out";return typeof b.options.flip=="boolean"&&(w=b.options.flip),typeof m.flip=="boolean"&&(w=m.flip,delete m.flip),w?o(typeof y.toJSON=="function"?y.toJSON():m):m}}}return main.default=u,main}var mainExports=requireMain();const rtl=getDefaultExportFromCjs(mainExports),translation$j={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:"نتائج Ø¥Ø
115¶Ø§ÙÙŠØ©",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:"الرجوع لحجم الصورة الأساسي"},ar={translation:translation$j},translation$i={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",clearSearchAria:"Suche zurücksetzen",close:"Schließen",closeAddResourceForm:"Formular schließen",closeAddResourceMenu:"Ressourcenliste schließen",closeCompanionWindow:"Hilfsfenster schließen",closeWindow:"Fenster schließen",collapseSection:'Bereich "{{section}}" zuklappen',collapseSidePanel:"Seitenleiste zuklappen",collection:"Sammlung",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",hideWindowSideBar:"Seitenleiste au
115sblenden",hideZoomControls:"Zoomsteuerung verbergen",iiif_homepage:"Über diese Ressource",iiif_manifest:"IIIF-Manifest",iiif_related:"Verwandtes",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}}",itemList:"Kompaktliste",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 Viewer",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",multipartCollection:"Mehrteilige Sammlung",nextCanvas:"Nächstes Objekt",noItemSelected:"Kein Objekt ausgewählt",numItems:"{{number}} Element",numItems_plural:"{{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:"Suche im Dokument",searchTitle:"Suche",selectWorkspaceMenu:"Wählen Sie einen Arbeitsflächentyp",shiftPages:"Buchansicht versetzen",showCollection:"Zeige Sammlung",showingNumAnnotations:"{{number}} Annotation wird angezeigt",showingNumAnnotations_plural:"{{number}} Annotationen werden angezeigt",showWindowSideBar:"Seitenleiste einblenden",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",totalCollections:"{{count}} Sammlung",totalCollections_plural:"{{count}} Sammlungen",totalManifests:"{{count}} Manifest",totalManifests_plural:"{{count}} Manifeste",tryAgain:"Wiederholen",untitled:"[Unbenannt]",view:"Ansicht",viewOptions:"Ansichtsoptionen",viewWorkspaceConfiguration:"Zeige Konfiguration der Arbeitsfläche",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"},de={translation:translation$i},translation$h={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",clearSearchAria:"Reset search",close:"Close",closeAddResourceForm:"Close form",closeAddResourceMenu:"Close resource list",closeCompanionWindow:"Close panel",closeWindow:"Close window",collapseSection:'Collapse "{{section}}" section',collapseSidePanel:"Collapse sidebar",collection:"Collection",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",hideWindowSideBar:"Hide sidebar",hideZoomControls:"Hide zoom controls",iiif_homepage:"About this resource",iiif_manifest:"IIIF manifest",iiif_related:"Related",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}}",itemList:"Item list",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",multipartCollection:"Multipart Collection",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",o
115penCompanionWindow_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:"Search in the document",searchTitle:"Search",selectWorkspaceMenu:"Select workspace type",shiftPages:"Shift book view",showCollection:"Show collection",showingNumAnnotations:"Showing {{number}} annotation",showingNumAnnotations_plural:"Showing {{number}} annotations",showWindowSideBar:"Show sidebar",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",viewOptions:"View options",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"},en={translation:translation$h},translation$g={aboutMirador:"Projekti Mirador kohta",aboutThisItem:"Teave teose kohta",addedFromUrl:"(Lisatud URL-ist)",addManifestUrl:"Teose asukoht",addManifestUrlHelp:"IIIF manifesti URL",addResource:"Lisa teos","annotationCanvasLabel_1/1":"Teos: [{{label}}]","annotationCanvasLabel_1/2":"Vasak: [{{label}}]","annotationCanvasLabel_2/2":"Parem: [{{label}}]",annotations:"Annotatsioonid",attribution:"Omistus",attributionTitle:"Kasutusõigused",authenticationFailed:"Autentimine ebaõnnestus",authenticationRequired:"Juurdepääsu saamiseks on vajalik autentimine.",backToResults:"Tagasi tulemustele",book:"Raamat",bottom:"All",cancel:"Katkesta",canvasIndex:"Indeks",changeTheme:"Muuda teema",clearSearch:"Puhasta",close:"Sulge",closeAddResourceForm:"Sulge vorm",closeAddResourceMenu:"Sulge teoste loend",closeCompanionWindow:"Sulge paneel",closeWindow:"Sulge aken",collapseSection:'Sulge "{{section}}"',collapseSidePanel:"Sulge külgpaneel",collection:"Kollektsioon",continue:"Jätka",copy:"Kopeeri",currentItem:"Kuvatav lõuend","currentItem_1/1":"Pealkiri","currentItem_1/2":"Vasak","currentItem_2/2":"Parem",dark:"Tume teema",digitizedView:"Digiteeritud vaade",dismiss:"Vabasta",displayNoAnnotations:"Ära kuva annotatsioone",downloadExport:"Ekspordi tööruum",downloadExportWorkspace:"Ekspordi tööruum",elastic:"Paindlik vaade",elasticDescription:"Saad akende suurust muuta ja neid vabalt tööruumis ringi liigutada.",emptyResourceList:"Teoste loend on tühi",error:"Viga",errorDialogConfirm:"OK",errorDialogTitle:"Esines viga",exitFullScreen:"Lähtesta",expandSection:'Ava "{{section}}"',expandSidePanel:"Ava külgpaneel",exportCopied:"Tööruumi seadustused kopeeriti lõikepuhvrisse.",fetchManifest:"Lisa",fullScreen:"Täisekraan",gallery:"Galerii",hideZoomControls:"Peida suurendamisnupud",highlightAllAnnotations:"Kuva kõik annotatsioonid",iiif_homepage:"Teave teose kohta",iiif_manifest:"IIIF manifest",iiif_related:"Seotud",iiif_renderings:"Alternatiivsed vormingud",iiif_seeAlso:"Vaata ka",import:"Impordi",importWorkspace:"Impordi tööruum",importWorkspaceHint:"Kleebi imporditava tööruumi seadistused.",item:"Lõuend: {{label}}",itemList:"Lõuendite loetelu",jsError:"Tehnilised üksikasjad",jsStack:"{{ stack }}",language:"Keel",layer_hide:"Peida kiht",layer_move:"Liiguta kihti",layer_moveToTop:"Tõsta kiht esile",layer_opacity:"Kihi läbipaistvus",layer_show:"Näita kihti",layers:"Kihid",light:"Hele teema",links:"Lingid",listAllOpenWindows:"Vali aken",login:"Logi sisse",logout:"Logi välja",manifestError:"Ei ole võimalik lisada soovitud teost:",maximizeWindow:"Suurenda akent",minimizeWindow:"Vähenda akent",mirador:"Mirador",miradorResources:"Miradori teoste loetelu",miradorViewer:"Miradori vaatur",more:"rohkem...",moreResults:"Veel tulemusi",mosaic:"Mosaiik",mosaicDescription:"Muuda töölaua akende suurust ja liiguta neid üksteise suhtes.",moveCompanionWindowToBottom:"Liiguta alla",moveCompanionWindowToRight:"Liiguta paremale",multipartCollection:"Mitmeosaline kollektsioon",nextCanvas:"Järgmine lõuend",noItemSelected:"Ühtegi lõuendit pole valitud.",numItems_one:"{{number}} lõuend",numItems_other:"{{number}}
115 lõuendit",off:"Väljas",openCompanionWindow_annotations:"Annotatsioonid",openCompanionWindow_attribution:"Kasutusõigused",openCompanionWindow_canvas:"Struktuur",openCompanionWindow_info:"Teave",openCompanionWindow_layers:"Kihid",openCompanionWindow_search:"Otsing",openInCompanionWindow:"Ava eraldi paneelis",openWindows:"Hetkel avatud aknad",pagination:"{{current}} / {{total}}",position:"Asukoht",previewWindowTitle:"{{title}}",previousCanvas:"Eelmine lõuend",related:"Seotud",resource:"Teos",retry:"Proovi uuesti",right:"Parem",rights:"Kasutuslitsents",scroll:"Keri",searchInputLabel:"otsinguterminid",searchNextResult:"Järgmine tulemus",searchNoResults:"Tulemusi ei leitud",searchPreviousResult:"Eelmine tulemus",searchResultsRemaining:"{{numLeft}} alles",searchSubmitAria:"Otsi",searchTitle:"Otsi",selectWorkspaceMenu:"Vali tööruumi tüüp",showCollection:"Näita kollektsiooni",showingNumAnnotations_one:"Näitan {{number}} annotatsiooni",showingNumAnnotations_other:"Näitan {{number}} annotatsiooni",showZoomControls:"Näita suurendamisnuppe",sidebarPanelsNavigation:"Külgpaneelide navigeerimine",single:"Üksik",startHere:"Alusta siit",suggestSearch:'Otsi sellest dokumendist "{{ query }}"',tableOfContentsList:"Sisukord",theme:"Teema",thumbnailList:"Pisipiltide loend",thumbnailNavigation:"Pisipildid",thumbnails:"Pisipildid",toggleWindowSideBar:"külgpaneel",totalCollections_one:"{{count}} kollektsioon",totalCollections_other:"{{count}} kollektsiooni",totalManifests_one:"{{count}} manifest",totalManifests_other:"{{count}} manifesti",tryAgain:"Proovi uuesti",untitled:"[Pealkiri puudub]",view:"Vaade",viewWorkspaceConfiguration:"Vaata tööruumi seadistusi",welcome:"Tere tulemast Miradori",window:"Aken: {{label}}",windowMenu:"Akna vaated ja pisipiltide kuvamine",windowNavigation:"Akna navigeerimine",windowPluginButtons:"Suvandid",windowPluginMenu:"Akna suvandid",workspace:"Tööruum",workspaceFullScreen:"Täisekraan",workspaceMenu:"Tööruumi sätted",workspaceNavigation:"Tööruumi navigeerimine",workspaceOptions:"Tööruumi valikud",workspaceSelectionTitle:"Vali tööruumi tüüp",zoomIn:"Suurenda sisse",zoomOut:"Suurenda välja",zoomReset:"Lähtesta suurendus"},et={translation:translation$g},translation$f={aboutMirador:"در بارهٔ پروژه Mirador",aboutThisItem:"در بارهٔ این مورد",addedFromUrl:"(از آدرس اینترنتی ازافه شده)",addManifestUrl:"مکان منبع",addManifestUrlHelp:"آدرس اینترنتی منبع 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:"پیکربندی فضای کاری در کلیپ بورد شما کپی شد",fetch
115Manifest:"اضافه کن",fullScreen:"تمام صفحه",gallery:"آلبوم عکس",hideZoomControls:"کنترل های بزرگنما را مخفی کنید",iiif_homepage:"در باره ی این منبع",iiif_manifest:"بیانیه ی IIIF",iiif_related:"مربوط",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:"حرکت به سمت راست",multipartCollection:"مجموعه چند قسمتی",nextCanvas:"مورد بعدی",noItemSelected:"هیچ موردی انتخاب نشده است",numItems_one:"{{number}} مورد",numItems_other:"{{number}} موارد",off:"خاموش",openCompanionWindow_annotations:"حاشیه نویسی ها",openCompanionWindow_attribution:"حقوق",openCompanionWindow_canvas:"فهرست راهنما",openCompanionWindow_info:"اطلاعات",openCompanionWindow_layers:"لایه ها",openCompanionWindow_search:"جستجو",openInCompanionWindow:"در پنل جداگانه باز کن",openWindows:"پنجره های باز",pagination:"{{total}} از {{current}}",position:"موقعیت",previewWindowTitle:"{{title}}",previousCanvas:"مورد قبلی",related:"مربوط",resource:"منبع",retry:"امتحان دوباره",right:"حقوق",rights:"مجوز",scroll:"پیمایش",searchInputLabel:"عبارات جستجو",searchNextResult:"نتیجه بعدی",searchNoResults:"نتیجه ای پیدا نشد",searchPreviousResult:"نتیجه قبلی",searchResultsRemaining:"{{numLeft}} باقی مانده",searchSubmitAria:"ارسال جستجو",searchTitle:"جستجو",selectWorkspaceMenu:"نوع فضای کار را انتخاب کنید",showingNumAnnotations_one:"نمایش {{number}} حاشیه نویسی",showingNumAnnotations_other:"نمایش {{number}} حاشیه نویسی",showCollection:"نمایش مجموعه",showZoomControls:"نمایش کنترل های بزرگنمایی",sidebarPanelsNavigation:"پانل های ناوبری نوار کناری",single:"واحد",startHere:"از اینجا شروع کنید",suggestSearch:'این سند را برای "{{ query }}" جستجوی کنید',tableOfContentsList:"فهرست مطالب",theme:"زمینه",thumbnailList:"فهرست تصاویر بندانگشتی",thumbnailNavigation:"تصاویر بندانگشتی",thumbnails:"تصاویر بندانگشتی",toggleWindowSideBar:"نوار کناری را تغییر دهید",totalCollections_one:"{{count}} مجموعه",totalCollections_other:"{{count}} مجموعات",totalManifests_one:"{{count}} بیانیه",totalManifests_other:"{{count}} بیانیه ها",tryAgain:"دوباره امتحان کنید",untitled:"[بدون عنوان]",view:"مشاهده",viewWorkspaceConfiguration:"مشاهده پیکربندی فضای کاری",welcome:"به Mirador خوش آمدید",window:"پنجره: {{label}}
115",windowMenu:"نماهای پنجره و نمایش تصاویر کوچک",windowNavigation:"جهت یابی پنجره",windowPluginButtons:"گزینه ها",windowPluginMenu:"گزینه های پنجره",workspace:"فضای کار",workspaceNavigation:"جهت یابی فضای کاری",workspaceFullScreen:"تمام صفحه",workspaceMenu:"تنظیمات فضای کاری",workspaceOptions:"گزینه های فضای کاری",workspaceSelectionTitle:"نوع فضای کاری را انتخاب کنید",zoomIn:"بزرگنمایی",zoomOut:"کوچک نمایی",zoomReset:" تنظیم بزرگنما"},fa={translation:translation$f},translation$e={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:"移至右方",multipartCollection:"多卷集合",nextCanvas:"下一页",noItemSelected:"没有条目被选中",numItems:"{{number}} 项条目",numItems_plural:"{{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:"前一个结果",searchResultsRemaining:"{{numLeft}}剩余",searchSubmitAria:"提交搜索",searchTitle:"搜索",selectWorkspaceMenu:"选择桌面排版方式",showingNumAnnotations:"显示 {{number}} 项标注",showingNumAnnotations_plural:"显示 {{number}}
115 项标注",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:"重设缩放"},zhCn={translation:translation$e},translation$d={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}}分頁",exportCopied:"工作區配置被複製到你的剪貼板上了",expandSidePanel:"開啟邊欄",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:"移至右方",multipartCollection:"多卷集合",nextCanvas:"下一頁",noItemSelected:"沒有物件被選中",numItems:"{{number}} 項物件",numItems_plural:"{{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:"前一個結果",searchResultsRemaining:"{{numLeft}}剩餘",searchSubmitAria:"提交搜索",searchTitle:"搜索",selectWorkspaceMenu:"選擇桌面排版方式",showingNumAnnotations:"顯示 {{number}} 項標註",showingNumAnnotations_plural:"顯示 {{number}}
115 項標註",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:"重設縮放"},zhTw={translation:translation$d},translation$c={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}}
115 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",shiftPages:"Décaler la vue du livre",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"},fr={translation:translation$c},translation$b={aboutMirador:"Project Miradorについて",aboutThisItem:"この資料について",addedFromUrl:"(URLで追加)",addManifestUrl:"資料のIIIFマニフェストURI",addManifestUrlHelp:"追加したいIIIF資料のURIを上記に入力してください",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:"次ã
115®ã‚¢ã‚¤ãƒ†ãƒ ",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:"ズームを戻す"},ja={translation:translation$b},translation$a={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}}
115" 섹션 확장',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:"줌 재설정"},kr={translation:translation$a},translation$9={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}}
115" 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"},nl={translation:translation$9},translation$8={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",dar
115k:"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"},pl={translation:translation$8},translation$7={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:"C
115onteú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"},ptBr={translation:translation$7},translation$6={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 ri
115dimensiona le finestre, tenendole all'interno dell'area visibile",moveCompanionWindowToBottom:"Sposta in fondo",moveCompanionWindowToRight:"Sposta a destra",nextCanvas:"Oggetto Successivo",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:"Oggetto precedente",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:"Reimposta zoom"},it={translation:translation$6},translation$5={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:"Приказ дигитаÐ
115»Ð½Ð¾Ð³ објекта",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}}
115",windowMenu:"Изглед прегледа и позиција сличица",windowNavigation:"Навигација приказа",windowPluginButtons:"Опције",windowPluginMenu:"Опције приказа",workspace:"Радни простор",workspaceFullScreen:"Приказ преко целог екрана",workspaceMenu:"Уређивање радног простора",workspaceOptions:"Опције радног окружења",workspaceSelectionTitle:"Изаберите тип радног окружења",zoomIn:"Увећајте",zoomOut:"Умањите",zoomReset:"Ресет зума"},sr={translation:translation$5},translation$4={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",
115scroll:"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"},sv={translation:translation$4},translation$3={aboutMirador:"Apie Project Mirador",aboutThisItem:"Apie šį įrašą",addedFromUrl:"(Pridėta naudojant URL)",addManifestUrl:"Šaltinio adresas",addManifestUrlHelp:"Nuoroda į IIIF šaltinį",addResource:"Pridėti š
115altinį","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ę",
115nextCanvas:"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ą"},lt={translation:translation$3},translation$2={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á»
115™ 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"},vi={translation:translation$2},translation$1={aboutMirador:"За проекта Mirador",aboutThisItem:"За този елемент",addedFromUrl:"(Добавено от линк)",addManifestUrl:"Адрес на ресурса",addManifestUrlHelp:"Адресът на 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:"СписъÐ
115ºÑŠÑ‚ с ресурси е празен",error:"Грешка",errorDialogConfirm:"OK",errorDialogTitle:"Възникна грешка",exitFullScreen:"Изход от цял екран",expandSection:'Разширяване на секция "{{section}}"',expandSidePanel:"разширяване на страничния панел",exportCopied:"Конфигурацията на работното пространство е копирана в клипборда",fetchManifest:"Добавяне",fullScreen:"Цял екран",gallery:"Галерия",hideZoomControls:"Скриване на контролите за мащабиране",iiif_homepage:"За този ресурс",iiif_manifest:"IIIF манифест",iiif_related:"Свързано",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 viewer",more:"още...",moreResults:"Още резултати",mosaic:"Мозайка",mosaicDescription:"Премествайте и оразмерявайте прозорците помежду им в рамките на видимата рамка.",moveCompanionWindowToBottom:"Преместване отдолу",moveCompanionWindowToRight:"Преместване вдясно",multipartCollection:"Колекция от много части",nextCanvas:"Следващ елемент",noItemSelected:"Не е избран елемент",numItems:"{{number}} елемент",numItems_plural:"{{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:"Предишен резултат",searchResultsRemaining:"{{numLeft}} оставащи",searchSubmitAria:"Търси",searchTitle:"Търсене",selectWorkspaceMenu:"Посочете тип работно пространство",showingNumAnnotations:"Показване на {{number}} анотация",showingNumAnnotations_plural:"Показване на {{number}} анотации",showCollection:"Показване на колекция",showZoomControls:"Показване на контролите за мащабиране",sidebarPanelsNavigation:"Навигация на страничните панели",single:"Единичен",startHere:"Започнете оттук",suggestSearch:'Търсене в този документ за "{{ query }}"',tableOfContentsList:"Съдържание",theme:"Тема",thumbnailList:"СписъÐ
115º с представителни изображения",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:"Нулиране"},bg={translation:translation$1},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 t
115il 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"},nbNo={translation};function createI18nInstance(){var l={ar,de,en,et,fa,fr,it,ja,kr,lt,"nb-NO":nbNo,nl,pl,"pt-BR":ptBr,sr,sv,vi,"zh-CN":zhCn,"zh-TW":zhTw,bg},o=i18next.createInstance();return o.use(initReactI18next).init({fallbackLng:"en",interpolation:{escapeValue:!1},lng:"en",resources:l}),o}function _toConsumableArray$i(l){return _arrayWithoutHoles$i(l)||_iterableToArray$i(l)||_unsupportedIterableToArray$l(l)||_nonIterableSpread$i()}function _nonIterableSpread$i(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
116In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$l(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$l(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$l(l,o):void 0}}function _iterableToArray$i(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$i(l){if(Array.isArray(l))return _arrayLikeToArray$l(l)}function _arrayLikeToArray$l(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _classCallCheck$1f(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1b(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1T(d.key),d)}}function _createClass$1b(l,o,u){return o&&_defineProperties$1b(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1T(l){var o=_toPrimitive$1T(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1T(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$Z(l,o,u){return o=_getPrototypeOf$Z(o),_possibleConstructorReturn$11(l,_isNativeReflectConstruct$Z()?Reflect.construct(o,u||[],_getPrototypeOf$Z(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$11(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$Z(l)}function _assertThisInitialized$Z(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$Z(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$Z=function(){return!!l})()}
116function _getPrototypeOf$Z(l){return _getPrototypeOf$Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$Z(l)}function _inherits$11(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$Z(l,o)}function _setPrototypeOf$Z(l,o){return _setPrototypeOf$Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$Z(l,o)}var MaybeDndProvider=function(o){var u=o.dndManager,d=o.children;return u===!1?d:u===void 0?React.createElement(DndProvider,{backend:MultiBackend,options:HTML5toTouch},d):React.createElement(DndContext.Provider,{value:u},d)},AppProviders$1=(function(l){function o(u){var d;return _classCallCheck$1f(this,o),d=_callSuper$Z(this,o,[u]),d.i18n=createI18nInstance(),d}return _inherits$11(o,l),_createClass$1b(o,[{key:"componentDidMount",value:function(){var d=this.props.language;this.i18n.changeLanguage(d)}},{key:"componentDidUpdate",value:function(d){var f=this.props.language;d.language!==f&&this.i18n.changeLanguage(f)}},{key:"render",value:function(){var d=this,f=this.props,p=f.children,h=f.createGenerateClassNameOptions,v=f.isFullscreenEnabled,g=f.setWorkspaceFullscreen,m=f.theme,y=f.translations,b=f.dndManager,w=createGenerateClassName(h);return Object.keys(y).forEach(function(E){d.i18n.addResourceBundle(E,"translation",y[E],!0,!0)}),React.createElement(Fullscreen,{enabled:v,onChange:g},React.createElement(I18nextProvider,{i18n:this.i18n},React.createElement(LiveAnnouncer,null,React.createElement(ThemeProvider,{theme:createTheme$1(m)},React.createElement(StylesProvider,{jss:createJss({plugins:[].concat(_toConsumableArray$i(jssPreset().plugins),[rtl()])}),generateClassName:w},React.createElement(MaybeDndProvider,{dndManager:b},p))))))}}])})(reactExports.Component);AppProviders$1.defaultProps={children:null,createGenerateClassNameOptions:{},dndManager:void 0,isFullscreenEnabled:!1};var mapStateToProps$L=function(o){return{createGenerateClassNameOptions:getConfig$1(o).createGenerateClassNameOptions,isFullscreenEnabled:getFullScreenEnabled$1(o),language:getConfig$1(o).language,theme:getTheme$1(o),translations:getConfig$1(o).translations}},mapDispatchToProps$x={setWorkspaceFullscreen:setWorkspaceFullscreen$1},enhance$V=compose$2(connect(mapStateToProps$L,mapDispatchToProps$x),withPlugins$1("AppProviders"));const AppProviders=enhance$V(AppProviders$1);function _classCallCheck$1e(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1a(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1S(d.key),d)}}function _createClass$1a(l,o,u){return o&&_defineProperties$1a(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1S(l){var o=_toPrimitive$1S(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1S(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$Y(l,o,u){return o=_getPrototypeOf$Y(o),_possibleConstructorReturn$10(l,_isNativeReflectConstruct$Y()?Reflect.construct(o,u||[],_getPrototypeOf$Y(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$10(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$Y(l)}function _assertThisInitialized$Y(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$Y(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$Y=function(){return!!l})()}function _getPrototypeOf$Y(l){return _getPrototypeOf$Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
116)},_getPrototypeOf$Y(l)}function _inherits$10(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$Y(l,o)}function _setPrototypeOf$Y(l,o){return _setPrototypeOf$Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$Y(l,o)}var WorkspaceArea$3=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>WorkspaceArea$1),void 0)}),App=(function(l){function o(){return _classCallCheck$1e(this,o),_callSuper$Y(this,o,arguments)}return _inherits$10(o,l),_createClass$1a(o,[{key:"render",value:function(){var d=this.props,f=d.dndManager,p=d.plugins;return React.createElement(PluginProvider,{plugins:p},React.createElement(AppProviders,{dndManager:f},React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(WorkspaceArea$3,null))))}}])})(reactExports.Component);App.defaultProps={dndManager:void 0,plugins:[]};var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var l=require_baseGetTag(),o=requireIsArray(),u=requireIsObjectLike(),d="[object String]";function f(p){return typeof p=="string"||!o(p)&&u(p)&&l(p)==d}return isString_1=f,isString_1}var isStringExports=requireIsString();const isString=getDefaultExportFromCjs(isStringExports);var isUndefined_1,hasRequiredIsUndefined;function requireIsUndefined(){if(hasRequiredIsUndefined)return isUndefined_1;hasRequiredIsUndefined=1;function l(o){return o===void 0}return isUndefined_1=l,isUndefined_1}var isUndefinedExports=requireIsUndefined();const _isUndefined=getDefaultExportFromCjs(isUndefinedExports);var isFunctionExports=requireIsFunction();const isFunction=getDefaultExportFromCjs(isFunctionExports);var isNull_1,hasRequiredIsNull;function requireIsNull(){if(hasRequiredIsNull)return isNull_1;hasRequiredIsNull=1;function l(o){return o===null}return isNull_1=l,isNull_1}var isNullExports=requireIsNull();const isNull=getDefaultExportFromCjs(isNullExports);var _baseValues,hasRequired_baseValues;function require_baseValues(){if(hasRequired_baseValues)return _baseValues;hasRequired_baseValues=1;var l=require_arrayMap();function o(u,d){return l(d,function(f){return u[f]})}return _baseValues=o,_baseValues}var values_1,hasRequiredValues;function requireValues(){if(hasRequiredValues)return values_1;hasRequiredValues=1;var l=require_baseValues(),o=requireKeys();function u(d){return d==null?[]:l(d,o(d))}return values_1=u,values_1}var valuesExports=requireValues();const values=getDefaultExportFromCjs(valuesExports);var validatePlugin=function(o){return[checkPlugin,checkName,checkTarget,checkMode,checkMapStateToProps,checkMapDispatchToProps,checkReducers].every(function(u){return u(o)})},checkPlugin=function(o){return isObject$1(o)},checkName=function(o){var u=o.name;return _isUndefined(u)||isString(u)},checkTarget=function(o){var u=o.mode,d=o.target;return _isUndefined(u)?_isUndefined(d):isString(d)},checkMode=function(o){var u=o.mode;return _isUndefined(u)||["add","wrap"].some(function(d){return d===u})},checkMapStateToProps=function(o){var u=o.mapStateToProps;return _isUndefined(u)||isNull(u)||isFunction(u)},checkMapDispatchToProps=function(o){var u=o.mapDispatchToProps;return _isUndefined(u)||isNull(u)||isFunction(u)||isObject$1(u)},checkReducers=function(o){var u=o.reducers;return _isUndefined(u)||isObject$1(u)&&values(u).every(isFunction)};function ownKeys$G(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$G(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$G(Object(u),!0).forEach(function(d){_defineProperty$M(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$G(Object(u)).forEac
116h(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$M(l,o,u){return(o=_toPropertyKey$1R(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1R(l){var o=_toPrimitive$1R(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1R(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _toConsumableArray$h(l){return _arrayWithoutHoles$h(l)||_iterableToArray$h(l)||_unsupportedIterableToArray$k(l)||_nonIterableSpread$h()}function _nonIterableSpread$h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
117In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$k(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$k(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$k(l,o):void 0}}function _iterableToArray$h(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$h(l){if(Array.isArray(l))return _arrayLikeToArray$k(l)}function _arrayLikeToArray$k(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function filterValidPlugins(l){var o=splitPluginsByValidation(l),u=o.validPlugins,d=o.invalidPlugins;return logInvalidPlugins(d),u}function splitPluginsByValidation(l){var o=[],u=[];return l.forEach(function(d){if(Array.isArray(d)){var f=d.every(function(p){return validatePlugin(p)});f?u.push.apply(u,_toConsumableArray$h(d)):o.push.apply(o,_toConsumableArray$h(d))}else validatePlugin(d)?u.push(d):o.push(d)}),{invalidPlugins:o,validPlugins:u}}function logInvalidPlugins(l){l.forEach(function(o){return console.log("Mirador: Plugin ".concat(o.name," is not valid and was rejected."))})}function getReducersFromPlugins(l){return l&&l.reduce(function(o,u){return _objectSpread$G(_objectSpread$G({},o),u.reducers)},{})}function getConfigFromPlugins(l){return l&&l.reduce(function(o,u){return deepmerge(o,u.config||{})},{})}function getSagasFromPlugins(l){return l&&l.filter(function(o){return o.saga}).map(function(o){return o.saga})}function createThunkMiddleware(l){var o=function(d){var f=d.dispatch,p=d.getState;return function(h){return function(v){return typeof v=="function"?v(f,p,l):h(v)}}};return o}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var createSymbol=function(o){return"@@redux-saga/"+o},CANCEL$1=createSymbol("CANCEL_PROMISE"),CHANNEL_END_TYPE=createSymbol("CHANNEL_END"),IO=createSymbol("IO"),MATCH=createSymbol("MATCH"),MULTICAST=createSymbol("MULTICAST"),SAGA_ACTION=createSymbol("SAGA_ACTION"),SELF_CANCELLATION=createSymbol("SELF_CANCELLATION"),TASK=createSymbol("TASK"),TASK_CANCEL=createSymbol("TASK_CANCEL"),TERMINATE=createSymbol("TERMINATE"),SAGA_LOCATION=createSymbol("LOCATION"),undef=function(o){return o==null},notUndef=function(o){return o!=null},func=function(o){return typeof o=="function"},string$1=function(o){return typeof o=="string"},array$1=Array.isArray,promise=function(o){return o&&func(o.then)},iterator=function(o){return o&&func(o.next)&&func(o.throw)},_pattern=function(o){return o&&(string$1(o)||symbol$1(o)||func(o)||array$1(o)&&o.every(_pattern))},channel$1=function(o){return o&&func(o.take)&&func(o.close)},stringableFunc=function(o){return func(o)&&o.hasOwnProperty("toString")},symbol$1=function(o){return!!o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype},multicast=function(o){return channel$1(o)&&o[MULTICAST]},MAX_SIGNED_INT=2147483647;function delayP(l,o){o===void 0&&(o=!0);var u,d=new Promise(function(f){u=setTimeout(f,Math.min(MAX_SIGNED_INT,l),o)});return d[CANCEL$1]=function(){clearTimeout(u)},d}var konst=function(o){return function(){return o}},kTrue=konst(!0),noop=function(){},identity=function(o){return o}
117,assignWithSymbols=function(o,u){_extends$v(o,u),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(u).forEach(function(d){o[d]=u[d]})},flatMap=function(o,u){var d;return(d=[]).concat.apply(d,u.map(o))};function remove(l,o){var u=l.indexOf(o);u>=0&&l.splice(u,1)}function once(l){var o=!1;return function(){o||(o=!0,l())}}var kThrow=function(o){throw o},kReturn=function(o){return{value:o,done:!0}};function makeIterator(l,o,u){o===void 0&&(o=kThrow),u===void 0&&(u="iterator");var d={meta:{name:u},next:l,throw:o,return:kReturn,isSagaIterator:!0};return typeof Symbol<"u"&&(d[Symbol.iterator]=function(){return d}),d}function logError(l,o){var u=o.sagaStack;console.error(l),console.error(u)}var createEmptyArray=function(o){return Array.apply(null,new Array(o))},wrapSagaDispatch=function(o){return function(u){return o(Object.defineProperty(u,SAGA_ACTION,{value:!0}))}},shouldTerminate=function(o){return o===TERMINATE},shouldCancel=function(o){return o===TASK_CANCEL},shouldComplete=function(o){return shouldTerminate(o)||shouldCancel(o)};function createAllStyleChildCallbacks(l,o){var u=Object.keys(l),d=u.length,f=0,p,h=array$1(l)?createEmptyArray(d):{},v={};function g(){f===d&&(p=!0,o(h))}return u.forEach(function(m){var y=function(w,E){p||(E||shouldComplete(w)?(o.cancel(),o(w,E)):(h[m]=w,f++,g()))};y.cancel=noop,v[m]=y}),o.cancel=function(){p||(p=!0,u.forEach(function(m){return v[m].cancel()}))},v}function getMetaInfo(l){return{name:l.name||"anonymous",location:getLocation(l)}}function getLocation(l){return l[SAGA_LOCATION]}function compose$1(){for(var l=arguments.length,o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return o.length===0?function(d){return d}:o.length===1?o[0]:o.reduce(function(d,f){return function(){return d(f.apply(void 0,arguments))}})}var BUFFER_OVERFLOW="Channel's Buffer overflow!",ON_OVERFLOW_THROW=1,ON_OVERFLOW_SLIDE=3,ON_OVERFLOW_EXPAND=4,zeroBuffer={isEmpty:kTrue,put:noop,take:noop};function ringBuffer(l,o){l===void 0&&(l=10);var u=new Array(l),d=0,f=0,p=0,h=function(y){u[f]=y,f=(f+1)%l,d++},v=function(){if(d!=0){var y=u[p];return u[p]=null,d--,p=(p+1)%l,y}},g=function(){for(var y=[];d;)y.push(v());return y};return{isEmpty:function(){return d==0},put:function(y){if(d<l)h(y);else{var b;switch(o){case ON_OVERFLOW_THROW:throw new Error(BUFFER_OVERFLOW);case ON_OVERFLOW_SLIDE:u[f]=y,f=(f+1)%l,p=f;break;case ON_OVERFLOW_EXPAND:b=2*l,u=g(),d=u.length,f=u.length,p=0,u.length=b,l=b,h(y);break}}},take:v,flush:g}}var none=function(){return zeroBuffer},sliding=function(o){return ringBuffer(o,ON_OVERFLOW_SLIDE)},expanding=function(o){return ringBuffer(o,ON_OVERFLOW_EXPAND)},TAKE="TAKE",PUT="PUT",ALL="ALL",RACE="RACE",CALL="CALL",CPS="CPS",FORK="FORK",JOIN="JOIN",CANCEL="CANCEL",SELECT="SELECT",ACTION_CHANNEL="ACTION_CHANNEL",CANCELLED$1="CANCELLED",FLUSH="FLUSH",GET_CONTEXT="GET_CONTEXT",SET_CONTEXT="SET_CONTEXT",effectTypes=Object.freeze({__proto__:null,TAKE,PUT,ALL,RACE,CALL,CPS,FORK,JOIN,CANCEL,SELECT,ACTION_CHANNEL,CANCELLED:CANCELLED$1,FLUSH,GET_CONTEXT,SET_CONTEXT}),makeEffect=function(o,u){var d;return d={},d[IO]=!0,d.combinator=!1,d.type=o,d.payload=u,d},detach=function(o){return makeEffect(FORK,_extends$v({},o.payload,{detached:!0}))};function take(l,o){if(l===void 0&&(l="*"),_pattern(l))return notUndef(o)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),makeEffect(TAKE,{pattern:l});if(multicast(l)&&notUndef(o)&&_pattern(o))return makeEffect(TAKE,{channel:l,pattern:o});if(channel$1(l))return notUndef(o)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),makeEffect(TAKE,{channel:l})}var takeMaybe=function(){var o=take.apply(void 0,arguments);return o.payload.maybe=!0,o};function put(l,o){return undef(o)&&(o=l,l=void 0),makeEffect(PUT,{channel:l,action:o})}var putResolve=function(){var o=put.apply(void 0,arguments);return o.payload.resolve=!0,o};function all(l){var o=makeEffect(ALL,l);return o.combinator=!0,o}function race(l){var o=makeEffect(RACE,l);return o.combinator=!0,o}function getFnCallDescriptor(l,o){var u=null,d;return func(l)?d=l:(array$1(l)?(u=l[0],d=l[1]):(u=l.context,d=l.fn),u&&string$1(d)&&func(u[d])&&(d=u[d])),{context:u,fn:d,args:o}}function call(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return makeEffect(CALL,getFnCallDescriptor(l,u))}function apply(l,o,u){return u===void 0&&(u=[]),makeEffect(CALL,getFnCallDescriptor([l,o],u))}function cps(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return makeEffect(CPS,getFnCallDescriptor(l,u))}function fork(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return makeEffect(FORK,getFnCallDescriptor(l,u))}function spawn(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return detach(fork.apply(void 0,[l].concat(u)))}function join(l){return makeEffect(JOIN,l)}function cancel(l){return l===void 0&&(l=SELF_CANCELLATION),makeEffect(CANCEL,l)}function select(l){l===void 0&&(l=identity);for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return makeEffect(SELECT,{selector:l,args:u})}
117function actionChannel(l,o){return makeEffect(ACTION_CHANNEL,{pattern:l,buffer:o})}function cancelled(){return makeEffect(CANCELLED$1,{})}function flush$1(l){return makeEffect(FLUSH,l)}function getContext(l){return makeEffect(GET_CONTEXT,l)}function setContext(l){return makeEffect(SET_CONTEXT,l)}var delay=call.bind(null,delayP);function deferred(){var l={};return l.promise=new Promise(function(o,u){l.resolve=o,l.reject=u}),l}var queue=[],semaphore=0;function exec(l){try{suspend(),l()}finally{release()}}function asap(l){queue.push(l),semaphore||(suspend(),flush())}function immediately(l){try{return suspend(),l()}finally{flush()}}function suspend(){semaphore++}function release(){semaphore--}function flush(){release();for(var l;!semaphore&&(l=queue.shift())!==void 0;)exec(l)}var array=function(o){return function(u){return o.some(function(d){return matcher(d)(u)})}},predicate=function(o){return function(u){return o(u)}},string=function(o){return function(u){return u.type===String(o)}},symbol=function(o){return function(u){return u.type===o}},wildcard=function(){return kTrue};function matcher(l){var o=l==="*"?wildcard:string$1(l)?string:array$1(l)?array:stringableFunc(l)?string:func(l)?predicate:symbol$1(l)?symbol:null;if(o===null)throw new Error("invalid pattern: "+l);return o(l)}var END={type:CHANNEL_END_TYPE},isEnd=function(o){return o&&o.type===CHANNEL_END_TYPE};function channel(l){l===void 0&&(l=expanding());var o=!1,u=[];function d(v){if(!o){if(u.length===0)return l.put(v);var g=u.shift();g(v)}}function f(v){o&&l.isEmpty()?v(END):l.isEmpty()?(u.push(v),v.cancel=function(){remove(u,v)}):v(l.take())}function p(v){if(o&&l.isEmpty()){v(END);return}v(l.flush())}function h(){if(!o){o=!0;var v=u;u=[];for(var g=0,m=v.length;g<m;g++){var y=v[g];y(END)}}}return{take:f,put:d,flush:p,close:h}}function eventChannel(l,o){o===void 0&&(o=none());var u=!1,d,f=channel(o),p=function(){u||(u=!0,func(d)&&d(),f.close())};return d=l(function(h){if(isEnd(h)){p();return}f.put(h)}),d=once(d),u&&d(),{take:f.take,flush:f.flush,close:p}}function multicastChannel(){var l,o=!1,u=[],d=u,f=function(){d===u&&(d=u.slice())},p=function(){o=!0;var v=u=d;d=[],v.forEach(function(g){g(END)})};return l={},l[MULTICAST]=!0,l.put=function(v){if(!o){if(isEnd(v)){p();return}for(var g=u=d,m=0,y=g.length;m<y;m++){var b=g[m];b[MATCH](v)&&(b.cancel(),b(v))}}},l.take=function(v,g){if(g===void 0&&(g=wildcard),o){v(END);return}v[MATCH]=g,f(),d.push(v),v.cancel=once(function(){f(),remove(d,v)})},l.close=p,l}function stdChannel(){var l=multicastChannel(),o=l.put;return l.put=function(u){if(u[SAGA_ACTION]){o(u);return}asap(function(){o(u)})},l}var RUNNING=0,CANCELLED=1,ABORTED=2,DONE=3;function resolvePromise(l,o){var u=l[CANCEL$1];func(u)&&(o.cancel=u),l.then(o,function(d){o(d,!0)})}var current=0,nextSagaId=(function(){return++current}),_effectRunnerMap;function getIteratorMetaInfo(l,o){return l.isSagaIterator?{name:l.meta.name}:getMetaInfo(o)}function createTaskIterator(l){var o=l.context,u=l.fn,d=l.args;try{var f=u.apply(o,d);if(iterator(f))return f;var p=!1,h=function(g){return p?{value:g,done:!0}:(p=!0,{value:f,done:!promise(f)})};return makeIterator(h)}catch(v){return makeIterator(function(){throw v})}}function runPutEffect(l,o,u){var d=o.channel,f=o.action,p=o.resolve;asap(function(){var h;try{h=(d?d.put:l.dispatch)(f)}catch(v){u(v,!0);return}p&&promise(h)?resolvePromise(h,u):u(h)})}function runTakeEffect(l,o,u){var d=o.channel,f=d===void 0?l.channel:d,p=o.pattern,h=o.maybe,v=function(m){if(m instanceof Error){u(m,!0);return}if(isEnd(m)&&!h){u(TERMINATE);return}u(m)};try{f.take(v,notUndef(p)?matcher(p):null)}catch(g){u(g,!0);return}u.cancel=v.cancel}function runCallEffect(l,o,u,d){var f=o.context,p=o.fn,h=o.args,v=d.task;try{var g=p.apply(f,h);if(promise(g)){resolvePromise(g,u);return}if(iterator(g)){proc(l,g,v.context,current,getMetaInfo(p),!1,u);return}u(g)}catch(m){u(m,!0)}}function runCPSEffect(l,o,u){var d=o.context,f=o.fn,p=o.args;try{var h=function(g,m){undef(g)?u(m):u(g,!0)};f.apply(d,p.concat(h)),h.cancel&&(u.cancel=h.cancel)}catch(v){u(v,!0)}}function runForkEffect(l,o,u,d){var f=o.context,p=o.fn,h=o.args,v=o.detached,g=d.task,m=createTaskIterator({context:f,fn:p,args:h}),y=getIteratorMetaInfo(m,p);immediately(function(){var b=proc(l,m,g.context,current,y,v,void 0);v?u(b):b.isRunning()?(g.queue.addTask(b),u(b)):b.isAborted()?g.queue.abort(b.error()):u(b)})}function runJoinEffect(l,o,u,d){var f=d.task,p=function(g,m){if(g.isRunning()){var y={task:f,cb:m};m.cancel=function(){g.isRunning()&&remove(g.joiners,y)},g.joiners.push(y)}else g.isAborted()?m(g.error(),!0):m(g.result())};if(array$1(o)){if(o.length===0){u([]);return}var h=createAllStyleChildCallbacks(o,u);o.forEach(function(v,g){p(v,h[g])})}else p(o,u)}function cancelSingleTask(l){l.isRunning()&&l.cancel()}function runCancelEffect(l,o,u,d){var f=d.task;o===SELF_CANCELLATION?cancelSingleTask(f):array$1(o)?o.forEach(cancelSingleTask):cancelSingleTask(o),u()}function runAllEffect(l,o,u,d){var f=d.digestEffect,p=current,h=Object.keys(o);if(h.length===0){u(array$1(o)?[]:{});return}var v=createAllStyleChildCallbacks(o,u);h.forEach(function(g){f(o[g],p,v[g],g)}
117)}function runRaceEffect(l,o,u,d){var f=d.digestEffect,p=current,h=Object.keys(o),v=array$1(o)?createEmptyArray(h.length):{},g={},m=!1;h.forEach(function(y){var b=function(E,P){m||(P||shouldComplete(E)?(u.cancel(),u(E,P)):(u.cancel(),m=!0,v[y]=E,u(v)))};b.cancel=noop,g[y]=b}),u.cancel=function(){m||(m=!0,h.forEach(function(y){return g[y].cancel()}))},h.forEach(function(y){m||f(o[y],p,g[y],y)})}function runSelectEffect(l,o,u){var d=o.selector,f=o.args;try{var p=d.apply(void 0,[l.getState()].concat(f));u(p)}catch(h){u(h,!0)}}function runChannelEffect(l,o,u){var d=o.pattern,f=o.buffer,p=channel(f),h=matcher(d),v=function(y){isEnd(y)||l.channel.take(v,h),p.put(y)},g=p.close;p.close=function(){v.cancel(),g()},l.channel.take(v,h),u(p)}function runCancelledEffect(l,o,u,d){var f=d.task;u(f.isCancelled())}function runFlushEffect(l,o,u){o.flush(u)}function runGetContextEffect(l,o,u,d){var f=d.task;u(f.context[o])}function runSetContextEffect(l,o,u,d){var f=d.task;assignWithSymbols(f.context,o),u()}var effectRunnerMap=(_effectRunnerMap={},_effectRunnerMap[TAKE]=runTakeEffect,_effectRunnerMap[PUT]=runPutEffect,_effectRunnerMap[ALL]=runAllEffect,_effectRunnerMap[RACE]=runRaceEffect,_effectRunnerMap[CALL]=runCallEffect,_effectRunnerMap[CPS]=runCPSEffect,_effectRunnerMap[FORK]=runForkEffect,_effectRunnerMap[JOIN]=runJoinEffect,_effectRunnerMap[CANCEL]=runCancelEffect,_effectRunnerMap[SELECT]=runSelectEffect,_effectRunnerMap[ACTION_CHANNEL]=runChannelEffect,_effectRunnerMap[CANCELLED$1]=runCancelledEffect,_effectRunnerMap[FLUSH]=runFlushEffect,_effectRunnerMap[GET_CONTEXT]=runGetContextEffect,_effectRunnerMap[SET_CONTEXT]=runSetContextEffect,_effectRunnerMap);function forkQueue(l,o,u){var d=[],f,p=!1;g(l);var h=function(){return d};function v(y){o(),m(),u(y,!0)}function g(y){d.push(y),y.cont=function(b,w){p||(remove(d,y),y.cont=noop,w?v(b):(y===l&&(f=b),d.length||(p=!0,u(f))))}}function m(){p||(p=!0,d.forEach(function(y){y.cont=noop,y.cancel()}),d=[])}return{addTask:g,cancelAll:m,abort:v,getTasks:h}}function formatLocation(l,o){return l+"?"+o}function effectLocationAsString(l){var o=getLocation(l);if(o){var u=o.code,d=o.fileName,f=o.lineNumber,p=u+"  "+formatLocation(d,f);return p}return""}function sagaLocationAsString(l){var o=l.name,u=l.location;return u?o+"  "+formatLocation(u.fileName,u.lineNumber):o}function cancelledTasksAsString(l){var o=flatMap(function(u){return u.cancelledTasks},l);return o.length?["Tasks cancelled due to error:"].concat(o).join(`
118`):""}var crashedEffect=null,sagaStack=[],addSagaFrame=function(o){o.crashedEffect=crashedEffect,sagaStack.push(o)},clear=function(){crashedEffect=null,sagaStack.length=0},setCrashedEffect=function(o){crashedEffect=o},toString=function(){var o=sagaStack[0],u=sagaStack.slice(1),d=o.crashedEffect?effectLocationAsString(o.crashedEffect):null,f="The above error occurred in task "+sagaLocationAsString(o.meta)+(d?` 
119 when executing effect `+d:"");return[f].concat(u.map(function(p){return"    created by "+sagaLocationAsString(p.meta)}),[cancelledTasksAsString(sagaStack)]).join(`
120`)};function newTask(l,o,u,d,f,p,h){var v;h===void 0&&(h=noop);var g=RUNNING,m,y,b=null,w=[],E=Object.create(u),P=forkQueue(o,function(){w.push.apply(w,P.getTasks().map(function(j){return j.meta.name}))},T);function C(){g===RUNNING&&(g=CANCELLED,P.cancelAll(),T(TASK_CANCEL,!1))}function T(D,j){if(!j)D===TASK_CANCEL?g=CANCELLED:g!==CANCELLED&&(g=DONE),m=D,b&&b.resolve(D);else{if(g=ABORTED,addSagaFrame({meta:f,cancelledTasks:w}),A.isRoot){var M=toString();clear(),l.onError(D,{sagaStack:M})}y=D,b&&b.reject(D)}A.cont(D,j),A.joiners.forEach(function(N){N.cb(D,j)}),A.joiners=null}function O(D){assignWithSymbols(E,D)}function x(){return b||(b=deferred(),g===ABORTED?b.reject(y):g!==RUNNING&&b.resolve(m)),b.promise}var A=(v={},v[TASK]=!0,v.id=d,v.meta=f,v.isRoot=p,v.context=E,v.joiners=[],v.queue=P,v.cancel=C,v.cont=h,v.end=T,v.setContext=O,v.toPromise=x,v.isRunning=function(){return g===RUNNING},v.isCancelled=function(){return g===CANCELLED||g===RUNNING&&o.status===CANCELLED},v.isAborted=function(){return g===ABORTED},v.result=function(){return m},v.error=function(){return y},v);return A}function proc(l,o,u,d,f,p,h){var v=l.finalizeRunEffect(E);w.cancel=noop;var g={meta:f,cancel:b,status:RUNNING},m=newTask(l,g,u,d,f,p,h),y={task:m,digestEffect:P};function b(){g.status===RUNNING&&(g.status=CANCELLED,w(TASK_CANCEL))}return h&&(h.cancel=m.cancel),w(),m;function w(C,T){try{var O;T?(O=o.throw(C),clear()):shouldCancel(C)?(g.status=CANCELLED,w.cancel(),O=func(o.return)?o.return(TASK_CANCEL):{done:!0,value:TASK_CANCEL}):shouldTerminate(C)?O=func(o.return)?o.return():{done:!0}:O=o.next(C),O.done?(g.status!==CANCELLED&&(g.status=DONE),g.cont(O.value)):P(O.value,d,w)}
120catch(x){if(g.status===CANCELLED)throw x;g.status=ABORTED,g.cont(x,!0)}}function E(C,T,O){if(promise(C))resolvePromise(C,O);else if(iterator(C))proc(l,C,m.context,T,f,!1,O);else if(C&&C[IO]){var x=effectRunnerMap[C.type];x(l,C.payload,O,y)}else O(C)}function P(C,T,O,x){x===void 0&&(x="");var A=nextSagaId();l.sagaMonitor&&l.sagaMonitor.effectTriggered({effectId:A,parentEffectId:T,label:x,effect:C});var D;function j(M,N){D||(D=!0,O.cancel=noop,l.sagaMonitor&&(N?l.sagaMonitor.effectRejected(A,M):l.sagaMonitor.effectResolved(A,M)),N&&setCrashedEffect(C),O(M,N))}j.cancel=noop,O.cancel=function(){D||(D=!0,j.cancel(),j.cancel=noop,l.sagaMonitor&&l.sagaMonitor.effectCancelled(A))},v(C,A,j)}}function runSaga(l,o){for(var u=l.channel,d=u===void 0?stdChannel():u,f=l.dispatch,p=l.getState,h=l.context,v=h===void 0?{}:h,g=l.sagaMonitor,m=l.effectMiddlewares,y=l.onError,b=y===void 0?logError:y,w=arguments.length,E=new Array(w>2?w-2:0),P=2;P<w;P++)E[P-2]=arguments[P];var C=o.apply(void 0,E),T=nextSagaId();g&&(g.rootSagaStarted=g.rootSagaStarted||noop,g.effectTriggered=g.effectTriggered||noop,g.effectResolved=g.effectResolved||noop,g.effectRejected=g.effectRejected||noop,g.effectCancelled=g.effectCancelled||noop,g.actionDispatched=g.actionDispatched||noop,g.rootSagaStarted({effectId:T,saga:o,args:E}));var O;if(m){var x=compose$1.apply(void 0,m);O=function(j){return function(M,N,q){var z=function(U){return j(U,N,q)};return x(z)(M)}}}else O=identity;var A={channel:d,dispatch:wrapSagaDispatch(f),getState:p,sagaMonitor:g,onError:b,finalizeRunEffect:O};return immediately(function(){var D=proc(A,C,v,T,getMetaInfo(o),!0,void 0);return g&&g.effectResolved(T,D),D})}var _excluded$8=["context","channel","sagaMonitor"];function sagaMiddlewareFactory(l){var o={},u=o.context,d=u===void 0?{}:u,f=o.channel,p=f===void 0?stdChannel():f,h=o.sagaMonitor,v=_objectWithoutPropertiesLoose$o(o,_excluded$8),g;function m(y){var b=y.getState,w=y.dispatch;return g=runSaga.bind(null,_extends$v({},v,{context:d,channel:p,dispatch:w,getState:b,sagaMonitor:h})),function(E){return function(P){h&&h.actionDispatched&&h.actionDispatched(P);var C=E(P);return p.put(P),C}}}return m.run=function(){return g.apply(void 0,arguments)},m.setContext=function(y){assignWithSymbols(d,y)},m}var reduxDevtoolsExtension={};const require$$0$3=getAugmentedNamespace(redux);var hasRequiredReduxDevtoolsExtension;function requireReduxDevtoolsExtension(){if(hasRequiredReduxDevtoolsExtension)return reduxDevtoolsExtension;hasRequiredReduxDevtoolsExtension=1;var l=require$$0$3.compose;return reduxDevtoolsExtension.__esModule=!0,reduxDevtoolsExtension.composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?l:l.apply(null,arguments)},reduxDevtoolsExtension.devToolsEnhancer=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}},reduxDevtoolsExtension}var reduxDevtoolsExtensionExports=requireReduxDevtoolsExtension(),_copyObject,hasRequired_copyObject;function require_copyObject(){if(hasRequired_copyObject)return _copyObject;hasRequired_copyObject=1;var l=require_assignValue(),o=require_baseAssignValue();function u(d,f,p,h){var v=!p;p||(p={});for(var g=-1,m=f.length;++g<m;){var y=f[g],b=h?h(p[y],d[y],y,p,d):void 0;b===void 0&&(b=d[y]),v?o(p,y,b):l(p,y,b)}return p}return _copyObject=u,_copyObject}var _baseAssign,hasRequired_baseAssign;function require_baseAssign(){if(hasRequired_baseAssign)return _baseAssign;hasRequired_baseAssign=1;var l=require_copyObject(),o=requireKeys();function u(d,f){return d&&l(f,o(f),d)}return _baseAssign=u,_baseAssign}var _baseAssignIn,hasRequired_baseAssignIn;function require_baseAssignIn(){if(hasRequired_baseAssignIn)return _baseAssignIn;hasRequired_baseAssignIn=1;var l=require_copyObject(),o=requireKeysIn();function u(d,f){return d&&l(f,o(f),d)}return _baseAssignIn=u,_baseAssignIn}var _cloneBuffer={exports:{}};_cloneBuffer.exports;var hasRequired_cloneBuffer;function require_cloneBuffer(){return hasRequired_cloneBuffer||(hasRequired_cloneBuffer=1,(function(l,o){var u=require_root(),d=o&&!o.nodeType&&o,f=d&&!0&&l&&!l.nodeType&&l,p=f&&f.exports===d,h=p?u.Buffer:void 0,v=h?h.allocUnsafe:void 0;function g(m,y){if(y)return m.slice();var b=m.length,w=v?v(b):new m.constructor(b);return m.copy(w),w}l.exports=g})(_cloneBuffer,_cloneBuffer.exports)),_cloneBuffer.exports}var _copySymbols,hasRequired_copySymbols;
120function require_copySymbols(){if(hasRequired_copySymbols)return _copySymbols;hasRequired_copySymbols=1;var l=require_copyObject(),o=require_getSymbols();function u(d,f){return l(d,o(d),f)}return _copySymbols=u,_copySymbols}var _copySymbolsIn,hasRequired_copySymbolsIn;function require_copySymbolsIn(){if(hasRequired_copySymbolsIn)return _copySymbolsIn;hasRequired_copySymbolsIn=1;var l=require_copyObject(),o=require_getSymbolsIn();function u(d,f){return l(d,o(d),f)}return _copySymbolsIn=u,_copySymbolsIn}var _initCloneArray,hasRequired_initCloneArray;function require_initCloneArray(){if(hasRequired_initCloneArray)return _initCloneArray;hasRequired_initCloneArray=1;var l=Object.prototype,o=l.hasOwnProperty;function u(d){var f=d.length,p=new d.constructor(f);return f&&typeof d[0]=="string"&&o.call(d,"index")&&(p.index=d.index,p.input=d.input),p}return _initCloneArray=u,_initCloneArray}var _cloneArrayBuffer,hasRequired_cloneArrayBuffer;function require_cloneArrayBuffer(){if(hasRequired_cloneArrayBuffer)return _cloneArrayBuffer;hasRequired_cloneArrayBuffer=1;var l=require_Uint8Array();function o(u){var d=new u.constructor(u.byteLength);return new l(d).set(new l(u)),d}return _cloneArrayBuffer=o,_cloneArrayBuffer}var _cloneDataView,hasRequired_cloneDataView;function require_cloneDataView(){if(hasRequired_cloneDataView)return _cloneDataView;hasRequired_cloneDataView=1;var l=require_cloneArrayBuffer();function o(u,d){var f=d?l(u.buffer):u.buffer;return new u.constructor(f,u.byteOffset,u.byteLength)}return _cloneDataView=o,_cloneDataView}var _cloneRegExp,hasRequired_cloneRegExp;function require_cloneRegExp(){if(hasRequired_cloneRegExp)return _cloneRegExp;hasRequired_cloneRegExp=1;var l=/\w*$/;function o(u){var d=new u.constructor(u.source,l.exec(u));return d.lastIndex=u.lastIndex,d}return _cloneRegExp=o,_cloneRegExp}var _cloneSymbol,hasRequired_cloneSymbol;function require_cloneSymbol(){if(hasRequired_cloneSymbol)return _cloneSymbol;hasRequired_cloneSymbol=1;var l=require_Symbol(),o=l?l.prototype:void 0,u=o?o.valueOf:void 0;function d(f){return u?Object(u.call(f)):{}}return _cloneSymbol=d,_cloneSymbol}var _cloneTypedArray,hasRequired_cloneTypedArray;function require_cloneTypedArray(){if(hasRequired_cloneTypedArray)return _cloneTypedArray;hasRequired_cloneTypedArray=1;var l=require_cloneArrayBuffer();function o(u,d){var f=d?l(u.buffer):u.buffer;return new u.constructor(f,u.byteOffset,u.length)}return _cloneTypedArray=o,_cloneTypedArray}var _initCloneByTag,hasRequired_initCloneByTag;function require_initCloneByTag(){if(hasRequired_initCloneByTag)return _initCloneByTag;hasRequired_initCloneByTag=1;var l=require_cloneArrayBuffer(),o=require_cloneDataView(),u=require_cloneRegExp(),d=require_cloneSymbol(),f=require_cloneTypedArray(),p="[object Boolean]",h="[object Date]",v="[object Map]",g="[object Number]",m="[object RegExp]",y="[object Set]",b="[object String]",w="[object Symbol]",E="[object ArrayBuffer]",P="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",O="[object Int8Array]",x="[object Int16Array]",A="[object Int32Array]",D="[object Uint8Array]",j="[object Uint8ClampedArray]",M="[object Uint16Array]",N="[object Uint32Array]";function q(z,H,U){var F=z.constructor;switch(H){case E:return l(z);case p:case h:return new F(+z);case P:return o(z,U);case C:case T:case O:case x:case A:case D:case j:case M:case N:return f(z,U);case v:return new F;case g:case b:return new F(z);case m:return u(z);case y:return new F;case w:return d(z)}}return _initCloneByTag=q,_initCloneByTag}var _initCloneObject,hasRequired_initCloneObject;function require_initCloneObject(){if(hasRequired_initCloneObject)return _initCloneObject;hasRequired_initCloneObject=1;var l=require_baseCreate(),o=require_getPrototype(),u=require_isPrototype();function d(f){return typeof f.constructor=="function"&&!u(f)?l(o(f)):{}}return _initCloneObject=d,_initCloneObject}var _baseIsMap,hasRequired_baseIsMap;function require_baseIsMap(){if(hasRequired_baseIsMap)return _baseIsMap;hasRequired_baseIsMap=1;var l=require_getTag(),o=requireIsObjectLike(),u="[object Map]";function d(f){return o(f)&&l(f)==u}return _baseIsMap=d,_baseIsMap}var isMap_1,hasRequiredIsMap;function requireIsMap(){if(hasRequiredIsMap)return isMap_1;hasRequiredIsMap=1;var l=require_baseIsMap(),o=require_baseUnary(),u=require_nodeUtil(),d=u&&u.isMap,f=d?o(d):l;return isMap_1=f,isMap_1}var _baseIsSet,hasRequired_baseIsSet;function require_baseIsSet(){if(hasRequired_baseIsSet)return _baseIsSet;hasRequired_baseIsSet=1;var l=require_getTag(),o=requireIsObjectLike(),u="[object Set]";function d(f){return o(f)&&l(f)==u}return _baseIsSet=d,_baseIsSet}var isSet_1,hasRequiredIsSet;function requireIsSet(){if(hasRequiredIsSet)return isSet_1;hasRequiredIsSet=1;var l=require_baseIsSet(),o=require_baseUnary(),u=require_nodeUtil(),d=u&&u.isSet,f=d?o(d):l;return isSet_1=f,isSet_1}var _baseClone,hasRequired_baseClone;function require_baseClone(){if(hasRequired_baseClone)return _baseClone;hasRequired_baseClone=1;var l=require_Stack(),o=require_arrayEach(),u=require_assignValue(),d=require_baseAssign(),f=require_baseAssignIn(),p=require_cloneBuffer(),h=require_copyArray(),v=require_copySymbols(),g=require_copySymbolsIn(),m=require_getAllKeys(),y=require_getAllKeysIn(),b=require_getTag(),w=require_initCloneArray(),E=require_initCloneByTag(),P=require_initCloneObject(),C=requireIsArray(),T=requireIsBuffer(),O=requireIsMap(),x=requireIsObject(),A=requireIsSet(),D=requireKeys(),j=requireKeysIn(),M=1,N=2,q=4,z="[object Arguments]",H="[object Array]",U="[object Boolean]",F="[object Date]",B="[object Error]",G="[object Function]",Q="[object GeneratorFunction]",K="[object Map]",Z="[object Number]",te="[object Object]",oe="[object RegExp]",fe="[object Set]",le="[object String]",Re="[object Symbol]",Ae="[object WeakMap]",_e="[object ArrayBuffer]",ee="[object DataView]",se="[object Float32Array]",$e="[object Float64Array
120]",Ee="[object Int8Array]",xe="[object Int16Array]",Se="[object Int32Array]",Ie="[object Uint8Array]",ge="[object Uint8ClampedArray]",Y="[object Uint16Array]",ie="[object Uint32Array]",ce={};ce[z]=ce[H]=ce[_e]=ce[ee]=ce[U]=ce[F]=ce[se]=ce[$e]=ce[Ee]=ce[xe]=ce[Se]=ce[K]=ce[Z]=ce[te]=ce[oe]=ce[fe]=ce[le]=ce[Re]=ce[Ie]=ce[ge]=ce[Y]=ce[ie]=!0,ce[B]=ce[G]=ce[Ae]=!1;function ue(pe,Te,Ce,Fe,He,we){var Oe,Ne=Te&M,qe=Te&N,Be=Te&q;if(Ce&&(Oe=He?Ce(pe,Fe,He,we):Ce(pe)),Oe!==void 0)return Oe;if(!x(pe))return pe;var Ve=C(pe);if(Ve){if(Oe=w(pe),!Ne)return h(pe,Oe)}else{var Ye=b(pe),Ge=Ye==G||Ye==Q;if(T(pe))return p(pe,Ne);if(Ye==te||Ye==z||Ge&&!He){if(Oe=qe||Ge?{}:P(pe),!Ne)return qe?g(pe,f(Oe,pe)):v(pe,d(Oe,pe))}else{if(!ce[Ye])return He?pe:{};Oe=E(pe,Ye,Ne)}}we||(we=new l);var dt=we.get(pe);if(dt)return dt;we.set(pe,Oe),A(pe)?pe.forEach(function(Ze){Oe.add(ue(Ze,Te,Ce,Ze,pe,we))}):O(pe)&&pe.forEach(function(Ze,_t){Oe.set(_t,ue(Ze,Te,Ce,_t,pe,we))});var ze=Be?qe?y:m:qe?j:D,nt=Ve?void 0:ze(pe);return o(nt||pe,function(Ze,_t){nt&&(_t=Ze,Ze=pe[_t]),u(Oe,_t,ue(Ze,Te,Ce,_t,pe,we))}),Oe}return _baseClone=ue,_baseClone}var last_1,hasRequiredLast;function requireLast(){if(hasRequiredLast)return last_1;hasRequiredLast=1;function l(o){var u=o==null?0:o.length;return u?o[u-1]:void 0}return last_1=l,last_1}var _parent,hasRequired_parent;function require_parent(){if(hasRequired_parent)return _parent;hasRequired_parent=1;var l=require_baseGet(),o=require_baseSlice();function u(d,f){return f.length<2?d:l(d,o(f,0,-1))}return _parent=u,_parent}var _baseUnset,hasRequired_baseUnset;function require_baseUnset(){if(hasRequired_baseUnset)return _baseUnset;hasRequired_baseUnset=1;var l=require_castPath(),o=requireLast(),u=require_parent(),d=require_toKey(),f=Object.prototype,p=f.hasOwnProperty;function h(v,g){g=l(g,v);var m=-1,y=g.length;if(!y)return!0;for(var b=v==null||typeof v!="object"&&typeof v!="function";++m<y;){var w=g[m];if(typeof w=="string"){if(w==="__proto__"&&!p.call(v,"__proto__"))return!1;if(w==="constructor"&&m+1<y&&typeof g[m+1]=="string"&&g[m+1]==="prototype"){if(b&&m===0)continue;return!1}}}var E=u(v,g);return E==null||delete E[d(o(g))]}return _baseUnset=h,_baseUnset}var isPlainObject_1,hasRequiredIsPlainObject;function requireIsPlainObject(){if(hasRequiredIsPlainObject)return isPlainObject_1;hasRequiredIsPlainObject=1;var l=require_baseGetTag(),o=require_getPrototype(),u=requireIsObjectLike(),d="[object Object]",f=Function.prototype,p=Object.prototype,h=f.toString,v=p.hasOwnProperty,g=h.call(Object);function m(y){if(!u(y)||l(y)!=d)return!1;var b=o(y);if(b===null)return!0;var w=v.call(b,"constructor")&&b.constructor;return typeof w=="function"&&w instanceof w&&h.call(w)==g}return isPlainObject_1=m,isPlainObject_1}var _customOmitClone,hasRequired_customOmitClone;function require_customOmitClone(){if(hasRequired_customOmitClone)return _customOmitClone;hasRequired_customOmitClone=1;var l=requireIsPlainObject();function o(u){return l(u)?void 0:u}return _customOmitClone=o,_customOmitClone}var _flatRest,hasRequired_flatRest;function require_flatRest(){if(hasRequired_flatRest)return _flatRest;hasRequired_flatRest=1;var l=requireFlatten(),o=require_overRest(),u=require_setToString();function d(f){return u(o(f,void 0,l),f+"")}return _flatRest=d,_flatRest}var omit_1,hasRequiredOmit;function requireOmit(){if(hasRequiredOmit)return omit_1;hasRequiredOmit=1;var l=require_arrayMap(),o=require_baseClone(),u=require_baseUnset(),d=require_castPath(),f=require_copyObject(),p=require_customOmitClone(),h=require_flatRest(),v=require_getAllKeysIn(),g=1,m=2,y=4,b=h(function(w,E){var P={};if(w==null)return P;var C=!1;E=l(E,function(O){return O=d(O,w),C||(C=O.length>1),O}),f(w,v(w),P),C&&(P=o(P,g|m|y,p));for(var T=E.length;T--;)u(P,E[T]);return P});return omit_1=b,omit_1}var omitExports=requireOmit();const omit$1=getDefaultExportFromCjs(omitExports);function ownKeys$F(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$F(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
120o%2?ownKeys$F(Object(u),!0).forEach(function(d){_defineProperty$L(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$F(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$L(l,o,u){return(o=_toPropertyKey$1Q(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1Q(l){var o=_toPrimitive$1Q(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1Q(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function accessTokensReducer(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case ActionTypes$1.RESOLVE_AUTHENTICATION_REQUEST:return _objectSpread$F(_objectSpread$F({},l),{},_defineProperty$L({},o.tokenServiceId,{authId:o.id,id:o.tokenServiceId,isFetching:!0}));case ActionTypes$1.REQUEST_ACCESS_TOKEN:return _objectSpread$F(_objectSpread$F({},l),{},_defineProperty$L({},o.serviceId,{authId:o.authId,id:o.serviceId,isFetching:!0}));case ActionTypes$1.RECEIVE_ACCESS_TOKEN:return _objectSpread$F(_objectSpread$F({},l),{},_defineProperty$L({},o.serviceId,_objectSpread$F(_objectSpread$F({},l[o.serviceId]),{},{isFetching:!1,json:o.json})));case ActionTypes$1.RECEIVE_ACCESS_TOKEN_FAILURE:return _objectSpread$F(_objectSpread$F({},l),{},_defineProperty$L({},o.serviceId,_objectSpread$F(_objectSpread$F({},l[o.serviceId]),{},{error:o.error,isFetching:!1})));case ActionTypes$1.RESET_AUTHENTICATION_STATE:return omit$1(l,o.tokenServiceId);case ActionTypes$1.RECEIVE_INFO_RESPONSE:return!o.tokenServiceId||l[o.tokenServiceId].success?l:_objectSpread$F(_objectSpread$F({},l),{},_defineProperty$L({},o.tokenServiceId,_objectSpread$F(_objectSpread$F({},l[o.tokenServiceId]),{},{success:!0})));default:return l}}var _mapping={},hasRequired_mapping;function require_mapping(){return hasRequired_mapping||(hasRequired_mapping=1,(function(l){l.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"},l.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","flatten
120Depth","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"]},l.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},l.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},l.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},l.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]},l.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}},l.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}},l.realToAlias=(function(){var o=Object.prototype.hasOwnProperty,u=l.aliasToReal,d={};for(var f in u){var p=u[f];o.call(d,p)?d[p].push(f):d[p]=[f]}return d})(),l.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"},l.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},l.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}})(_mapping)),_mapping}var placeholder,hasRequiredPlaceholder;function requirePlaceholder(){return hasRequiredPlaceholder||(hasRequiredPlaceholder=1,placeholder={}),placeholder}var _baseConvert,hasRequired_baseConvert;function require_baseConvert(){if(hasRequired_baseConvert)return _baseConvert;hasRequired_baseConvert=1;var l=require_mapping(),o=requirePlaceholder(),u=Array.prototype.push;function d(y,b){return b==2?function(w,E){return y.apply(void 0,arguments)}:function(w){return y.apply(void 0,arguments)}}function f(y,b){return b==2?function(w,E){return y(w,E)}:function(w){return y(w)}}function p(y){for(var b=y?y.length:0,w=Array(b);b--;)w[b]=y[b];return w}function h(y){return function(b){return y({},b)}}function v(y,b){return function(){for(var w=arguments.length,E=w-1,P=Array(w);w--;)P[w]=arguments[w];
120var C=P[b],T=P.slice(0,b);return C&&u.apply(T,C),b!=E&&u.apply(T,P.slice(b+1)),y.apply(this,T)}}function g(y,b){return function(){var w=arguments.length;if(w){for(var E=Array(w);w--;)E[w]=arguments[w];var P=E[0]=b.apply(void 0,E);return y.apply(void 0,E),P}}}function m(y,b,w,E){var P=typeof b=="function",C=b===Object(b);if(C&&(E=w,w=b,b=void 0),w==null)throw new TypeError;E||(E={});var T={cap:"cap"in E?E.cap:!0,curry:"curry"in E?E.curry:!0,fixed:"fixed"in E?E.fixed:!0,immutable:"immutable"in E?E.immutable:!0,rearg:"rearg"in E?E.rearg:!0},O=P?w:o,x="curry"in E&&E.curry,A="fixed"in E&&E.fixed,D="rearg"in E&&E.rearg,j=P?w.runInContext():void 0,M=P?w:{ary:y.ary,assign:y.assign,clone:y.clone,curry:y.curry,forEach:y.forEach,isArray:y.isArray,isError:y.isError,isFunction:y.isFunction,isWeakMap:y.isWeakMap,iteratee:y.iteratee,keys:y.keys,rearg:y.rearg,toInteger:y.toInteger,toPath:y.toPath},N=M.ary,q=M.assign,z=M.clone,H=M.curry,U=M.forEach,F=M.isArray,B=M.isError,G=M.isFunction,Q=M.isWeakMap,K=M.keys,Z=M.rearg,te=M.toInteger,oe=M.toPath,fe=K(l.aryMethod),le={castArray:function(ce){return function(){var ue=arguments[0];return F(ue)?ce(p(ue)):ce.apply(void 0,arguments)}},iteratee:function(ce){return function(){var ue=arguments[0],pe=arguments[1],Te=ce(ue,pe),Ce=Te.length;return T.cap&&typeof pe=="number"?(pe=pe>2?pe-2:1,Ce&&Ce<=pe?Te:f(Te,pe)):Te}},mixin:function(ce){return function(ue){var pe=this;if(!G(pe))return ce(pe,Object(ue));var Te=[];return U(K(ue),function(Ce){G(ue[Ce])&&Te.push([Ce,pe.prototype[Ce]])}),ce(pe,Object(ue)),U(Te,function(Ce){var Fe=Ce[1];G(Fe)?pe.prototype[Ce[0]]=Fe:delete pe.prototype[Ce[0]]}),pe}},nthArg:function(ce){return function(ue){var pe=ue<0?1:te(ue)+1;return H(ce(ue),pe)}},rearg:function(ce){return function(ue,pe){var Te=pe?pe.length:0;return H(ce(ue,pe),Te)}},runInContext:function(ce){return function(ue){return m(y,ce(ue),E)}}};function Re(ce,ue){if(T.cap){var pe=l.iterateeRearg[ce];if(pe)return Se(ue,pe);var Te=!P&&l.iterateeAry[ce];if(Te)return xe(ue,Te)}return ue}function Ae(ce,ue,pe){return x||T.curry&&pe>1?H(ue,pe):ue}function _e(ce,ue,pe){if(T.fixed&&(A||!l.skipFixed[ce])){var Te=l.methodSpread[ce],Ce=Te&&Te.start;return Ce===void 0?N(ue,pe):v(ue,Ce)}return ue}function ee(ce,ue,pe){return T.rearg&&pe>1&&(D||!l.skipRearg[ce])?Z(ue,l.methodRearg[ce]||l.aryRearg[pe]):ue}function se(ce,ue){ue=oe(ue);for(var pe=-1,Te=ue.length,Ce=Te-1,Fe=z(Object(ce)),He=Fe;He!=null&&++pe<Te;){var we=ue[pe],Oe=He[we];Oe!=null&&!(G(Oe)||B(Oe)||Q(Oe))&&(He[we]=z(pe==Ce?Oe:Object(Oe))),He=He[we]}return Fe}function $e(ce){return Y.runInContext.convert(ce)(void 0)}function Ee(ce,ue){var pe=l.aliasToReal[ce]||ce,Te=l.remap[pe]||pe,Ce=E;return function(Fe){var He=P?j:M,we=P?j[Te]:ue,Oe=q(q({},Ce),Fe);return m(He,pe,we,Oe)}}function xe(ce,ue){return Ie(ce,function(pe){return typeof pe=="function"?f(pe,ue):pe})}function Se(ce,ue){return Ie(ce,function(pe){var Te=ue.length;return d(Z(f(pe,Te),ue),Te)})}function Ie(ce,ue){return function(){var pe=arguments.length;if(!pe)return ce();for(var Te=Array(pe);pe--;)Te[pe]=arguments[pe];var Ce=T.rearg?0:pe-1;return Te[Ce]=ue(Te[Ce]),ce.apply(void 0,Te)}}function ge(ce,ue,pe){var Te,Ce=l.aliasToReal[ce]||ce,Fe=ue,He=le[Ce];return He?Fe=He(ue):T.immutable&&(l.mutate.array[Ce]?Fe=g(ue,p):l.mutate.object[Ce]?Fe=g(ue,h(ue)):l.mutate.set[Ce]&&(Fe=g(ue,se))),U(fe,function(we){return U(l.aryMethod[we],function(Oe){if(Ce==Oe){var Ne=l.methodSpread[Ce],qe=Ne&&Ne.afterRearg;return Te=qe?_e(Ce,ee(Ce,Fe,we),we):ee(Ce,_e(Ce,Fe,we),we),Te=Re(Ce,Te),Te=Ae(Ce,Te,we),!1}}),!Te}),Te||(Te=Fe),Te==ue&&(Te=x?H(Te,1):function(){return ue.apply(this,arguments)}),Te.convert=Ee(Ce,ue),Te.placeholder=ue.placeholder=pe,Te}if(!C)return ge(b,w,O);var Y=w,ie=[];return U(fe,function(ce){U(l.aryMethod[ce],function(ue){var pe=Y[l.remap[ue]||ue];pe&&ie.push([ue,ge(ue,pe,Y)])})}),U(K(Y),function(ce){var ue=Y[ce];if(typeof ue=="function"){for(var pe=ie.length;pe--;)if(ie[pe][0]==ce)return;ue.convert=Ee(ce,ue),ie.push([ce,ue])}}),U(ie,function(ce){Y[ce[0]]=ce[1]}),Y.convert=$e,Y.placeholder=Y,U(K(Y),function(ce){U(l.realToAlias[ce]||[],function(ue){Y[ue]=Y[ce]})}),Y}return _baseConvert=m,_baseConvert}var ary_1,hasRequiredAry;function requireAry(){if(hasRequiredAry)return ary_1;hasRequiredAry=1;var l=require_createWrap(),o=128;function u(d,f,p){return f=p?void 0:f,f=d&&f==null?d.length:f,l(d,o,void 0,void 0,void 0,void 0,f)}return ary_1=u,ary_1}var clone_1,hasRequiredClone;function requireClone(){if(hasRequiredClone)return clone_1;hasRequiredClone=1;var l=require_baseClone(),o=4;function u(d){return l(d,o)}return clone_1=u,clone_1}var isError_1,hasRequiredIsError;function requireIsError(){if(hasRequiredIsError)return isError_1;hasRequiredIsError=1;var l=require_baseGetTag(),o=requireIsObjectLike(),u=requireIsPlainObject(),d="[object DOMException]",f="[object Error]";function p(h){if(!o(h))return!1;var v=l(h);return v==f||v==d||typeof h.message=="string"&&typeof h.name=="string"&&!u(h)}return isError_1=p,isError_1}var isWeakMap_1,hasRequiredIsWeakMap;function requireIsWeakMap(){if(hasRequiredIsWeakMap)return isWeakMap_1;hasRequiredIsWeakMap=1;var l=require_getTag(),o=requireIsObjectLike(),u="[object WeakMap]";function d(f){return o(f)&&l(f)==u}return isWeakMap_1=d,isWeakMap_1}var iteratee_1,hasRequiredIteratee;function requireIteratee(){if(hasRequiredIteratee)return iteratee_1;hasRequiredIteratee=1;var l=require_baseClone(),o=require_baseIteratee(),u=1;function d(f){return o(typeof f=="function"?f:l(f,u))}return iteratee_1=d,iteratee_1}var rearg_1,hasRequiredRearg;function requireRearg(){if(hasRequiredRearg)return rearg_1;hasRequiredRearg=1;var l=require_createWrap(),o=require_flatRest(),u=256,d=o(function(f,p){return l(f,u,void 0,void 0,void 0,p)});return rearg_1=d,rearg_1}var toPath_1,hasRequiredToPath;function requireToPath(){if(hasRequiredToPath)return toPath_1;hasRequiredToPath=1;var l=require_arrayMap(),o=require_copyArray(),u=requireIsArray(),d=requireIsSymbol(),f=require_stringToPath(),p=require_toKey(),h=requireToString();function v(g){return u(g)?l(g,p):d(g)?[g]:o(f(h(g)))}return toPath_1=v,toPath_1}var _util,hasRequired_util;function require_util(){return hasRequired_util||(hasRequired_util=1,_util={ary:requireAry(),assign:require_baseAssign(),clone:requireClone(),curry:requireCurry(),forEac
120h:require_arrayEach(),isArray:requireIsArray(),isError:requireIsError(),isFunction:requireIsFunction(),isWeakMap:requireIsWeakMap(),iteratee:requireIteratee(),keys:require_baseKeys(),rearg:requireRearg(),toInteger:requireToInteger(),toPath:requireToPath()}),_util}var convert_1,hasRequiredConvert;function requireConvert(){if(hasRequiredConvert)return convert_1;hasRequiredConvert=1;var l=require_baseConvert(),o=require_util();function u(d,f,p){return l(o,d,f,p)}return convert_1=u,convert_1}var set_1,hasRequiredSet$1;function requireSet$1(){if(hasRequiredSet$1)return set_1;hasRequiredSet$1=1;var l=require_baseSet();function o(u,d,f){return u==null?u:l(u,d,f)}return set_1=o,set_1}var set$1,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set$1;hasRequiredSet=1;var l=requireConvert(),o=l("set",requireSet$1());return o.placeholder=requirePlaceholder(),set$1=o,set$1}var setExports=requireSet();const set=getDefaultExportFromCjs(setExports);var update$1,hasRequiredUpdate;function requireUpdate(){if(hasRequiredUpdate)return update$1;hasRequiredUpdate=1;var l=requireConvert(),o=l("update",requireUpdate$1());return o.placeholder=requirePlaceholder(),update$1=o,update$1}var updateExports=requireUpdate();const update=getDefaultExportFromCjs(updateExports);function ownKeys$E(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$E(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$E(Object(u),!0).forEach(function(d){_defineProperty$K(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$E(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$K(l,o,u){return(o=_toPropertyKey$1P(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1P(l){var o=_toPrimitive$1P(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1P(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function companionWindowsReducer(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case ActionTypes$1.ADD_COMPANION_WINDOW:return set([o.id],o.payload,l);case ActionTypes$1.ADD_WINDOW:return _objectSpread$E(_objectSpread$E({},l),(o.companionWindows||[]).reduce(function(u,d){return u[d.id]=_objectSpread$E(_objectSpread$E(_objectSpread$E({},l[d.id]),d),{},{windowId:o.id}),u},{}));case ActionTypes$1.REMOVE_WINDOW:return Object.keys(l).reduce(function(u,d){return l[d].windowId!==o.windowId&&(u[d]=l[d]),u},{});case ActionTypes$1.UPDATE_COMPANION_WINDOW:return update([o.id],function(u){return _objectSpread$E(_objectSpread$E({},u||{}),o.payload)},l);case ActionTypes$1.REMOVE_COMPANION_WINDOW:return omit$1(l,o.id);case ActionTypes$1.IMPORT_MIRADOR_STATE:return o.state.companionWindows||[];case ActionTypes$1.TOGGLE_TOC_NODE:return update([o.id,"tocNodes"],function(u){return _objectSpread$E(_objectSpread$E({},u||{}),o.payload)},l);default:return l}}function _toConsumableArray$g(l){return _arrayWithoutHoles$g(l)||_iterableToArray$g(l)||_unsupportedIterableToArray$j(l)||_nonIterableSpread$g()}function _nonIterableSpread$g(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
121In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$j(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$j(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$j(l,o):void 0}}function _iterableToArray$g(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$g(l){if(Array.isArray(l))return _arrayLikeToArray$j(l)}function _arrayLikeToArray$j(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys$D(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$D(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
121o%2?ownKeys$D(Object(u),!0).forEach(function(d){_defineProperty$J(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$D(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$J(l,o,u){return(o=_toPropertyKey$1O(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1O(l){var o=_toPrimitive$1O(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1O(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var defaultState={items:[]},errorsReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultState,u=arguments.length>1?arguments[1]:void 0,d;switch(u.type){case ActionTypes$1.ADD_ERROR:return _objectSpread$D(_objectSpread$D({},o),{},_defineProperty$J(_defineProperty$J({},u.id,{id:u.id,message:u.message}),"items",[].concat(_toConsumableArray$g(o.items),[u.id])));case ActionTypes$1.RECEIVE_INFO_RESPONSE_FAILURE:return _objectSpread$D(_objectSpread$D({},o),{},_defineProperty$J(_defineProperty$J({},u.infoId,{id:u.infoId,message:u.error}),"items",[].concat(_toConsumableArray$g(o.items),[u.infoId])));case ActionTypes$1.RECEIVE_SEARCH_FAILURE:return _objectSpread$D(_objectSpread$D({},o),{},_defineProperty$J(_defineProperty$J({},u.searchId,{id:u.searchId,message:u.error}),"items",[].concat(_toConsumableArray$g(o.items),[u.searchId])));case ActionTypes$1.REMOVE_ERROR:return d=Object.keys(o).reduce(function(f,p){return p!==u.id&&(f[p]=o[p]),f},{}),d.items=without$2(d.items,u.id),d;case ActionTypes$1.IMPORT_MIRADOR_STATE:return defaultState;default:return o}};function _toConsumableArray$f(l){return _arrayWithoutHoles$f(l)||_iterableToArray$f(l)||_unsupportedIterableToArray$i(l)||_nonIterableSpread$f()}function _nonIterableSpread$f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
122In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$i(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$i(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$i(l,o):void 0}}function _iterableToArray$f(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$f(l){if(Array.isArray(l))return _arrayLikeToArray$i(l)}function _arrayLikeToArray$i(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys$C(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$C(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$C(Object(u),!0).forEach(function(d){_defineProperty$I(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$C(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$I(l,o,u){return(o=_toPropertyKey$1N(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1N(l){var o=_toPrimitive$1N(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1N(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function hasViewportPosition(l){return l.x!==void 0&&l.y!==void 0&&l.width!==void 0&&l.height!==void 0}function contains(l,o){return o.x-o.width/2>l.x-l.width/2&&o.y-o.height/2>
122l.y-l.height/2&&o.x+o.width/2<l.x+l.width/2&&o.y+o.height/2<l.y+l.height/2}var workspaceReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_objectSpread$C(_objectSpread$C({},settings$1.workspace),{},{windowIds:[]}),u=arguments.length>1?arguments[1]:void 0,d,f,p;switch(u.type){case ActionTypes$1.UPDATE_WORKSPACE:return _objectSpread$C(_objectSpread$C({},o),u.config);case ActionTypes$1.FOCUS_WINDOW:return _objectSpread$C(_objectSpread$C({},o),{},{focusedWindowId:u.windowId,viewportPosition:_objectSpread$C(_objectSpread$C({},o.viewportPosition),u.position)});case ActionTypes$1.ADD_WINDOW:return _objectSpread$C(_objectSpread$C({},o),{},{focusedWindowId:u.window.id,windowIds:[].concat(_toConsumableArray$f(o.windowIds||[]),[u.window.id])});case ActionTypes$1.REMOVE_WINDOW:return p=(o.windowIds||[]).filter(function(h){return h!==u.windowId}),_objectSpread$C(_objectSpread$C({},o),{},{focusedWindowId:u.windowId===o.focusedWindowId?p[p.length-1]:o.focusedWindowId,windowIds:p});case ActionTypes$1.SET_WORKSPACE_FULLSCREEN:return _objectSpread$C(_objectSpread$C({},o),{},{isFullscreenEnabled:u.isFullscreenEnabled});case ActionTypes$1.TOGGLE_ZOOM_CONTROLS:return _objectSpread$C(_objectSpread$C({},o),{},{showZoomControls:u.showZoomControls});case ActionTypes$1.UPDATE_WORKSPACE_MOSAIC_LAYOUT:return _objectSpread$C(_objectSpread$C({},o),{},{layout:u.layout});case ActionTypes$1.SET_WORKSPACE_ADD_VISIBILITY:return _objectSpread$C(_objectSpread$C({},o),{},{isWorkspaceAddVisible:u.isWorkspaceAddVisible});case ActionTypes$1.SET_WORKSPACE_VIEWPORT_POSITION:return d={},f=_objectSpread$C(_objectSpread$C({},o.viewportPosition),u.payload.position),hasViewportPosition(f)&&!contains({height:o.height,width:o.width,x:0,y:0},f)&&(d={height:o.height*2,width:o.width*2}),_objectSpread$C(_objectSpread$C(_objectSpread$C({},o),d),{},{viewportPosition:f});case ActionTypes$1.SET_CONFIG:case ActionTypes$1.IMPORT_CONFIG:case ActionTypes$1.UPDATE_CONFIG:return _objectSpread$C(_objectSpread$C({},o),u.config.workspace);case ActionTypes$1.IMPORT_MIRADOR_STATE:return u.state.workspace||{};case ActionTypes$1.TOGGLE_DRAGGING:return _objectSpread$C(_objectSpread$C({},o),{},{draggingEnabled:!o.draggingEnabled});default:return o}};function ownKeys$B(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$B(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$B(Object(u),!0).forEach(function(d){_defineProperty$H(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$B(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$H(l,o,u){return(o=_toPropertyKey$1M(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1M(l){var o=_toPrimitive$1M(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1M(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var windowsReducer=function(){var o,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;switch(d.type){case ActionTypes$1.ADD_WINDOW:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.window.id,d.window));case ActionTypes$1.MAXIMIZE_WINDOW:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{maximized:!0})));case ActionTypes$1.MINIMIZE_WINDOW:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{maximized:!1})));case ActionTypes$1.UPDATE_WINDOW:return update([d.id],function(f){return _objectSpread$B(_objectSpread$B({},f||{}),d.payload)},u);case ActionTypes$1.REMOVE_WINDOW:return omit$1(u,[d.windowId]);case ActionTypes$1.TOGGLE_WINDOW_SIDE_BAR:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{sideBarOpen:!u[d.windowId].sideBarOpen})));case ActionTypes$1.SET_WINDOW_VIEW_TYPE:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{view:d.viewType})));
122case ActionTypes$1.UPDATE_WINDOW_POSITION:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.payload.windowId,_objectSpread$B(_objectSpread$B({},u[d.payload.windowId]),{},{x:d.payload.position.x,y:d.payload.position.y})));case ActionTypes$1.SET_WINDOW_SIZE:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.payload.windowId,_objectSpread$B(_objectSpread$B({},u[d.payload.windowId]),{},{height:d.payload.size.height,width:d.payload.size.width,x:d.payload.size.x,y:d.payload.size.y})));case ActionTypes$1.SET_CANVAS:return u[d.windowId]?update([d.windowId],function(f){return _objectSpread$B(_objectSpread$B({},f||{}),{},{canvasId:d.canvasId,visibleCanvases:d.visibleCanvases||[]})},u):u;case ActionTypes$1.ADD_COMPANION_WINDOW:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{companionWindowIds:u[d.windowId].companionWindowIds.concat([d.id])},d.payload.position==="left"?{companionAreaOpen:!0,sideBarPanel:d.payload.content}:{})));case ActionTypes$1.UPDATE_COMPANION_WINDOW:return d.payload.position!=="left"?u:_objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{companionAreaOpen:!0})));case ActionTypes$1.REMOVE_COMPANION_WINDOW:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{companionWindowIds:u[d.windowId].companionWindowIds.filter(function(f){return f!==d.id})})));case ActionTypes$1.SELECT_ANNOTATION:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{selectedAnnotationId:d.annotationId})));case ActionTypes$1.DESELECT_ANNOTATION:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{selectedAnnotationId:void 0})));case ActionTypes$1.HOVER_ANNOTATION:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{hoveredAnnotationIds:d.annotationIds})));case ActionTypes$1.TOGGLE_ANNOTATION_DISPLAY:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{highlightAllAnnotations:!u[d.windowId].highlightAllAnnotations})));case ActionTypes$1.IMPORT_MIRADOR_STATE:return d.state.windows||[];case ActionTypes$1.REQUEST_SEARCH:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{suggestedSearches:void 0})));case ActionTypes$1.SHOW_COLLECTION_DIALOG:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{collectionDialogOn:!0,collectionManifestId:d.manifestId,collectionPath:d.collectionPath})));case ActionTypes$1.HIDE_COLLECTION_DIALOG:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{collectionDialogOn:!1})));case ActionTypes$1.SHIFT_BOOK_VIEW:return _objectSpread$B(_objectSpread$B({},u),{},_defineProperty$H({},d.windowId,_objectSpread$B(_objectSpread$B({},u[d.windowId]),{},{shiftBookView:(o=d.doShift)!==null&&o!==void 0?o:!1})));default:return u}};function ownKeys$A(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$A(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$A(Object(u),!0).forEach(function(d){_defineProperty$G(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$A(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$G(l,o,u){return(o=_toPropertyKey$1L(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1L(l){var o=_toPrimitive$1L(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1L(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
122return(o==="string"?String:Number)(l)}var manifestsReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.REQUEST_MANIFEST:return _objectSpread$A(_defineProperty$G({},u.manifestId,_objectSpread$A(_objectSpread$A(_objectSpread$A({},o[u.manifestId]),u.properties),{},{id:u.manifestId})),omit$1(o,u.manifestId));case ActionTypes$1.RECEIVE_MANIFEST:return _objectSpread$A(_objectSpread$A({},o),{},_defineProperty$G({},u.manifestId,_objectSpread$A(_objectSpread$A({},o[u.manifestId]),{},{error:null,id:u.manifestId,isFetching:!1,json:u.manifestJson})));case ActionTypes$1.RECEIVE_MANIFEST_FAILURE:return _objectSpread$A(_objectSpread$A({},o),{},_defineProperty$G({},u.manifestId,_objectSpread$A(_objectSpread$A({},o[u.manifestId]),{},{error:u.error,id:u.manifestId,isFetching:!1})));case ActionTypes$1.REMOVE_MANIFEST:return Object.keys(o).reduce(function(d,f){return f!==u.manifestId&&(d[f]=o[f]),d},{});case ActionTypes$1.IMPORT_MIRADOR_STATE:return u.state.manifests||{};default:return o}};function ownKeys$z(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$z(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$z(Object(u),!0).forEach(function(d){_defineProperty$F(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$z(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$F(l,o,u){return(o=_toPropertyKey$1K(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1K(l){var o=_toPrimitive$1K(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1K(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var infoResponsesReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.REQUEST_INFO_RESPONSE:return _objectSpread$z(_objectSpread$z({},o),{},_defineProperty$F({},u.infoId,{id:u.infoId,isFetching:!0}));case ActionTypes$1.RECEIVE_INFO_RESPONSE:return _objectSpread$z(_objectSpread$z({},o),{},_defineProperty$F({},u.infoId,{degraded:!1,id:u.infoId,isFetching:!1,json:u.infoJson,tokenServiceId:u.tokenServiceId}));case ActionTypes$1.RECEIVE_DEGRADED_INFO_RESPONSE:return _objectSpread$z(_objectSpread$z({},o),{},_defineProperty$F({},u.infoId,{degraded:!0,id:u.infoId,isFetching:!1,json:u.infoJson,tokenServiceId:u.tokenServiceId}));case ActionTypes$1.RECEIVE_INFO_RESPONSE_FAILURE:return _objectSpread$z(_objectSpread$z({},o),{},_defineProperty$F({},u.infoId,{error:u.error,id:u.infoId,isFetching:!1,tokenServiceId:u.tokenServiceId}));case ActionTypes$1.REMOVE_INFO_RESPONSE:return Object.keys(o).reduce(function(d,f){return f!==u.infoId&&(d[f]=o[f]),d},{});case ActionTypes$1.IMPORT_MIRADOR_STATE:return{};default:return o}};function ownKeys$y(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$y(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$y(Object(u),!0).forEach(function(d){_defineProperty$E(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$y(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$E(l,o,u){return(o=_toPropertyKey$1J(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1J(l){var o=_toPrimitive$1J(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1J(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
122return(o==="string"?String:Number)(l)}var initialState=_objectSpread$y({},settings$1),overwriteMerge=function(o,u,d){return u},configReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:initialState,u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.UPDATE_CONFIG:case ActionTypes$1.IMPORT_CONFIG:return deepmerge(o,u.config,{arrayMerge:overwriteMerge});case ActionTypes$1.SET_CONFIG:return u.config;case ActionTypes$1.IMPORT_MIRADOR_STATE:return u.state.config||{};default:return o}};function ownKeys$x(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$x(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$x(Object(u),!0).forEach(function(d){_defineProperty$D(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$x(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$D(l,o,u){return(o=_toPropertyKey$1I(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1I(l){var o=_toPrimitive$1I(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1I(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var viewersReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.UPDATE_VIEWPORT:return _objectSpread$x(_objectSpread$x({},o),{},_defineProperty$D({},u.windowId,_objectSpread$x(_objectSpread$x({},o[u.windowId]),u.payload)));case ActionTypes$1.ADD_WINDOW:return u.window.initialViewerConfig?_objectSpread$x(_objectSpread$x({},o),{},_defineProperty$D({},u.window.id,_objectSpread$x(_objectSpread$x({},o[u.window.id]),u.window.initialViewerConfig))):o;case ActionTypes$1.REMOVE_WINDOW:return omit$1(o,u.windowId);case ActionTypes$1.SET_WINDOW_VIEW_TYPE:case ActionTypes$1.SHIFT_BOOK_VIEW:return set([u.windowId],null,o);case ActionTypes$1.SET_CANVAS:return u.preserveViewport?o:set([u.windowId],null,o);case ActionTypes$1.IMPORT_MIRADOR_STATE:return u.state.viewers||{};default:return o}};function ownKeys$w(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$w(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$w(Object(u),!0).forEach(function(d){_defineProperty$C(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$w(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$C(l,o,u){return(o=_toPropertyKey$1H(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1H(l){var o=_toPrimitive$1H(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1H(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var annotationsReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.REQUEST_ANNOTATION:return _objectSpread$w(_objectSpread$w({},o),{},_defineProperty$C({},u.targetId,_objectSpread$w(_objectSpread$w({},o[u.targetId]),{},_defineProperty$C({},u.annotationId,{id:u.annotationId,isFetching:!0}))));case ActionTypes$1.RECEIVE_ANNOTATION:return _objectSpread$w(_objectSpread$w({},o),{},_defineProperty$C({},u.targetId,_objectSpread$w(_objectSpread$w({},o[u.targetId]),{},_defineProperty$C({},u.annotationId,{id:u.annotationId,isFetching:!1,json:u.annotationJson}))));case ActionTypes$1.RECEIVE_ANNOTATION_FAILURE:return _objectSpread$w(_objectSpread$w({},o),{},_defineProperty$C({},u.targetId,_objectSpread$w(_objectSpread$w({},o[u.targetId]),{},_defineProperty$C({},u.annotationId,{error:u.error,id:u.annotationId,isFetching:!1}))));case ActionTypes$1.IMPORT_MIRADOR_STATE:return{};default:return o}};function ownKeys$v(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$v(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
122o%2?ownKeys$v(Object(u),!0).forEach(function(d){_defineProperty$B(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$v(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$B(l,o,u){return(o=_toPropertyKey$1G(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1G(l){var o=_toPrimitive$1G(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1G(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var authReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.ADD_AUTHENTICATION_REQUEST:return _objectSpread$v(_objectSpread$v({},o),{},_defineProperty$B({},u.id,{id:u.id,isFetching:!0,profile:u.profile,windowId:u.windowId}));case ActionTypes$1.RESOLVE_AUTHENTICATION_REQUEST:return _objectSpread$v(_objectSpread$v({},o),{},_defineProperty$B({},u.id,_objectSpread$v(_objectSpread$v({},o[u.id]),{},{isFetching:!1,ok:u.ok})));case ActionTypes$1.RECEIVE_ACCESS_TOKEN:return u.authId?_objectSpread$v(_objectSpread$v({},o),{},_defineProperty$B({},u.authId,_objectSpread$v(_objectSpread$v({},o[u.authId]),{},{ok:!0}))):o;case ActionTypes$1.RESET_AUTHENTICATION_STATE:return omit$1(o,u.id);default:return o}};function ownKeys$u(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$u(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$u(Object(u),!0).forEach(function(d){_defineProperty$A(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$u(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$A(l,o,u){return(o=_toPropertyKey$1F(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1F(l){var o=_toPrimitive$1F(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1F(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var elasticLayoutReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.ADD_WINDOW:return _objectSpread$u(_objectSpread$u({},o),{},_defineProperty$A({},u.window.id,_objectSpread$u({windowId:u.window.id},u.elasticLayout)));case ActionTypes$1.UPDATE_ELASTIC_WINDOW_LAYOUT:return update([u.windowId],function(d){return _objectSpread$u(_objectSpread$u({},d||{}),u.payload)},o);case ActionTypes$1.REMOVE_WINDOW:return omit$1(o,u.windowId);case ActionTypes$1.IMPORT_MIRADOR_STATE:return u.state.elasticLayout||{};default:return o}};function ownKeys$t(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$t(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$t(Object(u),!0).forEach(function(d){_defineProperty$z(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$t(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$z(l,o,u){return(o=_toPropertyKey$1E(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1E(l){var o=_toPrimitive$1E(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1E(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
122return(o==="string"?String:Number)(l)}var searchesReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,d=(o[u.windowId]||{})[u.companionWindowId]||{};switch(u.type){case ActionTypes$1.REQUEST_SEARCH:return d.query!==u.query?_objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,_objectSpread$t(_objectSpread$t({},o[u.windowId]),{},_defineProperty$z({},u.companionWindowId,_objectSpread$t(_objectSpread$t({},d),{},{data:_defineProperty$z({},u.searchId,{isFetching:!0}),query:u.query,selectedContentSearchAnnotation:[]}))))):_objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,_objectSpread$t(_objectSpread$t({},o[u.windowId]),{},_defineProperty$z({},u.companionWindowId,_objectSpread$t(_objectSpread$t({},d),{},{data:_objectSpread$t(_objectSpread$t({},d.data),{},_defineProperty$z({},u.searchId,{isFetching:!0}))})))));case ActionTypes$1.RECEIVE_SEARCH:return _objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,_objectSpread$t(_objectSpread$t({},o[u.windowId]),{},_defineProperty$z({},u.companionWindowId,_objectSpread$t(_objectSpread$t({},d),{},{data:_objectSpread$t(_objectSpread$t({},d.data),{},_defineProperty$z({},u.searchId,{isFetching:!1,json:u.searchJson}))})))));case ActionTypes$1.RECEIVE_SEARCH_FAILURE:return _objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,_objectSpread$t(_objectSpread$t({},o[u.windowId]),{},_defineProperty$z({},u.companionWindowId,_objectSpread$t(_objectSpread$t({},d),{},{data:_objectSpread$t(_objectSpread$t({},d.data),{},_defineProperty$z({},u.searchId,{error:u.error,isFetching:!1}))})))));case ActionTypes$1.REMOVE_SEARCH:return _objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,Object.keys(o[u.windowId]).reduce(function(f,p){return p!==u.companionWindowId&&(f[p]=o[u.windowId][p]),f},{})));case ActionTypes$1.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:return _objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,_objectSpread$t(_objectSpread$t({},o[u.windowId]),{},_defineProperty$z({},u.companionWindowId,_objectSpread$t(_objectSpread$t({},d),{},{selectedContentSearchAnnotationIds:u.annotationIds})))));case ActionTypes$1.SELECT_ANNOTATION:return o[u.windowId]?_objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,Object.keys(o[u.windowId]).reduce(function(f,p){var h=o[u.windowId][p],v=h.data&&Object.values(h.data).filter(function(g){return g.json&&g.json.resources}).some(function(g){return flatten([g.json.resources]).some(function(m){return m["@id"]===u.annotationId})});return v?f[p]=_objectSpread$t(_objectSpread$t({},h),{},{selectedContentSearchAnnotationIds:[u.annotationId]}):f[p]=h,f},{}))):o;case ActionTypes$1.IMPORT_MIRADOR_STATE:return{};case ActionTypes$1.REMOVE_WINDOW:return omit$1(o,u.windowId);case ActionTypes$1.REMOVE_COMPANION_WINDOW:return o[u.windowId]?_objectSpread$t(_objectSpread$t({},o),{},_defineProperty$z({},u.windowId,_objectSpread$t({},omit$1(o[u.windowId],u.id)))):o;default:return o}};function ownKeys$s(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$s(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$s(Object(u),!0).forEach(function(d){_defineProperty$y(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$s(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$y(l,o,u){return(o=_toPropertyKey$1D(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1D(l){var o=_toPrimitive$1D(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1D(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
122return(o==="string"?String:Number)(l)}var layersReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.UPDATE_LAYERS:return _objectSpread$s(_objectSpread$s({},o),{},_defineProperty$y({},u.windowId,_objectSpread$s(_objectSpread$s({},o[u.windowId]),{},_defineProperty$y({},u.canvasId,deepmerge((o[u.windowId]||{})[u.canvasId]||{},u.payload)))));case ActionTypes$1.REMOVE_WINDOW:return omit$1(o,[u.windowId]);default:return o}};function ownKeys$r(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$r(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$r(Object(u),!0).forEach(function(d){_defineProperty$x(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$r(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$x(l,o,u){return(o=_toPropertyKey$1C(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1C(l){var o=_toPrimitive$1C(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1C(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _toConsumableArray$e(l){return _arrayWithoutHoles$e(l)||_iterableToArray$e(l)||_unsupportedIterableToArray$h(l)||_nonIterableSpread$e()}function _nonIterableSpread$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
123In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$h(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$h(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$h(l,o):void 0}}function _iterableToArray$e(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$e(l){if(Array.isArray(l))return _arrayLikeToArray$h(l)}function _arrayLikeToArray$h(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}var catalogReducer=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;switch(u.type){case ActionTypes$1.ADD_RESOURCE:return o.some(function(d){return d.manifestId===u.manifestId})?o:[_objectSpread$r({manifestId:u.manifestId},u.payload)].concat(_toConsumableArray$e(o));case ActionTypes$1.ADD_WINDOW:return o.some(function(d){return d.manifestId===u.window.manifestId})?o:[{manifestId:u.window.manifestId}].concat(_toConsumableArray$e(o));case ActionTypes$1.UPDATE_WINDOW:return!u.payload.manifestId||o.some(function(d){return d.manifestId===u.payload.manifestId})?o:[{manifestId:u.payload.manifestId}].concat(_toConsumableArray$e(o));case ActionTypes$1.REMOVE_RESOURCE:return o.filter(function(d){return d.manifestId!==u.manifestId});case ActionTypes$1.IMPORT_CONFIG:return u.config.catalog||[];case ActionTypes$1.IMPORT_MIRADOR_STATE:return u.state.catalog||[];default:return o}};function ownKeys$q(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$q(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$q(Object(u),!0).forEach(function(d){_defineProperty$w(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$q(Object(u)).forEac
123h(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$w(l,o,u){return(o=_toPropertyKey$1B(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1B(l){var o=_toPrimitive$1B(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1B(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function createRootReducer(l){return combineReducers(_objectSpread$q({accessTokens:accessTokensReducer,annotations:annotationsReducer,auth:authReducer,catalog:catalogReducer,companionWindows:companionWindowsReducer,config:configReducer,elasticLayout:elasticLayoutReducer,errors:errorsReducer,infoResponses:infoResponsesReducer,layers:layersReducer,manifests:manifestsReducer,searches:searchesReducer,viewers:viewersReducer,windows:windowsReducer,workspace:workspaceReducer},l))}var done=function(o){return{done:!0,value:o}},qEnd={};function safeName(l){return channel$1(l)?"channel":stringableFunc(l)?String(l):func(l)?l.name:String(l)}function fsmIterator(l,o,u){var d,f,p,h=o;function v(g,m){if(h===qEnd)return done(g);if(m&&!f)throw h=qEnd,m;d&&d(g);var y=m?l[f](m):l[h]();return h=y.nextState,p=y.effect,d=y.stateUpdater,f=y.errorState,h===qEnd?done(g):p}return makeIterator(v,function(g){return v(null,g)},u)}function takeEvery$1(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];var p={done:!1,value:take(l)},h=function(y){return{done:!1,value:fork.apply(void 0,[o].concat(d,[y]))}},v,g=function(y){return v=y};return fsmIterator({q1:function(){return{nextState:"q2",effect:p,stateUpdater:g}},q2:function(){return{nextState:"q1",effect:h(v)}}},"q1","takeEvery("+safeName(l)+", "+o.name+")")}function takeLatest$1(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];var p={done:!1,value:take(l)},h=function(E){return{done:!1,value:fork.apply(void 0,[o].concat(d,[E]))}},v=function(E){return{done:!1,value:cancel(E)}},g,m,y=function(E){return g=E},b=function(E){return m=E};return fsmIterator({q1:function(){return{nextState:"q2",effect:p,stateUpdater:b}},q2:function(){return g?{nextState:"q3",effect:v(g)}:{nextState:"q1",effect:h(m),stateUpdater:y}},q3:function(){return{nextState:"q1",effect:h(m),stateUpdater:y}}},"q1","takeLatest("+safeName(l)+", "+o.name+")")}function takeLeading$1(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];var p={done:!1,value:take(l)},h=function(y){return{done:!1,value:call.apply(void 0,[o].concat(d,[y]))}},v,g=function(y){return v=y};return fsmIterator({q1:function(){return{nextState:"q2",effect:p,stateUpdater:g}},q2:function(){return{nextState:"q1",effect:h(v)}}},"q1","takeLeading("+safeName(l)+", "+o.name+")")}function throttle$1(l,o,u){for(var d=arguments.length,f=new Array(d>3?d-3:0),p=3;p<d;p++)f[p-3]=arguments[p];var h,v,g=function(){return{done:!1,value:take(v)}},m=function(C){return{done:!1,value:fork.apply(void 0,[u].concat(f,[C]))}},y={done:!1,value:delay(l)},b=function(C){return h=C},w=function(C){return v=C},E=!channel$1(o);return E||w(o),fsmIterator({q1:function(){var C={done:!1,value:actionChannel(o,sliding(1))};return{nextState:"q2",effect:C,stateUpdater:w}},q2:function(){return{nextState:"q3",effect:g(),stateUpdater:b}},q3:function(){return{nextState:"q4",effect:m(h)}},q4:function(){return{nextState:"q2",effect:y}}},E?"q1":"q2","throttle("+safeName(o)+", "+u.name+")")}function retry$1(l,o,u){for(var d=l,f=arguments.length,p=new Array(f>3?f-3:0),h=3;h<f;h++)p[h-3]=arguments[h];var v={done:!1,value:call.apply(void 0,[u].concat(p))},g={done:!1,value:delay(o)};return fsmIterator({q1:function(){return{nextState:"q2",effect:v,errorState:"q10"}},q2:function(){return{nextState:qEnd}},q10:function(y){if(d-=1,d<=0)throw y;return{nextState:"q1",effect:g}}},"q1","retry("+u.name+")")}function debounceHelper(l,o,u){for(var d=arguments.length,f=new Array(d>3?d-3:0),p=3;p<d;p++)f[p-3]=arguments[p];var h,v,g={done:!1,value:take(o)},m={done:!1,value:race({action:take(o),debounce:delay(l)})},y=function(C){return{done:!1,value:fork.apply(void 0,[u].concat(f,[C])
123)}},b=function(C){return{done:!1,value:C}},w=function(C){return h=C},E=function(C){return v=C};return fsmIterator({q1:function(){return{nextState:"q2",effect:g,stateUpdater:w}},q2:function(){return{nextState:"q3",effect:m,stateUpdater:E}},q3:function(){return v.debounce?{nextState:"q1",effect:y(h)}:{nextState:"q2",effect:b(v.action),stateUpdater:w}}},"q1","debounce("+safeName(o)+", "+u.name+")")}function takeEvery(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];return fork.apply(void 0,[takeEvery$1,l,o].concat(d))}function takeLatest(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];return fork.apply(void 0,[takeLatest$1,l,o].concat(d))}function takeLeading(l,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];return fork.apply(void 0,[takeLeading$1,l,o].concat(d))}function throttle$2(l,o,u){for(var d=arguments.length,f=new Array(d>3?d-3:0),p=3;p<d;p++)f[p-3]=arguments[p];return fork.apply(void 0,[throttle$1,l,o,u].concat(f))}function retry(l,o,u){for(var d=arguments.length,f=new Array(d>3?d-3:0),p=3;p<d;p++)f[p-3]=arguments[p];return call.apply(void 0,[retry$1,l,o,u].concat(f))}function debounce(l,o,u){for(var d=arguments.length,f=new Array(d>3?d-3:0),p=3;p<d;p++)f[p-3]=arguments[p];return fork.apply(void 0,[debounceHelper,l,o,u].concat(f))}const reduxSagaEffects_esm=Object.freeze(Object.defineProperty({__proto__:null,actionChannel,all,apply,call,cancel,cancelled,cps,debounce,delay,effectTypes,flush:flush$1,fork,getContext,join,put,putResolve,race,retry,select,setContext,spawn,take,takeEvery,takeLatest,takeLeading,takeMaybe,throttle:throttle$2},Symbol.toStringTag,{value:"Module"}));function _regeneratorValues(l){if(l!=null){var o=l[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],u=0;if(o)return o.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length))return{next:function(){return l&&u>=l.length&&(l=void 0),{value:l&&l[u++],done:!l}}}}throw new TypeError(typeof l+" is not iterable")}var _marked$7=_regenerator$5().m(getAccessTokenService),_marked2$3=_regenerator$5().m(fetchManifests),_marked3$3=_regenerator$5().m(iiifSaga);function ownKeys$p(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$p(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$p(Object(u),!0).forEach(function(d){_defineProperty$v(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$p(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$v(l,o,u){return(o=_toPropertyKey$1A(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1A(l){var o=_toPrimitive$1A(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1A(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _regenerator$5(){var l,o,u=typeof Symbol=="function"?Symbol:{},d=u.iterator||"@@iterator",f=u.toStringTag||"@@toStringTag";function p(E,P,C,T){var O=P&&P.prototype instanceof v?P:v,x=Object.create(O.prototype);return _regeneratorDefine2$5(x,"_invoke",(function(A,D,j){var M,N,q,z=0,H=j||[],U=!1,F={p:0,n:0,v:l,a:B,f:B.bind(l,4),d:function(Q,K){return M=Q,N=0,q=l,F.n=K,h}};function B(G,Q){for(N=G,q=Q,o=0;!U&&z&&!K&&o<H.length;o++){var K,Z=H[o],te=F.p,oe=Z[2];G>3?(K=oe===Q)&&(q=Z[(N=Z[4])?5:(N=3,3)],Z[4]=Z[5]=l):Z[0]<=te&&((K=G<2&&te<Z[1])?(N=0,F.v=Q,F.n=Z[1]):te<oe&&(K=G<3||Z[0]>Q||Q>oe)&&(Z[4]=G,Z[5]=Q,F.n=oe,N=0))}if(K||G>1)return h;throw U=!0,Q}return function(G,Q,K){if(z>1)throw TypeError("Generator is already running");for(U&&Q===1&&B(Q,K),N=Q,q=K;(o=N<2?l:q)||!U;){M||(N?N<3?(N>1&&(F.n=-1),B(N,q)):F.n=q:F.v=q);try{if(z=2,M){if(N||(G="next"),o=M[G]){if(!(o=o.call(M,q)))throw TypeError("iterator result is not an object");
123if(!o.done)return o;q=o.value,N<2&&(N=0)}else N===1&&(o=M.return)&&o.call(M),N<2&&(q=TypeError("The iterator does not provide a '"+G+"' method"),N=1);M=l}else if((o=(U=F.n<0)?q:A.call(D,F))!==h)break}catch(Z){M=l,N=1,q=Z}finally{z=1}}return{value:o,done:U}}})(E,C,T),!0),x}var h={};function v(){}function g(){}function m(){}o=Object.getPrototypeOf;var y=[][d]?o(o([][d]())):(_regeneratorDefine2$5(o={},d,function(){return this}),o),b=m.prototype=v.prototype=Object.create(y);function w(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,m):(E.__proto__=m,_regeneratorDefine2$5(E,f,"GeneratorFunction")),E.prototype=Object.create(b),E}return g.prototype=m,_regeneratorDefine2$5(b,"constructor",m),_regeneratorDefine2$5(m,"constructor",g),g.displayName="GeneratorFunction",_regeneratorDefine2$5(m,f,"GeneratorFunction"),_regeneratorDefine2$5(b),_regeneratorDefine2$5(b,f,"Generator"),_regeneratorDefine2$5(b,d,function(){return this}),_regeneratorDefine2$5(b,"toString",function(){return"[object Generator]"}),(_regenerator$5=function(){return{w:p,m:w}})()}function _regeneratorDefine2$5(l,o,u,d){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}_regeneratorDefine2$5=function(h,v,g,m){function y(b,w){_regeneratorDefine2$5(h,b,function(E){return this._invoke(b,w,E)})}v?f?f(h,v,{value:g,enumerable:!m,configurable:!m,writable:!m}):h[v]=g:(y("next",0),y("throw",1),y("return",2))},_regeneratorDefine2$5(l,o,u,d)}function fetchWrapper(l,o,u){var d=u.success,f=u.degraded,p=u.failure;return fetch$1(l,o).then(function(h){return h.json().then(function(v){return h.status===401?(f||d)({json:v,response:h}):h.ok?d({json:v,response:h}):p({error:h.statusText,json:v,response:h})}).catch(function(v){return p({error:v,response:h})})}).catch(function(h){return p({error:h})})}function fetchIiifResource(l,o,u){var d=u.success,f=u.degraded,p=u.failure;return _regenerator$5().m(function h(){var v,g,m,y,b,w,E,P;return _regenerator$5().w(function(C){for(;;)switch(C.p=C.n){case 0:return C.n=1,select(getRequestsConfig$1);case 1:return v=C.v,g=v.preprocessors,m=g===void 0?[]:g,y=v.postprocessors,b=y===void 0?[]:y,C.p=2,w=m.reduce(function(T,O){return O(l,T)||T},o),C.n=3,call(fetchWrapper,l,w,{degraded:f,failure:p,success:d});case 3:return E=C.v,E=b.reduce(function(T,O){return O(l,T)||T},E),C.a(2,E);case 4:return C.p=4,P=C.v,C.a(2,p({error:P}))}},h,null,[[2,4]])})()}
123function fetchIiifResourceWithAuth(l,o,u,d){var f=d.degraded,p=d.failure,h=d.success;return _regenerator$5().m(function v(){var g,m,y,b,w,E,P,C,T;return _regenerator$5().w(function(O){for(;;)switch(O.n){case 0:if(g=_objectSpread$p({},u),!o){O.n=2;break}return O.n=1,call(getAccessTokenService,o);case 1:y=O.v,m=y&&y.id,y&&y.json&&(g.headers=_objectSpread$p({Authorization:"Bearer ".concat(y.json.accessToken)},u.headers));case 2:return O.n=3,call(fetchIiifResource,l,g,{failure:function(A){return A},success:function(A){return A}});case 3:if(b=O.v,w=b.error,E=b.json,P=b.response,!w){O.n=5;break}return O.n=4,put(p({error:w,json:E,response:P,tokenServiceId:m}));case 4:return O.a(2);case 5:if(C=E["@id"]||E.id,!P.ok){O.n=8;break}if(normalizeUrl(C,{stripAuthentication:!1})!==normalizeUrl(l.replace(/info\.json$/,""),{stripAuthentication:!1})){O.n=7;break}return O.n=6,put(h({json:E,response:P,tokenServiceId:m}));case 6:return O.a(2);case 7:O.n=10;break;case 8:if(P.status===401){O.n=10;break}return O.n=9,put(p({error:w,json:E,response:P,tokenServiceId:m}));case 9:return O.a(2);case 10:return O.n=11,call(getAccessTokenService,E);case 11:if(T=O.v,!(T&&T.id!==m)){O.n=13;break}
123return O.n=12,call(fetchIiifResourceWithAuth,l,E,u,{degraded:f,failure:p,success:h});case 12:return O.a(2);case 13:return O.n=14,put((f||h)({json:E,response:P,tokenServiceId:m}));case 14:return O.a(2)}},v)})()}function fetchManifest$1(l){var o=l.manifestId;return _regenerator$5().m(function u(){var d,f;return _regenerator$5().w(function(p){for(;;)switch(p.n){case 0:return d={failure:function(v){var g=v.error;return v.json,v.response,receiveManifestFailure$1(o,typeof g=="object"?String(g):g)},success:function(v){var g=v.json;return v.response,receiveManifest$1(o,g)}},p.n=1,call(fetchIiifResource,o,{},d);case 1:return f=p.v,p.n=2,put(f);case 2:return p.a(2)}},u)})()}function getAccessTokenService(l){var o,u,d,f,p,h,v;return _regenerator$5().w(function(g){for(;;)switch(g.n){case 0:if(o=l&&l.__jsonld?l:_objectSpread$p(_objectSpread$p({},l),{},{options:{}}),u=Utils.getServices(o).filter(function(m){return m.getProfile().match(/http:\/\/iiif.io\/api\/auth\//)}),u.length!==0){g.n=1;break}return g.a(2,void 0);case 1:return g.n=2,select(getAccessTokens$1);case 2:if(d=g.v,d){g.n=3;break}return g.a(2,void 0);case 3:f=0;case 4:if(!(f<u.length)){g.n=6;break}if(p=u[f],h=Utils.getService(p,"http://iiif.io/api/auth/1/token")||Utils.getService(p,"http://iiif.io/api/auth/0/token"),v=h&&d[h.id],!(v&&v.json)){g.n=5;break}return g.a(2,v);case 5:f+=1,g.n=4;break;case 6:return g.a(2,void 0)}},_marked$7)}function fetchInfoResponse$1(l){var o=l.imageResource,u=l.infoId,d=l.windowId;return _regenerator$5().m(function f(){var p,h;return _regenerator$5().w(function(v){for(;;)switch(v.n){case 0:if(p=o,p){v.n=2;break}return v.n=1,select(selectInfoResponse$1,{infoId:u});case 1:p=v.v;case 2:return h={degraded:function(m){var y=m.json,b=m.response,w=m.tokenServiceId;return receiveDegradedInfoResponse$1(u,y,b.ok,w,d)},failure:function(m){var y=m.error;m.json,m.response;var b=m.tokenServiceId;return receiveInfoResponseFailure$1(u,y,b)},success:function(m){var y=m.json,b=m.response,w=m.tokenServiceId;return receiveInfoResponse$1(u,y,b.ok,w)}}
123,v.n=3,call(fetchIiifResourceWithAuth,"".concat(u.replace(/\/$/,""),"/info.json"),p,{},h);case 3:return v.a(2)}},f)})()}function fetchSearchResponse(l){var o=l.windowId,u=l.companionWindowId;l.query;var d=l.searchId;return _regenerator$5().m(function f(){var p,h;return _regenerator$5().w(function(v){for(;;)switch(v.n){case 0:return p={failure:function(m){var y=m.error;return m.json,m.response,receiveSearchFailure$1(o,u,d,y)},success:function(m){var y=m.json;return m.response,receiveSearch$1(o,u,d,y)}},v.n=1,call(fetchIiifResource,d,{},p);case 1:return h=v.v,v.n=2,put(h);case 2:return v.a(2)}},f)})()}function fetchAnnotation(l){var o=l.targetId,u=l.annotationId;return _regenerator$5().m(function d(){var f,p;return _regenerator$5().w(function(h){for(;;)switch(h.n){case 0:return f={failure:function(g){var m=g.error;return g.json,g.response,receiveAnnotationFailure$1(o,u,m)},success:function(g){var m=g.json;return g.response,receiveAnnotation$1(o,u,m)}},h.n=1,call(fetchIiifResource,u,{},f);case 1:return p=h.v,h.n=2,put(p);case 2:return h.a(2)}},d)})()}function fetchResourceManifest(l){var o=l.manifestId,u=l.manifestJson;return _regenerator$5().m(function d(){var f;return _regenerator$5().w(function(p){for(;;)switch(p.n){case 0:if(!u){p.n=2;break}return p.n=1,put(receiveManifest$1(o,u));case 1:return p.a(2);case 2:if(o){p.n=3;break}return p.a(2);case 3:return p.n=4,select(getManifests$1)||{};case 4:if(f=p.v,f[o]){p.n=5;break}return p.d(_regeneratorValues(fetchManifest$1({manifestId:o})),5);case 5:return p.a(2)}},d)})()}function fetchManifests(){var l,o,u,d=arguments;return _regenerator$5().w(function(f){for(;;)switch(f.n){case 0:return f.n=1,select(getManifests$1);case 1:l=f.v,o=0;case 2:if(!(o<d.length)){f.n=4;break}if(u=o<0||d.length<=o?void 0:d[o],l[u]){f.n=3;break}return f.n=3,call(fetchManifest$1,{manifestId:u});case 3:o+=1,f.n=2;break;case 4:return f.a(2)}},_marked2$3)}function iiifSaga(){return _regenerator$5().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,all([takeEvery(ActionTypes$1.REQUEST_MANIFEST,fetchManifest$1),takeEvery(ActionTypes$1.REQUEST_INFO_RESPONSE,fetchInfoResponse$1),takeEvery(ActionTypes$1.REQUEST_SEARCH,fetchSearchResponse),takeEvery(ActionTypes$1.REQUEST_ANNOTATION,fetchAnnotation),takeEvery(ActionTypes$1.ADD_RESOURCE,fetchResourceManifest)]);case 1:return l.a(2)}},_marked3$3)}function _regenerator$4(){var l,o,u=typeof Symbol=="function"?Symbol:{},d=u.iterator||"@@iterator",f=u.toStringTag||"@@toStringTag";function p(E,P,C,T){var O=P&&P.prototype instanceof v?P:v,x=Object.create(O.prototype);return _regeneratorDefine2$4(x,"_invoke",(function(A,D,j){var M,N,q,z=0,H=j||[],U=!1,F={p:0,n:0,v:l,a:B,f:B.bind(l,4),d:function(Q,K){return M=Q,N=0,q=l,F.n=K,h}};function B(G,Q){for(N=G,q=Q,o=0;!U&&z&&!K&&o<H.length;o++){var K,Z=H[o],te=F.p,oe=Z[2];G>3?(K=oe===Q)&&(q=Z[(N=Z[4])?5:(N=3,3)],Z[4]=Z[5]=l):Z[0]<=te&&((K=G<2&&te<Z[1])?(N=0,F.v=Q,F.n=Z[1]):te<oe&&(K=G<3||Z[0]>Q||Q>oe)&&(Z[4]=G,Z[5]=Q,F.n=oe,N=0))}if(K||G>1)return h;throw U=!0,Q}return function(G,Q,K){if(z>1)throw TypeError("Generator is already running");for(U&&Q===1&&B(Q,K),N=Q,q=K;(o=N<2?l:q)||!U;){M||(N?N<3?(N>1&&(F.n=-1),B(N,q)):F.n=q:F.v=q);try{if(z=2,M){if(N||(G="next"),o=M[G]){if(!(o=o.call(M,q)))throw TypeError("iterator result is not an object");if(!o.done)return o;q=o.value,N<2&&(N=0)}else N===1&&(o=M.return)&&o.call(M),N<2&&(q=TypeError("The iterator does not provide a '"+G+"' method"),N=1);M=l}else if((o=(U=F.n<0)?q:A.call(D,F))!==h)break}catch(Z){M=l,N=1,q=Z}finally{z=1}}return{value:o,done:U}}})(E,C,T),!0),x}var h={};function v(){}function g(){}function m(){}o=Object.getPrototypeOf;var y=[][d]?o(o([][d]())):(_regeneratorDefine2$4(o={},d,function(){return this}),o),b=m.prototype=v.prototype=Object.create(y);function w(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,m):(E.__proto__=m,_regeneratorDefine2$4(E,f,"GeneratorFunction")),E.prototype=Object.create(b),E}return g.prototype=m,_regeneratorDefine2$4(b,"constructor",m),_regeneratorDefine2$4(m,"constructor",g),g.displayName="GeneratorFunction",_regeneratorDefine2$4(m,f,"GeneratorFunction"),_regeneratorDefine2$4(b),_regeneratorDefine2$4(b,f,"Generator"),_regeneratorDefine2$4(b,d,function(){return this}),_regeneratorDefine2$4(b,"toString",function(){return"[object Generator]"}),(_regenerator$4=function(){return{w:p,m:w}})()}function _regeneratorDefine2$4(l,o,u,d){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}_regeneratorDefine2$4=function(h,v,g,m){function y(b,w){_regeneratorDefine2$4(h,b,function(E){return this._invoke(b,w,E)})}v?f?f(h,v,{value:g,enumerable:!m,configurable:!m,writable:!m}):h[v]=g:(y("next",0),y("throw",1),y("return",2))},_regeneratorDefine2$4(l,o,u,d)}var _marked$6=_regenerator$4().m(fetchWindowManifest),_marked2$2=_regenerator$4().m(setCanvasOnNewSequence),_marked3$2=_regenerator$4().m(fetchCollectionManifests$1),_marked4=_regenerator$4().m(setWindowStartingCanvas),_marked5=_regenerator$4().m(setWindowDefaultSearchQuery),_marked6=_regenerator$4().m(determineAndShowCollectionDialog),_marked7=_regenerator$4().m(windowsSaga);function _toConsumableArray$d(l){return _arrayWithoutHoles$d(l)||_iterableToArray$d(l)||_unsupportedIterableToArray$g(l)||_nonIterableSpread$d()}function _nonIterableSpread$d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
124In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$g(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$g(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$g(l,o):void 0}}function _iterableToArray$d(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$d(l){if(Array.isArray(l))return _arrayLikeToArray$g(l)}function _arrayLikeToArray$g(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function fetchWindowManifest(l){var o,u,d,f;return _regenerator$4().w(function(p){for(;;)switch(p.n){case 0:if(o=l.payload||l.window,u=o.collectionPath,d=o.id,f=o.manifestId,f){p.n=1;break}return p.a(2);case 1:if(!l.manifest){p.n=3;break}return p.n=2,put(receiveManifest$1(f,l.manifest));case 2:p.n=4;break;case 3:return p.n=4,call.apply(void 0,[fetchManifests,f].concat(_toConsumableArray$d(u||[])));case 4:return p.n=5,call(setWindowStartingCanvas,l);case 5:return p.n=6,call(setWindowDefaultSearchQuery,l);case 6:if(u){p.n=7;break}return p.n=7,call(setCollectionPath,{manifestId:f,windowId:l.id||l.window.id});case 7:return p.n=8,call(determineAndShowCollectionDialog,f,d);case 8:return p.a(2)}},_marked$6)}function setCanvasOnNewSequence(l){var o,u,d;return _regenerator$4().w(function(f){for(;;)switch(f.n){case 0:if(o=l.id,!(!l||!l.payload||!l.payload.sequenceId)){f.n=1;break}return f.a(2);case 1:return f.n=2,select(getCanvases$1,{windowId:o});case 2:if(u=f.v,!(!u||!u[0]||!u[0].id)){f.n=3;break}return f.a(2);case 3:return f.n=4,call(setCanvas$1,o,u[0].id);case 4:return d=f.v,f.n=5,put(d);case 5:return f.a(2)}},_marked2$2)}function setCollectionPath(l){var o=l.manifestId,u=l.windowId;return _regenerator$4().m(function d(){var f,p,h;return _regenerator$4().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,select(getManifestoInstance$1,{manifestId:o});case 1:if(f=v.v,!f){v.n=2;break}if(p=f.getProperty("partOf"),h=Array.isArray(p)?p[0]:p,!(h&&h.id)){v.
124n=2;break}return v.n=2,put(updateWindow$1(u,{collectionPath:[h.id]}));case 2:return v.a(2)}},d)})()}function fetchCollectionManifests$1(l){var o;return _regenerator$4().w(function(u){for(;;)switch(u.n){case 0:if(o=l.payload.collectionPath,o){u.n=1;break}return u.a(2);case 1:return u.n=2,call.apply(void 0,[fetchManifests].concat(_toConsumableArray$d(o)));case 2:return u.a(2)}},_marked3$2)}function setWindowStartingCanvas(l){var o,u,d,f,p,h,v,g,m,y;return _regenerator$4().w(function(b){for(;;)switch(b.n){case 0:if(o=l.payload||l.window,u=o.canvasId,d=o.canvasIndex,f=o.manifestId,p=l.id||l.window.id,!u){b.n=3;break}return b.n=1,call(setCanvas$1,p,u,null,{preserveViewport:!!l.payload});case 1:return h=b.v,b.n=2,put(h);case 2:b.n=6;break;case 3:return b.n=4,select(getManifestoInstance$1,{manifestId:f});case 4:if(v=b.v,!v){b.n=6;break}if(g=new MiradorManifest$1(v),m=g.startCanvas||g.canvasAt(d||0)||g.canvasAt(0),!m){b.n=6;break}return b.n=5,call(setCanvas$1,p,m.id);case 5:return y=b.v,b.n=6,put(y);case 6:return b.a(2)}},_marked4)}function setWindowDefaultSearchQuery(l){var o,u,d,f,p,h,v;return _regenerator$4().w(function(g){for(;;)switch(g.n){case 0:if(!(!l.window||!l.window.defaultSearchQuery)){g.n=1;break}return g.a(2);case 1:return o=l.window,u=o.id,d=o.defaultSearchQuery,g.n=2,select(getManifestSearchService$1,{windowId:u});case 2:return f=g.v,g.n=3,select(getCompanionWindowIdsForPosition$1,{position:"left",windowId:u});case 3:if(p=g.v,h=p[0],!(f&&h)){g.n=4;break}return v=f&&"".concat(f.id,"?q=").concat(d),g.n=4,put(fetchSearch$1(u,h,v,d));case 4:return g.a(2)}},_marked5)}function getAnnotationsBySearch(l,o){var u=o.canvasIds,d=o.companionWindowIds,f=o.windowId,p=d.reduce(function(h,v){var g=getSearchAnnotationsForCompanionWindow$1(l,{companionWindowId:v,windowId:f}),m=g.resources,y=m.find(function(b){return u.includes(b.targetId)});return y&&(h[v]=[y.id]),h},{});return p}function setCurrentAnnotationsOnCurrentCanvas(l){l.annotationId;var o=l.windowId,u=l.visibleCanvases;return _regenerator$4().m(function d(){var f,p,h;return _regenerator$4().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,select(getSearchForWindow$1,{windowId:o});case 1:if(f=v.v,p=Object.keys(f||{}),p.length!==0){v.n=2;break}return v.a(2);case 2:return v.n=3,select(getAnnotationsBySearch,{canvasIds:u,companionWindowIds:p,windowId:o});case 3:return h=v.v,v.n=4,all(Object.keys(h).map(function(g){return put(setContentSearchCurrentAnnotation$1(o,g,h[g]))}));case 4:if(!(Object.values(h).length>0)){v.n=5;break}return v.n=5,put(selectAnnotation$1(o,Object.values(h)[0][0]));case 5:return v.a(2)}},d)})()}function panToFocusedWindow(l){var o=l.pan,u=l.windowId;return _regenerator$4().m(function d(){var f,p,h,v,g,m,y,b,w,E;return _regenerator$4().w(function(P){for(;;)switch(P.n){case 0:if(o){P.n=1;break}return P.a(2);case 1:return P.n=2,select(getElasticLayout$1);case 2:return f=P.v,p=f[u]||{},h=p.x,v=p.y,g=p.width,m=p.height,P.n=3,select(getWorkspace$1);case 3:return y=P.v,b=y.viewportPosition,w=b.width,E=b.height,P.n=4,put(setWorkspaceViewportPosition$1({x:h+g/2-w/2,y:v+m/2-E/2}));case 4:return P.a(2)}},d)})()}function updateVisibleCanvases(l){var o=l.windowId;return _regenerator$4().m(function u(){var d,f,p;return _regenerator$4().w(function(h){for(;;)switch(h.n){case 0:return h.n=1,select(getWindow$2,{windowId:o});case 1:return d=h.v,f=d.canvasId,h.n=2,select(getCanvasGrouping$1,{canvasId:f,windowId:o});case 2:return p=h.v,h.n=3,call(fetchInfoResponses,{visibleCanvases:p.map(function(v){return v.id}),windowId:o});case 3:return h.n=4,put(updateWindow$1(o,{canvasId:p[0].id,visibleCanvases:(p||[]).map(function(v){return v.id})}));case 4:return h.a(2)}},u)})()}function setCanvasOfFirstSearchResult(l){var o=l.companionWindowId,u=l.windowId;return _regenerator$4().m(function d(){var f,p,h,v;return _regenerator$4().w(function(g){for(;;)switch(g.n){case 0:return g.n=1,select(getWindowConfig$1,{windowId:u});case 1:if(f=g.v,p=f.switchCanvasOnSearch,p){g.n=2;break}return g.a(2);case 2:return g.n=3,select(getSelectedContentSearchAnnotationIds$1,{companionWindowId:o,windowId:u});case 3:if(h=g.v,h.length===0){g.n=4;break}return g.a(2);case 4:return g.n=5,select(getSortedSearchAnnotationsForCompanionWindow$1,{companionWindowId:o,windowId:u});case 5:if(v=g.v,!(!v||v.length===0)){g.n=6;break}return g.a(2);case 6:return g.n=7,put(selectAnnotation$1(u,v[0].id));case 7:return g.a(2)}},d)})()}function setCanvasforSelectedAnnotation(l){var o=l.annotationId,u=l.windowId;return _regenerator$4().m(function d(){var f,p,h;return _regenerator$4().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,select(getVisibleCanvasIds$1,{windowId:u});case 1:return f=v.v,v.n=2,select(getCanvasForAnnotation$1,{annotationId:o,windowId:u});case 2:if(p=v.v,!(!p||f.includes(p.id))){v.n=3;break}return v.a(2);case 3:return v.n=4,call(setCanvas$1,u,p.id);case 4:return h=v.v,v.n=5,put(h);case 5:return v.a(2)}},d)})()}
vendor: 5,633 bytes, line 124
124function fetchInfoResponses(l){var o=l.visibleCanvases,u=l.windowId;return _regenerator$4().m(function d(){var f,p,h;return _regenerator$4().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,select(getCanvases$1,{windowId:u});case 1:return f=v.v,v.n=2,select(selectInfoResponses$1);case 2:return p=v.v,h=(f||[]).filter(function(g){return o.includes(g.id)}),v.n=3,all(h.map(function(g){var m=new MiradorCanvas$2(g);return all(m.iiifImageResources.map(function(y){return!p[y.getServices()[0].id]&&put(fetchInfoResponse$2({imageResource:y,windowId:u}))}).filter(Boolean))}));case 3:return v.a(2)}},d)})()}function determineAndShowCollectionDialog(l,o){var u;return _regenerator$4().w(function(d){for(;;)switch(d.n){case 0:return d.n=1,select(getManifestoInstance$1,{manifestId:l});case 1:if(u=d.v,!(u&&u.isCollection())){d.n=2;break}return d.n=2,put(showCollectionDialog$1(l,[],o));case 2:return d.a(2)}},_marked6)}function windowsSaga(){return _regenerator$4().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,all([takeEvery(ActionTypes$1.ADD_WINDOW,fetchWindowManifest),takeEvery(ActionTypes$1.UPDATE_WINDOW,fetchWindowManifest),takeEvery(ActionTypes$1.UPDATE_WINDOW,setCanvasOnNewSequence),takeEvery(ActionTypes$1.SET_CANVAS,setCurrentAnnotationsOnCurrentCanvas),takeEvery(ActionTypes$1.SET_CANVAS,fetchInfoResponses),takeEvery(ActionTypes$1.UPDATE_COMPANION_WINDOW,fetchCollectionManifests$1),takeEvery(ActionTypes$1.SET_WINDOW_VIEW_TYPE,updateVisibleCanvases),takeEvery(ActionTypes$1.RECEIVE_SEARCH,setCanvasOfFirstSearchResult),takeEvery(ActionTypes$1.SELECT_ANNOTATION,setCanvasforSelectedAnnotation),takeEvery(ActionTypes$1.FOCUS_WINDOW,panToFocusedWindow),takeEvery(ActionTypes$1.SHIFT_BOOK_VIEW,updateVisibleCanvases)]);case 1:return l.a(2)}},_marked7)}function ownKeys$o(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$o(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$o(Object(u),!0).forEach(function(d){_defineProperty$u(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$o(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$u(l,o,u){return(o=_toPropertyKey$1z(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1z(l){var o=_toPrimitive$1z(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1z(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _regenerator$3(){var l,o,u=typeof Symbol=="function"?Symbol:{},d=u.iterator||"@@iterator",f=u.toStringTag||"@@toStringTag";function p(E,P,C,T){var O=P&&P.prototype instanceof v?P:v,x=Object.create(O.prototype);return _regeneratorDefine2$3(x,"_invoke",(function(A,D,j){var M,N,q,z=0,H=j||[],U=!1,F={p:0,n:0,v:l,a:B,f:B.bind(l,4),d:function(Q,K){return M=Q,N=0,q=l,F.n=K,h}};function B(G,Q){for(N=G,q=Q,o=0;!U&&z&&!K&&o<H.length;o++){var K,Z=H[o],te=F.p,oe=Z[2];G>3?(K=oe===Q)&&(q=Z[(N=Z[4])?5:(N=3,3)],Z[4]=Z[5]=l):Z[0]<=te&&((K=G<2&&te<Z[1])?(N=0,F.v=Q,F.n=Z[1]):te<oe&&(K=G<3||Z[0]>Q||Q>oe)&&(Z[4]=G,Z[5]=Q,F.n=oe,N=0))}if(K||G>1)return h;throw U=!0,Q}return function(G,Q,K){if(z>1)throw TypeError("Generator is already running");for(U&&Q===1&&B(Q,K),N=Q,q=K;(o=N<2?l:q)||!U;){M||(N?N<3?(N>1&&(F.n=-1),B(N,q)):F.n=q:F.v=q);try{if(z=2,M){if(N||(G="next"),o=M[G]){if(!(o=o.call(M,q)))throw TypeError("iterator result is not an object");if(!o.done)return o;q=o.value,N<2&&(N=0)}else N===1&&(o=M.return)&&o.call(M),N<2&&(q=TypeError("The iterator does not provide a '"+G+"' method"),N=1);M=l}else if((o=(U=F.n<0)?q:A.call(D,F))!==h)break}catch(Z){M=l,N=1,q=Z}finally{z=1}}return{value:o,done:U}}})(E,C,T),!0),x}var h={};function v(){}function g(){}function m(){}o=Object.getPrototypeOf;var y=[][d]?o(o([][d]())):(_regeneratorDefine2$3(o={},d,function(){return this}),o),b=m.prototype=v.prototype=Object.create(y);function w(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,m):(E.__proto__=m,_regeneratorDefine2$3(E,f,"GeneratorFunction")),E.prototype=Object.create(b),E}return g.prototype=m,_regeneratorDefine2$3(b,"constructor",m),_regeneratorDefine2$3(m,"constructor",g),g.displayName="GeneratorFunction",_regeneratorDefine2$3(m,f,"GeneratorFunction"),_regeneratorDefine2$3(b),_regeneratorDefine2$3(b,f,"Generator"),_regeneratorDefine2$3(b,d,function(){return this}),_regeneratorDefine2$3(b,"toString",function(){return"[object Generator]"}),(_regenerator$3=function(){return{w:p,m:w}})()}function _regeneratorDefine2$3(l,o,u,d){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}_regeneratorDefine2$3=function(h,v,g,m){function y(b,w){_regeneratorDefine2$3(h,b,function(E){return this._invoke(b,w,E)})}v?f?f(h,v,{value:g,enumerable:!m,configurable:!m,writable:!m}):h[v]=g:(y("next",0),y("throw",1),y("return",2))},_regeneratorDefine2$3(l,o,u,d)}var _marked$5=_regenerator$3().m(importState),_marked2$1=_regenerator$3().m(fetchCollectionManifests),_marked3$1=_regenerator$3().m(appSaga$1);function _slicedToArray$5(l,o){return _arrayWithHoles$5(l)||_iterableToArrayLimit$5(l,o)||_unsupportedIterableToArray$f(l,o)||_nonIterableRest$5()}function _nonIterableRest$5(){throw new TypeError(`Invalid attempt to de
124structure non-iterable instance.
125In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$5(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$5(l){if(Array.isArray(l))return l}function _toConsumableArray$c(l){return _arrayWithoutHoles$c(l)||_iterableToArray$c(l)||_unsupportedIterableToArray$f(l)||_nonIterableSpread$c()}function _nonIterableSpread$c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
126In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$f(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$f(l,o):void 0}}function _iterableToArray$c(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$c(l){if(Array.isArray(l))return _arrayLikeToArray$f(l)}function _arrayLikeToArray$f(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function importState(l){return _regenerator$3().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,all([].concat(_toConsumableArray$c(Object.entries(l.state.windows||{}).map(function(u){var d=_slicedToArray$5(u,2);d[0];var f=d[1];return call(fetchWindowManifest,{id:f.id,payload:f})})),_toConsumableArray$c(Object.entries(l.state.manifests||{}).filter(function(u){var d=_slicedToArray$5(u,2);d[0];var f=d[1];return!f.json}).map(function(u){var d=_slicedToArray$5(u,2);d[0];var f=d[1];return call(fetchManifests,f.id)}))));case 1:return o.a(2)}},_marked$5)}function importConfig$1(l){var o=l.config,u=o.thumbnailNavigation,d=o.windows;return _regenerator$3().m(function f(){var p;return _regenerator$3().w(function(h){for(;;)switch(h.n){case 0:if(!(!d||d.length===0)){h.n=1;break}return h.a(2);case 1:return h.n=2,all(d.map(function(v){var g="window-".concat(v4()),m=v.manifestId||v.loadedManifest;return call(addWindow$1,_objectSpread$o({id:g,manifestId:m,thumbnailNavigationPosition:u&&u.defaultPosition},v))}));case 2:return p=h.v,h.n=3,all(p.map(function(v){return put(v)}));case 3:return h.a(2)}},f)})()}function fetchCollectionManifests(l){var o,u;return _regenerator$3().w(function(d){for(;;)switch(d.n){case 0:return o=l.collectionPath,u=l.manifestId,d.n=1,call.apply(void 0,[fetchManifests,u].concat(_toConsumableArray$c(o)));case 1:return d.a(2)}},_marked2$1)}function appSaga$1(){return _regenerator$3().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,all([takeEvery(ActionTypes$1.IMPORT_MIRADOR_STATE,importState),takeEvery(ActionTypes$1.IMPORT_CONFIG,importConfig$1),takeEvery(ActionTypes$1.SHOW_COLLECTION_DIALOG,fetchCollectionManifests)]);case 1:return l.a(2)}},_marked3$1)}var _marked$4=_regenerator$2().m(appSaga);function _regenerator$2(){var l,o,u=typeof Symbol=="function"?Symbol:{},d=u.iterator||"@@iterator",f=u.toStringTag||"@@toStringTag";function p(E,P,C,T){var O=P&&P.prototype instanceof v?P:v,x=Object.create(O.prototype);return _regeneratorDefine2$2(x,"_invoke",(function(A,D,j){var M,N,q,z=0,H=j||[],U=!1,F={p:0,n:0,v:l,a:B,f:B.bind(l,4),d:function(Q,K){return M=Q,N=0,q=l,F.n=K,h}};function B(G,Q){for(N=G,q=Q,o=0;!U&&z&&!K&&o<H.length;o++){var K,Z=H[o],te=F.p,oe=Z[2];G>3?(K=oe===Q)&&(q=Z[(N=Z[4])?5:(N=3,3)],Z[4]=Z[5]=l):Z[0]<=te&&((K=G<2&&te<Z[1])?(N=0,F.v=Q,F.n=Z[1]):te<oe&&(K=G<3||Z[0]>Q||Q>oe)&&(Z[4]=G,Z[5]=Q,F.n=oe,N=0))}if(K||G>1)return h;throw U=!0,Q}return function(G,Q,K){if(z>1)throw TypeError("Generator is already running");for(U&&Q===1&&B(Q,K),N=Q,q=K;(o=N<2?l:q)||!U;){M||(N?N<3?(N>1&&(F.n=-1),B(N,q)):F.n=q:F.v=q);try{if(z=2,M){if(N||(G="next"),o=M[G]){if(!(o=o.call(M,q)))throw TypeError("iterator result is not an object");
126if(!o.done)return o;q=o.value,N<2&&(N=0)}else N===1&&(o=M.return)&&o.call(M),N<2&&(q=TypeError("The iterator does not provide a '"+G+"' method"),N=1);M=l}else if((o=(U=F.n<0)?q:A.call(D,F))!==h)break}catch(Z){M=l,N=1,q=Z}finally{z=1}}return{value:o,done:U}}})(E,C,T),!0),x}var h={};function v(){}function g(){}function m(){}o=Object.getPrototypeOf;var y=[][d]?o(o([][d]())):(_regeneratorDefine2$2(o={},d,function(){return this}),o),b=m.prototype=v.prototype=Object.create(y);function w(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,m):(E.__proto__=m,_regeneratorDefine2$2(E,f,"GeneratorFunction")),E.prototype=Object.create(b),E}return g.prototype=m,_regeneratorDefine2$2(b,"constructor",m),_regeneratorDefine2$2(m,"constructor",g),g.displayName="GeneratorFunction",_regeneratorDefine2$2(m,f,"GeneratorFunction"),_regeneratorDefine2$2(b),_regeneratorDefine2$2(b,f,"Generator"),_regeneratorDefine2$2(b,d,function(){return this}),_regeneratorDefine2$2(b,"toString",function(){return"[object Generator]"}),(_regenerator$2=function(){return{w:p,m:w}})()}function _regeneratorDefine2$2(l,o,u,d){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}_regeneratorDefine2$2=function(h,v,g,m){function y(b,w){_regeneratorDefine2$2(h,b,function(E){return this._invoke(b,w,E)})}v?f?f(h,v,{value:g,enumerable:!m,configurable:!m,writable:!m}):h[v]=g:(y("next",0),y("throw",1),y("return",2))},_regeneratorDefine2$2(l,o,u,d)}function _toConsumableArray$b(l){return _arrayWithoutHoles$b(l)||_iterableToArray$b(l)||_unsupportedIterableToArray$e(l)||_nonIterableSpread$b()}function _nonIterableSpread$b(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
127In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$e(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$e(l,o):void 0}}function _iterableToArray$b(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$b(l){if(Array.isArray(l))return _arrayLikeToArray$e(l)}function _arrayLikeToArray$e(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function fetchCanvasAnnotations(l){var o=l.canvasId,u=l.windowId;return _regenerator$2().m(function d(){var f,p,h;return _regenerator$2().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,select(getCanvas$1,{canvasId:o,windowId:u});case 1:return f=v.v,v.n=2,select(getAnnotations$1);case 2:return p=v.v,h=new MiradorCanvas$2(f),v.n=3,all([].concat(_toConsumableArray$b(h.annotationListUris.filter(function(g){return!(p[f.id]&&p[f.id][g])}).map(function(g){return put(requestAnnotation$1(f.id,g))})),_toConsumableArray$b(h.canvasAnnotationPages.filter(function(g){return!(p[f.id]&&p[f.id][g.id])}).map(function(g){return g.items?put(receiveAnnotation$1(f.id,g.id,g)):put(requestAnnotation$1(f.id,g.id))}))));case 3:return v.a(2,v.v)}},d)})()}function fetchAnnotations(l){var o=l.visibleCanvases,u=o===void 0?[]:o,d=l.windowId;return _regenerator$2().m(function f(){return _regenerator$2().w(function(p){for(;;)switch(p.n){case 0:return p.n=1,all(u.map(function(h){return put(requestCanvasAnnotations$1(d,h))}));case 1:return p.a(2,p.v)}},f)})()}function appSaga(){return _regenerator$2().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,all([takeEvery(ActionTypes$1.REQUEST_CANVAS_ANNOTATIONS,fetchCanvasAnnotations),takeEvery(ActionTypes$1.SET_CANVAS,fetchAnnotations)]);case 1:return l.a(2)}},_marked$4)}var _marked$3=_regenerator$1().m(authSaga);function _regenerator$1(){var l,o,u=typeof Symbol=="function"?Symbol:{},d=u.iterator||"@@iterator",f=u.toStringTag||"@@toStringTag";function p(E,P,C,T){var O=P&&P.prototype instanceof v?P:v,x=Object.create(O.prototype);return _regeneratorDefine2$1(x,"_invoke",(function(A,D,j){var M,N,q,z=0,H=j||[],U=!1,F={p:0,n:0,v:l,a:B,f:B.bind(l,4),d:function(Q,K){return M=Q,N=0,q=l,F.n=K,h}};function B(G,Q){for(N=G,q=Q,o=0;!U&&z&&!K&&o<H.length;o++){var K,Z=H[o],te=F.p,oe=Z[2];G>
1273?(K=oe===Q)&&(q=Z[(N=Z[4])?5:(N=3,3)],Z[4]=Z[5]=l):Z[0]<=te&&((K=G<2&&te<Z[1])?(N=0,F.v=Q,F.n=Z[1]):te<oe&&(K=G<3||Z[0]>Q||Q>oe)&&(Z[4]=G,Z[5]=Q,F.n=oe,N=0))}if(K||G>1)return h;throw U=!0,Q}return function(G,Q,K){if(z>1)throw TypeError("Generator is already running");for(U&&Q===1&&B(Q,K),N=Q,q=K;(o=N<2?l:q)||!U;){M||(N?N<3?(N>1&&(F.n=-1),B(N,q)):F.n=q:F.v=q);try{if(z=2,M){if(N||(G="next"),o=M[G]){if(!(o=o.call(M,q)))throw TypeError("iterator result is not an object");if(!o.done)return o;q=o.value,N<2&&(N=0)}else N===1&&(o=M.return)&&o.call(M),N<2&&(q=TypeError("The iterator does not provide a '"+G+"' method"),N=1);M=l}else if((o=(U=F.n<0)?q:A.call(D,F))!==h)break}catch(Z){M=l,N=1,q=Z}finally{z=1}}return{value:o,done:U}}})(E,C,T),!0),x}var h={};function v(){}function g(){}function m(){}o=Object.getPrototypeOf;var y=[][d]?o(o([][d]())):(_regeneratorDefine2$1(o={},d,function(){return this}),o),b=m.prototype=v.prototype=Object.create(y);function w(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,m):(E.__proto__=m,_regeneratorDefine2$1(E,f,"GeneratorFunction")),E.prototype=Object.create(b),E}return g.prototype=m,_regeneratorDefine2$1(b,"constructor",m),_regeneratorDefine2$1(m,"constructor",g),g.displayName="GeneratorFunction",_regeneratorDefine2$1(m,f,"GeneratorFunction"),_regeneratorDefine2$1(b),_regeneratorDefine2$1(b,f,"Generator"),_regeneratorDefine2$1(b,d,function(){return this}),_regeneratorDefine2$1(b,"toString",function(){return"[object Generator]"}),(_regenerator$1=function(){return{w:p,m:w}})()}function _regeneratorDefine2$1(l,o,u,d){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}_regeneratorDefine2$1=function(h,v,g,m){function y(b,w){_regeneratorDefine2$1(h,b,function(E){return this._invoke(b,w,E)})}v?f?f(h,v,{value:g,enumerable:!m,configurable:!m,writable:!m}):h[v]=g:(y("next",0),y("throw",1),y("return",2))},_regeneratorDefine2$1(l,o,u,d)}function refetchInfoResponsesOnLogout(l){var o=l.tokenServiceId;return _regenerator$1().m(function u(){return _regenerator$1().w(function(d){for(;;)switch(d.n){case 0:return d.n=1,delay(2e3);case 1:return d.n=2,call(refetchInfoResponses,{serviceId:o});case 2:return d.a(2)}},u)})()}function refetchInfoResponses(l){var o=l.serviceId;return _regenerator$1().m(function u(){var d,f,p,h,v,g;return _regenerator$1().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,select(getWindows$1);case 1:return d=m.v,m.n=2,all(Object.keys(d).map(function(y){return select(getVisibleCanvases$1,{windowId:y})}));case 2:return f=m.v,p=flatten(flatten(f).map(function(y){var b=new MiradorCanvas$2(y);return b.imageServiceIds})),m.n=3,select(selectInfoResponses$1);case 3:return h=m.v,v=function(b){var w=Utils.getServices(b);return w.some(function(E){var P=Utils.getService(E,"http://iiif.io/api/auth/1/token")||Utils.getService(E,"http://iiif.io/api/auth/0/token");return P&&P.id===o})},g=Object.values(h).filter(function(y){return y.json&&v(y.json)}),m.n=4,all(g.map(function(y){var b=y.id;return p.includes(b)?call(fetchInfoResponse$1,{infoId:b}):put({infoId:b,type:ActionTypes$1.REMOVE_INFO_RESPONSE})}));case 4:return m.a(2)}},u)})()}function doAuthWorkflow(l){var o=l.infoJson,u=l.windowId;return _regenerator$1().m(function d(){var f,p,h,v,g,m,y,b,w,E;return _regenerator$1().w(function(P){for(;;)switch(P.n){case 0:return P.n=1,select(getAuth$1);case 1:return f=P.v,P.n=2,select(getConfig$1);case 2:if(p=P.v,h=p.auth,v=h===void 0?{}:h,g=v.serviceProfiles,m=g===void 0?[]:g,y=m.filter(function(C){return C.external||C.kiosk}),b=Utils.getServices(o).filter(function(C){return!f[C.id]}).find(function(C){return y.some(function(T){return T.profile===C.getProfile()})}),b){P.n=3;break}return P.a(2);case 3:if(w=y.find(function(C){return C.profile===b.getProfile()}),!w.kiosk){P.n=5;break}return P.n=4,put(addAuthenticationRequest$1(u,b.id,b.getProfile()));case 4:P.n=8;break;case 5:if(!w.external){P.n=8;break}if(E=Utils.getService(b,"http://iiif.io/api/auth/1/token")||Utils.getService(b,"http://iiif.io/api/auth/0/token"),E){P.n=6;break}return P.a(2);case 6:return P.n=7,put(resolveAuthenticationRequest$1(b.id,E.id));case 7:return P.n=8,put(requestAccessToken$1(E.id,b.id));case 8:return P.a(2)}},d)})()}function rerequestOnAccessTokenFailure(l){var o=l.infoJson;l.windowId;var u=l.tokenServiceId;return _regenerator$1().m(function d(){var f,p,h;return _regenerator$1().w(function(v){for(;;)switch(v.n){case 0:if(u){v.n=1;break}return v.a(2);case 1:if(f=Utils.getServices(o).find(function(g){var m=Utils.getService(g,"http://iiif.io/api/auth/1/token")||Utils.getService(g,"http://iiif.io/api/auth/0/token");return m&&m.id===u}),f){v.n=2;break}return v.a(2);case 2:return v.n=3,select(getAccessTokens$1);case 3:if(p=v.v,h=p[u],h&&h.success){v.n=4;break}return v.a(2);case 4:return v.n=5,put(requestAccessToken$1(u,f.id));case 5:return v.a(2)}},d)})()}
127function invalidateInvalidAuth(l){var o=l.serviceId;return _regenerator$1().m(function u(){var d,f,p,h;return _regenerator$1().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,select(getAccessTokens$1);case 1:return d=v.v,v.n=2,select(getAuth$1);case 2:if(f=v.v,p=d[o],p){v.n=3;break}return v.a(2);case 3:if(h=f[p.authId],h){v.n=4;break}return v.a(2);case 4:if(!p.success){v.n=6;break}return v.n=5,put(resetAuthenticationState$1({authServiceId:h.id,tokenServiceId:p.id}));case 5:v.n=7;break;case 6:return v.n=7,put(resolveAuthenticationRequest$1(h.id,p.id,{ok:!1}));case 7:return v.a(2)}},u)})()}function authSaga(){return _regenerator$1().w(function(l){for(;;)switch(l.n){case 0:return l.n=1,all([takeEvery(ActionTypes$1.RECEIVE_DEGRADED_INFO_RESPONSE,rerequestOnAccessTokenFailure),takeEvery(ActionTypes$1.RECEIVE_ACCESS_TOKEN_FAILURE,invalidateInvalidAuth),takeEvery(ActionTypes$1.RECEIVE_DEGRADED_INFO_RESPONSE,doAuthWorkflow),takeEvery(ActionTypes$1.RECEIVE_ACCESS_TOKEN,refetchInfoResponses),takeEvery(ActionTypes$1.RESET_AUTHENTICATION_STATE,refetchInfoResponsesOnLogout)]);case 1:return l.a(2)}},_marked$3)}function _toConsumableArray$a(l){return _arrayWithoutHoles$a(l)||_iterableToArray$a(l)||_unsupportedIterableToArray$d(l)||_nonIterableSpread$a()}function _nonIterableSpread$a(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
128In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$d(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$d(l,o):void 0}}function _iterableToArray$a(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$a(l){if(Array.isArray(l))return _arrayLikeToArray$d(l)}function _arrayLikeToArray$d(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _regenerator(){var l,o,u=typeof Symbol=="function"?Symbol:{},d=u.iterator||"@@iterator",f=u.toStringTag||"@@toStringTag";function p(E,P,C,T){var O=P&&P.prototype instanceof v?P:v,x=Object.create(O.prototype);return _regeneratorDefine2(x,"_invoke",(function(A,D,j){var M,N,q,z=0,H=j||[],U=!1,F={p:0,n:0,v:l,a:B,f:B.bind(l,4),d:function(Q,K){return M=Q,N=0,q=l,F.n=K,h}};function B(G,Q){for(N=G,q=Q,o=0;!U&&z&&!K&&o<H.length;o++){var K,Z=H[o],te=F.p,oe=Z[2];G>3?(K=oe===Q)&&(q=Z[(N=Z[4])?5:(N=3,3)],Z[4]=Z[5]=l):Z[0]<=te&&((K=G<2&&te<Z[1])?(N=0,F.v=Q,F.n=Z[1]):te<oe&&(K=G<3||Z[0]>Q||Q>oe)&&(Z[4]=G,Z[5]=Q,F.n=oe,N=0))}if(K||G>1)return h;throw U=!0,Q}return function(G,Q,K){if(z>1)throw TypeError("Generator is already running");for(U&&Q===1&&B(Q,K),N=Q,q=K;(o=N<2?l:q)||!U;){M||(N?N<3?(N>1&&(F.n=-1),B(N,q)):F.n=q:F.v=q);try{if(z=2,M){if(N||(G="next"),o=M[G]){if(!(o=o.call(M,q)))throw TypeError("iterator result is not an object");if(!o.done)return o;q=o.value,N<2&&(N=0)}else N===1&&(o=M.return)&&o.call(M),N<2&&(q=TypeError("The iterator does not provide a '"+G+"' method"),N=1);M=l}else if((o=(U=F.n<0)?q:A.call(D,F))!==h)break}catch(Z){M=l,N=1,q=Z}finally{z=1}}return{value:o,done:U}}})(E,C,T),!0),x}var h={};function v(){}function g(){}function m(){}o=Object.getPrototypeOf;var y=[][d]?o(o([][d]())):(_regeneratorDefine2(o={},d,function(){return this}),o),b=m.prototype=v.prototype=Object.create(y);function w(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,m):(E.__proto__=m,_regeneratorDefine2(E,f,"GeneratorFunction")),E.prototype=Object.create(b),E}return g.prototype=m,_regeneratorDefine2(b,"constructor",m),_regeneratorDefine2(m,"constructor",g),g.displayName="GeneratorFunction",_regeneratorDefine2(m,f,"GeneratorFunction"),_regeneratorDefine2(b),_regeneratorDefine2(b,f,"Generator"),_regeneratorDefine2(b,d,function(){return this}),_regeneratorDefine2(b,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:p,m:w}})()}function _regeneratorDefine2(l,o,u,d){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}_regeneratorDefine2=function(h,v,g,m){function y(b,w){_regeneratorDefine2(h,b,function(E){return this._invoke(b,w,E)})}v?f?f(h,v,{value:g,enumerable:!m,configurable:!m,writable:!m}):h[v]=g:(y("next",0),y("throw",1),y("return",2))},_regeneratorDefine2(l,o,u,d)}var _marked$2=_regenerator().m(launchSaga);function launchSaga(l){var o;return _regenerator().w(function(u){for(;;)switch(u.p=u.n){case 0:return u.p=1,u.n=2,call(l);case 2:return u.a(3,5);case 3:u.p=3,o=u.v,console.log(o);case 4:u.n=0;break;case 5:return u.a(2)}},_marked$2,null,[[1,3]])}function getRootSaga(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return _regenerator().m(function o(){var u;return _regenerator().w(function(d){for(;;)switch(d.n){case 0:return u=[appSaga,appSaga$1,iiifSaga,windowsSaga,authSaga].concat(_toConsumableArray$a(l)),d.n=1,all(u.map(function(f){return spawn(launchSaga,f)}));case 1:return d.a(2)}},o)})}function _defineProperty$t(l,o,u){return(o=_toPropertyKey$1y(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1y(l){var o=_toPrimitive$1y(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1y(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
128return(o==="string"?String:Number)(l)}function configureStore(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=createRootReducer(l),d=settings$1.state.slice?combineReducers(_defineProperty$t({},settings$1.state.slice,u)):u,f=sagaMiddlewareFactory(),p=createStore$1(d,reduxDevtoolsExtensionExports.composeWithDevTools(applyMiddleware(thunk,f)));return f.run(getRootSaga(o)),p}function createPluggableStore(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=filterValidPlugins(o),d=configureStore(getReducersFromPlugins(u),getSagasFromPlugins(u));return d.dispatch(importConfig$2(deepmerge(getConfigFromPlugins(u),l))),d}function _classCallCheck$1d(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$19(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1x(d.key),d)}}function _createClass$19(l,o,u){return o&&_defineProperties$19(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1x(l){var o=_toPrimitive$1x(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1x(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var MiradorViewer=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$1d(this,l),this.plugins=filterValidPlugins(u.plugins||[]),this.config=o,this.store=u.store||createPluggableStore(this.config,this.plugins),o.id&&(this.container=document.getElementById(o.id),o.id&&ReactDOM.render(this.render(),this.container))}return _createClass$19(l,[{key:"render",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return React.createElement(Provider,{store:this.store},React.createElement(App,Object.assign({plugins:this.plugins},u)))}},{key:"unmount",value:function(){this.container&&ReactDOM.unmountComponentAtNode(this.container)}}])})();function viewer(l,o){var u;return Array.isArray(o)?u={plugins:o}:u=o,new MiradorViewer(l,u)}const miradorLib={viewer};var ActionTypes={ADD_COMPANION_WINDOW:"mirador/ADD_COMPANION_WINDOW",
128UPDATE_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"};const actionTypes=Object.freeze(Object.defineProperty({__proto__:null,default:ActionTypes},Symbol.toStringTag,{value:"Module"}));function _classCallCheck$1c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$18(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1w(d.key),d)}}function _createClass$18(l,o,u){return o&&_defineProperties$18(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1w(l){var o=_toPrimitive$1w(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1w(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationResource=(function(){function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$1c(this,l),this.resource=o}return _createClass$18(l,[{key:"isOnlyTag",value:function(){return this.motivations.length===1&&this.motivations[0]==="oa:tagging"}},{key:"id",get:function(){return this._id=this._id||this.resource["@id"]||this.resources[0]&&this.resources[0]["@id"]||v4(),this._id}},{key:"targetId",get:function(){var u=this.on[0];switch(typeof u){case"string":return u.replace(/#?xywh=(.*)$/,"");case"object":return u.full.replace(/#?xywh=(.*)$/,"");default:return null}}},{key:"motivations",get:function(){return flatten(compact(new Array(this.resource.motivation)))}},{key:"resources",get:function(){return flatten(compact(new Array(this.resource.resource)))}},{key:"on",get:function(){return flatten(compact(new Array(this.resource.on)))}},{key:"tags",get:function(){return this.isOnlyTag()?this.resources.map(function(u){return u.chars}):this.resources.filter(function(u){return u["@type"]==="oa:Tag"}).map(function(u){return u.chars})}},{key:"chars",get:function(){return this.resources.filter(function(u){return u["@type"]!=="oa:Tag"}).map(function(u){return u.chars}).join(" ")}},{key:"selector",get:function(){var u=this.on[0];switch(typeof u){case"string":return u;case"object":return u.selector["@type"]==="oa:Choice"?u.selector.default:u.selector;default:return null}}},{key:"svgSelector",get:function(){var u=this.on[0];switch(typeof u){case"string":return null;case"object":return u.selector&&u.selector.item&&u.selector.item["@type"]==="oa:SvgSelector"?u.selector.item:null;default:return null}}},{key:"fragmentSelector",get:function(){var u=this.selector,d;switch(typeof u){case"string":d=u.match(/xywh=(.*)$/);break;case"object":d=u.value.match(/xywh=(.*)$/);break;default:return null}return d&&d[1].split(",").map(function(f){return parseInt(f,10)})}}])})();function _classCallCheck$1b(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$17(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1v(d.key),d)}}function _createClass$17(l,o,u){return o&&_defineProperties$17(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1v(l){var o=_toPrimitive$1v(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1v(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationList=(function(){function l(o,u){_classCallCheck$1b(this,l),this.json=o,this.target=u}return _createClass$17(l,[{key:"id",get:function(){return this.json["@id"]}},{key:"present",value:function(){return this.resources&&this.resources.length>0}},{key:"resources",get:function(){var u=this;
128return this._resources=this._resources||(function(){return!u.json||!u.json.resources?[]:flatten([u.json.resources]).map(function(d){return new AnnotationResource(d)})})(),this._resources}}])})();function _classCallCheck$1a(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$16(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1u(d.key),d)}}function _createClass$16(l,o,u){return o&&_defineProperties$16(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1u(l){var o=_toPrimitive$1u(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1u(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationItem=(function(){function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$1a(this,l),this.resource=o}return _createClass$16(l,[{key:"isOnlyTag",value:function(){return this.motivations.length===1&&this.motivations[0]==="tagging"}},{key:"id",get:function(){return this._id=this._id||this.resource.id||v4(),this._id}},{key:"targetId",get:function(){var u=this.target[0];switch(typeof u){case"string":return u.replace(/#?xywh=(.*)$/,"");case"object":return u.source&&u.source.id||u.source||u.id;default:return null}}},{key:"motivations",get:function(){return flatten(compact(new Array(this.resource.motivation)))}},{key:"body",get:function(){return flatten(compact(new Array(this.resource.body)))}},{key:"resources",get:function(){return this.body}},{key:"tags",get:function(){return this.isOnlyTag()?this.body.map(function(u){return u.value}):this.body.filter(function(u){return u.purpose==="tagging"}).map(function(u){return u.value})}},{key:"target",get:function(){return flatten(compact(new Array(this.resource.target)))}},{key:"chars",get:function(){return this.isOnlyTag()?null:this.body.filter(function(u){return u.purpose!=="tagging"}).map(function(u){return u.value}).join(" ")}},{key:"selector",get:function(){var u=this.target[0];switch(typeof u){case"string":return u;case"object":return flatten(compact(new Array(u.selector)));default:return null}}},{key:"svgSelector",get:function(){var u=this.selector;switch(typeof u){case"string":return null;case"object":return u.find(function(d){return d.type&&d.type==="SvgSelector"});default:return null}}},{key:"fragmentSelector",get:function(){var u=this.selector,d,f;switch(typeof u){case"string":d=u.match(/xywh=(.*)$/);break;case"object":f=u.find(function(p){return p.type&&p.type==="FragmentSelector"}),d=f&&f.value.match(/xywh=(.*)$/);break;default:return null}return d&&d[1].split(",").map(function(p){return parseInt(p,10)})}}])})();function _classCallCheck$19(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$15(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1t(d.key),d)}}function _createClass$15(l,o,u){return o&&_defineProperties$15(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1t(l){var o=_toPrimitive$1t(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1t(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationPage=(function(){function l(o,u){_classCallCheck$19(this,l),this.json=o,this.target=u}return _createClass$15(l,[{key:"id",get:function(){return this.json.id}},{key:"present",value:function(){return this.items&&this.items.length>0}},{key:"items",get:function(){var u=this;return this._items=this._items||(function(){return!u.json||!u.json.items?[]:flatten([u.json.items]).map(function(d){return new AnnotationItem(d)})})(),this._items}},{key:"resources",get:function(){return this.items}}])})();function _classCallCheck$18(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$14(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1s(d.key),d)}}function _createClass$14(l,o,u){return u&&_defineProperties$14(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1s(l){var o=_toPrimitive$1s(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1s(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var AnnotationFactory=(function(){function l(){_classCallCheck$18(this,l)}return _createClass$14(l,null,[{key:"determineAnnotation",value:function(u,d){return u?u.type==="AnnotationPage"?new AnnotationPage(u,d):new AnnotationList(u,d):null}}])})();function _defineProperty$s(l,o,u){return(o=_toPropertyKey$1r(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1r(l){var o=_toPrimitive$1r(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1r(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
128return(o==="string"?String:Number)(l)}const settings={state:{},theme:{overrides:{MuiTooltip:{tooltipPlacementLeft:_defineProperty$s({},"@media (min-width:600px)",{margin:0}),tooltipPlacementRight:_defineProperty$s({},"@media (min-width:600px)",{margin:0}),tooltipPlacementTop:_defineProperty$s({},"@media (min-width:600px)",{margin:0}),tooltipPlacementBottom:_defineProperty$s({},"@media (min-width:600px)",{margin:0})}}},createGenerateClassNameOptions:{productionPrefix:"mirador"},workspace:{id:v4()}};function miradorSlice(l){return settings.state.slice?l[settings.state.slice]:l}const utils=Object.freeze(Object.defineProperty({__proto__:null,miradorSlice},Symbol.toStringTag,{value:"Module"}));function _classCallCheck$17(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$13(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1q(d.key),d)}}function _createClass$13(l,o,u){return o&&_defineProperties$13(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1q(l){var o=_toPrimitive$1q(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1q(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var CanvasGroupings=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"single";_classCallCheck$17(this,l),this.canvases=o,this.viewType=u,this._groupings=null}return _createClass$13(l,[{key:"getCanvases",value:function(u){return this.viewType==="book"?this.groupings()[Math.ceil(u/2)]:this.groupings()[u]}},{key:"groupings",value:function(){if(this._groupings)return this._groupings;if(this.viewType==="scroll")return[this.canvases];if(this.viewType!=="book")return this.canvases.map(function(d){return[d]});var u=[];return this.canvases.forEach(function(d,f){if(f===0){u.push([d]);return}f%2!==0?u.push([d]):u[Math.ceil(f/2)].push(d)}),this._groupings=u,u}}])})();function _classCallCheck$16(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$12(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1p(d.key),d)}}function _createClass$12(l,o,u){return o&&_defineProperties$12(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1p(l){var o=_toPrimitive$1p(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1p(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var MiradorCanvas=(function(){function l(o){_classCallCheck$16(this,l),this.canvas=o}return _createClass$12(l,[{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 flatten(new Array(this.canvas.__jsonld.otherContent)).filter(function(u){return u&&(typeof u=="string"||u["@type"]==="sc:AnnotationList")}).map(function(u){return typeof u=="string"?u:u["@id"]})}},{key:"canvasAnnotationPages",get:function(){return flatten(new Array(this.canvas.__jsonld.annotations)).filter(function(u){return u&&u.type==="AnnotationPage"})}},{key:"imageResource",get:function(){return this.imageResources[0]}},{key:"imageResources",get:function(){var u=this,d=flattenDeep([this.canvas.getImages().map(function(f){return f.getResource()}),this.canvas.getContent().map(function(f){return f.getBody()})]);return flatten(d.map(function(f){return f.getProperty("type")==="oa:Choice"?new Canvas({images:flatten([f.getProperty("default"),f.getProperty("item")]).map(function(p){return{resource:p}})},u.canvas.options).getImages().map(function(p){return p.getResource()}):f}))}}
128,{key:"videoResources",get:function(){var u=flattenDeep([this.canvas.getContent().map(function(d){return d.getBody()})]);return flatten(u.filter(function(d){return d.getProperty("type")==="Video"}))}},{key:"audioResources",get:function(){var u=flattenDeep([this.canvas.getContent().map(function(d){return d.getBody()})]);return flatten(u.filter(function(d){return d.getProperty("type")==="Sound"}))}},{key:"vttContent",get:function(){var u=flattenDeep([this.canvas.getContent().map(function(d){return d.getBody()})]);return flatten(u.filter(function(d){return d.getProperty("format")==="text/vtt"}))}},{key:"resourceAnnotations",get:function(){return flattenDeep([this.canvas.getImages(),this.canvas.getContent()])}},{key:"resourceAnnotation",value:function(u){return this.resourceAnnotations.find(function(d){return d.getResource().id===u||flatten(new Array(d.getBody())).some(function(f){return f.id===u})})}},{key:"onFragment",value:function(u){var d=this.resourceAnnotation(u);if(d){var f=d.getProperty("on"),p=d.getProperty("target"),h=(f||p).match(/xywh=(.*)$/);if(h)return h[1].split(",").map(function(v){return parseInt(v,10)})}}},{key:"iiifImageResources",get:function(){return this.imageResources.filter(function(u){return u&&u.getServices()[0]&&u.getServices()[0].id})}},{key:"imageServiceIds",get:function(){return this.iiifImageResources.map(function(u){return u.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)}}])})();const MiradorCanvas$1=Object.freeze(Object.defineProperty({__proto__:null,default:MiradorCanvas},Symbol.toStringTag,{value:"Module"}));function getWindowManifests(l){return Object.values(miradorSlice(l).windows).map(function(o){return o.manifestId})}function getWindows(l){return miradorSlice(l).windows||{}}function getWindow(l,o){var u=o.windowId;return getWindows(l)[u]}var getViewer=createSelector([function(l){return miradorSlice(l).viewers},function(l,o){var u=o.windowId;return u}],function(l,o){return l[o]});function getWorkspace(l){return miradorSlice(l).workspace}var getWindowIds=createSelector([getWorkspace],function(l){var o=l.windowIds;return o||[]});function getManifests(l){return miradorSlice(l).manifests||{}}function getManifest(l,o){var u=o.manifestId,d=o.windowId,f=getManifests(l);return f&&f[u||d&&(getWindow(l,{windowId:d})||{}).manifestId]}function getCatalog(l){return miradorSlice(l).catalog||{}}function _classCallCheck$15(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$11(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1o(d.key),d)}}function _createClass$11(l,o,u){return o&&_defineProperties$11(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1o(l){var o=_toPrimitive$1o(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1o(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var MiradorManifest=(function(){function l(o){_classCallCheck$15(this,l),this.manifest=o}return _createClass$11(l,[{key:"startCanvas",get:function(){var u,d=this.manifest.getSequences()[0];if(d){if(u=d.getProperty("startCanvas"),!u){var f=this.manifest.getProperty("start")||d.getProperty("start");u=f&&(f.id||f.source)}return u&&d.getCanvasById(u)||void 0}}},{key:"canvasAt",value:function(u){var d=this.manifest.getSequences()[0],f=d&&d.getCanvases();return f&&f[u]}}])})();function asArray(l){return l===void 0?[]:Array.isArray(l)?l:[l]}function _classCallCheck$14(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$10(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1n(d.key),d)}}function _createClass$10(l,o,u){return o&&_defineProperties$10(l.prototype,o),u&&_defineProperties$10(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1n(l){var o=_toPrimitive$1n(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1n(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function isLevel0ImageProfile(l){var o=l.getProfile();return o.endsWith("#level1")||o.endsWith("#level2")?!1:o==="level0"?!0:Utils.isLevel0ImageProfile(o)}function isLevel2ImageProfile(l){var o=l.getProfile();return o.endsWith("#level0")||o.endsWith("#level1")?!1:o==="level2"?!0:Utils.isLevel2ImageProfile(o)}function iiifv3ImageServiceType(l){var o=l.getProperty("type")||[];return asArray(o).some(function(u){return u.startsWith("ImageService")})}function iiifImageService(l){var o=l&&l.getServices().find(function(u){return iiifv3ImageServiceType(u)||Utils.isImageProfile(u.getProfile())});if(o)return o}var ThumbnailFactory=(function(){function l(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$14(this,l),this.resource=o,this.iiifOpts=u}return _createClass$10(l,[{key:"iiifThumbnailUrl",value:function(u){var d,f,p,h=120,v=h,g=h,m=this.iiifOpts,y=m.maxHeight,b=m.maxWidth;y&&(v=Math.max(y,h)),b&&(g=Math.max(b,h));var w=iiifImageService(u);
128if(!w)return l.staticImageUrl(u);var E=u.getWidth()&&u.getHeight()&&u.getWidth()/u.getHeight(),P=b&&y?b*y:v*g,C=l.selectBestImageSize(w,P);if(C)f=C.width,p=C.height,d="".concat(f,",").concat(p);else if(isLevel0ImageProfile(w)){if(!w.getProperty("height")&&!w.getProperty("width"))return l.staticImageUrl(u)}else y&&b?isLevel2ImageProfile(w)?(d="!".concat(g,",").concat(v),f=g,p=v,E&&E>1&&(p=Math.round(g/E)),E&&E<1&&(f=Math.round(v*E))):g/v<E?(d="".concat(g,","),f=g,E&&(p=Math.round(g/E))):(d=",".concat(v),p=v,E&&(f=Math.round(v*E))):y&&!b?(d=",".concat(v),p=v,E&&(f=Math.round(v*E))):!y&&b?(d="".concat(g,","),f=g,E&&(p=Math.round(g/E))):(d=",".concat(h),p=h,E&&(f=Math.round(p*E)));var T="full",O=Utils.getImageQuality(w.getProfile()),x=w.id.replace(/\/+$/,""),A=this.getFormat(w);return{height:p,url:[x,T,d,0,"".concat(O,".").concat(A)].join("/"),width:f}}},{key:"getFormat",value:function(u){var d=this.iiifOpts.preferredFormats,f=d===void 0?[]:d,p=u.getProperty("preferredFormats");if(!p)return"jpg";var h=p.filter(function(v){return f.includes(v)});
128return h[0]?h[0]:!p.includes("jpg")&&f.includes("jpg")?"jpg":p[0]?p[0]:"jpg"}},{key:"getSourceContentResource",value:function(u){var d=u.getThumbnail();if(d)return typeof d.__jsonld=="string"?d.__jsonld:!u.isCollection()&&!u.isManifest()&&!u.isCanvas()&&u.getType()==="image"&&iiifImageService(u)&&!iiifImageService(d)?u:d;if(u.isCollection()){var f=u.getManifests()[0];return f?this.getSourceContentResource(f):void 0}if(u.isManifest()){var p=new MiradorManifest(u),h=p.startCanvas||p.canvasAt(0);return h?this.getSourceContentResource(h):void 0}if(u.isCanvas()){var v=l.getPreferredImage(u);return v?this.getSourceContentResource(v):void 0}if(u.getType()==="image")return u}},{key:"get",value:function(){if(this.resource){var u=this.getSourceContentResource(this.resource);if(u)return typeof u=="string"?{url:u}:this.iiifThumbnailUrl(u)}}}],[{key:"staticImageUrl",value:function(u){return{height:u.getProperty("height"),url:u.id,width:u.getProperty("width")}}},{key:"getPreferredImage",value:function(u){var d=new MiradorCanvas(u);return d.iiifImageResources[0]||d.imageResource}},{key:"selectBestImageSize",value:function(u,d){var f=asArray(u.getProperty("sizes")),p={default:!0,height:u.getProperty("height")||Number.MAX_SAFE_INTEGER,width:u.getProperty("width")||Number.MAX_SAFE_INTEGER},h=function(g){return g.width*g.height-d};if(p=f.reduce(function(v,g){var m=h(g);return m<0?v:Math.abs(m)<Math.abs(h(v))?g:v},p),p.width*p.height>d*6&&(p=f.reduce(function(v,g){return Math.abs(h(g))<Math.abs(h(v))?g:v},p)),!p.default)return p}}])})();function getBestThumbnail(l,o){return new ThumbnailFactory(l,o).get()}function _toConsumableArray$9(l){return _arrayWithoutHoles$9(l)||_iterableToArray$9(l)||_unsupportedIterableToArray$c(l)||_nonIterableSpread$9()}function _nonIterableSpread$9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
129In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$c(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$c(l,o):void 0}}function _iterableToArray$9(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$9(l){if(Array.isArray(l))return _arrayLikeToArray$c(l)}function _arrayLikeToArray$c(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys$n(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$n(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$n(Object(u),!0).forEach(function(d){_defineProperty$r(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$n(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$r(l,o,u){return(o=_toPropertyKey$1m(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1m(l){var o=_toPrimitive$1m(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1m(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function getCompanionWindows(l){return miradorSlice(l).companionWindows||{}}var getCompanionWindow=createSelector([getCompanionWindows,function(l,o){var u=o.companionWindowId;return u}],function(l,o){return o&&l[o]}),getThumbnailNavigationPosition=createSelector([getWindow,getCompanionWindows],function(l,o){return l&&o[l.thumbnailNavigationId]&&o[l.thumbnailNavigationId].position}),getCompanionWindowIndexByWindowAndPosition=createSelector([getWindows,getCompanionWindows],function(l,o){return(Object.keys(l)||[]).reduce(function(u,d){return _objectSpread$n(_objectSpread$n({},u),{},_defineProperty$r({},d,groupBy(l[d].companionWindowIds,function(f){return o[f]&&o[f].position})))},{})}),getCompanionWindowsByWindowAndPosition=createSelector([getWindows,getCompanionWindows],function(l,o){return(Object.keys(l)||[]).reduce(function(u,d){return _objectSpread$n(_objectSpread$n({},u),{},_defineProperty$r({},d,groupBy(l[d].companionWindowIds.map(function(f){return o[f]}),function(f){return f.position})))},{})}),getCompanionWindowsOfWindow=createSelector([function(l,o){var u=o.windowId;return u},getCompanionWindowsByWindowAndPosition],function(l,o){return o[l]||{}}),getCompanionWindowIdsOfWindow=createSelector([function(l,o){var u=o.windowId;return u},getCompanionWindowIndexByWindowAndPosition],function(l,o){return o[l]||{}}),getCompanionWindowsForPosition=createSelector([getCompanionWindowsOfWindow,function(l,o){var u=o.position;return{position:u}}],function(l,o){var u=o.position;return l[u]||EMPTY_ARRAY}),getCompanionWindowsForContent=createSelector([getCompanionWindowsOfWindow,function(l,o){var u=o.content;return{content:u}}],function(l,o){var u,d=o.content;return(u=[]).concat.apply(u,_toConsumableArray$9(Object.values(l))).filter(function(f){return f.content===d})}),EMPTY_ARRAY=[],getCompanionWindowIdsForPosition=createSelector([getCompanionWindowIdsOfWindow,function(l,o){var u=o.position;return{position:u}}],function(l,o){var u=o.position;return l[u]||EMPTY_ARRAY}),getCompanionAreaVisibility=createSelector([function(l,o){var u=o.position;return u},getWindow],function(l,o){if(!o)return!1;var u=o.companionAreaOpen,d=o.sideBarOpen;return l!=="left"?!0:!!(u&&d)}),selectCompanionWindowDimensions=createSelector([getCompanionWindowsOfWindow],function(l){var o,u=0,d=0;return(o=[]).concat.apply(o,_toConsumableArray$9(Object.values(l))).forEac
129h(function(f){f.position.match(/right/)&&(u+=235),f.position.match(/bottom/)&&(d+=201)}),{height:d,width:u}});function _slicedToArray$4(l,o){return _arrayWithHoles$4(l)||_iterableToArrayLimit$4(l,o)||_unsupportedIterableToArray$b(l,o)||_nonIterableRest$4()}function _nonIterableRest$4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
130In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$b(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$b(l,o):void 0}}function _arrayLikeToArray$b(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$4(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$4(l){if(Array.isArray(l))return l}function getConfig(l){var o=miradorSlice(l||{});return o.config||{}}function getExportableState(l){var o=getConfig(l).export;return Object.entries(o).reduce(function(u,d){var f=_slicedToArray$4(d,2),p=f[0],h=f[1];return h===!0?u[p]=l[p]:h.filter&&(u[p]=Object.entries(l[p]).filter(h.filter).reduce(function(v,g){var m=_slicedToArray$4(g,2),y=m[0],b=m[1];return v[y]=b,v},{})),u},{})}var getLanguagesFromConfigWithCurrent=createSelector([getConfig],function(l){var o=l.availableLanguages,u=l.language;return Object.keys(o).map(function(d){return{current:d===u,label:o[d],locale:d}})}),getShowZoomControlsConfig=createSelector([getWorkspace,getConfig],function(l,o){return l.showZoomControls===void 0?o.workspace.showZoomControls:l.showZoomControls}),getTheme=createSelector([getConfig],function(l){var o=l.theme,u=l.themes,d=l.selectedTheme;return deepmerge(o,u[d]||{})}),getThemeIds=createSelector([getConfig],function(l){var o=l.themes;return Object.keys(o)}),getContainerId=createSelector([getConfig],function(l){var o=l.id;return o}),getThemeDirection=createSelector([getConfig],function(l){var o=l.theme;return o.direction||"ltr"}),getRequestsConfig=createSelector([getConfig],function(l){var o=l.requests;return o||{}});function _toConsumableArray$8(l){return _arrayWithoutHoles$8(l)||_iterableToArray$8(l)||_unsupportedIterableToArray$a(l)||_nonIterableSpread$8()}function _nonIterableSpread$8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
131In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$a(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$a(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$a(l,o):void 0}}function _iterableToArray$8(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$8(l){if(Array.isArray(l))return _arrayLikeToArray$a(l)}function _arrayLikeToArray$a(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function createManifestoInstance(l,o){if(l){var u=Utils.parseManifest(l,o?{locale:o}:void 0);return typeof u.getSequences!="function"&&(u.getSequences=function(){return[]}),u}}var getLocale=createSelector([getCompanionWindow,getConfig],function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.locale||o.language}),getManifestStatus=createSelector([getManifest],function(l){return l||{missing:!0}}),getManifestError=createSelector([getManifest],function(l){return l&&l.error}),getContextualManifestoInstance=createCachedSelector(getManifest,getLocale,function(l,o){return l&&createManifestoInstance(l.json,o)}
131)(function(l,o){var u=o.companionWindowId,d=o.manifestId,f=o.windowId;return[d,f,getLocale(l,{companionWindowId:u})].join(" - ")}),getManifestoInstance=createSelector(getContextualManifestoInstance,function(l,o){var u=o.json;return u},getLocale,function(l,o,u){return o&&createManifestoInstance(o,u)||l}),getManifestLocale=createSelector([getManifestoInstance],function(l){return l&&l.options&&l.options.locale&&l.options.locale.replace(/-.*$/,"")});function getProperty(l){return createSelector([getManifestoInstance],function(o){return o&&o.getProperty(l)})}var getManifestLogo=createSelector([getManifestoInstance],function(l){return l&&l.getLogo()}),getManifestProvider=createSelector([getProperty("provider"),getManifestLocale],function(l,o){return l&&l[0].label&&PropertyValue.parse(l[0].label,o).getValue()}),getManifestHomepage=createSelector([getProperty("homepage"),getManifestLocale],function(l,o){return l&&asArray(l).map(function(u){return{label:PropertyValue.parse(u.label,o).getValue(),value:u.id||u["@id"]}})}),getManifestRenderings=createSelector([getManifestoInstance],function(l){return l&&l.getRenderings().map(function(o){return{label:o.getLabel().getValue(),value:o.id}})}),getManifestRelatedContent=createSelector([getProperty("seeAlso"),getManifestLocale],function(l,o){return l&&asArray(l).map(function(u){return{format:u.format,label:PropertyValue.parse(u.label,o).getValue(),value:u.id||u["@id"]}})}),getRequiredStatement=createSelector([getManifestoInstance],function(l){return l&&asArray(l.getRequiredStatement()).filter(function(o){return o.getValues().some(function(u){return u})}).map(function(o){return{label:o.label&&o.label.getValue()||null,values:o.getValues()}})}),getRights=createSelector([getProperty("rights"),getProperty("license"),getManifestLocale],function(l,o,u){var d=l||o;return asArray(PropertyValue.parse(d,u).getValues())});function getManifestThumbnail(l,o){var u=getManifestoInstance(l,o),d=getConfig(l),f=d.thumbnails,p=f===void 0?{}:f;if(u){var h=getBestThumbnail(u,{maxHeight:80,maxWidth:120,preferredFormats:p.preferredFormats});return h&&h.url}}var getManifestTitle=createSelector([getManifestoInstance],function(l){return l&&l.getLabel().getValue()}),getManifestDescription=createSelector([getManifestoInstance],function(l){return l&&l.getDescription().getValue()}),getManifestUrl=createSelector([getManifestoInstance],function(l){return l&&l.id});function getDestructuredMetadata(l){return l&&l.getMetadata().map(function(o){return{label:o.getLabel(),values:o.getValues()}})}var getManifestMetadata=createSelector([getManifestoInstance],function(l){return l&&getDestructuredMetadata(l)});function getLocalesForStructure(l){var o=[];return Array.isArray(l)?o.push.apply(o,_toConsumableArray$8(l.filter(function(u){return typeof u=="object"&&u["@language"]}).map(function(u){return u["@language"]}))):l&&typeof l=="object"&&l["@language"]&&o.push(l["@language"]),o}function getLocales(l){if(!l)return[];for(var o=l.getProperty("metadata")||[],u={},d=0;d<o.length;d+=1){var f=o[d];getLocalesForStructure(f.label).forEach(function(p){u[p]=!0}),getLocalesForStructure(f.value).forEach(function(p){u[p]=!0})}return Object.keys(u)}var getMetadataLocales=createSelector([getManifestoInstance],function(l){return getLocales(l)}),getManifestSearchService=createSelector([getManifestoInstance],function(l){if(!l)return null;var o=l.getService("http://iiif.io/api/search/0/search")||l.getService("http://iiif.io/api/search/1/search");return o||null}),getManifestAutocompleteService=createSelector([getManifestSearchService],function(l){var o=l&&(l.getService("http://iiif.io/api/search/0/autocomplete")||l.getService("http://iiif.io/api/search/1/autocomplete"));return o&&o}),getSequences=createSelector([getManifestoInstance],function(l){if(!l||!l.getTopRanges)return null;var o=l.getTopRanges(),u=o.filter(function(p){return p.getProperty("viewingHint")==="top"}),d=[];u.length===0&&o.length===1&&(d=o[0].getRanges().filter(function(p){return p.getBehavior()==="sequence"}));var f=[].concat(l.getSequences(),d);return f}),getSequence=createSelector([getSequences,getWindow,function(l,o){var u=o.sequenceId;return u}],function(l,o,u){if(!l)return null;if(u||o&&o.sequenceId){var d=l.find(function(f){return f.id===(u||o.sequenceId)});if(d)return d}return l[0]}
131),getCanvasIndex=createSelector([getWindow,getSequence],function(l,o){return(o&&l&&l.canvasId&&o.getCanvasById(l.canvasId)||{}).index||0}),getSequenceViewingHint=createSelector([getSequence,getManifestoInstance],function(l,o){if(!o)return null;var u=l&&l.getViewingHint()||o.getViewingHint();return u||null}),getSequenceViewingDirection=createSelector([getWindow,getSequence,getManifestoInstance],function(l,o,u){var d=l&&l.viewingDirection||o&&o.getViewingDirection()||u&&u.getViewingDirection();return d||null}),getSequenceBehaviors=createSelector([getSequence,getManifestoInstance],function(l,o){if(!o||!l)return[];var u=l&&l.getProperty("behavior");if(u)return Array.isArray(u)?u:[u];var d=o.getProperty("behavior");return d?Array.isArray(d)?d:[d]:[]}),getSequenceTreeStructure=createSelector([getSequence,getManifestoInstance],function(l,o){return l&&l.getProperty("type")&&l.isRange()?l.getTree(new TreeNode("root")):o&&o.getDefaultTree()});function _slicedToArray$3(l,o){return _arrayWithHoles$3(l)||_iterableToArrayLimit$3(l,o)||_unsupportedIterableToArray$9(l,o)||_nonIterableRest$3()}function _nonIterableRest$3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
132In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$9(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$9(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$9(l,o):void 0}}function _arrayLikeToArray$9(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$3(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$3(l){if(Array.isArray(l))return l}function getElasticLayout(l){return miradorSlice(l).elasticLayout}var getFullScreenEnabled=createSelector([getWorkspace],function(l){return l.isFullscreenEnabled});function getLatestError(l){var o=_slicedToArray$3(miradorSlice(l).errors.items,1),u=o[0];return miradorSlice(l).errors[u]}var getWorkspaceType=createSelector([getWorkspace],function(l){var o=l.type;return o}),getFocusedWindowId$1=createSelector([getWorkspace],function(l){var o=l.focusedWindowId;return o}),isFocused=function(o,u){var d=u.windowId;return getFocusedWindowId$1(o)===d};function ownKeys$m(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$m(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$m(Object(u),!0).forEach(function(d){_defineProperty$q(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$m(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$q(l,o,u){return(o=_toPropertyKey$1l(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1l(l){var o=_toPrimitive$1l(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1l(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var getWindowConfig=createSelector([getConfig,getWindow],function(l){var o=l.window,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _objectSpread$m(_objectSpread$m({},o),u)});function getWindowTitles(l){var o={};
132return Object.keys(getWindows(l)).forEach(function(u){o[u]=getManifestTitle(l,{windowId:u})}),o}var getMaximizedWindowsIds=createSelector([getWindows],function(l){return Object.values(l).filter(function(o){return o.maximized===!0}).map(function(o){return o.id})}),getWindowViewType=createSelector([getWindow,getWindowConfig,getSequenceViewingHint,getSequenceBehaviors],function(l,o,u,d){var f=o.views,p=f===void 0?[]:f,h=o.defaultView;if(l&&l.view)return l.view;var v=(p||[]).find(function(g){return g.behaviors&&g.behaviors.some(function(m){return u===m||d.includes(m)})});return v&&v.key||h}),getAllowedWindowViewTypes=createSelector([getSequenceViewingHint,getSequenceBehaviors,getWindowConfig],function(l,o,u){var d=u.views,f=d===void 0?[]:d,p=u.defaultView;return(f||[]).reduce(function(h,v){return(v.key===p||!v.behaviors||v.behaviors.some(function(g){return l===g||o.includes(g)}))&&h.push(v.key),h},[])}),getWindowDraggability=createSelector([getWorkspaceType,getWindow,function(l){return getWindowIds(l).length>1}],function(l,o,u){return l==="elastic"?!0:u&&o&&o.maximized===!1}),selectInfoResponses=function(o){return miradorSlice(o).infoResponses},getCanvases=createSelector([getSequence],function(l){return l&&l.getCanvases()||[]}),getCanvas=createSelector([getSequence,function(l,o){var u=o.canvasId;return u}],function(l,o){if(!(!l||!o))return l.getCanvasById(o)}),getCurrentCanvas=createSelector([getSequence,getWindow],function(l,o){if(!(!l||!o))return o.canvasId?l.getCanvasById(o.canvasId):l.getCanvasByIndex(0)}),getVisibleCanvasIds=createSelector([getWindow],function(l){return l&&(l.visibleCanvases||l.canvasId&&[l.canvasId])||[]}),getVisibleCanvases=createSelector([getVisibleCanvasIds,getCanvases],function(l,o){return(o||[]).filter(function(u){return l.includes(u.id)})}),getCanvasGroupings=createSelector([getCanvases,getWindowViewType],function(l,o){return l&&new CanvasGroupings(l,o).groupings()}),getCanvasGrouping=createSelector([getCanvasGroupings,function(l,o){var u=o.canvasId;return u}],function(l,o){return l&&l.find(function(u){return u.some(function(d){return d.id===o})})||[]}),getNextCanvasGrouping=createSelector([getCanvasGroupings,getCurrentCanvas],function(l,o,u){if(!(!l||!o)){var d=l.findIndex(function(p){return p.some(function(h){return h.id===o.id})});if(!(d<0||d+1>=l.length)){var f=l[d+1];return f}}}),getPreviousCanvasGrouping=createSelector([getCanvasGroupings,getCurrentCanvas],function(l,o,u){if(!(!l||!o)){var d=l.findIndex(function(p){return p.some(function(h){return h.id===o.id})});if(!(d<1)){var f=l[d-1];return f}}}),getCanvasLabel=createSelector([getCanvas],function(l){return l&&(l.getLabel().length>0?l.getLabel().getValue():String(l.index+1))}),getCanvasDescription=createSelector([getCanvas],function(l){return l&&l.getProperty("description")}),getVisibleCanvasNonTiledResources=createSelector([getVisibleCanvases],function(l){return flatten(l.map(function(o){return new MiradorCanvas(o).imageResources})).filter(function(o){return o.getServices().length<1})}),getVisibleCanvasVideoResources=createSelector([getVisibleCanvases],function(l){return flatten(l.map(function(o){return new MiradorCanvas(o).videoResources}))}),getVisibleCanvasCaptions=createSelector([getVisibleCanvases],function(l){return flatten(l.map(function(o){return new MiradorCanvas(o).vttContent}))}),getVisibleCanvasAudioResources=createSelector([getVisibleCanvases],function(l){return flatten(l.map(function(o){return new MiradorCanvas(o).audioResources}))}),selectInfoResponse=createSelector([function(l,o){var u=o.infoId;return u},getCanvas,selectInfoResponses],function(l,o,u){var d=l;if(!l){if(!o)return;var f=new MiradorCanvas(o),p=f.iiifImageResources[0];d=p&&p.getServices()[0].id}return d&&u[d]&&!u[d].isFetching&&u[d]}),_excluded$7=["canvasId"];function _objectWithoutProperties$9(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$7(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.includes(u)||{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$7(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;u[d]=l[d]}return u}var getAnnotations=function(o){return miradorSlice(o).annotations},getMotivation=createSelector([getConfig,function(l,o){var u=o.motivations;return u}],function(l,o){return o||l.annotations.filteredMotivations}),getAnnotationsOnCanvas=createSelector([getCanvas,getAnnotations],function(l,o){return!o||!l?[]:o[l.id]?flatten(Object.values(o[l.id])):[]}),getPresentAnnotationsCanvas=createSelector([getAnnotationsOnCanvas],function(l){return filter$1(Object.values(l).map(function(o){return o&&AnnotationFactory.determineAnnotation(o.json)}),function(o){return o&&o.present()})}),getAnnotationsOnSelectedCanvases=createSelector([function(l,o){var u=o.canvasId,d=_objectWithoutProperties$9(o,_excluded$7);return u?[u]:getVisibleCanvasIds(l,d)},getAnnotations],function(l,o){return!o||l.length===0?[]:flatten(l.map(function(u){return o[u]&&Object.values(o[u])}))}),getPresentAnnotationsOnSelectedCanvases=createSelector([getAnnotationsOnSelectedCanvases],function(l){return filter$1(Object.values(l).map(function(o){return o&&AnnotationFactory.determineAnnotation(o.json)}),function(o){return o&&o.present()})}),getAnnotationResourcesByMotivationForCanvas=createSelector([getPresentAnnotationsCanvas,getMotivation],function(l,o){return filter$1(flatten(l.map(function(u){return u.resources})),function(u){return u.motivations.some(function(d){return o.includes(d)})})}),getAnnotationResourcesByMotivation=createSelector([getPresentAnnotationsOnSelectedCanvases,getMotivation],function(l,o){return filter$1(flatten(l.map(function(u){return u.resources})),function(u){return u.motivations.some(function(d){return o.includes(d)})})}),getSelectedAnnotationId=createSelector([getWindow],function(l){var o=l.selectedAnnotationId;return o}
132),getSelectedAnnotationsOnCanvases=createSelector([getPresentAnnotationsOnSelectedCanvases,getSelectedAnnotationId],function(l,o){return l.map(function(u){return{id:u["@id"]||u.id,resources:u.resources.filter(function(d){return o===d.id})}}).filter(function(u){return u.resources.length>0})}),getSearches=function(o){return miradorSlice(o).searches},getSearchForWindow=createSelector([function(l,o){var u=o.windowId;return u},getSearches],function(l,o){return!l||!o?{}:o[l]}),getSearchForCompanionWindow=createSelector([getSearchForWindow,function(l,o){var u=o.companionWindowId;return u}],function(l,o){if(!(!l||!o))return l[o]}),getSearchResponsesForCompanionWindow=createSelector([getSearchForCompanionWindow],function(l){return l?Object.values(l.data):[]}),getSearchQuery=createSelector([getSearchForCompanionWindow],function(l){return l&&l.query}),getSearchIsFetching=createSelector([getSearchResponsesForCompanionWindow],function(l){return l.some(function(o){return o.isFetching})}),getSearchNumTotal=createSelector([getSearchForCompanionWindow],function(l){var o;if(!(!l||!l.data)){var u=Object.values(l.data).find(function(d){return!d.isFetching&&d.json&&d.json.within});return u==null||(o=u.json)===null||o===void 0||(o=o.within)===null||o===void 0?void 0:o.total}}),getNextSearchId=createSelector([getSearchForCompanionWindow],function(l){if(!(!l||!l.data)){var o=Object.values(l.data).find(function(u){return!u.isFetching&&u.json&&u.json.next&&!l.data[u.json.next]});return o&&o.json&&o.json.next}}),getSearchHitsForCompanionWindow=createSelector([getSearchResponsesForCompanionWindow],function(l){return flatten(l.map(function(o){return!o||!o.json||o.isFetching||!o.json.hits?[]:o.json.hits}))}),getSortedSearchHitsForCompanionWindow=createSelector([getSearchHitsForCompanionWindow,getCanvases,function(l,o){var u=o.companionWindowId,d=o.windowId;return function(f){return getResourceAnnotationForSearchHit(l,{annotationUri:f,companionWindowId:u,windowId:d})}}],function(l,o,u){if(!o||o.length===0)return[];if(!l||l.length===0)return[];var d=o.map(function(f){return f.id});return[].concat(l).sort(function(f,p){var h=u(f.annotations[0]),v=u(p.annotations[0]);return d.indexOf(h.targetId)-d.indexOf(v.targetId)})}),searchResultsToAnnotation=function(o){var u=o.map(function(d){if(!(!d||!d.json||d.isFetching||!d.json.resources)){var f=new AnnotationList(d.json);return{id:f.id,resources:f.resources}}}).filter(Boolean);return{id:(u.find(function(d){return d.id})||{}).id,resources:flatten(u.map(function(d){return d.resources}))}},getSearchAnnotationsForCompanionWindow=createSelector([getSearchResponsesForCompanionWindow],function(l){return l&&searchResultsToAnnotation(l)});function sortSearchAnnotationsByCanvasOrder(l,o){if(!l||!l.resources||l.length===0)return[];if(!o||o.length===0)return[];var u=o.map(function(d){return d.id});return[].concat(l.resources).sort(function(d,f){return u.indexOf(d.targetId)-u.indexOf(f.targetId)})}var getSortedSearchAnnotationsForCompanionWindow=createSelector([getSearchAnnotationsForCompanionWindow,getCanvases],function(l,o){return sortSearchAnnotationsByCanvasOrder(l,o)}),getSearchAnnotationsForWindow=createSelector([getSearchForWindow],function(l){if(!l)return[];var o=Object.values(l).map(function(u){return Object.values(u.data)});return o.map(function(u){return searchResultsToAnnotation(u)}).filter(function(u){return u.resources.length>0})}),getSelectedContentSearchAnnotationIds=createSelector([getWindow,getSearchForCompanionWindow],function(l,o){return o&&o.selectedContentSearchAnnotationIds||[]}),getResourceAnnotationForSearchHit=createSelector([getSearchAnnotationsForCompanionWindow,function(l,o){var u=o.annotationUri;return u}],function(l,o){return l.resources.find(function(u){return u.id===o})}),getResourceAnnotationLabel=createSelector([getResourceAnnotationForSearchHit,getManifestLocale],function(l,o){return l&&l.resource&&l.resource.label?PropertyValue.parse(l.resource.label,o).getValues():[]}),getAnnotationById=createSelector([getSearchAnnotationsForWindow,function(l,o){var u=o.annotationId;return u}],function(l,o){var u=flatten(l.map(function(d){return d.resources}));return u.find(function(d){return d.id===o})}),getCanvasForAnnotation=createSelector([getAnnotationById,function(l,o){var u=o.windowId;return function(d){return getCanvas(l,{canvasId:d,windowId:u})}}],function(l,o){var u=l&&l.targetId;return u&&o(u)});function ownKeys$l(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$l(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
132o%2?ownKeys$l(Object(u),!0).forEach(function(d){_defineProperty$p(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$l(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$p(l,o,u){return(o=_toPropertyKey$1k(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1k(l){var o=_toPrimitive$1k(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1k(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _objectDestructuringEmpty(l){if(l==null)throw new TypeError("Cannot destructure "+l)}function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)({}).hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$f.apply(null,arguments)}function _toConsumableArray$7(l){return _arrayWithoutHoles$7(l)||_iterableToArray$7(l)||_unsupportedIterableToArray$8(l)||_nonIterableSpread$7()}function _nonIterableSpread$7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
133In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$8(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$8(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$8(l,o):void 0}}function _iterableToArray$7(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$7(l){if(Array.isArray(l))return _arrayLikeToArray$8(l)}function _arrayLikeToArray$8(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function rangeContainsCanvasId(l,o){for(var u=l.getCanvasIds(),d=0;d<u.length;d+=1)if(Utils.normalisedUrlsMatch(u[d],o))return!0;return!1}function getAllParentIds(l){return l.parentNode===void 0?[]:l.parentNode.parentNode===void 0?[l.parentNode.id]:[].concat(_toConsumableArray$7(getAllParentIds(l.parentNode)),[l.parentNode.id])}function getVisibleNodeIdsInSubTree(l,o){return l.reduce(function(u,d){var f=[];f.push.apply(f,_toConsumableArray$7(u));var p=o.reduce(function(v,g){return v||rangeContainsCanvasId(d.data,g)},!1),h=d.nodes.length>0?getVisibleNodeIdsInSubTree(d.nodes,o):[];return f.push.apply(f,_toConsumableArray$7(h)),(p||h.length>0)&&f.push({containsVisibleCanvas:p,descendantsContainVisibleCanvas:h.length>0,id:d.id,leaf:d.nodes.length===0,parentIds:getAllParentIds(d)}),f},[])}var getVisibleLeafAndBranchNodeIds=createSelector([getSequenceTreeStructure,getVisibleCanvasIds],function(l,o){return o.length===0||!l?[]:getVisibleNodeIdsInSubTree(l.nodes,o)}),getVisibleNodeIds=createSelector([getVisibleLeafAndBranchNodeIds],function(l){return l.map(function(o){return o.id})}),getVisibleBranchNodeIds=createSelector([getVisibleLeafAndBranchNodeIds],function(l){return l.reduce(function(o,u){return u.leaf||!u.descendantsContainVisibleCanvas?o:[].concat(_toConsumableArray$7(o),[u.id])},[])}),getCanvasContainingNodeIds=createSelector([getVisibleLeafAndBranchNodeIds],function(l){return l.reduce(function(o,u){return u.containsVisibleCanvas?[].concat(_toConsumableArray$7(o),[u]):o},[])});function getManuallyExpandedNodeIds(l,o,u){var d=o.companionWindowId,f=getCompanionWindow(l,{companionWindowId:d});return f.tocNodes?Object.keys(f.tocNodes).reduce(function(p,h){return f.tocNodes[h].expanded===u?[].concat(_toConsumableArray$7(p),[h]):p},[]):[]}function getExpandedNodeIds(l,o){var u=o.companionWindowId,d=o.windowId,f=getVisibleBranchNodeIds(l,{companionWindowId:u,windowId:d}),p=getManuallyExpandedNodeIds(l,{companionWindowId:u},!0),h=getManuallyExpandedNodeIds(l,{companionWindowId:u},!1);return without$2.apply(void 0,[union$1(p,f)].concat(_toConsumableArray$7(h)))}function getNodeIdToScrollTo(l,o){var u=_extends$f({},(_objectDestructuringEmpty(o),o)),d=getCanvasContainingNodeIds(l,_objectSpread$l({},u)),f=getManuallyExpandedNodeIds(l,u,!1);if(d&&d.length>0){for(var p=0;p<d[0].parentIds.length;p+=1)if(f.indexOf(d[0].parentIds[p])!==-1)return d[0].parentIds[p];return d[0].id}return null}var getDefaultSidebarVariant=createSelector([getSequenceTreeStructure],function(l){return l&&l.nodes&&l.nodes.length>0?"tableOfContents":"item"}),getCanvasLayers=createSelector([getCanvas],function(l){if(!l)return[];var o=new MiradorCanvas(l);return o.imageResources}),getLayers=createSelector([function(l){return miradorSlice(l).layers||{}},function(l,o){var u=o.windowId;return u},function(l,o){var u=o.canvasId;return u}],function(l,o,u){return(l[o]||{})[u]}),getSortedLayers=createSelector([getCanvasLayers,getLayers],function(l,o){if(!o)return l;var u=l.sort(function(d,f){return o[d.id]&&o[d.id].index!==void 0&&o[f.id]&&o[f.id].index!==void 0?o[d.id].index-o[f.id].index:o[d.id]&&o[d.id].index!==void 0?-1:o[f.id]&&o[f.id].index!==void 0?1:0});return u}
133),getLayersForVisibleCanvases=createSelector([getVisibleCanvasIds,function(l,o){var u=o.windowId;return function(d){return getLayers(l,{canvasId:d,windowId:u})}}],function(l,o){return l.reduce(function(u,d){return u[d]=o(d),u},{})});function _createForOfIteratorHelper(l,o){var u=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!u){if(Array.isArray(l)||(u=_unsupportedIterableToArray$7(l))||o){u&&(l=u);var d=0,f=function(){};return{s:f,n:function(){return d>=l.length?{done:!0}:{done:!1,value:l[d++]}},e:function(m){throw m},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
134In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,h=!0,v=!1;return{s:function(){u=u.call(l)},n:function(){var m=u.next();return h=m.done,m},e:function(m){v=!0,p=m},f:function(){try{h||u.return==null||u.return()}finally{if(v)throw p}}}}function _unsupportedIterableToArray$7(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$7(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$7(l,o):void 0}}function _arrayLikeToArray$7(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys$k(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$k(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$k(Object(u),!0).forEach(function(d){_defineProperty$o(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$k(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$o(l,o,u){return(o=_toPropertyKey$1j(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1j(l){var o=_toPrimitive$1j(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1j(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var getAuthProfiles=createSelector([getConfig],function(l){var o=l.auth,u=o===void 0?{}:o,d=u.serviceProfiles,f=d===void 0?[]:d;return f}),getAccessTokens=function(o){return miradorSlice(o).accessTokens||{}},getAuth=function(o){return miradorSlice(o).auth||{}},selectCurrentAuthServices=createSelector([getVisibleCanvases,selectInfoResponses,getAuthProfiles,getAuth,function(l,o){var u=o.iiifResources;return u}],function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments.length>2?arguments[2]:void 0,d=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0,p=f;if(!p&&l&&(p=flatten(l.map(function(v){var g=new MiradorCanvas(v),m=g.iiifImageResources;return m.map(function(y){var b=y.getServices()[0],w=o[b.id];return w&&w.json?_objectSpread$k(_objectSpread$k({},w.json),{},{options:{}}):b})}))),!p)return[];if(p.length===0)return[];var h=p.map(function(v){var g,m=Utils.getServices(v),y=_createForOfIteratorHelper(u),b;try{var w=function(){var C=b.value,T=m.filter(function(D){return C.profile===D.getProfile()}),O=_createForOfIteratorHelper(T),x;try{for(O.s();!(x=O.n()).done;){var A=x.value;if(g=A,!d[A.id]||d[A.id].isFetching||d[A.id].ok)return{v:A}}}catch(D){O.e(D)}finally{O.f()}},E;for(y.s();!(b=y.n()).done;)if(E=w(),E)return E.v}catch(P){y.e(P)}finally{y.f()}return g});return Object.values(h.reduce(function(v,g){return g&&!v[g.id]&&(v[g.id]=g),v},{}))});function ownKeys$j(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$j(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
134o%2?ownKeys$j(Object(u),!0).forEach(function(d){_defineProperty$n(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$j(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$n(l,o,u){return(o=_toPropertyKey$1i(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toConsumableArray$6(l){return _arrayWithoutHoles$6(l)||_iterableToArray$6(l)||_unsupportedIterableToArray$6(l)||_nonIterableSpread$6()}function _nonIterableSpread$6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
135In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$6(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$6(l){if(Array.isArray(l))return _arrayLikeToArray$6(l)}function _slicedToArray$2(l,o){return _arrayWithHoles$2(l)||_iterableToArrayLimit$2(l,o)||_unsupportedIterableToArray$6(l,o)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$6(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$6(l,o):void 0}}function _arrayLikeToArray$6(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit$2(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o===0){if(Object(u)!==u)return;g=!1}else for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$2(l){if(Array.isArray(l))return l}function _classCallCheck$13(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$$(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1i(d.key),d)}}function _createClass$$(l,o,u){return o&&_defineProperties$$(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1i(l){var o=_toPrimitive$1i(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1i(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var CanvasWorld=(function(){function l(o,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left-to-right";_classCallCheck$13(this,l),this.canvases=o.map(function(f){return new MiradorCanvas(f)}),this.layers=u,this.viewingDirection=d,this._canvasDimensions=null}return _createClass$$(l,[{key:"canvasIds",get:function(){return this.canvases.map(function(u){return u.id})}},{key:"canvasDimensions",get:function(){if(this._canvasDimensions)return this._canvasDimensions;var u=_slicedToArray$2(this.canvasDirection,2),d=u[0],f=u[1],p=f===0?Math.min.apply(Math,_toConsumableArray$6(this.canvases.map(function(b){return b.getHeight()}))):Math.min.apply(Math,_toConsumableArray$6(this.canvases.map(function(b){return b.getWidth()}))),h=0,v=0,g=this.canvases.reduce(function(b,w){var E=0,P=0;return isNaN(w.aspectRatio)||(f===0?(E=p,P=Math.floor(p*w.aspectRatio)):(P=p,E=Math.floor(p*(1/w.aspectRatio)))),b.push({canvas:w,height:E,width:P,x:h,y:v}),h+=d*P,v+=f*E,b},[]),m=f===0?p:Math.abs(v),y=d===0?p:Math.abs(h);return this._canvasDimensions=g.reduce(function(b,w){return b.push(_objectSpread$j(_objectSpread$j({},w),{},{x:d===-1?w.x+y-w.width:w.x,y:f===-1?w.y+m-w.height:w.y})),b},[]),this._canvasDimensions}},{key:"contentResourceToWorldCoordinates",value:function(u){var d=this.canvase
136s.findIndex(function(w){return w.imageResources.find(function(E){return E.id===u.id})}),f=this.canvases[d];if(!f)return[];var p=this.canvasToWorldCoordinates(f.id),h=_slicedToArray$2(p,4),v=h[0],g=h[1],m=h[2],y=h[3],b=f.onFragment(u.id);return b?[v+b[0],g+b[1],b[2],b[3]]:[v,g,m,y]}},{key:"canvasToWorldCoordinates",value:function(u){var d=this.canvasDimensions.find(function(f){return f.canvas.id===u});return[d.x,d.y,d.width,d.height]}},{key:"canvasDirection",get:function(){switch(this.viewingDirection){case"left-to-right":return[1,0];case"right-to-left":return[-1,0];case"top-to-bottom":return[0,1];case"bottom-to-top":return[0,-1];default:return[1,0]}}},{key:"contentResource",value:function(u){var d=this.canvases.find(function(f){return f.imageServiceIds.some(function(p){return normalizeUrl(p,{stripAuthentication:!1})===normalizeUrl(u,{stripAuthentication:!1})})});if(d)return d.imageResources.find(function(f){return normalizeUrl(f.getServices()[0].id,{stripAuthentication:!1})===normalizeUrl(u,{stripAuthentication:!1})})}},{key:"getLayerMetadata",value:function(u){if(this.layers){var d=this.canvases.find(function(v){return v.imageResources.find(function(g){return g.id===u.id})});if(d){var f=d.imageResources.findIndex(function(v){return v.id===u.id}),p=this.layers[d.canvas.id],h=p&&p[u.id];return _objectSpread$j({index:f,opacity:1,total:d.imageResources.length,visibility:!0},h)}}}},{key:"layerOpacityOfImageResource",value:function(u){var d=this.getLayerMetadata(u);return d?d.visibility?d.opacity:0:1}},{key:"layerIndexOfImageResource",value:function(u){var d=this.getLayerMetadata(u);if(d)return d.total-d.index-1}},{key:"offsetByCanvas",value:function(u){var d=this.canvasToWorldCoordinates(u);return{x:d[0],y:d[1]}}},{key:"worldBounds",value:function(){var u=Math.max.apply(Math,_toConsumableArray$6(this.canvasDimensions.map(function(f){return f.x+f.width}))),d=Math.max.apply(Math,_toConsumableArray$6(this.canvasDimensions.map(function(f){return f.y+f.height})));return[0,0,u,d]}},{key:"canvasAtPoint",value:function(u){var d=this.canvasDimensions.find(function(f){return f.x<=u.x&&u.x<=f.x+f.width&&f.y<=u.y&&u.y<=f.y+f.height});return d&&d.canvas}}])})(),getCurrentCanvasWorld=createSelector(getVisibleCanvases,getLayersForVisibleCanvases,getSequenceViewingDirection,function(l,o,u){return new CanvasWorld(l,o,u)});const selectors$1=Object.freeze(Object.defineProperty({__proto__:null,getAccessTokens,getAllowedWindowViewTypes,getAnnotationResourcesByMotivation,getAnnotationResourcesByMotivationForCanvas,getAnnotations,getAuth,getAuthProfiles,getCanvas,getCanvasDescription,getCanvasForAnnotation,getCanvasGrouping,getCanvasGroupings,getCanvasIndex,getCanvasLabel,getCanvasLayers,getCanvases,getCatalog,getCompanionAreaVisibility,getCompanionWindow,getCompanionWindowIdsForPosition,getCompanionWindows,getCompanionWindowsForContent,getCompanionWindowsForPosition,getConfig,getContainerId,getCurrentCanvas,getCurrentCanvasWorld,getDefaultSidebarVariant,getDestructuredMetadata,getElasticLayout,getExpandedNodeIds,getExportableState,getFullScreenEnabled,getLanguagesFromConfigWithCurrent,getLatestError,getLayers,getLayersForVisibleCanvases,getManifest,getManifestAutocompleteService,getManifestDescription,getManifestError,getManifestHomepage,getManifestLocale,getManifestLogo,getManifestMetadata,getManifestProvider,getManifestRelatedContent,getManifestRenderings,getManifestSearchService,getManifestStatus,getManifestThumbnail,getManifestTitle,getManifestUrl,getManifestoInstance,getManifests,getManuallyExpandedNodeIds,getMaximizedWindowsIds,getMetadataLocales,getNextCanvasGrouping,getNextSearchId,getNodeIdToScrollTo,getPresentAnnotationsOnSelectedCanvases,getPreviousCanvasGrouping,getRequestsConfig,getRequiredStatement,getResourceAnnotationForSearchHit,getResourceAnnotationLabel,getRights,getSearchAnnotationsForCompanionWindow,getSearchAnnotationsForWindow,getSearchForWindow,getSearchIsFetching,getSearchNumTotal,getSearchQuery,getSelectedAnnotationId,getSelectedAnnotationsOnCanvases,getSelectedContentSearchAnnotationIds,getSequence,getSequenceBehaviors,getSequenceTreeStructure,getSequenceViewingDirection,getSequenceViewingHint,getSequences,getShowZoomControlsConfig,getSortedLayers,getSortedSearchAnnotationsForCompanionWindow,get
136SortedSearchHitsForCompanionWindow,getTheme,getThemeDirection,getThemeIds,getThumbnailNavigationPosition,getViewer,getVisibleCanvasAudioResources,getVisibleCanvasCaptions,getVisibleCanvasIds,getVisibleCanvasNonTiledResources,getVisibleCanvasVideoResources,getVisibleCanvases,getVisibleNodeIds,getWindow,getWindowConfig,getWindowDraggability,getWindowIds,getWindowManifests,getWindowTitles,getWindowViewType,getWindows,getWorkspace,getWorkspaceType,isFocused,miradorSlice,selectCompanionWindowDimensions,selectCurrentAuthServices,selectInfoResponse,selectInfoResponses,sortSearchAnnotationsByCanvasOrder},Symbol.toStringTag,{value:"Module"}));function ownKeys$i(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$i(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$i(Object(u),!0).forEach(function(d){_defineProperty$m(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$i(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$m(l,o,u){return(o=_toPropertyKey$1h(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1h(l){var o=_toPrimitive$1h(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1h(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var defaultProps={content:null,position:null};function addCompanionWindow(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultProps,d="cw-".concat(v4());return{id:d,payload:_objectSpread$i(_objectSpread$i(_objectSpread$i({},u),o),{},{id:d,windowId:l}),type:ActionTypes.ADD_COMPANION_WINDOW,windowId:l}}function addOrUpdateCompanionWindow(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultProps;return function(d,f){var p=f(),h=o.position,v=h==="left"&&getCompanionWindowIdsForPosition(p,{position:h,windowId:l})[0];d(v?updateCompanionWindow(l,v,o):addCompanionWindow(l,o,u))}}function updateCompanionWindow(l,o,u){return{id:o,payload:u,type:ActionTypes.UPDATE_COMPANION_WINDOW,windowId:l}}function removeCompanionWindow(l,o){return{id:o,type:ActionTypes.REMOVE_COMPANION_WINDOW,windowId:l}}function toggleNode(l,o,u){return function(d,f){var p=f(),h=getManuallyExpandedNodeIds(p,{companionWindowId:o},!1),v=getManuallyExpandedNodeIds(p,{companionWindowId:o},!0),g=getVisibleNodeIds(p,{id:o,windowId:l}),m=h.indexOf(u)!==-1||v.indexOf(u)===-1&&g.indexOf(u)===-1;return d({id:o,payload:_defineProperty$m({},u,{expanded:m}),type:ActionTypes.TOGGLE_TOC_NODE,windowId:l})}}function ownKeys$h(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$h(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$h(Object(u),!0).forEach(function(d){_defineProperty$l(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$h(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$l(l,o,u){return(o=_toPropertyKey$1g(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1g(l){var o=_toPrimitive$1g(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1g(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
136return(o==="string"?String:Number)(l)}function importConfig(l){return{config:l,type:ActionTypes.IMPORT_CONFIG}}function setConfig(l){return{config:l,type:ActionTypes.SET_CONFIG}}function updateConfig(l){return{config:l,type:ActionTypes.UPDATE_CONFIG}}function importMiradorState(l){var o=_objectSpread$h(_objectSpread$h({},l),{},{workspace:_objectSpread$h(_objectSpread$h({},l.workspace),{},{id:v4()})});return{state:o,type:ActionTypes.IMPORT_MIRADOR_STATE}}function addError(l){return{id:"error-".concat(v4()),message:l,type:ActionTypes.ADD_ERROR}}function removeError(l){return{id:l,type:ActionTypes.REMOVE_ERROR}}var _excluded$6=["companionWindows","manifest"];function ownKeys$g(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$g(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$g(Object(u),!0).forEach(function(d){_defineProperty$k(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$g(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$k(l,o,u){return(o=_toPropertyKey$1f(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1f(l){var o=_toPrimitive$1f(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1f(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _toConsumableArray$5(l){return _arrayWithoutHoles$5(l)||_iterableToArray$5(l)||_unsupportedIterableToArray$5(l)||_nonIterableSpread$5()}function _nonIterableSpread$5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
137In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$5(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$5(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$5(l,o):void 0}}function _iterableToArray$5(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$5(l){if(Array.isArray(l))return _arrayLikeToArray$5(l)}function _arrayLikeToArray$5(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _objectWithoutProperties$8(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$6(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.includes(u)||{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$6(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;u[d]=l[d]}return u}function focusWindow(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{pan:o,type:ActionTypes.FOCUS_WINDOW,windowId:l}}function addWindow(l){var o=l.companionWindows,u=l.manifest,d=_objectWithoutProperties$8(l,_excluded$6);return function(f,p){var h=miradorSlice(p()),v=h.config,g=h.workspace.windowIds,m=g===void 0?[]:g,y=m.length,b=d.id||"window-".concat(v4()),w="cw-".concat(v4()),E=[{content:"thumbnailNavigation",default:!0,id:w,position:d.thumbnailNavigationPosition||v.thumbnailNavigation.defaultPosition,windowId:b}].concat(_toConsumableArray$5((o||[]).map(function(T,O){return _objectSpread$g(_objectSpread$g({},T),{},{id:"cw-".concat(v4())})})));(d.sideBarPanel||v.window.defaultSideBarPanel||v.window.sideBarPanel)&&E.unshift({content:d.sideBarPanel||d.defaultSearchQuery&&"search"||v.window.defaultSideBarPanel||v.window.sideBarPanel,default:!0,id:"cw-".concat(v4()),position:"left",windowId:b});var P={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:E.map(function(T){return T.id}),draggingEnabled:!0,highlightAllAnnotations:v.window.highlightAllAnnotations||!1,id:b,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:v.window.sideBarOpenByDefault!==void 0?v.window.sideBarOpenByDefault||!!d.defaultSearchQuery:v.window.sideBarOpen||!!d.defaultSearchQuery,sideBarPanel:d.sideBarPanel||v.window.defaultSideBarPanel||v.window.sideBarPanel,thumbnailNavigationId:w},C=_objectSpread$g(_objectSpread$g({},v.window.elastic||{height:400,width:480}),{},{x:200+(Math.floor(y/10)*50+y*30%300),y:200+y*50%300});f({companionWindows:E,elasticLayout:C,manifest:u,type:ActionTypes.ADD_WINDOW,window:_objectSpread$g(_objectSpread$g({},P),d)})}}function updateWindow(l,o){return{id:l,payload:o,type:ActionTypes.UPDATE_WINDOW}}function maximizeWindow(l,o){return{type:ActionTypes.MAXIMIZE_WINDOW,windowId:l}}function minimizeWindow(l){return{type:ActionTypes.MINIMIZE_WINDOW,windowId:l}}function setCompanionAreaOpen(l,o){return{id:l,payload:{companionAreaOpen:o},type:ActionTypes.UPDATE_WINDOW}}function removeWindow(l){return{type:ActionTypes.REMOVE_WINDOW,windowId:l}}function toggleWindowSideBar(l){return{type:ActionTypes.TOGGLE_WINDOW_SIDE_BAR,windowId:l}}function setWindowThumbnailPosition(l,o){return function(u,d){var f=d(),p=f.windows,h=p[l].thumbnailNavigationId;u({id:h,payload:{position:o},type:ActionTypes.UPDATE_COMPANION_WINDOW})}}function setWindowViewType(l,o){return{type:ActionTypes.SET_WINDOW_VIEW_TYPE,viewType:o,windowId:l}}function showCollectionDialog(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2?arguments[2]:void 0;return{collectionPath:o,manifestId:l,type:ActionTypes.SHOW_COLLECTION_DIALOG,windowId:u}}function hideCollectionDialog(l){return{type:ActionTypes.HIDE_COLLECTION_DIALOG,windowId:l}}function ownKeys$f(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$f(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
137o%2?ownKeys$f(Object(u),!0).forEach(function(d){_defineProperty$j(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$f(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$j(l,o,u){return(o=_toPropertyKey$1e(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1e(l){var o=_toPrimitive$1e(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1e(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function requestManifest(l,o){return{manifestId:l,properties:o,type:ActionTypes.REQUEST_MANIFEST}}function receiveManifest(l,o){return{manifestId:l,manifestJson:o,type:ActionTypes.RECEIVE_MANIFEST}}function receiveManifestFailure(l,o){return{error:o,manifestId:l,type:ActionTypes.RECEIVE_MANIFEST_FAILURE}}function fetchManifest(l,o){return requestManifest(l,_objectSpread$f(_objectSpread$f({},o),{},{isFetching:!0}))}function removeManifest(l){return{manifestId:l,type:ActionTypes.REMOVE_MANIFEST}}function requestInfoResponse(l,o,u){return{imageResource:o,infoId:l,type:ActionTypes.REQUEST_INFO_RESPONSE,windowId:u}}function receiveInfoResponse(l,o,u,d){return{infoId:l,infoJson:o,ok:u,tokenServiceId:d,type:ActionTypes.RECEIVE_INFO_RESPONSE}}function receiveDegradedInfoResponse(l,o,u,d,f){return{infoId:l,infoJson:o,ok:u,tokenServiceId:d,type:ActionTypes.RECEIVE_DEGRADED_INFO_RESPONSE,windowId:f}}function receiveInfoResponseFailure(l,o,u){return{error:o,infoId:l,tokenServiceId:u,type:ActionTypes.RECEIVE_INFO_RESPONSE_FAILURE}}function fetchInfoResponse(l){var o=l.imageId,u=l.imageResource,d=l.windowId,f=u&&u.getServices()[0],p=o||f.id;return requestInfoResponse(p,f,d)}function removeInfoResponse(l){return{infoId:l,type:ActionTypes.REMOVE_INFO_RESPONSE}}function ownKeys$e(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$e(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$e(Object(u),!0).forEach(function(d){_defineProperty$i(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$e(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$i(l,o,u){return(o=_toPropertyKey$1d(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1d(l){var o=_toPrimitive$1d(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1d(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function setCanvas(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return function(f,p){var h=p(),v=getConfig(h).osdConfig.preserveViewport,g=u;if(!g){var m=getCanvasGrouping(h,{canvasId:o,windowId:l});g=(m||[]).map(function(y){return y.id})}f(_objectSpread$e(_objectSpread$e({},d),{},{canvasId:o,preserveViewport:v,type:ActionTypes.SET_CANVAS,visibleCanvases:g,windowId:l}))}}function setNextCanvas(l){return function(o,u){var d=u(),f=getNextCanvasGrouping(d,{windowId:l}),p=(f||[]).map(function(h){return h.id});f&&o(setCanvas(l,p[0],p))}}function setPreviousCanvas(l){return function(o,u){var d=u(),f=getPreviousCanvasGrouping(d,{windowId:l}),p=(f||[]).map(function(h){return h.id});f&&o(setCanvas(l,p[0],p))}}function updateViewport(l,o){return{payload:o,type:ActionTypes.UPDATE_VIEWPORT,windowId:l}}
137function updateWorkspace(l){return{config:l,type:ActionTypes.UPDATE_WORKSPACE}}function setWorkspaceFullscreen(l){return{isFullscreenEnabled:l,type:ActionTypes.SET_WORKSPACE_FULLSCREEN}}function toggleZoomControls(l){return{showZoomControls:l,type:ActionTypes.TOGGLE_ZOOM_CONTROLS}}function updateWorkspaceMosaicLayout(l){return{layout:l,type:ActionTypes.UPDATE_WORKSPACE_MOSAIC_LAYOUT}}function setWorkspaceAddVisibility(l){return{isWorkspaceAddVisible:l,type:ActionTypes.SET_WORKSPACE_ADD_VISIBILITY}}function setWorkspaceViewportPosition(l){var o=l.x,u=l.y;return{payload:{position:{x:o,y:u}},type:ActionTypes.SET_WORKSPACE_VIEWPORT_POSITION}}function setWorkspaceViewportDimensions(l){var o=l.width,u=l.height;return{payload:{position:{height:u,width:o}},type:ActionTypes.SET_WORKSPACE_VIEWPORT_POSITION}}function toggleDraggingEnabled(){return{type:ActionTypes.TOGGLE_DRAGGING}}function requestCanvasAnnotations(l,o){return{canvasId:o,type:ActionTypes.REQUEST_CANVAS_ANNOTATIONS,windowId:l}}function requestAnnotation(l,o){return{annotationId:o,targetId:l,type:ActionTypes.REQUEST_ANNOTATION}}function receiveAnnotation(l,o,u){return{annotationId:o,annotationJson:u,targetId:l,type:ActionTypes.RECEIVE_ANNOTATION}}function receiveAnnotationFailure(l,o,u){return{annotationId:o,error:u,targetId:l,type:ActionTypes.RECEIVE_ANNOTATION_FAILURE}}function selectAnnotation(l,o){return{annotationId:o,type:ActionTypes.SELECT_ANNOTATION,windowId:l}}function deselectAnnotation(l,o){return{annotationId:o,type:ActionTypes.DESELECT_ANNOTATION,windowId:l}}function toggleAnnotationDisplay(l){return{type:ActionTypes.TOGGLE_ANNOTATION_DISPLAY,windowId:l}}function hoverAnnotation(l,o){return{annotationIds:o,type:ActionTypes.HOVER_ANNOTATION,windowId:l}}function ownKeys$d(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$d(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$d(Object(u),!0).forEach(function(d){_defineProperty$h(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$d(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$h(l,o,u){return(o=_toPropertyKey$1c(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1c(l){var o=_toPrimitive$1c(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1c(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function addAuthenticationRequest(l,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return{id:o,profile:u,type:ActionTypes.ADD_AUTHENTICATION_REQUEST,windowId:l}}function resolveAuthenticationRequest(l,o,u){return _objectSpread$d({id:l,tokenServiceId:o,type:ActionTypes.RESOLVE_AUTHENTICATION_REQUEST},u)}function requestAccessToken(l,o){return{authId:o,serviceId:l,type:ActionTypes.REQUEST_ACCESS_TOKEN}}function receiveAccessToken(l,o,u){return{authId:l,json:u,serviceId:o,type:ActionTypes.RECEIVE_ACCESS_TOKEN}}function receiveAccessTokenFailure(l,o,u){return{authId:l,error:u,serviceId:o,type:ActionTypes.RECEIVE_ACCESS_TOKEN_FAILURE}}function resolveAccessTokenRequest(l,o,u){return u.accessToken?receiveAccessToken(l,o,u):receiveAccessTokenFailure(l,o,u)}function resetAuthenticationState(l){var o=l.authServiceId,u=l.tokenServiceId;return{id:o,tokenServiceId:u,type:ActionTypes.RESET_AUTHENTICATION_STATE}}function updateElasticWindowLayout(l,o){return{payload:o,type:ActionTypes.UPDATE_ELASTIC_WINDOW_LAYOUT,windowId:l}}function requestSearch(l,o,u,d){return{companionWindowId:o,query:d,searchId:u,type:ActionTypes.REQUEST_SEARCH,windowId:l}}function receiveSearch(l,o,u,d){return{companionWindowId:o,searchId:u,searchJson:d,type:ActionTypes.RECEIVE_SEARCH,windowId:l}}function receiveSearchFailure(l,o,u,d){return{companionWindowId:o,error:d,searchId:u,type:ActionTypes.RECEIVE_SEARCH_FAILURE,windowId:l}}function removeSearch(l,o){return{companionWindowId:o,type:ActionTypes.REMOVE_SEARCH,windowId:l}}function fetchSearch(l,o,u,d){return requestSearch(l,o,u,d)}function setContentSearchCurrentAnnotation(l,o,u){return{annotationIds:u,companionWindowId:o,type:ActionTypes.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS,windowId:l}}function updateLayers(l,o,u){return{canvasId:o,payload:u,type:ActionTypes.UPDATE_LAYERS,windowId:l}}function addResource(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0;return{manifestId:l,manifestJson:o,payload:u,type:ActionTypes.ADD_RESOURCE}}function removeResource(l){return{manifestId:l,type:ActionTypes.REMOVE_RESOURCE}}const actions$1=Object.freeze(Object.defineProperty({__proto__:null,addAuthenticationRequest,addCompanionWindow,addError,addOrUpdateCompanionWindow,addResource,addWindow,deselectAnnotation,fetchInfoResponse,fetchManifest,fetchSearch,focusWindow,hideCollectionDialog,hoverAnnotation,importConfig,importMiradorState,maximizeWindow,minimizeWindow,receiveAcce
137ssToken,receiveAccessTokenFailure,receiveAnnotation,receiveAnnotationFailure,receiveDegradedInfoResponse,receiveInfoResponse,receiveInfoResponseFailure,receiveManifest,receiveManifestFailure,receiveSearch,receiveSearchFailure,removeCompanionWindow,removeError,removeInfoResponse,removeManifest,removeResource,removeSearch,removeWindow,requestAccessToken,requestAnnotation,requestCanvasAnnotations,requestInfoResponse,requestManifest,requestSearch,resetAuthenticationState,resolveAccessTokenRequest,resolveAuthenticationRequest,selectAnnotation,setCanvas,setCompanionAreaOpen,setConfig,setContentSearchCurrentAnnotation,setNextCanvas,setPreviousCanvas,setWindowThumbnailPosition,setWindowViewType,setWorkspaceAddVisibility,setWorkspaceFullscreen,setWorkspaceViewportDimensions,setWorkspaceViewportPosition,showCollectionDialog,toggleAnnotationDisplay,toggleDraggingEnabled,toggleNode,toggleWindowSideBar,toggleZoomControls,updateCompanionWindow,updateConfig,updateElasticWindowLayout,updateLayers,updateViewport,updateWindow,updateWorkspace,updateWorkspaceMosaicLayout},Symbol.toStringTag,{value:"Module"}));var makeStyles$1={},_extends$e={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,(function(l){function o(){return l.exports=o=Object.assign?Object.assign.bind():function(u){for(var d=1;d<arguments.length;d++){var f=arguments[d];for(var p in f)({}).hasOwnProperty.call(f,p)&&(u[p]=f[p])}return u},l.exports.__esModule=!0,l.exports.default=l.exports,o.apply(null,arguments)}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(_extends$e)),_extends$e.exports}const require$$1$2=getAugmentedNamespace(esm$a);var defaultTheme={},createTheme={},defineProperty={exports:{}},toPropertyKey={exports:{}},toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,(function(l){var o=require_typeof().default;function u(d,f){if(o(d)!="object"||!d)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var h=p.call(d,f||"default");if(o(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(d)}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,(function(l){var o=require_typeof().default,u=requireToPrimitive();function d(f){var p=u(f,"string");return o(p)=="symbol"?p:p+""}l.exports=d,l.exports.__esModule=!0,l.exports.default=l.exports})(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,(function(l){var o=requireToPropertyKey();function u(d,f,p){return(f=o(f))in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,d}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(defineProperty)),defineProperty.exports}var objectWithoutProperties={exports:{}},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,(function(l){function o(u,d){if(u==null)return{};var f={};for(var p in u)if({}.hasOwnProperty.call(u,p)){if(d.indexOf(p)!==-1)continue;f[p]=u[p]}return f}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var hasRequiredObjectWithoutProperties;function requireObjectWithoutProperties(){return hasRequiredObjectWithoutProperties||(hasRequiredObjectWithoutProperties=1,(function(l){var o=requireObjectWithoutPropertiesLoose();function u(d,f){if(d==null)return{};var p,h,v=o(d,f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);for(h=0;h<g.length;h++)p=g[h],f.indexOf(p)===-1&&{}.propertyIsEnumerable.call(d,p)&&(v[p]=d[p])}return v}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(objectWithoutProperties)),objectWithoutProperties.exports}var createBreakpoints={},hasRequiredCreateBreakpoints;function requireCreateBreakpoints(){if(hasRequiredCreateBreakpoints)return createBreakpoints;hasRequiredCreateBreakpoints=1;var l=requireInteropRequireDefault();Object.defineProperty(createBreakpoints,"__esModule",{value:!0}),createBreakpoints.default=f,createBreakpoints.keys=void 0;var o=l(require_extends()),u=l(requireObjectWithoutProperties()),d=["xs","sm","md","lg","xl"];createBreakpoints.keys=d;function f(p){var h=p.values,v=h===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:h,g=p.unit,m=g===void 0?"px":g,y=p.step,b=y===void 0?5:y,w=(0,u.default)(p,["values","unit","step"]);function E(x){var A=typeof v[x]=="number"?v[x]:x;
137return"@media (min-width:".concat(A).concat(m,")")}function P(x){var A=d.indexOf(x)+1,D=v[d[A]];if(A===d.length)return E("xs");var j=typeof D=="number"&&A>0?D:x;return"@media (max-width:".concat(j-b/100).concat(m,")")}function C(x,A){var D=d.indexOf(A);return D===d.length-1?E(x):"@media (min-width:".concat(typeof v[x]=="number"?v[x]:x).concat(m,") and ")+"(max-width:".concat((D!==-1&&typeof v[d[D+1]]=="number"?v[d[D+1]]:A)-b/100).concat(m,")")}function T(x){return C(x,x)}function O(x){return v[x]}return(0,o.default)({keys:d,values:v,up:E,down:P,between:C,only:T,width:O},w)}return createBreakpoints}var createMixins={},hasRequiredCreateMixins;function requireCreateMixins(){if(hasRequiredCreateMixins)return createMixins;hasRequiredCreateMixins=1;var l=requireInteropRequireDefault();Object.defineProperty(createMixins,"__esModule",{value:!0}),createMixins.default=d;var o=l(requireDefineProperty()),u=l(require_extends());function d(f,p,h){var v;return(0,u.default)({gutters:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
138      paddingLeft: theme.spacing(2),
139      paddingRight: theme.spacing(2),
140      [theme.breakpoints.up('sm')]: {
141        paddingLeft: theme.spacing(3),
142        paddingRight: theme.spacing(3),
143      },
144      `].join(`
145`)),(0,u.default)({paddingLeft:p(2),paddingRight:p(2)},m,(0,o.default)({},f.up("sm"),(0,u.default)({paddingLeft:p(3),paddingRight:p(3)},m[f.up("sm")])))},toolbar:(v={minHeight:56},(0,o.default)(v,"".concat(f.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(v,f.up("sm"),{minHeight:64}),v)},h)}return createMixins}var createPalette={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1,Object.defineProperty(common,"__esModule",{value:!0}),common.default=void 0;var l={black:"#000",white:"#fff"},o=l;return common.default=o,common}var grey={},hasRequiredGrey;function requireGrey(){if(hasRequiredGrey)return grey;hasRequiredGrey=1,Object.defineProperty(grey,"__esModule",{value:!0}),grey.default=void 0;var l={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"},o=l;return grey.default=o,grey}var indigo={},hasRequiredIndigo;function requireIndigo(){if(hasRequiredIndigo)return indigo;hasRequiredIndigo=1,Object.defineProperty(indigo,"__esModule",{value:!0}),indigo.default=void 0;var l={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"},o=l;return indigo.default=o,indigo}var pink={},hasRequiredPink;function requirePink(){if(hasRequiredPink)return pink;hasRequiredPink=1,Object.defineProperty(pink,"__esModule",{value:!0}),pink.default=void 0;var l={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"},o=l;return pink.default=o,pink}var red={},hasRequiredRed;function requireRed(){if(hasRequiredRed)return red;hasRequiredRed=1,Object.defineProperty(red,"__esModule",{value:!0}),red.default=void 0;var l={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"},o=l;return red.default=o,red}var orange={},hasRequiredOrange;function requireOrange(){if(hasRequiredOrange)return orange;hasRequiredOrange=1,Object.defineProperty(orange,"__esModule",{value:!0}),orange.default=void 0;var l={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"},o=l;return orange.default=o,orange}var blue={},hasRequiredBlue;function requireBlue(){if(hasRequiredBlue)return blue;
145hasRequiredBlue=1,Object.defineProperty(blue,"__esModule",{value:!0}),blue.default=void 0;var l={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"},o=l;return blue.default=o,blue}var green={},hasRequiredGreen;function requireGreen(){if(hasRequiredGreen)return green;hasRequiredGreen=1,Object.defineProperty(green,"__esModule",{value:!0}),green.default=void 0;var l={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"},o=l;return green.default=o,green}var hasRequiredCreatePalette;function requireCreatePalette(){if(hasRequiredCreatePalette)return createPalette;hasRequiredCreatePalette=1;var l=requireInteropRequireDefault();Object.defineProperty(createPalette,"__esModule",{value:!0}),createPalette.default=T,createPalette.dark=createPalette.light=void 0;var o=l(require_extends()),u=l(requireObjectWithoutProperties()),d=require$$3,f=l(requireCommon()),p=l(requireGrey()),h=l(requireIndigo()),v=l(requirePink()),g=l(requireRed()),m=l(requireOrange()),y=l(requireBlue()),b=l(requireGreen()),w=requireColorManipulator(),E={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:f.default.white,default:p.default[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}};createPalette.light=E;var P={text:{primary:f.default.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:p.default[800],default:"#303030"},action:{active:f.default.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}};createPalette.dark=P;function C(O,x,A,D){var j=D.light||D,M=D.dark||D*1.5;O[x]||(O.hasOwnProperty(A)?O[x]=O[A]:x==="light"?O.light=(0,w.lighten)(O.main,j):x==="dark"&&(O.dark=(0,w.darken)(O.main,M)))}function T(O){var x=O.primary,A=x===void 0?{light:h.default[300],main:h.default[500],dark:h.default[700]}:x,D=O.secondary,j=D===void 0?{light:v.default.A200,main:v.default.A400,dark:v.default.A700}:D,M=O.error,N=M===void 0?{light:g.default[300],main:g.default[500],dark:g.default[700]}:M,q=O.warning,z=q===void 0?{light:m.default[300],main:m.default[500],dark:m.default[700]}:q,H=O.info,U=H===void 0?{light:y.default[300],main:y.default[500],dark:y.default[700]}:H,F=O.success,B=F===void 0?{light:b.default[300],main:b.default[500],dark:b.default[700]}:F,G=O.type,Q=G===void 0?"light":G,K=O.contrastThreshold,Z=K===void 0?3:K,te=O.tonalOffset,oe=te===void 0?.2:te,fe=(0,u.default)(O,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function le(ee){var se=(0,w.getContrastRatio)(ee,P.text.primary)>=Z?P.text.primary:E.text.primary;return se}var Re=function(se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(se=(0,o.default)({},se),!se.main&&se[$e]&&(se.main=se[$e]),!se.main)throw new Error((0,d.formatMuiErrorMessage)(4,$e));if(typeof se.main!="string")throw new Error(_formatMuiErrorMessage(5,JSON.stringify(se.main)));return C(se,"light",Ee,oe),C(se,"dark",xe,oe),se.contrastText||(se.contrastText=le(se.main)),se},Ae={dark:P,light:E},_e=(0,d.deepmerge)((0,o.default)({common:f.default,type:Q,primary:Re(A),secondary:Re(j,"A400","A200","A700"),error:Re(N),warning:Re(z),info:Re(U),success:Re(B),grey:p.default,contrastThreshold:Z,getContrastText:le,augmentColor:Re,tonalOffset:oe},Ae[Q]),fe);return _e}return createPalette}var createTypography={},hasRequiredCreateTypography;function requireCreateTypography(){if(hasRequiredCreateTypography)return createTypography;hasRequiredCreateTypography=1;var l=requireInteropRequireDefault();Object.defineProperty(createTypography,"__esModule",{value:!0}),createTypography.default=g;var o=l(require_extends()),u=l(requireObjectWithoutProperties()),d=require$$3;function f(m){return Math.round(m*1e5)/1e5}function p(m){return f(m)}var h={textTransform:"uppercase"},v='"Roboto", "Helvetica", "Arial", sans-serif';function g(m,y){var b=typeof y=="function"?y(m):y,w=b.fontFamily,E=w===void 0?v:w,P=b.fontSize,C=P===void 0?14:P,T=b.fontWeightLight,O=T===void 0?300:T,x=b.fontWeightRegular,A=x===void 0?400:x,D=b.fontWeightMedium,j=D===void 0?500:D,M=b.fontWeightBold,N=M===void 0?700:M,q=b.htmlFontSize,z=q===void 0?16:q,H=b.allVariants,U=b.pxToRem,F=(0,u.default)(b,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),B=C/14,G=U||function(Z){return"".concat(Z/z*B,"rem")},Q=function(te,oe,fe,le,Re){return(0,o.default)({fontFamily:E,fontWeight:te,fontSize:G(oe),lineHeight:fe},E===v?{letterSpacing:"".concat(f(le/oe),"em")}:{},Re,H)},K={h1:Q(O,96,1.167,-1.5),h2:Q(O,60,1.2,-.5),h3:Q(A,48,1.167,0),h4:Q(A,34,1.235,.25),h5:Q(A,24,1.334,0),h6:Q(j,20,1.6,.15),subtitle1:Q(A,16,1.75,.15),subtitle2:Q(j,14,1.57,.1),body1:Q(A,16,1.5,.15),body2:Q(A,14,1.43,.15),button:Q(j,14,1.75,.4,h),caption:Q(A,12,1.66,.4),overline:Q(A,12,2.66,1,h)};return(0,d.deepmerge)((0,o.default)({htmlFontSize:z,pxToRem:G,round:p,fontFamily:E,fontSize:C,fontWeightLight:O,fontWeightRegular:A,fontWeightMedium:j,fontWeightBold:N},K),F,{clone:!1})}return createTypography}var shadows={},hasRequiredShadows;function requireShadows(){if(hasRequiredShadows)return shadows;hasRequiredShadows=1,Object.defineProperty(shadows,"__esModule",{value:!0}),shadows.default=void 0;var l=.2,o=.14,u=.12;function d(){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(l,")"),"".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(o,")"),"".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(u,")")].join(",")}var f=["none",d(0,2,1,-1,0,1,1,0,0,1,3,0),d(0,3,1,-2,0,2,2,0,0,1,5,0),d(0,3,3,-2,0,3,4,0,0,1,8,0),d(0,2,4,-1,0,4,5,0,0,1,10,0),d(0,3,5,-1,0,5,8,0,0,1,14,0),d(0,3,5,-1,0,6,10,0,0,1,18,0),d(0,4,5,-2,0,7,10,1,0,2,16,1),d(0,5,5,-3,0,8,10,1,0,3,14,2),d(0,5,6,-3,0,9,12,1,0,3,16,2),d(0,6,6,-3,0,10,14,1,0,4,18,3),d(0,6,7,-4,0,11,15,1,0,4,20,3),d(0,7,8,-4,0,12,17,2,0,5,22,4),d(0,7,8,-4,0,13,19,2,0,5,24,4),d(0,7,9,-4,0,14,21,2,0,5,26,4),d(0,8,9,-5,0,15,22,2,0,6,28,5),d(0,8,10,-5,0,16,24,2,0,6,30,5),d(0,8,11,-5,0,17,26,2,0,6,32,5),d(0,9,11,-5,0,18,28,2,0,7,34,6),d(0,9,12,-6,0,19,29,2,0,7,36,6
145),d(0,10,13,-6,0,20,31,3,0,8,38,7),d(0,10,13,-6,0,21,33,3,0,8,40,7),d(0,10,14,-6,0,22,35,3,0,8,42,7),d(0,11,14,-7,0,23,36,3,0,9,44,8),d(0,11,15,-7,0,24,38,3,0,9,46,8)],p=f;return shadows.default=p,shadows}var shape={},hasRequiredShape;function requireShape(){if(hasRequiredShape)return shape;hasRequiredShape=1,Object.defineProperty(shape,"__esModule",{value:!0}),shape.default=void 0;var l={borderRadius:4},o=l;return shape.default=o,shape}var createSpacing={};const require$$0$2=getAugmentedNamespace(esm$9);var hasRequiredCreateSpacing;function requireCreateSpacing(){if(hasRequiredCreateSpacing)return createSpacing;hasRequiredCreateSpacing=1,Object.defineProperty(createSpacing,"__esModule",{value:!0}),createSpacing.default=o;var l=require$$0$2;function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(u.mui)return u;var d=(0,l.createUnarySpacing)({spacing:u}),f=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return v.length===0?d(1):v.length===1?d(v[0]):v.map(function(m){if(typeof m=="string")return m;var y=d(m);return typeof y=="number"?"".concat(y,"px"):y}).join(" ")};return Object.defineProperty(f,"unit",{get:function(){return u}}),f.mui=!0,f}return createSpacing}var transitions={},hasRequiredTransitions;function requireTransitions(){if(hasRequiredTransitions)return transitions;hasRequiredTransitions=1;var l=requireInteropRequireDefault();Object.defineProperty(transitions,"__esModule",{value:!0}),transitions.default=transitions.duration=transitions.easing=void 0;var o=l(requireObjectWithoutProperties()),u={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)"};transitions.easing=u;var d={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};transitions.duration=d;function f(h){return"".concat(Math.round(h),"ms")}var p={easing:u,duration:d,create:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=g.duration,y=m===void 0?d.standard:m,b=g.easing,w=b===void 0?u.easeInOut:b,E=g.delay,P=E===void 0?0:E;return(0,o.default)(g,["duration","easing","delay"]),(Array.isArray(v)?v:[v]).map(function(C){return"".concat(C," ").concat(typeof y=="string"?y:f(y)," ").concat(w," ").concat(typeof P=="string"?P:f(P))}).join(",")},getAutoHeightDuration:function(v){if(!v)return 0;var g=v/36;return Math.round((4+15*Math.pow(g,.25)+g/5)*10)}};return transitions.default=p,transitions}var zIndex={},hasRequiredZIndex;function requireZIndex(){if(hasRequiredZIndex)return zIndex;hasRequiredZIndex=1,Object.defineProperty(zIndex,"__esModule",{value:!0}),zIndex.default=void 0;var l={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},o=l;return zIndex.default=o,zIndex}var hasRequiredCreateTheme;function requireCreateTheme(){if(hasRequiredCreateTheme)return createTheme;hasRequiredCreateTheme=1;var l=requireInteropRequireDefault();Object.defineProperty(createTheme,"__esModule",{value:!0}),createTheme.createMuiTheme=E,createTheme.default=void 0,l(requireDefineProperty());var o=l(requireObjectWithoutProperties()),u=require$$3,d=l(requireCreateBreakpoints()),f=l(requireCreateMixins()),p=l(requireCreatePalette()),h=l(requireCreateTypography()),v=l(requireShadows()),g=l(requireShape()),m=l(requireCreateSpacing()),y=l(requireTransitions()),b=l(requireZIndex());function w(){for(var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=C.breakpoints,O=T===void 0?{}:T,x=C.mixins,A=x===void 0?{}:x,D=C.palette,j=D===void 0?{}:D,M=C.spacing,N=C.typography,q=N===void 0?{}:N,z=(0,o.default)(C,["breakpoints","mixins","palette","spacing","typography"]),H=(0,p.default)(j),U=(0,d.default)(O),F=(0,m.default)(M),B=(0,u.deepmerge)({breakpoints:U,direction:"ltr",mixins:(0,f.default)(U,F,A),overrides:{},palette:H,props:{},shadows:v.default,typography:(0,h.default)(H,q),spacing:F,shape:g.default,transitions:y.default,zIndex:b.default},z),G=arguments.length,Q=new Array(G>1?G-1:0),K=1;K<G;K++)Q[K-1]=arguments[K];return B=Q.reduce(function(Z,te){return(0,u.deepmerge)(Z,te)},B),B}function E(){return w.apply(void 0,arguments)}var P=w;return createTheme.default=P,createTheme}var hasRequiredDefaultTheme;function requireDefaultTheme(){if(hasRequiredDefaultTheme)return defaultTheme;hasRequiredDefaultTheme=1;var l=requireInteropRequireDefault();
145Object.defineProperty(defaultTheme,"__esModule",{value:!0}),defaultTheme.default=void 0;var o=l(requireCreateTheme()),u=(0,o.default)(),d=u;return defaultTheme.default=d,defaultTheme}var hasRequiredMakeStyles;function requireMakeStyles(){if(hasRequiredMakeStyles)return makeStyles$1;hasRequiredMakeStyles=1;var l=requireInteropRequireDefault();Object.defineProperty(makeStyles$1,"__esModule",{value:!0}),makeStyles$1.default=void 0;var o=l(require_extends()),u=require$$1$2,d=l(requireDefaultTheme());function f(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,u.makeStyles)(h,(0,o.default)({defaultTheme:d.default},v))}var p=f;return makeStyles$1.default=p,makeStyles$1}var makeStylesExports=requireMakeStyles();const makeStyles=getDefaultExportFromCjs(makeStylesExports),SuccessOutlinedIcon=createSvgIcon(reactExports.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"})),ReportProblemOutlinedIcon=createSvgIcon(reactExports.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),ErrorOutlineIcon=createSvgIcon(reactExports.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"})),InfoOutlinedIcon=createSvgIcon(reactExports.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"}));var styles$N=function(o){var u=o.palette.type==="light"?darken:lighten,d=o.palette.type==="light"?lighten:darken;return{root:_extends$v({},o.typography.body2,{borderRadius:o.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:u(o.palette.success.main,.6),backgroundColor:d(o.palette.success.main,.9),"& $icon":{color:o.palette.success.main}},standardInfo:{color:u(o.palette.info.main,.6),backgroundColor:d(o.palette.info.main,.9),"& $icon":{color:o.palette.info.main}},standardWarning:{color:u(o.palette.warning.main,.6),backgroundColor:d(o.palette.warning.main,.9),"& $icon":{color:o.palette.warning.main}},standardError:{color:u(o.palette.error.main,.6),backgroundColor:d(o.palette.error.main,.9),"& $icon":{color:o.palette.error.main}},outlinedSuccess:{color:u(o.palette.success.main,.6),border:"1px solid ".concat(o.palette.success.main),"& $icon":{color:o.palette.success.main}},outlinedInfo:{color:u(o.palette.info.main,.6),border:"1px solid ".concat(o.palette.info.main),"& $icon":{color:o.palette.info.main}},outlinedWarning:{color:u(o.palette.warning.main,.6),border:"1px solid ".concat(o.palette.warning.main),"& $icon":{color:o.palette.warning.main}},outlinedError:{color:u(o.palette.error.main,.6),border:"1px solid ".concat(o.palette.error.main),"& $icon":{color:o.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.success.main},filledInfo:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.info.main},filledWarning:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.warning.main},filledError:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.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}}},defaultIconMapping={success:reactExports.createElement(SuccessOutlinedIcon,{fontSize:"inherit"}),warning:reactExports.createElement(ReportProblemOutlinedIcon,{fontSize:"inherit"}),error:reactExports.createElement(ErrorOutlineIcon,{fontSize:"inherit"}),info:reactExports.createElement(InfoOutlinedIcon,{fontSize:"inherit"})},_ref=reactExports.createElement(CloseIcon,{fontSize:"small"}),Alert=reactExports.forwardRef(function(o,u){var d=o.action,f=o.children,p=o.classes,h=o.className,v=o.closeText,g=v===void 0?"Close":v,m=o.color,y=o.icon,b=o.iconMapping,w=b===void 0?defaultIconMapping:b,E=o.onClose,P
145=o.role,C=P===void 0?"alert":P,T=o.severity,O=T===void 0?"success":T,x=o.variant,A=x===void 0?"standard":x,D=_objectWithoutProperties$q(o,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return reactExports.createElement(Paper$1,_extends$v({role:C,square:!0,elevation:0,className:clsx$1(p.root,p["".concat(A).concat(capitalize$1(m||O))],h),ref:u},D),y!==!1?reactExports.createElement("div",{className:p.icon},y||w[O]||defaultIconMapping[O]):null,reactExports.createElement("div",{className:p.message},f),d!=null?reactExports.createElement("div",{className:p.action},d):null,d==null&&E?reactExports.createElement("div",{className:p.action},reactExports.createElement(IconButton$1,{size:"small","aria-label":g,title:g,color:"inherit",onClick:E},_ref)):null)});const Alert$1=withStyles$2(styles$N,{name:"MuiAlert"})(Alert);var ns=function(o){return flatten([o]).map(function(u){return[settings.createGenerateClassNameOptions.productionPrefix,u].join("-")}).join(" ")},_excluded$5=["classes","className"];function _objectWithoutProperties$7(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$5(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.includes(u)||{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$5(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;u[d]=l[d]}return u}function ScrollIndicatedDialogContent$3(l){var o=l.classes,u=l.className,d=_objectWithoutProperties$7(l,_excluded$5),f=[u,o.shadowScrollDialog].join(" ");return React.createElement(DialogContent$1,Object.assign({className:f},d))}ScrollIndicatedDialogContent$3.defaultProps={className:""};function _defineProperty$g(l,o,u){return(o=_toPropertyKey$1b(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1b(l){var o=_toPrimitive$1b(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1b(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var styles$M=function(o){return{shadowScrollDialog:_defineProperty$g(_defineProperty$g(_defineProperty$g(_defineProperty$g(_defineProperty$g({background:"linear-gradient(".concat(o.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(o.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%,"},"background","linear-gradient(".concat(o.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(o.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%;"),"backgroundAttachment","local, local, scroll, scroll"),"backgroundRepeat","no-repeat"),"backgroundSize","100% 40px, 100% 40px, 100% 14px, 100% 14px"),"overflowY","auto")}};const ScrollIndicatedDialogContent$2=withStyles$2(styles$M)(ScrollIndicatedDialogContent$3);var FileCopy={},hasRequiredFileCopy;function requireFileCopy(){if(hasRequiredFileCopy)return FileCopy;hasRequiredFileCopy=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(FileCopy,"__esModule",{value:!0}),FileCopy.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");return FileCopy.default=f,FileCopy}var FileCopyExports=requireFileCopy();const FileCopyIcon=getDefaultExportFromCjs(FileCopyExports);var _excluded$4=["badge","children","containerId","dispatch","BadgeProps","TooltipProps"];function _objectWithoutProperties$6(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$4(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.includes(u)||{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$4(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;u[d]=l[d]}return u}function MiradorMenuButton$1(l){var o=l["aria-label"],u=l.badge,d=l.children,f=l.containerId;l.dispatch;var p=l.BadgeProps,h=l.TooltipProps,v=_objectWithoutProperties$6(l,_excluded$4),g=React.createElement(IconButton$1,v,u?React.createElement(B
145adge$1,p,d):d);return v.disabled?g:React.createElement(Tooltip$1,Object.assign({PopperProps:{container:document.querySelector("#".concat(f," .").concat(ns("viewer")))},title:o},h),g)}MiradorMenuButton$1.defaultProps={badge:!1,BadgeProps:{},dispatch:function(){},TooltipProps:{}};const MiradorMenuButton$2=Object.freeze(Object.defineProperty({__proto__:null,MiradorMenuButton:MiradorMenuButton$1},Symbol.toStringTag,{value:"Module"}));var CopyToClipboard$1=function(o){var u=o.onCopy,d=o.supported,f=o.t;return d?React.createElement(InputAdornment$1,{position:"end"},React.createElement(MiradorMenuButton$1,{"aria-label":f("canvasLink.copyToClipboard"),edge:"end",onClick:u},React.createElement(FileCopyIcon,{fontSize:"small"}))):null};CopyToClipboard$1.propTypes={};var useStyles$5=makeStyles(function(l){return{root:{marginTop:l.spacing(2)}}}),RightsInformation$1=function(o){var u=o.rights,d=o.t,f=useStyles$5(),p=f.root;return u.length?React.createElement(Alert$1,{className:p,severity:"warning"},React.createElement("span",null,d("canvasLink.noteRights",{count:u.length}),": "),u.length===1?React.createElement(Link$1,{href:u[0],rel:"noopener",target:"_blank"},u[0]):React.createElement("ul",null,u.map(function(h){return React.createElement("li",null,React.createElement(Link$1,{href:h,rel:"noopener",target:"_blank"},h))}))):null};RightsInformation$1.propTypes={};var Facebook={},hasRequiredFacebook;function requireFacebook(){if(hasRequiredFacebook)return Facebook;hasRequiredFacebook=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Facebook,"__esModule",{value:!0}),Facebook.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook");return Facebook.default=f,Facebook}var FacebookExports=requireFacebook();const FacebookIcon=getDefaultExportFromCjs(FacebookExports);var Mail={},hasRequiredMail;function requireMail(){if(hasRequiredMail)return Mail;hasRequiredMail=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Mail,"__esModule",{value:!0}),Mail.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}),"Mail");return Mail.default=f,Mail}var MailExports=requireMail();const MailIcon=getDefaultExportFromCjs(MailExports);var Pinterest={},hasRequiredPinterest;function requirePinterest(){if(hasRequiredPinterest)return Pinterest;hasRequiredPinterest=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Pinterest,"__esModule",{value:!0}),Pinterest.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z"}),"Pinterest");return Pinterest.default=f,Pinterest}var PinterestExports=requirePinterest();const PinterestIcon=getDefaultExportFromCjs(PinterestExports);var WhatsApp={},hasRequiredWhatsApp;function requireWhatsApp(){if(hasRequiredWhatsApp)return WhatsApp;hasRequiredWhatsApp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(WhatsApp,"__esModule",{value:!0}),WhatsApp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"}),"WhatsApp");return WhatsApp.default=f,WhatsApp}var WhatsAppExports=requireWhatsApp();const WhatsAppIcon=getDefaultExportFromCjs(WhatsAppExports);var XIcon$1=function(){return React.createElement(SvgIcon$2,{viewBox:"0 0 24 24"},React.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}))},getShareLink$1=function(o,u,d,f,p){var h=d;switch(o&&(h+=" ("+o+")"),f){case"envelope":return"mailto:?subject="+h+"&body="+h+": "+u;case"facebook":return"https://www.facebook.com/sharer/sharer.php?title="+h+"&u="+u;case"pinterest":return"http://pinterest.com/pin/create/bookmarklet/?url="+u+"&description="+h+"&media="+p;case"whatsapp":return"whatsapp://send?text="+h+": "+u;case"x":return"https://x.com/intent/post?text="+(h.length>60?h.substring(0,60)+"...":h)+"&url="+u+"&hashtags=iiif";default:return null}},iconMapping$1={envelope:MailIcon,facebook:FacebookIcon,pinterest:PinterestIcon,whatsapp:WhatsAppIcon,x:XIcon$1},ShareButton$1=function(o){var u=o.attribution,d=o.canvasLink,f=o.label,p=o.provider,h=o.thumbnailUrl,v=o.title,g=getShareLink$1(u,d,f,p,h),m=iconMapping$1[p];return React.createElement(MiradorMenuButton$1,{"aria-label":v,href:encodeURI(g),rel:"noopener",target:"_blank"},React.createElement(m,null))};ShareButton$1.defaultProps={attribution:void 0};ShareButton$1.propTypes={};function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$d.apply(this,arguments)}var useStyles$4=makeStyles(function(l){return{actions:{justifyContent:"space-between",flexWrap:"wrap"},actionButtons:{flexWrap:"wrap"},alert:{marginBottom:l.spacing(1)}}}),supportsClipboard$1="clipboard"in navigator,ShareCanvasLinkDialog=function(o){var u=o.canvase
145s,d=o.config,f=o.containerId,p=o.manifestId,h=o.visibleCanvases,v=o.label,g=o.rights,m=o.t,y=o.updateConfig,b=o.windowViewType,w=d.dialogOpen,E=d.enabled,P=d.showRightsInformation,C=d.getCanvasLink,T=reactExports.useState(!1),O=T[0],x=T[1],A=useStyles$4(),D=A.actions,j=A.actionButtons,M=A.alert;if(!E||!w||h.length===0)return null;var N=function(){return y(_extends$d({},d,{dialogOpen:!1}))},q=C({canvases:u,manifestId:p,visibleCanvases:h,windowViewType:b}),z=function(U){var F;return((F=h[0])===null||F===void 0?void 0:F.imageServiceIds[0])+"/full/"+U+",/0/default.jpg"};return React.createElement(Dialog$1,{container:document.querySelector("#"+f+" ."+ns("viewer")),fullWidth:!0,maxWidth:"sm",scroll:"paper",open:w,onClose:N},React.createElement(DialogTitle$1,{disableTypography:!0},React.createElement(Typography$1,{variant:"h4"},React.createElement(Box,{fontWeight:"fontWeightBold"},m("canvasLink.shareLink")))),React.createElement(ScrollIndicatedDialogContent$2,{dividers:!0},O&&React.createElement(Alert$1,{className:M,closeText:m("canvasLink.close"),onClose:function(){return x(!1)},severity:"success"},m("canvasLink.copiedToClipboard")),React.createElement(TextField$1,{fullWidth:!0,InputProps:{endAdornment:React.createElement(CopyToClipboard$1,{onCopy:function(){navigator.clipboard.writeText(q),x(!0),setTimeout(function(){return x(!1)},3e3)},supported:supportsClipboard$1,t:m}),readOnly:!0},size:"small",value:q,variant:"outlined"}),P&&React.createElement(RightsInformation$1,{t:m,rights:g})),React.createElement(DialogActions$1,{className:D},React.createElement(ButtonGroup$1,{className:j},["envelope","facebook","pinterest","x","whatsapp"].map(function(H){return React.createElement(ShareButton$1,{canvasLink:q,key:H,label:v,provider:H,thumbnailUrl:z(250),title:m("canvasLink.share."+H)})})),React.createElement("div",{style:{flex:"1 0 0"}}),React.createElement(Button$1,{color:"primary",onClick:N},m("canvasLink.close"))))};ShareCanvasLinkDialog.defaultProps={canvases:[],label:"",rights:[],visibleCanvases:[]};ShareCanvasLinkDialog.propTypes={};var Share={},hasRequiredShare;function requireShare(){if(hasRequiredShare)return Share;hasRequiredShare=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Share,"__esModule",{value:!0}),Share.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");return Share.default=f,Share}var ShareExports=requireShare();const ShareIcon=getDefaultExportFromCjs(ShareExports);function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$c.apply(this,arguments)}var ShareControl=function(o){var u=o.containerId,d=o.config,f=o.t,p=o.updateConfig,h=o.windowViewType,v=d.dialogOpen,g=d.enabled,m=d.singleCanvasOnly;return!g||m&&h!=="single"||h==="gallery"?null:React.createElement(MiradorMenuButton$1,{"aria-expanded":v,"aria-label":f("canvasLink.shareLink"),containerId:u,onClick:function(){return p(_extends$c({},d,{dialogOpen:!v}))}},React.createElement(ShareIcon,null))};ShareControl.propTypes={};const translations$5={de:{canvasLink:{close:"Schließen",copiedToClipboard:"Erfolgreich in die Zwischenablage kopiert",copyToClipboard:"In die Zwischenablage kopieren",noteRights:"Bitte beachten Sie den Rechtehinweis",noteRights_plural:"Bitte beachten Sie die Rechtehinweise",share:{envelope:"Per Mail teilen",facebook:"Auf Facebook teilen",pinterest:"Auf Pinterest teilen",whatsapp:"Per WhatsApp teilen",x:"Auf X teilen"},shareLink:"Link auf diese Seite teilen"}},en:{canvasLink:{close:"Close",copiedToClipboard:"Copied successfully to the clipboard",copyToClipboard:"Copy to clipboard",noteRights:"Please note the rights statement",n
145oteRights_plural:"Please note the rights statements",share:{envelope:"Share via mail",facebook:"Share on Facebook",pinterest:"Share on Pinterest",whatsapp:"Share via WhatsApp",x:"Share on X"},shareLink:"Share link to this page"}}};function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$b.apply(this,arguments)}var defaultConfig$2={dialogOpen:!1,enabled:!0,showRightsInformation:!0,singleCanvasOnly:!1},getPluginConfig$4=createSelector([getWindowConfig],function(l){var o=l.canvasLink,u=o===void 0?{}:o;return _extends$b({},defaultConfig$2,u)});const canvasLinkPlugin=[{component:ShareControl,config:{translations:translations$5},mapDispatchToProps:function(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{canvasLink:p}))}}},mapStateToProps:function(o,u){var d=u.windowId;return{containerId:getContainerId(o),config:getPluginConfig$4(o,{windowId:d}),windowViewType:getWindowViewType(o,{windowId:d})}},mode:"add",target:"WindowTopBarPluginArea"},{component:ShareCanvasLinkDialog,config:{translations:translations$5},mapDispatchToProps:function(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{canvasLink:p}))}}},mapStateToProps:function(o,u){var d=u.windowId,f=getWindow(o,{windowId:d}),p=f.manifestId,h=f.view;return{canvases:getCanvases(o,{windowId:d}),containerId:getContainerId(o),manifestId:p,visibleCanvases:getVisibleCanvases(o,{windowId:d}),config:getPluginConfig$4(o,{windowId:d}),rights:getRights(o,{windowId:d}),windowViewType:h}},mode:"add",target:"Window"}],PreviousCanvasIcon=createSvgIcon(reactExports.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),ChevronRight=createSvgIcon(reactExports.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),FirstCanvasIcon=createSvgIcon(reactExports.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),LastCanvasIcon=createSvgIcon(reactExports.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}));var PluginContext=React.createContext();function ownKeys$c(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$c(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$c(Object(u),!0).forEach(function(d){_defineProperty$f(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$c(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$f(l,o,u){return(o=_toPropertyKey$1a(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$1a(l){var o=_toPrimitive$1a(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1a(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _withPlugins(l,o){function u(f,p){var h=reactExports.useContext(PluginContext),v=_objectSpread$c(_objectSpread$c({},f),p?{ref:p}:{}),g=(h||{})[l];if(isEmpty$1(g)||isEmpty$1(g.wrap)&&isEmpty$1(g.add))return React.createElement(o,v);var m=(g.add||[]).map(function(w){return w.component}),y=React.createElement(o,Object.assign({},v,{PluginComponents:m}));if(isEmpty$1(g.wrap))return y;var b=function(E,P){var C=P.component;return React.createElement(C,Object.assign({targetProps:v},v,{PluginComponents:m,TargetComponent:o}),E)};return g.wrap.slice().reverse().reduce(b,React.createElement(o,v))}var d=React.forwardRef(u);return d.displayName="WithPlugins(".concat(l,")"),d}var withPlugins=curry(_withPlugins),mapStateToProps$K=function(o){return{containerId:getContainerId(o)}},enhance$U=compose$2(connect(mapStateToProps$K,null),withPlugins("MiradorMenuButton"));const MiradorMenuButton=enhance$U(MiradorMenuButton$1);var useStyles$3=makeStyles(function(l){var o,u;return{canvasNav:{flexDirection:"column !important"},container:{display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:l.palette.background.paper+" !important",paddingBottom:"0.25em",boxShadow:"inset 0 10px 10px -10px rgba(0, 0, 0, 0.5)",fontSize:"medium"},canvasFooter:{display:"flex",justifyContent:"center"},navContainer:{display:"flex",justifyContent:"center",backgroundColor:l.palette.background.paper,border:"transparent",borderRadius:"0 0 .5rem .5rem",boxShadow:"0 5px 7px 
145-1px "+(l.palette.type==="dark"?"rgb(0, 0, 0)":"rgba(0, 0, 0, 0.25)"),whiteSpace:"pre"},canvasPosition:{padding:"0 0.5em",display:"flex",alignItems:"center",fontFamily:(o=l.typography.fontFamily)!==null&&o!==void 0?o:"sans-serif"},squareButton:{borderRadius:0,borderColor:"lightgrey",borderStyle:"solid",borderWidth:"0px 1px 0px 1px"},edgeButtonLeft:{borderWidth:"0"},edgeButtonRight:{borderWidth:"0"},canvasLabel:{marginTop:"0.5em",minHeight:"1.125rem",color:l.palette.type==="dark"?l.palette.grey[300]:l.palette.grey[600],fontSize:"0.7rem",fontFamily:(u=l.typography.fontFamily)!==null&&u!==void 0?u:"sans-serif"},canvasInput:{marginLeft:"0.5rem",marginRight:"0.3rem",padding:"0 3px",appearance:"textfield",border:"1px solid lightgrey",borderRadius:".3em",textAlign:"right",fontSize:"100%","&::-webkit-outer-spin-button":{appearance:"none"},"&::-webkit-inner-spin-button":{appearance:"none"},width:function(f){var p=f.currentCanvasIndex,h=Math.floor(Math.log10(p+1)+1);return 1.6+h*.3+"rem"}}}}),WindowCanvasNavigationControls$2=function(o){var u=o.canvasId,d=o.canvasLabel,f
145=o.config.handleCanvasLabel,p=f===void 0?function(z){return z}:f,h=o.currentCanvasIndex,v=o.hasNextCanvas,g=o.hasPreviousCanvas,m=o.manifestId,y=o.numCanvases,b=o.setCanvasIndex,w=o.setNextCanvas,E=o.setPreviousCanvas,P=o.targetProps,C=o.windowId,T=reactExports.useState(),O=T[0],x=T[1],A=useStyles$3({currentCanvasIndex:h}),D=useTranslation(),j=D.t,M=function(){O!==h&&(b(O),x(void 0))},N=p({canvasId:u,canvasLabel:d,currentCanvasIndex:h,manifestId:m}),q="canvas-idx-"+C;return React.createElement(Paper$1,{className:classNames(P.classes.controls,A.container,ns("canvas-nav"),P.classes.canvasNav,A.canvasNav),elevation:0,square:!0},React.createElement("div",{className:A.canvasFooter},React.createElement("div",{className:A.navContainer},React.createElement(MiradorMenuButton,{"aria-label":j("firstPage"),className:classNames(A.squareButton,A.edgeButtonLeft),disabled:!g,onClick:function(){return b(0)},size:"small"},React.createElement(FirstCanvasIcon,null)),React.createElement(MiradorMenuButton,{"aria-label":j("previousPage"),className:A.squareButton,disabled:!g,onClick:E,size:"small"},React.createElement(PreviousCanvasIcon,null)),React.createElement("label",{className:classNames(A.canvasPosition,ns("canvas-position")),htmlFor:q},j("scan"),React.createElement("input",{className:A.canvasInput,id:q,max:y,min:1,onChange:function(H){var U=Number.parseInt(H.target.value,10),F=!Number.isNaN(U)&&U>=1&&U<=y;F&&x(U-1)},onBlur:M,onKeyUp:function(H){H.key==="Enter"&&M()},required:!0,size:"small",type:"number",value:(O??h)+1}),"/ ",y),React.createElement(MiradorMenuButton,{"aria-label":j("nextPage"),className:A.squareButton,disabled:!v,onClick:w,size:"small"},React.createElement(ChevronRight,null)),React.createElement(MiradorMenuButton,{"aria-label":j("lastPage"),className:classNames(A.squareButton,A.edgeButtonRight),disabled:!v,onClick:function(){return b(y-1)},size:"small"},React.createElement(LastCanvasIcon,null)))),React.createElement("div",{className:A.canvasLabel},N&&React.createElement(React.Fragment,null,j("pageLabel"),": ",N)))};WindowCanvasNavigationControls$2.defaultProps={canvasId:void 0,canvasLabel:""};WindowCanvasNavigationControls$2.propTypes={};const translations$4={de:{firstPage:"Erste Seite",lastPage:"Letzte Seite",nextPage:"Nächste Seite",pageLabel:"Seite",previousPage:"Vorherige Seite",scan:"Scan"},en:{firstPage:"First page",lastPage:"Last page",nextPage:"Next page",pageLabel:"Page",previousPage:"Previous page",scan:"Scan"}};var getPluginConfig$3=createSelector([getWindowConfig],function(l){var o=l.canvasNavigation,u=o===void 0?{}:o;return u});const canvasNavigationPlugin=[{component:WindowCanvasNavigationControls$2,config:{translations:translations$4},mapDispatchToProps:function(o,u){var d=u.windowId;return{setCanvasIndex:function(p){return o(function(h,v){var g=getCanvasGroupings(v(),{windowId:d}),m=getWindowViewType(v(),{windowId:d}),y=m==="single"?p:Math.ceil(p/2),b=g?.[y],w=(b||[]).map(function(E){return E.id});b&&o(setCanvas(d,w[0],w))})},setNextCanvas:function(){return o(setNextCanvas(d))},setPreviousCanvas:function(){return o(setPreviousCanvas(d))}}},mapStateToProps:function(o,u){var d=u.windowId,f=getCanvases(o,{windowId:d}),p=(getCurrentCanvas(o,{windowId:d})||{}).id,h=getWindow(o,{windowId:d}),v=h.manifestId;return{canvasId:p,canvasLabel:getCanvasLabel(o,{canvasId:p,windowId:d}),config:getPluginConfig$3(o,{windowId:d}),currentCanvasIndex:getCanvasIndex(o,{windowId:d}),hasNextCanvas:!!getNextCanvasGrouping(o,{windowId:d}),hasPreviousCanvas:!!getPreviousCanvasGrouping(o,{windowId:d}),manifestId:v,numCanvases:f.length}},mode:"wrap",target:"WindowCanvasNavigationControls"}];var es={};const require$$0$1=getAugmentedNamespace(actions$1),require$$1$1=getAugmentedNamespace(selectors$1);var reducers={},actions={},hasRequiredActions;function requireActions(){if(hasRequiredActions)return actions;hasRequiredActions=1,Object.defineProperty(actions,"__esModule",{value:!0}),actions.discoveredText=o,actions.requestText=u,actions.receiveText=d,actions.receiveTextFailure=f,actions.requestColors=p,actions.receiveColors=h,actions.PluginActionTypes=void 0;var l={DISCOVERED_TEXT:"mirador-textoverlay/DISCOVERED_TEXT",RECEIVE_TEXT:"mirador-textoverlay/RECEIVE_TEXT",RECEIVE_TEXT_FAILURE:"mirador-textoverlay/RECEIVE_TEXT_FAILURE",REQUEST_TEXT:"mirador-textoverlay/REQUEST_TEXT",REQUEST_COLORS:"mirador-textoverlay/REQUEST_COLORS",RECEIVE_COLORS:"mirador-textoverlay/RECEIVE_COLORS"};actions.PluginActionTypes=l;function o(v,g,m){return m===void 0&&(m="ocr"),{targetId:v,textUri:g,sourceType:m,type:l.DISCOVERED_TEXT}}function u(v,g,m){return{canvasSize:m,targetId:v,textUri:g,type:l.REQUEST_TEXT}}function d(v,g,m,y){return{parsedText:y,sourceType:m,targetId:v,textUri:g,type:l.RECEIVE_TEXT}}function f(v,g,m){return{error:m,targetId:v,textUri:g,type:l.RECEIVE_TEXT_FAILURE}}function p(v,g){return{targetId:v,infoId:g,type:l.REQUEST_COLORS}}function h(v,g,m){return{targetId:v,textColor:g,bgColor:m,type:l.RECEIVE_COLORS}}return actions}var hasRequiredReducers;function requireReducers(){if(hasRequiredReducers)return reducers;hasRequiredReducers=1,Object.defineProperty(reducers,"__esModule",{value:!0}),reducers.textsReducer=void 0;var l=requireActions();function o(){return o=Object.assign?Object.assign.bind():function(d){for(var f=1;f<arguments.length;f++){var p=arguments[f];for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(d[h]=p[h])}return d},o.apply(this,arguments)}var u=function(f,p){var h,v,g,m,y;switch(f===void 0&&(f={}
145),p.type){case l.PluginActionTypes.DISCOVERED_TEXT:return o({},f,(h={},h[p.targetId]=o({},f[p.targetId],{canvasId:p.targetId,source:p.textUri,sourceType:p.sourceType}),h));case l.PluginActionTypes.REQUEST_TEXT:return o({},f,(v={},v[p.targetId]=o({},f[p.targetId],{canvasId:p.targetId,isFetching:!0,source:p.textUri}),v));case l.PluginActionTypes.RECEIVE_TEXT:{var b=f[p.targetId],w=b!==void 0&&!b.error&&!b.isFetching&&b.sourceType==="ocr";if(w)return f}return o({},f,(g={},g[p.targetId]=o({},f[p.targetId],{canvasId:p.targetId,isFetching:!1,source:p.textUri,sourceType:p.sourceType,text:p.parsedText}),g));case l.PluginActionTypes.RECEIVE_TEXT_FAILURE:return o({},f,(m={},m[p.targetId]=o({},f[p.targetId],{canvasId:p.targetId,error:p.error,isFetching:!1,source:p.textUri,sourceType:p.sourceType}),m));case l.PluginActionTypes.RECEIVE_COLORS:return o({},f,(y={},y[p.targetId]=o({},f[p.targetId],{bgColor:p.bgColor,textColor:p.textColor}),y));default:return f}};return reducers.textsReducer=u,reducers}var sagas={},regeneratorRuntime$1={exports:{}},OverloadYield={exports:{}},hasRequiredOverloadYield;function requireOverloadYield(){return hasRequiredOverloadYield||(hasRequiredOverloadYield=1,(function(l){function o(u,d){this.v=u,this.k=d}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(OverloadYield)),OverloadYield.exports}var regenerator$1={exports:{}},regeneratorDefine={exports:{}},hasRequiredRegeneratorDefine;function requireRegeneratorDefine(){return hasRequiredRegeneratorDefine||(hasRequiredRegeneratorDefine=1,(function(l){function o(u,d,f,p){var h=Object.defineProperty;try{h({},"",{})}catch{h=0}l.exports=o=function(g,m,y,b){function w(E,P){o(g,E,function(C){return this._invoke(E,P,C)})}m?h?h(g,m,{value:y,enumerable:!b,configurable:!b,writable:!b}):g[m]=y:(w("next",0),w("throw",1),w("return",2))},l.exports.__esModule=!0,l.exports.default=l.exports,o(u,d,f,p)}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorDefine)),regeneratorDefine.exports}var hasRequiredRegenerator$1;function requireRegenerator$1(){return hasRequiredRegenerator$1||(hasRequiredRegenerator$1=1,(function(l){var o=requireRegeneratorDefine();function u(){var d,f,p=typeof Symbol=="function"?Symbol:{},h=p.iterator||"@@iterator",v=p.toStringTag||"@@toStringTag";function g(T,O,x,A){var D=O&&O.prototype instanceof y?O:y,j=Object.create(D.prototype);return o(j,"_invoke",(function(M,N,q){var z,H,U,F=0,B=q||[],G=!1,Q={p:0,n:0,v:d,a:K,f:K.bind(d,4),d:function(te,oe){return z=te,H=0,U=d,Q.n=oe,m}};function K(Z,te){for(H=Z,U=te,f=0;!G&&F&&!oe&&f<B.length;f++){var oe,fe=B[f],le=Q.p,Re=fe[2];Z>3?(oe=Re===te)&&(U=fe[(H=fe[4])?5:(H=3,3)],fe[4]=fe[5]=d):fe[0]<=le&&((oe=Z<2&&le<fe[1])?(H=0,Q.v=te,Q.n=fe[1]):le<Re&&(oe=Z<3||fe[0]>te||te>Re)&&(fe[4]=Z,fe[5]=te,Q.n=Re,H=0))}if(oe||Z>1)return m;throw G=!0,te}return function(Z,te,oe){if(F>1)throw TypeError("Generator is already running");for(G&&te===1&&K(te,oe),H=te,U=oe;(f=H<2?d:U)||!G;){z||(H?H<3?(H>1&&(Q.n=-1),K(H,U)):Q.n=U:Q.v=U);try{if(F=2,z){if(H||(Z="next"),f=z[Z]){if(!(f=f.call(z,U)))throw TypeError("iterator result is not an object");if(!f.done)return f;U=f.value,H<2&&(H=0)}else H===1&&(f=z.return)&&f.call(z),H<2&&(U=TypeError("The iterator does not provide a '"+Z+"' method"),H=1);z=d}else if((f=(G=Q.n<0)?U:M.call(N,Q))!==m)break}catch(fe){z=d,H=1,U=fe}finally{F=1}}return{value:f,done:G}}})(T,x,A),!0),j}var m={};function y(){}function b(){}function w(){}f=Object.getPrototypeOf;var E=[][h]?f(f([][h]())):(o(f={},h,function(){return this}),f),P=w.prototype=y.prototype=Object.create(E);function C(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,w):(T.__proto__=w,o(T,v,"GeneratorFunction")),T.prototype=Object.create(P),T}return b.prototype=w,o(P,"constructor",w),o(w,"constructor",b),b.displayName="GeneratorFunction",o(w,v,"GeneratorFunction"),o(P),o(P,v,"Generator"),o(P,h,function(){return this}),o(P,"toString",function(){return"[object Generator]"}),(l.exports=u=function(){return{w:g,m:C}},l.exports.__esModule=!0,l.exports.default=l.exports)()}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(regenerator$1)),regenerator$1.exports}var regeneratorAsync={exports:{}}
145,regeneratorAsyncGen={exports:{}},regeneratorAsyncIterator={exports:{}},hasRequiredRegeneratorAsyncIterator;function requireRegeneratorAsyncIterator(){return hasRequiredRegeneratorAsyncIterator||(hasRequiredRegeneratorAsyncIterator=1,(function(l){var o=requireOverloadYield(),u=requireRegeneratorDefine();function d(f,p){function h(g,m,y,b){try{var w=f[g](m),E=w.value;return E instanceof o?p.resolve(E.v).then(function(P){h("next",P,y,b)},function(P){h("throw",P,y,b)}):p.resolve(E).then(function(P){w.value=P,y(w)},function(P){return h("throw",P,y,b)})}catch(P){b(P)}}var v;this.next||(u(d.prototype),u(d.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),u(this,"_invoke",function(g,m,y){function b(){return new p(function(w,E){h(g,y,w,E)})}return v=v?v.then(b,b):b()},!0)}l.exports=d,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorAsyncIterator)),regeneratorAsyncIterator.exports}var hasRequiredRegeneratorAsyncGen;function requireRegeneratorAsyncGen(){return hasRequiredRegeneratorAsyncGen||(hasRequiredRegeneratorAsyncGen=1,(function(l){var o=requireRegenerator$1(),u=requireRegeneratorAsyncIterator();function d(f,p,h,v,g){return new u(o().w(f,p,h,v),g||Promise)}l.exports=d,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorAsyncGen)),regeneratorAsyncGen.exports}var hasRequiredRegeneratorAsync;function requireRegeneratorAsync(){return hasRequiredRegeneratorAsync||(hasRequiredRegeneratorAsync=1,(function(l){var o=requireRegeneratorAsyncGen();function u(d,f,p,h,v){var g=o(d,f,p,h,v);return g.next().then(function(m){return m.done?m.value:g.next()})}
145l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorAsync)),regeneratorAsync.exports}var regeneratorKeys={exports:{}},hasRequiredRegeneratorKeys;function requireRegeneratorKeys(){return hasRequiredRegeneratorKeys||(hasRequiredRegeneratorKeys=1,(function(l){function o(u){var d=Object(u),f=[];for(var p in d)f.unshift(p);return function h(){for(;f.length;)if((p=f.pop())in d)return h.value=p,h.done=!1,h;return h.done=!0,h}}l.exports=o,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorKeys)),regeneratorKeys.exports}var regeneratorValues={exports:{}},hasRequiredRegeneratorValues;function requireRegeneratorValues(){return hasRequiredRegeneratorValues||(hasRequiredRegeneratorValues=1,(function(l){var o=require_typeof().default;function u(d){if(d!=null){var f=d[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],p=0;if(f)return f.call(d);if(typeof d.next=="function")return d;if(!isNaN(d.length))return{next:function(){return d&&p>=d.length&&(d=void 0),{value:d&&d[p++],done:!d}}}}throw new TypeError(o(d)+" is not iterable")}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorValues)),regeneratorValues.exports}var hasRequiredRegeneratorRuntime;function requireRegeneratorRuntime(){return hasRequiredRegeneratorRuntime||(hasRequiredRegeneratorRuntime=1,(function(l){var o=requireOverloadYield(),u=requireRegenerator$1(),d=requireRegeneratorAsync(),f=requireRegeneratorAsyncGen(),p=requireRegeneratorAsyncIterator(),h=requireRegeneratorKeys(),v=requireRegeneratorValues();function g(){var m=u(),y=m.m(g),b=(Object.getPrototypeOf?Object.getPrototypeOf(y):y.__proto__).constructor;function w(C){var T=typeof C=="function"&&C.constructor;return!!T&&(T===b||(T.displayName||T.name)==="GeneratorFunction")}var E={throw:1,return:2,break:3,continue:3};function P(C){var T,O;return function(x){T||(T={stop:function(){return O(x.a,2)},catch:function(){return x.v},abrupt:function(D,j){return O(x.a,E[D],j)},delegateYield:function(D,j,M){return T.resultName=j,O(x.d,v(D),M)},finish:function(D){return O(x.f,D)}},O=function(D,j,M){x.p=T.prev,x.n=T.next;try{return D(j,M)}finally{T.next=x.n}}),T.resultName&&(T[T.resultName]=x.v,T.resultName=void 0),T.sent=x.v,T.next=x.n;try{return C.call(this,T)}finally{x.p=T.prev,x.n=T.next}}}return(l.exports=g=function(){return{wrap:function(O,x,A,D){return m.w(P(O),x,A,D&&D.reverse())},isGeneratorFunction:w,mark:m.m,awrap:function(O,x){return new o(O,x)},AsyncIterator:p,async:function(O,x,A,D,j){return(w(x)?f:d)(P(O),x,A,D,j)},keys:h,values:v}},l.exports.__esModule=!0,l.exports.default=l.exports)()}l.exports=g,l.exports.__esModule=!0,l.exports.default=l.exports})(regeneratorRuntime$1)),regeneratorRuntime$1.exports}var regenerator,hasRequiredRegenerator;function requireRegenerator(){if(hasRequiredRegenerator)return regenerator;hasRequiredRegenerator=1;var l=requireRegeneratorRuntime()();regenerator=l;try{regeneratorRuntime=l}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=l:Function("r","regeneratorRuntime = r")(l)}return regenerator}const require$$2$4=getAugmentedNamespace(reduxSagaEffects_esm),require$$4=getAugmentedNamespace(actionTypes),require$$7$1=getAugmentedNamespace(MiradorCanvas$1);var selectors={};const require$$0=getAugmentedNamespace(es$1),require$$2$3=getAugmentedNamespace(utils);var hasRequiredSelectors;function requireSelectors(){if(hasRequiredSelectors)return selectors;hasRequiredSelectors=1,Object.defineProperty(selectors,"__esModule",{value:!0}),selectors.getTextsForVisibleCanvases=selectors.getTexts=selectors.getWindowTextOverlayOptions=void 0;var l=require$$0,o=require$$1$1,u=require$$2$3;function d(){return d=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])}return g},d.apply(this,arguments)}var f={enabled:!0,opacity:1,selectable:!1,visible:!1,useAutoColors:!0,textColor:"#000000",bgColor:"#ffffff"},p=(0,l.createSelector)([o.getWindowConfig,o.getTheme],function(g,m){var y=g.textOverlay,b=m.typography.fontFamily;return d({fontFamily:b}
145,f,y??{})});selectors.getWindowTextOverlayOptions=p;var h=function(m){return(0,u.miradorSlice)(m).texts};selectors.getTexts=h;var v=(0,l.createSelector)([o.getVisibleCanvases,h],function(g,m){if(!m||!g)return[];var y=g.map(function(b){return m[b.id]});return y.every(function(b){return b===void 0})?[]:y});return selectors.getTextsForVisibleCanvases=v,selectors}var locales={},hasRequiredLocales;function requireLocales(){return hasRequiredLocales||(hasRequiredLocales=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o={de:{collapseTextOverlayOptions:"Optionen für die Textdarstellung einklappen",disableTextOverlay:"Textdarstellung deaktivieren",enableTextOverlay:"Textdarstellung aktivieren",expandTextOverlayOptions:"Optionen für die Textdarstellung ausklappen",textOpacity:"Text-Transparenz",textSelect:"Text auswählbar",textVisible:"Text sichtbar",colorPicker:"Farbauswahl",textColor:"Farbe für Text",backgroundColor:"Farbe für Zeilenhintergrund",resetTextColors:"Farben zurücksetzen"},en:{collapseTextOverlayOptions:"Collapse text overlay options",disableTextOverlay:"Disable text overlay",enableTextOverlay:"Enable text overlay",expandTextOverlayOptions:"Expand text overlay options",textOpacity:"Text opacity",textSelect:"Text selectable",textVisible:"Text visible",colorPicker:"Color picker",textColor:"Text color",backgroundColor:"Line background color",resetTextColors:"Reset colors"},sr:{collapseTextOverlayOptions:"Затворите опције приказа текста",disableTextOverlay:"Приказ текста онемогућен",enableTextOverlay:"Приказ текста омогућен",expandTextOverlayOptions:"Опције приказа текста отоворен",textOpacity:"Видљивост текста",textSelect:"Селекција текста",textVisible:"Видљив текст",colorPicker:"Избор боја",textColor:"Боја текста",backgroundColor:"Боја позадине реда",resetTextColors:"Ресет боја"}};l.default=o})(locales)),locales}var ocrFormats={},hasRequiredOcrFormats;function requireOcrFormats(){if(hasRequiredOcrFormats)return ocrFormats;hasRequiredOcrFormats=1,Object.defineProperty(ocrFormats,"__esModule",{value:!0}),ocrFormats.parseHocr=m,ocrFormats.parseAlto=b,ocrFormats.parseOcr=E,ocrFormats.parseIiifAnnotations=P;var l=o(requireMax());function o(C){return C&&C.__esModule?C:{default:C}}function u(){return u=Object.assign?Object.assign.bind():function(C){for(var T=1;T<arguments.length;T++){var O=arguments[T];for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(C[x]=O[x])}return C},u.apply(this,arguments)}function d(C,T){var O=typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(O)return(O=O.call(C)).next.bind(O);if(Array.isArray(C)||(O=f(C))||T){O&&(C=O);var x=0;return function(){return x>=C.length?{done:!0}:{done:!1,value:C[x++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
146In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(C,T){if(C){if(typeof C=="string")return p(C,T);var O=Object.prototype.toString.call(C).slice(8,-1);if(O==="Object"&&C.constructor&&(O=C.constructor.name),O==="Map"||O==="Set")return Array.from(C);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return p(C,T)}}function p(C,T){(T==null||T>C.length)&&(T=C.length);for(var O=0,x=new Array(T);O<T;O++)x[O]=C[O];return x}var h=new DOMParser;function v(C){var T=C.split(";").map(function(O){return O.trim()});return T.reduce(function(O,x){var A=x.split(" ")[0];return A==="bbox"?O[A]=x.split(" ").slice(1,5).map(function(D){return Number.parseInt(D,10)}):O[A]=x.split(" ").slice(1,5).join(" "),O},{})}function g(C,T,O){T===void 0&&(T=!1),O===void 0&&(O=1);var x=v(C.title).bbox.map(function(U){return U*O}),A=x[0],D=x[1],j=x[2],M=x[3],N=C.getAttribute("style");N&&(N=N.replace(/font-size:.+;/,""));var q=[{height:M-D,style:N,text:C.textContent,width:j-A,x:A,y:D,isExtra:!1}];if(C.nextSibling instanceof Text){var z=C.nextSibling.wholeText.replace(/\s+/," ");T&&(z=z.trimEnd()),z.length>0&&q.push({height:M-D,text:z,x:j,y:D,isExtra:!0})}var H=q.slice(-1)[0];return T&&H.text.slice(-1)!=="­"&&(H.text+=`
147`),q}function m(C,T){var O=h.parseFromString(C,"text/html"),x=O.querySelector("div.ocr_page"),A=v(x.title).bbox,D=1;
147if(A[2]!==T.width||A[3]!==T.height){var j=T.width/A[2],M=T.height/A[3],N=Math.round(M*A[2]),q=Math.round(j*A[3]);(N!==T.width||q!==T.height)&&console.warn("Differing scale factors for x and y axis: x="+j+", y="+M),D=j}for(var z=[],H=d(x.querySelectorAll("span.ocr_line, span.ocrx_line")),U;!(U=H()).done;){var F=U.value,B=F.querySelectorAll("span.ocrx_word");if(B.length===0)z.push(g(F,!0,D));else{for(var G,Q=g(F,!0,D)[0],K=[],Z=d(B.entries()),te;!(te=Z()).done;){var oe,fe=te.value,le=fe[0],Re=fe[1],Ae=g(Re,le===B.length-1,D),_e=(oe=K.slice(-1).filter(function(Ee){return Ee.isExtra}))===null||oe===void 0?void 0:oe[0];if(_e){var ee=Ae[0].x-_e.x;ee===0&&(ee=1e-4,_e.x-=ee),_e.width=ee}K.push.apply(K,Ae)}var se=(G=K.slice(-1).filter(function(Ee){return Ee.isExtra}))===null||G===void 0?void 0:G[0];if(se){var $e=Q.x+Q.width-se.x;$e===0&&($e=1e-4,se.x-=$e),se.width=$e}Q.spans=K,Q.text=K.map(function(Ee){return Ee.text}).join("").trim(),z.push(Q)}}return{height:A[3]*D,lines:z,width:A[2]*D}}function y(C){var T={bold:"font-weight: bold",italics:"font-style: italic",smallcaps:"font-variant: small-caps",underline:"text-decoration: underline"},O=[];if(C.hasAttribute("FONTFAMILY")&&O.push("font-family: "+C.getAttribute("FONTFAMILY")),C.hasAttribute("FONTTYPE")&&O.push("font-type: "+C.getAttribute("FONTTYPE")),C.hasAttribute("FONTCOLOR")&&O.push("color: #"+C.getAttribute("FONTCOLOR")),C.hasAttribute("FONTSTYLE")){var x=C.getAttribute("FONTSTYLE");x in T&&O.push(T[x])}return O.join(";")}function b(C,T){var O,x=h.parseFromString(C,"text/xml"),A=(O=x.querySelector("alto > Description > MeasurementUnit"))===null||O===void 0?void 0:O.textContent,D=x.querySelector("alto > Layout > Page, alto > Layout > Page > PrintSpace"),j=Number.parseInt(D.getAttribute("WIDTH"),10),M=Number.parseInt(D.getAttribute("HEIGHT"),10),N=1,q=1;A!=="pixel"&&(N=T.width/j,q=T.height/M,j*=N,M*=q);for(var z={},H=x.querySelectorAll("alto > Styles > TextStyle"),U=d(H),F;!(F=U()).done;){var B=F.value;z[B.getAttribute("ID")]=y(B)}for(var G=x.querySelector("SP")!==null,Q=[],K=!1,Z=d(x.querySelectorAll("TextLine")),te;!(te=Z()).done;){for(var oe=te.value,fe={height:Number.parseInt(oe.getAttribute("HEIGHT"),10)*q,text:"",width:Number.parseInt(oe.getAttribute("WIDTH"),10)*N,spans:[],x:Number.parseInt(oe.getAttribute("HPOS"),10)*N,y:Number.parseInt(oe.getAttribute("VPOS"),10)*q},le=oe.querySelectorAll("String, SP, HYP"),Re=d(le.entries()),Ae;!(Ae=Re()).done;){var _e=Ae.value,ee=_e[0],se=_e[1],$e=ee===le.length-1,Ee=se.getAttribute("STYLEREFS"),xe=null;Ee!==null&&(xe=Ee.split(" ").map(function(Te){return z[Te]}).filter(function(Te){return Te!==void 0}).join(""));var Se=Number.parseInt(se.getAttribute("WIDTH"),10)*N,Ie=Number.parseInt(se.getAttribute("HEIGHT"),10)*q;Number.isNaN(Ie)&&(Ie=fe.height);var ge=Number.parseInt(se.getAttribute("HPOS"),10)*N,Y=Number.parseInt(se.getAttribute("VPOS"),10)*q;if(Number.isNaN(Y)&&(Y=fe.y),se.tagName==="String"||se.tagName==="HYP"){var ie,ce=se.getAttribute("CONTENT"),ue=(ie=fe.spans.slice(-1).filter(function(Te){return Te.isExtra}))===null||ie===void 0?void 0:ie[0];if(ue){var pe=ge-ue.x;pe===0&&(pe=1e-4,ue.x-=pe),ue.width=pe}fe.spans.push({isExtra:!1,x:ge,y:Y,width:Se,height:Ie,text:ce,style:xe}),!G&&!$e&&fe.spans.push({isExtra:!0,x:ge+Se,y:Y,height:Ie,text:" "}),K=se.tagName==="HYP"}else se.tagName==="SP"&&(Se===0&&(Se=1e-4,ge-=Se),fe.spans.push({isExtra:!1,x:ge,y:Y,width:Se,height:Ie,text:" "}))}fe.spans.length!==0&&(K||(fe.spans.slice(-1)[0].text+=`
148`),K=!1,fe.text=fe.spans.map(function(Te){var Ce=Te.text;return Ce}).join(""),Q.push(fe))}return{height:M,lines:Q,width:j}}function w(C){return{width:(0,l.default)(C.map(function(T){var O=T.x,x=T.width;return O+x})),height:(0,l.default)(C.map(function(T){var O=T.y,x=T.height;return O+x}))}}function E(C,T){var O;return C.indexOf("<alto")>=0?O=b(C,T):O=m(C,T),(!O.width||!O.height)&&(O=u({},O,w(O.lines))),O}function P(C,T){var O=/.+#xywh=(\d+),(\d+),(\d+),(\d+)/g,x=C.filter(function(j){return j.textGranularity==="line"||j.dcType==="Line"}),A=x.length>0?x:C,D=A.map(function(j){var M;if(j.resource){var N;M=(N=j.resource.chars)!==null&&N!==void 0?N:j.resource.value}else M=j.body.value;var q=j.target||j.on;q=Array.isArray(q)?q[0]:q;var z=q.matchAll(O).next().value.slice(1,5),H=z[0],U=z[1],F=z[2],B=z[3];return{height:parseInt(B,10),text:M,width:parseInt(F,10),x:parseInt(H,10),y:parseInt(U,10)}});return u({},T??w(D),{lines:D})}return ocrFormats}var color={},hasRequiredColor;function requireColor(){if(hasRequiredColor)return color;
148hasRequiredColor=1,Object.defineProperty(color,"__esModule",{value:!0}),color.toHexRgb=l,color.getPageColors=f;function l(p){return!p||!p.startsWith("rgb")?p:"#"+p.replace(/rgba?\((.+)\)/,"$1").split(",").slice(0,3).map(function(h){return h.trim()}).map(function(h){return Number.parseInt(h,10)}).map(function(h){return h.toString(16)}).join("")}function o(p){return p.replace(/rgba?\((.+)\)/,"$1").split(",").map(function(h){return Number.parseInt(h.trim(),10)})}function u(p){var h=p[0],v=p[1],g=p[2],m=[h,v,g].map(function(y){var b=y/255;return b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722}function d(p,h){Array.isArray(p)||(p=o(p)),Array.isArray(h)||(h=o(h));var v=u(p),g=u(h),m=Math.max(v,g),y=Math.min(v,g);return(m+.05)/(y+.05)}function f(p){for(var h={},v=0;v<p.length-3;v+=4){var g,m=p[v],y=p[v+1],b=p[v+2],w="rgb("+m+","+y+","+b+")";h[w]=((g=h[w])!==null&&g!==void 0?g:0)+1}var E=Object.entries(h).sort(function(T,O){var x=T[1],A=O[1];return A-x}),P=E[0][0];E.push(["rgba(0, 0, 0)",0],["rgb(255, 255, 255)",0]);var C=E.slice(1).find(function(T){var O=T[0];return d(P,O)>=7})[0];return{textColor:P,bgColor:C}}return color}var hasRequiredSagas;function requireSagas(){return hasRequiredSagas||(hasRequiredSagas=1,(function(l){var o=requireRegenerator();Object.defineProperty(l,"__esModule",{value:!0}),l.fetchOcrMarkup=te,l.discoverExternalOcr=fe,l.fetchAndProcessOcr=le,l.fetchAnnotationResource=Re,l.fetchExternalAnnotationResources=_e,l.processTextsFromAnnotations=ee,l.onConfigChange=se,l.injectTranslations=$e,l.loadImageData=Ee,l.fetchColors=Se,l.default=Ie;var u=C(requireRegenerator()),d=C(requireUniq()),f=require$$2$4,p=C(requireBrowser$1()),h=C(require$$4),v=require$$0$1,g=require$$1$1,m=C(require$$7$1),y=requireActions(),b=requireSelectors(),w=C(requireLocales()),E=requireOcrFormats(),P=requireColor();function C(ge){return ge&&ge.__esModule?ge:{default:ge}}function T(){return T=Object.assign?Object.assign.bind():function(ge){for(var Y=1;Y<arguments.length;Y++){var ie=arguments[Y];for(var ce in ie)Object.prototype.hasOwnProperty.call(ie,ce)&&(ge[ce]=ie[ce])}return ge},T.apply(this,arguments)}var O=o.mark(fe),x=o.mark(le),A=o.mark(_e),D=o.mark(ee),j=o.mark(se),M=o.mark($e),N=o.mark(Se),q=o.mark(Ie);function z(ge,Y){var ie=typeof Symbol<"u"&&ge[Symbol.iterator]||ge["@@iterator"];if(ie)return(ie=ie.call(ge)).next.bind(ie);if(Array.isArray(ge)||(ie=H(ge))||Y){ie&&(ge=ie);var ce=0;return function(){return ce>=ge.length?{done:!0}:{done:!1,value:ge[ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
149In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(ge,Y){if(ge){if(typeof ge=="string")return U(ge,Y);var ie=Object.prototype.toString.call(ge).slice(8,-1);if(ie==="Object"&&ge.constructor&&(ie=ge.constructor.name),ie==="Map"||ie==="Set")return Array.from(ge);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return U(ge,Y)}}function U(ge,Y){(Y==null||Y>ge.length)&&(Y=ge.length);for(var ie=0,ce=new Array(Y);ie<Y;ie++)ce[ie]=ge[ie];return ce}function F(ge,Y,ie,ce,ue,pe,Te){try{var Ce=ge[pe](Te),Fe=Ce.value}catch(He){ie(He);return}Ce.done?Y(Fe):Promise.resolve(Fe).then(ce,ue)}function B(ge){return function(){var Y=this,ie=arguments;return new Promise(function(ce,ue){var pe=ge.apply(Y,ie);function Te(Fe){F(pe,ce,ue,Te,Ce,"next",Fe)}function Ce(Fe){F(pe,ce,ue,Te,Ce,"throw",Fe)}Te(void 0)})}}var G=/^(.+)#char=(\d+),(\d+)$/;function Q(ge){var Y,ie;return((Y=ge.resource)===null||Y===void 0?void 0:Y.chars)===void 0&&((ie=ge.body)===null||ie===void 0?void 0:ie.value)===void 0&&Object.keys(ge.resource).length===1&&ge.resource["@id"]!==void 0}var K=function(Y){return Y&&(Y.format==="application/xml+alto"||Y.format==="application/alto+xml"||Y.profile&&Y.profile.startsWith("http://www.loc.gov/standards/alto/"))},Z=function(Y){return Y&&(Y.format==="text/vnd.hocr+html"||Y.profile&&(Y.profile==="https://github.com/kba/hocr-spec/blob/master/hocr-spec.md"||Y.profile.startsWith("http://kba.cloud/hocr-spec/")||Y.profile.startsWith("http://kba.github.io/hocr-spec/")))};function te(ge){return oe.apply(this,arguments)}function oe(){return oe=B(u.default.mark(function ge(Y){var ie;return u.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,(0,p.default)(Y);case 2:return ie=ue.sent,ue.abrupt("return",ie.text());case 4:case"end":return ue.stop()}},ge)})),oe.apply(this,arguments)}function fe(ge){var Y,ie,ce,ue,pe,Te,Ce,Fe,He,we,Oe,Ne,qe,Be,Ve,Ye,Ge,dt,ze,nt,Ze,_t,ae;return u.default.wrap(function(he){for(;;
149)switch(he.prev=he.next){case 0:return ie=ge.visibleCanvases,ce=ge.windowId,he.next=3,(0,f.select)(g.getWindowConfig,{windowId:ce});case 3:if(he.t1=Y=he.sent.textOverlay,he.t0=he.t1!==null,!he.t0){he.next=7;break}he.t0=Y!==void 0;case 7:if(!he.t0){he.next=11;break}he.t2=Y,he.next=12;break;case 11:he.t2={enabled:!1};case 12:if(ue=he.t2,pe=ue.enabled,Te=ue.selectable,Ce=ue.visible,pe){he.next=18;break}return he.abrupt("return");case 18:return he.next=20,(0,f.select)(g.getCanvases,{windowId:ce});case 20:return Fe=he.sent,He=(Fe||[]).filter(function(Pe){return ie.includes(Pe.id)}),he.next=24,(0,f.select)(b.getTexts);case 24:we=he.sent,Oe=z(He);case 26:if((Ne=Oe()).done){he.next=51;break}if(qe=Ne.value,Be=qe.__jsonld,Ve=Be.width,Ye=Be.height,Ge=(Array.isArray(qe.__jsonld.seeAlso)?qe.__jsonld.seeAlso:[qe.__jsonld.seeAlso]).filter(function(Pe){return K(Pe)||Z(Pe)})[0],Ge===void 0){he.next=49;break}if(ze=Ge["@id"],nt=((dt=we[qe.id])===null||dt===void 0?void 0:dt.source)===ze,!nt){he.next=35;break}return he.abrupt("continue",49);case 35:if(!(Te||Ce)){he.next=40;break}return he.next=38,(0,f.put)((0,y.requestText)(qe.id,ze,{height:Ye,width:Ve}));case 38:he.next=42;break;case 40:return he.next=42,(0,f.put)((0,y.discoveredText)(qe.id,ze));case 42:if(Ze=new m.default(qe),_t=Ze.iiifImageResources[0],ae=_t?.getServices()[0].id,ae){he.next=47;break}return he.abrupt("return");case 47:return he.next=49,(0,f.put)((0,y.requestColors)(qe.id,ae));case 49:he.next=26;break;case 51:case"end":return he.stop()}},O)}function le(ge){var Y,ie,ce,ue,pe;return u.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Y=ge.targetId,ie=ge.textUri,ce=ge.canvasSize,Ce.prev=1,Ce.next=4,(0,f.call)(te,ie);case 4:return ue=Ce.sent,Ce.next=7,(0,f.call)(E.parseOcr,ue,ce);case 7:return pe=Ce.sent,Ce.next=10,(0,f.put)((0,y.receiveText)(Y,ie,"ocr",pe));case 10:Ce.next=16;break;case 12:return Ce.prev=12,Ce.t0=Ce.catch(1),Ce.next=16,(0,f.put)((0,y.receiveTextFailure)(Y,ie,Ce.t0));case 16:case"end":return Ce.stop()}},x,null,[[1,12]])}function Re(ge){return Ae.apply(this,arguments)}function Ae(){return Ae=B(u.default.mark(function ge(Y){var ie;return u.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,(0,p.default)(Y);case 2:return ie=ue.sent,ue.abrupt("return",ie.json());case 4:case"end":return ue.stop()}},ge)})),Ae.apply(this,arguments)}function _e(ge){var Y,ie,ce,ue,pe,Te,Ce;return u.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(Y=ge.targetId,ie=ge.annotationId,ce=ge.annotationJson,ce.resources.some(Q)){He.next=3;break}return He.abrupt("return");case 3:return ue=(0,d.default)(ce.resources.map(function(we){return we.resource["@id"].split("#")[0]})),He.next=6,(0,f.all)(ue.map(function(we){return(0,f.call)(Re,we)}));case 6:return pe=He.sent,Te=Object.fromEntries(pe.map(function(we){var Oe;return[(Oe=we.id)!==null&&Oe!==void 0?Oe:we["@id"],we]})),Ce=ce.resources.map(function(we){if(!Q(we))return we;var Oe=we.resource["@id"].match(G);if(!Oe){var Ne;return T({},we,{resource:(Ne=Te[we.resource["@id"]])!==null&&Ne!==void 0?Ne:we.resource})}var qe=Te[Oe[1]],Be=Number.parseInt(Oe[2],10),Ve=Number.parseInt(Oe[3],10),Ye=qe.value.substring(Be,Ve);return T({},we,{resource:T({},we.resource,{value:Ye})})}),He.next=11,(0,f.put)((0,v.receiveAnnotation)(Y,ie,T({},ce,{resources:Ce})));case 11:case"end":return He.stop()}},A)}function ee(ge){var Y,ie,ce,ue,pe;return u.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Y=ge.targetId,ie=ge.annotationId,ce=ge.annotationJson,ue=ce.resources.filter(function(Fe){var He;return Fe.motivation==="supplementing"||((He=Fe.resource["@type"])===null||He===void 0?void 0:He.toLowerCase())==="cnt:contentastext"||["Line","Word"].indexOf(Fe.dcType)>=0}),!(ue.length>0)){Ce.next=8;break}return Ce.next=5,(0,f.call)(E.parseIiifAnnotations,ue);case 5:return pe=Ce.sent,Ce.next=8,(0,f.put)((0,y.receiveText)(Y,ie,"annos",pe));case 8:case"end":return Ce.stop()}},D)}function se(ge){var Y,ie,ce,ue,pe,Te,Ce,Fe,He,we,Oe,Ne;return u.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(ie=ge.payload,ce=ge.id,ue=(Y=ie.textOverlay)!==null&&Y!==void 0?Y:{},pe=ue.enabled,Te=ue.selectable,Ce=ue.visible,!(!pe||!Te&&!Ce)){Be.next=4;break}return Be.abrupt("return");case 4:return Be.next=6,(0,f.select)(b.getTextsForVisibleCanvase
149s,{windowId:ce});case 6:if(Fe=Be.sent,He=Fe.filter(function(Ve){var Ye=Ve.sourceType,Ge=Ve.text;return Ye==="ocr"&&Ge===void 0}),we=Fe.length===0||Fe.filter(function(Ve){var Ye=Ve===void 0?{}:Ve,Ge=Ye.sourceType;return Ge==="annos"}).length>0,!(He.length===0&&!we)){Be.next=11;break}return Be.abrupt("return");case 11:return Be.next=13,(0,f.select)(g.getVisibleCanvases,{windowId:ce});case 13:return Oe=Be.sent,Be.next=16,(0,f.all)(He.map(function(Ve){var Ye=Ve.canvasId,Ge=Ve.source,dt=Oe.find(function(Ze){return Ze.id===Ye}).__jsonld,ze=dt.width,nt=dt.height;return(0,f.put)((0,y.requestText)(Ye,Ge,{height:nt,width:ze}))}));case 16:if(!we){Be.next=20;break}return Ne=Oe.map(function(Ve){return Ve.id}),Be.next=20,(0,f.call)(fe,{visibleCanvases:Ne,windowId:ce});case 20:case"end":return Be.stop()}},j)}function $e(){return u.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,(0,f.put)((0,v.updateConfig)({translations:w.default}));case 2:case"end":return Y.stop()}},M)}function Ee(ge){return xe.apply(this,arguments)}function xe(){return xe=B(u.default.mark(function ge(Y){return u.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",new Promise(function(ue,pe){var Te=new Image;Te.crossOrigin="Anonymous",Te.onload=function(){var Ce=document.createElement("canvas"),Fe=Ce.getContext("2d");Fe.drawImage(Te,0,0),ue(Fe.getImageData(0,0,Te.width,Te.height).data)},Te.onerror=pe,Te.src=Y}));case 1:case"end":return ce.stop()}},ge)})),xe.apply(this,arguments)}function Se(ge){var Y,ie,ce,ue,pe,Te,Ce,Fe,He,we,Oe,Ne,qe;return u.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Y=ge.targetId,ie=ge.infoId,Ve.next=3,(0,f.select)(g.selectInfoResponse,{infoId:ie});case 3:if(ce=Ve.sent,ue=ce?.id,ue){Ve.next=14;break}return Ve.next=8,(0,f.race)({success:(0,f.take)(function(Ye){return Ye.type===h.default.RECEIVE_INFO_RESPONSE&&Ye.infoId===ie}),failure:(0,f.take)(function(Ye){return Ye.type===h.default.RECEIVE_INFO_RESPONSE_FAILURE&&Ye.infoId===ie})});case 8:if(Te=Ve.sent,Ce=Te.success,Fe=Te.failure,!Fe){Ve.next=13;break}return Ve.abrupt("return");case 13:ue=(pe=Ce.infoJson)===null||pe===void 0?void 0:pe["@id"];case 14:return Ve.prev=14,He=ue+"/full/200,/0/default.jpg",Ve.next=18,(0,f.call)(Ee,He);case 18:return we=Ve.sent,Ve.next=21,(0,f.call)(P.getPageColors,we);case 21:return Oe=Ve.sent,Ne=Oe.textColor,qe=Oe.bgColor,Ve.next=26,(0,f.put)((0,y.receiveColors)(Y,Ne,qe));case 26:Ve.next=31;break;case 28:Ve.prev=28,Ve.t0=Ve.catch(14),console.error(Ve.t0);case 31:case"end":return Ve.stop()}},N,null,[[14,28]])}function Ie(){return u.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,(0,f.all)([(0,f.takeEvery)(h.default.IMPORT_CONFIG,$e),(0,f.takeEvery)(h.default.RECEIVE_ANNOTATION,_e),(0,f.takeEvery)(h.default.RECEIVE_ANNOTATION,ee),(0,f.takeEvery)(h.default.SET_CANVAS,fe),(0,f.takeEvery)(h.default.UPDATE_WINDOW,se),(0,f.takeEvery)(y.PluginActionTypes.REQUEST_TEXT,le),(0,f.takeEvery)(y.PluginActionTypes.REQUEST_COLORS,Se)]);case 2:case"end":return Y.stop()}},q)}})(sagas)),sagas}var MiradorTextOverlay={},PageTextDisplay={},withStyles$1={},hasRequiredWithStyles;function requireWithStyles(){if(hasRequiredWithStyles)return withStyles$1;hasRequiredWithStyles=1;var l=requireInteropRequireDefault();Object.defineProperty(withStyles$1,"__esModule",{value:!0}),withStyles$1.default=void 0;var o=l(require_extends()),u=require$$1$2,d=l(requireDefaultTheme());function f(h,v){return(0,u.withStyles)(h,(0,o.default)({defaultTheme:d.default},v))}var p=f;return withStyles$1.default=p,withStyles$1}var hasRequiredPageTextDisplay;function requirePageTextDisplay(){return hasRequiredPageTextDisplay||(hasRequiredPageTextDisplay=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=f(requireReact());f(requirePropTypes$1());var u=requireColorManipulator(),d=f(requireWithStyles());function f(O){return O&&O.__esModule?O:{default:O}}function p(){return p=Object.assign?Object.assign.bind():function(O){for(var x=1;x<arguments.length;x++){var A=arguments[x];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(O[D]=A[D])}return O},p.apply(this,arguments)}function h(O,x){var A=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(A)return(A=A.call(O)).next.bind(A);if(Array.isArray(O)||(A=v(O))||x){A&&(O=A);var D=0;return function(){return D>=O.length?{done:!0}:{done:!1,value:O[D++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
150In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(O,x){if(O){if(typeof O=="string")return g(O,x);var A=Object.prototype.toString.call(O).slice(8,-1);
150if(A==="Object"&&O.constructor&&(A=O.constructor.name),A==="Map"||A==="Set")return Array.from(O);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return g(O,x)}}function g(O,x){(x==null||x>O.length)&&(x=O.length);for(var A=0,D=new Array(x);A<x;A++)D[A]=O[A];return D}function m(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function y(O,x){O.prototype=Object.create(x.prototype),O.prototype.constructor=O,b(O,x)}function b(O,x){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,j){return D.__proto__=j,D},b(O,x)}function w(O,x,A){return x in O?Object.defineProperty(O,x,{value:A,enumerable:!0,configurable:!0,writable:!0}):O[x]=A,O}var E=function(x){var A,D,j,M,N,q,z,H;return{textOverlay:{"font-family":(A=x==null||(D=x.textOverlay)===null||D===void 0?void 0:D.overlayFont)!==null&&A!==void 0?A:"sans-serif","& ::selection":{fill:(j=x==null||(M=x.textOverlay)===null||M===void 0?void 0:M.selectionTextColor)!==null&&j!==void 0?j:"rgba(255, 255, 255, 1)",color:(N=x==null||(q=x.textOverlay)===null||q===void 0?void 0:q.selectionTextColor)!==null&&N!==void 0?N:"rgba(255, 255, 255, 1)","background-color":(z=x==null||(H=x.textOverlay)===null||H===void 0?void 0:H.selectionBackgroundColor)!==null&&z!==void 0?z:"rgba(0, 55, 255, 1)"}}}};function P(){return navigator.userAgent.indexOf("Gecko/")>=0}var C=(function(O){y(x,O);function x(D){var j;return j=O.call(this,D)||this,w(m(j),"onPointerDown",function(M){var N=j.props.selectable;N&&M.stopPropagation()}),j.containerRef=o.default.createRef(),j.textContainerRef=o.default.createRef(),j.boxContainerRef=o.default.createRef(),j}var A=x.prototype;return A.componentDidMount=function(){this.textContainerRef.current.addEventListener("pointerdown",this.onPointerDown),this.textContainerRef.current.addEventListener("touchstart",this.onPointerDown)},A.shouldComponentUpdate=function(j){var M=this.props.source;return j.source!==M},A.updateTransforms=function(j,M,N){if(this.containerRef.current){var q=this.props,z=q.width,H=q.height,U=(j-1)*z/2+M*j*-1,F=(j-1)*H/2+N*j*-1,B=["translate("+U+"px, "+F+"px)","scale("+j+")"];this.containerRef.current.style.display=null,this.containerRef.current.style.transform=B.join(" ")}},A.updateColors=function(j,M,N){if(!(!this.textContainerRef.current||!this.boxContainerRef.current)){for(var q=h(this.boxContainerRef.current.querySelectorAll("rect")),z;!(z=q()).done;){var H=z.value;H.style.fill=(0,u.fade)(M,N)}for(var U=h(this.textContainerRef.current.querySelectorAll("text")),F;!(F=U()).done;){var B=F.value;B.style.fill=(0,u.fade)(j,N)}}},A.updateSelectability=function(j){this.textContainerRef.current&&(this.textContainerRef.current.parentElement.style.userSelect=j?"text":"none")},A.render=function(){var j=this.props,M=j.selectable,N=j.visible,q=j.lines,z=j.width,H=j.height,U=j.opacity,F=j.textColor,B=j.bgColor,G=j.useAutoColors,Q=j.pageColors,K=j.classes,Z={willChange:"transform",position:"absolute",display:"none"},te={left:0,top:0,width:z,height:H,userSelect:M?"text":"none",whiteSpace:"pre"},oe=F,fe=B;G&&Q&&(oe=Q.textColor,fe=Q.bgColor);var le=!N&&M?0:U,Re={fill:(0,u.fade)(fe,le)},Ae={fill:(0,u.fade)(oe,le)},_e=q.filter(function(Ee){return Ee.width>0&&Ee.height>0}),ee=P(),se=function(xe){var Se=xe.children;return o.default.createElement("text",{style:Ae},Se)},$e=function(xe){return o.default.createElement("tspan",xe)};return ee&&(se=o.default.Fragment,$e=function(xe){return o.default.createElement("text",p({style:Ae},xe))}),o.default.createElement("div",{ref:this.containerRef,style:Z},o.default.createElement("svg",{style:p({},te,{userSelect:"none"})},o.default.createElement("g",{ref:this.boxContainerRef},_e.map(function(Ee){return o.default.createElement("rect",{key:"rect-"+Ee.x+"."+Ee.y,x:Ee.x,y:Ee.
150y,width:Ee.width,height:Ee.height,style:Re})}))),o.default.createElement("svg",{style:p({},te,{position:"absolute"}),className:K.textOverlay},o.default.createElement("g",{ref:this.textContainerRef},_e.map(function(Ee){return Ee.spans?o.default.createElement(se,{key:"line-"+Ee.x+"-"+Ee.y},Ee.spans.filter(function(xe){return xe.width>0&&xe.height>0}).map(function(xe){var Se=xe.x,Ie=xe.y,ge=xe.width,Y=xe.text;return o.default.createElement($e,{key:"text-"+Se+"-"+Ie,x:Se,y:Ee.y+Ee.height*.75,textLength:ge,fontSize:Ee.height*.75+"px",lengthAdjust:"spacingAndGlyphs"},Y)})):o.default.createElement("text",{key:"line-"+Ee.x+"-"+Ee.y,x:Ee.x,y:Ee.y+Ee.height*.75,textLength:Ee.width,fontSize:Ee.height+"px",lengthAdjust:"spacingAndGlyphs",style:Ae},Ee.text)}))))},x})(o.default.Component);C.propTypes={},C.defaultProps={classes:{},pageColors:void 0};var T=(0,d.default)(E)(C);l.default=T})(PageTextDisplay)),PageTextDisplay}var hasRequiredMiradorTextOverlay;function requireMiradorTextOverlay(){return hasRequiredMiradorTextOverlay||(hasRequiredMiradorTextOverlay=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=h(requireReact()),u=f(requireReactDom());f(requirePropTypes$1());var d=f(requirePageTextDisplay());function f(E){return E&&E.__esModule?E:{default:E}}function p(E){if(typeof WeakMap!="function")return null;var P=new WeakMap,C=new WeakMap;return(p=function(O){return O?C:P})(E)}function h(E,P){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var C=p(P);if(C&&C.has(E))return C.get(E);var T={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in E)if(x!=="default"&&Object.prototype.hasOwnProperty.call(E,x)){var A=O?Object.getOwnPropertyDescriptor(E,x):null;A&&(A.get||A.set)?Object.defineProperty(T,x,A):T[x]=E[x]}return T.default=E,C&&C.set(E,T),T}function v(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function g(E,P){E.prototype=Object.create(P.prototype),E.prototype.constructor=E,m(E,P)}function m(E,P){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,O){return T.__proto__=O,T},m(E,P)}function y(E,P,C){return P in E?Object.defineProperty(E,P,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[P]=C,E}var b=(function(E){g(P,E);function P(T){var O;return O=E.call(this,T)||this,y(v(O),"shouldRenderPage",function(x){var A=x===void 0?{}:x,D=A.lines;return D&&D.length>0&&D.some(function(j){var M=j.text,N=j.spans;return M||N&&N.length>0})}),O.renderRefs=[o.default.createRef(),o.default.createRef()],O.containerRef=o.default.createRef(),O}var C=P.prototype;return C.componentDidMount=function(){var O=this.props,x=O.enabled,A=O.viewer;x&&A&&this.registerOsdCallback(),this.patchAnnotationOverlay()},C.componentDidUpdate=function(O){var x=this.props,A=x.enabled,D=x.viewer,j=x.pageTexts,M=x.textColor,N=x.bgColor,q=x.useAutoColors,z=x.visible,H=x.selectable,U=this.props.opacity;this.patchAnnotationOverlay(),A&&D&&D!==O.viewer&&this.registerOsdCallback();var F=this.shouldRender()&&!this.shouldRender(O)||j.filter(this.shouldRenderPage).length!==O.pageTexts.filter(this.shouldRenderPage).length;F&&this.onUpdateViewport(),H!==O.selectable&&this.renderRefs.filter(function(G){return G.current}).forEach(function(G){return G.current.updateSelectability(H)});var B=function(Q){return Q===void 0&&(Q={}),Q.textColor!==void 0};(z!==O.visible||U!==O.opacity||N!==O.bgColor||M!==O.textColor||q!==O.useAutoColors||j.filter(B).length!==O.pageTexts.filter(B).length)&&(z||(U=0),this.renderRefs.forEach(function(G,Q){if(G.current){var K=M,Z=N;if(q){var te=j[Q],oe=te.textColor,fe=te.bgColor;oe&&(K=oe,Z=fe)}G.current.updateColors(K,Z,U)}}))},C.onUpdateViewport=function(){if(this.shouldRender){var O=this.props,x=O.viewer,A=O.canvasWorld,D=x.viewport.getBounds(!0),j=x.viewport.getZoom(!0);if(this.containerRef.current){var M=x.container,N=M.clientWidth,q=M.clientHeight,z=x.viewport.getFlip(),H=x.viewport.getRotation(),U=[];if(z&&(U.push("translate("+N+"px, 0px)"),U.push("scale(-1, 1)")),H!==0){switch(H){case 90:U.push("translate("+N+"px, 0px)");break;case 180:U.push("translate("+N+"px, "+q+"px)");break;case 270:U.push("translate(0px, "+q+"px)");break;default:console.error("Unsupported rotation: "+H)}U.push("rotate("+H+"deg)")}this.containerRef.current.style.transform=U.join(" ")}for(var F=0;F<x.world.getItemCount();F+=1)if(this.renderRefs[F].current){var B=x.world.getItemAt(F),G=A.canvasDimensions[F],Q=F>0?B.source.dimensions.x-G.width+A.canvasDimensions[F-1].width:0,K=B.source.dimensions.x/G.width;this.renderRefs[F].current.updateTransforms(B.viewportToImageZoom(j),D.x*K-Q,D.y*K)}}},C.shouldRender=function(O){var x=O??this.props,A=x.enabled,D=x.pageTexts;return A&&D.length>0},C.registerOsdCallback=function(){var O=this.props.viewer;O.addHandler("update-viewport",this.onUpdateViewport.bind(this))},C.patchAnnotationOverlay=function(){var O,x,A=this.props,D=A.enabled,j=A.selectable;if(D){var M=(O=this.containerRef.current)===null||O===void 0||(x=O.parentElement.querySelector("div.openseadragon-canvas > div > canvas"))===null||x===void 0?void 0:x.parentElement;M&&(M.style.zIndex=100,M.style.pointerEvents=j?"none":null)}},C.render=function(){var O=this,x=this.props,A=x.pageTexts,D=x.selectable,j=x.visible,M=x.viewer,N=x.opacity,q=x.textColor,z=x.bgColor,H=x.useAutoColors,U=x.fontFamily;return!this.shouldRender()||!M||!A?null:u.default.createPortal(o.default.createElement("div",{ref:this.containerRef,style:{position:"absolute",display:D||j?null:"none"}},A.map(function(F,B){if(!F||!O.shouldRenderPage(F))return null;var G=F.lines,Q=F.source,K=F.width,Z=F.height,te=F.textColor,oe=F.bgColor;return o.default.createElement(d.default,{ref:O.renderRefs[B],key:Q,lines:G,source:Q,selectable:D,visible:j,opacity:N,width:K,height:Z,textColor:q,fontFamily:U,bgColor:z,useAutoColors:H,pageColors:te?{textColor:te,bgColor:oe}:void 0})})),M.canvas)},P})(o.Component);b.propTypes={},b.defaultProps={canvasWorld:void 0,enabled:!0,opacity:.75,pageTexts:void 0,selectable:!0,viewer:void 0,visible:!1,textColor:"#000000",fontFamily:void 0,bgColor:"#ffffff",useAutoColors:!0};var w=b;l.default=w})(MiradorTextOverlay)),MiradorTextOverlay}var OverlaySettings={};const require$$2$2=getAugmentedNamespace(MiradorMenuButton$2);var TextFields={},hasRequiredTextFields;function requireTextFields(){if(hasRequiredTextFields)return TextFields;hasRequiredTextFields=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(TextFields,"__esModule",{value:!0}),TextFields.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}),"TextFields");return TextFields.default=f,TextFields}var Subject={},hasRequiredSubject;function requireSubject(){if(hasRequiredSubject)return Subject;hasRequiredSubject=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();
150Object.defineProperty(Subject,"__esModule",{value:!0}),Subject.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"}),"Subject");return Subject.default=f,Subject}var Opacity={},hasRequiredOpacity;function requireOpacity(){if(hasRequiredOpacity)return Opacity;hasRequiredOpacity=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Opacity,"__esModule",{value:!0}),Opacity.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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"}),"Opacity");return Opacity.default=f,Opacity}var Palette={},hasRequiredPalette;function requirePalette(){if(hasRequiredPalette)return Palette;hasRequiredPalette=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();
150Object.defineProperty(Palette,"__esModule",{value:!0}),Palette.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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"}),"Palette");return Palette.default=f,Palette}const require$$2$1=getAugmentedNamespace(CircularProgress);var useTheme={},hasRequiredUseTheme;function requireUseTheme(){if(hasRequiredUseTheme)return useTheme;hasRequiredUseTheme=1;var l=requireInteropRequireDefault();Object.defineProperty(useTheme,"__esModule",{value:!0}),useTheme.default=d;var o=require$$1$2;l(requireReact());var u=l(requireDefaultTheme());function d(){var f=(0,o.useTheme)()||u.default;return f}return useTheme}const require$$11=getAugmentedNamespace(useMediaQuery);var TextSelectIcon={};const require$$1=getAugmentedNamespace(SvgIcon);var hasRequiredTextSelectIcon;function requireTextSelectIcon(){return hasRequiredTextSelectIcon||(hasRequiredTextSelectIcon=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=p;var o=d(requireReact()),u=d(require$$1);function d(h){return h&&h.__esModule?h:{default:h}}function f(){return f=Object.assign?Object.assign.bind():function(h){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(h[m]=g[m])}return h},f.apply(this,arguments)}function p(h){return o.default.createElement(u.default,f({viewBox:"0 0 24 24"},h),o.default.createElement("path",{d:"M13 19a1 1 0 0 0 1 1h2v2h-2.5c-.55 0-1.5-.45-1.5-1c0 .55-.95 1-1.5 1H8v-2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H8V2h2.5c.55 0 1.5.45 1.5 1c0-.55.95-1 1.5-1H16v2h-2a1 1 0 0 0-1 1v14z"}))}})(TextSelectIcon)),TextSelectIcon}var ButtonContainer={},hasRequiredButtonContainer;function requireButtonContainer(){return hasRequiredButtonContainer||(hasRequiredButtonContainer=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=f(requireReact());f(requirePropTypes$1());var u=f(requireMakeStyles()),d=requireColorManipulator();function f(g){return g&&g.__esModule?g:{default:g}}var p=(0,u.default)(function(g){var m,y=g.palette,b=g.breakpoints,w=y.shades.main,E=y.getContrastText(w),P="linear-gradient("+("to bottom, "+(0,d.fade)(E,0)+" 20%, ")+((0,d.fade)(E,.2)+" 20% 80%, ")+((0,d.fade)(E,0)+" 80%)"),C=P.replace("to bottom","to right");return{root:(m={display:"flex",padding:function(O){var x=O.paddingPrev,A=O.paddingNext;return[[0,A??0,0,x??0]]},borderRight:function(O){var x=O.withBorder;return x?"1px solid "+(0,d.fade)(E,.2):"none"},borderImageSlice:function(O){var x=O.withBorder;return x?1:"unset"},borderImageSource:P,flexDirection:"column"},m[b.down("sm")]={flexDirection:"row",borderRight:function(O){return"none"},borderBottom:function(O){var x=O.withBorder;return x?"1px solid "+(0,d.fade)(E,.2):"none"},borderImageSource:C,padding:function(O){var x=O.paddingPrev,A=O.paddingNext;return[[x??0,0,A??0,0]]}},m)}}),h=function(m){var y=m.children,b=m.withBorder,w=m.paddingPrev,E=m.paddingNext,P=p({withBorder:b,paddingPrev:w,paddingNext:E});return o.default.createElement("div",{className:P.root},y)};h.propTypes={},h.defaultProps={withBorder:!1,paddingNext:void 0,paddingPrev:void 0};var v=h;l.default=v})(ButtonContainer)),ButtonContainer}var OpacityWidget={};const require$$2=getAugmentedNamespace(Slider),require$$6$1=getAugmentedNamespace(esm$5);var hasRequiredOpacityWidget;function requireOpacityWidget(){return hasRequiredOpacityWidget||(hasRequiredOpacityWidget=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=v(requireReact());v(requirePropTypes$1());var u=v(require$$2),d=v(requireMakeStyles()),f=v(require$$11),p=requireColorManipulator(),h=require$$6$1;function v(b){return b&&b.__esModule?b:{default:b}}var g=(0,d.default)(function(b){var w,E=b.palette,P=b.breakpoints,C=E.shades.main;return{root:(w={backgroundColor:(0,p.fade)(C,.8),borderRadius:[[0,0,25,25]],height:150,padding:[[16,8,8,8]],position:"absolute",top:48,zIndex:100},w[P.down("sm")]={top:"auto",right:48,height:"auto",width:150,borderRadius:[[25,0,0,25]],clipPath:"inset(-8px 0 -8px -8px)",paddingTop:12,paddingBottom:2},w)}}),m=function(w){var E=w.opacity,P=w.onChange,C=w.t,T=g(),O=(0,h.useTheme)(),x=(0,f.default)(O.breakpoints.down("sm"));return o.default.createElement("div",{"data-test-id":"text-opacity-slider",id:"text-opacity-slider","aria-labelledby":"text-opacity-slider-label",className:"MuiPaper-elevation4 "+T.root},o.default.createElement(u.default,{orientation:x?"horizontal":"vertical",min:1,max:100,value:E*100,getAriaValueText:function(D){return C("opacityCurrentValue",{value:D})},onChange:function(D,j){return P(j/100)}}))};m.propTypes={};var y=m;l.default=y})(OpacityWidget)),OpacityWidget}var ColorWidget={},SettingsBackupRestore={},hasRequiredSettingsBackupRestore;function requireSettingsBackupRestore(){if(hasRequiredSettingsBackupRestore)return SettingsBackupRestore;hasRequiredSettingsBackupRestore=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();
150Object.defineProperty(SettingsBackupRestore,"__esModule",{value:!0}),SettingsBackupRestore.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"}),"SettingsBackupRestore");return SettingsBackupRestore.default=f,SettingsBackupRestore}var ColorInput={},hasRequiredColorInput;function requireColorInput(){return hasRequiredColorInput||(hasRequiredColorInput=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=f(requireReact());f(requirePropTypes$1());var u=f(requireMakeStyles()),d=requireColor();function f(g){return g&&g.__esModule?g:{default:g}}var p=(0,u.default)({container:{width:48,height:48,padding:8,boxSizing:"border-box"},input:{display:"inline-block",width:32,height:32,borderRadius:16,backgroundColor:function(m){var y=m.color,b=m.autoColors,w=(b??[]).filter(function(P){return P});if(w.length!==2){var E;return(E=w?.[0])!==null&&E!==void 0?E:y}return y},backgroundImage:function(m){var y,b,w=m.color,E=m.autoColors,P=(E??[]).filter(function(C){return C});return P.length!==2?"none":"linear-gradient(90deg, "+((y=P[0])!==null&&y!==void 0?y:w)+" 50%, "+((b=P[1])!==null&&b!==void 0?b:w)+" 50%)"}}}),h=function(m){var y=m.color,b=m.onChange,w=m.title,E=m.autoColors,P=m.className,C=p({color:y,autoColors:E});return o.default.createElement("label",{className:C.container+" "+P},o.default.createElement("div",{title:w,className:"MuiPaper-elevation2 "+C.input}),o.default.createElement("input",{type:"color",value:(0,d.toHexRgb)(E&&E[0]?E[0]:y),style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},onChange:function(O){return b(O.target.value)},onInput:function(O){return b(O.target.value)}}))};h.propTypes={},h.defaultProps={autoColors:void 0,className:""};var v=h;l.default=v})(ColorInput)),ColorInput}var hasRequiredColorWidget;function requireColorWidget(){return hasRequiredColorWidget||(hasRequiredColorWidget=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=g(requireReact());g(requirePropTypes$1());var u=require$$2$2,d=g(requireSettingsBackupRestore()),f=g(requireMakeStyles()),p=requireColorManipulator(),h=g(requireColorInput()),v=requireColor();function g(w){return w&&w.__esModule?w:{default:w}}var m=(0,f.default)(function(w){var E,P,C,T=w.palette,O=w.breakpoints,x=T.shades.main;return{root:(E={display:"flex",flexDirection:"column",position:"absolute",top:48,zIndex:100,borderRadius:[[0,0,25,25]],backgroundColor:(0,p.fade)(x,.8)},E[O.down("sm")]={flexDirection:"row",right:48,top:"auto",borderRadius:[[25,0,0,25]],clipPath:"inset(-8px 0 -8px -8px)"},E),foreground:(P={height:40,padding:[[8,8,0,8]],margin:function(D){return[[D.showResetButton?-12:0,0,0,0]]}},P[O.down("sm")]={height:48,width:40,padding:[[8,0,8,8]],marginTop:0,margin:function(D){return[[0,0,0,D.showResetButton?-12:0]]}},P),background:(C={marginTop:-6,zIndex:-5,height:40,padding:[[0,8,8,8]]},C[O.down("sm")]={height:48,width:40,padding:[[8,8,8,0]],marginTop:0,marginLeft:-6},C)}}),y=function(E){var P=E.textColor,C=E.bgColor,T=E.onChange,O=E.t,x=E.pageColors,A=E.useAutoColors,D=E.containerId,j=!A&&x&&x.some(function(N){return N&&(N.textColor||N.bgColor)}),M=m({showResetButton:j});return o.default.createElement("div",{className:"MuiPaper-elevation4 "+M.root},j&&o.default.createElement(u.MiradorMenuButton,{containerId:D,"aria-label":O("resetTextColors"),onClick:function(){var q,z;return T({useAutoColors:!0,textColor:(q=x.map(function(H){return H.textColor}).filter(function(H){return H})[0])!==null&&q!==void 0?q:P,bgColor:(z=x.map(function(H){return H.bgColor}).filter(function(H){return H})[0])!==null&&z!==void 0?z:C})}},o.default.createElement(d.default,null)),o.default.createElement(h.default,{title:O("textColor"),autoColors:A?x.map(function(N){return N.textColor}):void 0,color:P,onChange:function(q){var z;A&&q===(0,v.toHexRgb)(x==null||(z=x[0])===null||z===void 0?void 0:z.bgColor)||T({textColor:q,bgColor:C,useAutoColors:!1})},className:M.foreground}),o.default.createElement(h.default,{title:O("backgroundColor"),color:C,autoColors:A?x.map(function(N){return N.bgColor}):void 0,onChange:function(q){var z;A&&q===(0,v.toHexRgb)(x==null||(z=x[0])===null||z===void 0?void 0:z.bgColor)||T({bgColor:q,textColor:P,useAutoColors:!1})},className:M.background}))};y.propTypes={};var b=y;l.default=b})(ColorWidget)),ColorWidget}var hasRequiredOverlaySettings;function requireOverlaySettings(){return hasRequiredOverlaySettings||(hasRequiredOverlaySettings=1,(function(l){Object.defineProperty(l,"__esMo
150dule",{value:!0}),l.default=void 0;var o=A(requireReact());O(requirePropTypes$1());var u=require$$2$2,d=O(requireTextFields()),f=O(requireClose()),p=O(requireSubject()),h=O(requireOpacity()),v=O(requirePalette()),g=O(require$$2$1),m=O(requireUseTheme()),y=O(requireMakeStyles()),b=O(require$$11),w=requireColorManipulator(),E=O(requireTextSelectIcon()),P=O(requireButtonContainer()),C=O(requireOpacityWidget()),T=O(requireColorWidget());function O(q){return q&&q.__esModule?q:{default:q}}function x(q){if(typeof WeakMap!="function")return null;var z=new WeakMap,H=new WeakMap;return(x=function(F){return F?H:z})(q)}function A(q,z){if(q&&q.__esModule)return q;if(q===null||typeof q!="object"&&typeof q!="function")return{default:q};var H=x(z);if(H&&H.has(q))return H.get(q);var U={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in q)if(B!=="default"&&Object.prototype.hasOwnProperty.call(q,B)){var G=F?Object.getOwnPropertyDescriptor(q,B):null;G&&(G.get||G.set)?Object.defineProperty(U,B,G):U[B]=q[B]}return U.default=q,H&&H.set(q,U),U}function D(){return D=Object.assign?Object.assign.bind():function(q){for(var z=1;z<arguments.length;z++){var H=arguments[z];for(var U in H)Object.prototype.hasOwnProperty.call(H,U)&&(q[U]=H[U])}return q},D.apply(this,arguments)}var j=(0,y.default)(function(q){var z,H=q.palette,U=q.breakpoints,F=H.shades.main;return{bubbleContainer:(z={display:"flex",flexDirection:"row",backgroundColor:(0,w.fade)(F,.8),borderRadius:function(G){return[[25,25,25,25]]},position:"absolute",right:8,top:function(G){return G.imageToolsEnabled?66:8},zIndex:999},z[U.down("sm")]={flexDirection:"column",top:function(G){return 8},right:function(G){return G.imageToolsEnabled?66:8},borderRadius:function(G){return[[25,25,25,!G.textsFetching&&G.open&&G.showColorPicker?0:25]]}},z)}}),M=function(z){var H,U,F=z.windowTextOverlayOptions,B=z.imageToolsEnabled,G=z.textsAvailable,Q=z.textsFetching,K=z.updateWindowTextOverlayOptions,Z=z.t,te=z.pageColors,oe=z.containerId,fe=F.enabled,le=F.visible,Re=F.selectable,Ae=F.opacity,_e=F.textColor,ee=F.bgColor,se=F.useAutoColors,$e=(0,o.useState)(fe&&(le||Re)),Ee=$e[0],xe=$e[1],Se=(0,o.useState)(!1),Ie=Se[0],ge=Se[1],Y=(0,o.useState)(!1),ie=Y[0],ce=Y[1],ue=(0,m.default)(),pe=(0,b.default)(ue.breakpoints.down("sm")),Te=(0,m.default)(),Ce=Te.palette,Fe=Ce.shades.main,He=Ce.getContrastText(Fe),we=(0,w.fade)(He,.25),Oe=j({imageToolsEnabled:B,open:Ee,showColorPicker:ie,textsFetching:Q}),Ne=se&&(H=te.map(function(Ye){return Ye.textColor}).filter(function(Ye){return Ye})[0])!==null&&H!==void 0?H:_e,qe=se&&(U=te.map(function(Ye){return Ye.bgColor}).filter(function(Ye){return Ye})[0])!==null&&U!==void 0?U:ee,Be=Ee&&!Q;if(!fe||!G)return null;var Ve=o.default.createElement(P.default,{withBorder:!Q&&Ee&&pe},o.default.createElement(u.MiradorMenuButton,{containerId:oe,"aria-expanded":Be,"aria-haspopup":!0,"aria-label":Z(Ee?"collapseTextOverlayOptions":"expandTextOverlayOptions"),disabled:Q,onClick:function(){return xe(!Ee)}},Be?o.default.createElement(f.default,null):o.default.createElement(p.default,null)));return o.default.createElement("div",{className:"MuiPaper-elevation4 "+Oe.bubbleContainer},pe&&Ve,Be&&o.default.createElement(o.default.Fragment,null,o.default.createElement(P.default,{withBorder:!0,paddingPrev:pe?8:0,paddingNext:8},o.default.createElement(u.MiradorMenuButton,{containerId:oe,"aria-label":Z("textSelect"),onClick:function(){return K(D({},F,{selectable:!Re}))},"aria-pressed":Re,style:{backgroundColor:Re&&we}},o.default.createElement(E.default,null))),o.default.createElement(P.default,{paddingPrev:8},o.default.createElement(u.MiradorMenuButton,{containerId:oe,"aria-label":Z("textVisible"),onClick:function(){K(D({},F,{visible:!le})),Ie&&le&&ge(!1),ie&&le&&ce(!1)},"aria-pressed":le,style:{backgroundColor:le&&we}},o.default.createElement(d.default,null))),o.default.createElement(P.default,null,o.default.createElement(u.MiradorMenuButton,{id:"text-opacity-slider-label",containerId:oe,disabled:!le,"aria-label":Z("textOpacity"),"aria-controls":"text-opacity-slider","aria-expanded":Ie,onClick:function(){return ge(!Ie)},style:{backgroundColor:Ie&&(0,w.fade)(He,.1)}},o.default.createElement(h.default,null)),le&&Ie&&o.default.createElement(C.default,{t:Z,opacity:Ae,onChange:function(Ge){return K(D({},F,{opacity:Ge}))}})),o.default.createElement(P.default,{withBorder:!pe,paddingNext:pe?0:8},o.default.createElement(u.MiradorMenuButton,{id:"color-picker-label",containerId:oe,disabled:!le,"aria-label":Z("colorPicker"),"aria-controls":"color-picker","aria-expanded":ie,onClick:function(){return ce(!ie)},style:{backgroundColor:ie&&(0,w.fade)(He,.1)}},o.default.createElement(v.default,null)),le&&ie&&o.default.createElement(T.default,{t:Z,containerId:oe,bgColor:qe,textColor:Ne,pageColors:te,useAutoColors:se,onChange:function(Ge){return K(D({},F,Ge))}}))),Q&&o.default.createElement(g.default,{disableShrink:!0,size:50,style:{position:"absolute"}}),!pe&&Ve)};M.propTypes={};var N=M;l.default=N})(OverlaySettings)),OverlaySettings}var hasRequiredEs;function requireEs(){return hasRequiredEs||(hasRequiredEs=1,(function(l){Object.defineProperty(l,"__esMo
150dule",{value:!0}),l.default=void 0;var o=require$$0$1,u=require$$1$1,d=requireReducers(),f=g(requireSagas()),p=requireSelectors(),h=g(requireMiradorTextOverlay()),v=g(requireOverlaySettings());function g(b){return b&&b.__esModule?b:{default:b}}function m(){return m=Object.assign?Object.assign.bind():function(b){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(b[P]=E[P])}return b},m.apply(this,arguments)}var y=[{component:h.default,mapStateToProps:function(w,E){var P=E.windowId;return m({pageTexts:(0,p.getTextsForVisibleCanvases)(w,{windowId:P}).map(function(C){if(!(C===void 0||C.isFetching))return m({},C.text,{source:C.source,textColor:C.textColor,bgColor:C.bgColor})}),windowId:P},(0,p.getWindowTextOverlayOptions)(w,{windowId:P}))},mode:"add",reducers:{texts:d.textsReducer},saga:f.default,target:"OpenSeadragonViewer"},{component:v.default,mapDispatchToProps:function(w,E){var P=E.windowId;return{updateWindowTextOverlayOptions:function(T){return w((0,o.updateWindow)(P,{textOverlay:T}))}}},mapStateToProps:function(w,E){var P=E.windowId,C=(0,u.getWindowConfig)(w,{windowId:P}),T=C.imageToolsEnabled,O=T===void 0?!1:T;return{containerId:(0,u.getContainerId)(w),imageToolsEnabled:O,textsAvailable:(0,p.getTextsForVisibleCanvases)(w,{windowId:P}).length>0,textsFetching:(0,p.getTextsForVisibleCanvases)(w,{windowId:P}).some(function(x){return x?.isFetching}),pageColors:(0,p.getTextsForVisibleCanvases)(w,{windowId:P}).filter(function(x){return x!==void 0}).map(function(x){var A=x.textColor,D=x.bgColor;return{textColor:A,bgColor:D}}),windowTextOverlayOptions:(0,p.getWindowTextOverlayOptions)(w,{windowId:P})}},mode:"add",target:"OpenSeadragonViewer"}];l.default=y})(es)),es}var esExports=requireEs();const textOverlayPlugin=getDefaultExportFromCjs(esExports);var Crop={},hasRequiredCrop;function requireCrop(){if(hasRequiredCrop)return Crop;hasRequiredCrop=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Crop,"__esModule",{value:!0}),Crop.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}),"Crop");return Crop.default=f,Crop}var CropExports=requireCrop();const CropIcon=getDefaultExportFromCjs(CropExports);function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$a.apply(this,arguments)}var CroppingControls=function(o){var u=o.config,d=o.containerId,f=o.t,p=o.updateConfig,h=o.viewType,v=u.active,g=u.enabled;return!g||h!=="single"?null:React.createElement(MiradorMenuButton$1,{"aria-expanded":v,"aria-haspopup":!0,"aria-label":f(v?"imageCropper.deactivate":"imageCropper.activate"),color:v?"primary":"default",containerId:d,onClick:function(){return p(_extends$a({},u,{active:!v}))}},React.createElement(CropIcon,null))};CroppingControls.propTypes={};var lib$2={},Image$3={},Image$2={},BrokenImage={},hasRequiredBrokenImage;function requireBrokenImage(){if(hasRequiredBrokenImage)return BrokenImage;hasRequiredBrokenImage=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(BrokenImage,"__esModule",{value:!0}),BrokenImage.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 4-3.99z"}),"BrokenImage");return BrokenImage.default=f,BrokenImage}var hasRequiredImage$1;function requireImage$1(){return hasRequiredImage$1||(hasRequiredImage$1=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=m(requireReact()),u=v(requirePropTypes$1()),d=v(require$$2$1),f=v(requireCommon()),p=v(requireGrey()),h=v(requireBrokenImage());function v(F){return F&&F.__esModule?F:{default:F}}function g(){if(typeof WeakMap!="function")return null;var F=new WeakMap;return g=function(){return F},F}function m(F){if(F&&F.__esModule)return F;if(F===null||y(F)!=="object"&&typeof F!="function")return{default:F};var B=g();if(B&&B.has(F))return B.get(F);var G={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var K in F)if(Object.prototype.hasOwnProperty.call(F,K)){var Z=Q?Object.getOwnPropertyDescriptor(F,K):null;Z&&(Z.get||Z.set)?Object.defineProperty(G,K,Z):G[K]=F[K]}return G.default=F,B&&B.set(F,G),G}function y(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(G){return typeof G}:y=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},y(F)}function b(){return b=Object.assign||function(F){for(var B=1;B<arguments.length;B++){var G=arguments[B];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(F[Q]=G[Q])}return F},b.apply(this,arguments)}function w(F,B){if(F==null)return{};var G=E(F,B),Q,K;if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(F);for(K=0;K<Z.length;K++)Q=Z[K],!(B.indexOf(Q)>=0)&&Object.prototype.propertyIsEnumerable.call(F,Q)&&(G[Q]=F[Q])}return G}function E(F,B){if(F==null)return{};var G={},Q=Object.keys(F),K,Z;for(Z=0;
vendor: 2,525 bytes, line 150
150Z<Q.length;Z++)K=Q[Z],!(B.indexOf(K)>=0)&&(G[K]=F[K]);return G}function P(F,B){var G=Object.keys(F);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(F);B&&(Q=Q.filter(function(K){return Object.getOwnPropertyDescriptor(F,K).enumerable})),G.push.apply(G,Q)}return G}function C(F){for(var B=1;B<arguments.length;B++){var G=arguments[B]!=null?arguments[B]:{};B%2?P(Object(G),!0).forEach(function(Q){H(F,Q,G[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(G)):P(Object(G)).forEach(function(Q){Object.defineProperty(F,Q,Object.getOwnPropertyDescriptor(G,Q))})}return F}function T(F,B){if(!(F instanceof B))throw new TypeError("Cannot call a class as a function")}function O(F,B){for(var G=0;G<B.length;G++){var Q=B[G];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(F,Q.key,Q)}}function x(F,B,G){return B&&O(F.prototype,B),G&&O(F,G),F}function A(F,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(B&&B.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),B&&D(F,B)}function D(F,B){return D=Object.setPrototypeOf||function(Q,K){return Q.__proto__=K,Q},D(F,B)}function j(F){var B=q();return function(){var Q=z(F),K;if(B){var Z=z(this).constructor;K=Reflect.construct(Q,arguments,Z)}else K=Q.apply(this,arguments);return M(this,K)}}function M(F,B){return B&&(y(B)==="object"||typeof B=="function")?B:N(F)}function N(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function z(F){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},z(F)}function H(F,B,G){return B in F?Object.defineProperty(F,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):F[B]=G,F}var U=(function(F){A(G,F);var B=j(G);function G(Q){var K;return T(this,G),K=B.call(this,Q),H(N(K),"handleLoadImage",function(Z){K.setState({imageLoaded:!0,imageError:!1}),K.props.onLoad&&K.props.onLoad(Z)}),H(N(K),"handleImageError",function(Z){K.props.src&&(K.setState({imageError:!0}),K.props.onError&&K.props.onError(Z))}),K.state={imageError:!1,imageLoaded:!1,src:K.props.src},K.image=o.default.createRef(),K}
150return x(G,[{key:"componentDidMount",value:function(){var K=this.image.current;K&&K.complete&&(K.naturalWidth===0?this.handleImageError():this.handleLoadImage())}},{key:"getStyles",value:function(){var K=this.props,Z=K.animationDuration,te=K.aspectRatio,oe=K.cover,fe=K.color,le=K.imageStyle,Re=K.disableTransition,Ae=K.iconContainerStyle,_e=K.style,ee=!Re&&{opacity:this.state.imageLoaded?1:0,filterBrightness:this.state.imageLoaded?100:0,filterSaturate:this.state.imageLoaded?100:20,transition:`
151        filterBrightness `.concat(Z*.75,`ms cubic-bezier(0.4, 0.0, 0.2, 1),
152        filterSaturate `).concat(Z,`ms cubic-bezier(0.4, 0.0, 0.2, 1),
153        opacity `).concat(Z/2,"ms cubic-bezier(0.4, 0.0, 0.2, 1)")},se={root:C({backgroundColor:fe,paddingTop:"calc(1 / ".concat(te," * 100%)"),position:"relative"},_e),image:C(C({width:"100%",height:"100%",position:"absolute",objectFit:oe?"cover":"inherit",top:0,left:0},ee),le),iconContainer:C({width:"100%",height:"100%",position:"absolute",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},Ae)};return se}},{key:"render",value:function(){var K=this.getStyles(),Z=this.props;Z.animationDuration,Z.aspectRatio,Z.color,Z.cover;var te=Z.disableError,oe=Z.disableSpinner;Z.disableTransition;var fe=Z.errorIcon;Z.iconContainerStyle,Z.imageStyle;var le=Z.loading,Re=Z.onClick;Z.style;var Ae=w(Z,["animationDuration","aspectRatio","color","cover","disableError","disableSpinner","disableTransition","errorIcon","iconContainerStyle","imageStyle","loading","onClick","style"]);return o.default.createElement("div",{style:K.root,onClick:Re},Ae.src&&o.default.createElement("img",b({},Ae,{ref:this.image,style:K.image,onLoad:this.handleLoadImage,onError:this.handleImageError})),o.default.createElement("div",{style:K.iconContainer},!oe&&!this.state.imageLoaded&&!this.state.imageError&&le,!te&&this.state.imageError&&fe))}}],[{key:"getDerivedStateFromProps",value:function(K,Z){return Z.src!==K.src?{imageError:!1,imageLoaded:!1,src:K.src}:null}}]),G})(o.Component);l.default=U,U.defaultProps={animationDuration:3e3,aspectRatio:1,color:f.default.white,disableError:!1,disableSpinner:!1,disableTransition:!1,errorIcon:o.default.createElement(h.default,{style:{width:48,height:48,color:p.default[300]}}),loading:o.default.createElement(d.default,{size:48})},U.propTypes={animationDuration:u.default.number,aspectRatio:u.default.number,cover:u.default.bool,color:u.default.string,disableError:u.default.bool,disableSpinner:u.default.bool,disableTransition:u.default.bool,errorIcon:u.default.node,iconContainerStyle:u.default.object,imageStyle:u.default.object,loading:u.default.node,onClick:u.default.func,onError:u.default.func,onLoad:u.default.func,src:u.default.string.isRequired,style:u.default.object}})(Image$2)),Image$2}var hasRequiredImage;function requireImage(){return hasRequiredImage||(hasRequiredImage=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return o.default}});var o=u(requireImage$1());function u(d){return d&&d.__esModule?d:{default:d}}})(Image$3)),Image$3}var hasRequiredLib$2;function requireLib$2(){return hasRequiredLib$2||(hasRequiredLib$2=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=u(requireImage());function u(f){return f&&f.__esModule?f:{default:f}}var d=o.default;l.default=d})(lib$2)),lib$2}var libExports$2=requireLib$2();const Image$1=getDefaultExportFromCjs(libExports$2);var CopyToClipboard=function(o){var u=o.onCopy,d=o.supported,f=o.t;return d?React.createElement(InputAdornment$1,null,React.createElement(MiradorMenuButton$1,{"aria-label":f("imageCropper.copyToClipboard"),edge:"end",onClick:u},React.createElement(FileCopyIcon,{fontSize:"small"}))):null};CopyToClipboard.propTypes={};var useStyles$2=makeStyles(function(l){return{root:{marginTop:l.spacing(2)}}}),RightsInformation=function(o){var u=o.rights,d=o.t,f=useStyles$2(),p=f.root;return u.length?React.createElement(Alert$1,{className:p,severity:"warning"},React.createElement("span",null,d("imageCropper.noteRights",{count:u.length}),": "),u.length===1?React.createElement(Link$1,{href:u[0],rel:"noopener",target:"_blank"},u[0]):React.createElement("ul",null,u.map(function(h){return React.createElement("li",null,React.createElement(Link$1,{href:h,rel:"noopener",target:"_blank"},h))}))):null};RightsInformation.propTypes={};var XIcon=function(){return React.createElement(SvgIcon$2,{viewBox:"0 0 24 24"},React.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}))}
153,getAttributionString=function(o){if(!o.length)return null;var u=o.shift();return o.reduce(function(d,f){return d+", "+f.values.join(", ")},u.values.join(", "))},getShareLink=function(o,u,d,f,p){var h=d;switch(o&&(h+=" ("+o+")"),f){case"envelope":return"mailto:?subject="+h+"&body="+h+": "+u;case"facebook":return"https://www.facebook.com/sharer/sharer.php?title="+h+"&u="+u;case"pinterest":return"http://pinterest.com/pin/create/bookmarklet/?url="+u+"&description="+h+"&media="+p;case"whatsapp":return"whatsapp://send?text="+h+": "+u;case"x":return"https://x.com/intent/post?text="+(h.length>60?h.substring(0,60)+"...":h)+"&url="+u+"&hashtags=iiif";default:return null}},iconMapping={envelope:MailIcon,facebook:FacebookIcon,pinterest:PinterestIcon,whatsapp:WhatsAppIcon,x:XIcon},ShareButton=function(o){var u=o.attribution,d=o.imageUrl,f=o.label,p=o.provider,h=o.thumbnailUrl,v=o.title,g=getShareLink(u,d,f,p,h),m=iconMapping[p];return React.createElement(MiradorMenuButton$1,{"aria-label":v,href:encodeURI(g),rel:"noopener",target:"_blank"},React.createElement(m,null))};ShareButton.defaultProps={attribution:void 0};ShareButton.propTypes={};function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$9.apply(this,arguments)}var toRelativeCoordinates=function(o,u,d,f){var p=o.x,h=o.y,v=o.w,g=o.h;return{x:parseFloat((p/u*100).toFixed(f)),y:parseFloat((h/d*100).toFixed(f)),w:parseFloat((v/u*100).toFixed(f)),h:parseFloat((g/d*100).toFixed(f))}},useStyles$1=makeStyles(function(l){var o;return{actions:{justifyContent:"space-between",flexWrap:"wrap"},actionButtons:{flexWrap:"wrap"},alert:{marginBottom:l.spacing(1)},legend:{width:"100%",display:"flex",justifyContent:"space-between"},optionsHeading:{marginBottom:l.spacing(1),marginTop:l.spacing(1)},previewHeading:{marginBottom:l.spacing(1)},previewImage:{marginTop:l.spacing(1),marginBottom:l.spacing(1)},previewLink:{fontFamily:(o=l.typography.fontFamily)!==null&&o!==void 0?o:"sans-serif"}}}),supportsClipboard="clipboard"in navigator,CroppingDialog=function(o){var u=o.config,d=o.containerId,f=o.croppingRegion.imageCoordinates,p=o.currentCanvas,h=o.imageServiceIds,v=o.label,g=o.requiredStatement,m=o.rights,y=o.t,b=o.updateConfig,w=o.viewType,E=u.active,P=u.dialogOpen,C=u.enabled,T=u.roundingPrecision,O=u.showRightsInformation,x=reactExports.useState(!1),A=x[0],D=x[1],j=reactExports.useState(!1),M=j[0],N=j[1],q=reactExports.useState("default"),z=q[0],H=q[1],U=reactExports.useState(0),F=U[0],B=U[1],G=reactExports.useState(100),Q=G[0],K=G[1],Z=useStyles$1(),te=Z.actions,oe=Z.actionButtons,fe=Z.alert,le=Z.legend,Re=Z.optionsHeading,Ae=Z.previewHeading,_e=Z.previewImage,ee=Z.previewLink;if(!C||!E||!P||!p||w!=="single"||!f)return null;var se=function(){return b(_extends$9({},u,{dialogOpen:!1}))},$e=getAttributionString(g),Ee=p.getWidth(),xe=p.getHeight(),Se=toRelativeCoordinates(f,Ee,xe,T),Ie=Se.x,ge=Se.y,Y=Se.w,ie=Se.h,ce="pct:"+Ie+","+ge+","+Y+","+ie,ue=M?"!":"",pe=h[0]+"/"+ce+"/pct:"+Q+"/"+ue+F+"/"+z+".jpg",Te=function(He){return h[0]+"/"+ce+"/"+He+",/"+ue+F+"/"+z+".jpg"},Ce=1;return f.h>0&&[0,180].includes(F)?Ce=f.w/f.h:f.w>0&&[90,270].includes(F)&&(Ce=f.h/f.w),React.createElement(Dialog$1,{container:document.querySelector("#"+d+" ."+ns("viewer")),fullWidth:!0,maxWidth:"sm",onClose:se,open:P,scroll:"paper"},React.createElement(DialogTitle$1,{disableTypography:!0},React.createElement(Typography$1,{variant:"h4"},React.createElement(Box,{fontWeight:"fontWeightBold"},y("imageCropper.linkToSelectedRegion")))),React.createElement(ScrollIndicatedDialogContent$2,{dividers:!0},A&&React.createElement(Alert$1,{className:fe,closeText:y("imageCropper.close"),onClose:function(){return D(!1)},severity:"success"},y("imageCropper.copiedToClipboard")),React.createElement(TextField$1,{fullWidth:!0,InputProps:{endAdornment:React.createElement(CopyToClipboard,{onCopy:function(){navigator.clipboard.writeText(pe),D(!0),setTimeout(function(){return D(!1)},3e3)},supported:supportsClipboard,t:y}),readOnly:!0},size:"small",value:pe,variant:"outlined"}),React.createElement(Typography$1,{className:Re,variant:"h5"},y("imageCropper.options")),React.createElement(FormControl$1,{component:"fieldset",fullWidth:!0},React.createElement(FormLabel$1,{component:"legend",className:le},y("imageCropper.size")," ",React.createElement("span",null,Q,"%")),React.createElement(Slider$2,{min:1,onChange:function(He,we){return K(we)},value:Q})),React.createElement(FormControl$1,{component:"fieldset"},React.createElement(FormLabel$1,{component:"legend"},y("imageCropper.rotation")),React.createElement(RadioGroup,{"aria-label":y("imageCropper.rotation"),name:"rotation",onChange:function(He){return B(parseInt(He.target.value,10))},row:!0,value:F},[0,90,180,270].map(function(Fe){return React.createElement(FormControl
153Label$1,{control:React.createElement(Radio$1,null),key:Fe+"°",label:Fe+"°",value:Fe})}))),React.createElement(FormControl$1,{component:"fieldset",fullWidth:!0},React.createElement(FormLabel$1,{component:"legend"},y("imageCropper.reflection")),React.createElement(FormGroup$1,{row:!0},React.createElement(FormControlLabel$1,{control:React.createElement(Switch$1,{checked:M,color:"primary",onChange:function(He){return N(He.target.checked)}}),label:y("imageCropper.mirror")}))),React.createElement(FormControl$1,{component:"fieldset"},React.createElement(FormLabel$1,{component:"legend"},y("imageCropper.quality.label")),React.createElement(RadioGroup,{"aria-label":y("imageCropper.quality.label"),name:"quality",onChange:function(He){return H(He.target.value)},row:!0,value:z},["default","color","gray","bitonal"].map(function(Fe){return React.createElement(FormControlLabel$1,{control:React.createElement(Radio$1,null),key:Fe,label:y("imageCropper.quality."+Fe),value:Fe})}))),React.createElement(Typography$1,{className:Ae,variant:"h5"},y("imageCropper.preview.label")),React.createElement(Link$1,{className:ee,href:pe,rel:"noopener",target:"_blank"},y("imageCropper.preview.link")),React.createElement(Image$1,{aspectRatio:Ce,className:_e,color:"transparent",src:Te(500)}),O&&React.createElement(RightsInformation,{t:y,rights:m})),React.createElement(DialogActions$1,{className:te},React.createElement(ButtonGroup$1,{className:oe},["envelope","facebook","pinterest","x","whatsapp"].map(function(Fe){return React.createElement(ShareButton,{attribution:$e,imageUrl:pe,key:Fe,label:v,provider:Fe,thumbnailUrl:Te(250),title:y("imageCropper.share."+Fe)})})),React.createElement(Button$1,{color:"primary",onClick:se},y("imageCropper.close"))))};CroppingDialog.defaultProps={currentCanvas:void 0,label:"",requiredStatement:[],rights:[]};CroppingDialog.propTypes={};var openseadragon$1={exports:{}},openseadragon=openseadragon$1.exports,hasRequiredOpenseadragon;function requireOpenseadragon(){return hasRequiredOpenseadragon||(hasRequiredOpenseadragon=1,(function(module){function OpenSeadragon(l){return new OpenSeadragon.Viewer(l)}(function(l){l.version={versionStr:"2.4.2",major:parseInt("2",10),minor:parseInt("4",10),revision:parseInt("2",10)};var o={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},u=Object.prototype.toString,d=Object.prototype.hasOwnProperty;l.isFunction=function(f){return l.type(f)==="function"},l.isArray=Array.isArray||function(f){return l.type(f)==="array"},l.isWindow=function(f){return f&&typeof f=="object"&&"setInterval"in f},l.type=function(f){return f==null?String(f):o[u.call(f)]||"object"},l.isPlainObject=function(f){if(!f||OpenSeadragon.type(f)!=="object"||f.nodeType||l.isWindow(f)||f.constructor&&!d.call(f,"constructor")&&!d.call(f.constructor.prototype,"isPrototypeOf"))return!1;var p;for(var h in f)p=h;return p===void 0||d.call(f,p)},l.isEmptyObject=function(f){for(var p in f)return!1;return!0},l.freezeObject=function(f){return Object.freeze?l.freezeObject=Object.freeze:l.freezeObject=function(p){return p},l.freezeObject(f)},l.supportsCanvas=(function(){var f=document.createElement("canvas");return!!(l.isFunction(f.getContext)&&f.getContext("2d"))})(),l.isCanvasTainted=function(f){var p=!1;try{f.getContext("2d").getImageData(0,0,1,1)}catch{p=!0}return p},l.pixelDensityRatio=(function(){if(l.supportsCanvas){var f=document.createElement("canvas").getContext("2d"),p=window.devicePixelRatio||1,h=f.webkitBackingStorePixelRatio||f.mozBackingStorePixelRatio||f.msBackingStorePixelRatio||f.oBackingStorePixelRatio||f.backingStorePixelRatio||1;return Math.max(p,1)/h}else return 1})()})(OpenSeadragon),(function($){$.extend=function(){var l,o,u,d,f,p,h=arguments[0]||{},v=arguments.length,g=!1,m=1;for(typeof h=="boolean"&&(g=h,h=arguments[1]||{},m=2),typeof h!="object"&&!OpenSeadragon.isFunction(h)&&(h={}),v===m&&(h=this,--m);m<v;m++)if(l=arguments[m],l!==null||l!==void 0)for(o in l)u=h[o],d=l[o],h!==d&&(g&&d&&(OpenSeadragon.isPlainObject(d)||(f=OpenSeadragon.isArray(d)))?(f?(f=!1,p=u&&OpenSeadragon.isArray(u)?u:[]):p=u&&OpenSeadragon.isPlainObject(u)?u:{},h[o]=OpenSeadragon.extend(g,p,d)):d!==void 0&&(h[o]=d));return h};var isIOSDevice=function(){if(typeof navigator!="object")return!1;var l=navigator.userAgent;return typeof l!="string"?!1:l.indexOf("iPhone")!==-1||l.indexOf("iPad")!==-1||l.indexOf("iPod")!==-1};$.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,minScrollDeltaT
153ime: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(l,o){return function(){var u=arguments;return u===void 0&&(u=[]),o.apply(l,u)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5},getElement:function(l){return typeof l=="string"&&(l=document.getElementById(l)),l},getElementPosition:function(l){var o=new $.Point,u,d;for(l=$.getElement(l),u=$.getElementStyle(l).position=="fixed",d=getOffsetParent(l,u);d;)o.x+=l.offsetLeft,o.y+=l.offsetTop,u&&(o=o.plus($.getPageScroll())),l=d,u=$.getElementStyle(l).position=="fixed",d=getOffsetParent(l,u);return o},getElementOffset:function(l){l=$.getElement(l);var o=l&&l.ownerDocument,u,d,f={top:0,left:0};return o?(u=o.documentElement,typeof l.getBoundingClientRect<"u"&&(f=l.getBoundingClientRect()),d=o==o.window?o:o.nodeType===9?o.defaultView||o.parentWindow:!1,new $.Point(f.left+(d.pageXOffset||u.scrollLeft)-(u.clientLeft||0),f.top+(d.pageYOffset||u.scrollTop)-(u.clientTop||0))):new $.Point},getElementSize:function(l){return l=$.getElement(l),new $.Point(l.clientWidth,l.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(l){return l=$.getElement(l),l.currentStyle}:function(l){return l=$.getElement(l),window.getComputedStyle(l,"")},getCssPropertyWithVendorPrefix:function(l){var o={};return $.getCssPropertyWithVendorPrefix=function(u){if(o[u]!==void 0)return o[u];var d=document.createElement("div").style,f=null;if(d[u]!==void 0)f=u;else for(var p=["Webkit","Moz","MS","O","webkit","moz","ms","o"],h=$.capitalizeFirstLetter(u),v=0;v<p.length;v++){var g=p[v]+h;if(d[g]!==void 0){f=g;break}}return o[u]=f,f},$.getCssPropertyWithVendorPrefix(l)},capitalizeFirstLetter:function(l){return l.charAt(0).toUpperCase()+l.slice(1)},positiveModulo:function(l,o){var u=l%o;return u<0&&(u+=o),u},pointInElement:function(l,o){l=$.getElement(l);var u=$.getElementOffset(l),d=$.getElementSize(l);return o.x>=u.x&&o.x<u.x+d.x&&o.y<u.y+d.y&&o.y>=u.y},getEvent:function(l){return l?$.getEvent=function(o){return o}:$.getEvent=function(){return window.event},$.getEvent(l)},getMousePosition:function(l){if(typeof l.pageX=="number")$.getMousePosition=function(o){var u=new $.Point;return o=$.getEvent(o),u.x=o.pageX,u.y=o.pageY,u};else if(typeof l.clientX=="number")$.getMousePosition=function(o){var u=new $.Point;return o=$.getEvent(o),u.x=o.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,u.y=o.clientY+document.body.scrollTop+document.documentElement.scrollTop,u};else throw new Error("Unknown event mouse position, no known technique.");return $.getMousePosition(l)},getPageScroll:function(){var l=document.documentElement||{},o=document.body||{};if(typeof window.pageXOffset=="number")$.getPageScroll=function(){return new $.Point(window.pageXOffset,window.pageYOffset)};else if(o.scrollLeft||o.scrollTop)$.getPageScroll=function(){return new $.Point(document.body.scrollLeft,document.body.scrollTop)};else if(l.scrollLeft||l.scrollTop)$.getPageScroll=function(){return new $.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)};else return new $.Point(0,0);return $.getPageScroll()},setPageScroll:function(l){if(typeof window.scrollTo<"u")$.setPageScroll=function(d){window.scrollTo(d.x,d.y)};else{var o=$.getPageScroll();if(o.x===l.x&&o.y===l.y)return;document.body.scrollLeft=l.x,document.body.scrollTop=l.y;var u=$.getPageScroll();if(u.x!==o.x&&u.y!==o.y){$.setPageScroll=function(d){document.body.scrollLeft=d.x,document.body.scrollTop=d.y};return}if(document.documentElement.scrollLeft=l.x,document.documentElement.scrollTop=l.y,u=$.getPageScroll(),u.x!==o.x&&u.y!==o.y){$.setPageScroll=function(d){document.documentElement.scrollLeft=d.x,document.documentElement.scrollTop=d.y};return}$.setPageScroll=function(d){}}return $.setPageScroll(l)},getWindowSize:function(){var l=document.documentElement||{},o=document.body||{};if(typeof window.innerWidth=="number")$.getWindowSize=function(){return new $.Point(window.innerWidth,window.innerHeight)};else if(l.clientWidth||l.clientHeight)$.getWindowSize=function(){return new $.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else if(o.clientWidth||o.clientHeight)$.getWindowSize=function(){return new $.Point(document.body.clientWidth,document.body.clientHeight)};else throw new Error("Unknown window size, no known technique.");return $.getWindowSize()},makeCenteredNode:function(l){l=$.getElement(l);var o=[$.makeNeutralElement("div"),$.makeNeutralElement("div"),$.makeNeutralElement("div")];return $.extend(o[0].style,{display:"table",height:"100%",width:"100%"}),$.extend(o[1].style,{display:"table-row"}),$.extend(o[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),o[0].appendChild(o[1]),o[1].appendChild(o[2]),o[2].appendChild(l),o[0]},makeNeutralElement:function(l){var o=document.createElement(l),u=o.style;return u.background="transparent none",u.border="none",u.margin="0px",u.padding="0px",u.position="static",o},now:function(){return Date.now?$.now=Date.now:$.now=function(){return new Date().getTime()},$.now()},makeTransparentImage:function(l){return $.makeTransparentImage=function(o){var u=$.makeNeutralElement("img");return u.src=o,u},$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<7&&($.makeTransparentImage=function(o){var u=$.makeNeutralElement("img"),d=null;return d=$.makeNeutralElement("span"),d.style.display="inline-block",u.onload=function(){d.style.width=d.style.width||u.width+"px",d.style.height=d.style.height||u.height+"px",u.onload=null,u=null},u.src=o,d.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+o+"', sizingMethod='scale')",d}),$.makeTransparentImage(l)},setElementOpacity:function(l,o,u){var d,f;l=$.getElement(l),u&&!$.Browser.alpha&&(o=Math.round(o)),$.Browser.opacity?l.style.opacity=o<1?o:"":o<1?(d=Math.round(100*o),f="alpha(opacity="+d+")",l.style.filter=f):l.style.filter=""},setElementTouchActionNone:function(l){l=$.getElement(l),typeof l.style.touchAction<"u"?l.style.touchAction="none":typeof l.style.msTouchAction<"u"&&(l.style.msTouchAction="none")},addClass:function(l,o){l=$.getElement(l),l.className?(" "+l.className+" ").indexOf(" "+o+" ")===-1&&(l.className+=" "+o):l.className=o},indexOf:function(l,o,u){return Array.prototype.indexOf?this.indexOf=function(d,f,p){return d.indexOf(f,p)}:this.indexOf=function(d,f,p){var h,v=p||0,g;if(!d)throw new TypeError;if(g=d.length,g===0||v>=g)return-1;for(v<0&&(v=g-Math.abs(v)),h=v;h<g;h++)if(d[h]===f)return h;return-1},this.indexOf(l,o,u)},removeClass:function(l,o){var u,d=[],f;for(l=$.getElement(l),u=l.className.split(/\s+/),f=0;f<u.length;f++)u[f]&&u[f]!==o&&d.push(u[f]);l.className=d.join(" ")},addEvent:(function(){if(window.addEventListener)return function(l,o,u,d){l=$.getElement(l),l.addEventListener(o,u,d)};if(window.attachEvent)return function(l,o,u,d){l=$.getElement(l),l.attachEvent("on"+o,u)};throw new Error("No known event model.")})(),removeEvent:(function(){if(window.removeEventListener)return function(l,o,u,d){l=$.getElement(l),l.removeEventListener(o,u,d)};if(window.detachEvent)return function(l,o,u,d){l=$.getElement(l),l.detachEvent("on"+o,u)};throw new Error("No known event model.")})(),cancelEvent:function(l){l=$.getEvent(l),l.preventDefault?$.cancelEvent=function(o){o.preventDefault()}:$.cancelEvent=function(o){o=$.getEvent(o),o.cancel=!0,o.returnValue=!1},$.cancelEvent(l)},stopEvent:function(l){l=$.getEvent(l),l.stopPropagation?$.stopEvent=function(o){o.stopPropagation()}:$.stopEvent=function(o){o=$.getEvent(o),o.cancelBubble=!0},$.stopEvent(l)},createCallback:function(l,o){var u=[],d;for(d=2;d<arguments.length;d++)u.push(arguments[d]);return function(){var f=u.concat([]),p;for(p=0;p<arguments.length;p++)f.push(arguments[p]);return o.apply(l,f)}},getUrlParameter:function(l){var o=URLPARAMS[l];return o||null},getUrlProtocol:function(l){var o=l.match(/^([a-z]+:)\/\//i);return o===null?window.location.protocol:o[1].toLowerCase()},createAjaxRequest:function(l){var o;try{o=!!new ActiveXObject("Microsoft.XMLHTTP")}catch{o=!1}
153if(o)window.XMLHttpRequest?$.createAjaxRequest=function(u){return u?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:$.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else if(window.XMLHttpRequest)$.createAjaxRequest=function(){return new XMLHttpRequest};else throw new Error("Browser doesn't support XMLHttpRequest.");return $.createAjaxRequest(l)},makeAjaxRequest:function(l,o,u){var d,f,p;$.isPlainObject(l)&&(o=l.success,u=l.error,d=l.withCredentials,f=l.headers,p=l.responseType||null,l=l.url);var h=$.getUrlProtocol(l),v=$.createAjaxRequest(h==="file:");if(!$.isFunction(o))throw new Error("makeAjaxRequest requires a success callback");v.onreadystatechange=function(){v.readyState==4&&(v.onreadystatechange=function(){},v.status>=200&&v.status<300||v.status===0&&h!=="http:"&&h!=="https:"?o(v):($.console.log("AJAX request returned %d: %s",v.status,l),$.isFunction(u)&&u(v)))};try{if(v.open("GET",l,!0),p&&(v.responseType=p),f)for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&f[g]&&v.setRequestHeader(g,f[g]);d&&(v.withCredentials=!0),v.send(null)}catch(w){var m=w.message,y=$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<10;if(y&&typeof w.number<"u"&&w.number==-2147024891&&(m+=`
154See http://msdn.microsoft.com/en-us/library/ms537505(v=vs.85).aspx#xdomain`),$.console.log("%s while making AJAX request: %s",w.name,m),v.onreadystatechange=function(){},window.XDomainRequest){var b=new window.XDomainRequest;if(b){b.onload=function(E){$.isFunction(o)&&o({responseText:b.responseText,status:200,statusText:"OK"})},b.onerror=function(E){$.isFunction(u)&&u({responseText:b.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{b.open("GET",l),b.send()}catch{$.isFunction(u)&&u(v,w)}}}else $.isFunction(u)&&u(v,w)}return v},jsonp:function(l){var o,u=l.url,d=document.head||document.getElementsByTagName("head")[0]||document.documentElement,f=l.callbackName||"openseadragon"+$.now(),p=window[f],h="$1"+f+"$2",v=l.param||"callback",g=l.callback;u=u.replace(/(\=)\?(&|$)|\?\?/i,h),u+=(/\?/.test(u)?"&":"?")+v+"="+f,window[f]=function(m){if(p)window[f]=p;else try{delete window[f]}catch{}g&&$.isFunction(g)&&g(m)},o=document.createElement("script"),(l.async!==void 0||l.async!==!1)&&(o.async="async"),l.scriptCharset&&(o.charset=l.scriptCharset),o.src=u,o.onload=o.onreadystatechange=function(m,y){(y||!o.readyState||/loaded|complete/.test(o.readyState))&&(o.onload=o.onreadystatechange=null,d&&o.parentNode&&d.removeChild(o),o=void 0)},d.insertBefore(o,d.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(l){if(window.DOMParser)$.parseXml=function(o){var u=null,d;return d=new DOMParser,u=d.parseFromString(o,"text/xml"),u};else if(window.ActiveXObject)$.parseXml=function(o){var u=null;return u=new ActiveXObject("Microsoft.XMLDOM"),u.async=!1,u.loadXML(o),u};else throw new Error("Browser doesn't support XML DOM.");return $.parseXml(l)},parseJSON:function(string){return window.JSON&&window.JSON.parse?$.parseJSON=window.JSON.parse:$.parseJSON=function(string){return eval("("+string+")")},$.parseJSON(string)},imageFormatSupported:function(l){return l=l||"",!!FILEFORMATS[l.toLowerCase()]}});var nullfunction=function(l){};$.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(){var l=navigator.appVersion,o=navigator.userAgent,u;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(o.substring(o.indexOf("MSIE")+5,o.indexOf(";",o.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(o.indexOf("Firefox")>=0?($.Browser.vendor=$.BROWSERS.FIREFOX,$.Browser.version=parseFloat(o.substring(o.indexOf("Firefox")+8))):o.indexOf("Safari")>=0?($.Browser.vendor=o.indexOf("Chrome")>=0?$.BROWSERS.CHROME:$.BROWSERS.SAFARI,$.Browser.version=parseFloat(o.substring(o.substring(0,o.indexOf("Safari")).lastIndexOf("/")+1,o.indexOf("Safari")))):(u=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,}
154)"),u.exec(o)!==null&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(RegExp.$1))));break;case"Opera":$.Browser.vendor=$.BROWSERS.OPERA,$.Browser.version=parseFloat(l);break}var d=window.location.search.substring(1),f=d.split("&"),p,h,v;for(v=0;v<f.length;v++)if(p=f[v],h=p.indexOf("="),h>0){var g=p.substring(0,h),m=p.substring(h+1);try{URLPARAMS[g]=decodeURIComponent(m)}catch{$.console.error("Ignoring malformed URL parameter: %s=%s",g,m)}}$.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(l){var o=l.requestAnimationFrame||l.mozRequestAnimationFrame||l.webkitRequestAnimationFrame||l.msRequestAnimationFrame,u=l.cancelAnimationFrame||l.mozCancelAnimationFrame||l.webkitCancelAnimationFrame||l.msCancelAnimationFrame;if(o&&u)$.requestAnimationFrame=function(){return o.apply(l,arguments)},$.cancelAnimationFrame=function(){return u.apply(l,arguments)};else{var d=[],f=[],p=0,h;$.requestAnimationFrame=function(v){return d.push([++p,v]),h||(h=setInterval(function(){if(d.length){var g=$.now(),m=f;for(f=d,d=m;f.length;)f.shift()[1](g)}else clearInterval(h),h=void 0},1e3/50)),p},$.cancelAnimationFrame=function(v){var g,m;for(g=0,m=d.length;g<m;g+=1)if(d[g][0]===v){d.splice(g,1);return}for(g=0,m=f.length;g<m;g+=1)if(f[g][0]===v){f.splice(g,1);return}}}})(window);function getOffsetParent(l,o){return o&&l!=document.body?document.body:l.offsetParent}})(OpenSeadragon),(function(l,o){module.exports?module.exports=o():l.OpenSeadragon=o()})(openseadragon,function(){return OpenSeadragon}),(function(l){var o={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""};document.exitFullscreen?(o.supportsFullScreen=!0,o.getFullScreenElement=function(){return document.fullscreenElement},o.requestFullScreen=function(u){return u.requestFullscreen()},o.exitFullScreen=function(){document.exitFullscreen()},o.fullScreenEventName="fullscreenchange",o.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(o.supportsFullScreen=!0,o.getFullScreenElement=function(){return document.msFullscreenElement},o.requestFullScreen=function(u){return u.msRequestFullscreen()},o.exitFullScreen=function(){document.msExitFullscreen()},o.fullScreenEventName="MSFullscreenChange",o.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(o.supportsFullScreen=!0,o.getFullScreenElement=function(){return document.webkitFullscreenElement},o.requestFullScreen=function(u){return u.webkitRequestFullscreen()},o.exitFullScreen=function(){document.webkitExitFullscreen()},o.fullScreenEventName="webkitfullscreenchange",o.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(o.supportsFullScreen=!0,o.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},o.requestFullScreen=function(u){return u.webkitRequestFullScreen()},o.exitFullScreen=function(){document.webkitCancelFullScreen()},o.fullScreenEventName="webkitfullscreenchange",o.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(o.supportsFullScreen=!0,o.getFullScreenElement=function(){return document.mozFullScreenElement},o.requestFullScreen=function(u){return u.mozRequestFullScreen()},o.exitFullScreen=function(){document.mozCancelFullScreen()},o.fullScreenEventName="mozfullscreenchange",o.fullScreenErrorEventName="mozfullscreenerror"),o.isFullScreen=function(){return o.getFullScreenElement()!==null},o.cancelFullScreen=function(){l.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),o.exitFullScreen()},l.extend(l,o)})(OpenSeadragon),(function(l){l.EventSource=function(){this.events={}},l.EventSource.prototype={addOnceHandler:function(o,u,d,f){var p=this;f=f||1;var h=0,v=function(g){h++,h===f&&p.removeHandler(o,v),u(g)};this.addHandler(o,v,d)},addHandler:function(o,u,d){var f=this.events[o];f||(this.events[o]=f=[]),u&&l.isFunction(u)&&(f[f.length]={handler:u,userData:d||null})},removeHandler:function(o,u){var d=this.events[o],f=[],p;if(d&&l.isArray(d)){for(p=0;p<d.length;p++)d[p].handler!==u&&f.push(d[p]);this.events[o]=f}}
154,removeAllHandlers:function(o){if(o)this.events[o]=[];else for(var u in this.events)this.events[u]=[]},getHandler:function(o){var u=this.events[o];return!u||!u.length?null:(u=u.length===1?[u[0]]:Array.apply(null,u),function(d,f){var p,h=u.length;for(p=0;p<h;p++)u[p]&&(f.eventSource=d,f.userData=u[p].userData,u[p].handler(f))})},raiseEvent:function(o,u){var d=this.getHandler(o);d&&(u||(u={}),d(this,u))}}})(OpenSeadragon),(function(l){var o=[],u={};l.MouseTracker=function(ae){o.push(this);var re=arguments;l.isPlainObject(ae)||(ae={element:re[0],clickTimeThreshold:re[1],clickDistThreshold:re[2]}),this.hash=Math.random(),this.element=l.getElement(ae.element),this.clickTimeThreshold=ae.clickTimeThreshold||l.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=ae.clickDistThreshold||l.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=ae.dblClickTimeThreshold||l.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=ae.dblClickDistThreshold||l.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=ae.userData||null,this.stopDelay=ae.stopDelay||50,this.enterHandler=ae.enterHandler||null,this.exitHandler=ae.exitHandler||null,this.pressHandler=ae.pressHandler||null,this.nonPrimaryPressHandler=ae.nonPrimaryPressHandler||null,this.releaseHandler=ae.releaseHandler||null,this.nonPrimaryReleaseHandler=ae.nonPrimaryReleaseHandler||null,this.moveHandler=ae.moveHandler||null,this.scrollHandler=ae.scrollHandler||null,this.clickHandler=ae.clickHandler||null,this.dblClickHandler=ae.dblClickHandler||null,this.dragHandler=ae.dragHandler||null,this.dragEndHandler=ae.dragEndHandler||null,this.pinchHandler=ae.pinchHandler||null,this.stopHandler=ae.stopHandler||null,this.keyDownHandler=ae.keyDownHandler||null,this.keyUpHandler=ae.keyUpHandler||null,this.keyHandler=ae.keyHandler||null,this.focusHandler=ae.focusHandler||null,this.blurHandler=ae.blurHandler||null;var he=this;u[this.hash]={click:function(Pe){P(he,Pe)},dblclick:function(Pe){C(he,Pe)},keydown:function(Pe){T(he,Pe)},keyup:function(Pe){O(he,Pe)},keypress:function(Pe){x(he,Pe)},focus:function(Pe){A(he,Pe)},blur:function(Pe){D(he,Pe)},wheel:function(Pe){j(he,Pe)},mousewheel:function(Pe){M(he,Pe)},DOMMouseScroll:function(Pe){M(he,Pe)},MozMousePixelScroll:function(Pe){M(he,Pe)},mouseenter:function(Pe){z(he,Pe)},mouseleave:function(Pe){F(he,Pe)},mouseover:function(Pe){H(he,Pe)},mouseout:function(Pe){B(he,Pe)},mousedown:function(Pe){K(he,Pe)},mouseup:function(Pe){Z(he,Pe)},mouseupcaptured:function(Pe){te(he,Pe)},mousemove:function(Pe){fe(he,Pe)},mousemovecaptured:function(Pe){le(he,Pe)},touchstart:function(Pe){_e(he,Pe)},touchend:function(Pe){ee(he,Pe)},touchendcaptured:function(Pe){se(he,Pe)},touchmove:function(Pe){Ee(he,Pe)},touchmovecaptured:function(Pe){xe(he,Pe)},touchcancel:function(Pe){Ie(he,Pe)},gesturestart:function(Pe){ge(he,Pe)},gesturechange:function(Pe){Y(he,Pe)},pointerover:function(Pe){ie(he,Pe)},MSPointerOver:function(Pe){ie(he,Pe)},pointerout:function(Pe){ce(he,Pe)},MSPointerOut:function(Pe){ce(he,Pe)},pointerdown:function(Pe){ue(he,Pe)},MSPointerDown:function(Pe){ue(he,Pe)},pointerup:function(Pe){pe(he,Pe)},MSPointerUp:function(Pe){pe(he,Pe)},pointermove:function(Pe){Fe(he,Pe)},MSPointerMove:function(Pe){Fe(he,Pe)},pointercancel:function(Pe){Oe(he,Pe)},MSPointerCancel:function(Pe){Oe(he,Pe)},pointerupcaptured:function(Pe){Te(he,Pe)},pointermovecaptured:function(Pe){He(he,Pe)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null},ae.startDisabled||this.setTracking(!0)},l.MouseTracker.prototype={destroy:function(){var ae;for(p(this),this.element=null,ae=0;ae<o.length;ae++)if(o[ae]===this){o.splice(ae,1);break}u[this.hash]=null,delete u[this.hash]},isTracking:function(){return u[this.hash].tracking},setTracking:function(ae){return ae?f(this):p(this),this},getActivePointersListsExceptType:function(ae){for(var re=u[this.hash],he=[],Pe=0;Pe<re.activePointersLists.length;++Pe)re.activePointersLists[Pe].type!==ae&&he.push(re.activePointersLists[Pe]);return he},getActivePointersListByType:function(ae){var re=u[this.hash],he,Pe=re.activePointersLists.length,We;for(he=0;he<Pe;he++)if(re.activePointersLists[he].type===ae)return re.activePointersLists[he];return We=new l.MouseTracker.GesturePointList(ae),re.activePointersLists.push(We),We},getActivePointerCount:function(){var ae=u[this.hash],re,he=ae.activePointersLists.length,Pe=0;for(re=0;re<he;re++)Pe+=ae.activePointersLists[re].getLength();return Pe},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(){}
154,keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}},l.MouseTracker.resetAllMouseTrackers=function(){for(var ae=0;ae<o.length;ae++)o[ae].isTracking()&&(o[ae].setTracking(!1),o[ae].setTracking(!0))},l.MouseTracker.gesturePointVelocityTracker=(function(){var ae=[],re=0,he=0,Pe=function(ht,bt){return ht.hash.toString()+bt.type+bt.id.toString()},We=function(){var ht,bt=ae.length,xt,Rt,ut=l.now(),Me,vt,Ot;for(Me=ut-he,he=ut,ht=0;ht<bt;ht++)xt=ae[ht],Rt=xt.gPoint,Rt.direction=Math.atan2(Rt.currentPos.y-xt.lastPos.y,Rt.currentPos.x-xt.lastPos.x),vt=xt.lastPos.distanceTo(Rt.currentPos),xt.lastPos=Rt.currentPos,Ot=1e3*vt/(Me+1),Rt.speed=.75*Ot+.25*Rt.speed},yt=function(ht,bt){var xt=Pe(ht,bt);ae.push({guid:xt,gPoint:bt,lastPos:bt.currentPos}),ae.length===1&&(he=l.now(),re=window.setInterval(We,50))},ct=function(ht,bt){var xt=Pe(ht,bt),Rt,ut=ae.length;for(Rt=0;Rt<ut;Rt++)if(ae[Rt].guid===xt){ae.splice(Rt,1),ut--,ut===0&&window.clearInterval(re);break}};return{addPoint:yt,removePoint:ct}})(),l.MouseTracker.captureElement=document,l.MouseTracker.wheelEventName=l.Browser.vendor==l.BROWSERS.IE&&l.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",l.MouseTracker.supportsMouseCapture=(function(){var ae=document.createElement("div");return l.isFunction(ae.setCapture)&&l.isFunction(ae.releaseCapture)})(),l.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur",l.MouseTracker.wheelEventName],l.MouseTracker.wheelEventName=="DOMMouseScroll"&&l.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent&&(window.navigator.pointerEnabled||l.Browser.vendor!==l.BROWSERS.IE)?(l.MouseTracker.havePointerEvents=!0,l.MouseTracker.subscribeEvents.push("pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),l.MouseTracker.unprefixedPointerEvents=!0,navigator.maxTouchPoints?l.MouseTracker.maxTouchPoints=navigator.maxTouchPoints:l.MouseTracker.maxTouchPoints=0,l.MouseTracker.haveMouseEnter=!1):window.MSPointerEvent&&window.navigator.msPointerEnabled?(l.MouseTracker.havePointerEvents=!0,l.MouseTracker.subscribeEvents.push("MSPointerOver","MSPointerOut","MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"),l.MouseTracker.unprefixedPointerEvents=!1,navigator.msMaxTouchPoints?l.MouseTracker.maxTouchPoints=navigator.msMaxTouchPoints:l.MouseTracker.maxTouchPoints=0,l.MouseTracker.haveMouseEnter=!1):(l.MouseTracker.havePointerEvents=!1,l.Browser.vendor===l.BROWSERS.IE&&l.Browser.version<9?(l.MouseTracker.subscribeEvents.push("mouseenter","mouseleave"),l.MouseTracker.haveMouseEnter=!0):(l.MouseTracker.subscribeEvents.push("mouseover","mouseout"),l.MouseTracker.haveMouseEnter=!1),l.MouseTracker.subscribeEvents.push("mousedown","mouseup","mousemove"),"ontouchstart"in window&&l.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&l.MouseTracker.subscribeEvents.push("gesturestart","gesturechange"),l.MouseTracker.mousePointerId="legacy-mouse",l.MouseTracker.maxTouchPoints=10),l.MouseTracker.GesturePointList=function(ae){this._gPoints=[],this.type=ae,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},l.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(ae){return this._gPoints.push(ae)},removeById:function(ae){var re,he=this._gPoints.length;for(re=0;re<he;re++)if(this._gPoints[re].id===ae){this._gPoints.splice(re,1);break}return this._gPoints.length},getByIndex:function(ae){return ae<this._gPoints.length?this._gPoints[ae]:null},getById:function(ae){var re,he=this._gPoints.length;for(re=0;re<he;re++)if(this._gPoints[re].id===ae)return this._gPoints[re];return null},getPrimary:function(ae){var re,he=this._gPoints.length;for(re=0;re<he;re++)if(this._gPoints[re].isPrimary)return this._gPoints[re];return null},addContact:function(){++this.contacts,this.contacts>
1541&&(this.type==="mouse"||this.type==="pen")&&(this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}};function d(ae){var re=u[ae.hash],he,Pe=re.activePointersLists.length;for(he=0;he<Pe;he++)re.activePointersLists[he].captureCount>0&&(l.removeEvent(l.MouseTracker.captureElement,"mousemove",re.mousemovecaptured,!0),l.removeEvent(l.MouseTracker.captureElement,"mouseup",re.mouseupcaptured,!0),l.removeEvent(l.MouseTracker.captureElement,l.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",re.pointermovecaptured,!0),l.removeEvent(l.MouseTracker.captureElement,l.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",re.pointerupcaptured,!0),l.removeEvent(l.MouseTracker.captureElement,"touchmove",re.touchmovecaptured,!0),l.removeEvent(l.MouseTracker.captureElement,"touchend",re.touchendcaptured,!0),re.activePointersLists[he].captureCount=0);for(he=0;he<Pe;he++)re.activePointersLists.pop()}function f(ae){var re=u[ae.hash],he,Pe;if(!re.tracking){for(Pe=0;Pe<l.MouseTracker.subscribeEvents.length;Pe++)he=l.MouseTracker.subscribeEvents[Pe],l.addEvent(ae.element,he,re[he],!1);d(ae),re.tracking=!0}}function p(ae){var re=u[ae.hash],he,Pe;if(re.tracking){for(Pe=0;Pe<l.MouseTracker.subscribeEvents.length;Pe++)he=l.MouseTracker.subscribeEvents[Pe],l.removeEvent(ae.element,he,re[he],!1);d(ae),re.tracking=!1}}function h(ae,re){var he=u[ae.hash];if(re==="pointerevent")return{upName:l.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",upHandler:he.pointerupcaptured,moveName:l.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",moveHandler:he.pointermovecaptured};if(re==="mouse")return{upName:"mouseup",upHandler:he.mouseupcaptured,moveName:"mousemove",moveHandler:he.mousemovecaptured};if(re==="touch")return{upName:"touchend",upHandler:he.touchendcaptured,moveName:"touchmove",moveHandler:he.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function v(ae,re,he){var Pe=ae.getActivePointersListByType(re),We;Pe.captureCount+=he||1,Pe.captureCount===1&&(l.Browser.vendor===l.BROWSERS.IE&&l.Browser.version<9?ae.element.setCapture(!0):(We=h(ae,l.MouseTracker.havePointerEvents?"pointerevent":re),Ze&&_t(window.top)&&l.addEvent(window.top,We.upName,We.upHandler,!0),l.addEvent(l.MouseTracker.captureElement,We.upName,We.upHandler,!0),l.addEvent(l.MouseTracker.captureElement,We.moveName,We.moveHandler,!0)))}function g(ae,re,he){var Pe=ae.getActivePointersListByType(re),We;Pe.captureCount-=he||1,Pe.captureCount===0&&(l.Browser.vendor===l.BROWSERS.IE&&l.Browser.version<9?ae.element.releaseCapture():(We=h(ae,l.MouseTracker.havePointerEvents?"pointerevent":re),Ze&&_t(window.top)&&l.removeEvent(window.top,We.upName,We.upHandler,!0),l.removeEvent(l.MouseTracker.captureElement,We.moveName,We.moveHandler,!0),l.removeEvent(l.MouseTracker.captureElement,We.upName,We.upHandler,!0)))}function m(ae){var re;if(l.MouseTracker.unprefixedPointerEvents)re=ae.pointerType;else switch(ae.pointerType){case 2:re="touch";break;case 3:re="pen";break;case 4:re="mouse";break;default:re=""}return re}function y(ae){return l.getMousePosition(ae)}function b(ae,re){return w(y(ae),re)}function w(ae,re){var he=l.getElementOffset(re);return ae.minus(he)}function E(ae,re){return new l.Point((ae.x+re.x)/2,(ae.y+re.y)/2)}function P(ae,re){ae.clickHandler&&l.cancelEvent(re)}function C(ae,re){ae.dblClickHandler&&l.cancelEvent(re)}function T(ae,re){var he;ae.keyDownHandler&&(re=l.getEvent(re),he=ae.keyDownHandler({eventSource:ae,keyCode:re.keyCode?re.keyCode:re.charCode,ctrl:re.ctrlKey,shift:re.shiftKey,alt:re.altKey,meta:re.metaKey,originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),he||l.cancelEvent(re))}function O(ae,re){var he;ae.keyUpHandler&&(re=l.getEvent(re),he=ae.keyUpHandler({eventSource:ae,keyCode:re.keyCode?re.keyCode:re.charCode,ctrl:re.ctrlKey,shift:re.shiftKey,alt:re.altKey,meta:re.metaKey,originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),he||l.cancelEvent(re))}function x(ae,re){var he;ae.keyHandler&&(re=l.getEvent(re),he=ae.keyHandler({eventSource:ae,keyCode:re.keyCode?re.keyCode:re.charCode,ctrl:re.ctrlKey,shift:re.shiftKey,alt:re.altKey,meta:re.metaKey,originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),he||l.cancelEvent(re))}function A(ae,re){var he;ae.focusHandler&&(re=l.getEvent(re),he=ae.focusHandler({eventSource:ae,originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),he===!1&&l.cancelEvent(re))}function D(ae,re){var he;ae.blurHandler&&(re=l.getEvent(re),he=ae.blurHandler({eventSource:ae,originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),he===!1&&l.cancelEvent(re))}function j(ae,re){N(ae,re,re)}function M(ae,re){re=l.getEvent(re);var he={target:re.target||re.srcElement,type:"wheel",shiftKey:re.shiftKey||!1,clientX:re.clientX,clientY:re.clientY,pageX:re.pageX?re.pageX:re.clientX,pageY:re.pageY?re.pageY:re.clientY,deltaMode:re.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0};l.MouseTracker.wheelEventName=="mousewheel"?he.deltaY=-re.wheelDelta/l.DEFAULT_SETTINGS.pixelsPerWheelLine:he.deltaY=re.detail,N(ae,he,re)}function N(ae,re,he){var Pe=0,We;Pe=re.deltaY<0?1:-1,ae.scrollHandler&&(We=ae.scrollHandler({eventSource:ae,pointerType:"mouse",position:b(re,ae.element),scroll:Pe,shift:re.shiftKey,isTouchEvent:!1,originalEvent:he,preventDefaultAction:!1,userData:ae.userData}),We===!1&&l.cancelEvent(he))}function q(ae,re){if(ae===re)return!1;for(;re&&re!==ae;)re=re.parentNode;return re===ae}function z(ae,re){re=l.getEvent(re),U(ae,re)}function H(ae,re){re=l.getEvent(re),!(re.currentTarget===re.relatedTarget||q(re.currentTarget,re.relatedTarget))&&U(ae,re)}function U(ae,re){var he={id:l.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:y(re),currentTime:l.now()};Be(ae,re,[he])}function F(ae,re){re=l.getEvent(re),G(ae,re)}function B(ae,re){re=l.getEvent(re),!(re.currentTarget===re.relatedTarget||q(re.currentTarget,re.relatedTarget))&&G(ae,re)}function G(ae,re){var he={id:l.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:y(re),currentTime:l.now()};Ve(ae,re,[he])}function Q(ae){return l.Browser.vendor===l.BROWSERS.IE&&l.Browser.version<9?ae===1?0:ae===2?2:ae===4?1:-1:ae}function K(ae,re){var he;
154re=l.getEvent(re),he={id:l.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:y(re),currentTime:l.now()},Ye(ae,re,[he],Q(re.button))&&(l.stopEvent(re),v(ae,"mouse")),(ae.clickHandler||ae.dblClickHandler||ae.pressHandler||ae.dragHandler||ae.dragEndHandler)&&l.cancelEvent(re)}function Z(ae,re){oe(ae,re)}function te(ae,re){oe(ae,re),l.stopEvent(re)}function oe(ae,re){var he;re=l.getEvent(re),he={id:l.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:y(re),currentTime:l.now()},Ge(ae,re,[he],Q(re.button))&&g(ae,"mouse")}function fe(ae,re){Re(ae,re)}function le(ae,re){Re(ae,re),l.stopEvent(re)}function Re(ae,re){var he;re=l.getEvent(re),he={id:l.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:y(re),currentTime:l.now()},dt(ae,re,[he])}function Ae(ae,re,he){var Pe,We=he.getLength(),yt=[];if(he.type==="touch"||he.contacts>0){for(Pe=0;Pe<We;Pe++)yt.push(he.getByIndex(Pe));yt.length>0&&(Ge(ae,re,yt,0),he.captureCount=1,g(ae,he.type),Ve(ae,re,yt))}}function _e(ae,re){var he,Pe,We,yt=re.changedTouches.length,ct=[],ht,bt=ae.getActivePointersListByType("touch");for(he=l.now(),bt.getLength()>re.touches.length-yt&&(l.console.warn("Tracked touch contact count doesn't match event.touches.length. Removing all tracked touch pointers."),Ae(ae,re,bt)),Pe=0;Pe<yt;Pe++)ct.push({id:re.changedTouches[Pe].identifier,type:"touch",currentPos:y(re.changedTouches[Pe]),currentTime:he});for(Be(ae,re,ct),Pe=0;Pe<o.length;Pe++)if(o[Pe]!==ae&&o[Pe].isTracking()&&q(o[Pe].element,ae.element)){for(ht=[],We=0;We<yt;We++)ht.push({id:re.changedTouches[We].identifier,type:"touch",currentPos:y(re.changedTouches[We]),currentTime:he});Be(o[Pe],re,ht)}Ye(ae,re,ct,0)&&(l.stopEvent(re),v(ae,"touch",yt)),l.cancelEvent(re)}function ee(ae,re){$e(ae,re)}function se(ae,re){$e(ae,re),l.stopEvent(re)}function $e(ae,re){var he,Pe,We,yt=re.changedTouches.length,ct=[],ht;for(he=l.now(),Pe=0;Pe<yt;Pe++)ct.push({id:re.changedTouches[Pe].identifier,type:"touch",currentPos:y(re.changedTouches[Pe]),currentTime:he});for(Ge(ae,re,ct,0)&&g(ae,"touch",yt),Ve(ae,re,ct),Pe=0;Pe<o.length;Pe++)if(o[Pe]!==ae&&o[Pe].isTracking()&&q(o[Pe].element,ae.element)){for(ht=[],We=0;We<yt;We++)ht.push({id:re.changedTouches[We].identifier,type:"touch",currentPos:y(re.changedTouches[We]),currentTime:he});Ve(o[Pe],re,ht)}l.cancelEvent(re)}function Ee(ae,re){Se(ae,re)}function xe(ae,re){Se(ae,re),l.stopEvent(re)}function Se(ae,re){var he,Pe=re.changedTouches.length,We=[];for(he=0;he<Pe;he++)We.push({id:re.changedTouches[he].identifier,type:"touch",currentPos:y(re.changedTouches[he]),currentTime:l.now()});dt(ae,re,We),l.cancelEvent(re)}function Ie(ae,re){var he=ae.getActivePointersListByType("touch");Ae(ae,re,he)}function ge(ae,re){return re.stopPropagation(),re.preventDefault(),!1}function Y(ae,re){return re.stopPropagation(),re.preventDefault(),!1}function ie(ae,re){var he;re.currentTarget===re.relatedTarget||q(re.currentTarget,re.relatedTarget)||(he={id:re.pointerId,type:m(re),isPrimary:re.isPrimary,currentPos:y(re),currentTime:l.now()},Be(ae,re,[he]))}function ce(ae,re){var he;re.currentTarget===re.relatedTarget||q(re.currentTarget,re.relatedTarget)||(he={id:re.pointerId,type:m(re),isPrimary:re.isPrimary,currentPos:y(re),currentTime:l.now()},Ve(ae,re,[he]))}function ue(ae,re){var he;he={id:re.pointerId,type:m(re),isPrimary:re.isPrimary,currentPos:y(re),currentTime:l.now()},Ye(ae,re,[he],re.button)&&(l.stopEvent(re),v(ae,he.type)),(ae.clickHandler||ae.dblClickHandler||ae.pressHandler||ae.dragHandler||ae.dragEndHandler||ae.pinchHandler)&&l.cancelEvent(re)}function pe(ae,re){Ce(ae,re)}function Te(ae,re){var he=ae.getActivePointersListByType(m(re));he.getById(re.pointerId)&&Ce(ae,re),l.stopEvent(re)}function Ce(ae,re){var he;he={id:re.pointerId,type:m(re),isPrimary:re.isPrimary,currentPos:y(re),currentTime:l.now()},Ge(ae,re,[he],re.button)&&g(ae,he.type)}function Fe(ae,re){we(ae,re)}function He(ae,re){var he=ae.getActivePointersListByType(m(re));he.getById(re.pointerId)&&we(ae,re),l.stopEvent(re)}function we(ae,re){var he;he={id:re.pointerId,type:m(re),isPrimary:re.isPrimary,currentPos:y(re),currentTime:l.now()},dt(ae,re,[he])}function Oe(ae,re){var he;he={id:re.pointerId,type:m(re)},ze(ae,re,[he])}function Ne(ae,re){return Object.prototype.hasOwnProperty.call(re,"isPrimary")||(ae.getLength()===0?re.isPrimary=!0:re.isPrimary=!1),re.speed=0,re.direction=0,re.contactPos=re.currentPos,re.contactTime=re.currentTime,re.lastPos=re.currentPos,re.lastTime=re.currentTime,ae.add(re)}function qe(ae,re){var he,Pe;return ae.getById(re.id)?(he=ae.removeById(re.id),Object.prototype.hasOwnProperty.call(re,"isPrimary")||(Pe=ae.getPrimary(),Pe||(Pe=ae.getByIndex(0),Pe&&(Pe.isPrimary=!0)))):he=
154ae.getLength(),he}function Be(ae,re,he){var Pe=ae.getActivePointersListByType(he[0].type),We,yt=he.length,ct,ht,bt;for(We=0;We<yt;We++)ct=he[We],ht=Pe.getById(ct.id),ht?(ht.insideElement=!0,ht.lastPos=ht.currentPos,ht.lastTime=ht.currentTime,ht.currentPos=ct.currentPos,ht.currentTime=ct.currentTime,ct=ht):(ct.captured=!1,ct.insideElementPressed=!1,ct.insideElement=!0,Ne(Pe,ct)),ae.enterHandler&&(bt=ae.enterHandler({eventSource:ae,pointerType:ct.type,position:w(ct.currentPos,ae.element),buttons:Pe.buttons,pointers:ae.getActivePointerCount(),insideElementPressed:ct.insideElementPressed,buttonDownAny:Pe.buttons!==0,isTouchEvent:ct.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),bt===!1&&l.cancelEvent(re))}function Ve(ae,re,he){var Pe=ae.getActivePointersListByType(he[0].type),We,yt=he.length,ct,ht,bt;for(We=0;We<yt;We++)ct=he[We],ht=Pe.getById(ct.id),ht&&(ht.captured?(ht.insideElement=!1,ht.lastPos=ht.currentPos,ht.lastTime=ht.currentTime,ht.currentPos=ct.currentPos,ht.currentTime=ct.currentTime):qe(Pe,ht),ct=ht),ae.exitHandler&&(bt=ae.exitHandler({eventSource:ae,pointerType:ct.type,position:ct.currentPos&&w(ct.currentPos,ae.element),buttons:Pe.buttons,pointers:ae.getActivePointerCount(),insideElementPressed:ht?ht.insideElementPressed:!1,buttonDownAny:Pe.buttons!==0,isTouchEvent:ct.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),bt===!1&&l.cancelEvent(re))}function Ye(ae,re,he,Pe){var We=u[ae.hash],yt,ct=ae.getActivePointersListByType(he[0].type),ht,bt=he.length,xt,Rt;typeof re.buttons<"u"?ct.buttons=re.buttons:l.Browser.vendor===l.BROWSERS.IE&&l.Browser.version<9?Pe===0?ct.buttons+=1:Pe===1?ct.buttons+=4:Pe===2?ct.buttons+=2:Pe===3?ct.buttons+=8:Pe===4?ct.buttons+=16:Pe===5&&(ct.buttons+=32):Pe===0?ct.buttons|=1:Pe===1?ct.buttons|=4:Pe===2?ct.buttons|=2:Pe===3?ct.buttons|=8:Pe===4?ct.buttons|=16:Pe===5&&(ct.buttons|=32);var ut=ae.getActivePointersListsExceptType(he[0].type);for(ht=0;ht<ut.length;ht++)Ae(ae,re,ut[ht]);if(Pe!==0)return ae.nonPrimaryPressHandler&&(yt=ae.nonPrimaryPressHandler({eventSource:ae,pointerType:he[0].type,position:w(he[0].currentPos,ae.element),button:Pe,buttons:ct.buttons,isTouchEvent:he[0].type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),yt===!1&&l.cancelEvent(re)),!1;for(ht=0;ht<bt;ht++)xt=he[ht],Rt=ct.getById(xt.id),Rt?(Rt.captured=!0,Rt.insideElementPressed=!0,Rt.insideElement=!0,Rt.contactPos=xt.currentPos,Rt.contactTime=xt.currentTime,Rt.lastPos=Rt.currentPos,Rt.lastTime=Rt.currentTime,Rt.currentPos=xt.currentPos,Rt.currentTime=xt.currentTime,xt=Rt):(xt.captured=!0,xt.insideElementPressed=!0,xt.insideElement=!0,Ne(ct,xt)),ct.addContact(),(ae.dragHandler||ae.dragEndHandler||ae.pinchHandler)&&l.MouseTracker.gesturePointVelocityTracker.addPoint(ae,xt),ct.contacts===1?ae.pressHandler&&(yt=ae.pressHandler({eventSource:ae,pointerType:xt.type,position:w(xt.contactPos,ae.element),buttons:ct.buttons,isTouchEvent:xt.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),yt===!1&&l.cancelEvent(re)):ct.contacts===2&&ae.pinchHandler&&xt.type==="touch"&&(We.pinchGPoints=ct.asArray(),We.lastPinchDist=We.currentPinchDist=We.pinchGPoints[0].currentPos.distanceTo(We.pinchGPoints[1].currentPos),We.lastPinchCenter=We.currentPinchCenter=E(We.pinchGPoints[0].currentPos,We.pinchGPoints[1].currentPos));return!0}function Ge(ae,re,he,Pe){var We=u[ae.hash],yt=ae.getActivePointersListByType(he[0].type),ct,ht,bt,xt,Rt=he.length,ut,Me,vt=!1,Ot=!1,ft;if(typeof re.buttons<"u"?yt.buttons=re.buttons:l.Browser.vendor===l.BROWSERS.IE&&l.Browser.version<9?Pe===0?yt.buttons-=1:Pe===1?yt.buttons-=4:Pe===2?yt.buttons-=2:Pe===3?yt.buttons-=8:Pe===4?yt.buttons-=16:Pe===5&&(yt.buttons-=32):Pe===0?yt.buttons^=-2:Pe===1?yt.buttons^=-5:Pe===2?yt.buttons^=-3:Pe===3?yt.buttons^=-9:Pe===4?yt.buttons^=-17:Pe===5&&(yt.buttons^=-33),Pe!==0){ae.nonPrimaryReleaseHandler&&(ct=ae.nonPrimaryReleaseHandler({eventSource:ae,pointerType:he[0].type,position:w(he[0].currentPos,ae.element),button:Pe,buttons:yt.buttons,isTouchEvent:he[0].type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ct===!1&&l.cancelEvent(re));var wt=ae.getActivePointersListByType("mouse");return Ae(ae,re,wt),!1}if(typeof he[0].currentPos>"u")return Ae(ae,re,yt),!1;for(xt=0;xt<Rt;xt++)ut=he[xt],Me=yt.getById(ut.id),Me&&(Me.captured&&(Me.captured=!1,vt=!0,Ot=!0),Me.lastPos=Me.currentPos,Me.lastTime=Me.currentTime,Me.currentPos=ut.currentPos,Me.currentTime=ut.currentTime,Me.insideElement||qe(yt,Me),ht=Me.currentPos,bt=Me.currentTime,Ot?(yt.removeContact(),(ae.dragHandler||ae.dragEndHandler||ae.pinchHandler)&&l.MouseTracker.gesturePointVelocityTracker.removePoint(ae,Me),yt.contacts===0?(ae.releaseHandler&&(ct=ae.releaseHandler({eventSource:ae,pointerType:Me.type,position:w(ht,ae.element),buttons:yt.buttons,insideElementPressed:Me.insideElementPressed,insideElementReleased:Me.insideElement,isTouchEvent:Me.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ct===!1&&l.cancelEvent(re)),ae.dragEndHandler&&!Me.currentPos.equals(Me.contactPos)&&(ct=ae.dragEndHandler({eventSource:ae,pointerType:Me.type,position:w(Me.currentPos,ae.element),speed:Me.speed,direction:Me.direction,shift:re.shiftKey,isTouchEvent:Me.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ct===!1&&l.cancelEvent(re)),(ae.clickHandler||ae.dblClickHandler)&&Me.insideElement&&(ft=bt-Me.contactTime<=ae.clickTimeThreshold&&Me.contactPos.distanceTo(ht)<=ae.clickDistThreshold,ae.clickHandler&&(ct=ae.clickHandler({eventSource:ae,pointerType:Me.type,position:w(Me.currentPos,ae.element),quick:ft,shift:re.shiftKey,isTouchEvent:Me.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ct===!1&&l.cancelEvent(re)),ae.dblClickHandler&&ft&&(yt.clicks++,yt.clicks===1?(We.lastClickPos=ht,We.dblClickTimeOut=setTimeout(function(){yt.clicks=0},ae.dblClickTimeThreshold)):yt.clicks===2&&(clearTimeout(We.dblClickTimeOut),yt.clicks=0,We.lastClickPos.distanceTo(ht)<=ae.dblClickDistThreshold&&(ct=ae.dblClickHandler({eventSource:ae,pointerType:Me.type,position:w(Me.currentPos,ae.element),shift:re.shiftKey,isTouchEvent:Me.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ct===!1&&l.cancelEvent(re)),We.lastClickPos=null)))):yt.contacts===2&&ae.pinchHandler&&Me.type==="touch"&&(We.pinchGPoints=yt.asArray(),We.lastPinchDist=We.currentPinchDist=We.pinchGPoints[0].currentPos.distanceTo(We.pinchGPoints[1].currentPos),We.lastPinchCenter=We.currentPinchCenter=E(We.pinchGPoints[0].currentPos,We.pinchGPoints[1].currentPos))):ae.releaseHandler&&(ct=ae.releaseHandler({eventSource:ae,pointerType:Me.type,position:w(ht,ae.element),buttons:yt.buttons,insideElementPressed:Me.insideElementPressed,insideElementReleased:Me.insideElement,isTouchEvent:Me.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ct===!1&&l.cancelEvent(re)));return vt}function dt(ae,re,he){var Pe=u[ae.hash],We=ae.getActivePointersListByType(he[0].type),yt,ct=he.length,ht,bt,xt,Rt,ut;for(typeof re.buttons<"u"&&(We.buttons=re.buttons),yt=0;yt<ct;yt++)ht=he[yt],bt=We.getById(ht.id),bt?(Object.prototype.hasOwnProperty.call(ht,"isPrimary")&&(bt.isPrimary=ht.isPrimary),bt.lastPos=bt.currentPos,bt.lastTime=bt.currentTime,bt.currentPos=ht.currentPos,bt.currentTime=ht.currentTime):(ht.captured=!1,ht.insideElementPressed=!1,ht.insideElement=!0,Ne(We,ht));ae.stopHandler&&he[0].type==="mouse"&&(clearTimeout(ae.stopTimeOut),ae.stopTimeOut=setTimeout(function(){nt(ae,re,he[0].type)},ae.stopDelay)),We.contacts===0?ae.moveHandler&&(ut=ae.moveHandler({eventSource:ae,pointerType:he[0].type,position:w(he[0].currentPos,ae.element),buttons:We.buttons,isTouchEvent:he[0].type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ut===!1&&l.cancelEvent(re)):We.contacts===1?(ae.moveHandler&&(bt=We.asArray()[0],ut=ae.moveHandler({eventSource:ae,pointerType:bt.type,position:w(bt.currentPos,ae.element),buttons:We.buttons,isTouchEvent:bt.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ut===!1&&l.cancelEvent(re)),ae.dragHandler&&(bt=We.asArray()[0],Rt=bt.currentPos.minus(bt.lastPos),ut=ae.dragHandler({eventSource:ae,pointerType:bt.type,position:w(bt.currentPos,ae.element),buttons:We.buttons,delta:Rt,speed:bt.speed,direction:bt.direction,shift:re.shiftKey,isTouchEvent:bt.type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}
154),ut===!1&&l.cancelEvent(re))):We.contacts===2&&(ae.moveHandler&&(xt=We.asArray(),ut=ae.moveHandler({eventSource:ae,pointerType:xt[0].type,position:w(E(xt[0].currentPos,xt[1].currentPos),ae.element),buttons:We.buttons,isTouchEvent:xt[0].type==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ut===!1&&l.cancelEvent(re)),ae.pinchHandler&&he[0].type==="touch"&&(Rt=Pe.pinchGPoints[0].currentPos.distanceTo(Pe.pinchGPoints[1].currentPos),Rt!=Pe.currentPinchDist&&(Pe.lastPinchDist=Pe.currentPinchDist,Pe.currentPinchDist=Rt,Pe.lastPinchCenter=Pe.currentPinchCenter,Pe.currentPinchCenter=E(Pe.pinchGPoints[0].currentPos,Pe.pinchGPoints[1].currentPos),ut=ae.pinchHandler({eventSource:ae,pointerType:"touch",gesturePoints:Pe.pinchGPoints,lastCenter:w(Pe.lastPinchCenter,ae.element),center:w(Pe.currentPinchCenter,ae.element),lastDistance:Pe.lastPinchDist,distance:Pe.currentPinchDist,shift:re.shiftKey,originalEvent:re,preventDefaultAction:!1,userData:ae.userData}),ut===!1&&l.cancelEvent(re))))}function ze(ae,re,he){Ge(ae,re,he,0),Ve(ae,re,he)}function nt(ae,re,he){ae.stopHandler&&ae.stopHandler({eventSource:ae,pointerType:he,position:b(re,ae.element),buttons:ae.getActivePointersListByType(he).buttons,isTouchEvent:he==="touch",originalEvent:re,preventDefaultAction:!1,userData:ae.userData})}var Ze=(function(){try{return window.self!==window.top}catch{return!0}})();function _t(ae){try{return ae.addEventListener&&ae.removeEventListener}catch{return!1}}})(OpenSeadragon),(function(l){l.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},l.Control=function(o,u,d){var f=o.parentNode;typeof u=="number"&&(l.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"),u={anchor:u}),u.attachToViewer=typeof u.attachToViewer>"u"?!0:u.attachToViewer,this.autoFade=typeof u.autoFade>"u"?!0:u.autoFade,this.element=o,this.anchor=u.anchor,this.container=d,this.anchor==l.ControlAnchor.ABSOLUTE?(this.wrapper=l.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top=typeof u.top=="number"?u.top+"px":u.top,this.wrapper.style.left=typeof u.left=="number"?u.left+"px":u.left,this.wrapper.style.height=typeof u.height=="number"?u.height+"px":u.height,this.wrapper.style.width=typeof u.width=="number"?u.width+"px":u.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=l.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor==l.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),u.attachToViewer?this.anchor==l.ControlAnchor.TOP_RIGHT||this.anchor==l.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):f.appendChild(this.wrapper)},l.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.container.removeChild(this.wrapper)},isVisible:function(){return this.wrapper.style.display!="none"},setVisible:function(o){this.wrapper.style.display=o?this.anchor==l.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(o){this.element[l.SIGNAL]&&l.Browser.vendor==l.BROWSERS.IE?l.setElementOpacity(this.element,o,!0):l.setElementOpacity(this.wrapper,o,!0)}}})(OpenSeadragon),(function(l){l.ControlDock=function(u){var d=["topleft","topright","bottomright","bottomleft"],f,p;for(l.extend(!0,this,{id:"controldock-"+l.now()+"-"+Math.floor(Math.random()*1e6),container:l.makeNeutralElement("div"),controls:[]},u),this.container.onsubmit=function(){return!1},this.element&&(this.element=l.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),p=0;p<d.length;p++)f=d[p],this.controls[f]=l.makeNeutralElement("div"),this.controls[f].style.position="absolute",f.match("left")&&(this.controls[f].style.left="0px"),f.match("right")&&(this.controls[f].style.right="0px"),f.match("top")&&(this.controls[f].style.top="0px"),f.match("bottom")&&(this.controls[f].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)},l.ControlDock.prototype={addControl:function(u,d){u=l.getElement(u);var f=null;if(!(o(this,u)>=0)){switch(d.anchor){case l.ControlAnchor.TOP_RIGHT:f=this.controls.topright,u.style.position="relative",u.style.paddingRight="0px",u.style.paddingTop="0px";break;case l.ControlAnchor.BOTTOM_RIGHT:f=this.controls.bottomright,u.style.position="relative",u.style.paddingRight="0px",u.style.paddingBottom="0px";break;case l.ControlAnchor.BOTTOM_LEFT:f=this.controls.bottomleft,u.style.position="relative",u.style.paddingLeft="0px",u.style.paddingBottom="0px";break;case l.ControlAnchor.TOP_LEFT:f=this.controls.topleft,u.style.position="relative",u.style.paddingLeft="0px",u.style.paddingTop="0px";break;case l.ControlAnchor.ABSOLUTE:f=this.container,u.style.margin="0px",u.style.padding="0px";break;default:case l.ControlAnchor.NONE:f=this.container,u.style.margin="0px",u.style.padding="0px";break}this.controls.push(new l.Control(u,d,f)),u.style.display="inline-block"}},removeControl:function(u){u=l.getElement(u);var d=o(this,u);return d>=0&&(this.controls[d].destroy(),this.controls.splice(d,1)),this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var u;for(u=this.controls.length-1;u>=0;u--)if(this.controls[u].isVisible())return!0;return!1},setControlsEnabled:function(u){var d;for(d=this.controls.length-1;d>=0;d--)this.controls[d].setVisible(u);return this}};function o(u,d){var f=u.controls,p;for(p=f.length-1;p>=0;p--)if(f[p].element==d)return p;return-1}})(OpenSeadragon),(function(l){l.Placement=l.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(l){var o={},u=1;l.Viewer=function(Y){var ie=arguments,ce=this,ue;if(l.isPlainObject(Y)||(Y={id:ie[0],xmlPath:ie.length>1?ie[1]:void 0,prefixUrl:ie.length>2?ie[2]:void 0,controls:ie.length>3?ie[3]:void 0,overlays:ie.length>4?ie[4]:void 0}),Y.config&&(l.extend(!0,Y,Y.config),delete Y.config),l.extend(!0,this,{id:Y.id,hash:Y.hash||u++,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}
vendor: 5,437 bytes, line 154
154,l.DEFAULT_SETTINGS,Y),typeof this.hash>"u")throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(typeof o[this.hash]<"u"&&l.console.warn("Hash "+this.hash+" has already been used."),o[this.hash]={fsBoundsDelta:new l.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=l.now(),l.EventSource.call(this),this.addHandler("open-failed",function(pe){var Te=l.getString("Errors.OpenFailed",pe.eventSource,pe.message);ce._showMessage(Te)}),l.ControlDock.call(this,Y),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=l.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",(function(pe){pe.width="100%",pe.height="100%",pe.overflow="hidden",pe.position="absolute",pe.top="0px",pe.left="0px"})(this.canvas.style),l.setElementTouchActionNone(this.canvas),Y.tabIndex!==""&&(this.canvas.tabIndex=Y.tabIndex===void 0?0:Y.tabIndex),this.container.className="openseadragon-container",(function(pe){pe.width="100%",pe.height="100%",pe.position="relative",pe.overflow="hidden",pe.left="0px",pe.top="0px",pe.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 l.MouseTracker({element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,keyDownHandler:l.delegate(this,P),keyHandler:l.delegate(this,C),clickHandler:l.delegate(this,T),dblClickHandler:l.delegate(this,O),dragHandler:l.delegate(this,x),dragEndHandler:l.delegate(this,A),enterHandler:l.delegate(this,D),exitHandler:l.delegate(this,j),pressHandler:l.delegate(this,M),releaseHandler:l.delegate(this,N),nonPrimaryPressHandler:l.delegate(this,q),nonPrimaryReleaseHandler:l.delegate(this,z),scrollHandler:l.delegate(this,U),pinchHandler:l.delegate(this,H)}),this.outerTracker=new l.MouseTracker({element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:l.delegate(this,F),exitHandler:l.delegate(this,B)}),this.toolbar&&(this.toolbar=new l.ControlDock({element:this.toolbar})),this.bindStandardControls(),o[this.hash].prevContainerSize=d(this.container),this.world=new l.World({viewer:this}),this.world.addHandler("add-item",function(pe){ce.source=ce.world.getItemAt(0).source,o[ce.hash].forceRedraw=!0,ce._updateRequestId||(ce._updateRequestId=v(ce,G))}),this.world.addHandler("remove-item",function(pe){ce.world.getItemCount()?ce.source=ce.world.getItemAt(0).source:ce.source=null,o[ce.hash].forceRedraw=!0}),this.world.addHandler("metrics-change",function(pe){ce.viewport&&ce.viewport._setContentBounds(ce.world.getHomeBounds(),ce.world.getContentFactor())}),this.world.addHandler("item-index-change",function(pe){ce.source=ce.world.getItemAt(0).source}),this.viewport=new l.Viewport({containerSize:o[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 l.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:Y.timeout}),this.tileCache=new l.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new l.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=l.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(ue=this.buttons.buttons.indexOf(this.rotateLeft),this.buttons.buttons.splice(ue,1),this.buttons.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(ue=this.buttons.buttons.indexOf(this.rotateRight),this.buttons.buttons.splice(ue,1),this.buttons.element.removeChild(this.rotateRight.element))),this.showNavigator&&(this.navigator=new l.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.navigatorBackgroun
154d,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),ue=0;ue<this.customControls.length;ue++)this.addControl(this.customControls[ue].id,{anchor:this.customControls[ue].anchor});l.requestAnimationFrame(function(){m(ce)}),this.imageSmoothingEnabled!==void 0&&!this.imageSmoothingEnabled&&this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled)},l.extend(l.Viewer.prototype,l.EventSource.prototype,l.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(Y){return l.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(Y)},openTileSource:function(Y){return l.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(Y)},open:function(Y,ie){var ce=this;if(this.close(),!!Y){if(this.sequenceMode&&l.isArray(Y)){this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),typeof ie<"u"&&!isNaN(ie)&&(this.initialPage=ie),this.tileSources=Y,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()),this._updateSequenceButtons(this._sequenceIndex);return}if(l.isArray(Y)||(Y=[Y]),!!Y.length){this._opening=!0;for(var ue=Y.length,pe=0,Te=0,Ce,Fe=function(){if(pe+Te===ue)if(pe){(ce._firstOpen||!ce.preserveViewport)&&(ce.viewport.goHome(!0),ce.viewport.update()),ce._firstOpen=!1;var Oe=Y[0];if(Oe.tileSource&&(Oe=Oe.tileSource),ce.overlays&&!ce.preserveOverlays)for(var Ne=0;Ne<ce.overlays.length;Ne++)ce.currentOverlays[Ne]=p(ce,ce.overlays[Ne]);ce._drawOverlays(),ce._opening=!1,ce.raiseEvent("open",{source:Oe})}else ce._opening=!1,ce.raiseEvent("open-failed",Ce)},He=function(Oe){(!l.isPlainObject(Oe)||!Oe.tileSource)&&(Oe={tileSource:Oe}),Oe.index!==void 0&&(l.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete Oe.index),Oe.collectionImmediately===void 0&&(Oe.collectionImmediately=!0);var Ne=Oe.success;Oe.success=function(Be){if(pe++,Oe.tileSource.overlays)for(var Ve=0;
154Ve<Oe.tileSource.overlays.length;Ve++)ce.addOverlay(Oe.tileSource.overlays[Ve]);Ne&&Ne(Be),Fe()};var qe=Oe.error;Oe.error=function(Be){Te++,Ce||(Ce=Be),qe&&qe(Be),Fe()},ce.addTiledImage(Oe)},we=0;we<Y.length;we++)He(Y[we]);return this}}},close:function(){return o[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),o[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(o[this.hash]){if(this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),this._updateRequestId!==null&&(l.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(),o[this.hash]=null,delete o[this.hash],this.canvas=null,this.container=null,this.element=null}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(Y){return this.innerTracker.setTracking(Y),this.outerTracker.setTracking(Y),this.raiseEvent("mouse-enabled",{enabled:Y}),this},areControlsEnabled:function(){var Y=this.controls.length,ie;for(ie=0;ie<this.controls.length;ie++)Y=Y&&this.controls[ie].isVisible();return Y},setControlsEnabled:function(Y){return Y?b(this):m(this),this.raiseEvent("controls-enabled",{enabled:Y}),this},setDebugMode:function(Y){for(var ie=0;ie<this.world.getItemCount();ie++)this.world.getItemAt(ie).debugMode=Y;this.debugMode=Y,this.forceRedraw()},isFullPage:function(){return o[this.hash].fullPage},setFullPage:function(Y){var ie=document.body,ce=ie.style,ue=document.documentElement.style,pe=this,Te,Ce;if(Y==this.isFullPage())return this;var Fe={fullPage:Y,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",Fe),Fe.preventDefaultAction)return this;if(Y){for(this.elementSize=l.getElementSize(this.element),this.pageScroll=l.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=ce.margin,this.docMargin=ue.margin,ce.margin="0",ue.margin="0",this.bodyPadding=ce.padding,this.docPadding=ue.padding,ce.padding="0",ue.padding="0",this.bodyWidth=ce.width,this.docWidth=ue.width,ce.width="100%",ue.width="100%",this.bodyHeight=ce.height,this.docHeight=ue.height,ce.height="100%",ue.height="100%",this.previousBody=[],o[this.hash].prevElementParent=this.element.parentNode,o[this.hash].prevNextSibling=this.element.nextSibling,o[this.hash].prevElementWidth=this.element.style.width,o[this.hash].prevElementHeight=this.element.style.height,Te=ie.childNodes.length,Ce=0;Ce<Te;Ce++)this.previousBody.push(ie.childNodes[0]),ie.removeChild(ie.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,ie.appendChild(this.toolbar.element),l.addClass(this.toolbar.element,"fullpage")),l.addClass(this.element,"fullpage"),ie.appendChild(this.element),this.element.style.height=l.getWindowSize().y+"px",this.element.style.width=l.getWindowSize().x+"px",this.toolbar&&this.toolbar.element&&(this.element.style.height=l.getElementSize(this.element).y-l.getElementSize(this.toolbar.element).y+"px"),o[this.hash].fullPage=!0,l.delegate(this,F)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,ce.margin=this.bodyMargin,ue.margin=this.docMargin,ce.padding=this.bodyPadding,ue.padding=this.docPadding,ce.width=this.bodyWidth,ue.width=this.docWidth,ce.height=this.bodyHeight,ue.height=this.docHeight,ie.removeChild(this.element),Te=this.previousBody.length,Ce=0;Ce<Te;Ce++)ie.appendChild(this.previousBody.shift());l.removeClass(this.element,"fullpage"),o[this.hash].prevElementParent.insertBefore(this.element,o[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(ie.removeChild(this.toolbar.element),l.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=o[this.hash].prevElementWidth,this.element.style.height=o[this.hash].prevElementHeight;
154var He=0,we=function(){l.setPageScroll(pe.pageScroll);var Oe=l.getPageScroll();He++,He<10&&(Oe.x!==pe.pageScroll.x||Oe.y!==pe.pageScroll.y)&&l.requestAnimationFrame(we)};l.requestAnimationFrame(we),o[this.hash].fullPage=!1,l.delegate(this,B)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:Y}),this},setFullScreen:function(Y){var ie=this;if(!l.supportsFullScreen)return this.setFullPage(Y);if(l.isFullScreen()===Y)return this;var ce={fullScreen:Y,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",ce),ce.preventDefaultAction)return this;if(Y){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 ue=function(){var pe=l.isFullScreen();pe||(l.removeEvent(document,l.fullScreenEventName,ue),l.removeEvent(document,l.fullScreenErrorEventName,ue),ie.setFullPage(!1),ie.isFullPage()&&(ie.element.style.width=ie.fullPageStyleWidth,ie.element.style.height=ie.fullPageStyleHeight)),ie.navigator&&ie.viewport&&setTimeout(function(){ie.navigator.update(ie.viewport)}),ie.raiseEvent("full-screen",{fullScreen:pe})};l.addEvent(document,l.fullScreenEventName,ue),l.addEvent(document,l.fullScreenErrorEventName,ue),l.requestFullScreen(document.body)}else l.exitFullScreen();return this},isVisible:function(){return this.container.style.visibility!="hidden"},setVisible:function(Y){return this.container.style.visibility=Y?"":"hidden",this.raiseEvent("visible",{visible:Y}),this},addTiledImage:function(Y){l.console.assert(Y,"[Viewer.addTiledImage] options is required"),l.console.assert(Y.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),l.console.assert(!Y.replace||Y.index>-1&&Y.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var ie=this;Y.replace&&(Y.replaceItem=ie.world.getItemAt(Y.index)),this._hideMessage(),Y.placeholderFillStyle===void 0&&(Y.placeholderFillStyle=this.placeholderFillStyle),Y.opacity===void 0&&(Y.opacity=this.opacity),Y.preload===void 0&&(Y.preload=this.preload),Y.compositeOperation===void 0&&(Y.compositeOperation=this.compositeOperation),Y.crossOriginPolicy===void 0&&(Y.crossOriginPolicy=Y.tileSource.crossOriginPolicy!==void 0?Y.tileSource.crossOriginPolicy:this.crossOriginPolicy),Y.ajaxWithCredentials===void 0&&(Y.ajaxWithCredentials=this.ajaxWithCredentials),Y.loadTilesWithAjax===void 0&&(Y.loadTilesWithAjax=this.loadTilesWithAjax),Y.ajaxHeaders===void 0||Y.ajaxHeaders===null?Y.ajaxHeaders=this.ajaxHeaders:l.isPlainObject(Y.ajaxHeaders)&&l.isPlainObject(this.ajaxHeaders)&&(Y.ajaxHeaders=l.extend({},this.ajaxHeaders,Y.ajaxHeaders));var ce={options:Y};function ue(Ce){for(var Fe=0;Fe<ie._loadQueue.length;Fe++)if(ie._loadQueue[Fe]===ce){ie._loadQueue.splice(Fe,1);break}ie._loadQueue.length===0&&pe(ce),ie.raiseEvent("add-item-failed",Ce),Y.error&&Y.error(Ce)}function pe(Ce){ie.collectionMode&&(ie.world.arrange({immediately:Ce.options.collectionImmediately,rows:ie.collectionRows,columns:ie.collectionColumns,layout:ie.collectionLayout,tileSize:ie.collectionTileSize,tileMargin:ie.collectionTileMargin}),ie.world.setAutoRefigureSizes(!0))}if(l.isArray(Y.tileSource)){setTimeout(function(){ue({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:Y.tileSource,options:Y})});return}this._loadQueue.push(ce);function Te(){for(var Ce,Fe,He;ie._loadQueue.length&&(Ce=ie._loadQueue[0],!!Ce.tileSource);){if(ie._loadQueue.splice(0,1),Ce.options.replace){var we=ie.world.getIndexOfItem(Ce.options.replaceItem);we!=-1&&(Ce.options.index=we),ie.world.removeItem(Ce.options.replaceItem)}Fe=new l.TiledImage({viewer:ie,source:Ce.tileSource,viewport:ie.viewport,drawer:ie.drawer,tileCache:ie.tileCache,imageLoader:ie.imageLoader,x:Ce.options.x,y:Ce.options.y,width:Ce.options.width,height:Ce.options.height,fitBounds:Ce.options.fitBounds,fitBoundsPlacement:Ce.options.fitBoundsPlacement,clip:Ce.options.clip,placeholderFillStyle:Ce.options.placeholderFillStyle,opacity:Ce.options.opacity,preload:Ce.options.preload,degrees:Ce.options.degrees,compositeOperation:Ce.options.compositeOperation,springStiffness:ie.springStiffness,animationTime:ie.animationTime,minZoomImageRatio:ie.minZoomImageRatio,wrapHorizontal:ie.wrapHorizontal,wrapVertical:ie.wrapVertical,immediateRender:ie.immediateRender,blendTime:ie.blendTime,alwaysBlend:ie.alwaysBlend,minPixelRatio:ie.minPixelRatio,smoothTileEdgesMinZoom:ie.smoothTileEdgesMinZoom,iOSDevice:ie.iOSDevice,crossOriginPolicy:Ce.options.crossOriginPolicy,ajaxWithCredentials:Ce.options.ajaxWithCredentials,loadTilesWithAjax:Ce.options.loadTilesWithAjax,ajaxHeaders:Ce.options.ajaxHeaders,debugMode:ie.debugMode}),ie.collectionMode&&ie.world.setAutoRefigureSizes(!1),ie.world.addItem(Fe,{index:Ce.options.index}),ie._loadQueue.length===0&&pe(Ce),ie.world.getItemCount()===1&&!ie.preserveViewport&&ie.viewport.goHome(!0),ie.navigator&&(He=l.extend({},Ce.options,{replace:!1,originalTiledImage:Fe,tileSource:Ce.tileSource}),ie.navigator.addTiledImage(He)),Ce.options.success&&Ce.options.success({item:Fe})}}f(this,Y.tileSource,Y,function(Ce){ce.tileSource=Ce,Te()},function(Ce){Ce.options=Y,ue(Ce),Te()})},addSimpleImage:function(Y){l.console.assert(Y,"[Viewer.addSimpleImage] options is required"),l.console.assert(Y.url,"[Viewer.addSimpleImage] options.url is required");var ie=l.extend({},Y,{tileSource:{type:"image",url:Y.url}});delete ie.url,this.addTiledImage(ie)},addLayer:function(Y){var ie=this;l.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var ce=l.extend({},Y,{success:function(ue){ie.raiseEvent("add-layer",{options:Y,drawer:ue.item})},error:function(ue){ie.raiseEvent("add-layer-failed",ue)}});return this.addTiledImage(ce),this},getLayerAtLevel:function(Y){return l.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(Y)},getLevelOfLayer:function(Y){return l.console.error("[Viewer.getLevelOfLayer] this function is deprecated;
154 use World.getIndexOfItem() instead."),this.world.getIndexOfItem(Y)},getLayersCount:function(){return l.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(Y,ie){return l.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(Y,ie)},removeLayer:function(Y){return l.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(Y)},forceRedraw:function(){return o[this.hash].forceRedraw=!0,this},bindSequenceControls:function(){var Y=l.delegate(this,w),ie=l.delegate(this,E),ce=l.delegate(this,ge),ue=l.delegate(this,Ie),pe=this.navImages,Te=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(Te=!1),this.previousButton=new l.Button({element:this.previousButton?l.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.PreviousPage"),srcRest:Z(this.prefixUrl,pe.previous.REST),srcGroup:Z(this.prefixUrl,pe.previous.GROUP),srcHover:Z(this.prefixUrl,pe.previous.HOVER),srcDown:Z(this.prefixUrl,pe.previous.DOWN),onRelease:ue,onFocus:Y,onBlur:ie}),this.nextButton=new l.Button({element:this.nextButton?l.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.NextPage"),srcRest:Z(this.prefixUrl,pe.next.REST),srcGroup:Z(this.prefixUrl,pe.next.GROUP),srcHover:Z(this.prefixUrl,pe.next.HOVER),srcDown:Z(this.prefixUrl,pe.next.DOWN),onRelease:ce,onFocus:Y,onBlur:ie}),this.navPrevNextWrap||this.previousButton.disable(),(!this.tileSources||!this.tileSources.length)&&this.nextButton.disable(),Te&&(this.paging=new l.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:l.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||l.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var Y=l.delegate(this,te),ie=l.delegate(this,fe),ce=l.delegate(this,Ae),ue=l.delegate(this,oe),pe=l.delegate(this,_e),Te=l.delegate(this,se),Ce=l.delegate(this,$e),Fe=l.delegate(this,Ee),He=l.delegate(this,xe),we=l.delegate(this,Se),Oe=l.delegate(this,w),Ne=l.delegate(this,E),qe=this.navImages,Be=[],Ve=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(Ve=!1),this.showZoomControl&&(Be.push(this.zoomInButton=new l.Button({element:this.zoomInButton?l.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.ZoomIn"),srcRest:Z(this.prefixUrl,qe.zoomIn.REST),srcGroup:Z(this.prefixUrl,qe.zoomIn.GROUP),srcHover:Z(this.prefixUrl,qe.zoomIn.HOVER),srcDown:Z(this.prefixUrl,qe.zoomIn.DOWN),onPress:Y,onRelease:ie,onClick:ce,onEnter:Y,onExit:ie,onFocus:Oe,onBlur:Ne})),Be.push(this.zoomOutButton=new l.Button({element:this.zoomOutButton?l.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.ZoomOut"),srcRest:Z(this.prefixUrl,qe.zoomOut.REST),srcGroup:Z(this.prefixUrl,qe.zoomOut.GROUP),srcHover:Z(this.prefixUrl,qe.zoomOut.HOVER),srcDown:Z(this.prefixUrl,qe.zoomOut.DOWN),onPress:ue,onRelease:ie,onClick:pe,onEnter:ue,onExit:ie,onFocus:Oe,onBlur:Ne}))),this.showHomeControl&&Be.push(this.homeButton=new l.Button({element:this.homeButton?l.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.Home"),srcRest:Z(this.prefixUrl,qe.home.REST),srcGroup:Z(this.prefixUrl,qe.home.GROUP),srcHover:Z(this.prefixUrl,qe.home.HOVER),srcDown:Z(this.prefixUrl,qe.home.DOWN),onRelease:Te,onFocus:Oe,onBlur:Ne}
154)),this.showFullPageControl&&Be.push(this.fullPageButton=new l.Button({element:this.fullPageButton?l.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.FullPage"),srcRest:Z(this.prefixUrl,qe.fullpage.REST),srcGroup:Z(this.prefixUrl,qe.fullpage.GROUP),srcHover:Z(this.prefixUrl,qe.fullpage.HOVER),srcDown:Z(this.prefixUrl,qe.fullpage.DOWN),onRelease:Ce,onFocus:Oe,onBlur:Ne})),this.showRotationControl&&(Be.push(this.rotateLeftButton=new l.Button({element:this.rotateLeftButton?l.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.RotateLeft"),srcRest:Z(this.prefixUrl,qe.rotateleft.REST),srcGroup:Z(this.prefixUrl,qe.rotateleft.GROUP),srcHover:Z(this.prefixUrl,qe.rotateleft.HOVER),srcDown:Z(this.prefixUrl,qe.rotateleft.DOWN),onRelease:Fe,onFocus:Oe,onBlur:Ne})),Be.push(this.rotateRightButton=new l.Button({element:this.rotateRightButton?l.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.RotateRight"),srcRest:Z(this.prefixUrl,qe.rotateright.REST),srcGroup:Z(this.prefixUrl,qe.rotateright.GROUP),srcHover:Z(this.prefixUrl,qe.rotateright.HOVER),srcDown:Z(this.prefixUrl,qe.rotateright.DOWN),onRelease:He,onFocus:Oe,onBlur:Ne}))),this.showFlipControl&&Be.push(this.flipButton=new l.Button({element:this.flipButton?l.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:l.getString("Tooltips.Flip"),srcRest:Z(this.prefixUrl,qe.flip.REST),srcGroup:Z(this.prefixUrl,qe.flip.GROUP),srcHover:Z(this.prefixUrl,qe.flip.HOVER),srcDown:Z(this.prefixUrl,qe.flip.DOWN),onRelease:we,onFocus:Oe,onBlur:Ne})),Ve&&(this.buttons=new l.ButtonGroup({buttons:Be,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttons.element,this.addHandler("open",l.delegate(this,ee)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||l.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||l.ControlAnchor.TOP_LEFT}))),this},currentPage:function(){return this._sequenceIndex},goToPage:function(Y){return this.tileSources&&Y>=0&&Y<this.tileSources.length&&(this._sequenceIndex=Y,this._updateSequenceButtons(Y),this.open(this.tileSources[Y]),this.referenceStrip&&this.referenceStrip.setFocus(Y),this.raiseEvent("page",{page:Y})),this},addOverlay:function(Y,ie,ce,ue){var pe;if(l.isPlainObject(Y)?pe=Y:pe={element:Y,location:ie,placement:ce,onDraw:ue},Y=l.getElement(pe.element),h(this.currentOverlays,Y)>=0)return this;var Te=p(this,pe);return this.currentOverlays.push(Te),Te.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:Y,location:pe.location,placement:pe.placement}),this},updateOverlay:function(Y,ie,ce){var ue;return Y=l.getElement(Y),ue=h(this.currentOverlays,Y),ue>=0&&(this.currentOverlays[ue].update(ie,ce),o[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:Y,location:ie,placement:ce})),this},removeOverlay:function(Y){var ie;return Y=l.getElement(Y),ie=h(this.currentOverlays,Y),ie>=0&&(this.currentOverlays[ie].destroy(),this.currentOverlays.splice(ie,1),o[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:Y})),this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();return o[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(Y){var ie;return Y=l.getElement(Y),ie=h(this.currentOverlays,Y),ie>=0?this.currentOverlays[ie]:null},_updateSequenceButtons:function(Y){this.nextButton&&(!this.tileSources||this.tileSources.length-1===Y?this.navPrevNextWrap||this.nextButton.disable():this.nextButton.enable()),this.previousButton&&(Y>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(Y){this._hideMessage();var ie=l.makeNeutralElement("div");ie.appendChild(document.createTextNode(Y)),this.messageDiv=l.makeCenteredNode(ie),l.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var Y=this.messageDiv;Y&&(Y.parentNode.removeChild(Y),delete this.messageDiv)},gestureSettingsByDeviceType:function(Y){switch(Y){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var Y,ie=this.currentOverlays.length;for(Y=0;Y<ie;Y++)this.currentOverlays[Y].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 l.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 l.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')}});function d(Y){return Y=l.getElement(Y),new l.Point(Y.clientWidth===0?1:Y.clientWidth,Y.clientHeight===0?1:Y.clientHeight)}function f(Y,ie,ce,ue,pe){var Te=Y;if(l.type(ie)=="string"){if(ie.match(/^\s*<.*>\s*$/))ie=l.parseXml(ie);else if(ie.match(/^\s*[\{\[].*[\}\]]\s*$/))try{var Ce=l.parseJSON(ie);ie=Ce}catch{}}function Fe(He,we){He.ready?ue(He):(He.addHandler("ready",function(){ue(He)}),He.addHandler("open-failed",function(Oe){pe({message:Oe.message,source:we})}))}setTimeout(function(){if(l.type(ie)=="string")ie=new l.TileSource({url:ie,crossOriginPolicy:ce.crossOriginPolicy!==void 0?ce.crossOriginPolicy:Y.crossOriginPolicy,ajaxWithCredentials:Y.ajaxWithCredentials,ajaxHeaders:Y.ajaxHeaders,useCanvas:Y.useCanvas,success:function(Ne){ue(Ne.tileSource)}}),ie.addHandler("open-failed",function(Ne){pe(Ne)});else if(l.isPlainObject(ie)||ie.nodeType)if(ie.crossOriginPolicy===void 0&&(ce.crossOriginPolicy!==void 0||Y.crossOriginPolicy!==void 0)&&(ie.crossOriginPolicy=ce.crossOriginPolicy!==void 0?ce.crossOriginPolicy:Y.crossOriginPolicy),ie.ajaxWithCredentials===void 0&&(ie.ajaxWithCredentials=Y.ajaxWithCredentials),ie.useCanvas===void 0&&(ie.useCanvas=Y.useCanvas),l.isFunction(ie.getTileUrl)){var He=new l.TileSource(ie);He.getTileUrl=ie.getTileUrl,ue(He)}else{var we=l.TileSource.determineType(Te,ie);
154if(!we){pe({message:"Unable to load TileSource",source:ie});return}var Oe=we.prototype.configure.apply(Te,[ie]);Fe(new we(Oe),ie)}else Fe(ie,ie)})}function p(Y,ie){if(ie instanceof l.Overlay)return ie;var ce=null;if(ie.element)ce=l.getElement(ie.element);else{var ue=ie.id?ie.id:"openseadragon-overlay-"+Math.floor(Math.random()*1e7);ce=l.getElement(ie.id),ce||(ce=document.createElement("a"),ce.href="#/overlay/"+ue),ce.id=ue,l.addClass(ce,ie.className?ie.className:"openseadragon-overlay")}var pe=ie.location,Te=ie.width,Ce=ie.height;if(!pe){var Fe=ie.x,He=ie.y;if(ie.px!==void 0){var we=Y.viewport.imageToViewportRectangle(new l.Rect(ie.px,ie.py,Te||0,Ce||0));Fe=we.x,He=we.y,Te=Te!==void 0?we.width:void 0,Ce=Ce!==void 0?we.height:void 0}pe=new l.Point(Fe,He)}var Oe=ie.placement;return Oe&&l.type(Oe)==="string"&&(Oe=l.Placement[ie.placement.toUpperCase()]),new l.Overlay({element:ce,location:pe,placement:Oe,onDraw:ie.onDraw,checkResize:ie.checkResize,width:Te,height:Ce,rotationMode:ie.rotationMode})}function h(Y,ie){var ce;for(ce=Y.length-1;ce>=0;ce--)if(Y[ce].element===ie)return ce;return-1}function v(Y,ie){return l.requestAnimationFrame(function(){ie(Y)})}function g(Y){l.requestAnimationFrame(function(){y(Y)})}function m(Y){Y.autoHideControls&&(Y.controlsShouldFade=!0,Y.controlsFadeBeginTime=l.now()+Y.controlsFadeDelay,window.setTimeout(function(){g(Y)},Y.controlsFadeDelay))}function y(Y){var ie,ce,ue,pe;if(Y.controlsShouldFade){for(ie=l.now(),ce=ie-Y.controlsFadeBeginTime,ue=1-ce/Y.controlsFadeLength,ue=Math.min(1,ue),ue=Math.max(0,ue),pe=Y.controls.length-1;pe>=0;pe--)Y.controls[pe].autoFade&&Y.controls[pe].setOpacity(ue);ue>0&&g(Y)}}function b(Y){var ie;for(Y.controlsShouldFade=!1,ie=Y.controls.length-1;ie>=0;ie--)Y.controls[ie].setOpacity(1)}function w(){b(this)}function E(){m(this)}function P(Y){var ie={originalEvent:Y.originalEvent,preventDefaultAction:Y.preventDefaultAction,preventVerticalPan:Y.preventVerticalPan,preventHorizontalPan:Y.preventHorizontalPan};if(this.raiseEvent("canvas-key",ie),!ie.preventDefaultAction&&!Y.ctrl&&!Y.alt&&!Y.meta)switch(Y.keyCode){case 38:return ie.preventVerticalPan||(Y.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 40:return ie.preventVerticalPan||(Y.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 37:return ie.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;case 39:return ie.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;default:return!0}else return!0}function C(Y){var ie={originalEvent:Y.originalEvent,preventDefaultAction:Y.preventDefaultAction,preventVerticalPan:Y.preventVerticalPan,preventHorizontalPan:Y.preventHorizontalPan};if(this.raiseEvent("canvas-key",ie),!ie.preventDefaultAction&&!Y.ctrl&&!Y.alt&&!Y.meta)switch(Y.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 ie.preventVerticalPan||(Y.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(0,-40))),this.viewport.applyConstraints()),!1;case 115:case 83:return ie.preventVerticalPan||(Y.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(0,40))),this.viewport.applyConstraints()),!1;case 97:return ie.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(-40,0))),this.viewport.applyConstraints()),!1;case 100:return ie.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new l.Point(40,0))),this.viewport.applyConstraints()),!1;case 114:return this.viewport.flipped?this.viewport.setRotation(l.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)):this.viewport.setRotation(l.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 82:return this.viewport.flipped?this.viewport.setRotation(l.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)):this.viewport.setRotation(l.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 102:return this.viewport.toggleFlip(),!1;default:return!0}else return!0}function T(Y){var ie,ce=document.activeElement==this.canvas;ce||this.canvas.focus(),this.viewport.flipped&&(Y.position.x=this.viewport.getContainerSize().x-Y.position.x);var ue={tracker:Y.eventSource,position:Y.position,quick:Y.quick,shift:Y.shift,originalEvent:Y.originalEvent,preventDefaultAction:Y.preventDefaultAction};this.raiseEvent("canvas-click",ue),!ue.preventDefaultAction&&this.viewport&&Y.quick&&(ie=this.gestureSettingsByDeviceType(Y.pointerType),ie.clickToZoom&&(this.viewport.zoomBy(Y.shift?1/this.zoomPerClick:this.zoomPerClick,ie.zoomToRefPoint?this.viewport.pointFromPixel(Y.position,!0):null),this.viewport.applyConstraints()))}function O(Y){var ie,ce={tracker:Y.eventSource,position:Y.position,shift:Y.shift,originalEvent:Y.originalEvent,preventDefaultAction:Y.preventDefaultAction};this.raiseEvent("canvas-double-click",ce),!ce.preventDefaultAction&&this.viewport&&(ie=this.gestureSettingsByDeviceType(Y.pointerType),ie.dblClickToZoom&&(this.viewport.zoomBy(Y.shift?1/this.zoomPerClick:this.zoomPerClick,ie.zoomToRefPoint?this.viewport.pointFromPixel(Y.position,!0):null),this.viewport.applyConstraints()))}function x(Y){var ie,ce={tracker:Y.eventSource,position:Y.position,delta:Y.delta,speed:Y.speed,direction:Y.direction,shift:Y.shift,originalEvent:Y.originalEvent,preventDefaultAction:Y.preventDefaultAction};if(this.raiseEvent("canvas-drag",ce),!ce.preventDefaultAction&&this.viewport){if(ie=this.gestureSettingsByDeviceType(Y.pointerType),this.panHorizontal||(Y.delta.x=0),this.panVertical||(Y.delta.y=0),this.viewport.flipped&&(Y.delta.x=-Y.delta.x),this.constrainDuringPan){var ue=this.viewport.deltaPointsFromPixels(Y.delta.negate());this.viewport.centerSpringX.target.value+=ue.x,this.viewport.centerSpringY.target.value+=ue.y;var pe=this.viewport.getBounds(),Te=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=ue.x,this.viewport.centerSpringY.target.value-=ue.y,pe.x!=Te.x&&(Y.delta.x=0),pe.y!=Te.y&&(Y.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(Y.delta.negate()),ie.flickEnabled&&!this.constrainDuringPan)}}function A(Y){if(!Y.preventDefaultAction&&this.viewport){var ie=this.gestureSettingsByDeviceType(Y.pointerType);if(ie.flickEnabled&&Y.speed>=ie.flickMinSpeed){var ce=0;this.panHorizontal&&(ce=ie.flickMomentum*Y.speed*Math.cos(Y.direction));var ue=0;this.panVertical&&(ue=ie.flickMomentum*Y.speed*Math.sin(Y.direction));var pe=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),Te=this.viewport.pointFromPixel(new l.Point(pe.x-ce,pe.y-ue));this.viewport.panTo(Te,!1)}this.viewport.applyConstraints()}this.raiseEvent("canvas-drag-end",{tracker:Y.eventSource,position:Y.position,speed:Y.speed,direction:Y.direction,shift:Y.shift,originalEvent:Y.originalEvent})}function D(Y){this.raiseEvent("canvas-enter",{tracker:Y.eventSource,pointerType:Y.pointerType,position:Y.position,buttons:Y.buttons,pointers:Y.pointers,insideElementPressed:Y.insideElementPressed,buttonDownAny:Y.buttonDownAny,originalEvent:Y.originalEvent})}function j(Y){window.location!=window.parent.location&&l.MouseTracker.resetAllMouseTrackers(),this.raiseEvent("canvas-exit",{tracker:Y.eventSource,pointerType:Y.pointerType,position:Y.position,buttons:Y.buttons,pointers:Y.pointers,insideElementPressed:Y.insideElementPressed,buttonDownAny:Y.buttonDownAny,originalEvent:Y.originalEvent})}function M(Y){this.raiseEvent("canvas-press",{tracker:Y.eventSource,pointerType:Y.pointerType,position:Y.position,insideElementPressed:Y.insideElementPressed,insideElementReleased:Y.insideElementReleased,originalEvent:Y.originalEvent})}function N(Y){this.raiseEvent("canvas-release",{tracker:Y.eventSource,pointerType:Y.pointerType,position:Y.position,insideElementPressed:Y.insideElementPressed,insideElementReleased:Y.insideElementReleased,originalEvent:Y.originalEvent})}function q(Y){this.raiseEvent("canvas-nonprimary-press",{tracker:Y.eventSource,position:Y.position,pointerType:Y.pointerType,button:Y.button,buttons:Y.buttons,originalEvent:Y.originalEvent})}function z(Y){this.raiseEvent("canvas-nonprimary-release",{tracker:Y.eventSource,position:Y.position,pointerType:Y.pointerType,button:Y.button,buttons:Y.buttons,originalEvent:Y.originalEvent})}function H(Y){var ie,ce,ue,pe;if(!Y.preventDefaultAction&&this.viewport&&(ie=this.gestureSettingsByDeviceType(Y.pointerType),ie.pinchToZoom&&(ce=this.viewport.pointFromPixel(Y.center,!0),ue=this.viewport.pointFromPixel(Y.lastCenter,!0),pe=ue.minus(ce),this.panHorizontal||(pe.x=0),this.panVertical||(pe.y=0),this.viewport.zoomBy(Y.distance/Y.lastDistance,ce,!0),ie.zoomToRefPoint&&this.viewport.panBy(pe,!0),this.viewport.applyConstraints()),ie.pinchRotate)){var Te=Math.atan2(Y.gesturePoints[0].currentPos.y-Y.gesturePoints[1].currentPos.y,Y.gesturePoints[0].currentPos.x-Y.gesturePoints[1].currentPos.x),Ce=Math.atan2(Y.gesturePoints[0].lastPos.y-Y.gesturePoints[1].lastPos.y,Y.gesturePoints[0].lastPos.x-Y.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(Te-Ce)*(180/Math.PI))}return this.raiseEvent("canvas-pinch",{tracker:Y.eventSource,gesturePoints:Y.gesturePoints,lastCenter:Y.lastCenter,center:Y.center,lastDistance:Y.lastDistance,distance:Y.distance,shift:Y.shift,originalEvent:Y.originalEvent}),!1}function U(Y){var ie,ce,ue,pe;if(ue=l.now(),pe=ue-this._lastScrollTime,pe>
154this.minScrollDeltaTime){if(this._lastScrollTime=ue,this.viewport.flipped&&(Y.position.x=this.viewport.getContainerSize().x-Y.position.x),!Y.preventDefaultAction&&this.viewport&&(ie=this.gestureSettingsByDeviceType(Y.pointerType),ie.scrollToZoom&&(ce=Math.pow(this.zoomPerScroll,Y.scroll),this.viewport.zoomBy(ce,ie.zoomToRefPoint?this.viewport.pointFromPixel(Y.position,!0):null),this.viewport.applyConstraints())),this.raiseEvent("canvas-scroll",{tracker:Y.eventSource,position:Y.position,scroll:Y.scroll,shift:Y.shift,originalEvent:Y.originalEvent}),ie&&ie.scrollToZoom)return!1}else if(ie=this.gestureSettingsByDeviceType(Y.pointerType),ie&&ie.scrollToZoom)return!1}function F(Y){o[this.hash].mouseInside=!0,b(this),this.raiseEvent("container-enter",{tracker:Y.eventSource,position:Y.position,buttons:Y.buttons,pointers:Y.pointers,insideElementPressed:Y.insideElementPressed,buttonDownAny:Y.buttonDownAny,originalEvent:Y.originalEvent})}function B(Y){Y.pointers<1&&(o[this.hash].mouseInside=!1,o[this.hash].animating||m(this)),this.raiseEvent("container-exit",{tracker:Y.eventSource,position:Y.position,buttons:Y.buttons,pointers:Y.pointers,insideElementPressed:Y.insideElementPressed,buttonDownAny:Y.buttonDownAny,originalEvent:Y.originalEvent})}function G(Y){Q(Y),Y.isOpen()?Y._updateRequestId=v(Y,G):Y._updateRequestId=!1}function Q(Y){if(!Y._opening){if(Y.autoResize){var ie=d(Y.container),ce=o[Y.hash].prevContainerSize;if(!ie.equals(ce)){var ue=Y.viewport;if(Y.preserveImageSizeOnResize){var pe=ce.x/ie.x,Te=ue.getZoom()*pe,Ce=ue.getCenter();ue.resize(ie,!1),ue.zoomTo(Te,null,!0),ue.panTo(Ce,!0)}else{var Fe=ue.getBounds();ue.resize(ie,!0),ue.fitBoundsWithConstraints(Fe,!0)}o[Y.hash].prevContainerSize=ie,o[Y.hash].forceRedraw=!0}}var He=Y.viewport.update(),we=Y.world.update()||He;He&&Y.raiseEvent("viewport-change"),Y.referenceStrip&&(we=Y.referenceStrip.update(Y.viewport)||we),!o[Y.hash].animating&&we&&(Y.raiseEvent("animation-start"),b(Y)),(we||o[Y.hash].forceRedraw||Y.world.needsDraw())&&(K(Y),Y._drawOverlays(),Y.navigator&&Y.navigator.update(Y.viewport),o[Y.hash].forceRedraw=!1,we&&Y.raiseEvent("animation")),o[Y.hash].animating&&!we&&(Y.raiseEvent("animation-finish"),o[Y.hash].mouseInside||m(Y)),o[Y.hash].animating=we}}function K(Y){Y.imageLoader.clear(),Y.drawer.clear(),Y.world.draw(),Y.raiseEvent("update-viewport",{})}function Z(Y,ie){return Y?Y+ie:ie}function te(){o[this.hash].lastZoomTime=l.now(),o[this.hash].zoomFactor=this.zoomPerSecond,o[this.hash].zooming=!0,le(this)}function oe(){o[this.hash].lastZoomTime=l.now(),o[this.hash].zoomFactor=1/this.zoomPerSecond,o[this.hash].zooming=!0,le(this)}function fe(){o[this.hash].zooming=!1}function le(Y){l.requestAnimationFrame(l.delegate(Y,Re))}function Re(){var Y,ie,ce;o[this.hash].zooming&&this.viewport&&(Y=l.now(),ie=Y-o[this.hash].lastZoomTime,ce=Math.pow(o[this.hash].zoomFactor,ie/1e3),this.viewport.zoomBy(ce),this.viewport.applyConstraints(),o[this.hash].lastZoomTime=Y,le(this))}function Ae(){this.viewport&&(o[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function _e(){this.viewport&&(o[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function ee(){this.buttons.emulateEnter(),this.buttons.emulateExit()}function se(){this.viewport&&this.viewport.goHome()}function $e(){this.isFullPage()&&!l.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttons&&this.buttons.emulateExit(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function Ee(){if(this.viewport){var Y=this.viewport.getRotation();this.viewport.flipped?Y=l.positiveModulo(Y+this.rotationIncrement,360):Y=l.positiveModulo(Y-this.rotationIncrement,360),this.viewport.setRotation(Y)}}function xe(){if(this.viewport){var Y=this.viewport.getRotation();this.viewport.flipped?Y=l.positiveModulo(Y-this.rotationIncrement,360):Y=l.positiveModulo(Y+this.rotationIncrement,360),this.viewport.setRotation(Y)}}function Se(){this.viewport.toggleFlip()}function Ie(){var Y=this._sequenceIndex-1;this.navPrevNextWrap&&Y<0&&(Y+=this.tileSources.length),this.goToPage(Y)}function ge(){var Y=this._sequenceIndex+1;this.navPrevNextWrap&&Y>=this.tileSources.length&&(Y=0),this.goToPage(Y)}})(OpenSeadragon),(function(l){l.Navigator=function(v){var g=v.viewer,m=this,y,b;v.id?(this.element=document.getElementById(v.id),v.controlOptions={anchor:l.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(v.id="navigator-"+l.now(),this.element=l.makeNeutralElement("div"),v.controlOptions={anchor:l.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:v.autoFade},v.position&&(v.position=="BOTTOM_RIGHT"?v.controlOptions.anchor=l.ControlAnchor.BOTTOM_RIGHT:v.position=="BOTTOM_LEFT"?v.controlOptions.anchor=l.ControlAnchor.BOTTOM_LEFT:v.position=="TOP_RIGHT"?v.controlOptions.anchor=l.ControlAnchor.TOP_RIGHT:v.position=="TOP_LEFT"?v.controlOptions.anchor=l.ControlAnchor.TOP_LEFT:v.position=="ABSOLUTE"&&(v.controlOptions.anchor=l.ControlAnchor.ABSOLUTE,v.controlOptions.top=v.top,v.controlOptions.left=v.left,v.controlOptions.height=v.height,v.controlOptions.width=v.width))),this.element.i
154d=v.id,this.element.className+=" navigator",v=l.extend(!0,{sizeRatio:l.DEFAULT_SETTINGS.navigatorSizeRatio},v,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,autoResize:v.autoResize,minZoomImageRatio:1,background:v.background,opacity:v.opacity,borderColor:v.borderColor,displayRegionColor:v.displayRegionColor}),v.minPixelRatio=this.minPixelRatio=g.minPixelRatio,l.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new l.Point(1,1),this.totalBorderWidths=new l.Point(this.borderWidth*2,this.borderWidth*2).minus(this.fudge),v.controlOptions.anchor!=l.ControlAnchor.NONE&&(function(P,C){P.margin="0px",P.border=C+"px solid "+v.borderColor,P.padding="0px",P.background=v.background,P.opacity=v.opacity,P.overflow="hidden"})(this.element.style,this.borderWidth),this.displayRegion=l.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",(function(P,C){P.position="relative",P.top="0px",P.left="0px",P.fontSize="0px",P.overflow="hidden",P.border=C+"px solid "+v.displayRegionColor,P.margin="0px",P.padding="0px",P.background="transparent",P.float="left",P.cssFloat="left",P.styleFloat="left",P.zIndex=999999999,P.cursor="default"})(this.displayRegion.style,this.borderWidth),this.displayRegionContainer=l.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",g.addControl(this.element,v.controlOptions),this._resizeWithViewer=v.controlOptions.anchor!=l.ControlAnchor.ABSOLUTE&&v.controlOptions.anchor!=l.ControlAnchor.NONE,v.width&&v.height?(this.setWidth(v.width),this.setHeight(v.height)):this._resizeWithViewer&&(y=l.getElementSize(g.element),this.element.style.height=Math.round(y.y*v.sizeRatio)+"px",this.element.style.width=Math.round(y.x*v.sizeRatio)+"px",this.oldViewerSize=y,b=l.getElementSize(this.element),this.elementArea=b.x*b.y),this.oldContainerSize=new l.Point(0,0),l.Viewer.apply(this,[v]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer);function w(P){p(m.displayRegionContainer,P),p(m.displayRegion,-P),m.viewport.setRotation(P)}if(v.navigatorRotate){var E=v.viewer.viewport?v.viewer.viewport.getRotation():v.viewer.degrees||0;w(E),v.viewer.addHandler("rotate",function(P){w(P.degrees)})}this.innerTracker.destroy(),this.innerTracker=new l.MouseTracker({element:this.element,dragHandler:l.delegate(this,u),clickHandler:l.delegate(this,o),releaseHandler:l.delegate(this,d),scrollHandler:l.delegate(this,f)}),this.addHandler("reset-size",function(){m.viewport&&m.viewport.goHome(!0)}),g.world.addHandler("item-index-change",function(P){window.setTimeout(function(){var C=m.world.getItemAt(P.previousIndex);m.world.setItemIndex(C,P.newIndex)},1)}),g.world.addHandler("remove-item",function(P){var C=P.item,T=m._getMatchingItem(C);T&&m.world.removeItem(T)}),this.update(g.viewport)},l.extend(l.Navigator.prototype,l.EventSource.prototype,l.Viewer.prototype,{updateSize:function(){if(this.viewport){var v=new l.Point(this.container.clientWidth===0?1:this.container.clientWidth,this.container.clientHeight===0?1:this.container.clientHeight);v.equals(this.oldContainerSize)||(this.viewport.resize(v,!0),this.viewport.goHome(!0),this.oldContainerSize=v,this.drawer.clear(),this.world.draw())}},setWidth:function(v){this.width=v,this.element.style.width=typeof v=="number"?v+"px":v,this._resizeWithViewer=!1},setHeight:function(v){this.height=v,this.element.style.height=typeof v=="number"?v+"px":v,this._resizeWithViewer=!1},setFlip:function(v){return this.viewport.setFlip(v),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(v){h(this.displayRegion,v),h(this.canvas,v),h(this.element,v)},update:function(v){var g,m,y,b,w,E;if(g=l.getElementSize(this.viewer.element),this._resizeWithViewer&&g.x&&g.y&&!g.equals(this.oldViewerSize)&&(this.oldViewerSize=g,this.maintainSizeRatio||!this.elementArea?(m=g.x*this.sizeRatio,y=g.y*this.sizeRatio):(m=Math.sqrt(this.elementArea*(g.x/g.y)),y=this.elementArea/m),this.element.style.width=Math.round(m)+"px",this.element.style.height=Math.round(y)+"px",this.elementArea||(this.elementArea=m*y),this.updateSize()),v&&this.viewport){b=v.getBoundsNoRotate(!0),w=this.viewport.pixelFromPointNoRotate(b.getTopLeft(),!1),E=this.viewport.pixelFromPointNoRotate(b.getBottomRight(),!1).minus(this.totalBorderWidths);var P=this.displayRegion.style;P.display=this.world.getItemCount()?"block":"none",P.top=Math.round(w.y)+"px",P.left=Math.round(w.x)+"px";var C=Math.abs(w.x-E.x),T=Math.abs(w.y-E.y);P.width=Math.round(Math.max(C,0))+"px",P.height=Math.round(Math.max(T,0))+"px"}},addTiledImage:function(v){var g=this,m=v.originalTiledImage;delete v.original;var y=l.extend({},v,{success:function(b){var w=b.item;w._originalForNavigator=m,g._matchBounds(w,m,!0);function E(){g._matchBounds(w,m)}function P(){g._matchOpacity(w,m)}function C(){g._matchCompositeOperation(w,m)}m.addHandler("bounds-change",E),m.addHandler("clip-change",E),m.addHandler("opacity-change",P),m.addHandler("composite-operation-change",C)}});return l.Viewer.prototype.addTiledImage.apply(this,[y])},_getMatchingItem:function(v){for(var g=this.world.getItemCount(),m,y=0;y<g;y++)if(m=this.world.getItemAt(y),m._originalForNavigator===v)return m;return null},_matchBounds:function(v,g,m){var y=g.getBoundsNoRotate();v.setPosition(y.getTopLeft(),m),v.setWidth(y.width,m),v.setRotation(g.getRotation(),m),v.setClip(g.getClip())},_matchOpacity:function(v,g){v.setOpacity(g.opacity)},_matchCompositeOperation:function(v,g){v.setCompositeOperation(g.compositeOperation)}});function o(v){var g={tracker:v.eventSource,position:v.position,quick:v.quick,shift:v.shift,originalEvent:v.originalEvent,preventDefaultAction:v.preventDefaultAction};if(this.viewer.raiseEvent("navigator-click",g),!g.preventDefaultAction&&v.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(v.position.x=this.viewport.getContainerSize().x-v.position.x);var m=this.viewport.pointFromPixel(v.position);this.panVertical?this.panHorizontal||(m.x=this.viewer.viewport.getCenter(!0).x):m.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(m),this.viewer.viewport.applyConstraints()}}function u(v){var g={tracker:v.eventSource,position:v.position,delta:v.delta,speed:v.speed,direction:v.direction,shift:v.shift,originalEvent:v.originalEvent,preventDefaultAction:v.preventDefaultAction};this.viewer.raiseEvent("navigator-drag",g),!g.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(v.delta.x=0),this.panVertical||(v.delta.y=0),this.viewer.viewport.flipped&&(v.delta.x=-v.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(v.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function d(v){v.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function f(v){return this.viewer.raiseEvent("navigator-scroll",{tracker:v.eventSource,position:v.position,scroll:v.scroll,shift:v.shift,originalEvent:v.originalEvent}),!1}function p(v,g){h(v,"rotate("+g+"deg)")}function h(v,g){v.style.webkitTransform=g,v.style.mozTransform=g,v.style.msTransform=g,v.style.oTransform=g,v.style.transform=g}})(OpenSeadragon),(function(l){var o={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"}};l.extend(l,{getString:function(u){var d=u.split("."),f=null,p=arguments,h=o,v;for(v=0;v<d.length-1;v++)h=h[d[v]]||{};return f=h[d[v]],typeof f!="string"&&(l.console.log("Untranslated source string:",u),f=""),f.replace(/\{\d+\}/g,function(g){var m=parseInt(g.match(/\d+/),10)+1;return m<p.length?p[m]:""})},setString:function(u,d){var f=u.split("."),p=o,h;for(h=0;h<f.length-1;h++)p[f[h]]||(p[f[h]]={}),p=p[f[h]];p[f[h]]=d}})})(OpenSeadragon),(function(l){l.Point=function(o,u){this.x=typeof o=="number"?o:0,this.y=typeof u=="number"?u:0},l.Point.prototype={clone:function(){return new l.Point(this.x,this.y)},plus:function(o){return new l.Point(this.x+o.x,this.y+o.y)},minus:function(o){return new l.Point(this.x-o.x,this.y-o.y)},times:function(o){return new l.Point(this.x*o,this.y*o)},divide:function(o){return new l.Point(this.x/o,this.y/o)},negate:function(){return new l.Point(-this.x,-this.y)},distanceTo:function(o){return Math.sqrt(Math.pow(this.x-o.x,2)+Math.pow(this.y-o.y,2))},squaredDistanceTo:function(o){return Math.pow(this.x-o.x,2)+Math.pow(this.y-o.y,2)},apply:function(o){return new l.Point(o(this.x),o(this.y))},equals:function(o){return o instanceof l.Point&&this.x===o.x&&this.y===o.y},rotate:function(o,u){u=u||new l.Point(0,0);var d,f;if(o%90===0){var p=l.positiveModulo(o,360);switch(p){case 0:d=1,f=0;break;case 90:d=0,f=1;break;case 180:d=-1,f=0;break;case 270:d=0,f=-1;break}}else{var h=o*Math.PI/180;d=Math.cos(h),f=Math.sin(h)}var v=d*(this.x-u.x)-f*(this.y-u.y)+u.x,g=f*(this.x-u.x)+d*(this.y-u.y)+u.y;return new l.Point(v,g)},toString:function(){return"("+Math.round(this.x*100)/100+","+Math.round(this.y*100)/100+")"}}})(OpenSeadragon),(function(l){l.TileSource=function(u,d,f,p,h,v){var g=this,m=arguments,y,b;if(l.isPlainObject(u)?y=u:y={width:m[0],height:m[1],tileSize:m[2],tileOverlap:m[3],minLevel:m[4],maxLevel:m[5]},l.EventSource.call(this),l.extend(!0,this,y),!this.success){for(b=0;b<arguments.length;b++)if(l.isFunction(arguments[b])){this.success=arguments[b];break}}this.success&&this.addHandler("ready",function(w){g.success(w)}),l.type(arguments[0])=="string"&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new l.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=y.width&&y.height?y.width/y.height:1,this.dimensions=new l.Point(y.width,y.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=y.tileOverlap?y.tileOverlap:0,this.minLevel=y.minLevel?y.minLevel:0,this.maxLevel=y.maxLevel!==void 0&&y.maxLevel!==null?y.maxLevel:y.width&&y.height?Math.ceil(Math.log(Math.max(y.width,y.height))/Math.log(2)):0,this.success&&l.isFunction(this.success)&&this.success(this))},l.TileSource.prototype={getTileSize:function(u){return l.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(u){return this._tileWidth?this._tileWidth:this.getTileSize(u)},getTileHeight:function(u){return this._tileHeight?this._tileHeight:this.getTileSize(u)},getLevelScale:function(u){var d={},f;for(f=0;f<=this.maxLevel;f++)d[f]=1/Math.pow(2,this.maxLevel-f);return this.getLevelScale=function(p){return d[p]},this.getLevelScale(u)},getNumTiles:function(u){var d=this.getLevelScale(u),f=Math.ceil(d*this.dimensions.x/this.getTileWidth(u)),p=Math.ceil(d*this.dimensions.y/this.getTileHeight(u));return new l.Point(f,p)},getPixelRatio:function(u){var d=this.dimensions.times(this.getLevelScale(u)),f=1/d.x,p=1/d.y;return new l.Point(f,p)},getClosestLevel:function(){var u,d;for(u=this.minLevel+1;u<=this.maxLevel&&(d=this.getNumTiles(u),!(d.x>1||d.y>1));u++);return u-1},getTileAtPoint:function(u,d){var f=d.x>=0&&d.x<=1&&d.y>=0&&d.y<=1/this.aspectRatio;l.console.assert(f,"[TileSource.getTileAtPoint] must be called with a valid point.");var p=this.dimensions.x*this.getLevelScale(u),h=d.x*p,v=d.y*p,g=Math.floor(h/this.getTileWidth(u)),m=Math.floor(v/this.getTileHeight(u));d.x>=1&&(g=this.getNumTiles(u).x-1);var y=1e-15;return d.y>=1/this.aspectRatio-y&&(m=this.getNumTiles(u).y-1),new l.Point(g,m)},getTileBounds:function(u,d,f,p){var h=this.dimensions.times(this.getLevelScale(u)),v=this.getTileWidth(u),g=this.getTileHeight(u),m=d===0?0:v*d-this.tileOverlap,y=f===0?0:g*f-this.tileOverlap,b=v+(d===0?1:2)*this.tileOverlap,w=g+(f===0?1:2)*this.tileOverlap,E=1/h.x;return b=Math.min(b,h.x-m),w=Math.min(w,h.y-y),p?new l.Rect(0,0,b,w
154):new l.Rect(m*E,y*E,b*E,w*E)},getImageInfo:function(u){var d=this,f,p,h,v,g,m,y;u&&(g=u.split("/"),m=g[g.length-1],y=m.lastIndexOf("."),y>-1&&(g[g.length-1]=m.slice(0,y))),p=function(b){typeof b=="string"&&(b=l.parseXml(b));var w=l.TileSource.determineType(d,b,u);if(!w){d.raiseEvent("open-failed",{message:"Unable to load TileSource",source:u});return}v=w.prototype.configure.apply(d,[b,u]),v.ajaxWithCredentials===void 0&&(v.ajaxWithCredentials=d.ajaxWithCredentials),h=new w(v),d.ready=!0,d.raiseEvent("ready",{tileSource:h})},u.match(/\.js$/)?(f=u.split("/").pop().replace(".js",""),l.jsonp({url:u,async:!1,callbackName:f,callback:p})):l.makeAjaxRequest({url:u,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(b){var w=o(b);p(w)},error:function(b,w){var E;try{E="HTTP "+b.status+" attempting to load TileSource"}catch{var P;typeof w>"u"||!w.toString?P="Unknown error":P=w.toString(),E=P+" attempting to load TileSource"}d.raiseEvent("open-failed",{message:E,source:u})}})},supports:function(u,d){return!1},configure:function(u,d){throw new Error("Method not implemented.")},getTileUrl:function(u,d,f){throw new Error("Method not implemented.")},getTileAjaxHeaders:function(u,d,f){return{}},tileExists:function(u,d,f){var p=this.getNumTiles(u);return u>=this.minLevel&&u<=this.maxLevel&&d>=0&&f>=0&&d<p.x&&f<p.y}},l.extend(!0,l.TileSource.prototype,l.EventSource.prototype);function o(u){var d=u.responseText,f=u.status,p,h;if(u){if(u.status!==200&&u.status!==0)throw f=u.status,p=f==404?"Not Found":u.statusText,new Error(l.getString("Errors.Status",f,p))}else throw new Error(l.getString("Errors.Security"));if(d.match(/\s*<.*/))try{h=u.responseXML&&u.responseXML.documentElement?u.responseXML:l.parseXml(d)}catch{h=u.responseText}else if(d.match(/\s*[\{\[].*/))try{h=l.parseJSON(d)}catch{h=d}else h=d;return h}l.TileSource.determineType=function(u,d,f){var p;for(p in OpenSeadragon)if(p.match(/.+TileSource$/)&&l.isFunction(OpenSeadragon[p])&&l.isFunction(OpenSeadragon[p].prototype.supports)&&OpenSeadragon[p].prototype.supports.call(u,d,f))return OpenSeadragon[p];l.console.error("No TileSource was able to open %s %s",f,d)}})(OpenSeadragon),(function(l){l.DziTileSource=function(d,f,p,h,v,g,m,y,b){var w,E,P,C;if(l.isPlainObject(d)?C=d:C={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=C.tilesUrl,this.fileFormat=C.fileFormat,this.displayRects=C.displayRects,this.displayRects)for(w=this.displayRects.length-1;w>=0;w--)for(E=this.displayRects[w],P=E.minLevel;P<=E.maxLevel;P++)this._levelRects[P]||(this._levelRects[P]=[]),this._levelRects[P].push(E);l.TileSource.apply(this,[C])},l.extend(l.DziTileSource.prototype,l.TileSource.prototype,{supports:function(d,f){var p;return d.Image?p=d.Image.xmlns:d.documentElement&&(d.documentElement.localName=="Image"||d.documentElement.tagName=="Image")&&(p=d.documentElement.namespaceURI),p=(p||"").toLowerCase(),p.indexOf("schemas.microsoft.com/deepzoom/2008")!==-1||p.indexOf("schemas.microsoft.com/deepzoom/2009")!==-1},configure:function(d,f){var p;return l.isPlainObject(d)?p=u(this,d):p=o(this,d),f&&!p.tilesUrl&&(p.tilesUrl=f.replace(/([^\/]+?)(\.(dzi|xml|js)?(\?[^\/]*)?)?\/?$/,"$1_files/"),f.search(/\.(dzi|xml|js)\?/)!=-1?p.queryParams=f.match(/\?.*/):p.queryParams=""),p},getTileUrl:function(d,f,p){return[this.tilesUrl,d,"/",f,"_",p,".",this.fileFormat,this.queryParams].join("")},tileExists:function(d,f,p){var h=this._levelRects[d],v,g,m,y,b,w,E;if(this.minLevel&&d<this.minLevel||this.maxLevel&&d>this.maxLevel)return!1;if(!h||!h.length)return!0;for(E=h.length-1;E>=0;E--)if(v=h[E],!(d<v.minLevel||d>v.maxLevel)&&(g=this.getLevelScale(d),m=v.x*g,y=v.y*g,b=m+v.width*g,w=y+v.height*g,m=Math.floor(m/this._tileWidth),y=Math.floor(y/this._tileWidth),b=Math.ceil(b/this._tileWidth),w=Math.ceil(w/this._tileWidth),m<=f&&f<b&&y<=p&&p<w))return!0;return!1}});function o(d,f){if(!f||!f.documentElement)throw new Error(l.getString("Errors.Xml"));var p=f.documentElement,h=p.localName||p.tagName,v=f.documentElement.namespaceURI,g=null,m=[],y,b,w,E,P;if(h=="Image")try{if(E=p.getElementsByTagName("Size")[0],E===void 0&&(E=p.getElementsByTagNameNS(v,"Size")[0]),g={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:p.getAttribute("Url"),Format:p.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(p.getAttribute("Overlap"),10),TileSize:parseInt(p.getAttribute("TileSize"),10),Size:{Height:parseInt(E.getAttribute("Height"),10),Width:parseInt(E.getAttribute("Width"),10)}}},!l.imageFormatSupported(g.Image.Format))throw new Error(l.getString("Errors.ImageFormat",g.Image.Format.toUpperCase()));for(y=p.getElementsByTagName("DisplayRect"),y===void 0&&(y=p.getElementsByTagNameNS(v,"Dis
154playRect")[0]),P=0;P<y.length;P++)b=y[P],w=b.getElementsByTagName("Rect")[0],w===void 0&&(w=b.getElementsByTagNameNS(v,"Rect")[0]),m.push({Rect:{X:parseInt(w.getAttribute("X"),10),Y:parseInt(w.getAttribute("Y"),10),Width:parseInt(w.getAttribute("Width"),10),Height:parseInt(w.getAttribute("Height"),10),MinLevel:parseInt(b.getAttribute("MinLevel"),10),MaxLevel:parseInt(b.getAttribute("MaxLevel"),10)}});return m.length&&(g.Image.DisplayRect=m),u(d,g)}catch(O){throw O instanceof Error?O:new Error(l.getString("Errors.Dzi"))}else{if(h=="Collection")throw new Error(l.getString("Errors.Dzc"));if(h=="Error"){var C=p.getElementsByTagName("Message")[0],T=C.firstChild.nodeValue;throw new Error(T)}}throw new Error(l.getString("Errors.Dzi"))}function u(d,f){var p=f.Image,h=p.Url,v=p.Format,g=p.Size,m=p.DisplayRect||[],y=parseInt(g.Width,10),b=parseInt(g.Height,10),w=parseInt(p.TileSize,10),E=parseInt(p.Overlap,10),P=[],C,T;for(T=0;T<m.length;T++)C=m[T].Rect,P.push(new l.DisplayRect(parseInt(C.X,10),parseInt(C.Y,10),parseInt(C.Width,10),parseInt(C.Height,10),parseInt(C.MinLevel,10),parseInt(C.MaxLevel,10)));return l.extend(!0,{width:y,height:b,tileSize:w,tileOverlap:E,minLevel:null,maxLevel:null,tilesUrl:h,fileFormat:v,displayRects:P},f)}})(OpenSeadragon),(function(l){l.IIIFTileSource=function(p){if(l.extend(!0,this,p),!(this.height&&this.width&&this["@id"]))throw new Error("IIIF required parameters not provided.");if(p.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=p.version,this.tile_width&&this.tile_height)p.tileWidth=this.tile_width,p.tileHeight=this.tile_height;else if(this.tile_width)p.tileSize=this.tile_width;else if(this.tile_height)p.tileSize=this.tile_height;else if(this.tiles)if(this.tiles.length==1)p.tileWidth=this.tiles[0].width,p.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var h=0;h<this.tiles.length;h++)for(var v=0;v<this.tiles[h].scaleFactors.length;v++){var g=this.tiles[h].scaleFactors[v];this.scale_factors.push(g),p.tileSizePerScaleFactor[g]={width:this.tiles[h].width,height:this.tiles[h].height||this.tiles[h].width}}}else if(o(p)){for(var m=Math.min(this.height,this.width),y=[256,512,1024],b=[],w=0;w<y.length;w++)y[w]<=m&&b.push(y[w]);b.length>0?p.tileSize=Math.max.apply(null,b):p.tileSize=m}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,p.levels=u(this),l.extend(!0,p,{width:p.levels[p.levels.length-1].width,height:p.levels[p.levels.length-1].height,tileSize:Math.max(p.height,p.width),tileOverlap:0,minLevel:0,maxLevel:p.levels.length-1}),this.levels=p.levels):l.console.error("Nothing in the info.json to construct image pyramids from");if(!p.maxLevel&&!this.emulateLegacyImagePyramid)if(!this.scale_factors)p.maxLevel=Number(Math.ceil(Math.log(Math.max(this.width,this.height),2)));else{var E=Math.max.apply(null,this.scale_factors);p.maxLevel=Math.round(Math.log(E)*Math.LOG2E)}l.TileSource.apply(this,[p])},l.extend(l.IIIFTileSource.prototype,l.TileSource.prototype,{supports:function(p,h){return p.protocol&&p.protocol=="http://iiif.io/api/image"||p["@context"]&&(p["@context"]=="http://library.stanford.edu/iiif/image-api/1.1/context.json"||p["@context"]=="http://iiif.io/api/image/1/context.json")||p.profile&&p.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html")===0||p.identifier&&p.width&&p.height?!0:!!(p.documentElement&&p.documentElement.tagName=="info"&&p.documentElement.namespaceURI=="http://library.stanford.edu/iiif/image-api/ns/")},configure:function(p,h){if(l.isPlainObject(p)){if(!p["@context"])p["@context"]="http://iiif.io/api/image/1.0/context.json",p["@id"]=h.replace("/info.json",""),p.version=1;else{var g=p["@context"];if(Array.isArray(g)){for(var m=0;m<g.length;m++)if(typeof g[m]=="string"&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(g[m])||g[m]==="http://library.stanford.edu/iiif/image-api/1.1/context.json")){g=g[m];break}}switch(g){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":p.version=1;break;case"http://iiif.io/api/image/2/context.json":p.version=2;break;case"http://iiif.io/api/image/3/context.json":p.version=3;break;default:l.console.error("Data has a @context property which contains 
154no known IIIF context URI.")}}if(!p["@id"]&&p.id&&(p["@id"]=p.id),p.preferredFormats){for(var y=0;y<p.preferredFormats.length;y++)if(OpenSeadragon.imageFormatSupported(p.preferredFormats[y])){p.tileFormat=p.preferredFormats[y];break}}return p}else{var v=d(p);return v["@context"]="http://iiif.io/api/image/1.0/context.json",v["@id"]=h.replace("/info.xml",""),v.version=1,v}},getTileWidth:function(p){if(this.emulateLegacyImagePyramid)return l.TileSource.prototype.getTileWidth.call(this,p);var h=Math.pow(2,this.maxLevel-p);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[h]?this.tileSizePerScaleFactor[h].width:this._tileWidth},getTileHeight:function(p){if(this.emulateLegacyImagePyramid)return l.TileSource.prototype.getTileHeight.call(this,p);var h=Math.pow(2,this.maxLevel-p);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[h]?this.tileSizePerScaleFactor[h].height:this._tileHeight},getLevelScale:function(p){if(this.emulateLegacyImagePyramid){var h=NaN;return this.levels.length>0&&p>=this.minLevel&&p<=this.maxLevel&&(h=this.levels[p].width/this.levels[this.maxLevel].width),h}return l.TileSource.prototype.getLevelScale.call(this,p)},getNumTiles:function(p){if(this.emulateLegacyImagePyramid){var h=this.getLevelScale(p);return h?new l.Point(1,1):new l.Point(0,0)}return l.TileSource.prototype.getNumTiles.call(this,p)},getTileAtPoint:function(p,h){return this.emulateLegacyImagePyramid?new l.Point(0,0):l.TileSource.prototype.getTileAtPoint.call(this,p,h)},getTileUrl:function(p,h,v){if(this.emulateLegacyImagePyramid){var g=null;return this.levels.length>0&&p>=this.minLevel&&p<=this.maxLevel&&(g=this.levels[p].url),g}var m="0",y=Math.pow(.5,this.maxLevel-p),b=Math.ceil(this.width*y),w=Math.ceil(this.height*y),E,P,C,T,O,x,A,D,j,M,N,q,z,H;return E=this.getTileWidth(p),P=this.getTileHeight(p),C=Math.ceil(E/y),T=Math.ceil(P/y),this.version===1?z="native."+this.tileFormat:z="default."+this.tileFormat,b<E&&w<P?(this.version===2&&b===this.width||this.version===3&&b===this.width&&w===this.height?M="max":this.version===3?M=b+","+w:M=b+",",O="full"):(x=h*C,A=v*T,D=Math.min(C,this.width-x),j=Math.min(T,this.height-A),h===0&&v===0&&D===this.width&&j===this.height?O="full":O=[x,A,D,j].join(","),N=Math.ceil(D*y),q=Math.ceil(j*y),this.version===2&&N===this.width||this.version===3&&N===this.width&&q===this.height?M="max":this.version===3?M=N+","+q:M=N+","),H=[this["@id"],O,M,m,z].join("/"),H},__testonly__:{canBeTiled:o,constructLevels:u}});function o(p){var h=["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"],v=Array.isArray(p.profile)?p.profile[0]:p.profile,g=h.indexOf(v)!==-1,m=!1;return p.version===2&&p.profile.length>1&&p.profile[1].supports&&(m=p.profile[1].supports.indexOf("sizeByW")!==-1),p.version===3&&p.extraFeatures&&(m=p.extraFeatures.indexOf("sizeByWh")!==-1),!g||m}function u(p){for(var h=[],v=0;v<p.sizes.length;v++)h.push({url:p["@id"]+"/full/"+p.sizes[v].width+","+(p.version===3?p.sizes[v].height:"")+"/0/default."+p.tileFormat,width:p.sizes[v].width,height:p.sizes[v].height});return h.sort(function(g,m){return g.width-m.width})}function d(p){if(!p||!p.documentElement)throw new Error(l.getString("Errors.Xml"));var h=p.documentElement,v=h.tagName,g=null;if(v=="info")try{return g={},f(h,g),g}catch(m){throw m instanceof Error?m:new Error(l.getString("Errors.IIIF"))}throw new Error(l.getString("Errors.IIIF"))}function f(p,h,v){var g,m;if(p.nodeType==3&&v)m=p.nodeValue.trim(),m.match(/^\d*$/)&&(m=Number(m)),h[v]?(l.isArray(h[v])||(h[v]=[h[v]]),h[v].push(m)):h[v]=m;else if(p.nodeType==1)for(g=0;g<p.childNodes.length;g++)f(p.childNodes[g],h,p.nodeName)}})(OpenSeadragon),(function(l){l.OsmTileSource=function(o,u,d,f,p){var h;l.isPlainObject(o)?h=o:h={width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]},(!h.width||!h.height)&&(h.width=65572864,h.height=65572864),h.tileSize||(h.tileSize=256,h.tileOverlap=0),h.tilesUrl||(h.tilesUrl="http://tile.openstreetmap.org/"),h.minLevel=8,l.TileSource.apply(this,[h])},l.extend(l.OsmTileSource.prototype,l.TileSource.prototype,{supports:function(o,u){return o.type&&o.type=="openstreetmaps"},configure:function(o,u){return o},getTileUrl:function(o,u,d){return this.tilesUrl+(o-8)+"/"+u+"/"+d+".png"}})})(OpenSeadragon),(function(l){l.TmsTileSource=function(o,u,d,f,p){var h;l.isPlainObject(o)?h=o:h={width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var v=Math.ceil(h.width/256)*256,g=Math.ceil(h.height/256)*256,m;v>g?m=v/256:m=g/256,h.maxLevel=Math.ceil(Math.log(m)/Math.log(2))-1,h.tileSize=256,h.width=v,h.height=g,l.TileSource.apply(this,[h])},l.extend(l.TmsTileSource.prototype,l.TileSource.prototype,{supports:function(o,u){return o.type&&o.type=="tiledmapservice"},configure:function(o,u){return o},getTileUrl:function(o,u,d){var f=this.getNumTiles(o).y-1;return this.tilesUrl+o+"/"+u+"/"+(f-d)+".png"}})})(OpenSeadragon),(function(l){l.ZoomifyTileSource=function(o){o.tileSize=256;var u={x:o.width,y:o.height};for(o.imageSizes=[{x:o.width,y:o.height}],o.gridSize=[this._getGridSize(o.width,o.height,o.tileSize)];parseInt(u.x,10)>o.tileSize||parseInt(u.y,10)>o.tileSize;)u.x=Math.floor(u.x/2),u.y=Math.floor(u.y/2),o.imageSizes.push({x:u.x,y:u.y}),o.gridSize.push(this._getGridSize(u.x,u.y,o.tileSize));o.imageSizes.reverse(),o.gridSize.reverse(),o.minLevel=0,o.maxLevel=o.gridSize.length-1,OpenSeadragon.TileSource.apply(this,[o])},l.extend(l.ZoomifyTileSource.prototype,l.TileSource.prototype,{_getGridSize:function(o,u,d){return{x:Math.ceil(o/d),y:Math.ceil(u/d)}},_calculateAbsoluteTileNumber:function(o,u,d){for(var f=0,p={},h=0;h<o;h++)p=this.gridSize[h],f+=p.x*p.y;return p=this.gridSize[o],f+=p.x*d+u,f},supports:function(o,u){return o.type&&o.type=="zoomifytileservice"},configure:function(o,u){return o},getTileUrl:function(o,u,d){var f=0,p=this._calculateAbsoluteTileNumber(o,u,d);return f=Math.floor(p/256),this.tilesUrl+"TileGroup"+f+"/"+o+"-"+u+"-"+d+".jpg"}})})(OpenSeadragon),(function(l){l.LegacyTileSource=function(f){var p,h,v;l.isArray(f)&&(p={type:"legacy-image-pyramid",levels:f}),p.levels=o(p.levels),p.levels.length>0?(h=p.levels[p.levels.length-1].width,v=p.levels[p.levels.length-1].height):(h=0,v=0,l.console.error("No supported image formats found")),l.extend(!0,p,{width:h,height:v,tileSize:Math.max(v,h),tileOverlap:0,minLevel:0,maxLevel:p.levels.length>0?p.levels.length-1:0}),l.TileSource.apply(this,[p]),this.levels=p.levels},l.extend(l.LegacyTileSource.prototype,l.TileSource.prototype,{supports:function(f,p){return f.type&&f.type=="legacy-image-pyramid"||f.documentElement&&f.documentElement.getAttribute("type")=="legacy-image-pyramid"},configure:function(f,p){var h;return l.isPlainObject(f)?h=d(this,f):h=u(this,f),h},getLevelScale:function(f){var p=NaN;return this.levels.length>0&&f>=this.minLevel&&f<=this.maxLevel&&(p=this.levels[f].width/this.levels[this.maxLevel].width),p},getNumTiles:function(f){var p=this.getLevelScale(f);return p?new l.Point(1,1):new l.Point(0,0)},getTileUrl:function(f,p,h){var v=null;return this.levels.length>0&&f>=this.minLevel&&f<=this.maxLevel&&(v=this.levels[f].url),v}});function o(f){var p=[],h,v;for(v=0;v<f.length;v++)h=f[v],h.height&&h.width&&h.url?p.push({url:h.url,width:Number(h.width),height:Number(h.height)}):l.console.error("Unsupported image format: %s",h.url?h.url:"<no URL>");return p.sort(function(g,m){return g.height-m.height})}function u(f,p){if(!p||!p.documentElement)throw new Error(l.getString("Errors.Xml"));var h=p.documentElement,v=h.tagName,g=null,m=[],y,b;if(v=="image")try{for(g={type:h.getAttribute("type"),levels:[]},m=h.getElementsByTagName("level"),b=0;b<m.length;b++)y=m[b],g.levels.push({url:y.getAttribute("url"),width:parseInt(y.getAttribute("width"),10),height:parseInt(y.getAttribute("height"),10)});return d(f,g)}catch(w){throw w instanceof Error?w:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if(v=="collection")throw new Error("Legacy Image Pyramid Collections not yet supported.");
154if(v=="error")throw new Error("Error: "+p)}throw new Error("Unknown element "+v)}function d(f,p){return p.levels}})(OpenSeadragon),(function(l){l.ImageTileSource=function(o){o=l.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},o),l.TileSource.apply(this,[o])},l.extend(l.ImageTileSource.prototype,l.TileSource.prototype,{supports:function(o,u){return o.type&&o.type==="image"},configure:function(o,u){return o},getImageInfo:function(o){var u=this._image=new Image,d=this;this.crossOriginPolicy&&(u.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(u.useCredentials=this.ajaxWithCredentials),l.addEvent(u,"load",function(){d.width=Object.prototype.hasOwnProperty.call(u,"naturalWidth")?u.naturalWidth:u.width,d.height=Object.prototype.hasOwnProperty.call(u,"naturalHeight")?u.naturalHeight:u.height,d.aspectRatio=d.width/d.height,d.dimensions=new l.Point(d.width,d.height),d._tileWidth=d.width,d._tileHeight=d.height,d.tileOverlap=0,d.minLevel=0,d.levels=d._buildLevels(),d.maxLevel=d.levels.length-1,d.ready=!0,d.raiseEvent("ready",{tileSource:d})}),l.addEvent(u,"error",function(){d.raiseEvent("open-failed",{message:"Error loading image at "+o,source:o})}),u.src=o},getLevelScale:function(o){var u=NaN;return o>=this.minLevel&&o<=this.maxLevel&&(u=this.levels[o].width/this.levels[this.maxLevel].width),u},getNumTiles:function(o){var u=this.getLevelScale(o);return u?new l.Point(1,1):new l.Point(0,0)},getTileUrl:function(o,u,d){var f=null;return o>=this.minLevel&&o<=this.maxLevel&&(f=this.levels[o].url),f},getContext2D:function(o,u,d){var f=null;return o>=this.minLevel&&o<=this.maxLevel&&(f=this.levels[o].context2D),f},_buildLevels:function(){var o=[{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||!l.supportsCanvas||!this.useCanvas)return delete this._image,o;var u=Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,d=Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height,f=document.createElement("canvas"),p=f.getContext("2d");if(f.width=u,f.height=d,p.drawImage(this._image,0,0,u,d),o[0].context2D=p,delete this._image,l.isCanvasTainted(f))return o;for(;u>=2&&d>=2;){u=Math.floor(u/2),d=Math.floor(d/2);var h=document.createElement("canvas"),v=h.getContext("2d");h.width=u,h.height=d,v.drawImage(f,0,0,u,d),o.splice(0,0,{context2D:v,width:u,height:d}),f=h,p=v}return o}})})(OpenSeadragon),(function(l){l.TileSourceCollection=function(o,u,d,f){l.console.error("TileSourceCollection is deprecated; use World instead")}})(OpenSeadragon),(function(l){l.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},l.Button=function(v){var g=this;l.EventSource.call(this),l.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:l.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:l.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null},v),this.element=v.element||l.makeNeutralElement("div"),v.element||(this.imgRest=l.makeTransparentImage(this.srcRest),this.imgGroup=l.makeTransparentImage(this.srcGroup),this.imgHover=l.makeTransparentImage(this.srcHover),this.imgDown=l.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,this.element.style.position="relative",l.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",l.Browser.vendor==l.BROWSERS.FIREFOX&&l.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=l.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 l.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(m){m.insideElementPressed?(p(g,l.ButtonState.DOWN),g.raiseEvent("enter",{originalEvent:m.originalEvent})):m.buttonDownAny||p(g,l.ButtonState.HOVER)},focusHandler:function(m){this.enterHandler(m),g.raiseEvent("focus",{originalEvent:m.originalEvent})},exitHandler:function(m){h(g,l.ButtonState.GROUP),m.insideElementPressed&&g.raiseEvent("exit",{originalEvent:m.originalEvent})},blurHandler:function(m){this.exitHandler(m),g.raiseEvent("blur",{originalEvent:m.originalEvent})},pressHandler:function(m){p(g,l.ButtonState.DOWN),g.raiseEvent("press",{originalEvent:m.originalEvent})},releaseHandler:function(m){m.insideElementPressed&&m.insideElementReleased?(h(g,l.ButtonState.HOVER),g.raiseEvent("release",{originalEvent:m.originalEvent})):m.insideElementPressed?h(g,l.ButtonState.GROUP):p(g,l.ButtonState.HOVER)},clickHandler:function(m){m.quick&&g.raiseEvent("click",{originalEvent:m.originalEvent})},keyHandler:function(m){return m.keyCode===13?(g.raiseEvent("click",{originalEvent:m.originalEvent}),g.raiseEvent("release",{originalEvent:m.originalEvent}),!1):!0}}),h(this,l.ButtonState.REST)},l.extend(l.Button.prototype,l.EventSource.prototype,{notifyGroupEnter:function(){p(this,l.ButtonState.GROUP)},notifyGroupExit:function(){h(this,l.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,l.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,l.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()}});function o(v){l.requestAnimationFrame(function(){u(v)})}function u(v){var g,m,y;v.shouldFade&&(g=l.now(),m=g-v.fadeBeginTime,y=1-m/v.fadeLength,y=Math.min(1,y),y=Math.max(0,y),v.imgGroup&&l.setElementOpacity(v.imgGroup,y,!0),y>0&&o(v))}function d(v){v.shouldFade=!0,v.fadeBeginTime=l.now()+v.fadeDelay,window.setTimeout(function(){o(v)},v.fadeDelay)}function f(v){v.shouldFade=!1,v.imgGroup&&l.setElementOpacity(v.imgGroup,1,!0)}function p(v,g){v.element.disabled||(g>=l.ButtonState.GROUP&&v.currentState==l.ButtonState.REST&&(f(v),v.currentState=l.ButtonState.GROUP),g>=l.ButtonState.HOVER&&v.currentState==l.ButtonState.GROUP&&(v.imgHover&&(v.imgHover.style.visibility=""),v.currentState=l.ButtonState.HOVER),g>=l.ButtonState.DOWN&&v.currentState==l.ButtonState.HOVER&&(v.imgDown&&(v.imgDown.style.visibility=""),v.currentState=l.ButtonState.DOWN))}function h(v,g){v.element.disabled||(g<=l.ButtonState.HOVER&&v.currentState==l.ButtonState.DOWN&&(v.imgDown&&(v.imgDown.style.visibility="hidden"),v.currentState=l.ButtonState.HOVER),g<=l.ButtonState.GROUP&&v.currentState==l.ButtonState.HOVER&&(v.imgHover&&(v.imgHover.style.visibility="hidden"),v.currentState=l.ButtonState.GROUP),g<=l.ButtonState.REST&&v.currentState==l.ButtonState.GROUP&&(d(v),v.currentState=l.ButtonState.REST))}})(OpenSeadragon),(function(l){l.ButtonGroup=function(o){l.extend(!0,this,{buttons:[],clickTimeThreshold:l.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:l.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},o);var u=this.buttons.concat([]),d=this,f;
vendor: 5,658 bytes, line 154
154if(this.element=o.element||l.makeNeutralElement("div"),!o.group)for(this.element.style.display="inline-block",f=0;f<u.length;f++)this.element.appendChild(u[f].element);l.setElementTouchActionNone(this.element),this.tracker=new l.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(p){var h;for(h=0;h<d.buttons.length;h++)d.buttons[h].notifyGroupEnter()},exitHandler:function(p){var h;if(!p.insideElementPressed)for(h=0;h<d.buttons.length;h++)d.buttons[h].notifyGroupExit()}})},l.ButtonGroup.prototype={emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateExit:function(){this.tracker.exitHandler({eventSource:this.tracker})}}})(OpenSeadragon),(function(l){l.Rect=function(o,u,d,f,p){this.x=typeof o=="number"?o:0,this.y=typeof u=="number"?u:0,this.width=typeof d=="number"?d:0,this.height=typeof f=="number"?f:0,this.degrees=typeof p=="number"?p:0,this.degrees=l.positiveModulo(this.degrees,360);var h,v;this.degrees>=270?(h=this.getTopRight(),this.x=h.x,this.y=h.y,v=this.height,this.height=this.width,this.width=v,this.degrees-=270):this.degrees>=180?(h=this.getBottomRight(),this.x=h.x,this.y=h.y,this.degrees-=180):this.degrees>=90&&(h=this.getBottomLeft(),this.x=h.x,this.y=h.y,v=this.height,this.height=this.width,this.width=v,this.degrees-=90)},l.Rect.fromSummits=function(o,u,d){var f=o.distanceTo(u),p=o.distanceTo(d),h=u.minus(o),v=Math.atan(h.y/h.x);return h.x<0?v+=Math.PI:h.y<0&&(v+=2*Math.PI),new l.Rect(o.x,o.y,f,p,v/Math.PI*180)},l.Rect.prototype={clone:function(){return new l.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new l.Point(this.x,this.y)},getBottomRight:function(){return new l.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new l.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new l.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new l.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new l.Point(this.width,this.height)},equals:function(o){return o instanceof l.Rect&&this.x===o.x&&this.y===o.y&&this.width===o.width&&this.height===o.height&&this.degrees===o.degrees},times:function(o){return new l.Rect(this.x*o,this.y*o,this.width*o,this.height*o,this.degrees)},translate:function(o){return new l.Rect(this.x+o.x,this.y+o.y,this.width,this.height,this.degrees)},union:function(o){var u=this.getBoundingBox(),d=o.getBoundingBox(),f=Math.min(u.x,d.x),p=Math.min(u.y,d.y),h=Math.max(u.x+u.width,d.x+d.width),v=Math.max(u.y+u.height,d.y+d.height);return new l.Rect(f,p,h-f,v-p)},intersection:function(o){var u=1e-10,d=[],f=this.getTopLeft();o.containsPoint(f,u)&&d.push(f);var p=this.getTopRight();o.containsPoint(p,u)&&d.push(p);var h=this.getBottomLeft();o.containsPoint(h,u)&&d.push(h);var v=this.getBottomRight();o.containsPoint(v,u)&&d.push(v);var g=o.getTopLeft();this.containsPoint(g,u)&&d.push(g);var m=o.getTopRight();this.containsPoint(m,u)&&d.push(m);var y=o.getBottomLeft();this.containsPoint(y,u)&&d.push(y);var b=o.getBottomRight();this.containsPoint(b,u)&&d.push(b);for(var w=this._getSegments(),E=o._getSegments(),P=0;P<w.length;P++)for(var C=w[P],T=0;T<E.length;T++){var O=E[T],x=A(C[0],C[1],O[0],O[1]);x&&d.push(x)}function A(H,U,F,B){var G=U.minus(H),Q=B.minus(F),K=-Q.x*G.y+G.x*Q.y;if(K===0)return null;var Z=(G.x*(H.y-F.y)-G.y*(H.x-F.x))/K,te=(Q.x*(H.y-F.y)-Q.y*(H.x-F.x))/K;return-u<=Z&&Z<=1-u&&-u<=te&&te<=1-u?new l.Point(H.x+te*G.x,H.y+te*G.y):null}if(d.length===0)return null;for(var D=d[0].x,j=d[0].x,M=d[0].y,N=d[0].y,q=1;q<d.length;q++){var z=d[q];z.x<D&&(D=z.x),z.x>j&&(j=z.x),z.y<M&&(M=z.y),z.y>N&&(N=z.y)}return new l.Rect(D,M,j-D,N-M)},_getSegments:function(){var o=this.getTopLeft(),u=this.getTopRight(),d=this.getBottomLeft(),f=this.getBottomRight();return[[o,u],[u,f],[f,d],[d,o]]},rotate:function(o,u){if(o=l.positiveModulo(o,360),o===0)return this.clone();u=u||this.getCenter();var d=this.getTopLeft().rotate(o,u),f=this.getTopRight().rotate(o,u),p=f.minus(d);p=p.apply(function(v){var g=1e-15;return Math.abs(v)<g?0:v});var h=Math.atan(p.y/p.x);return p.x<0?h+=Math.PI:p.y<0&&(h+=2*Math.PI),new l.Rect(d.x,d.y,this.width,this.height,h/Math.PI*180)},getBoundingBox:function(){if(this.degrees===0)return this.clone();var o=this.getTopLeft(),u=this.getTopRight(),d=this.getBottomLeft(),f=this.getBottomRight(),p=Math.min(o.x,u.x,d.x,f.x),h=Math.max(o.x,u.x,d.x,f.x),v=Math.min(o.y,u.y,d.y,f.y),g=Math.max(o.y,u.y,d.y,f.y);return new l.Rect(p,v,h-p,g-v)},getIntegerBoundingBox:function(){var o=this.getBoundingBox(),u=Math.floor(o.x),d=Math.floor(o.y),f=Math.ceil(o.width+o.x-u),p=Math.ceil(o.height+o.y-d);return new l.Rect(u,d,f,p)},containsPoint:function(o,u){u=u||0;var d=this.getTopLeft(),f=this.getTopRight(),p=this.getBottomLeft(),h=f.minus(d),v=p.minus(d);return(o.x-d.x)*h.x+(o.y-d.y)*h.y>=-u&&(o.x-f.x)*h.x+(o.y-f.y)*h.y<=u&&(o.x-d.x)*v.x+(o.y-d.y)*v.y>=-u&&(o.x-p.x)*v.x+(o.y-p.y)*v.y<=u},toString:function(){return"["+Math.round(this.x*100)/100+", "+Math.round(this.y*100)/100+", "+Math.round(this.width*100)/100+"x"+Math.round(this.height*100)/100+", "+Math.round(this.degrees*100)/100+"deg]"}}})(OpenSeadragon),(function(l){var o={};l.ReferenceStrip=function(m){var y=this,b=m.viewer,w=l.getElementSize(b.element),E,P,C;for(m.id||(m.id="referencestrip-"+l.now(),this.element=l.makeNeutralElement("div"),this.element.i
154d=m.id,this.element.className="referencestrip"),m=l.extend(!0,{sizeRatio:l.DEFAULT_SETTINGS.referenceStripSizeRatio,position:l.DEFAULT_SETTINGS.referenceStripPosition,scroll:l.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:l.DEFAULT_SETTINGS.clickTimeThreshold},m,{element:this.element,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1}),l.extend(this,m),o[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,P=this.element.style,P.marginTop="0px",P.marginRight="0px",P.marginBottom="0px",P.marginLeft="0px",P.left="0px",P.bottom="0px",P.border="0px",P.background="#000",P.position="relative",l.setElementTouchActionNone(this.element),l.setElementOpacity(this.element,.8),this.viewer=b,this.innerTracker=new l.MouseTracker({element:this.element,dragHandler:l.delegate(this,u),scrollHandler:l.delegate(this,d),enterHandler:l.delegate(this,p),exitHandler:l.delegate(this,h),keyDownHandler:l.delegate(this,v),keyHandler:l.delegate(this,g)}),m.width&&m.height?(this.element.style.width=m.width+"px",this.element.style.height=m.height+"px",b.addControl(this.element,{anchor:l.ControlAnchor.BOTTOM_LEFT})):m.scroll=="horizontal"?(this.element.style.width=w.x*m.sizeRatio*b.tileSources.length+12*b.tileSources.length+"px",this.element.style.height=w.y*m.sizeRatio+"px",b.addControl(this.element,{anchor:l.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=w.y*m.sizeRatio*b.tileSources.length+12*b.tileSources.length+"px",this.element.style.width=w.x*m.sizeRatio+"px",b.addControl(this.element,{anchor:l.ControlAnchor.TOP_LEFT})),this.panelWidth=w.x*this.sizeRatio+8,this.panelHeight=w.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},C=0;C<b.tileSources.length;C++)E=l.makeNeutralElement("div"),E.id=this.element.id+"-"+C,E.style.width=y.panelWidth+"px",E.style.height=y.panelHeight+"px",E.style.display="inline",E.style.float="left",E.style.cssFloat="left",E.style.styleFloat="left",E.style.padding="2px",l.setElementTouchActionNone(E),E.innerTracker=new l.MouseTracker({element:E,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,pressHandler:function(T){T.eventSource.dragging=l.now()},releaseHandler:function(T){var O=T.eventSource,x=O.element.id,A=Number(x.split("-")[2]),D=l.now();T.insideElementPressed&&T.insideElementReleased&&O.dragging&&D-O.dragging<O.clickTimeThreshold&&(O.dragging=null,b.goToPage(A))}}),this.element.appendChild(E),E.activePanel=!1,this.panels.push(E);f(this,this.scroll=="vertical"?w.y:w.x,0),this.setFocus(0)},l.extend(l.ReferenceStrip.prototype,l.EventSource.prototype,l.Viewer.prototype,{setFocus:function(m){var y=this.element.querySelector("#"+this.element.id+"-"+m),b=l.getElementSize(this.viewer.canvas),w=Number(this.element.style.width.replace("px","")),E=Number(this.element.style.height.replace("px","")),P=-Number(this.element.style.marginLeft.replace("px","")),C=-Number(this.element.style.marginTop.replace("px","")),T;this.currentSelected!==y&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=y,this.currentSelected.style.background="#999",this.scroll=="horizontal"?(T=Number(m)*(this.panelWidth+3),T>P+b.x-this.panelWidth?(T=Math.min(T,w-b.x),this.element.style.marginLeft=-T+"px",f(this,b.x,-T)):T<P&&(T=Math.max(0,T-b.x/2),this.element.style.marginLeft=-T+"px",f(this,b.x,-T))):(T=Number(m)*(this.panelHeight+3),T>C+b.y-this.panelHeight?(T=Math.min(T,E-b.y),this.element.style.marginTop=-T+"px",f(this,b.y,-T)):T<C&&(T=Math.max(0,T-b.y/2),this.element.style.marginTop=-T+"px",f(this,b.y,-T))),this.currentPage=m,p.call(this,{eventSource:this.innerTracker}))},update:function(){return o[this.id].animating?(l.console.log("image reference strip update"),!0):!1},destroy:function(){if(this.miniViewers)for(var m in this.miniViewers)this.miniViewers[m].destroy();this.element&&this.element.parentNode.removeChild(this.element)}});function u(m){var y=Number(this.element.style.marginLeft.replace("px","")),b=Number(this.element.style.marginTop.replace("px","")),w=Number(this.element.style.width.replace("px","")),E=Number(this.element.style.height.replace("px","")),P=l.getElementSize(this.viewer.canvas);return this.dragging=!0,this.element&&(this.scroll=="horizontal"?-m.delta.x>0?y>-(w-P.x)&&(this.element.style.marginLeft=y+m.delta.x*2+"px",f(this,P.x,y+m.delta.x*2)):-m.delta.x<0&&y<0&&(this.element.style.marginLeft=y+m.delta.x*2+"px",f(this,P.x,y+m.delta.x*2)):-m.delta.y>0?b>-(E-P.y)&&(this.element.style.marginTop=b+m.delta.y*2+"px",f(this,P.y,b+m.delta.y*2)):-m.delta.y<0&&b<0&&(this.element.style.marginTop=b+m.delta.y*2+"px",f(this,P.y,b+m.delta.y*2))),!1}function d(m){var y=Number(this.element.style.marginLeft.replace("px","")),b=Number(this.element.style.marginTop.replace("px","")),w=Number(this.element.style.width.replace("px","")),E=Number(this.element.style.height.replace("px","")),P=l.getElementSize(this.viewer.canvas);return this.element&&(this.scroll=="horizontal"?m.scroll>0?y>-(w-P.x)&&(this.element.style.marginLeft=y-m.scroll*60+"px",f(this,P.x,y-m.scroll*60)):m.scroll<0&&y<0&&(this.element.style.marginLeft=y-m.scroll*60+"px",f(this,P.x,y-m.scroll*60)):m.scroll<0?b>P.y-E&&(this.element.style.marginTop=b+m.scroll*60+"px",f(this,P.y,b+m.scroll*60)):m.scroll>0&&b<0&&(this.element.style.marginTop=b+m.scroll*60+"px",f(this,P.y,b+m.scroll*60))),!1}function f(m,y,b){var w,E,P,C,T,O,x;for(m.scroll=="horizontal"?w=m.panelWidth:w=m.panelHeight,E=Math.ceil(y/w)+5,P=Math.ceil((Math.abs(b)+y)/w)+1,E=P-E,E=E<0?0:E,O=E;O<P&&O<m.panels.length;O++)if(x=m.panels[O],!x.activePanel){var A,D=m.viewer.tileSources[O];D.referenceStripThumbnailUrl?A={type:"image",url:D.referenceStripThumbnailUrl}:A=D,C=new l.Viewer({id:x.id,tileSources:[A],element:x,navigatorSizeRatio:m.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:m.viewer.loadTilesWithAjax,ajaxHeaders:m.viewer.ajaxHeaders,useCanvas:m.useCanvas}),C.displayRegion=l.makeNeutralElement("div"),C.displayRegion.id=x.id+"-displayregion",C.displayRegion.className="displayregion",T=C.displayRegion.style,T.position="relative",T.top="0px",T.left="0px",T.fontSize="0px",T.overflow="hidden",T.float="left",T.cssFloat="left",T.styleFloat="left",T.zIndex=999999999,T.cursor="default",T.width=m.panelWidth-4+"px",T.height=m.panelHeight-4+"px",C.displayRegion.innerTracker=new l.MouseTracker({element:C.displayRegion,startDisabled:!0}),x.getElementsByTagName("div")[0].appendChild(C.displayRegion),m.miniViewers[x.id]=C,x.activePanel=!0}}function p(m){var y=m.eventSource.element;return this.scroll=="horizontal"?y.style.marginBottom="0px":y.style.marginLeft="0px",!1}function h(m){var y=m.eventSource.element;return this.scroll=="horizontal"?y.style.marginBottom="-"+l.getElementSize(y).y/2+"px":y.style.marginLeft="-"+l.getElementSize(y).x/2+"px",!1}function v(m){if(!m.preventDefaultAction&&!m.ctrl&&!m.alt&&!m.meta)switch(m.keyCode){case 38:return d.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 40:return d.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;case 37:return d.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;case 39:return d.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;default:return!0}else return!0}function g(m){if(!m.preventDefaultAction&&!m.ctrl&&!m.alt&&!m.meta)switch(m.keyCode){case 61:return d.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 45:return d.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;case 48:case 119:case 87:return d.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 115:case 83:return d.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;case 97:return d.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;case 100:return d.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;default:return!0}else return!0}})(OpenSeadragon),(function(l){l.DisplayRect=function(o,u,d,f,p,h){l.Rect.apply(this,[o,u,d,f]),this.minLevel=p,this.maxLevel=h},l.extend(l.DisplayRect.prototype,l.Rect.prototype)})(OpenSeadragon),(function(l){l.Spring=function(u){var d=arguments;typeof u!="object"&&(u={initial:d.length&&typeof d[0]=="number"?d[0]:void 0,springStiffness:d.length>1?d[1].springStiffness:5,animationTime:d.length>1?d[1].animationTime:1.5}),l.console.assert(typeof u.springStiffness=="number"&&u.springStiffness!==0,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),l.console.assert(typeof u.animationTime=="number"&&u.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),u.exponential&&(this._exponential=!0,delete u.exponential),l.extend(!0,this,u),this.current={value:typeof this.initial=="number"?this.initial:this._exponential?0:1,time:l.now()},l.console.assert(!this._exponential||this.current.value!==0,"[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}
154,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))},l.Spring.prototype={resetTo:function(u){l.console.assert(!this._exponential||u!==0,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=u,this.start.time=this.target.time=this.current.time=l.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(u){l.console.assert(!this._exponential||u!==0,"[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=u,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(u){this.start.value+=u,this.target.value+=u,this._exponential&&(l.console.assert(this.target.value!==0&&this.start.value!==0,"[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(u){this._exponential=u,this._exponential&&(l.console.assert(this.current.value!==0&&this.target.value!==0&&this.start.value!==0,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){this.current.time=l.now();var u,d;this._exponential?(u=this.start._logValue,d=this.target._logValue):(u=this.start.value,d=this.target.value);var f=this.current.time>=this.target.time?d:u+(d-u)*o(this.springStiffness,(this.current.time-this.start.time)/(this.target.time-this.start.time)),p=this.current.value;return this._exponential?this.current.value=Math.exp(f):this.current.value=f,p!=this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}};function o(u,d){return(1-Math.exp(u*-d))/(1-Math.exp(-u))}})(OpenSeadragon),(function(l){function o(d){l.extend(!0,this,{timeout:l.DEFAULT_SETTINGS.timeout,jobId:null},d),this.image=null}o.prototype={errorMsg:null,start:function(){var d=this,f=this.abort;this.image=new Image,this.image.onload=function(){d.finish(!0)},this.image.onabort=this.image.onerror=function(){d.errorMsg="Image load aborted",d.finish(!1)},this.jobId=window.setTimeout(function(){d.errorMsg="Image load exceeded timeout ("+d.timeout+" ms)",d.finish(!1)},this.timeout),this.loadWithAjax?(this.request=l.makeAjaxRequest({url:this.src,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,responseType:"arraybuffer",success:function(p){var h;try{h=new window.Blob([p.response])}catch(y){var v=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(y.name==="TypeError"&&v){var g=new v;g.append(p.response),h=g.getBlob()}}h.size===0&&(d.errorMsg="Empty image response.",d.finish(!1));var m=(window.URL||window.webkitURL).createObjectURL(h);d.image.src=m},error:function(p){d.errorMsg="Image load aborted - XHR error",d.finish(!1)}}),this.abort=function(){d.request.abort(),typeof f=="function"&&f()}):(this.crossOriginPolicy!==!1&&(this.image.crossOrigin=this.crossOriginPolicy),this.image.src=this.src)},finish:function(d){this.image.onload=this.image.onerror=this.image.onabort=null,d||(this.image=null),this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},l.ImageLoader=function(d){l.extend(!0,this,{jobLimit:l.DEFAULT_SETTINGS.imageLoaderLimit,timeout:l.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},d)},l.ImageLoader.prototype={addJob:function(d){var f=this,p=function(g){u(f,g,d.callback)},h={src:d.src,loadWithAjax:d.loadWithAjax,ajaxHeaders:d.loadWithAjax?d.ajaxHeaders:null,crossOriginPolicy:d.crossOriginPolicy,ajaxWithCredentials:d.ajaxWithCredentials,callback:p,abort:d.abort,timeout:this.timeout},v=new o(h);!this.jobLimit||this.jobsInProgress<this.jobLimit?(v.start(),this.jobsInProgress++):this.jobQueue.push(v)},clear:function(){for(var d=0;d<this.jobQueue.length;d++){var f=this.jobQueue[d];typeof f.abort=="function"&&f.abort()}this.jobQueue=[]}};function u(d,f,p){var h;d.jobsInProgress--,(!d.jobLimit||d.jobsInProgress<d.jobLimit)&&d.jobQueue.length>0&&(h=d.jobQueue.shift(),h.start(),d.jobsInProgress++),p(f.image,f.errorMsg,f.request)}})(OpenSeadragon),(function(l){l.Tile=function(o,u,d,f,p,h,v,g,m,y){this.level=o,this.x=u,this.y=d,this.bounds=f,this.sourceBounds=y,this.exists=p,this.url=h,this.context2D=v,this.loadWithAjax=g,this.ajaxHeaders=m,this.ajaxHeaders?this.cacheKey=this.url+"+"+JSON.stringify(this.ajaxHeaders):this.cacheKey=this.url,this.loaded=!1,this.loading=!1,this.element=null,this.img
154Element=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},l.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return!!this.context2D||this.url.match(".png")},drawHTML:function(o){if(!this.cacheImageRecord){l.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString());return}if(!this.loaded){l.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());return}this.element||(this.element=l.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!=o&&o.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",l.setElementOpacity(this.element,this.opacity)},drawCanvas:function(o,u,d,f){var p=this.position.times(l.pixelDensityRatio),h=this.size.times(l.pixelDensityRatio),v;if(!this.context2D&&!this.cacheImageRecord){l.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString());return}if(v=this.context2D||this.cacheImageRecord.getRenderedContext(),!this.loaded||!v){l.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());return}o.save(),o.globalAlpha=this.opacity,typeof d=="number"&&d!==1&&(p=p.times(d),h=h.times(d)),f instanceof l.Point&&(p=p.plus(f)),o.globalAlpha===1&&this._hasTransparencyChannel()&&o.clearRect(p.x,p.y,h.x,h.y),u({context:o,tile:this,rendered:v});var g,m;this.sourceBounds?(g=Math.min(this.sourceBounds.width,v.canvas.width),m=Math.min(this.sourceBounds.height,v.canvas.height)):(g=v.canvas.width,m=v.canvas.height),o.drawImage(v.canvas,0,0,g,m,p.x,p.y,h.x,h.y),o.restore()},getScaleForEdgeSmoothing:function(){var o;if(this.cacheImageRecord)o=this.cacheImageRecord.getRenderedContext();else if(this.context2D)o=this.context2D;else return l.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;return o.canvas.width/(this.size.x*l.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(o,u,d){var f=Math.max(1,Math.ceil((d.x-u.x)/2)),p=Math.max(1,Math.ceil((d.y-u.y)/2));return new l.Point(f,p).minus(this.position.times(l.pixelDensityRatio).times(o||1).apply(function(h){return h%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(l){l.OverlayPlacement=l.Placement,l.OverlayRotationMode=l.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),l.Overlay=function(o,u,d){var f;l.isPlainObject(o)?f=o:f={element:o,location:u,placement:d},this.element=f.element,this.style=f.element.style,this._init(f)},l.Overlay.prototype={_init:function(o){this.location=o.location,this.placement=o.placement===void 0?l.Placement.TOP_LEFT:o.placement,this.onDraw=o.onDraw,this.checkResize=o.checkResize===void 0?!0:o.checkResize,this.width=o.width===void 0?null:o.width,this.height=o.height===void 0?null:o.height,this.rotationMode=o.rotationMode||l.OverlayRotationMode.EXACT,this.location instanceof l.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=l.Placement.TOP_LEFT),this.scales=this.width!==null&&this.height!==null,this.bounds=new l.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(o,u){var d=l.Placement.properties[this.placement];d&&(d.isHorizontallyCentered?o.x-=u.x/2:d.isRight&&(o.x-=u.x),d.isVerticallyCentered?o.y-=u.y/2:d.isBottom&&(o.y-=u.y))},destroy:function(){var o=this.element,u=this.style;o.parentNode&&(o.parentNode.removeChild(o),o.prevElementParent&&(u.display="none",document.body.appendChild(o))),this.onDraw=null,u.top="",u.left="",u.position="",this.width!==null&&(u.width=""),this.height!==null&&(u.height="");var d=l.getCssPropertyWithVendorPrefix("transformOrigin"),f=l.getCssPropertyWithVendorPrefix("transform");d&&f&&(u[d]="",u[f]="")},drawHTML:function(o,u){var d=this.element;d.parentNode!==o&&(d.prevElementParent=d.parentNode,d.prevNextSibling=d.nextSibling,o.appendChild(d),this.style.position="absolute",this.size=l.getElementSize(d));var f=this._getOverlayPositionAndSize(u),p=f.position,h=this.size=f.size,v=f.rotate;if(this.onDraw)this.onDraw(p,h,this.element);else{var g=this.style;g.left=p.x+"px",g.top=p.y+"px",this.width!==null&&(g.width=h.x+"px"),this.height!==null&&(g.height=h.y+"px");var m=l.getCssPropertyWithVendorPrefix("transformOrigin"),y=l.getCssPropertyWithVendorPrefix("transform");m&&y&&(v?(g[m]=this._getTransformOrigin(),g[y]="rotate("+v+"deg)"):(g[m]="",g[y]="")),g.display!=="none"&&(g.display="block")}},_getOverlayPositionAndSize:function(o){var u=o.pixelFromPoint(this.location,!0),d=this._getSizeInPixels(o);this.adjust(u,d);var f=0;if(o.degrees&&this.rotationMode!==l.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===l.OverlayRotationMode.BOUNDING_BOX&&this.width!==null&&this.height!==null){var p=new l.Rect(u.x,u.y,d.x,d.y),h=this._getBoundingBox(p,o.degrees);u=h.getTopLeft(),d=h.getSize()}else f=o.degrees;return{position:u,size:d,rotate:f}},_getSizeInPixels:function(o){var u=this.size.x,d=this.size.y;if(this.width!==null||this.height!==null){var f=o.deltaPixelsFromPointsNoRotate(new l.Point(this.width||0,this.height||0),!0);this.width!==null&&(u=f.x),this.height!==null&&(d=f.y)}if(this.checkResize&&(this.width===null||this.height===null)){var p=this.size=l.getElementSize(this.element);this.width===null&&(u=p.x),this.height===null&&(d=p.y)}return new l.Point(u,d)},_getBoundingBox:function(o,u){var d=this._getPlacementPoint(o);return o.rotate(u,d).getBoundingBox()},_getPlacementPoint:function(o){var u=new l.Point(o.x,o.y),d=l.Placement.properties[this.placement];return d&&(d.isHorizontallyCentered?u.x+=o.width/2:d.isRight&&(u.x+=o.width),d.isVerticallyCentered?u.y+=o.height/2:d.isBottom&&(u.y+=o.height)),u},_getTransformOrigin:function(){var o="",u=l.Placement.properties[this.placement];return u&&(u.isLeft?o="left":u.isRight&&(o="right"),u.isTop?o+=" top":u.isBottom&&(o+=" bottom")),o},update:function(o,u){var d=l.isPlainObject(o)?o:{location:o,placement:u};this._init({location:d.location||this.location,placement:d.placement!==void 0?d.placement:this.placement,onDraw:d.onDraw||this.onDraw,checkResize:d.checkResize||this.checkResize,width:d.width!==void 0?d.width:this.width,height:d.height!==void 0?d.height:this.height,rotationMode:d.rotationMode||this.rotationMode})},getBounds:function(o){l.console.assert(o,"A viewport must now be passed to Overlay.getBounds.");var u=this.width,d=this.height;if(u===null||d===null){var f=o.deltaPointsFromPixelsNoRotate(this.size,!0);u===null&&(u=f.x),d===null&&(d=f.y)}var p=this.location.clone();return this.adjust(p,new l.Point(u,d)),this._adjustBoundsForRotation(o,new l.Rect(p.x,p.y,u,d))},_adjustBoundsForRotation:function(o,u){if(!o||o.degrees===0||this.rotationMode===l.OverlayRotationMode.EXACT)return u;if(this.rotationMode===l.OverlayRotationMode.BOUNDING_BOX){if(this.width===null||this.height===null)return u;var d=this._getOverlayPositionAndSize(o);return o.viewerElementToViewportRectangle(new l.Rect(d.position.x,d.position.y,d.size.x,d.size.y))}return u.rotate(-o.degrees,this._getPlacementPoint(u))}}})(OpenSeadragon),(function(l){l.Drawer=function(o){l.console.assert(o.viewer,"[Drawer] options.viewer is required");var u=arguments;if(l.isPlainObject(o)||(o={source:u[0],viewport:u[1],element:u[2]}),l.console.assert(o.viewport,"[Drawer] options.viewport is required"),l.console.assert(o.element,"[Drawer] options.element is required"),o.source&&l.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=o.viewer,this.viewport=o.viewport,this.debugGridColor=typeof o.debugGridColor=="string"?[o.debugGridColor]:o.debugGridColor||l.DEFAULT_SETTINGS.debugGridColor,o.opacity&&l.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=l.supportsCanvas&&(this.viewer?this.viewer.useCanvas:!0),this.container=l.getElement(o.element),this.canvas=l.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 d=this._calculateCanvasSize();this.canvas.width=d.x,this.canvas.height=d.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",l.setElementOpacity(this.canvas,this.opacity,!0),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},l.Drawer.prototype={addOverlay:function(o,u,d,f){return l.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(o,u,d,f),this},updateOverlay:function(o,u,d){return l.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(o,u,d),this},removeOverlay:function(o){return l.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(o),this},clearOverlays:function(){return l.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(o){var u=this.viewport.pixelFromPointNoRotate(o,!0);return new l.Point(u.x*l.pixelDensityRatio,u.y*l.pixelDensityRatio)},clipWithPolygons:function(o,u){if(this.useCanvas){var d=this._getContext(u);d.beginPath(),o.forEach(function(f){f.forEach(function(p,h){d[h===0?"moveTo":"lineTo"](p.x,p.y)})}),d.clip()}},setOpacity:function(o){l.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var u=this.viewer.world,d=0;d<u.getItemCount();d++)u.getItemAt(d).setOpacity(o);return this},getOpacity:function(){l.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var o=this.viewer.world,u=0,d=0;d<o.getItemCount();d++){var f=o.getItemAt(d).getOpacity();f>u&&(u=f)}return u},needsUpdate:function(){return l.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return l.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return l.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return l.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 o=this._calculateCanvasSize();if((this.canvas.width!=o.x||this.canvas.height!=o.y)&&(this.canvas.width=o.x,this.canvas.height=o.y,this._updateImageSmoothingEnabled(this.context),this.sketchCanvas!==null)){var u=this._calculateSketchCanvasSize();this.sketchCanvas.width=u.x,this.sketchCanvas.height=u.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(o,u){if(this.useCanvas){var d=this._getContext(o);if(u)d.clearRect(u.x,u.y,u.width,u.height);
154else{var f=d.canvas;d.clearRect(0,0,f.width,f.height)}}},viewportToDrawerRectangle:function(o){var u=this.viewport.pixelFromPointNoRotate(o.getTopLeft(),!0),d=this.viewport.deltaPixelsFromPointsNoRotate(o.getSize(),!0);return new l.Rect(u.x*l.pixelDensityRatio,u.y*l.pixelDensityRatio,d.x*l.pixelDensityRatio,d.y*l.pixelDensityRatio)},drawTile:function(o,u,d,f,p){if(l.console.assert(o,"[Drawer.drawTile] tile is required"),l.console.assert(u,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var h=this._getContext(d);f=f||1,o.drawCanvas(h,u,f,p)}else o.drawHTML(this.canvas)},_getContext:function(o){var u=this.context;if(o){if(this.sketchCanvas===null){this.sketchCanvas=document.createElement("canvas");var d=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=d.x,this.sketchCanvas.height=d.y,this.sketchContext=this.sketchCanvas.getContext("2d"),this.viewport.getRotation()===0){var f=this;this.viewer.addHandler("rotate",function p(){if(f.viewport.getRotation()!==0){f.viewer.removeHandler("rotate",p);var h=f._calculateSketchCanvasSize();f.sketchCanvas.width=h.x,f.sketchCanvas.height=h.y}})}this._updateImageSmoothingEnabled(this.sketchContext)}u=this.sketchContext}return u},saveContext:function(o){this.useCanvas&&this._getContext(o).save()},restoreContext:function(o){this.useCanvas&&this._getContext(o).restore()},setClip:function(o,u){if(this.useCanvas){var d=this._getContext(u);d.beginPath(),d.rect(o.x,o.y,o.width,o.height),d.clip()}},drawRectangle:function(o,u,d){if(this.useCanvas){var f=this._getContext(d);f.save(),f.fillStyle=u,f.fillRect(o.x,o.y,o.width,o.height),f.restore()}},blendSketch:function(o,u,d,f){var p=o;if(l.isPlainObject(p)||(p={opacity:o,scale:u,translate:d,compositeOperation:f}),!(!this.useCanvas||!this.sketchCanvas)){o=p.opacity,f=p.compositeOperation;var h=p.bounds;if(this.context.save(),this.context.globalAlpha=o,f&&(this.context.globalCompositeOperation=f),h)h.x<0&&(h.width+=h.x,h.x=0),h.x+h.width>this.canvas.width&&(h.width=this.canvas.width-h.x),h.y<0&&(h.height+=h.y,h.y=0),h.y+h.height>this.canvas.height&&(h.height=this.canvas.height-h.y),this.context.drawImage(this.sketchCanvas,h.x,h.y,h.width,h.height,h.x,h.y,h.width,h.height);else{u=p.scale||1,d=p.translate;var v=d instanceof l.Point?d:new l.Point(0,0),g=0,m=0;if(d){var y=this.sketchCanvas.width-this.canvas.width,b=this.sketchCanvas.height-this.canvas.height;g=Math.round(y/2),m=Math.round(b/2)}this.context.drawImage(this.sketchCanvas,v.x-g*u,v.y-m*u,(this.canvas.width+2*g)*u,(this.canvas.height+2*m)*u,-g,-m,this.canvas.width+2*g,this.canvas.height+2*m)}this.context.restore()}},drawDebugInfo:function(o,u,d,f){if(this.useCanvas){var p=this.viewer.world.getIndexOfItem(f)%this.debugGridColor.length,h=this.context;h.save(),h.lineWidth=2*l.pixelDensityRatio,h.font="small-caps bold "+13*l.pixelDensityRatio+"px arial",h.strokeStyle=this.debugGridColor[p],h.fillStyle=this.debugGridColor[p],this.viewport.degrees!==0&&this._offsetForRotation({degrees:this.viewport.degrees}),f.getRotation(!0)%360!==0&&this._offsetForRotation({degrees:f.getRotation(!0),point:f.viewport.pixelFromPointNoRotate(f._getRotationPoint(!0),!0)}),f.viewport.degrees===0&&f.getRotation(!0)%360===0&&f._drawer.viewer.viewport.getFlip()&&f._drawer._flip(),h.strokeRect(o.position.x*l.pixelDensityRatio,o.position.y*l.pixelDensityRatio,o.size.x*l.pixelDensityRatio,o.size.y*l.pixelDensityRatio);var v=(o.position.x+o.size.x/2)*l.pixelDensityRatio,g=(o.position.y+o.size.y/2)*l.pixelDensityRatio;h.translate(v,g),h.rotate(Math.PI/180*-this.viewport.degrees),h.translate(-v,-g),o.x===0&&o.y===0&&(h.fillText("Zoom: "+this.viewport.getZoom(),o.position.x*l.pixelDensityRatio,(o.position.y-30)*l.pixelDensityRatio),h.fillText("Pan: "+this.viewport.getBounds().toString(),o.position.x*l.pixelDensityRatio,(o.position.y-20)*l.pixelDensityRatio)),h.fillText("Level: "+o.level,(o.position.x+10)*l.pixelDensityRatio,(o.position.y+20)*l.pixelDensityRatio),h.fillText("Column: "+o.x,(o.position.x+10)*l.pixelDensityRatio,(o.position.y+30)*l.pixelDensityRatio),h.fillText("Row: "+o.y,(o.position.x+10)*l.pixelDensityRatio,(o.position.y+40)*l.pixelDensityRatio),h.fillText("Order: "+d+" of "+u,(o.position.x+10)*l.pixelDensityRatio,(o.position.y+50)*l.pixelDensityRatio),h.fillText("Size: "+o.size.toString(),(o.position.x+10)*l.pixelDensityRatio,(o.position.y+60)*l.pixelDensityRatio),h.fillText("Position: "+o.position.toString(),(o.position.x+10)*l.pixelDensityRatio,(o.position.y+70)*l.pixelDensityRatio),this.viewport.degrees!==0&&this._restoreRotationChanges(),f.getRotation(!0)%360!==0&&this._restoreRotationChanges(),f.viewport.degrees===0&&f.getRotation(!0)%360===0&&f._drawer.viewer.viewport.getFlip()&&f._drawer._flip(),h.restore(
154)}},debugRect:function(o){if(this.useCanvas){var u=this.context;u.save(),u.lineWidth=2*l.pixelDensityRatio,u.strokeStyle=this.debugGridColor[0],u.fillStyle=this.debugGridColor[0],u.strokeRect(o.x*l.pixelDensityRatio,o.y*l.pixelDensityRatio,o.width*l.pixelDensityRatio,o.height*l.pixelDensityRatio),u.restore()}},setImageSmoothingEnabled:function(o){this.useCanvas&&(this._imageSmoothingEnabled=o,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(o){o.msImageSmoothingEnabled=this._imageSmoothingEnabled,o.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(o){var u=this._getContext(o).canvas;return new l.Point(u.width,u.height)},getCanvasCenter:function(){return new l.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(o){var u=o.point?o.point.times(l.pixelDensityRatio):this.getCanvasCenter(),d=this._getContext(o.useSketch);d.save(),d.translate(u.x,u.y),this.viewer.viewport.flipped?(d.rotate(Math.PI/180*-o.degrees),d.scale(-1,1)):d.rotate(Math.PI/180*o.degrees),d.translate(-u.x,-u.y)},_flip:function(o){o=o||{};var u=o.point?o.point.times(l.pixelDensityRatio):this.getCanvasCenter(),d=this._getContext(o.useSketch);d.translate(u.x,0),d.scale(-1,1),d.translate(-u.x,0)},_restoreRotationChanges:function(o){var u=this._getContext(o);u.restore()},_calculateCanvasSize:function(){var o=l.pixelDensityRatio,u=this.viewport.getContainerSize();return{x:Math.round(u.x*o),y:Math.round(u.y*o)}},_calculateSketchCanvasSize:function(){var o=this._calculateCanvasSize();if(this.viewport.getRotation()===0)return o;var u=Math.ceil(Math.sqrt(o.x*o.x+o.y*o.y));return{x:u,y:u}}}})(OpenSeadragon),(function(l){l.Viewport=function(o){var u=arguments;u.length&&u[0]instanceof l.Point&&(o={containerSize:u[0],contentSize:u[1],config:u[2]}),o.config&&(l.extend(!0,o,o.config),delete o.config),this._margins=l.extend({left:0,top:0,right:0,bottom:0},o.margins||{}),delete o.margins,l.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,viewer:null,springStiffness:l.DEFAULT_SETTINGS.springStiffness,animationTime:l.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:l.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:l.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:l.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:l.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:l.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:l.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:l.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:l.DEFAULT_SETTINGS.maxZoomLevel,degrees:l.DEFAULT_SETTINGS.degrees,flipped:l.DEFAULT_SETTINGS.flipped,homeFillsViewer:l.DEFAULT_SETTINGS.homeFillsViewer},o),this._updateContainerInnerSize(),this.centerSpringX=new l.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new l.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new l.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 l.Rect(0,0,1,1),1),this.goHome(!0),this.update()},l.Viewport.prototype={resetContentSize:function(o){return l.console.assert(o,"[Viewport.resetContentSize] contentSize is required"),l.console.assert(o instanceof l.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),l.console.assert(o.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),l.console.assert(o.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new l.Rect(0,0,1,o.y/o.x),o.x),this},setHomeBounds:function(o,u){l.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(o,u)},_setContentBounds:function(o,u){l.console.assert(o,"[Viewport._setContentBounds] bounds is required"),l.console.assert(o instanceof l.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),l.console.assert(o.width>
1540,"[Viewport._setContentBounds] bounds.width must be greater than 0"),l.console.assert(o.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=o.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(u),this._contentBounds=o.rotate(this.degrees).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(u),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:u,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var o=this._contentAspectRatio/this.getAspectRatio(),u;return this.homeFillsViewer?u=o>=1?o:1:u=o>=1?1:o,u/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var o=this._contentBounds.getCenter(),u=1/this.getHomeZoom(),d=u/this.getAspectRatio();return new l.Rect(o.x-u/2,o.y-d/2,u,d)},goHome:function(o){return this.viewer&&this.viewer.raiseEvent("home",{immediately:o}),this.fitBounds(this.getHomeBounds(),o)},getMinZoom:function(){var o=this.getHomeZoom(),u=this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*o;return u},getMaxZoom:function(){var o=this.maxZoomLevel;return o||(o=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,o/=this._contentBounds.width),Math.max(o,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new l.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return l.extend({},this._margins)},setMargins:function(o){l.console.assert(l.type(o)==="object","[Viewport.setMargins] margins must be an object"),this._margins=l.extend({left:0,top:0,right:0,bottom:0},o),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(o){return this.getBoundsNoRotate(o).rotate(-this.getRotation())},getBoundsNoRotate:function(o){var u=this.getCenter(o),d=1/this.getZoom(o),f=d/this.getAspectRatio();return new l.Rect(u.x-d/2,u.y-f/2,d,f)},getBoundsWithMargins:function(o){return this.getBoundsNoRotateWithMargins(o).rotate(-this.getRotation(),this.getCenter(o))},getBoundsNoRotateWithMargins:function(o){var u=this.getBoundsNoRotate(o),d=this._containerInnerSize.x*this.getZoom(o);return u.x-=this._margins.left/d,u.y-=this._margins.top/d,u.width+=(this._margins.left+this._margins.right)/d,u.height+=(this._margins.top+this._margins.bottom)/d,u},getCenter:function(o){var u=new l.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),d=new l.Point(this.centerSpringX.target.value,this.centerSpringY.target.value),f,p,h,v,g,m,y,b;return o?u:this.zoomPoint?(f=this.pixelFromPoint(this.zoomPoint,!0),p=this.getZoom(),h=1/p,v=h/this.getAspectRatio(),g=new l.Rect(u.x-h/2,u.y-v/2,h,v),m=this._pixelFromPoint(this.zoomPoint,g),y=m.minus(f),b=y.divide(this._containerInnerSize.x*p),d.plus(b)):d},getZoom:function(o){return o?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(o){return Math.max(Math.min(o,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(o){var u=new l.Rect(o.x,o.y,o.width,o.height);if(!this.wrapHorizontal){var d=this.visibilityRatio*u.width,f=u.x+u.width,p=this._contentBoundsNoRotate.x+this._contentBoundsNoRotate.width,h=this._contentBoundsNoRotate.x-f+d,v=p-u.x-d;d>this._contentBoundsNoRotate.width?u.x+=(h+v)/2:v<0?u.x+=v:h>0&&(u.x+=h)}if(!this.wrapVertical){var g=this.visibilityRatio*u.height,m=u.y+u.height,y=this._contentBoundsNoRotate.y+this._contentBoundsNoRotate.height,b=this._contentBoundsNoRotate.y-m+g,w=y-u.y-g;g>this._contentBoundsNoRotate.height?u.y+=(b+w)/2:w<0?u.y+=w:b>0&&(u.y+=b)}return u},_raiseConstraintsEvent:function(o){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:o})},applyConstraints:function(o){var u=this.getZoom(),d=this._applyZoomConstraints(u);u!==d&&this.zoomTo(d,this.zoomPoint,o);var f=this.getBoundsNoRotate(),p=this._applyBoundaryConstraints(f);return this._raiseConstraintsEvent(o),(f.x!==p.x||f.y!==p.y||o)&&this.fitBounds(p.rotate(-this.getRotation()),o),this},ensureVisible:function(o){return this.applyConstraints(o)},_fitBounds:function(o,u){u=u||{};var d=u.immediately||!1,f=u.constraints||!1,p=this.getAspectRatio(),h=o.getCenter(),v=new l.Rect(o.x,o.y,o.width,o.height,o.degrees+this.getRotation()).getBoundingBox();v.getAspectRatio()>=p?v.height=v.width/p:v.width=v.height*p,v.x=h.x-v.width/2,v.y=h.y-v.height/2;var g=1/v.width;if(f){var m=v.getAspectRatio(),y=this._applyZoomConstraints(g);g!==y&&(g=y,v.width=1/g,v.x=h.x-v.width/2,v.height=v.width/m,v.y=h.y-v.height/2),v=this._applyBoundaryConstraints(v),h=v.getCenter(),this._raiseConstraintsEvent(d)}if(d)return this.panTo(h,!0),this.zoomTo(g,null,!0);this.panTo(this.getCenter(!0),!0),this.zoomTo(this.getZoom(!0),null,!0);var b=this.getBounds(),w=this.getZoom();if(w===0||Math.abs(g/w-1)<1e-8)return this.zoomTo(g,!0),this.panTo(h,d);v=v.rotate(-this.getRotation());var E=v.getTopLeft().times(g).minus(b.getTopLeft().times(w)).divide(g-w);return this.zoomTo(g,E,d)},fitBounds:function(o,u){return this._fitBounds(o,{immediately:u,constraints:!1})},fitBoundsWithConstraints:function(o,u){return this._fitBounds(o,{immediately:u,constraints:!0})},fitVertically:function(o){var u=new l.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(u,o)},fitHorizontally:function(o){var u=new l.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(u,o)},getConstrainedBounds:function(o){var u,d;return u=this.getBounds(o),d=this._applyBoundaryConstraints(u),d},panBy:function(o,u){var d=new l.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(d.plus(o),u)},panTo:function(o,u){return u?(this.centerSpringX.resetTo(o.x),this.centerSpringY.resetTo(o.y)):(this.centerSpringX.springTo(o.x),this.centerSpringY.springTo(o.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:o,immediately:u}),this},zoomBy:function(o,u,d){return this.zoomTo(this.zoomSpring.target.value*o,u,d)},zoomTo:function(o,u,d){var f=this;return this.zoomPoint=u instanceof l.Point&&!isNaN(u.x)&&!isNaN(u.y)?u:null,d?this._adjustCenterSpringsForZoomPoint(function(){f.zoomSpring.resetTo(o)}):this.zoomSpring.springTo(o),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:o,refPoint:u,immediately:d}),this},setRotation:function(o){return!this.viewer||!this.viewer.drawer.canRotate()?this:(this.degrees=l.positiveModulo(o,360),this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:o}),this)},getRotation:function(){return this.degrees},resize:function(o,u){var d=this.getBoundsNoRotate(),f=d,p;return this.containerSize.x=o.x,this.containerSize.y=o.y,this._updateContainerInnerSize(),u&&(p=o.x/this.containerSize.x,f.width=d.width*p,f.height=f.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:o,maintain:u}),this.fitBounds(f,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new l.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 o=this;this._adjustCenterSpringsForZoomPoint(function(){o.zoomSpring.update(
154)}),this.centerSpringX.update(),this.centerSpringY.update();var u=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,u},_adjustCenterSpringsForZoomPoint:function(o){if(this.zoomPoint){var u=this.pixelFromPoint(this.zoomPoint,!0);o();var d=this.pixelFromPoint(this.zoomPoint,!0),f=d.minus(u),p=this.deltaPointsFromPixels(f,!0);this.centerSpringX.shiftBy(p.x),this.centerSpringY.shiftBy(p.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else o()},deltaPixelsFromPointsNoRotate:function(o,u){return o.times(this._containerInnerSize.x*this.getZoom(u))},deltaPixelsFromPoints:function(o,u){return this.deltaPixelsFromPointsNoRotate(o.rotate(this.getRotation()),u)},deltaPointsFromPixelsNoRotate:function(o,u){return o.divide(this._containerInnerSize.x*this.getZoom(u))},deltaPointsFromPixels:function(o,u){return this.deltaPointsFromPixelsNoRotate(o,u).rotate(-this.getRotation())},pixelFromPointNoRotate:function(o,u){return this._pixelFromPointNoRotate(o,this.getBoundsNoRotate(u))},pixelFromPoint:function(o,u){return this._pixelFromPoint(o,this.getBoundsNoRotate(u))},_pixelFromPointNoRotate:function(o,u){return o.minus(u.getTopLeft()).times(this._containerInnerSize.x/u.width).plus(new l.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(o,u){return this._pixelFromPointNoRotate(o.rotate(this.getRotation(),this.getCenter(!0)),u)},pointFromPixelNoRotate:function(o,u){var d=this.getBoundsNoRotate(u);return o.minus(new l.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/d.width).plus(d.getTopLeft())},pointFromPixel:function(o,u){return this.pointFromPixelNoRotate(o,u).rotate(-this.getRotation(),this.getCenter(!0))},_viewportToImageDelta:function(o,u){var d=this._contentBoundsNoRotate.width;return new l.Point(o*this._contentSizeNoRotate.x/d,u*this._contentSizeNoRotate.x/d)},viewportToImageCoordinates:function(o,u){if(o instanceof l.Point)return this.viewportToImageCoordinates(o.x,o.y);if(this.viewer){var d=this.viewer.world.getItemCount();if(d>1)l.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(d===1){var f=this.viewer.world.getItemAt(0);return f.viewportToImageCoordinates(o,u,!0)}}return this._viewportToImageDelta(o-this._contentBoundsNoRotate.x,u-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(o,u){var d=this._contentBoundsNoRotate.width;return new l.Point(o/this._contentSizeNoRotate.x*d,u/this._contentSizeNoRotate.x*d)},imageToViewportCoordinates:function(o,u){if(o instanceof l.Point)return this.imageToViewportCoordinates(o.x,o.y);if(this.viewer){var d=this.viewer.world.getItemCount();if(d>1)l.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(d===1){var f=this.viewer.world.getItemAt(0);return f.imageToViewportCoordinates(o,u,!0)}}var p=this._imageToViewportDelta(o,u);return p.x+=this._contentBoundsNoRotate.x,p.y+=this._contentBoundsNoRotate.y,p},imageToViewportRectangle:function(o,u,d,f){var p=o;if(p instanceof l.Rect||(p=new l.Rect(o,u,d,f)),this.viewer){var h=this.viewer.world.getItemCount();if(h>1)l.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(h===1){var v=this.viewer.world.getItemAt(0);return v.imageToViewportRectangle(o,u,d,f,!0)}}var g=this.imageToViewportCoordinates(p.x,p.y),m=this._imageToViewportDelta(p.width,p.height);return new l.Rect(g.x,g.y,m.x,m.y,p.degrees)},viewportToImageRectangle:function(o,u,d,f){var p=o;if(p instanceof l.Rect||(p=new l.Rect(o,u,d,f)),this.viewer){var h=this.viewer.world.getItemCount();if(h>1)l.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(h===1){var v=this.viewer.world.getItemAt(0);return v.viewportToImageRectangle(o,u,d,f,!0)}}var g=this.viewportToImageCoordinates(p.x,p.y),m=this._viewportToImageDelta(p.width,p.height);return new l.Rect(g.x,g.y,m.x,m.y,p.degrees)},viewerElementToImageCoordinates:function(o){var u=this.pointFromPixel(o,!0);return this.viewportToImageCoordinates(u)},imageToViewerElementCoordinates:function(o){var u=this.imageToViewportCoordinates(o);return this.pixelFromPoint(u,!0)},windowToImageCoordinates:function(o){l.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var u=o.minus(l.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(u)},imageToWindowCoordinates:function(o){l.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer.");var u=this.imageToViewerElementCoordinates(o);return u.plus(l.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(o){return this.pointFromPixel(o,!0)},viewportToViewerElementCoordinates:function(o){return this.pixelFromPoint(o,!0)},viewerElementToViewportRectangle:function(o){return l.Rect.fromSummits(this.pointFromPixel(o.getTopLeft(),!0),this.pointFromPixel(o.getTopRight(),!0),this.pointFromPixel(o.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(o){return l.Rect.fromSummits(this.pixelFromPoint(o.getTopLeft(),!0),this.pixelFromPoint(o.getTopRight(),!0),this.pixelFromPoint(o.getBottomLeft(),!0))},windowToViewportCoordinates:function(o){l.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var u=o.minus(l.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(u)},viewportToWindowCoordinates:function(o){l.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer.");var u=this.viewportToViewerElementCoordinates(o);return u.plus(l.getElementPosition(this.viewer.element))}
154,viewportToImageZoom:function(o){if(this.viewer){var u=this.viewer.world.getItemCount();if(u>1)l.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(u===1){var d=this.viewer.world.getItemAt(0);return d.viewportToImageZoom(o)}}var f=this._contentSizeNoRotate.x,p=this._containerInnerSize.x,h=this._contentBoundsNoRotate.width,v=p/f*h;return o*v},imageToViewportZoom:function(o){if(this.viewer){var u=this.viewer.world.getItemCount();if(u>1)l.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(u===1){var d=this.viewer.world.getItemAt(0);return d.imageToViewportZoom(o)}}var f=this._contentSizeNoRotate.x,p=this._containerInnerSize.x,h=this._contentBoundsNoRotate.width,v=f/p/h;return o*v},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(o){return this.flipped===o?this:(this.flipped=o,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:o}),this)}}})(OpenSeadragon),(function(l){l.TiledImage=function(T){var O=this;l.console.assert(T.tileCache,"[TiledImage] options.tileCache is required"),l.console.assert(T.drawer,"[TiledImage] options.drawer is required"),l.console.assert(T.viewer,"[TiledImage] options.viewer is required"),l.console.assert(T.imageLoader,"[TiledImage] options.imageLoader is required"),l.console.assert(T.source,"[TiledImage] options.source is required"),l.console.assert(!T.clip||T.clip instanceof l.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),l.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 l.Rect&&(this._clip=T.clip.clone()),delete T.clip;var x=T.x||0;delete T.x;var A=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 D=1;T.width?(D=T.width,delete T.width,T.height&&(l.console.error("specifying both width and height to a tiledImage is not supported"),delete T.height)):T.height&&(D=T.height/this.normHeight,delete T.height);var j=T.fitBounds;delete T.fitBounds;var M=T.fitBoundsPlacement||OpenSeadragon.Placement.CENTER;delete T.fitBoundsPlacement;var N=T.degrees||0;delete T.degrees,l.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:l.DEFAULT_SETTINGS.springStiffness,animationTime:l.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:l.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:l.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:l.DEFAULT_SETTINGS.wrapVertical,immediateRender:l.DEFAULT_SETTINGS.immediateRender,blendTime:l.DEFAULT_SETTINGS.blendTime,alwaysBlend:l.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:l.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:l.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:l.DEFAULT_SETTINGS.iOSDevice,debugMode:l.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:l.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:l.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:l.DEFAULT_SETTINGS.placeholderFillStyle,opacity:l.DEFAULT_SETTINGS.opacity,preload:l.DEFAULT_SETTINGS.preload,compositeOperation:l.DEFAULT_SETTINGS.compositeOperation},T),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new l.Spring({initial:x,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new l.Spring({initial:A,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new l.Spring({initial:D,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new l.Spring({initial:N,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),j&&this.fitBounds(j,M,!0),this._drawingHandler=function(q){O.viewer.raiseEvent("tile-drawing",l.extend({tiledImage:O},q))}},l.extend(l.TiledImage.prototype,l.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(T){T!==this._fullyLoaded&&(this._fullyLoaded=T,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=l.now(),this._needsDraw=!0}
vendor: 4,720 bytes, line 154
154,update:function(){var T=this._xSpring.update(),O=this._ySpring.update(),x=this._scaleSpring.update(),A=this._degreesSpring.update();return T||O||x||A?(this._updateForScale(),this._needsDraw=!0,!0):!1},draw:function(){this.opacity!==0||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset()},getBounds:function(T){return this.getBoundsNoRotate(T).rotate(this.getRotation(T),this._getRotationPoint(T))},getBoundsNoRotate:function(T){return T?new l.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new l.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return l.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(T){var O=this.getBoundsNoRotate(T);if(this._clip){var x=T?this._worldWidthCurrent:this._worldWidthTarget,A=x/this.source.dimensions.x,D=this._clip.times(A);O=new l.Rect(O.x+D.x,O.y+D.y,D.width,D.height)}return O.rotate(this.getRotation(T),this._getRotationPoint(T))},getContentSize:function(){return new l.Point(this.source.dimensions.x,this.source.dimensions.y)},_viewportToImageDelta:function(T,O,x){var A=x?this._scaleSpring.current.value:this._scaleSpring.target.value;return new l.Point(T*(this.source.dimensions.x/A),O*(this.source.dimensions.y*this.contentAspectX/A))},viewportToImageCoordinates:function(T,O,x){var A;return T instanceof l.Point?(x=O,A=T):A=new l.Point(T,O),A=A.rotate(-this.getRotation(x),this._getRotationPoint(x)),x?this._viewportToImageDelta(A.x-this._xSpring.current.value,A.y-this._ySpring.current.value):this._viewportToImageDelta(A.x-this._xSpring.target.value,A.y-this._ySpring.target.value)},_imageToViewportDelta:function(T,O,x){var A=x?this._scaleSpring.current.value:this._scaleSpring.target.value;return new l.Point(T/this.source.dimensions.x*A,O/this.source.dimensions.y/this.contentAspectX*A)},imageToViewportCoordinates:function(T,O,x){T instanceof l.Point&&(x=O,O=T.y,T=T.x);var A=this._imageToViewportDelta(T,O);return x?(A.x+=this._xSpring.current.value,A.y+=this._ySpring.current.value):(A.x+=this._xSpring.target.value,A.y+=this._ySpring.target.value),A.rotate(this.getRotation(x),this._getRotationPoint(x))},imageToViewportRectangle:function(T,O,x,A,D){var j=T;j instanceof l.Rect?D=O:j=new l.Rect(T,O,x,A);var M=this.imageToViewportCoordinates(j.getTopLeft(),D),N=this._imageToViewportDelta(j.width,j.height,D);return new l.Rect(M.x,M.y,N.x,N.y,j.degrees+this.getRotation(D))},viewportToImageRectangle:function(T,O,x,A,D){var j=T;T instanceof l.Rect?D=O:j=new l.Rect(T,O,x,A);var M=this.viewportToImageCoordinates(j.getTopLeft(),D),N=this._viewportToImageDelta(j.width,j.height,D);return new l.Rect(M.x,M.y,N.x,N.y,j.degrees-this.getRotation(D))},viewerElementToImageCoordinates:function(T){var O=this.viewport.pointFromPixel(T,!0);return this.viewportToImageCoordinates(O)},imageToViewerElementCoordinates:function(T){var O=this.imageToViewportCoordinates(T);return this.viewport.pixelFromPoint(O,!0)},windowToImageCoordinates:function(T){var O=T.minus(OpenSeadragon.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(O)},imageToWindowCoordinates:function(T){var O=this.imageToViewerElementCoordinates(T);return O.plus(OpenSeadragon.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(T){var O=this._scaleSpring.current.value;return T=T.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new l.Rect((T.x-this._xSpring.current.value)/O,(T.y-this._ySpring.current.value)/O,T.width/O,T.height/O,T.degrees)},viewportToImageZoom:function(T){var O=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return O*T},imageToViewportZoom:function(T){var O=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return T/O},setPosition:function(T,O){var x=this._xSpring.target.value===T.x&&this._ySpring.target.value===T.y;if(O){if(x&&this._xSpring.current.value===T.x&&this._ySpring.current.value===T.y)return;this._xSpring.resetTo(T.x),this._ySpring.resetTo(T.y),this._needsDraw=!0}else{if(x)return;this._xSpring.springTo(T.x),this._ySpring.springTo(T.y),this._needsDraw=!0}x||this._raiseBoundsChange()},setWidth:function(T,O){this._setScale(T,O)},setHeight:function(T,O){this._setScale(T/this.normHeight,O)},setCroppingPolygons:function(T){var O=function(A){return A instanceof l.Point||typeof A.x=="number"&&typeof A.y=="number"},x=function(A){return A.map(function(D){try{if(O(D))return{x:D.x,y:D.y};throw new Error}
154catch{throw new Error("A Provided cropping polygon point is not supported")}})};try{if(!l.isArray(T))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=T.map(function(A){return x(A)})}catch(A){l.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),l.console.error(A),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(T,O,x){O=O||l.Placement.CENTER;var A=l.Placement.properties[O],D=this.contentAspectX,j=0,M=0,N=1,q=1;if(this._clip&&(D=this._clip.getAspectRatio(),N=this._clip.width/this.source.dimensions.x,q=this._clip.height/this.source.dimensions.y,T.getAspectRatio()>D?(j=this._clip.x/this._clip.height*T.height,M=this._clip.y/this._clip.height*T.height):(j=this._clip.x/this._clip.width*T.width,M=this._clip.y/this._clip.width*T.width)),T.getAspectRatio()>D){var z=T.height/q,H=0;A.isHorizontallyCentered?H=(T.width-T.height*D)/2:A.isRight&&(H=T.width-T.height*D),this.setPosition(new l.Point(T.x-j+H,T.y-M),x),this.setHeight(z,x)}else{var U=T.width/N,F=0;A.isVerticallyCentered?F=(T.height-T.width/D)/2:A.isBottom&&(F=T.height-T.width/D),this.setPosition(new l.Point(T.x-j,T.y-M+F),x),this.setWidth(U,x)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(T){l.console.assert(!T||T instanceof l.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),T instanceof l.Rect?this._clip=T.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getOpacity:function(){return this.opacity},setOpacity:function(T){T!==this.opacity&&(this.opacity=T,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(T){this._preload=!!T,this._needsDraw=!0},getRotation:function(T){return T?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(T,O){this._degreesSpring.target.value===T&&this._degreesSpring.isAtTargetValue()||(O?this._degreesSpring.resetTo(T):this._degreesSpring.springTo(T),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(T){return this.getBoundsNoRotate(T).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(T){T!==this.compositeOperation&&(this.compositeOperation=T,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(T,O){var x=this._scaleSpring.target.value===T;if(O){if(x&&this._scaleSpring.current.value===T)return;this._scaleSpring.resetTo(T),this._updateForScale(),this._needsDraw=!0}else{if(x)return;this._scaleSpring.springTo(T),this._updateForScale(),this._needsDraw=!0}x||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 T=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),O=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,x=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(O/this.minPixelRatio)/Math.log(2))));return x=Math.max(x,this.source.minLevel||0),T=Math.min(T,x),{lowestLevel:T,highestLevel:x}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;){var T=this.lastDrawn.pop();T.beingDrawn=!1}var O=this.viewport,x=this._viewportToTiledImageRectangle(O.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var A=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(x=x.intersection(A),x===null)return}for(var D=this._getLevelsInterval(),j=D.lowestLevel,M=D.highestLevel,N=null,q=!1,z=l.now(),H=M;H>=j;H--){var U=!1,F=O.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(H),!0).x*this._scaleSpring.current.value;if(H===j||!q&&F>=this.minPixelRatio)U=!0,q=!0;else if(!q)continue;var B=O.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(H),!1).x*this._scaleSpring.current.value,G=O.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,Q=this.immediateRender?1:G,K=Math.min(1,(F-.5)/.5),Z=Q/Math.abs(Q-B);if(N=o(this,q,U,H,K,Z,x,z,N),m(this.coverage,H))break}
154P(this,this.lastDrawn),N&&!N.context2D?(f(this,N,z),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(this._tilesLoading===0)},_getCornerTiles:function(T,O,x){var A,D;this.wrapHorizontal?(A=l.positiveModulo(O.x,1),D=l.positiveModulo(x.x,1)):(A=Math.max(0,O.x),D=Math.min(1,x.x));var j,M,N=1/this.source.aspectRatio;this.wrapVertical?(j=l.positiveModulo(O.y,N),M=l.positiveModulo(x.y,N)):(j=Math.max(0,O.y),M=Math.min(N,x.y));var q=this.source.getTileAtPoint(T,new l.Point(A,j)),z=this.source.getTileAtPoint(T,new l.Point(D,M)),H=this.source.getNumTiles(T);return this.wrapHorizontal&&(q.x+=H.x*Math.floor(O.x),z.x+=H.x*Math.floor(x.x)),this.wrapVertical&&(q.y+=H.y*Math.floor(O.y/N),z.y+=H.y*Math.floor(x.y/N)),{topLeft:q,bottomRight:z}}});function o(T,O,x,A,D,j,M,N,q){var z=M.getBoundingBox().getTopLeft(),H=M.getBoundingBox().getBottomRight();T.viewer&&T.viewer.raiseEvent("update-level",{tiledImage:T,havedrawn:O,level:A,opacity:D,visibility:j,drawArea:M,topleft:z,bottomright:H,currenttime:N,best:q}),w(T.coverage,A),w(T.loadingCoverage,A);for(var U=T._getCornerTiles(A,z,H),F=U.topLeft,B=U.bottomRight,G=T.source.getNumTiles(A),Q=T.viewport.pixelFromPoint(T.viewport.getCenter()),K=F.x;K<=B.x;K++)for(var Z=F.y;Z<=B.y;Z++){if(!T.wrapHorizontal&&!T.wrapVertical){var te=T.source.getTileBounds(A,K,Z);if(M.intersection(te)===null)continue}q=u(T,x,O,K,Z,A,D,j,Q,G,N,q)}return q}function u(T,O,x,A,D,j,M,N,q,z,H,U){var F=d(A,D,j,T,T.source,T.tilesMatrix,H,z,T._worldWidthCurrent,T._worldHeightCurrent),B=x;T.viewer&&T.viewer.raiseEvent("update-tile",{tiledImage:T,tile:F}),b(T.coverage,j,A,D,!1);var G=F.loaded||F.loading||y(T.loadingCoverage,j,A,D);if(b(T.loadingCoverage,j,A,D,G),!F.exists||(O&&!B&&(y(T.coverage,j,A,D)?b(T.coverage,j,A,D,!0):B=!0),!B))return U;if(v(F,T.source.tileOverlap,T.viewport,q,N,T),!F.loaded)if(F.context2D)h(T,F);else{var Q=T._tileCache.getImageRecord(F.cacheKey);if(Q){var K=Q.getImage();h(T,F,K)}}if(F.loaded){var Z=g(T,F,A,D,j,M,H);Z&&(T._needsDraw=!0)}else F.loading?T._tilesLoading++:G||(U=E(U,F));return U}function d(T,O,x,A,D,j,M,N,q,z){var H,U,F,B,G,Q,K,Z,te;return j[x]||(j[x]={}),j[x][T]||(j[x][T]={}),j[x][T][O]||(H=(N.x+T%N.x)%N.x,U=(N.y+O%N.y)%N.y,F=D.getTileBounds(x,H,U),B=D.getTileBounds(x,H,U,!0),G=D.tileExists(x,H,U),Q=D.getTileUrl(x,H,U),A.loadTilesWithAjax?(K=D.getTileAjaxHeaders(x,H,U),l.isPlainObject(A.ajaxHeaders)&&(K=l.extend({},A.ajaxHeaders,K))):K=null,Z=D.getContext2D?D.getContext2D(x,H,U):void 0,F.x+=(T-H)/N.x,F.y+=z/q*((O-U)/N.y),te=new l.Tile(x,T,O,F,G,Q,Z,A.loadTilesWithAjax,K,B),H===N.x-1&&(te.isRightMost=!0),U===N.y-1&&(te.isBottomMost=!0),j[x][T][O]=te),te=j[x][T][O],te.lastTouchTime=M,te}function f(T,O,x){O.loading=!0,T._imageLoader.addJob({src:O.url,loadWithAjax:O.loadWithAjax,ajaxHeaders:O.ajaxHeaders,crossOriginPolicy:T.crossOriginPolicy,ajaxWithCredentials:T.ajaxWithCredentials,callback:function(A,D,j){p(T,O,x,A,D,j)},abort:function(){O.loading=!1}})}function p(T,O,x,A,D,j){if(!A){l.console.log("Tile %s failed to load: %s - error: %s",O,O.url,D),T.viewer.raiseEvent("tile-load-failed",{tile:O,tiledImage:T,time:x,message:D,tileRequest:j}),O.loading=!1,O.exists=!1;return}if(x<T.lastResetTime){l.console.log("Ignoring tile %s loaded before reset: %s",O,O.url),O.loading=!1;return}var M=function(){var N=T.source.getClosestLevel();h(T,O,A,N,j)};T._midDraw?window.setTimeout(M,1):M()}function h(T,O,x,A,D){var j=0;function M(){return j++,N}function N(){j--,j===0&&(O.loading=!1,O.loaded=!0,O.context2D||T._tileCache.cacheTile({image:x,tile:O,cutoff:A,tiledImage:T}),T._needsDraw=!0)}T.viewer.raiseEvent("tile-loaded",{tile:O,tiledImage:T,tileRequest:D,image:x,getCompletionCallback:M}),M()()}function v(T,O,x,A,D,j){var M=T.bounds.getTopLeft();M.x*=j._scaleSpring.current.value,M.y*=j._scaleSpring.current.value,M.x+=j._xSpring.current.value,M.y+=j._ySpring.current.value;var N=T.bounds.getSize();N.x*=j._scaleSpring.current.value,N.y*=j._scaleSpring.current.value;var q=x.pixelFromPointNoRotate(M,!0),z=x.pixelFromPointNoRotate(M,!1),H=x.deltaPixelsFromPointsNoRotate(N,!0),U=x.deltaPixelsFromPointsNoRotate(N,!1),F=z.plus(U.divide(2)),B=A.squaredDistanceTo(F);O||(H=H.plus(new l.Point(1,1))),T.isRightMost&&j.wrapHorizontal&&(H.x+=.75),T.isBottomMost&&j.wrapVertical&&(H.y+=.75),T.position=q,T.size=H,T.squaredDistance=B,T.visibility=D}function g(T,O,x,A,D,j,M){var N=1e3*T.blendTime,q,z;if(O.blendStart||(O.blendStart=M),q=M-O.blendStart,z=N?Math.min(1,q/N):1,T.alwaysBlend&&(z*=j),O.opacity=z,T.lastDrawn.push(O),z===1)b(T.coverage,D,x,A,!0),T._hasOpaqueTile=!0;else if(q<N)return!0;return!1}function m(T,O,x,A){var D,j,M,N;if(!T[O])return!1;if(x===void 0||A===void 0){D=T[O];for(M in D)if(Object.prototype.hasOwnProperty.call(D,M)){j=D[M];for(N in j)if(Object.prototype.hasOwnProperty.call(j,N)&&!j[N])return!1}return!0}return T[O][x]===void 0||T[O][x][A]===void 0||T[O][x][A]===!0}function y(T,O,x,A){return x===void 0||A===void 0?m(T,O+1):m(T,O+1,2*x,2*A)&&m(T,O+1,2*x,2*A+1)&&m(T,O+1,2*x+1,2*A)&&m(T,O+1,2*x+1,2*A+1)}function b(T,O,x,A,D){if(!T[O]){l.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",O);return}T[O][x]||(T[O][x]={}),T[O][x][A]=D}function w(T,O){T[O]={}}function E(T,O){return!T||O.visibility>T.visibility||O.visibility==T.visibility&&O.squaredDistance<T.squaredDistance?O:T}function P(T,O){if(!(T.opacity===0||O.length===0&&!T.placeholderFillStyle)){var x=O[0],A;x&&(A=T.opacity<1||T.compositeOperation&&T.compositeOperation!=="source-over"||!T._isBottomItem()&&x._hasTransparencyChannel
154());var D,j,M=T.viewport.getZoom(!0),N=T.viewportToImageZoom(M);O.length>1&&N>T.smoothTileEdgesMinZoom&&!T.iOSDevice&&T.getRotation(!0)%360===0&&l.supportsCanvas&&(A=!0,D=x.getScaleForEdgeSmoothing(),j=x.getTranslationForEdgeSmoothing(D,T._drawer.getCanvasSize(!1),T._drawer.getCanvasSize(!0)));var q;A&&(D||(q=T.viewport.viewportToViewerElementRectangle(T.getClippedBounds(!0)).getIntegerBoundingBox(),T._drawer.viewer.viewport.getFlip()&&(T.viewport.degrees!==0||T.getRotation(!0)%360!==0)&&(q.x=T._drawer.viewer.container.clientWidth-(q.x+q.width)),q=q.times(l.pixelDensityRatio)),T._drawer._clear(!0,q)),D||(T.viewport.degrees!==0&&T._drawer._offsetForRotation({degrees:T.viewport.degrees,useSketch:A}),T.getRotation(!0)%360!==0&&T._drawer._offsetForRotation({degrees:T.getRotation(!0),point:T.viewport.pixelFromPointNoRotate(T._getRotationPoint(!0),!0),useSketch:A}),T.viewport.degrees===0&&T.getRotation(!0)%360===0&&T._drawer.viewer.viewport.getFlip()&&T._drawer._flip());var z=!1;if(T._clip){T._drawer.saveContext(A);var H=T.imageToViewportRectangle(T._clip,!0);H=H.rotate(-T.getRotation(!0),T._getRotationPoint(!0));var U=T._drawer.viewportToDrawerRectangle(H);D&&(U=U.times(D)),j&&(U=U.translate(j)),T._drawer.setClip(U,A),z=!0}if(T._croppingPolygons){T._drawer.saveContext(A);try{var F=T._croppingPolygons.map(function(K){return K.map(function(Z){var te=T.imageToViewportCoordinates(Z.x,Z.y,!0).rotate(-T.getRotation(!0),T._getRotationPoint(!0)),oe=T._drawer.viewportCoordToDrawerCoord(te);return D&&(oe=oe.times(D)),oe})});T._drawer.clipWithPolygons(F,A)}catch(K){l.console.error(K)}z=!0}if(T.placeholderFillStyle&&T._hasOpaqueTile===!1){var B=T._drawer.viewportToDrawerRectangle(T.getBounds(!0));D&&(B=B.times(D)),j&&(B=B.translate(j));var G=null;typeof T.placeholderFillStyle=="function"?G=T.placeholderFillStyle(T,T._drawer.context):G=T.placeholderFillStyle,T._drawer.drawRectangle(B,G,A)}for(var Q=O.length-1;Q>=0;Q--)x=O[Q],T._drawer.drawTile(x,T._drawingHandler,A,D,j),x.beingDrawn=!0,T.viewer&&T.viewer.raiseEvent("tile-drawn",{tiledImage:T,tile:x});z&&T._drawer.restoreContext(A),D||(T.getRotation(!0)%360!==0&&T._drawer._restoreRotationChanges(A),T.viewport.degrees!==0&&T._drawer._restoreRotationChanges(A)),A&&(D&&(T.viewport.degrees!==0&&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:D,translate:j,compositeOperation:T.compositeOperation,bounds:q}),D&&(T.getRotation(!0)%360!==0&&T._drawer._restoreRotationChanges(!1),T.viewport.degrees!==0&&T._drawer._restoreRotationChanges(!1))),D||T.viewport.degrees===0&&T.getRotation(!0)%360===0&&T._drawer.viewer.viewport.getFlip()&&T._drawer._flip(),C(T,O)}}function C(T,O){if(T.debugMode)for(var x=O.length-1;x>=0;x--){var A=O[x];try{T._drawer.drawDebugInfo(A,O.length,x,T)}catch(D){l.console.error(D)}}}})(OpenSeadragon),(function(l){var o=function(d){l.console.assert(d,"[TileCache.cacheTile] options is required"),l.console.assert(d.tile,"[TileCache.cacheTile] options.tile is required"),l.console.assert(d.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=d.tile,this.tiledImage=d.tiledImage},u=function(d){l.console.assert(d,"[ImageRecord] options is required"),l.console.assert(d.image,"[ImageRecord] options.image is required"),this._image=d.image,this._tiles=[]};u.prototype={destroy:function(){this._image=null,this._renderedContext=null,this._tiles=null},getImage:function(){return this._image},getRenderedContext:function(){if(!this._renderedContext){var d=document.createElement("canvas");d.width=this._image.width,d.height=this._image.height,this._renderedContext=d.getContext("2d"),this._renderedContext.drawImage(this._image,0,0),this._image=null}return this._renderedContext},setRenderedContext:function(d){l.console.error("ImageRecord.setRenderedContext is deprecated. The rendered context should be created by the ImageRecord itself when calling ImageRecord.getRenderedContext."),this._renderedContext=d},addTile:function(d){l.console.assert(d,"[ImageRecord.addTile] tile is required"),this._tiles.push(d)},removeTile:function(d){for(var f=0;f<this._tiles.length;f++)if(this._tiles[f]===d){this._tiles.splice(f,1);return}l.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",d)},getTileCount:function(){return this._tiles.length}},l.TileCache=function(d){d=d||{},this._maxImageCacheCount=d.maxImageCacheCount||l.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},l.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length}
154,cacheTile:function(d){l.console.assert(d,"[TileCache.cacheTile] options is required"),l.console.assert(d.tile,"[TileCache.cacheTile] options.tile is required"),l.console.assert(d.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),l.console.assert(d.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var f=d.cutoff||0,p=this._tilesLoaded.length,h=this._imagesLoaded[d.tile.cacheKey];if(h||(l.console.assert(d.image,"[TileCache.cacheTile] options.image is required to create an ImageRecord"),h=this._imagesLoaded[d.tile.cacheKey]=new u({image:d.image}),this._imagesLoadedCount++),h.addTile(d.tile),d.tile.cacheImageRecord=h,this._imagesLoadedCount>this._maxImageCacheCount){for(var v=null,g=-1,m=null,y,b,w,E,P,C,T=this._tilesLoaded.length-1;T>=0;T--)if(C=this._tilesLoaded[T],y=C.tile,!(y.level<=f||y.beingDrawn)){if(!v){v=y,g=T,m=C;continue}E=y.lastTouchTime,b=v.lastTouchTime,P=y.level,w=v.level,(E<b||E==b&&P>w)&&(v=y,g=T,m=C)}v&&g>=0&&(this._unloadTile(m),p=g)}this._tilesLoaded[p]=new o({tile:d.tile,tiledImage:d.tiledImage})},clearTilesFor:function(d){l.console.assert(d,"[TileCache.clearTilesFor] tiledImage is required");for(var f,p=0;p<this._tilesLoaded.length;++p)f=this._tilesLoaded[p],f.tiledImage===d&&(this._unloadTile(f),this._tilesLoaded.splice(p,1),p--)},getImageRecord:function(d){return l.console.assert(d,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[d]},_unloadTile:function(d){l.console.assert(d,"[TileCache._unloadTile] tileRecord is required");var f=d.tile,p=d.tiledImage;f.unload(),f.cacheImageRecord=null;var h=this._imagesLoaded[f.cacheKey];h.removeTile(f),h.getTileCount()||(h.destroy(),delete this._imagesLoaded[f.cacheKey],this._imagesLoadedCount--),p.viewer.raiseEvent("tile-unloaded",{tile:f,tiledImage:p})}}})(OpenSeadragon),(function(l){l.World=function(o){var u=this;l.console.assert(o.viewer,"[World] options.viewer is required"),l.EventSource.call(this),this.viewer=o.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(d){u._autoRefigureSizes?u._figureSizes():u._needsSizesFigured=!0},this._figureSizes()},l.extend(l.World.prototype,l.EventSource.prototype,{addItem:function(o,u){if(l.console.assert(o,"[World.addItem] item is required"),l.console.assert(o instanceof l.TiledImage,"[World.addItem] only TiledImages supported at this time"),u=u||{},u.index!==void 0){var d=Math.max(0,Math.min(this._items.length,u.index));this._items.splice(d,0,o)}else this._items.push(o);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,o.addHandler("bounds-change",this._delegatedFigureSizes),o.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:o})},getItemAt:function(o){return l.console.assert(o!==void 0,"[World.getItemAt] index is required"),this._items[o]},getIndexOfItem:function(o){return l.console.assert(o,"[World.getIndexOfItem] item is required"),l.indexOf(this._items,o)},getItemCount:function(){return this._items.length},setItemIndex:function(o,u){l.console.assert(o,"[World.setItemIndex] item is required"),l.console.assert(u!==void 0,"[World.setItemIndex] index is required");var d=this.getIndexOfItem(o);if(u>=this._items.length)throw new Error("Index bigger than number of layers.");u===d||d===-1||(this._items.splice(d,1),this._items.splice(u,0,o),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:o,previousIndex:d,newIndex:u}))},removeItem:function(o){l.console.assert(o,"[World.removeItem] item is required");var u=l.indexOf(this._items,o);u!==-1&&(o.removeHandler("bounds-change",this._delegatedFigureSizes),o.removeHandler("clip-change",this._delegatedFigureSizes),o.destroy(),this._items.splice(u,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(o))},removeAll:function(){this.viewer._cancelPendingImages();var o,u;for(u=0;
154u<this._items.length;u++)o=this._items[u],o.removeHandler("bounds-change",this._delegatedFigureSizes),o.removeHandler("clip-change",this._delegatedFigureSizes),o.destroy();var d=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,u=0;u<d.length;u++)o=d[u],this._raiseRemoveItem(o)},resetItems:function(){for(var o=0;o<this._items.length;o++)this._items[o].reset()},update:function(){for(var o=!1,u=0;u<this._items.length;u++)o=this._items[u].update()||o;return o},draw:function(){for(var o=0;o<this._items.length;o++)this._items[o].draw();this._needsDraw=!1},needsDraw:function(){for(var o=0;o<this._items.length;o++)if(this._items[o].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(o){this._autoRefigureSizes=o,o&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(o){o=o||{};var u=o.immediately||!1,d=o.layout||l.DEFAULT_SETTINGS.collectionLayout,f=o.rows||l.DEFAULT_SETTINGS.collectionRows,p=o.columns||l.DEFAULT_SETTINGS.collectionColumns,h=o.tileSize||l.DEFAULT_SETTINGS.collectionTileSize,v=o.tileMargin||l.DEFAULT_SETTINGS.collectionTileMargin,g=h+v,m;!o.rows&&p?m=p:m=Math.ceil(this._items.length/f);var y=0,b=0,w,E,P,C,T;this.setAutoRefigureSizes(!1);for(var O=0;O<this._items.length;O++)O&&O%m===0&&(d==="horizontal"?(b+=g,y=0):(y+=g,b=0)),w=this._items[O],E=w.getBounds(),E.width>E.height?P=h:P=h*(E.width/E.height),C=P*(E.height/E.width),T=new l.Point(y+(h-P)/2,b+(h-C)/2),w.setPosition(T,u),w.setWidth(P,u),d==="horizontal"?y+=g:b+=g;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var o=this._homeBounds?this._homeBounds.clone():null,u=this._contentSize?this._contentSize.clone():null,d=this._contentFactor||0;if(!this._items.length)this._homeBounds=new l.Rect(0,0,1,1),this._contentSize=new l.Point(1,1),this._contentFactor=1;else{var f=this._items[0],p=f.getBounds();this._contentFactor=f.getContentSize().x/p.width;for(var h=f.getClippedBounds().getBoundingBox(),v=h.x,g=h.y,m=h.x+h.width,y=h.y+h.height,b=1;b<this._items.length;b++)f=this._items[b],p=f.getBounds(),this._contentFactor=Math.max(this._contentFactor,f.getContentSize().x/p.width),h=f.getClippedBounds().getBoundingBox(),v=Math.min(v,h.x),g=Math.min(g,h.y),m=Math.max(m,h.x+h.width),y=Math.max(y,h.y+h.height);this._homeBounds=new l.Rect(v,g,m-v,y-g),this._contentSize=new l.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}(this._contentFactor!==d||!this._homeBounds.equals(o)||!this._contentSize.equals(u))&&this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(o){this.raiseEvent("remove-item",{item:o})}})})(OpenSeadragon)})(openseadragon$1)),openseadragon$1.exports}var openseadragonExports=requireOpenseadragon();const OpenSeadragon=getDefaultExportFromCjs(openseadragonExports);function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$8.apply(this,arguments)}var getImageBounds=function l(o,u,d){var f=o.imageToViewerElementCoordinates(new openseadragonExports.Point(0,0)),p=o.imageToViewerElementCoordinates(new openseadragonExports.Point(u,0)),h=o.imageToViewerElementCoordinates(new openseadragonExports.Point(0,d));return{x:Math.ceil(f.x),y:Math.ceil(f.y),w:Math.floor(p.x-f.x),h:Math.floor(h.y-f.y)}},getInitialRegion=function l(o,u,d){var f=getImageBounds(o,u,d),p=f.x,h=f.y,v=f.w,g=f.h;return{x:Math.ceil(p+v/4),y:Math.ceil(h+g/4),w:Math.floor(v/2),h:Math.floor(g/2)}},isInsideImage=function l(o,u){var d=u.x,f=u.y,p=u.w,h=u.h;return d>=o.x&&f>=o.y&&d+p<=o.x+o.w&&f+h<=o.y+o.h},toImageCoordinates=function l(o,u){var d=u.x,f=u.y,p=u.w,h=u.h,v=o.viewerElementToImageCoordinates(new openseadragonExports.Point(d,f)),g=o.viewerElementToImageCoordinates(new openseadragonExports.Point(d+p,f)),m=o.viewerElementToImageCoordinates(new openseadragonExports.Point(d,f+h));return{x:Math.ceil(v.x),y:Math.ceil(v.y),w:Math.floor(g.x-v.x),h:Math.floor(m.y-v.y)}},useStyles=makeStyles(function(){return{dialogButton:{backgroundColor:"rgba(255,255,255,0.8) !important",borderRadius:"25%",color:"rgba(0, 0, 0, 0.54) !important",left:"0",position:function(o){var u=o.buttonOutside;return u&&"absolute"},top:"5px",transform:function(o){var u=o.buttonOutside;return u?"translateX(calc(-100% - 5px))":"translateX(5px)"}}
154,resizeHandle:{background:"white",border:"2px solid gray",boxSizing:"border-box",height:"50%",left:"25%",position:"absolute",top:"25%",width:"50%"},root:{border:"1px dashed black",boxShadow:"0 0 0 9999em rgba(0, 0, 0, 0.65)",position:"absolute",zIndex:"1"}}}),CroppingOverlay=function l(o){var u=o.config,d=o.containerId,f=o.croppingRegion,p=o.currentCanvas,h=o.resetRotation,v=o.setCroppingRegion,g=o.t,m=o.updateConfig,y=o.viewer,b=o.viewerConfig,w=o.viewType,E=u.active,P=u.dialogOpen,C=u.enabled,T=Object.entries(f).filter(function(Q){var K=Q[0];return K!=="imageCoordinates"}).every(function(Q){var K=Q[1];return K===0}),O=reactExports.useState(!0),x=O[0],A=O[1],D=useStyles({buttonOutside:x}),j=D.dialogButton,M=D.resizeHandle,N=D.root;if(reactExports.useEffect(function(){T&&A(!0)},[T]),!C||!E||!y||!p||w!=="single")return null;var q=b??{},z=q.rotation,H=z===void 0?0:z;H!==0&&h();var U=p.getWidth(),F=p.getHeight(),B=y.world.getItemAt(0);B&&T&&v(getInitialRegion(B,U,F));var G=React.createElement("div",{className:M});return React.createElement(Rnd,{bounds:"parent",cancel:"."+j.split(" ")[0],className:N,minHeight:50,minWidth:50,onDrag:function(K,Z){var te=Z.x,oe=Z.y,fe=getImageBounds(B,U,F);isInsideImage(fe,_extends$8({},f,{x:te,y:oe}))&&(v({x:te,y:oe}),te<=35?A(!1):A(!0))},onResize:function(K,Z,te,oe,fe){var le=te.offsetHeight,Re=te.offsetWidth,Ae=fe.x,_e=fe.y,ee=getImageBounds(B,U,F);isInsideImage(ee,{x:Ae,y:_e,w:Re,h:le})&&(v({x:Ae,y:_e,w:Re,h:le}),Ae<=35?A(!1):A(!0))},position:{x:f.x,y:f.y},resizeHandleComponent:{bottomLeft:G,bottomRight:G,topLeft:G,topRight:G},size:{height:f.h,width:f.w}},React.createElement(MiradorMenuButton$1,{"aria-expanded":P,"aria-label":g("imageCropper.openDialog"),className:j,containerId:d,onClick:function(){v({imageCoordinates:toImageCoordinates(B,f)}),m(_extends$8({},u,{dialogOpen:!0}))},size:"small"},React.createElement(ShareIcon,null)))};CroppingOverlay.defaultProps={currentCanvas:void 0,viewer:void 0,viewerConfig:void 0};CroppingOverlay.propTypes={};const translations$3={de:{imageCropper:{activate:"Auswahl eines Bildausschnitts aktivieren",close:"Schließen",copiedToClipboard:"Erfolgreich in die Zwischenablage kopiert",copyToClipboard:"In die Zwischenablage kopieren",deactivate:"Auswahl eines Bildausschnitts deaktivieren",linkToSelectedRegion:"Link zum ausgewählten Ausschnitt",mirror:"Bild spiegeln",noteRights:"Bitte beachten Sie den Rechtehinweis",noteRights_plural:"Bitte beachten Sie die Rechtehinweise",openDialog:"Einstellungsdialog öffnen",options:"Optionen",preview:{label:"Vorschau",link:"Mit oben ausgewählten Optionen anzeigen"},quality:{bitonal:"bitonal",color:"farbig",default:"Voreinstellung",gray:"in Graustufen",label:"Qualität"},reflection:"Spiegelung",rotation:"Rotation",share:{envelope:"Per Mail teilen",facebook:"Auf Facebook teilen",pinterest:"Auf Pinterest teilen",whatsapp:"Per WhatsApp teilen",x:"Auf X teilen"},size:"Größe"}},en:{imageCropper:{activate:"Activate selection of an image region",close:"Close",copiedToClipboard:"Copied successfully to the clipboard",copyToClipboard:"Copy to the clipboard",deactivate:"Deactivate selection of an image region",linkToSelectedRegion:"Link to the selected region",mirror:"Mirror image",noteRights:"Please note the rights statement",noteRights_plural:"Please note the rights statements",openDialog:"Open settings dialog",options:"Options",preview:{label:"Preview",link:"Show with options selected above"},quality:{bitonal:"bitonal",color:"colored",default:"preset",gray:"in grayscale",label:"Quality"},reflection:"Reflection",rotation:"Rotation",share:{envelope:"Share via mail",facebook:"Share on Facebook",pinterest:"Share on Pinterest",whatsapp:"Share via WhatsApp",x:"Share on X"},size:"Size"}}};var PluginActionTypes={SET_CROPPING_REGION:"mirador-imagecropper/SET_CROPPING_REGION"},setCroppingRegion=function l(o,u){return{region:u,type:PluginActionTypes.SET_CROPPING_REGION,windowId:o}};function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$7.apply(this,arguments)}var croppingRegionsReducer=function l(o,u){var d;return o===void 0&&(o={}),u===void 0&&(u={}),u.type===PluginActionTypes.SET_CROPPING_REGION?_extends$7({},o,(d={},d[u.windowId]=_extends$7({},o[u.windowId],u.region),d)):o};function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$6.apply(this,arguments)}var defaultConfig$1={active:!1,dialogOpen:!1,enabled:!0,roundingPrecision:5,showRightsInformation:!0},defaultRegion={x:0,y:0,w:0,h:0},getCroppingRegionForWindow=function l(o,u){var d,f,p=u.windowId,h=(d=miradorSlice(o).croppingRegions)!==null&&d!==void 0?d:{};return(f=h[p])!==null&&f!==void 0?f:defaultRegion}
vendor: 4,974 bytes, line 154
154,getPluginConfig$2=createSelector([getWindowConfig],function(l){var o=l.imageCropper,u=o===void 0?{}:o,d=u.roundingPrecision;return(typeof d!="number"||d<0||d>20)&&(d=5),_extends$6({},defaultConfig$1,u,{roundingPrecision:d})}),_marked$1=_regeneratorRuntime$1().mark(croppingRegionsSaga);function _regeneratorRuntime$1(){_regeneratorRuntime$1=function(){return l};var l={},o=Object.prototype,u=o.hasOwnProperty,d=Object.defineProperty||function(F,B,G){F[B]=G.value},f=typeof Symbol=="function"?Symbol:{},p=f.iterator||"@@iterator",h=f.asyncIterator||"@@asyncIterator",v=f.toStringTag||"@@toStringTag";function g(F,B,G){return Object.defineProperty(F,B,{value:G,enumerable:!0,configurable:!0,writable:!0}),F[B]}try{g({},"")}catch{g=function(G,Q,K){return G[Q]=K}}function m(F,B,G,Q){var K=B&&B.prototype instanceof w?B:w,Z=Object.create(K.prototype),te=new z(Q||[]);return d(Z,"_invoke",{value:j(F,G,te)}),Z}function y(F,B,G){try{return{type:"normal",arg:F.call(B,G)}}catch(Q){return{type:"throw",arg:Q}}}l.wrap=m;var b={};function w(){}function E(){}function P(){}var C={};g(C,p,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(H([])));O&&O!==o&&u.call(O,p)&&(C=O);var x=P.prototype=w.prototype=Object.create(C);function A(F){["next","throw","return"].forEach(function(B){g(F,B,function(G){return this._invoke(B,G)})})}function D(F,B){function G(K,Z,te,oe){var fe=y(F[K],F,Z);if(fe.type!=="throw"){var le=fe.arg,Re=le.value;return Re&&typeof Re=="object"&&u.call(Re,"__await")?B.resolve(Re.__await).then(function(Ae){G("next",Ae,te,oe)},function(Ae){G("throw",Ae,te,oe)}):B.resolve(Re).then(function(Ae){le.value=Ae,te(le)},function(Ae){return G("throw",Ae,te,oe)})}oe(fe.arg)}var Q;d(this,"_invoke",{value:function(Z,te){function oe(){return new B(function(fe,le){G(Z,te,fe,le)})}return Q=Q?Q.then(oe,oe):oe()}})}function j(F,B,G){var Q="suspendedStart";return function(K,Z){if(Q==="executing")throw new Error("Generator is already running");if(Q==="completed"){if(K==="throw")throw Z;return U()}for(G.method=K,G.arg=Z;;){var te=G.delegate;if(te){var oe=M(te,G);if(oe){if(oe===b)continue;return oe}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(Q==="suspendedStart")throw Q="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);Q="executing";var fe=y(F,B,G);if(fe.type==="normal"){if(Q=G.done?"completed":"suspendedYield",fe.arg===b)continue;return{value:fe.arg,done:G.done}}fe.type==="throw"&&(Q="completed",G.method="throw",G.arg=fe.arg)}}}function M(F,B){var G=B.method,Q=F.iterator[G];if(Q===void 0)return B.delegate=null,G==="throw"&&F.iterator.return&&(B.method="return",B.arg=void 0,M(F,B),B.method==="throw")||G!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+G+"' method")),b;var K=y(Q,F.iterator,B.arg);if(K.type==="throw")return B.method="throw",B.arg=K.arg,B.delegate=null,b;var Z=K.arg;return Z?Z.done?(B[F.resultName]=Z.value,B.next=F.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,b):Z:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,b)}function N(F){var B={tryLoc:F[0]};1 in F&&(B.catchLoc=F[1]),2 in F&&(B.finallyLoc=F[2],B.afterLoc=F[3]),this.tryEntries.push(B)}function q(F){var B=F.completion||{};B.type="normal",delete B.arg,F.completion=B}function z(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(N,this),this.reset(!0)}function H(F){if(F){var B=F[p];if(B)return B.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var G=-1,Q=function K(){for(;++G<F.length;)if(u.call(F,G))return K.value=F[G],K.done=!1,K;return K.value=void 0,K.done=!0,K};return Q.next=Q}}return{next:U}}function U(){return{value:void 0,done:!0}}return E.prototype=P,d(x,"constructor",{value:P,configurable:!0}),d(P,"constructor",{value:E,configurable:!0}),E.displayName=g(P,v,"GeneratorFunction"),l.isGeneratorFunction=function(F){var B=typeof F=="function"&&F.constructor;return!!B&&(B===E||(B.displayName||B.name)==="GeneratorFunction")},l.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,P):(F.__proto__=P,g(F,v,"GeneratorFunction")),F.prototype=Object.create(x),F},l.awrap=function(F){return{__await:F}},A(D.prototype),g(D.prototype,h,function(){return this}),l.AsyncIterator=D,l.async=function(F,B,G,Q,K){K===void 0&&(K=Promise);var Z=new D(m(F,B,G,Q),K);return l.isGeneratorFunction(B)?Z:Z.next().then(function(te){return te.done?te.value:Z.next()})},A(x),g(x,v,"Generator"),g(x,p,function(){return this}),g(x,"toString",function(){return"[object Generator]"}),l.keys=function(F){var B=Object(F),G=[];for(var Q in B)G.push(Q);return G.reverse(),function K(){for(;G.length;){var Z=G.pop();if(Z in B)return K.value=Z,K.done=!1,K}return K.done=!0,K}},l.values=H,z.prototype={constructor:z,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
154h(q),!B)for(var G in this)G.charAt(0)==="t"&&u.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=void 0)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var G=this;function Q(le,Re){return te.type="throw",te.arg=B,G.next=le,Re&&(G.method="next",G.arg=void 0),!!Re}for(var K=this.tryEntries.length-1;K>=0;--K){var Z=this.tryEntries[K],te=Z.completion;if(Z.tryLoc==="root")return Q("end");if(Z.tryLoc<=this.prev){var oe=u.call(Z,"catchLoc"),fe=u.call(Z,"finallyLoc");if(oe&&fe){if(this.prev<Z.catchLoc)return Q(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return Q(Z.finallyLoc)}else if(oe){if(this.prev<Z.catchLoc)return Q(Z.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return Q(Z.finallyLoc)}}}},abrupt:function(B,G){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var K=this.tryEntries[Q];if(K.tryLoc<=this.prev&&u.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var Z=K;break}}Z&&(B==="break"||B==="continue")&&Z.tryLoc<=G&&G<=Z.finallyLoc&&(Z=null);var te=Z?Z.completion:{};return te.type=B,te.arg=G,Z?(this.method="next",this.next=Z.finallyLoc,b):this.complete(te)},complete:function(B,G){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&G&&(this.next=G),b},finish:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Q=this.tryEntries[G];if(Q.finallyLoc===B)return this.complete(Q.completion,Q.afterLoc),q(Q),b}},catch:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Q=this.tryEntries[G];if(Q.tryLoc===B){var K=Q.completion;if(K.type==="throw"){var Z=K.arg;q(Q)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(B,G,Q){return this.delegate={iterator:H(B),resultName:G,nextLoc:Q},this.method==="next"&&(this.arg=void 0),b}},l}function initalizeRegion(l){var o=l.windowId;return _regeneratorRuntime$1().mark(function u(){return _regeneratorRuntime$1().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,put(setCroppingRegion(o,defaultRegion));case 2:case"end":return f.stop()}},u)})()}function croppingRegionsSaga(){return _regeneratorRuntime$1().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,takeEvery(ActionTypes.SET_CANVAS,initalizeRegion);case 2:case"end":return o.stop()}},_marked$1)}const imageCropperPlugin=[{component:CroppingControls,config:{translations:translations$3},mapDispatchToProps:function l(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{imageCropper:p}))}}},mapStateToProps:function l(o,u){var d=u.windowId;return{config:getPluginConfig$2(o,{windowId:d}),containerId:getContainerId(o),viewType:getWindowViewType(o,{windowId:d})}},mode:"add",target:"WindowTopBarPluginArea"},{component:CroppingDialog,config:{translations:translations$3},mapDispatchToProps:function l(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{imageCropper:p}))}}},mapStateToProps:function l(o,u){var d=u.windowId,f=getCurrentCanvasWorld(o,{windowId:d}),p=flatten(f.canvases.map(function(h){return h.imageServiceIds}));return{config:getPluginConfig$2(o,{windowId:d}),containerId:getContainerId(o),croppingRegion:getCroppingRegionForWindow(o,{windowId:d}),currentCanvas:getCurrentCanvas(o,{windowId:d}),imageServiceIds:p,requiredStatement:getRequiredStatement(o,{windowId:d}),rights:getRights(o,{windowId:d}),viewType:getWindowViewType(o,{windowId:d})}},mode:"add",target:"Window"},{component:CroppingOverlay,config:{translations:translations$3},mapDispatchToProps:function l(o,u){var d=u.windowId;return{resetRotation:function(){o(updateViewport(d,{rotation:0}))},setCroppingRegion:function(p){o(setCroppingRegion(d,p))},updateConfig:function(p){return o(updateWindow(d,{imageCropper:p}))}}},mapStateToProps:function l(o,u){var d=u.windowId;return{config:getPluginConfig$2(o,{windowId:d}),containerId:getContainerId(o),croppingRegion:getCroppingRegionForWindow(o,{windowId:d}),currentCanvas:getCurrentCanvas(o,{windowId:d}),viewType:getWindowViewType(o,{windowId:d})}},mode:"add",reducers:{croppingRegions:croppingRegionsReducer},saga:croppingRegionsSaga,target:"OpenSeadragonViewer"}],isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(l,o,u,d){l.addEventListener?l.addEventListener(o,u,d):l.attachEvent&&l.attachEvent("on".concat(o),u)}function removeEvent(l,o,u,d){l.removeEventListener?l.removeEventListener(o,u,d):l.detachEvent&&l.detachEvent("on".concat(o),u)}function getMods(l,o){const u=o.slice(0,o.length-1);for(let d=0;d<u.length;d++)u[d]=l[u[d].toLowerCase()];return u}function getKeys(l){typeof l!="string"&&(l=""),l=l.replace(/\s/g,"");const o=l.split(",");let u=o.lastIndexOf("");for(;u>=0;)o[u-1]+=",",o.splice(u,1),u=o.lastIndexOf("");return o}function compareArray(l,o){const u=l.length>=o.length?l:o,d=l.length>=o.length?o:l;let f=!0;for(let p=0;p<u.length;p++)d.indexOf(u[p])===-1&&(f=!1);return f}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal
154:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let l=1;l<20;l++)_keyMap["f".concat(l)]=111+l;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=l=>_keyMap[l.toLowerCase()]||_modifier[l.toLowerCase()]||l.toUpperCase().charCodeAt(0),getKey=l=>Object.keys(_keyMap).find(o=>_keyMap[o]===l),getModifier=l=>Object.keys(_modifier).find(o=>_modifier[o]===l);function setScope(l){_scope=l||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(l=>getKey(l)||getModifier(l)||String.fromCharCode(l))}function getAllKeyCodes(){const l=[];return Object.keys(_handlers).forEach(o=>{_handlers[o].forEach(u=>{let{key:d,scope:f,mods:p,shortcut:h}=u;l.push({scope:f,shortcut:h,mods:p,keys:d.split("+").map(v=>code(v))})})}),l}function filter(l){const o=l.target||l.srcElement,{tagName:u}=o;let d=!0;const f=u==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(o.type);return(o.isContentEditable||(f||u==="TEXTAREA"||u==="SELECT")&&!o.readOnly)&&(d=!1),d}function isPressed(l){return typeof l=="string"&&(l=code(l)),_downKeys.indexOf(l)!==-1}function deleteScope(l,o){let u,d;l||(l=getScope());for(const f in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,f))for(u=_handlers[f],d=0;d<u.length;)u[d].scope===l?u.splice(d,1).forEach(h=>{let{element:v}=h;return removeKeyEvent(v)}):d++;getScope()===l&&setScope(o||"all")}function clearModifier(l){let o=l.keyCode||l.which||l.charCode;l.key&&l.key.toLowerCase()==="capslock"&&(o=code(l.key));const u=_downKeys.indexOf(o);if(u>=0&&_downKeys.splice(u,1),l.key&&l.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(o===93||o===224)&&(o=91),o in _mods){_mods[o]=!1;for(const d in _modifier)_modifier[d]===o&&(hotkeys[d]=!1)}}function unbind(l){if(typeof l>"u")Object.keys(_handlers).forEach(f=>{Array.isArray(_handlers[f])&&_handlers[f].forEach(p=>eachUnbind(p)),delete _handlers[f]}),removeKeyEvent(null);else if(Array.isArray(l))l.forEach(f=>{f.key&&eachUnbind(f)});else if(typeof l=="object")l.key&&eachUnbind(l);else if(typeof l=="string"){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];let[f,p]=u;typeof f=="function"&&(p=f,f=""),eachUnbind({key:l,scope:f,method:p,splitKey:"+"})}}const eachUnbind=l=>{let{key:o,scope:u,method:d,splitKey:f="+"}=l;getKeys(o).forEach(h=>{const v=h.split(f),g=v.length,m=v[g-1],y=m==="*"?"*":code(m);if(!_handlers[y])return;u||(u=getScope());const b=g>1?getMods(_modifier,v):[],w=[];_handlers[y]=_handlers[y].filter(E=>{const C=(d?E.method===d:!0)&&E.scope===u&&compareArray(E.mods,b);return C&&w.push(E.element),!C}),w.forEach(E=>removeKeyEvent(E))})};function eventHandler(l,o,u,d){if(o.element!==d)return;let f;if(o.scope===u||o.scope==="all"){f=o.mods.length>0;for(const p in _mods)Object.prototype.hasOwnProperty.call(_mods,p)&&(!_mods[p]&&o.mods.indexOf(+p)>-1||_mods[p]&&o.mods.indexOf(+p)===-1)&&(f=!1);(o.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||f||o.shortcut==="*")&&(o.keys=[],o.keys=o.keys.concat(_downKeys),o.method(l,o)===!1&&(l.preventDefault?l.preventDefault():l.returnValue=!1,l.stopPropagation&&l.stopPropagation(),l.cancelBubble&&(l.cancelBubble=!0)))}}function dispatch(l,o){const u=_handlers["*"];let d=l.keyCode||l.which||l.charCode;if(l.key&&l.key.toLowerCase()==="capslock"||!hotkeys.filter.call(this,l))return;if((d===93||d===224)&&(d=91),_downKeys.indexOf(d)===-1&&d!==229&&_downKeys.push(d),["metaKey","ctrlKey","altKey","shiftKey"].forEach(v=>{const g=modifierMap[v];l[v]&&_downKeys.indexOf(g)===-1?_downKeys.push(g):!l[v]&&_downKeys.indexOf(g)>-1?_downKeys.splice(_downKeys.indexOf(g),1):v==="metaKey"&&l[v]&&(_downKeys=_downKeys.filter(m=>m in modifierMap||m===d))}),d in _mods){_mods[d]=!0;for(const v in _modifier)if(Object.prototype.hasOwnProperty.call(_modifier,v)){const g=modifierMap[_modifier[v]];hotkeys[v]=l[g]}if(!u)return}for(const v in _mods)Object.prototype.hasOwnProperty.call(_mods,v)&&(_mods[v]=l[modifierMap[v]]);l.getModifierState&&!(l.altKey&&!l.ctrlKey)&&l.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const f=getScope();if(u)for(let v=0;v<u.length;
154v++)u[v].scope===f&&(l.type==="keydown"&&u[v].keydown||l.type==="keyup"&&u[v].keyup)&&eventHandler(l,u[v],f,o);if(!(d in _handlers))return;const p=_handlers[d],h=p.length;for(let v=0;v<h;v++)if((l.type==="keydown"&&p[v].keydown||l.type==="keyup"&&p[v].keyup)&&p[v].key){const g=p[v],{splitKey:m}=g,y=g.key.split(m),b=[];for(let w=0;w<y.length;w++)b.push(code(y[w]));b.sort().join("")===_downKeys.sort().join("")&&eventHandler(l,g,f,o)}}function hotkeys(l,o,u){_downKeys=[];const d=getKeys(l);let f=[],p="all",h=document,v=0,g=!1,m=!0,y="+",b=!1,w=!1;for(u===void 0&&typeof o=="function"&&(u=o),Object.prototype.toString.call(o)==="[object Object]"&&(o.scope&&(p=o.scope),o.element&&(h=o.element),o.keyup&&(g=o.keyup),o.keydown!==void 0&&(m=o.keydown),o.capture!==void 0&&(b=o.capture),typeof o.splitKey=="string"&&(y=o.splitKey),o.single===!0&&(w=!0)),typeof o=="string"&&(p=o),w&&unbind(l,p);v<d.length;v++)l=d[v].split(y),f=[],l.length>1&&(f=getMods(_modifier,l)),l=l[l.length-1],l=l==="*"?"*":code(l),l in _handlers||(_handlers[l]=[]),_handlers[l].push({keyup:g,keydown:m,scope:p,mods:f,shortcut:d[v],method:u,key:d[v],splitKey:y,element:h});if(typeof h<"u"&&window){if(!elementEventMap.has(h)){const E=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(C,h)},P=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(C,h),clearModifier(C)};elementEventMap.set(h,{keydownListener:E,keyupListenr:P,capture:b}),addEvent(h,"keydown",E,b),addEvent(h,"keyup",P,b)}if(!winListendFocus){const E=()=>{_downKeys=[]};winListendFocus={listener:E,capture:b},addEvent(window,"focus",E,b)}}}function trigger(l){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(u=>{_handlers[u].filter(f=>f.scope===o&&f.shortcut===l).forEach(f=>{f&&f.method&&f.method()})})}function removeKeyEvent(l){const o=Object.values(_handlers).flat();if(o.findIndex(d=>{let{element:f}=d;return f===l})<0){const{keydownListener:d,keyupListenr:f,capture:p}=elementEventMap.get(l)||{};d&&f&&(removeEvent(l,"keyup",f,p),removeEvent(l,"keydown",d,p),elementEventMap.delete(l))}if((o.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(f=>{const{keydownListener:p,keyupListenr:h,capture:v}=elementEventMap.get(f)||{};p&&h&&(removeEvent(f,"keyup",h,v),removeEvent(f,"keydown",p,v),elementEventMap.delete(f))}),elementEventMap.clear(),Object.keys(_handlers).forEach(f=>delete _handlers[f]),winListendFocus)){const{listener:f,capture:p}=winListendFocus;removeEvent(window,"focus",f,p),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const l in _api)Object.prototype.hasOwnProperty.call(_api,l)&&(hotkeys[l]=_api[l]);if(typeof window<"u"){const l=window.hotkeys;hotkeys.noConflict=o=>(o&&window.hotkeys===hotkeys&&(window.hotkeys=l),hotkeys),window.hotkeys=hotkeys}var _defaultShortcutMappi,KeyboardEventTypes={NAVIGATE_TO_FIRST_CANVAS:"navigate-to-first-canvas",NAVIGATE_TO_LAST_CANVAS:"navigate-to-last-canvas",NAVIGATE_TO_NEXT_CANVAS:"navigate-to-next-canvas",NAVIGATE_TO_PREVIOUS_CANVAS:"navigate-to-previous-canvas",SWITCH_TO_BOOK_VIEW:"switch-to-book-view",SWITCH_TO_GALLERY_VIEW:"switch-to-gallery-view",SWITCH_TO_SINGLE_VIEW:"switch-to-single-view",TOGGLE_FULLSCREEN:"toggle-fullscreen"},defaultShortcutMapping=(_defaultShortcutMappi={},_defaultShortcutMappi[KeyboardEventTypes.NAVIGATE_TO_FIRST_CANVAS]="ctrl+left",_defaultShortcutMappi[KeyboardEventTypes.NAVIGATE_TO_LAST_CANVAS]="ctrl+right",_defaultShortcutMappi[KeyboardEventTypes.NAVIGATE_TO_NEXT_CANVAS]="right,space",_defaultShortcutMappi[KeyboardEventTypes.NAVIGATE_TO_PREVIOUS_CANVAS]="left",_defaultShortcutMappi[KeyboardEventTypes.SWITCH_TO_BOOK_VIEW]="b",_defaultShortcutMappi[KeyboardEventTypes.SWITCH_TO_GALLERY_VIEW]="g",_defaultShortcutMappi[KeyboardEventTypes.SWITCH_TO_SINGLE_VIEW]="s",_defaultShortcutMappi[KeyboardEventTypes.TOGGLE_FULLSCREEN]="enter,f",_defaultShortcutMappi),createKeyboardEventsChannel=function l(o){return o===void 0&&(o={}),eventChannel(function(u){return Object.values(KeyboardEventTypes).forEac
vendor: 5,210 bytes, line 154
154h(function(d){var f,p=(f=o[d])!==null&&f!==void 0?f:defaultShortcutMapping[d];hotkeys(p,function(h){h.preventDefault(),u(d)})}),function(){return hotkeys.unbind()}})},getFocusedWindowId=createSelector([getWorkspace],function(l){var o=l.focusedWindowId;return o}),getPluginConfig$1=createSelector([getConfig],function(l){var o=l.keyboardShortcuts,u=o===void 0?{}:o;return u}),_marked=_regeneratorRuntime().mark(handleFullscreenEvent),_marked2=_regeneratorRuntime().mark(initialise),_marked3=_regeneratorRuntime().mark(rootSaga);function _regeneratorRuntime(){_regeneratorRuntime=function(){return l};var l={},o=Object.prototype,u=o.hasOwnProperty,d=Object.defineProperty||function(F,B,G){F[B]=G.value},f=typeof Symbol=="function"?Symbol:{},p=f.iterator||"@@iterator",h=f.asyncIterator||"@@asyncIterator",v=f.toStringTag||"@@toStringTag";function g(F,B,G){return Object.defineProperty(F,B,{value:G,enumerable:!0,configurable:!0,writable:!0}),F[B]}try{g({},"")}catch{g=function(G,Q,K){return G[Q]=K}}function m(F,B,G,Q){var K=B&&B.prototype instanceof w?B:w,Z=Object.create(K.prototype),te=new z(Q||[]);return d(Z,"_invoke",{value:j(F,G,te)}),Z}function y(F,B,G){try{return{type:"normal",arg:F.call(B,G)}}catch(Q){return{type:"throw",arg:Q}}}l.wrap=m;var b={};function w(){}function E(){}function P(){}var C={};g(C,p,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(H([])));O&&O!==o&&u.call(O,p)&&(C=O);var x=P.prototype=w.prototype=Object.create(C);function A(F){["next","throw","return"].forEach(function(B){g(F,B,function(G){return this._invoke(B,G)})})}function D(F,B){function G(K,Z,te,oe){var fe=y(F[K],F,Z);if(fe.type!=="throw"){var le=fe.arg,Re=le.value;return Re&&typeof Re=="object"&&u.call(Re,"__await")?B.resolve(Re.__await).then(function(Ae){G("next",Ae,te,oe)},function(Ae){G("throw",Ae,te,oe)}):B.resolve(Re).then(function(Ae){le.value=Ae,te(le)},function(Ae){return G("throw",Ae,te,oe)})}oe(fe.arg)}var Q;d(this,"_invoke",{value:function(Z,te){function oe(){return new B(function(fe,le){G(Z,te,fe,le)})}return Q=Q?Q.then(oe,oe):oe()}})}function j(F,B,G){var Q="suspendedStart";return function(K,Z){if(Q==="executing")throw new Error("Generator is already running");if(Q==="completed"){if(K==="throw")throw Z;return U()}for(G.method=K,G.arg=Z;;){var te=G.delegate;if(te){var oe=M(te,G);if(oe){if(oe===b)continue;return oe}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(Q==="suspendedStart")throw Q="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);Q="executing";var fe=y(F,B,G);if(fe.type==="normal"){if(Q=G.done?"completed":"suspendedYield",fe.arg===b)continue;return{value:fe.arg,done:G.done}}fe.type==="throw"&&(Q="completed",G.method="throw",G.arg=fe.arg)}}}function M(F,B){var G=B.method,Q=F.iterator[G];if(Q===void 0)return B.delegate=null,G==="throw"&&F.iterator.return&&(B.method="return",B.arg=void 0,M(F,B),B.method==="throw")||G!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+G+"' method")),b;var K=y(Q,F.iterator,B.arg);if(K.type==="throw")return B.method="throw",B.arg=K.arg,B.delegate=null,b;var Z=K.arg;return Z?Z.done?(B[F.resultName]=Z.value,B.next=F.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,b):Z:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,b)}function N(F){var B={tryLoc:F[0]};1 in F&&(B.catchLoc=F[1]),2 in F&&(B.finallyLoc=F[2],B.afterLoc=F[3]),this.tryEntries.push(B)}function q(F){var B=F.completion||{};B.type="normal",delete B.arg,F.completion=B}function z(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(N,this),this.reset(!0)}function H(F){if(F){var B=F[p];if(B)return B.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var G=-1,Q=function K(){for(;++G<F.length;)if(u.call(F,G))return K.value=F[G],K.done=!1,K;return K.value=void 0,K.done=!0,K};return Q.next=Q}}return{next:U}}function U(){return{value:void 0,done:!0}}return E.prototype=P,d(x,"constructor",{value:P,configurable:!0}),d(P,"constructor",{value:E,configurable:!0}),E.displayName=g(P,v,"GeneratorFunction"),l.isGeneratorFunction=function(F){var B=typeof F=="function"&&F.constructor;return!!B&&(B===E||(B.displayName||B.name)==="GeneratorFunction")},l.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,P):(F.__proto__=P,g(F,v,"GeneratorFunction")),F.prototype=Object.create(x),F},l.awrap=function(F){return{__await:F}},A(D.prototype),g(D.prototype,h,function(){return this}),l.AsyncIterator=D,l.async=function(F,B,G,Q,K){K===void 0&&(K=Promise);var Z=new D(m(F,B,G,Q),K);return l.isGeneratorFunction(B)?Z:Z.next().then(function(te){return te.done?te.value:Z.next()})},A(x),g(x,v,"Generator"),g(x,p,function(){return this}),g(x,"toString",function(){return"[object Generator]"}),l.keys=function(F){var B=Object(F),G=[];for(var Q in B)G.push(Q);return G.reverse(),function K(){for(;G.length;){var Z=G.pop();if(Z in B)return K.value=Z,K.done=!1,K}return K.done=!0,K}},l.values=H,z.prototype={constructor:z,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
154h(q),!B)for(var G in this)G.charAt(0)==="t"&&u.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=void 0)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var G=this;function Q(le,Re){return te.type="throw",te.arg=B,G.next=le,Re&&(G.method="next",G.arg=void 0),!!Re}for(var K=this.tryEntries.length-1;K>=0;--K){var Z=this.tryEntries[K],te=Z.completion;if(Z.tryLoc==="root")return Q("end");if(Z.tryLoc<=this.prev){var oe=u.call(Z,"catchLoc"),fe=u.call(Z,"finallyLoc");if(oe&&fe){if(this.prev<Z.catchLoc)return Q(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return Q(Z.finallyLoc)}else if(oe){if(this.prev<Z.catchLoc)return Q(Z.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return Q(Z.finallyLoc)}}}},abrupt:function(B,G){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var K=this.tryEntries[Q];if(K.tryLoc<=this.prev&&u.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var Z=K;break}}Z&&(B==="break"||B==="continue")&&Z.tryLoc<=G&&G<=Z.finallyLoc&&(Z=null);var te=Z?Z.completion:{};return te.type=B,te.arg=G,Z?(this.method="next",this.next=Z.finallyLoc,b):this.complete(te)},complete:function(B,G){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&G&&(this.next=G),b},finish:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Q=this.tryEntries[G];if(Q.finallyLoc===B)return this.complete(Q.completion,Q.afterLoc),q(Q),b}},catch:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Q=this.tryEntries[G];if(Q.tryLoc===B){var K=Q.completion;if(K.type==="throw"){var Z=K.arg;q(Q)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(B,G,Q){return this.delegate={iterator:H(B),resultName:G,nextLoc:Q},this.method==="next"&&(this.arg=void 0),b}},l}function handleCanvasNavigationEvent(l){var o=l.eventType,u=l.windowId;return _regeneratorRuntime().mark(function d(){var f,p,h,v,g,m,y;return _regeneratorRuntime().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(o!==KeyboardEventTypes.NAVIGATE_TO_NEXT_CANVAS){w.next=4;break}return w.next=3,put(setNextCanvas(u));case 3:return w.abrupt("return");case 4:if(o!==KeyboardEventTypes.NAVIGATE_TO_PREVIOUS_CANVAS){w.next=8;break}return w.next=7,put(setPreviousCanvas(u));case 7:return w.abrupt("return");case 8:if(f=0,o!==KeyboardEventTypes.NAVIGATE_TO_LAST_CANVAS){w.next=14;break}return w.next=12,select(getCanvases,{windowId:u});case 12:p=w.sent,f=p.length-1;case 14:return w.next=16,select(getCanvasGroupings,{windowId:u});case 16:return h=w.sent,w.next=19,select(getWindowViewType,{windowId:u});case 19:if(v=w.sent,g=v==="book"?Math.ceil(f/2):f,m=h?.[g],y=(m||[]).map(function(E){return E.id}),!m){w.next=26;break}return w.next=26,put(setCanvas(u,y[0],y));case 26:case"end":return w.stop()}},d)})()}function handleFullscreenEvent(){var l;return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,select(getFullScreenEnabled);case 2:return l=u.sent,u.next=5,put(setWorkspaceFullscreen(!l));case 5:case"end":return u.stop()}},_marked)}function handleViewTypeEvent(l){var o=l.eventType,u=l.windowId;return _regeneratorRuntime().mark(function d(){var f,p;return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,select(getManifestUrl,{windowId:u});case 2:return f=v.sent,v.next=5,select(getAllowedWindowViewTypes,{manifestId:f});case 5:p=v.sent,v.t0=o,v.next=v.t0===KeyboardEventTypes.SWITCH_TO_BOOK_VIEW?9:v.t0===KeyboardEventTypes.SWITCH_TO_GALLERY_VIEW?13:v.t0===KeyboardEventTypes.SWITCH_TO_SINGLE_VIEW?17:21;break;case 9:if(!p.includes("book")){v.next=12;break}return v.next=12,put(setWindowViewType(u,"book"));case 12:return v.abrupt("break",23);case 13:if(!p.includes("gallery")){v.next=16;break}return v.next=16,put(setWindowViewType(u,"gallery"));case 16:return v.abrupt("break",23);case 17:if(!p.includes("single")){v.next=20;break}return v.next=20,put(setWindowViewType(u,"single"));case 20:return v.abrupt("break",23);case 21:return console.warn("No handler for event type "+o+" was found."),v.abrupt("break",23);case 23:case"end":return v.stop()}},d)})()}function initialise(){var l,o,u,d,f;return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,select(getPluginConfig$1);case 2:return l=h.sent,o=l.shortcutMapping,h.next=6,call(createKeyboardEventsChannel,o);case 6:u=h.sent;case 7:return h.next=10,take(u);case 10:return d=h.sent,h.next=13,select(getFocusedWindowId);case 13:f=h.sent,h.t0=d,h.next=h.t0===KeyboardEventTypes.TOGGLE_FULLSCREEN?17:h.t0===KeyboardEventTypes.NAVIGATE_TO_FIRST_CANVAS||h.t0===KeyboardEventTypes.NAVIGATE_TO_LAST_CANVAS||h.t0===KeyboardEventTypes.NAVIGATE_TO_NEXT_CANVAS||h.t0===KeyboardEventTypes.NAVIGATE_TO_PREVIOUS_CANVAS?20:h.t0===KeyboardEventTypes.SWITCH_TO_BOOK_VIEW||h.t0===KeyboardEventTypes.SWITCH_TO_GALLERY_VIEW||h.t0===KeyboardEventTypes.SWITCH_TO_SINGLE_VIEW?23:26;break;case 17:return h.next=19,call(handleFullscreenEvent);case 19:return h.abrupt("break",28);case 20:return h.next=22,call(handleCanvasNavigationEvent,{eventType:d,windowId:f});case 22:return h.abrupt("break",28);case 23:return h.next=25,call(handleViewTypeEvent,{eventType:d,windowId:f});case 25:return h.abrupt("break",28);case 26:return console.warn("No handler for event type "+d+" was found."),h.abrupt("break",28);case 28:h.next=7;break;case 30:case"end":return h.stop()}},_marked2)}function rootSaga(){return _regeneratorRuntime().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,takeEvery(ActionTypes.IMPORT_CONFIG,initialise);case 2:case"end":return o.stop()}},_marked3)}const keyboardShortcutsPlugin=[{saga:rootSaga}];var VerticalAlignBottomSharp={},hasRequiredVerticalAlignBottomSharp;function requireVerticalAlignBottomSharp(){if(hasRequiredVerticalAlignBottomSharp)return VerticalAlignBottomSharp;hasRequiredVerticalAlignBottomSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(VerticalAlignBottomSharp,"__esModule",{value:!0}),VerticalAlignBottomSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"}),"VerticalAlignBottomSharp");return VerticalAlignBottomSharp.default=f,VerticalAlignBottomSharp}var VerticalAlignBottomSharpExports=requireVerticalAlignBottomSharp();const DownloadIcon=getDefaultExportFromCjs(VerticalAlignBottomSharpExports);function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$5.apply(this,arguments)}var DownloadButton=function l(o){var u=o.config,d=o.containerId,f=o.t,p=o.updateConfig,h=u.dialogOpen,v=u.enabled;return v?React.createElement(MiradorMenuButton$1,{"aria-expanded":h,"aria-haspopup":!0,"aria-label":f("showDownloadOptions"),containerId:d,onClick:function(){return p(_extends$5({},u,{dialogOpen:!h}))}},React.createElement(DownloadIcon,null)):null};DownloadButton.propTypes={};var _excluded$3=["classes"];function ownKeys$b(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$b(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
154o%2?ownKeys$b(Object(u),!0).forEach(function(d){_defineProperty$e(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$b(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$e(l,o,u){return(o=_toPropertyKey$19(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$19(l){var o=_toPrimitive$19(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$19(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function _objectWithoutProperties$5(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$3(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.includes(u)||{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$3(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;u[d]=l[d]}return u}var PluginHook=React.forwardRef(function(l,o){var u=l.PluginComponents;l.classes;var d=_objectWithoutProperties$5(l,_excluded$3);return u?u.map(function(f,p){return React.isValidElement(f)?React.cloneElement(f,_objectSpread$b(_objectSpread$b({},d),{},{ref:o})):React.createElement(f,Object.assign({ref:o},d,{key:p}))}):null}),DownloadDialogPluginArea=function l(o){return React.createElement(PluginHook,o)},ComposedDownloadDialogPluginArea=compose$2(withTranslation(),connect(null,null),withPlugins("DownloadDialogPluginArea"))(DownloadDialogPluginArea),ImageLink=function l(o){var u,d=o.height,f=o.linkTarget,p=o.t,h=o.width,v=useTheme$1();return React.createElement(Box,{fontFamily:(u=v.typography.fontFamily)!==null&&u!==void 0?u:"sans-serif",fontSize:"0.75rem"},"JPEG:"," ",React.createElement(Link$1,{href:f,target:"_blank"},h+" x "+d+" "+p("pixels")))};ImageLink.propTypes={};var CanvasDownloadLinks=function l(o){var u=o.canvas,d=o.label,f=o.sizes,p=o.t;return React.createElement(Card$1,{className:"mb-3",raised:!0},React.createElement(CardContent$1,null,React.createElement(Typography$1,{component:"h5",style:{textTransform:"none"},variant:"h6"},React.createElement(Box,{fontWeight:"fontWeightBold"},p("image")+": "+d)),React.createElement(List$1,null,f.sort(function(h,v){return v.width-h.width}).slice(1).reduce(function(h,v){var g=v.height,m=v.width;return h[h.length-1].width-m>=500&&h.push({height:g,width:m}),h},[{height:u.getHeight(),width:u.getWidth()}]).map(function(h){var v=h.height,g=h.width;return React.createElement(ListItem$1,{dense:!0,key:v+"x"+g},React.createElement(ImageLink,{height:v,linkTarget:u.getCanonicalImageUri(g),t:p,width:g}))}))))};CanvasDownloadLinks.defaultProps={sizes:[]};CanvasDownloadLinks.propTypes={};function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$4.apply(this,arguments)}
154var DownloadDialog=function l(o){var u,d=o.canvasLabel,f=o.children,p=o.config,h=o.containerId,v=o.infoResponse,g=o.manifestUrl,m=o.seeAlso,y=o.t,b=o.updateConfig,w=o.visibleCanvases,E=o.windowId,P=useTheme$1(),C=p.dialogOpen,T=p.enabled;if(!T||!C)return null;var O=function(){return b(_extends$4({},p,{dialogOpen:!1}))};return React.createElement(Dialog$1,{container:document.querySelector("#"+h+" ."+ns("viewer")),fullWidth:!0,maxWidth:"xs",onClose:O,open:C,scroll:"paper"},React.createElement(DialogTitle$1,{disableTypography:!0},React.createElement(Typography$1,{variant:"h4"},React.createElement(Box,{fontWeight:"fontWeightBold"},y("downloadOptions")))),React.createElement(ScrollIndicatedDialogContent$2,{dividers:!0},w.map(function(x){var A;return React.createElement(CanvasDownloadLinks,{canvas:x,key:x.id,label:d(x.id),sizes:(A=v(x.id).json)===null||A===void 0?void 0:A.sizes,t:y})}),React.createElement(ComposedDownloadDialogPluginArea,{windowId:E}),f,React.createElement(Box,{sx:{marginTop:"1rem"}},React.createElement(Card$1,{raised:!0},React.createElement(CardContent$1,null,React.createElement(Typography$1,{component:"h5",style:{textTransform:"none"},variant:"h6"},React.createElement(Box,{fontWeight:"fontWeightBold"},y("otherDownloadOptions"))),React.createElement(List$1,null,React.createElement(ListItem$1,{dense:!0},React.createElement(Box,{fontFamily:(u=P.typography.fontFamily)!==null&&u!==void 0?u:"sans-serif",fontSize:"0.75rem"},React.createElement(Link$1,{href:g,rel:"noopener",target:"_blank"},y("iiifManifest")))),m.filter(function(x){var A=x.format;return A!=="text/html"}).map(function(x){var A,D=x.label,j=x.value;return React.createElement(ListItem$1,{dense:!0,key:j},React.createElement(Box,{fontFamily:(A=P.typography.fontFamily)!==null&&A!==void 0?A:"sans-serif",fontSize:"0.75rem"},React.createElement(Link$1,{href:j,rel:"noopener",target:"_blank"},D)))})))))),React.createElement(DialogActions$1,null,React.createElement(Button$1,{color:"primary",onClick:O},y("close"))))};DownloadDialog.defaultProps={children:void 0,manifestUrl:void 0,seeAlso:[]};DownloadDialog.propTypes={};const translations$2={de:{close:"Schließen",downloadOptions:"Download-Optionen",iiifManifest:"IIIF-Manifest",image:"Einzelbild",otherDownloadOptions:"Andere Download-Optionen",pixels:"Pixel",showDownloadOptions:"Download-Optionen anzeigen"},en:{close:"Close",downloadOptions:"Download options",iiifManifest:"IIIF manifest",image:"Single image",otherDownloadOptions:"Other download options",pixels:"pixels",showDownloadOptions:"Show download options"},fr:{close:"Fermer",downloadOptions:"Options de téléchargement",iiifManifest:"Manifeste IIIF",image:"Image",otherDownloadOptions:"Autres liens de téléchargement",pixels:"pixels",showDownloadOptions:"Afficher les options de téléchargement"}};function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$3.apply(this,arguments)}var defaultConfig={dialogOpen:!1,enabled:!0},getPluginConfig=createSelector([getWindowConfig],function(l){var o=l.downloadDialog,u=o===void 0?{}:o;return _extends$3({},defaultConfig,u)});const downloadDialogComponents=[{component:DownloadButton,config:{translations:translations$2},mapDispatchToProps:function l(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{downloadDialog:p}))}}},mapStateToProps:function l(o,u){var d=u.windowId;return{containerId:getContainerId(o),config:getPluginConfig(o,{windowId:d})}},mode:"add",name:"DownloadButton",target:"WindowTopBarPluginArea"},{component:DownloadDialog,config:{translations:translations$2},mapDispatchToProps:function l(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{downloadDialog:p}))}}},mapStateToProps:function l(o,u){var d=u.windowId;return{canvasLabel:function(p){return getCanvasLabel(o,{canvasId:p,windowId:d})},config:getPluginConfig(o,{windowId:d}),containerId:getContainerId(o),infoResponse:function(p){var h;
154return(h=selectInfoResponse(o,{canvasId:p,windowId:d}))!==null&&h!==void 0?h:{}},manifestUrl:getManifestUrl(o,{windowId:d}),seeAlso:getManifestRelatedContent(o,{windowId:d}),visibleCanvases:getVisibleCanvases(o,{windowId:d})}},mode:"add",name:"DownloadDialog",target:"Window"}];var constructDownloadUrl=function l(o,u,d){var f,p,h,v,g=new URL("https://download.digitale-sammlungen.de/BOOKS/download.pl"),m=(f=d.match(/\/(bsb[^/]+)\/manifest/))===null||f===void 0?void 0:f[1];if(!m)return null;if(m.includes("_u")){var y=m.split("_");m=y[0]}g.searchParams.set("id",m);var b=/\/canvas\/([1-9][0-9]*)/,w=(p=u.id.match(b))===null||p===void 0?void 0:p[1];w&&g.searchParams.set("nr",w);var E=(h=o[0].id.match(b))===null||h===void 0?void 0:h[1];E&&g.searchParams.set("ersteseite",E);var P=(v=o[o.length-1].id.match(b))===null||v===void 0?void 0:v[1];return P&&g.searchParams.set("letzteseite",P),g},PdfDafoLink=function l(o){var u,d=o.canvases,f=o.manifestUrl,p=o.t,h=o.visibleCanvases,v=useTheme$1(),g=constructDownloadUrl(d,h[0],f);return g?React.createElement(Box,{sx:{marginTop:"1rem"}},React.createElement(Card$1,{className:"mb-3",raised:!0},React.createElement(CardContent$1,null,React.createElement(Typography$1,{component:"h5",style:{textTransform:"none"},variant:"h6"},React.createElement(Box,{fontWeight:"fontWeightBold"},p("wholeDocument"))),React.createElement(List$1,null,React.createElement(ListItem$1,{dense:!0},React.createElement(Box,{fontFamily:(u=v.typography.fontFamily)!==null&&u!==void 0?u:"sans-serif",fontSize:"0.75rem"},React.createElement(Link$1,{href:g,target:"_blank"},"PDF/DaFo"))))))):null};PdfDafoLink.propTypes={};var PdfDafoDownloadDialog=function l(o){return React.createElement(DownloadDialog,o,React.createElement(PdfDafoLink,o))};function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l},_extends$2.apply(this,arguments)}const translations$1={de:_extends$2({},translations$2.de,{wholeDocument:"Gesamtes Digitalisat/Volltext"}),en:_extends$2({},translations$2.en,{wholeDocument:"Complete object/full text"})};var otherComponents=downloadDialogComponents.filter(function(l){return l.name!=="DownloadDialog"});const pdfDafoDownloadDialogPlugin=[].concat(otherComponents,[{component:PdfDafoDownloadDialog,config:{translations:translations$1},mapDispatchToProps:function l(o,u){var d=u.windowId;return{updateConfig:function(p){return o(updateWindow(d,{downloadDialog:p}))}}},mapStateToProps:function l(o,u){var d=u.windowId;return{canvases:getCanvases(o,{windowId:d}),canvasLabel:function(p){return getCanvasLabel(o,{canvasId:p,windowId:d})},config:getPluginConfig(o,{windowId:d}),containerId:getContainerId(o),infoResponse:function(p){var h;return(h=selectInfoResponse(o,{canvasId:p,windowId:d}))!==null&&h!==void 0?h:{}},manifestUrl:getManifestUrl(o,{windowId:d}),seeAlso:getManifestRelatedContent(o,{windowId:d}),visibleCanvases:getVisibleCanvases(o,{windowId:d})}},mode:"add",name:"PdfDafoDownloadDialog",target:"Window"}]);var withTheme$1={},hasRequiredWithTheme;function requireWithTheme(){if(hasRequiredWithTheme)return withTheme$1;hasRequiredWithTheme=1;var l=requireInteropRequireDefault();Object.defineProperty(withTheme$1,"__esModule",{value:!0}),withTheme$1.default=void 0;var o=require$$1$2,u=l(requireDefaultTheme()),d=(0,o.withThemeCreator)({defaultTheme:u.default}),f=d;return withTheme$1.default=f,withTheme$1}var withThemeExports=requireWithTheme();const withTheme=getDefaultExportFromCjs(withThemeExports);var _createFlow,hasRequired_createFlow;function require_createFlow(){if(hasRequired_createFlow)return _createFlow;hasRequired_createFlow=1;var l=require_LodashWrapper(),o=require_flatRest(),u=require_getData(),d=require_getFuncName(),f=requireIsArray(),p=require_isLaziable(),h="Expected a function",v=8,g=32,m=128,y=256;function b(w){return o(function(E){var P=E.length,C=P,T=l.prototype.thru;for(w&&E.reverse();C--;){var O=E[C];if(typeof O!="function")throw new TypeError(h);if(T&&!x&&d(O)=="wrapper")var x=new l([],!0)}for(C=x?C:P;++C<P;){O=E[C];var A=d(O),D=A=="wrapper"?u(O):void 0;D&&p(D[0])&&D[1]==(m|v|g|y)&&!D[4].length&&D[9]==1?x=x[d(D[0])].apply(x,D[3]):x=O.length==1&&p(O)?x[A]():x.thru(O)}return function(){var j=arguments,M=j[0];
154if(x&&j.length==1&&f(M))return x.plant(M).value();for(var N=0,q=P?E[N].apply(this,j):M;++N<P;)q=E[N].call(this,q);return q}})}return _createFlow=b,_createFlow}var flowRight_1,hasRequiredFlowRight;function requireFlowRight(){if(hasRequiredFlowRight)return flowRight_1;hasRequiredFlowRight=1;var l=require_createFlow(),o=l(!0);return flowRight_1=o,flowRight_1}var flowRightExports=requireFlowRight();const compose=getDefaultExportFromCjs(flowRightExports);var Brightness5={},hasRequiredBrightness5;function requireBrightness5(){if(hasRequiredBrightness5)return Brightness5;hasRequiredBrightness5=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Brightness5,"__esModule",{value:!0}),Brightness5.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}),"Brightness5");return Brightness5.default=f,Brightness5}var Brightness5Exports=requireBrightness5();const BrightnessIcon=getDefaultExportFromCjs(Brightness5Exports);var Tonality={},hasRequiredTonality;function requireTonality(){if(hasRequiredTonality)return Tonality;hasRequiredTonality=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Tonality,"__esModule",{value:!0}),Tonality.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}),"Tonality");return Tonality.default=f,Tonality}var TonalityExports=requireTonality();const TonalityIcon=getDefaultExportFromCjs(TonalityExports);var Gradient={},hasRequiredGradient;function requireGradient(){if(hasRequiredGradient)return Gradient;hasRequiredGradient=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Gradient,"__esModule",{value:!0}),Gradient.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14v6z"}),"Gradient");return Gradient.default=f,Gradient}var GradientExports=requireGradient();const GradientIcon=getDefaultExportFromCjs(GradientExports);var ExposureSharp={},hasRequiredExposureSharp;function requireExposureSharp(){if(hasRequiredExposureSharp)return ExposureSharp;hasRequiredExposureSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ExposureSharp,"__esModule",{value:!0}),ExposureSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M21 3H3v18h18V3zM6 7h5v1.5H6V7zm13 12H5L19 5v14zm-4.5-3v2H16v-2h2v-1.5h-2v-2h-1.5v2h-2V16h2z"}),"ExposureSharp");return ExposureSharp.default=f,ExposureSharp}var ExposureSharpExports=requireExposureSharp();const ContrastIcon=getDefaultExportFromCjs(ExposureSharpExports);var InvertColors={},hasRequiredInvertColors;function requireInvertColors(){if(hasRequiredInvertColors)return InvertColors;hasRequiredInvertColors=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(InvertColors,"__esModule",{value:!0}),InvertColors.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"}),"InvertColors");return InvertColors.default=f,InvertColors}var InvertColorsExports=requireInvertColors();const InvertColorsIcon=getDefaultExportFromCjs(InvertColorsExports);var TuneSharp={},hasRequiredTuneSharp;function requireTuneSharp(){if(hasRequiredTuneSharp)return TuneSharp;hasRequiredTuneSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(TuneSharp,"__esModule",{value:!0}),TuneSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"TuneSharp");return TuneSharp.default=f,TuneSharp}
154var TuneSharpExports=requireTuneSharp();const TuneSharpIcon=getDefaultExportFromCjs(TuneSharpExports);var ReplaySharp={},hasRequiredReplaySharp;function requireReplaySharp(){if(hasRequiredReplaySharp)return ReplaySharp;hasRequiredReplaySharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ReplaySharp,"__esModule",{value:!0}),ReplaySharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplaySharp");return ReplaySharp.default=f,ReplaySharp}var ReplaySharpExports=requireReplaySharp();const ReplaySharpIcon=getDefaultExportFromCjs(ReplaySharpExports);var withStylesExports=requireWithStyles();const withStyles=getDefaultExportFromCjs(withStylesExports);function _classCallCheck$12(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$$(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$$(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var styles$L=function l(o){var u,d=o.palette,f=o.breakpoints;return{slider:(u={backgroundColor:colorManipulatorExports.fade(d.shades.main,.8),borderRadius:25,top:48,marginTop:2,position:"absolute",height:150,zIndex:100,marginLeft:2,padding:[[2,7,2,7]]},u[f.down("sm")]={top:"auto",right:48,width:150,height:"auto",marginTop:-46,marginBottom:2,padding:[[4,2,4,2]]},u)}},ImageTool=(function(l){_inherits$$(o,l);function o(u){_classCallCheck$12(this,o);var d=_possibleConstructorReturn$$(this,l.call(this,u));return d.state={open:u.open},d.handleChange=d.handleChange.bind(d),d.handleClick=d.handleClick.bind(d),d}return o.prototype.handleClick=function(){var d=this.props,f=d.value,p=d.variant;p==="toggle"?this.handleChange({},f===0?100:0):this.setState(function(h){return{open:!h.open}})},o.prototype.handleChange=function(d,f){var p=this.props.onChange;p(f)},o.prototype.render=function(){var d=this.props,f=d.children,p=d.containerId,h=d.label,v=d.max,g=d.min,m=d.value,y=d.type,b=d.variant,w=d.windowId,E=d.foregroundColor,P=d.classes,C=d.width,T=this.state.open,O=b==="toggle"&&m>0,x=w+"-"+y,A=void 0;return(T||O)&&(A=colorManipulatorExports.fade(E,T?.1:.25)),React.createElement("div",{style:{display:"inline-block"}},React.createElement(MiradorMenuButton$1,{id:x+"-label","aria-label":h,containerId:p,onClick:this.handleClick,"aria-expanded":T,"aria-controls":x,style:{backgroundColor:A}},f),T&&React.createElement("div",{id:x,"aria-labelledby":x+"-label",className:"MuiPaper-elevation4 "+P.slider},React.createElement(Slider$2,{orientation:["xs","sm"].indexOf(C)>=0?"horizontal":"vertical",min:g,max:v,value:m,onChange:this.handleChange})))},o})(reactExports.Component);ImageTool.propTypes={};ImageTool.defaultProps={foregroundColor:"rgb(0, 0, 0)",min:0,max:100,open:!1,variant:"slider"};const ImageTool$1=compose(withStyles(styles$L),withWidth())(ImageTool);var RotateRight={},hasRequiredRotateRight;function requireRotateRight(){if(hasRequiredRotateRight)return RotateRight;hasRequiredRotateRight=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(RotateRight,"__esModule",{value:!0}),RotateRight.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42l1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"}),"RotateRight");return RotateRight.default=f,RotateRight}var RotateRightExports=requireRotateRight();const RotateRightIcon=getDefaultExportFromCjs(RotateRightExports);var RotateLeft={},hasRequiredRotateLeft;function requireRotateLeft(){if(hasRequiredRotateLeft)return RotateLeft;hasRequiredRotateLeft=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();
154Object.defineProperty(RotateLeft,"__esModule",{value:!0}),RotateLeft.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z"}),"RotateLeft");return RotateLeft.default=f,RotateLeft}var RotateLeftExports=requireRotateLeft();const RotateLeftIcon=getDefaultExportFromCjs(RotateLeftExports);var _extends$1=Object.assign||function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l};function _objectWithoutProperties$4(l,o){var u={};for(var d in l)o.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(l,d)&&(u[d]=l[d]);return u}function _classCallCheck$11(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$_(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$_(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var ImageRotation=(function(l){_inherits$_(o,l);function o(){return _classCallCheck$11(this,o),_possibleConstructorReturn$_(this,l.apply(this,arguments))}return o.prototype.render=function(){var d=this.props,f=d.label,p=d.variant,h=_objectWithoutProperties$4(d,["label","variant"]);return React.createElement(MiradorMenuButton$1,_extends$1({"aria-label":f},h),p==="left"?React.createElement(RotateLeftIcon,null):React.createElement(RotateRightIcon,null))},o})(reactExports.Component);ImageRotation.propTypes={};var SwapHoriz={},hasRequiredSwapHoriz;function requireSwapHoriz(){if(hasRequiredSwapHoriz)return SwapHoriz;hasRequiredSwapHoriz=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(SwapHoriz,"__esModule",{value:!0}),SwapHoriz.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}),"SwapHoriz");return SwapHoriz.default=f,SwapHoriz}var SwapHorizExports=requireSwapHoriz();const SwapHorizIcon=getDefaultExportFromCjs(SwapHorizExports);var _extends=Object.assign||function(l){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d])}return l};function _objectWithoutProperties$3(l,o){var u={};for(var d in l)o.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(l,d)&&(u[d]=l[d]);return u}function _classCallCheck$10(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$Z(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$Z(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var ImageFlip=(function(l){_inherits$Z(o,l);function o(){return _classCallCheck$10(this,o),_possibleConstructorReturn$Z(this,l.apply(this,arguments))}return o.prototype.render=function(){var d=this.props,f=d.flipped,p=d.label,h=d.backgroundColor,v=d.foregroundColor,g=_objectWithoutProperties$3(d,["flipped","label","backgroundColor","foregroundColor"]);return React.createElement(MiradorMenuButton$1,_extends({"aria-label":p,style:{backgroundColor:f&&colorManipulatorExports.fade(v,.25)}},g),React.createElement(SwapHorizIcon,{style:{color:f&&h}}))},o})(reactExports.Component);ImageFlip.propTypes={};ImageFlip.defaultProps={backgroundColor:"rgb(255, 255, 255)",foregroundColor:"rgb(0, 0, 0)"};function _classCallCheck$$(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$Y(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function _inherits$Y(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var styles$K=function l(o){var u,d,f=o.breakpoints,p=o.palette,h=p.shades.main,v=p.getContrastText(h),g="1px solid "+colorManipulatorExports.fade(v,.2),m="linear-gradient(to bottom, "+(colorManipulatorExports.fade(v,0)+" 20%, ")+(colorManipulatorExports.fade(v,.2)+" 20% 80%, ")+(colorManipulatorExports.fade(v,0)+" 80% )"),y=m.replace("to bottom","to right");return{root:(u={backgroundColor:colorManipulatorExports.fade(h,.8),borderRadius:25,position:"absolute",top:8,right:8,zIndex:999,display:"flex",flexDirection:"row"},u[f.down("sm")]={flexDirection:"column"},u),borderContainer:(d={border:0,borderRight:g,borderImageSlice:1,borderImageSource:m,display:"flex",flexDirection:"row"},d[f.down("sm")]={flexDirection:"column",borderBottom:g,borderRight:"none",borderImageSource:y},d)}},MiradorImageTools=(function(l){_inherits$Y(o,l);function o(u){_classCallCheck$$(this,o);var d=_possibleConstructorReturn$Y(this,l.call(this,u));return d.toggleState=d.toggleState.bind(d),d.toggleRotate=d.toggleRotate.bind(d),d.toggleFlip=d.toggleFlip.bind(d),d.handleChange=d.handleChange.bind(d),d.handleReset=d.handleReset.bind(d),d}return o.prototype.componentDidMount=function(){var d=this.props.viewer;d&&this.applyFilters()},o.prototype.componentDidUpdate=function(d){var f=this.props,p=f.viewConfig,h=f.viewer;h&&p!==d.viewConfig&&this.applyFilters()},o.prototype.handleChange=function(d){var f=this.props,p=f.updateViewport,h=f.windowId;return function(v){var g;return p(h,(g={},g[d]=v,g))}},o.prototype.handleReset=function(){var d=this.props,f=d.updateViewport,p=d.windowId,h={rotation:0,flip:!1,brightness:100,contrast:100,saturate:100,grayscale:0,invert:0};f(p,h)},o.prototype.applyFilters=function(){var d=this.props,f=d.viewConfig,p=f.brightness,h=p===void 0?100:p,v=f.contrast,g=v===void 0?100:v,m=f.saturate,y=m===void 0?100:m,b=f.grayscale,w=b===void 0?0:b,E=f.invert,P=E===void 0?0:E,C=d.viewer.canvas;
154if(C){var T=["brightness","contrast","saturate","grayscale","invert"],O=C.style.filter.split(" "),x=O.filter(function(A){return!T.some(function(D){return A.includes(D)})});x.push("brightness("+h+"%)"),x.push("contrast("+g+"%)"),x.push("saturate("+y+"%)"),x.push("grayscale("+w+"%)"),x.push("invert("+P+"%)"),C.style.filter=x.join(" ")}},o.prototype.toggleState=function(){var d=this.props,f=d.open,p=d.updateWindow,h=d.windowId;p(h,{imageToolsOpen:!f})},o.prototype.toggleRotate=function(d){var f=this.props,p=f.updateViewport,h=f.viewConfig,v=h.flip,g=v===void 0?!1:v,m=h.rotation,y=m===void 0?0:m,b=f.windowId,w=g?-1*d:d;p(b,{rotation:(y+w)%360})},o.prototype.toggleFlip=function(){var d=this.props,f=d.updateViewport,p=d.viewConfig.flip,h=p===void 0?!1:p,v=d.windowId;f(v,{flip:!h})},o.prototype.render=function(){var d=this,f=this.props,p=f.classes,h=f.containerId,v=f.enabled,g=f.open,m=f.viewer,y=f.windowId,b=f.width,w=f.theme.palette,E=f.viewConfig,P=E.flip,C=P===void 0?!1:P,T=E.brightness,O=T===void 0?100:T,x=E.contrast,A=x===void 0?100:x,D=E.saturate,j=D===void 0?100:D,M=E.grayscale,N=M===void 0?0:M,q=E.invert,z=q===void 0?0:q,H=f.t;if(!m||!v)return null;var U=w.shades.main,F=w.getContrastText(U),B=["xs","sm"].indexOf(b)>=0,G=React.createElement("div",{className:B&&g?p.borderContainer:""},React.createElement(MiradorMenuButton$1,{"aria-expanded":g,"aria-haspopup":!0,"aria-label":H("collapse",{context:g?"open":"close"}),containerId:h,onClick:this.toggleState},g?React.createElement(CloseIcon$1,null):React.createElement(TuneSharpIcon,null)));return React.createElement("div",{className:"MuiPaper-elevation4 "+p.root},B&&G,g&&React.createElement(React.Fragment,null,React.createElement("div",{className:p.borderContainer},React.createElement(ImageRotation,{containerId:h,label:H("rotateRight"),onClick:function(){return d.toggleRotate(90)},variant:"right"}),React.createElement(ImageRotation,{containerId:h,label:H("rotateLeft"),onClick:function(){return d.toggleRotate(-90)},variant:"left"}),React.createElement(ImageFlip,{label:H("flip"),onClick:this.toggleFlip,flipped:C,containerId:h})),React.createElement("div",{className:p.borderContainer},React.createElement(ImageTool$1,{type:"brightness",label:H("brightness"),max:200,windowId:y,value:O,foregroundColor:F,containerId:h,onChange:this.handleChange("brightness")},React.createElement(BrightnessIcon,null)),React.createElement(ImageTool$1,{type:"contrast",label:H("contrast"),max:200,windowId:y,value:A,foregroundColor:F,containerId:h,onChange:this.handleChange("contrast")},React.createElement(ContrastIcon,{style:{transform:"rotate(180deg)"}})),React.createElement(ImageTool$1,{type:"saturate",label:H("saturation"),max:200,windowId:y,value:j,foregroundColor:F,containerId:h,onChange:this.handleChange("saturate")},React.createElement(GradientIcon,null)),React.createElement(ImageTool$1,{type:"grayscale",variant:"toggle",label:H("greyscale"),windowId:y,value:N,backgroundColor:U,foregroundColor:F,containerId:h,onChange:this.handleChange("grayscale")},React.createElement(TonalityIcon,null)),React.createElement(ImageTool$1,{type:"invert",variant:"toggle",label:H("invert"),windowId:y,value:z,foregroundColor:F,containerId:h,onChange:this.handleChange("invert")},React.createElement(InvertColorsIcon,null))),React.createElement("div",{className:B?"":p.borderContainer},React.createElement(MiradorMenuButton$1,{"aria-label":H("revert"),containerId:h,onClick:this.handleReset},React.createElement(ReplaySharpIcon,null)))),!B&&G)},o})(reactExports.Component);MiradorImageTools.propTypes={};MiradorImageTools.defaultProps={enabled:!0,open:!0,viewer:void 0,viewConfig:{}};const MiradorImageTools$1=compose(withStyles(styles$K),withWidth())(MiradorImageTools);var MiradorImageToolsMenuItem=function l(o){var u=o.enabled,d=o.handleClose,f=o.t,p=o.updateWindow,h=o.windowId,v=function(){d(),p(h,{imageToolsEnabled:!u})};return React.createElement(MenuItem$1,{onClick:v},React.createElement(ListItemIcon$1,null,React.createElement(TuneSharpIcon,null)),React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body1"}},f(u?"hide":"show")))};MiradorImageToolsMenuItem.propTypes={};MiradorImageToolsMenuItem.defaultProps={enabled:!0};var translations={de:{brightness:"Helligkeit",collapse_open:"Bildbearbeitung ausblenden",collapse_close:"Bildbearbeitung einblenden",contrast:"Kontrast",flip:"Spiegeln",greyscale:"Darstellung in Graustufen",hide:"Bildbearbeitung verbergen",invert:"Umkehrung der Farben",revert:"Einstellungen zurücksetzen",rotateLeft:"Rotation links",rotateRight:"Rotation rechts",saturation:"Sättigung",show:"Bildbearbeitung anzeigen"},en:{brightness:"Brightness",collapse_open:"Collapse image tools",collapse_close:"Expand image tools",contrast:"Contrast",flip:"Flip",greyscale:"Greyscale",hide:"Hide image tools",invert:"Invert colors",revert:"Revert image",rotateLeft:"Rotate left",rotateRight:"Rotate right",saturation:"Saturation",show:"Show image tools"},fr:{brightness:"Luminosité",collapse_open:"Fermer les outils de réglages de l'image",collapse_close:"Ouvrir les outils de réglages de l'image",contrast:"Contraste",flip:"Miroir",greyscale:"Niveaux de gris",invert:"Inverser les couleurs",revert:"Réinitialiser les réglages",rotateLeft:"Rotation vers la gauche",rotateRight:"Rotation vers la droite",saturation:"Saturation"},sr:{brightness:"Осветљење",collapse_open:"Затворите алат",collapse_close:"Отворите алат",contrast:"Контраст",flip:"Окрени",greyscale:"Црнобело",hideImageTools:"Сакријте алат",invert:"Инверзија боја",revert:"Поништи подешавања",rotateLeft:"Ротирај лево",rotateRight:"Ротирај десно",saturation:"Сатурација",showImageTools:"Прикажите алат"}};const miradorImageToolsPlugin=[{target:"OpenSeadragonViewer",mapDispatchToProps:{updateWindow,updateViewport},mapStateToProps:function l(o,u){var d=u.windowId;return{containerId:getContainerId(o),enabled:getWindowConfig(o,{windowId:d}).imageToolsEnabled||!1,open:getWindowConfig(o,{windowId:d}
154).imageToolsOpen||!1,viewConfig:getViewer(o,{windowId:d})||{}}},mode:"add",component:withTheme(MiradorImageTools$1),config:{translations}},{target:"WindowTopBarPluginMenu",component:MiradorImageToolsMenuItem,mode:"add",mapDispatchToProps:{updateWindow},mapStateToProps:function l(o,u){var d=u.windowId;return{enabled:getWindowConfig(o,{windowId:d}).imageToolsEnabled||!1}}}];var FullscreenSharp={},hasRequiredFullscreenSharp;function requireFullscreenSharp(){if(hasRequiredFullscreenSharp)return FullscreenSharp;hasRequiredFullscreenSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(FullscreenSharp,"__esModule",{value:!0}),FullscreenSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"FullscreenSharp");return FullscreenSharp.default=f,FullscreenSharp}var FullscreenSharpExports=requireFullscreenSharp();const FullscreenIcon=getDefaultExportFromCjs(FullscreenSharpExports);var FullscreenExitSharp={},hasRequiredFullscreenExitSharp;function requireFullscreenExitSharp(){if(hasRequiredFullscreenExitSharp)return FullscreenExitSharp;hasRequiredFullscreenExitSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(FullscreenExitSharp,"__esModule",{value:!0}),FullscreenExitSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExitSharp");return FullscreenExitSharp.default=f,FullscreenExitSharp}var FullscreenExitSharpExports=requireFullscreenExitSharp();const FullscreenExitIcon=getDefaultExportFromCjs(FullscreenExitSharpExports);function _classCallCheck$_(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$_(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$18(d.key),d)}}function _createClass$_(l,o,u){return o&&_defineProperties$_(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$18(l){var o=_toPrimitive$18(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$18(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$X(l,o,u){return o=_getPrototypeOf$X(o),_possibleConstructorReturn$X(l,_isNativeReflectConstruct$X()?Reflect.construct(o,u||[],_getPrototypeOf$X(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$X(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$X(l)}function _assertThisInitialized$X(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$X(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$X=function(){return!!l})()}function _getPrototypeOf$X(l){return _getPrototypeOf$X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$X(l)}function _inherits$X(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$X(l,o)}function _setPrototypeOf$X(l,o){return _setPrototypeOf$X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$X(l,o)}var FullScreenButton$1=(function(l){function o(){return _classCallCheck$_(this,o),_callSuper$X(this,o,arguments)}return _inherits$X(o,l),_createClass$_(o,[{key:"render",value:function(){var d=this.props,f=d.className,p=d.isFullscreenEnabled,h=d.setWorkspaceFullscreen,v=d.t;return React.createElement(MiradorMenuButton$3,{className:f,"aria-label":v(p?"exitFullScreen":"workspaceFullScreen"),onClick:function(){return h(!p)}},p?React.createElement(FullscreenExitIcon,null):React.createElement(FullscreenIcon,null))}}])})(reactExports.Component);FullScreenButton$1.defaultProps={className:void 0,isFullscreenEnabled:!1,t:function l(o){return o}};var mapStateToProps$J=function l(o){return{isFullscreenEnabled:getFullScreenEnabled$1(o)}},mapDispatchToProps$w={setWorkspaceFullscreen:setWorkspaceFullscreen$1},enhance$T=compose$2(withTranslation(),connect(mapStateToProps$J,mapDispatchToProps$w),withPlugins$1("FullScreenButton"));const FullScreenButton=enhance$T(FullScreenButton$1);var BookmarksSharp={},hasRequiredBookmarksSharp;function requireBookmarksSharp(){if(hasRequiredBookmarksSharp)return BookmarksSharp;hasRequiredBookmarksSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(BookmarksSharp,"__esModule",{value:!0}),BookmarksSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M19 18l2 1V1H7v2h12v15zM17 5H3v18l7-3 7 3V5z"}),"BookmarksSharp");return BookmarksSharp.default=f,BookmarksSharp}var BookmarksSharpExports=requireBookmarksSharp();const BookmarksIcon=getDefaultExportFromCjs(BookmarksSharpExports);function _classCallCheck$Z(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$Z(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$17(d.key),d)}}function _createClass$Z(l,o,u){return o&&_defineProperties$Z(l.prototype,o),u&&_defineProperties$Z(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$17(l){var o=_toPrimitive$17(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$17(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$W(l,o,u){return o=_getPrototypeOf$W(o),_possibleConstructorReturn$W(l,_isNativeReflectConstruct$W()?Reflect.construct(o,u||[],_getPrototypeOf$W(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$W(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$W(l)}function _assertThisInitialized$W(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$W(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$W=function(){return!!l})()}function _getPrototypeOf$W(l){return _getPrototypeOf$W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$W(l)}function _inherits$W(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$W(l,o)}function _setPrototypeOf$W(l,o){return _setPrototypeOf$W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$W(l,o)}var WindowList$1=(function(l){function o(){return _classCallCheck$Z(this,o),_callSuper$W(this,o,arguments)}return _inherits$W(o,l),_createClass$Z(o,[{key:"titleContent",value:function(d){var f=this.props,p=f.titles,h=f.t;return p[d]||h("untitled")}},{key:"render",value:function(){var d=this,f=this.props,p=f.containerId,h=f.handleClose,v=f.anchorEl,g=f.windowIds,m=f.focusWindow,y=f.t;return React.createElement(Menu$1,{anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},id:"window-list-menu",container:document.querySelector("#".concat(p," .").concat(ns$1("viewer"))),disableAutoFocusItem:!0,anchorEl:v,open:!!v,onClose:h,TransitionProps:{onEntering:o.focus2ndListIitem}},React.createElement(ListSubheader$1,{role:"presentation",selected:!1,disabled:!0,tabIndex:"-1"},y("openWindows")),g.map(function(b,w){return React.createElement(MenuItem$1,{key:b,onClick:function(P){m(b,!0),h(P)}},React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body1"}},d.titleContent(b)))}))}}],[{key:"focus2ndListIitem",value:function(d){!d.querySelectorAll("li")||d.querySelectorAll("li").length<2||d.querySelectorAll("li")[1].focus()}}])})(reactExports.Component);WindowList$1.defaultProps={anchorEl:null,t:function l(o){return o},titles:{}};var mapDispatchToProps$v={focusWindow:focusWindow$1},mapStateToProps$I=function l(o){return{containerId:getContainerId$1(o),titles:getWindowTitles$1(o),windowIds:getWindowIds$1(o)}},enhance$S=compose$2(withTranslation(),connect(mapStateToProps$I,mapDispatchToProps$v),withPlugins$1("WindowList"));const WindowList=enhance$S(WindowList$1);function _classCallCheck$Y(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$Y(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$16(d.key),d)}}function _createClass$Y(l,o,u){return o&&_defineProperties$Y(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$16(l){var o=_toPrimitive$16(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$16(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$V(l,o,u){return o=_getPrototypeOf$V(o),_possibleConstructorReturn$V(l,_isNativeReflectConstruct$V()?Reflect.construct(o,u||[],_getPrototypeOf$V(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$V(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$V(l)}function _assertThisInitialized$V(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$V(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$V=function(){return!!l})()}function _getPrototypeOf$V(l){return _getPrototypeOf$V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$V(l)}function _inherits$V(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$V(l,o)}function _setPrototypeOf$V(l,o){return _setPrototypeOf$V=Object.
154setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$V(l,o)}var WindowListButton$1=(function(l){function o(u){var d;return _classCallCheck$Y(this,o),d=_callSuper$V(this,o,[u]),d.state={windowListAnchor:null},d.handleClose=d.handleClose.bind(d),d.handleOpen=d.handleOpen.bind(d),d}return _inherits$V(o,l),_createClass$Y(o,[{key:"handleClose",value:function(){this.setState({windowListAnchor:null})}},{key:"handleOpen",value:function(d){this.setState({windowListAnchor:d.currentTarget})}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.disabled,v=f.t,g=f.windowCount,m=this.state.windowListAnchor;return React.createElement(React.Fragment,null,React.createElement(MiradorMenuButton$3,{"aria-haspopup":"true","aria-label":v("listAllOpenWindows"),"aria-owns":m?"window-list":null,className:classNames(p.ctrlBtn,m?p.ctrlBtnSelected:null),disabled:h,badge:!0,BadgeProps:{badgeContent:g,classes:{badge:p.badge}},onClick:function(b){return d.handleOpen(b)}},React.createElement(BookmarksIcon,null)),!!m&&React.createElement(WindowList,{anchorEl:m,id:"window-list",open:!!m,handleClose:this.handleClose}))}}])})(reactExports.Component);WindowListButton$1.defaultProps={classes:{},disabled:!1};var mapStateToProps$H=function l(o){return{disabled:getWorkspace$1(o).isWorkspaceAddVisible,windowCount:getWindowIds$1(o).length}},styles$J=function l(o){return{badge:{paddingLeft:12},ctrlBtn:{margin:o.spacing(1)},ctrlBtnSelected:{backgroundColor:o.palette.action.selected}}},enhance$R=compose$2(withTranslation(),withStyles$2(styles$J),connect(mapStateToProps$H,null),withPlugins$1("WindowListButton"));const WindowListButton=enhance$R(WindowListButton$1);var leafletSrc$1={exports:{}};var leafletSrc=leafletSrc$1.exports,hasRequiredLeafletSrc;function requireLeafletSrc(){return hasRequiredLeafletSrc||(hasRequiredLeafletSrc=1,(function(l,o){(function(u,d){d(o)})(leafletSrc,(function(u){var d="1.9.4";function f(_){var I,W,X,ne;for(W=1,X=arguments.length;W<X;W++){ne=arguments[W];for(I in ne)_[I]=ne[I]}return _}var p=Object.create||(function(){function _(){}return function(I){return _.prototype=I,new _}})();function h(_,I){var W=Array.prototype.slice;if(_.bind)return _.bind.apply(_,W.call(arguments,1));var X=W.call(arguments,2);return function(){return _.apply(I,X.length?X.concat(W.call(arguments)):arguments)}}var v=0;function g(_){return"_leaflet_id"in _||(_._leaflet_id=++v),_._leaflet_id}function m(_,I,W){var X,ne,ye,Le;return Le=function(){X=!1,ne&&(ye.apply(W,ne),ne=!1)},ye=function(){X?ne=arguments:(_.apply(W,arguments),setTimeout(Le,I),X=!0)},ye}function y(_,I,W){var X=I[1],ne=I[0],ye=X-ne;return _===X&&W?_:((_-ne)%ye+ye)%ye+ne}function b(){return!1}function w(_,I){if(I===!1)return _;var W=Math.pow(10,I===void 0?6:I);return Math.round(_*W)/W}function E(_){return _.trim?_.trim():_.replace(/^\s+|\s+$/g,"")}function P(_){return E(_).split(/\s+/)}function C(_,I){Object.prototype.hasOwnProperty.call(_,"options")||(_.options=_.options?p(_.options):{});for(var W in I)_.options[W]=I[W];return _.options}function T(_,I,W){var X=[];for(var ne in _)X.push(encodeURIComponent(W?ne.toUpperCase():ne)+"="+encodeURIComponent(_[ne]));return(!I||I.indexOf("?")===-1?"?":"&")+X.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function x(_,I){return _.replace(O,function(W,X){var ne=I[X];if(ne===void 0)throw new Error("No value provided for variable "+W);return typeof ne=="function"&&(ne=ne(I)),ne})}var A=Array.isArray||function(_){return Object.prototype.toString.call(_)==="[object Array]"};function D(_,I){for(var W=0;W<_.length;W++)if(_[W]===I)return W;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(_){return window["webkit"+_]||window["moz"+_]||window["ms"+_]}var N=0;function q(_){var I=+new Date,W=Math.max(0,16-(I-N));return N=I+W,window.setTimeout(_,W)}var z=window.requestAnimationFrame||M("RequestAnimationFrame")||q,H=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(_){window.clearTimeout(_)};function U(_,I,W){if(W&&z===q)_.call(I);else return z.call(window,h(_,I))}function F(_){_&&H.call(window,_)}var B={__proto__:null,extend:f,create:p,bind:h,get lastId(){return v},stamp:g,throttle:m,wrapNum:y,falseFn:b,formatNum:w,trim:E,splitWords:P,setOptions:C,getParamString:T,template:x,isArray:A,indexOf:D,emptyImageUrl:j,requestFn:z,cancelFn:H,requestAnimFrame:U,cancelAnimFrame:F};function G(){}G.extend=function(_){var I=function(){C(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},W=I.__super__=this.prototype,X=p(W);X.constructor=I,I.prototype=X;for(var ne in this)Object.prototype.hasOwnProperty.call(this,ne)&&ne!=="prototype"&&ne!=="__super__"&&(I[ne]=this[ne]);return _.statics&&f(I,_.statics),_.includes&&(Q(_.includes),f.apply(null,[X].concat(_.includes))),f(X,_),delete X.statics,delete X.includes,X.options&&(X.options=W.options?p(W.options):{},f(X.options,_.options)),X._initHooks=[],X.callInitHooks=function(){if(!this._initHooksCalled){W.callInitHooks&&W.callInitHooks.call(this),this._initHooksCalled=!0;for(var ye=0,Le=X._initHooks.length;ye<Le;ye++)X._initHooks[ye].call(this)}},I}
154,G.include=function(_){var I=this.prototype.options;return f(this.prototype,_),_.options&&(this.prototype.options=I,this.mergeOptions(_.options)),this},G.mergeOptions=function(_){return f(this.prototype.options,_),this},G.addInitHook=function(_){var I=Array.prototype.slice.call(arguments,1),W=typeof _=="function"?_:function(){this[_].apply(this,I)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(W),this};function Q(_){if(!(typeof L>"u"||!L||!L.Mixin)){_=A(_)?_:[_];for(var I=0;I<_.length;I++)_[I]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var K={on:function(_,I,W){if(typeof _=="object")for(var X in _)this._on(X,_[X],I);else{_=P(_);for(var ne=0,ye=_.length;ne<ye;ne++)this._on(_[ne],I,W)}return this},off:function(_,I,W){if(!arguments.length)delete this._events;else if(typeof _=="object")for(var X in _)this._off(X,_[X],I);else{_=P(_);for(var ne=arguments.length===1,ye=0,Le=_.length;ye<Le;ye++)ne?this._off(_[ye]):this._off(_[ye],I,W)}return this},_on:function(_,I,W,X){if(typeof I!="function"){console.warn("wrong listener type: "+typeof I);return}if(this._listens(_,I,W)===!1){W===this&&(W=void 0);var ne={fn:I,ctx:W};X&&(ne.once=!0),this._events=this._events||{},this._events[_]=this._events[_]||[],this._events[_].push(ne)}},_off:function(_,I,W){var X,ne,ye;if(this._events&&(X=this._events[_],!!X)){if(arguments.length===1){if(this._firingCount)for(ne=0,ye=X.length;ne<ye;ne++)X[ne].fn=b;delete this._events[_];return}if(typeof I!="function"){console.warn("wrong listener type: "+typeof I);return}var Le=this._listens(_,I,W);
154if(Le!==!1){var Ke=X[Le];this._firingCount&&(Ke.fn=b,this._events[_]=X=X.slice()),X.splice(Le,1)}}},fire:function(_,I,W){if(!this.listens(_,W))return this;var X=f({},I,{type:_,target:this,sourceTarget:I&&I.sourceTarget||this});if(this._events){var ne=this._events[_];if(ne){this._firingCount=this._firingCount+1||1;for(var ye=0,Le=ne.length;ye<Le;ye++){var Ke=ne[ye],tt=Ke.fn;Ke.once&&this.off(_,tt,Ke.ctx),tt.call(Ke.ctx||this,X)}this._firingCount--}}return W&&this._propagateEvent(X),this},listens:function(_,I,W,X){typeof _!="string"&&console.warn('"string" type argument expected');var ne=I;typeof I!="function"&&(X=!!I,ne=void 0,W=void 0);var ye=this._events&&this._events[_];if(ye&&ye.length&&this._listens(_,ne,W)!==!1)return!0;if(X){for(var Le in this._eventParents)if(this._eventParents[Le].listens(_,I,W,X))return!0}return!1},_listens:function(_,I,W){if(!this._events)return!1;var X=this._events[_]||[];if(!I)return!!X.length;W===this&&(W=void 0);for(var ne=0,ye=X.length;ne<ye;ne++)if(X[ne].fn===I&&X[ne].ctx===W)return ne;return!1},once:function(_,I,W){if(typeof _=="object")for(var X in _)this._on(X,_[X],I,!0);else{_=P(_);for(var ne=0,ye=_.length;ne<ye;ne++)this._on(_[ne],I,W,!0)}return this},addEventParent:function(_){return this._eventParents=this._eventParents||{},this._eventParents[g(_)]=_,this},removeEventParent:function(_){return this._eventParents&&delete this._eventParents[g(_)],this},_propagateEvent:function(_){for(var I in this._eventParents)this._eventParents[I].fire(_.type,f({layer:_.target,propagatedFrom:_.target},_),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var Z=G.extend(K);function te(_,I,W){this.x=W?Math.round(_):_,this.y=W?Math.round(I):I}var oe=Math.trunc||function(_){return _>0?Math.floor(_):Math.ceil(_)};te.prototype={clone:function(){return new te(this.x,this.y)},add:function(_){return this.clone()._add(fe(_))},_add:function(_){return this.x+=_.x,this.y+=_.y,this},subtract:function(_){return this.clone()._subtract(fe(_))},_subtract:function(_){return this.x-=_.x,this.y-=_.y,this},divideBy:function(_){return this.clone()._divideBy(_)},_divideBy:function(_){return this.x/=_,this.y/=_,this},multiplyBy:function(_){return this.clone()._multiplyBy(_)},_multiplyBy:function(_){return this.x*=_,this.y*=_,this},scaleBy:function(_){return new te(this.x*_.x,this.y*_.y)},unscaleBy:function(_){return new te(this.x/_.x,this.y/_.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=oe(this.x),this.y=oe(this.y),this},distanceTo:function(_){_=fe(_);var I=_.x-this.x,W=_.y-this.y;return Math.sqrt(I*I+W*W)},equals:function(_){return _=fe(_),_.x===this.x&&_.y===this.y},contains:function(_){return _=fe(_),Math.abs(_.x)<=Math.abs(this.x)&&Math.abs(_.y)<=Math.abs(this.y)},toString:function(){return"Point("+w(this.x)+", "+w(this.y)+")"}};function fe(_,I,W){return _ instanceof te?_:A(_)?new te(_[0],_[1]):_==null?_:typeof _=="object"&&"x"in _&&"y"in _?new te(_.x,_.y):new te(_,I,W)}function le(_,I){if(_)for(var W=I?[_,I]:_,X=0,ne=W.length;X<ne;X++)this.extend(W[X])}le.prototype={extend:function(_){var I,W;if(!_)return this;if(_ instanceof te||typeof _[0]=="number"||"x"in _)I=W=fe(_);else if(_=Re(_),I=_.min,W=_.max,!I||!W)return this;return!this.min&&!this.max?(this.min=I.clone(),this.max=W.clone()):(this.min.x=Math.min(I.x,this.min.x),this.max.x=Math.max(W.x,this.max.x),this.min.y=Math.min(I.y,this.min.y),this.max.y=Math.max(W.y,this.max.y)),this},getCenter:function(_){return fe((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,_)},getBottomLeft:function(){return fe(this.min.x,this.max.y)},getTopRight:function(){return fe(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(_){var I,W;return typeof _[0]=="number"||_ instanceof te?_=fe(_):_=Re(_),_ instanceof le?(I=_.min,W=_.max):I=W=_,I.x>=this.min.x&&W.x<=this.max.x&&I.y>=this.min.y&&W.y<=this.max.y},intersects:function(_){_=Re(_);var I=this.min,W=this.max,X=_.min,ne=_.max,ye=ne.x>=I.x&&X.x<=W.x,Le=ne.y>=I.y&&X.y<=W.y;return ye&&Le},overlaps:function(_){_=Re(_);var I=this.min,W=this.max,X=_.min,ne=_.max,ye=ne.x>I.x&&X.x<W.x,Le=ne.y>I.y&&X.y<W.y;return ye&&Le},isValid:function(){return!!(this.min&&this.max)},pad:function(_){var I=this.min,W=this.max,X=Math.abs(I.x-W.x)*_,ne=Math.abs(I.y-W.y)*_;return Re(fe(I.x-X,I.y-ne),fe(W.x+X,W.y+ne))},equals:function(_){return _?(_=Re(_),this.min.equals(_.getTopLeft())&&this.max.equals(_.getBottomRight())):!1}};function Re(_,I){return!_||_ instanceof le?_:new le(_,I)}function Ae(_,I){if(_)for(var W=I?[_,I]:_,X=0,ne=W.length;X<ne;X++)this.extend(W[X])}Ae.prototype={extend:function(_){var I=this._southWest,W=this._northEast,X,ne;if(_ instanceof ee)X=_,ne=_;else if(_ instanceof Ae){if(X=_._southWest,ne=_._northEast,!X||!ne)return this}else return _?this.extend(se(_)||_e(_)):this;return!I&&!W?(this._southWest=new ee(X.lat,X.lng),this._northEast=new ee(ne.lat,ne.lng)):(I.lat=Math.min(X.lat,I.lat),I.lng=Math.min(X.lng,I.lng),W.lat=Math.max(ne.lat,W.lat),W.lng=Math.max(ne.lng,W.lng)),this},pad:function(_){var I=this._southWest,W=this._northEast,X=Math.abs(I.lat-W.lat)*_,ne=Math.abs(I.lng-W.lng)*_;return new Ae(new ee(I.lat-X,I.lng-ne),new ee(W.lat+X,W.lng+ne))},getCenter:function(){return new ee((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new ee(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
154,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(_){typeof _[0]=="number"||_ instanceof ee||"lat"in _?_=se(_):_=_e(_);var I=this._southWest,W=this._northEast,X,ne;return _ instanceof Ae?(X=_.getSouthWest(),ne=_.getNorthEast()):X=ne=_,X.lat>=I.lat&&ne.lat<=W.lat&&X.lng>=I.lng&&ne.lng<=W.lng},intersects:function(_){_=_e(_);var I=this._southWest,W=this._northEast,X=_.getSouthWest(),ne=_.getNorthEast(),ye=ne.lat>=I.lat&&X.lat<=W.lat,Le=ne.lng>=I.lng&&X.lng<=W.lng;return ye&&Le},overlaps:function(_){_=_e(_);var I=this._southWest,W=this._northEast,X=_.getSouthWest(),ne=_.getNorthEast(),ye=ne.lat>I.lat&&X.lat<W.lat,Le=ne.lng>I.lng&&X.lng<W.lng;return ye&&Le},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(_,I){return _?(_=_e(_),this._southWest.equals(_.getSouthWest(),I)&&this._northEast.equals(_.getNorthEast(),I)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function _e(_,I){return _ instanceof Ae?_:new Ae(_,I)}function ee(_,I,W){if(isNaN(_)||isNaN(I))throw new Error("Invalid LatLng object: ("+_+", "+I+")");this.lat=+_,this.lng=+I,W!==void 0&&(this.alt=+W)}ee.prototype={equals:function(_,I){if(!_)return!1;_=se(_);var W=Math.max(Math.abs(this.lat-_.lat),Math.abs(this.lng-_.lng));return W<=(I===void 0?1e-9:I)},toString:function(_){return"LatLng("+w(this.lat,_)+", "+w(this.lng,_)+")"},distanceTo:function(_){return Ee.distance(this,se(_))},wrap:function(){return Ee.wrapLatLng(this)},toBounds:function(_){var I=180*_/40075017,W=I/Math.cos(Math.PI/180*this.lat);return _e([this.lat-I,this.lng-W],[this.lat+I,this.lng+W])},clone:function(){return new ee(this.lat,this.lng,this.alt)}};function se(_,I,W){return _ instanceof ee?_:A(_)&&typeof _[0]!="object"?_.length===3?new ee(_[0],_[1],_[2]):_.length===2?new ee(_[0],_[1]):null:_==null?_:typeof _=="object"&&"lat"in _?new ee(_.lat,"lng"in _?_.lng:_.lon,_.alt):I===void 0?null:new ee(_,I,W)}var $e={latLngToPoint:function(_,I){var W=this.projection.project(_),X=this.scale(I);return this.transformation._transform(W,X)},pointToLatLng:function(_,I){var W=this.scale(I),X=this.transformation.untransform(_,W);return this.projection.unproject(X)},project:function(_){return this.projection.project(_)},unproject:function(_){return this.projection.unproject(_)},scale:function(_){return 256*Math.pow(2,_)},zoom:function(_){return Math.log(_/256)/Math.LN2},getProjectedBounds:function(_){if(this.infinite)return null;var I=this.projection.bounds,W=this.scale(_),X=this.transformation.transform(I.min,W),ne=this.transformation.transform(I.max,W);return new le(X,ne)},infinite:!1,wrapLatLng:function(_){var I=this.wrapLng?y(_.lng,this.wrapLng,!0):_.lng,W=this.wrapLat?y(_.lat,this.wrapLat,!0):_.lat,X=_.alt;return new ee(W,I,X)},wrapLatLngBounds:function(_){var I=_.getCenter(),W=this.wrapLatLng(I),X=I.lat-W.lat,ne=I.lng-W.lng;if(X===0&&ne===0)return _;
154var ye=_.getSouthWest(),Le=_.getNorthEast(),Ke=new ee(ye.lat-X,ye.lng-ne),tt=new ee(Le.lat-X,Le.lng-ne);return new Ae(Ke,tt)}},Ee=f({},$e,{wrapLng:[-180,180],R:6371e3,distance:function(_,I){var W=Math.PI/180,X=_.lat*W,ne=I.lat*W,ye=Math.sin((I.lat-_.lat)*W/2),Le=Math.sin((I.lng-_.lng)*W/2),Ke=ye*ye+Math.cos(X)*Math.cos(ne)*Le*Le,tt=2*Math.atan2(Math.sqrt(Ke),Math.sqrt(1-Ke));return this.R*tt}}),xe=6378137,Se={R:xe,MAX_LATITUDE:85.0511287798,project:function(_){var I=Math.PI/180,W=this.MAX_LATITUDE,X=Math.max(Math.min(W,_.lat),-W),ne=Math.sin(X*I);return new te(this.R*_.lng*I,this.R*Math.log((1+ne)/(1-ne))/2)},unproject:function(_){var I=180/Math.PI;return new ee((2*Math.atan(Math.exp(_.y/this.R))-Math.PI/2)*I,_.x*I/this.R)},bounds:(function(){var _=xe*Math.PI;return new le([-_,-_],[_,_])})()};function Ie(_,I,W,X){if(A(_)){this._a=_[0],this._b=_[1],this._c=_[2],this._d=_[3];return}this._a=_,this._b=I,this._c=W,this._d=X}Ie.prototype={transform:function(_,I){return this._transform(_.clone(),I)},_transform:function(_,I){return I=I||1,_.x=I*(this._a*_.x+this._b),_.y=I*(this._c*_.y+this._d),_},untransform:function(_,I){return I=I||1,new te((_.x/I-this._b)/this._a,(_.y/I-this._d)/this._c)}};function ge(_,I,W,X){return new Ie(_,I,W,X)}var Y=f({},Ee,{code:"EPSG:3857",projection:Se,transformation:(function(){var _=.5/(Math.PI*Se.R);return ge(_,.5,-_,.5)})()}),ie=f({},Y,{code:"EPSG:900913"});function ce(_){return document.createElementNS("http://www.w3.org/2000/svg",_)}function ue(_,I){var W="",X,ne,ye,Le,Ke,tt;for(X=0,ye=_.length;X<ye;X++){for(Ke=_[X],ne=0,Le=Ke.length;ne<Le;ne++)tt=Ke[ne],W+=(ne?"L":"M")+tt.x+" "+tt.y;W+=I?mt.svg?"z":"x":""}return W||"M0 0"}var pe=document.documentElement.style,Te="ActiveXObject"in window,Ce=Te&&!document.addEventListener,Fe="msLaunchUri"in navigator&&!("documentMode"in document),He=Ct("webkit"),we=Ct("android"),Oe=Ct("android 2")||Ct("android 3"),Ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),qe=we&&Ct("Google")&&Ne<537&&!("AudioNode"in window),Be=!!window.opera,Ve=!Fe&&Ct("chrome"),Ye=Ct("gecko")&&!He&&!Be&&!Te,Ge=!Ve&&Ct("safari"),dt=Ct("phantom"),ze="OTransition"in pe,nt=navigator.platform.indexOf("Win")===0,Ze=Te&&"transition"in pe,_t="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Oe,ae="MozPerspective"in pe,re=!window.L_DISABLE_3D&&(Ze||_t||ae)&&!ze&&!dt,he=typeof orientation<"u"||Ct("mobile"),Pe=he&&He,We=he&&_t,yt=!window.PointerEvent&&window.MSPointerEvent,ct=!!(window.PointerEvent||yt),ht="ontouchstart"in window||!!window.TouchEvent,bt=!window.L_NO_TOUCH&&(ht||ct),xt=he&&Be,Rt=he&&Ye,ut=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Me=(function(){var _=!1;try{var I=Object.defineProperty({},"passive",{get:function(){_=!0}});window.addEventListener("testPassiveEventSupport",b,I),window.removeEventListener("testPassiveEventSupport",b,I)}catch{}return _})(),vt=(function(){return!!document.createElement("canvas").getContext})(),Ot=!!(document.createElementNS&&ce("svg").createSVGRect),ft=!!Ot&&(function(){var _=document.createElement("div");return _.innerHTML="<svg/>",(_.firstChild&&_.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),wt=!Ot&&(function(){try{var _=document.createElement("div");_.innerHTML='<v:shape adj="1"/>';var I=_.firstChild;return I.style.behavior="url(#default#VML)",I&&typeof I.adj=="object"}catch{return!1}})(),Nt=navigator.platform.indexOf("Mac")===0,jt=navigator.platform.indexOf("Linux")===0;function Ct(_){return navigator.userAgent.toLowerCase().indexOf(_)>=0}var mt={ie:Te,ielt9:Ce,edge:Fe,webkit:He,android:we,android23:Oe,androidStock:qe,opera:Be,chrome:Ve,gecko:Ye,safari:Ge,phantom:dt,opera12:ze,win:nt,ie3d:Ze,webkit3d:_t,gecko3d:ae,any3d:re,mobile:he,mobileWebkit:Pe,mobileWebkit3d:We,msPointer:yt,pointer:ct,touch:bt,touchNative:ht,mobileOpera:xt,mobileGecko:Rt,retina:ut,passiveEvents:Me,canvas:vt,svg:Ot,vml:wt,inlineSvg:ft,mac:Nt,linux:jt},qt=mt.msPointer?"MSPointerDown":"pointerdown",Er=mt.msPointer?"MSPointerMove":"pointermove",Kt=mt.msPointer?"MSPointerUp":"pointerup",lr=mt.msPointer?"MSPointerCancel":"pointercancel",Cr={touchstart:qt,touchmove:Er,touchend:Kt,touchcancel:lr},Yr={touchstart:br,touchmove:ir,touchend:ir,touchcancel:ir},cr={},Pr=!1;function vr(_,I,W){return I==="touchstart"&&At(),Yr[I]?(W=Yr[I].bind(this,W),_.addEventListener(Cr[I],W,!1),W):(console.warn("wrong event specified:",I),b)}function ln(_,I,W){if(!Cr[I]){console.warn("wrong event specified:",I);return}_.removeEventListener(Cr[I],W,!1)}function kt(_){cr[_.pointerId]=_}function je(_){cr[_.pointerId]&&(cr[_.pointerId]=_)}function Et(_){delete cr[_.pointerId]}function At(){Pr||(document.addEventListener(qt,kt,!0),document.addEventListener(Er,je,!0),document.addEventListener(Kt,Et,!0),document.addEventListener(lr,Et,!0),Pr=!0)}function ir(_,I){if(I.pointerType!==(I.MSPOINTER_TYPE_MOUSE||"mouse")){I.touches=[];for(var W in cr)I.touches.push(cr[W]);I.changedTouches=[I],_(I)}}function br(_,I){I.MSPOINTER_TYPE_TOUCH&&I.pointerType===I.MSPOINTER_TYPE_TOUCH&&Wr(I),ir(_,I)}function _r(_){var I={},W,X;for(X in _)W=_[X],I[X]=W&&W.bind?W.bind(_):W;return _=I,I.type="dblclick",I.detail=2,I.isTrusted=!1,I._simulated=!0,I}var Ar=200;function Lr(_,I){_.addEventListener("dblclick",I);var W=0,X;function ne(ye){if(ye.detail!==1){X=ye.detail;return}if(!(ye.pointerType==="mouse"||ye.sourceCapabilities&&!ye.sourceCapabilities.firesTouchEvents)){var Le=Ho(ye);if(!(Le.some(function(tt){return tt instanceof HTMLLabelElement&&tt.attributes.for})&&!Le.some(function(tt){return tt instanceof HTMLInputElement||tt instanceof HTMLSelectElement}))){var Ke=Date.now();Ke-W<=Ar?(X++,X===2&&I(_r(ye))):X=1,W=Ke}}}return _.addEventListener("click",ne),{dblclick:I,simDblclick:ne}}function mn(_,I){_.removeEventListener("dblclick",I.dblclick),_.removeEventListener("click",I.simDblclick)}var kn=bn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wr=bn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Nn=wr==="webkitTransition"||wr==="OTransition"?wr+"End":"transitionend";function rn(_){return typeof _=="string"?document.getElementById(_):_}function yn(_,I){var W=_.style[I]||_.currentStyle&&_.currentStyle[I];if((!W||W==="auto")&&document.defaultView){var X=document.defaultView.getComputedStyle(_,null);W=X?X[I]:null}return W==="auto"?null:W}function Qt(_,I,W){var X=document.createElement(_);return X.className=I||"",W&&W.appendChild(X),X}function mr(_){var I=_.parentNode;I&&I.removeChild(_)}function un(_){for(;_.firstChild;)_.removeChild(_.firstChild)}function Pt(_){var I=_.parentNode;I&&I.lastChild!==_&&I.appendChild(_)}function $t(_){var I=_.parentNode;I&&I.firstChild!==_&&I.insertBefore(_,I.firstChild)}
154function rt(_,I){if(_.classList!==void 0)return _.classList.contains(I);var W=or(_);return W.length>0&&new RegExp("(^|\\s)"+I+"(\\s|$)").test(W)}function gt(_,I){if(_.classList!==void 0)for(var W=P(I),X=0,ne=W.length;X<ne;X++)_.classList.add(W[X]);else if(!rt(_,I)){var ye=or(_);qr(_,(ye?ye+" ":"")+I)}}function tr(_,I){_.classList!==void 0?_.classList.remove(I):qr(_,E((" "+or(_)+" ").replace(" "+I+" "," ")))}function qr(_,I){_.className.baseVal===void 0?_.className=I:_.className.baseVal=I}function or(_){return _.correspondingElement&&(_=_.correspondingElement),_.className.baseVal===void 0?_.className:_.className.baseVal}function $r(_,I){"opacity"in _.style?_.style.opacity=I:"filter"in _.style&&dr(_,I)}function dr(_,I){var W=!1,X="DXImageTransform.Microsoft.Alpha";try{W=_.filters.item(X)}catch{if(I===1)return}I=Math.round(I*100),W?(W.Enabled=I!==100,W.Opacity=I):_.style.filter+=" progid:"+X+"(opacity="+I+")"}function bn(_){for(var I=document.documentElement.style,W=0;W<_.length;W++)if(_[W]in I)return _[W];return!1}function Tr(_,I,W){var X=I||new te(0,0);_.style[kn]=(mt.ie3d?"translate("+X.x+"px,"+X.y+"px)":"translate3d("+X.x+"px,"+X.y+"px,0)")+(W?" scale("+W+")":"")}function Yt(_,I){_._leaflet_pos=I,mt.any3d?Tr(_,I):(_.style.left=I.x+"px",_.style.top=I.y+"px")}function Rr(_){return _._leaflet_pos||new te(0,0)}var Dr,Mr,_n;if("onselectstart"in document)Dr=function(){Vt(window,"selectstart",Wr)},Mr=function(){pr(window,"selectstart",Wr)};else{var wn=bn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Dr=function(){if(wn){var _=document.documentElement.style;_n=_[wn],_[wn]="none"}},Mr=function(){wn&&(document.documentElement.style[wn]=_n,_n=void 0)}}function Sn(){Vt(window,"dragstart",Wr)}function mi(){pr(window,"dragstart",Wr)}var Ji,xr;function Ai(_){for(;_.tabIndex===-1;)_=_.parentNode;_.style&&(Gn(),Ji=_,xr=_.style.outlineStyle,_.style.outlineStyle="none",Vt(window,"keydown",Gn))}function Gn(){Ji&&(Ji.style.outlineStyle=xr,Ji=void 0,xr=void 0,pr(window,"keydown",Gn))}function Kn(_){do _=_.parentNode;while((!_.offsetWidth||!_.offsetHeight)&&_!==document.body);return _}function Xr(_){var I=_.getBoundingClientRect();return{x:I.width/_.offsetWidth||1,y:I.height/_.offsetHeight||1,boundingClientRect:I}}var wo={__proto__:null,TRANSFORM:kn,TRANSITION:wr,TRANSITION_END:Nn,get:rn,getStyle:yn,create:Qt,remove:mr,empty:un,toFront:Pt,toBack:$t,hasClass:rt,addClass:gt,removeClass:tr,setClass:qr,getClass:or,setOpacity:$r,testProp:bn,setTransform:Tr,setPosition:Yt,getPosition:Rr,get disableTextSelection(){return Dr},get enableTextSelection(){return Mr},disableImageDrag:Sn,enableImageDrag:mi,preventOutline:Ai,restoreOutline:Gn,getSizedParentNode:Kn,getScale:Xr};function Vt(_,I,W,X){if(I&&typeof I=="object")for(var ne in I)qn(_,ne,I[ne],W);else{I=P(I);for(var ye=0,Le=I.length;ye<Le;ye++)qn(_,I[ye],W,X)}return this}var cn="_leaflet_events";function pr(_,I,W,X){if(arguments.length===1)Qr(_),delete _[cn];else if(I&&typeof I=="object")for(var ne in I)nn(_,ne,I[ne],W);else if(I=P(I),arguments.length===2)Qr(_,function(Ke){return D(I,Ke)!==-1});else for(var ye=0,Le=I.length;ye<Le;ye++)nn(_,I[ye],W,X);return this}function Qr(_,I){for(var W in _[cn]){var X=W.split(/\d/)[0];(!I||I(X))&&nn(_,X,null,null,W)}}
154var yi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function qn(_,I,W,X){var ne=I+g(W)+(X?"_"+g(X):"");if(_[cn]&&_[cn][ne])return this;var ye=function(Ke){return W.call(X||_,Ke||window.event)},Le=ye;!mt.touchNative&&mt.pointer&&I.indexOf("touch")===0?ye=vr(_,I,ye):mt.touch&&I==="dblclick"?ye=Lr(_,ye):"addEventListener"in _?I==="touchstart"||I==="touchmove"||I==="wheel"||I==="mousewheel"?_.addEventListener(yi[I]||I,ye,mt.passiveEvents?{passive:!1}:!1):I==="mouseenter"||I==="mouseleave"?(ye=function(Ke){Ke=Ke||window.event,Zn(_,Ke)&&Le(Ke)},_.addEventListener(yi[I],ye,!1)):_.addEventListener(I,Le,!1):_.attachEvent("on"+I,ye),_[cn]=_[cn]||{},_[cn][ne]=ye}function nn(_,I,W,X,ne){ne=ne||I+g(W)+(X?"_"+g(X):"");var ye=_[cn]&&_[cn][ne];if(!ye)return this;!mt.touchNative&&mt.pointer&&I.indexOf("touch")===0?ln(_,I,ye):mt.touch&&I==="dblclick"?mn(_,ye):"removeEventListener"in _?_.removeEventListener(yi[I]||I,ye,!1):_.detachEvent("on"+I,ye),_[cn][ne]=null}function Dn(_){return _.stopPropagation?_.stopPropagation():_.originalEvent?_.originalEvent._stopped=!0:_.cancelBubble=!0,this}function ki(_){return qn(_,"wheel",Dn),this}function ai(_){return Vt(_,"mousedown touchstart dblclick contextmenu",Dn),_._leaflet_disable_click=!0,this}function Wr(_){return _.preventDefault?_.preventDefault():_.returnValue=!1,this}function En(_){return Wr(_),Dn(_),this}function Ho(_){if(_.composedPath)return _.composedPath();for(var I=[],W=_.target;W;)I.push(W),W=W.parentNode;return I}function pa(_,I){if(!I)return new te(_.clientX,_.clientY);var W=Xr(I),X=W.boundingClientRect;return new te((_.clientX-X.left)/W.x-I.clientLeft,(_.clientY-X.top)/W.y-I.clientTop)}var So=mt.linux&&mt.chrome?window.devicePixelRatio:mt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ir(_){return mt.edge?_.wheelDeltaY/2:_.deltaY&&_.deltaMode===0?-_.deltaY/So:_.deltaY&&_.deltaMode===1?-_.deltaY*20:_.deltaY&&_.deltaMode===2?-_.deltaY*60:_.deltaX||_.deltaZ?0:_.wheelDelta?(_.wheelDeltaY||_.wheelDelta)/2:_.detail&&Math.abs(_.detail)<32765?-_.detail*20:_.detail?_.detail/-32765*60:0}function Zn(_,I){var W=I.relatedTarget;if(!W)return!0;try{for(;W&&W!==_;)W=W.parentNode}catch{return!1}return W!==_}var ha={__proto__:null,on:Vt,off:pr,stopPropagation:Dn,disableScrollPropagation:ki,disableClickPropagation:ai,preventDefault:Wr,stop:En,getPropagationPath:Ho,getMousePosition:pa,getWheelDelta:Ir,isExternalTarget:Zn,addListener:Vt,removeListener:pr},Vo=Z.extend({run:function(_,I,W,X){this.stop(),this._el=_,this._inProgress=!0,this._duration=W||.25,this._easeOutPower=1/Math.max(X||.5,.2),this._startPos=Rr(_),this._offset=I.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=U(this._animate,this),this._step()},_step:function(_){var I=+new Date-this._startTime,W=this._duration*1e3;I<W?this._runFrame(this._easeOut(I/W),_):(this._runFrame(1),this._complete())},_runFrame:function(_,I){var W=this._startPos.add(this._offset.multiplyBy(_));I&&W._round(),Yt(this._el,W),this.fire("step")},_complete:function(){F(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(_){return 1-Math.pow(1-_,this._easeOutPower)}}),Zt=Z.extend({options:{crs:Y,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(_,I){I=C(this,I),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(_),this._initLayout(),this._onResize=h(this._onResize,this),this._initEvents(),I.maxBounds&&this.setMaxBounds(I.maxBounds),I.zoom!==void 0&&(this._zoom=this._limitZoom(I.zoom)),I.center&&I.zoom!==void 0&&this.setView(se(I.center),I.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=wr&&mt.any3d&&!mt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Vt(this._proxy,Nn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
154,setView:function(_,I,W){if(I=I===void 0?this._zoom:this._limitZoom(I),_=this._limitCenter(se(_),I,this.options.maxBounds),W=W||{},this._stop(),this._loaded&&!W.reset&&W!==!0){W.animate!==void 0&&(W.zoom=f({animate:W.animate},W.zoom),W.pan=f({animate:W.animate,duration:W.duration},W.pan));var X=this._zoom!==I?this._tryAnimatedZoom&&this._tryAnimatedZoom(_,I,W.zoom):this._tryAnimatedPan(_,W.pan);if(X)return clearTimeout(this._sizeTimer),this}return this._resetView(_,I,W.pan&&W.pan.noMoveStart),this},setZoom:function(_,I){return this._loaded?this.setView(this.getCenter(),_,{zoom:I}):(this._zoom=_,this)},zoomIn:function(_,I){return _=_||(mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+_,I)},zoomOut:function(_,I){return _=_||(mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-_,I)},setZoomAround:function(_,I,W){var X=this.getZoomScale(I),ne=this.getSize().divideBy(2),ye=_ instanceof te?_:this.latLngToContainerPoint(_),Le=ye.subtract(ne).multiplyBy(1-1/X),Ke=this.containerPointToLatLng(ne.add(Le));return this.setView(Ke,I,{zoom:W})},_getBoundsCenterZoom:function(_,I){I=I||{},_=_.getBounds?_.getBounds():_e(_);var W=fe(I.paddingTopLeft||I.padding||[0,0]),X=fe(I.paddingBottomRight||I.padding||[0,0]),ne=this.getBoundsZoom(_,!1,W.add(X));if(ne=typeof I.maxZoom=="number"?Math.min(I.maxZoom,ne):ne,ne===1/0)return{center:_.getCenter(),zoom:ne};
154var ye=X.subtract(W).divideBy(2),Le=this.project(_.getSouthWest(),ne),Ke=this.project(_.getNorthEast(),ne),tt=this.unproject(Le.add(Ke).divideBy(2).add(ye),ne);return{center:tt,zoom:ne}},fitBounds:function(_,I){if(_=_e(_),!_.isValid())throw new Error("Bounds are not valid.");var W=this._getBoundsCenterZoom(_,I);return this.setView(W.center,W.zoom,I)},fitWorld:function(_){return this.fitBounds([[-90,-180],[90,180]],_)},panTo:function(_,I){return this.setView(_,this._zoom,{pan:I})},panBy:function(_,I){if(_=fe(_).round(),I=I||{},!_.x&&!_.y)return this.fire("moveend");if(I.animate!==!0&&!this.getSize().contains(_))return this._resetView(this.unproject(this.project(this.getCenter()).add(_)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Vo,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),I.noMoveStart||this.fire("movestart"),I.animate!==!1){gt(this._mapPane,"leaflet-pan-anim");var W=this._getMapPanePos().subtract(_).round();this._panAnim.run(this._mapPane,W,I.duration||.25,I.easeLinearity)}else this._rawPanBy(_),this.fire("move").fire("moveend");return this},flyTo:function(_,I,W){if(W=W||{},W.animate===!1||!mt.any3d)return this.setView(_,I,W);this._stop();var X=this.project(this.getCenter()),ne=this.project(_),ye=this.getSize(),Le=this._zoom;_=se(_),I=I===void 0?Le:I;var Ke=Math.max(ye.x,ye.y),tt=Ke*this.getZoomScale(Le,I),St=ne.distanceTo(X)||1,Dt=1.42,Ut=Dt*Dt;function Jt(Vr){var go=Vr?-1:1,Xa=Vr?tt:Ke,Ws=tt*tt-Ke*Ke+go*Ut*Ut*St*St,Ma=2*Xa*Ut*St,Pa=Ws/Ma,La=Math.sqrt(Pa*Pa+1)-Pa,Na=La<1e-9?-18:Math.log(La);return Na}function Gr(Vr){return(Math.exp(Vr)-Math.exp(-Vr))/2}function er(Vr){return(Math.exp(Vr)+Math.exp(-Vr))/2}function gr(Vr){return Gr(Vr)/er(Vr)}var zr=Jt(0);function Hr(Vr){return Ke*(er(zr)/er(zr+Dt*Vr))}function xn(Vr){return Ke*(er(zr)*gr(zr+Dt*Vr)-Gr(zr))/Ut}function vo(Vr){return 1-Math.pow(1-Vr,1.5)}var ko=Date.now(),vn=(Jt(1)-zr)/Dt,Ca=W.duration?1e3*W.duration:1e3*vn*.8;function Da(){var Vr=(Date.now()-ko)/Ca,go=vo(Vr)*vn;Vr<=1?(this._flyToFrame=U(Da,this),this._move(this.unproject(X.add(ne.subtract(X).multiplyBy(xn(go)/St)),Le),this.getScaleZoom(Ke/Hr(go),Le),{flyTo:!0})):this._move(_,I)._moveEnd(!0)}return this._moveStart(!0,W.noMoveStart),Da.call(this),this},flyToBounds:function(_,I){var W=this._getBoundsCenterZoom(_,I);return this.flyTo(W.center,W.zoom,I)}
154,setMaxBounds:function(_){return _=_e(_),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),_.isValid()?(this.options.maxBounds=_,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(_){var I=this.options.minZoom;return this.options.minZoom=_,this._loaded&&I!==_&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(_):this},setMaxZoom:function(_){var I=this.options.maxZoom;return this.options.maxZoom=_,this._loaded&&I!==_&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(_):this},panInsideBounds:function(_,I){this._enforcingBounds=!0;var W=this.getCenter(),X=this._limitCenter(W,this._zoom,_e(_));return W.equals(X)||this.panTo(X,I),this._enforcingBounds=!1,this},panInside:function(_,I){I=I||{};var W=fe(I.paddingTopLeft||I.padding||[0,0]),X=fe(I.paddingBottomRight||I.padding||[0,0]),ne=this.project(this.getCenter()),ye=this.project(_),Le=this.getPixelBounds(),Ke=Re([Le.min.add(W),Le.max.subtract(X)]),tt=Ke.getSize();if(!Ke.contains(ye)){this._enforcingBounds=!0;var St=ye.subtract(Ke.getCenter()),Dt=Ke.extend(ye).getSize().subtract(tt);ne.x+=St.x<0?-Dt.x:Dt.x,ne.y+=St.y<0?-Dt.y:Dt.y,this.panTo(this.unproject(ne),I),this._enforcingBounds=!1}return this},invalidateSize:function(_){if(!this._loaded)return this;_=f({animate:!1,pan:!0},_===!0?{animate:!0}:_);var I=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var W=this.getSize(),X=I.divideBy(2).round(),ne=W.divideBy(2).round(),ye=X.subtract(ne);return!ye.x&&!ye.y?this:(_.animate&&_.pan?this.panBy(ye):(_.pan&&this._rawPanBy(ye),this.fire("move"),_.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:I,newSize:W}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(_){if(_=this._locateOptions=f({timeout:1e4,watch:!1},_),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var I=h(this._handleGeolocationResponse,this),W=h(this._handleGeolocationError,this);return _.watch?this._locationWatchId=navigator.geolocation.watchPosition(I,W,_):navigator.geolocation.getCurrentPosition(I,W,_),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(_){if(this._container._leaflet_id){var I=_.code,W=_.message||(I===1?"permission denied":I===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:I,message:"Geolocation error: "+W+"."})}},_handleGeolocationResponse:function(_){if(this._container._leaflet_id){var I=_.coords.latitude,W=_.coords.longitude,X=new ee(I,W),ne=X.toBounds(_.coords.accuracy*2),ye=this._locateOptions;if(ye.setView){var Le=this.getBoundsZoom(ne);this.setView(X,ye.maxZoom?Math.min(Le,ye.maxZoom):Le)}var Ke={latlng:X,bounds:ne,timestamp:_.timestamp};for(var tt in _.coords)typeof _.coords[tt]=="number"&&(Ke[tt]=_.coords[tt]);this.fire("locationfound",Ke)}},addHandler:function(_,I){if(!I)return this;var W=this[_]=new I(this);return this._handlers.push(W),this.options[_]&&W.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),mr(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(F(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var _;
154for(_ in this._layers)this._layers[_].remove();for(_ in this._panes)mr(this._panes[_]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(_,I){var W="leaflet-pane"+(_?" leaflet-"+_.replace("Pane","")+"-pane":""),X=Qt("div",W,I||this._mapPane);return _&&(this._panes[_]=X),X},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var _=this.getPixelBounds(),I=this.unproject(_.getBottomLeft()),W=this.unproject(_.getTopRight());return new Ae(I,W)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(_,I,W){_=_e(_),W=fe(W||[0,0]);var X=this.getZoom()||0,ne=this.getMinZoom(),ye=this.getMaxZoom(),Le=_.getNorthWest(),Ke=_.getSouthEast(),tt=this.getSize().subtract(W),St=Re(this.project(Ke,X),this.project(Le,X)).getSize(),Dt=mt.any3d?this.options.zoomSnap:1,Ut=tt.x/St.x,Jt=tt.y/St.y,Gr=I?Math.max(Ut,Jt):Math.min(Ut,Jt);return X=this.getScaleZoom(Gr,X),Dt&&(X=Math.round(X/(Dt/100))*(Dt/100),X=I?Math.ceil(X/Dt)*Dt:Math.floor(X/Dt)*Dt),Math.max(ne,Math.min(ye,X))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new te(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(_,I){var W=this._getTopLeftPoint(_,I);return new le(W,W.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(_){return this.options.crs.getProjectedBounds(_===void 0?this.getZoom():_)},getPane:function(_){return typeof _=="string"?this._panes[_]:_},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(_,I){var W=this.options.crs;return I=I===void 0?this._zoom:I,W.scale(_)/W.scale(I)},getScaleZoom:function(_,I){var W=this.options.crs;I=I===void 0?this._zoom:I;var X=W.zoom(_*W.scale(I));return isNaN(X)?1/0:X},project:function(_,I){return I=I===void 0?this._zoom:I,this.options.crs.latLngToPoint(se(_),I)},unproject:function(_,I){return I=I===void 0?this._zoom:I,this.options.crs.pointToLatLng(fe(_),I)},layerPointToLatLng:function(_){var I=fe(_).add(this.getPixelOrigin());return this.unproject(I)},latLngToLayerPoint:function(_){var I=this.project(se(_))._round();return I._subtract(this.getPixelOrigin())},wrapLatLng:function(_){return this.options.crs.wrapLatLng(se(_))},wrapLatLngBounds:function(_){return this.options.crs.wrapLatLngBounds(_e(_))},distance:function(_,I){return this.options.crs.distance(se(_),se(I))},containerPointToLayerPoint:function(_){return fe(_).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(_){return fe(_).add(this._getMapPanePos())},containerPointToLatLng:function(_){var I=this.containerPointToLayerPoint(fe(_));return this.layerPointToLatLng(I)},latLngToContainerPoint:function(_){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(_)))},mouseEventToContainerPoint:function(_){return pa(_,this._container)},mouseEventToLayerPoint:function(_){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(_))},mouseEventToLatLng:function(_){return this.layerPointToLatLng(this.mouseEventToLayerPoint(_))},_initContainer:function(_){var I=this._container=rn(_);if(I){if(I._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Vt(I,"scroll",this._onScroll,this),this._containerId=g(I)},_initLayout:function(){var _=this._container;this._fadeAnimated=this.options.fadeAnimation&&mt.any3d,gt(_,"leaflet-container"+(mt.touch?" leaflet-touch":"")+(mt.retina?" leaflet-retina":"")+(mt.ielt9?" leaflet-oldie":"")+(mt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var I=yn(_,"position");I!=="absolute"&&I!=="relative"&&I!=="fixed"&&I!=="sticky"&&(_.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var _=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Yt(this._mapPane,new te(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(_.markerPane,"leaflet-zoom-hide"),gt(_.shadowPane,"leaflet-zoom-hide"))},_resetView:function(_,I,W){Yt(this._mapPane,new te(0,0));var X=!this._loaded;this._loaded=!0,I=this._limitZoom(I),this.fire("viewprereset");var ne=this._zoom!==I;this._moveStart(ne,W)._move(_,I)._moveEnd(ne),this.fire("viewreset"),X&&this.fire("load")},_moveStart:function(_,I){return _&&this.fire("zoomstart"),I||this.fire("movestart"),this},_move:function(_,I,W,X){I===void 0&&(I=this._zoom);var ne=this._zoom!==I;return this._zoom=I,this._lastCenter=_,this._pixelOrigin=this._getNewPixelOrigin(_),X?W&&W.pinch&&this.fire("zoom",W):((ne||W&&W.pinch)&&this.fire("zoom",W),this.fire("move",W)),this},_moveEnd:function(_){return _&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return F(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(_){Yt(this._mapPane,this._getMapPanePos().subtract(_))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(_){this._targets={},this._targets[g(this._container)]=this;var I=_?pr:Vt;I(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&I(window,"resize",this._onResize,this),mt.any3d&&this.options.transform3DLimit&&(_?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){F(this._resizeRequest),this._resizeRequest=U(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var _=this._getMapPanePos();Math.max(Math.abs(_.x),Math.abs(_.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(_,I){for(var W=[],X,ne=I==="mouseout"||I==="mouseover",ye=_.target||_.srcElement,Le=!1;ye;){if(X=this._targets[g(ye)],X&&(I==="click"||I==="preclick")&&this._draggableMoved(X)){Le=!0;break}if(X&&X.listens(I,!0)&&(ne&&!Zn(ye,_)||(W.push(X),ne))||ye===this._container)break;ye=ye.parentNode}return!W.length&&!Le&&!ne&&this.listens(I,!0)&&(W=[this]),W}
154,_isClickDisabled:function(_){for(;_&&_!==this._container;){if(_._leaflet_disable_click)return!0;_=_.parentNode}},_handleDOMEvent:function(_){var I=_.target||_.srcElement;if(!(!this._loaded||I._leaflet_disable_events||_.type==="click"&&this._isClickDisabled(I))){var W=_.type;W==="mousedown"&&Ai(I),this._fireDOMEvent(_,W)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(_,I,W){if(_.type==="click"){var X=f({},_);X.type="preclick",this._fireDOMEvent(X,X.type,W)}var ne=this._findEventTargets(_,I);if(W){for(var ye=[],Le=0;Le<W.length;Le++)W[Le].listens(I,!0)&&ye.push(W[Le]);ne=ye.concat(ne)}if(ne.length){I==="contextmenu"&&Wr(_);var Ke=ne[0],tt={originalEvent:_};if(_.type!=="keypress"&&_.type!=="keydown"&&_.type!=="keyup"){var St=Ke.getLatLng&&(!Ke._radius||Ke._radius<=10);tt.containerPoint=St?this.latLngToContainerPoint(Ke.getLatLng()):this.mouseEventToContainerPoint(_),tt.layerPoint=this.containerPointToLayerPoint(tt.containerPoint),tt.latlng=St?Ke.getLatLng():this.layerPointToLatLng(tt.layerPoint)}for(Le=0;Le<ne.length;Le++)if(ne[Le].fire(I,tt,!0),tt.originalEvent._stopped||ne[Le].options.bubblingMouseEvents===!1&&D(this._mouseEvents,I)!==-1)return}},_draggableMoved:function(_){return _=_.dragging&&_.dragging.enabled()?_:this,_.dragging&&_.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var _=0,I=this._handlers.length;_<I;_++)this._handlers[_].disable()},whenReady:function(_,I){return this._loaded?_.call(I||this,{target:this}):this.on("load",_,I),this},_getMapPanePos:function(){return Rr(this._mapPane)||new te(0,0)},_moved:function(){var _=this._getMapPanePos();return _&&!_.equals([0,0])},_getTopLeftPoint:function(_,I){var W=_&&I!==void 0?this._getNewPixelOrigin(_,I):this.getPixelOrigin();return W.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(_,I){var W=this.getSize()._divideBy(2);return this.project(_,I)._subtract(W)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(_,I,W){var X=this._getNewPixelOrigin(W,I);return this.project(_,I)._subtract(X)},_latLngBoundsToNewLayerBounds:function(_,I,W){var X=this._getNewPixelOrigin(W,I);
154return Re([this.project(_.getSouthWest(),I)._subtract(X),this.project(_.getNorthWest(),I)._subtract(X),this.project(_.getSouthEast(),I)._subtract(X),this.project(_.getNorthEast(),I)._subtract(X)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(_){return this.latLngToLayerPoint(_).subtract(this._getCenterLayerPoint())},_limitCenter:function(_,I,W){if(!W)return _;var X=this.project(_,I),ne=this.getSize().divideBy(2),ye=new le(X.subtract(ne),X.add(ne)),Le=this._getBoundsOffset(ye,W,I);return Math.abs(Le.x)<=1&&Math.abs(Le.y)<=1?_:this.unproject(X.add(Le),I)},_limitOffset:function(_,I){if(!I)return _;var W=this.getPixelBounds(),X=new le(W.min.add(_),W.max.add(_));return _.add(this._getBoundsOffset(X,I))},_getBoundsOffset:function(_,I,W){var X=Re(this.project(I.getNorthEast(),W),this.project(I.getSouthWest(),W)),ne=X.min.subtract(_.min),ye=X.max.subtract(_.max),Le=this._rebound(ne.x,-ye.x),Ke=this._rebound(ne.y,-ye.y);return new te(Le,Ke)},_rebound:function(_,I){return _+I>0?Math.round(_-I)/2:Math.max(0,Math.ceil(_))-Math.max(0,Math.floor(I))},_limitZoom:function(_){var I=this.getMinZoom(),W=this.getMaxZoom(),X=mt.any3d?this.options.zoomSnap:1;return X&&(_=Math.round(_/X)*X),Math.max(I,Math.min(W,_))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tr(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(_,I){var W=this._getCenterOffset(_)._trunc();return(I&&I.animate)!==!0&&!this.getSize().contains(W)?!1:(this.panBy(W,I),!0)},_createAnimProxy:function(){var _=this._proxy=Qt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(_),this.on("zoomanim",function(I){var W=kn,X=this._proxy.style[W];Tr(this._proxy,this.project(I.center,I.zoom),this.getZoomScale(I.zoom,1)),X===this._proxy.style[W]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){mr(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var _=this.getCenter(),I=this.getZoom();Tr(this._proxy,this.project(_,I),this.getZoomScale(I,1))},_catchTransitionEnd:function(_){this._animatingZoom&&_.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(_,I,W){if(this._animatingZoom)return!0;if(W=W||{},!this._zoomAnimated||W.animate===!1||this._nothingToAnimate()||Math.abs(I-this._zoom)>this.options.zoomAnimationThreshold)return!1;var X=this.getZoomScale(I),ne=this._getCenterOffset(_)._divideBy(1-1/X);return W.animate!==!0&&!this.getSize().contains(ne)?!1:(U(function(){this._moveStart(!0,W.noMoveStart||!1)._animateZoom(_,I,!0)},this),!0)},_animateZoom:function(_,I,W,X){this._mapPane&&(W&&(this._animatingZoom=!0,this._animateToCenter=_,this._animateToZoom=I,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:_,zoom:I,noUpdate:X}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tr(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Ht(_,I){return new Zt(_,I)}var on=G.extend({options:{position:"topright"},initialize:function(_){C(this,_)},getPosition:function(){return this.options.position},setPosition:function(_){var I=this._map;return I&&I.removeControl(this),this.options.position=_,I&&I.addControl(this),this},getContainer:function(){return this._container},addTo:function(_){this.remove(),this._map=_;var I=this._container=this.onAdd(_),W=this.getPosition(),X=_._controlCorners[W];return gt(I,"leaflet-control"),W.indexOf("bottom")!==-1?X.insertBefore(I,X.firstChild):X.appendChild(I),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(mr(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(_){this._map&&_&&_.screenX>0&&_.screenY>0&&this._map.getContainer().focus()}}),si=function(_){return new on(_)};Zt.include({addControl:function(_){return _.addTo(this),this},removeControl:function(_){return _.remove(),this}
154,_initControlPos:function(){var _=this._controlCorners={},I="leaflet-",W=this._controlContainer=Qt("div",I+"control-container",this._container);function X(ne,ye){var Le=I+ne+" "+I+ye;_[ne+ye]=Qt("div",Le,W)}X("top","left"),X("top","right"),X("bottom","left"),X("bottom","right")},_clearControlPos:function(){for(var _ in this._controlCorners)mr(this._controlCorners[_]);mr(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Di=on.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(_,I,W,X){return W<X?-1:X<W?1:0}},initialize:function(_,I,W){C(this,W),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var X in _)this._addLayer(_[X],X);for(X in I)this._addLayer(I[X],X,!0)},onAdd:function(_){this._initLayout(),this._update(),this._map=_,_.on("zoomend",this._checkDisabledLayers,this);for(var I=0;I<this._layers.length;I++)this._layers[I].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(_){return on.prototype.addTo.call(this,_),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var _=0;_<this._layers.length;_++)this._layers[_].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(_,I){return this._addLayer(_,I),this._map?this._update():this},addOverlay:function(_,I){return this._addLayer(_,I,!0),this._map?this._update():this},removeLayer:function(_){_.off("add remove",this._onLayerChange,this);var I=this._getLayer(g(_));return I&&this._layers.splice(this._layers.indexOf(I),1),this._map?this._update():this},expand:function(){gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var _=this._map.getSize().y-(this._container.offsetTop+50);return _<this._section.clientHeight?(gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=_+"px"):tr(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tr(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var _="leaflet-control-layers",I=this._container=Qt("div",_),W=this.options.collapsed;I.setAttribute("aria-haspopup",!0),ai(I),ki(I);var X=this._section=Qt("section",_+"-list");W&&(this._map.on("click",this.collapse,this),Vt(I,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var ne=this._layersLink=Qt("a",_+"-toggle",I);ne.href="#",ne.title="Layers",ne.setAttribute("role","button"),Vt(ne,{keydown:function(ye){ye.keyCode===13&&this._expandSafely()},click:function(ye){Wr(ye),this._expandSafely()}},this),W||this.expand(),this._baseLayersList=Qt("div",_+"-base",X),this._separator=Qt("div",_+"-separator",X),this._overlaysList=Qt("div",_+"-overlays",X),I.appendChild(X)},_getLayer:function(_){for(var I=0;I<this._layers.length;I++)if(this._layers[I]&&g(this._layers[I].layer)===_)return this._layers[I]},_addLayer:function(_,I,W){this._map&&_.on("add remove",this._onLayerChange,this),this._layers.push({layer:_,name:I,overlay:W}),this.options.sortLayers&&this._layers.sort(h(function(X,ne){return this.options.sortFunction(X.layer,ne.layer,X.name,ne.name)},this)),this.options.autoZIndex&&_.setZIndex&&(this._lastZIndex++,_.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;un(this._baseLayersList),un(this._overlaysList),this._layerControlInputs=[];var _,I,W,X,ne=0;for(W=0;W<this._layers.length;W++)X=this._layers[W],this._addItem(X),I=I||X.overlay,_=_||!X.overlay,ne+=X.overlay?0:1;return this.options.hideSingleBase&&(_=_&&ne>1,this._baseLayersList.style.display=_?"":"none"),this._separator.style.display=I&&_?"":"none",this},_onLayerChange:function(_){this._handlingClick||this._update();var I=this._getLayer(g(_.target)),W=I.overlay?_.type==="add"?"overlayadd":"overlayremove":_.type==="add"?"baselayerchange":null;W&&this._map.fire(W,I)},_createRadioElement:function(_,I){var W='<input type="radio" class="leaflet-control-layers-selector" name="'+_+'"'+(I?' checked="checked"':"")+"/>",X=document.createElement("div");return X.innerHTML=W,X.firstChild},_addItem:function(_){var I=document.createElement("label"),W=this._map.hasLayer(_.layer),X;_.overlay?(X=document.createElement("input"),X.type="checkbox",X.className="leaflet-control-layers-selector",X.defaultChecked=W):X=this._createRadioElement("leaflet-base-layers_"+g(this),W),this._layerControlInputs.push(X),X.layerId=g(_.layer),Vt(X,"click",this._onInputClick,this);var ne=document.createElement("span");ne.innerHTML=" "+_.name;var ye=document.createElement("span");I.appendChild(ye),ye.appendChild(X),ye.appendChild(ne);var Le=_.overlay?this._overlaysList:this._baseLayersList;return Le.appendChild(I),this._checkDisabledLayers(),I},_onInputClick:function(){if(!this._preventClick){var _=this._layerControlInputs,I,W,X=[],ne=[];this._handlingClick=!0;for(var ye=_.length-1;ye>=0;ye--)I=_[ye],W=this._getLayer(I.layerId).layer,I.checked?X.push(W):I.checked||ne.push(W);for(ye=0;ye<ne.length;ye++)this._map.hasLayer(ne[ye])&&this._map.removeLayer(ne[ye]);for(ye=0;ye<X.length;ye++)this._map.hasLayer(X[ye])||this._map.addLayer(X[ye]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var _=this._layerControlInputs,I,W,X=this._map.getZoom(),ne=_.length-1;ne>=0;ne--)I=_[ne],W=this._getLayer(I.layerId).layer,I.disabled=W.options.minZoom!==void 0&&X<W.options.minZoom||W.options.maxZoom!==void 0&&X>W.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var _=this._section;this._preventClick=!0,Vt(_,"click",Wr),this.expand();var I=this;setTimeout(function(){pr(_,"click",Wr),I._preventClick=!1})}}),eo=function(_,I,W){return new Di(_,I,W)},Mi=on.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(_){var I="leaflet-control-zoom",W=Qt("div",I+" leaflet-bar"),X=this.options;return this._zoomInButton=this._createButton(X.zoomInText,X.zoomInTitle,I+"-in",W,this._zoomIn),this._zoomOutButton=this._createButton(X.zoomOutText,X.zoomOutTitle,I+"-out",W,this._zoomOut),this._updateDisabled(),_.on("zoomend zoomlevelschange",this._updateDisabled,this),W},onRemove:function(_){_.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(_){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(_.shiftKey?3:1))},_zoomOut:function(_){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(_.shiftKey?3:1))},_createButton:function(_,I,W,X,ne){var ye=Qt("a",W,X);return ye.innerHTML=_,ye.href="#",ye.title=I,ye.setAttribute("role","button"),ye.setAttribute("aria-label",I),ai(ye),Vt(ye,"click",En),Vt(ye,"click",ne,this),Vt(ye,"click",this._refocusOnMap,this),ye},_updateDisabled:function(){var _=this._map,I="leaflet-disabled";tr(this._zoomInButton,I),tr(this._zoomOutButton,I),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||_._zoom===_.getMin
154Zoom())&&(gt(this._zoomOutButton,I),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||_._zoom===_.getMaxZoom())&&(gt(this._zoomInButton,I),this._zoomInButton.setAttribute("aria-disabled","true"))}});Zt.mergeOptions({zoomControl:!0}),Zt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Mi,this.addControl(this.zoomControl))});var Eo=function(_){return new Mi(_)},Wn=on.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(_){var I="leaflet-control-scale",W=Qt("div",I),X=this.options;return this._addScales(X,I+"-line",W),_.on(X.updateWhenIdle?"moveend":"move",this._update,this),_.whenReady(this._update,this),W},onRemove:function(_){_.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(_,I,W){_.metric&&(this._mScale=Qt("div",I,W)),_.imperial&&(this._iScale=Qt("div",I,W))},_update:function(){var _=this._map,I=_.getSize().y/2,W=_.distance(_.containerPointToLatLng([0,I]),_.containerPointToLatLng([this.options.maxWidth,I]));this._updateScales(W)},_updateScales:function(_){this.options.metric&&_&&this._updateMetric(_),this.options.imperial&&_&&this._updateImperial(_)},_updateMetric:function(_){var I=this._getRoundNum(_),W=I<1e3?I+" m":I/1e3+" km";this._updateScale(this._mScale,W,I/_)},_updateImperial:function(_){var I=_*3.2808399,W,X,ne;I>5280?(W=I/5280,X=this._getRoundNum(W),this._updateScale(this._iScale,X+" mi",X/W)):(ne=this._getRoundNum(I),this._updateScale(this._iScale,ne+" ft",ne/I))},_updateScale:function(_,I,W){_.style.width=Math.round(this.options.maxWidth*W)+"px",_.innerHTML=I},_getRoundNum:function(_){var I=Math.pow(10,(Math.floor(_)+"").length-1),W=_/I;return W=W>=10?10:W>=5?5:W>=3?3:W>=2?2:1,I*W}}),Uo=function(_){return new Wn(_)},Yn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',bi=on.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(mt.inlineSvg?Yn+" ":"")+"Leaflet</a>"},initialize:function(_){C(this,_),this._attributions={}},onAdd:function(_){_.attributionControl=this,this._container=Qt("div","leaflet-control-attribution"),ai(this._container);for(var I in _._layers)_._layers[I].getAttribution&&this.addAttribution(_._layers[I].getAttribution());return this._update(),_.on("layeradd",this._addAttribution,this),this._container},onRemove:function(_){_.off("layeradd",this._addAttribution,this)},_addAttribution:function(_){_.layer.getAttribution&&(this.addAttribution(_.layer.getAttribution()),_.layer.once("remove",function(){this.removeAttribution(_.layer.getAttribution())},this))},setPrefix:function(_){return this.options.prefix=_,this._update(),this},addAttribution:function(_){return _?(this._attributions[_]||(this._attributions[_]=0),this._attributions[_]++,this._update(),this):this},removeAttribution:function(_){return _?(this._attributions[_]&&(this._attributions[_]--,this._update()),this):this},_update:function(){if(this._map){var _=[];for(var I in this._attributions)this._attributions[I]&&_.push(I);var W=[];this.options.prefix&&W.push(this.options.prefix),_.length&&W.push(_.join(", ")),this._container.innerHTML=W.join(' <span aria-hidden="true">|</span> ')}}});Zt.mergeOptions({attributionControl:!0}),Zt.addInitHook(function(){this.options.attributionControl&&new bi().addTo(this)});var Co=function(_){return new bi(_)};on.Layers=Di,on.Zoom=Mi,on.Scale=Wn,on.Attribution=bi,si.layers=eo,si.zoom=Eo,si.scale=Uo,si.attribution=Co;var Cn=G.extend({initialize:function(_){this._map=_},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Cn.addTo=function(_,I){return _.addHandler(I,this),this};var va={Events:K},Po=mt.touch?"touchstart mousedown":"mousedown",Fn=Z.extend({options:{clickTolerance:3},initialize:function(_,I,W,X){C(this,X),this._element=_,this._dragStartTarget=I||_,this._preventOutline=W},enable:function(){this._enabled||(Vt(this._dragStartTarget,Po,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Fn._dragging===this&&this.finishDrag(!0),pr(this._dragStartTarget,Po,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(_){if(this._enabled&&(this._moved=!1,!rt(this._element,"leaflet-zoom-anim"))){if(_.touches&&_.touches.length!==1){Fn._dragging===this&&this.finishDrag();return}if(!(Fn._dragging||_.shiftKey||_.which!==1&&_.button!==1&&!_.touches)&&(Fn._dragging=this,this._preventOutline&&Ai(this._element),Sn(),Dr(),!this._moving)){this.fire("down");var I=_.touches?_.touches[0]:_,W=Kn(this._element);this._startPoint=new te(I.clientX,I.clientY),this._startPos=Rr(this._element),this._parentScale=Xr(W);var X=_.type==="mousedown";Vt(document,X?"mousemove":"touchmove",this._onMove,this),Vt(document,X?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(_){if(this._enabled){if(_.touches&&_.touches.length>1){this._moved=!0;return}var I=_.touches&&_.touches.length===1?_.touches[0]:_,W=new te(I.clientX,I.clientY)._subtract(this._startPoint);!W.x&&!W.y||Math.abs(W.x)+Math.abs(W.y)<this.options.clickTolerance||(W.x/=this._parentScale.x,W.y/=this._parentScale.y,Wr(_),this._moved||(this.fire("dragstart"),this._moved=!0,gt(document.body,"leaflet-dragging"),this._lastTarget=_.target||_.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(W),this._moving=!0,this._lastEvent=_,this._updatePosition())}},_updatePosition:function(){var _={originalEvent:this._lastEvent};this.fire("predrag",_),Yt(this._element,this._newPos),this.fire("drag",_)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(_){tr(document.body,"leaflet-dragging"),this._lastTarget&&(tr(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),pr(document,"mousemove touchmove",this._onMove,this),pr(document,"mouseup touchend touchcancel",this._onUp,this),mi(),Mr();var I=this._moved&&this._moving;this._moving=!1,Fn._dragging=!1,I&&this.fire("dragend",{noInertia:_,distance:this._newPos.distanceTo(this._startPos)})}});function $o(_,I,W){var X,ne=[1,4,2,8],ye,Le,Ke,tt,St,Dt,Ut,Jt;for(ye=0,Dt=_.length;ye<Dt;ye++)_[ye]._code=Bn(_[ye],I);for(Ke=0;Ke<4;Ke++){for(Ut=ne[Ke],X=[],ye=0,Dt=_.length,Le=Dt-1;ye<Dt;
154Le=ye++)tt=_[ye],St=_[Le],tt._code&Ut?St._code&Ut||(Jt=Ni(St,tt,Ut,I,W),Jt._code=Bn(Jt,I),X.push(Jt)):(St._code&Ut&&(Jt=Ni(St,tt,Ut,I,W),Jt._code=Bn(Jt,I),X.push(Jt)),X.push(tt));_=X}return _}function To(_,I){var W,X,ne,ye,Le,Ke,tt,St,Dt;if(!_||_.length===0)throw new Error("latlngs not passed");Jr(_)||(console.warn("latlngs are not flat! Only the first ring will be used"),_=_[0]);var Ut=se([0,0]),Jt=_e(_),Gr=Jt.getNorthWest().distanceTo(Jt.getSouthWest())*Jt.getNorthEast().distanceTo(Jt.getNorthWest());Gr<1700&&(Ut=to(_));var er=_.length,gr=[];for(W=0;W<er;W++){var zr=se(_[W]);gr.push(I.project(se([zr.lat-Ut.lat,zr.lng-Ut.lng])))}for(Ke=tt=St=0,W=0,X=er-1;W<er;X=W++)ne=gr[W],ye=gr[X],Le=ne.y*ye.x-ye.y*ne.x,tt+=(ne.x+ye.x)*Le,St+=(ne.y+ye.y)*Le,Ke+=Le*3;Ke===0?Dt=gr[0]:Dt=[tt/Ke,St/Ke];var Hr=I.unproject(fe(Dt));return se([Hr.lat+Ut.lat,Hr.lng+Ut.lng])}function to(_){for(var I=0,W=0,X=0,ne=0;ne<_.length;ne++){var ye=se(_[ne]);I+=ye.lat,W+=ye.lng,X++}return se([I/X,W/X])}var ro={__proto__:null,clipPolygon:$o,polygonCenter:To,centroid:to};function no(_,I){if(!I||!_.length)return _.slice();var W=I*I;return _=Ko(_,W),_=Go(_,W),_}function Li(_,I,W){return Math.sqrt(zn(_,I,W,!0))}function io(_,I,W){return zn(_,I,W)}function Go(_,I){var W=_.length,X=typeof Uint8Array<"u"?Uint8Array:Array,ne=new X(W);ne[0]=ne[W-1]=1,ji(_,ne,I,0,W-1);var ye,Le=[];for(ye=0;ye<W;ye++)ne[ye]&&Le.push(_[ye]);return Le}function ji(_,I,W,X,ne){var ye=0,Le,Ke,tt;for(Ke=X+1;Ke<=ne-1;Ke++)tt=zn(_[Ke],_[X],_[ne],!0),tt>ye&&(Le=Ke,ye=tt);ye>W&&(I[Le]=1,ji(_,I,W,X,Le),ji(_,I,W,Le,ne))}function Ko(_,I){for(var W=[_[0]],X=1,ne=0,ye=_.length;X<ye;X++)Mn(_[X],_[ne])>I&&(W.push(_[X]),ne=X);return ne<ye-1&&W.push(_[ye-1]),W}var Zo;function _i(_,I,W,X,ne){var ye=X?Zo:Bn(_,W),Le=Bn(I,W),Ke,tt,St;for(Zo=Le;;){if(!(ye|Le))return[_,I];if(ye&Le)return!1;Ke=ye||Le,tt=Ni(_,I,Ke,W,ne),St=Bn(tt,W),Ke===ye?(_=tt,ye=St):(I=tt,Le=St)}}function Ni(_,I,W,X,ne){var ye=I.x-_.x,Le=I.y-_.y,Ke=X.min,tt=X.max,St,Dt;return W&8?(St=_.x+ye*(tt.y-_.y)/Le,Dt=tt.y):W&4?(St=_.x+ye*(Ke.y-_.y)/Le,Dt=Ke.y):W&2?(St=tt.x,Dt=_.y+Le*(tt.x-_.x)/ye):W&1&&(St=Ke.x,Dt=_.y+Le*(Ke.x-_.x)/ye),new te(St,Dt,ne)}function Bn(_,I){var W=0;return _.x<I.min.x?W|=1:_.x>I.max.x&&(W|=2),_.y<I.min.y?W|=4:_.y>I.max.y&&(W|=8),W}function Mn(_,I){var W=I.x-_.x,X=I.y-_.y;return W*W+X*X}function zn(_,I,W,X){var ne=I.x,ye=I.y,Le=W.x-ne,Ke=W.y-ye,tt=Le*Le+Ke*Ke,St;return tt>0&&(St=((_.x-ne)*Le+(_.y-ye)*Ke)/tt,St>1?(ne=W.x,ye=W.y):St>0&&(ne+=Le*St,ye+=Ke*St)),Le=_.x-ne,Ke=_.y-ye,X?Le*Le+Ke*Ke:new te(ne,ye)}function Jr(_){return!A(_[0])||typeof _[0][0]!="object"&&typeof _[0][0]<"u"}function qi(_){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Jr(_)}function wi(_,I){var W,X,ne,ye,Le,Ke,tt,St;if(!_||_.length===0)throw new Error("latlngs not passed");Jr(_)||(console.warn("latlngs are not flat! Only the first ring will be used"),_=_[0]);var Dt=se([0,0]),Ut=_e(_),Jt=Ut.getNorthWest().distanceTo(Ut.getSouthWest
154())*Ut.getNorthEast().distanceTo(Ut.getNorthWest());Jt<1700&&(Dt=to(_));var Gr=_.length,er=[];for(W=0;W<Gr;W++){var gr=se(_[W]);er.push(I.project(se([gr.lat-Dt.lat,gr.lng-Dt.lng])))}for(W=0,X=0;W<Gr-1;W++)X+=er[W].distanceTo(er[W+1])/2;if(X===0)St=er[0];else for(W=0,ye=0;W<Gr-1;W++)if(Le=er[W],Ke=er[W+1],ne=Le.distanceTo(Ke),ye+=ne,ye>X){tt=(ye-X)/ne,St=[Ke.x-tt*(Ke.x-Le.x),Ke.y-tt*(Ke.y-Le.y)];break}var zr=I.unproject(fe(St));return se([zr.lat+Dt.lat,zr.lng+Dt.lng])}var Si={__proto__:null,simplify:no,pointToSegmentDistance:Li,closestPointOnSegment:io,clipSegment:_i,_getEdgeIntersection:Ni,_getBitCode:Bn,_sqClosestPointOnSegment:zn,isFlat:Jr,_flat:qi,polylineCenter:wi},Ei={project:function(_){return new te(_.lng,_.lat)},unproject:function(_){return new ee(_.y,_.x)},bounds:new le([-180,-90],[180,90])},pn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new le([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(_){var I=Math.PI/180,W=this.R,X=_.lat*I,ne=this.R_MINOR/W,ye=Math.sqrt(1-ne*ne),Le=ye*Math.sin(X),Ke=Math.tan(Math.PI/4-X/2)/Math.pow((1-Le)/(1+Le),ye/2);return X=-W*Math.log(Math.max(Ke,1e-10)),new te(_.lng*I*W,X)},unproject:function(_){for(var I=180/Math.PI,W=this.R,X=this.R_MINOR/W,ne=Math.sqrt(1-X*X),ye=Math.exp(-_.y/W),Le=Math.PI/2-2*Math.atan(ye),Ke=0,tt=.1,St;Ke<15&&Math.abs(tt)>1e-7;Ke++)St=ne*Math.sin(Le),St=Math.pow((1-St)/(1+St),ne/2),tt=Math.PI/2-2*Math.atan(ye*St)-Le,Le+=tt;return new ee(Le*I,_.x*I/W)}},oo={__proto__:null,LonLat:Ei,Mercator:pn,SphericalMercator:Se},ao=f({},Ee,{code:"EPSG:3395",projection:pn,transformation:(function(){var _=.5/(Math.PI*pn.R);return ge(_,.5,-_,.5)})()}),Yo=f({},Ee,{code:"EPSG:4326",projection:Ei,transformation:ge(1/180,1,-1/180,.5)}),Xo=f({},$e,{projection:Ei,transformation:ge(1,0,-1,0),scale:function(_){return Math.pow(2,_)},zoom:function(_){return Math.log(_)/Math.LN2},distance:function(_,I){var W=I.lng-_.lng,X=I.lat-_.lat;return Math.sqrt(W*W+X*X)},infinite:!0});$e.Earth=Ee,$e.EPSG3395=ao,$e.EPSG3857=Y,$e.EPSG900913=ie,$e.EPSG4326=Yo,$e.Simple=Xo;var Pn=Z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(_){return _.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(_){return _&&_.removeLayer(this),this},getPane:function(_){return this._map.getPane(_?this.options[_]||_:this.options.pane)},addInteractiveTarget:function(_){return this._map._targets[g(_)]=this,this},removeInteractiveTarget:function(_){return delete this._map._targets[g(_)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(_){var I=_.target;if(I.hasLayer(this)){if(this._map=I,this._zoomAnimated=I._zoomAnimated,this.getEvents){var W=this.getEvents();I.on(W,this),this.once("remove",function(){I.off(W,this)},this)}this.onAdd(I),this.fire("add"),I.fire("layeradd",{layer:this})}}});Zt.include({addLayer:function(_){if(!_._layerAdd)throw new Error("The provided object is not a Layer.");var I=g(_);return this._layers[I]?this:(this._layers[I]=_,_._mapToAdd=this,_.beforeAdd&&_.beforeAdd(this),this.whenReady(_._layerAdd,_),this)},removeLayer:function(_){var I=g(_);return this._layers[I]?(this._loaded&&_.onRemove(this),delete this._layers[I],this._loaded&&(this.fire("layerremove",{layer:_}),_.fire("remove")),_._map=_._mapToAdd=null,this):this},hasLayer:function(_){return g(_)in this._layers},eachLayer:function(_,I){for(var W in this._layers)_.call(I,this._layers[W]);return this},_addLayers:function(_){_=_?A(_)?_:[_]:[];for(var I=0,W=_.length;I<W;I++)this.addLayer(_[I])},_addZoomLimit:function(_){(!isNaN(_.options.maxZoom)||!isNaN(_.options.minZoom))&&(this._zoomBoundLayers[g(_)]=_,this._updateZoomLevels())},_removeZoomLimit:function(_){var I=g(_);this._zoomBoundLayers[I]&&(delete this._zoomBoundLayers[I],this._updateZoomLevels())},_updateZoomLevels:function(){var _=1/0,I=-1/0,W=this._getZoomSpan();for(var X in this._zoomBoundLayers){var ne=this._zoomBoundLayers[X].options;_=ne.minZoom===void 0?_:Math.min(_,ne.minZoom),I=ne.maxZoom===void 0?I:Math.max(I,ne.maxZoom)}
vendor: 14,227 bytes, line 154
154this._layersMaxZoom=I===-1/0?void 0:I,this._layersMinZoom=_===1/0?void 0:_,W!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var $n=Pn.extend({initialize:function(_,I){C(this,I),this._layers={};var W,X;if(_)for(W=0,X=_.length;W<X;W++)this.addLayer(_[W])},addLayer:function(_){var I=this.getLayerId(_);return this._layers[I]=_,this._map&&this._map.addLayer(_),this},removeLayer:function(_){var I=_ in this._layers?_:this.getLayerId(_);return this._map&&this._layers[I]&&this._map.removeLayer(this._layers[I]),delete this._layers[I],this},hasLayer:function(_){var I=typeof _=="number"?_:this.getLayerId(_);return I in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(_){var I=Array.prototype.slice.call(arguments,1),W,X;for(W in this._layers)X=this._layers[W],X[_]&&X[_].apply(X,I);return this},onAdd:function(_){this.eachLayer(_.addLayer,_)},onRemove:function(_){this.eachLayer(_.removeLayer,_)},eachLayer:function(_,I){for(var W in this._layers)_.call(I,this._layers[W]);return this},getLayer:function(_){return this._layers[_]},getLayers:function(){var _=[];return this.eachLayer(_.push,_),_},setZIndex:function(_){return this.invoke("setZIndex",_)},getLayerId:function(_){return g(_)}}),Xn=function(_,I){return new $n(_,I)},hn=$n.extend({addLayer:function(_){return this.hasLayer(_)?this:(_.addEventParent(this),$n.prototype.addLayer.call(this,_),this.fire("layeradd",{layer:_}))},removeLayer:function(_){return this.hasLayer(_)?(_ in this._layers&&(_=this._layers[_]),_.removeEventParent(this),$n.prototype.removeLayer.call(this,_),this.fire("layerremove",{layer:_})):this},setStyle:function(_){return this.invoke("setStyle",_)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var _=new Ae;for(var I in this._layers){var W=this._layers[I];_.extend(W.getBounds?W.getBounds():W.getLatLng())}return _}}),Ro=function(_,I){return new hn(_,I)},Ci=G.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(_){C(this,_)},createIcon:function(_){return this._createIcon("icon",_)},createShadow:function(_){return this._createIcon("shadow",_)},_createIcon:function(_,I){var W=this._getIconUrl(_);if(!W){if(_==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var X=this._createImg(W,I&&I.tagName==="IMG"?I:null);return this._setIconStyles(X,_),(this.options.crossOrigin||this.options.crossOrigin==="")&&(X.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),X},_setIconStyles:function(_,I){var W=this.options,X=W[I+"Size"];typeof X=="number"&&(X=[X,X]);var ne=fe(X),ye=fe(I==="shadow"&&W.shadowAnchor||W.iconAnchor||ne&&ne.divideBy(2,!0));_.className="leaflet-marker-"+I+" "+(W.className||""),ye&&(_.style.marginLeft=-ye.x+"px",_.style.marginTop=-ye.y+"px"),ne&&(_.style.width=ne.x+"px",_.style.height=ne.y+"px")},_createImg:function(_,I){return I=I||document.createElement("img"),I.src=_,I},_getIconUrl:function(_){return mt.retina&&this.options[_+"RetinaUrl"]||this.options[_+"Url"]}});function so(_){return new Ci(_)}var Qn=Ci.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(_){return typeof Qn.imagePath!="string"&&(Qn.imagePath=this._detectIconPath()),(this.options.imagePath||Qn.imagePath)+Ci.prototype._getIconUrl.call(this,_)},_stripUrl:function(_){var I=function(W,X,ne){var ye=X.exec(W);return ye&&ye[ne]};return _=I(_,/^url\((['"])?(.+)\1\)$/,2),_&&I(_,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var _=Qt("div","leaflet-default-icon-path",document.body),I=yn(_,"background-image")||yn(_,"backgroundImage");if(document.body.removeChild(_),I=this._stripUrl(I),I)return I;var W=document.querySelector('link[href$="leaflet.css"]');return W?W.href.substring(0,W.href.length-11-1):""}}),an=Cn.extend({initialize:function(_){this._marker=_},addHooks:function(){var _=this._marker._icon;this._draggable||(this._draggable=new Fn(_,_,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),gt(_,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&tr(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(_){var I=this._marker,W=I._map,X=this._marker.options.autoPanSpeed,ne=this._marker.options.autoPanPadding,ye=Rr(I._icon),Le=W.getPixelBounds(),Ke=W.getPixelOrigin(),tt=Re(Le.min._subtract(Ke).add(ne),Le.max._subtract(Ke).subtract(ne));if(!tt.contains(ye)){var St=fe((Math.max(tt.max.x,ye.x)-tt.max.x)/(Le.max.x-tt.max.x)-(Math.min(tt.min.x,ye.x)-tt.min.x)/(Le.min.x-tt.min.x),(Math.max(tt.max.y,ye.y)-tt.max.y)/(Le.max.y-tt.max.y)-(Math.min(tt.min.y,ye.y)-tt.min.y)/(Le.min.y-tt.min.y)).multiplyBy(X);W.panBy(St,{animate:!1}),this._draggable._newPos._add(St),this._draggable._startPos._add(St),Yt(I._icon,this._draggable._newPos),this._onDrag(_),this._panRequest=U(this._adjustPan.bind(this,_))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(_){this._marker.options.autoPan&&(F(this._panRequest),this._panRequest=U(this._adjustPan.bind(this,_)))},_onDrag:function(_){var I=this._marker,W=I._shadow,X=Rr(I._icon),ne=I._map.layerPointToLatLng(X);W&&Yt(W,X),I._latlng=ne,_.latlng=ne,_.oldLatLng=this._oldLatLng,I.fire("move",_).fire("drag",_)},_onDragEnd:function(_){F(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",_)}}),Pi=Pn.extend({options:{icon:new Qn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(_,I){C(this,I),this._latlng=se(_)},onAdd:function(_){this._zoomAnimated=this._zoomAnimated&&_.options.markerZoomAnimation,this._zoomAnimated&&_.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(_){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&_.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(_){var I=this._latlng;return this._latlng=se(_),this.update(),this.fire("move",{oldLatLng:I,latlng:this._latlng})},setZIndexOffset:function(_){return this.options.zIndexOffset=_,this.update()},getIcon:function(){return this.options.icon},setIcon:function(_){return this.options.icon=_,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var _=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(_)}return this},_initIcon:function(){var _=this.options,I="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),W=_.icon.createIcon(this._icon),X=!1;W!==this._icon&&(this._icon&&this._removeIcon(),X=!0,_.title&&(W.title=_.title),W.tagName==="IMG"&&(W.alt=_.alt||"")),gt(W,I),_.keyboard&&(W.tabIndex="0",W.setAttribute("role","button")),this._icon=W,_.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Vt(W,"focus",this._panOnFocus,this);var ne=_.icon.createShadow(this._shadow),ye=!1;ne!==this._shadow&&(this._removeShadow(),ye=!0),ne&&(gt(ne,I),ne.alt=""),this._shadow=ne,_.opacity<1&&this._updateOpacity(),X&&this.getPane().appendChild(this._icon),this._initInteraction(),ne&&ye&&this.getPane(_.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&pr(this._icon,"focus",this._panOnFocus,this),mr(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&mr(this._shadow),this._shadow=null},_setPos:function(_){this._icon&&Yt(this._icon,_),this._shadow&&Yt(this._shadow,_),this._zIndex=_.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(_){this._icon&&(this._icon.style.zIndex=this._zIndex+_)},_animateZoom:function(_){var I=this._map._latLngToNewLayerPoint(this._latlng,_.zoom,_.center).round();this._setPos(I)},_initInteraction:function(){if(this.options.interactive&&(gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),an)){var _=this.options.draggable;this.dragging&&(_=this.dragging.enabled(),this.dragging.disable()),this.dragging=new an(this),_&&this.dragging.enable()}},setOpacity:function(_){return this.options.opacity=_,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var _=this.options.opacity;this._icon&&$r(this._icon,_),this._shadow&&$r(this._shadow,_)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var _=this._map;if(_){var I=this.options.icon.options,W=I.iconSize?fe(I.iconSize):fe(0,0),X=I.iconAnchor?fe(I.iconAnchor):fe(0,0);_.panInside(this._latlng,{paddingTopLeft:X,paddingBottomRight:W.subtract(X)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ga(_,I){return new Pi(_,I)}var Tn=Pn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(_){this._renderer=_.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(_){return C(this,_),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&_&&Object.prototype.hasOwnProperty.call(_,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Oo=Tn.extend({options:{fill:!0,radius:10},initialize:function(_,I){C(this,I),this._latlng=se(_),this._radius=this.options.radius},setLatLng:function(_){var I=this._latlng;return this._latlng=se(_),this.redraw(),this.fire("move",{oldLatLng:I,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(_){return this.options.radius=this._radius=_,this.redraw()},getRadius:function(){return this._radius},setStyle:function(_){var I=_&&_.radius||this._radius;return Tn.prototype.setStyle.call(this,_),this.setRadius(I),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var _=this._radius,I=this._radiusY||_,W=this._clickTolerance(),X=[_+W,I+W];this._pxBounds=new le(this._point.subtract(X),this._point.add(X))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(_){return _.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function lo(_,I){return new Oo(_,I)}var uo=Oo.extend({initialize:function(_,I,W){if(typeof I=="number"&&(I=f({},W,{radius:I})),C(this,I),this._latlng=se(_),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(_){return this._mRadius=_,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var _=[this._radius,this._radiusY||this._radius];return new Ae(this._map.layerPointToLatLng(this._point.subtract(_)),this._map.layerPointToLatLng(this._point.add(_)))},setStyle:Tn.prototype.setStyle,_project:function(){var _=this._latlng.lng,I=this._latlng.lat,W=this._map,X=W.options.crs;if(X.distance===Ee.distance){var ne=Math.PI/180,ye=this._mRadius/Ee.R/ne,Le=W.project([I+ye,_]),Ke=W.project([I-ye,_]),tt=Le.add(Ke).divideBy(2),St=W.unproject(tt).lat,Dt=Math.acos((Math.cos(ye*ne)-Math.sin(I*ne)*Math.sin(St*ne))/(Math.cos(I*ne)*Math.cos(St*ne)))/ne;(isNaN(Dt)||Dt===0)&&(Dt=ye/Math.cos(Math.PI/180*I)),this._point=tt.subtract(W.getPixelOrigin()),this._radius=isNaN(Dt)?0:tt.x-W.project([St,_-Dt]).x,this._radiusY=tt.y-Le.y}else{var Ut=X.unproject(X.project(this._latlng).subtract([this._mRadius,0]));this._point=W.latLngToLayerPoint(this._latlng),this._radius=this._point.x-W.latLngToLayerPoint(Ut).x}this._updateBounds()}});function Wi(_,I,W){return new uo(_,I,W)}var Zr=Tn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(_,I){C(this,I),this._setLatLngs(_)},getLatLngs:function(){return this._latlngs},setLatLngs:function(_){return this._setLatLngs(_),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(_){for(var I=1/0,W=null,X=zn,ne,ye,Le=0,Ke=this._parts.length;Le<Ke;Le++)for(var tt=this._parts[Le],St=1,Dt=tt.length;St<Dt;St++){ne=tt[St-1],ye=tt[St];var Ut=X(_,ne,ye,!0);Ut<I&&(I=Ut,W=X(_,ne,ye))}return W&&(W.distance=Math.sqrt(I)),W}
154,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(_,I){return I=I||this._defaultShape(),_=se(_),I.push(_),this._bounds.extend(_),this.redraw()},_setLatLngs:function(_){this._bounds=new Ae,this._latlngs=this._convertLatLngs(_)},_defaultShape:function(){return Jr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(_){for(var I=[],W=Jr(_),X=0,ne=_.length;X<ne;X++)W?(I[X]=se(_[X]),this._bounds.extend(I[X])):I[X]=this._convertLatLngs(_[X]);return I},_project:function(){var _=new le;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,_),this._bounds.isValid()&&_.isValid()&&(this._rawPxBounds=_,this._updateBounds())},_updateBounds:function(){var _=this._clickTolerance(),I=new te(_,_);this._rawPxBounds&&(this._pxBounds=new le([this._rawPxBounds.min.subtract(I),this._rawPxBounds.max.add(I)]))},_projectLatlngs:function(_,I,W){var X=_[0]instanceof ee,ne=_.length,ye,Le;if(X){for(Le=[],ye=0;ye<ne;ye++)Le[ye]=this._map.latLngToLayerPoint(_[ye]),W.extend(Le[ye]);I.push(Le)}else for(ye=0;ye<ne;ye++)this._projectLatlngs(_[ye],I,W)},_clipPoints:function(){var _=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(_))){if(this.options.noClip){this._parts=this._rings;return}var I=this._parts,W,X,ne,ye,Le,Ke,tt;for(W=0,ne=0,ye=this._rings.length;W<ye;W++)for(tt=this._rings[W],X=0,Le=tt.length;X<Le-1;X++)Ke=_i(tt[X],tt[X+1],_,X,!0),Ke&&(I[ne]=I[ne]||[],I[ne].push(Ke[0]),(Ke[1]!==tt[X+1]||X===Le-2)&&(I[ne].push(Ke[1]),ne++))}},_simplifyPoints:function(){for(var _=this._parts,I=this.options.smoothFactor,W=0,X=_.length;W<X;W++)_[W]=no(_[W],I)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(_,I){var W,X,ne,ye,Le,Ke,tt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(_))return!1;for(W=0,ye=this._parts.length;W<ye;W++)for(Ke=this._parts[W],X=0,Le=Ke.length,ne=Le-1;X<Le;ne=X++)if(!(!I&&X===0)&&Li(_,Ke[ne],Ke[X])<=tt)return!0;return!1}});function Qo(_,I){return new Zr(_,I)}Zr._flat=qi;var li=Zr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
154,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return To(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(_){var I=Zr.prototype._convertLatLngs.call(this,_),W=I.length;return W>=2&&I[0]instanceof ee&&I[0].equals(I[W-1])&&I.pop(),I},_setLatLngs:function(_){Zr.prototype._setLatLngs.call(this,_),Jr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Jr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var _=this._renderer._bounds,I=this.options.weight,W=new te(I,I);if(_=new le(_.min.subtract(W),_.max.add(W)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(_))){if(this.options.noClip){this._parts=this._rings;return}for(var X=0,ne=this._rings.length,ye;X<ne;X++)ye=$o(this._rings[X],_,!0),ye.length&&this._parts.push(ye)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(_){var I=!1,W,X,ne,ye,Le,Ke,tt,St;if(!this._pxBounds||!this._pxBounds.contains(_))return!1;for(ye=0,tt=this._parts.length;ye<tt;ye++)for(W=this._parts[ye],Le=0,St=W.length,Ke=St-1;Le<St;Ke=Le++)X=W[Le],ne=W[Ke],X.y>_.y!=ne.y>_.y&&_.x<(ne.x-X.x)*(_.y-X.y)/(ne.y-X.y)+X.x&&(I=!I);return I||Zr.prototype._containsPoint.call(this,_,!0)}});function ma(_,I){return new li(_,I)}var Fr=hn.extend({initialize:function(_,I){C(this,I),this._layers={},_&&this.addData(_)},addData:function(_){var I=A(_)?_:_.features,W,X,ne;if(I){for(W=0,X=I.length;W<X;W++)ne=I[W],(ne.geometries||ne.geometry||ne.features||ne.coordinates)&&this.addData(ne);return this}var ye=this.options;if(ye.filter&&!ye.filter(_))return this;var Le=Fi(_,ye);return Le?(Le.feature=co(_),Le.defaultOptions=Le.options,this.resetStyle(Le),ye.onEachFeature&&ye.onEachFeature(_,Le),this.addLayer(Le)):this},resetStyle:function(_){return _===void 0?this.eachLayer(this.resetStyle,this):(_.options=f({},_.defaultOptions),this._setLayerStyle(_,this.options.style),this)},setStyle:function(_){return this.eachLayer(function(I){this._setLayerStyle(I,_)},this)},_setLayerStyle:function(_,I){_.setStyle&&(typeof I=="function"&&(I=I(_.feature)),_.setStyle(I))}});function Fi(_,I){var W=_.type==="Feature"?_.geometry:_,X=W?W.coordinates:null,ne=[],ye=I&&I.pointToLayer,Le=I&&I.coordsToLatLng||ui,Ke,tt,St,Dt;if(!X&&!W)return null;switch(W.type){case"Point":return Ke=Le(X),Rn(ye,_,Ke,I);case"MultiPoint":for(St=0,Dt=X.length;St<Dt;St++)Ke=Le(X[St]),ne.push(Rn(ye,_,Ke,I));return new hn(ne);case"LineString":case"MultiLineString":return tt=tn(X,W.type==="LineString"?0:1,Le),new Zr(tt,I);case"Polygon":case"MultiPolygon":return tt=tn(X,W.type==="Polygon"?1:2,Le),new li(tt,I);case"GeometryCollection":for(St=0,Dt=W.geometries.length;St<Dt;St++){var Ut=Fi({geometry:W.geometries[St],type:"Feature",properties:_.properties},I);Ut&&ne.push(Ut)}return new hn(ne);case"FeatureCollection":for(St=0,Dt=W.features.length;St<Dt;St++){var Jt=Fi(W.features[St],I);Jt&&ne.push(Jt)}return new hn(ne);default:throw new Error("Invalid GeoJSON object.")}}function Rn(_,I,W,X){return _?_(I,W):new Pi(W,X&&X.markersInheritOptions&&X)}function ui(_){return new ee(_[1],_[0],_[2])}function tn(_,I,W){for(var X=[],ne=0,ye=_.length,Le;ne<ye;ne++)Le=I?tn(_[ne],I-1,W):(W||ui)(_[ne]),X.push(Le);return X}function Jo(_,I){return _=se(_),_.alt!==void 0?[w(_.lng,I),w(_.lat,I),w(_.alt,I)]:[w(_.lng,I),w(_.lat,I)]}function $i(_,I,W,X){for(var ne=[],ye=0,Le=_.length;ye<Le;ye++)ne.push(I?$i(_[ye],Jr(_[ye])?0:I-1,W,X):Jo(_[ye],X));return!I&&W&&ne.length>0&&ne.push(ne[0].slice()),ne}function Jn(_,I){return _.feature?f({},_.feature,{geometry:I}):co(I)}function co(_){return _.type==="Feature"||_.type==="FeatureCollection"?_:{type:"Feature",properties:{},geometry:_}}var Ti={toGeoJSON:function(_){return Jn(this,{type:"Point",coordinates:Jo(this.getLatLng(),_)})}};Pi.include(Ti),uo.include(Ti),Oo.include(Ti),Zr.include({toGeoJSON:function(_){var I=!Jr(this._latlngs),W=$i(this._latlngs,I?1:0,!1,_);return Jn(this,{type:(I?"Multi":"")+"LineString",coordinates:W})}}),li.include({toGeoJSON:function(_){var I=!Jr(this._latlngs),W=I&&!Jr(this._latlngs[0]),X=$i(this._latlngs,W?2:I?1:0,!0,_);return I||(X=[X]),Jn(this,{type:(W?"Multi":"")+"Polygon",coordinates:X})}}),$n.include({toMultiPoint:function(_){var I=[];return this.eachLayer(function(W){I.push(W.toGeoJSON(_).geometry.coordinates)}),Jn(this,{type:"MultiPoint",coordinates:I})},toGeoJSON:function(_){var I=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(I==="MultiPoint")return this.toMultiPoint(_);var W=I==="GeometryCollection",X=[];return this.eachLayer(function(ne){if(ne.toGeoJSON){var ye=ne.toGeoJSON(_);if(W)X.push(ye.geometry);else{var Le=co(ye);Le.type==="FeatureCollection"?X.push.apply(X,Le.features):X.push(Le)}}}),W?Jn(this,{geometries:X,type:"GeometryCollection"}):{type:"FeatureCollection",features:X}}});function Ri(_,I){return new Fr(_,I)}var ya=Ri,ci=Pn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(_,I,W){this._url=_,this._bounds=_e(I),C(this,W)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){mr(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(_){return this.options.opacity=_,this._image&&this._updateOpacity(),this},setStyle:function(_){return _.opacity&&this.setOpacity(_.opacity),this},bringToFront:function(){return this._map&&Pt(this._image),this},bringToBack:function(){return this._map&&$t(this._image),this},setUrl:function(_){return this._url=_,this._image&&(this._image.src=_),this},setBounds:function(_){return this._bounds=_e(_),this._map&&this._reset(),this},getEvents:function(){var _={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(_.zoomanim=this._animateZoom),_},setZIndex:function(_){return this.options.zIndex=_,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var _=this._url.tagName==="IMG",I=this._image=_?this._url:Qt("img");if(gt(I,"leaflet-image-layer"),this._zoomAnimated&&gt(I,"leaflet-zoom-animated"),this.options.className&&gt(I,this.options.className),I.onselectstart=b,I.onmousemove=b,I.onload=h(this.fire,this,"load"),I.onerror=h(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(I.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),_){this._url=I.src;return}I.src=this._url,I.alt=this.options.alt},_animateZoom:function(_){var I=this._map.getZoomScale(_.zoom),W=this._map._latLngBoundsToNewLayerBounds(this._bounds,_.zoom,_.center).min;Tr(this._image,W,I)},_reset:function(){var _=this._image,I=new le(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),W=I.getSize();Yt(_,I.min),_.style.width=W.x+"px",_.style.height=W.y+"px"},_updateOpacity:function(){$r(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var _=this.options.errorOverlayUrl;_&&this._url!==_&&(this._url=_,this._image.src=_)},getCenter:function(){return this._bounds.getCenter()}}),Bi=function(_,I,W){return new ci(_,I,W)},ba=ci.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
154ine:!0},_initImage:function(){var _=this._url.tagName==="VIDEO",I=this._image=_?this._url:Qt("video");if(gt(I,"leaflet-image-layer"),this._zoomAnimated&&gt(I,"leaflet-zoom-animated"),this.options.className&&gt(I,this.options.className),I.onselectstart=b,I.onmousemove=b,I.onloadeddata=h(this.fire,this,"load"),_){for(var W=I.getElementsByTagName("source"),X=[],ne=0;ne<W.length;ne++)X.push(W[ne].src);this._url=W.length>0?X:[I.src];return}A(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(I.style,"objectFit")&&(I.style.objectFit="fill"),I.autoplay=!!this.options.autoplay,I.loop=!!this.options.loop,I.muted=!!this.options.muted,I.playsInline=!!this.options.playsInline;for(var ye=0;ye<this._url.length;ye++){var Le=Qt("source");Le.src=this._url[ye],I.appendChild(Le)}}});function xo(_,I,W){return new ba(_,I,W)}var wa=ci.extend({_initImage:function(){var _=this._image=this._url;gt(_,"leaflet-image-layer"),this._zoomAnimated&&gt(_,"leaflet-zoom-animated"),this.options.className&&gt(_,this.options.className),_.onselectstart=b,_.onmousemove=b}});function ea(_,I,W){return new wa(_,I,W)}var Ln=Pn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(_,I){_&&(_ instanceof ee||A(_))?(this._latlng=se(_),C(this,I)):(C(this,_),this._source=I),this.options.content&&(this._content=this.options.content)},openOn:function(_){return _=arguments.length?_:this._source._map,_.hasLayer(this)||_.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(_){return this._map?this.close():(arguments.length?this._source=_:_=this._source,this._prepareOpen(),this.openOn(_._map)),this},onAdd:function(_){this._zoomAnimated=_._zoomAnimated,this._container||this._initLayout(),_._fadeAnimated&&$r(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),_._fadeAnimated&&$r(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(_){_._fadeAnimated?($r(this._container,0),this._removeTimeout=setTimeout(h(mr,void 0,this._container),200)):mr(this._container),this.options.interactive&&(tr(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(_){return this._latlng=se(_),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(_){return this._content=_,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var _={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(_.zoomanim=this._animateZoom),_},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Pt(this._container),this},bringToBack:function(){return this._map&&$t(this._container),this},_prepareOpen:function(_){var I=this._source;if(!I._map)return!1;if(I instanceof hn){I=null;var W=this._source._layers;for(var X in W)if(W[X]._map){I=W[X];break}if(!I)return!1;this._source=I}if(!_)if(I.getCenter)_=I.getCenter();else if(I.getLatLng)_=I.getLatLng();else if(I.getBounds)_=I.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(_),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var _=this._contentNode,I=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof I=="string")_.innerHTML=I;else{for(;_.hasChildNodes();)_.removeChild(_.firstChild);_.appendChild(I)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var _=this._map.latLngToLayerPoint(this._latlng),I=fe(this.options.offset),W=this._getAnchor();this._zoomAnimated?Yt(this._container,_.add(W)):I=I.add(_).add(W);var X=this._containerBottom=-I.y,ne=this._containerLeft=-Math.round(this._containerWidth/2)+I.x;this._container.style.bottom=X+"px",this._container.style.left=ne+"px"}},_getAnchor:function(){return[0,0]}});Zt.include({_initOverlay:function(_,I,W,X){var ne=I;return ne instanceof _||(ne=new _(X).setContent(I)),W&&ne.setLatLng(W),ne}}),Pn.include({_initOverlay:function(_,I,W,X){var ne=W;return ne instanceof _?(C(ne,X),ne._source=this):(ne=I&&!X?I:new _(X,this),ne.setContent(W)),ne}});var zi=Ln.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(_){return _=arguments.length?_:this._source._map,!_.hasLayer(this)&&_._popup&&_._popup.options.autoClose&&_.removeLayer(_._popup),_._popup=this,Ln.prototype.openOn.call(this,_)},onAdd:function(_){Ln.prototype.onAdd.call(this,_),_.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Tn||this._source.on("preclick",Dn))},onRemove:function(_){Ln.prototype.onRemove.call(this,_),_.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Tn||this._source.off("preclick",Dn))},getEvents:function(){var _=Ln.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(_.preclick=this.close),this.options.keepInView&&
154(_.moveend=this._adjustPan),_},_initLayout:function(){var _="leaflet-popup",I=this._container=Qt("div",_+" "+(this.options.className||"")+" leaflet-zoom-animated"),W=this._wrapper=Qt("div",_+"-content-wrapper",I);if(this._contentNode=Qt("div",_+"-content",W),ai(I),ki(this._contentNode),Vt(I,"contextmenu",Dn),this._tipContainer=Qt("div",_+"-tip-container",I),this._tip=Qt("div",_+"-tip",this._tipContainer),this.options.closeButton){var X=this._closeButton=Qt("a",_+"-close-button",I);X.setAttribute("role","button"),X.setAttribute("aria-label","Close popup"),X.href="#close",X.innerHTML='<span aria-hidden="true">&#215;</span>',Vt(X,"click",function(ne){Wr(ne),this.close()},this)}},_updateLayout:function(){var _=this._contentNode,I=_.style;I.width="",I.whiteSpace="nowrap";var W=_.offsetWidth;W=Math.min(W,this.options.maxWidth),W=Math.max(W,this.options.minWidth),I.width=W+1+"px",I.whiteSpace="",I.height="";var X=_.offsetHeight,ne=this.options.maxHeight,ye="leaflet-popup-scrolled";ne&&X>ne?(I.height=ne+"px",gt(_,ye)):tr(_,ye),this._containerWidth=this._container.offsetWidth},_animateZoom:function(_){var I=this._map._latLngToNewLayerPoint(this._latlng,_.zoom,_.center),W=this._getAnchor();Yt(this._container,I.add(W))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var _=this._map,I=parseInt(yn(this._container,"marginBottom"),10)||0,W=this._container.offsetHeight+I,X=this._containerWidth,ne=new te(this._containerLeft,-W-this._containerBottom);ne._add(Rr(this._container));var ye=_.layerPointToContainerPoint(ne),Le=fe(this.options.autoPanPadding),Ke=fe(this.options.autoPanPaddingTopLeft||Le),tt=fe(this.options.autoPanPaddingBottomRight||Le),St=_.getSize(),Dt=0,Ut=0;ye.x+X+tt.x>St.x&&(Dt=ye.x+X-St.x+tt.x),ye.x-Dt-Ke.x<0&&(Dt=ye.x-Ke.x),ye.y+W+tt.y>St.y&&(Ut=ye.y+W-St.y+tt.y),ye.y-Ut-Ke.y<0&&(Ut=ye.y-Ke.y),(Dt||Ut)&&(this.options.keepInView&&(this._autopanning=!0),_.fire("autopanstart").panBy([Dt,Ut]))}},_getAnchor:function(){return fe(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ka=function(_,I){return new zi(_,I)};Zt.mergeOptions({closePopupOnClick:!0}),Zt.include({openPopup:function(_,I,W){return this._initOverlay(zi,_,I,W).openOn(this),this},closePopup:function(_){return _=arguments.length?_:this._popup,_&&_.close(),this}}),Pn.include({bindPopup:function(_,I){return this._popup=this._initOverlay(zi,this._popup,_,I),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(_){return this._popup&&(this instanceof hn||(this._popup._source=this),this._popup._prepareOpen(_||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(_){return this._popup&&this._popup.setContent(_),this},getPopup:function(){return this._popup},_openPopup:function(_){if(!(!this._popup||!this._map)){En(_);var I=_.layer||_.target;if(this._popup._source===I&&!(I instanceof Tn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(_.latlng);return}this._popup._source=I,this.openPopup(_.latlng)}},_movePopup:function(_){this._popup.setLatLng(_.latlng)},_onKeyPress:function(_){_.originalEvent.keyCode===13&&this._openPopup(_)}});var On=Ln.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(_){Ln.prototype.onAdd.call(this,_),this.setOpacity(this.options.opacity),_.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(_){Ln.prototype.onRemove.call(this,_),_.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var _=Ln.prototype.getEvents.call(this);return this.options.permanent||(_.preclick=this.close),_},_initLayout:function(){var _="leaflet-tooltip",I=_+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Qt("div",I),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+g(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(_){var I,W,X=this._map,ne=this._container,ye=X.latLngToContainerPoint(X.getCenter()),Le=X.layerPointToContainerPoint(_),Ke=this.options.direction,tt=ne.offsetWidth,St=ne.offsetHeight,Dt=fe(this.options.offset),Ut=this._getAnchor();Ke==="top"?(I=tt/2,W=St):Ke==="bottom"?(I=tt/2,W=0):Ke==="center"?(I=tt/2,W=St/2):Ke==="right"?(I=0,W=St/2):Ke==="left"?
154(I=tt,W=St/2):Le.x<ye.x?(Ke="right",I=0,W=St/2):(Ke="left",I=tt+(Dt.x+Ut.x)*2,W=St/2),_=_.subtract(fe(I,W,!0)).add(Dt).add(Ut),tr(ne,"leaflet-tooltip-right"),tr(ne,"leaflet-tooltip-left"),tr(ne,"leaflet-tooltip-top"),tr(ne,"leaflet-tooltip-bottom"),gt(ne,"leaflet-tooltip-"+Ke),Yt(ne,_)},_updatePosition:function(){var _=this._map.latLngToLayerPoint(this._latlng);this._setPosition(_)},setOpacity:function(_){this.options.opacity=_,this._container&&$r(this._container,_)},_animateZoom:function(_){var I=this._map._latLngToNewLayerPoint(this._latlng,_.zoom,_.center);this._setPosition(I)},_getAnchor:function(){return fe(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Hi=function(_,I){return new On(_,I)};Zt.include({openTooltip:function(_,I,W){return this._initOverlay(On,_,I,W).openOn(this),this},closeTooltip:function(_){return _.close(),this}}),Pn.include({bindTooltip:function(_,I){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(On,this._tooltip,_,I),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(_){if(!(!_&&this._tooltipHandlersAdded)){var I=_?"off":"on",W={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?W.add=this._openTooltip:(W.mouseover=this._openTooltip,W.mouseout=this.closeTooltip,W.click=this._openTooltip,this._map?this._addFocusListeners():W.add=this._addFocusListeners),this._tooltip.options.sticky&&(W.mousemove=this._moveTooltip),this[I](W),this._tooltipHandlersAdded=!_}},openTooltip:function(_){return this._tooltip&&(this instanceof hn||(this._tooltip._source=this),this._tooltip._prepareOpen(_)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(_){return this._tooltip&&this._tooltip.setContent(_),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(_){var I=typeof _.getElement=="function"&&_.getElement();I&&(Vt(I,"focus",function(){this._tooltip._source=_,this.openTooltip()},this),Vt(I,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(_){var I=typeof _.getElement=="function"&&_.getElement();I&&I.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(_){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var I=this;this._map.once("moveend",function(){I._openOnceFlag=!1,I._openTooltip(_)});return}this._tooltip._source=_.layer||_.target,this.openTooltip(this._tooltip.options.sticky?_.latlng:void 0)}},_moveTooltip:function(_){var I=_.latlng,W,X;this._tooltip.options.sticky&&_.originalEvent&&(W=this._map.mouseEventToContainerPoint(_.originalEvent),X=this._map.containerPointToLayerPoint(W),I=this._map.layerPointToLatLng(X)),this._tooltip.setLatLng(I)}});var di=Ci.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(_){var I=_&&_.tagName==="DIV"?_:document.createElement("div"),W=this.options;if(W.html instanceof Element?(un(I),I.appendChild(W.html)):I.innerHTML=W.html!==!1?W.html:"",W.bgPos){var X=fe(W.bgPos);I.style.backgroundPosition=-X.x+"px "+-X.y+"px"}return this._setIconStyles(I,"icon"),I},createShadow:function(){return null}});function Sa(_){return new di(_)}Ci.Default=Qn;var Hn=Pn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:mt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(_){C(this,_)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(_){_._addZoomLimit(this)},onRemove:function(_){this._removeAllTiles(),mr(this._container),_._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Pt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&($t(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(_){return this.options.opacity=_,this._updateOpacity(),this},setZIndex:function(_){return this.options.zIndex=_,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var _=this._clampZoom(this._map.getZoom());_!==this._tileZoom&&(this._tileZoom=_,this._updateLevels()),this._update()}return this},getEvents:function(){var _={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=m(this._onMoveEnd,this.options.updateInterval,this)),_.move=this._onMove),this._zoomAnimated&&(_.zoomanim=this._animateZoom),_},createTile:function(){return document.createElement("div")},getTileSize:function(){var _=this.options.tileSize;return _ instanceof te?_:new te(_,_)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(_){for(var I=this.getPane().children,W=-_(-1/0,1/0),X=0,ne=I.length,ye;X<ne;X++)ye=I[X].style.zIndex,I[X]!==this._container&&ye&&(W=_(W,+ye));isFinite(W)&&(this.options.zIndex=W+_(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!mt.ielt9){$r(this._container,this.options.opacity);var _=+new Date,I=!1,W=!1;for(var X in this._tiles){var ne=this._tiles[X];if(!(!ne.current||!ne.loaded)){var ye=Math.min(1,(_-ne.loaded)/200);$r(ne.el,ye),ye<1?I=!0:(ne.active?W=!0:this._onOpaqueTile(ne),ne.active=!0)}}W&&!this._noPrune&&this._pruneTiles(),I&&(F(this._fadeFrame),this._fadeFrame=U(this._updateOpacity,this))}},_onOpaqueTile:b,_initContainer:function(){this._container||(this._container=Qt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var _=this._tileZoom,I=this.options.maxZoom;if(_!==void 0){for(var W in this._levels)W=Number(W),this._levels[W].el.children.length||W===_?(this._levels[W].el.style.zIndex=I-Math.abs(_-W),this._onUpdateLevel(W)):(mr(this._levels[W].el),this._removeTilesAtZoom(W),this._onRemoveLevel(W),delete this._levels[W]);var X=this._levels[_],ne=this._map;return X||(X=this._levels[_]={},X.el=Qt("div","leaflet-tile-container leaflet-zoom-animated",this._container),X.el.style.zIndex=I,X.origin=ne.project(ne.unproject(ne.getPixelOrigin()),_).round(),X.zoom=_,this._setZoomTransform(X,ne.getCenter(),ne.getZoom()),b(X.el.offsetWidth),this._onCreateLevel(X)),this._level=X,X}},_onUpdateLevel:b,_onRemoveLevel:b,_onCreateLevel:b,_pruneTiles:function(){if(this._map){var _,I,W=this._map.getZoom();if(W>this.options.maxZoom||W<this.options.minZoom){this._removeAllTiles();return}for(_ in this._tiles)I=this._tiles[_],I.retain=I.current;for(_ in this._tiles)if(I=this._tiles[_],I.current&&!I.active){var X=I.coords;this._retainParent(X.x,X.y,X.z,X.z-5)||this._retainChildren(X.x,X.y,X.z,X.z+2)}for(_ in this._tiles)this._tiles[_].retain||this._removeTile(_)}},_removeTilesAtZoom:function(_){for(var I in this._tiles)this._tiles[I].coords.z===_&&this._removeTile(I)},_removeAllTiles:function(){for(var _ in this._tiles)this._removeTile(_)},_invalidateAll:function(){for(var _ in this._levels)mr(this._levels[_].el),this._onRemoveLevel(Number(_)),delete this._levels[_];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(_,I,W,X){var ne=Math.floor(_/2),ye=Math.floor(I/2),Le=W-1,Ke=new te(+ne,+ye);Ke.z=+Le;var tt=this._tileCoordsToKey(Ke),St=this._tiles[tt];return St&&St.active?(St.retain=!0,!0):(St&&St.loaded&&(St.retain=!0),Le>X?this._retainParent(ne,ye,Le,X):!1)},_retainChildren:function(_,I,W,X){for(var ne=2*_;ne<2*_+2;ne++)for(var ye=2*I;ye<2*I+2;ye++){var Le=new te(ne,ye);Le.z=W+1;var Ke=this._tileCoordsToKey(Le),tt=this._tiles[Ke];if(tt&&tt.active){tt.retain=!0;continue}else tt&&tt.loaded&&(tt.retain=!0);W+1<X&&this._retainChildren(ne,ye,W+1,X)}},_resetView:function(_){var I=_&&(_.pinch||_.flyTo);
154this._setView(this._map.getCenter(),this._map.getZoom(),I,I)},_animateZoom:function(_){this._setView(_.center,_.zoom,!0,_.noUpdate)},_clampZoom:function(_){var I=this.options;return I.minNativeZoom!==void 0&&_<I.minNativeZoom?I.minNativeZoom:I.maxNativeZoom!==void 0&&I.maxNativeZoom<_?I.maxNativeZoom:_},_setView:function(_,I,W,X){var ne=Math.round(I);this.options.maxZoom!==void 0&&ne>this.options.maxZoom||this.options.minZoom!==void 0&&ne<this.options.minZoom?ne=void 0:ne=this._clampZoom(ne);var ye=this.options.updateWhenZooming&&ne!==this._tileZoom;(!X||ye)&&(this._tileZoom=ne,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),ne!==void 0&&this._update(_),W||this._pruneTiles(),this._noPrune=!!W),this._setZoomTransforms(_,I)},_setZoomTransforms:function(_,I){for(var W in this._levels)this._setZoomTransform(this._levels[W],_,I)},_setZoomTransform:function(_,I,W){var X=this._map.getZoomScale(W,_.zoom),ne=_.origin.multiplyBy(X).subtract(this._map._getNewPixelOrigin(I,W)).round();mt.any3d?Tr(_.el,ne,X):Yt(_.el,ne)},_resetGrid:function(){var _=this._map,I=_.options.crs,W=this._tileSize=this.getTileSize(),X=this._tileZoom,ne=this._map.getPixelWorldBounds(this._tileZoom);ne&&(this._globalTileRange=this._pxBoundsToTileRange(ne)),this._wrapX=I.wrapLng&&!this.options.noWrap&&[Math.floor(_.project([0,I.wrapLng[0]],X).x/W.x),Math.ceil(_.project([0,I.wrapLng[1]],X).x/W.y)],this._wrapY=I.wrapLat&&!this.options.noWrap&&[Math.floor(_.project([I.wrapLat[0],0],X).y/W.x),Math.ceil(_.project([I.wrapLat[1],0],X).y/W.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(_){var I=this._map,W=I._animatingZoom?Math.max(I._animateToZoom,I.getZoom()):I.getZoom(),X=I.getZoomScale(W,this._tileZoom),ne=I.project(_,this._tileZoom).floor(),ye=I.getSize().divideBy(X*2);return new le(ne.subtract(ye),ne.add(ye))},_update:function(_){var I=this._map;if(I){var W=this._clampZoom(I.getZoom());if(_===void 0&&(_=I.getCenter()),this._tileZoom!==void 0){var X=this._getTiledPixelBounds(_),ne=this._pxBoundsToTileRange(X),ye=ne.getCenter(),Le=[],Ke=this.options.keepBuffer,tt=new le(ne.getBottomLeft().subtract([Ke,-Ke]),ne.getTopRight().add([Ke,-Ke]));if(!(isFinite(ne.min.x)&&isFinite(ne.min.y)&&isFinite(ne.max.x)&&isFinite(ne.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var St in this._tiles){var Dt=this._tiles[St].coords;(Dt.z!==this._tileZoom||!tt.contains(new te(Dt.x,Dt.y)))&&(this._tiles[St].current=!1)}if(Math.abs(W-this._tileZoom)>1){this._setView(_,W);return}for(var Ut=ne.min.y;Ut<=ne.max.y;Ut++)for(var Jt=ne.min.x;Jt<=ne.max.x;Jt++){var Gr=new te(Jt,Ut);if(Gr.z=this._tileZoom,!!this._isValidTile(Gr)){var er=this._tiles[this._tileCoordsToKey(Gr)];er?er.current=!0:Le.push(Gr)}}if(Le.sort(function(zr,Hr){return zr.distanceTo(ye)-Hr.distanceTo(ye)}),Le.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var gr=document.createDocumentFragment();for(Jt=0;Jt<Le.length;Jt++)this._addTile(Le[Jt],gr);this._level.el.appendChild(gr)}}}},_isValidTile:function(_){var I=this._map.options.crs;if(!I.infinite){var W=this._globalTileRange;if(!I.wrapLng&&(_.x<W.min.x||_.x>W.max.x)||!I.wrapLat&&(_.y<W.min.y||_.y>W.max.y))return!1}if(!this.options.bounds)return!0;var X=this._tileCoordsToBounds(_);return _e(this.options.bounds).overlaps(X)},_keyToBounds:function(_){return this._tileCoordsToBounds(this._keyToTileCoords(_))},_tileCoordsToNwSe:function(_){var I=this._map,W=this.getTileSize(),X=_.scaleBy(W),ne=X.add(W),ye=I.unproject(X,_.z),Le=I.unproject(ne,_.z);return[ye,Le]},_tileCoordsToBounds:function(_){var I=this._tileCoordsToNwSe(_),W=new Ae(I[0],I[1]);return this.options.noWrap||(W=this._map.wrapLatLngBounds(W)),W},_tileCoordsToKey:function(_){return _.x+":"+_.y+":"+_.z},_keyToTileCoords:function(_){var I=_.split(":"),W=new te(+I[0],+I[1]);return W.z=+I[2],W},_removeTile:function(_){var I=this._tiles[_];I&&(mr(I.el),delete this._tiles[_],this.fire("tileunload",{tile:I.el,coords:this._keyToTileCoords(_)}))},_initTile:function(_){gt(_,"leaflet-tile");var I=this.getTileSize();_.style.width=I.x+"px",_.style.height=I.y+"px",_.onselectstart=b,_.onmousemove=b,mt.ielt9&&this.options.opacity<1&&$r(_,this.options.opacity)},_addTile:function(_,I){var W=this._getTilePos(_),X=this._tileCoordsToKey(_),ne=this.createTile(this._wrapCoords(_),h(this._tileReady,this,_));this._initTile(ne),this.createTile.length<2&&U(h(this._tileReady,this,_,null,ne)),Yt(ne,W),this._tiles[X]={el:ne,coords:_,current:!0},I.appendChild(ne),this.fire("tileloadstart",{tile:ne,coords:_})},_tileReady:function(_,I,W){I&&this.fire("tileerror",{error:I,tile:W,coords:_});var X=this._tileCoordsToKey(_);W=this._tiles[X],W&&(W.loaded=+new Date,this._map._fadeAnimated?($r(W.el,0),F(this._fadeFrame),this._fadeFrame=U(this._updateOpacity,this)):(W.active=!0,this._pruneTiles()),I||(gt(W.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:W.el,coords:_})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),mt.ielt9||!this._map._fadeAnimated?U(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(_){return _.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(_){var I=new te(this._wrapX?y(_.x,this._wrapX):_.x,this._wrapY?y(_.y,this._wrapY):_.y);return I.z=_.z,I},_pxBoundsToTileRange:function(_){var I=this.getTileSize();return new le(_.min.unscaleBy(I).floor(),_.max.unscaleBy(I).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var _ in this._tiles)if(!this._tiles[_].loaded)return!1;return!0}});function Ea(_){return new Hn(_)}var Oi=Hn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(_,I){this._url=_,I=C(this,I),I.detectRetina&&mt.retina&&I.maxZoom>0?(I.tileSize=Math.floor(I.tileSize/2),I.zoomReverse?(I.zoomOffset--,I.minZoom=Math.min(I.maxZoom,I.minZoom+1)):(I.zoomOffset++,I.maxZoom=Math.max(I.minZ
154oom,I.maxZoom-1)),I.minZoom=Math.max(0,I.minZoom)):I.zoomReverse?I.minZoom=Math.min(I.maxZoom,I.minZoom):I.maxZoom=Math.max(I.minZoom,I.maxZoom),typeof I.subdomains=="string"&&(I.subdomains=I.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(_,I){return this._url===_&&I===void 0&&(I=!0),this._url=_,I||this.redraw(),this},createTile:function(_,I){var W=document.createElement("img");return Vt(W,"load",h(this._tileOnLoad,this,I,W)),Vt(W,"error",h(this._tileOnError,this,I,W)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(W.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(W.referrerPolicy=this.options.referrerPolicy),W.alt="",W.src=this.getTileUrl(_),W},getTileUrl:function(_){var I={r:mt.retina?"@2x":"",s:this._getSubdomain(_),x:_.x,y:_.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var W=this._globalTileRange.max.y-_.y;this.options.tms&&(I.y=W),I["-y"]=W}return x(this._url,f(I,this.options))},_tileOnLoad:function(_,I){mt.ielt9?setTimeout(h(_,this,null,I),0):_(null,I)},_tileOnError:function(_,I,W){var X=this.options.errorTileUrl;X&&I.getAttribute("src")!==X&&(I.src=X),_(W,I)},_onTileRemove:function(_){_.tile.onload=null},_getZoomForUrl:function(){var _=this._tileZoom,I=this.options.maxZoom,W=this.options.zoomReverse,X=this.options.zoomOffset;return W&&(_=I-_),_+X},_getSubdomain:function(_){var I=Math.abs(_.x+_.y)%this.options.subdomains.length;return this.options.subdomains[I]},_abortLoading:function(){var _,I;for(_ in this._tiles)if(this._tiles[_].coords.z!==this._tileZoom&&(I=this._tiles[_].el,I.onload=b,I.onerror=b,!I.complete)){I.src=j;var W=this._tiles[_].coords;mr(I),delete this._tiles[_],this.fire("tileabort",{tile:I,coords:W})}},_removeTile:function(_){var I=this._tiles[_];if(I)return I.el.setAttribute("src",j),Hn.prototype._removeTile.call(this,_)},_tileReady:function(_,I,W){if(!(!this._map||W&&W.getAttribute("src")===j))return Hn.prototype._tileReady.call(this,_,I,W)}});function fo(_,I){return new Oi(_,I)}var Vi=Oi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(_,I){this._url=_;var W=f({},this.defaultWmsParams);for(var X in I)X in this.options||(W[X]=I[X]);I=C(this,I);var ne=I.detectRetina&&mt.retina?2:1,ye=this.getTileSize();W.width=ye.x*ne,W.height=ye.y*ne,this.wmsParams=W},onAdd:function(_){this._crs=this.options.crs||_.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var I=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[I]=this._crs.code,Oi.prototype.onAdd.call(this,_)},getTileUrl:function(_){var I=this._tileCoordsToNwSe(_),W=this._crs,X=Re(W.project(I[0]),W.project(I[1])),ne=X.min,ye=X.max,Le=(this._wmsVersion>=1.3&&this._crs===Yo?[ne.y,ne.x,ye.y,ye.x]:[ne.x,ne.y,ye.x,ye.y]).join(","),Ke=Oi.prototype.getTileUrl.call(this,_);return Ke+T(this.wmsParams,Ke,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Le},setParams:function(_,I){return f(this.wmsParams,_),I||this.redraw(),this}});function Io(_,I){return new Vi(_,I)}Oi.WMS=Vi,fo.wms=Io;var jn=Pn.extend({options:{padding:.1},initialize:function(_){C(this,_),g(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),gt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var _={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(_.zoomanim=this._onAnimZoom),_},_onAnimZoom:function(_){this._updateTransform(_.center,_.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(_,I){var W=this._map.getZoomScale(I,this._zoom),X=this._map.getSize().multiplyBy(.5+this.options.padding),ne=this._map.project(this._center,I),ye=X.multiplyBy(-W).add(ne).subtract(this._map._getNewPixelOrigin(_,I));mt.any3d?Tr(this._container,ye,W):Yt(this._container,ye)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var _ in this._layers)this._layers[_]._reset()},_onZoomEnd:function(){for(var _ in this._layers)this._layers[_]._project()},_updatePaths:function(){for(var _ in this._layers)this._layers[_]._update()},_update:function(){var _=this.options.padding,I=this._map.getSize(),W=this._map.containerPointToLayerPoint(I.multiplyBy(-_)).round();
154this._bounds=new le(W,W.add(I.multiplyBy(1+_*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),po=jn.extend({options:{tolerance:0},getEvents:function(){var _=jn.prototype.getEvents.call(this);return _.viewprereset=this._onViewPreReset,_},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){jn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var _=this._container=document.createElement("canvas");Vt(_,"mousemove",this._onMouseMove,this),Vt(_,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Vt(_,"mouseout",this._handleMouseOut,this),_._leaflet_disable_events=!0,this._ctx=_.getContext("2d")},_destroyContainer:function(){F(this._redrawRequest),delete this._ctx,mr(this._container),pr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var _;this._redrawBounds=null;for(var I in this._layers)_=this._layers[I],_._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){jn.prototype._update.call(this);var _=this._bounds,I=this._container,W=_.getSize(),X=mt.retina?2:1;Yt(I,_.min),I.width=X*W.x,I.height=X*W.y,I.style.width=W.x+"px",I.style.height=W.y+"px",mt.retina&&this._ctx.scale(2,2),this._ctx.translate(-_.min.x,-_.min.y),this.fire("update")}},_reset:function(){jn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(_){this._updateDashArray(_),this._layers[g(_)]=_;var I=_._order={layer:_,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=I),this._drawLast=I,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(_){this._requestRedraw(_)},_removePath:function(_){var I=_._order,W=I.next,X=I.prev;W?W.prev=X:this._drawLast=X,X?X.next=W:this._drawFirst=W,delete _._order,delete this._layers[g(_)],this._requestRedraw(_)},_updatePath:function(_){this._extendRedrawBounds(_),_._project(),_._update(),this._requestRedraw(_)},_updateStyle:function(_){this._updateDashArray(_),this._requestRedraw(_)},_updateDashArray:function(_){if(typeof _.options.dashArray=="string"){var I=_.options.dashArray.split(/[, ]+/),W=[],X,ne;for(ne=0;ne<I.length;ne++){if(X=Number(I[ne]),isNaN(X))return;W.push(X)}_.options._dashArray=W}else _.options._dashArray=_.options.dashArray},_requestRedraw:function(_){this._map&&(this._extendRedrawBounds(_),this._redrawRequest=this._redrawRequest||U(this._redraw,this))},_extendRedrawBounds:function(_){if(_._pxBounds){var I=(_.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new le,this._redrawBounds.extend(_._pxBounds.min.subtract([I,I])),this._redrawBounds.extend(_._pxBounds.max.add([I,I]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var _=this._redrawBounds;if(_){var I=_.getSize();this._ctx.clearRect(_.min.x,_.min.y,I.x,I.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var _,I=this._redrawBounds;if(this._ctx.save(),I){var W=I.getSize();this._ctx.beginPath(),this._ctx.rect(I.min.x,I.min.y,W.x,W.y),this._ctx.clip()}this._drawing=!0;for(var X=this._drawFirst;X;X=X.next)_=X.layer,(!I||_._pxBounds&&_._pxBounds.intersects(I))&&_._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(_,I){if(this._drawing){var W,X,ne,ye,Le=_._parts,Ke=Le.length,tt=this._ctx;if(Ke){for(tt.beginPath(),W=0;W<Ke;W++){for(X=0,ne=Le[W].length;X<ne;X++)ye=Le[W][X],tt[X?"lineTo":"moveTo"](ye.x,ye.y);I&&tt.closePath()}this._fillStroke(tt,_)}}},_updateCircle:function(_){if(!(!this._drawing||_._empty())){var I=_._point,W=this._ctx,X=Math.max(Math.round(_._radius),1),ne=(Math.max(Math.round(_._radiusY),1)||X)/X;ne!==1&&(W.save(),W.scale(1,ne)),W.beginPath(),W.arc(I.x,I.y/ne,X,0,Math.PI*2,!1),ne!==1&&W.restore(),this._fillStroke(W,_)}},_fillStroke:function(_,I){var W=I.options;W.fill&&(_.globalAlpha=W.fillOpacity,_.fillStyle=W.fillColor||W.color,_.fill(W.fillRule||"evenodd")),W.stroke&&W.weight!==0&&(_.setLineDash&&_.setLineDash(I.options&&I.options._dashArray||[]),_.globalAlpha=W.opacity,_.lineWidth=W.weight,_.strokeStyle=W.color,_.lineCap=W.lineCap,_.lineJoin=W.lineJoin,_.stroke())},_onClick:function(_){for(var I=this._map.mouseEventToLayerPoint(_),W,X,ne=this._drawFirst;ne;ne=ne.next)W=ne.layer,W.options.interactive&&W._containsPoint(I)&&(!(_.type==="click"||_.type==="preclick")||!this._map._draggableMoved(W))&&(X=W);this._fireEvent(X?[X]:!1,_)},_onMouseMove:function(_){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var I=this._map.mouseEventToLayerPoint(_);this._handleMouseHover(_,I)}},_handleMouseOut:function(_){var I=this._hoveredLayer;I&&(tr(this._container,"leaflet-interactive"),this._fireEvent([I],_,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(_,I){if(!this._mouseHoverThrottled){for(var W,X,ne=this._drawFirst;ne;ne=ne.next)W=ne.layer,W.options.interactive&&W._containsPoint(I)&&(X=W);X!==this._hoveredLayer&&(this._handleMouseOut(_),X&&(gt(this._container,"leaflet-interactive"),this._fireEvent([X],_,"mouseover"),this._hoveredLayer=X)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,_),this._mouseHoverThrottled=!0,setTimeout(h(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(_,I,W){this._map._fireDOMEvent(I,W||I.type,_)},_bringToFront:function(_){var I=_._order;if(I){var W=I.next,X=I.prev;if(W)W.prev=X;else return;X?X.next=W:W&&(this._drawFirst=W),I.prev=this._drawLast,this._drawLast.next=I,I.next=null,this._drawLast=I,this._requestRedraw(_)}},_bringToBack:function(_){var I=_._order;if(I){var W=I.next,X=I.prev;if(X)X.next=W;else return;W?W.prev=X:X&&(this._drawLast=X),I.prev=null,I.next=this._drawFirst,this._drawFirst.prev=I,this._drawFirst=I,this._requestRedraw(_)}}});function jr(_){return mt.canvas?new po(_):null}var me=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(_){return document.createElement("<lvml:"+_+' class="lvml">')}}catch{}return function(_){return document.createElement("<"+_+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),ke={_initContainer:function(){this._container=Qt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(jn.prototype._update.call(this),this.fire("update"))},_initPath:function(_){var I=_._container=me("shape");gt(I,"leaflet-vml-shape "+(this.options.className||"")),I.coordsize="1 1",_._path=me("path"),I.appendChild(_._path),this._updateStyle(_),this._layers[g(_)]=_},_addPath:function(_){var I=_._container;this._container.appendChild(I),_.options.interactive&&_.addInteractiveTarget(I)},_removePath:function(_){var I=_._container;mr(I),_.removeInteractiveTarget(I),delete this._layers[g(_)]},_updateStyle:function(_){var I=_._stroke,W=_._fill,X=_.options,ne=_._container;ne.stroked=!!X.stroke,ne.filled=!!X.fill,X.stroke?(I||(I=_._stroke=me("stroke")),ne.appendChild(I),I.weight=X.weight+"px",I.color=X.color,I.opacity=X.opacity,X.dashArray?I.dashStyle=A(X.dashArray)?X.dashArray.join(" "):X.dashArray.replace(/( *, *)/g," "):I.dashStyle="",I.endcap=X.lineCap.replace("butt","flat"),I.joinstyle=X.lineJoin):I&&(ne.removeChild(I),_._stroke=null),X.fill?(W||(W=_._fill=me("fill")),ne.appendChild(W),W.color=X.fillColor||X.color,W.opacity=X.fillOpacity):W&&(ne.removeChild(W),_._fill=null)},_updateCircle:function(_){var I=_._point.round(),W=Math.round(_._radius),X=Math.round(_._radiusY||W);this._setPath(_,_._empty()?"M0 0":"AL "+I.x+","+I.y+" "+W+","+X+" 0,"+65535*360)},_setPath:function(_,I){_._path.v=I},_bringToFront:function(_){Pt(_._container)},_bringToBack:function(_){$t(_._container)}},Xe=mt.vml?me:ce,Je=jn.extend({_initContainer:function(){this._container=Xe("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xe("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){mr(this._container),pr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){jn.prototype._update.call(this);var _=this._bounds,I=_.getSize(),W=this._container;(!this._svgSize||!this._svgSize.equals(I))&&(this._svgSize=I,W.setAttribute("width",I.x),W.setAttribute("height",I.y)),Yt(W,_.min),W.setAttribute("viewBox",[_.min.x,_.min.y,I.x,I.y].join(" ")),this.fire("update")}},_initPath:function(_){var I=_._path=Xe("path");_.options.className&&gt(I,_.options.className),_.options.interactive&&gt(I,"leaflet-interactive"),this._updateStyle(_),this._layers[g(_)]=_},_addPath:function(_){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(_._path),_.addInteractiveTarget(_._path)},_removePath:function(_){mr(_._path),_.removeInteractiveTarget(_._path),delete this._layers[g(_)]},_updatePath:function(_){_._project(),_._update()},_updateStyle:function(_){var I=_._path,W=_.options;I&&(W.stroke?(I.setAttribute("stroke",W.color),I.setAttribute("stroke-opacity",W.opacity),I.setAttribute("stroke-width",W.weight),I.setAttribute("stroke-linecap",W.lineCap),I.setAttribute("stroke-linejoin",W.lineJoin),W.dashArray?I.setAttribute("stroke-dasharray",W.dashArray):I.removeAttribute("stroke-dasharray"),W.dashOffset?I.setAttribute("stroke-dashoffset",W.dashOffset):I.removeAttribute("stroke-dashoffset")):I.setAttribute("stroke","none"),W.fill?(I.setAttribute("fill",W.fillColor||W.color),I.setAttribute("fill-opacity",W.fillOpacity),I.setAttribute("fill-rule",W.fillRule||"evenodd")):I.setAttribute("fill","none"))},_updatePoly:function(_,I){this._setPath(_,ue(_._parts,I))},_updateCircle:function(_){var I=_._point,W=Math.max(Math.round(_._radius),1),X=Math.max(Math.round(_._radiusY),1)||W,ne="a"+W+","+X+" 0 1,0 ",ye=_._empty()?"M0 0":"M"+(I.x-W)+","+I.y+ne+W*2+",0 "+ne+-W*2+",0 ";this._setPath(_,ye)},_setPath:function(_,I){_._path.setAttribute("d",I)},_bringToFront:function(_){Pt(_._path)},_bringToBack:function(_){$t(_._path)}});mt.vml&&Je.include(ke);function It(_){return mt.svg||mt.vml?new Je(_):null}Zt.include({getRenderer:function(_){var I=_.options.renderer||this._getPaneRenderer(_.options.pane)||this.options.renderer||this._renderer;return I||(I=this._renderer=this._createRenderer()),this.hasLayer(I)||this.addLayer(I),I},_getPaneRenderer:function(_){if(_==="overlayPane"||_===void 0)return!1;var I=this._paneRenderers[_];return I===void 0&&(I=this._createRenderer({pane:_}),this._paneRenderers[_]=I),I},_createRenderer:function(_){return this.options.preferCanvas&&jr(_)||It(_)}});var Bt=li.extend({initialize:function(_,I){li.prototype.initialize.call(this,this._boundsToLatLngs(_),I)},setBounds:function(_){return this.setLatLngs(this._boundsToLatLngs(_))}
154,_boundsToLatLngs:function(_){return _=_e(_),[_.getSouthWest(),_.getNorthWest(),_.getNorthEast(),_.getSouthEast()]}});function rr(_,I){return new Bt(_,I)}Je.create=Xe,Je.pointsToPath=ue,Fr.geometryToLayer=Fi,Fr.coordsToLatLng=ui,Fr.coordsToLatLngs=tn,Fr.latLngToCoords=Jo,Fr.latLngsToCoords=$i,Fr.getFeature=Jn,Fr.asFeature=co,Zt.mergeOptions({boxZoom:!0});var Nr=Cn.extend({initialize:function(_){this._map=_,this._container=_._container,this._pane=_._panes.overlayPane,this._resetStateTimeout=0,_.on("unload",this._destroy,this)},addHooks:function(){Vt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){pr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){mr(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(_){if(!_.shiftKey||_.which!==1&&_.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Dr(),Sn(),this._startPoint=this._map.mouseEventToContainerPoint(_),Vt(document,{contextmenu:En,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(_){this._moved||(this._moved=!0,this._box=Qt("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(_);var I=new le(this._point,this._startPoint),W=I.getSize();Yt(this._box,I.min),this._box.style.width=W.x+"px",this._box.style.height=W.y+"px"},_finish:function(){this._moved&&(mr(this._box),tr(this._container,"leaflet-crosshair")),Mr(),mi(),pr(document,{contextmenu:En,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(_){if(!(_.which!==1&&_.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(h(this._resetState,this),0);var I=new Ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(I).fire("boxzoomend",{boxZoomBounds:I})}},_onKeyDown:function(_){_.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Zt.addInitHook("addHandler","boxZoom",Nr),Zt.mergeOptions({doubleClickZoom:!0});var Br=Cn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(_){var I=this._map,W=I.getZoom(),X=I.options.zoomDelta,ne=_.originalEvent.shiftKey?W-X:W+X;I.options.doubleClickZoom==="center"?I.setZoom(ne):I.setZoomAround(_.containerPoint,ne)}});Zt.addInitHook("addHandler","doubleClickZoom",Br),Zt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Or=Cn.extend({addHooks:function(){if(!this._draggable){var _=this._map;this._draggable=new Fn(_._mapPane,_._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),_.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),_.on("zoomend",this._onZoomEnd,this),_.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tr(this._map._container,"leaflet-grab"),tr(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var _=this._map;if(_._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var I=_e(this._map.options.maxBounds);this._offsetLimit=Re(this._map.latLngToContainerPoint(I.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(I.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;_.fire("movestart").fire("dragstart"),_.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(_){if(this._map.options.inertia){var I=this._lastTime=+new Date,W=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(W),this._times.push(I),this._prunePositions(I)}this._map.fire("move",_).fire("drag",_)},_prunePositions:function(_){for(;this._positions.length>1&&_-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var _=this._map.getSize().divideBy(2),I=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=I.subtract(_).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(_,I){return _-(_-I)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var _=this._draggable._newPos.subtract(this._draggable._startPos),I=this._offsetLimit;_.x<I.min.x&&(_.x=this._viscousLimit(_.x,I.min.x)),_.y<I.min.y&&(_.y=this._viscousLimit(_.y,I.min.y)),_.x>I.max.x&&(_.x=this._viscousLimit(_.x,I.max.x)),_.y>I.max.y&&(_.y=this._viscousLimit(_.y,I.max.y)),this._draggable._newPos=this._draggable._startPos.add(_)}},_onPreDragWrap:function(){var _=this._worldWidth,I=Math.round(_/2),W=this._initialWorldOffset,X=this._draggable._newPos.x,ne=(X-I+W)%_+I-W,ye=(X+I+W)%_-I-W,Le=Math.abs(ne+W)<Math.abs(ye+W)?ne:ye;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Le},_onDragEnd:function(_){var I=this._map,W=I.options,X=!W.inertia||_.noInertia||this._times.length<2;if(I.fire("dragend",_),X)I.fire("moveend");else{this._prunePositions(+new Date);var ne=this._lastPos.subtract(this._positions[0]),ye=(this._lastTime-this._times[0])/1e3,Le=W.easeLinearity,Ke=ne.multiplyBy(Le/ye),tt=Ke.distanceTo([0,0]),St=Math.min(W.inertiaMaxSpeed,tt),Dt=Ke.multiplyBy(St/tt),Ut=St/(W.inertiaDeceleration*Le),Jt=Dt.multiplyBy(-Ut/2).round();!Jt.x&&!Jt.y?I.fire("moveend"):(Jt=I._limitOffset(Jt,I.options.maxBounds),U(function(){I.panBy(Jt,{duration:Ut,easeLinearity:Le,noMoveStart:!0,animate:!0})}
154))}}});Zt.addInitHook("addHandler","dragging",Or),Zt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ei=Cn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(_){this._map=_,this._setPanDelta(_.options.keyboardPanDelta),this._setZoomDelta(_.options.zoomDelta)},addHooks:function(){var _=this._map._container;_.tabIndex<=0&&(_.tabIndex="0"),Vt(_,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),pr(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var _=document.body,I=document.documentElement,W=_.scrollTop||I.scrollTop,X=_.scrollLeft||I.scrollLeft;this._map._container.focus(),window.scrollTo(X,W)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(_){var I=this._panKeys={},W=this.keyCodes,X,ne;for(X=0,ne=W.left.length;X<ne;X++)I[W.left[X]]=[-1*_,0];for(X=0,ne=W.right.length;X<ne;X++)I[W.right[X]]=[_,0];for(X=0,ne=W.down.length;X<ne;X++)I[W.down[X]]=[0,_];for(X=0,ne=W.up.length;X<ne;X++)I[W.up[X]]=[0,-1*_]},_setZoomDelta:function(_){var I=this._zoomKeys={},W=this.keyCodes,X,ne;for(X=0,ne=W.zoomIn.length;X<ne;X++)I[W.zoomIn[X]]=_;for(X=0,ne=W.zoomOut.length;X<ne;X++)I[W.zoomOut[X]]=-_},_addHooks:function(){Vt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){pr(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(_){if(!(_.altKey||_.ctrlKey||_.metaKey)){var I=_.keyCode,W=this._map,X;if(I in this._panKeys){if(!W._panAnim||!W._panAnim._inProgress)if(X=this._panKeys[I],_.shiftKey&&(X=fe(X).multiplyBy(3)),W.options.maxBounds&&(X=W._limitOffset(fe(X),W.options.maxBounds)),W.options.worldCopyJump){var ne=W.wrapLatLng(W.unproject(W.project(W.getCenter()).add(X)));W.panTo(ne)}else W.panBy(X)}else if(I in this._zoomKeys)W.setZoom(W.getZoom()+(_.shiftKey?3:1)*this._zoomKeys[I]);else if(I===27&&W._popup&&W._popup.options.closeOnEscapeKey)W.closePopup();else return;En(_)}}});Zt.addInitHook("addHandler","keyboard",ei),Zt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Vn=Cn.extend({addHooks:function(){Vt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){pr(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(_){var I=Ir(_),W=this._map.options.wheelDebounceTime;this._delta+=I,this._lastMousePos=this._map.mouseEventToContainerPoint(_),this._startTime||(this._startTime=+new Date);var X=Math.max(W-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(h(this._performZoom,this),X),En(_)},_performZoom:function(){var _=this._map,I=_.getZoom(),W=this._map.options.zoomSnap||0;_._stop();var X=this._delta/(this._map.options.wheelPxPerZoomLevel*4),ne=4*Math.log(2/(1+Math.exp(-Math.abs(X))))/Math.LN2,ye=W?Math.ceil(ne/W)*W:ne,Le=_._limitZoom(I+(this._delta>0?ye:-ye))-I;this._delta=0,this._startTime=null,Le&&(_.options.scrollWheelZoom==="center"?_.setZoom(I+Le):_.setZoomAround(this._lastMousePos,I+Le))}});Zt.addInitHook("addHandler","scrollWheelZoom",Vn);var ti=600;Zt.mergeOptions({tapHold:mt.touchNative&&mt.safari&&mt.mobile,tapTolerance:15});var ho=Cn.extend({addHooks:function(){Vt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){pr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(_){if(clearTimeout(this._holdTimeout),_.touches.length===1){var I=_.touches[0];this._startPos=this._newPos=new te(I.clientX,I.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(Vt(document,"touchend",Wr),Vt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",I))},this),ti),Vt(document,"touchend touchcancel contextmenu",this._cancel,this),Vt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function _(){pr(document,"touchend",Wr),pr(document,"touchend touchcancel",_)}
154,_cancel:function(){clearTimeout(this._holdTimeout),pr(document,"touchend touchcancel contextmenu",this._cancel,this),pr(document,"touchmove",this._onMove,this)},_onMove:function(_){var I=_.touches[0];this._newPos=new te(I.clientX,I.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(_,I){var W=new MouseEvent(_,{bubbles:!0,cancelable:!0,view:window,screenX:I.screenX,screenY:I.screenY,clientX:I.clientX,clientY:I.clientY});W._simulated=!0,I.target.dispatchEvent(W)}});Zt.addInitHook("addHandler","tapHold",ho),Zt.mergeOptions({touchZoom:mt.touch,bounceAtZoomLimits:!0});var Ao=Cn.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),Vt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tr(this._map._container,"leaflet-touch-zoom"),pr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(_){var I=this._map;if(!(!_.touches||_.touches.length!==2||I._animatingZoom||this._zooming)){var W=I.mouseEventToContainerPoint(_.touches[0]),X=I.mouseEventToContainerPoint(_.touches[1]);this._centerPoint=I.getSize()._divideBy(2),this._startLatLng=I.containerPointToLatLng(this._centerPoint),I.options.touchZoom!=="center"&&(this._pinchStartLatLng=I.containerPointToLatLng(W.add(X)._divideBy(2))),this._startDist=W.distanceTo(X),this._startZoom=I.getZoom(),this._moved=!1,this._zooming=!0,I._stop(),Vt(document,"touchmove",this._onTouchMove,this),Vt(document,"touchend touchcancel",this._onTouchEnd,this),Wr(_)}},_onTouchMove:function(_){if(!(!_.touches||_.touches.length!==2||!this._zooming)){var I=this._map,W=I.mouseEventToContainerPoint(_.touches[0]),X=I.mouseEventToContainerPoint(_.touches[1]),ne=W.distanceTo(X)/this._startDist;if(this._zoom=I.getScaleZoom(ne,this._startZoom),!I.options.bounceAtZoomLimits&&(this._zoom<I.getMinZoom()&&ne<1||this._zoom>I.getMaxZoom()&&ne>1)&&(this._zoom=I._limitZoom(this._zoom)),I.options.touchZoom==="center"){if(this._center=this._startLatLng,ne===1)return}else{var ye=W._add(X)._divideBy(2)._subtract(this._centerPoint);if(ne===1&&ye.x===0&&ye.y===0)return;this._center=I.unproject(I.project(this._pinchStartLatLng,this._zoom).subtract(ye),this._zoom)}this._moved||(I._moveStart(!0,!1),this._moved=!0),F(this._animRequest);var Le=h(I._move,I,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=U(Le,this,!0),Wr(_)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,F(this._animRequest),pr(document,"touchmove",this._onTouchMove,this),pr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});
154Zt.addInitHook("addHandler","touchZoom",Ao),Zt.BoxZoom=Nr,Zt.DoubleClickZoom=Br,Zt.Drag=Or,Zt.Keyboard=ei,Zt.ScrollWheelZoom=Vn,Zt.TapHold=ho,Zt.TouchZoom=Ao,u.Bounds=le,u.Browser=mt,u.CRS=$e,u.Canvas=po,u.Circle=uo,u.CircleMarker=Oo,u.Class=G,u.Control=on,u.DivIcon=di,u.DivOverlay=Ln,u.DomEvent=ha,u.DomUtil=wo,u.Draggable=Fn,u.Evented=Z,u.FeatureGroup=hn,u.GeoJSON=Fr,u.GridLayer=Hn,u.Handler=Cn,u.Icon=Ci,u.ImageOverlay=ci,u.LatLng=ee,u.LatLngBounds=Ae,u.Layer=Pn,u.LayerGroup=$n,u.LineUtil=Si,u.Map=Zt,u.Marker=Pi,u.Mixin=va,u.Path=Tn,u.Point=te,u.PolyUtil=ro,u.Polygon=li,u.Polyline=Zr,u.Popup=zi,u.PosAnimation=Vo,u.Projection=oo,u.Rectangle=Bt,u.Renderer=jn,u.SVG=Je,u.SVGOverlay=wa,u.TileLayer=Oi,u.Tooltip=On,u.Transformation=Ie,u.Util=B,u.VideoOverlay=ba,u.bind=h,u.bounds=Re,u.canvas=jr,u.circle=Wi,u.circleMarker=lo,u.control=si,u.divIcon=Sa,u.extend=f,u.featureGroup=Ro,u.geoJSON=Ri,u.geoJson=ya,u.gridLayer=Ea,u.icon=so,u.imageOverlay=Bi,u.latLng=se,u.latLngBounds=_e,u.layerGroup=Xn,u.map=Ht,u.marker=ga,u.point=fe,u.polygon=ma,u.polyline=Qo,u.popup=ka,u.rectangle=rr,u.setOptions=C,u.stamp=g,u.svg=It,u.svgOverlay=ea,u.tileLayer=fo,u.tooltip=Hi,u.transformation=ge,u.version=d,u.videoOverlay=xo;var Ui=window.L;u.noConflict=function(){return window.L=Ui,this},window.L=u}))})(leafletSrc$1,leafletSrc$1.exports)),leafletSrc$1.exports}var leafletSrcExports=requireLeafletSrc();const L$1=getDefaultExportFromCjs(leafletSrcExports);var leafletContext=reactExports.createContext({}),LeafletConsumer=leafletContext.Consumer,LeafletProvider=leafletContext.Provider,withLeaflet=function l(o){var u=function(h,v){return React.createElement(LeafletConsumer,null,function(g){return React.createElement(o,_extends$v({},h,{leaflet:g,ref:v}))})},d=o.displayName||o.name||"Component";u.displayName="Leaflet("+d+")";var f=reactExports.forwardRef(u);return hoistNonReactStatics(f,o),f},EVENTS_RE=/^on(.+)$/i,MapEvented=(function(l){_inheritsLoose(o,l);function o(d){var f;return f=l.call(this,d)||this,_defineProperty$1z(_assertThisInitialized$1y(f),"_leafletEvents",void 0),_defineProperty$1z(_assertThisInitialized$1y(f),"leafletElement",void 0),f._leafletEvents=f.extractLeafletEvents(d),f}var u=o.prototype;return u.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},u.componentDidUpdate=function(f){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},u.componentWillUnmount=function(){var f=this,p=this.leafletElement;p&&Object.keys(this._leafletEvents).forEach(function(h){p.off(h,f._leafletEvents[h])})},u.extractLeafletEvents=function(f){return Object.keys(f).reduce(function(p,h){if(EVENTS_RE.test(h)&&f[h]!=null){var v=h.replace(EVENTS_RE,function(g,m){return m.toLowerCase()});p[v]=f[h]}return p},{})},u.bindLeafletEvents=function(f,p){f===void 0&&(f={}),p===void 0&&(p={});var h=this.leafletElement;if(h==null||h.on==null)return{};var v=_extends$v({},p);return Object.keys(p).forEach(function(g){(f[g]==null||p[g]!==f[g])&&(delete v[g],h.off(g,p[g]))}),Object.keys(f).forEach(function(g){(p[g]==null||f[g]!==p[g])&&(v[g]=f[g],h.on(g,f[g]))}),v},u.fireLeafletEvent=function(f,p){var h=this.leafletElement;h&&h.fire(f,p)},o})(reactExports.Component),MapComponent=(function(l){_inheritsLoose(o,l);function o(){return l.apply(this,arguments)||this}var u=o.prototype;return u.getOptions=function(f){return f.pane!=null?f:f.leaflet!=null&&f.leaflet.pane!=null?_extends$v({},f,{pane:f.leaflet.pane}):f},o})(MapEvented),MapLayer=(function(l){_inheritsLoose(o,l);function o(d){var f;return f=l.call(this,d)||this,_defineProperty$1z(_assertThisInitialized$1y(f),"contextValue",void 0),_defineProperty$1z(_assertThisInitialized$1y(f),"leafletElement",void 0),f.leafletElement=f.createLeafletElement(d),f}var u=o.prototype;return u.createLeafletElement=function(f){throw new Error("createLeafletElement() must be implemented")},u.updateLeafletElement=function(f,p){},u.componentDidMount=function(){l.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},u.componentDidUpdate=function(f){if(l.prototype.componentDidUpdate.call(this,f),this.props.attribution!==f.attribution){var p=this.props.leaflet.map;p!=null&&p.attributionControl!=null&&(p.attributionControl.removeAttribution(f.attribution),p.attributionControl.addAttribution(this.props.attribution))}this.updateLeafletElement(f,this.props)},u.componentWillUnmount=function(){l.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},u.render=function(){var f=this.props.children;return f==null?null:this.contextValue==null?React.createElement(reactExports.Fragment,null,f):React.createElement(LeafletProvider,{value:this.contextValue},f)},_createClass$2c(o,[{key:"layerContainer",get:function(){return this.props.leaflet.layerContainer||this.props.leaflet.map}}]),o})(MapComponent),splitClassName=function l(o){return o===void 0&&(o=""),o.split(" ").filter(
154Boolean)},addClassName=function l(o,u){splitClassName(u).forEach(function(d){leafletSrcExports.DomUtil.addClass(o,d)})},removeClassName=function l(o,u){splitClassName(u).forEach(function(d){leafletSrcExports.DomUtil.removeClass(o,d)})};const updateClassName=(function(l,o,u){l!=null&&u!==o&&(o!=null&&o.length>0&&removeClassName(l,o),u!=null&&u.length>0&&addClassName(l,u))});var DivOverlay=(function(l){_inheritsLoose(o,l);function o(d){var f;return f=l.call(this,d)||this,_defineProperty$1z(_assertThisInitialized$1y(f),"onClose",function(){f.props.onClose&&f.props.onClose()}),_defineProperty$1z(_assertThisInitialized$1y(f),"onOpen",function(){f.forceUpdate(),f.props.onOpen&&f.props.onOpen()}),f.leafletElement=f.createLeafletElement(d),f}var u=o.prototype;return u.createLeafletElement=function(f){throw new Error("createLeafletElement() must be implemented")},u.updateLeafletElement=function(f,p){},u.componentDidUpdate=function(f){updateClassName(this.leafletElement._container,f.className,this.props.className),this.updateLeafletElement(f,this.props),this.leafletElement.isOpen()&&(this.leafletElement.update(),this.onRender())},u.onRender=function(){},u.render=function(){return this.leafletElement._contentNode?reactDomExports.createPortal(this.props.children,this.leafletElement._contentNode):null},o})(MapComponent),GridLayer=(function(l){_inheritsLoose(o,l);function o(){return l.apply(this,arguments)||this}var u=o.prototype;return u.createLeafletElement=function(f){return new leafletSrcExports.GridLayer(this.getOptions(f))},u.updateLeafletElement=function(f,p){var h=p.opacity,v=p.zIndex;h!==f.opacity&&this.leafletElement.setOpacity(h),v!==f.zIndex&&this.leafletElement.setZIndex(v)},u.getOptions=function(f){var p=_extends$v({},l.prototype.getOptions.call(this,f)),h=f.leaflet.map;return h!=null&&(p.maxZoom==null&&h.options.maxZoom!=null&&(p.maxZoom=h.options.maxZoom),p.minZoom==null&&h.options.minZoom!=null&&(p.minZoom=h.options.minZoom)),p},u.render=function(){return null},o})(MapLayer);function omit(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return Object.keys(l).reduce(function(f,p){return u.indexOf(p)===-1&&(f[p]=l[p]),f},{})}var OTHER_PROPS=["children","className","id","style","useFlyTo","whenReady"],normalizeCenter=function l(o){return Array.isArray(o)?[o[0],o[1]]:[o.lat,o.lon?o.lon:o.lng]},Map$1=(function(l){_inheritsLoose(o,l);function o(d){var f;return f=l.call(this,d)||this,_defineProperty$1z(_assertThisInitialized$1y(f),"className",void 0),_defineProperty$1z(_assertThisInitialized$1y(f),"contextValue",void 0),_defineProperty$1z(_assertThisInitialized$1y(f),"container",void 0),_defineProperty$1z(_assertThisInitialized$1y(f),"viewport",{center:void 0,zoom:void 0}),_defineProperty$1z(_assertThisInitialized$1y(f),"_ready",!1),_defineProperty$1z(_assertThisInitialized$1y(f),"_updating",!1),_defineProperty$1z(_assertThisInitialized$1y(f),"onViewportChange",function(){var p=f.leafletElement.getCenter();f.viewport={center:p?[p.lat,p.lng]:void 0,zoom:f.leafletElement.getZoom()},f.props.onViewportChange&&!f._updating&&f.props.onViewportChange(f.viewport)}),_defineProperty$1z(_assertThisInitialized$1y(f),"onViewportChanged",function(){f.props.onViewportChanged&&!f._updating&&f.props.onViewportChanged(f.viewport)}),_defineProperty$1z(_assertThisInitialized$1y(f),"bindContainer",function(p){f.container=p}),f.className=d.className,f}var u=o.prototype;return u.createLeafletElement=function(f){var p=f.viewport,h=_objectWithoutPropertiesLoose$o(f,["viewport"]);return p&&(p.center&&(h.center=p.center),typeof p.zoom=="number"&&(h.zoom=p.zoom)),new leafletSrcExports.Map(this.container,h)},u.updateLeafletElement=function(f,p){this._updating=!0;var h=p.bounds,v=p.boundsOptions,g=p.boxZoom,m=p.center,y=p.className,b=p.doubleClickZoom,w=p.dragging,E=p.keyboard,P=p.maxBounds,C=p.scrollWheelZoom,T=p.tap,O=p.touchZoom,x=p.useFlyTo,A=p.viewport,D=p.zoom;if(updateClassName(this.container,f.className,y),A&&A!==f.viewport){var j=A.center?A.center:m,M=A.zoom==null?D:A.zoom;x===!0?this.leafletElement.flyTo(j,M,this.getZoomPanOptions(p)):this.leafletElement.setView(j,M,this.getZoomPanOptions(p))}else m&&this.shouldUpdateCenter(m,f.center)?x===!0?this.leafletElement.flyTo(m,D,this.getZoomPanOptions(p)):this.leafletElement.setView(m,D,this.getZoomPanOptions(p)):typeof D=="number"&&D!==f.zoom&&(f.zoom==null?this.leafletElement.setView(m,D,this.getZoomPanOptions(p)):this.leafletElement.setZoom(D,this.getZoomPanOptions(p)));P&&this.shouldUpdateBounds(P,f.maxBounds)&&this.leafletElement.setMaxBounds(P),h&&(this.shouldUpdateBounds(h,f.bounds)||v!==f.boundsOptions)&&(x===!0?this.leafletElement.flyToBounds(h,this.getFitBoundsOptions(p)):this.leafletElement.fitBounds(h,this.getFitBoundsOptions(p))),g!==f.boxZoom&&(g===!0?this.leafletElement.boxZoom.enable():this.leafletElement.boxZoom.disable()),b!==f.doubleClickZoom&&(b===!0||typeof b=="string"?(this.leafletElement.options.doubleClickZoom=b,this.leafletElement.doubleClickZoom.enable()):this.leafletElement.doubleClickZoom.disable()),w!==f.dragging&&(w===!0?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable()),E!==f.keyboard&&(E===!0?this.leafletElement.keyboard.enable():this.leafletElement.keyboard.disable()),C!==f.scrollWheelZoom&&(C===!0||typeof C=="string"?(this.leafletElement.options.scrollWheelZoom=C,this.leafletElement.scrollWheelZoom.enable()):this.leafletElement.scrollWheelZoom.disable()),T!==f.tap&&(T===!0?this.leafletElement.tap.enable():this.leafletElement.tap.disable()),O!==f.touchZoom&&(O===!0||typeof O=="string"?(this.leafletElement.options.touchZoom=O,this.leafletElement.touchZoom.enable()):this.leafletElement.touchZoom.disable()),this._updating=!1},u.getZoomPanOptions=function(f){var p=f.animate,h=f.duration,v=f.easeLinearity,g=f.noMoveStart;return{animate:p,duration:h,easeLinearity:v,noMoveStart:g}},u.getFitBoundsOptions=function(f){var p=this.getZoomPanOptions(f);return _extends$v({},p,f.boundsOptions)},u.componentDidMount=function(){var f=omit.apply(void 0,[this.props].concat(OTHER_PROPS));this.leafletElement=this.createLeafletElement(f),this.leafletElement.on("move",this.onViewportChange),this.leafletElement.on("moveend",this.onViewportChanged),f.bounds!=null&&this.leafletElement.fitBounds(f.bounds,this.getFitBoundsOptions(f)),this.contextValue={layerContainer:this.leafletElement,map:this.leafletElement},l.prototype.componentDidMount.call(this),this.forceUpdate()},u.componentDidUpdate=function(f){this._ready===!1&&(this._ready=!0,this.props.whenReady&&this.leafletElement.whenReady(this.props.whenReady)),l.prototype.componentDidUpdate.call(this,f),this.updateLeafletElement(f,this.props)},u.componentWillUnmount=function(){l.prototype.componentWillUnmount.call(this),this.leafletElement.off("move",this.onViewportChange),this.leafletElement.off("moveend",this.onViewportChanged),this.props.preferCanvas===!0?(this.leafletElement._initEvents(!0),this.leafletElement._stop()):this.leafletElement.remove()},u.shouldUpdateCenter=function(f,p){return p?(f=normalizeCenter(f),p=normalizeCenter(p),f[0]!==p[0]||f[1]!==p[1]):!0},u.shouldUpdateBounds=function(f,p){return p?!leafletSrcExports.latLngBounds(f).equals(leafletSrcExports.latLngBounds(p)):!0},u.render=function(){return React.createElement("div",{className:this.className,id:this.props.id,ref:this.bindContainer,style:this.props.style},this.contextValue?React.createElement(LeafletProvider,{value:this.contextValue},this.props.children):null)},o})(MapEvented),Marker=(function(l){_inheritsLoose(o,l);function o(){return l.apply(this,arguments)||this}var u=o.prototype;return u.createLeafletElement=function(f){var p=new leafletSrcExports.Marker(f.position,this.getOptions(f));return this.contextValue=_extends$v({},f.leaflet,{popupContainer:p}),p},u.updateLeafletElement=function(f,p){p.position!==f.position&&this.leafletElement.setLatLng(p.position),p.icon!==f.icon&&this.leafletElement.setIcon(p.icon),p.zIndexOffset!==f.zIndexOffset&&this.leafletElement.setZIndexOffset(p.zIndexOffset),p.opacity!==f.opacity&&this.leafletElement.setOpacity(p.opacity),p.draggable!==f.draggable&&(p.draggable===!0?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable())},u.render=function(){var f=this.props.children;return f==null||this.contextValue==null?null:React.createElement(LeafletProvider,{value:this.contextValue},f)},o})(MapLayer);const Marker$1=withLeaflet(Marker);var Popup=(function(l){_inheritsLoose(o,l);function o(){for(var d,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return d=l.call.apply(l,[this].concat(p))||this,_defineProperty$1z(_assertThisInitialized$1y(d),"onPopupOpen",function(v){var g=v.popup;g===d.leafletElement&&d.onOpen()}),_defineProperty$1z(_assertThisInitialized$1y(d),"onPopupClose",function(v){var g=v.popup;g===d.leafletElement&&d.onClose()}),_defineProperty$1z(_assertThisInitialized$1y(d),"onRender",function(){d.props.autoPan!==!1&&d.leafletElement.isOpen()&&(d.leafletElement._map&&d.leafletElement._map._panAnim&&(d.leafletElement._map._panAnim=void 0),d.leafletElement._adjustPan())}),d}var u=o.prototype;return u.getOptions=function(f){return _extends$v({},l.prototype.getOptions.call(this,f),{autoPan:!1})},u.createLeafletElement=function(f){var p=this.getOptions(f);return p.autoPan=f.autoPan!==!1,new leafletSrcExports.Popup(p,f.leaflet.popupContainer)},u.updateLeafletElement=function(f,p){p.position!==f.position&&this.leafletElement.setLatLng(p.position)},u.componentDidMount=function(){var f=this.props.position,p=this.props.leaflet,h=p.map,v=p.popupContainer,g=this.leafletElement;h?.on({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),v?v.bindPopup(g):(f&&g.setLatLng(f),g.openOn(h))},u.componentWillUnmount=function(){var f=this.props.leaflet.map;f!=null&&(f.off({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),f.removeLayer(this.leafletElement)),l.prototype.componentWillUnmount.call(this)},o})(DivOverlay);_defineProperty$1z(Popup,"defaultProps",{pane:"popupPane"});const Popup$1=withLeaflet(Popup);var TileLayer=(function(l){_inheritsLoose(o,l);function o(){return l.apply(this,arguments)||this}var u=o.prototype;return u.createLeafletElement=function(f){return new leafletSrcExports.TileLayer(f.url,this.getOptions(f))},u.updateLeafletElement=function(f,p){l.prototype.updateLeafletElement.call(this,f,p),p.url!==f.url&&this.leafletElement.setUrl(p.url)},o})(GridLayer);const TileLayer$1=withLeaflet(TileLayer);var MapShim=(function(){if(typeof Map<"u")return Map;function l(o,u){var d=-1;return o.some(function(f,p){return f[0]===u?(d=p,!0):!1}),d}return(function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(u){var d=l(this.__entries__,u),f=this.__entries__[d];return f&&f[1]},o.prototype.set=function(u,d){var f=l(this.__entries__,u);~f?this.__entries__[f][1]=d:this.__entries__.push([u,d])},o.prototype.delete=function(u){var d=this.__entries__,f=l(d,u);~f&&d.splice(f,1)},o.prototype.has=function(u){return!!~l(this.__entries__,u)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(u,d){d===void 0&&(d=null);for(var f=0,p=this.__entries__;f<p.length;f++){var h=p[f];u.call(d,h[1],h[0])}},o})()})(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),requestAnimationFrame$1=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(l){return setTimeout(function(){return l(Date.now())},1e3/60)}})(),trailingTimeout=2;function throttle(l,o){var u=!1,d=!1,f=0;
vendor: 8,993 bytes, line 154
154function p(){u&&(u=!1,l()),d&&v()}function h(){requestAnimationFrame$1(p)}function v(){var g=Date.now();if(u){if(g-f<trailingTimeout)return;d=!0}else u=!0,d=!1,setTimeout(h,o);f=g}return v}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=(function(){function l(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return l.prototype.addObserver=function(o){~this.observers_.indexOf(o)||this.observers_.push(o),this.connected_||this.connect_()},l.prototype.removeObserver=function(o){var u=this.observers_,d=u.indexOf(o);~d&&u.splice(d,1),!u.length&&this.connected_&&this.disconnect_()},l.prototype.refresh=function(){var o=this.updateObservers_();o&&this.refresh()},l.prototype.updateObservers_=function(){var o=this.observers_.filter(function(u){return u.gatherActive(),u.hasActive()});return o.forEach(function(u){return u.broadcastActive()}),o.length>0},l.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},l.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},l.prototype.onTransitionEnd_=function(o){var u=o.propertyName,d=u===void 0?"":u,f=transitionKeys.some(function(p){return!!~d.indexOf(p)});f&&this.refresh()},l.getInstance=function(){return this.instance_||(this.instance_=new l),this.instance_},l.instance_=null,l})(),defineConfigurable=(function(l,o){for(var u=0,d=Object.keys(o);u<d.length;u++){var f=d[u];Object.defineProperty(l,f,{value:o[f],enumerable:!1,writable:!1,configurable:!0})}return l}),getWindowOf=(function(l){var o=l&&l.ownerDocument&&l.ownerDocument.defaultView;return o||global$1}),emptyRect=createRectInit(0,0,0,0);function toFloat(l){return parseFloat(l)||0}function getBordersSize(l){for(var o=[],u=1;u<arguments.length;u++)o[u-1]=arguments[u];return o.reduce(function(d,f){var p=l["border-"+f+"-width"];return d+toFloat(p)},0)}function getPaddings(l){for(var o=["top","right","bottom","left"],u={},d=0,f=o;d<f.length;d++){var p=f[d],h=l["padding-"+p];u[p]=toFloat(h)}return u}function getSVGContentRect(l){var o=l.getBBox();return createRectInit(0,0,o.width,o.height)}function getHTMLElementContentRect(l){var o=l.clientWidth,u=l.clientHeight;if(!o&&!u)return emptyRect;var d=getWindowOf(l).getComputedStyle(l),f=getPaddings(d),p=f.left+f.right,h=f.top+f.bottom,v=toFloat(d.width),g=toFloat(d.height);if(d.boxSizing==="border-box"&&(Math.round(v+p)!==o&&(v-=getBordersSize(d,"left","right")+p),Math.round(g+h)!==u&&(g-=getBordersSize(d,"top","bottom")+h)),!isDocumentElement(l)){var m=Math.round(v+p)-o,y=Math.round(g+h)-u;Math.abs(m)!==1&&(v-=m),Math.abs(y)!==1&&(g-=y)}return createRectInit(f.left,f.top,v,g)}var isSVGGraphicsElement=(function(){return typeof SVGGraphicsElement<"u"?function(l){return l instanceof getWindowOf(l).SVGGraphicsElement}:function(l){return l instanceof getWindowOf(l).SVGElement&&typeof l.getBBox=="function"}})();function isDocumentElement(l){return l===getWindowOf(l).document.documentElement}function getContentRect(l){return isBrowser?isSVGGraphicsElement(l)?getSVGContentRect(l):getHTMLElementContentRect(l):emptyRect}function createReadOnlyRect(l){var o=l.x,u=l.y,d=l.width,f=l.height,p=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,h=Object.create(p.prototype);return defineConfigurable(h,{x:o,y:u,width:d,height:f,top:u,right:o+d,bottom:f+u,left:o}),h}function createRectInit(l,o,u,d){return{x:l,y:o,width:u,height:d}}var ResizeObservation=(function(){function l(o){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=o}return l.prototype.isActive=function(){var o=getContentRect(this.target);return this.contentRect_=o,o.width!==this.broadcastWidth||o.height!==this.broadcastHeight},l.prototype.broadcastRect=function(){var o=this.contentRect_;return this.broadcastWidth=o.width,this.broadcastHeight=o.height,o},l})(),ResizeObserverEntry=(function(){function l(o,u){var d=createReadOnlyRect(u);defineConfigurable(this,{target:o,contentRect:d})}return l})(),ResizeObserverSPI=(function(){function l(o,u,d){if(this.activeObservations_=[],this.observations_=new MapShim,typeof o!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=o,this.controller_=u,this.callbackCtx_=d}return l.prototype.observe=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var u=this.observations_;u.has(o)||(u.set(o,new ResizeObservation(o)),this.controller_.addObserver(this),this.controller_.refresh())}},l.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var u=this.observations_;u.has(o)&&(u.delete(o),u.size||this.controller_.removeObserver(this))}},l.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},l.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(u){u.isActive()&&o.activeObservations_.push(u)})},l.prototype.broadcastActive=function(){if(this.hasActive()){var o=this.callbackCtx_,u=this.activeObservations_.map(function(d){return new ResizeObserverEntry(d.target,d.broadcastRect())});this.callback_.call(o,u,o),this.clearActive()}},l.prototype.clearActive=function(){this.activeObservations_.splice(0)},l.prototype.hasActive=function(){return this.activeObservations_.length>0},l})(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$3=(function(){function l(o){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var u=ResizeObserverController.getInstance(),d=new ResizeObserverSPI(o,u,this);observers.set(this,d)}return l})();["observe","unobserve","disconnect"].forEach(function(l){ResizeObserver$3.prototype[l]=function(){var o;return(o=observers.get(this))[l].apply(o,arguments)}});var index=(function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$3})();const ResizeObserver_es=Object.freeze(Object.defineProperty({__proto__:null,default:index},Symbol.toStringTag,{value:"Module"}));function _classCallCheck$X(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$X(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$15(d.key),d)}}function _createClass$X(l,o,u){return o&&_defineProperties$X(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$15(l){var o=_toPrimitive$15(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$15(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$U(l,o,u){return o=_getPrototypeOf$U(o),_possibleConstructorReturn$U(l,_isNativeReflectConstruct$U()?Reflect.construct(o,u||[],_getPrototypeOf$U(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$U(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$U(l)}function _assertThisInitialized$U(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$U(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$U=function(){return!!l})()}
154function _getPrototypeOf$U(l){return _getPrototypeOf$U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$U(l)}function _inherits$U(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$U(l,o)}function _setPrototypeOf$U(l,o){return _setPrototypeOf$U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$U(l,o)}var ErrorDialog$1=(function(l){function o(){return _classCallCheck$X(this,o),_callSuper$U(this,o,arguments)}return _inherits$U(o,l),_createClass$X(o,[{key:"render",value:function(){var d=this.props,f=d.error,p=d.removeError,h=d.t,v=!_isUndefined(f);return f?React.createElement(Dialog$1,{"aria-labelledby":"error-dialog-title",id:"error-dialog",onClose:function(){return p(f.id)},open:v},React.createElement(DialogTitle$1,{id:"error-dialog-title",disableTypography:!0},React.createElement(Typography$1,{variant:"h2"},h("errorDialogTitle"))),React.createElement(DialogContent$1,{disableTypography:!0},React.createElement(DialogContentText$1,{variant:"body2",noWrap:!0,color:"inherit"},"".concat(f.message)),React.createElement(DialogActions$1,null,React.createElement(Button$1,{onClick:function(){return p(f.id)},variant:"contained"},h("errorDialogConfirm"))))):null}}])})(reactExports.Component);ErrorDialog$1.defaultProps={error:null,removeError:function l(){},t:function l(o){return o}};var mapStateToProps$G=function l(o){return{error:getLatestError$1(o)}},mapDispatchToProps$u={removeError:removeError$1},enhance$Q=compose$2(withTranslation(),connect(mapStateToProps$G,mapDispatchToProps$u),withPlugins$1("ErrorDialog"));const ErrorDialog=enhance$Q(ErrorDialog$1);var AddSharp={},hasRequiredAddSharp;function requireAddSharp(){if(hasRequiredAddSharp)return AddSharp;hasRequiredAddSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(AddSharp,"__esModule",{value:!0}),AddSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddSharp");return AddSharp.default=f,AddSharp}var AddSharpExports=requireAddSharp();const AddIcon=getDefaultExportFromCjs(AddSharpExports);function _classCallCheck$W(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$W(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$14(d.key),d)}}function _createClass$W(l,o,u){return o&&_defineProperties$W(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$14(l){var o=_toPrimitive$14(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$14(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$T(l,o,u){return o=_getPrototypeOf$T(o),_possibleConstructorReturn$T(l,_isNativeReflectConstruct$T()?Reflect.construct(o,u||[],_getPrototypeOf$T(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$T(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$T(l)}function _assertThisInitialized$T(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$T(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$T=function(){return!!l})()}function _getPrototypeOf$T(l){return _getPrototypeOf$T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$T(l)}function _inherits$T(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$T(l,o)}function _setPrototypeOf$T(l,o){return _setPrototypeOf$T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$T(l,o)}var WorkspaceAddButton$1=(function(l){function o(){return _classCallCheck$W(this,o),_callSuper$T(this,o,arguments)}return _inherits$T(o,l),_createClass$W(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.t,h=d.setWorkspaceAddVisibility,v=d.isWorkspaceAddVisible,g=d.useExtendedFab;return React.createElement(Tooltip$1,{title:p(v?"closeAddResourceMenu":"addResource")},React.createElement(Fab$1,{size:"medium",color:"primary",id:"addBtn",disableRipple:!0,"aria-label":v?p("closeAddResourceMenu"):g&&p("startHere")||p("addResource"),className:f.fab,classes:{primary:f.fabPrimary,secondary:f.fabSecondary},variant:g?"extended":"circular",onClick:function(){h(!v)}},v?React.createElement(CloseIcon$1,null):React.createElement(AddIcon,null),g&&p("startHere")))}}])})(reactExports.Component);WorkspaceAddButton$1.defaultProps={isWorkspaceAddVisible:!1,t:function l(o){return o}};var mapStateToProps$F=function l(o,u){var d=u.width,f=getWorkspace$1(o),p=f.isWorkspaceAddVisible;return{isWorkspaceAddVisible:p,useExtendedFab:d!=="xs"&&!p&&getWindowIds$1(o).length===0}},mapDispatchToProps$t={setWorkspaceAddVisibility:setWorkspaceAddVisibility$1},styles$I=function l(o){return{fab:{margin:o.spacing(1)},fabPrimary:{"&:focus":{backgroundColor:o.palette.primary.dark}},fabSecondary:{"&:focus":{backgroundColor:o.palette.secondary.dark}}}},enhance$P=compose$2(withTranslation(),withStyles$2(styles$I),withWidth(),connect(mapStateToProps$F,mapDispatchToProps$t),withPlugins$1("WorkspaceAddButton"));const WorkspaceAddButton=enhance$P(WorkspaceAddButton$1);var SettingsSharp={},hasRequiredSettingsSharp;function requireSettingsSharp(){if(hasRequiredSettingsSharp)return SettingsSharp;hasRequiredSettingsSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(SettingsSharp,"__esModule",{value:!0}),SettingsSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return SettingsSharp.default=f,SettingsSharp}var SettingsSharpExports=requireSettingsSharp();const SettingsIcon=getDefaultExportFromCjs(SettingsSharpExports);var CheckSharp={},hasRequiredCheckSharp;function requireCheckSharp(){if(hasRequiredCheckSharp)return CheckSharp;hasRequiredCheckSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(CheckSharp,"__esModule",{value:!0}),CheckSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"}),"CheckSharp");return CheckSharp.default=f,CheckSharp}var CheckSharpExports=requireCheckSharp();const CheckIcon=getDefaultExportFromCjs(CheckSharpExports);function _classCallCheck$V(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$V(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$13(d.key),d)}}function _createClass$V(l,o,u){return o&&_defineProperties$V(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$13(l){var o=_toPrimitive$13(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$13(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$S(l,o,u){return o=_getPrototypeOf$S(o),_possibleConstructorReturn$S(l,_isNativeReflectConstruct$S()?Reflect.construct(o,u||[],_getPrototypeOf$S(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$S(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$S(l)}function _assertThisInitialized$S(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$S(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$S=function(){return!!l})()}
154function _getPrototypeOf$S(l){return _getPrototypeOf$S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$S(l)}function _inherits$S(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$S(l,o)}function _setPrototypeOf$S(l,o){return _setPrototypeOf$S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$S(l,o)}var LanguageSettings$1=(function(l){function o(){return _classCallCheck$V(this,o),_callSuper$S(this,o,arguments)}return _inherits$S(o,l),_createClass$V(o,[{key:"render",value:function(){var d=this.props,f=d.handleClick,p=d.languages;return React.createElement(React.Fragment,null,p.map(function(h){return React.createElement(MenuItem$1,{button:!h.current,key:h.locale,onClick:function(){f(h.locale)}},React.createElement(ListItemIcon$1,null,h.current&&React.createElement(CheckIcon,null)),React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body1"}},h.label))}))}}])})(reactExports.Component),mapStateToProps$E=function l(o){return{languages:getLanguagesFromConfigWithCurrent$1(o)}},mapDispatchToProps$s=function l(o,u){var d=u.afterSelect;return{handleClick:function(p){o(updateConfig$1({language:p})),d&&d()}}};const LanguageSettings=compose$2(connect(mapStateToProps$E,mapDispatchToProps$s),withPlugins$1("LanguageSettings"))(LanguageSettings$1);var ExpandLessSharp={},hasRequiredExpandLessSharp;function requireExpandLessSharp(){if(hasRequiredExpandLessSharp)return ExpandLessSharp;hasRequiredExpandLessSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ExpandLessSharp,"__esModule",{value:!0}),ExpandLessSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");return ExpandLessSharp.default=f,ExpandLessSharp}var ExpandLessSharpExports=requireExpandLessSharp();const ExpandLess=getDefaultExportFromCjs(ExpandLessSharpExports);var ExpandMoreSharp={},hasRequiredExpandMoreSharp;function requireExpandMoreSharp(){if(hasRequiredExpandMoreSharp)return ExpandMoreSharp;hasRequiredExpandMoreSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ExpandMoreSharp,"__esModule",{value:!0}),ExpandMoreSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");return ExpandMoreSharp.default=f,ExpandMoreSharp}var ExpandMoreSharpExports=requireExpandMoreSharp();const ExpandMoreIcon=getDefaultExportFromCjs(ExpandMoreSharpExports);var _excluded$2=["children","icon","label"];function _objectWithoutProperties$2(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$2(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$2(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function _classCallCheck$U(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$U(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$12(d.key),d)}}function _createClass$U(l,o,u){return o&&_defineProperties$U(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$12(l){var o=_toPrimitive$12(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$12(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$R(l,o,u){return o=_getPrototypeOf$R(o),_possibleConstructorReturn$R(l,_isNativeReflectConstruct$R()?Reflect.construct(o,u||[],_getPrototypeOf$R(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$R(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$R(l)}function _assertThisInitialized$R(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$R(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$R=function(){return!!l})()}
154function _getPrototypeOf$R(l){return _getPrototypeOf$R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$R(l)}function _inherits$R(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$R(l,o)}function _setPrototypeOf$R(l,o){return _setPrototypeOf$R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$R(l,o)}var NestedMenu=(function(l){function o(u){var d;return _classCallCheck$U(this,o),d=_callSuper$R(this,o,[u]),d.state={nestedMenuIsOpen:!1},d.handleMenuClick=d.handleMenuClick.bind(d),d}return _inherits$R(o,l),_createClass$U(o,[{key:"handleMenuClick",value:function(){var d=this.state.nestedMenuIsOpen;this.setState({nestedMenuIsOpen:!d})}},{key:"render",value:function(){var d=this.state.nestedMenuIsOpen,f=this.props,p=f.children,h=f.icon,v=f.label,g=_objectWithoutProperties$2(f,_excluded$2);return React.createElement(React.Fragment,null,React.createElement(MenuItem$1,Object.assign({onClick:this.handleMenuClick,divider:d},g),h&&React.createElement(ListItemIcon$1,null,h),React.createElement(ListItemText$1,{primaryTypographyProps:{variant:"body1"}},v),d?React.createElement(ExpandLess,null):React.createElement(ExpandMoreIcon,null)),d&&p)}}])})(reactExports.Component);NestedMenu.defaultProps={icon:null};function ElasticWorkspaceIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225"},React.createElement("defs",null,React.createElement("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:"0"}),React.createElement("stop",{offset:"0.14",stopOpacity:"0.631"}),React.createElement("stop",{offset:"1",stopOpacity:"0"})),React.createElement("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),React.createElement("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),React.createElement("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),React.createElement("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),React.createElement("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),React.createElement("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),React.createElement("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),React.createElement("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),React.createElement("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),React.createElement("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),React.createElement("stop",{offset:"1",stopColor:"#fff"})),React.createElement("clipPath",{id:"clip-elastic_icon"},React.createElement("rect",{width:"300",height:"225"}))),React.createElement("g",{id:"elastic_icon","data-name":"elastic icon",clipPath:"url(#clip-elastic_icon)"},React.createElement("rect",{width:"300",height:"225",fill:"#fff"}),React.createElement("g",{id:"Rectangle_278","data-name":"Rectangle 278",transform:"translate(232 159)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"54",height:"54",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"53",height:"53",fill:"none"})),React.createElement("g",{id:"Rectangle_8","data-name":"Rectangle 8",transform:"translate(7 148)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"70",height:"70",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"69",height:"69",fill:"none"})),React.createElement("g",{id:"Rectangle_258","data-name":"Rectangle 258",transform:"translate(224 6)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"70",height:"100",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"69",height:"99",fill:"none"})),React.createElement("g",{id:"Rectangle_259","data-name":"Rectangle 259",transform:"translate(71 64)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"115",height:"75",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})),React.createElement("g",{id:"Rectangle_260","data-name":"Rectangle 260",transform:"translate(99 87)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"115",height:"75",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})),React.createElement("g",{id:"Group_689","data-name":"Group 689"},React.createElement("g",{id:"Group_687","data-name":"Group 687",transform:"translate(0 3)"},React.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"}),React.createElement("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 36)",fill:"none"},React.createElement("path",{d:"M0,0H220V147H0Z",stroke:"none"}),React.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 
154L 0 0 Z",stroke:"none",fill:"#01579b"}))),React.createElement("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2"},React.createElement("rect",{width:"20",height:"147",stroke:"none"}),React.createElement("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})),React.createElement("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)"},React.createElement("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),React.createElement("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12"},React.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)"}),React.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 WorkspaceTypeMosaicIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225"},React.createElement("defs",null,React.createElement("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:"0"}),React.createElement("stop",{offset:"0.14",stopOpacity:"0.631"}),React.createElement("stop",{offset:"1",stopOpacity:"0"})),React.createElement("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),React.createElement("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),React.createElement("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),React.createElement("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),React.createElement("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),React.createElement("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),React.createElement("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),React.createElement("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),React.createElement("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),React.createElement("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),React.createElement("stop",{offset:"1",stopColor:"#fff"})),React.createElement("clipPath",{id:"clip-mosaic_icon"},React.createElement("rect",{width:"300",height:"225"}))),React.createElement("g",{id:"mosaic_icon","data-name":"mosaic icon",clipPath:"url(#clip-mosaic_icon)"},React.createElement("rect",{width:"300",height:"225",fill:"#fff"}),React.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"}),React.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"}),React.createElement("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 39)",fill:"none"},React.createElement("path",{d:"M0,0H220V147H0Z",stroke:"none"}),React.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"})),React.createElement("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2"},React.createElement("rect",{width:"20",height:"147",stroke:"none"}),React.createElement("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})),React.createElement("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)"},React.createElement("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),React.createElement("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12"},React.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)"}),React.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)"}))),React.createElement("g",{id:"Rectangle_270","data-name":"Rectangle 270",transform:"translate(60 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"99",height:"72",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})),React.createElement("g",{id:"Rectangle_271","data-name":"Rectangle 271",transform:"translate(159 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"99",height:"72",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})),React.createElement("g",{id:"Rectangle_272","data-name":"Rectangle 272",transform:"translate(192 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})),React.createElement("g",{id:"Rectangle_284","data-name":"Rectangle 284",transform:"translate(60 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})),React.createElement("g",{id:"Rectangle_285","data-name":"Rectangle 285",transform:"translate(126 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},React.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})))))}var _excluded$1=["classes","className"];function _objectWithoutProperties$1(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose$1(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose$1(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function ScrollIndicatedDialogContent$1(l){var o=l.classes,u=l.className,d=_objectWithoutProperties$1(l,_excluded$1),f=[u,o.shadowScrollDialog].join(" ");return React.createElement(DialogContent$1,Object.assign({className:f},d))}ScrollIndicatedDialogContent$1.defaultProps={className:""};function _defineProperty$d(l,o,u){return(o=_toPropertyKey$11(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$11(l){var o=_toPrimitive$11(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$11(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
154return(o==="string"?String:Number)(l)}var styles$H=function l(o){return{shadowScrollDialog:_defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d({background:"linear-gradient(".concat(o.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(o.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%,"},"background","linear-gradient(".concat(o.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(o.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%;"),"backgroundAttachment","local, local, scroll, scroll"),"backgroundRepeat","no-repeat"),"backgroundSize","100% 40px, 100% 40px, 100% 14px, 100% 14px"),"overflowY","auto")}};const ScrollIndicatedDialogContent=withStyles$2(styles$H)(ScrollIndicatedDialogContent$1);function _classCallCheck$T(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$T(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$10(d.key),d)}}function _createClass$T(l,o,u){return o&&_defineProperties$T(l.prototype,o),u&&_defineProperties$T(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$10(l){var o=_toPrimitive$10(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$10(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$Q(l,o,u){return o=_getPrototypeOf$Q(o),_possibleConstructorReturn$Q(l,_isNativeReflectConstruct$Q()?Reflect.construct(o,u||[],_getPrototypeOf$Q(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$Q(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$Q(l)}function _assertThisInitialized$Q(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$Q(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$Q=function(){return!!l})()}function _getPrototypeOf$Q(l){return _getPrototypeOf$Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$Q(l)}function _inherits$Q(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$Q(l,o)}function _setPrototypeOf$Q(l,o){return _setPrototypeOf$Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$Q(l,o)}
154var WorkspaceSelectionDialog$1=(function(l){function o(u){var d;return _classCallCheck$T(this,o),d=_callSuper$Q(this,o,[u]),d.handleWorkspaceTypeChange=d.handleWorkspaceTypeChange.bind(d),d}return _inherits$Q(o,l),_createClass$T(o,[{key:"handleWorkspaceTypeChange",value:function(d){var f=this.props,p=f.handleClose,h=f.updateWorkspace;h({type:d}),p()}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.container,v=f.handleClose,g=f.open,m=f.children,y=f.t,b=f.workspaceType;return React.createElement(Dialog$1,{"aria-labelledby":"workspace-selection-dialog-title",container:h,id:"workspace-selection-dialog",onClose:v,onEntered:function(E){return o.setInitialFocus(E,b)},onEscapeKeyDown:v,open:g},React.createElement(DialogTitle$1,{id:"workspace-selection-dialog-title",disableTypography:!0},React.createElement(Typography$1,{variant:"h2"},y("workspaceSelectionTitle"))),React.createElement(ScrollIndicatedDialogContent,null,m,React.createElement(MenuList,{classes:{root:p.list},selected:b},React.createElement(MenuItem$1,{className:p.menuItem,onClick:function(){return d.handleWorkspaceTypeChange("elastic")},selected:b==="elastic",value:"elastic"},React.createElement(Card$1,{className:p.card},React.createElement(ElasticWorkspaceIcon,{className:p.svgIcon,viewBox:"0 0 120 90"}),React.createElement("div",{className:p.details},React.createElement(CardContent$1,{classes:{root:p.root},className:p.content},React.createElement(Typography$1,{className:p.headline,component:"p",variant:"h3"},y("elastic")),React.createElement(Typography$1,{variant:"body1"},y("elasticDescription")))))),React.createElement(MenuItem$1,{className:p.menuItem,onClick:function(){return d.handleWorkspaceTypeChange("mosaic")},selected:b==="mosaic",value:"mosaic"},React.createElement(Card$1,{className:p.card},React.createElement(WorkspaceTypeMosaicIcon,{className:p.svgIcon,viewBox:"0 0 120 90"}),React.createElement("div",{className:p.details},React.createElement(CardContent$1,{className:p.content,classes:{root:p.root}},React.createElement(Typography$1,{className:p.headline,component:"p",variant:"h3"},y("mosaic")),React.createElement(Typography$1,{variant:"body1"},y("mosaicDescription")))))))))}}],[{key:"setInitialFocus",value:function(d,f){var p=d.querySelectorAll('li[value="'.concat(f,'"]'));!p||p.length===0||p[0].focus()}}])})(reactExports.Component);WorkspaceSelectionDialog$1.defaultProps={children:null,container:null,open:!1,t:function l(o){return o}};var mapDispatchToProps$r={updateWorkspace:updateWorkspace$1},mapStateToProps$D=function l(o){return{workspaceType:getWorkspaceType$1(o)}},styles$G=function l(o){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"}}},enhance$O=compose$2(withTranslation(),withStyles$2(styles$G),connect(mapStateToProps$D,mapDispatchToProps$r),withPlugins$1("WorkspaceSelectionDialog"));const WorkspaceSelectionDialog=enhance$O(WorkspaceSelectionDialog$1);var PaletteSharp={},hasRequiredPaletteSharp;function requirePaletteSharp(){if(hasRequiredPaletteSharp)return PaletteSharp;hasRequiredPaletteSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(PaletteSharp,"__esModule",{value:!0}),PaletteSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return PaletteSharp.default=f,PaletteSharp}var PaletteSharpExports=requirePaletteSharp();const PaletteIcon=getDefaultExportFromCjs(PaletteSharpExports);function _classCallCheck$S(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$S(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$$(d.key),d)}}function _createClass$S(l,o,u){return o&&_defineProperties$S(l.prototype,o),u&&_defineProperties$S(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$$(l){var o=_toPrimitive$$(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$$(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$P(l,o,u){return o=_getPrototypeOf$P(o),_possibleConstructorReturn$P(l,_isNativeReflectConstruct$P()?Reflect.construct(o,u||[],_getPrototypeOf$P(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$P(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$P(l)}function _assertThisInitialized$P(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$P(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$P=function(){return!!l})()}function _getPrototypeOf$P(l){return _getPrototypeOf$P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$P(l)}function _inherits$P(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$P(l,o)}function _setPrototypeOf$P(l,o){return _setPrototypeOf$P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$P(l,o)}var ChangeThemeDialog$1=(function(l){function o(u){var d;return _classCallCheck$S(this,o),d=_callSuper$P(this,o,[u]),d.selectedItemRef=React.createRef(),d.handleThemeChange=d.handleThemeChange.bind(d),d}return _inherits$P(o,l),_createClass$S(o,[{key:"handleThemeChange",value:function(d){var f=this.props,p=f.setSelectedTheme,h=f.handleClose;p(d),h()}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.handleClose,v=f.open,g=f.selectedTheme,m=f.t,y=f.themeIds;return React.createElement(Dialog$1,{onClose:h,onEntered:function(w){return o.setInitialFocus(w,g)},open:v},React.createElement(DialogTitle$1,{id:"change-the-dialog-title",disableTypography:!0},React.createElement(Typography$1,{variant:"h2"},m("changeTheme"))),React.createElement(DialogContent$1,{className:p.dialogContent},React.createElement(MenuList,null,y.map(function(b){return React.createElement(MenuItem$1,{key:b,className:p.listitem,onClick:function(){d.handleThemeChange(b)},selected:b===g,value:b},React.createElement(ListItemIcon$1,null,React.createElement(PaletteIcon,{className:p[b]})),React.createElement(ListItemText$1,null,m(b)))}))))}}],[{key:"setInitialFocus",value:function(d,f){var p=d.querySelectorAll('li[value="'.concat(f,'"]'));!p||p.length===0||p[0].focus()}}])})(reactExports.Component);ChangeThemeDialog$1.defaultProps={open:!1,themeIds:[]};var mapDispatchToProps$q=function l(o,u){return u.windowId,{setSelectedTheme:function(f){return o(updateConfig$1({selectedTheme:f}))}}},mapStateToProps$C=function l(o){return{selectedTheme:getConfig$1(o).selectedTheme,themeIds:getThemeIds$1(o)}},styles$F=function l(o){return{dark:{color:"#000000"},dialogContent:{padding:0},light:{color:"#BDBDBD"},listitem:{"&:focus":{backgroundColor:o.palette.action.focus},"&:hover":{backgroundColor:o.palette.action.hover},cursor:"pointer"}}},enhance$N=compose$2(withTranslation(),withStyles$2(styles$F),connect(mapStateToProps$C,mapDispatchToProps$q),withPlugins$1("ChangeThemeDialog"));const ChangeThemeDialog=enhance$N(ChangeThemeDialog$1);function _classCallCheck$R(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$R(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$_(d.key),d)}}function _createClass$R(l,o,u){return o&&_defineProperties$R(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$_(l){var o=_toPrimitive$_(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$_(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$O(l,o,u){return o=_getPrototypeOf$O(o),_possibleConstructorReturn$O(l,_isNativeReflectConstruct$O()?Reflect.construct(o,u||[],_getPrototypeOf$O(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$O(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$O(l)}function _assertThisInitialized$O(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$O(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$O=function(){return!!l})()}function _getPrototypeOf$O(l){return _getPrototypeOf$O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$O(l)}function _inherits$O(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$O(l,o)}function _setPrototypeOf$O(l,o){return _setPrototypeOf$O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$O(l,o)}var WorkspaceMenu$1=(function(l){function o(u){var d;return _classCallCheck$R(this,o),d=_callSuper$O(this,o,[u]),d.state={changeTheme:{},toggleZoom:{},workspaceSelection:{}},d.handleMenuItemClick=d.handleMenuItemClick.bind(d),d.handleMenuItemClose=d.handleMenuItemClose.bind(d),d}return _inherits$O(o,l),_createClass$R(o,[{key:"handleMenuItemClick",value:function(d,f){var p={};p[d]={},p[d].open=!0,p[d].anchorEl=f.currentTarget,this.setState(p)}},{key:"handleMenuItemClose",value:function(d){var f=this;return function(p){var h={};h[d]={},h[d].open=!1,h[d].anchorEl=null,f.setState(h)}}},{key:"handleZoomToggleClick",value:function(){var d=this.props,f=d.toggleZoomControls,p=d.showZoomControls;f(!p)}},{key:"render",value:function(){var d=this,f=this.props,p=f.containerId,h=f.handleClose,v=f.anchorEl,g=f.showThemePicker,m=f.isWorkspaceAddVisible,y=f.t,b=f.showZoomControls,w=this.state,E=w.changeTheme,P=w.toggleZoom,C=w.workspaceSelection,T=document.querySelector("#".concat(p," .").concat(ns$1("viewer")));return React.createElement(React.Fragment,null,React.createElement(Menu$1,{id:"workspace-menu",container:T,anchorEl:v,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:!!v,onClose:h},React.createElement(MenuItem$1,{"aria-haspopup":"true",disabled:m,onClick:function(x){d.handleZoomToggleClick(x),h(x)},"aria-owns":P.anchorEl?"toggle-zoom-menu":void 0},React.createElement(Typography$1,{variant:"body1"},y(b?"hideZoomControls":"showZoomControls"))),React.createElement(MenuItem$1,{"aria-haspopup":"true",onClick:function(x){d.handleMenuItemClick("workspaceSelection",x),h(x)},"aria-owns":C.anchorEl?"workspace-selection":void 0},React.createElement(Typography$1,{variant:"body1"},y("selectWorkspaceMenu"))),React.createElement(NestedMenu,{label:y("language")},React.createElement(LanguageSettings,{afterSelect:h})),g&&React.createElement(MenuItem$1,{"aria-haspopup":"true",onClick:function(x){d.handleMenuItemClick("changeTheme",x),h(x)},"aria-owns":E.anchorEl?"change-theme":void 0},React.createElement(Typography$1,{variant:"body1"},y("changeTheme"))),React.createElement(PluginHook$1,this.props)),!!E.open&&React.createElement(ChangeThemeDialog,{container:T,handleClose:this.handleMenuItemClose("changeTheme"),open:!!E.open}),!!C.open&&React.createElement(WorkspaceSelectionDialog,{open:!!C.open,container:T,handleClose:this.handleMenuItemClose("workspaceSelection")}))}}])})(reactExports.Component);WorkspaceMenu$1.defaultProps={anchorEl:null,isWorkspaceAddVisible:!1,showThemePicker:!1,showZoomControls:!1,t:function l(o){return o},toggleZoomControls:function l(){}};var mapDispatchToProps$p={toggleZoomControls:toggleZoomControls$1},mapStateToProps$B=function l(o){return{containerId:getContainerId$1(o),isWorkspaceAddVisible:getWorkspace$1(o).isWorkspaceAddVisible,showThemePicker:getThemeIds$1(o).length>0,showZoomControls:getShowZoomControlsConfig$1(o)}},enhance$M=compose$2(withTranslation(),connect(mapStateToProps$B,mapDispatchToProps$p),withPlugins$1("WorkspaceMenu"));const WorkspaceMenu=enhance$M(WorkspaceMenu$1);function _classCallCheck$Q(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$Q(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$Z(d.key),d)}}function _createClass$Q(l,o,u){return o&&_defineProperties$Q(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$Z(l){var o=_toPrimitive$Z(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$Z(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$N(l,o,u){return o=_getPrototypeOf$N(o),_possibleConstructorReturn$N(l,_isNativeReflectConstruct$N()?Reflect.construct(o,u||[],_getPrototypeOf$N(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$N(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$N(l)}function _assertThisInitialized$N(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$N(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$N=function(){return!!l})()}
154function _getPrototypeOf$N(l){return _getPrototypeOf$N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$N(l)}function _inherits$N(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$N(l,o)}function _setPrototypeOf$N(l,o){return _setPrototypeOf$N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$N(l,o)}var WorkspaceMenuButton$1=(function(l){function o(u){var d;return _classCallCheck$Q(this,o),d=_callSuper$N(this,o,[u]),d.state={anchorEl:null},d.handleMenuClick=d.handleMenuClick.bind(d),d.handleMenuClose=d.handleMenuClose.bind(d),d}return _inherits$N(o,l),_createClass$Q(o,[{key:"handleMenuClick",value:function(d){this.setState({anchorEl:d.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.t,h=this.state.anchorEl;return React.createElement(React.Fragment,null,React.createElement(MiradorMenuButton$3,{"aria-haspopup":"true","aria-label":p("workspaceMenu"),"aria-owns":h?"workspace-menu":void 0,className:classNames(f.ctrlBtn,h?f.ctrlBtnSelected:null),id:"menuBtn",onClick:this.handleMenuClick},React.createElement(SettingsIcon,null)),React.createElement(WorkspaceMenu,{anchorEl:h,handleClose:this.handleMenuClose}))}}])})(reactExports.Component);WorkspaceMenuButton$1.defaultProps={t:function l(o){return o}};var styles$E=function l(o){return{ctrlBtn:{margin:o.spacing(1)},ctrlBtnSelected:{backgroundColor:o.palette.action.selected}}},enhance$L=compose$2(withTranslation(),withStyles$2(styles$E),withPlugins$1("WorkspaceMenuButton"));const WorkspaceMenuButton=enhance$L(WorkspaceMenuButton$1);var MoreHorizSharp={},hasRequiredMoreHorizSharp;function requireMoreHorizSharp(){if(hasRequiredMoreHorizSharp)return MoreHorizSharp;hasRequiredMoreHorizSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(MoreHorizSharp,"__esModule",{value:!0}),MoreHorizSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return MoreHorizSharp.default=f,MoreHorizSharp}var MoreHorizSharpExports=requireMoreHorizSharp();const MoreHorizontalIcon=getDefaultExportFromCjs(MoreHorizSharpExports);var Input={},hasRequiredInput;function requireInput(){if(hasRequiredInput)return Input;hasRequiredInput=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(Input,"__esModule",{value:!0}),Input.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return Input.default=f,Input}var InputExports=requireInput();const ImportIcon=getDefaultExportFromCjs(InputExports);var SaveAltSharp={},hasRequiredSaveAltSharp;function requireSaveAltSharp(){if(hasRequiredSaveAltSharp)return SaveAltSharp;hasRequiredSaveAltSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(SaveAltSharp,"__esModule",{value:!0}),SaveAltSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return SaveAltSharp.default=f,SaveAltSharp}var SaveAltSharpExports=requireSaveAltSharp();const SaveAltIcon=getDefaultExportFromCjs(SaveAltSharpExports);var Component={},toggleSelection,hasRequiredToggleSelection;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var l=document.getSelection();if(!l.rangeCount)return function(){};for(var o=document.activeElement,u=[],d=0;d<l.rangeCount;d++)u.push(l.getRangeAt(d));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return l.removeAllRanges(),function(){l.type==="Caret"&&l.removeAllRanges(),l.rangeCount||u.forEach(function(f){l.addRange(f)}),o&&o.focus()}}),toggleSelection}var copyToClipboard,hasRequiredCopyToClipboard;function requireCopyToClipboard(){if(hasRequiredCopyToClipboard)return copyToClipboard;hasRequiredCopyToClipboard=1;var l=requireToggleSelection(),o={"text/plain":"Text","text/html":"Url",default:"Text"},u="Copy to clipboard: #{key}, Enter";function d(p){var h=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,h)}function f(p,h){var v,g,m,y,b,w,E=!1;h||(h={}),v=h.debug||!1;try{m=l(),y=document.createRange(),b=document.getSelection(),w=document.createElement("span"),w.textContent=p,w.ariaHidden="true",w.style.all="unset",w.style.position="fixed",w.style.top=0,w.style.clip="rect(0, 0, 0, 0)",w.style.whiteSpace="pre",w.style.webkitUserSelect="text",w.style.MozUserSelect="text",w.style.msUserSelect="text",w.style.userSelect="text",w.addEventListener("copy",function(C){if(C.stopPropagation(),h.format)if(C.preventDefault(),typeof C.clipboardData>"u"){v&&console.warn("unable to use e.clipboardData"),v&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=o[h.format]||o.default;window.clipboardData.setData(T,p)}else C.clipboardData.clearData(),C.clipboardData.setData(h.format,p);h.onCopy&&(C.preventDefault(),h.onCopy(C.clipboardData))}),document.body.appendChild(w),y.selectNodeContents(w),b.addRange(y);var P=document.execCommand("copy");if(!P)throw new Error("copy command was unsuccessful");E=!0}
154catch(C){v&&console.error("unable to copy using execCommand: ",C),v&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(h.format||"text",p),h.onCopy&&h.onCopy(window.clipboardData),E=!0}catch(T){v&&console.error("unable to copy using clipboardData: ",T),v&&console.error("falling back to prompt"),g=d("message"in h?h.message:u),window.prompt(g,p)}}finally{b&&(typeof b.removeRange=="function"?b.removeRange(y):b.removeAllRanges()),w&&document.body.removeChild(w),m()}return E}return copyToClipboard=f,copyToClipboard}var hasRequiredComponent;function requireComponent(){if(hasRequiredComponent)return Component;hasRequiredComponent=1,Object.defineProperty(Component,"__esModule",{value:!0}),Component.CopyToClipboard=void 0;var l=d(requireCopyToClipboard()),o=d(requireReact()),u=["text","onCopy","options","children"];function d(N){return N&&N.__esModule?N:{default:N}}function f(N){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},f(N)}function p(N,q){var z=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);q&&(H=H.filter(function(U){return Object.getOwnPropertyDescriptor(N,U).enumerable})),z.push.apply(z,H)}return z}function h(N){for(var q=1;q<arguments.length;q++){var z=arguments[q]!=null?arguments[q]:{};q%2?p(Object(z),!0).forEach(function(H){A(N,H,z[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(z)):p(Object(z)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(z,H))})}return N}function v(N,q){if(N==null)return{};var z,H,U=g(N,q);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(N);for(H=0;H<F.length;H++)z=F[H],q.indexOf(z)===-1&&{}.propertyIsEnumerable.call(N,z)&&(U[z]=N[z])}return U}function g(N,q){if(N==null)return{};var z={};for(var H in N)if({}.hasOwnProperty.call(N,H)){if(q.indexOf(H)!==-1)continue;z[H]=N[H]}return z}function m(N,q){if(!(N instanceof q))throw new TypeError("Cannot call a class as a function")}function y(N,q){for(var z=0;z<q.length;z++){var H=q[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,D(H.key),H)}}function b(N,q,z){return q&&y(N.prototype,q),Object.defineProperty(N,"prototype",{writable:!1}),N}function w(N,q,z){return q=T(q),E(N,C()?Reflect.construct(q,z||[],T(N).constructor):q.apply(N,z))}function E(N,q){if(q&&(f(q)=="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(N)}function P(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function C(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C=function(){return!!N})()}function T(N){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(q){return q.__proto__||Object.getPrototypeOf(q)},T(N)}function O(N,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(q&&q.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),q&&x(N,q)}function x(N,q){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,H){return z.__proto__=H,z},x(N,q)}function A(N,q,z){return(q=D(q))in N?Object.defineProperty(N,q,{value:z,enumerable:!0,configurable:!0,writable:!0}):N[q]=z,N}function D(N){var q=j(N,"string");return f(q)=="symbol"?q:q+""}function j(N,q){if(f(N)!="object"||!N)return N;var z=N[Symbol.toPrimitive];if(z!==void 0){var H=z.call(N,q);if(f(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(N)}var M=Component.CopyToClipboard=(function(N){function q(){var z;m(this,q);for(var H=arguments.length,U=new Array(H),F=0;F<H;F++)U[F]=arguments[F];return z=w(this,q,[].concat(U)),A(z,"onClick",function(B){var G=z.props,Q=G.text,K=G.onCopy,Z=G.children,te=G.options,oe=o.default.Children.only(Z),fe=(0,l.default)(Q,te);K&&K(Q,fe),oe!=null&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(B)}),z}return O(q,N),b(q,[{key:"render",value:function(){var H=this.props;H.text,H.onCopy,H.options;var U=H.children,F=v(H,u),B=o.default.Children.only(U);return o.default.cloneElement(B,h(h({},F),{},{onClick:this.onClick}))}}])})(o.default.PureComponent);return A(M,"defaultProps",{onCopy:void 0,options:void 0}),Component}var lib$1,hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var l=requireComponent(),o=l.CopyToClipboard;return o.CopyToClipboard=o,lib$1=o,lib$1}var libExports$1=requireLib$1();function _classCallCheck$P(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$P(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$Y(
154d.key),d)}}function _createClass$P(l,o,u){return o&&_defineProperties$P(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$Y(l){var o=_toPrimitive$Y(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$Y(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$M(l,o,u){return o=_getPrototypeOf$M(o),_possibleConstructorReturn$M(l,_isNativeReflectConstruct$M()?Reflect.construct(o,u||[],_getPrototypeOf$M(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$M(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$M(l)}function _assertThisInitialized$M(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$M(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$M=function(){return!!l})()}function _getPrototypeOf$M(l){return _getPrototypeOf$M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$M(l)}function _inherits$M(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$M(l,o)}function _setPrototypeOf$M(l,o){return _setPrototypeOf$M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$M(l,o)}
154var WorkspaceExport$1=(function(l){function o(u){var d;return _classCallCheck$P(this,o),d=_callSuper$M(this,o,[u]),d.state={copied:!1},d.onCopy=d.onCopy.bind(d),d.handleClose=d.handleClose.bind(d),d}return _inherits$M(o,l),_createClass$P(o,[{key:"handleClose",value:function(){var d=this.props.handleClose;d()}},{key:"onCopy",value:function(){this.setState({copied:!0})}},{key:"exportedState",value:function(){var d=this.props.exportableState;return JSON.stringify(d,null,2)}},{key:"render",value:function(){var d=this.props,f=d.children,p=d.classes,h=d.container,v=d.open,g=d.t,m=this.state.copied;return m?React.createElement(Snackbar$1,{anchorOrigin:{horizontal:"center",vertical:"top"},open:!0,autoHideDuration:6e3,onClose:this.handleClose,message:g("exportCopied"),action:React.createElement(IconButton$1,{size:"small","aria-label":g("dismiss"),color:"inherit",onClick:this.handleClose},React.createElement(CloseIcon$2,{fontSize:"small"}))}):React.createElement(Dialog$1,{id:"workspace-settings",container:h,open:v,onClose:this.handleClose,scroll:"paper",fullWidth:!0,maxWidth:"sm"},React.createElement(DialogTitle$1,{id:"form-dialog-title",disableTypography:!0},React.createElement(Typography$1,{variant:"h2"},g("downloadExport"))),React.createElement(DialogContent$1,null,React.createElement(Accordion$1,{elevation:0},React.createElement(AccordionSummary$1,{classes:{root:p.accordionTitle},expandIcon:React.createElement(ExpandMoreIcon$1,null)},React.createElement(Typography$1,{variant:"h4"},g("viewWorkspaceConfiguration"))),React.createElement(AccordionDetails$1,null,f,React.createElement("pre",null,this.exportedState())))),React.createElement(DialogActions$1,null,React.createElement(Button$1,{onClick:this.handleClose},g("cancel")),React.createElement(libExports$1.CopyToClipboard,{onCopy:this.onCopy,text:this.exportedState()},React.createElement(Button$1,{variant:"contained",color:"primary"},g("copy")))))}}])})(reactExports.Component);WorkspaceExport$1.defaultProps={children:null,classes:{},container:null,open:!1,t:function l(o){return o}};var mapStateToProps$A=function l(o){return{exportableState:getExportableState$1(o)}},styles$D=function l(o){return{accordionTitle:{padding:0}}},enhance$K=compose$2(withTranslation(),withStyles$2(styles$D),connect(mapStateToProps$A,{}),withPlugins$1("WorkspaceExport"));const WorkspaceExport=enhance$K(WorkspaceExport$1);function _classCallCheck$O(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$O(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$X(d.key),d)}}function _createClass$O(l,o,u){return o&&_defineProperties$O(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$X(l){var o=_toPrimitive$X(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$X(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$L(l,o,u){return o=_getPrototypeOf$L(o),_possibleConstructorReturn$L(l,_isNativeReflectConstruct$L()?Reflect.construct(o,u||[],_getPrototypeOf$L(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$L(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$L(l)}function _assertThisInitialized$L(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$L(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$L=function(){return!!l})()}function _getPrototypeOf$L(l){return _getPrototypeOf$L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$L(l)}function _inherits$L(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$L(l,o)}function _setPrototypeOf$L(l,o){return _setPrototypeOf$L=Object.
154setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$L(l,o)}var WorkspaceImport$1=(function(l){function o(u){var d;return _classCallCheck$O(this,o),d=_callSuper$L(this,o,[u]),d.state={configImportValue:""},d.handleImportConfig=d.handleImportConfig.bind(d),d.handleChange=d.handleChange.bind(d),d}return _inherits$L(o,l),_createClass$O(o,[{key:"handleChange",value:function(d){d.preventDefault(),this.setState({configImportValue:d.target.value})}},{key:"handleImportConfig",value:function(d){var f=this.props,p=f.handleClose,h=f.importConfig,v=this.state.configImportValue;try{var g=JSON.parse(v);h(g),p()}catch(y){var m=this.props.addError;m(y.toString())}}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.handleClose,h=d.open,v=d.t;return React.createElement(Dialog$1,{"aria-labelledby":"workspace-import-title",id:"workspace-import",onEscapeKeyDown:p,onClose:p,open:h,fullWidth:!0,maxWidth:"sm"},React.createElement(DialogTitle$1,{id:"workspace-import-title",disableTypography:!0},React.createElement(Typography$1,{variant:"h2"},v("importWorkspace"))),React.createElement(ScrollIndicatedDialogContent,null,React.createElement(TextField$1,{className:f.textField,id:"workspace-import-input",multiline:!0,onChange:this.handleChange,rows:"15",variant:"filled",inputProps:{autoFocus:"autofocus",className:f.textInput},helperText:v("importWorkspaceHint")})),React.createElement(DialogActions$1,null,React.createElement(Button$1,{className:f.cancelBtn,onClick:p},v("cancel")),React.createElement(Button$1,{color:"primary",onClick:this.handleImportConfig,variant:"contained"},v("import"))))}}])})(reactExports.Component);WorkspaceImport$1.defaultProps={classes:{},open:!1,t:function l(o){return o}};var mapDispatchToProps$o={addError:addError$1,importConfig:importMiradorState$1},styles$C=function l(o){return{cancelBtn:{color:o.palette.text.primary},textField:{width:"100%"},textInput:{fontFamily:"monospace"}}},enhance$J=compose$2(withTranslation(),withStyles$2(styles$C),connect(null,mapDispatchToProps$o),withPlugins$1("WorkspaceImport"));const WorkspaceImport=enhance$J(WorkspaceImport$1);function _classCallCheck$N(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$N(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$W(d.key),d)}}function _createClass$N(l,o,u){return o&&_defineProperties$N(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$W(l){var o=_toPrimitive$W(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$W(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$K(l,o,u){return o=_getPrototypeOf$K(o),_possibleConstructorReturn$K(l,_isNativeReflectConstruct$K()?Reflect.construct(o,u||[],_getPrototypeOf$K(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$K(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$K(l)}function _assertThisInitialized$K(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$K(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$K=function(){return!!l})()}
154function _getPrototypeOf$K(l){return _getPrototypeOf$K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$K(l)}function _inherits$K(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$K(l,o)}function _setPrototypeOf$K(l,o){return _setPrototypeOf$K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$K(l,o)}var WorkspaceOptionsMenu$1=(function(l){function o(u){var d;return _classCallCheck$N(this,o),d=_callSuper$K(this,o,[u]),d.state={exportWorkspace:{},importWorkspace:{}},d.handleMenuItemClick=d.handleMenuItemClick.bind(d),d.handleMenuItemClose=d.handleMenuItemClose.bind(d),d}return _inherits$K(o,l),_createClass$N(o,[{key:"handleMenuItemClick",value:function(d){var f={};f[d]={},f[d].open=!0,this.setState(f)}},{key:"handleMenuItemClose",value:function(d){var f=this;return function(p){var h={};h[d]={},h[d].open=!1,f.setState(h)}}},{key:"render",value:function(){var d=this,f=this.props,p=f.anchorEl,h=f.containerId,v=f.handleClose,g=f.t,m=this.state,y=m.exportWorkspace,b=m.importWorkspace,w=document.querySelector("#".concat(h," .").concat(ns$1("viewer")));return React.createElement(React.Fragment,null,React.createElement(Menu$1,{id:"workspace-options-menu",container:w,anchorEl:p,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:!!p,onClose:v},React.createElement(MenuItem$1,{"aria-haspopup":"true",onClick:function(){d.handleMenuItemClick("exportWorkspace"),v()},"aria-owns":y.open?"workspace-export":void 0},React.createElement(ListItemIcon$1,null,React.createElement(SaveAltIcon,null)),React.createElement(Typography$1,{variant:"body1"},g("downloadExportWorkspace"))),React.createElement(MenuItem$1,{"aria-haspopup":"true",id:"workspace-menu-import",onClick:function(){d.handleMenuItemClick("importWorkspace"),v()},"aria-owns":y.open?"workspace-import":void 0},React.createElement(ListItemIcon$1,null,React.createElement(ImportIcon,null)),React.createElement(Typography$1,{variant:"body1"},g("importWorkspace"))),React.createElement(PluginHook$1,this.props)),!!y.open&&React.createElement(WorkspaceExport,{open:!!y.open,container:w,handleClose:this.handleMenuItemClose("exportWorkspace")}
154),!!b.open&&React.createElement(WorkspaceImport,{open:!!b.open,container:w,handleClose:this.handleMenuItemClose("importWorkspace")}))}}])})(reactExports.Component);WorkspaceOptionsMenu$1.defaultProps={anchorEl:null};var mapStateToProps$z=function l(o){return{containerId:getContainerId$1(o)}},enhance$I=compose$2(withTranslation(),connect(mapStateToProps$z,null));const WorkspaceOptionsMenu=enhance$I(WorkspaceOptionsMenu$1);function _classCallCheck$M(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$M(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$V(d.key),d)}}function _createClass$M(l,o,u){return o&&_defineProperties$M(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$V(l){var o=_toPrimitive$V(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$V(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$J(l,o,u){return o=_getPrototypeOf$J(o),_possibleConstructorReturn$J(l,_isNativeReflectConstruct$J()?Reflect.construct(o,u||[],_getPrototypeOf$J(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$J(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$J(l)}function _assertThisInitialized$J(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$J(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$J=function(){return!!l})()}function _getPrototypeOf$J(l){return _getPrototypeOf$J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$J(l)}function _inherits$J(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$J(l,o)}function _setPrototypeOf$J(l,o){return _setPrototypeOf$J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$J(l,o)}
154var WorkspaceOptionsButton$1=(function(l){function o(u){var d;return _classCallCheck$M(this,o),d=_callSuper$J(this,o,[u]),d.state={anchorEl:null},d.handleMenuClick=d.handleMenuClick.bind(d),d.handleMenuClose=d.handleMenuClose.bind(d),d}return _inherits$J(o,l),_createClass$M(o,[{key:"handleMenuClick",value:function(d){this.setState({anchorEl:d.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.t,h=this.state.anchorEl;return React.createElement(React.Fragment,null,React.createElement(MiradorMenuButton$3,{"aria-label":p("workspaceOptions"),className:classNames(f.ctrlBtn,h?f.ctrlBtnSelected:null),onClick:this.handleMenuClick},React.createElement(MoreHorizontalIcon,null)),React.createElement(WorkspaceOptionsMenu,{anchorEl:h,handleClose:this.handleMenuClose}))}}])})(reactExports.Component),styles$B=function l(o){return{ctrlBtn:{margin:o.spacing(1)},ctrlBtnSelected:{backgroundColor:o.palette.action.selected}}},enhance$H=compose$2(withStyles$2(styles$B),withTranslation(),withPlugins$1("WorkspaceOptionsButton"));const WorkspaceOptionsButton=enhance$H(WorkspaceOptionsButton$1);function _classCallCheck$L(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$L(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$U(d.key),d)}}function _createClass$L(l,o,u){return o&&_defineProperties$L(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$U(l){var o=_toPrimitive$U(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$U(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$I(l,o,u){return o=_getPrototypeOf$I(o),_possibleConstructorReturn$I(l,_isNativeReflectConstruct$I()?Reflect.construct(o,u||[],_getPrototypeOf$I(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$I(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$I(l)}function _assertThisInitialized$I(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$I(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$I=function(){return!!l})()}function _getPrototypeOf$I(l){return _getPrototypeOf$I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$I(l)}function _inherits$I(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$I(l,o)}function _setPrototypeOf$I(l,o){return _setPrototypeOf$I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$I(l,o)}
154var WorkspaceControlPanelButtons$1=(function(l){function o(){return _classCallCheck$L(this,o),_callSuper$I(this,o,arguments)}return _inherits$I(o,l),_createClass$L(o,[{key:"render",value:function(){var d=this.props.classes;return React.createElement(React.Fragment,null,React.createElement(WindowListButton,null),React.createElement(WorkspaceMenuButton,null),React.createElement(WorkspaceOptionsButton,null),React.createElement(FullScreenButton,{className:d.ctrlBtn}),React.createElement(PluginHook$1,this.props))}}])})(reactExports.Component);WorkspaceControlPanelButtons$1.defaultProps={classes:{}};var styles$A=function l(o){return{ctrlBtn:{margin:o.spacing(1)}}},enhance$G=compose$2(withStyles$2(styles$A),withPlugins$1("WorkspaceControlPanelButtons"));const WorkspaceControlPanelButtons=enhance$G(WorkspaceControlPanelButtons$1);function MiradorIcon(l){return React.createElement(SvgIcon$2,Object.assign({viewBox:"0 0 60 55"},l),React.createElement("rect",{width:"18",height:"55"}),React.createElement("rect",{width:"18",height:"55",transform:"translate(42)"}),React.createElement("rect",{width:"18",height:"34",transform:"translate(21)"}))}var _excluded=["t","variant"];function _objectWithoutProperties(l,o){if(l==null)return{};var u,d,f=_objectWithoutPropertiesLoose(l,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);for(d=0;d<p.length;d++)u=p[d],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(l,u)&&(f[u]=l[u])}return f}function _objectWithoutPropertiesLoose(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.indexOf(d)!==-1)continue;u[d]=l[d]}return u}function _classCallCheck$K(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$K(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$T(d.key),d)}}function _createClass$K(l,o,u){return o&&_defineProperties$K(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$T(l){var o=_toPrimitive$T(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$T(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$H(l,o,u){return o=_getPrototypeOf$H(o),_possibleConstructorReturn$H(l,_isNativeReflectConstruct$H()?Reflect.construct(o,u||[],_getPrototypeOf$H(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$H(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$H(l)}function _assertThisInitialized$H(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$H(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$H=function(){return!!l})()}function _getPrototypeOf$H(l){return _getPrototypeOf$H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$H(l)}function _inherits$H(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$H(l,o)}function _setPrototypeOf$H(l,o){return _setPrototypeOf$H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$H(l,o)}var Branding$1=(function(l){function o(){return _classCallCheck$K(this,o),_callSuper$H(this,o,arguments)}return _inherits$H(o,l),_createClass$K(o,[{key:"render",value:function(){var d=this.props,f=d.t,p=d.variant,h=_objectWithoutProperties(d,_excluded);return React.createElement("div",h,p==="wide"&&React.createElement("div",null,React.createElement(Typography$1,{align:"center",component:"p",variant:"h3"},f("mirador"))),React.createElement(Typography$1,{align:"center"},React.createElement(IconButton$1,{component:"a",href:"https://projectmirador.org",target:"_blank",rel:"noopener"},React.createElement(MiradorIcon,{"aria-label":f("aboutMirador"),titleAccess:f("aboutMirador"),fontSize:"large"}))))}}])})(reactExports.Component);Branding$1.defaultProps={t:function l(o){return o},variant:"default"};const Branding=withPlugins$1("Branding")(Branding$1);function _classCallCheck$J(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$J(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$S(d.key),d)}}function _createClass$J(l,o,u){return o&&_defineProperties$J(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$S(l){var o=_toPrimitive$S(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$S(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$G(l,o,u){return o=_getPrototypeOf$G(o),_possibleConstructorReturn$G(l,_isNativeReflectConstruct$G()?Reflect.construct(o,u||[],_getPrototypeOf$G(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$G(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$G(l)}function _assertThisInitialized$G(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$G(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$G=function(){return!!l})()}function _getPrototypeOf$G(l){return _getPrototypeOf$G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$G(l)}function _inherits$G(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$G(l,o)}function _setPrototypeOf$G(l,o){return _setPrototypeOf$G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$G(l,o)}var WorkspaceControlPanel$1=(function(l){function o(){return _classCallCheck$J(this,o),_callSuper$G(this,o,arguments)}return _inherits$G(o,l),_createClass$J(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.t,h=d.variant;return React.createElement(AppBar$1,{className:classNames(f.root,ns$1("workspace-control-panel"),h==="wide"?f.wide:null),color:"default",position:"absolute",component:"nav","aria-label":p("workspaceNavigation")},React.createElement(Toolbar$1,{disableGutters:!0,className:f.toolbar},React.createElement(WorkspaceAddButton,null),React.createElement("div",{className:f.workspaceButtons},React.createElement(WorkspaceControlPanelButtons,null))),React.createElement(Branding,{className:f.branding,t:p,variant:h}))}}])})(reactExports.Component);WorkspaceControlPanel$1.defaultProps={variant:"default"};function _defineProperty$c(l,o,u){return(o=_toPropertyKey$R(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$R(l){var o=_toPrimitive$R(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$R(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var styles$z=function l(o){return{branding:_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"flex",position:"absolute"},o.breakpoints.up("xs"),{display:"none"}),o.breakpoints.up("sm"),{bottom:0,display:"block",float:"none",right:"auto",width:"100%"}),"right",0),ctrlBtn:{margin:o.spacing(1)},drawer:{overflowX:"hidden"},root:_defineProperty$c({height:64},o.breakpoints.up("sm"),{height:"100%",left:0,right:"auto",width:64}),toolbar:_defineProperty$c({display:"flex",justifyContent:"space-between"},o.breakpoints.up("sm"),{flexDirection:"column",justifyContent:"flex-start",minHeight:0}),wide:{width:"auto"},workspaceButtons:_defineProperty$c({},o.breakpoints.up("sm"),{display:"flex",flexDirection:"column"})}},enhance$F=compose$2(withTranslation(),withStyles$2(styles$z),withPlugins$1("WorkspaceControlPanel"));const WorkspaceControlPanel=enhance$F(WorkspaceControlPanel$1);var contextTypes={},hasRequiredContextTypes;function requireContextTypes(){if(hasRequiredContextTypes)return contextTypes;hasRequiredContextTypes=1;var l=contextTypes&&contextTypes.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(contextTypes,"__esModule",{value:!0}),contextTypes.MosaicWindowContext=contextTypes.MosaicContext=void 0;var o=l(requireReact());return contextTypes.MosaicContext=o.default.createContext(void 0),contextTypes.MosaicWindowContext=o.default.createContext(void 0),contextTypes}var contextTypesExports=requireContextTypes(),MenuSharp={},hasRequiredMenuSharp;
154function requireMenuSharp(){if(hasRequiredMenuSharp)return MenuSharp;hasRequiredMenuSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(MenuSharp,"__esModule",{value:!0}),MenuSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuSharp");return MenuSharp.default=f,MenuSharp}var MenuSharpExports=requireMenuSharp();const MenuIcon=getDefaultExportFromCjs(MenuSharpExports);var CropDinSharp={},hasRequiredCropDinSharp;function requireCropDinSharp(){if(hasRequiredCropDinSharp)return CropDinSharp;hasRequiredCropDinSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(CropDinSharp,"__esModule",{value:!0}),CropDinSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M21 3H3v18h18V3zm-2 16H5V5h14v14z"}),"CropDinSharp");return CropDinSharp.default=f,CropDinSharp}var CropDinSharpExports=requireCropDinSharp();const ThumbnailsOffIcon=getDefaultExportFromCjs(CropDinSharpExports);function ThumbnailNavigationBottomIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M3,3H21V5H3Z",transform:"translate(0 16)"}),React.createElement("path",{d:"M21,5H3V19H21ZM19,17H5V7H19Z",transform:"translate(0 -2)"})))}function ThumbnailNavigationRightIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M0,0H24V24H0Z",transform:"translate(24) rotate(90)",fill:"none"}),React.createElement("path",{d:"M3,3H21V5H3Z",transform:"translate(24) rotate(90)"}),React.createElement("path",{d:"M19,3H5V21H19ZM17,19H7V5H17Z",transform:"translate(-2)"})))}function _classCallCheck$I(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$I(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$Q(d.key),d)}}function _createClass$I(l,o,u){return o&&_defineProperties$I(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$Q(l){var o=_toPrimitive$Q(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$Q(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$F(l,o,u){return o=_getPrototypeOf$F(o),_possibleConstructorReturn$F(l,_isNativeReflectConstruct$F()?Reflect.construct(o,u||[],_getPrototypeOf$F(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$F(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$F(l)}function _assertThisInitialized$F(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$F(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$F=function(){return!!l})()}function _getPrototypeOf$F(l){return _getPrototypeOf$F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$F(l)}function _inherits$F(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$F(l,o)}function _setPrototypeOf$F(l,o){return _setPrototypeOf$F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$F(l,o)}var WindowThumbnailSettings$1=(function(l){function o(u){var d;return _classCallCheck$I(this,o),d=_callSuper$F(this,o,[u]),d.handleChange=d.handleChange.bind(d),d}return _inherits$F(o,l),_createClass$I(o,[{key:"handleChange",value:function(d){var f=this.props,p=f.
154windowId,h=f.setWindowThumbnailPosition;h(p,d)}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.handleClose,v=f.t,g=f.thumbnailNavigationPosition,m=f.direction;return React.createElement(React.Fragment,null,React.createElement(ListSubheader$1,{role:"presentation",disableSticky:!0,tabIndex:"-1"},v("thumbnails")),React.createElement(MenuItem$1,{className:p.MenuItem,onClick:function(){d.handleChange("off"),h()}},React.createElement(FormControlLabel$1,{value:"off",classes:{label:g==="off"?p.selectedLabel:p.label},control:React.createElement(ThumbnailsOffIcon,{color:g==="off"?"secondary":void 0}),label:v("off"),labelPlacement:"bottom"})),React.createElement(MenuItem$1,{className:p.MenuItem,onClick:function(){d.handleChange("far-bottom"),h()}},React.createElement(FormControlLabel$1,{value:"far-bottom",classes:{label:g==="far-bottom"?p.selectedLabel:p.label},control:React.createElement(ThumbnailNavigationBottomIcon,{color:g==="far-bottom"?"secondary":void 0}),label:v("bottom"),labelPlacement:"bottom"})),React.createElement(MenuItem$1,{className:p.MenuItem,onClick:function(){d.handleChange("far-right"),h()}},React.createElement(FormControlLabel$1,{value:"far-right",classes:{label:g==="far-right"?p.selectedLabel:p.label},control:React.createElement(ThumbnailNavigationRightIcon,{color:g==="far-right"?"secondary":void 0,style:m==="rtl"?{transform:"rotate(180deg)"}:{}}),label:v("right"),labelPlacement:"bottom"})))}}])})(reactExports.Component);WindowThumbnailSettings$1.defaultProps={handleClose:function l(){},t:function l(o){return o}};var mapDispatchToProps$n={setWindowThumbnailPosition:setWindowThumbnailPosition$1},mapStateToProps$y=function l(o,u){var d=u.windowId;return{direction:getThemeDirection$1(o),thumbnailNavigationPosition:getThumbnailNavigationPosition$1(o,{windowId:d})}},styles$y=function l(o){return{label:{borderBottom:"2px solid transparent"},MenuItem:{display:"inline-block"},selectedLabel:{borderBottom:"2px solid ".concat(o.palette.secondary.main),color:o.palette.secondary.main}}},enhance$E=compose$2(withStyles$2(styles$y),withTranslation(null,{withRef:!0}),connect(mapStateToProps$y,mapDispatchToProps$n,null,{forwardRef:!0}),withPlugins$1("WindowThumbnailSettings"));const WindowThumbnailSettings=enhance$E(WindowThumbnailSettings$1);var CropOriginalSharp={},hasRequiredCropOriginalSharp;function requireCropOriginalSharp(){if(hasRequiredCropOriginalSharp)return CropOriginalSharp;hasRequiredCropOriginalSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(CropOriginalSharp,"__esModule",{value:!0}),CropOriginalSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return CropOriginalSharp.default=f,CropOriginalSharp}var CropOriginalSharpExports=requireCropOriginalSharp();const SingleIcon=getDefaultExportFromCjs(CropOriginalSharpExports);var ViewColumn={},hasRequiredViewColumn;function requireViewColumn(){if(hasRequiredViewColumn)return ViewColumn;hasRequiredViewColumn=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ViewColumn,"__esModule",{value:!0}),ViewColumn.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"}),"ViewColumn");return ViewColumn.default=f,ViewColumn}var ViewColumnExports=requireViewColumn();const ScrollViewIcon=getDefaultExportFromCjs(ViewColumnExports);function BookViewIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8ZM14,9.5h6V11H14ZM14,12h6v1.5H14Zm0,2.5h6V16H14Z"})))}function GalleryViewIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.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 ShiftBookViewIcon(l){return React.createElement(SvgIcon$2,Object.assign({}
154,l,{viewBox:"0 0 72 18",width:"72",height:"18"}),React.createElement("path",{d:"m 37.125799,7.1879833 h 0.16456 V 5.4739371 l 3.87371,2.5700645 -3.87371,2.5700644 V 8.9010247 H 32.390928 V 10.614066 L 28.518227,8.0440016 32.390928,5.4739371 v 1.7140462 z m 22.96766,-2.0134517 v 1.7220839 h 1.730399 V 5.1745316 Z m 0,3.4441678 v 1.7230886 h 1.730399 V 8.6186994 Z m 0,3.4451726 v 1.722084 h 1.730399 V 12.063872 Z M 0.17260104,16.370086 H 8.6055181 V 0.00727528 H 0.17260104 V 1.7293591 H 6.8751194 V 14.646998 H 0.17260104 Z m 21.09693096,0 H 13.364619 V 0.00727528 h 7.904913 V 1.7293591 H 15.096027 V 14.646998 h 6.173505 z M 51.440456,1.7293591 h 6.922604 c 0.953032,0 1.730399,0.7736316 1.730399,1.7230886 h 1.730399 c 0,-0.949457 0.777367,-1.7230886 1.731408,-1.7230886 H 70.47787 V 14.646998 H 63.555266 A 3.4607973,3.4441678 0 0 0 60.958658,15.818497 3.4587782,3.4421583 0 0 0 58.36306,14.646998 H 51.440456 Z M 49.709048,0.00727528 V 16.370086 h 8.654012 c 0.953032,0 1.730399,0.772627 1.730399,1.722084 h 1.730399 c 0,-0.949457 0.777367,-1.722084 1.731408,-1.722084 h 8.653003 V 0.00727528 H 63.555266 A 3.4607973,3.4441678 0 0 0 60.958658,1.1787745 3.4587782,3.4421583 0 0 0 58.36306,0.00727528 Z",fillRule:"evenodd"}))}function _classCallCheck$H(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$H(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$P(d.key),d)}}function _createClass$H(l,o,u){return o&&_defineProperties$H(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$P(l){var o=_toPrimitive$P(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$P(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$E(l,o,u){return o=_getPrototypeOf$E(o),_possibleConstructorReturn$E(l,_isNativeReflectConstruct$E()?Reflect.construct(o,u||[],_getPrototypeOf$E(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$E(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$E(l)}function _assertThisInitialized$E(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$E(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$E=function(){return!!l})()}function _getPrototypeOf$E(l){return _getPrototypeOf$E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$E(l)}function _inherits$E(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$E(l,o)}function _setPrototypeOf$E(l,o){return _setPrototypeOf$E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$E(l,o)}var WindowViewSettings$1=(function(l){function o(u){var d;return _classCallCheck$H(this,o),d=_callSuper$E(this,o,[u]),d.handleChange=d.handleChange.bind(d),d}return _inherits$E(o,l),_createClass$H(o,[{key:"handleChange",value:function(d){var f=this.props.setWindowViewType;f(d)}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.setShiftBookView,v=f.handleClose,g=f.shiftBookView,m=f.t,y=f.windowViewType,b=f.viewTypes,w={book:BookViewIcon,gallery:GalleryViewIcon,scroll:ScrollViewIcon,single:SingleIcon},E=function(C){var T=C.value,O=C.Icon;return React.createElement(MenuItem$1,{key:T,className:p.MenuItem,autoFocus:y===T,onClick:function(){d.handleChange(T),v()}}
154,React.createElement(FormControlLabel$1,{value:T,classes:{label:y===T?p.selectedLabel:p.label},control:React.createElement(O,{color:y===T?"secondary":void 0}),label:m(T),labelPlacement:"bottom"}))};return b.length===0?null:React.createElement(React.Fragment,null,React.createElement(ListSubheader$1,{role:"presentation",disableSticky:!0,tabIndex:"-1"},m("view")),b.map(function(P){return E({Icon:w[P],value:P})}),y==="book"&&React.createElement(React.Fragment,null,React.createElement(ListSubheader$1,{role:"presentation",disableSticky:!0,tabIndex:"-1"},m("viewOptions")),React.createElement(MenuItem$1,{onClick:function(){return h(!g)}},React.createElement(FormControlLabel$1,{classes:{label:g?p.selectedLabel:p.label,root:p.shiftToggle},label:m("shiftPages"),control:React.createElement(ShiftBookViewIcon,{classes:{fontSizeLarge:p.shiftToggleIcon},color:g?"secondary":void 0,fontSize:"large"})}))))}}])})(reactExports.Component);WindowViewSettings$1.defaultProps={handleClose:function l(){},setShiftBookView:function l(){},shiftBookView:!1,t:function l(o){return o},viewTypes:[]};var mapDispatchToProps$m=function l(o,u){var d=u.windowId;return{setShiftBookView:function(p){return o(shiftBookView(d,p))},setWindowViewType:function(p){return o(setWindowViewType$1(d,p))}}},mapStateToProps$x=function l(o,u){var d,f=u.windowId;return{viewTypes:getAllowedWindowViewTypes$1(o,{windowId:f}),windowViewType:getWindowViewType$1(o,{windowId:f}),shiftBookView:(d=getWindowConfig$1(o,{windowId:f}).shiftBookView)!==null&&d!==void 0?d:!1}},styles$x=function l(o){return{label:{borderBottom:"2px solid transparent"},MenuItem:{display:"inline-block"},selectedLabel:{borderBottom:"2px solid ".concat(o.palette.secondary.main),color:o.palette.secondary.main},shiftToggle:{flexDirection:"column",whiteSpace:"break-spaces",marginLeft:"16px"},shiftToggleIcon:{height:"18px",width:"auto"}}},enhance$D=compose$2(withStyles$2(styles$x),withTranslation(null,{withRef:!0}),connect(mapStateToProps$x,mapDispatchToProps$m,null,{forwardRef:!0}),withPlugins$1("WindowViewSettings"));const WindowViewSettings=enhance$D(WindowViewSettings$1);function _classCallCheck$G(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$G(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$O(d.key),d)}}function _createClass$G(l,o,u){return o&&_defineProperties$G(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$O(l){var o=_toPrimitive$O(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$O(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$D(l,o,u){return o=_getPrototypeOf$D(o),_possibleConstructorReturn$D(l,_isNativeReflectConstruct$D()?Reflect.construct(o,u||[],_getPrototypeOf$D(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$D(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$D(l)}function _assertThisInitialized$D(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$D(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$D=function(){return!!l})()}function _getPrototypeOf$D(l){return _getPrototypeOf$D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$D(l)}function _inherits$D(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$D(l,o)}function _setPrototypeOf$D(l,o){return _setPrototypeOf$D=Object.
154setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$D(l,o)}function PluginHookWithHeader(l){var o=l.PluginComponents,u=l.t;return o?React.createElement(React.Fragment,null,React.createElement(ListSubheader$1,{role:"presentation",disableSticky:!0,tabIndex:"-1"},u("windowPluginButtons")),React.createElement(PluginHook$1,l)):null}var WindowTopMenu$1=(function(l){function o(){return _classCallCheck$G(this,o),_callSuper$D(this,o,arguments)}return _inherits$D(o,l),_createClass$G(o,[{key:"render",value:function(){var d=this.props,f=d.containerId,p=d.handleClose,h=d.anchorEl,v=d.showThumbnailNavigationSettings,g=d.toggleDraggingEnabled,m=d.windowId;return React.createElement(Menu$1,{id:"window-menu_".concat(m),container:document.querySelector("#".concat(f," .").concat(ns$1("viewer"))),anchorEl:h,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},getContentAnchorEl:null,open:!!h,onClose:p,TransitionProps:{onEntering:g,onExit:g},orientation:"horizontal"},React.createElement(WindowViewSettings,{windowId:m,handleClose:p}),v&&React.createElement(WindowThumbnailSettings,{windowId:m,handleClose:p}),React.createElement(PluginHookWithHeader,this.props))}}])})(reactExports.Component);WindowTopMenu$1.defaultProps={anchorEl:null,showThumbnailNavigationSettings:!0};var mapStateToProps$w=function l(o,u){var d,f=u.windowId;return{containerId:getContainerId$1(o),shiftBookView:(d=getWindowConfig$1(o,{windowId:f}).shiftBookView)!==null&&d!==void 0?d:!1,showThumbnailNavigationSettings:getConfig$1(o).thumbnailNavigation.displaySettings}},mapDispatchToProps$l=function l(o){return{toggleDraggingEnabled:function(){return o(toggleDraggingEnabled$1())}}},enhance$C=compose$2(withTranslation(),connect(mapStateToProps$w,mapDispatchToProps$l),withPlugins$1("WindowTopMenu"));const WindowTopMenu=enhance$C(WindowTopMenu$1);function WindowOptionsIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M0,0H24V24H0Z",fill:"none"}),React.createElement("path",{d:"M24.852,17.981,3,18V15.945l21.852-.019Z",transform:"translate(-2 5)"}),React.createElement("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8Z",transform:"translate(0 -2)"})))}function _classCallCheck$F(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$F(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$N(d.key),d)}}function _createClass$F(l,o,u){return o&&_defineProperties$F(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$N(l){var o=_toPrimitive$N(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$N(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$C(l,o,u){return o=_getPrototypeOf$C(o),_possibleConstructorReturn$C(l,_isNativeReflectConstruct$C()?Reflect.construct(o,u||[],_getPrototypeOf$C(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$C(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$C(l)}function _assertThisInitialized$C(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$C(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$C=function(){return!!l})()}function _getPrototypeOf$C(l){return _getPrototypeOf$C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$C(l)}function _inherits$C(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$C(l,o)}function _setPrototypeOf$C(l,o){return _setPrototypeOf$C=Object.
154setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$C(l,o)}var WindowTopMenuButton$1=(function(l){function o(u){var d;return _classCallCheck$F(this,o),d=_callSuper$C(this,o,[u]),d.state={anchorEl:null},d.handleMenuClick=d.handleMenuClick.bind(d),d.handleMenuClose=d.handleMenuClose.bind(d),d}return _inherits$C(o,l),_createClass$F(o,[{key:"handleMenuClick",value:function(d){this.setState({anchorEl:d.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.viewIsModified,h=d.t,v=d.windowId,g=this.state.anchorEl;return React.createElement(React.Fragment,null,React.createElement(MiradorMenuButton$3,{"aria-expanded":!!g,"aria-haspopup":"true","aria-label":h("windowMenu"),"aria-owns":g?"window-menu_".concat(v):void 0,className:g?f.ctrlBtnSelected:null,onClick:this.handleMenuClick},React.createElement(Badge$1,{classes:{badge:f.badge},invisible:!p,variant:"dot"},React.createElement(WindowOptionsIcon,null))),React.createElement(WindowTopMenu,{windowId:v,anchorEl:g,handleClose:this.handleMenuClose}))}}])})(reactExports.Component);WindowTopMenuButton$1.defaultProps={shiftBookView:!1,t:function l(o){return o}};var styles$w=function l(o){return{badge:{backgroundColor:o.palette.secondary.main},ctrlBtnSelected:{backgroundColor:o.palette.action.selected}}},enhance$B=compose$2(withTranslation(),withStyles$2(styles$w),withPlugins$1("WindowTopMenuButton"));const WindowTopMenuButton=enhance$B(WindowTopMenuButton$1);function _classCallCheck$E(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$E(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$M(d.key),d)}}function _createClass$E(l,o,u){return o&&_defineProperties$E(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$M(l){var o=_toPrimitive$M(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$M(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$B(l,o,u){return o=_getPrototypeOf$B(o),_possibleConstructorReturn$B(l,_isNativeReflectConstruct$B()?Reflect.construct(o,u||[],_getPrototypeOf$B(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$B(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$B(l)}function _assertThisInitialized$B(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$B(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$B=function(){return!!l})()}function _getPrototypeOf$B(l){return _getPrototypeOf$B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$B(l)}function _inherits$B(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$B(l,o)}function _setPrototypeOf$B(l,o){return _setPrototypeOf$B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$B(l,o)}var WindowTopBarPluginArea$1=(function(l){function o(){return _classCallCheck$E(this,o),_callSuper$B(this,o,arguments)}return _inherits$B(o,l),_createClass$E(o,[{key:"render",value:function(){return React.createElement(React.Fragment,null,React.createElement(PluginHook$1,this.props))}}])})(reactExports.Component),styles$v={},enhance$A=compose$2(withTranslation(),withStyles$2(styles$v),connect(null,null),withPlugins$1("WindowTopBarPluginArea"));const WindowTopBarPluginArea=enhance$A(WindowTopBarPluginArea$1);var MoreVertSharp={},hasRequiredMoreVertSharp;function requireMoreVertSharp(){if(hasRequiredMoreVertSharp)return MoreVertSharp;hasRequiredMoreVertSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(MoreVertSharp,"__esModule",{value:!0}),MoreVertSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return MoreVertSharp.default=f,MoreVertSharp}var MoreVertSharpExports=requireMoreVertSharp();const MoreVertIcon=getDefaultExportFromCjs(MoreVertSharpExports);function _classCallCheck$D(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$D(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$L(d.key),d)}}function _createClass$D(l,o,u){return o&&_defineProperties$D(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$L(l){var o=_toPrimitive$L(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$L(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$A(l,o,u){return o=_getPrototypeOf$A(o),_possibleConstructorReturn$A(l,_isNativeReflectConstruct$A()?Reflect.construct(o,u||[],_getPrototypeOf$A(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$A(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$A(l)}function _assertThisInitialized$A(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$A(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$A=function(){return!!l})()}function _getPrototypeOf$A(l){return _getPrototypeOf$A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$A(l)}function _inherits$A(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$A(l,o)}function _setPrototypeOf$A(l,o){return _setPrototypeOf$A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$A(l,o)}var WindowTopBarPluginMenu$1=(function(l){function o(u){var d;return _classCallCheck$D(this,o),d=_callSuper$A(this,o,[u]),d.state={anchorEl:null},d.handleMenuClick=d.handleMenuClick.bind(d),d.handleMenuClose=d.handleMenuClose.bind(d),d}return _inherits$A(o,l),_createClass$D(o,[{key:"handleMenuClick",value:function(d){this.setState({anchorEl:d.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.containerId,v=f.PluginComponents,g=f.t,m=f.windowId,y=f.menuIcon,b=this.state.anchorEl;return!v||v.length===0?React.createElement(React.Fragment,null):React.createElement(React.Fragment,null,React.createElement(MiradorMenuButton$3,{"aria-expanded":!!b,"aria-haspopup":"true","aria-label":g("windowPluginMenu"),"aria-owns":b?"window-plugin-menu_".concat(m):void 0,className:b?p.ctrlBtnSelected:null,onClick:this.handleMenuClick},y),React.createElement(Menu$1,{id:"window-plugin-menu_".concat(m),container:document.querySelector("#".concat(h," .").concat(ns$1("viewer"))),anchorEl:b,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},getContentAnchorEl:null,open:!!b,onClose:function(){return d.handleMenuClose()}},React.createElement(PluginHook$1,Object.assign({handleClose:function(){return d.handleMenuClose()}},this.props))))}}])})(reactExports.Component);WindowTopBarPluginMenu$1.defaultProps={classes:{},menuIcon:React.createElement(MoreVertIcon,null),PluginComponents:[]};var mapStateToProps$v=function l(o){return{containerId:getContainerId$1(o)}},styles$u=function l(o){return{ctrlBtnSelected:{backgroundColor:o.palette.action.selected}}},enhance$z=compose$2(withTranslation(),withStyles$2(styles$u),connect(mapStateToProps$v,null),withPlugins$1("WindowTopBarPluginMenu"));const WindowTopBarPluginMenu=enhance$z(WindowTopBarPluginMenu$1);var ErrorOutlineSharp={},hasRequiredErrorOutlineSharp;function requireErrorOutlineSharp(){if(hasRequiredErrorOutlineSharp)return ErrorOutlineSharp;hasRequiredErrorOutlineSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ErrorOutlineSharp,"__esModule",{value:!0}),ErrorOutlineSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return ErrorOutlineSharp.default=f,ErrorOutlineSharp}var ErrorOutlineSharpExports=requireErrorOutlineSharp();const ErrorIcon=getDefaultExportFromCjs(ErrorOutlineSharpExports);function _classCallCheck$C(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$C(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$K(d.key),d)}}function _createClass$C(l,o,u){return o&&_defineProperties$C(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$K(l){var o=_toPrimitive$K(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$K(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$z(l,o,u){return o=_getPrototypeOf$z(o),_possibleConstructorReturn$z(l,_isNativeReflectConstruct$z()?Reflect.construct(o,u||[],_getPrototypeOf$z(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$z(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$z(l)}function _assertThisInitialized$z(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$z(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$z=function(){return!!l})()}function _getPrototypeOf$z(l){return _getPrototypeOf$z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$z(l)}function _inherits$z(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$z(l,o)}function _setPrototypeOf$z(l,o){return _setPrototypeOf$z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$z(l,o)}var WindowTopBarTitle$1=(function(l){function o(){return _classCallCheck$C(this,o),_callSuper$z(this,o,arguments)}return _inherits$z(o,l),_createClass$C(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.error,h=d.hideWindowTitle,v=d.isFetching,g=d.manifestTitle,m=function(w){return React.createElement(Typography$1,Object.assign({variant:"h2",noWrap:!0,color:"inherit",className:f.title},w),w.children)},y=null;return v?y=React.createElement(m,null,React.createElement(Skeleton$1,{variant:"text"})):p?y=React.createElement(React.Fragment,null,React.createElement(ErrorIcon,{color:"error"}),React.createElement(m,{color:"textSecondary"},p)):h?y=React.createElement("div",{className:f.title}):y=React.createElement(m,null,g),y}}])})(reactExports.Component);WindowTopBarTitle$1.defaultProps={error:null,hideWindowTitle:!1,isFetching:!1,manifestTitle:""};function ownKeys$a(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$a(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$a(Object(u),!0).forEach(function(d){_defineProperty$b(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$a(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$b(l,o,u){return(o=_toPropertyKey$J(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$J(l){var o=_toPrimitive$J(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$J(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$u=function l(o,u){var d=u.windowId;return{error:getManifestStatus$1(o,{windowId:d}).error,hideWindowTitle:getWindowConfig$1(o,{windowId:d}).hideWindowTitle,isFetching:getManifestStatus$1(o,{windowId:d}).isFetching,manifestTitle:getManifestTitle$1(o,{windowId:d})}},styles$t=function l(o){return{title:_objectSpread$a(_objectSpread$a({},o.typography.h6),{},{flexGrow:1,paddingLeft:o.spacing(.5)})}},enhance$y=compose$2(withTranslation(),withStyles$2(styles$t),connect(mapStateToProps$u,null),withPlugins$1("WindowTopBarTitle"));const WindowTopBarTitle=enhance$y(WindowTopBarTitle$1);function WindowMaxIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M7,14H5v5h5V17H7Zm7-9V7h3v3h2V5Z"}),React.createElement("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})))}function WindowMinIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M5,16H8v3h2V14H5ZM16,8V5H14v5h5V8Z"}),React.createElement("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})))}function _classCallCheck$B(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$B(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$I(d.key),d)}}function _createClass$B(l,o,u){return o&&_defineProperties$B(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$I(l){var o=_toPrimitive$I(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$I(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$y(l,o,u){return o=_getPrototypeOf$y(o),_possibleConstructorReturn$y(l,_isNativeReflectConstruct$y()?Reflect.construct(o,u||[],_getPrototypeOf$y(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$y(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$y(l)}function _assertThisInitialized$y(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$y(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$y=function(){return!!l})()}
154function _getPrototypeOf$y(l){return _getPrototypeOf$y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$y(l)}function _inherits$y(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$y(l,o)}function _setPrototypeOf$y(l,o){return _setPrototypeOf$y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$y(l,o)}var WindowTopBar$1=(function(l){function o(){return _classCallCheck$B(this,o),_callSuper$y(this,o,arguments)}return _inherits$y(o,l),_createClass$B(o,[{key:"render",value:function(){var d=this.props,f=d.removeWindow,p=d.windowId,h=d.classes,v=d.toggleWindowSideBar,g=d.t,m=d.windowDraggable,y=d.maximizeWindow,b=d.maximized,w=d.minimizeWindow,E=d.focused,P=d.allowClose,C=d.allowMaximize,T=d.focusWindow,O=d.allowFullscreen,x=d.allowTopMenuButton,A=d.allowWindowSideBar,D=d.sideBarOpen,j=d.shiftBookView,M=d.viewType;return React.createElement(AppBar$1,{position:"relative",color:"default"},React.createElement("nav",{"aria-label":g("windowNavigation")},React.createElement(Toolbar$1,{disableGutters:!0,onMouseDown:T,className:classNames(h.windowTopBarStyle,m?h.windowTopBarStyleDraggable:null,E?h.focused:null,ns$1("window-top-bar")),variant:"dense"},A&&React.createElement(MiradorMenuButton$3,{"aria-expanded":D,"aria-haspopup":!0,"aria-label":g(D?"hideWindowSideBar":"showWindowSideBar"),onClick:v},React.createElement(MenuIcon,null)),React.createElement(WindowTopBarTitle,{windowId:p}),x&&React.createElement(WindowTopMenuButton,{className:ns$1("window-menu-btn"),windowId:p,viewIsModified:M==="book"&&j}),React.createElement(WindowTopBarPluginArea,{windowId:p}),React.createElement(WindowTopBarPluginMenu,{windowId:p}),C&&React.createElement(MiradorMenuButton$3,{"aria-label":g(b?"minimizeWindow":"maximizeWindow"),className:ns$1("window-maximize"),onClick:b?w:y},b?React.createElement(WindowMinIcon,null):React.createElement(WindowMaxIcon,null)),O&&React.createElement(FullScreenButton,null),P&&React.createElement(MiradorMenuButton$3,{"aria-label":g("closeWindow"),className:ns$1("window-close"),onClick:f},React.createElement(CloseIcon$1,null)))))}}])})(reactExports.Component);WindowTopBar$1.defaultProps={allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,focused:!1,focusWindow:function l(){},maximized:!1,maximizeWindow:function l(){},minimizeWindow:function l(){},shiftBookView:!1,sideBarOpen:!1,t:function l(o){return o},windowDraggable:!0};var mapStateToProps$t=function l(o,u){var d=u.windowId,f=getWindowConfig$1(o,{windowId:d});return{allowClose:f.allowClose,allowFullscreen:f.allowFullscreen,allowMaximize:f.allowMaximize,allowTopMenuButton:f.allowTopMenuButton,allowWindowSideBar:f.allowWindowSideBar,focused:isFocused$1(o,{windowId:d}),maximized:f.maximized,sideBarOpen:(getWindow$2(o,{windowId:d})||{}).sideBarOpen,shiftBookView:f.shiftBookView,viewType:getWindowViewType$1(o,{windowId:d})}},mapDispatchToProps$k=function l(o,u){var d=u.windowId;return{focusWindow:function(){return o(focusWindow$1(d))},maximizeWindow:function(){return o(maximizeWindow$1(d))},minimizeWindow:function(){return o(minimizeWindow$1(d))},removeWindow:function(){return o(removeWindow$1(d))},toggleWindowSideBar:function(){return o(toggleWindowSideBar$1(d))}}},styles$s=function l(o){return{focused:{},windowTopBarStyle:{"&$focused":{borderTop:"2px solid ".concat(o.palette.primary.main)},backgroundColor:o.palette.shades.main,borderTop:"2px solid transparent",minHeight:32,paddingLeft:o.spacing(.5),paddingRight:o.spacing(.5)},windowTopBarStyleDraggable:{cursor:"move"}}},enhance$x=compose$2(withTranslation(),withStyles$2(styles$s),connect(mapStateToProps$t,mapDispatchToProps$k),withPlugins$1("WindowTopBar"));const WindowTopBar=enhance$x(WindowTopBar$1);var InfoSharp={},hasRequiredInfoSharp;function requireInfoSharp(){if(hasRequiredInfoSharp)return InfoS
154harp;hasRequiredInfoSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(InfoSharp,"__esModule",{value:!0}),InfoSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return InfoSharp.default=f,InfoSharp}var InfoSharpExports=requireInfoSharp();const InfoIcon=getDefaultExportFromCjs(InfoSharpExports);var CommentSharp={},hasRequiredCommentSharp;function requireCommentSharp(){if(hasRequiredCommentSharp)return CommentSharp;hasRequiredCommentSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(CommentSharp,"__esModule",{value:!0}),CommentSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M21.99 2H2v16h16l4 4-.01-20zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"CommentSharp");return CommentSharp.default=f,CommentSharp}var CommentSharpExports=requireCommentSharp();const AnnotationIcon=getDefaultExportFromCjs(CommentSharpExports);var CopyrightSharp={},hasRequiredCopyrightSharp;function requireCopyrightSharp(){if(hasRequiredCopyrightSharp)return CopyrightSharp;hasRequiredCopyrightSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(CopyrightSharp,"__esModule",{value:!0}),CopyrightSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return CopyrightSharp.default=f,CopyrightSharp}var CopyrightSharpExports=requireCopyrightSharp();const AttributionIcon=getDefaultExportFromCjs(CopyrightSharpExports);var LayersSharp={},hasRequiredLayersSharp;function requireLayersSharp(){if(hasRequiredLayersSharp)return LayersSharp;hasRequiredLayersSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(LayersSharp,"__esModule",{value:!0}),LayersSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return LayersSharp.default=f,LayersSharp}var LayersSharpExports=requireLayersSharp();const LayersIcon=getDefaultExportFromCjs(LayersSharpExports);function CanvasIndexIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M6.924,21H21V19H6.924ZM3,17H21V15H3Zm3.924-4H21V11H6.924Zm0-4H21V7H6.924ZM3,3V5H21V3Z"})))}function _classCallCheck$A(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$A(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$H(d.key),d)}}function _createClass$A(l,o,u){return o&&_defineProperties$A(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$H(l){var o=_toPrimitive$H(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$H(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$x(l,o,u){return o=_getPrototypeOf$x(o),_possibleConstructorReturn$x(l,_isNativeReflectConstruct$x()?Reflect.construct(o,u||[],_getPrototypeOf$x(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$x(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$x(l)}function _assertThisInitialized$x(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$x(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$x=function(){return!!l})()}
154function _getPrototypeOf$x(l){return _getPrototypeOf$x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$x(l)}function _inherits$x(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$x(l,o)}function _setPrototypeOf$x(l,o){return _setPrototypeOf$x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$x(l,o)}var WindowSideBarButtons$1=(function(l){function o(u){var d;return _classCallCheck$A(this,o),d=_callSuper$x(this,o,[u]),d.handleChange=d.handleChange.bind(d),d}return _inherits$x(o,l),_createClass$A(o,[{key:"handleChange",value:function(d,f){var p=this.props.addCompanionWindow;p(f)}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.hasAnnotations,v=f.hasAnyAnnotations,g=f.hasAnyLayers,m=f.hasCurrentLayers,y=f.hasSearchResults,b=f.hasSearchService,w=f.panels,E=f.PluginComponents,P=f.sideBarPanel,C=f.t,T=function(x){return React.createElement(Tooltip$1,{title:C("openCompanionWindow",{context:x.value})},React.createElement(Tab$1,Object.assign({},x,{classes:{root:p.tab,selected:p.tabSelected},"aria-label":C("openCompanionWindow",{context:x.value}),disableRipple:!0,onKeyUp:d.handleKeyUp})))};return React.createElement(Tabs$1,{classes:{flexContainer:p.tabsFlexContainer,indicator:p.tabsIndicator},value:P==="closed"?!1:P,onChange:this.handleChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary",orientation:"vertical","aria-orientation":"vertical","aria-label":C("sidebarPanelsNavigation")},w.info&&React.createElement(T,{value:"info",icon:React.createElement(InfoIcon,null)}),w.attribution&&React.createElement(T,{value:"attribution",icon:React.createElement(AttributionIcon,null)}),w.canvas&&React.createElement(T,{value:"canvas",icon:React.createElement(CanvasIndexIcon,null)}),w.annotations&&(h||v)&&React.createElement(T,{value:"annotations",icon:React.createElement(Badge$1,{classes:{badge:p.badge},invisible:!h,variant:"dot"},React.createElement(AnnotationIcon,null))}),w.search&&b&&React.createElement(T,{value:"search",icon:React.createElement(Badge$1,{classes:{badge:p.badge},invisible:!y,variant:"dot"},React.createElement(SearchIcon,null))}),w.layers&&g&&React.createElement(T,{value:"layers",icon:React.createElement(Badge$1,{classes:{badge:p.badge},invisible:!m,variant:"dot"},React.createElement(LayersIcon,null))}),E&&E.map(function(O){return React.createElement(T,{key:O.value,value:O.value,icon:React.createElement(O,null)})}))}}])})(reactExports.Component);WindowSideBarButtons$1.defaultProps={classes:{},hasAnnotations:!1,hasAnyAnnotations:!1,hasAnyLayers:!1,hasCurrentLayers:!1,hasSearchResults:!1,hasSearchService:!1,panels:[],PluginComponents:null,sideBarPanel:"closed",t:function l(o){return o}};var mapDispatchToProps$j=function l(o,u){var d=u.windowId;return{addCompanionWindow:function(p){return o(addOrUpdateCompanionWindow$1(d,{content:p,position:"left"}))}}};function hasLayers(l){return l&&l.some(function(o){return new MiradorCanvas$2(o).imageResources.length>1})}function hasAnnotations(l){return l&&l.some(function(o){var u=new MiradorCanvas$2(o);return u.annotationListUris.length>0||u.canvasAnnotationPages.length>0})}var mapStateToProps$s=function l(o,u){var d=u.windowId;return{hasAnnotations:getAnnotationResourcesByMotivation$1(o,{windowId:d}).length>0,hasAnyAnnotations:hasAnnotations(getCanvases$1(o,{windowId:d})),hasAnyLayers:hasLayers(getCanvases$1(o,{windowId:d})),hasCurrentLayers:hasLayers(getVisibleCanvases$1(o,{windowId:d})),hasSearchResults:getWindow$2(o,{windowId:d}).suggestedSearches||getSearchQuery$1(o,{companionWindowId:(getCompanionWindowsForPosition$1(o,{position:"left",windowId:d})[0]||{}).id,windowId:d}),hasSearchService:getManifestSearchService$1(o,{windowId:d})!==null,panels:getWindowConfig$1(o,{windowId:d}).panels,sideBarPanel:(getCompanionWindowsForPosition$1(o,{position:"left",windowId:d})[0]||{}).content}},style=function l(o){return{badge:{backgroundColor:o.palette.notification.main},tab:{"&:active":{backgroundColor:o.palette.action.active},"&:focus":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:o.palette.action.hover,textDecoration:"none"},"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:o.palette.action.hover,textDecoration:"none"},borderRight:"2px solid transparent",minWidth:"auto"},tabSelected:{borderRight:"2px solid ".concat(o.palette.primary.main)},tabsFlexContainer:{flexDirection:"column"},tabsIndicator:{display:"none"}}},enhance$w=compose$2(withTranslation(),withStyles$2(style),connect(mapStateToProps$s,mapDispatchToProps$j),withPlugins$1("WindowSideBarButtons"));const WindowSideBarButtons=enhance$w(WindowSideBarButtons$1);function _classCallCheck$z(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$z(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$G(d.key),d)}}function _createClass$z(l,o,u){return o&&_defineProperties$z(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$G(l){var o=_toPrimitive$G(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$G(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$w(l,o,u){return o=_getPrototypeOf$w(o),_possibleConstructorReturn$w(l,_isNativeReflectConstruct$w()?Reflect.construct(o,u||[],_getPrototypeOf$w(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$w(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$w(l)}function _assertThisInitialized$w(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$w(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$w=function(){return!!l})()}
154function _getPrototypeOf$w(l){return _getPrototypeOf$w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$w(l)}function _inherits$w(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$w(l,o)}function _setPrototypeOf$w(l,o){return _setPrototypeOf$w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$w(l,o)}var WindowSideBar$1=(function(l){function o(){return _classCallCheck$z(this,o),_callSuper$w(this,o,arguments)}return _inherits$w(o,l),_createClass$z(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.direction,h=d.t,v=d.windowId,g=d.sideBarOpen;return React.createElement(React.Fragment,null,React.createElement(Drawer$1,{variant:"persistent",className:classNames(f.drawer),classes:{paper:classNames(f.paper)},anchor:p==="rtl"?"right":"left",PaperProps:{"aria-label":h("sidebarPanelsNavigation"),component:"nav",style:{height:"100%",position:"relative"}},SlideProps:{direction:p==="rtl"?"left":"right",mountOnEnter:!0,unmountOnExit:!0},open:g},React.createElement(WindowSideBarButtons,{windowId:v})))}}])})(reactExports.Component);WindowSideBar$1.defaultProps={sideBarOpen:!1};var mapStateToProps$r=function l(o,u){var d=u.windowId;return{direction:getThemeDirection$1(o),sideBarOpen:(getWindow$2(o,{windowId:d})||{}).sideBarOpen,sideBarPanel:(getWindow$2(o,{windowId:d})||{}).sideBarPanel}},styles$r=function l(o){return{drawer:{flexShrink:0,height:"100%",order:-1e3,zIndex:o.zIndex.appBar-1},grow:{flexGrow:1},paper:{borderInlineEnd:"1px solid ".concat(o.palette.divider),overflowX:"hidden",width:48},toolbar:o.mixins.toolbar}},enhance$v=compose$2(withStyles$2(styles$r),withTranslation(),connect(mapStateToProps$r,null),withPlugins$1("WindowSideBar"));const WindowSideBar=enhance$v(WindowSideBar$1);var ArrowLeftSharp={},hasRequiredArrowLeftSharp;function requireArrowLeftSharp(){if(hasRequiredArrowLeftSharp)return ArrowLeftSharp;hasRequiredArrowLeftSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ArrowLeftSharp,"__esModule",{value:!0}),ArrowLeftSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M14 7l-5 5 5 5V7z"}),"ArrowLeftSharp");return ArrowLeftSharp.default=f,ArrowLeftSharp}var ArrowLeftSharpExports=requireArrowLeftSharp();const ArrowLeftIcon=getDefaultExportFromCjs(ArrowLeftSharpExports);var ArrowRightSharp={},hasRequiredArrowRightSharp;function requireArrowRightSharp(){if(hasRequiredArrowRightSharp)return ArrowRightSharp;hasRequiredArrowRightSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ArrowRightSharp,"__esModule",{value:!0}),ArrowRightSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M10 17l5-5-5-5v10z"}),"ArrowRightSharp");return ArrowRightSharp.default=f,ArrowRightSharp}var ArrowRightSharpExports=requireArrowRightSharp();const ArrowRightIcon=getDefaultExportFromCjs(ArrowRightSharpExports);function _classCallCheck$y(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$y(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$F(d.key),d)}}function _createClass$y(l,o,u){return o&&_defineProperties$y(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$F(l){var o=_toPrimitive$F(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$F(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}
154function _callSuper$v(l,o,u){return o=_getPrototypeOf$v(o),_possibleConstructorReturn$v(l,_isNativeReflectConstruct$v()?Reflect.construct(o,u||[],_getPrototypeOf$v(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$v(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$v(l)}function _assertThisInitialized$v(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$v(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$v=function(){return!!l})()}function _getPrototypeOf$v(l){return _getPrototypeOf$v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$v(l)}function _inherits$v(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$v(l,o)}function _setPrototypeOf$v(l,o){return _setPrototypeOf$v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$v(l,o)}var ErrorContent$1=(function(l){function o(){return _classCallCheck$y(this,o),_callSuper$v(this,o,arguments)}return _inherits$v(o,l),_createClass$y(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.error,h=d.metadata,v=d.showJsError,g=d.t;return v?React.createElement(React.Fragment,null,React.createElement(Alert$1,{elevation:6,variant:"filled",severity:"error"},g("errorDialogTitle")),v&&React.createElement(Accordion$1,{square:!0,className:f.alert},React.createElement(AccordionSummary$1,{expandIcon:React.createElement(ExpandMoreIcon$1,null)},React.createElement(Typography$1,null,g("jsError",{message:p.message,name:p.name}))),React.createElement(AccordionDetails$1,{className:f.details},React.createElement("pre",null,g("jsStack",{stack:p.stack})),h&&React.createElement("pre",null,JSON.stringify(h,null,2)))),React.createElement(PluginHook$1,this.props)):null}}])})(reactExports.Component);ErrorContent$1.defaultProps={metadata:null,showJsError:!0,t:function l(o){return o}};var mapStateToProps$q=function l(o,u){var d=u.companionWindowId,f=u.windowId;return{metadata:{companionWindow:d&&getCompanionWindow$1(o,{companionWindowId:d}),manifest:getManifest$1(o,{windowId:f}),viewer:getViewer$1(o,{windowId:f}),window:getWindow$2(o,{windowId:f})},showJsError:getConfig$1(o).window.showJsError}},styles$q=function l(o){return{alert:{"& $icon":{color:o.palette.error.main},backgroundColor:o.palette.error.main,color:"#fff",fontWeight:o.typography.fontWeightMedium},details:{"& pre":{height:"100px",overflowY:"scroll"},flexDirection:"column"}}},enhance$u=compose$2(withTranslation(),withStyles$2(styles$q),connect(mapStateToProps$q),withPlugins$1("ErrorContent"));const ErrorContent=enhance$u(ErrorContent$1);function _classCallCheck$x(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$x(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$E(d.key),d)}}function _createClass$x(l,o,u){return o&&_defineProperties$x(l.prototype,o),u&&_defineProperties$x(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$E(l){var o=_toPrimitive$E(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$E(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$u(l,o,u){return o=_getPrototypeOf$u(o),_possibleConstructorReturn$u(l,_isNativeReflectConstruct$u()?Reflect.construct(o,u||[],_getPrototypeOf$u(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$u(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$u(l)}function _assertThisInitialized$u(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$u(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$u=function(){return!!l})()}function _getPrototypeOf$u(l){return _getPrototypeOf$u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
154)},_getPrototypeOf$u(l)}function _inherits$u(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$u(l,o)}function _setPrototypeOf$u(l,o){return _setPrototypeOf$u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$u(l,o)}var CompanionWindowFactory$1=(function(l){function o(u){var d;return _classCallCheck$x(this,o),d=_callSuper$u(this,o,[u]),d.state={},d}return _inherits$u(o,l),_createClass$x(o,[{key:"componentDidUpdate",value:function(d){var f=this.props.content;f!==d.content&&this.setState({error:null,hasError:!1})}},{key:"render",value:function(){var d=this.props,f=d.content,p=d.windowId,h=d.id,v=d.t,g=this.state,m=g.error,y=g.hasError;if(y)return React.createElement(CompanionWindow,{title:v("error"),windowId:p,id:h},React.createElement(ErrorContent,{error:m,windowId:p,companionWindowId:h}));var b=map[f];return b?React.createElement(b,{id:h,windowId:p}):React.createElement(React.Fragment,null)}}],[{key:"getDerivedStateFromError",value:function(d){return{error:d,hasError:!0}}}])})(reactExports.Component);CompanionWindowFactory$1.defaultProps={content:null,t:function l(o){return o}};var mapStateToProps$p=function l(o,u){var d=u.id,f=getCompanionWindow$1(o,{companionWindowId:d});return{content:f.content,id:d}},enhance$t=compose$2(withTranslation(),connect(mapStateToProps$p),withPlugins$1("CompanionWindowFactory"));const CompanionWindowFactory=enhance$t(CompanionWindowFactory$1);function _classCallCheck$w(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$w(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$D(d.key),d)}}function _createClass$w(l,o,u){return o&&_defineProperties$w(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$D(l){var o=_toPrimitive$D(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$D(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$t(l,o,u){return o=_getPrototypeOf$t(o),_possibleConstructorReturn$t(l,_isNativeReflectConstruct$t()?Reflect.construct(o,u||[],_getPrototypeOf$t(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$t(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$t(l)}function _assertThisInitialized$t(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$t(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$t=function(){return!!l})()}function _getPrototypeOf$t(l){return _getPrototypeOf$t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$t(l)}function _inherits$t(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$t(l,o)}function _setPrototypeOf$t(l,o){return _setPrototypeOf$t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$t(l,o)}var CompanionArea$1=(function(l){function o(){return _classCallCheck$w(this,o),_callSuper$t(this,o,arguments)}return _inherits$t(o,l),_createClass$w(o,[{key:"areaLayoutClass",value:function(){var d=this.props,f=d.classes,p=d.position;return p==="bottom"||p==="far-bottom"?f.horizontal:null}},{key:"collapseIcon",value:function(){var d=this.props,f=d.companionAreaOpen,p=d.direction;return p==="rtl"?f?React.createElement(ArrowRightIcon,null):React.createElement(ArrowLeftIcon,null):f?React.createElement(ArrowLeftIcon,null):React.createElement(ArrowRightIcon,null)}},{key:"slideDirection",value:function(){var d=this.props,f=d.direction,p=d.position,h=f==="rtl"?"left"
154:"right",v=f==="rtl"?"right":"left";switch(p){case"right":case"far-right":return v;case"bottom":case"far-bottom":return"up";default:return h}}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.companionWindowIds,h=d.companionAreaOpen,v=d.setCompanionAreaOpen,g=d.position,m=d.sideBarOpen,y=d.t,b=d.windowId;return React.createElement("div",{className:[f.root,this.areaLayoutClass(),ns$1("companion-area-".concat(g))].join(" ")},React.createElement(Slide,{in:h,direction:this.slideDirection()},React.createElement("div",{className:[ns$1("companion-windows"),p.length>0&&f[g],this.areaLayoutClass()].join(" "),style:{display:h?"flex":"none"}},p.map(function(w){return React.createElement(CompanionWindowFactory,{id:w,key:w,windowId:b})}))),v&&g==="left"&&m&&p.length>0&&React.createElement("div",{className:f.toggle},React.createElement(MiradorMenuButton$3,{"aria-expanded":h,"aria-label":y(h?"collapseSidePanel":"expandSidePanel"),className:f.toggleButton,key:h?"collapse":"expand",onClick:function(){v(b,!h)},TooltipProps:{placement:"right"}},this.collapseIcon())))}}])})(reactExports.Component);CompanionArea$1.defaultProps={classes:{},setCompanionAreaOpen:function l(){},sideBarOpen:!1};var mapStateToProps$o=function l(o,u){var d=u.windowId,f=u.position;return{companionAreaOpen:getCompanionAreaVisibility$1(o,{position:f,windowId:d}),companionWindowIds:getCompanionWindowIdsForPosition$1(o,{position:f,windowId:d}),direction:getThemeDirection$1(o),sideBarOpen:(getWindow$2(o,{windowId:d})||{}).sideBarOpen}},mapDispatchToProps$i={setCompanionAreaOpen:setCompanionAreaOpen$1},styles$p=function l(o){return{horizontal:{flexDirection:"column",width:"100%"},left:{minWidth:235},root:{display:"flex",minHeight:0,position:"relative",zIndex:o.zIndex.appBar-2},toggle:{backgroundColor:o.palette.background.paper,border:"1px solid ".concat(o.palette.shades.dark),borderRadius:0,height:"48px",left:"100%",marginTop:"1rem",padding:2,position:"absolute",width:"23px",zIndex:o.zIndex.drawer},toggleButton:{marginBottom:12,marginTop:12,padding:0}}},enhance$s=compose$2(withTranslation(),withStyles$2(styles$p),connect(mapStateToProps$o,mapDispatchToProps$i),withPlugins$1("CompanionArea"));const CompanionArea=enhance$s(CompanionArea$1);function _toConsumableArray$4(l){return _arrayWithoutHoles$4(l)||_iterableToArray$4(l)||_unsupportedIterableToArray$4(l)||_nonIterableSpread$4()}function _nonIterableSpread$4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
155In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$4(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$4(l,o):void 0}}function _iterableToArray$4(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$4(l){if(Array.isArray(l))return _arrayLikeToArray$4(l)}function _arrayLikeToArray$4(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _classCallCheck$v(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$v(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$C(d.key),d)}}function _createClass$v(l,o,u){return o&&_defineProperties$v(l.prototype,o),u&&_defineProperties$v(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$C(l){var o=_toPrimitive$C(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$C(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$s(l,o,u){return o=_getPrototypeOf$s(o),_possibleConstructorReturn$s(l,_isNativeReflectConstruct$s()?Reflect.construct(o,u||[],_getPrototypeOf$s(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$s(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$s(l)}function _assertThisInitialized$s(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$s(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$s=function(){return!!l})()}
155function _getPrototypeOf$s(l){return _getPrototypeOf$s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$s(l)}function _inherits$s(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$s(l,o)}function _setPrototypeOf$s(l,o){return _setPrototypeOf$s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$s(l,o)}var CollectionDialog$1=(function(l){function o(u){var d;return _classCallCheck$v(this,o),d=_callSuper$s(this,o,[u]),d.state={filter:null},d.hideDialog=d.hideDialog.bind(d),d}return _inherits$s(o,l),_createClass$v(o,[{key:"setFilter",value:function(d){this.setState({filter:d})}},{key:"hideDialog",value:function(){var d=this.props,f=d.hideCollectionDialog,p=d.windowId;f(p)}},{key:"selectCollection",value:function(d){var f=this.props,p=f.collectionPath,h=f.manifestId,v=f.showCollectionDialog,g=f.windowId;v(d.id,[].concat(_toConsumableArray$4(p),[h]),g)}},{key:"goToPreviousCollection",value:function(){var d=this.props,f=d.collectionPath,p=d.showCollectionDialog,h=d.windowId;p(f[f.length-1],f.slice(0,-1),h)}},{key:"selectManifest",value:function(d){var f=this.props,p=f.addWindow,h=f.collectionPath,v=f.manifestId,g=f.setWorkspaceAddVisibility,m=f.updateWindow,y=f.windowId;y?m(y,{canvasId:null,collectionPath:[].concat(_toConsumableArray$4(h),[v]),manifestId:d.id}):p({collectionPath:[].concat(_toConsumableArray$4(h),[v]),manifestId:d.id}),this.hideDialog(),g(!1)}},{key:"dialogContainer",value:function(){var d=this.props,f=d.containerId,p=d.windowId;return document.querySelector("#".concat(f," #").concat(p))}},{key:"placeholder",value:function(){var d=this.props.classes;return React.createElement(Dialog$1,{className:d.dialog,onClose:this.hideDialog,open:!0,container:this.dialogContainer(),BackdropProps:this.backdropProps()},React.createElement(DialogTitle$1,{id:"select-collection",disableTypography:!0},React.createElement(Skeleton$1,{className:d.placeholder,variant:"text"})),React.createElement(ScrollIndicatedDialogContent,null,React.createElement(Skeleton$1,{className:d.placeholder,variant:"text"}),React.createElement(Skeleton$1,{className:d.placeholder,variant:"text"})))}},{key:"backdropProps",value:function(){var d=this.props.classes;return{classes:{root:d.dialog}}}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.collection,v=f.error,g=f.isMultipart,m=f.manifest,y=f.ready,b=f.t,w=this.state.filter;if(v)return null;if(!this.dialogContainer())return this.forceUpdate(),React.createElement(React.Fragment,null);if(!y)return this.placeholder();var E=m&&asArray$1(m.getProperty("rights")||m.getProperty("license")),P=m&&asArray$1(m.getRequiredStatement()).filter(function(O){return O.getValue()}).map(function(O){return{label:null,values:O.getValues()}}),C=m.getCollections(),T=w||(C.length>0?"collections":"manifests");return React.createElement(Dialog$1,{className:p.dialog,onClose:this.hideDialog,container:this.dialogContainer(),BackdropProps:this.backdropProps(),open:!0},React.createElement(DialogTitle$1,{id:"select-collection",disableTypography:!0},React.createElement(Typography$1,{component:"div",variant:"overline"},b(g?"multipartCollection":"collection")),React.createElement(Typography$1,{variant:"h3"},o.getUseableLabel(m))),React.createElement(ScrollIndicatedDialogContent,{className:p.dialogContent},h&&React.createElement(Button$1,{startIcon:React.createElement(ArrowBackIcon,null),onClick:function(){return d.goToPreviousCollection()}},o.getUseableLabel(h)),React.createElement("div",{className:p.collectionMetadata},React.createElement(ManifestInfo,{manifestId:m.id}),React.createElement(CollapsibleSection,{id:"select-collection-rights",label:b("attributionTitle")},P&&React.createElement(LabelValueMetadata,{labelValuePairs:P,defaultLabel:b("attribution")}),E&&E.length>0&&React.createElement(React.Fragment,null,React.createElement(Typography$1,{variant:"subtitle2",component:"dt"},b("rights")),E.map(function(O){return React.createElement(Typography$1,{variant:"body1",component:"dd",key:O},React.createElement(Link$1,{target:"_blank",rel:"noopener noreferrer",href:O},O))})))),React.createElement("div",{className:p.collectionFilter},m.getTotalCollections()>0&&React.createElement(Chip$1,{clickable:!0,color:T==="collections"?"primary":"default",onClick:function(){return d.setFilter("collections")},label:b("totalCollections",{count:m.getTotalCollections()})}),m.getTotalManifests()>0&&React.createElement(Chip$1,{clickable:!0,color:T==="manifests"?"primary":"default",onClick:function(){return d.setFilter("manifests")},label:b("totalManifests",{count:m.getTotalManifests()})})),T==="collections"&&React.createElement(MenuList,null,C.map(function(O){return React.createElement(MenuItem$1,{key:O.id,onClick:function(){d.selectCollection(O)},className:p.collectionItem},o.getUseableLabel(O))})),T==="manifests"&&React.createElement(MenuList,null,m.getManifests().map(function(O){return React.createElement(MenuItem$1,{key:O.id,onClick:function(){d.selectManifest(O)},className:p.collectionItem},o.getUseableLabel(O))}))),React.createElement(DialogActions$1,null,React.createElement(Button$1,{onClick:this.hideDialog},b("close"))))}}],[{key:"getUseableLabel",value:function(d,f){return d&&d.getLabel&&d.getLabel().length>0?d.getLabel().getValue():String(f+1)}}])})(reactExports.Component);CollectionDialog$1.defaultProps={collection:null,collectionPath:[],containerId:null,error:null,isMultipart:!1,ready:!1,windowId:null};var mapDispatchToProps$h={addWindow:addWindow$1,hideCollectionDialog:hideCollectionDialog$1,setWorkspaceAddVisibility:setWorkspaceAddVisibility$1,showCollectionDialog:showCollectionDialog$1,updateWindow:updateWindow$1},mapStateToProps$n=function l(o,u){var d=u.windowId,f=getWindow$2(o,{windowId:d}),p=f.collectionPath,h=f.collectionManifestId,v=getManifest$1(o,{manifestId:h}),g=p&&p[p.length-1],m=g&&getManifest$1(o,{manifestId:g});return{collection:m&&getManifestoInstance$1(o,{manifestId:m.id}
155),collectionPath:p,containerId:getContainerId$1(o),error:v&&v.error,isMultipart:getSequenceBehaviors$1(o,{manifestId:h}).includes("multi-part"),manifest:v&&getManifestoInstance$1(o,{manifestId:h}),manifestId:h,open:o.workspace.collectionDialogOn,ready:v&&!!v.json,windowId:d}},styles$o=function l(o){return{collectionFilter:{padding:"16px",paddingTop:0},collectionItem:{whiteSpace:"normal"},collectionMetadata:{padding:"16px"},dark:{color:"#000000"},dialog:{position:"absolute !important"},dialogContent:{padding:o.spacing(1)},light:{color:o.palette.grey[400]},listitem:{"&:focus":{backgroundColor:o.palette.action.focus},"&:hover":{backgroundColor:o.palette.action.hover},cursor:"pointer"}}},enhance$r=compose$2(withTranslation(),withStyles$2(styles$o),connect(mapStateToProps$n,mapDispatchToProps$h),withPlugins$1("CollectionDialog"));const CollectionDialog=enhance$r(CollectionDialog$1);function _classCallCheck$u(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$u(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$B(d.key),d)}}function _createClass$u(l,o,u){return o&&_defineProperties$u(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$B(l){var o=_toPrimitive$B(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$B(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$r(l,o,u){return o=_getPrototypeOf$r(o),_possibleConstructorReturn$r(l,_isNativeReflectConstruct$r()?Reflect.construct(o,u||[],_getPrototypeOf$r(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$r(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$r(l)}function _assertThisInitialized$r(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$r(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$r=function(){return!!l})()}function _getPrototypeOf$r(l){return _getPrototypeOf$r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$r(l)}function _inherits$r(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$r(l,o)}function _setPrototypeOf$r(l,o){return _setPrototypeOf$r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$r(l,o)}var AudioViewer$3=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>AudioViewer$1),void 0)}),GalleryView$3=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>GalleryView$1),void 0)}),SelectCollection$3=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>SelectCollection$1),void 0)}),WindowViewer$3=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>WindowViewer$1),void 0)}),VideoViewer$3=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>VideoViewer$1),void 0)});GalleryView$3.displayName="GalleryView";SelectCollection$3.displayName="SelectCollection";WindowViewer$3.displayName="WindowViewer";var PrimaryWindow$1=(function(l){function o(){return _classCallCheck$u(this,o),_callSuper$r(this,o,arguments)}return _inherits$r(o,l),_createClass$u(o,[{key:"renderViewer",value:function(){var d=this.props,f=d.audioResources,p=d.isCollection,h=d.isFetching,v=d.videoRes
155ources,g=d.view,m=d.windowId;return p?React.createElement(React.Fragment,null,React.createElement(SelectCollection$3,{windowId:m})):h===!1?g==="gallery"?React.createElement(GalleryView$3,{windowId:m}):v.length>0?React.createElement(VideoViewer$3,{windowId:m}):f.length>0?React.createElement(AudioViewer$3,{windowId:m}):React.createElement(WindowViewer$3,{windowId:m}):null}},{key:"render",value:function(){var d=this.props,f=d.isCollectionDialogVisible,p=d.windowId,h=d.classes,v=d.children;return React.createElement("div",{className:classNames(ns$1("primary-window"),h.primaryWindow)},React.createElement(WindowSideBar,{windowId:p}),React.createElement(CompanionArea,{windowId:p,position:"left"}),f&&React.createElement(CollectionDialog,{windowId:p}),React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},v||this.renderViewer()))}}])})(reactExports.Component);PrimaryWindow$1.defaultProps={audioResources:[],children:void 0,isCollection:!1,isCollectionDialogVisible:!1,isFetching:!1,videoResources:[],view:void 0};var mapStateToProps$m=function l(o,u){var d=u.windowId,f=getManifestoInstance$1(o,{windowId:d});return{audioResources:getVisibleCanvasAudioResources$1(o,{windowId:d})||[],isCollection:f&&f.isCollection(),isCollectionDialogVisible:getWindow$2(o,{windowId:d}).collectionDialogOn,videoResources:getVisibleCanvasVideoResources$1(o,{windowId:d})||[]}},styles$n={primaryWindow:{display:"flex",flex:1,position:"relative"}},enhance$q=compose$2(withStyles$2(styles$n),connect(mapStateToProps$m,null),withPlugins$1("PrimaryWindow"));const PrimaryWindow=enhance$q(PrimaryWindow$1);function _classCallCheck$t(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$t(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$A(d.key),d)}}function _createClass$t(l,o,u){return o&&_defineProperties$t(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$A(l){var o=_toPrimitive$A(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$A(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$q(l,o,u){return o=_getPrototypeOf$q(o),_possibleConstructorReturn$q(l,_isNativeReflectConstruct$q()?Reflect.construct(o,u||[],_getPrototypeOf$q(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$q(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$q(l)}function _assertThisInitialized$q(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$q(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$q=function(){return!!l})()}function _getPrototypeOf$q(l){return _getPrototypeOf$q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$q(l)}function _inherits$q(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$q(l,o)}function _setPrototypeOf$q(l,o){return _setPrototypeOf$q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$q(l,o)}var MinimalWindow$1=(function(l){function o(){return _classCallCheck$t(this,o),_callSuper$q(this,o,arguments)}return _inherits$q(o,l),_createClass$t(o,[{key:"render",value:function(){var d=this.props,f=d.allowClose,p=d.allowWindowSideBar,h=d.ariaLabel,v=d.children,g=d.classes,m=d.label,y=d.removeWindow,b=d.t,w=d.windowId;return React.createElement(Paper$1,{component:"section",elevation:1,id:w,className:classNames(g.window,ns$1("placeholder-window")),"aria-label":m&&h?b("window",{label:m}):null},React.createElement(AppBar$1,{position:"relative",color:"default"},React.createElement(Toolbar$1,{disableGutters:!0,className:classNames(g.windowTopBarStyle,ns$1("window-top-bar")),variant:"dense"},p&&React.createElement(MiradorMenuButton$3,{"aria-label":b("toggleWindowSideBar"),disabled:!0},React.createElement(MenuIcon,null)),React.createElement(Typography$1,{variant:"h2",noWrap:!0,color:"inherit",className:g.title},m),f&&y&&React.createElement(MiradorMenuButton$3,{"aria-label":b("closeWindow"),className:classNames(g.button,ns$1("window-close")),onClick:y,TooltipProps:{tabIndex:h?"0":"-1"}},React.createElement(CloseIcon$1,null)))),v)}}])})(reactExports.Component);MinimalWindow$1.defaultProps={allowClose:!0,allowWindowSideBar:!0,ariaLabel:!0,children:null,classes:{},label:"",removeWindow:function l(){},t:function l(o){return o}};function ownKeys$9(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$9(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
155o%2?ownKeys$9(Object(u),!0).forEach(function(d){_defineProperty$a(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$9(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$a(l,o,u){return(o=_toPropertyKey$z(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$z(l){var o=_toPrimitive$z(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$z(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$l=function l(o,u){var d=u.windowId;return{allowClose:getWindowConfig$1(o,{windowId:d}).allowClose,allowWindowSideBar:getWindowConfig$1(o,{windowId:d}).allowWindowSideBar}},mapDispatchToProps$g=function l(o,u){var d=u.windowId;return{removeWindow:function(){return o(removeWindow$1(d))}}},styles$m=function l(o){return{button:{marginLeft:"auto"},title:_objectSpread$9(_objectSpread$9({},o.typography.h6),{},{flexGrow:1,paddingLeft:o.spacing(.5)}),window:{backgroundColor:o.palette.shades.dark,borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",width:"100%"},windowTopBarStyle:{backgroundColor:o.palette.shades.main,borderTop:"2px solid transparent",minHeight:32,paddingLeft:o.spacing(.5),paddingRight:o.spacing(.5)}}},enhance$p=compose$2(withTranslation(),withStyles$2(styles$m),connect(mapStateToProps$l,mapDispatchToProps$g),withPlugins$1("MinimalWindow"));const MinimalWindow=enhance$p(MinimalWindow$1);var dist={},hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0});var l=Object.assign||function(b){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(b[P]=E[P])}return b},o=(function(){function b(w,E){for(var P=0;P<E.length;P++){var C=E[P];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,E,P){return E&&b(w.prototype,E),P&&b(w,P),w}})(),u=requireReact(),d=h(u),f=requirePropTypes$1(),p=h(f);function h(b){return b&&b.__esModule?b:{default:b}}function v(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function g(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function m(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var y=(function(b){m(w,b);function w(E){v(this,w);var P=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,E));return P.onReceiveMessage=P.onReceiveMessage.bind(P),P.onLoad=P.onLoad.bind(P),P.sendMessage=P.sendMessage.bind(P),P}return o(w,[{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(P){this.props.postMessageData!==P.postMessageData&&this.sendMessage(P.postMessageData)}},{key:"onReceiveMessage",value:function(P){var C=this.props.handleReceiveMessage;C&&C(P)}},{key:"onLoad",value:function(){var P=this.props.handleReady;P&&P(),this.sendMessage(this.props.postMessageData)}},{key:"sendMessage",value:function(P){this._frame.contentWindow.postMessage(P,this.props.targetOrigin)}},{key:"render",value:function(){var P=this,C=this.props.attributes;return d.default.createElement("iframe",l({ref:function(O){P._frame=O}},Object.assign({},w.defaultAttributes,C)))}}]),w})(d.default.Component);return y.propTypes={attributes:p.default.shape({frameBorder:p.default.oneOfType([p.default.string,p.default.number]),height:p.default.oneOfType([p.default.string,p.default.number]),name:p.default.string,scrolling:p.default.string,sandbox:p.default.string,srcDoc:p.default.string,src:p.default.string.isRequired,width:p.default.oneOfType([p.default.string,p.default.number])}),handleReceiveMessage:p.default.func,handleReady:p.default.func,postMessageData:p.default.any,targetOrigin:p.default.string},y.defaultProps={targetOrigin:"*"},y.defaultAttributes={frameBorder:0},dist.default=y,dist}var distExports=requireDist();const IComCom=getDefaultExportFromCjs(distExports);function _classCallCheck$s(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$s(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$y(d.key),d)}}function _createClass$s(l,o,u){return o&&_defineProperties$s(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}
155function _toPropertyKey$y(l){var o=_toPrimitive$y(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$y(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$p(l,o,u){return o=_getPrototypeOf$p(o),_possibleConstructorReturn$p(l,_isNativeReflectConstruct$p()?Reflect.construct(o,u||[],_getPrototypeOf$p(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$p(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$p(l)}function _assertThisInitialized$p(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$p(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$p=function(){return!!l})()}function _getPrototypeOf$p(l){return _getPrototypeOf$p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$p(l)}function _inherits$p(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$p(l,o)}function _setPrototypeOf$p(l,o){return _setPrototypeOf$p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$p(l,o)}var AccessTokenSender=(function(l){function o(u){var d;return _classCallCheck$s(this,o),d=_callSuper$p(this,o,[u]),d.onReceiveAccessTokenMessage=d.onReceiveAccessTokenMessage.bind(d),d}return _inherits$p(o,l),_createClass$s(o,[{key:"onReceiveAccessTokenMessage",value:function(d){var f=this.props,p=f.handleAccessTokenMessage,h=f.url;d.data&&d.data.messageId&&d.data.messageId===h&&p(d.data)}},{key:"render",value:function(){var d=this.props.url;return d?React.createElement(IComCom,{attributes:{"aria-hidden":!0,height:1,src:"".concat(d,"?origin=").concat(window.origin,"&messageId=").concat(d),style:{visibility:"hidden"},width:1},handleReceiveMessage:this.onReceiveAccessTokenMessage}):React.createElement(React.Fragment,null)}}])})(reactExports.Component);AccessTokenSender.defaultProps={url:void 0};function _classCallCheck$r(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$r(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$x(d.key),d)}}function _createClass$r(l,o,u){return o&&_defineProperties$r(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$x(l){var o=_toPrimitive$x(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$x(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$o(l,o,u){return o=_getPrototypeOf$o(o),_possibleConstructorReturn$o(l,_isNativeReflectConstruct$o()?Reflect.construct(o,u||[],_getPrototypeOf$o(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$o(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$o(l)}function _assertThisInitialized$o(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$o(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$o=function(){return!!l})()}
155function _getPrototypeOf$o(l){return _getPrototypeOf$o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$o(l)}function _inherits$o(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$o(l,o)}function _setPrototypeOf$o(l,o){return _setPrototypeOf$o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$o(l,o)}var NewWindow=(function(l){function o(u){var d;return _classCallCheck$r(this,o),d=_callSuper$o(this,o,[u]),d.released=void 0,d.window=null,d.checkIfWindowClosed=null,d}return _inherits$o(o,l),_createClass$r(o,[{key:"componentDidMount",value:function(){this.openWindow()}},{key:"componentWillUnmount",value:function(){this.window&&this.window.close()}},{key:"onClose",value:function(){var d=this.props,f=d.onClose,p=d.url;this.released||(this.released=!0,clearInterval(this.checkIfWindowClosed),f(p))}},{key:"openWindow",value:function(){var d=this,f=this.props,p=f.depWindow,h=f.features,v=f.name,g=f.url;this.window=(p||window).open(g,v,h),this.released=!1,this.checkIfWindowClosed=setInterval(function(){(!d.window||d.window.closed)&&d.onClose()},250)}},{key:"render",value:function(){return null}}])})(reactExports.Component);NewWindow.defaultProps={depWindow:void 0,features:void 0,name:void 0};var LockSharp={},hasRequiredLockSharp;function requireLockSharp(){if(hasRequiredLockSharp)return LockSharp;hasRequiredLockSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(LockSharp,"__esModule",{value:!0}),LockSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return LockSharp.default=f,LockSharp}var LockSharpExports=requireLockSharp();const LockIcon=getDefaultExportFromCjs(LockSharpExports);function ownKeys$8(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$8(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$8(Object(u),!0).forEach(function(d){_defineProperty$9(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$8(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$9(l,o,u){return(o=_toPropertyKey$w(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$q(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$q(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$w(d.key),d)}}function _createClass$q(l,o,u){return o&&_defineProperties$q(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$w(l){var o=_toPrimitive$w(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$w(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$n(l,o,u){return o=_getPrototypeOf$n(o),_possibleConstructorReturn$n(l,_isNativeReflectConstruct$n()?Reflect.construct(o,u||[],_getPrototypeOf$n(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$n(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$n(l)}function _assertThisInitialized$n(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$n(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$n=function(){return!!l})()}
155function _getPrototypeOf$n(l){return _getPrototypeOf$n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$n(l)}function _inherits$n(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$n(l,o)}function _setPrototypeOf$n(l,o){return _setPrototypeOf$n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$n(l,o)}var WindowAuthenticationBar$1=(function(l){function o(u){var d;return _classCallCheck$q(this,o),d=_callSuper$n(this,o,[u]),d.state={open:!1},d.setOpen=d.setOpen.bind(d),d.onSubmit=d.onSubmit.bind(d),d}return _inherits$n(o,l),_createClass$q(o,[{key:"onSubmit",value:function(){var d=this.props.onConfirm;this.setOpen(!1),d()}},{key:"setOpen",value:function(d){this.setState(function(f){return _objectSpread$8(_objectSpread$8({},f),{},{open:d})})}},{key:"render",value:function(){var d=this,f=this.props,p=f.classes,h=f.confirmButton,v=f.continueLabel,g=f.header,m=f.description,y=f.icon,b=f.label,w=f.t,E=f.ruleSet,P=f.hasLogoutService,C=f.status,T=f.ConfirmProps;if(C==="ok"&&!P)return null;var O=this.state.open,x=React.createElement(Button$1,Object.assign({onClick:this.onSubmit,className:p.buttonInvert,color:"secondary"},T),h||w("login"));return!m&&!g?React.createElement(Paper$1,{square:!0,elevation:4,color:"secondary",classes:{root:p.paper}},React.createElement("div",{className:p.topBar},y||React.createElement(LockIcon,{className:p.icon}),React.createElement(Typography$1,{className:p.label,component:"h3",variant:"body1",color:"inherit"},E?React.createElement(SanitizedHtml,{htmlString:b,ruleSet:E}):b),React.createElement(PluginHook$1,this.props),x)):React.createElement(Paper$1,{square:!0,elevation:4,color:"secondary",classes:{root:p.paper}},React.createElement(Button$1,{fullWidth:!0,className:p.topBar,onClick:function(){return d.setOpen(!0)},component:"div",color:"inherit"},y||React.createElement(LockIcon,{className:p.icon}),React.createElement(Typography$1,{className:p.label,component:"h3",variant:"body1",color:"inherit"},E?React.createElement(SanitizedHtml,{htmlString:b,ruleSet:E}):b),React.createElement(PluginHook$1,this.props),React.createElement("span",{className:p.fauxButton},!O&&React.createElement(Typography$1,{variant:"button",color:"inherit"},v||w("continue")))),React.createElement(Collapse$1,{in:O,onClose:function(){return d.setOpen(!1)}},React.createElement(Typography$1,{variant:"body1",color:"inherit",className:p.expanded},E?React.createElement(SanitizedHtml,{htmlString:g,ruleSet:E}):g,g&&m?": ":"",E?React.createElement(SanitizedHtml,{htmlString:m,ruleSet:E}):m),React.createElement(DialogActions$1,null,React.createElement(Button$1,{onClick:function(){return d.setOpen(!1)},color:"inherit"},w("cancel")),x)))}}])})(reactExports.Component);WindowAuthenticationBar$1.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 l(o){return o}};var styles$l=function l(o){return{buttonInvert:{"&:hover":{backgroundColor:colorManipulatorExports.alpha(o.palette.secondary.contrastText,1-o.palette.action.hoverOpacity)},backgroundColor:o.palette.secondary.contrastText,marginLeft:o.spacing(5),paddingBottom:0,paddingTop:0},expanded:{paddingLeft:o.spacing(),paddingRight:o.spacing()},failure:{backgroundColor:o.palette.error.dark},fauxButton:{marginLeft:o.spacing(2.5)},icon:{marginRight:o.spacing(1.5),verticalAlign:"text-bottom"},label:{lineHeight:2.25},paper:{backgroundColor:o.palette.secondary.main,color:o.palette.secondary.contrastText,cursor:"pointer"},topBar:{"&:hover":{backgroundColor:o.palette.secondary.main},alignItems:"center",display:"flex",justifyContent:"inherit",padding:o.spacing(1),textTransform:"none"}}},enhance$o=compose$2(withTranslation(),withStyles$2(styles$l),withPlugins$1("WindowAuthenticationBar"));const WindowAuthenticationBar=enhance$o(WindowAuthenticationBar$1);function _classCallCheck$p(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$p(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$v(d.key),d)}}function _createClass$p(l,o,u){return o&&_defineProperties$p(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$v(l){var o=_toPrimitive$v(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$v(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$m(l,o,u){return o=_getPrototypeOf$m(o),_possibleConstructorReturn$m(l,_isNativeReflectConstruct$m()?Reflect.construct(o,u||[],_getPrototypeOf$m(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$m(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$m(l)}function _assertThisInitialized$m(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$m(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$m=function(){return!!l})()}function _getPrototypeOf$m(l){return _getPrototypeOf$m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
155)},_getPrototypeOf$m(l)}function _inherits$m(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$m(l,o)}function _setPrototypeOf$m(l,o){return _setPrototypeOf$m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$m(l,o)}var IIIFAuthentication$1=(function(l){function o(u){var d;return _classCallCheck$p(this,o),d=_callSuper$m(this,o,[u]),d.performLogout=d.performLogout.bind(d),d.onReceiveAccessTokenMessage=d.onReceiveAccessTokenMessage.bind(d),d}return _inherits$m(o,l),_createClass$p(o,[{key:"onReceiveAccessTokenMessage",value:function(d){var f=this.props,p=f.authServiceId,h=f.accessTokenServiceId,v=f.resolveAccessTokenRequest;v(p,h,d)}},{key:"defaultAuthBarProps",value:function(){var d=this.props,f=d.authServiceId,p=d.windowId,h=d.status,v=d.logoutServiceId;return{authServiceId:f,hasLogoutService:!!v,status:h,windowId:p}}},{key:"performLogout",value:function(){var d=this.props,f=d.accessTokenServiceId,p=d.authServiceId,h=d.features,v=d.logoutServiceId,g=d.resetAuthenticationState,m=d.openWindow;m(v,void 0,h),g({authServiceId:p,tokenServiceId:f})}},{key:"renderLoggedIn",value:function(){var d=this.props,f=d.isInteractive,p=d.logoutConfirm,h=d.t;return f?React.createElement(WindowAuthenticationBar,Object.assign({confirmButton:p||h("logout"),onConfirm:this.performLogout},this.defaultAuthBarProps())):null}},{key:"renderFailure",value:function(){var d=this.props,f=d.handleAuthInteraction,p=d.failureHeader,h=d.failureDescription,v=d.t,g=d.authServiceId,m=d.windowId;return React.createElement(WindowAuthenticationBar,Object.assign({header:p,description:h,confirmButton:v("retry"),onConfirm:function(){return f(m,g)}},this.defaultAuthBarProps()))}},{key:"renderLoggingInCookie",value:function(){var d=this.props,f=d.accessTokenServiceId,p=d.authServiceId,h=d.resolveAuthenticationRequest,v=d.features;return React.createElement(React.Fragment,null,this.renderLogin(),React.createElement(NewWindow,{name:"IiifLoginSender",url:"".concat(p,"?origin=").concat(window.origin),features:v,onClose:function(){return h(p,f)}}))}},{key:"renderLoggingInToken",value:function(){var d=this.props.accessTokenServiceId;return React.createElement(React.Fragment,null,this.renderLogin(),React.createElement(AccessTokenSender,{handleAccessTokenMessage:this.onReceiveAccessTokenMessage,url:d}))}},{key:"renderLogin",value:function(){var d=this.props,f=d.confirm,p=d.description,h=d.handleAuthInteraction,v=d.header,g=d.isInteractive,m=d.label,y=d.authServiceId,b=d.windowId;return g?React.createElement(WindowAuthenticationBar,Object.assign({header:v,description:p,label:m,confirmButton:f,onConfirm:function(){return h(b,y)}},this.defaultAuthBarProps())):null}},{key:"render",value:function(){var d=this.props,f=d.authServiceId,p=d.status;return f?p===null?this.renderLogin():p==="cookie"?this.renderLoggingInCookie():p==="token"?this.renderLoggingInToken():p==="failed"?this.renderFailure():p==="ok"?this.renderLoggedIn():null:null}}])})(reactExports.Component);IIIFAuthentication$1.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 l(o){return o}};var mapStateToProps$k=function l(o,u){var d=u.windowId,f=selectCurrentAuthServices$1(o,{windowId:d}),p=f[0],h=p&&(Utils.getService(p,"http://iiif.io/api/auth/1/token")||Utils.getService(p,"http://iiif.io/api/auth/0/token")),v=p&&(Utils.getService(p,"http://iiif.io/api/auth/1/logout")||Utils.getService(p,"http://iiif.io/api/auth/0/logout")),g=getAuth$1(o),m=p&&g[p.id],y=getAccessTokens$1(o),b=h&&y[h.id],w=null;m?m.isFetching?m.windowId===d&&(w="cookie"):b&&b.isFetching?m.windowId===d&&(w="token"):m.ok?w="ok":m.ok===!1&&(w="failed"):w=null;
155var E=getAuthProfiles$1(o),P=p&&p.getProfile(),C=E.some(function(T){return T.profile===P&&!(T.external||T.kiosk)});return{accessTokenServiceId:h&&h.id,authServiceId:p&&p.id,confirm:p&&p.getConfirmLabel(),description:p&&p.getDescription(),failureDescription:p&&p.getFailureDescription(),failureHeader:p&&p.getFailureHeader(),header:p&&p.getHeader(),isInteractive:C,label:p&&p.getLabel()[0].value,logoutConfirm:v&&v.getLabel()[0]&&v.getLabel()[0].value,logoutServiceId:v&&v.id,profile:P,status:w}},mapDispatchToProps$f={handleAuthInteraction:addAuthenticationRequest$1,resetAuthenticationState:resetAuthenticationState$1,resolveAccessTokenRequest:resolveAccessTokenRequest$1,resolveAuthenticationRequest:resolveAuthenticationRequest$1},enhance$n=compose$2(withTranslation(),connect(mapStateToProps$k,mapDispatchToProps$f),withPlugins$1("IIIFAuthentication"));const IIIFAuthentication=enhance$n(IIIFAuthentication$1);function _classCallCheck$o(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$o(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$u(d.key),d)}}function _createClass$o(l,o,u){return o&&_defineProperties$o(l.prototype,o),u&&_defineProperties$o(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$u(l){var o=_toPrimitive$u(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$u(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$l(l,o,u){return o=_getPrototypeOf$l(o),_possibleConstructorReturn$l(l,_isNativeReflectConstruct$l()?Reflect.construct(o,u||[],_getPrototypeOf$l(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$l(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$l(l)}function _assertThisInitialized$l(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$l(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$l=function(){return!!l})()}function _getPrototypeOf$l(l){return _getPrototypeOf$l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$l(l)}function _inherits$l(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$l(l,o)}function _setPrototypeOf$l(l,o){return _setPrototypeOf$l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$l(l,o)}var Window$1=(function(l){function o(u){var d;return _classCallCheck$o(this,o),d=_callSuper$l(this,o,[u]),d.state={},d}return _inherits$l(o,l),_createClass$o(o,[{key:"wrappedTopBar",value:function(){var d=this.props,f=d.windowId,p=d.workspaceType,h=d.windowDraggable,v=React.createElement("div",null,React.createElement(WindowTopBar,{windowId:f,windowDraggable:h}),React.createElement(IIIFAuthentication,{windowId:f}));if(p==="mosaic"&&h){var g=this.context.mosaicWindowActions;return g.connectDragSource(v)}return v}},{key:"render",value:function(){var d=this.props,f=d.focusWindow,p=d.label,h=d.isFetching,v=d.maximized,g=d.sideBarOpen,m=d.view,y=d.windowId,b=d.classes,w=d.t,E=d.manifestError,P=this.state,C=P.error,T=P.hasError;return T?React.createElement(MinimalWindow,{windowId:y},React.createElement(ErrorContent,{error:C,windowId:y})):React.createElement(Paper$1,{onFocus:f,component:"section",elevation:1,id:y,className:classNames(b.window,ns$1("window"),v?b.maximized:null),"aria-label":w("window",{label:p})},this.wrappedTopBar(),E&&React.createElement(ErrorContent,{error:{stack:E},windowId:y}),React.createElement("div",{className:b.middle},React.createElement("div",{className:b.middleLeft},React.createElement("div",{className:b.primaryWindow},React.createElement(PrimaryWindow,{view:m,windowId:y,isFetching:h,sideBarOpen:g})),React.createElement("div",{className:b.companionAreaBottom},React.createElement(CompanionArea,{windowId:y,position:"bottom"}))),React.createElement("div",{className:b.companionAreaRight},React.createElement(CompanionArea,{windowId:y,position:"right"}),React.createElement(CompanionArea,{windowId:y,position:"far-right"}))),React.createElement(CompanionArea,{windowId:y,position:"far-bottom"}),React.createElement(PluginHook$1,this.props))}}],[{key:"getDerivedStateFromError",value:function(d){return{error:d,hasError:!0}}}])})(reactExports.Component);Window$1.contextType=contextTypesExports.MosaicWindowContext;Window$1.defaultProps={classes:{},focusWindow:function l(){},isFetching:!1,label:null,manifestError:null,maximized:!1,sideBarOpen:!1,view:void 0,windowDraggable:null,workspaceType:null};var mapStateToProps$j=function l(o,u){var d=u.windowId;return{isFetching:getManifestStatus$1(o,{windowId:d}).isFetching,label:getManifestTitle$1(o,{windowId:d}),manifestError:getManifestError$1(o,{windowId:d}),maximized:(getWindow$2(o,{windowId:d})||{}).maximized,sideBarOpen:(getWindow$2(o,{windowId:d})||{}).sideBarOpen,thumbnailNavigationPosition:getThumbnailNavigationPosition$1(o,{windowId:d}),view:getWindowViewType$1(o,{windowId:d}),window:getWindow$2(o,{windowId:d}),windowDraggable:getWindowDraggability$1(o,{windowId:d}),workspaceType:getWorkspaceType$1(o)}},mapDispatchToProps$e=function l(o,u){var d=u.windowId;return{focusWindow:function(){return o(focusWindow$1(d))}}},styles$k=function l(o){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:o.palette.shades.dark},thumbnailAreaBottom:{},thumbnailAreaRight:{minWidth:100},window:{"&$maximized":{left:0,position:"absolute",top:0,zIndex:o.zIndex.modal-1},backgroundColor:o.palette.shades.dark,borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",
155width:"100%"}}},enhance$m=compose$2(withTranslation(),withStyles$2(styles$k),connect(mapStateToProps$j,mapDispatchToProps$e),withPlugins$1("Window"));const Window=enhance$m(Window$1);var lib={},Mosaic={},countBy_1,hasRequiredCountBy;function requireCountBy(){if(hasRequiredCountBy)return countBy_1;hasRequiredCountBy=1;var l=require_baseAssignValue(),o=require_createAggregator(),u=Object.prototype,d=u.hasOwnProperty,f=o(function(p,h,v){d.call(p,v)?++p[v]:l(p,v,1)});return countBy_1=f,countBy_1}const require$$7=getAugmentedNamespace(esm$4),require$$6=getAugmentedNamespace(esm$2);var rngBrowser={exports:{}},hasRequiredRngBrowser;function requireRngBrowser(){if(hasRequiredRngBrowser)return rngBrowser.exports;hasRequiredRngBrowser=1;var l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(l){var o=new Uint8Array(16);rngBrowser.exports=function(){return l(o),o}}else{var u=new Array(16);rngBrowser.exports=function(){for(var f=0,p;f<16;f++)(f&3)===0&&(p=Math.random()*4294967296),u[f]=p>>>((f&3)<<3)&255;return u}}return rngBrowser.exports}var bytesToUuid_1,hasRequiredBytesToUuid;function requireBytesToUuid(){if(hasRequiredBytesToUuid)return bytesToUuid_1;hasRequiredBytesToUuid=1;for(var l=[],o=0;o<256;++o)l[o]=(o+256).toString(16).substr(1);function u(d,f){var p=f||0,h=l;return[h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],"-",h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]],h[d[p++]]].join("")}return bytesToUuid_1=u,bytesToUuid_1}var v1_1,hasRequiredV1;function requireV1(){if(hasRequiredV1)return v1_1;hasRequiredV1=1;var l=requireRngBrowser(),o=requireBytesToUuid(),u,d,f=0,p=0;function h(v,g,m){var y=g&&m||0,b=g||[];v=v||{};var w=v.node||u,E=v.clockseq!==void 0?v.clockseq:d;if(w==null||E==null){var P=l();w==null&&(w=u=[P[0]|1,P[1],P[2],P[3],P[4],P[5]]),E==null&&(E=d=(P[6]<<8|P[7])&16383)}var C=v.msecs!==void 0?v.msecs:new Date().getTime(),T=v.nsecs!==void 0?v.nsecs:p+1,O=C-f+(T-p)/1e4;if(O<0&&v.clockseq===void 0&&(E=E+1&16383),(O<0||C>f)&&v.nsecs===void 0&&(T=0),T>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=C,p=T,d=E,C+=122192928e5;var x=((C&268435455)*1e4+T)%4294967296;b[y++]=x>>>24&255,b[y++]=x>>>16&255,b[y++]=x>>>8&255,b[y++]=x&255;var A=C/4294967296*1e4&268435455;b[y++]=A>>>8&255,b[y++]=A&255,b[y++]=A>>>24&15|16,b[y++]=A>>>16&255,b[y++]=E>>>8|128,b[y++]=E&255;for(var D=0;D<6;++D)b[y+D]=w[D];return g||o(b)}return v1_1=h,v1_1}var v4_1,hasRequiredV4;function requireV4(){if(hasRequiredV4)return v4_1;hasRequiredV4=1;var l=requireRngBrowser(),o=requireBytesToUuid();function u(d,f,p){var h=f&&p||0;typeof d=="string"&&(f=d==="binary"?new Array(16):null,d=null),d=d||{};var v=d.random||(d.rng||l)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,f)for(var g=0;g<16;++g)f[h+g]=v[g];return f||o(v)}return v4_1=u,v4_1}var uuid_1,hasRequiredUuid;function requireUuid(){if(hasRequiredUuid)return uuid_1;hasRequiredUuid=1;var l=requireV1(),o=requireV4(),u=o;return u.v1=l,u.v4=o,uuid_1=u,uuid_1}var MosaicRoot={},Split={},_baseClamp,hasRequired_baseClamp;function require_baseClamp(){if(hasRequired_baseClamp)return _baseClamp;hasRequired_baseClamp=1;function l(o,u,d){return o===o&&(d!==void 0&&(o=o<=d?o:d),u!==void 0&&(o=o>=u?o:u)),o}return _baseClamp=l,_baseClamp}var clamp_1,hasRequiredClamp;function requireClamp(){if(hasRequiredClamp)return clamp_1;hasRequiredClamp=1;var l=require_baseClamp(),o=requireToNumber();function u(d,f,p){return p===void 0&&(p=f,f=void 0),p!==void 0&&(p=o(p),p=p===p?p:0),f!==void 0&&(f=o(f),f=f===f?f:0),l(o(d),f,p)}return clamp_1=u,clamp_1}var throttle_1,hasRequiredThrottle;function requireThrottle(){if(hasRequiredThrottle)return throttle_1;hasRequiredThrottle=1;var l=requireDebounce(),o=requireIsObject(),u="Expected a function";function d(f,p,h){var v=!0,g=!0;if(typeof f!="function")throw new TypeError(u);return o(h)&&(v="leading"in h?!!h.leading:v,g="trailing"in h?!!h.trailing:g),l(f,p,{leading:v,maxWait:p,trailing:g})}return throttle_1=d,throttle_1}var BoundingBox={},assertNever={},hasRequiredAssertNever;function requireAssertNever(){if(hasRequiredAssertNever)return assertNever;hasRequiredAssertNever=1,Object.defineProperty(assertNever,"__esMo
155dule",{value:!0}),assertNever.assertNever=void 0;function l(o){throw new Error("Unhandled case: "+JSON.stringify(o))}return assertNever.assertNever=l,assertNever}var hasRequiredBoundingBox;function requireBoundingBox(){return hasRequiredBoundingBox||(hasRequiredBoundingBox=1,(function(l){var o=BoundingBox&&BoundingBox.__assign||function(){return o=Object.assign||function(d){for(var f,p=1,h=arguments.length;p<h;p++){f=arguments[p];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(d[v]=f[v])}return d},o.apply(this,arguments)};Object.defineProperty(l,"__esModule",{value:!0}),l.BoundingBox=void 0;var u=requireAssertNever();(function(d){function f(){return{top:0,right:0,bottom:0,left:0}}d.empty=f;function p(m,y,b){var w=h(m,y,b);return b==="column"?{first:o(o({},m),{bottom:100-w}),second:o(o({},m),{top:w})}:b==="row"?{first:o(o({},m),{right:100-w}),second:o(o({},m),{left:w})}:u.assertNever(b)}d.split=p;function h(m,y,b){var w=m.top,E=m.right,P=m.bottom,C=m.left;if(b==="column"){var T=100-w-P;return T*y/100+w}else if(b==="row"){var O=100-E-C;return O*y/100+C}else return u.assertNever(b)}d.getAbsoluteSplitPercentage=h;function v(m,y,b){var w=m.top,E=m.right,P=m.bottom,C=m.left;if(b==="column"){var T=100-w-P;return(y-w)/T*100}else if(b==="row"){var O=100-E-C;return(y-C)/O*100}else return u.assertNever(b)}d.getRelativeSplitPercentage=v;function g(m){var y=m.top,b=m.right,w=m.bottom,E=m.left;return{top:y+"%",right:b+"%",bottom:w+"%",left:E+"%"}}d.asStyles=g})(l.BoundingBox||(l.BoundingBox={}))})(BoundingBox)),BoundingBox}var hasRequiredSplit;function requireSplit(){if(hasRequiredSplit)return Split;hasRequiredSplit=1;var l=Split&&Split.__extends||(function(){var w=function(E,P){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,T){C.__proto__=T}||function(C,T){for(var O in T)T.hasOwnProperty(O)&&(C[O]=T[O])},w(E,P)};return function(E,P){w(E,P);function C(){this.constructor=E}E.prototype=P===null?Object.create(P):(C.prototype=P.prototype,new C)}})(),o=Split&&Split.__assign||function(){return o=Object.assign||function(w){for(var E,P=1,C=arguments.length;P<C;P++){E=arguments[P];for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(w[T]=E[T])}return w},o.apply(this,arguments)},u=Split&&Split.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(Split,"__esModule",{value:!0}),Split.Split=void 0;var d=u(requireClassnames()),f=u(requireClamp()),p=u(requireThrottle()),h=u(requireReact()),v=requireBoundingBox(),g=1e3/30,m={capture:!0,passive:!1},y=(function(w){l(E,w);function E(){var P=w!==null&&w.apply(this,arguments)||this;return P.rootElement=h.default.createRef(),P.listenersBound=!1,P.onMouseDown=function(C){!b(C)&&C.button!==0||(C.preventDefault(),P.bindListeners())},P.onMouseUp=function(C){P.unbindListeners();var T=P.calculateRelativePercentage(C);P.props.onRelease(T)},P.onMouseMove=function(C){C.preventDefault(),C.stopPropagation(),P.throttledUpdatePercentage(C)},P.throttledUpdatePercentage=p.default(function(C){var T=P.calculateRelativePercentage(C);T!==P.props.splitPercentage&&P.props.onChange(T)},g),P}return E.prototype.render=function(){var P=this.props.direction;return h.default.createElement("div",{className:d.default("mosaic-split",{"-row":P==="row","-column":P==="column"}),ref:this.rootElement,onMouseDown:this.onMouseDown,style:this.computeStyle()},h.default.createElement("div",{className:"mosaic-split-line"}))},E.prototype.componentDidMount=function(){this.rootElement.current.addEventListener("touchstart",this.onMouseDown,m)},E.prototype.componentWillUnmount=function(){this.unbindListeners(),this.rootElement.current&&this.rootElement.current.ownerDocument.removeEventListener("touchstart",this.onMouseDown,m)},E.prototype.bindListeners=function(){this.listenersBound||(this.rootElement.current.ownerDocument.addEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.addEventListener("touchmove",this.onMouseMove,m),this.rootElement.current.ownerDocument.addEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.addEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!0)},E.prototype.unbindListeners=function(){this.rootElement.current&&(this.rootElement.current.ownerDocument.removeEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.removeEventListener("touchmove",this.onMouseMove,m),this.rootElement.current.ownerDocument.removeEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.removeEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!1)},E.prototype.computeStyle=function(){var P,C=this.props,T=C.boundingBox,O=C.direction,x=C.splitPercentage,A=O==="column"?"top":"left",D=v.BoundingBox.getAbsoluteSplitPercentage(T,x,O);return o(o({},v.BoundingBox.asStyles(T)),(P={},P[A]=D+"%",P))},E.prototype.calculateRelativePercentage=function(P){var C=this.props,T=C.minimumPaneSizePercentage,O=C.direction,x=C.boundingBox,A=this.rootElement.current.parentElement.getBoundingClientRect(),D=b(P)?P.changedTouches[0]:P,j;O==="column"?j=(D.clientY-A.top)/A.height*100:j=(D.clientX-A.left)/A.width*100;var M=v.BoundingBox.getRelativeSplitPercentage(x,j,O);return f.default(M,T,100-T)}
155,E.defaultProps={onChange:function(){},onRelease:function(){},minimumPaneSizePercentage:20},E})(h.default.PureComponent);Split.Split=y;function b(w){return w.changedTouches!=null}return Split}var mosaicUtilities={},hasRequiredMosaicUtilities;function requireMosaicUtilities(){return hasRequiredMosaicUtilities||(hasRequiredMosaicUtilities=1,(function(l){var o=mosaicUtilities&&mosaicUtilities.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(l,"__esModule",{value:!0}),l.getAndAssertNodeAtPathExists=l.getNodeAtPath=l.getLeaves=l.getPathToCorner=l.getOtherDirection=l.getOtherBranch=l.createBalancedTreeFromLeaves=l.isParent=l.Corner=void 0;var u=o(requireClone()),d=o(requireGet());function f(P,C){if(C===void 0&&(C="row"),h(P)){var T=m(C);return{direction:C,first:f(P.first,T),second:f(P.second,T)}}else return P}var p;(function(P){P[P.TOP_LEFT=1]="TOP_LEFT",P[P.TOP_RIGHT=2]="TOP_RIGHT",P[P.BOTTOM_LEFT=3]="BOTTOM_LEFT",P[P.BOTTOM_RIGHT=4]="BOTTOM_RIGHT"})(p=l.Corner||(l.Corner={}));function h(P){return P.direction!=null}l.isParent=h;function v(P,C){if(C===void 0&&(C="row"),P.length===0)return null;for(var T=u.default(P),O=[];T.length>1;){for(;T.length>0;)T.length>1?O.push({direction:"row",first:T.shift(),second:T.shift()}):O.unshift(T.shift());T=O,O=[]}return f(T[0],C)}l.createBalancedTreeFromLeaves=v;function g(P){if(P==="first")return"second";if(P==="second")return"first";throw new Error("Branch '"+P+"' not a valid branch")}l.getOtherBranch=g;function m(P){return P==="row"?"column":"row"}l.getOtherDirection=m;function y(P,C){for(var T=P,O=[];h(T);)T.direction==="row"&&(C===p.TOP_LEFT||C===p.BOTTOM_LEFT)||T.direction==="column"&&(C===p.TOP_LEFT||C===p.TOP_RIGHT)?(O.push("first"),T=T.first):(O.push("second"),T=T.second);return O}l.getPathToCorner=y;function b(P){return P==null?[]:h(P)?b(P.first).concat(b(P.second)):[P]}l.getLeaves=b;function w(P,C){return C.length>0?d.default(P,C,null):P}l.getNodeAtPath=w;function E(P,C){if(P==null)throw new Error("Root is empty, cannot fetch path");var T=w(P,C);if(T==null)throw new Error("Path ["+C.join(", ")+"] did not resolve to a node");return T}l.getAndAssertNodeAtPathExists=E})(mosaicUtilities)),mosaicUtilities}var hasRequiredMosaicRoot;function requireMosaicRoot(){if(hasRequiredMosaicRoot)return MosaicRoot;hasRequiredMosaicRoot=1;var l=MosaicRoot&&MosaicRoot.__extends||(function(){var b=function(w,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,C){P.__proto__=C}||function(P,C){for(var T in C)C.hasOwnProperty(T)&&(P[T]=C[T])},b(w,E)};return function(w,E){b(w,E);function P(){this.constructor=w}w.prototype=E===null?Object.create(E):(P.prototype=E.prototype,new P)}})(),o=MosaicRoot&&MosaicRoot.__assign||function(){return o=Object.assign||function(b){for(var w,E=1,P=arguments.length;E<P;E++){w=arguments[E];for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(b[C]=w[C])}return b},o.apply(this,arguments)},u=MosaicRoot&&MosaicRoot.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(MosaicRoot,"__esModule",{value:!0}),MosaicRoot.MosaicRoot=void 0;var d=u(requireFlatten()),f=u(requireReact()),p=requireContextTypes(),h=requireSplit(),v=requireBoundingBox(),g=requireMosaicUtilities(),m=(function(b){l(w,b);function w(){var E=b!==null&&b.apply(this,arguments)||this;return E.onResize=function(P,C,T){E.context.mosaicActions.updateTree([{path:C,spec:{splitPercentage:{$set:P}}}],T)},E}return w.prototype.render=function(){var E=this.props.root;return f.default.createElement("div",{className:"mosaic-root"},this.renderRecursively(E,v.BoundingBox.empty(),[]))},w.prototype.renderRecursively=function(E,P,C){if(g.isParent(E)){var T=E.splitPercentage==null?50:E.splitPercentage,O=v.BoundingBox.split(P,T,E.direction),x=O.first,A=O.second;return d.default([this.renderRecursively(E.first,x,C.concat("first")),this.renderSplit(E.direction,P,T,C),this.renderRecursively(E.second,A,C.concat("second"))].filter(y))}else return f.default.createElement("div",{key:E,className:"mosaic-tile",style:o({},v.BoundingBox.asStyles(P))},this.props.renderTile(E,C))},w.prototype.renderSplit=function(E,P,C,T){var O=this,x=this.props.resize;return x!=="DISABLED"?f.default.createElement(h.Split,o({key:T.join(",")+"splitter"},x,{boundingBox:P,splitPercentage:C,direction:E,onChange:function(A){return O.onResize(A,T,!0)},onRelease:function(A){return O.onResize(A,T,!1)}})):null}
155,w.contextType=p.MosaicContext,w})(f.default.PureComponent);MosaicRoot.MosaicRoot=m;function y(b){return b!==null}return MosaicRoot}var MosaicZeroState={},OptionalBlueprint={},hasRequiredOptionalBlueprint;function requireOptionalBlueprint(){return hasRequiredOptionalBlueprint||(hasRequiredOptionalBlueprint=1,(function(l){var o=OptionalBlueprint&&OptionalBlueprint.__createBinding||(Object.create?(function(p,h,v,g){g===void 0&&(g=v),Object.defineProperty(p,g,{enumerable:!0,get:function(){return h[v]}})}):(function(p,h,v,g){g===void 0&&(g=v),p[g]=h[v]})),u=OptionalBlueprint&&OptionalBlueprint.__setModuleDefault||(Object.create?(function(p,h){Object.defineProperty(p,"default",{enumerable:!0,value:h})}):function(p,h){p.default=h}),d=OptionalBlueprint&&OptionalBlueprint.__importStar||function(p){if(p&&p.__esModule)return p;var h={};if(p!=null)for(var v in p)Object.hasOwnProperty.call(p,v)&&o(h,p,v);return u(h,p),h};Object.defineProperty(l,"__esModule",{value:!0}),l.OptionalBlueprint=void 0;var f=d(requireReact());(function(p){var h,v,g;try{throw"nope"}catch{p.Icon=function(w){var E=w.icon;return f.createElement("span",null,E)}}function m(){for(var b=[],w=0;w<arguments.length;w++)b[w]=arguments[w];return v?b.map(function(E){return v[E]}).join(" "):""}p.getClasses=m;function y(b){return v&&g?v.iconClass(g[b]):""}p.getIconClass=y})(l.OptionalBlueprint||(l.OptionalBlueprint={}))})(OptionalBlueprint)),OptionalBlueprint}var hasRequiredMosaicZeroState;function requireMosaicZeroState(){if(hasRequiredMosaicZeroState)return MosaicZeroState;hasRequiredMosaicZeroState=1;var l=MosaicZeroState&&MosaicZeroState.__extends||(function(){var g=function(m,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var E in w)w.hasOwnProperty(E)&&(b[E]=w[E])},g(m,y)};return function(m,y){g(m,y);function b(){this.constructor=m}m.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}})(),o=MosaicZeroState&&MosaicZeroState.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(MosaicZeroState,"__esModule",{value:!0}),MosaicZeroState.MosaicZeroState=void 0;var u=o(requireClassnames()),d=o(requireNoop()),f=o(requireReact()),p=requireContextTypes(),h=requireOptionalBlueprint(),v=(function(g){l(m,g);function m(){var y=g!==null&&g.apply(this,arguments)||this;return y.replace=function(){return Promise.resolve(y.props.createNode()).then(function(b){return y.context.mosaicActions.replaceWith([],b)}).catch(d.default)},y}return m.prototype.render=function(){return f.default.createElement("div",{className:u.default("mosaic-zero-state",h.OptionalBlueprint.getClasses("NON_IDEAL_STATE"))},f.default.createElement("div",{className:h.OptionalBlueprint.getClasses("NON_IDEAL_STATE_VISUAL")},f.default.createElement(h.OptionalBlueprint.Icon,{iconSize:120,icon:"applications"})),f.default.createElement("h4",{className:h.OptionalBlueprint.getClasses("HEADING")},"No Windows Present"),f.default.createElement("div",null,this.props.createNode&&f.default.createElement("button",{className:u.default(h.OptionalBlueprint.getClasses("BUTTON"),h.OptionalBlueprint.getIconClass("ADD")),onClick:this.replace},"Add New Window")))},m.contextType=p.MosaicContext,m})(f.default.PureComponent);return MosaicZeroState.MosaicZeroState=v,MosaicZeroState}var RootDropTargets={},internalTypes={},hasRequiredInternalTypes;function requireInternalTypes(){return hasRequiredInternalTypes||(hasRequiredInternalTypes=1,Object.defineProperty(internalTypes,"__esModule",{value:!0}),internalTypes.MosaicDropTargetPosition=void 0,internalTypes.MosaicDropTargetPosition={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"}),internalTypes}var MosaicDropTarget={},types={},hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,Object.defineProperty(types,"__esModule",{value:!0}),types.MosaicDragType=void 0,types.MosaicDragType={WINDOW:"MosaicWindow"}),types}var hasRequiredMosaicDropTarget;function requireMosaicDropTarget(){if(hasRequiredMosaicDropTarget)return MosaicDropTarget;hasRequiredMosaicDropTarget=1;var l=MosaicDropTarget&&MosaicDropTarget.__extends||(function(){var m=function(y,b){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,E){w.__proto__=E}||function(w,E){for(var P in E)E.hasOwnProperty(P)&&(w[P]=E[P])},m(y,b)};return function(y,b){m(y,b);function w(){this.constructor=y}
155y.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}})(),o=MosaicDropTarget&&MosaicDropTarget.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(MosaicDropTarget,"__esModule",{value:!0}),MosaicDropTarget.MosaicDropTarget=void 0;var u=o(requireClassnames()),d=o(requireReact()),f=require$$7,p=requireContextTypes(),h=requireTypes(),v={drop:function(m,y,b){return b.context.mosaicId===(y.getItem()||{}).mosaicId?{path:m.path,position:m.position}:{}}},g=(function(m){l(y,m);function y(){return m!==null&&m.apply(this,arguments)||this}return y.prototype.render=function(){var b=this.props,w=b.position,E=b.isOver,P=b.connectDropTarget,C=b.draggedMosaicId;return P(d.default.createElement("div",{className:u.default("drop-target",w,{"drop-target-hover":E&&C===this.context.mosaicId})}))},y.contextType=p.MosaicContext,y})(d.default.PureComponent);return MosaicDropTarget.MosaicDropTarget=f.DropTarget(h.MosaicDragType.WINDOW,v,function(m,y){return{connectDropTarget:m.dropTarget(),isOver:y.isOver(),draggedMosaicId:(y.getItem()||{}).mosaicId}})(g),MosaicDropTarget}var hasRequiredRootDropTargets;function requireRootDropTargets(){if(hasRequiredRootDropTargets)return RootDropTargets;hasRequiredRootDropTargets=1;var l=RootDropTargets&&RootDropTargets.__extends||(function(){var b=function(w,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,C){P.__proto__=C}||function(P,C){for(var T in C)C.hasOwnProperty(T)&&(P[T]=C[T])},b(w,E)};return function(w,E){b(w,E);function P(){this.constructor=w}w.prototype=E===null?Object.create(E):(P.prototype=E.prototype,new P)}})(),o=RootDropTargets&&RootDropTargets.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(RootDropTargets,"__esModule",{value:!0}),RootDropTargets.RootDropTargets=void 0;var u=o(requireClassnames()),d=o(requireValues()),f=o(requireReact()),p=require$$7,h=requireInternalTypes(),v=requireMosaicDropTarget(),g=requireTypes(),m=(function(b){l(w,b);function w(){return b!==null&&b.apply(this,arguments)||this}return w.prototype.render=function(){return f.default.createElement("div",{className:u.default("drop-target-container",{"-dragging":this.props.isDragging})},d.default(h.MosaicDropTargetPosition).map(function(E){return f.default.createElement(v.MosaicDropTarget,{position:E,path:[],key:E})}))},w})(f.default.PureComponent),y={};return RootDropTargets.RootDropTargets=p.DropTarget(g.MosaicDragType.WINDOW,y,function(b,w){return{isDragging:w.getItem()!==null&&w.getItemType()===g.MosaicDragType.WINDOW}})(m),RootDropTargets}var mosaicUpdates={},immutabilityHelper={exports:{}},hasRequiredImmutabilityHelper;function requireImmutabilityHelper(){return hasRequiredImmutabilityHelper||(hasRequiredImmutabilityHelper=1,(function(l,o){Object.defineProperty(o,"__esModule",{value:!0});function u(N){return typeof N=="object"&&!("toString"in N)?Object.prototype.toString.call(N).slice(8,-1):N}var d=typeof process=="object"&&!0;function f(N,q){if(!N)throw d?new Error("Invariant failed"):new Error(q())}o.invariant=f;var p=Object.prototype.hasOwnProperty,h=Array.prototype.splice,v=Object.prototype.toString;function g(N){return v.call(N).slice(8,-1)}var m=Object.assign||(function(N,q){return y(q).forEach(function(z){p.call(q,z)&&(N[z]=q[z])}),N}),y=typeof Object.getOwnPropertySymbols=="function"?function(N){return Object.keys(N).concat(Object.getOwnPropertySymbols(N))}:function(N){return Object.keys(N)};function b(N){return Array.isArray(N)?m(N.constructor(N.length),N):g(N)==="Map"?new Map(N):g(N)==="Set"?new Set(N):N&&typeof N=="object"?m(Object.create(Object.getPrototypeOf(N)),N):N}var w=(function(){function N(){this.commands=m({},E),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(q,z){return q===z},this.update.newContext=function(){return new N().update}}return Object.defineProperty(N.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(q){this.update.isEquals=q},enumerable:!0,configurable:!0}),N.prototype.extend=function(q,z){this.commands[q]=z},N.prototype.update=function(q,z){var H=this,U=typeof z=="function"?{$apply:z}:z;Array.isArray(q)&&Array.isArray(U)||f(!Array.isArray(U),function(){return"update(): You provided an invali
155d 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."}),f(typeof U=="object"&&U!==null,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(H.commands).join(", ")+".")});var F=q;return y(U).forEach(function(B){if(p.call(H.commands,B)){var G=q===F;F=H.commands[B](U[B],F,U,q),G&&H.isEquals(F,q)&&(F=q)}else{var Q=g(q)==="Map"?H.update(q.get(B),U[B]):H.update(q[B],U[B]),K=g(F)==="Map"?F.get(B):F[B];(!H.isEquals(Q,K)||typeof Q>"u"&&!p.call(q,B))&&(F===q&&(F=b(q)),g(F)==="Map"?F.set(B,Q):F[B]=Q)}}),F},N})();o.Context=w;var E={$push:function(N,q,z){return C(q,z,"$push"),N.length?q.concat(N):q},$unshift:function(N,q,z){return C(q,z,"$unshift"),N.length?N.concat(q):q},$splice:function(N,q,z,H){return O(q,z),N.forEach(function(U){x(U),q===H&&U.length&&(q=b(H)),h.apply(q,U)}),q},$set:function(N,q,z){return D(z),N},$toggle:function(N,q){T(N,"$toggle");var z=N.length?b(q):q;return N.forEach(function(H){z[H]=!q[H]}),z},$unset:function(N,q,z,H){return T(N,"$unset"),N.forEach(function(U){Object.hasOwnProperty.call(q,U)&&(q===H&&(q=b(H)),delete q[U])}),q},$add:function(N,q,z,H){return M(q,"$add"),T(N,"$add"),g(q)==="Map"?N.forEach(function(U){var F=U[0],B=U[1];q===H&&q.get(F)!==B&&(q=b(H)),q.set(F,B)}):N.forEach(function(U){q===H&&!q.has(U)&&(q=b(H)),q.add(U)}),q},$remove:function(N,q,z,H){return M(q,"$remove"),T(N,"$remove"),N.forEac
155h(function(U){q===H&&q.has(U)&&(q=b(H)),q.delete(U)}),q},$merge:function(N,q,z,H){return j(q,N),y(N).forEach(function(U){N[U]!==q[U]&&(q===H&&(q=b(H)),q[U]=N[U])}),q},$apply:function(N,q){return A(N),N(q)}},P=new w;o.isEquals=P.update.isEquals,o.extend=P.extend,o.default=P.update,o.default.default=l.exports=m(o.default,o);function C(N,q,z){f(Array.isArray(N),function(){return"update(): expected target of "+u(z)+" to be an array; got "+u(N)+"."}),T(q[z],z)}function T(N,q){f(Array.isArray(N),function(){return"update(): expected spec of "+u(q)+" to be an array; got "+u(N)+". Did you forget to wrap your parameter in an array?"})}function O(N,q){f(Array.isArray(N),function(){return"Expected $splice target to be an array; got "+u(N)}),x(q.$splice)}function x(N){f(Array.isArray(N),function(){return"update(): expected spec of $splice to be an array of arrays; got "+u(N)+". Did you forget to wrap your parameters in an array?"})}function A(N){f(typeof N=="function",function(){return"update(): expected spec of $apply to be a function; got "+u(N)+"."})}function D(N){f(Object.keys(N).length===1,function(){return"Cannot have more than one key in an object with $set"})}function j(N,q){f(q&&typeof q=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+u(q)}),f(N&&typeof N=="object",function(){return"update(): $merge expects a target of type 'object'; got "+u(N)})}function M(N,q){var z=g(N);f(z==="Map"||z==="Set",function(){return"update(): "+u(q)+" expects a target of type Set or Map; got "+u(z)})}})(immutabilityHelper,immutabilityHelper.exports)),immutabilityHelper.exports}var drop_1,hasRequiredDrop;function requireDrop(){if(hasRequiredDrop)return drop_1;hasRequiredDrop=1;var l=require_baseSlice(),o=requireToInteger();function u(d,f,p){var h=d==null?0:d.length;return h?(f=p||f===void 0?1:o(f),l(d,f<0?0:f,h)):[]}return drop_1=u,drop_1}var dropRight_1,hasRequiredDropRight;function requireDropRight(){if(hasRequiredDropRight)return dropRight_1;hasRequiredDropRight=1;var l=require_baseSlice(),o=requireToInteger();function u(d,f,p){var h=d==null?0:d.length;return h?(f=p||f===void 0?1:o(f),f=h-f,l(d,0,f<0?0:f)):[]}return dropRight_1=u,dropRight_1}var take_1,hasRequiredTake;function requireTake(){if(hasRequiredTake)return take_1;hasRequiredTake=1;var l=require_baseSlice(),o=requireToInteger();function u(d,f,p){return d&&d.length?(f=p||f===void 0?1:o(f),l(d,0,f<0?0:f)):[]}return take_1=u,take_1}var hasRequiredMosaicUpdates;function requireMosaicUpdates(){if(hasRequiredMosaicUpdates)return mosaicUpdates;hasRequiredMosaicUpdates=1;var l=mosaicUpdates&&mosaicUpdates.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(mosaicUpdates,"__esModule",{value:!0}),mosaicUpdates.createExpandUpdate=mosaicUpdates.createHideUpdate=mosaicUpdates.createDragToUpdates=mosaicUpdates.createRemoveUpdate=mosaicUpdates.updateTree=mosaicUpdates.buildSpecFromUpdate=void 0;var o=l(requireImmutabilityHelper()),u=l(requireDrop()),d=l(requireDropRight()),f=l(requireIsEqual()),p=l(requireLast()),h=l(requireSet$1()),v=l(requireTake()),g=requireInternalTypes(),m=requireMosaicUtilities();function y(O){return O.path.length>0?h.default({},O.path,O.spec):O.spec}mosaicUpdates.buildSpecFromUpdate=y;function b(O,x){var A=O;return x.forEach(function(D){A=o.default(A,y(D))}),A}mosaicUpdates.updateTree=b;function w(O,x){var A=d.default(x),D=p.default(x),j=A.concat(m.getOtherBranch(D)),M=m.getAndAssertNodeAtPathExists(O,j);return{path:A,spec:{$set:M}}}mosaicUpdates.createRemoveUpdate=w;function E(O,x,A){return f.default(v.default(O,A),v.default(x,A))}function P(O,x,A,D){var j=m.getAndAssertNodeAtPathExists(O,A),M=[],N=E(x,A,A.length);if(N)j=b(j,[w(j,u.default(x,A.length))]);else{M.push(w(O,x));var q=E(x,A,x.length-1);q&&A.splice(x.length-1,1)}var z=m.getAndAssertNodeAtPathExists(O,x),H,U;D===g.MosaicDropTargetPosition.LEFT||D===g.MosaicDropTargetPosition.TOP?(H=z,U=j):(H=j,U=z);var F="column";return(D===g.MosaicDropTargetPosition.LEFT||D===g.MosaicDropTargetPosition.RIGHT)&&(F="row"),M.push({path:A,spec:{$set:{first:H,second:U,direction:F}}}),M}mosaicUpdates.createDragToUpdates=P;function C(O){var x=d.default(O),A=p.default(O),D;return A==="first"?D=0:D=100,{path:x,spec:{splitPercentage:{$set:D}}}}
155mosaicUpdates.createHideUpdate=C;function T(O,x){for(var A,D={},j=O.length-1;j>=0;j--){var M=O[j],N=M==="first"?x:100-x;D=(A={splitPercentage:{$set:N}},A[M]=D,A)}return{spec:D,path:[]}}return mosaicUpdates.createExpandUpdate=T,mosaicUpdates}var hasRequiredMosaic;function requireMosaic(){if(hasRequiredMosaic)return Mosaic;hasRequiredMosaic=1;var l=Mosaic&&Mosaic.__extends||(function(){var x=function(A,D){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,M){j.__proto__=M}||function(j,M){for(var N in M)M.hasOwnProperty(N)&&(j[N]=M[N])},x(A,D)};return function(A,D){x(A,D);function j(){this.constructor=A}A.prototype=D===null?Object.create(D):(j.prototype=D.prototype,new j)}})(),o=Mosaic&&Mosaic.__assign||function(){return o=Object.assign||function(x){for(var A,D=1,j=arguments.length;D<j;D++){A=arguments[D];for(var M in A)Object.prototype.hasOwnProperty.call(A,M)&&(x[M]=A[M])}return x},o.apply(this,arguments)},u=Mosaic&&Mosaic.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(Mosaic,"__esModule",{value:!0}),Mosaic.Mosaic=Mosaic.MosaicWithoutDragDropContext=void 0;var d=u(requireClassnames());u(requireCountBy()),u(requireKeys()),u(requirePickBy());var f=u(requireReact()),p=require$$7,h=u(require$$6),v=u(requireHTML5toTouch()),g=requireUuid(),m=requireContextTypes(),y=requireMosaicRoot(),b=requireMosaicZeroState(),w=requireRootDropTargets(),E=requireMosaicUpdates(),P=70;function C(x){return x.initialValue!=null}var T=(function(x){l(A,x);function A(){var D,j=x.apply(this,arguments)||this;return j.state={currentNode:null,lastInitialValue:null,mosaicId:(D=j.props.mosaicId)!==null&&D!==void 0?D:g.v4()},j.updateRoot=function(M,N){N===void 0&&(N=!1);var q=j.getRoot()||{};j.replaceRoot(E.updateTree(q,M),N)},j.replaceRoot=function(M,N){N===void 0&&(N=!1),j.props.onChange(M),!N&&j.props.onRelease&&j.props.onRelease(M),C(j.props)&&j.setState({currentNode:M})},j.actions={updateTree:j.updateRoot,remove:function(M){M.length===0?j.replaceRoot(null):j.updateRoot([E.createRemoveUpdate(j.getRoot(),M)])},expand:function(M,N){return N===void 0&&(N=P),j.updateRoot([E.createExpandUpdate(M,N)])},getRoot:function(){return j.getRoot()},hide:function(M){return j.updateRoot([E.createHideUpdate(M)])},replaceWith:function(M,N){return j.updateRoot([{path:M,spec:{$set:N}}])}},j.childContext={mosaicActions:j.actions,mosaicId:j.state.mosaicId},j}return A.getDerivedStateFromProps=function(D,j){return D.mosaicId&&(j.mosaicId,D.mosaicId),C(D)&&D.initialValue!==j.lastInitialValue?{lastInitialValue:D.initialValue,currentNode:D.initialValue}:null},A.prototype.render=function(){var D=this.props.className;return f.default.createElement(m.MosaicContext.Provider,{value:this.childContext},f.default.createElement("div",{className:d.default(D,"mosaic mosaic-drop-target")},this.renderTree(),f.default.createElement(w.RootDropTargets,null)))},A.prototype.getRoot=function(){return C(this.props)?this.state.currentNode:this.props.value},A.prototype.renderTree=function(){var D=this.getRoot();if(this.validateTree(D),D==null)return this.props.zeroStateView;var j=this.props,M=j.renderTile,N=j.resize;return f.default.createElement(y.MosaicRoot,{root:D,renderTile:M,resize:N})},A.prototype.validateTree=function(D){},A.defaultProps={onChange:function(){},zeroStateView:f.default.createElement(b.MosaicZeroState,null),className:"mosaic-blueprint-theme"},A})(f.default.PureComponent);Mosaic.MosaicWithoutDragDropContext=T;var O=(function(x){l(A,x);function A(){return x!==null&&x.apply(this,arguments)||this}return A.prototype.render=function(){return f.default.createElement(p.DndProvider,{backend:h.default,options:v.default},f.default.createElement(T,o({},this.props)))},A})(f.default.PureComponent);return Mosaic.Mosaic=O,Mosaic}var MosaicWindow={},_baseDelay,hasRequired_baseDelay;function require_baseDelay(){if(hasRequired_baseDelay)return _baseDelay;hasRequired_baseDelay=1;var l="Expected a function";function o(u,d,f){if(typeof u!="function")throw new TypeError(l);return setTimeout(function(){u.apply(void 0,f)},d)}return _baseDelay=o,_baseDelay}var defer_1,hasRequiredDefer;function requireDefer(){if(hasRequiredDefer)return defer_1;hasRequiredDefer=1;var l=require_baseDelay(),o=require_baseRest(),u=o(function(d,f){return l(d,1,f)});return defer_1=u,defer_1}var defaultToolbarControls={},ExpandButton={},MosaicButton={},hasRequiredMosaicButton;function requireMosaicButton(){if(hasRequiredMosaicButton)return MosaicButton;hasRequiredMosaicButton=1;var l=MosaicButton&&MosaicButton.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(MosaicButton,"__esModule",{value:!0}),MosaicButton.createDefaultToolbarButton=void 0;var o=l(requireClassnames()),u=l(requireReact()),d=requireOptionalBlueprint();function f(p,h,v,g){return u.default.createElement("button",{title:p,onClick:v,className:o.default("mosaic-default-control",d.OptionalBlueprint.getClasses("BUTTON","MINIMAL"),h)},g&&u.default.createElement("span",{className:"control-text"},g))}return MosaicButton.createDefaultToolbarButton=f,MosaicButton}var hasRequiredExpandButton;function requireExpandButton(){if(hasRequiredExpandButton)return ExpandButton;hasRequiredExpandButton=1;var l=ExpandButton&&ExpandButton.__extends||(function(){var g=function(m,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var E in w)w.hasOwnProperty(E)&&(b[E]=w[E])},g(m,y)};return function(m,y){g(m,y);function b(){this.constructor=m}
155m.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}})(),o=ExpandButton&&ExpandButton.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(ExpandButton,"__esModule",{value:!0}),ExpandButton.ExpandButton=void 0;var u=o(requireClassnames()),d=o(requireReact()),f=requireContextTypes(),p=requireOptionalBlueprint(),h=requireMosaicButton(),v=(function(g){l(m,g);function m(){return g!==null&&g.apply(this,arguments)||this}return m.prototype.render=function(){var y=this;return d.default.createElement(f.MosaicContext.Consumer,null,function(b){var w=b.mosaicActions;return h.createDefaultToolbarButton("Expand",u.default("expand-button",p.OptionalBlueprint.getIconClass("MAXIMIZE")),y.createExpand(w))})},m.prototype.createExpand=function(y){var b=this;return function(){y.expand(b.context.mosaicWindowActions.getPath()),b.props.onClick&&b.props.onClick()}},m.contextType=f.MosaicWindowContext,m})(d.default.PureComponent);return ExpandButton.ExpandButton=v,ExpandButton}var RemoveButton={},hasRequiredRemoveButton;function requireRemoveButton(){if(hasRequiredRemoveButton)return RemoveButton;hasRequiredRemoveButton=1;var l=RemoveButton&&RemoveButton.__extends||(function(){var g=function(m,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var E in w)w.hasOwnProperty(E)&&(b[E]=w[E])},g(m,y)};return function(m,y){g(m,y);function b(){this.constructor=m}m.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}})(),o=RemoveButton&&RemoveButton.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(RemoveButton,"__esModule",{value:!0}),RemoveButton.RemoveButton=void 0;var u=o(requireClassnames()),d=o(requireReact()),f=requireContextTypes(),p=requireOptionalBlueprint(),h=requireMosaicButton(),v=(function(g){l(m,g);function m(){return g!==null&&g.apply(this,arguments)||this}return m.prototype.render=function(){var y=this;return d.default.createElement(f.MosaicContext.Consumer,null,function(b){var w=b.mosaicActions;return h.createDefaultToolbarButton("Close Window",u.default("close-button",p.OptionalBlueprint.getIconClass("CROSS")),y.createRemove(w))})},m.prototype.createRemove=function(y){var b=this;return function(){y.remove(b.context.mosaicWindowActions.getPath()),b.props.onClick&&b.props.onClick()}},m.contextType=f.MosaicWindowContext,m})(d.default.PureComponent);return RemoveButton.RemoveButton=v,RemoveButton}var ReplaceButton={},hasRequiredReplaceButton;function requireReplaceButton(){if(hasRequiredReplaceButton)return ReplaceButton;hasRequiredReplaceButton=1;var l=ReplaceButton&&ReplaceButton.__extends||(function(){var m=function(y,b){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,E){w.__proto__=E}||function(w,E){for(var P in E)E.hasOwnProperty(P)&&(w[P]=E[P])},m(y,b)};return function(y,b){m(y,b);function w(){this.constructor=y}y.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}})(),o=ReplaceButton&&ReplaceButton.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(ReplaceButton,"__esModule",{value:!0}),ReplaceButton.ReplaceButton=void 0;var u=o(requireClassnames()),d=o(requireNoop()),f=o(requireReact()),p=requireContextTypes(),h=requireOptionalBlueprint(),v=requireMosaicButton(),g=(function(m){l(y,m);function y(){var b=m!==null&&m.apply(this,arguments)||this;return b.replace=function(){b.context.mosaicWindowActions.replaceWithNew().then(function(){b.props.onClick&&b.props.onClick()}).catch(d.default)},b}return y.prototype.render=function(){return v.createDefaultToolbarButton("Replace Window",u.default("replace-button",h.OptionalBlueprint.getIconClass("EXCHANGE")),this.replace)},y.contextType=p.MosaicWindowContext,y})(f.default.PureComponent);return ReplaceButton.ReplaceButton=g,ReplaceButton}var SplitButton={},hasRequiredSplitButton;function requireSplitButton(){if(hasRequiredSplitButton)return SplitButton;hasRequiredSplitButton=1;var l=SplitButton&&SplitButton.__extends||(function(){var m=function(y,b){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,E){w.__proto__=E}||function(w,E){for(var P in E)E.hasOwnProperty(P)&&(w[P]=E[P])},m(y,b)};return function(y,b){m(y,b);function w(){this.constructor=y}
155y.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}})(),o=SplitButton&&SplitButton.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(SplitButton,"__esModule",{value:!0}),SplitButton.SplitButton=void 0;var u=o(requireClassnames()),d=o(requireNoop()),f=o(requireReact()),p=requireContextTypes(),h=requireOptionalBlueprint(),v=requireMosaicButton(),g=(function(m){l(y,m);function y(){var b=m!==null&&m.apply(this,arguments)||this;return b.split=function(){b.context.mosaicWindowActions.split().then(function(){b.props.onClick&&b.props.onClick()}).catch(d.default)},b}return y.prototype.render=function(){return v.createDefaultToolbarButton("Split Window",u.default("split-button",h.OptionalBlueprint.getIconClass("ADD_COLUMN_RIGHT")),this.split)},y.contextType=p.MosaicWindowContext,y})(f.default.PureComponent);return SplitButton.SplitButton=g,SplitButton}var hasRequiredDefaultToolbarControls;function requireDefaultToolbarControls(){if(hasRequiredDefaultToolbarControls)return defaultToolbarControls;hasRequiredDefaultToolbarControls=1;var l=defaultToolbarControls&&defaultToolbarControls.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(defaultToolbarControls,"__esModule",{value:!0}),defaultToolbarControls.DEFAULT_CONTROLS_WITHOUT_CREATION=defaultToolbarControls.DEFAULT_CONTROLS_WITH_CREATION=void 0;var o=l(requireReact()),u=requireExpandButton(),d=requireRemoveButton(),f=requireReplaceButton(),p=requireSplitButton();return defaultToolbarControls.DEFAULT_CONTROLS_WITH_CREATION=o.default.Children.toArray([o.default.createElement(f.ReplaceButton,null),o.default.createElement(p.SplitButton,null),o.default.createElement(u.ExpandButton,null),o.default.createElement(d.RemoveButton,null)]),defaultToolbarControls.DEFAULT_CONTROLS_WITHOUT_CREATION=o.default.Children.toArray([o.default.createElement(u.ExpandButton,null),o.default.createElement(d.RemoveButton,null)]),defaultToolbarControls}var Separator={},hasRequiredSeparator;function requireSeparator(){if(hasRequiredSeparator)return Separator;hasRequiredSeparator=1;var l=Separator&&Separator.__extends||(function(){var f=function(p,h){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var m in g)g.hasOwnProperty(m)&&(v[m]=g[m])},f(p,h)};return function(p,h){f(p,h);function v(){this.constructor=p}p.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})(),o=Separator&&Separator.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Separator,"__esModule",{value:!0}),Separator.Separator=void 0;var u=o(requireReact()),d=(function(f){l(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.prototype.render=function(){return u.default.createElement("div",{className:"separator"})},p})(u.default.PureComponent);return Separator.Separator=d,Separator}var hasRequiredMosaicWindow;function requireMosaicWindow(){return hasRequiredMosaicWindow||(hasRequiredMosaicWindow=1,(function(l){var o=MosaicWindow&&MosaicWindow.__extends||(function(){var z=function(H,U){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,B){F.__proto__=B}||function(F,B){for(var G in B)B.hasOwnProperty(G)&&(F[G]=B[G])},z(H,U)};return function(H,U){z(H,U);function F(){this.constructor=H}H.prototype=U===null?Object.create(U):(F.prototype=U.prototype,new F)}})(),u=MosaicWindow&&MosaicWindow.__assign||function(){return u=Object.assign||function(z){for(var H,U=1,F=arguments.length;U<F;U++){H=arguments[U];for(var B in H)Object.prototype.hasOwnProperty.call(H,B)&&(z[B]=H[B])}return z},u.apply(this,arguments)},d=MosaicWindow&&MosaicWindow.__importDefault||function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(l,"__esModule",{value:!0}),l.MosaicWindow=l.SourceDropConnectedInternalMosaicWindow=l.SourceConnectedInternalMosaicWindow=l.InternalMosaicWindow=void 0;var f=d(requireClassnames()),p=d(requireDefer()),h=d(requireDropRight()),v=d(requireIsEmpty()),g=d(requireIsEqual()),m=d(requireValues()),y=d(requireReact()),b=require$$7,w=requireDefaultToolbarControls(),E=requireSeparator(),P=requireContextTypes(),C=requireInternalTypes(),T=requireMosaicDropTarget(),O=requireTypes(),x=requireMosaicUpdates(),A=requireMosaicUtilities(),D=requireOptionalBlueprint(),j=(function(z){o(H,z);function H(){var U=z!==null&&z.apply(this,arguments)||this;return U.state={additionalControlsOpen:!1},U.rootElement=null,U.renderDropTarget=function(F){var B=U.props.path;return y.default.createElement(T.MosaicDropTarget,{position:F,path:B,key:
155F})},U.split=function(){for(var F=[],B=0;B<arguments.length;B++)F[B]=arguments[B];U.checkCreateNode();var G=U.props,Q=G.createNode,K=G.path,Z=U.context.mosaicActions,te=Z.getRoot(),oe=U.rootElement.offsetWidth>U.rootElement.offsetHeight?"row":"column";return Promise.resolve(Q.apply(void 0,F)).then(function(fe){return Z.replaceWith(K,{direction:oe,second:fe,first:A.getAndAssertNodeAtPathExists(te,K)})})},U.swap=function(){for(var F=[],B=0;B<arguments.length;B++)F[B]=arguments[B];U.checkCreateNode();var G=U.context.mosaicActions,Q=U.props,K=Q.createNode,Z=Q.path;return Promise.resolve(K.apply(void 0,F)).then(function(te){return G.replaceWith(Z,te)})},U.setAdditionalControlsOpen=function(F){U.setState({additionalControlsOpen:F})},U.getPath=function(){return U.props.path},U.connectDragSource=function(F){var B=U.props.connectDragSource;return B(F)},U.childContext={mosaicWindowActions:{split:U.split,replaceWithNew:U.swap,setAdditionalControlsOpen:U.setAdditionalControlsOpen,getPath:U.getPath,connectDragSource:U.connectDragSource}},U}return H.prototype.render=function(){var U=this,F=this.props,B=F.className,G=F.isOver,Q=F.renderPreview,K=F.additionalControls,Z=F.connectDropTarget,te=F.connectDragPreview,oe=F.draggedMosaicId;return y.default.createElement(P.MosaicWindowContext.Provider,{value:this.childContext},Z(y.default.createElement("div",{className:f.default("mosaic-window mosaic-drop-target",B,{"drop-target-hover":G&&oe===this.context.mosaicId,"additional-controls-open":this.state.additionalControlsOpen}),ref:function(fe){return U.rootElement=fe}},this.renderToolbar(),y.default.createElement("div",{className:"mosaic-window-body"},this.props.children),y.default.createElement("div",{className:"mosaic-window-body-overlay",onClick:function(){return U.setAdditionalControlsOpen(!1)}}),y.default.createElement("div",{className:"mosaic-window-additional-actions-bar"},K),te(Q(this.props)),y.default.createElement("div",{className:"drop-target-container"},m.default(C.MosaicDropTargetPosition).map(this.renderDropTarget)))))},H.prototype.getToolbarControls=function(){var U=this.props,F=U.toolbarControls,B=U.createNode;return F||(B?w.DEFAULT_CONTROLS_WITH_CREATION:w.DEFAULT_CONTROLS_WITHOUT_CREATION)},H.prototype.renderToolbar=function(){var U,F=this,B=this.props,G=B.title,Q=B.draggable,K=B.additionalControls,Z=B.additionalControlButtonText,te=B.path,oe=B.renderToolbar,fe=this.state.additionalControlsOpen,le=this.getToolbarControls(),Re=Q&&te.length>0,Ae=Re?this.props.connectDragSource:function($e){return $e};if(oe){var _e=Ae(oe(this.props,Q));return y.default.createElement("div",{className:f.default("mosaic-window-toolbar",{draggable:Re})},_e)}var ee=Ae(y.default.createElement("div",{title:G,className:"mosaic-window-title"},G)),se=!v.default(K);return y.default.createElement("div",{className:f.default("mosaic-window-toolbar",{draggable:Re})},ee,y.default.createElement("div",{className:f.default("mosaic-window-controls",D.OptionalBlueprint.getClasses("BUTTON_GROUP"))},se&&y.default.createElement("button",{onClick:function(){return F.setAdditionalControlsOpen(!fe)},className:f.default(D.OptionalBlueprint.getClasses("BUTTON","MINIMAL"),D.OptionalBlueprint.getIconClass("MORE"),(U={},U[D.OptionalBlueprint.getClasses("ACTIVE")]=fe,U))},y.default.createElement("span",{className:"control-text"},Z)),se&&y.default.createElement(E.Separator,null),le))},H.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invali
155d unless `createNode` is defined")},H.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(U){var F=U.title;return y.default.createElement("div",{className:"mosaic-preview"},y.default.createElement("div",{className:"mosaic-window-toolbar"},y.default.createElement("div",{className:"mosaic-window-title"},F)),y.default.createElement("div",{className:"mosaic-window-body"},y.default.createElement("h4",null,F),y.default.createElement(D.OptionalBlueprint.Icon,{iconSize:72,icon:"application"})))},renderToolbar:null},H.contextType=P.MosaicContext,H})(y.default.Component);l.InternalMosaicWindow=j;var M={beginDrag:function(z,H,U){z.onDragStart&&z.onDragStart();var F=p.default(function(){return U.context.mosaicActions.hide(U.props.path)});return{mosaicId:U.context.mosaicId,hideTimer:F}},endDrag:function(z,H,U){var F=H.getItem().hideTimer;window.clearTimeout(F);var B=U.props.path,G=H.getDropResult()||{},Q=U.context.mosaicActions,K=G.position,Z=G.path;K!=null&&Z!=null&&!g.default(Z,B)?(Q.updateTree(x.createDragToUpdates(Q.getRoot(),B,Z,K)),z.onDragEnd&&z.onDragEnd("drop")):(Q.updateTree([{path:h.default(B),spec:{splitPercentage:{$set:null}}}]),z.onDragEnd&&z.onDragEnd("reset"))}},N={};l.SourceConnectedInternalMosaicWindow=b.DragSource(O.MosaicDragType.WINDOW,M,function(z,H){return{connectDragSource:z.dragSource(),connectDragPreview:z.dragPreview()}})(j),l.SourceDropConnectedInternalMosaicWindow=b.DropTarget(O.MosaicDragType.WINDOW,N,function(z,H){return{connectDropTarget:z.dropTarget(),isOver:H.isOver(),draggedMosaicId:(H.getItem()||{}).mosaicId}})(l.SourceConnectedInternalMosaicWindow);var q=(function(z){o(H,z);function H(){return z!==null&&z.apply(this,arguments)||this}return H.prototype.render=function(){return y.default.createElement(l.SourceDropConnectedInternalMosaicWindow,u({},this.props))},H})(y.default.PureComponent);l.MosaicWindow=q})(MosaicWindow)),MosaicWindow}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0});var o=requireMosaic();Object.defineProperty(l,"Mosaic",{enumerable:!0,get:function(){return o.Mosaic}}),Object.defineProperty(l,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return o.MosaicWithoutDragDropContext}});var u=requireTypes();Object.defineProperty(l,"MosaicDragType",{enumerable:!0,get:function(){return u.MosaicDragType}});var d=requireContextTypes();Object.defineProperty(l,"MosaicContext",{enumerable:!0,get:function(){return d.MosaicContext}}),Object.defineProperty(l,"MosaicWindowContext",{enumerable:!0,get:function(){return d.MosaicWindowContext}});var f=requireMosaicUpdates();Object.defineProperty(l,"buildSpecFromUpdate",{enumerable:!0,get:function(){return f.buildSpecFromUpdate}}),Object.defineProperty(l,"createDragToUpdates",{enumerable:!0,get:function(){return f.createDragToUpdates}}),Object.defineProperty(l,"createExpandUpdate",{enumerable:!0,get:function(){return f.createExpandUpdate}}),Object.defineProperty(l,"createHideUpdate",{enumerable:!0,get:function(){return f.createHideUpdate}}),Object.defineProperty(l,"createRemoveUpdate",{enumerable:!0,get:function(){return f.createRemoveUpdate}}),Object.defineProperty(l,"updateTree",{enumerable:!0,get:function(){return f.updateTree}});var p=requireMosaicUtilities();Object.defineProperty(l,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return p.createBalancedTreeFromLeaves}}),Object.defineProperty(l,"Corner",{enumerable:!0,get:function(){return p.Corner}}),Object.defineProperty(l,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return p.getAndAssertNodeAtPathExists}}),Object.defineProperty(l,"getLeaves",{enumerable:!0,get:function(){return p.getLeaves}}),Object.defineProperty(l,"getNodeAtPath",{enumerable:!0,get:function(){return p.getNodeAtPath}}),Object.defineProperty(l,"getOtherBranch",{enumerable:!0,get:function(){return p.getOtherBranch}}),Object.defineProperty(l,"getOtherDirection",{enumerable:!0,get:function(){return p.getOtherDirection}}),Object.defineProperty(l,"getPathToCorner",{enumerable:!0,get:function(){return p.getPathToCorner}}),Object.defineProperty(l,"isParent",{enumerable:!0,get:function(){return p.isParent}});var h=requireMosaicWindow();Object.defineProperty(l,"MosaicWindow",{enumerable:!0,get:function(){return h.MosaicWindow}});var v=requireMosaicButton();Object.defineProperty(l,"createDefaultToolbarButton",{enumerable:!0,get:function(){return v.createDefaultToolbarButton}});var g=requireMosaicZeroState();Object.defineProperty(l,"MosaicZeroState",{enumerable:!0,get:function(){return g.MosaicZeroState}});var m=requireSeparator();Object.defineProperty(l,"Separator",{enumerable:!0,get:function(){return m.Separator}});var y=requireExpandButton();Object.defineProperty(l,"ExpandButton",{enumerable:!0,get:function(){return y.ExpandButton}});var b=requireReplaceButton();Object.defineProperty(l,"ReplaceButton",{enumerable:!0,get:function(){return b.ReplaceButton}});var w=requireSplitButton();Object.defineProperty(l,"SplitButton",{enumerable:!0,get:function(){return w.SplitButton}});var E=requireRemoveButton();Object.defineProperty(l,"RemoveButton",{enumerable:!0,get:function(){return E.RemoveButton}});var P=requireDefaultToolbarControls();Object.defineProperty(l,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return P.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(l,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return P.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(lib)),lib}
155var libExports=requireLib(),difference_1,hasRequiredDifference;function requireDifference(){if(hasRequiredDifference)return difference_1;hasRequiredDifference=1;var l=require_baseDifference(),o=require_baseFlatten(),u=require_baseRest(),d=requireIsArrayLikeObject(),f=u(function(p,h){return d(p)?l(p,o(h,1,d,!0)):[]});return difference_1=f,difference_1}var differenceExports=requireDifference();const difference=getDefaultExportFromCjs(differenceExports);function MosaicRenderPreview$1(l){var o=l.t,u=l.title,d=l.windowId;return React.createElement(MinimalWindow,{windowId:"".concat(d,"-preview"),label:o("previewWindowTitle",{title:u}),ariaLabel:!1})}MosaicRenderPreview$1.defaultProps={t:function l(o){return o},title:""};function ownKeys$7(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$7(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$7(Object(u),!0).forEach(function(d){_defineProperty$8(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$7(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$8(l,o,u){return(o=_toPropertyKey$t(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$t(l){var o=_toPrimitive$t(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$t(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$i=function l(o,u){var d=u.windowId;return{title:getManifestTitle$1(o,{windowId:d})}},styles$j=function l(o){return{preview:_objectSpread$7({},o.typography.h4)}},enhance$l=compose$2(withStyles$2(styles$j),withTranslation(),connect(mapStateToProps$i,null),withPlugins$1("MosaicRenderPreview"));const MosaicRenderPreview=enhance$l(MosaicRenderPreview$1);var mosaicUpdatesExports=requireMosaicUpdates(),mosaicUtilitiesExports=requireMosaicUtilities(),dropRightExports=requireDropRight();const dropRight=getDefaultExportFromCjs(dropRightExports);function _classCallCheck$n(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$n(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$s(d.key),d)}}function _createClass$n(l,o,u){return o&&_defineProperties$n(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$s(l){var o=_toPrimitive$s(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$s(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var MosaicLayout=(function(){function l(o){_classCallCheck$n(this,l),this.layout=o}return _createClass$n(l,[{key:"pathToCorner",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mosaicUtilitiesExports.Corner.TOP_RIGHT;return mosaicUtilitiesExports.getPathToCorner(this.layout,u)}},{key:"pathToParent",value:function(u){return mosaicUtilitiesExports.getNodeAtPath(this.layout,dropRight(u))}},{key:"nodeAtPath",value:function(u){return mosaicUtilitiesExports.getNodeAtPath(this.layout,u)}},{key:"addWindows",value:function(u){var d=this;u.forEach(function(f,p){var h=d.pathToCorner(),v=d.pathToParent(h),g=d.nodeAtPath(h),m=v?mosaicUtilitiesExports.getOtherDirection(v.direction):"row",y,b;m==="row"?(y=g,b=u[p]):(y=u[p],b=g);var w={path:h,spec:{$set:{direction:m,first:y,second:b}}};d.layout=mosaicUpdatesExports.updateTree(d.layout,[w])})}},{key:"removeWindows",value:function(u,d){var f=this,p=u.map(function(h){return mosaicU
155pdatesExports.createRemoveUpdate(f.layout,d[h])});this.layout=mosaicUpdatesExports.updateTree(this.layout,p)}}])})();function _classCallCheck$m(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$m(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$r(d.key),d)}}function _createClass$m(l,o,u){return o&&_defineProperties$m(l.prototype,o),u&&_defineProperties$m(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$r(l){var o=_toPrimitive$r(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$r(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$k(l,o,u){return o=_getPrototypeOf$k(o),_possibleConstructorReturn$k(l,_isNativeReflectConstruct$k()?Reflect.construct(o,u||[],_getPrototypeOf$k(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$k(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$k(l)}function _assertThisInitialized$k(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$k(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$k=function(){return!!l})()}function _getPrototypeOf$k(l){return _getPrototypeOf$k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$k(l)}function _inherits$k(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$k(l,o)}function _setPrototypeOf$k(l,o){return _setPrototypeOf$k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$k(l,o)}
155var WorkspaceMosaic$1=(function(l){function o(u){var d;return _classCallCheck$m(this,o),d=_callSuper$k(this,o,[u]),d.tileRenderer=d.tileRenderer.bind(d),d.mosaicChange=d.mosaicChange.bind(d),d.determineWorkspaceLayout=d.determineWorkspaceLayout.bind(d),d.zeroStateView=React.createElement("div",null),d.windowPaths={},d.toolbarControls=[],d.additionalControls=[],d}return _inherits$k(o,l),_createClass$m(o,[{key:"componentDidMount",value:function(){var d=this.props.updateWorkspaceMosaicLayout,f=this.determineWorkspaceLayout();f&&d(f)}},{key:"componentDidUpdate",value:function(d){var f=this.props,p=f.windowIds,h=f.layout,v=f.updateWorkspaceMosaicLayout,g=d.windowIds;if(!p.every(function(w){return g.includes(w)})){var m=this.determineWorkspaceLayout();isEqual$3(m,h)||v(m);return}if(!g.every(function(w){return p.includes(w)})){if(p.length===0){v(null);return}var y=difference(g,p),b=new MosaicLayout(h);b.removeWindows(y,this.windowPaths),v(b.layout)}}},{key:"bookkeepPath",value:function(d,f){this.windowPaths[d]=f}},{key:"determineWorkspaceLayout",value:function(){var d=this.props,f=d.windowIds,p=d.layout,h=libExports.getLeaves(p);if(!f.every(function(m){return h.includes(m)})){if(h.length<2)return libExports.createBalancedTreeFromLeaves(f);var v=difference(f,h),g=new MosaicLayout(p);return g.addWindows(v),g.layout}return h.every(function(m){return f.includes(m)})?p:libExports.createBalancedTreeFromLeaves(f)}},{key:"tileRenderer",value:function(d,f){var p=this.props,h=p.windowIds,v=p.workspaceId;return h.includes(d)?(this.bookkeepPath(d,f),React.createElement(libExports.MosaicWindow,{toolbarControls:this.toolbarControls,additionalControls:this.additionalControls,path:f,windowId:d,renderPreview:o.renderPreview},React.createElement(Window,{key:"".concat(d,"-").concat(v),windowId:d}))):null}},{key:"mosaicChange",value:function(d){var f=this.props.updateWorkspaceMosaicLayout;f(d)}},{key:"render",value:function(){var d=this.props,f=d.layout,p=d.classes;return React.createElement(libExports.MosaicWithoutDragDropContext,{renderTile:this.tileRenderer,initialValue:f||this.determineWorkspaceLayout(),onChange:this.mosaicChange,className:classNames("mirador-mosaic",p.root),zeroStateView:this.zeroStateView})}}],[{key:"renderPreview",value:function(d){return React.createElement("div",{className:"mosaic-preview","aria-hidden":!0},React.createElement(MosaicRenderPreview,{windowId:d.windowId}))}}])})(React.Component);WorkspaceMosaic$1.defaultProps={layout:void 0,windowIds:[]};var globalReactMosaicStyles={"@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 s
155olid 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 ownKeys$6(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$6(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
155o%2?ownKeys$6(Object(u),!0).forEach(function(d){_defineProperty$7(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$6(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$7(l,o,u){return(o=_toPropertyKey$q(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$q(l){var o=_toPrimitive$q(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$q(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapStateToProps$h=function l(o){return{layout:getWorkspace$1(o).layout,windowIds:getWorkspace$1(o).windowIds,workspaceId:getWorkspace$1(o).id}},mapDispatchToProps$d={updateWorkspaceMosaicLayout:updateWorkspaceMosaicLayout$1},styles$i=_objectSpread$6({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"}}},globalReactMosaicStyles),enhance$k=compose$2(withStyles$2(styles$i),connect(mapStateToProps$h,mapDispatchToProps$d),withPlugins$1("WorkspaceMosaic"));const WorkspaceMosaic=enhance$k(WorkspaceMosaic$1);var ResizeObserver$2={},hasRequiredResizeObserver;function requireResizeObserver(){if(hasRequiredResizeObserver)return ResizeObserver$2;hasRequiredResizeObserver=1,Object.defineProperty(ResizeObserver$2,"__esModule",{value:!0}),ResizeObserver$2.default=void 0;var l=o(requireReact());function o(x){return x&&x.__esModule?x:{default:x}}function u(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(D){return typeof D}:u=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},u(x)}function d(x){for(var A=1;A<arguments.length;A++){var D=arguments[A]!=null?arguments[A]:{},j=Object.keys(D);typeof Object.getOwnPropertySymbols=="function"&&(j=j.concat(Object.getOwnPropertySymbols(D).filter(function(M){return Object.getOwnPropertyDescriptor(D,M).enumerable}))),j.forEach(function(M){w(x,M,D[M])})}return x}function f(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function p(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");h(x.prototype,A&&A.prototype),A&&h(x,A)}function h(x,A){return h=Object.setPrototypeOf||function(j,M){return j.__proto__=M,j},h(x,A)}function v(x,A){for(var D=0;D<A.length;D++){var j=A[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(x,j.key,j)}}function g(x,A,D){return A&&v(x.prototype,A),x}function m(x,A){return A&&(u(A)==="object"||typeof A=="function")?A:b(x)}function y(x){return y=Object.getPrototypeOf||function(D){return D.__proto__},y(x)}function b(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function w(x,A,D){return A in x?Object.defineProperty(x,A,{value:D,enumerable:!0,configurable:!0,writable:!0}):x[A]=D,x}var E={position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",zIndex:-1,visibility:"hidden",pointerEvents:"none"},P={position:"absolute",left:0,top:0,transition:"0s"};function C(x,A){for(var D=x.parentNode;D;){if(D===A)return!0;D=D.parentNode}return!1}var T=(function(x){function A(){var D,j,M;f(this,A);for(var N=arguments.length,q=new Array(N),z=0;z<N;z++)q[z]=arguments[z];return m(M,(j=M=m(this,(D=y(A)).call.apply(D,[this].concat(q))),w(b(b(M)),"_expandRef",null),w(b(b(M)),"_shrinkRef",null),w(b(b(M)),"_node",null),w(b(b(M)),"_lastWidth",void 0),w(b(b(M)),"_lastHeight",void 0),w(b(b(M)),"_lastRect",void 0),w(b(b(M)),"_hasResize",!1),w(b(b(M)),"_handleScroll",function(H){(M.props.onPosition||M.props.onReflow||M.props.onResize)&&(M._globalScollTarget(H.target)||M._refScrollTarget(H.target)||M._ancestorScollTarget(H.target))&&M._reflow()}),w(b(b(M)),"_globalScollTarget",function(H){return H instanceof Node&&(M.props.onPosition||M.props.onReflow)&&(H===document||H===document.documentElement||H===document.body)}),w(b(b(M)),"_refScrollTarget",function(H){if(H instanceof HTMLElement&&(H===M._expandRef||H===M._shrinkRef)){var U=H.offsetWidth,F=H.offsetHeight;if(U!==M._lastWidth||F!==M._lastHeight)return M._lastWidth=U,M._lastHeight=F,M._reset(M._expandRef),M._reset(M._shrinkRef),!0}return!1}),w(b(b(M)),"_ancestorScollTarget",function(H){return H instanceof Node&&(M.props.onPosition||M.props.onReflow)&&M._node&&C(M._node,H)}),w(b(b(M)),"_reflow",function(){if(!(!M._node||!(M._node.parentNode instanceof Element))){var H=M._node.parentNode.getBoundingClientRect(),U=!0,F=!0;M._lastRect&&(U=H.width!==M._lastRect.width||H.height!==M._lastRect.height,F=H.top!==M._lastRect.top||H.left!==M._lastRect.left),M._lastRect=H,U&&M.props.onResize&&M.props.onResize(H),F&&M.props.onPosition&&M.props.onPosition(H),(U||F)&&M.props.onReflow&&M.props.onReflow(H)}}),w(b(b(M)),"_handleRef",function(H){M._node=H}),w(b(b(M)),"_handleExpandRef",function(H){M._reset(H),M._expandRef=H}),w(b(b(M)),"_handleShrinkRef",function(H){M._reset(H),M._shrinkRef=H}),j))}
155return g(A,[{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?(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0):!(this.props.onPosition||this.props.onReflow)&&this._hasResize&&(window.removeEventListener("resize",this._reflow,!0),this._hasResize=!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this._handleScroll,!0),this._hasResize&&window.removeEventListener("resize",this._reflow,!0)}},{key:"_reset",value:function(j){j&&(j.scrollLeft=1e5,j.scrollTop=1e5)}},{key:"render",value:function(){return this.props.onResize||this.props.onReflow?l.default.createElement("div",{style:E,ref:this._handleRef},l.default.createElement("div",{ref:this._handleExpandRef,style:E},l.default.createElement("div",{style:d({},P,{width:1e5,height:1e5})})),l.default.createElement("div",{ref:this._handleShrinkRef,style:E},l.default.createElement("div",{style:d({},P,{width:"200%",height:"200%"})}))):l.default.createElement("noscript",{ref:this._handleRef})}}]),p(A,x),A})(l.default.Component);w(T,"displayName","ResizeObserver");var O=T;return ResizeObserver$2.default=O,ResizeObserver$2}var ResizeObserverExports=requireResizeObserver();const ResizeObserver$1=getDefaultExportFromCjs(ResizeObserverExports);function _classCallCheck$l(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$l(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$p(d.key),d)}}function _createClass$l(l,o,u){return o&&_defineProperties$l(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$p(l){var o=_toPrimitive$p(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$p(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$j(l,o,u){return o=_getPrototypeOf$j(o),_possibleConstructorReturn$j(l,_isNativeReflectConstruct$j()?Reflect.construct(o,u||[],_getPrototypeOf$j(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$j(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$j(l)}function _assertThisInitialized$j(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$j(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$j=function(){return!!l})()}function _getPrototypeOf$j(l){return _getPrototypeOf$j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$j(l)}function _inherits$j(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$j(l,o)}function _setPrototypeOf$j(l,o){return _setPrototypeOf$j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$j(l,o)}
155var WorkspaceElasticWindow$1=(function(l){function o(){return _classCallCheck$l(this,o),_callSuper$j(this,o,arguments)}return _inherits$j(o,l),_createClass$l(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.companionWindowDimensions,h=d.focused,v=d.layout,g=d.workspace,m=d.updateElasticWindowLayout,y=g.width/2,b=g.height/2;return React.createElement(Rnd,{key:"".concat(v.windowId,"-").concat(g.id),size:{height:v.height+p.height,width:v.width+p.width},position:{x:v.x+y,y:v.y+b},bounds:"parent",onDragStop:function(E,P){m(v.windowId,{x:P.x-y,y:P.y-b})},onResize:function(E,P,C,T,O){m(v.windowId,{height:Number.parseInt(C.style.height,10)-p.height,width:Number.parseInt(C.style.width,10)-p.width,x:O.x-y,y:O.y-b})},dragHandleClassName:ns$1("window-top-bar"),className:h?f.focused:null},React.createElement(Window,{windowId:v.windowId}))}}])})(React.Component);WorkspaceElasticWindow$1.defaultProps={classes:{},companionWindowDimensions:{height:0,width:0},focused:!1};var mapStateToProps$g=function l(o,u){var d=u.windowId;return{companionWindowDimensions:selectCompanionWindowDimensions$1(o,{windowId:d}),focused:isFocused$1(o,{windowId:d}),layout:getElasticLayout$1(o)[d],workspace:getWorkspace$1(o)}},mapDispatchToProps$c=function l(o,u){return{updateElasticWindowLayout:function(f,p){o(updateElasticWindowLayout$1(f,p))}}},styles$h=function l(o){return{focused:{zIndex:o.zIndex.modal-1}}},enhance$j=compose$2(withStyles$2(styles$h),connect(mapStateToProps$g,mapDispatchToProps$c));const WorkspaceElasticWindow=enhance$j(WorkspaceElasticWindow$1);function _classCallCheck$k(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$k(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$o(d.key),d)}}function _createClass$k(l,o,u){return o&&_defineProperties$k(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$o(l){var o=_toPrimitive$o(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$o(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$i(l,o,u){return o=_getPrototypeOf$i(o),_possibleConstructorReturn$i(l,_isNativeReflectConstruct$i()?Reflect.construct(o,u||[],_getPrototypeOf$i(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$i(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$i(l)}function _assertThisInitialized$i(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$i(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$i=function(){return!!l})()}function _getPrototypeOf$i(l){return _getPrototypeOf$i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$i(l)}function _inherits$i(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$i(l,o)}function _setPrototypeOf$i(l,o){return _setPrototypeOf$i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$i(l,o)}
155var WorkspaceElastic$1=(function(l){function o(){return _classCallCheck$k(this,o),_callSuper$i(this,o,arguments)}return _inherits$i(o,l),_createClass$k(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.workspace,h=d.elasticLayout,v=d.setWorkspaceViewportDimensions,g=d.setWorkspaceViewportPosition,m=p.viewportPosition,y=p.width/2,b=p.height/2;return React.createElement("div",{style:{height:"100%",position:"relative",width:"100%"}},React.createElement(ResizeObserver$1,{onResize:function(E){v(E)}}),React.createElement(Rnd,{size:{height:p.height,width:p.width},position:{x:-1*m.x-y,y:-1*m.y-b},enableResizing:{bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},onDragStop:function(E,P){g({x:-1*P.x-y,y:-1*P.y-b})},cancel:".".concat(ns$1("window")),className:classNames(f.workspace,ns$1("workspace")),disableDragging:!p.draggingEnabled},Object.keys(h).map(function(w){return React.createElement(WorkspaceElasticWindow,{key:w,windowId:w})})))}}])})(React.Component),mapStateToProps$f=function l(o){return{elasticLayout:getElasticLayout$1(o),workspace:getWorkspace$1(o)}},mapDispatchToProps$b=function l(o,u){return{setWorkspaceViewportDimensions:function(f){o(setWorkspaceViewportDimensions$1(f))},setWorkspaceViewportPosition:function(f){o(setWorkspaceViewportPosition$1(f))},updateElasticWindowLayout:function(f,p){o(updateElasticWindowLayout$1(f,p))}}},styles$g={workspace:{boxSizing:"border-box",margin:0,position:"absolute",transitionDuration:".7s","& .react-draggable-dragging":{transitionDuration:"unset"}}},enhance$i=compose$2(withStyles$2(styles$g),connect(mapStateToProps$f,mapDispatchToProps$b),withPlugins$1("WorkspaceElastic"));const WorkspaceElastic=enhance$i(WorkspaceElastic$1);var InsertDriveFileSharp={},hasRequiredInsertDriveFileSharp;function requireInsertDriveFileSharp(){if(hasRequiredInsertDriveFileSharp)return InsertDriveFileSharp;hasRequiredInsertDriveFileSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(InsertDriveFileSharp,"__esModule",{value:!0}),InsertDriveFileSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.createElement("path",{d:"M4.01 2L4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z"}),"InsertDriveFileSharp");return InsertDriveFileSharp.default=f,InsertDriveFileSharp}var InsertDriveFileSharpExports=requireInsertDriveFileSharp();const InsertDriveFileSharpIcon=getDefaultExportFromCjs(InsertDriveFileSharpExports);function readImageMetadata(l){return new Promise(function(o,u){var d=new FileReader;d.addEventListener("load",function(){var f=new Image;f.addEventListener("load",function(){o({height:f.height,name:l.name,type:l.type,url:d.result,width:f.width})}),f.src=d.result}),d.readAsDataURL(l)})}function _slicedToArray$1(l,o){return _arrayWithHoles$1(l)||_iterableToArrayLimit$1(l,o)||_unsupportedIterableToArray$3(l,o)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$1(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o!==0)for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles$1(l){if(Array.isArray(l))return l}function _toConsumableArray$3(l){return _arrayWithoutHoles$3(l)||_iterableToArray$3(l)||_unsupportedIterableToArray$3(l)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$3(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$3(l,o):void 0}}function _iterableToArray$3(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$3(l){if(Array.isArray(l))return _arrayLikeToArray$3(l)}function _arrayLikeToArray$3(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}var handleDrop=function l(o,u,d){var f=d.onDrop;
157if(o.urls&&o.urls.forEach(function(b){var w=new URL(b),E=w.searchParams.get("manifest"),P=w.searchParams.get("canvas");E&&f({canvasId:P,manifestId:E},d,u)}),o.files){var p=o.files.filter(function(b){return b.type==="application/json"}),h=p.map(function(b){return new Promise(function(w,E){var P=new FileReader;P.addEventListener("load",function(){var C=P.result,T=v4();C&&f({manifestId:T,manifestJson:C},d,u),w()}),P.readAsText(b)})}),v=o.files.filter(function(b){var w=b.type;return w.startsWith("image/")}),g;if(v.length>0){var m=v4(),y=v.map(function(b){return readImageMetadata(b)});g=Promise.all(y).then(function(b){var w={"@context":"http://iiif.io/api/presentation/3/context.json",id:m,items:b.map(function(P,C){var T=P.name,O=P.type,x=P.width,A=P.height,D=P.url;return{height:A,id:"".concat(m,"/canvas/").concat(C),items:[{id:"".concat(m,"/canvas/").concat(C,"/1"),items:[{body:{format:O,id:D,type:"Image"},height:A,id:"".concat(m,"/canvas/").concat(C,"/1/image"),motivation:"painting",target:"".concat(m,"/canvas/").concat(C,"/1"),type:"Annotation",width:x}],type:"AnnotationPage"}],label:T,type:"Canvas",width:x}}),label:b[0].name,type:"Manifest"},E=v4();w&&f({manifestId:E,manifestJson:w},d,u)})}return Promise.all([].concat(_toConsumableArray$3(h),[g]))}},IIIFDropTarget=function l(o){var u=o.children,d=o.onDrop,f=useDrop({accept:[URL$1,FILE],collect:function(E){return{canDrop:E.canDrop(),isOver:E.isOver()}},drop:function(E,P){d&&handleDrop(E,P,o)}}),p=_slicedToArray$1(f,2),h=p[0],v=h.canDrop,g=h.isOver,m=p[1],y=function(E){if(!(!window.safari||!d||!E.dataTransfer)&&E.dataTransfer.types.includes("Files")&&E.dataTransfer.types.includes("text/uri-list")){var P=E.dataTransfer.getData("text/uri-list");if(!P)return;handleDrop({urls:[P]},null,o)}},b=v&&g;return React.createElement("div",{ref:m,onDrop:y,style:{height:"100%",width:"100%"}},u,React.createElement(Backdrop$1,{open:b,style:{zIndex:9999}},React.createElement(InsertDriveFileSharpIcon,{style:{color:grey$1[400],fontSize:256}})))};function _classCallCheck$j(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$n(d.key),d)}}function _createClass$j(l,o,u){return o&&_defineProperties$j(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$n(l){var o=_toPrimitive$n(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$n(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$h(l,o,u){return o=_getPrototypeOf$h(o),_possibleConstructorReturn$h(l,_isNativeReflectConstruct$h()?Reflect.construct(o,u||[],_getPrototypeOf$h(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$h(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$h(l)}function _assertThisInitialized$h(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$h(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$h=function(){return!!l})()}function _getPrototypeOf$h(l){return _getPrototypeOf$h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$h(l)}function _inherits$h(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$h(l,o)}function _setPrototypeOf$h(l,o){return _setPrototypeOf$h=Object.
157setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$h(l,o)}var Workspace$1=(function(l){function o(u){var d;return _classCallCheck$j(this,o),d=_callSuper$h(this,o,[u]),d.handleDrop=d.handleDrop.bind(d),d}return _inherits$h(o,l),_createClass$j(o,[{key:"handleDrop",value:function(d,f,p){var h=d.canvasId,v=d.manifestId,g=d.manifestJson,m=this.props,y=m.addWindow,b=m.allowNewWindows;b&&y({canvasId:h,manifest:g,manifestId:v})}},{key:"workspaceByType",value:function(){var d=this.props,f=d.workspaceId,p=d.workspaceType,h=d.windowIds;if(this.maximizedWindows())return this.maximizedWindows();if(h.length===0)return this.zeroWindows();switch(p){case"elastic":return React.createElement(WorkspaceElastic,null);case"mosaic":return React.createElement(WorkspaceMosaic,null);default:return h.map(function(v){return React.createElement(Window,{key:"".concat(v,"-").concat(f),windowId:v})})}}},{key:"zeroWindows",value:function(){var d=this.props.t;return React.createElement(StyledGrid,{alignItems:"center",container:!0,style:{height:"100%"}},React.createElement(StyledGrid,{xs:12,item:!0},React.createElement(Typography$1,{variant:"h1",component:"div",align:"center"},d("welcome"))))}},{key:"maximizedWindows",value:function(){var d=this.props,f=d.maximizedWindowIds,p=d.workspaceId;return f.length>0?f.map(function(h){return React.createElement(Window,{key:"".concat(h,"-").concat(p),windowId:h,className:classNames(ns$1("workspace-maximized-window"))})}):!1}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.isWorkspaceControlPanelVisible,h=d.t;return React.createElement(IIIFDropTarget,{onDrop:this.handleDrop},React.createElement("div",{className:classNames(ns$1("workspace-viewport"),p&&ns$1("workspace-with-control-panel"),p&&f.workspaceWithControlPanel,f.workspaceViewport)},React.createElement(Typography$1,{variant:"srOnly",component:"h1"},h("miradorViewer")),this.workspaceByType()))}}])})(React.Component);Workspace$1.defaultProps={addWindow:function l(){},allowNewWindows:!0,maximizedWindowIds:[],windowIds:[]};var mapStateToProps$e=function l(o){return{allowNewWindows:getConfig$1(o).workspace.allowNewWindows,isWorkspaceControlPanelVisible:getConfig$1(o).workspaceControlPanel.enabled,maximizedWindowIds:getMaximizedWindowsIds$1(o),windowIds:getWindowIds$1(o),workspaceId:getWorkspace$1(o).id,workspaceType:getWorkspaceType$1(o)}},mapDispatchToProps$a={addWindow:addWindow$1},styles$f=function l(o){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}}}},enhance$h=compose$2(withTranslation(),withStyles$2(styles$f),connect(mapStateToProps$e,mapDispatchToProps$a),withPlugins$1("Workspace"));const Workspace=enhance$h(Workspace$1);function _classCallCheck$i(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$i(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$m(d.key),d)}}function _createClass$i(l,o,u){return o&&_defineProperties$i(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$m(l){var o=_toPrimitive$m(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$m(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$g(l,o,u){return o=_getPrototypeOf$g(o),_possibleConstructorReturn$g(l,_isNativeReflectConstruct$g()?Reflect.construct(o,u||[],_getPrototypeOf$g(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$g(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$g(l)}function _assertThisInitialized$g(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$g(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$g=function(){return!!l})()}function _getPrototypeOf$g(l){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
157)},_getPrototypeOf$g(l)}function _inherits$g(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$g(l,o)}function _setPrototypeOf$g(l,o){return _setPrototypeOf$g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$g(l,o)}var ManifestForm$1=(function(l){function o(u){var d;return _classCallCheck$i(this,o),d=_callSuper$g(this,o,[u]),d.state={formValue:""},d.formSubmit=d.formSubmit.bind(d),d.handleCancel=d.handleCancel.bind(d),d.handleInputChange=d.handleInputChange.bind(d),d}return _inherits$g(o,l),_createClass$i(o,[{key:"handleCancel",value:function(){var d=this.props.onCancel;d(),this.setState({formValue:""})}},{key:"handleInputChange",value:function(d){var f=this;d.preventDefault(),f.setState({formValue:d.target.value})}},{key:"formSubmit",value:function(d){var f=this.props,p=f.addResource,h=f.onSubmit,v=this.state.formValue;d.preventDefault(),h(),p(v),this.setState({formValue:""})}},{key:"render",value:function(){var d=this.state.formValue,f=this.props,p=f.addResourcesOpen,h=f.classes,v=f.onCancel,g=f.t;return p?React.createElement("form",{onSubmit:this.formSubmit},React.createElement(StyledGrid,{container:!0,spacing:2},React.createElement(StyledGrid,{item:!0,xs:12,sm:8,md:9},React.createElement(TextField$1,{autoFocus:!0,fullWidth:!0,value:d,id:"manifestURL",type:"text",onChange:this.handleInputChange,variant:"filled",label:g("addManifestUrl"),helperText:g("addManifestUrlHelp"),InputLabelProps:{shrink:!0},InputProps:{className:h.input}})),React.createElement(StyledGrid,{item:!0,xs:12,sm:4,md:3,className:h.buttons},v&&React.createElement(Button$1,{onClick:this.handleCancel},g("cancel")),React.createElement(Button$1,{id:"fetchBtn",type:"submit",variant:"contained",color:"primary"},g("fetchManifest"))))):null}}])})(reactExports.Component);ManifestForm$1.defaultProps={classes:{},onCancel:null,onSubmit:function l(){},t:function l(o){return o}};function ownKeys$5(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$5(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$5(Object(u),!0).forEach(function(d){_defineProperty$6(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$5(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$6(l,o,u){return(o=_toPropertyKey$l(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$l(l){var o=_toPrimitive$l(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$l(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var mapDispatchToProps$9={addResource:addResource$1},styles$e=function l(o){return{buttons:_defineProperty$6({textAlign:"right"},o.breakpoints.up("sm"),{textAlign:"inherit"}),input:_objectSpread$5({},o.typography.body1)}},enhance$g=compose$2(withStyles$2(styles$e),withTranslation(),connect(null,mapDispatchToProps$9),withPlugins$1("ManifestForm"));const ManifestForm=enhance$g(ManifestForm$1);function _classCallCheck$h(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$h(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$k(d.key),d)}}function _createClass$h(l,o,u){return o&&_defineProperties$h(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$k(l){var o=_toPrimitive$k(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$k(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$f(l,o,u){return o=_getPrototypeOf$f(o),_possibleConstructorReturn$f(l,_isNativeReflectConstruct$f()?Reflect.construct(o,u||[],_getPrototypeOf$f(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$f(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$f(l)}function _assertThisInitialized$f(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$f(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$f=function(){return!!l})()}function _getPrototypeOf$f(l){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
157)},_getPrototypeOf$f(l)}function _inherits$f(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$f(l,o)}function _setPrototypeOf$f(l,o){return _setPrototypeOf$f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$f(l,o)}var ManifestListItemError$1=(function(l){function o(){return _classCallCheck$h(this,o),_callSuper$f(this,o,arguments)}return _inherits$f(o,l),_createClass$h(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.manifestId,h=d.onDismissClick,v=d.onTryAgainClick,g=d.t;return React.createElement(StyledGrid,{container:!0},React.createElement(StyledGrid,{container:!0},React.createElement(StyledGrid,{container:!0,item:!0,xs:12,sm:6},React.createElement(StyledGrid,{item:!0,xs:4,sm:3},React.createElement(StyledGrid,{container:!0,justifyContent:"center"},React.createElement(ErrorIcon,{className:f.errorIcon}))),React.createElement(StyledGrid,{item:!0,xs:8,sm:9},React.createElement(Typography$1,null,g("manifestError")),React.createElement(Typography$1,{className:f.manifestIdText},p)))),React.createElement(StyledGrid,{container:!0},React.createElement(StyledGrid,{container:!0,item:!0,xs:12,sm:6,justifyContent:"flex-end"},React.createElement(StyledGrid,{item:!0},React.createElement(Button$1,{onClick:function(){h(p)}},g("dismiss")),React.createElement(Button$1,{onClick:function(){v(p)}},g("tryAgain"))))))}}])})(reactExports.Component),mapDispatchToProps$8={onDismissClick:removeResource$1,onTryAgainClick:fetchManifest$2},styles$d=function l(o){return{errorIcon:{color:o.palette.error.main,height:"2rem",width:"2rem"},manifestIdText:{wordBreak:"break-all"}}},enhance$f=compose$2(withTranslation(),withStyles$2(styles$d),connect(null,mapDispatchToProps$8),withPlugins$1("ManifestListItemError"));const ManifestListItemError=enhance$f(ManifestListItemError$1);function _classCallCheck$g(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$j(d.key),d)}}function _createClass$g(l,o,u){return o&&_defineProperties$g(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$j(l){var o=_toPrimitive$j(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$j(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$e(l,o,u){return o=_getPrototypeOf$e(o),_possibleConstructorReturn$e(l,_isNativeReflectConstruct$e()?Reflect.construct(o,u||[],_getPrototypeOf$e(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$e(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$e(l)}function _assertThisInitialized$e(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$e(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$e=function(){return!!l})()}function _getPrototypeOf$e(l){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$e(l)}function _inherits$e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$e(l,o)}function _setPrototypeOf$e(l,o){return _setPrototypeOf$e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$e(l,o)}var ManifestListItem$1=(function(l){function o(u){var d;return _classCallCheck$g(this,o),d=_callSuper$e(this,o,[u]),d.handleOpenButtonClick=d.handleOpenButtonClick.bind(d),d}
157return _inherits$e(o,l),_createClass$g(o,[{key:"componentDidMount",value:function(){var d=this.props,f=d.fetchManifest,p=d.manifestId,h=d.ready,v=d.isFetching,g=d.error,m=d.provider;!h&&!g&&!v&&m!=="file"&&f(p)}},{key:"handleOpenButtonClick",value:function(){var d=this.props,f=d.addWindow,p=d.handleClose,h=d.manifestId;f({manifestId:h}),p()}},{key:"render",value:function(){var d=this.props,f=d.active,p=d.buttonRef,h=d.manifestId,v=d.ready,g=d.title,m=d.thumbnail,y=d.manifestLogo,b=d.size,w=d.classes,E=d.provider,P=d.t,C=d.error,T=d.isCollection,O=d.isMultipart,x=React.createElement(StyledGrid,{container:!0,className:ns$1("manifest-list-item"),spacing:2},React.createElement(StyledGrid,{item:!0,xs:3,sm:2},React.createElement(Skeleton$1,{className:w.placeholder,variant:"rect",height:80,width:120})),React.createElement(StyledGrid,{item:!0,xs:9,sm:6},React.createElement(Skeleton$1,{className:w.placeholder,variant:"text"})),React.createElement(StyledGrid,{item:!0,xs:8,sm:2},React.createElement(Skeleton$1,{className:w.placeholder,variant:"text"}),React.createElement(Skeleton$1,{className:w.placeholder,variant:"text"})),React.createElement(StyledGrid,{item:!0,xs:4,sm:2},React.createElement(Skeleton$1,{className:w.placeholder,variant:"rect",height:60,width:60})));return C?React.createElement(ListItem$1,{divider:!0,className:w.root,"data-manifestid":h},React.createElement(ManifestListItemError,{manifestId:h})):React.createElement(ListItem$1,{divider:!0,className:[w.root,f?w.active:""].join(" "),"data-manifestid":h},v?React.createElement(StyledGrid,{container:!0,className:ns$1("manifest-list-item"),spacing:2},React.createElement(StyledGrid,{item:!0,xs:12,sm:6,className:w.buttonGrid},React.createElement(ButtonBase$1,{ref:p,className:ns$1("manifest-list-item-title"),style:{width:"100%"},onClick:this.handleOpenButtonClick},React.createElement(StyledGrid,{container:!0,spacing:2,className:w.label,component:"span"},React.createElement(StyledGrid,{item:!0,xs:4,sm:3,component:"span"},m?React.createElement(Img,{className:[w.thumbnail,ns$1("manifest-list-item-thumb")].join(" "),src:[m],alt:"",height:"80",unloader:React.createElement(Skeleton$1,{variant:"rect",animation:!1,className:w.placeholder,height:80,width:120})}):React.createElement(Skeleton$1,{className:w.placeholder,variant:"rect",height:80,width:120})),React.createElement(StyledGrid,{item:!0,xs:8,sm:9,component:"span"},T&&React.createElement(Typography$1,{component:"div",variant:"overline"},P(O?"multipartCollection":"collection")),React.createElement(Typography$1,{component:"span",variant:"h6"},g||h))))),React.createElement(StyledGrid,{item:!0,xs:8,sm:4},React.createElement(Typography$1,{className:ns$1("manifest-list-item-provider")},E),React.createElement(Typography$1,null,P("numItems",{count:b,number:b}))),React.createElement(StyledGrid,{item:!0,xs:4,sm:2},y&&React.createElement(Img,{src:[y],alt:"",role:"presentation",className:w.logo,unloader:React.createElement(Skeleton$1,{variant:"rect",animation:!1,className:w.placeholder,height:60,width:60})}))):x)}}])})(React.Component);ManifestListItem$1.defaultProps={active:!1,buttonRef:void 0,classes:{},error:null,handleClose:function l(){},isCollection:!1,isFetching:!1,isMultipart:!1,manifestLogo:null,provider:null,ready:!1,size:0,t:function l(o){return o},thumbnail:null,title:null};function ownKeys$4(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$4(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$4(Object(u),!0).forEach(function(d){_defineProperty$5(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$4(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$5(l,o,u){return(o=_toPropertyKey$i(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$i(l){var o=_toPrimitive$i(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$i(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
157return(o==="string"?String:Number)(l)}var mapStateToProps$d=function l(o,u){var d=u.manifestId,f=u.provider,p=getManifest$1(o,{manifestId:d})||{},h=getManifestoInstance$1(o,{manifestId:d}),v=(h||{isCollection:function(){return!1}}).isCollection(),g=v?h.getTotalItems():getCanvases$1(o,{manifestId:d}).length;return{active:getWindowManifests$1(o).includes(d),error:p.error,isCollection:v,isFetching:p.isFetching,isMultipart:v&&getSequenceBehaviors$1(o,{manifestId:d}).includes("multi-part"),manifestLogo:getManifestLogo$1(o,{manifestId:d}),provider:f||getManifestProvider$1(o,{manifestId:d}),ready:!!p.json,size:g,thumbnail:getManifestThumbnail$1(o,{manifestId:d}),title:getManifestTitle$1(o,{manifestId:d})}},mapDispatchToProps$7={addWindow:addWindow$1,fetchManifest:fetchManifest$2},styles$c=function l(o){return{active:{},buttonGrid:{},label:{textAlign:"left",textTransform:"initial"},logo:{height:"2.5rem",maxWidth:"100%",objectFit:"contain",paddingRight:8},placeholder:{backgroundColor:o.palette.grey[300]},root:_objectSpread$4(_objectSpread$4({},o.mixins.gutters()),{},{"&$active":{borderLeft:"4px solid ".concat(o.palette.primary.main)},"&:hover,&:focus-within":{"&$active":{borderLeft:"4px solid ".concat(o.palette.primary.main)},backgroundColor:o.palette.action.hover,borderLeft:"4px solid ".concat(o.palette.action.hover)},borderLeft:"4px solid transparent"}),thumbnail:{maxWidth:"100%",objectFit:"contain"}}},enhance$e=compose$2(withTranslation(),withStyles$2(styles$c),connect(mapStateToProps$d,mapDispatchToProps$7),withPlugins$1("ManifestListItem"));const ManifestListItem=enhance$e(ManifestListItem$1);function _defineProperty$4(l,o,u){return(o=_toPropertyKey$h(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck$f(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$h(d.key),d)}}function _createClass$f(l,o,u){return o&&_defineProperties$f(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$h(l){var o=_toPrimitive$h(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$h(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$d(l,o,u){return o=_getPrototypeOf$d(o),_possibleConstructorReturn$d(l,_isNativeReflectConstruct$d()?Reflect.construct(o,u||[],_getPrototypeOf$d(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$d(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$d(l)}function _assertThisInitialized$d(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$d(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$d=function(){return!!l})()}function _getPrototypeOf$d(l){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$d(l)}function _inherits$d(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$d(l,o)}function _setPrototypeOf$d(l,o){return _setPrototypeOf$d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$d(l,o)}
157var WorkspaceAdd$1=(function(l){function o(u){var d;return _classCallCheck$f(this,o),d=_callSuper$d(this,o,[u]),d.state={addResourcesOpen:!1},d.ref=React.createRef(),d.onSubmit=d.onSubmit.bind(d),d.setAddResourcesVisibility=d.setAddResourcesVisibility.bind(d),d.handleDrop=d.handleDrop.bind(d),d}return _inherits$d(o,l),_createClass$f(o,[{key:"handleDrop",value:function(d,f,p){var h=d.manifestId,v=d.manifestJson,g=this.props.addResource;v?g(h,v,{provider:"file"}):g(h),this.scrollToTop()}},{key:"onSubmit",value:function(){this.setAddResourcesVisibility(!1),this.scrollToTop()}},{key:"setAddResourcesVisibility",value:function(d){this.setState({addResourcesOpen:d})}},{key:"scrollToTop",value:function(){if(this.ref.current){var d=this.ref.current;d.scrollTo({behavior:"smooth",left:0,top:0})}}},{key:"render",value:function(){var d=this,f=this.props,p=f.catalog,h=f.setWorkspaceAddVisibility,v=f.t,g=f.classes,m=this.state.addResourcesOpen,y=p.map(function(b,w){return React.createElement(ManifestListItem,Object.assign({},w===0&&{buttonRef:function(P){return P&&P.focus()}},{key:b.manifestId,manifestId:b.manifestId,provider:b.provider,handleClose:function(){return h(!1)}}))});return React.createElement(IIIFDropTarget,{onDrop:this.handleDrop},React.createElement("div",{ref:this.ref,className:classNames(ns$1("workspace-add"),g.workspaceAdd)},p.length<1?React.createElement(StyledGrid,{alignItems:"center",container:!0,style:{height:"100%"}},React.createElement(StyledGrid,{xs:12,item:!0},React.createElement(Typography$1,{variant:"h1",component:"div",align:"center"},v("emptyResourceList")))):React.createElement(Paper$1,{className:g.list},React.createElement(Typography$1,{variant:"srOnly",component:"h1"},v("miradorResources")),React.createElement(PluginHook$1,this.props),React.createElement(List$1,{disablePadding:!0},y)),React.createElement(Fab$1,{variant:"extended",disabled:m,className:classNames(g.fab,ns$1("add-resource-button")),color:"primary",onClick:function(){return d.setAddResourcesVisibility(!0)}},React.createElement(AddIcon,null),v("addResource")),React.createElement(Drawer$1,{className:classNames(_defineProperty$4({},g.displayNone,!m)),classes:{paper:g.paper},variant:"persistent",anchor:"bottom",open:m,ModalProps:{disablePortal:!0,hideBackdrop:!0,style:{position:"absolute"}}},React.createElement(Paper$1,{className:g.form},React.createElement(AppBar$1,{position:"absolute",color:"primary",onClick:function(){return d.setAddResourcesVisibility(!1)}},React.createElement(Toolbar$1,{variant:"dense"},React.createElement(MiradorMenuButton$3,{"aria-label":v("closeAddResourceForm"),className:g.menuButton,color:"inherit"},React.createElement(ExpandMoreIcon,null)),React.createElement(Typography$1,{variant:"h2",noWrap:!0,color:"inherit",className:g.typographyBody},v("addResource")))),React.createElement(ManifestForm,{addResourcesOpen:m,onSubmit:this.onSubmit,onCancel:function(){return d.setAddResourcesVisibility(!1)}})))))}}])})(React.Component);WorkspaceAdd$1.defaultProps={addResource:function l(){},catalog:[],classes:{},t:function l(o){return o}};function ownKeys$3(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$3(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$3(Object(u),!0).forEach(function(d){_defineProperty$3(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$3(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$3(l,o,u){return(o=_toPropertyKey$g(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$g(l){var o=_toPrimitive$g(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$g(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
157return(o==="string"?String:Number)(l)}var mapStateToProps$c=function l(o){return{catalog:getCatalog$1(o)}},mapDispatchToProps$6={addResource:addResource$1,setWorkspaceAddVisibility:setWorkspaceAddVisibility$1},styles$b=function l(o){return{displayNone:{display:"none"},fab:{bottom:o.spacing(2),position:"absolute",right:o.spacing(2)},form:_objectSpread$3(_objectSpread$3({},o.mixins.gutters()),{},{left:"0",marginTop:48,paddingBottom:o.spacing(2),paddingTop:o.spacing(2),right:"0"}),list:{margin:"16px"},menuButton:{marginLeft:-12,marginRight:20},paper:_defineProperty$3({borderTop:"0",left:"0"},o.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}}}},enhance$d=compose$2(withTranslation(),withStyles$2(styles$b),connect(mapStateToProps$c,mapDispatchToProps$6),withPlugins$1("WorkspaceAdd"));const WorkspaceAdd=enhance$d(WorkspaceAdd$1);var Backgroun
157dPluginArea$1=function l(o){return React.createElement("div",{className:ns$1("background-plugin-area"),style:{display:"none"}},React.createElement(PluginHook$1,o))};BackgroundPluginArea$1.defaultProps={PluginComponents:[]};const BackgroundPluginArea=withPlugins$1("BackgroundPluginArea")(BackgroundPluginArea$1);function _classCallCheck$e(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$f(d.key),d)}}function _createClass$e(l,o,u){return o&&_defineProperties$e(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$f(l){var o=_toPrimitive$f(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$f(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$c(l,o,u){return o=_getPrototypeOf$c(o),_possibleConstructorReturn$c(l,_isNativeReflectConstruct$c()?Reflect.construct(o,u||[],_getPrototypeOf$c(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$c(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$c(l)}function _assertThisInitialized$c(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$c(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$c=function(){return!!l})()}function _getPrototypeOf$c(l){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$c(l)}function _inherits$c(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$c(l,o)}function _setPrototypeOf$c(l,o){return _setPrototypeOf$c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$c(l,o)}
157var WorkspaceArea$2=(function(l){function o(){return _classCallCheck$e(this,o),_callSuper$c(this,o,arguments)}return _inherits$c(o,l),_createClass$e(o,[{key:"render",value:function(){var d=this.props,f=d.classes,p=d.controlPanelVariant,h=d.isWorkspaceAddVisible,v=d.isWorkspaceControlPanelVisible,g=d.lang,m=d.t;return React.createElement(React.Fragment,null,v&&React.createElement(WorkspaceControlPanel,{variant:p}),React.createElement("main",{className:classNames(f.viewer,ns$1("viewer")),lang:g,"aria-label":m("workspace")},h?React.createElement(WorkspaceAdd,null):React.createElement(Workspace,null),React.createElement(ErrorDialog,null),React.createElement(BackgroundPluginArea,null)))}}])})(reactExports.Component);WorkspaceArea$2.defaultProps={controlPanelVariant:void 0,isWorkspaceAddVisible:!1,lang:void 0};var mapStateToProps$b=function l(o){return{controlPanelVariant:getWorkspace$1(o).isWorkspaceAddVisible||getWindowIds$1(o).length>0?void 0:"wide",isWorkspaceAddVisible:getWorkspace$1(o).isWorkspaceAddVisible,isWorkspaceControlPanelVisible:getConfig$1(o).workspaceControlPanel.enabled,lang:getConfig$1(o).language}},styles$a=function l(o){var u=o.palette.type==="light"?darken:lighten;return{viewer:{background:u(o.palette.shades.light,.1),bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0}}},enhance$c=compose$2(withTranslation(),withStyles$2(styles$a),connect(mapStateToProps$b),withPlugins$1("WorkspaceArea"));const WorkspaceArea=enhance$c(WorkspaceArea$2),WorkspaceArea$1=Object.freeze(Object.defineProperty({__proto__:null,default:WorkspaceArea},Symbol.toStringTag,{value:"Module"}));var win$1=window,raf=win$1.requestAnimationFrame||win$1.webkitRequestAnimationFrame||win$1.mozRequestAnimationFrame||win$1.msRequestAnimationFrame||function(l){return setTimeout(l,16)},win=window,caf=win.cancelAnimationFrame||win.mozCancelAnimationFrame||function(l){clearTimeout(l)};function extend(){for(var l,o,u,d=arguments[0]||{},f=1,p=arguments.length;f<p;f++)if((l=arguments[f])!==null)for(o in l)u=l[o],d!==u&&u!==void 0&&(d[o]=u);return d}function checkStorageValue(l){return["true","false"].indexOf(l)>=0?JSON.parse(l):l}function setLocalStorage(l,o,u,d){if(d)try{l.setItem(o,u)}catch{}return u}function getSlideId(){var l=window.tnsId;return window.tnsId=l?l+1:1,"tns"+window.tnsId}function getBody(){var l=document,o=l.body;return o||(o=l.createElement("body"),o.fake=!0),o}var docElement=document.documentElement;function setFakeBody(l){var o="";return l.fake&&(o=docElement.style.overflow,l.style.background="",l.style.overflow=docElement.style.overflow="hidden",docElement.appendChild(l)),o}function resetFakeBody(l,o){l.fake&&(l.remove(),docElement.style.overflow=o,docElement.offsetHeight)}function calc(){var l=document,o=getBody(),u=setFakeBody(o),d=l.createElement("div"),f=!1;o.appendChild(d);try{for(var p="(10px * 10)",h=["calc"+p,"-moz-calc"+p,"-webkit-calc"+p],v,g=0;g<3;g++)if(v=h[g],d.style.width=v,d.offsetWidth===100){f=v.replace(p,"");break}}catch{}return o.fake?resetFakeBody(o,u):d.remove(),f}function percentageLayout(){var l=document,o=getBody(),u=setFakeBody(o),d=l.createElement("div"),f=l.createElement("div"),p="",h=70,v=3,g=!1;d.className="tns-t-subp2",f.className="tns-t-ct";for(var m=0;m<h;m++)p+="<div></div>";return f.innerHTML=p,d.appendChild(f),o.appendChild(d),g=Math.abs(d.getBoundingClientRect().left-f.children[h-v].getBoundingClientRect().left)<2,o.fake?resetFakeBody(o,u):d.remove(),g}function mediaquerySupport(){if(window.matchMedia||window.msMatchMedia)return!0;var l=document,o=getBody(),u=setFakeBody(o),d=l.createElement("div"),f=l.createElement("style"),p="@media all and (min-width:1px){.tns-mq-test{position:absolute}}",h;return f.type="text/css",d.className="tns-mq-test",o.appendChild(f),o.appendChild(d),f.styleSheet?f.styleSheet.cssText=p:f.appendChild(l.createTextNode(p)),h=window.getComputedStyle?window.getComputedStyle(d).position:d.currentStyle.position,o.fake?resetFakeBody(o,u):d.remove(),h==="absolute"}function createStyleSheet(l,o){var u=document.createElement("style");return o&&u.setAttribute("nonce",o),document.querySelector("head").appendChild(u),u.sheet?u.sheet:u.styleSheet}function addCSSRule(l,o,u,d){"insertRule"in l?l.insertRule(o+"{"+u+"}",d):l.addRule(o,u,d)}function removeCSSRule(l,o){"deleteRule"in l?l.deleteRule(o):l.removeRule(o)}function getCssRulesLength(l){var o="insertRule"in l?l.cssRules:l.rules;return o.length}function toDegree(l,o){return Math.atan2(l,o)*(180/Math.PI)}function getTouchDirection(l,o){var u=!1,d=Math.abs(90-Math.abs(l));return d>=90-o?u="horizontal":d<=o&&(u="vertical"),u}function forEach(l,o,u){for(var d=0,f=l.length;d<f;d++)o.call(u,l[d],d)}var classListSupport="classList"in document.createElement("_"),hasClass=classListSupport?function(l,o){return l.classList.contains(o)}:function(l,o){return l.className.indexOf(o)>=0},addClass=classListSupport?function(l,o){hasClass(l,o)||l.classList.add(o)}:function(l,o){hasClass(l,o)||(l.className+=" "+o)},removeClass=classListSupport?function(l,o){hasClass(l,o)&&l.classList.remove(o)}:function(l,o){hasClass(l,o)&&(l.className=l.className.replace(o,""))};function hasAttr(l,o){return l.hasAttribute(o)}function getAttr(l,o){return l.getAttribute(o)}function isNodeList(l){return typeof l.item<"u"}function setAttrs(l,o){if(l=isNodeList(l)||l instanceof Array?l:[l],Object.prototype.toString.call(o)==="[object Object]")for(var u=l.length;u--;)for(var d in o)l[u].setAttribute(d,o[d])}function removeAttrs(l,o){l=isNodeList(l)||l instanceof Array?l:[l],o=o instanceof Array?o:[o];for(var u=o.length,d=l.length;d--;)for(var f=u;f--;)l[d].removeAttribute(o[f])}function arrayFromNodeList(l){for(var o=[],u=0,d=l.length;u<d;u++)o.push(l[u]);return o}function hideElement(l,o){l.style.display!=="none"&&(l.style.display="none")}function showElement(l,o){l.style.display==="none"&&(l.style.display="")}function isVisible(l){return window.getComputedStyle(l).display!=="none"}function whichProperty(l){if(typeof l=="string"){var o=[l],u=l.charAt(0).toUpperCase()+l.substr(1),d=["Webkit","Moz","ms","O"];d.forEach(function(v){(v!=="ms"||l==="transform")&&o.push(v+u)}),l=o}var f=document.createElement("fakeelement");l.length;for(var p=0;p<l.length;p++){var h=l[p];if(f.style[h]!==void 0)return h}return!1}function has3DTransforms(l){if(!l||!window.getComputedStyle)return!1;var o=document,u=getBody(),d=setFakeBody(u),f=o.createElement("p"),p,h=l.length>9?"-"+l.slice(0,-9).toLowerCase()+"-":"";return h+="transform",u.insertBefore(f,null),f.style[l]="translate3d(1px,1px,1px)",p=window.getComputedStyle(f).getPropertyValue(h),u.fake?resetFakeBody(u,d):f.remove(),p!==void 0&&p.length>0&&p!=="none"}function getEndProperty(l,o){var u=!1;return/^Webkit/.test(l)?u="webkit"+o+"End":/^O/.test(l)?u="o"+o+"End":l&&(u=o.toLowerCase()+"end"),u}var supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch(l){}var passiveOption=supportsPassive?{passive:!0}:!1;function addEvents(l,o,u){for(var d in o){var f=["touchstart","touchmove"].indexOf(d)>=0&&!u?passiveOption:!1;l.addEventListener(d,o[d],f)}}function removeEvents(l,o){for(var u in o){var d=["touchstart","touchmove"].indexOf(u)>=0?passiveOption:!1;l.removeEventListener(u,o[u],d)}}function Events(){return{topics:{},on:function(l,o){this.topics[l]=this.topics[l]||[],this.topics[l].push(o)},off:function(l,o){if(this.topics[l]){for(var u=0;u<this.topics[l].length;u++)if(this.topics[l][u]===o){this.topics[l].splice(u,1);break}}},emit:function(l,o){o.type=l,this.topics[l]&&this.topics[l].forEach(function(u){u(o,l)})}}}function jsTransform(l,o,u,d,m,p,h){var v=Math.min(p,10),g=m.indexOf("%")>=0?"%":"px",m=m.replace(g,""),y=Number(l.style[o].replace(u,"").replace(d,"").replace(g,"")),b=(m-y)/p*v;setTimeout(w,v);function w(){p-=v,y+=b,l.style[o]=u+y+g+d,p>0?setTimeout(w,v):h()}}Object.keys||(Object.keys=function(l){var o=[];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&o.push(u);return o}
157);"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var tns=function(l){l=extend({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},l||{});var o=document,u=window,d={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},f={},p=l.useLocalStorage;if(p){var h=navigator.userAgent,v=new Date;try{f=u.localStorage,f?(f.setItem(v,v),p=f.getItem(v)==v,f.removeItem(v)):p=!1,p||(f={})}catch{p=!1}p&&(f.tnsApp&&f.tnsApp!==h&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(me){f.removeItem(me)}),localStorage.tnsApp=h)}var g=f.tC?checkStorageValue(f.tC):setLocalStorage(f,"tC",calc(),p),m=f.tPL?checkStorageValue(f.tPL):setLocalStorage(f,"tPL",percentageLayout(),p),y=f.tMQ?checkStorageValue(f.tMQ):setLocalStorage(f,"tMQ",mediaquerySupport(),p),b=f.tTf?checkStorageValue(f.tTf):setLocalStorage(f,"tTf",whichProperty("transform"),p),w=f.t3D?checkStorageValue(f.t3D):setLocalStorage(f,"t3D",has3DTransforms(b),p),E=f.tTDu?checkStorageValue(f.tTDu):setLocalStorage(f,"tTDu",whichProperty("transitionDuration"),p),P=f.tTDe?checkStorageValue(f.tTDe):setLocalStorage(f,"tTDe",whichProperty("transitionDelay"),p),C=f.tADu?checkStorageValue(f.tADu):setLocalStorage(f,"tADu",whichProperty("animationDuration"),p),T=f.tADe?checkStorageValue(f.tADe):setLocalStorage(f,"tADe",whichProperty("animationDelay"),p),O=f.tTE?checkStorageValue(f.tTE):setLocalStorage(f,"tTE",getEndProperty(E,"Transition"),p),x=f.tAE?checkStorageValue(f.tAE):setLocalStorage(f,"tAE",getEndProperty(C,"Animation"),p),A=u.console&&typeof u.console.warn=="function",D=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],j={};if(D.forEach(function(me){if(typeof l[me]=="string"){var ke=l[me],Xe=o.querySelector(ke);if(j[me]=ke,Xe&&Xe.nodeName)l[me]=Xe;else{A&&console.warn("Can't find",l[me]);return}}}),l.container.children.length<1){A&&console.warn("No slides found in",l.container);return}var M=l.responsive,N=l.nested,q=l.mode==="carousel";if(M){0 in M&&(l=extend(l,M[0]),delete M[0]);var z={};for(var H in M){var U=M[H];U=typeof U=="number"?{items:U}:U,z[H]=U}M=z,z=null}function F(me){for(var ke in me)q||(ke==="slideBy"&&(me[ke]="page"),ke==="edgePadding"&&(me[ke]=!1),ke==="autoHeight"&&(me[ke]=!1)),ke==="responsive"&&F(me[ke])}if(q||F(l),!q){l.axis="horizontal",l.slideBy="page",l.edgePadding=!1;var B=l.animateIn,G=l.animateOut,Q=l.animateDelay,K=l.animateNormal}var Z=l.axis==="horizontal",te=o.createElement("div"),oe=o.createElement("div"),fe,le=l.container,Re=le.parentNode,Ae=le.outerHTML,_e=le.children,ee=_e.length,se,$e=Ir(),Ee=!1;M&&no(),q&&(le.className+=" tns-vpfix");var xe=l.autoWidth,Se=Ht("fixedWidth"),Ie=Ht("edgePadding"),ge=Ht("gutter"),Y=Vo(),ie=Ht("center"),ce=xe?1:Math.floor(Ht("items")),ue=Ht("slideBy"),pe=l.viewportMax||l.fixedWidthViewportWidth,Te=Ht("arrowKeys"),Ce=Ht("speed"),Fe=l.rewind,He=Fe?!1:l.loop,we=Ht("autoHeight"),Oe=Ht("controls"),Ne=Ht("controlsText"),qe=Ht("nav"),Be=Ht("touch"),Ve=Ht("mouseDrag"),Ye=Ht("autoplay"),Ge=Ht("autoplayTimeout"),dt=Ht("autoplayText"),ze=Ht("autoplayHoverPause"),nt=Ht("autoplayResetOnVisibility"),Ze=createStyleSheet(null,Ht("nonce")),_t=l.lazyload,ae=l.lazyloadSelector,re,he=[],Pe=He?So():0,We=q?ee+Pe*2:ee+Pe,yt=!!((Se||xe)&&!He),ct=Se?uo():null,ht=!q||!He,bt=Z?"left":"top",xt="",Rt="",ut=(function(){return Se?function(){return ie&&!He?ee-1:Math.ceil(-ct/(Se+ge))}:xe?function(){for(var me=0;me<We;me++)if(re[me]>=-ct)return me}:function(){return ie&&q&&!He?ee-1:He||q?Math.max(0,We-Math.ceil(ce)):We-1}})(),Me=Wr(Ht("startIndex")),vt=Me;ai();var Ot=0,ft=xe?null:ut(),wt=l.preventActionWhenRunning,Nt=l.swipeAngle,jt=Nt?"?":!0,Ct=!1,mt=l.onInit,qt=new Events,Er=" tns-sli
157der tns-"+l.mode,Kt=le.id||getSlideId(),lr=Ht("disable"),Cr=!1,Yr=l.freezable,cr=Yr&&!xe?ro():!1,Pr=!1,vr={click:tn,keydown:Ln},ln={click:Jo,keydown:ka},kt={mouseover:xo,mouseout:wa},je={visibilitychange:ba},Et={keydown:ea},At={touchstart:Ea,touchmove:Oi,touchend:Vi,touchcancel:Vi},ir={mousedown:Ea,mousemove:Oi,mouseup:Vi,mouseleave:Vi},br=Zt("controls"),_r=Zt("nav"),Ar=xe?!0:l.navAsThumbnails,Lr=Zt("autoplay"),mn=Zt("touch"),kn=Zt("mouseDrag"),wr="tns-slide-active",Nn="tns-slide-cloned",rn="tns-complete",yn={load:Jr,error:qi},Qt,mr,un=l.preventScrollOnTouch==="force";if(br)var Pt=l.controlsContainer,$t=l.controlsContainer?l.controlsContainer.outerHTML:"",rt=l.prevButton,gt=l.nextButton,tr=l.prevButton?l.prevButton.outerHTML:"",qr=l.nextButton?l.nextButton.outerHTML:"",or,$r;if(_r)var dr=l.navContainer,bn=l.navContainer?l.navContainer.outerHTML:"",Tr,Yt=xe?ee:jn(),Rr=0,Dr=-1,Mr=Ho(),_n=Mr,wn="tns-nav-active",Sn="Carousel Page ",mi=" (Current Slide)";if(Lr)var Ji=l.autoplayDirection==="forward"?1:-1,xr=l.autoplayButton,Ai=l.autoplayButton?l.autoplayButton.outerHTML:"",Gn=["<span class='tns-visually-hidden'>"," animation</span>"],Kn,Xr,wo,Vt,cn;if(mn||kn)var pr={},Qr={},yi,qn=!1,nn,Dn=Z?function(me,ke){return me.x-ke.x}:function(me,ke){return me.y-ke.y};xe||ki(lr||cr),b&&(bt=b,xt="translate",w?(xt+=Z?"3d(":"3d(0px, ",Rt=Z?", 0px, 0px)":", 0px)"):(xt+=Z?"X(":"Y(",Rt=")")),q&&(le.className=le.className.replace("tns-vpfix","")),Yn(),va(),bi();function ki(me){me&&(Oe=qe=Be=Ve=Te=Ye=ze=nt=!1)}function ai(){for(var me=q?Me-Pe:Me;me<0;)me+=ee;return me%ee+1}function Wr(me){return me=me?Math.max(0,Math.min(He?ee-1:ee-ce,me)):0,q?me+Pe:me}function En(me){for(me==null&&(me=Me),q&&(me-=Pe);me<0;)me+=ee;return Math.floor(me%ee)}function Ho(){var me=En(),ke;return ke=Ar?me:Se||xe?Math.ceil((me+1)*Yt/ee-1):Math.floor(me/ce),!He&&q&&Me===ft&&(ke=Yt-1),ke}function pa(){if(xe||Se&&!pe)return ee-1;var me=Se?"fixedWidth":"items",ke=[];if((Se||l[me]<ee)&&ke.push(l[me]),M)for(var Xe in M){var Je=M[Xe][me];Je&&(Se||Je<ee)&&ke.push(Je)}return ke.length||ke.push(0),Math.ceil(Se?pe/Math.min.apply(null,ke):Math.max.apply(null,ke))}function So(){var me=pa(),ke=q?Math.ceil((me*5-ee)/2):me*4-ee;return ke=Math.max(me,ke),Zt("edgePadding")?ke+1:ke}function Ir(){return u.innerWidth||o.documentElement.clientWidth||o.body.clientWidth}function Zn(me){return me==="top"?"afterbegin":"beforeend"}function ha(me){if(me!=null){var ke=o.createElement("div"),Xe,Je;return me.appendChild(ke),Xe=ke.getBoundingClientRect(),Je=Xe.right-Xe.left,ke.remove(),Je||ha(me.parentNode)}}function Vo(){var me=Ie?Ie*2-ge:0;return ha(Re)-me}function Zt(me){if(l[me])return!0;if(M){for(var ke in M)if(M[ke][me])return!0}return!1}function Ht(me,ke){if(ke==null&&(ke=$e),me==="items"&&Se)return Math.floor((Y+ge)/(Se+ge))||1;var Xe=l[me];if(M)for(var Je in M)ke>=parseInt(Je)&&me in M[Je]&&(Xe=M[Je][me]);return me==="slideBy"&&Xe==="page"&&(Xe=Ht("items")),!q&&(me==="slideBy"||me==="items")&&(Xe=Math.floor(Xe)),Xe}function on(me){return g?g+"("+me*100+"% / "+We+")":me*100/We+"%"}function si(me,ke,Xe,Je,It){var Bt="";if(me!==void 0){var rr=me;ke&&(rr-=ke),Bt=Z?"margin: 0 "+rr+"px 0 "+me+"px;":"margin: "+me+"px 0 "+rr+"px 0;"}else if(ke&&!Xe){var Nr="-"+ke+"px",Br=Z?Nr+" 0 0":"0 "+Nr+" 0";Bt="margin: 0 "+Br+";"}return!q&&It&&E&&Je&&(Bt+=Wn(Je)),Bt}function Di(me,ke,Xe){return me?(me+ke)*We+"px":g?g+"("+We*100+"% / "+Xe+")":We*100/Xe+"%"}function eo(me,ke,Xe){var Je;if(me)Je=me+ke+"px";else{q||(Xe=Math.floor(Xe));var It=q?We:Xe;Je=g?g+"(100% / "+It+")":100/It+"%"}return Je="width:"+Je,N!=="inner"?Je+";":Je+" !important;"}function Mi(me){var ke="";if(me!==!1){var Xe=Z?"padding-":"margin-",Je=Z?"right":"bottom";ke=Xe+Je+": "+me+"px;"}return ke}function Eo(me,ke){var Xe=me.substring(0,me.length-ke).toLowerCase();return Xe&&(Xe="-"+Xe+"-"),Xe}function Wn(me){return Eo(E,18)+"transition-duration:"+me/1e3+"s;"}function Uo(me){return Eo(C,17)+"animation-duration:"+me/1e3+"s;"}function Yn(){var me="tns-outer",ke="tns-inner";if(Zt("gutter"),te.className=me,oe.className=ke,te.id=Kt+"-ow",oe.id=Kt+"-iw",le.id===""&&(le.id=Kt),Er+=m||xe?" tns-subpixel":" tns-no-subpixel",Er+=g?" tns-calc":" tns-no-calc",xe&&(Er+=" tns-autowidth"),Er+=" tns-"+l.axis,le.className+=Er,q?(fe=o.createElement("div"),fe.id=Kt+"-mw",fe.className="tns-ovh",te.appendChild(fe),fe.appendChild(oe)):te.appendChild(oe),we){var Xe=fe||oe;Xe.className+=" tns-ah"}if(Re.insertBefore(te,le),oe.appendChild(le),forEach(_e,function(Or,ei){addClass(Or,"tns-item"),Or.id||(Or.id=Kt+"-item"+ei),!q&&K&&addClass(Or,K),setAttrs(Or,{"aria-hidden":"true",tabindex:"-1"})}),Pe){for(var Je=o.createDocumentFragment(),It=o.createDocumentFragment(),Bt=Pe;Bt--;){var rr=Bt%ee,Nr=_e[rr].cloneNode(!0);if(addClass(Nr,Nn),removeAttrs(Nr,"id"),It.insertBefore(Nr,It.firstChild),q){var Br=_e[ee-1-rr].cloneNode(!0);addClass(Br,Nn),removeAttrs(Br,"id"),Je.appendChild(Br)}}le.insertBefore(Je,le.firstChild),le.appendChild(It),_e=le.children}}function bi(){if(Zt("autoHeight")||xe||!Z){var me=le.querySelectorAll("img");forEach(me,function(ke){var Xe=ke.src;_t||(Xe&&Xe.indexOf("data:image")<0?(ke.src="",addEvents(ke,yn),addClass(ke,"loading"),ke.src=Xe):wi(ke))}),raf(function(){ao(arrayFromNodeList(me),function(){Qt=!0})}),Zt("autoHeight")&&(me=pn(Me,Math.min(Me+ce-1,We-1))),_t?Co():raf(function(){ao(arrayFromNodeList(me),Co)})}else q&&Zr(),Po(),Fn()}function Co(){if(xe&&ee>1){var me=He?Me:ee-1;(function ke(){var Xe=_e[me].getBoundingClientRect().left,Je=_e[me-1].getBoundingClientRect().right;Math.abs(Xe-Je)<=1?Cn():setTimeout(function(){ke()},16)})()}else Cn()}function Cn(){(!Z||xe)&&(Xn(),xe?(ct=uo(),Yr&&(cr=ro()),ft=ut(),ki(lr||cr)):Io()),q&&Zr(),Po(),Fn()}function va(){if(!q)for(var me=Me,ke=Me+Math.min(ee,ce);me<ke;me++){var Xe=_e[me];Xe.style.left=(me-Me)*100/ce+"%",addClass(Xe,B),removeClass(Xe,K)}if(Z&&(m||xe?(addCSSRule(Ze,"#"+Kt+" > .tns-item","font-size:"+u.getComputedStyle(_e[0]).fontSize+";",getCssRulesLength(Ze)),addCSSRule(Ze,"#"+Kt,"font-size:0;
157",getCssRulesLength(Ze))):q&&forEach(_e,function(_,I){_.style.marginLeft=on(I)})),y){if(E){var Je=fe&&l.autoHeight?Wn(l.speed):"";addCSSRule(Ze,"#"+Kt+"-mw",Je,getCssRulesLength(Ze))}Je=si(l.edgePadding,l.gutter,l.fixedWidth,l.speed,l.autoHeight),addCSSRule(Ze,"#"+Kt+"-iw",Je,getCssRulesLength(Ze)),q&&(Je=Z&&!xe?"width:"+Di(l.fixedWidth,l.gutter,l.items)+";":"",E&&(Je+=Wn(Ce)),addCSSRule(Ze,"#"+Kt,Je,getCssRulesLength(Ze))),Je=Z&&!xe?eo(l.fixedWidth,l.gutter,l.items):"",l.gutter&&(Je+=Mi(l.gutter)),q||(E&&(Je+=Wn(Ce)),C&&(Je+=Uo(Ce))),Je&&addCSSRule(Ze,"#"+Kt+" > .tns-item",Je,getCssRulesLength(Ze))}else{Xo(),oe.style.cssText=si(Ie,ge,Se,we),q&&Z&&!xe&&(le.style.width=Di(Se,ge,ce));var Je=Z&&!xe?eo(Se,ge,ce):"";ge&&(Je+=Mi(ge)),Je&&addCSSRule(Ze,"#"+Kt+" > .tns-item",Je,getCssRulesLength(Ze))}if(M&&y)for(var It in M){It=parseInt(It);var Bt=M[It],Je="",rr="",Nr="",Br="",Or="",ei=xe?null:Ht("items",It),Vn=Ht("fixedWidth",It),ti=Ht("speed",It),ho=Ht("edgePadding",It),Ao=Ht("autoHeight",It),Ui=Ht("gutter",It);E&&fe&&Ht("autoHeight",It)&&"speed"in Bt&&(rr="#"+Kt+"-mw{"+Wn(ti)+"}"),("edgePadding"in Bt||"gutter"in Bt)&&(Nr="#"+Kt+"-iw{"+si(ho,Ui,Vn,ti,Ao)+"}"),q&&Z&&!xe&&("fixedWidth"in Bt||"items"in Bt||Se&&"gutter"in Bt)&&(Br="width:"+Di(Vn,Ui,ei)+";"),E&&"speed"in Bt&&(Br+=Wn(ti)),Br&&(Br="#"+Kt+"{"+Br+"}"),("fixedWidth"in Bt||Se&&"gutter"in Bt||!q&&"items"in Bt)&&(Or+=eo(Vn,Ui,ei)),"gutter"in Bt&&(Or+=Mi(Ui)),!q&&"speed"in Bt&&(E&&(Or+=Wn(ti)),C&&(Or+=Uo(ti))),Or&&(Or="#"+Kt+" > .tns-item{"+Or+"}"),Je=rr+Nr+Br+Or,Je&&Ze.insertRule("@media (min-width: "+It/16+"em) {"+Je+"}",Ze.cssRules.length)}}function Po(){if(hn(),te.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+Bn()+"</span>  of "+ee+"</div>"),mr=te.querySelector(".tns-liveregion .current"),Lr){var me=Ye?"stop":"start";xr?setAttrs(xr,{"data-action":me}):l.autoplayButtonOutput&&(te.insertAdjacentHTML(Zn(l.autoplayPosition),'<button type="button" data-action="'+me+'">'+Gn[0]+me+Gn[1]+dt[0]+"</button>"),xr=te.querySelector("[data-action]")),xr&&addEvents(xr,{click:Bi}),Ye&&(Ti(),ze&&addEvents(le,kt),nt&&addEvents(le,je))}if(_r){if(dr)setAttrs(dr,{"aria-label":"Carousel Pagination"}),Tr=dr.children,forEach(Tr,function(rr,Nr){setAttrs(rr,{"data-nav":Nr,tabindex:"-1","aria-label":Sn+(Nr+1),"aria-controls":Kt})});else{for(var ke="",Xe=Ar?"":'style="display:none"',Je=0;Je<ee;Je++)ke+='<button type="button" data-nav="'+Je+'" tabindex="-1" aria-controls="'+Kt+'" '+Xe+' aria-label="'+Sn+(Je+1)+'"></button>';ke='<div class="tns-nav" aria-label="Carousel Pagination">'+ke+"</div>",te.insertAdjacentHTML(Zn(l.navPosition),ke),dr=te.querySelector(".tns-nav"),Tr=dr.children}if(po(),E){var It=E.substring(0,E.length-18).toLowerCase(),Bt="transition: all "+Ce/1e3+"s";It&&(Bt="-"+It+"-"+Bt),addCSSRule(Ze,"[aria-controls^="+Kt+"-item]",Bt,getCssRulesLength(Ze))}setAttrs(Tr[Mr],{"aria-label":Sn+(Mr+1)+mi}),removeAttrs(Tr[Mr],"tabindex"),addClass(Tr[Mr],wn),addEvents(dr,ln)}br&&(!Pt&&(!rt||!gt)&&(te.insertAdjacentHTML(Zn(l.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+Kt+'">'+Ne[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+Kt+'">'+Ne[1]+"</button></div>"),Pt=te.querySelector(".tns-controls")),(!rt||!gt)&&(rt=Pt.children[0],gt=Pt.children[1]),l.controlsContainer&&setAttrs(Pt,{"aria-label":"Carousel Navigation",tabindex:"0"}),(l.controlsContainer||l.prevButton&&l.nextButton)&&setAttrs([rt,gt],{"aria-controls":Kt,tabindex:"-1"}),(l.controlsContainer||l.prevButton&&l.nextButton)&&(setAttrs(rt,{"data-controls":"prev"}),setAttrs(gt,{"data-controls":"next"})),or=Qn(rt),$r=Qn(gt),ga(),Pt?addEvents(Pt,vr):(addEvents(rt,vr),addEvents(gt,vr))),io()}function Fn(){if(q&&O){var me={};me[O]=Rn,addEvents(le,me)}Be&&addEvents(le,At,l.preventScrollOnTouch),Ve&&addEvents(le,ir),Te&&addEvents(o,Et),N==="inner"?qt.on("outerResized",function(){to(),qt.emit("innerLoaded",jr())}):(M||Se||xe||we||!Z)&&addEvents(u,{resize:To}),we&&(N==="outer"?qt.on("innerLoaded",oo):lr||oo()),zn(),lr?Zo():cr&&ji(),qt.on("indexChanged",Yo),N==="inner"&&qt.emit("innerLoaded",jr()),typeof mt=="function"&&mt(jr()),Ee=!0}function $o(){if(Ze.disabled=!0,Ze.ownerNode&&Ze.ownerNode.remove(),removeEvents(u,{resize:To}),Te&&removeEvents(o,Et),Pt&&removeEvents(Pt,vr),dr&&removeEvents(dr,ln),removeEvents(le,kt),removeEvents(le,je),xr&&removeEvents(xr,{click:Bi}),Ye&&clearInterval(Kn),q&&O){var me={};me[O]=Rn,removeEvents(le,me)}Be&&removeEvents(le,At),Ve&&removeEvents(le,ir);var ke=[Ae,$t,tr,qr,bn,Ai];D.forEach(function(Je,It){var Bt=Je==="container"?te:l[Je];if(typeof Bt=="object"&&Bt){var rr=Bt.previousElementSibling?Bt.previousElementSibling:!1,Nr=Bt.parentNode;Bt.outerHTML=ke[It],l[Je]=rr?rr.nextElementSibling:Nr.firstElementChild}}),D=B=G=Q=K=Z=te=oe=le=Re=Ae=_e=ee=se=$e=xe=Se=Ie=ge=Y=ce=ue=pe=Te=Ce=Fe=He=we=Ze=_t=re=he=Pe=We=yt=ct=ht=bt=xt=Rt=ut=Me=vt=Ot=ft=Nt=jt=Ct=mt=qt=Er=Kt=lr=Cr=Yr=cr=Pr=vr=ln=kt=je=Et=At=ir=br=_r=Ar=Lr=mn=kn=wr=rn=yn=Qt=Oe=Ne=Pt=$t=rt=gt=or=$r=qe=dr=bn=Tr=Yt=Rr=Dr=Mr=_n=wn=Sn=mi=Ye=Ge=Ji=dt=ze=xr=Ai=nt=Gn=Kn=Xr=wo=Vt=cn=pr=Qr=yi=qn=nn=Dn=Be=Ve=null;for(var Xe in this)Xe!=="rebuild"&&(this[Xe]=null);Ee=!1}function To(me){raf(function(){to(On(me))})}function to(me){if(Ee){N==="outer"&&qt.emit("outerResized",jr(me)),$e=Ir();var ke,Xe=se,Je=!1;M&&(no(),ke=Xe!==se,ke&&qt.emit("newBreakpointStart",jr(me)));var It,Bt,rr=ce,Nr=lr,Br=cr,Or=Te,ei=Oe,Vn=qe,ti=Be,ho=Ve,Ao=Ye,Ui=ze,_=nt,I=Me;if(ke){var W=Se,X=we,ne=Ne,ye=ie,Le=dt;if(!y)var Ke=ge,tt=Ie}if(Te=Ht("arrowKeys"),Oe=Ht("controls"),qe=Ht("nav"),Be=Ht("touch"),ie=Ht("center"),Ve=Ht("mouseDrag"),Ye=Ht("autoplay"),ze=Ht("autoplayHoverPause"),nt=Ht("autoplayResetOnVisibility"),ke&&(lr=Ht("disable"),Se=Ht("fixedWidth"),Ce=Ht("speed"),we=Ht("autoHeight"),Ne=Ht("controlsText"),dt=Ht("autoplayText"),Ge=Ht
157("autoplayTimeout"),y||(Ie=Ht("edgePadding"),ge=Ht("gutter"))),ki(lr),Y=Vo(),(!Z||xe)&&!lr&&(Xn(),Z||(Io(),Je=!0)),(Se||xe)&&(ct=uo(),ft=ut()),(ke||Se)&&(ce=Ht("items"),ue=Ht("slideBy"),Bt=ce!==rr,Bt&&(!Se&&!xe&&(ft=ut()),Li())),ke&&lr!==Nr&&(lr?Zo():_i()),Yr&&(ke||Se||xe)&&(cr=ro(),cr!==Br&&(cr?(Qo(Wi(Wr(0))),ji()):(Ko(),Je=!0))),ki(lr||cr),Ye||(ze=nt=!1),Te!==Or&&(Te?addEvents(o,Et):removeEvents(o,Et)),Oe!==ei&&(Oe?Pt?showElement(Pt):(rt&&showElement(rt),gt&&showElement(gt)):Pt?hideElement(Pt):(rt&&hideElement(rt),gt&&hideElement(gt))),qe!==Vn&&(qe?(showElement(dr),po()):hideElement(dr)),Be!==ti&&(Be?addEvents(le,At,l.preventScrollOnTouch):removeEvents(le,At)),Ve!==ho&&(Ve?addEvents(le,ir):removeEvents(le,ir)),Ye!==Ao&&(Ye?(xr&&showElement(xr),!Xr&&!Vt&&Ti()):(xr&&hideElement(xr),Xr&&Ri())),ze!==Ui&&(ze?addEvents(le,kt):removeEvents(le,kt)),nt!==_&&(nt?addEvents(o,je):removeEvents(o,je)),ke){if((Se!==W||ie!==ye)&&(Je=!0),we!==X&&(we||(oe.style.height="")),Oe&&Ne!==ne&&(rt.innerHTML=Ne[0],gt.innerHTML=Ne[1]),xr&&dt!==Le){var St=Ye?1:0,Dt=xr.innerHTML,Ut=Dt.length-Le[St].length;Dt.substring(Ut)===Le[St]&&(xr.innerHTML=Dt.substring(0,Ut)+dt[St])}}else ie&&(Se||xe)&&(Je=!0);if((Bt||Se&&!xe)&&(Yt=jn(),po()),It=Me!==I,It?(qt.emit("indexChanged",jr()),Je=!0):Bt?It||Yo():(Se||xe)&&(zn(),hn(),Ni()),Bt&&!q&&Ro(),!lr&&!cr){if(ke&&!y&&((Ie!==tt||ge!==Ke)&&(oe.style.cssText=si(Ie,ge,Se,Ce,we)),Z)){q&&(le.style.width=Di(Se,ge,ce));var Jt=eo(Se,ge,ce)+Mi(ge);removeCSSRule(Ze,getCssRulesLength(Ze)-1),addCSSRule(Ze,"#"+Kt+" > .tns-item",Jt,getCssRulesLength(Ze))}we&&oo(),Je&&(Zr(),vt=Me)}ke&&qt.emit("newBreakpointEnd",jr(me))}}function ro(){if(!Se&&!xe){var me=ie?ce-(ce-1)/2:ce;return ee<=me}var ke=Se?(Se+ge)*ee:re[ee],Xe=Ie?Y+Ie*2:Y+ge;return ie&&(Xe-=Se?(Y-Se)/2:(Y-(re[Me+1]-re[Me]-ge))/2),ke<=Xe}function no(){se=0;for(var me in M)me=parseInt(me),$e>=me&&(se=me)}var Li=(function(){return He?q?function(){var me=Ot,ke=ft;me+=ue,ke-=ue,Ie?(me+=1,ke-=1):Se&&(Y+ge)%(Se+ge)&&(ke-=1),Pe&&(Me>ke?Me-=ee:Me<me&&(Me+=ee))}:function(){if(Me>ft)for(;Me>=Ot+ee;)Me-=ee;else if(Me<Ot)for(;Me<=ft-ee;)Me+=ee}:function(){Me=Math.max(Ot,Math.min(ft,Me))}})();function io(){!Ye&&xr&&hideElement(xr),!qe&&dr&&hideElement(dr),Oe||(Pt?hideElement(Pt):(rt&&hideElement(rt),gt&&hideElement(gt)))}function Go(){Ye&&xr&&showElement(xr),qe&&dr&&showElement(dr),Oe&&(Pt?showElement(Pt):(rt&&showElement(rt),gt&&showElement(gt)))}function ji(){if(!Pr){if(Ie&&(oe.style.margin="0px"),Pe)for(var me="tns-transparent",ke=Pe;ke--;)q&&addClass(_e[ke],me),addClass(_e[We-ke-1],me);io(),Pr=!0}}function Ko(){if(Pr){if(Ie&&y&&(oe.style.margin=""),Pe)for(var me="tns-transparent",ke=Pe;ke--;)q&&removeClass(_e[ke],me),removeClass(_e[We-ke-1],me);Go(),Pr=!1}}function Zo(){if(!Cr){if(Ze.disabled=!0,le.className=le.className.replace(Er.substring(1),""),removeAttrs(le,["style"]),He)for(var me=Pe;me--;)q&&hideElement(_e[me]),hideElement(_e[We-me-1]);if((!Z||!q)&&removeAttrs(oe,["style"]),!q)for(var ke=Me,Xe=Me+ee;ke<Xe;ke++){var Je=_e[ke];removeAttrs(Je,["style"]),removeClass(Je,B),removeClass(Je,K)}io(),Cr=!0}}function _i(){if(Cr){if(Ze.disabled=!1,le.className+=Er,Zr(),He)for(var me=Pe;me--;)q&&showElement(_e[me]),showElement(_e[We-me-1]);if(!q)for(var ke=Me,Xe=Me+ee;ke<Xe;ke++){var Je=_e[ke],It=ke<Me+ce?B:K;Je.style.left=(ke-Me)*100/ce+"%",addClass(Je,It)}Go(),Cr=!1}}function Ni(){var me=Bn();mr.innerHTML!==me&&(mr.innerHTML=me)}function Bn(){var me=Mn(),ke=me[0]+1,Xe=me[1]+1;return ke===Xe?ke+"":ke+" to "+Xe}function Mn(me){me==null&&(me=Wi());var ke=Me,Xe,Je,It;if(ie||Ie?(xe||Se)&&(Je=-(parseFloat(me)+Ie),It=Je+Y+Ie*2):xe&&(Je=re[Me],It=Je+Y),xe)re.forEach(function(Br,Or){Or<We&&((ie||Ie)&&Br<=Je+.5&&(ke=Or),It-Br>=.5&&(Xe=Or))});else{if(Se){var Bt=Se+ge;ie||Ie?(ke=Math.floor(Je/Bt),Xe=Math.ceil(It/Bt-1)):Xe=ke+Math.ceil(Y/Bt)-1}else if(ie||Ie){var rr=ce-1;if(ie?(ke-=rr/2,Xe=Me+rr/2):Xe=Me+rr,Ie){var Nr=Ie*ce/Y;ke-=Nr,Xe+=Nr}ke=Math.floor(ke),Xe=Math.ceil(Xe)}else Xe=ke+ce-1;ke=Math.max(ke,0),Xe=Math.min(Xe,We-1)}return[ke,Xe]}function zn(){if(_t&&!lr){var me=Mn();me.push(ae),pn.apply(null,me).forEach(function(ke){if(!hasClass(ke,rn)){var Xe={};Xe[O]=function(It){It.stopPropagation()},addEvents(ke,Xe),addEvents(ke,yn),ke.src=getAttr(ke,"data-src");var Je=getAttr(ke,"data-srcset");Je&&(ke.srcset=Je),addClass(ke,"loading")}})}}function Jr(me){wi(Hi(me))}function qi(me){Si(Hi(me))}function wi(me){addClass(me,"loaded"),Ei(me)}function Si(me){addClass(me,"failed"),Ei(me)}function Ei(me){addClass(me,rn),removeClass(me,"loading"),removeEvents(me,yn)}function pn(me,ke,Xe){var Je=[];for(Xe||(Xe="img");me<=ke;)forEach(_e[me].querySelectorAll(Xe),function(It){Je.push(It)}),me++;return Je}function oo(){var me=pn.apply(null,Mn());raf(function(){ao(me,$n)})}function ao(me,ke){if(Qt||(me.forEach(function(Xe,Je){!_t&&Xe.complete&&Ei(Xe),hasClass(Xe,rn)&&me.splice(Je,1)}),!me.length))return ke();raf(function(){ao(me,ke)})}function Yo(){zn(),hn(),Ni(),ga(),Ci()}function Xo(){q&&we&&(fe.style[E]=Ce/1e3+"s")}function Pn(me,ke){for(var Xe=[],Je=me,It=Math.min(me+ke,We);Je<It;Je++)Xe.push(_e[Je].offsetHeight);return Math.max.apply(null,Xe)}function $n(){var me=we?Pn(Me,ce):Pn(Pe,ee),ke=fe||oe;ke.style.height!==me&&(ke.style.height=me+"px")}function Xn(){re=[0];var me=Z?"left":"top",ke=Z?"right":"bottom",Xe=_e[0].getBoundingClientRect()[me];forEach(_e,function(Je,It){It&&re.push(Je.getBoundingClientRect()[me]-Xe),It===We-1&&re.push(Je.getBoundingClientRect()[ke]-Xe)})}function hn(){var me=Mn(),ke=me[0],Xe=me[1];forEach(_e,function(Je,It){It>=ke&&It<=Xe?hasAttr(Je,"aria-hidden")&&(removeAttrs(Je,["aria-hidden","tabindex"]),addClass(Je,wr)):hasAttr(Je,"aria-hidden")||(setAttrs(Je,{"aria-hidden":"true",tabindex:"-1"}),removeClass(Je,wr))})}function Ro(){for(var me=Me+Math.min(ee,ce),ke=We;ke--;){var Xe=_e[ke];ke>
157=Me&&ke<me?(addClass(Xe,"tns-moving"),Xe.style.left=(ke-Me)*100/ce+"%",addClass(Xe,B),removeClass(Xe,K)):Xe.style.left&&(Xe.style.left="",addClass(Xe,K),removeClass(Xe,B)),removeClass(Xe,G)}setTimeout(function(){forEach(_e,function(Je){removeClass(Je,"tns-moving")})},300)}function Ci(){if(qe&&(Mr=Dr>=0?Dr:Ho(),Dr=-1,Mr!==_n)){var me=Tr[_n],ke=Tr[Mr];setAttrs(me,{tabindex:"-1","aria-label":Sn+(_n+1)}),removeClass(me,wn),setAttrs(ke,{"aria-label":Sn+(Mr+1)+mi}),removeAttrs(ke,"tabindex"),addClass(ke,wn),_n=Mr}}function so(me){return me.nodeName.toLowerCase()}function Qn(me){return so(me)==="button"}function an(me){return me.getAttribute("aria-disabled")==="true"}function Pi(me,ke,Xe){me?ke.disabled=Xe:ke.setAttribute("aria-disabled",Xe.toString())}function ga(){if(!(!Oe||Fe||He)){var me=or?rt.disabled:an(rt),ke=$r?gt.disabled:an(gt),Xe=Me<=Ot,Je=!Fe&&Me>=ft;Xe&&!me&&Pi(or,rt,!0),!Xe&&me&&Pi(or,rt,!1),Je&&!ke&&Pi($r,gt,!0),!Je&&ke&&Pi($r,gt,!1)}}function Tn(me,ke){E&&(me.style[E]=ke)}function Oo(){return Se?(Se+ge)*We:re[We]}function lo(me){me==null&&(me=Me);var ke=Ie?ge:0;return xe?(Y-ke-(re[me+1]-re[me]-ge))/2:Se?(Y-Se)/2:(ce-1)/2}function uo(){var me=Ie?ge:0,ke=Y+me-Oo();return ie&&!He&&(ke=Se?-(Se+ge)*(We-1)-lo():lo(We-1)-re[We-1]),ke>0&&(ke=0),ke}function Wi(me){me==null&&(me=Me);var ke;if(Z&&!xe)if(Se)ke=-(Se+ge)*me,ie&&(ke+=lo());else{var Xe=b?We:ce;ie&&(me-=lo()),ke=-me*100/Xe}else ke=-re[me],ie&&xe&&(ke+=lo());return yt&&(ke=Math.max(ke,ct)),ke+=Z&&!xe&&!Se?"%":"px",ke}function Zr(me){Tn(le,"0s"),Qo(me)}function Qo(me){me==null&&(me=Wi()),le.style[bt]=xt+me+Rt}function li(me,ke,Xe,Je){var It=me+ce;He||(It=Math.min(It,We));for(var Bt=me;Bt<It;Bt++){var rr=_e[Bt];Je||(rr.style.left=(Bt-Me)*100/ce+"%"),Q&&P&&(rr.style[P]=rr.style[T]=Q*(Bt-me)/1e3+"s"),removeClass(rr,ke),addClass(rr,Xe),Je&&he.push(rr)}}var ma=(function(){return q?function(){Tn(le,""),E||!Ce?(Qo(),(!Ce||!isVisible(le))&&Rn()):jsTransform(le,bt,xt,Rt,Wi(),Ce,Rn),Z||Io()}:function(){he=[];var me={};me[O]=me[x]=Rn,removeEvents(_e[vt],me),addEvents(_e[Me],me),li(vt,B,G,!0),li(Me,K,B),(!O||!x||!Ce||!isVisible(le))&&Rn()}})();function Fr(me,ke){ht&&Li(),(Me!==vt||ke)&&(qt.emit("indexChanged",jr()),qt.emit("transitionStart",jr()),we&&oo(),Xr&&me&&["click","keydown"].indexOf(me.type)>=0&&Ri(),Ct=!0,ma())}function Fi(me){return me.toLowerCase().replace(/-/g,"")}function Rn(me){if(q||Ct){if(qt.emit("transitionEnd",jr(me)),!q&&he.length>0)for(var ke=0;ke<he.length;ke++){var Xe=he[ke];Xe.style.left="",T&&P&&(Xe.style[T]="",Xe.style[P]=""),removeClass(Xe,G),addClass(Xe,K)}if(!me||!q&&me.target.parentNode===le||me.target===le&&Fi(me.propertyName)===Fi(bt)){if(!ht){var Je=Me;Li(),Me!==Je&&(qt.emit("indexChanged",jr()),Zr())}N==="inner"&&qt.emit("innerLoaded",jr()),Ct=!1,vt=Me}}}function ui(me,ke){if(!cr)if(me==="prev")tn(ke,-1);else if(me==="next")tn(ke,1);else{if(Ct){if(wt)return;Rn()}var Xe=En(),Je=0;if(me==="first"?Je=-Xe:me==="last"?Je=q?ee-ce-Xe:ee-1-Xe:(typeof me!="number"&&(me=parseInt(me)),isNaN(me)||(ke||(me=Math.max(0,Math.min(ee-1,me))),Je=me-Xe)),!q&&Je&&Math.abs(Je)<ce){var It=Je>0?1:-1;Je+=Me+Je-ee>=Ot?ee*It:ee*2*It*-1}Me+=Je,q&&He&&(Me<Ot&&(Me+=ee),Me>ft&&(Me-=ee)),En(Me)!==En(vt)&&Fr(ke)}}function tn(me,ke){if(Ct){if(wt)return;Rn()}var Xe;if(!ke){me=On(me);for(var Je=Hi(me);Je!==Pt&&[rt,gt].indexOf(Je)<0;)Je=Je.parentNode;var It=[rt,gt].indexOf(Je);It>=0&&(Xe=!0,ke=It===0?-1:1)}if(Fe){if(Me===Ot&&ke===-1){ui("last",me);return}else if(Me===ft&&ke===1){ui("first",me);return}}ke&&(Me+=ue*ke,xe&&(Me=Math.floor(Me)),Fr(Xe||me&&me.type==="keydown"?me:null))}function Jo(me){if(Ct){if(wt)return;Rn()}me=On(me);for(var ke=Hi(me),Xe;ke!==dr&&!hasAttr(ke,"data-nav");)ke=ke.parentNode;if(hasAttr(ke,"data-nav")){var Xe=Dr=Number(getAttr(ke,"data-nav")),Je=Se||xe?Xe*ee/Yt:Xe*ce,It=Ar?Xe:Math.min(Math.ceil(Je),ee-1);ui(It,me),Mr===Xe&&(Xr&&Ri(),Dr=-1)}}function $i(){Kn=setInterval(function(){tn(null,Ji)},Ge),Xr=!0}function Jn(){clearInterval(Kn),Xr=!1}function co(me,ke){setAttrs(xr,{"data-action":me}),xr.innerHTML=Gn[0]+me+Gn[1]+ke}function Ti(){$i(),xr&&co("stop",dt[1])}function Ri(){Jn(),xr&&co("start",dt[0])}function ya(){Ye&&!Xr&&(Ti(),Vt=!1)}function ci(){Xr&&(Ri(),Vt=!0)}function Bi(){Xr?(Ri(),Vt=!0):(Ti(),Vt=!1)}function ba(){o.hidden?Xr&&(Jn(),cn=!0):cn&&($i(),cn=!1)}function xo(){Xr&&(Jn(),wo=!0)}function wa(){wo&&($i(),wo=!1)}function ea(me){me=On(me);var ke=[d.LEFT,d.RIGHT].indexOf(me.keyCode);ke>=0&&tn(me,ke===0?-1:1)}function Ln(me){me=On(me);var ke=[d.LEFT,d.RIGHT].indexOf(me.keyCode);ke>=0&&(ke===0?rt.disabled||tn(me,-1):gt.disabled||tn(me,1))}function zi(me){me.focus()}function ka(me){me=On(me);var ke=o.activeElement;if(hasAttr(ke,"data-nav")){var Xe=[d.LEFT,d.RIGHT,d.ENTER,d.SPACE].indexOf(me.keyCode),Je=Number(getAttr(ke,"data-nav"));Xe>=0&&(Xe===0?Je>0&&zi(Tr[Je-1]):Xe===1?Je<Yt-1&&zi(Tr[Je+1]):(Dr=Je,ui(Je,me)))}}function On(me){return me=me||u.event,di(me)?me.changedTouches[0]:me}function Hi(me){return me.target||u.event.srcElement}function di(me){return me.type.indexOf("touch")>=0}function Sa(me){me.preventDefault?me.preventDefault():me.returnValue=!1}function Hn(){return getTouchDirection(toDegree(Qr.y-pr.y,Qr.x-pr.x),Nt)===l.axis}function Ea(me){if(Ct){if(wt)return;Rn()}Ye&&Xr&&Jn(),qn=!0,nn&&(caf(nn),nn=null);var ke=On(me);qt.emit(di(me)?"touchStart":"dragStart",jr(me)),!di(me)&&["img","a"].indexOf(so(Hi(me)))>=0&&Sa(me),Qr.x=pr.x=ke.clientX,Qr.y=pr.y=ke.clientY,q&&(yi=parseFloat(le.style[bt].replace(xt,"")),Tn(le,"0s"))}function Oi(me){if(qn){var ke=On(me);Qr.x=ke.clientX,Qr.y=ke.clientY,q?nn||(nn=raf(function(){fo(me)})):(jt==="?"&&(jt=Hn()),jt&&(un=!0)),(typeof me.cancelable!="boolean"||me.cancelable)&&un&&me.preventDefault()}}function fo(me){if(!jt){qn=!1;return}if(caf(nn),qn&&(nn=raf(function(){fo(me)})),jt==="?"&&(jt=Hn()),jt){!un&&di(me)&&(un=!0);try{me.type&&qt.emit(di(me)?"touchMove":"dragMove",jr(me))}catch{}var ke=yi,Xe=Dn(Qr,pr);if(!Z||Se||xe)ke+=Xe,ke+="px";else{var Je=b?Xe*ce*100/((Y+ge)*We):Xe*100/(Y+ge);ke+=Je,ke+="%"}le.style[bt]=xt+ke+Rt}}function Vi(me){if(qn){nn&&(caf(nn),nn=null),q&&Tn(le,""),qn=!1;var ke=On(me);Qr.x=ke.clientX,Qr.y=ke.clientY;var Xe=Dn(Qr,pr);if(Math.abs(Xe)){if(!di(me)){var Je=Hi(me);addEvents(Je,{click:function It(Bt){Sa(Bt),removeEvents(Je,{click:It})}})}q?nn=raf(function(){if(Z&&!xe){var It=-Xe*ce/(Y+ge);It=Xe>0?Math.floor(It):Math.ceil(It),Me+=It}else{var Bt=-(yi+Xe);if(Bt<=0)Me=Ot;else if(Bt>=re[We-1])Me=ft;else for(var rr=0;rr<We&&Bt>=re[rr];)Me=rr,Bt>re[rr]&&Xe<0&&(Me+=1),rr++}Fr(me,Xe),qt.emit(di(me)?"touchEnd":"dragEnd",jr(me))}):jt&&tn(me,Xe>0?-1:1)}}l.preventScrollOnTouch==="auto"&&(un=!1),Nt&&(jt="?"),Ye&&!Xr&&$i()}function Io(){var me=fe||oe;me.style.height=re[Me+ce]-re[Me]+"px"}function jn(){var me=Se?(Se+ge)*ee/Y:ee/ce;return Math.min(Math.ceil(me),ee)}function po(){if(!(!qe||Ar)&&Yt!==Rr){var me=Rr,ke=Yt,Xe=showElement;for(Rr>Yt&&(me=Yt,ke=Rr,Xe=hideElement);me<ke;)Xe(Tr[me]),me++;Rr=Yt}}function jr(me){return{container:le,slideItems:_e,navContainer:dr,navItems:Tr,controlsContainer:Pt,hasControls:br,prevButton:rt,nextButton:gt,items:ce,slideBy:ue,cloneCount:Pe,slideCount:ee,slideCountNew:We,index:Me,indexCached:vt,dis
157playIndex:ai(),navCurrentIndex:Mr,navCurrentIndexCached:_n,pages:Yt,pagesCached:Rr,sheet:Ze,isOn:Ee,event:me||{}}}return{version:"2.9.4",getInfo:jr,events:qt,goTo:ui,play:ya,pause:ci,isOn:Ee,updateSliderHeight:$n,refresh:bi,destroy:$o,rebuild:function(){return tns(extend(l,j))}}};const tinySlider_module=Object.freeze(Object.defineProperty({__proto__:null,tns},Symbol.toStringTag,{value:"Module"}));function _classCallCheck$d(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$e(d.key),d)}}function _createClass$d(l,o,u){return o&&_defineProperties$d(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$e(l){var o=_toPrimitive$e(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$e(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$b(l,o,u){return o=_getPrototypeOf$b(o),_possibleConstructorReturn$b(l,_isNativeReflectConstruct$b()?Reflect.construct(o,u||[],_getPrototypeOf$b(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$b(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$b(l)}function _assertThisInitialized$b(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$b(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$b=function(){return!!l})()}function _getPrototypeOf$b(l){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$b(l)}function _inherits$b(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$b(l,o)}function _setPrototypeOf$b(l,o){return _setPrototypeOf$b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$b(l,o)}var AudioViewer$2=(function(l){function o(){return _classCallCheck$d(this,o),_callSuper$b(this,o,arguments)}return _inherits$b(o,l),_createClass$d(o,[{key:"render",value:function(){var d=this.props,f=d.captions,p=d.classes,h=d.audioOptions,v=d.audioResources;return React.createElement("div",{className:p.container},React.createElement("audio",Object.assign({className:p.audio},h),v.map(function(g){return React.createElement(reactExports.Fragment,{key:g.id},React.createElement("source",{src:g.id,type:g.getFormat()}))}),f.map(function(g){return React.createElement(reactExports.Fragment,{key:g.id},React.createElement("track",{src:g.id,label:g.getDefaultLabel(),srcLang:g.getProperty("language")}))})))}}])})(reactExports.Component);AudioViewer$2.defaultProps={audioOptions:{},audioResources:[],captions:[]};var mapStateToProps$a=function l(o,u){var d=u.windowId;return{audioOptions:getConfig$1(o).audioOptions,audioResources:getVisibleCanvasAudioResources$1(o,{windowId:d})||[],captions:getVisibleCanvasCaptions$1(o,{windowId:d})||[]}},styles$9=function l(){return{audio:{width:"100%"},container:{alignItems:"center",display:"flex",width:"100%"}}},enhance$b=compose$2(withTranslation(),withStyles$2(styles$9),connect(mapStateToProps$a,null),withPlugins$1("AudioViewer"));const AudioViewer=enhance$b(AudioViewer$2),AudioViewer$1=Object.freeze(Object.defineProperty({__proto__:null,default:AudioViewer},Symbol.toStringTag,{value:"Module"}));function _classCallCheck$c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$d(d.key),d)}}function _createClass$c(l,o,u){return o&&_defineProperties$c(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$d(l){var o=_toPrimitive$d(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$d(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$a(l,o,u){return o=_getPrototypeOf$a(o),_possibleConstructorReturn$a(l,_isNativeReflectConstruct$a()?Reflect.construct(o,u||[],_getPrototypeOf$a(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$a(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$a(l)}function _assertThisInitialized$a(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$a(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$a=function(){return!!l})()}
157function _getPrototypeOf$a(l){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$a(l)}function _inherits$a(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$a(l,o)}function _setPrototypeOf$a(l,o){return _setPrototypeOf$a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$a(l,o)}var GalleryViewThumbnail$1=(function(l){function o(u){var d;return _classCallCheck$c(this,o),d=_callSuper$a(this,o,[u]),d.ref=React.createRef(),d.state={requestedAnnotations:!1},d.handleSelect=d.handleSelect.bind(d),d.handleKey=d.handleKey.bind(d),d.handleIntersection=d.handleIntersection.bind(d),d}return _inherits$a(o,l),_createClass$c(o,[{key:"componentDidMount",value:function(){var d=this.props.selected;if(d){var f;(f=this.ref.current)===null||f===void 0||f.scrollIntoView(!0)}}},{key:"handleSelect",value:function(){var d=this.props,f=d.canvas,p=d.selected,h=d.setCanvas,v=d.focusOnCanvas;p?v():h(f.id)}},{key:"handleKey",value:function(d){var f=this.props,p=f.canvas,h=f.setCanvas,v=f.focusOnCanvas;this.keys={enter:"Enter",space:" "},this.chars={enter:13,space:32};var g=d.key===this.keys.enter||d.which===this.chars.enter||d.key===this.keys.space||d.which===this.chars.space;g?v():h(p.id)}},{key:"handleIntersection",value:function(d){var f=d.isIntersecting,p=this.props,h=p.annotationsCount,v=p.requestCanvasAnnotations,g=this.state.requestedAnnotations;!f||h===void 0||h>0||g||(this.setState({requestedAnnotations:!0}),v())}},{key:"render",value:function(){var d=this.props,f=d.annotationsCount,p=d.searchAnnotationsCount,h=d.canvas,v=d.classes,g=d.config,m=d.selected,y=new MiradorCanvas$2(h);return React.createElement(ReactIntersectionObserver,{onChange:this.handleIntersection},React.createElement("div",{key:h.index,className:classNames(v.galleryViewItem,m?v.selected:"",p>0?v.hasAnnotations:""),onClick:this.handleSelect,onKeyUp:this.handleKey,ref:this.ref,role:"button",tabIndex:0},React.createElement(IIIFThumbnail,{resource:h,labelled:!0,variant:"outside",maxWidth:g.width,maxHeight:g.height,style:{margin:"0 auto",maxWidth:"".concat(Math.ceil(g.height*y.aspectRatio),"px")}},React.createElement("div",{className:v.chips},p>0&&React.createElement(Chip$1,{avatar:React.createElement(Avatar$1,{className:v.avatar,classes:{circle:v.avatarIcon}},React.createElement(SearchIcon,{fontSize:"small"})),label:p,className:classNames(v.searchChip),size:"small"}),(f||0)>0&&React.createElement(Chip$1,{avatar:React.createElement(Avatar$1,{className:v.avatar,classes:{circle:v.avatarIcon}},React.createElement(AnnotationIcon,{className:v.annotationIcon})),label:f,className:classNames(v.annotationsChip),size:"small"})))))}}])})(reactExports.Component);GalleryViewThumbnail$1.defaultProps={annotationsCount:void 0,config:{height:100,width:null},requestCanvasAnnotations:function l(){},searchAnnotationsCount:0,selected:!1};function ownKeys$2(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$2(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$2(Object(u),!0).forEach(function(d){_defineProperty$2(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$2(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$2(l,o,u){return(o=_toPropertyKey$c(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toPropertyKey$c(l){var o=_toPrimitive$c(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$c(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}
157return(o==="string"?String:Number)(l)}var styles$8=function l(o){return{annotationIcon:{height:"1rem",width:"1rem"},annotationsChip:_objectSpread$2({},o.typography.caption),avatar:{backgroundColor:"transparent"},chips:{opacity:.875,position:"absolute",right:0,textAlign:"right",top:0},galleryViewItem:{"&$hasAnnotations":{border:"2px solid ".concat(o.palette.action.selected)},"&$selected,&$selected$hasAnnotations":{border:"2px solid ".concat(o.palette.primary.main)},"&:focus":{outline:"none"},"&:hover":{backgroundColor:o.palette.action.hover},border:"2px solid transparent",cursor:"pointer",display:"inline-block",margin:"".concat(o.spacing(1),"px ").concat(o.spacing(.5),"px"),maxHeight:function(d){return d.config.height+45},minWidth:"60px",overflow:"hidden",padding:o.spacing(.5),position:"relative",width:"min-content"},hasAnnotations:{},searchChip:_objectSpread$2(_objectSpread$2({},o.typography.caption),{},{"&$selected $avatar":{backgroundColor:o.palette.highlights.primary},marginTop:2}),selected:{}}},mapStateToProps$9=function l(o,u){var d=u.canvas,f=u.windowId,p=getCurrentCanvas$1(o,{windowId:f}),h=getSearchAnnotationsForWindow$1(o,{windowId:f}),v=flatten(h.map(function(m){return m.resources})).filter(function(m){return m.targetId===d.id}),g=getCompanionWindowsForContent$1(o,{content:"annotations",windowId:f}).length>0;return{annotationsCount:(function(){if(g){var m=getPresentAnnotationsOnSelectedCanvases$1(o,{canvasId:d.id});return m.reduce(function(y,b){return y+b.resources.filter(function(w){return w.targetId===d.id}).length},0)}})(),config:getConfig$1(o).galleryView,searchAnnotationsCount:v.length,selected:p&&p.id===d.id}},mapDispatchToProps$5=function l(o,u){var d=u.canvas;u.id;var f=u.windowId;return{focusOnCanvas:function(){return o(setWindowViewType$1(f,"single"))},requestCanvasAnnotations:function(){return o(requestCanvasAnnotations$1(f,d.id))},setCanvas:function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return o(setCanvas$1.apply(actions$2,[f].concat(v)))}}},enhance$a=compose$2(connect(mapStateToProps$9,mapDispatchToProps$5),withStyles$2(styles$8));const GalleryViewThumbnail=enhance$a(GalleryViewThumbnail$1);function _classCallCheck$b(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$b(d.key),d)}}function _createClass$b(l,o,u){return o&&_defineProperties$b(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$b(l){var o=_toPrimitive$b(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$b(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$9(l,o,u){return o=_getPrototypeOf$9(o),_possibleConstructorReturn$9(l,_isNativeReflectConstruct$9()?Reflect.construct(o,u||[],_getPrototypeOf$9(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$9(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$9(l)}function _assertThisInitialized$9(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$9(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$9=function(){return!!l})()}function _getPrototypeOf$9(l){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$9(l)}function _inherits$9(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$9(l,o)}function _setPrototypeOf$9(l,o){return _setPrototypeOf$9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$9(l,o)}var GalleryView$2=(function(l){function o(){return _classCallCheck$b(this,o),_callSuper$9(this,o,arguments)}return _inherits$9(o,l),_createClass$b(o,[{key:"render",value:function(){var d=this.props,f=d.canvase
157s,p=d.classes,h=d.viewingDirection,v=d.windowId,g=h==="right-to-left"?"rtl":"ltr";return React.createElement(Paper$1,{component:"section",dir:g,square:!0,elevation:0,className:p.galleryContainer,id:"".concat(v,"-gallery")},f.map(function(m){return React.createElement(GalleryViewThumbnail,{key:m.id,windowId:v,canvas:m})}))}}])})(reactExports.Component);GalleryView$2.defaultProps={classes:{},viewingDirection:""};var mapStateToProps$8=function l(o,u){var d=u.windowId;return{canvases:getCanvases$1(o,{windowId:d}),viewingDirection:getSequenceViewingDirection$1(o,{windowId:d})}},styles$7=function l(o){return{galleryContainer:{alignItems:"flex-start",display:"flex",flexDirection:"row",flexWrap:"wrap",overflowX:"hidden",overflowY:"scroll",padding:"50px 0 50px 20px",width:"100%"}}},enhance$9=compose$2(withStyles$2(styles$7),connect(mapStateToProps$8),withPlugins$1("GalleryView"));const GalleryView=enhance$9(GalleryView$2),GalleryView$1=Object.freeze(Object.defineProperty({__proto__:null,default:GalleryView},Symbol.toStringTag,{value:"Module"}));var ListSharp={},hasRequiredListSharp;function requireListSharp(){if(hasRequiredListSharp)return ListSharp;hasRequiredListSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(ListSharp,"__esModule",{value:!0}),ListSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return ListSharp.default=f,ListSharp}var ListSharpExports=requireListSharp();const ListSharpIcon=getDefaultExportFromCjs(ListSharpExports);function _classCallCheck$a(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$a(d.key),d)}}function _createClass$a(l,o,u){return o&&_defineProperties$a(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$a(l){var o=_toPrimitive$a(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$a(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$8(l,o,u){return o=_getPrototypeOf$8(o),_possibleConstructorReturn$8(l,_isNativeReflectConstruct$8()?Reflect.construct(o,u||[],_getPrototypeOf$8(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$8(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$8(l)}function _assertThisInitialized$8(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$8(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$8=function(){return!!l})()}function _getPrototypeOf$8(l){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$8(l)}function _inherits$8(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$8(l,o)}function _setPrototypeOf$8(l,o){return _setPrototypeOf$8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$8(l,o)}var SelectCollection$2=(function(l){function o(u){var d;return _classCallCheck$a(this,o),d=_callSuper$8(this,o,[u]),d.openCollectionDialog=d.openCollectionDialog.bind(d),d}
157return _inherits$8(o,l),_createClass$a(o,[{key:"openCollectionDialog",value:function(){var d=this.props,f=d.collectionPath,p=d.manifestId,h=d.showCollectionDialog,v=d.windowId;h(p,f.slice(0,-1),v)}},{key:"render",value:function(){var d=this.props.t;return React.createElement(StyledGrid,{container:!0,justifyContent:"center",alignItems:"center"},React.createElement(StyledGrid,{container:!0,direction:"column",alignItems:"center"},React.createElement(Typography$1,{variant:"h4",paragraph:!0},React.createElement("em",null,d("noItemSelected"))),React.createElement(Button$1,{color:"primary",variant:"contained",onClick:this.openCollectionDialog,startIcon:React.createElement(ListSharpIcon,null)},d("showCollection"))))}}])})(reactExports.Component);SelectCollection$2.defaultProps={collectionPath:[],manifestId:null,t:function l(){},windowId:null};var mapStateToProps$7=function l(o,u){var d=u.windowId,f=getWindow$2(o,{windowId:d})||{},p=f.collectionPath,h=f.manifestId;return{collectionPath:p,manifestId:h}},mapDispatchToProps$4={showCollectionDialog:showCollectionDialog$1},styles$6=function l(o){return{}},enhance$8=compose$2(withTranslation(),withStyles$2(styles$6),connect(mapStateToProps$7,mapDispatchToProps$4),withPlugins$1("SelectCollection"));const SelectCollection=enhance$8(SelectCollection$2),SelectCollection$1=Object.freeze(Object.defineProperty({__proto__:null,default:SelectCollection},Symbol.toStringTag,{value:"Module"}));var AddCircleOutlineSharp={},hasRequiredAddCircleOutlineSharp;function requireAddCircleOutlineSharp(){if(hasRequiredAddCircleOutlineSharp)return AddCircleOutlineSharp;hasRequiredAddCircleOutlineSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(AddCircleOutlineSharp,"__esModule",{value:!0}),AddCircleOutlineSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return AddCircleOutlineSharp.default=f,AddCircleOutlineSharp}var AddCircleOutlineSharpExports=requireAddCircleOutlineSharp();const AddCircleIcon=getDefaultExportFromCjs(AddCircleOutlineSharpExports);var RemoveCircleOutlineSharp={},hasRequiredRemoveCircleOutlineSharp;function requireRemoveCircleOutlineSharp(){if(hasRequiredRemoveCircleOutlineSharp)return RemoveCircleOutlineSharp;hasRequiredRemoveCircleOutlineSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(RemoveCircleOutlineSharp,"__esModule",{value:!0}),RemoveCircleOutlineSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return RemoveCircleOutlineSharp.default=f,RemoveCircleOutlineSharp}var RemoveCircleOutlineSharpExports=requireRemoveCircleOutlineSharp();const RemoveCircleIcon=getDefaultExportFromCjs(RemoveCircleOutlineSharpExports);function RestoreZoomIcon(l){return React.createElement(SvgIcon$2,l,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M6,15H9v3h2V13H6Zm9-6V6H13v5h5V9Z"}),React.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"})))}function _classCallCheck$9(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$9(d.key),d)}}function _createClass$9(l,o,u){return o&&_defineProperties$9(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$9(l){var o=_toPrimitive$9(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$9(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$7(l,o,u){return o=_getPrototypeOf$7(o),_possibleConstructorReturn$7(l,_isNativeReflectConstruct$7()?Reflect.construct(o,u||[],_getPrototypeOf$7(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$7(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(l)}function _assertThisInitialized$7(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$7(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$7=function(){return!!l})()}
157function _getPrototypeOf$7(l){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$7(l)}function _inherits$7(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$7(l,o)}function _setPrototypeOf$7(l,o){return _setPrototypeOf$7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$7(l,o)}var ZoomControls$1=(function(l){function o(u){var d;return _classCallCheck$9(this,o),d=_callSuper$7(this,o,[u]),d.handleZoomInClick=d.handleZoomInClick.bind(d),d.handleZoomOutClick=d.handleZoomOutClick.bind(d),d}return _inherits$7(o,l),_createClass$9(o,[{key:"handleZoomInClick",value:function(){var d=this.props,f=d.windowId,p=d.updateViewport,h=d.viewer;p(f,{zoom:h.zoom*2})}},{key:"handleZoomOutClick",value:function(){var d=this.props,f=d.windowId,p=d.updateViewport,h=d.viewer;p(f,{zoom:h.zoom/2})}},{key:"render",value:function(){var d=this.props,f=d.displayDivider,p=d.showZoomControls,h=d.classes,v=d.t,g=d.zoomToWorld;return p?React.createElement("div",{className:h.zoom_controls},React.createElement(MiradorMenuButton$3,{"aria-label":v("zoomIn"),onClick:this.handleZoomInClick},React.createElement(AddCircleIcon,null)),React.createElement(MiradorMenuButton$3,{"aria-label":v("zoomOut"),onClick:this.handleZoomOutClick},React.createElement(RemoveCircleIcon,null)),React.createElement(MiradorMenuButton$3,{"aria-label":v("zoomReset"),onClick:function(){return g(!1)}},React.createElement(RestoreZoomIcon,null)),f&&React.createElement("span",{className:h.divider})):React.createElement(React.Fragment,null)}}])})(reactExports.Component);ZoomControls$1.defaultProps={displayDivider:!0,showZoomControls:!1,t:function l(o){return o},updateViewport:function l(){},viewer:{},windowId:""};var mapStateToProps$6=function l(o,u){var d=u.windowId;return{showZoomControls:getShowZoomControlsConfig$1(o),viewer:getViewer$1(o,{windowId:d})}},mapDispatchToProps$3={updateViewport:updateViewport$1},styles$5=function l(o){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"}}},enhance$7=compose$2(withTranslation(),withStyles$2(styles$5),connect(mapStateToProps$6,mapDispatchToProps$3),withPlugins$1("ZoomControls"));const ZoomControls=enhance$7(ZoomControls$1);function _classCallCheck$8(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$8(d.key),d)}}function _createClass$8(l,o,u){return o&&_defineProperties$8(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$8(l){var o=_toPrimitive$8(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$8(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$6(l,o,u){return o=_getPrototypeOf$6(o),_possibleConstructorReturn$6(l,_isNativeReflectConstruct$6()?Reflect.construct(o,u||[],_getPrototypeOf$6(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$6(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$6(l)}function _assertThisInitialized$6(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$6(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$6=function(){return!!l})()}
157function _getPrototypeOf$6(l){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$6(l)}function _inherits$6(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$6(l,o)}function _setPrototypeOf$6(l,o){return _setPrototypeOf$6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$6(l,o)}var ViewerInfo$1=(function(l){function o(){return _classCallCheck$8(this,o),_callSuper$6(this,o,arguments)}return _inherits$6(o,l),_createClass$8(o,[{key:"render",value:function(){var d=this.props,f=d.canvasCount,p=d.canvasIndex,h=d.canvasLabel,v=d.classes,g=d.t;return React.createElement("div",{className:classNames(ns$1("osd-info"),v.osdInfo)},React.createElement(Typography$1,{display:"inline",role:"status",variant:"caption",className:ns$1("canvas-count")},g("pagination",{current:p+1,total:f})),React.createElement(Typography$1,{display:"inline",role:"status",variant:"caption",className:ns$1("canvas-label")},h&&" • ".concat(h)))}}])})(reactExports.Component);ViewerInfo$1.defaultProps={canvasLabel:void 0,t:function l(){}};var mapStateToProps$5=function l(o,u){var d=u.windowId,f=getCanvases$1(o,{windowId:d}),p=getCanvasIndex$1(o,{windowId:d}),h=(getCurrentCanvas$1(o,{windowId:d})||{}).id;return{canvasCount:f.length,canvasIndex:p,canvasLabel:getCanvasLabel$1(o,{canvasId:h,windowId:d})}},styles$4={osdInfo:{order:2,overflow:"hidden",paddingBottom:3,textOverflow:"ellipsis",unicodeBidi:"plaintext",whiteSpace:"nowrap",width:"100%"}},enhance$6=compose$2(withStyles$2(styles$4),withTranslation(),connect(mapStateToProps$5,null),withPlugins$1("ViewerInfo"));const ViewerInfo=enhance$6(ViewerInfo$1);var PlayCircleOutlineSharp={},hasRequiredPlayCircleOutlineSharp;function requirePlayCircleOutlineSharp(){if(hasRequiredPlayCircleOutlineSharp)return PlayCircleOutlineSharp;hasRequiredPlayCircleOutlineSharp=1;var l=requireInteropRequireDefault(),o=requireInteropRequireWildcard();Object.defineProperty(PlayCircleOutlineSharp,"__esModule",{value:!0}),PlayCircleOutlineSharp.default=void 0;var u=o(requireReact()),d=l(requireCreateSvgIcon()),f=(0,d.default)(u.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");return PlayCircleOutlineSharp.default=f,PlayCircleOutlineSharp}var PlayCircleOutlineSharpExports=requirePlayCircleOutlineSharp();const NavigationIcon=getDefaultExportFromCjs(PlayCircleOutlineSharpExports);function _classCallCheck$7(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$7(d.key),d)}}function _createClass$7(l,o,u){return o&&_defineProperties$7(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$7(l){var o=_toPrimitive$7(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$7(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$5(l,o,u){return o=_getPrototypeOf$5(o),_possibleConstructorReturn$5(l,_isNativeReflectConstruct$5()?Reflect.construct(o,u||[],_getPrototypeOf$5(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$5(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(l)}function _assertThisInitialized$5(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$5(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$5=function(){return!!l})()}
157function _getPrototypeOf$5(l){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$5(l)}function _inherits$5(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$5(l,o)}function _setPrototypeOf$5(l,o){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$5(l,o)}var ViewerNavigation$1=(function(l){function o(){return _classCallCheck$7(this,o),_callSuper$5(this,o,arguments)}return _inherits$5(o,l),_createClass$7(o,[{key:"render",value:function(){var d=this.props,f=d.hasNextCanvas,p=d.hasPreviousCanvas,h=d.setNextCanvas,v=d.setPreviousCanvas,g=d.t,m=d.classes,y=d.viewingDirection,b="ltr",w={},E={};switch(y){case"top-to-bottom":w={transform:"rotate(270deg)"},E={transform:"rotate(90deg)"};break;case"bottom-to-top":w={transform:"rotate(90deg)"},E={transform:"rotate(270deg)"};break;case"right-to-left":b="rtl",w={},E={transform:"rotate(180deg)"};break;default:w={transform:"rotate(180deg)"},E={}}return React.createElement("div",{className:classNames(ns$1("osd-navigation"),m.osdNavigation),dir:b},React.createElement(MiradorMenuButton$3,{"aria-label":g("previousCanvas"),className:ns$1("previous-canvas-button"),disabled:!p,onClick:function(){p&&v(
157)}},React.createElement(NavigationIcon,{style:w})),React.createElement(MiradorMenuButton$3,{"aria-label":g("nextCanvas"),className:ns$1("next-canvas-button"),disabled:!f,onClick:function(){f&&h()}},React.createElement(NavigationIcon,{style:E})))}}])})(reactExports.Component);ViewerNavigation$1.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function l(){},setPreviousCanvas:function l(){},viewingDirection:""};var mapStateToProps$4=function l(o,u){var d=u.windowId;return{hasNextCanvas:!!getNextCanvasGrouping$1(o,{windowId:d}),hasPreviousCanvas:!!getPreviousCanvasGrouping$1(o,{windowId:d}),viewingDirection:getSequenceViewingDirection$1(o,{windowId:d})}},mapDispatchToProps$2=function l(o,u){var d=u.windowId;return{setNextCanvas:function(){return o(setNextCanvas$1(d))},setPreviousCanvas:function(){return o(setPreviousCanvas$1(d))}}},styles$3={osdNavigation:{order:1}},enhance$5=compose$2(withStyles$2(styles$3),withTranslation(),connect(mapStateToProps$4,mapDispatchToProps$2),withPlugins$1("ViewerNavigation"));const ViewerNavigation=enhance$5(ViewerNavigation$1);function _classCallCheck$6(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$6(d.key),d)}}function _createClass$6(l,o,u){return o&&_defineProperties$6(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$6(l){var o=_toPrimitive$6(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$6(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$4(l,o,u){return o=_getPrototypeOf$4(o),_possibleConstructorReturn$4(l,_isNativeReflectConstruct$4()?Reflect.construct(o,u||[],_getPrototypeOf$4(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$4(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$4(l)}function _assertThisInitialized$4(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$4(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$4=function(){return!!l})()}function _getPrototypeOf$4(l){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$4(l)}function _inherits$4(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$4(l,o)}function _setPrototypeOf$4(l,o){return _setPrototypeOf$4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$4(l,o)}var WindowCanvasNavigationControls$1=(function(l){function o(){return _classCallCheck$6(this,o),_callSuper$4(this,o,arguments)}return _inherits$4(o,l),_createClass$6(o,[{key:"canvasNavControlsAreStacked",value:function(){var d=this.props.size;return d&&d.width&&d.width<=253}},{key:"render",value:function(){var d=this.props,f=d.classes,p=d.visible,h=d.windowId,v=d.zoomToWorld;return p?React.createElement(Paper$1,{square:!0,className:classNames(f.controls,ns$1("canvas-nav"),f.canvasNav,this.canvasNavControlsAreStacked()?ns$1("canvas-nav-stacked"):null,this.canvasNavControlsAreStacked()?f.canvasNavStacked:null),elevation:0},React.createElement(ZoomControls,{displayDivider:!this.canvasNavControlsAreStacked(),windowId:h,zoomToWorld:v}),React.createElement(ViewerNavigation,{windowId:h}),React.createElement(ViewerInfo,{windowId:h}),React.createElement(PluginHook$1,this.props)):React.createElement(Typography$1,{variant:"srOnly",component:"div"},React.createElement(ViewerInfo,{windowId:h}))}}])})(reactExports.Component);WindowCanvasNavigationControls$1.defaultProps={classes:{},visible:!0};var mapStateToProps$3=function l(o,u){var d=u.windowId;return{visible:getWorkspace$1(o).focusedWindowId===d}},styles$2=function l(o){return{canvasNav:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",textAlign:"center"},canvasNavStacked:{flexDirection:"column"}
157,controls:{backgroundColor:colorManipulatorExports.alpha(o.palette.background.paper,.5),bottom:0,position:"absolute",width:"100%",zIndex:50}}},enhance$4=compose$2(connect(mapStateToProps$3),withStyles$2(styles$2),reactSizemeExports.withSize(),withPlugins$1("WindowCanvasNavigationControls"));const WindowCanvasNavigationControls=enhance$4(WindowCanvasNavigationControls$1);function _classCallCheck$5(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$5(d.key),d)}}function _createClass$5(l,o,u){return o&&_defineProperties$5(l.prototype,o),u&&_defineProperties$5(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$5(l){var o=_toPrimitive$5(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$5(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$3(l,o,u){return o=_getPrototypeOf$3(o),_possibleConstructorReturn$3(l,_isNativeReflectConstruct$3()?Reflect.construct(o,u||[],_getPrototypeOf$3(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$3(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$3(l)}function _assertThisInitialized$3(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$3(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$3=function(){return!!l})()}function _getPrototypeOf$3(l){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$3(l)}function _inherits$3(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$3(l,o)}function _setPrototypeOf$3(l,o){return _setPrototypeOf$3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$3(l,o)}var OSDViewer=reactExports.lazy(function(){return __vitePreload(()=>Promise.resolve().then(()=>OpenSeadragonViewer$1),void 0)}),WindowViewer$2=(function(l){function o(u){var d;return _classCallCheck$5(this,o),d=_callSuper$3(this,o,[u]),d.state={},d}return _inherits$3(o,l),_createClass$5(o,[{key:"render",value:function(){var d=this.props.windowId,f=this.state.hasError;return f?React.createElement(React.Fragment,null):React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(OSDViewer,{windowId:d},React.createElement(WindowCanvasNavigationControls,{windowId:d})))}}],[{key:"getDerivedStateFromError",value:function(d){return{hasError:!0}}}])})(reactExports.Component),enhance$3=compose$2(withPlugins$1("WindowViewer"));const WindowViewer=enhance$3(WindowViewer$2),WindowViewer$1=Object.freeze(Object.defineProperty({__proto__:null,default:WindowViewer},Symbol.toStringTag,{value:"Module"}));function _classCallCheck$4(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$4(d.key),d)}}function _createClass$4(l,o,u){return o&&_defineProperties$4(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$4(l){var o=_toPrimitive$4(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$4(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$2(l,o,u){return o=_getPrototypeOf$2(o),_possibleConstructorReturn$2(l,_isNativeReflectConstruct$2()?Reflect.construct(o,u||[],_getPrototypeOf$2(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$2(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$2(l)}function _assertThisInitialized$2(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$2(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$2=function(){return!!l})()}function _getPrototypeOf$2(l){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o
157)},_getPrototypeOf$2(l)}function _inherits$2(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$2(l,o)}function _setPrototypeOf$2(l,o){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$2(l,o)}var VideoViewer$2=(function(l){function o(){return _classCallCheck$4(this,o),_callSuper$2(this,o,arguments)}return _inherits$2(o,l),_createClass$4(o,[{key:"render",value:function(){var d=this.props,f=d.captions,p=d.classes,h=d.videoOptions,v=d.videoResources;return React.createElement("div",{className:p.container},React.createElement("video",Object.assign({className:p.video},h),v.map(function(g){return React.createElement(reactExports.Fragment,{key:g.id},React.createElement("source",{src:g.id,type:g.getFormat()}))}),f.map(function(g){return React.createElement(reactExports.Fragment,{key:g.id},React.createElement("track",{src:g.id,label:g.getDefaultLabel(),srcLang:g.getProperty("language")}))})))}}])})(reactExports.Component);VideoViewer$2.defaultProps={captions:[],videoOptions:{},videoResources:[]};var mapStateToProps$2=function l(o,u){var d=u.windowId;return{captions:getVisibleCanvasCaptions$1(o,{windowId:d})||[],videoOptions:getConfig$1(o).videoOptions,videoResources:getVisibleCanvasVideoResources$1(o,{windowId:d})||[]}},styles$1=function l(){return{container:{alignItems:"center",display:"flex",width:"100%"},video:{maxHeight:"100%",width:"100%"}}},enhance$2=compose$2(withTranslation(),withStyles$2(styles$1),connect(mapStateToProps$2,null),withPlugins$1("VideoViewer"));const VideoViewer=enhance$2(VideoViewer$2),VideoViewer$1=Object.freeze(Object.defineProperty({__proto__:null,default:VideoViewer},Symbol.toStringTag,{value:"Module"}));var _baseXor,hasRequired_baseXor;function require_baseXor(){if(hasRequired_baseXor)return _baseXor;hasRequired_baseXor=1;var l=require_baseDifference(),o=require_baseFlatten(),u=require_baseUniq();function d(f,p,h){var v=f.length;if(v<2)return v?u(f[0]):[];for(var g=-1,m=Array(v);++g<v;)for(var y=f[g],b=-1;++b<v;)b!=g&&(m[g]=l(m[g]||y,f[b],p,h));return u(o(m,1),p,h)}return _baseXor=d,_baseXor}var xor_1,hasRequiredXor;function requireXor(){if(hasRequiredXor)return xor_1;hasRequiredXor=1;var l=require_arrayFilter(),o=require_baseRest(),u=require_baseXor(),d=requireIsArrayLikeObject(),f=o(function(p){return u(l(p,d))});return xor_1=f,xor_1}var xorExports=requireXor();
157const xor=getDefaultExportFromCjs(xorExports);function _classCallCheck$3(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$3(d.key),d)}}function _createClass$3(l,o,u){return o&&_defineProperties$3(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$3(l){var o=_toPrimitive$3(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$3(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var OpenSeadragonCanvasOverlay=(function(){function l(o,u){_classCallCheck$3(this,l),this.viewer=o,this.ref=u,this.containerWidth=0,this.containerHeight=0,this.imgAspectRatio=1}return _createClass$3(l,[{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 OpenSeadragon.Point(0,0);var u=this.viewer.viewport.getBoundsNoRotateWithMargins(!0);this.viewportOrigin.x=u.x,this.viewportOrigin.y=u.y*this.imgAspectRatio,this.viewportWidth=u.width,this.viewportHeight=u.height*this.imgAspectRatio;var d=this.viewer.world.getItemAt(0);d&&(this.imgWidth=d.source.dimensions.x,this.imgHeight=d.source.dimensions.y,this.imgAspectRatio=this.imgWidth/this.imgHeight)}},{key:"canvasUpdate",value:function(u){var d=this.viewer.viewport.getZoom(!0),f=this.viewer.world.getItemAt(0);if(f){var p=f.viewportToImageZoom(d),h=(this.viewportOrigin.x/this.imgWidth-this.viewportOrigin.x)/this.viewportWidth*this.containerWidth,v=(this.viewportOrigin.y/this.imgHeight-this.viewportOrigin.y)/this.viewportHeight*this.containerHeight;this.clearBeforeRedraw&&this.clear(),this.context2d.translate(h,v),this.context2d.scale(p,p);var g=this.viewer.viewport.getCenter(),m=this.viewer.viewport.getFlip();m&&(this.context2d.translate(g.x*2,0),this.context2d.scale(-1,1));var y=this.viewer.viewport.getRotation();y!==0&&(this.context2d.translate(g.x,g.y),this.context2d.rotate(y*Math.PI/180),this.context2d.translate(-1*g.x,-1*g.y)),u(),this.context2d.setTransform(1,0,0,1,0,0)}}}])})();function _toConsumableArray$2(l){return _arrayWithoutHoles$2(l)||_iterableToArray$2(l)||_unsupportedIterableToArray$2(l)||_nonIterableSpread$2()}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$2(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$2(l,o):void 0}}function _iterableToArray$2(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$2(l){if(Array.isArray(l))return _arrayLikeToArray$2(l)}function _arrayLikeToArray$2(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _classCallCheck$2(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$2(d.key),d)}}function _createClass$2(l,o,u){return o&&_defineProperties$2(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$2(l){var o=_toPrimitive$2(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$2(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var CanvasAnnotationDisplay=(function(){function l(o){var u=o.resource,d=o.palette,f=o.zoomRatio,p=o.offset,h=o.selected,v=o.hovered;_classCallCheck$2(this,l),this.resource=u,this.palette=d,this.zoomRatio=f,this.offset=p,this.selected=h,this.hovered=v}return _createClass$2(l,[{key:"toContext",value:function(u){this.context=u,this.resource.svgSelector?this.svgContext():this.resource.fragmentSelector&&this.fragmentContext()}},{key:"svgString",get:function(){return this.resource.svgSelector.value}},{key:"svgContext",value:function(){var u=this,d;this.hovered?d=this.palette.hovered:this.selected?d=this.palette.selected:d=this.palette.default,d.globalAlpha!==0&&_toConsumableArray$2(this.svgPaths).forEac
158h(function(f){u.context.save(),u.context.translate(u.offset.x,u.offset.y);var p=new Path2D(f.attributes.d.nodeValue);u.context.strokeStyle=u.color,f.attributes["stroke-dasharray"]&&u.context.setLineDash(f.attributes["stroke-dasharray"].nodeValue.split(","));var h={fill:"fillStyle",stroke:"strokeStyle","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterlimit","stroke-width":"lineWidth"};Object.keys(h).forEach(function(v){f.attributes[v]&&(u.context[h[v]]=f.attributes[v].nodeValue)}),u.context.lineWidth/=u.zoomRatio,(u.selected||u.hovered)&&(u.context.strokeStyle=d.strokeStyle||d.fillStyle),f.attributes["stroke-opacity"]?u.context.globalAlpha=d.globalAlpha*f.attributes["stroke-opacity"].nodeValue:u.context.globalAlpha=d.globalAlpha,u.context.stroke(p),f.attributes.fill&&f.attributes.fill.nodeValue!=="none"&&(f.attributes["fill-opacity"]?u.context.globalAlpha=d.globalAlpha*f.attributes["fill-opacity"].nodeValue:u.context.globalAlpha=d.globalAlpha,u.context.fill(p)),u.context.restore()})}},{key:"fragmentContext",value:function(){var u=this,d=this.resource.fragmentSelector;d[0]+=this.offset.x,d[1]+=this.offset.y;var f;if(this.selected?f=this.palette.selected:this.hovered?f=this.palette.hovered:f=this.palette.default,this.context.save(),Object.keys(f).forEach(function(v){u.context[v]=f[v]}),f.globalAlpha!==0){if(f.fillStyle){var p;(p=this.context).fillRect.apply(p,_toConsumableArray$2(d))}else{var h;this.context.lineWidth=1/this.zoomRatio,(h=this.context).strokeRect.apply(h,_toConsumableArray$2(d))}this.context.restore()}}},{key:"svgPaths",get:function(){var u=new DOMParser,d=u.parseFromString(this.svgString,"text/xml");return d.getElementsByTagName("path")}}])})();function ownKeys$1(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread$1(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1(Object(u),!0).forEach(function(d){_defineProperty$1(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys$1(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty$1(l,o,u){return(o=_toPropertyKey$1(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _toConsumableArray$1(l){return _arrayWithoutHoles$1(l)||_iterableToArray$1(l)||_unsupportedIterableToArray$1(l)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
159In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$1(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles$1(l){if(Array.isArray(l))return _arrayLikeToArray$1(l)}function _slicedToArray(l,o){return _arrayWithHoles(l)||_iterableToArrayLimit(l,o)||_unsupportedIterableToArray$1(l,o)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
160In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray$1(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray$1(l,o):void 0}}function _arrayLikeToArray$1(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function _iterableToArrayLimit(l,o){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var d,f,p,h,v=[],g=!0,m=!1;try{if(p=(u=u.call(l)).next,o===0){if(Object(u)!==u)return;g=!1}else for(;!(g=(d=p.call(u)).done)&&(v.push(d.value),v.length!==o);g=!0);}catch(y){m=!0,f=y}
160finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(m)throw f}}return v}}function _arrayWithHoles(l){if(Array.isArray(l))return l}function _classCallCheck$1(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey$1(d.key),d)}}function _createClass$1(l,o,u){return o&&_defineProperties$1(l.prototype,o),u&&_defineProperties$1(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey$1(l){var o=_toPrimitive$1(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive$1(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper$1(l,o,u){return o=_getPrototypeOf$1(o),_possibleConstructorReturn$1(l,_isNativeReflectConstruct$1()?Reflect.construct(o,u||[],_getPrototypeOf$1(l).constructor):o.apply(l,u))}function _possibleConstructorReturn$1(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(l)}function _assertThisInitialized$1(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct$1(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1=function(){return!!l})()}function _getPrototypeOf$1(l){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf$1(l)}function _inherits$1(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf$1(l,o)}function _setPrototypeOf$1(l,o){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf$1(l,o)}var AnnotationsOverlay$1=(function(l){function o(u){var d;return _classCallCheck$1(this,o),d=_callSuper$1(this,o,[u]),d.ref=React.createRef(),d.osdCanvasOverlay=null,d.updateCanvas=function(){},d.onUpdateViewport=d.onUpdateViewport.bind(d),d.onCanvasClick=d.onCanvasClick.bind(d),d.onCanvasMouseMove=debounce$2(d.onCanvasMouseMove.bind(d),10),d.onCanvasExit=d.onCanvasExit.bind(d),d}return _inherits$1(o,l),_createClass$1(o,[{key:"componentDidMount",value:function(){this.initializeViewer()}},{key:"componentDidUpdate",value:function(d){var f=this.props,p=f.drawAnnotations,h=f.drawSearchAnnotations,v=f.annotations,g=f.searchAnnotations,m=f.hoveredAnnotationIds,y=f.selectedAnnotationId,b=f.highlightAllAnnotations,w=f.viewer;this.initializeViewer();var E=!o.annotationsMatch(v,d.annotations),P=!o.annotationsMatch(g,d.searchAnnotations),C=xor(m,d.hoveredAnnotationIds).length>0;this.osdCanvasOverlay&&C&&(m.length>0?this.osdCanvasOverlay.canvasDiv.style.cursor="pointer":this.osdCanvasOverlay.canvasDiv.style.cursor="");var T=y!==d.selectedAnnotationId,O=p!==d.drawAnnotations||h!==d.drawSearchAnnotations||b!==d.highlightAllAnnotations;(P||E||T||C||O)&&(this.updateCanvas=this.canvasUpdateCallback(),w.forceRedraw())}},{key:"componentWillUnmount",value:function(){var d=this.props.viewer;d.removeHandler("canvas-click",this.onCanvasClick),d.removeHandler("canvas-exit",this.onCanvasExit),d.removeHandler("update-viewport",this.onUpdateViewport),d.removeHandler("mouse-move",this.onCanvasMouseMove)}},{key:"onCanvasClick",value:function(d){var f=this,p=this.props.canvasWorld,h=d.position,v=d.eventSource.viewport,g=v.pointFromPixel(h),m=p.canvasAtPoint(g);if(m){var y=p.canvasToWorldCoordinates(m.id),b=_slicedToArray(y,4);b[0],b[1];var w=b[2],E=b[3],P=this.annotationsAtPoint(m,g);if(P.length>0&&(d.preventDefaultAction=!0),P.length===1)this.toggleAnnotation(P[0].id);else if(P.length>0){var C=function(A){var D=Math.PI/180;return function(j){for(var M=0,N=0;N<360;N+=1){var q=Math.cos(N*D)*A+g.x,z=Math.sin(N*D)*A+g.y;f.isAnnotationAtPoint(j,m,{x:q,y:z})&&(M+=1)}return{anno:j,score:M}}},T=[],O=1;for(T=sortBy(P.map(C(O)),"score");O<Math.max(w,E)&&T[0].score===T[1].score;)O*=2,T=sortBy(P.map(C(O)),"score");this.toggleAnnotation(T[0].anno.id)}}}},{key:"onCanvasMouseMove",value:function(d){var f=this.props,p=f.annotations,h=f.canvasWorld,v=f.hoverAnnotation,g=f.hoveredAnnotationIds,m=f.searchAnnotations,y=f.viewer,b=f.windowId;if(!(p.length===0&&m.length===0)){var w=d.position,E=y.viewport.pointFromPixel(w),P=h.canvasAtPoint(E);if(!P){v(b,[]);return}var C=this.annotationsAtPoint(P,E);xor(g,C.map(function(T){return T.id})).length>0&&v(b,C.map(function(T){return T.id}))}}},{key:"onCanvasExit",value:function(d){var f=this.props,p=f.hoverAnnotation,h=f.
160windowId;this.onCanvasMouseMove.cancel(),p(h,[])}},{key:"onUpdateViewport",value:function(d){this.updateCanvas()}},{key:"initializeViewer",value:function(){var d=this.props.viewer;d&&(this.osdCanvasOverlay||(this.osdCanvasOverlay=new OpenSeadragonCanvasOverlay(d,this.ref),d.addHandler("canvas-click",this.onCanvasClick),d.addHandler("canvas-exit",this.onCanvasExit),d.addHandler("update-viewport",this.onUpdateViewport),d.addHandler("mouse-move",this.onCanvasMouseMove),this.updateCanvas=this.canvasUpdateCallback()))}},{key:"canvasUpdateCallback",value:function(){var d=this;return function(){d.osdCanvasOverlay.clear(),d.osdCanvasOverlay.resize(),d.osdCanvasOverlay.canvasUpdate(d.renderAnnotations.bind(d))}}},{key:"isAnnotationAtPoint",value:function(d,f,p){var h=this.props.canvasWorld,v=h.canvasToWorldCoordinates(f.id),g=_slicedToArray(v,2),m=g[0],y=g[1],b=p.x-m,w=p.y-y;if(d.svgSelector){var E=this.osdCanvasOverlay.context2d,P=new CanvasAnnotationDisplay({resource:d}),C=P.svgPaths;return _toConsumableArray$1(C).some(function(j){return E.isPointInPath(new Path2D(j.attributes.d.nodeValue),b,w)})}if(d.fragmentSelector){var T=_slicedToArray(d.fragmentSelector,4),O=T[0],x=T[1],A=T[2],D=T[3];return O<=b&&b<=O+A&&x<=w&&w<=x+D}return!1}},{key:"annotationsAtPoint",value:function(d,f){var p=this,h=this.props,v=h.annotations,g=h.searchAnnotations,m=[].concat(_toConsumableArray$1(v),_toConsumableArray$1(g)),y=flatten(m.map(function(b){return b.resources})).filter(function(b){return d.id!==b.targetId?!1:p.isAnnotationAtPoint(b,d,f)});return y}},{key:"toggleAnnotation",value:function(d){var f=this.props,p=f.selectedAnnotationId,h=f.selectAnnotation,v=f.deselectAnnotation,g=f.windowId;p===d?v(g,d):h(g,d)}},{key:"annotationsToContext",value:function(d,f){var p=this.props,h=p.highlightAllAnnotations,v=p.hoveredAnnotationIds,g=p.selectedAnnotationId,m=p.canvasWorld,y=p.viewer,b=this.osdCanvasOverlay.context2d,w=y.viewport.getZoom(!0)/y.viewport.getMaxZoom();d.forEach(function(E){E.resources.forEach(function(P){if(m.canvasIds.includes(P.targetId)){var C=m.offsetByCanvas(P.targetId),T=new CanvasAnnotationDisplay({hovered:v.includes(P.id),offset:C,palette:_objectSpread$1(_objectSpread$1({},f),{},{default:_objectSpread$1(_objectSpread$1({},f.default),!h&&f.hidden)}),resource:P,selected:g===P.id,zoomRatio:w});T.toContext(b)}})})}},{key:"renderAnnotations",value:function(){var d=this.props,f=d.annotations,p=d.drawAnnotations,h=d.drawSearchAnnotations,v=d.searchAnnotations,g=d.palette;h&&this.annotationsToContext(v,g.search),p&&this.annotationsToContext(f,g.annotations)}},{key:"render",value:function(){var d=this.props.viewer;return d?ReactDOM.createPortal(React.createElement("div",{ref:this.ref,style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"}},React.createElement("canvas",null)),d.canvas):React.createElement(React.Fragment,null)}}],[{key:"annotationsMatch",value:function(d,f){return!d&&!f?!0:d&&!f||!d&&f?!1:d.length===0&&f.length===0?!0:d.length!==f.length?!1:d.every(function(p,h){var v=p.resources.map(function(m){return m.id}),g=f[h].resources.map(function(m){return m.id});return v.length===0&&g.length===0?!0:v.length!==g.length?!1:!!(p.id===f[h].id&&isEqual$3(v,g))})}}])})(reactExports.Component);AnnotationsOverlay$1.defaultProps={annotations:[],deselectAnnotation:function l(){},drawAnnotations:!0,drawSearchAnnotations:!0,highlightAllAnnotations:!1,hoverAnnotation:function l(){},hoveredAnnotationIds:[],palette:{},searchAnnotations:[],selectAnnotation:function l(){},selectedAnnotationId:void 0,viewer:null};var mapStateToProps$1=function l(o,u){var d=u.windowId;return{annotations:getPresentAnnotationsOnSelectedCanvases$1(o,{windowId:d}),canvasWorld:getCurrentCanvasWorld$1(o,{windowId:d}),drawAnnotations:getConfig$1(o).window.forceDrawAnnotations||getCompanionWindowsForContent$1(o,{content:"annotations",windowId:d}).length>0,drawSearchAnnotations:getConfig$1(o).window.forceDrawAnnotations||getCompanionWindowsForContent$1(o,{content:"search",windowId:d}).length>0,highlightAllAnnotations:getWindow$2(o,{windowId:d}).highlightAllAnnotations,hoveredAnnotationIds:getWindow$2(o,{windowId:d}).hoveredAnnotationIds,palette:getTheme$1(o).palette,searchAnnotations:getSearchAnnotationsForWindow$1(o,{windowId:d}),selectedAnnotationId:getSelectedAnnotationId$1(o,{windowId:d})}},mapDispatchToProps$1={deselectAnnotation:deselectAnnotation$1,hoverAnnotation:hoverAnnotation$1,selectAnnotation:selectAnnotation$1},enhance$1=compose$2(withTranslation(),connect(mapStateToProps$1,mapDispatchToProps$1),withPlugins$1("AnnotationsOverlay"));const AnnotationsOverlay=enhance$1(AnnotationsOverlay$1);var OSDReferences={get:function l(o){return this.refs[o]},refs:{},set:function l(o,u){this.refs[o]=u}};function _construct(l,o,u){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var d=[null];d.push.apply(d,o);var f=new(l.bind.apply(l,d));return f}function _toConsumableArray(l){return _arrayWithoutHoles(l)||_iterableToArray(l)||_unsupportedIterableToArray(l)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
161In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(l,o){if(l){if(typeof l=="string")return _arrayLikeToArray(l,o);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray(l,o):void 0}}function _iterableToArray(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function _arrayWithoutHoles(l){if(Array.isArray(l))return _arrayLikeToArray(l)}function _arrayLikeToArray(l,o){(o==null||o>l.length)&&(o=l.length);for(var u=0,d=Array(o);u<o;u++)d[u]=l[u];return d}function ownKeys(l,o){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);o&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),u.push.apply(u,d)}return u}function _objectSpread(l){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};
161o%2?ownKeys(Object(u),!0).forEach(function(d){_defineProperty(l,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(u,d))})}return l}function _defineProperty(l,o,u){return(o=_toPropertyKey(o))in l?Object.defineProperty(l,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[o]=u,l}function _classCallCheck(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(l,o){for(var u=0;u<o.length;u++){var d=o[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,_toPropertyKey(d.key),d)}}function _createClass(l,o,u){return o&&_defineProperties(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function _toPropertyKey(l){var o=_toPrimitive(l,"string");return typeof o=="symbol"?o:o+""}function _toPrimitive(l,o){if(typeof l!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var d=u.call(l,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function _callSuper(l,o,u){return o=_getPrototypeOf(o),_possibleConstructorReturn(l,_isNativeReflectConstruct()?Reflect.construct(o,u||[],_getPrototypeOf(l).constructor):o.apply(l,u))}function _possibleConstructorReturn(l,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(l)}function _assertThisInitialized(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _isNativeReflectConstruct(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!l})()}function _getPrototypeOf(l){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(l)}function _inherits(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),o&&_setPrototypeOf(l,o)}function _setPrototypeOf(l,o){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},_setPrototypeOf(l,o)}var OpenSeadragonViewer$2=(function(l){function o(u){var d;return _classCallCheck(this,o),d=_callSuper(this,o,[u]),d.state={viewer:void 0},d.ref=React.createRef(),d.apiRef=React.createRef(),OSDReferences.set(u.windowId,d.apiRef),d.onCanvasMouseMove=debounce$2(d.onCanvasMouseMove.bind(d),10),d.onViewportChange=d.onViewportChange.bind(d),d.zoomToWorld=d.zoomToWorld.bind(d),d}return _inherits(o,l),_createClass(o,[{key:"componentDidMount",value:function(){var d=this.props,f=d.osdConfig,p=d.t,h=d.windowId;if(this.ref.current){var v=new OpenSeadragon(_objectSpread({id:this.ref.current.id},f)),g=v.canvas&&v.canvas.firstElementChild;g&&(g.setAttribute("role","img"),g.setAttribute("aria-label",p("digitizedView")),g.setAttribute("aria-describedby","".concat(h,"-osd"))),this.apiRef.current=v,this.setState({viewer:v}),v.addHandler("animation-finish",this.onViewportChange),v.innerTracker&&(v.innerTracker.moveHandler=this.onCanvasMouseMove)}}},{key:"componentDidUpdate",value:function(d,f){var p=this.props,h=p.viewerConfig,v=p.canvasWorld,g=this.state.viewer;if(this.apiRef.current=g,f.viewer===void 0){h&&(h.zoom=h.zoom||g.viewport.imageToViewportZoom(1),g.viewport.panTo(h,!0),g.viewport.zoomTo(h.zoom,h,!0),h.degrees!==void 0&&g.viewport.setRotation(h.degrees),h.flip!==void 0&&g.viewport.setFlip(h.flip)),this.addAllImageSources(!h);return}if(!this.infoResponsesMatch(d.infoResponses)||!this.nonTiledImagedMatch(d.nonTiledImages)){g.close();var m=!isEqual$3(v.canvasIds,d.canvasWorld.canvasIds);m&&g.preserveViewport?this.addAllImageSources(!1):this.addAllImageSources(m||!h)}else if(!isEqual$3(v.layers,d.canvasWorld.layers))this.refreshTileProperties();else if(h&&h!==d.viewerConfig){var y=g.viewport;(h.x!==y.centerSpringX.target.value||h.y!==y.centerSpringY.target.value)&&y.panTo(h,!1),h.zoom!==y.zoomSpring.target.value&&y.zoomTo(h.zoom,h,!1),h.rotation!==y.getRotation()&&y.setRotation(h.rotation),h.flip!==y.getFlip()&&y.setFlip(h.flip)}}},{key:"componentWillUnmount",value:function(){var d=this.state.viewer;d.innerTracker&&d.innerTracker.moveHandler===this.onCanvasMouseMove&&(d.innerTracker.moveHandler=null),d.removeAllHandlers(),this.apiRef.current=void 0}},{key:"onCanvasMouseMove",value:function(d){var f=this.state.viewer;f.raiseEvent("mouse-move",d)}},{key:"onViewportChange",value:function(d){var f=this.props,p=f.updateViewport,h=f.windowId,v=d.eventSource.viewport;p(h,{flip:v.getFlip(),rotation:v.getRotation(),x:Math.round(v.centerSpringX.target.value),y:Math.round(v.centerSpringY.target.value),zoom:v.zoomSpring.target.value})}},{key:"addAllImageSources",value:function(){var d=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,p=this.props,h=p.nonTiledImages,v=p.infoResponses;Promise.all(v.map(function(g){return d.addTileSource(g)}),h.map(function(g){return d.addNonTiledImage(g)})).then(function(){(v[0]||h[0])&&(f&&d.zoomToWorld(),d.refreshTileProperties())})}},{key:"addNonTiledImage",value:function(d){var f=this.props.canvasWorld,p=this.state.viewer,h=d.getProperty("type"),v=d.getProperty("format")||"";return h==="Image"||h==="dctypes:Image"||v.startsWith("image/")?new Promise(function(g,m){p||m(),p.addSimpleImage({error:function(b){return m(b)},fitBounds:_construct(OpenSeadragon.Rect,_toConsumableArray(f.contentResourceToWorldCoordinates(d))),index:f.layerIndexOfImageResource(d),opacity:f.layerOpacityOfImageResource(d),success:function(b){return g(b)}
161,url:d.id})}):Promise.resolve()}},{key:"addTileSource",value:function(d){var f=this.props.canvasWorld,p=this.state.viewer;return new Promise(function(h,v){p||v();var g=_objectSpread({},d.json),m=f.contentResource(d.id);m&&p.addTiledImage({error:function(b){return v(b)},fitBounds:_construct(OpenSeadragon.Rect,_toConsumableArray(f.contentResourceToWorldCoordinates(m))),index:f.layerIndexOfImageResource(m),opacity:f.layerOpacityOfImageResource(m),success:function(b){return h(b)},tileSource:g})})}},{key:"refreshTileProperties",value:function(){for(var d=this.props.canvasWorld,f=this.state.viewer.world,p=[],h=0;h<f.getItemCount();h+=1)p.push(f.getItemAt(h));p.forEach(function(v,g){var m=d.contentResource(v.source["@id"]||v.source.id);if(m){var y=d.layerIndexOfImageResource(m);g!==y&&f.setItemIndex(v,y),v.setOpacity(d.layerOpacityOfImageResource(m))}})}},{key:"fitBounds",value:function(d,f,p,h){var v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,g=this.state.viewer;g.viewport.fitBounds(new OpenSeadragon.Rect(d,f,p,h),v)}},{key:"infoResponsesMatch",value:function(d){var f=this.props.infoResponses;return f.length===0&&d.length===0?!0:f.length!==d.length?!1:f.every(function(p,h){return!d[h]||!p.json||!d[h].json||p.tokenServiceId!==d[h].tokenServiceId?!1:!!(p.json["@id"]&&p.json["@id"]===d[h].json["@id"]||p.json.id&&p.json.id===d[h].json.id)})}},{key:"nonTiledImagedMatch",value:function(d){var f=this.props.nonTiledImages;return f.length===0&&d.length===0?!0:f.some(function(p,h){return d[h]?p.id===d[h].id:!1})}},{key:"zoomToWorld",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,f=this.props.canvasWorld;this.fitBounds.apply(this,_toConsumableArray(f.worldBounds()).concat([d]))}},{key:"render",value:function(){var d=this,f=this.props,p=f.children,h=f.classes,v=f.label,g=f.t,m=f.windowId,y=f.drawAnnotations,b=this.state.viewer,w=React.Children.map(p,function(E){return React.cloneElement(E,{zoomToWorld:d.zoomToWorld})});return React.createElement(React.Fragment,null,React.createElement("section",{className:classNames(ns$1("osd-container"),h.osdContainer),id:"".concat(m,"-osd"),ref:this.ref,"aria-label":g("item",{label:v}),"aria-live":"polite"},y&&React.createElement(AnnotationsOverlay,{viewer:b,windowId:m}),w,React.createElement(PluginHook$1,Object.assign({viewer:b},_objectSpread(_objectSpread({},this.props),{},{children:null})))))}}])})(reactExports.Component);OpenSeadragonViewer$2.defaultProps={children:null,drawAnnotations:!1,infoResponses:[],label:null,nonTiledImages:[],osdConfig:{},viewerConfig:null};var mapStateToProps=function l(o,u){var d=u.windowId,f=getCurrentCanvasWorld$1(o,{windowId:d}),p=selectInfoResponses$1(o),h=flatten(f.canvases.map(function(v){return v.imageServiceIds}));return{canvasWorld:f,drawAnnotations:getConfig$1(o).window.forceDrawAnnotations||getCompanionWindowsForContent$1(o,{content:"annotations",windowId:d}).length>0||getCompanionWindowsForContent$1(o,{content:"search",windowId:d}).length>0,infoResponses:h.map(function(v){return p[v]}).filter(function(v){return v!==void 0&&v.isFetching===!1&&v.error===void 0}),label:getCanvasLabel$1(o,{canvasId:(getCurrentCanvas$1(o,{windowId:d})||{}).id,windowId:d}),nonTiledImages:getVisibleCanvasNonTiledResources$1(o,{windowId:d}),osdConfig:getConfig$1(o).osdConfig,viewerConfig:getViewer$1(o,{windowId:d})}},mapDispatchToProps={updateViewport:updateViewport$1},styles={osdContainer:{flex:1,position:"relative"}},enhance=compose$2(withStyles$2(styles),withTranslation(),connect(mapStateToProps,mapDispatchToProps),withPlugins$1("OpenSeadragonViewer"));const OpenSeadragonViewer=enhance(OpenSeadragonViewer$2),OpenSeadragonViewer$1=Object.freeze(Object.defineProperty({__proto__:null,default:OpenSeadragonViewer},Symbol.toStringTag,{value:"Module"}));export{pdfDafoDownloadDialogPlugin as $,Autocomplete$1 as A,call as B,CollapsibleSection as C,take as D,getSearchQuery$1 as E,FullScreenButton as F,getWorkspace$1 as G,getCompanionWindowsForPosition$1 as H,put as I,updateWindow$1 as J,updateCompanionWindow$1 as K,LabelValueMetadata as L,MiradorMenuButton$3 as M,getWindow$2 as N,toggleAnnotationDisplay$1 as O,PropTypes as P,toggleWindowSideBar$1 as Q,React as R,SanitizedHtml as S,Typography$1 as T,miradorLib as U,canvasLinkPlugin as V,WindowListButton as W,canvasNavigationPlugin as X,imageCropperPlugin as Y,keyboardShortcutsPlugin as Z,__vitePreload as _,deburr as a,textOverlayPlugin as a0,miradorImageToolsPlugin as a1,withTranslation as a2,ReactDOM as a3,i18next as a4,Browser as a5,initReactI18next as a6,L$1 as a7,Map$1 as a8,TileLayer$1 as a9,CloseIcon$2 as aA,groupBy as aB,ReloadIcon as aC,withErrorBoundary as aD,omitBy as aE,ResizeObserver_es as aF,tinySlider_module as aG,Marker$1 as aa,Popup$1 as ab,classNames as ac,useTranslation as ad,useResizeObserver as ae,uniq as af,HelpIcon as ag,isEqual$3 as ah,maxBy as ai,truncate as aj,capitalize as ak,Trans as al,VisibilityIcon$1 as am,IncludeIcon as an,ExcludeIcon as ao,SearchIcon$1 as ap,sortBy as aq,min as ar,max as as,DatePicker as at,chunk as au,sum as av,libExports$3 as aw,isEmpty$1 as ax,mapValues as ay,CancelIcon$1 as az,TextField$1 as b,SearchIcon as c,debounce$2 as d,CircularProgress$2 as e,SearchPanelNavigation as f,CompanionWindow as g,LocalePicker as h,isObject$1 as i,Link$1 as j,ChevronRight as k,CollectionInfo as l,ManifestInfo as m,ns$1 as n,ManifestRelatedLinks as o,PluginHook$1 as p,createI18nInstance as q,reactExports as r,getManifestUrl$1 as s,takeEvery as t,ActionTypes$1 as u,takeLeading as v,select as w,getConfig$1 as x,getWindowConfig$1 as y,getManifest$1 as z};
162//# sourceMappingURL=vendor-BZ3JJXLh.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.