@internetarchive/bookreader 5.0.0-120 → 5.0.0-121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,7 +195,7 @@
195
195
  .stroke-color {
196
196
  stroke: var(--iconStrokeColor);
197
197
  }
198
- `}render(){return o}}customElements.define("ia-icon-share",i)},2617:function(e){e.exports=function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||r.window},t.init=o,t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var r=void 0;function o(e){t.realWindow=n=e;var o=e.document.createTextNode("");o.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(o)===o&&(e=e.wrap(e)),t.window=r=e}t.window=r,"undefined"!=typeof window&&window&&o(window);var i={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=function(e){return!!e&&"object"===a(e)},u=function(e){return"function"==typeof e},l={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return s(e)&&11===e.nodeType},object:s,func:u,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==a(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?e instanceof Element||e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return s(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return s(e)&&void 0!==e.length&&u(e.splice)}};i.default=l;var c={};function d(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function f(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var r=n.prepared.axis;if("x"===r||"y"===r){var o="x"===r?"y":"x";t.page[o]=n.coords.start.page[o],t.client[o]=n.coords.start.client[o],t.delta[o]=0}}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.draggable=h.draggable,t.map.drag=h,t.methodDict.drag="draggable",r.actions.drag=h.defaults},listeners:{"interactions:before-action-move":d,"interactions:action-resume":d,"interactions:action-move":f,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.buttons,o=n.options.drag;if(o&&o.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(r&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===o.lockAxis?o.startAxis:o.lockAxis},!1}},draggable:function(e){return i.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):i.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:d,move:f,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},p=h;c.default=p;var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var m={init:function(e){var t=e;m.document=t.document,m.DocumentFragment=t.DocumentFragment||g,m.SVGElement=t.SVGElement||g,m.SVGSVGElement=t.SVGSVGElement||g,m.SVGElementInstance=t.SVGElementInstance||g,m.Element=t.Element||g,m.HTMLElement=t.HTMLElement||m.Element,m.Event=t.Event,m.Touch=t.Touch||g,m.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function g(){}var y=m;v.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var w={init:function(e){var t=v.default.Element,n=e.navigator||{};w.supportsTouch="ontouchstart"in e||i.default.func(e.DocumentTouch)&&v.default.document instanceof e.DocumentTouch,w.supportsPointerEvent=!1!==n.pointerEnabled&&!!v.default.PointerEvent,w.isIOS=/iP(hone|od|ad)/.test(n.platform),w.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),w.isIe9=/MSIE 9/.test(n.userAgent),w.isOperaMobile="Opera"===n.appName&&w.supportsTouch&&/Presto/.test(n.userAgent),w.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",w.pEventTypes=w.supportsPointerEvent?v.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,w.wheelEvent=v.default.document&&"onmousewheel"in v.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},k=w;b.default=k;var x={};function S(e){var t=e.parentNode;if(i.default.docFrag(t)){for(;(t=t.host)&&i.default.docFrag(t););return t}return t}function P(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[b.default.prefixedMatchesSelector](n)}Object.defineProperty(x,"__esModule",{value:!0}),x.closest=function(e,t){for(;i.default.element(e);){if(P(e,t))return e;e=S(e)}return null},x.getActualElement=function(e){return e.correspondingUseElement||e},x.getElementClientRect=E,x.getElementRect=function(e){var n=E(e);if(!b.default.isIOS7&&n){var r=C(t.getWindow(e));n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n},x.getPath=function(e){for(var t=[];e;)t.push(e),e=S(e);return t},x.getScrollXY=C,x.indexOfDeepestElement=function(e){for(var n,r=[],o=0;o<e.length;o++){var i=e[o],a=e[n];if(i&&o!==n)if(a){var s=O(i),u=O(a);if(s!==i.ownerDocument)if(u!==i.ownerDocument)if(s!==u){r=r.length?r:_(a);var l=void 0;if(a instanceof v.default.HTMLElement&&i instanceof v.default.SVGElement&&!(i instanceof v.default.SVGSVGElement)){if(i===u)continue;l=i.ownerSVGElement}else l=i;for(var c=_(l,a.ownerDocument),d=0;c[d]&&c[d]===r[d];)d++;var f=[c[d-1],c[d],r[d]];if(f[0])for(var h=f[0].lastChild;h;){if(h===f[1]){n=o,r=c;break}if(h===f[2])break;h=h.previousSibling}}else p=i,m=a,(parseInt(t.getWindow(p).getComputedStyle(p).zIndex,10)||0)>=(parseInt(t.getWindow(m).getComputedStyle(m).zIndex,10)||0)&&(n=o);else n=o}else n=o}var p,m;return n},x.matchesSelector=P,x.matchesUpTo=function(e,t,n){for(;i.default.element(e);){if(P(e,t))return!0;if((e=S(e))===n)return P(e,t)}return!1},x.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},x.parentNode=S,x.trySelector=function(e){return!!i.default.string(e)&&(v.default.document.querySelector(e),!0)};var O=function(e){return e.parentNode||e.host};function _(e,t){for(var n,r=[],o=e;(n=O(o))&&o!==t&&n!==o.ownerDocument;)r.unshift(o),o=n;return r}function C(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function E(e){var t=e instanceof v.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var j={};Object.defineProperty(j,"__esModule",{value:!0}),j.default=function(e,t){for(var n in t)e[n]=t[n];return e};var M={};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t,n){return"parent"===e?(0,x.parentNode)(n):"self"===e?t.getRect(n):(0,x.closest)(n,e)}Object.defineProperty(M,"__esModule",{value:!0}),M.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top},M.getStringOptionResult=A,M.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},M.resolveRectLike=function(e,t,n,r){var o,a=e;return i.default.string(a)?a=A(a,t,n):i.default.func(a)&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return T(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i.default.element(a)&&(a=(0,x.getElementRect)(a)),a},M.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,j.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},M.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,j.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e};var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.default=function(e,t,n){var r=e.options[n],o=r&&r.origin||e.options.origin,i=(0,M.resolveRectLike)(o,e,t,[e&&t]);return(0,M.rectToXY)(i)||{x:0,y:0}};var R={};function L(e){return e.trim().split(/ +/)}Object.defineProperty(R,"__esModule",{value:!0}),R.default=function e(t,n,r){if(r=r||{},i.default.string(t)&&-1!==t.search(" ")&&(t=L(t)),i.default.array(t))return t.reduce(function(t,o){return(0,j.default)(t,e(o,n,r))},r);if(i.default.object(t)&&(n=t,t=""),i.default.func(n))r[t]=r[t]||[],r[t].push(n);else if(i.default.array(n))for(var o=0;o<n.length;o++){var a;a=n[o],e(t,a,r)}else if(i.default.object(n))for(var s in n){var u=L(s).map(function(e){return"".concat(t).concat(e)});e(u,n[s],r)}return r};var B={};Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0,B.default=function(e,t){return Math.sqrt(e*e+t*t)};var $={};Object.defineProperty($,"__esModule",{value:!0}),$.default=function(e,t){e.__set||(e.__set={});var n=function(n){"function"!=typeof e[n]&&"__set"!==n&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var r in t)n(r);return e};var D={};function z(e){return e instanceof v.default.Event||e instanceof v.default.Touch}function F(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function N(e,t){return t=t||{x:0,y:0},b.default.isOperaMobile&&z(e)?(F("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):F("page",e,t),t}function U(e,t){return t=t||{},b.default.isOperaMobile&&z(e)?F("screen",e,t):F("client",e,t),t}function H(e){var t=[];return i.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function W(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var o in t)t[o]+=r[o]}for(var i in t)t[i]/=e.length;return t}Object.defineProperty(D,"__esModule",{value:!0}),D.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},D.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},D.getClientXY=U,D.getEventTargets=function(e){var t=i.default.func(e.composedPath)?e.composedPath():e.path;return[x.getActualElement(t?t[0]:e.target),x.getActualElement(e.currentTarget)]},D.getPageXY=N,D.getPointerId=function(e){return i.default.number(e.pointerId)?e.pointerId:e.identifier},D.getPointerType=function(e){return i.default.string(e.pointerType)?e.pointerType:i.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof v.default.Touch?"touch":"mouse"},D.getTouchPair=H,D.getXY=F,D.isNativePointer=z,D.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},D.pointerAverage=W,Object.defineProperty(D,"pointerExtend",{enumerable:!0,get:function(){return $.default}}),D.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},D.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},D.setCoords=function(e,t,n){var r=t.length>1?W(t):t[0];N(r,e.page),U(r,e.client),e.timeStamp=n},D.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},D.touchAngle=function(e,t){var n=t+"X",r=t+"Y",o=H(e),i=o[1][n]-o[0][n],a=o[1][r]-o[0][r];return 180*Math.atan2(a,i)/Math.PI},D.touchBBox=function(e){if(!e.length)return null;var t=H(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),o=Math.max(t[0].pageX,t[1].pageX),i=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,right:o,bottom:i,width:o-n,height:i-r}},D.touchDistance=function(e,t){var n=t+"X",r=t+"Y",o=H(e),i=o[0][n]-o[1][n],a=o[0][r]-o[1][r];return(0,B.default)(i,a)};var q={};function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(q,"__esModule",{value:!0}),q.BaseEvent=void 0;var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),V(this,"immediatePropagationStopped",!1),V(this,"propagationStopped",!1),this._interaction=t}var t,n;return t=e,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();q.BaseEvent=G,Object.defineProperty(G.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Z={};Object.defineProperty(Z,"__esModule",{value:!0}),Z.remove=Z.merge=Z.from=Z.findIndex=Z.find=Z.contains=void 0,Z.contains=function(e,t){return-1!==e.indexOf(t)},Z.remove=function(e,t){return e.splice(e.indexOf(t),1)};var X=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e};Z.merge=X,Z.from=function(e){return X([],e)};var Y=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};Z.findIndex=Y,Z.find=function(e,t){return e[Y(e,t)]};var K={};function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(K,"__esModule",{value:!0}),K.DropEvent=void 0;var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=te(r);if(o){var n=te(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ee(e)}(this,e)});function a(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ne(ee(r=i.call(this,t._interaction)),"dropzone",void 0),ne(ee(r),"dragEvent",void 0),ne(ee(r),"relatedTarget",void 0),ne(ee(r),"draggable",void 0),ne(ee(r),"propagationStopped",!1),ne(ee(r),"immediatePropagationStopped",!1);var o="dragleave"===n?e.prev:e.cur,s=o.element,u=o.dropzone;return r.type=n,r.target=s,r.currentTarget=s,r.dropzone=u,r.dragEvent=t,r.relatedTarget=t.target,r.draggable=t.interactable,r.timeStamp=t.timeStamp,r}return t=a,(n=[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,r=Z.findIndex(n,function(t){var n=t.dropzone,r=t.element;return n===e.dropzone&&r===e.target});t.activeDrops.splice(r,1);var o=new a(t,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new a(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(q.BaseEvent);K.DropEvent=re;var oe={};function ie(e,t){for(var n=0;n<e.slice().length;n++){var r=e.slice()[n],o=r.dropzone,i=r.element;t.dropzone=o,t.target=i,o.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function ae(e,t){for(var n=function(e,t){for(var n=e.interactables,r=[],o=0;o<n.list.length;o++){var a=n.list[o];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(i.default.element(s)&&s!==t||i.default.string(s)&&!x.matchesSelector(t,s)||i.default.func(s)&&!s({dropzone:a,draggableElement:t})))for(var u=i.default.string(a.target)?a._context.querySelectorAll(a.target):i.default.array(a.target)?a.target:[a.target],l=0;l<u.length;l++){var c=u[l];c!==t&&r.push({dropzone:a,element:c,rect:a.getRect(c)})}}}return r}(e,t),r=0;r<n.length;r++){var o=n[r];o.rect=o.dropzone.getRect(o.element)}return n}function se(e,t,n){for(var r=e.dropState,o=e.interactable,i=e.element,a=[],s=0;s<r.activeDrops.length;s++){var u=r.activeDrops[s],l=u.dropzone,c=u.element,d=u.rect;a.push(l.dropCheck(t,n,o,i,c,d)?c:null)}var f=x.indexOfDeepestElement(a);return r.activeDrops[f]||null}function ue(e,t,n){var r=e.dropState,o={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(o.activate=new K.DropEvent(r,n,"dropactivate"),o.activate.target=null,o.activate.dropzone=null),"dragend"===n.type&&(o.deactivate=new K.DropEvent(r,n,"dropdeactivate"),o.deactivate.target=null,o.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(o.leave=new K.DropEvent(r,n,"dragleave"),n.dragLeave=o.leave.target=r.prev.element,n.prevDropzone=o.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(o.enter=new K.DropEvent(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(o.drop=new K.DropEvent(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(o.move=new K.DropEvent(r,n,"dropmove"),o.move.dragmove=n,n.dropzone=r.cur.dropzone)),o}function le(e,t){var n=e.dropState,r=n.activeDrops,o=n.cur,i=n.prev;t.leave&&i.dropzone.fire(t.leave),t.enter&&o.dropzone.fire(t.enter),t.move&&o.dropzone.fire(t.move),t.drop&&o.dropzone.fire(t.drop),t.deactivate&&ie(r,t.deactivate),n.prev.dropzone=o.dropzone,n.prev.element=o.element}function ce(e,t){var n=e.interaction,r=e.iEvent,o=e.event;if("dragmove"===r.type||"dragend"===r.type){var i=n.dropState;t.dynamicDrop&&(i.activeDrops=ae(t,n.element));var a=r,s=se(n,a,o);i.rejected=i.rejected&&!!s&&s.dropzone===i.cur.dropzone&&s.element===i.cur.element,i.cur.dropzone=s&&s.dropzone,i.cur.element=s&&s.element,i.events=ue(n,0,a)}}Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;var de={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,r=e.Interactable,o=e.defaults;e.usePlugin(c.default),r.prototype.dropzone=function(e){return function(e,t){if(i.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,R.default)(t.listeners),r=Object.keys(n).reduce(function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e},{});e.off(e.options.drop.listeners),e.on(r),e.options.drop.listeners=r}return i.default.func(t.ondrop)&&e.on("drop",t.ondrop),i.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),i.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),i.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),i.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),i.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:i.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return i.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},r.prototype.dropCheck=function(e,t,n,r,o,a){return function(e,t,n,r,o,a,s){var u=!1;if(!(s=s||e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,u,e,a,r,o);var l=e.options.drop.overlap;if("pointer"===l){var c=(0,I.default)(r,o,"drag"),d=D.getPageXY(t);d.x+=c.x,d.y+=c.y;var f=d.x>s.left&&d.x<s.right,h=d.y>s.top&&d.y<s.bottom;u=f&&h}var p=r.getRect(o);if(p&&"center"===l){var v=p.left+p.width/2,m=p.top+p.height/2;u=v>=s.left&&v<=s.right&&m>=s.top&&m<=s.bottom}return p&&i.default.number(l)&&(u=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=l),e.options.drop.checker&&(u=e.options.drop.checker(t,n,u,e,a,r,o)),u}(this,e,t,n,r,o,a)},n.dynamicDrop=function(t){return i.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,j.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,o.actions.drop=de.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,r=(e.event,e.iEvent);if("drag"===n.prepared.name){var o=n.dropState;o.activeDrops=null,o.events=null,o.activeDrops=ae(t,n.element),o.events=ue(n,0,r),o.events.activate&&(ie(o.activeDrops,o.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":ce,"interactions:after-action-move":function(e,t){var n=e.interaction,r=e.iEvent;"drag"===n.prepared.name&&(le(n,n.dropState.events),t.fire("actions/drop:move",{interaction:n,dragEvent:r}),n.dropState.events={})},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,r=e.iEvent;ce(e,t),le(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:ae,getDrop:se,getDropEvents:ue,fireDropEvents:le,defaults:{enabled:!1,accept:null,overlap:"pointer"}},fe=de;oe.default=fe;var he={};function pe(e){var t=e.interaction,n=e.iEvent,r=e.phase;if("gesture"===t.prepared.name){var o=t.pointers.map(function(e){return e.pointer}),a="start"===r,s="end"===r,u=t.interactable.options.deltaSource;if(n.touches=[o[0],o[1]],a)n.distance=D.touchDistance(o,u),n.box=D.touchBBox(o),n.scale=1,n.ds=0,n.angle=D.touchAngle(o,u),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s){var l=t.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=D.touchDistance(o,u),n.box=D.touchBBox(o),n.scale=n.distance/t.gesture.startDistance,n.angle=D.touchAngle(o,u),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,i.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(he,"__esModule",{value:!0}),he.default=void 0;var ve={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.gesturable=function(e){return i.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):i.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=ve,t.methodDict.gesture="gesturable",r.actions.gesture=ve.defaults},listeners:{"interactions:action-start":pe,"interactions:action-move":pe,"interactions:action-end":pe,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},me=ve;he.default=me;var ge={};function ye(e,t,n,r,o,a,s){if(!t)return!1;if(!0===t){var u=i.default.number(a.width)?a.width:a.right-a.left,l=i.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?u:l)/2)),u<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var c=u>=0?a.left:a.right;return n.x<c+s}if("top"===e){var d=l>=0?a.top:a.bottom;return n.y<d+s}if("right"===e)return n.x>(u>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(l>=0?a.bottom:a.top)-s}return!!i.default.element(r)&&(i.default.element(t)?t===r:x.matchesUpTo(r,t,o))}function be(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var r=t;n.interactable.options.resize.square?("y"===n.resizeAxes?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,"x"===n.resizeAxes?r.delta.y=0:"y"===n.resizeAxes&&(r.delta.x=0))}}Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0;var we={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,r=e.Interactable,o=e.defaults;we.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),we.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(t){return function(e,t,n){return i.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),i.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),i.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:i.default.bool(t.square)&&(e.options.resize.square=t.square),e):i.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=we,t.methodDict.resize="resizable",o.actions.resize=we.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,o=n.rect;n._rects={start:(0,j.default)({},o),corrected:(0,j.default)({},o),previous:(0,j.default)({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}}(e),be(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,o=n.interactable.options.resize.invert,i="reposition"===o||"negate"===o,a=n.rect,s=n._rects,u=s.start,l=s.corrected,c=s.delta,d=s.previous;if((0,j.default)(d,l),i){if((0,j.default)(l,a),"reposition"===o){if(l.top>l.bottom){var f=l.top;l.top=l.bottom,l.bottom=f}if(l.left>l.right){var h=l.left;l.left=l.right,l.right=h}}}else l.top=Math.min(a.top,u.bottom),l.bottom=Math.max(a.bottom,u.top),l.left=Math.min(a.left,u.right),l.right=Math.max(a.right,u.left);for(var p in l.width=l.right-l.left,l.height=l.bottom-l.top,l)c[p]=l[p]-d[p];r.edges=n.prepared.edges,r.rect=l,r.deltaRect=c}}(e),be(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.element,o=e.rect,a=e.buttons;if(o){var s=(0,j.default)({},t.coords.cur.page),u=n.options.resize;if(u&&u.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(a&u.mouseButtons))){if(i.default.object(u.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=ye(c,u.edges[c],s,t._latestPointer.eventTarget,r,o,u.margin||we.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(e.action={name:"resize",edges:l})}else{var d="y"!==u.axis&&s.x>o.right-we.defaultMargin,f="x"!==u.axis&&s.y>o.bottom-we.defaultMargin;(d||f)&&(e.action={name:"resize",axes:(d?"x":"")+(f?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,o=we.cursors,i=null;if(n)i=o[r+n];else if(t){for(var a="",s=["top","bottom","left","right"],u=0;u<s.length;u++){var l=s[u];t[l]&&(a+=l)}i=o[a]}return i},defaultMargin:null},ke=we;ge.default=ke;var xe={};Object.defineProperty(xe,"__esModule",{value:!0}),xe.default=void 0;var Se={id:"actions",install:function(e){e.usePlugin(he.default),e.usePlugin(ge.default),e.usePlugin(c.default),e.usePlugin(oe.default)}};xe.default=Se;var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=void 0;var Oe,_e,Ce=0,Ee={request:function(e){return Oe(e)},cancel:function(e){return _e(e)},init:function(e){if(Oe=e.requestAnimationFrame,_e=e.cancelAnimationFrame,!Oe)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var r=t[n];Oe=e["".concat(r,"RequestAnimationFrame")],_e=e["".concat(r,"CancelAnimationFrame")]||e["".concat(r,"CancelRequestAnimationFrame")]}Oe=Oe&&Oe.bind(e),_e=_e&&_e.bind(e),Oe||(Oe=function(t){var n=Date.now(),r=Math.max(0,16-(n-Ce)),o=e.setTimeout(function(){t(n+r)},r);return Ce=n+r,o},_e=function(e){return clearTimeout(e)})}};Pe.default=Ee;var je={};Object.defineProperty(je,"__esModule",{value:!0}),je.default=void 0,je.getContainer=Te,je.getScroll=Ae,je.getScrollSize=function(e){return i.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},je.getScrollSizeDelta=function(e,t){var n=e.interaction,r=e.element,o=n&&n.interactable.options[n.prepared.name].autoScroll;if(!o||!o.enabled)return t(),{x:0,y:0};var i=Te(o.container,n.interactable,r),a=Ae(i);t();var s=Ae(i);return{x:s.x-a.x,y:s.y-a.y}};var Me={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Me.isScrolling=!0,Pe.default.cancel(Me.i),e.autoScroll=Me,Me.interaction=e,Me.prevTime=Me.now(),Me.i=Pe.default.request(Me.scroll)},stop:function(){Me.isScrolling=!1,Me.interaction&&(Me.interaction.autoScroll=null),Pe.default.cancel(Me.i)},scroll:function(){var e=Me.interaction,t=e.interactable,n=e.element,r=e.prepared.name,o=t.options[r].autoScroll,a=Te(o.container,t,n),s=Me.now(),u=(s-Me.prevTime)/1e3,l=o.speed*u;if(l>=1){var c={x:Me.x*l,y:Me.y*l};if(c.x||c.y){var d=Ae(a);i.default.window(a)?a.scrollBy(c.x,c.y):a&&(a.scrollLeft+=c.x,a.scrollTop+=c.y);var f=Ae(a),h={x:f.x-d.x,y:f.y-d.y};(h.x||h.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:h,interaction:e,container:a})}Me.prevTime=s}Me.isScrolling&&(Pe.default.cancel(Me.i),Me.i=Pe.default.request(Me.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Me.check(t.interactable,t.prepared.name))if(t.simulation)Me.x=Me.y=0;else{var r,o,a,s,u=t.interactable,l=t.element,c=t.prepared.name,d=u.options[c].autoScroll,f=Te(d.container,u,l);if(i.default.window(f))s=n.clientX<Me.margin,r=n.clientY<Me.margin,o=n.clientX>f.innerWidth-Me.margin,a=n.clientY>f.innerHeight-Me.margin;else{var h=x.getElementClientRect(f);s=n.clientX<h.left+Me.margin,r=n.clientY<h.top+Me.margin,o=n.clientX>h.right-Me.margin,a=n.clientY>h.bottom-Me.margin}Me.x=o?1:s?-1:0,Me.y=a?1:r?-1:0,Me.isScrolling||(Me.margin=d.margin,Me.speed=d.speed,Me.start(t))}}};function Te(e,n,r){return(i.default.string(e)?(0,M.getStringOptionResult)(e,n,r):e)||(0,t.getWindow)(r)}function Ae(e){return i.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Ie={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Me,Me.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Me.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Me.stop(),Me.interaction&&(Me.interaction=null)},"interactions:stop":Me.stop,"interactions:action-move":function(e){return Me.onInteractionMove(e)}}},Re=Ie;je.default=Re;var Le={};Object.defineProperty(Le,"__esModule",{value:!0}),Le.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Le.sign=void 0,Le.warnOnce=function(e,n){var r=!1;return function(){return r||(t.window.console.warn(n),r=!0),e.apply(this,arguments)}},Le.sign=function(e){return e>=0?1:-1};var Be={};function $e(e){return i.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function De(e){return i.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=void 0;var ze={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,r,o){var i=function(e,t,n,r,o){var i=e.getRect(r),a={action:null,interactable:e,interaction:n,element:r,rect:i,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return o.fire("auto-start:check",a),a.action}(this,n,r,o,e);return this.options.actionChecker?this.options.actionChecker(t,n,i,this,o,r):i},t.prototype.ignoreFrom=(0,Le.warnOnce)(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,Le.warnOnce)(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=De,t.prototype.styleCursor=$e}};Be.default=ze;var Fe={};function Ne(e,t,n,r,o){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&qe(t,n,e,o)?e:null}function Ue(e,t,n,r,o,i,a){for(var s=0,u=r.length;s<u;s++){var l=r[s],c=o[s],d=l.getAction(t,n,e,c);if(d){var f=Ne(d,l,c,i,a);if(f)return{action:f,interactable:l,element:c}}}return{action:null,interactable:null,element:null}}function He(e,t,n,r,o){var a=[],s=[],u=r;function l(e){a.push(e),s.push(u)}for(;i.default.element(u);){a=[],s=[],o.interactables.forEachMatch(u,l);var c=Ue(e,t,n,a,s,r,o);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;u=x.parentNode(u)}return{action:null,interactable:null,element:null}}function We(e,t,n){var r=t.action,o=t.interactable,i=t.element;r=r||{name:null},e.interactable=o,e.element=i,(0,Le.copyAction)(e.prepared,r),e.rect=o&&r.name?o.getRect(i):null,Ze(e,n),n.fire("autoStart:prepared",{interaction:e})}function qe(e,t,n,r){var o=e.options,i=o[n.name].max,a=o[n.name].maxPerElement,s=r.autoStart.maxInteractions,u=0,l=0,c=0;if(!(i&&a&&s))return!1;for(var d=0;d<r.interactions.list.length;d++){var f=r.interactions.list[d],h=f.prepared.name;if(f.interacting()){if(++u>=s)return!1;if(f.interactable===e){if((l+=h===n.name?1:0)>=i)return!1;if(f.element===t&&(c++,h===n.name&&c>=a))return!1}}}return s>0}function Ve(e,t){return i.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Ge(e,t,n){var r=n.autoStart.cursorElement;r&&r!==e&&(r.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function Ze(e,t){var n=e.interactable,r=e.element,o=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var a="";if(o.name){var s=n.options[o.name].cursorChecker;a=i.default.func(s)?s(o,n,r,e._interacting):t.actions.map[o.name].getCursor(o)}Ge(e.element,a||"",t)}else t.autoStart.cursorElement&&Ge(t.autoStart.cursorElement,"",t)}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var Xe={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(Be.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,j.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return Ve(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:qe,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.interacting()||We(n,He(n,r,o,i,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||We(n,He(n,r,o,i,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var r=n.interactable,o=n.prepared.name;o&&r&&(r.options[o].manualStart||!qe(r,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,r,n.element),Ze(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,r=n.interactable;r&&r.options.styleCursor&&Ge(n.element,"",t)}},maxInteractions:Ve,withinInteractionLimit:qe,validateAction:Ne},Ye=Xe;Fe.default=Ye;var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=void 0;var Je={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,r=e.eventTarget,o=e.dx,a=e.dy;if("drag"===n.prepared.name){var s=Math.abs(o),u=Math.abs(a),l=n.interactable.options.drag,c=l.startAxis,d=s>u?"x":s<u?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?d[0]:l.lockAxis,"xy"!==d&&"xy"!==c&&c!==d){n.prepared.name=null;for(var f=r,h=function(e){if(e!==n.interactable){var o=n.interactable.options.drag;if(!o.manualStart&&e.testIgnoreAllow(o,f,r)){var i=e.getAction(n.downPointer,n.downEvent,n,f);if(i&&"drag"===i.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(d,e)&&Fe.default.validateAction(i,e,f,r,t))return e}}};i.default.element(f);){var p=t.interactables.forEachMatch(f,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=f;break}f=(0,x.parentNode)(f)}}}}}};Ke.default=Je;var Qe={};function et(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=void 0;var tt={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(Fe.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=et(t);n>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;et(t)>0&&(t.prepared.name=null)}},getHoldDuration:et},nt=tt;Qe.default=nt;var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ot={id:"auto-start",install:function(e){e.usePlugin(Fe.default),e.usePlugin(Qe.default),e.usePlugin(Ke.default)}};rt.default=ot;var it={};function at(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):i.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function st(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function ut(e){var n=e.Interactable;n.prototype.preventDefault=at,n.prototype.checkAndPreventDefault=function(n){return function(e,n,r){var o=e.options.preventDefault;if("never"!==o)if("always"!==o){if(n.events.supportsPassive&&/^touch(start|move)$/.test(r.type)){var a=(0,t.getWindow)(r.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(r.type)||i.default.element(r.target)&&(0,x.matchesSelector)(r.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||r.preventDefault()}else r.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var r=e.interactions.list[n];if(r.element&&(r.element===t.target||(0,x.nodeContains)(r.element,t.target)))return void r.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0,it.install=ut;var lt={id:"core/interactablePreventDefault",install:ut,listeners:["down","move","up","cancel"].reduce(function(e,t){return e["interactions:".concat(t)]=st,e},{})};it.default=lt;var ct={};Object.defineProperty(ct,"__esModule",{value:!0}),ct.default=void 0,ct.default={};var dt,ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(dt||(dt={})),dt.touchAction,dt.boxSizing,dt.noListeners;ft.default={id:"dev-tools",install:function(){}};var ht={};Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=function e(t){var n={};for(var r in t){var o=t[r];i.default.plainObject(o)?n[r]=e(o):i.default.array(o)?n[r]=Z.from(o):n[r]=o}return n};var pt={};function vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=void 0,pt.getRectOffset=wt;var yt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gt(this,"states",[]),gt(this,"startOffset",{left:0,right:0,top:0,bottom:0}),gt(this,"startDelta",void 0),gt(this,"result",void 0),gt(this,"endResult",void 0),gt(this,"startEdges",void 0),gt(this,"edges",void 0),gt(this,"interaction",void 0),this.interaction=t,this.result=bt(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}var t,n;return t=e,(n=[{key:"start",value:function(e,t){var n=e.phase,r=this.interaction,o=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}}).filter(function(e){return!!e})}(r);this.prepareStates(o),this.startEdges=(0,j.default)({},r.edges),this.edges=(0,j.default)({},this.startEdges),this.startOffset=wt(r.rect,t),this.startDelta={x:0,y:0};var i=this.fillArg({phase:n,pageCoords:t,preEnd:!1});return this.result=bt(),this.startAll(i),this.result=this.setAll(i)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect||(e.rect=t.rect),e.edges||(e.edges=this.startEdges),e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,r=e.skipModifiers,o=e.rect,i=e.edges;e.coords=(0,j.default)({},e.pageCoords),e.rect=(0,j.default)({},o),e.edges=(0,j.default)({},i);for(var a=r?this.states.slice(r):this.states,s=bt(e.coords,e.rect),u=0;u<a.length;u++){var l,c=a[u],d=c.options,f=(0,j.default)({},e.coords),h=null;null!=(l=c.methods)&&l.set&&this.shouldDo(d,n,t)&&(e.state=c,h=c.methods.set(e),M.addEdges(e.edges,e.rect,{x:e.coords.x-f.x,y:e.coords.y-f.y})),s.eventProps.push(h)}(0,j.default)(this.edges,e.edges),s.delta.x=e.coords.x-e.pageCoords.x,s.delta.y=e.coords.y-e.pageCoords.y,s.rectDelta.left=e.rect.left-o.left,s.rectDelta.right=e.rect.right-o.right,s.rectDelta.top=e.rect.top-o.top,s.rectDelta.bottom=e.rect.bottom-o.bottom;var p=this.result.coords,v=this.result.rect;if(p&&v){var m=s.rect.left!==v.left||s.rect.right!==v.right||s.rect.top!==v.top||s.rect.bottom!==v.bottom;s.changed=m||p.x!==s.coords.x||p.y!==s.coords.y}return s}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,r=t.coords.cur,o=t.coords.start,i=this.result,a=this.startDelta,s=i.delta;"start"===n&&(0,j.default)(this.startDelta,i.delta);for(var u=0;u<2;u++){var l=vt([[o,a],[r,s]][u],2),c=l[0],d=l[1];c.page.x+=d.x,c.page.y+=d.y,c.client.x+=d.x,c.client.y+=d.y}var f=this.result.rectDelta,h=e.rect||t.rect;h.left+=f.left,h.right+=f.right,h.top+=f.top,h.bottom+=f.bottom,h.width=h.right-h.left,h.height=h.bottom-h.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,r=e.preEnd,o=e.skipModifiers,i=this.setAll(this.fillArg({preEnd:r,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=i,!i.changed&&(!o||o<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};i.coords.x+=s.x,i.coords.y+=s.y,i.delta.x+=s.x,i.delta.y+=s.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,r=this.states;if(r&&r.length){for(var o=!1,i=0;i<r.length;i++){var a=r[i];e.state=a;var s=a.options,u=a.methods,l=u.beforeEnd&&u.beforeEnd(e);if(l)return this.endResult=l,!1;o=o||!o&&this.shouldDo(s,!0,e.phase,!0)}o&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,j.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var r=0;r<this.states.length;r++){var o=this.states[r];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.options,o=n.methods,i=n.name;this.states.push({options:r,methods:o,index:t,name:i})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,r=t.rect,o=t.modification;if(o.result){for(var i=o.startDelta,a=o.result,s=a.delta,u=a.rectDelta,l=[[n.start,i],[n.cur,s]],c=0;c<l.length;c++){var d=vt(l[c],2),f=d[0],h=d[1];f.page.x-=h.x,f.page.y-=h.y,f.client.x-=h.x,f.client.y-=h.y}r.left-=u.left,r.right-=u.right,r.top-=u.top,r.bottom-=u.bottom}}},{key:"shouldDo",value:function(e,t,n,r){return!(!e||!1===e.enabled||r&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map(function(e){return(0,ht.default)(e)}),this.result=bt((0,j.default)({},e.result.coords),(0,j.default)({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}pt.default=yt;var kt={};function xt(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(kt,"__esModule",{value:!0}),kt.addEventModifiers=xt,kt.default=void 0,kt.makeModifier=function(e,t){var n=e.defaults,r={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},o=function(e){var o=e||{};for(var i in o.enabled=!1!==o.enabled,n)i in o||(o[i]=n[i]);var a={options:o,methods:r,name:t,enable:function(){return o.enabled=!0,a},disable:function(){return o.enabled=!1,a}};return a};return t&&"string"==typeof t&&(o._defaults=n,o._methods=r),o};var St={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new pt.default(t)},"interactions:before-action-start":function(e){var t=e.interaction,n=e.interaction.modification;n.start(e,t.coords.start.page),t.edges=n.edges,n.applyToInteraction(e)},"interactions:before-action-move":function(e){var t=e.interaction,n=t.modification,r=n.setAndApply(e);return t.edges=n.edges,r},"interactions:before-action-end":function(e){var t=e.interaction,n=t.modification,r=n.beforeEnd(e);return t.edges=n.startEdges,r},"interactions:action-start":xt,"interactions:action-move":xt,"interactions:action-end":xt,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}},Pt=St;kt.default=Pt;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.defaults=void 0,Ot.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var _t={};function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function Et(e,t){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Et(e,t)}function jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(_t,"__esModule",{value:!0}),_t.InteractEvent=void 0;var At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Mt(r);if(o){var n=Mt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jt(e)}(this,e)});function a(e,t,n,r,o,s,u){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Tt(jt(l=i.call(this,e)),"relatedTarget",null),Tt(jt(l),"screenX",void 0),Tt(jt(l),"screenY",void 0),Tt(jt(l),"button",void 0),Tt(jt(l),"buttons",void 0),Tt(jt(l),"ctrlKey",void 0),Tt(jt(l),"shiftKey",void 0),Tt(jt(l),"altKey",void 0),Tt(jt(l),"metaKey",void 0),Tt(jt(l),"page",void 0),Tt(jt(l),"client",void 0),Tt(jt(l),"delta",void 0),Tt(jt(l),"rect",void 0),Tt(jt(l),"x0",void 0),Tt(jt(l),"y0",void 0),Tt(jt(l),"t0",void 0),Tt(jt(l),"dt",void 0),Tt(jt(l),"duration",void 0),Tt(jt(l),"clientX0",void 0),Tt(jt(l),"clientY0",void 0),Tt(jt(l),"velocity",void 0),Tt(jt(l),"speed",void 0),Tt(jt(l),"swipe",void 0),Tt(jt(l),"axes",void 0),Tt(jt(l),"preEnd",void 0),o=o||e.element;var c=e.interactable,d=(c&&c.options||Ot.defaults).deltaSource,f=(0,I.default)(c,o,n),h="start"===r,p="end"===r,v=h?jt(l):e.prevEvent,m=h?e.coords.start:p?{page:v.page,client:v.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return l.page=(0,j.default)({},m.page),l.client=(0,j.default)({},m.client),l.rect=(0,j.default)({},e.rect),l.timeStamp=m.timeStamp,p||(l.page.x-=f.x,l.page.y-=f.y,l.client.x-=f.x,l.client.y-=f.y),l.ctrlKey=t.ctrlKey,l.altKey=t.altKey,l.shiftKey=t.shiftKey,l.metaKey=t.metaKey,l.button=t.button,l.buttons=t.buttons,l.target=o,l.currentTarget=o,l.preEnd=s,l.type=u||n+(r||""),l.interactable=c,l.t0=h?e.pointers[e.pointers.length-1].downTime:v.t0,l.x0=e.coords.start.page.x-f.x,l.y0=e.coords.start.page.y-f.y,l.clientX0=e.coords.start.client.x-f.x,l.clientY0=e.coords.start.client.y-f.y,l.delta=h||p?{x:0,y:0}:{x:l[d].x-v[d].x,y:l[d].y-v[d].y},l.dt=e.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,j.default)({},e.coords.velocity[d]),l.speed=(0,B.default)(l.velocity.x,l.velocity.y),l.swipe=p||"inertiastart"===r?l.getSwipe():null,l}return t=a,(n=[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5;return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(q.BaseEvent);_t.InteractEvent=At,Object.defineProperties(At.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var It={};function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(It,"__esModule",{value:!0}),It.PointerInfo=void 0;var Bt=function(e,t,n){return t&&Rt(e.prototype,t),n&&Rt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Lt(this,"id",void 0),Lt(this,"pointer",void 0),Lt(this,"event",void 0),Lt(this,"downTime",void 0),Lt(this,"downTarget",void 0),this.id=t,this.pointer=n,this.event=r,this.downTime=o,this.downTarget=i});It.PointerInfo=Bt;var $t,Dt,zt={};function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(zt,"__esModule",{value:!0}),zt.Interaction=void 0,Object.defineProperty(zt,"PointerInfo",{enumerable:!0,get:function(){return It.PointerInfo}}),zt.default=zt._ProxyValues=zt._ProxyMethods=void 0,zt._ProxyValues=$t,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}($t||(zt._ProxyValues=$t={})),zt._ProxyMethods=Dt,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(Dt||(zt._ProxyMethods=Dt={}));var Nt=0,Ut=function(){function e(t){var n=this,r=t.pointerType,o=t.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ft(this,"interactable",null),Ft(this,"element",null),Ft(this,"rect",null),Ft(this,"_rects",void 0),Ft(this,"edges",null),Ft(this,"_scopeFire",void 0),Ft(this,"prepared",{name:null,axis:null,edges:null}),Ft(this,"pointerType",void 0),Ft(this,"pointers",[]),Ft(this,"downEvent",null),Ft(this,"downPointer",{}),Ft(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),Ft(this,"prevEvent",null),Ft(this,"pointerIsDown",!1),Ft(this,"pointerWasMoved",!1),Ft(this,"_interacting",!1),Ft(this,"_ending",!1),Ft(this,"_stopped",!0),Ft(this,"_proxy",null),Ft(this,"simulation",null),Ft(this,"doMove",(0,Le.warnOnce)(function(e){this.move(e)},"The interaction.doMove() method has been renamed to interaction.move()")),Ft(this,"coords",{start:D.newCoords(),prev:D.newCoords(),cur:D.newCoords(),delta:D.newCoords(),velocity:D.newCoords()}),Ft(this,"_id",Nt++),this._scopeFire=o,this.pointerType=r;var i=this;this._proxy={};var a=function(e){Object.defineProperty(n._proxy,e,{get:function(){return i[e]}})};for(var s in $t)a(s);var u=function(e){Object.defineProperty(n._proxy,e,{value:function(){return i[e].apply(i,arguments)}})};for(var l in Dt)u(l);this._scopeFire("interactions:new",{interaction:this})}var t,n;return t=e,n=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var r=this.updatePointer(e,t,n,!0),o=this.pointers[r];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,Le.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,j.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var r,o,i=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,B.default)(r,o)>this.pointerMoveTolerance);var a=this.getPointerIndex(e),s={pointer:e,pointerIndex:a,pointerInfo:this.pointers[a],event:t,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||D.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),i||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&D.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||D.setZeroCoords(this.coords.delta),(e=(0,j.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,r){var o=this.getPointerIndex(e);-1===o&&(o=this.updatePointer(e,t,n,!1));var i=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(i),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:t,eventTarget:n,type:i,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=D.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:Z.findIndex(this.pointers,function(e){return e.id===t})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,r){var o=D.getPointerId(e),i=this.getPointerIndex(e),a=this.pointers[i];return r=!1!==r&&(r||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new It.PointerInfo(o,e,t,null,null),i=this.pointers.length,this.pointers.push(a)),D.setCoords(this.coords.cur,this.pointers.map(function(e){return e.pointer}),this._now()),D.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),r&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,D.pointerExtend(this.downPointer,e),this.interacting()||(D.copyCoords(this.coords.start,this.coords.cur),D.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:r,pointerInfo:a,pointerIndex:i,interaction:this}),i}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,r){return new _t.InteractEvent(this,e,this.prepared.name,t,this.element,n,r)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,r=e.preEnd,o=e.type,i=this.rect;if(i&&"move"===n&&(M.addEdges(this.edges,i,this.coords.delta[this.interactable.options.deltaSource]),i.width=i.right-i.left,i.height=i.bottom-i.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,r,o);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();zt.Interaction=Ut;var Ht=Ut;zt.default=Ht;var Wt={};function qt(e){e.pointerIsDown&&(Xt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function Vt(e){Gt(e.interaction)}function Gt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Xt(e.coords.cur,t),Xt(e.coords.delta,t),M.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Zt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Xt(e,t){var n=e.page,r=e.client,o=t.x,i=t.y;n.x+=o,n.y+=i,r.x+=o,r.y+=i}Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.addTotal=qt,Wt.applyPending=Gt,Wt.default=void 0,zt._ProxyMethods.offsetBy="";var Yt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Zt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return qt(e.interaction)},"interactions:before-action-start":Vt,"interactions:before-action-move":Vt,"interactions:before-action-end":function(e){var t=e.interaction;if(Gt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Kt=Yt;Wt.default=Kt;var Jt={};function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=Jt.InertiaState=void 0;var en=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qt(this,"active",!1),Qt(this,"isModified",!1),Qt(this,"smoothEnd",!1),Qt(this,"allowResume",!1),Qt(this,"modification",void 0),Qt(this,"modifierCount",0),Qt(this,"modifierArg",void 0),Qt(this,"startCoords",void 0),Qt(this,"t0",0),Qt(this,"v0",0),Qt(this,"te",0),Qt(this,"targetOffset",void 0),Qt(this,"modifiedOffset",void 0),Qt(this,"currentOffset",void 0),Qt(this,"lambda_v0",0),Qt(this,"one_ve_v0",0),Qt(this,"timeout",void 0),Qt(this,"interaction",void 0),this.interaction=t}var t,n;return t=e,(n=[{key:"start",value:function(e){var t=this.interaction,n=tn(t);if(!n||!n.enabled)return!1;var r=t.coords.velocity.client,o=(0,B.default)(r.x,r.y),i=this.modification||(this.modification=new pt.default(t));if(i.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=i.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&o>n.minSpeed&&o>n.endSpeed)this.startInertia();else{if(i.result=i.setAll(this.modifierArg),!i.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=tn(this.interaction),r=n.resistance,o=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(t.x-o)/r,y:(t.y-o)/r},this.te=o,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var i=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},i.result=i.setAll(a),i.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+i.result.delta.x,y:this.targetOffset.y+i.result.delta.y}),this.onNextFrame(function(){return e.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return e.smoothEndTick()})}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Pe.default.request(function(){t.active&&e()})}},{key:"inertiaTick",value:function(){var e,t,n,r,o,i=this,a=this.interaction,s=tn(a).resistance,u=(a._now()-this.t0)/1e3;if(u<this.te){var l,c=1-(Math.exp(-s*u)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,r=this.modifiedOffset.y,l={x:rn(o=c,0,e,n),y:rn(o,0,t,r)}):l={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var d={x:l.x-this.currentOffset.x,y:l.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,a.offsetBy(d),a.move(),this.onNextFrame(function(){return i.inertiaTick()})}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,r=tn(t).smoothEndDuration;if(n<r){var o={x:on(n,0,this.targetOffset.x,r),y:on(n,0,this.targetOffset.y,r)},i={x:o.x-this.currentOffset.x,y:o.y-this.currentOffset.y};this.currentOffset.x+=i.x,this.currentOffset.y+=i.y,t.offsetBy(i),t.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return e.smoothEndTick()})}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,r=e.eventTarget,o=this.interaction;o.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),o.updatePointer(t,n,r,!0),o._doPhase({interaction:o,event:n,phase:"resume"}),(0,D.copyCoords)(o.coords.prev,o.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Pe.default.cancel(this.timeout)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}Jt.InertiaState=en;var nn={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Wt.default),e.usePlugin(kt.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new en(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,r=t.inertia;if(r.active)for(var o=n;i.default.element(o);){if(o===t.element){r.resume(e);break}o=x.parentNode(o)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":kt.addEventModifiers,"interactions:action-inertiastart":kt.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};function rn(e,t,n,r){var o=1-e;return o*o*t+2*o*e*n+e*e*r}function on(e,t,n,r){return-n*(e/=r)*(e-2)+t}var an=nn;Jt.default=an;var sn={};function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}Object.defineProperty(sn,"__esModule",{value:!0}),sn.Eventable=void 0;var cn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),un(this,"options",void 0),un(this,"types",{}),un(this,"propagationStopped",!1),un(this,"immediatePropagationStopped",!1),un(this,"global",void 0),this.options=(0,j.default)({},t||{})}var t,n;return t=e,(n=[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&ln(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&ln(e,t)}},{key:"on",value:function(e,t){var n=(0,R.default)(e,t);for(e in n)this.types[e]=Z.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,R.default)(e,t);for(e in n){var r=this.types[e];if(r&&r.length)for(var o=0;o<n[e].length;o++){var i=n[e][o],a=r.indexOf(i);-1!==a&&r.splice(a,1)}}}},{key:"getRect",value:function(e){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();sn.Eventable=cn;var dn={};Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.createInteractStatic=function(e){var t=function t(n,r){var o=e.interactables.get(n,r);return o||((o=e.interactables.new(n,r)).events.global=t.globalEvents),o};return t.getPointerAverage=D.pointerAverage,t.getTouchBBox=D.touchBBox,t.getTouchDistance=D.touchDistance,t.getTouchAngle=D.touchAngle,t.getElementRect=x.getElementRect,t.getElementClientRect=x.getElementClientRect,t.matchesSelector=x.matchesSelector,t.closest=x.closest,t.globalEvents={},t.version="1.10.18",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=(0,Le.warnOnce)(function(e,t,n){if(i.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.default.array(e)){for(var r=0;r<e.length;r++){var o=e[r];this.on(o,t,n)}return this}if(i.default.object(e)){for(var a in e)this.on(a,e[a],t);return this}return(0,dn.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this},"The interact.on() method is being deprecated"),t.off=(0,Le.warnOnce)(function(e,t,n){if(i.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.default.array(e)){for(var r=0;r<e.length;r++){var o=e[r];this.off(o,t,n)}return this}if(i.default.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return(0,dn.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this},"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return b.default.supportsTouch},t.supportsPointerEvent=function(){return b.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return i.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var hn={};function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(hn,"__esModule",{value:!0}),hn.Interactable=void 0;var vn=function(){function e(n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pn(this,"options",void 0),pn(this,"_actions",void 0),pn(this,"target",void 0),pn(this,"events",new sn.Eventable),pn(this,"_context",void 0),pn(this,"_win",void 0),pn(this,"_doc",void 0),pn(this,"_scopeEvents",void 0),pn(this,"_rectChecker",void 0),this._actions=r.actions,this.target=n,this._context=r.context||o,this._win=(0,t.getWindow)((0,x.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=i,this.set(r)}var n,r;return n=e,(r=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return i.default.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),i.default.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),i.default.func(t.onend)&&this.on("".concat(e,"end"),t.onend),i.default.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(i.default.array(t)||i.default.object(t))&&this.off(e,t),(i.default.array(n)||i.default.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var r in t){var o=r,a=this.options[e],s=t[o];"listeners"===o&&this.updatePerActionListeners(e,a.listeners,s),i.default.array(s)?a[o]=Z.from(s):i.default.plainObject(s)?(a[o]=(0,j.default)(a[o]||{},(0,ht.default)(s)),i.default.object(n.perAction[o])&&"enabled"in n.perAction[o]&&(a[o].enabled=!1!==s.enabled)):i.default.bool(s)&&i.default.object(n.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(i.default.element(this.target)?this.target:null),i.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,x.getElementRect)(e)}},{key:"rectChecker",value:function(e){var t=this;return i.default.func(e)?(this._rectChecker=e,this.getRect=function(e){var n=(0,j.default)({},t._rectChecker(e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===e?(delete this.getRect,delete this._rectChecker,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,x.trySelector)(t)||i.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,x.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!i.default.element(n)&&(i.default.string(e)?(0,x.matchesUpTo)(n,e,t):!!i.default.element(e)&&(0,x.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!i.default.element(n))&&(i.default.string(e)?(0,x.matchesUpTo)(n,e,t):!!i.default.element(e)&&(0,x.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,r){i.default.object(t)&&!i.default.array(t)&&(r=n,n=null);var o="on"===e?"add":"remove",a=(0,R.default)(t,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var u=0;u<a[s].length;u++){var l=a[s][u];(0,dn.default)(s,this._actions)?this.events[e](s,l):i.default.string(this.target)?this._scopeEvents["".concat(o,"Delegate")](this.target,this._context,s,l,r):this._scopeEvents[o](this.target,s,l,r)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in i.default.object(e)||(e={}),this.options=(0,ht.default)(t.base),this._actions.methodDict){var r=n,o=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,(0,j.default)((0,j.default)({},t.perAction),t.actions[r])),this[o](e[r])}for(var a in e)i.default.func(this[a])&&this[a](e[a]);return this}},{key:"unset",value:function(){if(i.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var r=t[n],o=r.selector,a=r.context,s=r.listeners;o===this.target&&a===this._context&&t.splice(n,1);for(var u=s.length-1;u>=0;u--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[u][0],s[u][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();hn.Interactable=vn;var mn={};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(mn,"__esModule",{value:!0}),mn.InteractableSet=void 0;var yn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,"list",[]),gn(this,"selectorMap",{}),gn(this,"scope",void 0),this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,r=t.target,o=t._context,a=i.default.string(r)?n.selectorMap[r]:r[n.scope.id],s=Z.findIndex(a,function(e){return e.context===o});a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var t,n;return t=e,(n=[{key:"new",value:function(e,t){t=(0,j.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),i.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(e,t){var n=t&&t.context||this.scope.document,r=i.default.string(e),o=r?this.selectorMap[e]:e[this.scope.id];if(!o)return null;var a=Z.find(o,function(t){return t.context===n&&(r||t.interactable.inContext(e))});return a&&a.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var r=this.list[n],o=void 0;if((i.default.string(r.target)?i.default.element(e)&&x.matchesSelector(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();mn.InteractableSet=yn;var bn={};function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var Sn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wn(this,"currentTarget",void 0),wn(this,"originalEvent",void 0),wn(this,"type",void 0),this.originalEvent=t,(0,$.default)(this,t)}var t,n;return t=e,(n=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pn(e){if(!i.default.object(e))return{capture:!!e,passive:!1};var t=(0,j.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var On={id:"events",install:function(e){var t,n=[],r={},o=[],a={add:s,remove:u,addDelegate:function(e,t,n,i,a){var u=Pn(a);if(!r[n]){r[n]=[];for(var d=0;d<o.length;d++){var f=o[d];s(f,n,l),s(f,n,c,!0)}}var h=r[n],p=Z.find(h,function(n){return n.selector===e&&n.context===t});p||(p={selector:e,context:t,listeners:[]},h.push(p)),p.listeners.push([i,u])},removeDelegate:function(e,t,n,o,i){var a,s=Pn(i),d=r[n],f=!1;if(d)for(a=d.length-1;a>=0;a--){var h=d[a];if(h.selector===e&&h.context===t){for(var p=h.listeners,v=p.length-1;v>=0;v--){var m=kn(p[v],2),g=m[0],y=m[1],b=y.capture,w=y.passive;if(g===o&&b===s.capture&&w===s.passive){p.splice(v,1),p.length||(d.splice(a,1),u(t,n,l),u(t,n,c,!0)),f=!0;break}}if(f)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:r,documents:o,targets:n,supportsOptions:!1,supportsPassive:!1};function s(e,t,r,o){var i=Pn(o),s=Z.find(n,function(t){return t.eventTarget===e});s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),e.addEventListener&&!Z.contains(s.events[t],r)&&(e.addEventListener(t,r,a.supportsOptions?i:i.capture),s.events[t].push(r))}function u(e,t,r,o){var i=Pn(o),s=Z.findIndex(n,function(t){return t.eventTarget===e}),l=n[s];if(l&&l.events)if("all"!==t){var c=!1,d=l.events[t];if(d){if("all"===r){for(var f=d.length-1;f>=0;f--)u(e,t,d[f],i);return}for(var h=0;h<d.length;h++)if(d[h]===r){e.removeEventListener(t,r,a.supportsOptions?i:i.capture),d.splice(h,1),0===d.length&&(delete l.events[t],c=!0);break}}c&&!Object.keys(l.events).length&&n.splice(s,1)}else for(t in l.events)l.events.hasOwnProperty(t)&&u(e,t,"all")}function l(e,t){for(var n=Pn(t),o=new Sn(e),a=r[e.type],s=kn(D.getEventTargets(e),1)[0],u=s;i.default.element(u);){for(var l=0;l<a.length;l++){var c=a[l],d=c.selector,f=c.context;if(x.matchesSelector(u,d)&&x.nodeContains(f,s)&&x.nodeContains(f,u)){var h=c.listeners;o.currentTarget=u;for(var p=0;p<h.length;p++){var v=kn(h[p],2),m=v[0],g=v[1],y=g.capture,b=g.passive;y===n.capture&&b===n.passive&&m(o)}}}u=x.parentNode(u)}}function c(e){return l(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),e.events=a,a}};bn.default=On;var _n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;var Cn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<Cn.methodOrder.length;t++){var n;n=Cn.methodOrder[t];var r=Cn[n](e);if(r)return r}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,r=e.eventTarget,o=e.scope;if(!/down|start/i.test(n))return null;for(var i=0;i<o.interactions.list.length;i++){var a=o.interactions.list[i],s=r;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;s;){if(s===a.element)return a;s=x.parentNode(s)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,r=e.pointerType,o=e.eventType,i=e.scope;if("mouse"!==r&&"pen"!==r)return null;for(var a=0;a<i.interactions.list.length;a++){var s=i.interactions.list[a];if(s.pointerType===r){if(s.simulation&&!En(s,n))continue;if(s.interacting())return s;t||(t=s)}}if(t)return t;for(var u=0;u<i.interactions.list.length;u++){var l=i.interactions.list[u];if(!(l.pointerType!==r||/down/i.test(o)&&l.simulation))return l}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(En(o,t))return o}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(1===o.pointers.length){var i=o.interactable;if(i&&(!i.options.gesture||!i.options.gesture.enabled))continue}else if(o.pointers.length>=2)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};function En(e,t){return e.pointers.some(function(e){return e.id===t})}var jn=Cn;_n.default=jn;var Mn={};function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ln(e)}Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var Bn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function $n(e,t){return function(n){var r=t.interactions.list,o=D.getPointerType(n),i=An(D.getEventTargets(n),2),a=i[0],s=i[1],u=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var l=0;l<n.changedTouches.length;l++){var c=n.changedTouches[l],d={pointer:c,pointerId:D.getPointerId(c),pointerType:o,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},f=Dn(d);u.push([d.pointer,d.eventTarget,d.curEventTarget,f])}}else{var h=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var p=0;p<r.length&&!h;p++)h="mouse"!==r[p].pointerType&&r[p].pointerIsDown;h=h||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!h){var v={pointer:n,pointerId:D.getPointerId(n),pointerType:o,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},m=Dn(v);u.push([v.pointer,v.eventTarget,v.curEventTarget,m])}}for(var g=0;g<u.length;g++){var y=An(u[g],4),w=y[0],k=y[1],x=y[2];y[3][e](w,n,k,x)}}}function Dn(e){var t=e.pointerType,n=e.scope,r={interaction:_n.default.search(e),searchDetails:e};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:t})}function zn(e,t){var n=e.doc,r=e.scope,o=e.options,i=r.interactions.docEvents,a=r.events,s=a[t];for(var u in r.browser.isIOS&&!o.events&&(o.events={passive:!1}),a.delegatedEvents)s(n,u,a.delegateListener),s(n,u,a.delegateUseCapture,!0);for(var l=o&&o.events,c=0;c<i.length;c++){var d=i[c];s(n,d.type,d.listener,l)}}var Fn={id:"core/interactions",install:function(e){for(var t={},n=0;n<Bn.length;n++){var r=Bn[n];t[r]=$n(r,e)}var o,i=b.default.pEventTypes;function a(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var t=n.pointers[o];e.documents.some(function(e){var n=e.doc;return(0,x.nodeContains)(n,t.downTarget)})||n.removePointer(t.pointer,t.event)},o=0;o<n.pointers.length;o++)r()}}(o=v.default.PointerEvent?[{type:i.down,listener:a},{type:i.down,listener:t.pointerDown},{type:i.move,listener:t.pointerMove},{type:i.up,listener:t.pointerUp},{type:i.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}(s,t);var n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Ln(o);if(i){var n=Ln(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,(r=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(zt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:o,pointerMoveTolerance:1},e.usePlugin(it.default)},listeners:{"scope:add-document":function(e){return zn(e,"add")},"scope:remove-document":function(e){return zn(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,r=t.interactions.list.length-1;r>=0;r--){var o=t.interactions.list[r];o.interactable===n&&(o.stop(),t.fire("interactions:destroy",{interaction:o}),o.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(r,1))}}},onDocSignal:zn,doOnInteractions:$n,methodNames:Bn},Nn=Fn;Mn.default=Nn;var Un={};function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Wn(){return Wn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Vn(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wn.apply(this,arguments)}function qn(e,t){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qn(e,t)}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vn(e)}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xn(e,t,n){return t&&Zn(e.prototype,t),n&&Zn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Un,"__esModule",{value:!0}),Un.Scope=void 0,Un.initScope=Jn;var Kn=function(){function e(){var t=this;Gn(this,e),Yn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Yn(this,"isInitialized",!1),Yn(this,"listenerMaps",[]),Yn(this,"browser",b.default),Yn(this,"defaults",(0,ht.default)(Ot.defaults)),Yn(this,"Eventable",sn.Eventable),Yn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Yn(this,"interactStatic",(0,fn.createInteractStatic)(this)),Yn(this,"InteractEvent",_t.InteractEvent),Yn(this,"Interactable",void 0),Yn(this,"interactables",new mn.InteractableSet(this)),Yn(this,"_win",void 0),Yn(this,"document",void 0),Yn(this,"window",void 0),Yn(this,"documents",[]),Yn(this,"_plugins",{list:[],map:{}}),Yn(this,"onWindowUnload",function(e){return t.removeDocument(e.target)});var n=this;this.Interactable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qn(e,t)}(i,e);var t,r,o=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=Vn(t);if(r){var o=Vn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(){return Gn(this,i),o.apply(this,arguments)}return Xn(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return Wn(Vn(i.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){Wn(Vn(i.prototype),"unset",this).call(this);var e=n.interactables.list.indexOf(this);e<0||(Wn(Vn(i.prototype),"unset",this).call(this),n.interactables.list.splice(e,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(hn.Interactable)}return Xn(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var r=this.listenerMaps[n].map[e];if(r&&!1===r(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:Jn(this,e)}},{key:"pluginIsInstalled",value:function(e){return this._plugins.map[e.id]||-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,r=this.listenerMaps.length,o=e.before.reduce(function(e,t){return e[t]=!0,e[Qn(t)]=!0,e},{});n<r;n++){var i=this.listenerMaps[n].id;if(o[i]||o[Qn(i)])break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(-1!==this.getDocIndex(e))return!1;var r=t.getWindow(e);n=n?(0,j.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(r,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:r,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),r=t.getWindow(e),o=this.documents[n].options;this.events.remove(r,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:r,scope:this,options:o})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function Jn(e,n){return e.isInitialized=!0,i.default.window(n)&&t.init(n),v.default.init(n),b.default.init(n),Pe.default.init(n),e.window=n,e.document=n.document,e.usePlugin(Mn.default),e.usePlugin(bn.default),e}function Qn(e){return e&&e.replace(/\/.*$/,"")}Un.Scope=Kn;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var tr=new Un.Scope,nr=tr.interactStatic;er.default=nr;var rr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;tr.init(rr);var or={};Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0,or.default=function(){};var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0,ir.default=function(){};var ar={};function sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0,ar.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(t){var n=sr(t,2),r=n[0],o=n[1];return r in e||o in e}),n=function(n,r){for(var o=e.range,i=e.limits,a=void 0===i?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:i,s=e.offset,u=void 0===s?{x:0,y:0}:s,l={range:o,grid:e,x:null,y:null},c=0;c<t.length;c++){var d=sr(t[c],2),f=d[0],h=d[1],p=Math.round((n-u.x)/e[f]),v=Math.round((r-u.y)/e[h]);l[f]=Math.max(a.left,Math.min(a.right,p*e[f]+u.x)),l[h]=Math.max(a.top,Math.min(a.bottom,v*e[h]+u.y))}return l};return n.grid=e,n.coordFields=t,n};var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),Object.defineProperty(lr,"edgeTarget",{enumerable:!0,get:function(){return or.default}}),Object.defineProperty(lr,"elements",{enumerable:!0,get:function(){return ir.default}}),Object.defineProperty(lr,"grid",{enumerable:!0,get:function(){return ar.default}});var cr={};Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=void 0;var dr={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,j.default)(t.snappers||{},lr),t.createSnapGrid=t.snappers.grid}},fr=dr;cr.default=fr;var hr={};function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach(function(t){mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=hr.aspectRatio=void 0;var gr={start:function(e){var t=e.state,n=e.rect,r=e.edges,o=e.pageCoords,i=t.options,a=i.ratio,s=i.enabled,u=t.options,l=u.equalDelta,c=u.modifiers;"preserve"===a&&(a=n.width/n.height),t.startCoords=(0,j.default)({},o),t.startRect=(0,j.default)({},n),t.ratio=a,t.equalDelta=l;var d=t.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(t.xIsPrimaryAxis=!(!r.left&&!r.right),t.equalDelta){var f=(d.left?1:-1)*(d.top?1:-1);t.edgeSign={x:f,y:f}}else t.edgeSign={x:d.left?-1:1,y:d.top?-1:1};if(!1!==s&&(0,j.default)(r,d),null!=c&&c.length){var h=new pt.default(e.interaction);h.copyFrom(e.interaction.modification),h.prepareStates(c),t.subModification=h,h.startAll(vr({},e))}},set:function(e){var t=e.state,n=e.rect,r=e.coords,o=t.linkedEdges,i=(0,j.default)({},r),a=t.equalDelta?yr:br;if((0,j.default)(e.edges,o),a(t,t.xIsPrimaryAxis,r,n),!t.subModification)return null;var s=(0,j.default)({},n);(0,M.addEdges)(o,s,{x:r.x-i.x,y:r.y-i.y});var u=t.subModification.setAll(vr(vr({},e),{},{rect:s,edges:o,pageCoords:r,prevCoords:r,prevRect:s})),l=u.delta;return u.changed&&(a(t,Math.abs(l.x)>Math.abs(l.y),u.coords,u.rect),(0,j.default)(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function yr(e,t,n){var r=e.startCoords,o=e.edgeSign;t?n.y=r.y+(n.x-r.x)*o.y:n.x=r.x+(n.y-r.y)*o.x}function br(e,t,n,r){var o=e.startRect,i=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var u=r.width/a;n.y=i.y+(u-o.height)*s.y}else{var l=r.height*a;n.x=i.x+(l-o.width)*s.x}}hr.aspectRatio=gr;var wr=(0,kt.makeModifier)(gr,"aspectRatio");hr.default=wr;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var xr=function(){};xr._defaults={};var Sr=xr;kr.default=Sr;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Object.defineProperty(Pr,"default",{enumerable:!0,get:function(){return kr.default}});var Or={};function _r(e,t,n){return i.default.func(e)?M.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):M.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0,Or.getRestrictionRect=_r,Or.restrict=void 0;var Cr={start:function(e){var t=e.rect,n=e.startOffset,r=e.state,o=e.interaction,i=e.pageCoords,a=r.options,s=a.elementRect,u=(0,j.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var l=_r(a.restriction,o,i);if(l){var c=l.right-l.left-t.width,d=l.bottom-l.top-t.height;c<0&&(u.left+=c,u.right+=c),d<0&&(u.top+=d,u.bottom+=d)}u.left+=n.left-t.width*s.left,u.top+=n.top-t.height*s.top,u.right+=n.right-t.width*(1-s.right),u.bottom+=n.bottom-t.height*(1-s.bottom)}r.offset=u},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.options,i=r.offset,a=_r(o.restriction,n,t);if(a){var s=M.xywhToTlbr(a);t.x=Math.max(Math.min(s.right-i.right,t.x),s.left+i.left),t.y=Math.max(Math.min(s.bottom-i.bottom,t.y),s.top+i.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};Or.restrict=Cr;var Er=(0,kt.makeModifier)(Cr,"restrict");Or.default=Er;var jr={};Object.defineProperty(jr,"__esModule",{value:!0}),jr.restrictEdges=jr.default=void 0;var Mr={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Tr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ar(e,t){for(var n=["top","left","bottom","right"],r=0;r<n.length;r++){var o=n[r];o in e||(e[o]=t[o])}return e}var Ir={noInner:Mr,noOuter:Tr,start:function(e){var t,n=e.interaction,r=e.startOffset,o=e.state,i=o.options;if(i){var a=(0,Or.getRestrictionRect)(i.offset,n,n.coords.start.page);t=M.rectToXY(a)}t=t||{x:0,y:0},o.offset={top:t.y+r.top,left:t.x+r.left,bottom:t.y-r.bottom,right:t.x-r.right}},set:function(e){var t=e.coords,n=e.edges,r=e.interaction,o=e.state,i=o.offset,a=o.options;if(n){var s=(0,j.default)({},t),u=(0,Or.getRestrictionRect)(a.inner,r,s)||{},l=(0,Or.getRestrictionRect)(a.outer,r,s)||{};Ar(u,Mr),Ar(l,Tr),n.top?t.y=Math.min(Math.max(l.top+i.top,s.y),u.top+i.top):n.bottom&&(t.y=Math.max(Math.min(l.bottom+i.bottom,s.y),u.bottom+i.bottom)),n.left?t.x=Math.min(Math.max(l.left+i.left,s.x),u.left+i.left):n.right&&(t.x=Math.max(Math.min(l.right+i.right,s.x),u.right+i.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};jr.restrictEdges=Ir;var Rr=(0,kt.makeModifier)(Ir,"restrictEdges");jr.default=Rr;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.restrictRect=Lr.default=void 0;var Br=(0,j.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},Or.restrict.defaults),$r={start:Or.restrict.start,set:Or.restrict.set,defaults:Br};Lr.restrictRect=$r;var Dr=(0,kt.makeModifier)($r,"restrictRect");Lr.default=Dr;var zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.restrictSize=zr.default=void 0;var Fr={width:-1/0,height:-1/0},Nr={width:1/0,height:1/0},Ur={start:function(e){return jr.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,r=e.rect,o=e.edges,i=n.options;if(o){var a=M.tlbrToXywh((0,Or.getRestrictionRect)(i.min,t,e.coords))||Fr,s=M.tlbrToXywh((0,Or.getRestrictionRect)(i.max,t,e.coords))||Nr;n.options={endOnly:i.endOnly,inner:(0,j.default)({},jr.restrictEdges.noInner),outer:(0,j.default)({},jr.restrictEdges.noOuter)},o.top?(n.options.inner.top=r.bottom-a.height,n.options.outer.top=r.bottom-s.height):o.bottom&&(n.options.inner.bottom=r.top+a.height,n.options.outer.bottom=r.top+s.height),o.left?(n.options.inner.left=r.right-a.width,n.options.outer.left=r.right-s.width):o.right&&(n.options.inner.right=r.left+a.width,n.options.outer.right=r.left+s.width),jr.restrictEdges.set(e),n.options=i}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};zr.restrictSize=Ur;var Hr=(0,kt.makeModifier)(Ur,"restrictSize");zr.default=Hr;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0}),Object.defineProperty(Wr,"default",{enumerable:!0,get:function(){return kr.default}});var qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.snap=qr.default=void 0;var Vr={start:function(e){var t,n=e.interaction,r=e.interactable,o=e.element,i=e.rect,a=e.state,s=e.startOffset,u=a.options,l=u.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,M.rectToXY)((0,M.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,I.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===u.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var c=(0,M.resolveRectLike)(u.offset,r,o,[n]);(t=(0,M.rectToXY)(c)||{x:0,y:0}).x+=l.x,t.y+=l.y}var d=u.relativePoints;a.offsets=i&&d&&d.length?d.map(function(e,n){return{index:n,relativePoint:e,x:s.left-i.width*e.x+t.x,y:s.top-i.height*e.y+t.y}}):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,r=e.state,o=r.options,a=r.offsets,s=(0,I.default)(t.interactable,t.element,t.prepared.name),u=(0,j.default)({},n),l=[];o.offsetWithOrigin||(u.x-=s.x,u.y-=s.y);for(var c=0;c<a.length;c++)for(var d=a[c],f=u.x-d.x,h=u.y-d.y,p=0,v=o.targets.length;p<v;p++){var m,g=o.targets[p];(m=i.default.func(g)?g(f,h,t._proxy,d,p):g)&&l.push({x:(i.default.number(m.x)?m.x:f)+d.x,y:(i.default.number(m.y)?m.y:h)+d.y,range:i.default.number(m.range)?m.range:o.range,source:g,index:p,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var w=l[b],k=w.range,x=w.x-u.x,S=w.y-u.y,P=(0,B.default)(x,S),O=P<=k;k===1/0&&y.inRange&&y.range!==1/0&&(O=!1),y.target&&!(O?y.inRange&&k!==1/0?P/k<y.distance/y.range:k===1/0&&y.range!==1/0||P<y.distance:!y.inRange&&P<y.distance)||(y.target=w,y.distance=P,y.range=k,y.inRange=O,y.delta.x=x,y.delta.y=S)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),r.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};qr.snap=Vr;var Gr=(0,kt.makeModifier)(Vr,"snap");qr.default=Gr;var Zr={};function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.snapSize=Zr.default=void 0;var Yr={start:function(e){var t=e.state,n=e.edges,r=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],qr.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t,n=e.interaction,r=e.state,o=e.coords,a=r.options,s=r.offsets,u={x:o.x-s[0].x,y:o.y-s[0].y};r.options=(0,j.default)({},a),r.options.targets=[];for(var l=0;l<(a.targets||[]).length;l++){var c=(a.targets||[])[l],d=void 0;if(d=i.default.func(c)?c(u.x,u.y,n):c){for(var f=0;f<r.targetFields.length;f++){var h=function(e){if(Array.isArray(e))return e}(t=r.targetFields[f])||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return Xr(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Xr(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=h[0],v=h[1];if(p in d||v in d){d.x=d[p],d.y=d[v];break}}r.options.targets.push(d)}}var m=qr.snap.set(e);return r.options=a,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Zr.snapSize=Yr;var Kr=(0,kt.makeModifier)(Yr,"snapSize");Zr.default=Kr;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.snapEdges=Jr.default=void 0;var Qr={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Zr.snapSize.start(e)):null},set:Zr.snapSize.set,defaults:(0,j.default)((0,ht.default)(Zr.snapSize.defaults),{targets:null,range:null,offset:{x:0,y:0}})};Jr.snapEdges=Qr;var eo=(0,kt.makeModifier)(Qr,"snapEdges");Jr.default=eo;var to={};Object.defineProperty(to,"__esModule",{value:!0}),Object.defineProperty(to,"default",{enumerable:!0,get:function(){return kr.default}});var no={};Object.defineProperty(no,"__esModule",{value:!0}),Object.defineProperty(no,"default",{enumerable:!0,get:function(){return kr.default}});var ro={};Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var oo={aspectRatio:hr.default,restrictEdges:jr.default,restrict:Or.default,restrictRect:Lr.default,restrictSize:zr.default,snapEdges:Jr.default,snap:qr.default,snapSize:Zr.default,spring:to.default,avoid:Pr.default,transform:no.default,rubberband:Wr.default};ro.default=oo;var io={};Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var ao={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(kt.default),e.usePlugin(cr.default),t.modifiers=ro.default,ro.default){var r=ro.default[n],o=r._defaults,i=r._methods;o._methods=i,e.defaults.perAction[n]=o}}},so=ao;io.default=so;var uo={};function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function co(e,t){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},co(e,t)}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ho(e)}Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=uo.PointerEvent=void 0;var po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&co(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ho(r);if(o){var n=ho(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===lo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fo(e)}(this,e)});function a(e,t,n,r,o,s){var u;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=i.call(this,o),D.pointerExtend(fo(u),n),n!==t&&D.pointerExtend(fo(u),t),u.timeStamp=s,u.originalEvent=n,u.type=e,u.pointerId=D.getPointerId(t),u.pointerType=D.getPointerType(t),u.target=r,u.currentTarget=null,"tap"===e){var l=o.getPointerIndex(t);u.dt=u.timeStamp-o.pointers[l].downTime;var c=u.timeStamp-o.tapTime;u.double=!!o.prevTap&&"doubletap"!==o.prevTap.type&&o.prevTap.target===u.target&&c<500}else"doubletap"===e&&(u.dt=t.timeStamp-o.tapTime,u.double=!0);return u}return t=a,(n=[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(q.BaseEvent);uo.PointerEvent=uo.default=po;var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var mo={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=mo,e.defaults.actions.pointerEvents=mo.defaults,(0,j.default)(e.actions.phaselessTypes,mo.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&bo(e),go({interaction:n,pointer:r,event:o,eventTarget:i,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,u=x.getPath(i),l={interaction:n,pointer:r,event:o,eventTarget:i,type:"hold",targets:[],path:u,node:null},c=0;c<u.length;c++){var d=u[c];l.node=d,t.fire("pointerEvents:collect-targets",l)}if(l.targets.length){for(var f=1/0,h=0;h<l.targets.length;h++){var p=l.targets[h].eventable.options.holdDuration;p<f&&(f=p)}s.duration=f,s.timeout=setTimeout(function(){go({interaction:n,eventTarget:i,pointer:r,event:o,type:"hold"},t)},f)}}(e,t),go(e,t)},"interactions:up":function(e,t){bo(e),go(e,t),function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.pointerWasMoved||go({interaction:n,eventTarget:i,pointer:r,event:o,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){bo(e),go(e,t)}},PointerEvent:uo.PointerEvent,fire:go,collectEventTargets:yo,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function go(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=e.targets,u=void 0===s?yo(e,t):s,l=new uo.PointerEvent(a,r,o,i,n,t.now());t.fire("pointerEvents:new",{pointerEvent:l});for(var c={interaction:n,pointer:r,event:o,eventTarget:i,targets:u,type:a,pointerEvent:l},d=0;d<u.length;d++){var f=u[d];for(var h in f.props||{})l[h]=f.props[h];var p=(0,I.default)(f.eventable,f.node);if(l._subtractOrigin(p),l.eventable=f.eventable,l.currentTarget=f.node,f.eventable.fire(l),l._addOrigin(p),l.immediatePropagationStopped||l.propagationStopped&&d+1<u.length&&u[d+1].node!==l.currentTarget)break}if(t.fire("pointerEvents:fired",c),"tap"===a){var v=l.double?go({interaction:n,pointer:r,event:o,eventTarget:i,type:"doubletap"},t):l;n.prevTap=v,n.tapTime=v.timeStamp}return l}function yo(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=n.getPointerIndex(r),u=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!u||u.downTarget!==i))return[];for(var l=x.getPath(i),c={interaction:n,pointer:r,event:o,eventTarget:i,type:a,path:l,targets:[],node:null},d=0;d<l.length;d++){var f=l[d];c.node=f,t.fire("pointerEvents:collect-targets",c)}return"hold"===a&&(c.targets=c.targets.filter(function(e){var t;return e.eventable.options.holdDuration===(null==(t=n.pointers[s])?void 0:t.hold.duration)})),c.targets}function bo(e){var t=e.interaction,n=e.pointerIndex,r=t.pointers[n].hold;r&&r.timeout&&(clearTimeout(r.timeout),r.timeout=null)}var wo=mo;vo.default=wo;var ko={};function xo(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var So={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(vo.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(e,t){return e["pointerEvents:".concat(t)]=xo,e},{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,r=e.pointerEvent,o=e.eventTarget,i=e.targets;if("hold"===r.type&&i.length){var a=i[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:n,eventTarget:o,type:"hold",pointer:r,event:r},t)},a))}}})},Po=So;ko.default=Po;var Oo={};function _o(e){return(0,j.default)(this.events.options,e),this}Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var Co={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=_o;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var r=n.call(this,e,t);return r===this&&(this.events.options[e]=t),r}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,r=e.node,o=e.type,i=e.eventTarget;t.interactables.forEachMatch(r,function(e){var t=e.events,a=t.options;t.types[o]&&t.types[o].length&&e.testIgnoreAllow(a,r,i)&&n.push({node:r,eventable:t,props:{interactable:e}})})},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,r=e.options;(0,j.default)(n.events.options,t.pointerEvents.defaults),(0,j.default)(n.events.options,r.pointerEvents||{})}}},Eo=Co;Oo.default=Eo;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var Mo={id:"pointer-events",install:function(e){e.usePlugin(vo),e.usePlugin(ko.default),e.usePlugin(Oo.default)}},To=Mo;jo.default=To;var Ao={};function Io(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var r=i.default.string(e.target)?Z.from(e._context.querySelectorAll(e.target)):[e.target],o=n.window.Promise,a=o?[]:null,s=function(){var i=r[u],s=e.getRect(i);if(!s)return"break";var l=Z.find(n.interactions.list,function(n){return n.interacting()&&n.interactable===e&&n.element===i&&n.prepared.name===t.name}),c=void 0;if(l)l.move(),a&&(c=l._reflowPromise||new o(function(e){l._reflowResolve=e}));else{var d=(0,M.tlbrToXywh)(s),f={page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()},h=D.coordsToEvent(f);c=function(e,t,n,r,o){var i=e.interactions.new({pointerType:"reflow"}),a={interaction:i,event:o,pointer:o,eventTarget:n,phase:"reflow"};i.interactable=t,i.element=n,i.prevEvent=o,i.updatePointer(o,o,n,!0),D.setZeroCoords(i.coords.delta),(0,Le.copyAction)(i.prepared,r),i._doPhase(a);var s=e.window.Promise,u=s?new s(function(e){i._reflowResolve=e}):void 0;return i._reflowPromise=u,i.start(r,t,n),i._interacting?(i.move(a),i.end(o)):(i.stop(),i._reflowResolve()),i.removePointer(o,o),u}(n,e,i,t,h)}a&&a.push(c)},u=0;u<r.length&&"break"!==s();u++);return a&&o.all(a).then(function(){return e})}(this,t,e)}}Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=void 0,Ao.install=Io;var Ro={id:"reflow",install:Io,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),Z.remove(t.interactions.list,n))}}},Lo=Ro;Ao.default=Lo;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0,er.default.use(it.default),er.default.use(Wt.default),er.default.use(jo.default),er.default.use(Jt.default),er.default.use(io.default),er.default.use(rt.default),er.default.use(xe.default),er.default.use(je.default),er.default.use(Ao.default);var $o=er.default;Bo.default=$o,er.default.default=er.default,xe.default,je.default,rt.default,it.default,ft.default,Jt.default,er.default,io.default,Wt.default,jo.default,Ao.default;var Do={exports:{}};function zo(e){return zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zo(e)}Object.defineProperty(Do.exports,"__esModule",{value:!0}),Do.exports.default=void 0;var Fo=Bo.default;if(Do.exports.default=Fo,"object"===zo(Do)&&Do)try{Do.exports=Bo.default}catch(e){}return Bo.default.default=Bo.default,Do.exports}()},4638:function(e,t,n){!function(e,t,n){var r,o,i,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,k,x,S,P,O,_,C,E,j,M,T,A,I,R,L,B={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return e(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,n=e(this).data("cbox-img-attrs");return"object"==typeof n&&e.each(n,function(e,n){t[e]=n}),t},createIframe:function(){var n=t.createElement("iframe"),r=e(this).data("cbox-iframe-attrs");return"object"==typeof r&&e.each(r,function(e,t){n[e]=t}),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},$="colorbox",D="cbox",z=D+"Element",F=D+"_open",N=D+"_load",U=D+"_complete",H=D+"_cleanup",W=D+"_closed",q=D+"_purge",V=e("<a/>"),G="div",Z=0,X={};function Y(n,r,o){var i=t.createElement(n);return r&&(i.id=D+r),o&&(i.style.cssText=o),e(i)}function K(){return n.innerHeight?n.innerHeight:e(n).height()}function J(t,n){n!==Object(n)&&(n={}),this.cache={},this.el=t,this.value=function(t){var r;return void 0===this.cache[t]&&(void 0!==(r=e(this.el).attr("data-cbox-"+t))?this.cache[t]=r:void 0!==n[t]?this.cache[t]=n[t]:void 0!==B[t]&&(this.cache[t]=B[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function Q(e){var t=d.length,n=(E+e)%t;return n<0?t+n:n}function ee(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():K())/100:1)*parseInt(e,10))}function te(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ne(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function re(e){"contains"in o[0]&&!o[0].contains(e.target)&&e.target!==r[0]&&(e.stopPropagation(),o.focus())}function oe(e){oe.str!==e&&(o.add(r).removeClass(oe.str).addClass(e),oe.str=e)}function ie(n){e(t).trigger(n),V.triggerHandler(n)}var ae=function(){var e,t,n=D+"Slideshow_",r="click."+D;function i(){clearTimeout(t)}function a(){(S.get("loop")||d[E+1])&&(i(),t=setTimeout(R.next,S.get("slideshowSpeed")))}function s(){y.html(S.get("slideshowStop")).unbind(r).one(r,u),V.bind(U,a).bind(N,i),o.removeClass(n+"off").addClass(n+"on")}function u(){i(),V.unbind(U,a).unbind(N,i),y.html(S.get("slideshowStart")).unbind(r).one(r,function(){R.next(),s()}),o.removeClass(n+"on").addClass(n+"off")}function l(){e=!1,y.hide(),i(),V.unbind(U,a).unbind(N,i),o.removeClass(n+"off "+n+"on")}return function(){e?S.get("slideshow")||(V.unbind(H,l),l()):S.get("slideshow")&&d[1]&&(e=!0,V.one(H,l),S.get("slideshowAuto")?s():u(),y.show())}}();function se(i){var f,g;if(!A){if(f=e(i).data($),S=new J(i,f),g=S.get("rel"),E=0,g&&!1!==g&&"nofollow"!==g?(d=e("."+z).filter(function(){return new J(this,e.data(this,$)).get("rel")===g}),-1===(E=d.index(S.el))&&(d=d.add(S.el),E=d.length-1)):d=e(S.el),!M){M=T=!0,oe(S.get("className")),o.css({visibility:"hidden",display:"block",opacity:""}),h=Y(G,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(h),P=s.height()+c.height()+a.outerHeight(!0)-a.height(),O=u.width()+l.width()+a.outerWidth(!0)-a.width(),_=h.outerHeight(!0),C=h.outerWidth(!0);var y=ee(S.get("initialWidth"),"x"),b=ee(S.get("initialHeight"),"y"),w=S.get("maxWidth"),L=S.get("maxHeight");S.w=Math.max((!1!==w?Math.min(y,ee(w,"x")):y)-C-O,0),S.h=Math.max((!1!==L?Math.min(b,ee(L,"y")):b)-_-P,0),h.css({width:"",height:S.h}),R.position(),ie(F),S.get("onOpen"),x.add(m).hide(),o.focus(),S.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",re,!0),V.one(W,function(){t.removeEventListener("focus",re,!0)})),S.get("returnFocus")&&V.one(W,function(){e(S.el).focus()})}var B=parseFloat(S.get("opacity"));r.css({opacity:B==B?B:"",cursor:S.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),S.get("closeButton")?k.html(S.get("close")).appendTo(a):k.appendTo("<div/>"),function(){var t,r,o,i=R.prep,a=++Z;if(T=!0,j=!1,ie(q),ie(N),S.get("onLoad"),S.h=S.get("height")?ee(S.get("height"),"y")-_-P:S.get("innerHeight")&&ee(S.get("innerHeight"),"y"),S.w=S.get("width")?ee(S.get("width"),"x")-C-O:S.get("innerWidth")&&ee(S.get("innerWidth"),"x"),S.mw=S.w,S.mh=S.h,S.get("maxWidth")&&(S.mw=ee(S.get("maxWidth"),"x")-C-O,S.mw=S.w&&S.w<S.mw?S.w:S.mw),S.get("maxHeight")&&(S.mh=ee(S.get("maxHeight"),"y")-_-P,S.mh=S.h&&S.h<S.mh?S.h:S.mh),t=S.get("href"),I=setTimeout(function(){v.show()},100),S.get("inline")){var s=e(t).eq(0);o=e("<div>").hide().insertBefore(s),V.one(q,function(){o.replaceWith(s)}),i(s)}else S.get("iframe")?i(" "):S.get("html")?i(S.get("html")):te(S,t)?(t=ne(S,t),j=S.get("createImg"),e(j).addClass(D+"Photo").bind("error."+D,function(){i(Y(G,"Error").html(S.get("imgError")))}).one("load",function(){a===Z&&setTimeout(function(){var t;S.get("retinaImage")&&n.devicePixelRatio>1&&(j.height=j.height/n.devicePixelRatio,j.width=j.width/n.devicePixelRatio),S.get("scalePhotos")&&(r=function(){j.height-=j.height*t,j.width-=j.width*t},S.mw&&j.width>S.mw&&(t=(j.width-S.mw)/j.width,r()),S.mh&&j.height>S.mh&&(t=(j.height-S.mh)/j.height,r())),S.h&&(j.style.marginTop=Math.max(S.mh-j.height,0)/2+"px"),d[1]&&(S.get("loop")||d[E+1])&&(j.style.cursor="pointer",e(j).bind("click."+D,function(){R.next()})),j.style.width=j.width+"px",j.style.height=j.height+"px",i(j)},1)}),j.src=t):t&&p.load(t,S.get("data"),function(t,n){a===Z&&i("error"===n?Y(G,"Error").html(S.get("xhrError")):e(this).contents())})}()}}function ue(){o||(L=!1,f=e(n),o=Y(G).attr({id:$,class:!1===e.support.opacity?D+"IE":"",role:"dialog",tabindex:"-1"}).hide(),r=Y(G,"Overlay").hide(),v=e([Y(G,"LoadingOverlay")[0],Y(G,"LoadingGraphic")[0]]),i=Y(G,"Wrapper"),a=Y(G,"Content").append(m=Y(G,"Title"),g=Y(G,"Current"),w=e('<button type="button"/>').attr({id:D+"Previous"}),b=e('<button type="button"/>').attr({id:D+"Next"}),y=e('<button type="button"/>').attr({id:D+"Slideshow"}),v),k=e('<button type="button"/>').attr({id:D+"Close"}),i.append(Y(G).append(Y(G,"TopLeft"),s=Y(G,"TopCenter"),Y(G,"TopRight")),Y(G,!1,"clear:left").append(u=Y(G,"MiddleLeft"),a,l=Y(G,"MiddleRight")),Y(G,!1,"clear:left").append(Y(G,"BottomLeft"),c=Y(G,"BottomCenter"),Y(G,"BottomRight"))).find("div div").css({float:"left"}),p=Y(G,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=b.add(w).add(g).add(y)),t.body&&!o.parent().length&&e(t.body).append(r,o.append(i,p))}e[$]||(e(ue),(R=e.fn[$]=e[$]=function(n,i){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ue(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),se(this))}return!!o&&(L||(L=!0,b.click(function(){R.next()}),w.click(function(){R.prev()}),k.click(function(){R.close()}),r.click(function(){S.get("overlayClose")&&R.close()}),e(t).bind("keydown."+D,function(e){var t=e.keyCode;M&&S.get("escKey")&&27===t&&(e.preventDefault(),R.close()),M&&S.get("arrowKey")&&d[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),b.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+D,"."+z,n):e("."+z).live("click."+D,n)),!0)}()&&(i&&(n.onComplete=i),a.each(function(){var t=e.data(this,$)||{};e.data(this,$,e.extend(t,n))}).addClass(z),new J(a[0],n).get("open")&&se(a[0])),a):a}).position=function(t,n){var r,d,h,p=0,v=0,m=o.offset();function g(){s[0].style.width=c[0].style.width=a[0].style.width=parseInt(o[0].style.width,10)-O+"px",a[0].style.height=u[0].style.height=l[0].style.height=parseInt(o[0].style.height,10)-P+"px"}if(f.unbind("resize."+D),o.css({top:-9e4,left:-9e4}),d=f.scrollTop(),h=f.scrollLeft(),S.get("fixed")?(m.top-=d,m.left-=h,o.css({position:"fixed"})):(p=d,v=h,o.css({position:"absolute"})),!1!==S.get("right")?v+=Math.max(f.width()-S.w-C-O-ee(S.get("right"),"x"),0):!1!==S.get("left")?v+=ee(S.get("left"),"x"):v+=Math.round(Math.max(f.width()-S.w-C-O,0)/2),!1!==S.get("bottom")?p+=Math.max(K()-S.h-_-P-ee(S.get("bottom"),"y"),0):!1!==S.get("top")?p+=ee(S.get("top"),"y"):p+=Math.round(Math.max(K()-S.h-_-P,0)/2),o.css({top:m.top,left:m.left,visibility:"visible"}),i[0].style.width=i[0].style.height="9999px",r={width:S.w+C+O,height:S.h+_+P,top:p,left:v},t){var y=0;e.each(r,function(e){r[e]===X[e]||(y=t)}),t=y}X=r,t||o.css(r),o.dequeue().animate(r,{duration:t||0,complete:function(){g(),T=!1,i[0].style.width=S.w+C+O+"px",i[0].style.height=S.h+_+P+"px",S.get("reposition")&&setTimeout(function(){f.bind("resize."+D,R.position)},1),e.isFunction(n)&&n()},step:g})},R.resize=function(e){var t;M&&((e=e||{}).width&&(S.w=ee(e.width,"x")-C-O),e.innerWidth&&(S.w=ee(e.innerWidth,"x")),h.css({width:S.w}),e.height&&(S.h=ee(e.height,"y")-_-P),e.innerHeight&&(S.h=ee(e.innerHeight,"y")),e.innerHeight||e.height||(t=h.scrollTop(),h.css({height:"auto"}),S.h=h.height()),h.css({height:S.h}),t&&h.scrollTop(t),R.position("none"===S.get("transition")?0:S.get("speed")))},R.prep=function(n){if(M){var r,i="none"===S.get("transition")?0:S.get("speed");h.remove(),(h=Y(G,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(S.w=S.w||h.width(),S.w=S.mw&&S.mw<S.w?S.mw:S.w,S.w),overflow:S.get("scrolling")?"auto":"hidden"}).css({height:(S.h=S.h||h.height(),S.h=S.mh&&S.mh<S.h?S.mh:S.h,S.h)}).prependTo(a),p.hide(),e(j).css({float:"none"}),oe(S.get("className")),r=function(){var n,r,a=d.length;function s(){!1===e.support.opacity&&o[0].style.removeAttribute("filter")}M&&(r=function(){clearTimeout(I),v.hide(),ie(U),S.get("onComplete")},m.html(S.get("title")).show(),h.show(),a>1?("string"==typeof S.get("current")&&g.html(S.get("current").replace("{current}",E+1).replace("{total}",a)).show(),b[S.get("loop")||E<a-1?"show":"hide"]().html(S.get("next")),w[S.get("loop")||E?"show":"hide"]().html(S.get("previous")),ae(),S.get("preloading")&&e.each([Q(-1),Q(1)],function(){var n=d[this],r=new J(n,e.data(n,$)),o=r.get("href");o&&te(r,o)&&(o=ne(r,o),t.createElement("img").src=o)})):x.hide(),S.get("iframe")?(n=S.get("createIframe"),S.get("scrolling")||(n.scrolling="no"),e(n).attr({src:S.get("href"),class:D+"Iframe"}).one("load",r).appendTo(h),V.one(q,function(){n.src="//about:blank"}),S.get("fastIframe")&&e(n).trigger("load")):r(),"fade"===S.get("transition")?o.fadeTo(i,1,s):s())},"fade"===S.get("transition")?o.fadeTo(i,0,function(){R.position(0,r)}):R.position(i,r)}},R.next=function(){!T&&d[1]&&(S.get("loop")||d[E+1])&&(E=Q(1),se(d[E]))},R.prev=function(){!T&&d[1]&&(S.get("loop")||E)&&(E=Q(-1),se(d[E]))},R.close=function(){M&&!A&&(A=!0,M=!1,ie(H),S.get("onCleanup"),f.unbind("."+D),r.fadeTo(S.get("fadeOut")||0,0),o.stop().fadeTo(S.get("fadeOut")||0,0,function(){o.hide(),r.hide(),ie(q),h.remove(),setTimeout(function(){A=!1,ie(W),S.get("onClosed")},1)}))},R.remove=function(){o&&(o.stop(),e[$].close(),o.stop(!1,!0).remove(),r.remove(),A=!1,o=null,e("."+z).removeData($).removeClass(z),e(t).unbind("click."+D).unbind("keydown."+D))},R.element=function(){return e(S.el)},R.settings=B)}(n(1669),document,window)},8497:function(e,t,n){!function(e){if(e.support.touch="ontouchend"in document,e.support.touch){var t,n=e.ui.mouse.prototype,r=n._mouseInit,o=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,i(e,"mouseover"),i(e,"mousemove"),i(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,i(e,"mousemove"))},n._touchEnd=function(e){t&&(i(e,"mouseup"),i(e,"mouseout"),this._touchMoved||i(e,"click"),t=!1)},n._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),r.call(t)},n._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),o.call(t)}}function i(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(r)}}}(n(1669))},8045:function(e,t,n){var r,o,i;o=[n(1669),n(6883)],void 0===(i="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,o):r)||(e.exports=i)},1897:function(e,t,n){var r,o,i;o=[n(1669),n(6883)],void 0===(i="function"==typeof(r=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(t,o):r)||(e.exports=i)},6883:function(e,t,n){var r,o,i;o=[n(1669)],void 0===(i="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,o):r)||(e.exports=i)},9139:function(e,t,n){var r,o,i;o=[n(1669),n(6883)],r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,o,i;for(i=0;null!=(o=n[i]);i++)try{(r=e._data(o,"events"))&&r.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var o,i,a,s={},u=t.split(".")[0],l=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][l.toLowerCase()]=function(t){return!!e.data(t,l)},e[u]=e[u]||{},o=e[u][t],i=e[u][t]=function(e,t){if(!this._createWidget)return new i(e,t);arguments.length&&this._createWidget(e,t)},e.extend(i,o,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,function(t,r){e.isFunction(r)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,i=this._superApply;return this._super=e,this._superApply=o,t=r.apply(this,arguments),this._super=n,this._superApply=i,t}}():s[t]=r}),i.prototype=e.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||t},s,{constructor:i,namespace:u,widgetName:t,widgetFullName:l}),o?(e.each(o._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,i,n._proto)}),delete o._childConstructors):n._childConstructors.push(i),e.widget.bridge(t,i),i},e.widget.extend=function(t){for(var n,o,i=r.call(arguments,1),a=0,s=i.length;a<s;a++)for(n in i[a])o=i[a][n],i[a].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(i){var a="string"==typeof i,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==i?this.each(function(){var n,r=e.data(this,o);return"instance"===i?(u=r,!1):r?e.isFunction(r[i])&&"_"!==i.charAt(0)?(n=r[i].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+i+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+i+"'")}):u=void 0:(s.length&&(i=e.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=e.data(this,o);t?(t.option(i||{}),t._init&&t._init()):e.data(this,o,new n(i,this))})),u}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,o,i,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(o=a[t]=e.widget.extend({},this.options[t]),i=0;i<r.length-1;i++)o[r[i]]=o[r[i]]||{},o=o[r[i]];if(t=r.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(r=e(o.get()),this._removeClass(o,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],r=this;function o(o,i){var a,s;for(s=0;s<o.length;s++)a=r.classesElementLookup[o[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[o[s]]=a,n.push(o[s]),i&&t.classes[o[s]]&&n.push(t.classes[o[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(r,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[r]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var o="string"==typeof e||null===e,i={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:r};return i.element.toggleClass(this._classes(i),r),this},_on:function(t,n,r){var o,i=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=o=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,o=this.widget()),e.each(r,function(r,a){function s(){if(t||!0!==i.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?i[a]:a).apply(i,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),l=u[1]+i.eventNamespace,c=u[2];c?o.on(l,c,s):n.on(l,s)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var o,i,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],i=n.originalEvent)for(o in i)o in n||(n[o]=i[o]);return this.element.trigger(n,r),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(r,o,i){var a;"string"==typeof o&&(o={effect:o});var s=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),a=!e.isEmptyObject(o),o.complete=i,o.delay&&r.delay(o.delay),a&&e.effects&&e.effects.effect[s]?r[t](o):s!==t&&r[s]?r[s](o.duration,o.easing,i):r.queue(function(n){e(this)[t](),i&&i.call(r[0]),n()})}}),e.widget},void 0===(i=r.apply(t,o))||(e.exports=i)},3662:function(e,t,n){var r,o,i;o=[n(1669),n(8045),n(6883),n(9139)],void 0===(i="function"==typeof(r=function(e){var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,o=1===n.which,i=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(o&&!i&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,o):r)||(e.exports=i)},4720:function(e,t,n){var r,o,i;o=[n(1669),n(3662),n(1897),n(6883),n(9139)],r=function(e){return e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,r=this.options,o=this.element.find(".ui-slider-handle"),i=[];for(n=r.values&&r.values.length||1,o.length>n&&(o.slice(n).remove(),o=o.slice(0,n)),t=o.length;t<n;t++)i.push("<span tabindex='0'></span>");this.handles=o.add(e(i.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,r,o,i,a,s,u,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},r=this._normValueFromMouse(n),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(r-l.values(t));(o>n||o===n&&(t===l._lastChangedValue||l.values(t)===c.min))&&(o=n,i=e(this),a=t)}),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),s=i.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-i.width()/2,top:t.pageY-s.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,o,i;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/t)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),o=this._valueMax()-this._valueMin(),i=this._valueMin()+r*o,this._trimAlignValue(i)},_uiHash:function(e,t,n){var r={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==t?t:this.values(e),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var r,o=this.value(),i=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),o=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(r,n):Math.max(r,n)),i[t]=n),n!==o&&!1!==this._trigger("slide",e,this._uiHash(t,n,i))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var r,o,i;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(r=this.options.values,o=arguments[0],i=0;i<r.length;i+=1)r[i]=this._trimAlignValue(o[i]),this._change(null,i);this._refreshValue()},_setOption:function(t,n){var r,o=0;switch("range"===t&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(o=this.options.values.length),this._super(t,n),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=o-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n,r;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;return 2*Math.abs(n)>=t&&(r+=n>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,r,o,i,a=this.options.range,s=this.options,u=this,l=!this._animateOff&&s.animate,c={};this._hasMultipleValues()?this.handles.each(function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,c["horizontal"===u.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[l?"animate":"css"](c,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[l?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[l?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n}):(r=this.value(),o=this._valueMin(),i=this._valueMax(),n=i!==o?(r-o)/(i-o)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var n,r,o,i=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,i)))return}switch(o=this.options.step,n=r=this._hasMultipleValues()?this.values(i):this.value(),t.keyCode){case e.ui.keyCode.HOME:r=this._valueMin();break;case e.ui.keyCode.END:r=this._valueMax();break;case e.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-o)}this._slide(t,i,r)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}})},void 0===(i=r.apply(t,o))||(e.exports=i)},1669:function(e){"use strict";e.exports=jQuery},9306:function(e,t,n){"use strict";var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},5548:function(e,t,n){"use strict";var r=n(3517),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},3506:function(e,t,n){"use strict";var r=n(3925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469:function(e,t,n){"use strict";var r=n(8227),o=n(2360),i=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},7829:function(e,t,n){"use strict";var r=n(8183).o;e.exports=function(e,t,n){return t+(n&&r(e,t).length||1)}},679:function(e,t,n){"use strict";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},8551:function(e,t,n){"use strict";var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},5652:function(e,t,n){"use strict";var r=n(9039);e.exports=r(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},4373:function(e,t,n){"use strict";var r=n(8981),o=n(5610),i=n(6198);e.exports=[].fill||function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},235:function(e,t,n){"use strict";var r=n(9213).forEach,o=n(4598)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},7916:function(e,t,n){"use strict";var r=n(6080),o=n(9565),i=n(8981),a=n(6319),s=n(4209),u=n(3517),l=n(6198),c=n(4659),d=n(4527),f=n(8563),h=n(3085),p=n(9539),v=n(6837),m=Array;e.exports=function(e){var t=u(this),n=arguments.length,g=n>1?arguments[1]:void 0,y=void 0!==g;y&&(g=r(g,n>2?arguments[2]:void 0));var b,w,k,x,S,P,O=i(e),_=h(O),C=0;if(!_||this===m&&s(_))for(b=l(O),w=t?new this(b):m(b);b>C;C++)P=y?g(O[C],C):O[C],c(w,C,P);else for(w=t?new this:[],S=(x=f(O,_)).next;!(k=o(S,x)).done;C++){try{v(C)}catch(e){p(x,"throw",e)}P=y?a(x,g,[k.value,C],!0):k.value;try{c(w,C,P)}catch(e){p(x,"throw",e)}}return d(w,C),w}},9617:function(e,t,n){"use strict";var r=n(5397),o=n(5610),i=n(6198),a=function(e){return function(t,n,a){var s=r(t),u=i(s);if(0===u)return!e&&-1;var l,c=o(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={m:a(!0),q:a(!1)}},9213:function(e,t,n){"use strict";var r=n(6080),o=n(7055),i=n(8981),a=n(6198),s=n(1469),u=n(4659),l=function(e){var t=1===e,n=2===e,l=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,v,m){for(var g,y,b=i(p),w=o(b),k=a(w),x=r(v,m),S=0,P=0,O=t?s(p,k):n||f?s(p,0):void 0;k>S;S++)if((h||S in w)&&(y=x(g=w[S],S,b),e))if(t)u(O,S,y);else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:u(O,P++,g)}else switch(e){case 4:return!1;case 7:u(O,P++,g)}return d?-1:l||c?c:O}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},597:function(e,t,n){"use strict";var r=n(9039),o=n(8227),i=n(9519),a=o("species");e.exports=function(e){return i>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},4598:function(e,t,n){"use strict";var r=n(9039);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},926:function(e,t,n){"use strict";var r=n(9306),o=n(8981),i=n(7055),a=n(6198),s=TypeError,u="Reduce of empty array with no initial value",l=function(e){return function(t,n,l,c){var d=o(t),f=i(d),h=a(d);if(r(n),0===h&&l<2)throw new s(u);var p=e?h-1:0,v=e?-1:1;if(l<2)for(;;){if(p in f){c=f[p],p+=v;break}if(p+=v,e?p<0:h<=p)throw new s(u)}for(;e?p>=0:h>p;p+=v)p in f&&(c=n(c,f[p],p,d));return c}};e.exports={k:l(!1),right:l(!0)}},4527:function(e,t,n){"use strict";var r=n(3724),o=n(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,n){"use strict";var r=n(9504);e.exports=r([].slice)},4488:function(e,t,n){"use strict";var r=n(7680),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=e[u];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==u++&&(e[s]=a)}else for(var l=o(n/2),c=i(r(e,0,l),t),d=i(r(e,l),t),f=c.length,h=d.length,p=0,v=0;p<f||v<h;)e[p+v]=p<f&&v<h?t(c[p],d[v])<=0?c[p++]:d[v++]:p<f?c[p++]:d[v++];return e};e.exports=i},7433:function(e,t,n){"use strict";var r=n(4376),o=n(3517),i=n(34),a=n(8227)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},1469:function(e,t,n){"use strict";var r=n(7433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6319:function(e,t,n){"use strict";var r=n(8551),o=n(9539);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},4428:function(e,t,n){"use strict";var r=n(8227)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},2195:function(e,t,n){"use strict";var r=n(9504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:function(e,t,n){"use strict";var r=n(2140),o=n(4901),i=n(2195),a=n(8227)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},6938:function(e,t,n){"use strict";var r=n(2360),o=n(2106),i=n(6279),a=n(6080),s=n(679),u=n(4117),l=n(2652),c=n(1088),d=n(2529),f=n(7633),h=n(3724),p=n(3451).fastKey,v=n(1181),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e(function(e,o){s(e,f),m(e,{type:t,index:r(null),first:null,last:null,size:0}),h||(e.size=0),u(o)||l(o,e[c],{that:e,AS_ENTRIES:n})}),f=d.prototype,v=g(t),y=function(e,t,n){var r,o,i=v(e),a=b(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=a),r&&(r.next=a),h?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var n,r=v(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(f,{clear:function(){for(var e=v(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),h?e.size=0:this.size=0},delete:function(e){var t=this,n=v(t),r=b(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&o(f,"size",{configurable:!0,get:function(){return v(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);c(e,t,function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:null})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))},n?"entries":"values",!n,!0),f(t)}}},4006:function(e,t,n){"use strict";var r=n(9504),o=n(6279),i=n(3451).getWeakData,a=n(679),s=n(8551),u=n(4117),l=n(34),c=n(2652),d=n(9213),f=n(9297),h=n(1181),p=h.set,v=h.getterFor,m=d.find,g=d.findIndex,y=r([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new k)},k=function(){this.entries=[]},x=function(e,t){return m(e.entries,function(e){return e[0]===t})};k.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e(function(e,o){a(e,h),p(e,{type:t,id:b++,frozen:null}),u(o)||c(o,e[r],{that:e,AS_ENTRIES:n})}),h=d.prototype,m=v(t),g=function(e,t,n){var r=m(e),o=i(s(t),!0);return!0===o?w(r).set(t,n):o[r.id]=n,e};return o(h,{delete:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&f(n,t.id)}}),o(h,n?{get:function(e){var t=m(this);if(l(e)){var n=i(e);if(!0===n)return w(t).get(e);if(n)return n[t.id]}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},6468:function(e,t,n){"use strict";var r=n(6518),o=n(4576),i=n(9504),a=n(2796),s=n(6840),u=n(3451),l=n(2652),c=n(679),d=n(4901),f=n(4117),h=n(34),p=n(9039),v=n(4428),m=n(687),g=n(3167);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",k=o[e],x=k&&k.prototype,S=k,P={},O=function(e){var t=i(x[e]);s(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(k)||!(b||x.forEach&&!p(function(){(new k).entries().next()}))))S=n.getConstructor(t,e,y,w),u.enable();else if(a(e,!0)){var _=new S,C=_[w](b?{}:-0,1)!==_,E=p(function(){_.has(1)}),j=v(function(e){new k(e)}),M=!b&&p(function(){for(var e=new k,t=5;t--;)e[w](t,t);return!e.has(-0)});j||((S=t(function(e,t){c(e,x);var n=g(new k,e,S);return f(t)||l(t,n[w],{that:n,AS_ENTRIES:y}),n})).prototype=x,x.constructor=S),(E||M)&&(O("delete"),O("has"),y&&O("get")),(M||C)&&O(w),b&&x.clear&&delete x.clear}return P[e]=S,r({global:!0,constructor:!0,forced:S!==k},P),m(S,e),b||n.setStrong(S,e,y),S}},7740:function(e,t,n){"use strict";var r=n(9297),o=n(5031),i=n(7347),a=n(4913);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||u(e,d,l(t,d))}}},1436:function(e,t,n){"use strict";var r=n(8227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},2211:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},3640:function(e,t,n){"use strict";var r=n(8551),o=n(4270),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},2106:function(e,t,n){"use strict";var r=n(283),o=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},6840:function(e,t,n){"use strict";var r=n(4901),o=n(4913),i=n(283),a=n(9433);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&i(n,l,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,n){"use strict";var r=n(6840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},9433:function(e,t,n){"use strict";var r=n(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4606:function(e,t,n){"use strict";var r=n(6823),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},3724:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,n){"use strict";var r=n(4576),o=n(34),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},7400:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(e,t,n){"use strict";var r=n(4055)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(e,t,n){"use strict";var r=n(2839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},3763:function(e,t,n){"use strict";var r=n(2839);e.exports=/MSIE|Trident/.test(r)},4265:function(e,t,n){"use strict";var r=n(2839);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},9544:function(e,t,n){"use strict";var r=n(2839);e.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)},6193:function(e,t,n){"use strict";var r=n(4215);e.exports="NODE"===r},7860:function(e,t,n){"use strict";var r=n(2839);e.exports=/web0s(?!.*chrome)/i.test(r)},2839:function(e,t,n){"use strict";var r=n(4576).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},9519:function(e,t,n){"use strict";var r,o,i=n(4576),a=n(2839),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},3607:function(e,t,n){"use strict";var r=n(2839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},4215:function(e,t,n){"use strict";var r=n(4576),o=n(2839),i=n(2195),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},6518:function(e,t,n){"use strict";var r=n(4576),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),u=n(7740),l=n(2796);e.exports=function(e,t){var n,c,d,f,h,p=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=o(n,c))&&h.value:n[c],!l(v?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,c,f,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9228:function(e,t,n){"use strict";n(7495);var r=n(9565),o=n(6840),i=n(7323),a=n(9039),s=n(8227),u=n(6699),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!a(function(){var t={};return t[f]=function(){return 7},7!==""[e](t)}),p=h&&!a(function(){var t=!1,n=/a/;if("split"===e){var r={};r[l]=function(){return n},(n={constructor:r,flags:""})[f]=/./[f]}return n.exec=function(){return t=!0,null},n[f](""),!t});if(!h||!p||n){var v=/./[f],m=t(f,""[e],function(e,t,n,o,a){var s=t.exec;return s===i||s===c.exec?h&&!a?{done:!0,value:r(v,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}});o(String.prototype,e,m[0]),o(c,f,m[1])}d&&u(c[f],"sham",!0)}},259:function(e,t,n){"use strict";var r=n(4376),o=n(6198),i=n(6837),a=n(6080),s=n(4659),u=function(e,t,n,l,c,d,f,h){for(var p,v,m=c,g=0,y=!!f&&a(f,h);g<l;)g in n&&(p=y?y(n[g],g,t):n[g],d>0&&r(p)?(v=o(p),m=u(e,t,p,v,m,d-1)-1):(i(m+1),s(e,m,p)),m++),g++;return m};e.exports=u},2744:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},8745:function(e,t,n){"use strict";var r=n(616),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},6080:function(e,t,n){"use strict";var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},566:function(e,t,n){"use strict";var r=n(9504),o=n(9306),i=n(34),a=n(9297),s=n(7680),u=n(616),l=Function,c=r([].concat),d=r([].join),f={};e.exports=u?l.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),u=function(){var n=c(r,s(arguments));return this instanceof u?function(e,t,n){if(!a(f,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";f[t]=l("C,a","return new C("+d(r,",")+")")}return f[t](e,n)}(t,n.length,n):t.apply(e,n)};return i(n)&&(u.prototype=n),u}},9565:function(e,t,n){"use strict";var r=n(616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,n){"use strict";var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},6706:function(e,t,n){"use strict";var r=n(9504),o=n(9306);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},7476:function(e,t,n){"use strict";var r=n(2195),o=n(9504);e.exports=function(e){if("Function"===r(e))return o(e)}},9504:function(e,t,n){"use strict";var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,n){"use strict";var r=n(4576),o=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},8563:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(8551),a=n(6823),s=n(3085),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw new u(a(e)+" is not iterable")}},3085:function(e,t,n){"use strict";var r=n(2195),o=n(4117),i=n(5966),a=n(8227)("iterator"),s=Array.prototype;e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||("Arguments"===r(e)?s[a]:void 0)}},5966:function(e,t,n){"use strict";var r=n(9306),o=n(4117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},2478:function(e,t,n){"use strict";var r=n(9504),o=n(8981),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,p=r.length,v=c;return void 0!==d&&(d=o(d),v=l),s(f,v,function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":l=d[u(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var f=i(c/10);return 0===f?o:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):o}l=r[c-1]}return void 0===l?"":l})}},4576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){"use strict";var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},3138:function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},397:function(e,t,n){"use strict";var r=n(7751);e.exports=r("document","documentElement")},5917:function(e,t,n){"use strict";var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(2195),a=Object,s=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3167:function(e,t,n){"use strict";var r=n(4901),o=n(34),i=n(2967);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},3706:function(e,t,n){"use strict";var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},3451:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(421),a=n(34),s=n(9297),u=n(4913).f,l=n(8480),c=n(298),d=n(4124),f=n(3392),h=n(2744),p=!1,v=f("meta"),m=0,g=function(e){u(e,v,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=l.f,t=o([].splice),n={};n[v]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===v){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},onFreeze:function(e){return h&&p&&d(e)&&!s(e,v)&&g(e),e}};i[v]=!0},1181:function(e,t,n){"use strict";var r,o,i,a=n(8622),s=n(4576),u=n(34),l=n(6699),c=n(9297),d=n(7629),f=n(6119),h=n(421),p="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new v(p);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=f("state");h[y]=!0,r=function(e,t){if(c(e,y))throw new v(p);return t.facade=e,l(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}}}},4209:function(e,t,n){"use strict";var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4376:function(e,t,n){"use strict";var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},3517:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4901),a=n(6955),s=n(7751),u=n(3706),l=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.test(l),p=function(e){if(!i(e))return!1;try{return c(l,[],e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,u(e))}catch(e){return!0}};v.sham=!0,e.exports=!c||o(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?v:p},6575:function(e,t,n){"use strict";var r=n(9297);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},2796:function(e,t,n){"use strict";var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===c||n!==l&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},4117:function(e){"use strict";e.exports=function(e){return null==e}},34:function(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},3925:function(e,t,n){"use strict";var r=n(34);e.exports=function(e){return r(e)||null===e}},6395:function(e){"use strict";e.exports=!1},5810:function(e,t,n){"use strict";var r=n(34),o=n(1181).get;e.exports=function(e){if(!r(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},788:function(e,t,n){"use strict";var r=n(34),o=n(2195),i=n(8227)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},757:function(e,t,n){"use strict";var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},2652:function(e,t,n){"use strict";var r=n(6080),o=n(9565),i=n(8551),a=n(6823),s=n(4209),u=n(6198),l=n(1625),c=n(8563),d=n(3085),f=n(9539),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,n){var m,g,y,b,w,k,x,S=n&&n.that,P=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),_=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),E=r(t,S),j=function(e){var t=m;return m=void 0,t&&f(t,"normal"),new p(!0,e)},M=function(e){return P?(i(e),C?E(e[0],e[1],j):E(e[0],e[1])):C?E(e,j):E(e)};if(O)m=e.iterator;else if(_)m=e;else{if(!(g=d(e)))throw new h(a(e)+" is not iterable");if(s(g)){for(y=0,b=u(e);b>y;y++)if((w=M(e[y]))&&l(v,w))return w;return new p(!1)}m=c(e,g)}for(k=O?e.next:m.next;!(x=o(k,m)).done;){var T=x.value;try{w=M(T)}catch(e){if(!m)throw e;f(m,"throw",e)}if("object"==typeof w&&w&&l(v,w))return w}return new p(!1)}},9539:function(e,t,n){"use strict";var r=n(9565),o=n(8551),i=n(5966);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},3994:function(e,t,n){"use strict";var r=n(7657).IteratorPrototype,o=n(2360),i=n(6980),a=n(687),s=n(6269),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},1088:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(6395),a=n(350),s=n(4901),u=n(3994),l=n(2787),c=n(2967),d=n(687),f=n(6699),h=n(6840),p=n(8227),v=n(6269),m=n(7657),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",S="values",P="entries",O=function(){return this};e.exports=function(e,t,n,a,p,m,_){u(n,t,a);var C,E,j,M=function(e){if(e===p&&L)return L;if(!w&&e&&e in I)return I[e];switch(e){case x:case S:case P:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",A=!1,I=e.prototype,R=I[k]||I["@@iterator"]||p&&I[p],L=!w&&R||M(p),B="Array"===t&&I.entries||R;if(B&&(C=l(B.call(new e)))!==Object.prototype&&C.next&&(i||l(C)===b||(c?c(C,b):s(C[k])||h(C,k,O)),d(C,T,!0,!0),i&&(v[T]=O)),g&&p===S&&R&&R.name!==S&&(!i&&y?f(I,"name",S):(A=!0,L=function(){return o(R,this)})),p)if(E={values:M(S),keys:m?L:M(x),entries:M(P)},_)for(j in E)(w||A||!(j in I))&&h(I,j,E[j]);else r({target:t,proto:!0,forced:w||A},E);return i&&!_||I[k]===L||h(I,k,L,{name:p}),v[t]=L,E}},7657:function(e,t,n){"use strict";var r,o,i,a=n(9039),s=n(4901),u=n(34),l=n(2360),c=n(2787),d=n(6840),f=n(8227),h=n(6395),p=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0),!u(r)||a(function(){var e={};return r[p].call(e)!==e})?r={}:h&&(r=l(r)),s(r[p])||d(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},6269:function(e){"use strict";e.exports=Object.create?Object.create(null):{}},6198:function(e,t,n){"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,l=n(3706),c=n(1181),d=c.enforce,f=c.get,h=String,p=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),y=s&&!o(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===v(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&f(this).source||l(this)},"toString")},7787:function(e){"use strict";var t=Math.log,n=Math.LN2;e.exports=Math.log2||function(e){return t(e)/n}},7782:function(e){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},1955:function(e,t,n){"use strict";var r,o,i,a,s,u=n(4576),l=n(3389),c=n(6080),d=n(9225).h,f=n(8265),h=n(9544),p=n(4265),v=n(7860),m=n(6193),g=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,w=u.Promise,k=l("queueMicrotask");if(!k){var x=new f,S=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};h||m||v||!g||!y?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),r=function(){s(S)}):m?r=function(){b.nextTick(S)}:(d=c(d,u),r=function(){d(S)}):(o=!0,i=y.createTextNode(""),new g(S).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),k=function(e){x.head||r(),x.add(e)}}e.exports=k},7819:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},6043:function(e,t,n){"use strict";var r=n(9306),o=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},5749:function(e,t,n){"use strict";var r=n(788),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},3904:function(e,t,n){"use strict";var r=n(4576),o=n(9039),i=n(9504),a=n(655),s=n(3802).Bq,u=n(7452),l=i("".charAt),c=r.parseFloat,d=r.Symbol,f=d&&d.iterator,h=1/c(u+"-0")!=-1/0||f&&!o(function(){c(Object(f))});e.exports=h?function(e){var t=s(a(e)),n=c(t);return 0===n&&"-"===l(t,0)?-0:n}:c},2703:function(e,t,n){"use strict";var r=n(4576),o=n(9039),i=n(9504),a=n(655),s=n(3802).Bq,u=n(7452),l=r.parseInt,c=r.Symbol,d=c&&c.iterator,f=/^[+-]?0x/i,h=i(f.exec),p=8!==l(u+"08")||22!==l(u+"0x16")||d&&!o(function(){l(Object(d))});e.exports=p?function(e,t){var n=s(a(e));return l(n,t>>>0||(h(f,n)?16:10))}:l},4213:function(e,t,n){"use strict";var r=n(3724),o=n(9504),i=n(9565),a=n(9039),s=n(1072),u=n(3717),l=n(8773),c=n(8981),d=n(7055),f=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!f||a(function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!==f({},e)[n]||s(f({},t)).join("")!==o})?function(e,t){for(var n=c(e),o=arguments.length,a=1,f=u.f,h=l.f;o>a;)for(var v,m=d(arguments[a++]),g=f?p(s(m),f(m)):s(m),y=g.length,b=0;y>b;)v=g[b++],r&&!i(h,m,v)||(n[v]=m[v]);return n}:f},2360:function(e,t,n){"use strict";var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),u=n(397),l=n(4055),c=n(6119),d="prototype",f="script",h=c("IE_PROTO"),p=function(){},v=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?m(r):(t=l("iframe"),n="java"+f+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(r);for(var o=a.length;o--;)delete g[d][a[o]];return g()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=o(e),n=new p,p[d]=null,n[h]=e):n=g(),void 0===t?n:i.f(n,t)}},6801:function(e,t,n){"use strict";var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),u=n(1072);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),l=o.length,c=0;l>c;)i.f(e,n=o[c++],r[n]);return e}},4913:function(e,t,n){"use strict";var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){"use strict";var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),u=n(6969),l=n(9297),c=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},298:function(e,t,n){"use strict";var r=n(2195),o=n(5397),i=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8480:function(e,t,n){"use strict";var r=n(1828),o=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,n){"use strict";var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},4124:function(e,t,n){"use strict";var r=n(9039),o=n(34),i=n(2195),a=n(5652),s=Object.isExtensible,u=r(function(){s(1)});e.exports=u||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!==i(e))&&(!s||s(e))}:s},1625:function(e,t,n){"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1828:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=n(5397),a=n(9617).q,s=n(421),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},1072:function(e,t,n){"use strict";var r=n(1828),o=n(8727);e.exports=Object.keys||function(e){return r(e,o)}},8773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2967:function(e,t,n){"use strict";var r=n(6706),o=n(34),i=n(7750),a=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},2357:function(e,t,n){"use strict";var r=n(3724),o=n(9039),i=n(9504),a=n(2787),s=n(1072),u=n(5397),l=i(n(8773).f),c=i([].push),d=r&&o(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),f=function(e){return function(t){for(var n,o=u(t),i=s(o),f=d&&null===a(o),h=i.length,p=0,v=[];h>p;)n=i[p++],r&&!(f?n in o:l(o,n))||c(v,e?[n,o[n]]:o[n]);return v}};e.exports={j:f(!0),z:f(!1)}},3179:function(e,t,n){"use strict";var r=n(2140),o=n(6955);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},4270:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(34),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},5031:function(e,t,n){"use strict";var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},8235:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),l=r("".slice),c=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=u(e,t);if("\\"===p){var v=l(e,t,t+2);if(o(d,v))r+=d[v],t+=2;else{if("\\u"!==v)throw new i('Unknown escape sequence: "'+v+'"');var m=l(e,t+=2,t+4);if(!c(f,m))throw new i("Bad Unicode escape at: "+t);r+=s(a(m,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(c(h,p))throw new i("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:r,end:t}}},9167:function(e,t,n){"use strict";var r=n(4576);e.exports=r},1103:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},916:function(e,t,n){"use strict";var r=n(4576),o=n(550),i=n(4901),a=n(2796),s=n(3706),u=n(8227),l=n(4215),c=n(6395),d=n(9519),f=o&&o.prototype,h=u("species"),p=!1,v=i(r.PromiseRejectionEvent),m=a("Promise",function(){var e=s(o),t=e!==String(o);if(!t&&66===d)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[h]=r,!(p=n.then(function(){})instanceof r))return!0}return!(t||"BROWSER"!==l&&"DENO"!==l||v)});e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:p}},550:function(e,t,n){"use strict";var r=n(4576);e.exports=r.Promise},3438:function(e,t,n){"use strict";var r=n(8551),o=n(34),i=n(6043);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},537:function(e,t,n){"use strict";var r=n(550),o=n(4428),i=n(916).CONSTRUCTOR;e.exports=i||!o(function(e){r.all(e).then(void 0,function(){})})},1056:function(e,t,n){"use strict";var r=n(4913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},8265:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},6682:function(e,t,n){"use strict";var r=n(9565),o=n(8551),i=n(4901),a=n(2195),s=n(7323),u=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var l=r(n,e,t);return null!==l&&o(l),l}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},7323:function(e,t,n){"use strict";var r,o,i=n(9565),a=n(9504),s=n(655),u=n(7979),l=n(8429),c=n(5745),d=n(2360),f=n(1181).get,h=n(3635),p=n(8814),v=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,y=a("".charAt),b=a("".indexOf),w=a("".replace),k=a("".slice),x=(o=/b*/g,i(m,r=/a/,"a"),i(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=l.BROKEN_CARET,P=void 0!==/()??/.exec("")[1],O=function(e,t){for(var n=e.groups=d(null),r=0;r<t.length;r++){var o=t[r];n[o[0]]=e[o[1]]}};(x||P||S||h||p)&&(g=function(e){var t,n,r,o=this,a=f(o),l=s(e),c=a.raw;if(c)return c.lastIndex=o.lastIndex,t=i(g,c,l),o.lastIndex=c.lastIndex,t&&a.groups&&O(t,a.groups),t;var d=a.groups,h=S&&o.sticky,p=i(u,o),_=o.source,C=0,E=l;if(h){p=w(p,"y",""),-1===b(p,"g")&&(p+="g"),E=k(l,o.lastIndex);var j=o.lastIndex>0&&y(l,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==j&&"\r"!==j&&"\u2028"!==j&&"\u2029"!==j)&&(_="(?: (?:"+_+"))",E=" "+E,C++),n=new RegExp("^(?:"+_+")",p)}P&&(n=new RegExp("^"+_+"$(?!\\s)",p)),x&&(r=o.lastIndex);var M=i(m,h?n:o,E);return h?M?(M.input=l,M[0]=k(M[0],C),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:x&&M&&(o.lastIndex=o.global?M.index+M[0].length:r),P&&M&&M.length>1&&i(v,M[0],n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(M[e]=void 0)}),M&&d&&O(M,d),M}),e.exports=g},5213:function(e,t,n){"use strict";var r=n(4576),o=n(9039),i=r.RegExp,a=!o(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:a}},7979:function(e,t,n){"use strict";var r=n(8551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1034:function(e,t,n){"use strict";var r=n(9565),o=n(9297),i=n(1625),a=n(5213),s=n(7979),u=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!i(u,e)||o(e,"flags")?e.flags:r(s,e)}},8429:function(e,t,n){"use strict";var r=n(9039),o=n(4576).RegExp,i=r(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=i||r(function(){return!o("a","y").sticky}),s=i||r(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},3635:function(e,t,n){"use strict";var r=n(9039),o=n(4576).RegExp;e.exports=r(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},8814:function(e,t,n){"use strict";var r=n(9039),o=n(4576).RegExp;e.exports=r(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},7750:function(e,t,n){"use strict";var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},3389:function(e,t,n){"use strict";var r=n(4576),o=n(3724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},3470:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},7633:function(e,t,n){"use strict";var r=n(7751),o=n(2106),i=n(8227),a=n(3724),s=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},687:function(e,t,n){"use strict";var r=n(4913).f,o=n(9297),i=n(8227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},6119:function(e,t,n){"use strict";var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,n){"use strict";var r=n(6395),o=n(4576),i=n(9433),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){"use strict";var r=n(7629),o=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||o(null))}},2293:function(e,t,n){"use strict";var r=n(8551),o=n(5548),i=n(4117),a=n(8227)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},8183:function(e,t,n){"use strict";var r=n(9504),o=n(1291),i=n(655),a=n(7750),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),f=o(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=u(d,f))<55296||r>56319||f+1===h||(c=u(d,f+1))<56320||c>57343?e?s(d,f):r:e?l(d,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={L:c(!1),o:c(!0)}},3802:function(e,t,n){"use strict";var r=n(9504),o=n(7750),i=n(655),a=n(7452),s=r("".replace),u=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:c(1),end:c(2),Bq:c(3)}},4495:function(e,t,n){"use strict";var r=n(9519),o=n(9039),i=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},8242:function(e,t,n){"use strict";var r=n(9565),o=n(7751),i=n(8227),a=n(6840);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,function(e){return r(n,this)},{arity:1})}},1296:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},9225:function(e,t,n){"use strict";var r,o,i,a,s=n(4576),u=n(8745),l=n(6080),c=n(4901),d=n(9297),f=n(9039),h=n(397),p=n(7680),v=n(4055),m=n(2812),g=n(9544),y=n(6193),b=s.setImmediate,w=s.clearImmediate,k=s.process,x=s.Dispatch,S=s.Function,P=s.MessageChannel,O=s.String,_=0,C={},E="onreadystatechange";f(function(){r=s.location});var j=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},M=function(e){return function(){j(e)}},T=function(e){j(e.data)},A=function(e){s.postMessage(O(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),n=p(arguments,1);return C[++_]=function(){u(t,void 0,n)},o(_),_},w=function(e){delete C[e]},y?o=function(e){k.nextTick(M(e))}:x&&x.now?o=function(e){x.now(M(e))}:P&&!g?(a=(i=new P).port2,i.port1.onmessage=T,o=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(A)?(o=A,s.addEventListener("message",T,!1)):o=E in v("script")?function(e){h.appendChild(v("script"))[E]=function(){h.removeChild(this),j(e)}}:function(e){setTimeout(M(e),0)}),e.exports={h:b,clear:w}},1240:function(e,t,n){"use strict";var r=n(9504);e.exports=r(1.1.valueOf)},5610:function(e,t,n){"use strict";var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5397:function(e,t,n){"use strict";var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},1291:function(e,t,n){"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8014:function(e,t,n){"use strict";var r=n(1291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,n){"use strict";var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},2777:function(e,t,n){"use strict";var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){"use strict";var r=n(2777),o=n(757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},2140:function(e,t,n){"use strict";var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},655:function(e,t,n){"use strict";var r=n(6955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:function(e,t,n){"use strict";var r=n(9504),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7416:function(e,t,n){"use strict";var r=n(9039),o=n(8227),i=n(3724),a=n(6395),s=o("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),r+=n+e}),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host})},918:function(e,t,n){"use strict";n(7337);var r=n(7751),o=n(9504),i=String.fromCharCode,a=r("String","fromCodePoint"),s=encodeURIComponent,u=parseInt,l=o("".charAt),c=o([].push),d=o("".replace),f=o("".slice),h=o(/./.exec),p="�",v=/^[0-9a-f]+$/i,m=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,g=function(e,t){var n=f(e,t,t+2);return h(v,n)?u(n,16):NaN},y=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},b=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(n>3?65536:n>2?2048:n>1?128:0)?null:t},w=function(e){return 2===e.length?e:p};e.exports={decode:function(e){for(var t=e.length,n="",r=0;r<t;){var o=l(e,r);if("%"===o){if("%"===l(e,r+1)||r+3>t){n+="%",r++;continue}var s=g(e,r+1);if(s!=s){n+=o,r++;continue}r+=2;var u=y(s);if(0===u)o=i(s);else{if(1===u||u>4){n+=p,r++;continue}for(var d=[s],f=1;f<u&&!(3+ ++r>t||"%"!==l(e,r));){var h=g(e,r+1);if(h!=h||h>191||h<128)break;if(1===f){if(224===s&&h<160)break;if(237===s&&h>159)break;if(240===s&&h<144)break;if(244===s&&h>143)break}c(d,h),r+=2,f++}if(d.length!==u){n+=p;continue}var v=b(d);if(null===v){for(var m=0;m<u;m++)n+=p;r++;continue}o=a(v)}}n+=o,r++}return n},encode:function(e){try{return s(e)}catch(t){return s(d(e,m,w))}}}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){"use strict";var r=n(3724),o=n(9039);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},8622:function(e,t,n){"use strict";var r=n(4576),o=n(4901),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},511:function(e,t,n){"use strict";var r=n(9167),o=n(9297),i=n(1951),a=n(4913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},1951:function(e,t,n){"use strict";var r=n(8227);t.f=r},8227:function(e,t,n){"use strict";var r=n(4576),o=n(5745),i=n(9297),a=n(3392),s=n(4495),u=n(7040),l=r.Symbol,c=o("wks"),d=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:d("Symbol."+e)),c[e]}},7452:function(e){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},8706:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(4376),a=n(34),s=n(8981),u=n(6198),l=n(6837),c=n(4659),d=n(4527),f=n(1469),h=n(597),p=n(8227),v=n(9519),m=p("isConcatSpreadable"),g=v>=51||!o(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,n,r,o,i,a=s(this),h=f(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t]))for(o=u(i),l(p+o),n=0;n<o;n++,p++)n in i&&c(h,p,i[n]);else l(p+1),c(h,p++,i);return d(h,p),h}})},2008:function(e,t,n){"use strict";var r=n(6518),o=n(9213).filter;r({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8980:function(e,t,n){"use strict";var r=n(6518),o=n(9213).findIndex,i=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},113:function(e,t,n){"use strict";var r=n(6518),o=n(9213).find,i=n(6469),a="find",s=!0;a in[]&&Array(1)[a](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},3418:function(e,t,n){"use strict";var r=n(6518),o=n(7916);r({target:"Array",stat:!0,forced:!n(4428)(function(e){Array.from(e)})},{from:o})},4423:function(e,t,n){"use strict";var r=n(6518),o=n(9617).m,i=n(9039),a=n(6469),s=i(function(){return!Array(1).includes()}),u=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},3792:function(e,t,n){"use strict";var r=n(5397),o=n(6469),i=n(6269),a=n(1181),s=n(4913).f,u=n(1088),l=n(2529),c=n(6395),d=n(3724),f="Array Iterator",h=a.set,p=a.getterFor(f);e.exports=u(Array,"Array",function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)},"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},8598:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(7055),a=n(5397),s=n(4598),u=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return u(a(this),void 0===e?",":e)}})},2062:function(e,t,n){"use strict";var r=n(6518),o=n(9213).map;r({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2712:function(e,t,n){"use strict";var r=n(6518),o=n(926).k,i=n(4598),a=n(9519);r({target:"Array",proto:!0,forced:!n(6193)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},4490:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(4376),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},4782:function(e,t,n){"use strict";var r=n(6518),o=n(4376),i=n(3517),a=n(34),s=n(5610),u=n(6198),l=n(5397),c=n(4659),d=n(4527),f=n(8227),h=n(597),p=n(7680),v=h("slice"),m=f("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,f,h=l(this),v=u(h),b=s(e,v),w=s(void 0===t?v:t,v);if(o(h)&&(n=h.constructor,(i(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return p(h,b,w);for(r=new(void 0===n?g:n)(y(w-b,0)),f=0;b<w;b++,f++)b in h&&c(r,f,h[b]);return d(r,f),r}})},6910:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(9306),a=n(8981),s=n(6198),u=n(4606),l=n(655),c=n(9039),d=n(4488),f=n(4598),h=n(3709),p=n(3763),v=n(9519),m=n(3607),g=[],y=o(g.sort),b=o(g.push),w=c(function(){g.sort(void 0)}),k=c(function(){g.sort(null)}),x=f("sort"),S=!c(function(){if(v)return v<70;if(!(h&&h>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort(function(e,t){return t.v-e.v}),r=0;r<g.length;r++)t=g[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:w||!k||!x||!S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var n,r,o=[],c=s(t);for(r=0;r<c;r++)r in t&&b(o,t[r]);for(d(o,function(e){return function(t,n){if(void 0===n)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,n)||0;var r=l(t),o=l(n);return r===o?0:r>o?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)u(t,r++);return t}})},4554:function(e,t,n){"use strict";var r=n(6518),o=n(8981),i=n(5610),a=n(1291),s=n(6198),u=n(4527),l=n(6837),c=n(1469),d=n(4659),f=n(4606),h=n(597)("splice"),p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,h,m,g,y,b=o(this),w=s(b),k=i(e,w),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=w-k):(n=x-2,r=v(p(a(t),0),w-k)),l(w+n-r),h=c(b,r),m=0;m<r;m++)(g=k+m)in b&&d(h,m,b[g]);if(u(h,r),n<r){for(m=k;m<w-r;m++)y=m+n,(g=m+r)in b?b[y]=b[g]:f(b,y);for(m=w;m>w-r+n;m--)f(b,m-1)}else if(n>r)for(m=w-r;m>k;m--)y=m+n-1,(g=m+r-1)in b?b[y]=b[g]:f(b,y);for(m=0;m<n;m++)b[m+k]=arguments[m+2];return u(b,w-r+n),h}})},739:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(8981),a=n(2777);r({target:"Date",proto:!0,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=i(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},9572:function(e,t,n){"use strict";var r=n(9297),o=n(6840),i=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype;r(s,a)||o(s,a,i)},2010:function(e,t,n){"use strict";var r=n(3724),o=n(350).EXISTS,i=n(9504),a=n(2106),s=Function.prototype,u=i(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(l.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(e){return""}}})},3110:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(9565),a=n(9504),s=n(9039),u=n(4376),l=n(4901),c=n(34),d=n(2360),f=n(5810),h=n(757),p=n(2195),v=n(1240),m=n(9617).m,g=n(9297),y=n(655),b=n(8235),w=n(3392),k=n(4495),x=n(7819),S=String,P=TypeError,O=o("JSON","stringify"),_=o("BigInt"),C=a("".valueOf),E=a((!0).valueOf),j=_&&a(_.prototype.valueOf),M=a(/./.exec),T=a("".charAt),A=a("".charCodeAt),I=a("".replace),R=a("".slice),L=a([].push),B=a([].pop),$=a(1.1.toString),D=/[\uD800-\uDFFF]/g,z=/^[\uD800-\uDBFF]$/,F=/^[\uDC00-\uDFFF]$/,N=/^\d+$/,U=w(),H=w(),W=w(),q=U.length,V=H.length,G=!k||s(function(){var e=o("Symbol")("stringify detection");return"[null]"!==O([e])||"{}"!==O({a:e})||"{}"!==O(Object(e))}),Z=s(function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")}),X=x?o("JSON","isRawJSON"):f,Y=G?function(e,t,n){return O(e,function(e,n){var r=i(t,this,e,n);if(!h(r))return r},n)}:O,K=function(e,t,n){var r=T(n,t-1),o=T(n,t+1);return M(z,e)&&!M(F,o)||M(F,e)&&!M(z,r)?"\\u"+$(A(e,0),16):e},J=function(e,t){try{return e(t),!0}catch(e){return!1}},Q=function(e,t){return{toJSON:function(){var n=e[t];if(c(n)||"bigint"==typeof n){var r=n.toJSON;l(r)&&(n=i(r,n,t))}return n}}};O&&r({target:"JSON",stat:!0,arity:3,forced:G||Z||!x},{stringify:function(e,t,n){var r,o=l(t)?t:void 0,a=o?void 0:function(e){if(u(e)){for(var t=e.length,n=[],r=d(null),o=0;o<t;o++){var i,a=e[o];if("string"==typeof a)i=a;else{if("number"!=typeof a&&"Number"!==p(a)&&"String"!==p(a))continue;i=y(a)}g(r,i)||(r[i]=!0,L(n,i))}return n}}(t),s=a&&function(e){for(var t=0,n=e.length;t<n;t++)if(M(N,e[t]))return H;return""}(a),f=[],h=[],w=[],k=!1,O=!0,_=Y(e,function(e,t){if(e=S(e),a){if(e===W)return B(h),void(r=B(w));if(O)O=!1;else if(this!==r&&!u(this)&&!m(a,e))return}else o&&(t=i(o,this,e,t));if(X(t))return x?t:(k=!0,U+(L(f,t.rawJSON)-1));if(a&&function(e){if(!c(e)||l(e)||u(e))return!1;try{return!function(e){var t=p(e);return"Number"===t&&J(v,e)||"String"===t&&J(C,e)||"Boolean"===t&&J(E,e)||!!j&&"BigInt"===t&&J(j,e)}(e)}catch(e){return!0}}(t)){if(m(h,t))throw new P("Converting circular structure to JSON");var n=function(e,t,n){for(var r=d(null),o=0,i=t.length;o<i;o++){var a=t[o];r[n+a]=Q(e,a)}return r[W]=null,r}(t,a,s);return L(h,t),L(w,r),r=n,s&&(k=!0),n}return t},n);if("string"!=typeof _)return _;if(Z&&(_=I(_,D,K)),!k)return _;for(var A="",$=_.length,z=0;z<$;z++){var F=T(_,z);if('"'===F){var G=b(_,++z).end-1,ee=R(_,z,G);R(ee,0,q)===U?A+=f[R(ee,q)]:R(ee,0,V)===H?A+='"'+R(ee,V)+'"':A+='"'+ee+'"',z=G}else A+=F}return A}})},4731:function(e,t,n){"use strict";var r=n(4576);n(687)(r.JSON,"JSON",!0)},8523:function(e,t,n){"use strict";n(6468)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(6938))},6033:function(e,t,n){"use strict";n(8523)},479:function(e,t,n){"use strict";n(687)(Math,"Math",!0)},2892:function(e,t,n){"use strict";var r=n(6518),o=n(6395),i=n(3724),a=n(4576),s=n(9167),u=n(9504),l=n(2796),c=n(9297),d=n(3167),f=n(1625),h=n(757),p=n(2777),v=n(9039),m=n(8480).f,g=n(7347).f,y=n(4913).f,b=n(1240),w=n(3802).Bq,k="Number",x=a[k],S=s[k],P=x.prototype,O=a.TypeError,_=u("".slice),C=u("".charCodeAt),E=l(k,!x(" 0o1")||!x("0b1")||x("+0x1")),j=function(e){var t,n=arguments.length<1?0:x(function(e){var t=p(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,o,i,a,s,u,l=p(e,"number");if(h(l))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=w(l),43===(t=C(l,0))||45===t){if(88===(n=C(l,2))||120===n)return NaN}else if(48===t){switch(C(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=_(l,2)).length,s=0;s<a;s++)if((u=C(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+l}(t)}(e));return f(P,t=this)&&v(function(){b(t)})?d(Object(n),this,j):n};j.prototype=P,E&&!o&&(P.constructor=j),r({global:!0,constructor:!0,wrap:!0,forced:E},{Number:j});var M=function(e,t){for(var n,r=i?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&y(e,n,g(t,n))};o&&S&&M(s[k],S),(E||o)&&M(s[k],x)},9085:function(e,t,n){"use strict";var r=n(6518),o=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5506:function(e,t,n){"use strict";var r=n(6518),o=n(2357).j;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},2811:function(e,t,n){"use strict";var r=n(6518),o=n(2744),i=n(9039),a=n(34),s=n(3451).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i(function(){u(1)}),sham:!o},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},3851:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(5397),a=n(7347).f,s=n(3724);r({target:"Object",stat:!0,forced:!s||o(function(){a(1)}),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},1278:function(e,t,n){"use strict";var r=n(6518),o=n(3724),i=n(5031),a=n(5397),s=n(7347),u=n(4659);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),c={},d=0;l.length>d;)void 0!==(n=o(r,t=l[d++]))&&u(c,t,n);return c}})},9773:function(e,t,n){"use strict";var r=n(6518),o=n(4495),i=n(9039),a=n(3717),s=n(8981);r({target:"Object",stat:!0,forced:!o||i(function(){a.f(1)})},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},875:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(8981),a=n(2787),s=n(2211);r({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},9432:function(e,t,n){"use strict";var r=n(6518),o=n(8981),i=n(1072);r({target:"Object",stat:!0,forced:n(9039)(function(){i(1)})},{keys:function(e){return i(o(e))}})},6099:function(e,t,n){"use strict";var r=n(2140),o=n(6840),i=n(3179);r||o(Object.prototype,"toString",i,{unsafe:!0})},6034:function(e,t,n){"use strict";var r=n(6518),o=n(2357).z;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},8459:function(e,t,n){"use strict";var r=n(6518),o=n(3904);r({global:!0,forced:parseFloat!==o},{parseFloat:o})},8940:function(e,t,n){"use strict";var r=n(6518),o=n(2703);r({global:!0,forced:parseInt!==o},{parseInt:o})},6499:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,c=s(function(){var n=i(t.resolve),a=[],s=0,c=1;u(e,function(e){var i=s++,u=!1;c++,o(n,t,e).then(function(e){u||(u=!0,a[i]=e,--c||r(a))},l)}),--c||r(a)});return c.error&&l(c.value),n.promise}})},2003:function(e,t,n){"use strict";var r=n(6518),o=n(6395),i=n(916).CONSTRUCTOR,a=n(550),s=n(7751),u=n(4901),l=n(6840),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(a)){var d=s("Promise").prototype.catch;c.catch!==d&&l(c,"catch",d,{unsafe:!0})}},436:function(e,t,n){"use strict";var r,o,i,a,s=n(6518),u=n(6395),l=n(6193),c=n(4576),d=n(9167),f=n(9565),h=n(6840),p=n(2967),v=n(687),m=n(7633),g=n(9306),y=n(4901),b=n(34),w=n(679),k=n(2293),x=n(9225).h,S=n(1955),P=n(3138),O=n(1103),_=n(8265),C=n(1181),E=n(550),j=n(916),M=n(6043),T="Promise",A=j.CONSTRUCTOR,I=j.REJECTION_EVENT,R=j.SUBCLASSING,L=C.getterFor(T),B=C.set,$=E&&E.prototype,D=E,z=$,F=c.TypeError,N=c.document,U=c.process,H=M.f,W=H,q=!!(N&&N.createEvent&&c.dispatchEvent),V="unhandledrejection",G=function(e){var t;return!(!b(e)||!y(t=e.then))&&t},Z=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),o=!0)),n===e.promise?l(new F("Promise-chain cycle")):(r=G(n))?f(r,n,u,l):u(n)):l(i)}catch(e){c&&!o&&c.exit(),l(e)}},X=function(e,t){e.notified||(e.notified=!0,S(function(){for(var n,r=e.reactions;n=r.get();)Z(n,e);e.notified=!1,t&&!e.rejection&&K(e)}))},Y=function(e,t,n){var r,o;q?((r=N.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!I&&(o=c["on"+e])?o(r):e===V&&P("Unhandled promise rejection",n)},K=function(e){f(x,c,function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=O(function(){l?U.emit("unhandledRejection",r,n):Y(V,n,r)}),e.rejection=l||J(e)?2:1,t.error))throw t.value})},J=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){f(x,c,function(){var t=e.facade;l?U.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new F("Promise can't be resolved itself");var r=G(t);r?S(function(){var n={done:!1};try{f(r,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){te({done:!1},t,e)}}};if(A&&(z=(D=function(e){w(this,z),g(e),f(r,this);var t=L(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){B(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=h(z,"then",function(e,t){var n=L(this),r=H(k(this,D));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=l?U.domain:void 0,0===n.state?n.reactions.add(r):S(function(){Z(r,n)}),r.promise}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},M.f=H=function(e){return e===D||e===i?new o(e):W(e)},!u&&y(E)&&$!==Object.prototype)){a=$.then,R||h($,"then",function(e,t){var n=this;return new D(function(e,t){f(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete $.constructor}catch(e){}p&&p($,z)}s({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:D}),i=d.Promise,v(D,T,!1,!0),m(T)},3362:function(e,t,n){"use strict";n(436),n(6499),n(2003),n(7743),n(1481),n(280)},7743:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{race:function(e){var t=this,n=a.f(t),r=n.reject,l=s(function(){var a=i(t.resolve);u(e,function(e){o(a,t,e).then(n.resolve,r)})});return l.error&&r(l.value),n.promise}})},1481:function(e,t,n){"use strict";var r=n(6518),o=n(6043);r({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},280:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(6395),a=n(550),s=n(916).CONSTRUCTOR,u=n(3438),l=o("Promise"),c=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return u(c&&this===l?a:this,e)}})},825:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(8745),a=n(566),s=n(5548),u=n(8551),l=n(34),c=n(2360),d=n(9039),f=o("Reflect","construct"),h=Object.prototype,p=[].push,v=d(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),m=!d(function(){f(function(){})}),g=v||m;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e);var n=arguments.length<3?e:s(arguments[2]);if(u(t),m&&!v)return f(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(l(o)?o:h),g=i(e,d,t);return l(g)?g:d}})},888:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(34),a=n(8551),s=n(6575),u=n(7347),l=n(2787),c=n(6969),d=function(e,t,n){if(a(e)===n)return e[t];var r=u.f(e,t);if(r)return s(r)?r.value:void 0===r.get?void 0:o(r.get,n);var c=l(e);return i(c)?d(c,t,n):void 0};r({target:"Reflect",stat:!0},{get:function(e,t){return d(a(e),c(t),arguments.length<3?e:arguments[2])}})},4864:function(e,t,n){"use strict";var r=n(3724),o=n(4576),i=n(9504),a=n(2796),s=n(3167),u=n(6699),l=n(2360),c=n(8480).f,d=n(1625),f=n(788),h=n(655),p=n(1034),v=n(8429),m=n(1056),g=n(6840),y=n(9039),b=n(9297),w=n(1181).enforce,k=n(7633),x=n(8227),S=n(3635),P=n(8814),O=x("match"),_=o.RegExp,C=_.prototype,E=o.SyntaxError,j=i(C.exec),M=i("".charAt),T=i("".replace),A=i("".indexOf),I=i("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,B=/a/g,$=new _(L)!==L,D=v.MISSED_STICKY,z=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!$||D||S||P||y(function(){return B[O]=!1,_(L)!==L||_(B)===B||"/a/i"!==String(_(L,"i"))})))){for(var F=function(e,t){var n,r,o,i,a,c,v=d(C,this),m=f(e),g=void 0===t,y=[],k=e;if(!v&&m&&g&&e.constructor===F)return e;if((m||d(C,e))&&(e=e.source,g&&(t=p(k))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),k=e,S&&"dotAll"in L&&(r=!!t&&A(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,D&&"sticky"in L&&(o=!!t&&A(t,"y")>-1)&&z&&(t=T(t,/y/g,"")),P&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=l(null),s=!1,u=!1,c=0,d="";r<n;r++){if("\\"===(t=M(e,r))){if(t+=M(e,++r),!u&&"\\"===M(t,1)){o+="\\x5c";continue}}else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:o+=t,j(R,I(e,r+1))?(r+=2,u=!0,c++):"?"!==M(e,r+1)&&c++;continue;case">"===t&&u:if(""===d||b(a,d))throw new E("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],u=!1,d="";continue}u?d+=t:o+=t}for(var f=0;f<i.length;f++)for(var h="\\k<"+i[f][0]+">",p="\\"+i[f][1];A(o,h)>-1;)o=T(o,h,p);return[o,i]}(e),e=i[0],y=i[1]),a=s(_(e,t),v?this:C,F),(r||o||y.length)&&(c=w(a),r&&(c.dotAll=!0,c.raw=F(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<n;r++)"\\"!==(t=M(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+M(e,++r);return o}(e),n)),o&&(c.sticky=!0),y.length&&(c.groups=y)),e!==k)try{u(a,"source",""===k?"(?:)":k)}catch(e){}return a},N=c(_),U=0;N.length>U;)m(F,_,N[U++]);C.constructor=F,F.prototype=C,g(o,"RegExp",F,{constructor:!0})}k("RegExp")},7495:function(e,t,n){"use strict";var r=n(6518),o=n(7323);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8781:function(e,t,n){"use strict";var r=n(350).PROPER,o=n(6840),i=n(8551),a=n(655),s=n(9039),u=n(1034),l="toString",c=RegExp.prototype,d=c[l],f=s(function(){return"/a/b"!==d.call({source:"a",flags:"b"})}),h=r&&d.name!==l;(f||h)&&o(c,l,function(){var e=i(this);return"/"+a(e.source)+"/"+a(u(e))},{unsafe:!0})},2405:function(e,t,n){"use strict";n(6468)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(6938))},1415:function(e,t,n){"use strict";n(2405)},9449:function(e,t,n){"use strict";var r,o=n(6518),i=n(7476),a=n(7347).f,s=n(8014),u=n(655),l=n(5749),c=n(7750),d=n(1436),f=n(6395),h=i("".slice),p=Math.min,v=d("endsWith");o({target:"String",proto:!0,forced:!(!f&&!v&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(e){var t=u(c(this));l(e);var n=u(e),r=arguments.length>1?arguments[1]:void 0,o=t.length,i=void 0===r?o:p(s(r),o);return h(t,i-n.length,i)===n}})},7337:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(5610),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,l=o([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(i(t=+arguments[o],1114111)!==t)throw new a(t+" is not a valid code point");n[o++]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},1699:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(5749),a=n(7750),s=n(655),u=n(1436),l=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},7764:function(e,t,n){"use strict";var r=n(8183).o,o=n(655),i=n(1181),a=n(1088),s=n(2529),u="String Iterator",l=i.set,c=i.getterFor(u);a(String,"String",function(e){l(this,{type:u,string:o(e),index:0})},function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))})},1761:function(e,t,n){"use strict";var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(34),u=n(8014),l=n(655),c=n(7750),d=n(5966),f=n(7829),h=n(1034),p=n(6682),v=o("".indexOf);i("match",function(e,t,n){return[function(t){var n=c(this),o=s(t)?d(t,e):void 0;if(o)return r(o,t,n);var i=l(n);return new RegExp(t)[e](i)},function(e){var r=a(this),o=l(e),i=n(t,r,o);if(i.done)return i.value;var s=l(h(r));if(!~v(s,"g"))return p(r,o);var c=!!~v(s,"u")||!!~v(s,"v");r.lastIndex=0;for(var d,m=[],g=0;null!==(d=p(r,o));){var y=l(d[0]);m[g]=y,""===y&&(r.lastIndex=f(o,u(r.lastIndex),c)),g++}return 0===g?null:m}]})},5440:function(e,t,n){"use strict";var r=n(8745),o=n(9565),i=n(9504),a=n(9228),s=n(9039),u=n(8551),l=n(4901),c=n(34),d=n(1291),f=n(8014),h=n(655),p=n(7750),v=n(7829),m=n(5966),g=n(2478),y=n(1034),b=n(6682),w=n(8227)("replace"),k=Math.max,x=Math.min,S=i([].concat),P=i([].push),O=i("".indexOf),_=i("".slice),C=function(e){return void 0===e?e:String(e)},E="$0"==="a".replace(/./,"$0"),j=!!/./[w]&&""===/./[w]("a","$0");a("replace",function(e,t,n){var i=j?"$":"$0";return[function(e,n){var r=p(this),i=c(e)?m(e,w):void 0;return i?o(i,e,r,n):o(t,h(r),e,n)},function(e,o){var a=u(this),s=h(e),c=l(o);c||(o=h(o));var p=h(y(a));if("string"==typeof o&&!~O(o,i)&&!~O(o,"$<")&&!~O(p,"y")){var m=n(t,a,s,o);if(m.done)return m.value}var w,E=!!~O(p,"g");E&&(w=!!~O(p,"u")||!!~O(p,"v"),a.lastIndex=0);for(var j,M=[];null!==(j=b(a,s))&&(P(M,j),E);)""===h(j[0])&&(a.lastIndex=v(s,f(a.lastIndex),w));for(var T="",A=0,I=0;I<M.length;I++){for(var R,L=h((j=M[I])[0]),B=k(x(d(j.index),s.length),0),$=[],D=1;D<j.length;D++)P($,C(j[D]));var z=j.groups;if(c){var F=S([L],$,B,s);void 0!==z&&P(F,z),R=h(r(o,void 0,F))}else R=g(L,s,B,$,z,o);B>=A&&(T+=_(s,A,B)+R,A=B+L.length)}return T+_(s,A)}]},!!s(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!E||j)},5746:function(e,t,n){"use strict";var r=n(9565),o=n(9228),i=n(8551),a=n(34),s=n(7750),u=n(3470),l=n(655),c=n(5966),d=n(6682);o("search",function(e,t,n){return[function(t){var n=s(this),o=a(t)?c(t,e):void 0;if(o)return r(o,t,n);var i=l(n);return new RegExp(t)[e](i)},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var c=d(r,o);return u(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]})},744:function(e,t,n){"use strict";var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(34),u=n(7750),l=n(2293),c=n(7829),d=n(8014),f=n(655),h=n(5966),p=n(1034),v=n(6682),m=n(8429),g=n(9039),y=m.UNSUPPORTED_Y,b=Math.min,w=o([].push),k=o("".slice),x=o("".indexOf),S=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),P="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",function(e,t,n){var o="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var i=u(this),a=s(t)?h(t,e):void 0;return a?r(a,t,i,n):r(o,f(i),t,n)},function(e,r){var i=a(this),s=f(e);if(!P){var u=n(o,i,s,r,o!==t);if(u.done)return u.value}var h=l(i,RegExp),m=f(p(i)),g=!!~x(m,"u")||!!~x(m,"v");y?~x(m,"g")||(m+="g"):~x(m,"y")||(m+="y");var S=new h(y?"^(?:"+i.source+")":i,m),O=void 0===r?4294967295:r>>>0;if(0===O)return[];if(0===s.length)return null===v(S,s)?[s]:[];for(var _=0,C=0,E=[];C<s.length;){S.lastIndex=y?0:C;var j,M=v(S,y?k(s,C):s);if(null===M||(j=b(d(S.lastIndex+(y?C:0)),s.length))===_)C=c(s,C,g);else{if(w(E,k(s,_,C)),E.length===O)return E;for(var T=1;T<=M.length-1;T++)if(w(E,M[T]),E.length===O)return E;C=_=j}}return w(E,k(s,_)),E}]},P||!S,y)},1392:function(e,t,n){"use strict";var r,o=n(6518),i=n(7476),a=n(7347).f,s=n(8014),u=n(655),l=n(5749),c=n(7750),d=n(1436),f=n(6395),h=i("".slice),p=Math.min,v=d("startsWith");o({target:"String",proto:!0,forced:!(!f&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(e){var t=u(c(this));l(e);var n=u(e),r=s(p(arguments.length>1?arguments[1]:void 0,t.length));return h(t,r,r+n.length)===n}})},6761:function(e,t,n){"use strict";var r=n(6518),o=n(4576),i=n(9565),a=n(9504),s=n(6395),u=n(3724),l=n(4495),c=n(9039),d=n(9297),f=n(1625),h=n(8551),p=n(5397),v=n(6969),m=n(655),g=n(6980),y=n(2360),b=n(1072),w=n(8480),k=n(298),x=n(3717),S=n(7347),P=n(4913),O=n(6801),_=n(8773),C=n(6840),E=n(2106),j=n(5745),M=n(6119),T=n(421),A=n(3392),I=n(8227),R=n(1951),L=n(511),B=n(8242),$=n(687),D=n(1181),z=n(9213).forEach,F=M("hidden"),N="Symbol",U="prototype",H=D.set,W=D.getterFor(N),q=Object[U],V=o.Symbol,G=V&&V[U],Z=o.RangeError,X=o.TypeError,Y=o.QObject,K=S.f,J=P.f,Q=k.f,ee=_.f,te=a([].push),ne=j("symbols"),re=j("op-symbols"),oe=j("wks"),ie=!Y||!Y[U]||!Y[U].findChild,ae=function(e,t,n){var r=K(q,t);return r&&delete q[t],J(e,t,n),r&&e!==q&&J(q,t,r),e},se=u&&c(function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?ae:J,ue=function(e,t){var n=ne[e]=y(G);return H(n,{type:N,tag:e,description:t}),u||(n.description=t),n},le=function(e,t,n){e===q&&le(re,t,n),h(e);var r=v(t);return h(n),d(ne,r)?(("enumerable"in n?!n.enumerable:!d(e,r)||d(e,F)&&e[F][r])?(d(e,F)||J(e,F,g(1,y(null))),e[F][r]=!0):(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:g(0,!1)})),se(e,r,n)):J(e,r,n)},ce=function(e,t){h(e);var n=p(t),r=b(n).concat(pe(n));return z(r,function(t){u&&!i(de,n,t)||le(e,t,n[t])}),e},de=function(e){var t=v(e),n=i(ee,this,t);return!(this===q&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,F)&&this[F][t])||n)},fe=function(e,t){var n=p(e),r=v(t);if(n!==q||!d(ne,r)||d(re,r)){var o=K(n,r);return!o||!d(ne,r)||d(n,F)&&n[F][r]||(o.enumerable=!0),o}},he=function(e){var t=Q(p(e)),n=[];return z(t,function(e){d(ne,e)||d(T,e)||te(n,e)}),n},pe=function(e){var t=e===q,n=Q(t?re:p(e)),r=[];return z(n,function(e){!d(ne,e)||t&&!d(q,e)||te(r,ne[e])}),r};l||(V=function(){if(f(G,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=A(e),n=function(e){var r=void 0===this?o:this;r===q&&i(n,re,e),d(r,F)&&d(r[F],t)&&(r[F][t]=!1);var a=g(1,e);try{se(r,t,a)}catch(e){if(!(e instanceof Z))throw e;ae(r,t,a)}};return u&&ie&&se(q,t,{configurable:!0,set:n}),ue(t,e)},C(G=V[U],"toString",function(){return W(this).tag}),C(V,"withoutSetter",function(e){return ue(A(e),e)}),_.f=de,P.f=le,O.f=ce,S.f=fe,w.f=k.f=he,x.f=pe,R.f=function(e){return ue(I(e),e)},u&&(E(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||C(q,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),z(b(oe),function(e){L(e)}),r({target:N,stat:!0,forced:!l},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he}),B(),$(V,N),T[F]=!0},9463:function(e,t,n){"use strict";var r=n(6518),o=n(3724),i=n(4576),a=n(9565),s=n(9504),u=n(9297),l=n(4901),c=n(1625),d=n(655),f=n(2106),h=n(7740),p=i.Symbol,v=p&&p.prototype;if(o&&l(p)&&(!("description"in v)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(v,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};h(g,p);var y=g.for;g.for={for:function(e){var t=d(e),n=a(y,this,t);return""===t&&(m[n]=!0),n}}.for,g.prototype=v,v.constructor=g;var b="Symbol(description detection)"===String(p("description detection")),w=s(v.valueOf),k=s(v.toString),x=/^Symbol\((.*)\)[^)]+$/,S=s("".replace),P=s("".slice);f(v,"description",{configurable:!0,get:function(){var e=w(this);if(u(m,e))return"";var t=k(e),n=b?P(t,7,-1):S(t,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},1510:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(9297),a=n(655),s=n(5745),u=n(1296),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},2259:function(e,t,n){"use strict";n(511)("iterator")},2675:function(e,t,n){"use strict";n(6761),n(1510),n(7812),n(3110),n(9773)},7812:function(e,t,n){"use strict";var r=n(6518),o=n(9297),i=n(757),a=n(6823),s=n(5745),u=n(1296),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},5700:function(e,t,n){"use strict";var r=n(511),o=n(8242);r("toPrimitive"),o()},8125:function(e,t,n){"use strict";var r=n(7751),o=n(511),i=n(687);o("toStringTag"),i(r("Symbol"),"Symbol")},3365:function(e,t,n){"use strict";var r,o=n(2744),i=n(4576),a=n(9504),s=n(6279),u=n(3451),l=n(6468),c=n(4006),d=n(34),f=n(1181).enforce,h=n(9039),p=n(8622),v=Object,m=Array.isArray,g=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,k=v.seal,x=!i.ActiveXObject&&"ActiveXObject"in i,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},P=l("WeakMap",S,c),O=P.prototype,_=a(O.set);if(p)if(x){r=c.getConstructor(S,"WeakMap",!0),u.enable();var C=a(O.delete),E=a(O.has),j=a(O.get);s(O,{delete:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new r),C(this,e)||t.frozen.delete(e)}return C(this,e)},has:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new r),E(this,e)?j(this,e):t.frozen.get(e)}return j(this,e)},set:function(e,t){if(d(e)&&!g(e)){var n=f(this);n.frozen||(n.frozen=new r),E(this,e)?_(this,e,t):n.frozen.set(e,t)}else _(this,e,t);return this}})}else o&&h(function(){var e=w([]);return _(new P,e,1),!y(e)})&&s(O,{set:function(e,t){var n;return m(e)&&(y(e)?n=w:b(e)&&(n=k)),_(this,e,t),n&&n(e),this}})},3772:function(e,t,n){"use strict";n(3365)},3500:function(e,t,n){"use strict";var r=n(4576),o=n(7400),i=n(9296),a=n(235),s=n(6699),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},2953:function(e,t,n){"use strict";var r=n(4576),o=n(7400),i=n(9296),a=n(3792),s=n(6699),u=n(687),l=n(8227)("iterator"),c=a.values,d=function(e,t){if(e){if(e[l]!==c)try{s(e,l,c)}catch(t){e[l]=c}if(u(e,t,!0),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)d(r[f]&&r[f].prototype,f);d(i,"DOMTokenList")},8406:function(e,t,n){"use strict";n(3792);var r=n(6518),o=n(4576),i=n(3389),a=n(9565),s=n(9504),u=n(3724),l=n(7416),c=n(918),d=n(6840),f=n(2106),h=n(6279),p=n(687),v=n(3994),m=n(1181),g=n(679),y=n(4901),b=n(9297),w=n(6080),k=n(6955),x=n(8551),S=n(34),P=n(655),O=n(2360),_=n(6980),C=n(8563),E=n(3085),j=n(2529),M=n(2812),T=n(8227),A=n(4488),I=T("iterator"),R="URLSearchParams",L=R+"Iterator",B=m.set,$=m.getterFor(R),D=m.getterFor(L),z=c.decode,F=c.encode,N=i("fetch"),U=i("Request"),H=i("Headers"),W=U&&U.prototype,q=H&&H.prototype,V=o.TypeError,G=s("".charAt),Z=s([].join),X=s([].push),Y=s("".replace),K=s([].shift),J=s([].splice),Q=s("".split),ee=s("".slice),te=/\+/g,ne=function(e){return z(Y(e,te," "))},re=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ie=function(e){return oe[e]},ae=function(e){return Y(F(e),re,ie)},se=v(function(e,t){B(this,{type:L,target:$(e).entries,index:0,kind:t})},R,function(){var e=D(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,j(void 0,!0);var r=t[n];switch(e.kind){case"keys":return j(r.key,!1);case"values":return j(r.value,!1)}return j([r.key,r.value],!1)},!0),ue=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ee(e,1):e:P(e)))};ue.prototype={type:R,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,u,l=this.entries,c=E(e);if(c)for(n=(t=C(e,c)).next;!(r=a(n,t)).done;){if(i=(o=C(x(r.value))).next,(s=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new V("Expected sequence with length 2");X(l,{key:P(s.value),value:P(u.value)})}else for(var d in e)b(e,d)&&X(l,{key:d,value:P(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=Q(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(n=Q(t,"="),X(r,{key:ne(K(n)),value:ne(Z(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,ae(e.key)+"="+ae(e.value));return Z(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var le=function(){g(this,ce);var e=B(this,new ue(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},ce=le.prototype;if(h(ce,{append:function(e,t){var n=$(this);M(arguments.length,2),X(n.entries,{key:P(e),value:P(t)}),u||this.size++,n.updateURL()},delete:function(e){for(var t=$(this),n=M(arguments.length,1),r=t.entries,o=P(e),i=n<2?void 0:arguments[1],a=void 0===i?i:P(i),s=0;s<r.length;){var l=r[s];l.key!==o||void 0!==a&&l.value!==a?s++:J(r,s,1)}u||(this.size=r.length),t.updateURL()},get:function(e){var t=$(this).entries;M(arguments.length,1);for(var n=P(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=$(this).entries;M(arguments.length,1);for(var n=P(e),r=[],o=0;o<t.length;o++)t[o].key===n&&X(r,t[o].value);return r},has:function(e){for(var t=$(this).entries,n=M(arguments.length,1),r=P(e),o=n<2?void 0:arguments[1],i=void 0===o?o:P(o),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var n=$(this);M(arguments.length,2);for(var r,o=n.entries,i=!1,a=P(e),s=P(t),l=0;l<o.length;l++)(r=o[l]).key===a&&(i?J(o,l--,1):(i=!0,r.value=s));i||X(o,{key:a,value:s}),u||(this.size=o.length),n.updateURL()},sort:function(){var e=$(this);A(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=$(this).entries,r=w(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),d(ce,I,ce.entries,{name:"entries"}),d(ce,"toString",function(){return $(this).serialize()},{enumerable:!0}),u&&f(ce,"size",{get:function(){return $(this).entries.length},configurable:!0,enumerable:!0}),p(le,R),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:le}),!l&&y(H)){var de=s(q.has),fe=s(q.set),he=function(e){if(S(e)){var t,n=e.body;if(k(n)===R)return t=e.headers?new H(e.headers):new H,de(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),O(e,{body:_(0,P(n)),headers:_(0,t)})}return e};if(y(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return N(e,arguments.length>1?he(arguments[1]):{})}}),y(U)){var pe=function(e){return g(this,W),new U(e,arguments.length>1?he(arguments[1]):{})};W.constructor=pe,pe.prototype=W,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pe})}}e.exports={URLSearchParams:le,getState:$}},8408:function(e,t,n){"use strict";n(8406)},1091:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{OA:function(){return s},WL:function(){return l},u$:function(){return u}}),n(2675),n(9463),n(2259),n(5700),n(3418),n(3792),n(4782),n(9572),n(2010),n(2892),n(6099),n(7495),n(8781),n(7764),n(2953);var s={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},u=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{_$litDirective$:e,values:n}}},l=function(){return function(e,t){return t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,function(e){if(Array.isArray(e))return o(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}])}()},9447:function(e,t,n){"use strict";n.d(t,{ge:function(){return re},qy:function(){return z},c0:function(){return N},s6:function(){return U},XX:function(){return ie},JW:function(){return F}});var r,o=n.cw(function(e,t){var r=n(6518),o=n(4373),i=n(6469);r({target:"Array",proto:!0},{fill:o}),i("fill")});function i(e,t,n){return t=s(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function v(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}n(2675),n(9463),n(2259),n(5700),n(8706),o(),n(3418),n(3792),n(4782),n(9572),n(2010),n(2892),n(875),n(6099),n(825),n(4864),n(7495),n(8781),n(9449),n(7764),n(744),n(1392),n(3772),n(2953);var y=window,b=y.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,k="$lit$",x="lit$".concat((Math.random()+"").slice(9),"$"),S="?"+x,P="<".concat(S,">"),O=document,_=function(){return O.createComment("")},C=function(e){return null===e||"object"!=g(e)&&"function"!=typeof e},E=Array.isArray,j=function(e){return E(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])},M="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,I=/>/g,R=RegExp(">|".concat(M,"(?:([^\\s\"'>=/]+)(").concat(M,"*=").concat(M,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),L=/'/g,B=/"/g,$=/^(?:script|style|textarea|title)$/i,D=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return{_$litType$:e,strings:t,values:r}}},z=D(1),F=D(2),N=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),H=new WeakMap,W=O.createTreeWalker(O,129,null,!1);function q(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(t):t}var V=function(e,t){for(var n,r=e.length-1,o=[],i=2===t?"<svg>":"",a=T,s=0;s<r;s++){for(var u=e[s],l=void 0,c=void 0,d=-1,f=0;f<u.length&&(a.lastIndex=f,null!==(c=a.exec(u)));)f=a.lastIndex,a===T?"!--"===c[1]?a=A:void 0!==c[1]?a=I:void 0!==c[2]?($.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=R):void 0!==c[3]&&(a=R):a===R?">"===c[0]?(a=null!=n?n:T,d=-1):void 0===c[1]?d=-2:(d=a.lastIndex-c[2].length,l=c[1],a=void 0===c[3]?R:'"'===c[3]?B:L):a===B||a===L?a=R:a===A||a===I?a=T:(a=R,n=void 0);var h=a===R&&e[s+1].startsWith("/>")?" ":"";i+=a===T?u+P:d>=0?(o.push(l),u.slice(0,d)+k+u.slice(d)+x+h):u+x+(-2===d?(o.push(void 0),s):h)}return[q(e,i+(e[r]||"<?>")+(2===t?"</svg>":"")),o]},G=function(){return v(function e(t,n){var r,o=t.strings,i=t._$litType$;h(this,e),this.parts=[];var a=0,s=0,u=o.length-1,l=this.parts,p=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(V(o,i),2),v=p[0],m=p[1];if(this.el=e.createElement(v,n),W.currentNode=this.el.content,2===i){var g=this.el.content,y=g.firstChild;y.remove(),g.append.apply(g,function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(y.childNodes))}for(;null!==(r=W.nextNode())&&l.length<u;){if(1===r.nodeType){if(r.hasAttributes()){var w,P=[],O=c(r.getAttributeNames());try{for(O.s();!(w=O.n()).done;){var C=w.value;if(C.endsWith(k)||C.startsWith(x)){var E=m[s++];if(P.push(C),void 0!==E){var j=r.getAttribute(E.toLowerCase()+k).split(x),M=/([.?@])?(.*)/.exec(E);l.push({type:1,index:a,name:M[2],strings:j,ctor:"."===M[1]?J:"?"===M[1]?ee:"@"===M[1]?te:K})}else l.push({type:6,index:a})}}}catch(e){O.e(e)}finally{O.f()}for(var T=0,A=P;T<A.length;T++){var I=A[T];r.removeAttribute(I)}}if($.test(r.tagName)){var R=r.textContent.split(x),L=R.length-1;if(L>0){r.textContent=b?b.emptyScript:"";for(var B=0;B<L;B++)r.append(R[B],_()),W.nextNode(),l.push({type:2,index:++a});r.append(R[L],_())}}}else if(8===r.nodeType)if(r.data===S)l.push({type:2,index:a});else for(var D=-1;-1!==(D=r.data.indexOf(x,D+1));)l.push({type:7,index:a}),D+=x.length-1;a++}},null,[{key:"createElement",value:function(e,t){var n=O.createElement("template");return n.innerHTML=e,n}}])}();function Z(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===N)return t;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,l=C(t)?void 0:t._$litDirective$;return(null==u?void 0:u.constructor)!==l&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===l?u=void 0:(u=new l(e))._$AT(e,a,s),void 0!==s?(null!==(o=(i=a)._$Co)&&void 0!==o?o:i._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(t=Z(e,u._$AS(e,t.values),u,s)),t}var X=function(){return v(function e(t,n){h(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n},[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,r=n.el.content,o=n.parts,i=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:O).importNode(r,!0);W.currentNode=i;for(var a=W.nextNode(),s=0,u=0,l=o[0];void 0!==l;){if(s===l.index){var c=void 0;2===l.type?c=new Y(a,a.nextSibling,this,e):1===l.type?c=new l.ctor(a,l.name,l.strings,this,e):6===l.type&&(c=new ne(a,this,e)),this._$AV.push(c),l=o[++u]}s!==(null==l?void 0:l.index)&&(a=W.nextNode(),s++)}return W.currentNode=O,i}},{key:"v",value:function(e){var t,n=0,r=c(this._$AV);try{for(r.s();!(t=r.n()).done;){var o=t.value;void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}}catch(e){r.e(e)}finally{r.f()}}}])}(),Y=function(){function e(t,n,r,o){var i;h(this,e),this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=o,this._$Cp=null===(i=null==o?void 0:o.isConnected)||void 0===i||i}return v(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),C(e)?e===U||null==e||""===e?(this._$AH!==U&&this._$AR(),this._$AH=U):e!==this._$AH&&e!==N&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):j(e)?this.T(e):this._(e)}},{key:"k",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"$",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}},{key:"_",value:function(e){this._$AH!==U&&C(this._$AH)?this._$AA.nextSibling.data=e:this.$(O.createTextNode(e)),this._$AH=e}},{key:"g",value:function(e){var t,n=e.values,r=e._$litType$,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=G.createElement(q(r.h,r.h[0]),this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{var i=new X(o,this),a=i.u(this.options);i.v(n),this.$(a),this._$AH=i}}},{key:"_$AC",value:function(e){var t=H.get(e.strings);return void 0===t&&H.set(e.strings,t=new G(e)),t}},{key:"T",value:function(t){E(this._$AH)||(this._$AH=[],this._$AR());var n,r,o=this._$AH,i=0,a=c(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;i===o.length?o.push(n=new e(this.k(_()),this.k(_()),this,this.options)):n=o[i],n._$AI(s),i++}}catch(e){a.e(e)}finally{a.f()}i<o.length&&(this._$AR(n&&n._$AB.nextSibling,i),o.length=i)}},{key:"_$AR",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var r=t.nextSibling;t.remove(),t=r}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),K=function(){return v(function e(t,n,r,o,i){h(this,e),this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=U},[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=this.strings,i=!1;if(void 0===o)e=Z(this,e,t,0),(i=!C(e)||e!==this._$AH&&e!==N)&&(this._$AH=e);else{var a,s,u=e;for(e=o[0],a=0;a<o.length-1;a++)(s=Z(this,u[n+a],t,a))===N&&(s=this._$AH[a]),i||(i=!C(s)||s!==this._$AH[a]),s===U?e=U:e!==U&&(e+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}i&&!r&&this.j(e)}},{key:"j",value:function(e){e===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}])}(),J=function(e){function t(){var e;return h(this,t),(e=i(this,t,arguments)).type=3,e}return u(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===U?void 0:e}}])}(K),Q=b?b.emptyScript:"",ee=function(e){function t(){var e;return h(this,t),(e=i(this,t,arguments)).type=4,e}return u(t,e),v(t,[{key:"j",value:function(e){e&&e!==U?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}])}(K),te=function(e){function t(e,n,r,o,a){var s;return h(this,t),(s=i(this,t,[e,n,r,o,a])).type=5,s}return u(t,e),v(t,[{key:"_$AI",value:function(e){var t;if((e=null!==(t=Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:U)!==N){var n=this._$AH,r=e===U&&n!==U||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==U&&(n===U||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}])}(K),ne=function(){return v(function e(t,n,r){h(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){Z(this,e)}}])}(),re={O:k,P:x,A:S,C:1,M:V,L:X,R:j,D:Z,I:Y,V:K,H:ee,N:te,U:J,F:ne},oe=y.litHtmlPolyfillSupport;null==oe||oe(G,Y),(null!==(r=y.litHtmlVersions)&&void 0!==r?r:y.litHtmlVersions=[]).push("2.8.0");var ie=function(e,t,n){var r,o,i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,a=i._$litPart$;if(void 0===a){var s=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new Y(t.insertBefore(_(),s),s,void 0,null!=n?n:{})}return a._$AI(e),a}},9696:function(e,t,n){"use strict";n.d(t,{EM:function(){return r},MZ:function(){return c},P:function(){return S},wk:function(){return v}});var r=function(e){return function(t){return"function"==typeof t?function(e,t){return customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){customElements.define(e,t)}}}(e,t)}};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(2675),n(9463),n(2259),n(5700),n(2008),n(3792),n(9572),n(2892),n(3851),n(1278),n(9432),n(6099),n(7764),n(3500),n(2953);var u=function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?a(a({},t),{},{finisher:function(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(n){n.createProperty(t.key,e)}}},l=function(e,t,n){t.constructor.createProperty(n,e)};function c(e){return function(t,n){return void 0!==n?l(e,t,n):u(e,t)}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return c(h(h({},e),{},{state:!0}))}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(9085);var w,k=function(e){var t=e.finisher,n=e.descriptor;return function(e,r){var o;if(void 0===r){var i=null!==(o=e.originalKey)&&void 0!==o?o:e.key,a=null!=n?{kind:"method",placement:"prototype",key:i,descriptor:n(e.key)}:y(y({},e),{},{key:i});return null!=t&&(a.finisher=function(e){t(e,i)}),a}var s=e.constructor;void 0!==n&&Object.defineProperty(e,r,n(r)),null==t||t(s,r)}};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function S(e,t){return k({descriptor:function(n){var r={get:function(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){var o="symbol"==x(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[o]&&(this[o]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[o]}}return r}})}n(875),n(3362),null===(w=window.HTMLSlotElement)||void 0===w||w.prototype.assignedElements},4535:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(9447),o=function(e){return null!=e?e:r.s6}},8900:function(e,t,n){"use strict";n.d(t,{W:function(){return p}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3418),n(4423),n(3792),n(2712),n(4782),n(9572),n(2010),n(2892),n(875),n(9432),n(6099),n(825),n(7495),n(8781),n(1415),n(9449),n(1699),n(7764),n(5440),n(3500),n(2953);var r=n(9447),o=n(1091);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f="important",h=" !"+f,p=(0,o.u$)(function(e){function t(e){var n,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=c(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}(this,t,[e]),e.type!==o.OA.ATTRIBUTE||"style"!==e.name||(null===(r=e.strings)||void 0===r?void 0:r.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,u=[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r?t:t+"".concat(n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")},"")}},{key:"update",value:function(e,t){var n=this,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0],i=e.element.style;if(void 0===this.ht){for(var s in this.ht=new Set,o)this.ht.add(s);return this.render(o)}for(var u in this.ht.forEach(function(e){null==o[e]&&(n.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}),o){var l=o[u];if(null!=l){this.ht.add(u);var c="string"==typeof l&&l.endsWith(h);u.includes("-")||c?i.setProperty(u,c?l.slice(0,-11):l,c?f:""):i[u]=l}}return r.c0}}],u&&s(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(o.WL))},6205:function(e,t,n){"use strict";n.d(t,{WF:function(){return re},AH:function(){return b},qy:function(){return G.qy},s6:function(){return G.s6},XX:function(){return G.XX},JW:function(){return G.JW}});var r=function(){return n(6518)},o=n.cw(function(e,t){var o=r(),i=n(259),a=n(8981),s=n(6198),u=n(1291),l=n(1469);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=s(t),r=void 0===e?1:u(e),o=l(t,0);return i(o,t,t,n,0,r),o}})}),i=n.cw(function(e,t){n(6469)("flat")}),a=n.cw(function(e,t){var o=r(),i=n(4576);o({global:!0,forced:i.globalThis!==i},{globalThis:i})}),s=n.cw(function(e,t){var o=r(),i=n(9039),a=n(298).f;o({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:a})}),u=n.cw(function(e,t){a()});function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}n(2675),n(9463),n(2259),n(5700),n(8706),o(),n(3418),n(3792),n(4490),n(4782),n(4554),i(),n(739),n(9572),n(2010),n(6033),n(2892),s(),n(875),n(9432),n(6099),n(3362),n(825),n(7495),n(8781),n(1415),n(7764),n(3500),n(2953),n(2062),n(2712),n(3772);var h,p=window,v=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),g=new WeakMap,y=function(){return function(e,t){return t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,r!==m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n},[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(v&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=g.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&g.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])}(),b=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=1===e.length?e[0]:n.reduce(function(t,n,r){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+e[r+1]},e[0]);return new y(o,e,m)},w=function(e,t){v?e.adoptedStyleSheets=t.map(function(e){return e instanceof CSSStyleSheet?e:e.styleSheet}):t.forEach(function(t){var n=document.createElement("style"),r=p.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)})},k=v?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e.cssRules);try{for(r.s();!(t=r.n()).done;)n+=t.value.cssText}catch(e){r.e(e)}finally{r.f()}return function(e){return new y("string"==typeof e?e:e+"",void 0,m)}(n)}(e):e};function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=P(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function S(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function C(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return E(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(E(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,E(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,E(d,"constructor",l),E(l,"constructor",u),u.displayName="GeneratorFunction",E(l,o,"GeneratorFunction"),E(d),E(d,o,"Generator"),E(d,r,function(){return this}),E(d,"toString",function(){return"[object Generator]"}),(C=function(){return{w:i,m:f}})()}function E(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}E=function(e,t,n,r){function i(t,n){E(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},E(e,t,n,r)}function j(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T(r.key),r)}}function T(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}function A(e){var t="function"==typeof Map?new Map:void 0;return A=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(I())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&R(o,n.prototype),o}(e,arguments,L(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),R(n,e)},A(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var B=window,$=B.trustedTypes,D=$?$.emptyScript:"",z=B.reactiveElementPolyfillSupport,F={toAttribute:function(e,t){switch(t){case Boolean:e=e?D:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},N=function(e,t){return t!==e&&(t==t||e==e)},U={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:N},H="finalized",W=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=L(t),function(e,t){if(t&&("object"==_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],L(e).constructor):t.apply(e,n))}(this,t))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e._$Eu(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(t,e),function(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_$Eu",value:function(){var e,t=this;this._$E_=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var e=this;this.constructor.elementProperties.forEach(function(t,n){e.hasOwnProperty(n)&&(e._$Ei.set(n,e[n]),delete e[n])})}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return w(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$ES)||void 0===e||e.forEach(function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,o=this.constructor._$Ep(e,r);if(void 0!==o&&!0===r.reflect){var i=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:F).toAttribute(t,r.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}},{key:"_$AK",value:function(e,t){var n,r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){var i=r.getPropertyOptions(o),a="function"==typeof i.converter?{fromAttribute:i.converter}:void 0!==(null===(n=i.converter)||void 0===n?void 0:n.fromAttribute)?i.converter:F;this._$El=o,this[o]=a.fromAttribute(t,i.type),this._$El=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||N)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(n=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){j(i,r,o,a,s,"next",e)}function s(e){j(i,r,o,a,s,"throw",e)}a(void 0)})}}(C().m(function e(){var t,n;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return this.isUpdatePending=!0,e.p=1,e.n=2,this._$E_;case 2:e.n=4;break;case 3:e.p=3,n=e.v,Promise.reject(n);case 4:if(null==(t=this.scheduleUpdate())){e.n=5;break}return e.n=5,t;case 5:return e.a(2,!this.isUpdatePending)}},e,this,[[1,3]])})),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(function(e,n){return t[n]=e}),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach(function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw n=!1,this._$Ek(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach(function(e,n){return t._$EO(n,t[n],e)}),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach(function(n,r){var o=e._$Ep(r,n);void 0!==o&&(e._$Ev.set(o,r),t.push(o))}),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==_(e)?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(r){var o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||U}},{key:"finalize",value:function(){if(this.hasOwnProperty(H))return!1;this[H]=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=S(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=x([].concat(S(Object.getOwnPropertyNames(n)),S(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var o=t.value;this.createProperty(o,n[o])}}catch(e){r.e(e)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=x(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var o=n.value;t.unshift(k(o))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(k(e));return t}},{key:"_$Ep",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]);var n}(A(HTMLElement));W[H]=!0,W.elementProperties=new Map,W.elementStyles=[],W.shadowRootOptions={mode:"open"},null==z||z({ReactiveElement:W}),(null!==(h=B.reactiveElementVersions)&&void 0!==h?h:B.reactiveElementVersions=[]).push("1.6.3");var q,V,G=n(9447);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e){if("object"!=Z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}function Q(e,t,n,r){var o=ee(te(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function ee(){return ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=te(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ee.apply(null,arguments)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}n(3851),n(888),u();var re=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=te(t),function(e,t){if(t&&("object"==Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}(e,J()?Reflect.construct(t,n||[],te(e).constructor):t.apply(e,n))}(this,t,arguments)).renderOptions={host:K(e)},e._$Do=void 0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(t,e),function(e,t){return t&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createRenderRoot",value:function(){var e,n,r=Q(t,"createRenderRoot",this,3)([]);return null!==(e=(n=this.renderOptions).renderBefore)&&void 0!==e||(n.renderBefore=r.firstChild),r}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Q(t,"update",this,3)([e]),this._$Do=(0,G.XX)(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;Q(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;Q(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return G.c0}}])}(W);re.finalized=!0,re._$litElement$=!0,null===(q=globalThis.litElementHydrateSupport)||void 0===q||q.call(globalThis,{LitElement:re});var oe=globalThis.litElementPolyfillSupport;null==oe||oe({LitElement:re}),(null!==(V=globalThis.litElementVersions)&&void 0!==V?V:globalThis.litElementVersions=[]).push("3.3.3")},4907:function(e,t,n){"use strict";n.d(t,{KL:function(){return g},LN:function(){return p},Ql:function(){return v}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3418),n(3792),n(2712),n(4782),n(9572),n(2010),n(2892),n(875),n(6099),n(3362),n(7495),n(8781),n(7764),n(2953);var r=n(8004),o=n(1669);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return c(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),h=d.prototype=s.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,c(h,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,o,"GeneratorFunction"),c(h),c(h,o,"Generator"),c(h,r,function(){return this}),c(h,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:p}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function i(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},c(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}var p=function(){return e=function e(t,n){var r=n.isProtected,i=n.imageCache;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=i,this.$container=o("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide).attr("data-index",null==t?void 0:t.index).attr("data-page-num",null==t?void 0:t.getPageNum()),r&&(this.$container.append(o('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null},t=[{key:"update",value:function(e){var t,n=this,o=e.dimensions,i=void 0===o?null:o,a=e.reduce,s=void 0===a?null:a;if(i&&this.$container.css(i),null!=s&&this.page){var u=this.imageCache.getFinalReduce(this.page.index,s),c=this.page.getURI(u,0),f=this.imageCache.imageLoaded(this.page.index,u),h=this.imageCache.getBestLoadedReduce(this.page.index,s);if((null===(t=this.$img)||void 0===t?void 0:t.data("src"))==c)return this;var p=this.$img;if(this.$img=this.imageCache.image(this.page.index,u),p?this.$img.insertAfter(p):this.$img.prependTo(this.$container),f||this.$container.addClass("BRpageloading"),!f&&h){var v=this.page.getURI(h,0);p?p.data("src")==v||this.imageCache.image(this.page.index,h,p[0]):(p=this.imageCache.image(this.page.index,h)).prependTo(this.$container)}return this.$img.one("load",function(){var e,t=(e=l().m(function e(t){var o;return l().w(function(e){for(;;)switch(e.n){case 0:return n.$container.removeClass("BRpageloading"),e.n=1,(0,r.yy)(100);case 1:null===(o=p)||void 0===o||o.remove();case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}()),this}}}],t&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function v(e,t){var n=document.createElement("div");return n.style.width="".concat(e.width,"px"),n.style.height="".concat(e.height,"px"),n.setAttribute("class","BRPageLayer ".concat(t)),n}function m(e){var t=e.l,n=e.r,r=e.b,o=e.t,i=document.createElementNS("http://www.w3.org/2000/svg","rect");return i.setAttribute("x",t.toString()),i.setAttribute("y",o.toString()),i.setAttribute("width",(n-t).toString()),i.setAttribute("height",(r-o).toString()),i.setAttribute("rx","4"),i.setAttribute("ry","4"),i}function g(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=r.querySelector(".".concat(e)),l=u||function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 ".concat(e.width," ").concat(e.height)),n.setAttribute("class","BRPageLayer ".concat(t)),n.setAttribute("preserveAspectRatio","none"),n}(n,e);if(!u){var c=r.querySelector(".BRpageimage");c?o(l).insertAfter(c):o(l).prependTo(r)}var d,f=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(t.entries());try{for(f.s();!(d=f.n()).done;){var h=a(d.value,2),p=h[0],v=m(h[1]);i&&v.setAttribute("class",i[p]),l.appendChild(v)}}catch(e){f.e(e)}finally{f.f()}}},8340:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r={fragmentChange:"fragmentChange",pageChanged:"pageChanged",beforePageChanged:"beforePageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected"}},8004:function(e,t,n){"use strict";function r(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function s(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return o(c,"_invoke",function(n,r,o){var i,a,s,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,s=e,f.n=n,u}};function h(n,r){for(a=n,s=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(a=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,a=0))}if(o||n>1)return u;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),a=c,s=p;(t=a<2?e:s)||!d;){i||(a?a<3?(a>1&&(f.n=-1),h(a,s)):f.n=s:f.v=s);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==u)break}catch(t){i=e,a=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,i,a),!0),c}var u={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(o(t={},i,function(){return this}),t),h=d.prototype=l.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return c.prototype=d,o(h,"constructor",d),o(d,"constructor",c),c.displayName="GeneratorFunction",o(d,a,"GeneratorFunction"),o(h),o(h,a,"Generator"),o(h,i,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:s,m:p}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function i(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)})}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e){e.bind("mousedown",function(){return!1}),e[0].onselectstart=function(){return!1}}function l(e,t,n){return Math.min(Math.max(e,t),n)}function c(e,t){return e/t*100+"%"}function d(e,t){return!t.includes(e)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.activeElement;return t&&null!=n&&n.shadowRoot?f(n.shadowRoot,!0):n}function h(){var e=f(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document);return"INPUT"==(null==e?void 0:e.tagName)||"TEXTAREA"==(null==e?void 0:e.tagName)}function p(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function v(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function m(e){return decodeURIComponent(e).replace(/\+/g," ")}function g(e){return encodeURIComponent(e).replace(/%20/g,"+")}function y(e,t,n){var r;return function(){var o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(o,i)},t),a&&e.apply(o,i)}}function b(e,t,n){var r,o;return t||(t=250),n&&(r=+new Date),function(){var n=this,i=+new Date,a=arguments;r&&i<r+t?(clearTimeout(o),o=setTimeout(function(){r=i,e.apply(n,a)},t)):(r=i,e.apply(n,a))}}function w(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=k}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0!==n&&n,o=t.cancelable,i=void 0!==o&&o,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,r,i,s),u}function x(){var e=document.createElement("div");e.style.width="1in",document.body.appendChild(e);var t=e.offsetWidth;document.body.removeChild(e);var n=1.25*t;return 0==n?100:n}function S(e){return e.reduce(function(e,t){return e+t},0)}function P(e){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n.push(o)}}catch(e){r.e(e)}finally{r.f()}return n}function O(e,t){return e.length==t.length&&e.every(function(e,n){return e==t[n]})}function _(e,t){return e&&t&&!O(e,t)}function C(e){return E.apply(this,arguments)}function E(){return(E=a(r().m(function e(t){return r().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(e){return setTimeout(e,t)}))},e)}))).apply(this,arguments)}function j(e){return M.apply(this,arguments)}function M(){return M=a(r().m(function e(t){var n,o,i,a,s,u,l,c,d,f,h,p=arguments;return r().w(function(e){for(;;)switch(e.n){case 0:o=(n=p.length>1&&void 0!==p[1]?p[1]:{}).step,i=void 0===o?50:o,a=n.timeout,s=void 0===a?500:a,u=n.until,l=void 0===u?function(e){return Boolean(e)}:u,c=n._sleep,d=void 0===c?C:c,f=Date.now();case 1:if(!(Date.now()-f<s)){e.n=4;break}if(h=t(),!l(h)){e.n=2;break}return e.a(2,h);case 2:return e.n=3,d(i);case 3:e.n=1;break;case 4:return e.a(2)}},e)})),M.apply(this,arguments)}function T(e,t){return new Promise(function(n){var r=function(o){e.removeEventListener(t,r),n(o)};e.addEventListener(t,r)})}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e){return"slow"===e?600:"fast"===e?200:parseInt(e,10)}function R(e,t){return e.sort(function(e,n){var r=t?t(e):e,o=t?t(n):n;return r<o?-1:r>o?1:0})}n.r(t),n.d(t,{C9:function(){return p},Cq:function(){return k},DT:function(){return P},Fg:function(){return T},Fs:function(){return O},GF:function(){return g},Hs:function(){return w},KL:function(){return d},Nl:function(){return u},Nt:function(){return A},Ul:function(){return R},Ve:function(){return I},Zn:function(){return v},b_:function(){return x},bq:function(){return f},cz:function(){return S},nF:function(){return b},oB:function(){return c},ow:function(){return m},qE:function(){return l},sg:function(){return y},w1:function(){return _},wt:function(){return j},xK:function(){return h},yy:function(){return C}}),n(2675),n(9463),n(2259),n(3418),n(4423),n(3792),n(2712),n(4782),n(6910),n(2010),n(875),n(6099),n(8940),n(3362),n(7495),n(8781),n(1699),n(7764),n(5440),n(2953)},7583:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.vendor;return/chrome/i.test(e)&&/google inc/i.test(t)&&!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/chrome/i.test(e)&&/\bEdg(e|A|iOS)?\b/i.test(e)}(e)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/firefox/i.test(e)}function i(){return"ongesturestart"in window&&navigator.maxTouchPoints>0}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/android/i.test(e)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/SamsungBrowser/i.test(e)}n.d(t,{H8:function(){return r},gm:function(){return o},ij:function(){return s},m0:function(){return a},un:function(){return i}}),n(7495)},1131:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(8004);function o(e,t,n,r,o,i){var a=0;switch(i){case"start":a=e-n;break;case"end":a=t-r;break;case"center":a=(e+t)/2-(n+r)/2;break;default:e<n?a=e-n:t>r&&(a=t-r)}return o+a}function i(e,t){var n=t||{},i=n.block,a=void 0===i?"start":i,s=n.inline,u=void 0===s?"nearest":s,l=n.behavior,c=void 0===l?"auto":l,d=n.scrollContainer,f=void 0===d?function(e){for(var t=e.parentElement;t;){var n=getComputedStyle(t),r=("auto"===n.overflowY||"scroll"===n.overflowY)&&t.scrollHeight>t.clientHeight,o=("auto"===n.overflowX||"scroll"===n.overflowX)&&t.scrollWidth>t.clientWidth;if(r||o)return t;t=t.parentElement}return null}(e):d;if(f){var h=f.getBoundingClientRect(),p=e.getBoundingClientRect(),v=o(p.top,p.bottom,h.top,h.bottom,f.scrollTop,a),m=o(p.left,p.right,h.left,h.right,f.scrollLeft,u);f.scrollTo({top:(0,r.qE)(v,0,f.scrollHeight-f.clientHeight),left:(0,r.qE)(m,0,f.scrollWidth-f.clientWidth),behavior:c})}else e.scrollIntoView({block:a,inline:u,behavior:c})}},1635:function(e,t,n){"use strict";function r(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}n.d(t,{Cg:function(){return r}}),Object.create,Object.create}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,e=[],r.O=function(t,n,o){if(!n){for(var i=0;i<e.length;i++){n=e[i][0],o=e[i][1];for(var a=!0,s=0;s<n.length;s++)r.O.j(n[s])?n.splice(s--,1):a=!1;if(a){e.splice(i--,1);var u=o();void 0!==u&&(t=u)}}return t}e.push([n,o])},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.cw=function(e){var t;return function(){if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.u=function(e){return e+".js"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^https?:/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e}(),function(){r.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={119:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],s=n[1],u=n[2],l=0;if(a.some(function(t){return 0!==e[t]})){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(u)var c=u(r)}for(t&&t(n);l<a.length;l++)i=a[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o={};!function(){"use strict";var e=function(){return r(6518)},t=r.cw(function(t,n){var o=e(),i=r(259),a=r(9306),s=r(8981),u=r(6198),l=r(1469);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=s(this),r=u(n);return a(e),t=l(n,0),i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})}),n=r.cw(function(e,t){r(6469)("flatMap")}),o=r.cw(function(t,n){e()({target:"Math",stat:!0},{log2:r(7787)})}),i=r.cw(function(t,n){e()({target:"Math",stat:!0},{sign:r(7782)})}),a=(r(2675),r(9463),r(2259),r(5700),r(3418),r(3792),r(4782),r(9572),r(2010),r(2892),r(2811),r(3851),r(1278),r(875),r(825),r(888),r(8781),r(7764),r(3500),r(2953),r(8706),r(2008),r(113),r(2062),r(9085),r(5506),r(9432),r(6099),r(7495),r(1761),r(5746),r(6205)),s=(r(4423),r(8598),r(2712),r(6034),r(8940),r(3362),r(1699),r(8408),r(9139),r(3662),r(8497),r(8004)),u={};r.r(u),r.d(u,{PolyfilledCustomEvent:function(){return s.Cq},arrChanged:function(){return s.w1},arrEquals:function(){return s.Fs},calcScreenDPI:function(){return s.b_},clamp:function(){return s.qE},cssPercentage:function(){return s.oB},debounce:function(){return s.sg},decodeURIComponentPlus:function(){return s.ow},disableSelect:function(){return s.Nl},encodeURIComponentPlus:function(){return s.GF},escapeHTML:function(){return s.Zn},escapeRegExp:function(){return s.Nt},genToArray:function(){return s.DT},getActiveElement:function(){return s.bq},getIFrameDocument:function(){return s.C9},isInputActive:function(){return s.xK},notInArray:function(){return s.KL},parseAnimationSpeed:function(){return s.Ve},poll:function(){return s.wt},polyfillCustomEvent:function(){return s.Hs},promisifyEvent:function(){return s.Fg},sleep:function(){return s.yy},sortBy:function(){return s.Ul},sum:function(){return s.cz},throttle:function(){return s.nF}});var l=r(1131);r(8459),r(4720);var c=r(8340),d=r(1669);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}var v=function(){return function(e,t){return t&&h(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["toggle_slider","viewmode"],this.maximumControls=["BRnavpos","book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,s.nF)(this.updateNavIndex.bind(this),250,!1)},[{key:"controlFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.br.options.controls[e],r=Object.assign({},n,t);return r.visible?r.template?"<li>".concat(r.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(r.className,'" title="').concat(r.label,'">\n <div class="icon icon-').concat(r.iconClassName,'"></div>\n <span class="BRtooltip">').concat(r.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["toggleSlider","bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map(function(t){return e.controlFor(t)}).join("")}},{key:"_bindViewModeButton",value:function(){var e=this,t=this.br,n=t.options.controls.viewmode,r=[{mode:t.constMode1up,className:"onepg",title:"One-page view"},{mode:t.constMode2up,className:"twopg",title:"Two-page view"},{mode:t.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter(function(e){return!n.excludedModes.includes(e.mode)}),o=r.map(function(e){return e.mode});n.excludedModes.includes(t.mode)&&t.switchMode(o[0]);for(var i=o.indexOf(t.mode),a=0;a<=i;a++)o.push(o.shift());r.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(c.q.PostInit,function(){var i=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",function(n){var i=o.shift(),a=r.find(function(e){return e.mode===i}),s=r.find(function(e){return e.mode===o[0]});o.push(i),t.viewModeOrder=o,e.updateViewModeButton(d(n.currentTarget),s.className,s.title),t.switchMode(a.mode)}),a=r.find(function(e){return e.mode===o[0]});e.updateViewModeButton(i,a.className,a.title)})}},{key:"bindControlClickHandlers",value:function(){var e=this,t=this.$nav.find(".BRicon"),n={toggle_slider:function(){e.br.toggleSlider()},book_left:this.br.left.bind(this.br),book_right:this.br.right.bind(this.br),book_top:this.br.first.bind(this.br),book_bottom:this.br.last.bind(this.br),book_leftmost:this.br.leftmost.bind(this.br),book_rightmost:this.br.rightmost.bind(this.br),onepg:function(){e.br.switchMode("1up")},thumb:function(){e.br.switchMode("thumb")},twopg:function(){e.br.switchMode("2up")},zoom_in:function(){e.br.trigger(c.q.stop),e.br.zoom(1),e.br.trigger(c.q.zoomIn)},zoom_out:function(){e.br.trigger(c.q.stop),e.br.zoom(-1),e.br.trigger(c.q.zoomOut)},full:function(){if("embed"==e.br.ui){var t=e.br.$(".BRembedreturn a").attr("href");window.open(t)}else e.br.toggleFullscreen()}};this.$nav.find("nav.BRcontrols li button").on("click",function(){e.br.trigger(c.q.userAction)});var r=function(e){t.filter(".".concat(e)).on("click.bindNavigationHandlers",function(){return n[e](),!1})};for(var o in n)r(o)}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).end().find(".BRtooltip").text(n)}},{key:"switchNavbarControls",value:function(){this.$root&&"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMobileControls():this.showDesktopControls())}},{key:"showMobileControls",value:function(){var e=this;this.minimumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).removeClass("hide")}),this.maximumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).addClass("hide")}),this.$root.find(".BRnavMobile").removeClass("hide")}},{key:"showDesktopControls",value:function(){var e=this;this.maximumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).removeClass("hide")}),this.minimumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).addClass("hide")}),this.$root.find(".BRnavMobile").addClass("hide")}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,r="rl"===t.pageProgression,o=r?"book_flip_next":"book_flip_prev",i=r?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(o),this.br.options.controls.bookRight.className="book_right ".concat(i),t.refs.$BRfooter=this.$root=d('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=d('<div class="BRnav BRnavMobile docked">\n '.concat(n?'<div class="BRnavTitle">'.concat(n,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <div class="BRnavpos">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n </li>\n ').concat(this.controlFor("bookLeft",{visible:!0}),"\n ").concat(this.controlFor("bookRight",{visible:!0}),'\n </ul>\n </nav>\n </div>\n <div class="BRnav BRnavMain">\n ').concat(n?'<div class="BRnavTitle">'.concat(n,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <p>\n <span class="BRcurrentpage"></span>\n </p>\n <div class="BRnavpos hide">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),this.$root.append(this.$nav),t.refs.$br.append(this.$root),this.br.on(c.q.beforePageChanged,function(t,n){n.ariaLive?e.$root.find(".BRcurrentpage").attr("role","status"):e.$root.find(".BRcurrentpage").removeAttr("role")}),this.br.on(c.q.pageChanged,function(t,n){var r=n.index;return e.updateNavIndexThrottled(r)}),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex());var a=this.$root.find(".BRpager").slider({animate:!0,min:0,max:Math.max(0,t.book.getNumLeafs()-1),value:t.currentIndex(),range:"min"});return a.find(".ui-slider-handle").attr({role:"slider","aria-label":"Page navigation slider","aria-valuemin":0,"aria-valuemax":Math.max(0,t.book.getNumLeafs()-1)}),a.find(".ui-slider-handle").off("keydown").on("keydown",function(e){switch(e.keyCode||e.which){case d.ui.keyCode.LEFT:case d.ui.keyCode.RIGHT:r&&(e.keyCode===d.ui.keyCode.LEFT?e.keyCode=d.ui.keyCode.RIGHT:e.keyCode=d.ui.keyCode.LEFT),d.ui.slider.prototype._handleEvents.keydown.call(d(e.target).parent().data("ui-slider"),e),e.stopPropagation();break;default:return}}),a.on("slide",function(n,o){if(e.br.mode===e.br.constMode2up){var i=o.value>t.currentIndex(),a=e.br.book.getPage(o.value);(r?"L"===a.pageSide:"R"===a.pageSide)&&(o.value+=i?1:-1,o.value=Math.max(0,Math.min(o.value,t.book.getNumLeafs()-1)))}e.updateNavPageNum(o.value)}),a.on("slidechange",function(n,o){if(d(n.target).data("swallowchange"))d(n.target).data("swallowchange",!1);else{if(e.br.mode===e.br.constMode2up){var i=o.value>t.currentIndex(),a=e.br.book.getPage(o.value);(r?"L"===a.pageSide:"R"===a.pageSide)&&(o.value+=i?1:-1,o.value=Math.max(0,Math.min(o.value,t.book.getNumLeafs()-1)))}e.br.jumpToIndex(o.value,{ariaLive:!1})}}),this.$nav}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.book.getPageNum(e),r=(t.book.getPageProp(e,"pageType"),t.book.getNumLeafs());if(!this.maxPageNum){for(var o,i=0,a=0;a<r;a++)o=parseFloat(t.book.getPageNum(a)),!isNaN(o)&&o>i&&(i=o);this.maxPageNum=i}return function(e,t,n){"n"!=n[0]||(n="—");var r=Math.max(0,t-1);return"Page ".concat(n," (").concat(e,"/").concat(r,")")}(e,r,n,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e)),this.$root.find(".ui-slider-handle").attr({"aria-valuenow":e,"aria-valuetext":this.getNavPageNumString(e)})}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0),this.$root.find(".BRpager").slider("value",e),this.updateNavPageNum(e)}}])}();function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e){var t="function"==typeof Map?new Map:void 0;return g=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(y())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&b(o,n.prototype),o}(e,arguments,w(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,e)},g(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}r(6033);var k={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:400,showToolbar:!0,showNavbar:!0,navBarTitle:"",showLogo:!0,logoURL:"https://archive.org",imagesBaseURL:"/BookReader/images/",reduceSet:"pow2",reductionFactors:[{reduce:.25,autofit:null},{reduce:.5,autofit:null},{reduce:1,autofit:null},{reduce:2,autofit:null},{reduce:3,autofit:null},{reduce:4,autofit:null},{reduce:6,autofit:null}],onePage:{autofit:"auto"},twoPage:{coverInternalPadding:0,coverExternalPadding:0,bookSpineDivWidth:64,autofit:"auto"},onePageMinBreakpoint:800,bookTitle:"",bookUrl:null,bookUrlText:null,bookUrlTitle:null,enableBookTitleLink:!0,bookUri:null,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{archiveAnalytics:{},autoplay:{},chapters:{},experiments:{},iiif:{},resume:{},search:{},textSelection:{},translate:{},tts:{}},vars:{},data:[],table_of_contents:null,getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,requestPage:function(e){return[]},verifyTextFragment:function(e){return!0},renderPageURI:function(e,t){e.src=t},getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{toggleSlider:{visible:!0,label:"Toggle page controls",className:"toggle_slider",iconClassName:"toggle-slider"},bookLeft:{visible:!0,label:"Flip left",className:"book_left",iconClassName:"left-arrow"},bookRight:{visible:!0,label:"Flip right",className:"book_right",iconClassName:"left-arrow hflip"},onePage:{visible:!0,label:"One-page view",className:"onepg",iconClassName:"onepg"},twoPage:{visible:!0,label:"Two-page view",className:"twopg",iconClassName:"twopg"},thumbnail:{visible:!0,label:"Thumbnail view",className:"thumb",iconClassName:"thumb"},viewmode:{visible:!0,className:"viewmode",excludedModes:[]},zoomOut:{visible:!0,label:"Zoom out",className:"zoom_out",iconClassName:"magnify"},zoomIn:{visible:!0,label:"Zoom in",className:"zoom_in",iconClassName:"magnify plus"},fullScreen:{visible:!0,label:"Go fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,enableFSLogoShortcut:!1,autoResize:!0,useSrcSet:!1,unviewablePageURI:"./unviewable_page.png"},x=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=w(t),function(e,t){if(t&&("object"==m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(g(Error)),S=(r(5440),r(4638),r(1669));function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}var E=function(){return function(e,t){return t&&_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t},[{key:"buildToolbarElement",value:function(){var e=this.br,t=e.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(e.logoURL,'"></a>\n </span>'):"";e.refs.$BRtoolbar=S('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(t,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=e.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");e.bookUrl&&e.options.enableBookTitleLink?n.append(S("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle);for(var r=0,o=Object.values(e.plugins);r<o.length;r++)o[r]._configureToolbar(e.refs.$BRtoolbar);return e.refs.$BRtoolbar}},{key:"initToolbar",value:function(e,t){var n=this.br;n.refs.$br.append(this.buildToolbarElement()),n.$(".BRnavCntl").addClass("BRup"),n.$(".pause").hide(),n.refs.$BRtoolbar.append(),n.canSwitchToMode(n.constMode2up)||n.$(".two_page_mode, .play, .pause").hide(),n.canSwitchToMode(n.constModeThumb)||n.$(".thumbnail_mode").hide(),n.canSwitchToMode(n.constMode2up)||n.canSwitchToMode(n.constModeThumb)||n.$(".one_page_mode").hide(),S('<div style="display: none;"></div>').append(S('\n <div class="BRfloat BRshare">\n <div class="BRfloatHead">\n Share\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n </div>')).append(S('\n <div class="BRfloat BRinfo">\n <div class="BRfloatHead">About this book\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n <div class="BRfloatBody">\n <div class="BRfloatCover"></div>\n <div class="BRfloatMeta">\n <div class="BRfloatTitle">\n <h2><a /></h2>\n </div>\n </div>\n </div>\n <div class="BRfloatFoot">\n <a href="https://openlibrary.org/dev/docs/bookreader">About the BookReader</a>\n </div>\n </div>')).appendTo(n.refs.$br),n.$(".BRinfo .BRfloatTitle a").attr({href:n.bookUrl}).text(n.bookTitle).addClass("title"),this.buildInfoDiv(n.$(".BRinfo")),this.buildShareDiv(n.$(".BRshare")),n.$(".share").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRshare"),onLoad:function(){n.trigger(c.q.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(c.q.stop)}})}},{key:"buildShareDiv",value:function(e){var t=this,n=this.br,r=document.location+"",o=(r+"").replace(/#.*/,""),i=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(o,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=S('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(i,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(e),a.find(".fieldset-embed input").on("change",function(e){var t=S(e.target).parents("form").first(),r={};r.mode=S(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&t.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))}),a.find("input, textarea").on("focus",function(e){return e.target.select()}),a.find(".facebook-share-button").on("click",function(){j("https://www.facebook.com/sharer.php?"+S.param({u:t._getSocialShareUrl()}),600,400,"Share")}),a.find(".twitter-share-button").on("click",function(){j("https://twitter.com/intent/tweet?"+S.param({url:t._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")}),a.find(".email-share-button").on("click",function(){var e="".concat(n.bookTitle,"\n\n").concat(t._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(e))}),a.find("input[name=thispage]").trigger("change"),a.appendTo(e)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(e){var t=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=S('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(S('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,s.Zn)(t.bookTitle),'" />\n </div>')));var r,o=S('<div class="BRinfoRightCol">'),i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.metadata);try{for(i.s();!(r=i.n()).done;){var a=r.value,u=a.extraValueClass,l=void 0===u?"":u,c=a.label,d=a.value,f="Title"===c?(0,s.Zn)(d):d;o.append(S('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(c,'</div>\n <div class="BRinfoValue ').concat(l,'">').concat(f,"</div>\n </div>")))}}catch(e){i.e(e)}finally{i.f()}var h=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;h&&t.bookUrl&&o.append(S('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,s.Zn)(h),"\n </a>\n </div>\n </div>")));var p=S('<div class="BRfloatFoot BRinfoFooter"></div>'),v=S('<div class="BRinfoW mv20-lg">').append([n,o,S('<br style="clear:both"/>')]);e.append(v,p).addClass("wide")}},{key:"getToolBarHeight",value:function(){var e=this.br.refs.$BRtoolbar;return e&&"block"===e.css("display")?e.outerHeight()+parseInt(e.css("top")):0}}])}();function j(e,t,n,r){var o=null!=window.screenLeft?window.screenLeft:screen.left,i=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-t/2+o,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+i,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,r,u)}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function T(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return A(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(A(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,A(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,A(d,"constructor",l),A(l,"constructor",u),u.displayName="GeneratorFunction",A(l,o,"GeneratorFunction"),A(d),A(d,o,"Generator"),A(d,r,function(){return this}),A(d,"toString",function(){return"[object Generator]"}),(T=function(){return{w:i,m:f}})()}function A(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}A=function(e,t,n,r){function i(t,n){A(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},A(e,t,n,r)}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function $(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=function(e){if("object"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==M(t)?t:t+""}r(8980),t(),r(6910),n(),r(1392);var z=function(){return $(function e(t){var n,r,o,i;L(this,e),this.br=t,this.reduceSet=t.reduceSet,this.ppi=null!==(n=null===(r=t.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:k.ppi,this.pageProgression=null!==(o=null===(i=t.options)||void 0===i?void 0:i.pageProgression)&&void 0!==o?o:k.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null},[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],r=I(this.pagesIterator());try{for(r.s();!(e=r.n()).done;){var o=e.value;t.push(o.widthInches),n.push(o.heightInches)}}catch(e){r.e(e)}finally{r.f()}return t.sort(function(e,t){return e-t}),n.sort(function(e,t){return e-t}),this._medianPageSize={width:t[Math.floor(t.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,s.qE)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,s.qE)(e,0,this.getNumLeafs()-1);return this.getPageHeight(t)}},{key:"getPageIndex",value:function(e){var t=this.getPageIndices(e);return t.length?t[t.length-1]:void 0}},{key:"getPageIndices",value:function(e){var t=[];if("n"==e.slice(0,1))try{var n=e.slice(1,e.length),r=parseInt(n);return t.push(r),t}catch(e){}for(var o=0;o<this.getNumLeafs();o++)this.getPageNum(o)==e&&t.push(o);return t}},{key:"getPageName",value:function(e){return"Page "+this.getPageNum(e)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(e){return this.getPageProp(e,"width")}},{key:"getPageHeight",value:function(e){return this.getPageProp(e,"height")}},{key:"getPageURI",value:function(e,t,n){if(this.getPageProp(e,"viewable",!0))return this.getPageProp(e,"uri");var r=this.br.options.unviewablePageURI;return r.startsWith(".")?this.br.options.imagesBaseURL+r:r}},{key:"getPageSide",value:function(e){return this.getPageProp(e,"pageSide")||(e%2==0?"R":"L")}},{key:"getPageNum",value:function(e){var t=this.getPageProp(e,"pageNum");return void 0===t?"n".concat(e):t}},{key:"getPageProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(e,t,n)}},{key:"getSpreadIndices",value:function(e){return"rl"==this.pageProgression?"R"==this.getPageSide(e)?[e+1,e]:[e,e-1]:"L"==this.getPageSide(e)?[e,e+1]:[e-1,e]}},{key:"leafNumToIndex",value:function(e){var t=this._getDataFlattened().findIndex(function(t){return t.leafNum==e});return t>-1?t:e}},{key:"parsePageString",value:function(e){var t,n=/^leaf(\d+)/.exec(e);return n?null===(t=this.leafNumToIndex(parseInt(n[1],10)))&&(t=void 0):t=this.getPageIndex(e),t}},{key:"getPage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(t||!(e<0||e>=n))return e<0&&e>=-n&&(e+=n),new F(this,e%=n)}},{key:"pagesIterator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.start,r=void 0===n?0:n,o=t.end,i=void 0===o?1/0:o,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a;return T().m(function t(){var n,o;return T().w(function(t){for(;;)switch(t.n){case 0:r=Math.max(0,r),i=Math.min(i,e.getNumLeafs()),n=r;case 1:if(!(n<i)){t.n=4;break}if(o=e.getPage(n),!s||!o.isConsecutiveUnviewable){t.n=2;break}return t.a(3,3);case 2:return t.n=3,o;case 3:n++,t.n=1;break;case 4:return t.a(2)}},t)})()}},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var e=null,t=null,n=0,r=this.br.data.flatMap(function(r){return r.map(function(o){return o.pageSide||(o.pageSide=null===e?2===r.length?"L":"R":"L"===e?"R":"L"),e=o.pageSide,!1===o.viewable?o.unviewablesStart=null===t?t=n:t:t=null,n++,o})});return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened();return isNaN(e)||e<0||e>=r.length||void 0===r[e][t]?n:r[e][t]}}])}(),F=function(){function e(t,n){L(this,e);var r=t._getDataProp(n,"ppi",t.ppi);this.ppi=Math.max(r<10?t.ppi:r,10),this.book=t,this.index=n,this.width=t.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=t.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=t.getPageSide(n),this.leafNum=t._getDataProp(n,"leafNum",this.index),this.isViewable=t._getDataProp(n,"viewable",!0),this.unviewablesStart=t._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return $(e,[{key:"makeViewable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=e)if(e){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var t,n=I(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(e){n.e(e)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var o,i=I(this.book.pagesIterator({start:this.index+1}));try{for(i.s();!(o=i.n()).done;){var a=o.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(e){i.e(e)}finally{i.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"left",get:function(){return"lr"===this.book.pageProgression?this.prev:this.next}},{key:"right",get:function(){return"lr"===this.book.pageProgression?this.next:this.prev}},{key:"spread",get:function(){return{left:"L"===this.pageSide?this:this.left,right:"R"===this.pageSide?this:this.right}}},{key:"goLeft",value:function(e){var t="lr"===this.book.pageProgression?this.index-e:this.index+e;return this.book.getPage(t)}},{key:"goRight",value:function(e){var t="lr"===this.book.pageProgression?this.index+e:this.index-e;return this.book.getPage(t)}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getPageNum",value:function(){return this.book.getPageNum(this.index)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,o=r.floor(e),i=[],a=r.decr(o);a>=1;a=r.decr(a))i.push(a);return i.map(function(e){return"".concat(t.getURI(e,n)," ").concat(o/e,"x")}).join(", ")}},{key:"findNext",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,t=void 0!==e&&e;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:t}).next().value}},{key:"findPrev",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,n=void 0!==t&&t;if(0!=this.index){if(n){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var r=new e(this.book,this.index-1);return r.isViewable?r:r.findPrev({combineConsecutiveUnviewables:n})}return new e(this.book,this.index-1)}}},{key:"findLeft",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,t=void 0!==e&&e;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:t}):this.findNext({combineConsecutiveUnviewables:t})}},{key:"findRight",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,t=void 0!==e&&e;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:t}):this.findPrev({combineConsecutiveUnviewables:t})}}])}(),N=(r(8125),r(4554),r(4731),r(479),r(9696)),U=r(8900);i();var H=r(2617),W=r(7583);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function V(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return G(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(G(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,G(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,G(d,"constructor",l),G(l,"constructor",u),u.displayName="GeneratorFunction",G(l,o,"GeneratorFunction"),G(d),G(d,o,"Generator"),G(d,r,function(){return this}),G(d,"toString",function(){return"[object Generator]"}),(V=function(){return{w:i,m:f}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G=function(e,t,n,r){function i(t,n){G(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},G(e,t,n,r)}function Z(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function X(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Z(i,r,o,a,s,"next",e)}function s(e){Z(i,r,o,a,s,"throw",e)}a(void 0)})}}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ee(r.key),r)}}function J(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}var te=function(){return J(function e(t){var n=this;Y(this,e),Q(this,"scaleCenter",{x:.5,y:.5}),Q(this,"_preventEvent",function(e){return e.preventDefault(),!1}),Q(this,"_pinchStart",X(V().m(function e(){var t,r;return V().w(function(e){for(;;)switch(e.n){case 0:if(!n.pinching){e.n=1;break}return e.a(2);case 1:if(!(0,W.un)()){e.n=3;break}return e.n=2,(0,s.yy)(0);case 2:if(!(n.touchesMonitor.touches<2)){e.n=3;break}return e.a(2);case 3:n.pinching=!0,n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.mode.autoFit="none",n.detachCtrlZoom(),null===(t=(r=n.mode).detachScrollListeners)||void 0===t||t.call(r),n.interact.gesturable({listeners:{start:n._pinchStart,move:n._pinchMove,end:n._pinchEnd}});case 4:return e.a(2)}},e)}))),Q(this,"_pinchMove",function(){var e=X(V().m(function e(t){return V().w(function(e){for(;;)switch(e.n){case 0:if(n.pinching){e.n=1;break}return e.a(2);case 1:n.lastEvent={scale:t.scale,clientX:t.clientX,clientY:t.clientY},n.pinchMoveFrame||(n.pinchMoveFrame=n.bufferFn(n._drawPinchZoomFrame));case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),Q(this,"_pinchEnd",X(V().m(function e(){var t,r;return V().w(function(e){for(;;)switch(e.n){case 0:if(n.pinching){e.n=1;break}return e.a(2);case 1:return n.pinching=!1,n.interact.gesturable({listeners:{start:n._pinchStart,end:n._pinchEnd}}),e.n=2,n.pinchMoveFramePromise;case 2:n.scaleCenter={x:.5,y:.5},n.oldScale=1,n.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="auto",n.attachCtrlZoom(),null===(t=(r=n.mode).attachScrollListeners)||void 0===t||t.call(r);case 3:return e.a(2)}},e)}))),Q(this,"_drawPinchZoomFrame",X(V().m(function e(){var t,r;return V().w(function(e){for(;;)switch(e.n){case 0:if(n.pinching){e.n=1;break}return n.pinchMoveFrame=null,e.a(2);case 1:if(n.mode.$container.style.overflow="hidden",n.pinchMoveFramePromiseRes=null,n.pinchMoveFramePromise=new Promise(function(e){return n.pinchMoveFramePromiseRes=e}),n.updateScaleCenter({clientX:n.lastEvent.clientX,clientY:n.lastEvent.clientY}),t=n.mode.scale,r=t*n.lastEvent.scale/n.oldScale,t==r){e.n=2;break}return n.mode.scale=r,e.n=2,n.pinchMoveFramePromise;case 2:n.mode.$container.style.overflow="auto",n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null;case 3:return e.a(2)}},e)}))),Q(this,"_dragMove",function(){var e=X(V().m(function e(t){return V().w(function(e){for(;;)switch(e.n){case 0:if(!n.pinching){e.n=1;break}return e.n=1,n._pinchEnd();case 1:n.mode.$container.scrollTop-=t.dy,n.mode.$container.scrollLeft-=t.dx;case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),Q(this,"_handleCtrlWheel",function(e){if(e.ctrlKey){e.preventDefault();var t=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(e),n.mode.autoFit="none",n.mode.scale*=1-Math.sign(e.deltaY)*t}}),this.mode=t,this.pinching=!1,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window)},[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._pinchStart),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._pinchEnd),(0,W.un)()&&(this.touchesMonitor=new ne(this.mode.$container),this.touchesMonitor.attach()),this.mode.$container.style.touchAction="pan-x pan-y",this.interact=H(this.mode.$container),this.interact.gesturable({listeners:{start:this._pinchStart,end:this._pinchEnd}}),(0,W.ij)()&&(this.mode.$container.style.touchAction="none",this.interact.draggable({inertia:{resistance:2,minSpeed:100,allowResume:!0},listeners:{move:this._dragMove}})),this.attached=!0)}},{key:"detach",value:function(){var e,t;this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._pinchStart),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._pinchEnd),null===(e=this.touchesMonitor)||void 0===e||null===(t=e.detach)||void 0===t||t.call(e),this.interact.unset(),H.removeDocument(document),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(e){var t=e.clientX,n=e.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.scaleCenter={x:(t-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(e,t){var n,r=this.mode.$container,o=r.scrollTop,i=r.scrollLeft,a=this.mode.htmlDimensionsCacher.clientWidth,s=this.mode.htmlDimensionsCacher.clientHeight,u=e/t,l=this.scaleCenter.x,c=this.scaleCenter.y,d=u*(i+l*a),f=u*(o+c*s);r.scrollTop=f-c*s,r.scrollLeft=d-l*a,null===(n=this.pinchMoveFramePromiseRes)||void 0===n||n.call(this)}}])}(),ne=function(){return J(function e(t){var n=this;Y(this,e),Q(this,"_updateTouchCount",function(e){n.touches=e.touches.length}),this.container=t,this.touches=0},[{key:"attach",value:function(){this.container.addEventListener("touchstart",this._updateTouchCount),this.container.addEventListener("touchend",this._updateTouchCount)}},{key:"detach",value:function(){this.container.removeEventListener("touchstart",this._updateTouchCount),this.container.removeEventListener("touchend",this._updateTouchCount)}}])}();function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e){var t=function(e){if("object"!=re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==re(t)?t:t+""}var se=function(){return function(e,t){return t&&oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ie(this,"clientWidth",100),ie(this,"clientHeight",100),ie(this,"boundingClientRect",{top:0,left:0}),ie(this,"updateClientSizes",function(){var e=n.element.getBoundingClientRect();n.clientWidth=n.element.clientWidth,n.clientHeight=n.element.clientHeight,n.boundingClientRect.top=e.top,n.boundingClientRect.left=e.left}),ie(this,"debouncedUpdateClientSizes",(0,s.sg)(this.updateClientSizes,150,!1)),this.element=t},[{key:"attachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).removeEventListener("resize",this.debouncedUpdateClientSizes)}}])}();function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ce(r.key),r)}}function ce(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}var de=function(){return function(e,t){return t&&le(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"onScroll",function(){r.element.classList.add(r.className),clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.element.classList.remove(r.className)},600)}),this.element=t,this.className=n,this.timeout=null},[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])}();function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,me(r.key),r)}}function pe(e,t,n){return t&&he(e.prototype,t),n&&he(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ve(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e){var t=function(e){if("object"!=fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fe(t)?t:t+""}var ge,ye=pe(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ve(this,"screenDPI",(0,s.b_)()),ve(this,"worldUnitsToRenderedPixels",function(e){return e*n.screenDPI}),ve(this,"renderedPixelsToWorldUnits",function(e){return e/n.screenDPI}),ve(this,"renderedPixelsToVisiblePixels",function(e){return e*n.mode.scale}),ve(this,"visiblePixelsToRenderedPixels",function(e){return e/n.mode.scale}),ve(this,"worldUnitsToVisiblePixels",function(e){return n.renderedPixelsToVisiblePixels(n.worldUnitsToRenderedPixels(e))}),ve(this,"visiblePixelsToWorldUnits",function(e){return n.renderedPixelsToWorldUnits(n.visiblePixelsToRenderedPixels(e))}),this.mode=t});function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function we(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||Ie(e)||Te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Me(r.key),r)}}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}function Se(e,t){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Se(e,t)}function Pe(){Pe=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach(function(n){t.forEach(function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)},this)},this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach(function(r){t.forEach(function(t){var o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var i="static"===o?e:n;this.defineClassElement(i,t)}},this)},this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){this.addElementPlacement(e,o)},this),e.forEach(function(e){if(!Ce(e))return n.push(e);var t=this.decorateElement(e,o);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)},this),!t)return{elements:n,finishers:r};var i=this.decorateConstructor(n,t);return r.push.apply(r,i.finishers),i.finishers=r,i},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,o[i])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var l=u.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],t);n.push.apply(n,l)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==i.finisher&&n.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return function(e){return function(e){if(Array.isArray(e))return e}(e)||Ie(e)||Te(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e).map(function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t},this)},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=Me(e.key),r=e.placement+"";if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var i={kind:t,key:n,placement:r,descriptor:Object.assign({},o)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),i.initializer=e.initializer),i},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:je(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=je(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function Oe(e){var t,n=Me(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function _e(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function Ce(e){return e.decorators&&e.decorators.length}function Ee(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function je(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function Me(e){var t=function(e){if("object"!=be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==be(t)?t:t+""}function Te(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Re(e,t,n,r){var o=Le(Be(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Le(){return Le="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Be(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Le.apply(null,arguments)}function Be(e){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Be(e)}var $e=function(e,t,n){var r=Pe(),o=function(e,t){var n=function(t){function n(t,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o=function(e,t,n){return t=Be(t),function(e,t){if(t&&("object"==be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xe()?Reflect.construct(t,n||[],Be(e).constructor):t.apply(e,n))}(this,n),e(o),o.book=t,o.br=r,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}(n,t),function(e,t,n){return t&&ke(e.prototype,t),n&&ke(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n)}(t);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new ye(this)}},{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,N.MZ)({type:Array,hasChanged:s.w1})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,N.MZ)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,N.P)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var e=this.coordSpace.worldUnitsToRenderedPixels;return{width:e(this.worldDimensions.width)+"px",height:e(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,N.P)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new se(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new te(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new de(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).smooth,r=void 0!==n&&n;r&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[e]-this.SPACING_IN/2),r&&setTimeout(function(){return t.style.scrollBehavior=""},100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(e){Re(n,"firstUpdated",this,3)([e]),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e);this.scale=this.computeDefaultScale(t)}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&this.updatePages(),e.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),e.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),e.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map(function(e){return e.index}),this.br.updateFirstIndex(this.br.displayedIndices[0]))),e.has("scale")){var t=e.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,t),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,s.DT)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){Re(n,"connectedCallback",this,3)([]),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),Re(n,"disconnectedCallback",this,3)([])}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e=this;return(0,a.qy)(ge||(ge=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"])),(0,U.W)(this.worldStyle),this.renderedPages.map(function(t){return e.renderPage(t)}))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,o=e.coordSpace.visiblePixelsToWorldUnits(e.htmlDimensionsCacher.clientWidth),i=n(t.widthInches),a=n(t.heightInches),s=Math.max(e.SPACING_IN,(o-t.widthInches)/2),u=e.pageTops[t.index],l="translate(".concat(n(s),"px, ").concat(n(u),"px)"),c=e.createPageContainer(t).update({dimensions:{width:i,height:a,top:0,left:0},reduce:t.width/r(t.widthInches)}).$container[0];c.style.transform=l;var d=c.classList.contains("BRpage-visible");return c.classList.toggle("BRpage-visible",e.visiblePages.includes(t))&&!d&&e.br.trigger("pageVisible",{pageContainerEl:c}),c}}},{kind:"field",key:"updateVisibleRegion",value:function(){var e=this;return function(){var t=e.scrollTop,n=e.scrollLeft,r=e.htmlDimensionsCacher.clientWidth,o=e.htmlDimensionsCacher.clientHeight,i=e.coordSpace.visiblePixelsToWorldUnits;e.visibleRegion={top:i(t),height:i(o),left:i(n),width:i(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t;return[null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat(we(this.visiblePages),[null===(t=this.visiblePages[this.visiblePages.length-1])||void 0===t?void 0:t.next]).filter(function(e){return e}).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,s.nF)(function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()},100,null)}},{kind:"method",key:"computePageTops",value:function(e,t){var n,r={},o=t,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Te(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r[a.index]=o,o+=a.heightInches+t}}catch(e){i.e(e)}finally{i.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(e){var t=this.coordSpace.renderedPixelsToWorldUnits(this.clientWidth);return Math.min(1,t/(e.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,we(this.pages.map(function(e){return e.widthInches})))+2*this.SPACING_IN,height:(0,s.cz)(this.pages.map(function(e){return e.heightInches}))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var e=this;return this.pages.filter(function(t){var n=e.pageTops[t.index],r=n+t.heightInches,o=e.visibleRegion.top;return n<=o+e.visibleRegion.height&&r>=o})}},{kind:"field",key:"attachScrollListeners",value:function(){var e=this;return function(){e.addEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var e=this;return function(){e.removeEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.detach()}}}]}}(function(e){r.initializeInstanceElements(e,i.elements)},n),i=r.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===i.key&&e.placement===i.placement},r=0;r<e.length;r++){var o,i=e[r];if("method"===i.kind&&(o=t.find(n)))if(Ee(i.descriptor)||Ee(o.descriptor)){if(Ce(i)||Ce(o))throw new ReferenceError("Duplicated methods ("+i.key+") can't be decorated.");o.descriptor=i.descriptor}else{if(Ce(i)){if(Ce(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+i.key+").");o.decorators=i.decorators}_e(i,o)}else t.push(i)}return t}(o.d.map(Oe)),e);return r.initializeClassElements(o.F,i.elements),r.runClassFinishers(o.F,i.finishers)}([(0,N.EM)("br-mode-1up")],0,a.WF),De=r(1669);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ue(r.key),r)}}function Ne(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e){var t=function(e){if("object"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}function He(e,t){return e.split(" ").map(function(e){return e+t}).join(" ")}function We(e){var t,n;return void 0!==e.clientX?(t=e.clientX,n=e.clientY):void 0!==e.screenX?(t=e.screenX,n=e.screenY):void 0!==e.targetTouches?(t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY):void 0===e.originalEvent?console.error("don't understand x and y for "+e.type,e):void 0!==e.originalEvent.clientX?(t=e.originalEvent.clientX,n=e.originalEvent.clientY):void 0!==e.originalEvent.screenX?(t=e.originalEvent.screenX,n=e.originalEvent.screenY):void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches[0].pageX,n=e.originalEvent.targetTouches[0].pageY),{left:t,top:n}}var qe={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Ve=function(){return function(e,t){return t&&Fe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,"_dragStartHandler",function(e){return!!n._shouldAbort()||!(e.which>1||!n.settings.acceptPropagatedEvent&&e.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=We(e),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach(function(e){n.handling_element[0].addEventListener(e,n._dragEndHandler,!0)}),n.settings.preventDefault?(e.preventDefault(),!1):void 0)}),Ne(this,"_dragContinueHandler",function(e){if(n._shouldAbort())return!0;var t=We(e),r=t.left-n.lastCoord.left,o=t.top-n.lastCoord.top,i=n.settings.scrollWindow?De(window):n.handling_element;return i.scrollLeft(i.scrollLeft()-r),i.scrollTop(i.scrollTop()-o),n.lastCoord=t,n.settings.preventDefault?(e.preventDefault(),!1):void 0}),Ne(this,"_dragEndHandler",function(e){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach(function(e){n.handling_element[0].removeEventListener(e,n._dragEndHandler,!0)});var t={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(t.left,t.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1):void 0}),this.handling_element=De(t),this.settings=De.extend({},qe,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=He(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=He(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)},[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])}();function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ye(r.key),r)}}function Xe(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=function(e){if("object"!=Ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ge(t)?t:t+""}var Ke=function(){return function(e,t){return t&&Ze(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xe(this,"br",void 0),Xe(this,"book",void 0)},[{key:"parsePageSpecifier",value:function(e){var t="rl"==this.book.pageProgression;switch(e){case"left":return t?this.parsePageSpecifier("next"):this.parsePageSpecifier("prev");case"right":return t?this.parsePageSpecifier("prev"):this.parsePageSpecifier("next");case"next":return this.br.firstIndex<this.book.getNumLeafs()-1?this.book.getPage(this.br.firstIndex+1):void 0;case"prev":return this.br.firstIndex>=1?this.book.getPage(this.br.firstIndex-1):void 0;default:return this.book.getPage(e)}}}])}(),Je=r(1669);function Qe(e){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(e)}function et(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return tt(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(tt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,tt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,tt(d,"constructor",l),tt(l,"constructor",u),u.displayName="GeneratorFunction",tt(l,o,"GeneratorFunction"),tt(d),tt(d,o,"Generator"),tt(d,r,function(){return this}),tt(d,"toString",function(){return"[object Generator]"}),(et=function(){return{w:i,m:f}})()}function tt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tt=function(e,t,n,r){function i(t,n){tt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},tt(e,t,n,r)}function nt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function rt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){nt(i,r,o,a,s,"next",e)}function s(e){nt(i,r,o,a,s,"throw",e)}a(void 0)})}}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ut(r.key),r)}}function it(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(it=function(){return!!e})()}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function st(e,t){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},st(e,t)}function ut(e){var t=function(e){if("object"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}var lt,ct,dt,ft,ht,pt,vt,mt,gt=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(t=ut(t))in e?Object.defineProperty(e,t,{value:"1up",enumerable:!0,configurable:!0,writable:!0}):e[t]="1up"}(r=function(e,t,n){return t=at(t),function(e,t){if(t&&("object"==Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,it()?Reflect.construct(t,n||[],at(e).constructor):t.apply(e,n))}(this,t),"name"),r.br=e,r.book=n,r.mode1UpLit=new $e(n,e),r.$el=Je(r.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),r.everShown=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}(t,e),function(e,t){return t&&ot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(rt(et().m(function n(){return et().w(function(n){for(;;)switch(n.n){case 0:if(e.everShown){n.n=2;break}return e.mode1UpLit.initFirstRender(t),e.everShown=!0,e.mode1UpLit.requestUpdate(),n.n=1,e.mode1UpLit.updateComplete;case 1:new Ve(e.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 2:e.mode1UpLit.jumpToIndex(t),setTimeout(function(){e.mode1UpLit.updateVisibleRegion()});case 3:return n.a(2)}},n)}))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t.pageX,t.pageY,t.noAnimate),r=void 0!==n&&n,o=Math.abs(this.br.currentIndex()-e),i=!r&&o>0&&o<=4;this.mode1UpLit.jumpToIndex(e,{smooth:i})}},{key:"zoom",value:function(e){switch(e){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])}(Ke),yt=r(1669);function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function wt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return xt(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(xt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,xt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,xt(d,"constructor",l),xt(l,"constructor",u),u.displayName="GeneratorFunction",xt(l,o,"GeneratorFunction"),xt(d),xt(d,o,"Generator"),xt(d,r,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(kt=function(){return{w:i,m:f}})()}function xt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xt=function(e,t,n,r){function i(t,n){xt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xt(e,t,n,r)}function St(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Pt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){St(i,r,o,a,s,"next",e)}function s(e){St(i,r,o,a,s,"throw",e)}a(void 0)})}}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zt(r.key),r)}}function _t(e,t,n){return t&&Ot(e.prototype,t),n&&Ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t,n){return t=qt(t),function(e,t){if(t&&("object"==bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jt()?Reflect.construct(t,n||[],qt(e).constructor):t.apply(e,n))}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jt=function(){return!!e})()}function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function At(e,t,n,r){var o=It();if(r)for(var i=0;i<r.length;i++)o=r[i](o);var a=t(function(e){o.initializeInstanceElements(e,s.elements)},n),s=o.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===i.key&&e.placement===i.placement},r=0;r<e.length;r++){var o,i=e[r];if("method"===i.kind&&(o=t.find(n)))if($t(i.descriptor)||$t(o.descriptor)){if(Bt(i)||Bt(o))throw new ReferenceError("Duplicated methods ("+i.key+") can't be decorated.");o.descriptor=i.descriptor}else{if(Bt(i)){if(Bt(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+i.key+").");o.decorators=i.decorators}Lt(i,o)}else t.push(i)}return t}(a.d.map(Rt)),e);return o.initializeClassElements(a.F,s.elements),o.runClassFinishers(a.F,s.finishers)}function It(){It=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach(function(n){t.forEach(function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)},this)},this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach(function(r){t.forEach(function(t){var o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var i="static"===o?e:n;this.defineClassElement(i,t)}},this)},this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){this.addElementPlacement(e,o)},this),e.forEach(function(e){if(!Bt(e))return n.push(e);var t=this.decorateElement(e,o);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)},this),!t)return{elements:n,finishers:r};var i=this.decorateConstructor(n,t);return r.push.apply(r,i.finishers),i.finishers=r,i},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,o[i])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var l=u.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],t);n.push.apply(n,l)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==i.finisher&&n.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return function(e){return function(e){if(Array.isArray(e))return e}(e)||Ut(e)||Ft(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e).map(function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t},this)},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=zt(e.key),r=e.placement+"";if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var i={kind:t,key:n,placement:r,descriptor:Object.assign({},o)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),i.initializer=e.initializer),i},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:Dt(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=Dt(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function Rt(e){var t,n=zt(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function Lt(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function Bt(e){return e.decorators&&e.decorators.length}function $t(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function Dt(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function zt(e){var t=function(e){if("object"!=bt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bt(t)?t:t+""}function Ft(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ut(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ht(e,t,n,r){var o=Wt(qt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Wt(){return Wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=qt(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wt.apply(null,arguments)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}var Vt=At([(0,N.EM)("br-mode-2up")],function(e,t){var n,r,o=function(t){function n(t,r){var o;return Ct(this,n),o=Et(this,n),e(o),o.book=t,o.br=r,o}return Mt(n,t),_t(n)}(t);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new ye(this)}},{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,N.MZ)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,N.P)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Array,hasChanged:s.w1})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find(function(e){return"L"==e.pageSide})}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find(function(e){return"R"==e.pageSide})}},{kind:"field",decorators:[(0,N.MZ)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",key:"activeFlip",value:function(){return null}},{kind:"field",key:"_leftCoverWidth",value:function(){return 0}},{kind:"get",key:"$container",value:function(){return this}},{kind:"get",key:"$visibleWorld",value:function(){return this.$book}},{kind:"field",decorators:[(0,N.P)(".br-mode-2up__book")],key:"$book",value:void 0},{kind:"get",key:"positions",value:function(){return this.computePositions(this.pageLeft,this.pageRight)}},{kind:"method",key:"computePageHeight",value:function(e){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(e){return e.widthInches*this.computePageHeight(e)/e.heightInches}},{kind:"method",key:"computePositions",value:function(e,t){var n,r,o,i,a=this.computePageWidth.bind(this),s=this.book.getNumLeafs(),u=this.activeFlip?Math.ceil(this.activeFlip.pagesFlippingCount/2)*this.PAGE_THICKNESS_IN:0,l="lr"==this.book.pageProgression?null!==(n=null==e?void 0:e.index)&&void 0!==n?n:0:e?s-e.index:0,c=this._leftCoverWidth+l*this.PAGE_THICKNESS_IN,d=c,f=a(e||t.right),h=c-f,p=h,v="left"!=(null===(r=this.activeFlip)||void 0===r?void 0:r.direction)?0:u,m=Math.ceil(l/2)*this.PAGE_THICKNESS_IN-v,g=v+m,y=p-v,b=y-m,w=c,k=t?a(t):0,x=w+k,S="lr"==this.book.pageProgression?t?s-t.index:0:null!==(o=null==t?void 0:t.index)&&void 0!==o?o:0,P=x,O="right"!=(null===(i=this.activeFlip)||void 0===i?void 0:i.direction)?0:u,_=P+O,C=Math.ceil(S/2)*this.PAGE_THICKNESS_IN-O,E=P+C+O;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:m,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:p,leafEdgesLeftFullWidth:g,pageLeftStart:h,pageLeftWidth:f,pageLeftEnd:d,gutter:c,pageRightStart:w,pageRightWidth:k,pageRightEnd:x,leafEdgesRightStart:P,leafEdgesRightMovingWidth:O,leafEdgesRightMainStart:_,leafEdgesRightMainWidth:C,leafEdgesRightEnd:E,leafEdgesRightFullWidth:O+C,spreadWidth:x-h,bookWidth:E-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new se(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new te(this)}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"field",key:"PAGE_THICKNESS_IN",value:function(){return.002}},{kind:"method",key:"jumpToIndex",value:(r=Pt(kt().m(function e(t){var n,r,o=arguments;return kt().w(function(e){for(;;)switch(e.n){case 0:return n=(o.length>1&&void 0!==o[1]?o[1]:{}).smooth,r=void 0===n||n,e.n=1,this._flipAnimation(t,{animate:r});case 1:return e.a(2)}},e,this)})),function(e){return r.apply(this,arguments)})},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(e){Ht(o,"firstUpdated",this,3)([e]),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){Ht(o,"connectedCallback",this,3)([]),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),Ht(o,"disconnectedCallback",this,3)([])}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),e.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map(function(e){return e.index}),this.br.updateFirstIndex(this.br.displayedIndices[0])),e.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),e.has("scale")){var t=e.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,t)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e=this;return(0,a.qy)(lt||(lt=wt(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map(function(t){return e.renderPage(t)}),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e),n=t.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter(function(e){return e}),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(t),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,o=n(e.computePageWidth(t)),i=n(e.computePageHeight(t)),a=e.visiblePages.map(function(e){return e.index}).includes(t.index),s=e.computePositions(t.spread.left,t.spread.right),u=e.createPageContainer(t).update({dimensions:{width:o,height:i,top:0,left:n("L"==t.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:t.width/r(e.computePageWidth(t))}).$container[0],l=u.classList.contains("BRpage-visible");return u.classList.toggle("BRpage-visible",a)&&!l&&e.br.trigger("pageVisible",{pageContainerEl:u}),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var e=this;return function(t){var n;if(!e.visiblePages.length)return(0,a.qy)(ct||(ct=wt([""])));if(!("left"==t?e.positions.leafEdgesLeftFullWidth:e.positions.leafEdgesRightFullWidth))return(0,a.qy)(dt||(dt=wt([""])));var r=e.coordSpace.worldUnitsToRenderedPixels,o=r(e.computePageHeight(e.visiblePages[0])),i=(null===(n=e.activeFlip)||void 0===n?void 0:n.direction)==t,s=e.book.getPage("lr"==e.book.pageProgression?0:e.book.getNumLeafs()-1),u=e.book.getPage("lr"==e.book.pageProgression?e.book.getNumLeafs()-1:0),l=i?e.activeFlip.pagesFlippingCount:0,c="left"==t?[s.index,e.pageLeft.goLeft(l).index]:[e.pageRight.goRight(l).index,u.index],d={width:"".concat(r("left"==t?e.positions.leafEdgesLeftMainWidth:e.positions.leafEdgesRightMainWidth),"px"),height:"".concat(o,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftStart:e.positions.leafEdgesRightMainStart),"px")},f=(0,a.qy)(ft||(ft=wt(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n .pageClickHandler=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--','"\n style=',"\n ></br-leaf-edges>\n "])),c[0],c[1],e.book,function(t){return e.br.jumpToIndex(t,{ariaLive:!0})},t,t,(0,U.W)(d));if(i){var h=r("left"==t?e.positions.leafEdgesLeftMovingWidth:e.positions.leafEdgesRightMovingWidth),p={width:"".concat(h,"px"),height:"".concat(o,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftMovingStart:e.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==t?e.positions.pageLeftWidth:-e.positions.pageRightWidth)+h/2,"px 0")},v=(0,a.qy)(ht||(ht=wt(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--',' br-mode-2up__leafs--flipping"\n style=',"\n ></br-leaf-edges>\n "])),e.activeFlip.pagesFlipping[0],e.activeFlip.pagesFlipping[1],e.book,t,t,(0,U.W)(p));return"left"==t?(0,a.qy)(pt||(pt=wt(["","",""])),f,v):(0,a.qy)(vt||(vt=wt(["","",""])),v,f)}return f}}},{kind:"method",key:"resizeViaAutofit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(e,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],t=this.computeTranslate(e,this.scale);this.$book.style.transform="translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t,n,r;return[null===(e=this.visiblePages[0])||void 0===e||null===(e=e.prev)||void 0===e?void 0:e.prev,null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(function(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||Ut(e)||Ft(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.visiblePages),[null===(n=this.visiblePages[this.visiblePages.length-1])||void 0===n?void 0:n.next,null===(r=this.visiblePages[this.visiblePages.length-1])||void 0===r||null===(r=r.next)||void 0===r?void 0:r.next]).filter(function(e){return e}).slice(0,10)}},{kind:"method",key:"computeScale",value:function(e,t){if(!e)return 1;var n=e.spread,r=this.computePositions(n.left,n.right).bookWidth,o=this.computePageHeight(n.left||n.right),i=this.scale;this.scale=1;var a=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth-20)/r,s=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientHeight-20)/o;this.scale=i;var u=1;if("width"==t)u=a;else if("height"==t)u=s;else if("auto"==t)u=Math.min(a,s);else{if("none"!=t)throw new Error("Invalid autoFit value: ".concat(t));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!e)return{x:0,y:0};var n=e.spread,r=this.computePositions(n.left,n.right),o=r.bookWidth,i=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(o)*t,s=this.coordSpace.worldUnitsToRenderedPixels(i)*t,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*t,l=(this.htmlDimensionsCacher.clientWidth-a)/2+u,c=(this.htmlDimensionsCacher.clientHeight-s)/2;return{x:Math.max(u,l),y:Math.max(0,c)}}},{kind:"method",key:"_flipAnimation",value:(n=Pt(kt().m(function e(t){var n,r,o,i,a,u,l,c,d,f,h,p,v,m,g,y,b,w,k,x,S,P,O,_,C,E,j,M,T,A,I,R,L=this,B=arguments;return kt().w(function(e){for(;;)switch(e.n){case 0:if(l=(u=B.length>1&&void 0!==B[1]?B[1]:{}).animate,c=void 0===l||l,d=u.flipSpeed,f=void 0===d?this.flipSpeed:d,h=null===(n=this.pageLeft||this.pageRight)||void 0===n?void 0:n.spread){e.n=1;break}return e.a(2);case 1:if(f=f||this.flipSpeed,t=this.parseNextSpread(t),!this.activeFlip&&t){e.n=2;break}return e.a(2);case 2:if(p=this.book.pageProgression,v=null!==(r=null===(o=h.left)||void 0===o?void 0:o.index)&&void 0!==r?r:"lr"==p?-1:this.book.getNumLeafs(),m=null!==(i=null===(a=t.left)||void 0===a?void 0:a.index)&&void 0!==i?i:"lr"==p?-1:this.book.getNumLeafs(),v!=m){e.n=3;break}return e.a(2);case 3:g=this.renderedPages.map(function(e){return e.index}),y=[],b=0,w=[t.left,t.right];case 4:if(!(b<w.length)){e.n=7;break}if(k=w[b]){e.n=5;break}return e.a(3,6);case 5:y.push(this.createPageContainer(k)),g.includes(k.index)||this.renderedPages.push(k);case 6:b++,e.n=4;break;case 7:if(x=this.computeTranslate(h.left||h.right,this.scale),S=this.computeTranslate(t.left||t.right,this.scale),P=Math.sqrt(Math.pow(S.x-x.x,2)+Math.pow(S.y-x.y,2)),O="translate(".concat(S.x,"px, ").concat(S.y,"px)"),P<50&&(C=null===(_=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===_?void 0:_[0])&&(O=C),E="".concat(O," scale(").concat(this.scale,")"),!c||!("animate"in Element.prototype)){e.n=10;break}return j="lr"==p?m>v?"right":"left":m>v?"left":"right",this.activeFlip={direction:j,pagesFlipping:[v,m],pagesFlippingCount:Math.abs(m-v)},this.classList.add("br-mode-2up--flipping-".concat(j)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.n=8,this.updateComplete;case 8:return this.visiblePages.map(function(e){return L.pageContainerCache[e.index].$container}).forEach(function(e){return e.addClass("BRpage-exiting")}),y.forEach(function(e){return e.$container.addClass("BRpage-entering")}),M={duration:f+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},T=this.$book.animate([{transform:E}],M),A=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==j?"rotateY(-180deg)":"rotateY(180deg)"}],M),I="left"==j?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],M):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],M),R="left"==j?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],M):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],M),T.play(),A.play(),I.play(),R.play(),y.forEach(function(e){return e.$container.addClass("BRpage-visible")}),e.n=9,Promise.race([(0,s.Fg)(T,"finish"),(0,s.Fg)(A,"finish"),(0,s.Fg)(I,"finish"),(0,s.Fg)(R,"finish")]);case 9:this.classList.remove("br-mode-2up--flipping-".concat(j)),this.classList.remove("BRpageFlipping"),this.visiblePages.map(function(e){return L.pageContainerCache[e.index].$container}).forEach(function(e){return e.removeClass("BRpage-exiting BRpage-visible")}),y.forEach(function(e){return e.$container.removeClass("BRpage-entering")}),this.activeFlip=null;case 10:this.$book.style.transform=E,this.visiblePages=("lr"==p?[t.left,t.right]:[t.right,t.left]).filter(function(e){return e}),y.forEach(function(e){L.br.trigger("pageVisible",{pageContainerEl:e.$container[0]})});case 11:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(e){"next"==e?e="lr"==this.book.pageProgression?"right":"left":"prev"==e&&(e="lr"==this.book.pageProgression?"left":"right");var t,n=this.book.getPage(this.br.currentIndex()).spread;if("left"==e)e=null===(t=n.left)||void 0===t||null===(t=t.findLeft({combineConsecutiveUnviewables:!0}))||void 0===t?void 0:t.spread;else if("right"==e){var r;e=null===(r=n.right)||void 0===r||null===(r=r.findRight({combineConsecutiveUnviewables:!0}))||void 0===r?void 0:r.spread}return"number"==typeof e&&(e=this.book.getPage(e).spread),e instanceof F&&(e=e.spread),e}},{kind:"field",key:"handlePageClick",value:function(){var e=this;return function(t){if(3==t.which&&e.br.protected)return!1;if(1==t.which){var n=yt(t.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?e.br.left():"R"==n.data("side")&&e.br.right())}}}}]}},a.WF),Gt=(At([(0,N.EM)("br-leaf-edges")],function(e,t){var n=function(t){function n(){var t;Ct(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=Et(this,n,[].concat(o)),e(t),t}return Mt(n,t),_t(n)}(t);return{F:n,d:[{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,N.MZ)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,N.MZ)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,N.MZ)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,N.P)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,N.P)(".br-leaf-edges__label")],key:"$hoverLabel",value:void 0},{kind:"get",key:"pageWidthPercent",value:function(){return 100/(this.rightIndex-this.leftIndex+1)}},{kind:"method",key:"render",value:function(){return(0,a.qy)(mt||(mt=wt(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),(0,U.W)({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){Ht(n,"connectedCallback",this,3)([]),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave),this.addEventListener("click",this.onClick)}},{kind:"method",key:"disconnectedCallback",value:function(){Ht(n,"disconnectedCallback",this,3)([]),this.addEventListener("mouseenter",this.onMouseEnter),this.removeEventListener("mousemove",this.onMouseMove),this.removeEventListener("mouseleave",this.onMouseLeave)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"onMouseEnter",value:function(){var e=this;return function(t){e.addEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="block",e.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var e=this;return function(t){e.$hoverBar.style.left="".concat(t.offsetX,"px"),"right"==e.side?e.$hoverLabel.style.left="".concat(t.offsetX,"px"):e.$hoverLabel.style.right="".concat(e.offsetWidth-t.offsetX,"px"),e.$hoverLabel.style.top="".concat(t.offsetY,"px");var n=e.mouseEventToPageIndex(t);e.$hoverLabel.textContent=e.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var e=this;return function(t){e.removeEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="none",e.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var e=this;return function(t){e.pageClickHandler(e.mouseEventToPageIndex(t))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(e){return Math.floor(this.leftIndex+e.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}},a.WF),r(1669));function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function Xt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return Yt(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Yt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Yt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,Yt(d,"constructor",l),Yt(l,"constructor",u),u.displayName="GeneratorFunction",Yt(l,o,"GeneratorFunction"),Yt(d),Yt(d,o,"Generator"),Yt(d,r,function(){return this}),Yt(d,"toString",function(){return"[object Generator]"}),(Xt=function(){return{w:i,m:f}})()}function Yt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Yt=function(e,t,n,r){function i(t,n){Yt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Yt(e,t,n,r)}function Kt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Jt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Kt(i,r,o,a,s,"next",e)}function s(e){Kt(i,r,o,a,s,"throw",e)}a(void 0)})}}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rn(r.key),r)}}function en(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(en=function(){return!!e})()}function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tn(e)}function nn(e,t){return nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nn(e,t)}function rn(e){var t=function(e){if("object"!=Zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zt(t)?t:t+""}var on=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(t=rn(t))in e?Object.defineProperty(e,t,{value:"2up",enumerable:!0,configurable:!0,writable:!0}):e[t]="2up"}(r=function(e,t,n){return t=tn(t),function(e,t){if(t&&("object"==Zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,en()?Reflect.construct(t,n||[],tn(e).constructor):t.apply(e,n))}(this,t),"name"),r.br=e,r.book=n,r.mode2UpLit=new Vt(n,e),r.mode2UpLit.flipSpeed=e.flipSpeed,r.$el=Gt(r.mode2UpLit).attr("autoFit",r.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),r.everShown=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(t,e),function(e,t){return t&&Qt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(Jt(Xt().m(function n(){return Xt().w(function(n){for(;;)switch(n.n){case 0:if(e.everShown){n.n=2;break}return e.mode2UpLit.initFirstRender(t),e.everShown=!0,e.mode2UpLit.requestUpdate(),n.n=1,e.mode2UpLit.updateComplete;case 1:new Ve(e.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.n=4;break;case 2:return n.n=3,e.mode2UpLit.jumpToIndex(t,{smooth:!1});case 3:e.resizePageView();case 4:e.mode2UpLit.style.opacity="1";case 5:return n.a(2)}},n)}))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.pageX,t.pageY,t.noAnimate,this.mode2UpLit.jumpToIndex(e)}},{key:"parsePageSpecifier",value:function(e){var t,n,r="rl"==this.book.pageProgression,o=this.mode2UpLit.parseNextSpread(e),i=null!==(t=null==o||null===(n=o.left)||void 0===n?void 0:n.index)&&void 0!==t?t:r?-1:this.book.getNumLeafs();return this.book.getPage(i)}},{key:"zoom",value:function(e){switch(e){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{key:"resizePageView",value:function(){this.mode2UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode2UpLit.scale<this.mode2UpLit.initialScale&&"none"==this.mode2UpLit.autoFit&&(this.mode2UpLit.autoFit="auto"),"none"!=this.mode2UpLit.autoFit&&this.mode2UpLit.resizeViaAutofit(),this.mode2UpLit.recenter()}}])}(Ke),an=r(1669);function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function un(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ln(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pn(r.key),r)}}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dn=function(){return!!e})()}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fn(e)}function hn(e,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hn(e,t)}function pn(e){var t=function(e){if("object"!=sn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sn(t)?t:t+""}var vn=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r=function(e,t,n){return t=fn(t),function(e,t){if(t&&("object"==sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dn()?Reflect.construct(t,n||[],fn(e).constructor):t.apply(e,n))}(this,t),"name","thumb"),r.br=e,r.book=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hn(e,t)}(t,e),function(e,t){return t&&cn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"drawLeafs",value:function(e){var t,n,r,o=this,i=Math.floor,a=this.book,u=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,d=0,f=0,h=0,p=0,v=[],m=un(a.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(m.s();!(r=m.n()).done;){var g=r.value,y=this.br.thumbWidth;l+(y+this.br.thumbPadding)>u&&(h++,l=0,p=0),v[h]||(v[h]={}),v[h].leafs||(v[h].leafs=[],v[h].height=0,v[h].top=0),v[h].leafs[p]={num:g.index,left:l},(t=i(g.height*this.br.thumbWidth/g.width))>v[h].height&&(v[h].height=t),0===p&&(d+=this.br.thumbPadding+v[h].height),(l+=y+this.br.thumbPadding)>f&&(f=l),p++,g.index==e&&(n=d-this.br.thumbPadding-v[h].height)}}catch(e){m.e(e)}finally{m.f()}this.br.refs.$brPageViewEl.height(d);var b=i((this.br.refs.$brContainer.prop("scrollWidth")-f)/2)-14;void 0!==n&&this.br.refs.$brContainer.scrollTop(n);for(var w=this.br.refs.$brContainer.prop("scrollTop"),k=w+this.br.refs.$brContainer.height(),x=0,S=0,P=[],O=[],_=a.getNumLeafs()-1,C=0,E=0;E<v.length;E++)v[E]&&(S+=this.br.thumbPadding+v[E].height,(x>=w&&x<=k||S>=w&&S<=k||x<=w&&S>=k)&&(P.push(E),v[E].leafs[0].num<_&&(_=v[E].leafs[0].num),v[E].leafs[v[E].leafs.length-1].num>C&&(C=v[E].leafs[v[E].leafs.length-1].num)),x>v[E].top&&(v[E].top=x),x=S);for(var j=P[0],M=P[P.length-1],T=1;T<this.br.thumbRowBuffer+1;T++)M+T<v.length&&P.push(M+T);for(var A=1;A<this.br.thumbRowBuffer;A++)j-A>=0&&P.push(j-A);P.sort(function(e,t){return e-t});for(var I=0,R=P;I<R.length;I++){var L=R[I];if((0,s.KL)(L,this.br.displayedRows)){if(!v[L])continue;var B,$=un(v[L].leafs);try{var D=function(){var e=B.value,t=e.num,n=e.left,r=o.br.thumbWidth,s=i(a.getPageHeight(t)*o.br.thumbWidth/a.getPageWidth(t)),l=v[L].top,d=n+b;"rl"==o.br.pageProgression&&(d=u-r-d),d+=o.br.thumbPadding,O.push(t);var f=i(a.getPageWidth(t)/o.br.thumbWidth),h=2*Math.round(f/2),p=o.br._createPageContainer(t).update({dimensions:{width:r,height:s,top:l,left:d},reduce:h});p.$container.data("leaf",t).on("mouseup",function(e){o.br.updateFirstIndex(t,{suppressFragmentChange:!0}),o.br.switchMode(o.br.constMode1up,{suppressFragmentChange:!0});var n=o.br.viewModeOrder.shift();o.br.viewModeOrder.push(n),o.br._components.navbar.updateViewModeButton(an(".viewmode"),"twopg","Two-page view"),o.br.trigger(c.q.fragmentChange),e.stopPropagation()}),o.br.refs.$brPageViewEl.append(p.$container)};for($.s();!(B=$.n()).done;)D()}catch(e){$.e(e)}finally{$.f()}}}var z,F=un(this.br.displayedRows);try{for(F.s();!(z=F.n()).done;){var N=z.value;if((0,s.KL)(N,P)){var U,H,W=un(null===(U=v[N])||void 0===U?void 0:U.leafs);try{for(W.s();!(H=W.n()).done;){var q,V=H.value.num;null!=O&&O.includes(V)||null===(q=this.br.$(".pagediv".concat(V)))||void 0===q||q.remove()}}catch(e){W.e(e)}finally{W.f()}}}}catch(e){F.e(e)}finally{F.f()}var G=this.br.currentIndex();G<_?this.br.updateFirstIndex(_):G>C&&this.br.updateFirstIndex(C),this.br.displayedRows=P.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(e){var t=an(e).data("leaf"),n=an(e).data("reduce"),r=this.br.imageCache.image(t,n),o=an(e).parent();an(o).append(r),an(e).remove()}},{key:"zoom",value:function(e){var t=this.br.thumbColumns;switch(e){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(e))}this.br.thumbColumns=(0,s.qE)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=t&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(e){var t=(e+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-t)/(e+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=an("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Ve(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(n.pageX,n.pageY,n.noAnimate,Math.floor),o=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,a=this.br.thumbWidth,s=0,u=0,l=0,c=0,d=0,f=0;f<=e;f++){u+(a+this.br.thumbPadding)>i&&(u=0,c=0,d=0);var h=r(o.getPageHeight(d)*this.br.thumbWidth/o.getPageWidth(d));h>c&&(c=h),0==d&&(s=l,l+=this.br.thumbPadding+c),u+=a+this.br.thumbPadding,d++}this.br.updateFirstIndex(e),this.br.refs.$brContainer.prop("scrollTop")==s?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:s},"fast",function(){t.br.animating=!1}))}}])}(Ke);o();var mn={floor:Math.floor,decr:function(e){return e-1}},gn={floor:function(e){return Math.pow(2,Math.floor(Math.log2(Math.max(1,e))))},decr:function(e){return Math.pow(2,Math.log2(e)-1)}},yn={pow2:gn,integer:mn},bn=r(1669);function wn(e){return wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wn(e)}function kn(e){return function(e){if(Array.isArray(e))return xn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pn(r.key),r)}}function Pn(e){var t=function(e){if("object"!=wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wn(t)?t:t+""}var On=function(){return function(e,t){return t&&Sn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,o=void 0!==r&&r,i=n.reduceSet,a=void 0===i?gn:i,s=n.renderPageURI,u=void 0===s?k.renderPageURI:s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.book=t,this.useSrcSet=o,this.reduceSet=a,this.renderPageURI=u,this.cache={},this.defaultScale=8},[{key:"image",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getFinalReduce(e,t);return this._serveImageElement(e,r,n)}},{key:"getFinalReduce",value:function(e,t){var n=(this.cache[e]||[]).filter(function(e){return e.loaded&&e.reduce<=t});return n.length?Math.max.apply(Math,kn(n.map(function(e){return e.reduce}))):this.reduceSet.floor(t)}},{key:"imageLoaded",value:function(e,t){var n,r,o=null===(n=this.cache[e])||void 0===n?void 0:n.find(function(e){return e.reduce<=t});return null!==(r=null==o?void 0:o.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(t=this.cache[e])||void 0===t?void 0:t.filter(function(e){return e.loaded}))||[];if(!r.length)return null;var o=r.filter(function(e){return e.reduce>=n});if(o.length)return Math.min.apply(Math,kn(o.map(function(e){return e.reduce})));var i=r.filter(function(e){return e.reduce<n});return Math.max.apply(Math,kn(i.map(function(e){return e.reduce})))}},{key:"_serveImageElement",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null===(n=this.cache[e])||void 0===n?void 0:n.find(function(e){return e.reduce==t});o||(o={reduce:t,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(o));var i=this.book.getPage(e),a=i.getURI(t,0),s=bn(r||document.createElement("img")).addClass("BRpageimage").attr("alt","Book page image").data("reduce",t).data("src",a);return this.renderPageURI(s[0],a),this.useSrcSet&&s.attr("srcset",i.getURISrcSet(t)),o.loaded||s.one("load",function(){return o.loaded=!0}),s}}])}(),_n=r(4907),Cn=r(1669);function En(e){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(e)}function jn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Dn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Mn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return Tn(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Tn(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tn(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,Tn(d,"constructor",l),Tn(l,"constructor",u),u.displayName="GeneratorFunction",Tn(l,o,"GeneratorFunction"),Tn(d),Tn(d,o,"Generator"),Tn(d,r,function(){return this}),Tn(d,"toString",function(){return"[object Generator]"}),(Mn=function(){return{w:i,m:f}})()}function Tn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tn=function(e,t,n,r){function i(t,n){Tn(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Tn(e,t,n,r)}function An(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function In(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){An(i,r,o,a,s,"next",e)}function s(e){An(i,r,o,a,s,"throw",e)}a(void 0)})}}function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach(function(t){Bn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bn(e,t,n){return(t=function(e){var t=function(e){if("object"!=En(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=En(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==En(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||Dn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(e,t){if(e){if("string"==typeof e)return zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fn.extendOptions({},Fn.defaultOptions,e,Fn.optionOverrides);this.setup(t)}function Nn(e,t,n){var r,o,i,a,s,u,l,c;o=n,i=function(e){return e.br},a=Fn,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,u=function(e){return e._overrideable[t]},l=(r=e).prototype[o],c=function(){return l.apply(u(this),arguments)},Object.defineProperty(a.prototype,s,{get:function(){return c},set:function(e){r.prototype[o]=function(){var t=this instanceof r?i(this):this;return e.apply(t,arguments)},c=e}})}Fn.extendOptions=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<=1)return t[0];for(var r=["onePage","twoPage","vars"],o=["plugins","controls"],i=t.shift(),a=0,s=t;a<s.length;a++)for(var u=s[a],l=0,c=Object.entries(u);l<c.length;l++){var d=$n(c[l],2),f=d[0],h=d[1];if(r.includes(f))i[f]||(i[f]={}),i[f]=Object.assign(i[f],h);else if(o.includes(f)){i[f]||(i[f]={});for(var p=0,v=Object.entries(h);p<v.length;p++){var m,g=$n(v[p],2),y=g[0],b=g[1];(m=i[f])[y]||(m[y]={}),Object.assign(i[f][y],b)}}else i[f]=h}return i},Fn.version="5.0.0-120",Fn.constMode1up=1,Fn.constMode2up=2,Fn.constModeThumb=3,Fn.PLUGINS={archiveAnalytics:null,autoplay:null,chapters:null,experiments:null,iframe:null,resume:null,search:null,textSelection:null,translate:null,tts:null},Fn.registerPlugin=function(e,t){Fn.PLUGINS[e]&&console.warn("Plugin ".concat(e," already registered. Overwriting.")),Fn.PLUGINS[e]=t},Fn.imageCache=null,Fn.constNavAnimationDuration=300,Fn.constResizeAnimationDuration=100,Fn.eventNames=c.q,Fn.defaultOptions=k,Fn.optionOverrides=Fn.optionOverrides||{},Fn.prototype.setup=function(e){var t;this.options=e,this.shell,this.bookId=e.bookId,this.server=e.server,this.subPrefix=e.subPrefix,this.bookPath=e.bookPath,this.targetTextFragment=null,this.plugins={archiveAnalytics:Fn.PLUGINS.archiveAnalytics?new Fn.PLUGINS.archiveAnalytics(this):null,autoplay:Fn.PLUGINS.autoplay?new Fn.PLUGINS.autoplay(this):null,chapters:Fn.PLUGINS.chapters?new Fn.PLUGINS.chapters(this):null,experiments:Fn.PLUGINS.experiments?new Fn.PLUGINS.experiments(this):null,iframe:Fn.PLUGINS.iframe?new Fn.PLUGINS.iframe(this):null,search:Fn.PLUGINS.search?new Fn.PLUGINS.search(this):null,resume:Fn.PLUGINS.resume?new Fn.PLUGINS.resume(this):null,textSelection:Fn.PLUGINS.textSelection?new Fn.PLUGINS.textSelection(this):null,translate:Fn.PLUGINS.translate?new Fn.PLUGINS.translate(this):null,tts:Fn.PLUGINS.tts?new Fn.PLUGINS.tts(this):null};for(var n=0,r=Object.entries(this.plugins);n<r.length;n++){var o=$n(r[n],2),i=o[0];o[1]||delete this.plugins[i]}for(var a=0,u=Object.entries(Fn.PLUGINS);a<u.length;a++){var l=$n(u[a],2),c=l[0],d=l[1];!this.plugins[c]&&d&&(this.plugins[c]=new d(this))}for(var f=0,h=Object.entries(this.plugins);f<h.length;f++){var p=$n(h[f],2),m=p[0],g=p[1];try{var y,b;g.setup(null!==(y=null===(b=this.options.plugins)||void 0===b?void 0:b[m])&&void 0!==y?y:{}),this.options.plugins[m]=g.options}catch(e){console.error("Error setting up plugin ".concat(m),e)}}null!==(t=this.plugins.search)&&void 0!==t&&t.options.enabled&&(this.search=this.plugins.search.search.bind(this.plugins.search)),this.numLeafs=void 0,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=Fn.constMode1up,this.constMode2up=Fn.constMode2up,this.constModeThumb=Fn.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=yn[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=yn[k.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=e.ui,this.uiAutoHide=e.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=e.thumbRowBuffer,this.thumbColumns=e.thumbColumns,this.thumbMaxLoading=e.thumbMaxLoading,this.thumbPadding=e.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed=s.Ve(e.flipSpeed)||400,this.firstIndex=null,this.isFullscreenActive=e.startFullscreen||!1,this.lastScroll=null,this.showLogo=e.showLogo,this.logoURL=e.logoURL,this.imagesBaseURL=e.imagesBaseURL,this.reductionFactors=e.reductionFactors,this.onePage=e.onePage,this.twoPage=e.twoPage,this.onePageMinBreakpoint=e.onePageMinBreakpoint,this.bookTitle=e.bookTitle,this.bookUrl=e.bookUrl,this.bookUrlText=e.bookUrlText,this.bookUrlTitle=e.bookUrlTitle,this.titleLeaf=e.titleLeaf,this.metadata=e.metadata,this.thumbnail=e.thumbnail,this.bookUrlMoreInfo=e.bookUrlMoreInfo,this.enableExperimentalControls=e.enableExperimentalControls,this.el=e.el,this.pageProgression=e.pageProgression,this.protected=e.protected,this.getEmbedCode=e.getEmbedCode,this.popup=null,this.data=e.data,this.refs={},this.book=new z(this),e.getNumLeafs&&(this.book.getNumLeafs=e.getNumLeafs.bind(this)),e.getPageWidth&&(this.book.getPageWidth=e.getPageWidth.bind(this)),e.getPageHeight&&(this.book.getPageHeight=e.getPageHeight.bind(this)),e.getPageURI&&(this.book.getPageURI=e.getPageURI.bind(this)),e.getPageSide&&(this.book.getPageSide=e.getPageSide.bind(this)),e.getPageNum&&(this.book.getPageNum=e.getPageNum.bind(this)),e.getPageProp&&(this.book.getPageProp=e.getPageProp.bind(this)),e.getSpreadIndices&&(this.book.getSpreadIndices=e.getSpreadIndices.bind(this)),e.leafNumToIndex&&(this.book.leafNumToIndex=e.leafNumToIndex.bind(this)),this._components={navbar:new v(this),toolbar:new E(this)},this._modes={mode1Up:new gt(this,this.book),mode2Up:new on(this,this.book),modeThumb:new vn(this,this.book)},this._overrideable={book:this.book,"_components.navbar":this._components.navbar,"_components.toolbar":this._components.toolbar,"_modes.mode1Up":this._modes.mode1Up,"_modes.mode2Up":this._modes.mode2Up,"_modes.modeThumb":this._modes.modeThumb},this.imageCache=new On(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet,renderPageURI:e.renderPageURI.bind(this)}),this.hasKeyFocus=!0},Fn.prototype.initializePlugin=function(e){var t=new Fn.PLUGINS[e](this);this.plugins[e]=t;try{var n,r;t.setup(null!==(n=null===(r=this.options.plugins)||void 0===r?void 0:r[e])&&void 0!==n?n:{}),this.options.plugins[e]=t.options}catch(t){throw console.error("Error setting up plugin ".concat(e," outside of regular cycle"),t),t}try{t.init()}catch(t){throw console.error("Error initializing plugin ".concat(e," outside of regular cycle"),t),t}},Fn.prototype.getActivePageContainerElements=function(){var e=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map(function(e){return e.$container[0]}).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map(function(e){return e.$container[0]}));return this.mode==this.constModeThumb&&(e=e.concat(this.$(".BRpagecontainer").toArray())),e},Fn.prototype.getActivePageContainerElementsForIndex=function(e){var t,n;return[null===(t=this._modes.mode2Up.mode2UpLit.pageContainerCache[e])||void 0===t||null===(t=t.$container)||void 0===t?void 0:t[0],null===(n=this._modes.mode1Up.mode1UpLit.pageContainerCache[e])||void 0===n||null===(n=n.$container)||void 0===n?void 0:n[0]].concat(function(e){return function(e){if(Array.isArray(e))return zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.mode==this.constModeThumb?this.$(".pagediv".concat(e)).toArray():[])).filter(function(e){return e})},Object.defineProperty(Fn.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Fn.util=u,Fn.prototype.extendParams=function(e,t){var n=Cn.extend({},t);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Cn.extend(e,n)},Fn.prototype.initParams=function(){var e,t,n={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?n.index=this.book.leafNumToIndex(this.titleLeaf):n.index=0,this.defaults){var r=this.paramsFromFragment(this.defaults);void 0!==r.page&&(n.pageFound=!0),this.extendParams(n,r)}if(null!==(e=this.plugins.resume)&&void 0!==e&&e.options.enabled){var o=this.plugins.resume.getResumeValue();null!==o&&(n.index!==o&&(n.fragmentChange=!0),n.index=o)}if(this.options.enableUrlPlugin){var i=this.paramsFromFragment(this.urlReadFragment());!Object.keys(i).length&&this.urlReadHashFragment()&&"history"===this.options.urlMode&&(i=this.paramsFromFragment(this.urlReadHashFragment())),Object.keys(i).length&&(void 0!==i.page&&(n.pageFound=!0),this.extendParams(n,i),n.fragmentChange=!0)}if(null!==(t=this.plugins.search)&&void 0!==t&&t.options.enabled){var a=this.plugins.search;if(a.options.goToFirstResult=!n.pageFound,!a.initialSearchTerm)if(n.search)a.options.initialSearchTerm=n.search,a.searchTerm=n.search;else{var u=new URLSearchParams(this.readQueryString()).get("q");u&&(a.options.initialSearchTerm=s.ow(u))}}return this.suppressFragmentChange=!n.fragmentChange,n},Fn.prototype.getLocationSearch=function(){return window.location.search},Fn.prototype.getLocationHash=function(){return window.location.hash},Fn.prototype.readQueryString=function(){var e=this.getLocationSearch();if(e)return e;var t=this.getLocationHash(),n=t.search(/\?\w+=/);return n>-1?t.slice(n):""},Fn.prototype.getInitialMode=function(e){var t,n=Cn(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(t=e.mode?e.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),this.options.defaults)try{t=function(e){var t={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(e in t))throw new x("Invalid mode string: ".concat(e));return t[e]}(this.options.defaults)}catch(e){}return t},Fn.prototype.init=function(){var e,t;this.init.initComplete=!1,this.pageScale=this.reduce;var n=this.initParams();if(null===(e=this.urlPlugin)||void 0===e||e.pullFromAddressBar(),this.firstIndex=n.index?n.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Cn(this.el).empty().removeClass().addClass("ui-"+this.ui).addClass("br-ui-"+this.ui).addClass("BookReader"),this.isTouchDevice?this.refs.$br.addClass("touch"):this.refs.$br.addClass("no-touch"),this.refs.$brContainer=Cn("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),n.mode=this.getInitialMode(n),this.mode=n.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar)for(var r=this.initNavbar(),o=0,i=Object.values(this.plugins);o<i.length;o++)i[o].extendNavBar(r);this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(n),this.initUIStrings(),this._components.navbar.bindControlClickHandlers();for(var a=0,s=Object.values(this.plugins);a<s.length;a++)s[a]._bindNavigationHandlers();this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,function(e){e.data.lastScroll=(new Date).getTime(),e.data.constModeThumb==e.data.mode&&e.data.drawLeafsThrottled()}),this.options.autoResize&&(Cn(window).on("resize",this,function(e){e.data.resize()}),Cn(window).on("orientationchange",this,function(e){e.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),null!==(t=this.plugins.search)&&void 0!==t&&t.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0);for(var u=0,l=Object.entries(this.plugins);u<l.length;u++){var c=$n(l[u],2),d=c[0],f=c[1];try{f.init()}catch(e){console.error("Error initializing plugin ".concat(d),e)}}this.init.initComplete=!0,this.trigger(Fn.eventNames.PostInit)},Fn.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;s.Hs(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}})),Cn(document).trigger(n,t)},Fn.prototype.on=function(e,t){Cn(document).on("BookReader:"+e,t)},Fn.prototype.off=function(e,t){Cn(document).off("BookReader:"+e,t)},Fn.prototype.bind=function(e,t){return this.on(e,t)},Fn.prototype.unbind=function(e,t){return this.off(e,t)},Fn.prototype.resize=function(){this.init.initComplete&&(this.resizeBRcontainer(),this._components.navbar.switchNavbarControls(),this.constMode1up==this.mode?"none"!=this.onePage.autofit?(this._modes.mode1Up.resizePageView(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled()):this.constModeThumb==this.mode?this._modes.modeThumb.prepare():this._modes.mode2Up.resizePageView(),this.trigger(Fn.eventNames.resize))},Fn.prototype.setupKeyListeners=function(){var e=this;window.IntersectionObserver&&new IntersectionObserver(function(t){t.forEach(function(t){0===t.intersectionRatio?e.hasKeyFocus=!1:e.hasKeyFocus=!0})},{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",function(t){if(e.hasKeyFocus&&!(t.getModifierState("Control")||t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Meta")||t.getModifierState("Win")||s.xK()))switch(t.key){case"Home":t.preventDefault(),e.first();break;case"End":t.preventDefault(),e.last();break;case"PageDown":e.constMode2up===e.mode&&(t.preventDefault(),e.next());break;case"PageUp":e.constMode2up===e.mode&&(t.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(t.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(t.preventDefault(),e.right());break;case"-":case"Subtract":t.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":t.preventDefault(),e.zoom(1);break;case"F":case"f":t.preventDefault(),e.toggleFullscreen()}})},Fn.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},Fn.prototype._createPageContainer=function(e){for(var t=new _n.LN(this.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache}),n=0,r=Object.values(this.plugins);n<r.length;n++)r[n]._configurePageContainer(t);return t},Fn.prototype.bindGestures=function(e){var t=this,n=1;e.unbind("touchmove").bind("touchmove",function(e){e.originalEvent.cancelable&&(n=e.originalEvent.touches.length),e.stopPropagation()}),e.unbind("gesturechange").bind("gesturechange",function(e){e.preventDefault(),2!==n||(new Date).getTime()-t.lastScroll<500||(e.originalEvent.scale>1.5?t.zoom(1):e.originalEvent.scale<.6&&t.zoom(-1))})},Fn.prototype.drawLeafsThrottled=s.nF(Fn.prototype.drawLeafs,250),Fn.prototype.zoom=function(e){var t,n;1==e?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer)},Fn.prototype.resizeBRcontainer=function(e){e?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},Fn.prototype.scrollIntoView=function(e,t){(0,l.N)(e,Ln(Ln({},t),{},{scrollContainer:this.activeMode.scrollContainer}))},Fn.prototype.centerPageView=function(){var e=this.refs.$brContainer.prop("scrollWidth"),t=this.refs.$brContainer.prop("clientWidth");e>t&&this.refs.$brContainer.prop("scrollLeft",(e-t)/2)},Fn.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,r=Math.abs(e-n),o=1;o<t.length;o++){var i=Math.abs(e-t[o].reduce);i<r&&(r=i,n=t[o].reduce)}return n},Fn.prototype.nextReduce=function(e,t,n){if("in"===t){for(var r=0,o=1;o<n.length;o++)n[o].reduce<e&&(r=o);return n[r]}if("out"===t){for(var i=n.length-1,a=i,s=i;s>=0;s--)n[s].reduce>e&&(a=s);return n[a]}if("auto"===t){var u=n.find(function(e){return"auto"==e.autofit});if(u)return u;for(var l=n.filter(function(e){var t=e.autofit;return"height"==t||"width"==t}),c=null,d=0;d<l.length;d++)(null===c||c.reduce<l[d].reduce)&&(c=l[d]);if(c)return c}else if("height"===t||"width"===t){var f=n.find(function(e){return e.autofit==t});if(f)return f}return n[0]},Fn.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},Fn.prototype.jumpToPage=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ariaLive,n=void 0!==t&&t,r=this.book.parsePageString(e);return void 0!==r&&(this.jumpToIndex(r,{ariaLive:n}),!0)},Fn.prototype._isIndexDisplayed=function(e){return this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},Fn.prototype.jumpToIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pageX,r=void 0===n?0:n,o=t.pageY,i=void 0===o?0:o,a=t.noAnimate,u=void 0!==a&&a,l=t.flipSpeed,c=void 0===l?null:l,d=t.ariaLive,f=void 0!==d&&d,h=t.triggerStop,p=void 0===h||h,v=t.allowUnviewable,m=void 0!==v&&v,g=this.activeMode.parsePageSpecifier(e);if(c=s.Ve(c)||this.flipSpeed,g&&g.index!=this.currentIndex())if(m||g.isViewable||g.unviewablesStart==g.index)p&&this.trigger(Fn.eventNames.stop),this.trigger(Fn.eventNames.beforePageChanged,{index:g.index,ariaLive:f}),this.activeMode.jumpToIndex(g.index,{pageX:r,pageY:i,noAnimate:u,flipSpeed:c,ariaLive:f});else{var y,b=this._isIndexDisplayed(g.unviewablesStart)?null===(y=g.findNext({combineConsecutiveUnviewables:!0}))||void 0===y?void 0:y.index:g.unviewablesStart;void 0!==b&&this.jumpToIndex(b,{pageX:r,pageY:i,noAnimate:u,flipSpeed:c,ariaLive:f})}},Fn.prototype.getPrevReadMode=function(e){return e===Fn.constMode1up||e===Fn.constMode2up?e:null===this.prevReadMode?Fn.constMode1up:void 0},Fn.prototype.switchMode=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.suppressFragmentChange,s=void 0!==a&&a;if(i.init,i.pageFound,"string"==typeof e&&(e={"1up":this.constMode1up,"2up":this.constMode2up,thumb:this.constModeThumb}[e]),!e)throw new Error("Invalid mode: ".concat(e));if(this.init.initComplete){if(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(Fn.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=e&&(null===(r=(o=this.activeMode).unprepare)||void 0===r||r.call(o)),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?this._modes.mode1Up.prepare():this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||s||this.trigger(Fn.eventNames.fragmentChange);var u=e+"PageViewSelected";this.trigger(Fn.eventNames[u]),null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer)},Fn.prototype.updateBrClasses=function(){var e={};e[this.constMode1up]="BRmode1up",e[this.constMode2up]="BRmode2up",e[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(e[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),Cn(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Cn(document.body).removeClass("BRfullscreenActive"))},Fn.prototype.isFullscreen=function(){return this.isFullscreenActive},Fn.prototype.toggleFullscreen=In(Mn().m(function e(){var t,n=arguments;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){e.n=2;break}return e.n=1,this.exitFullScreen();case 1:e.n=3;break;case 2:return e.n=3,this.enterFullscreen(t);case 3:return e.a(2)}},e,this)})),Fn.prototype.enterFullscreen=In(Mn().m(function e(){var t,n,r,o,i=this,a=arguments;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(r=!(a.length>0&&void 0!==a[0])||a[0],this.refs.$br.addClass("BRfullscreenAnimation"),o=this.currentIndex(),r&&(this._fullscreenCloseHandler=function(e){27===e.keyCode&&i.toggleFullscreen()},Cn(document).on("keyup",this._fullscreenCloseHandler)),Cn(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.$(".BRnav .BRicon.full").attr("title","Exit fullscreen"),this.$(".BRnav .BRicon.full .BRtooltip").text("Exit fullscreen"),this.updateBrClasses(),!(this.activeMode instanceof gt)){e.n=1;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(o)),this.activeMode.mode1UpLit.requestUpdate(),e.n=1,this.activeMode.mode1UpLit.updateComplete;case 1:return this.jumpToIndex(o),null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer),this.trigger(Fn.eventNames.fragmentChange),this.trigger(Fn.eventNames.fullscreenToggled),e.n=2,new Promise(function(e){return setTimeout(e,0)});case 2:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 3:return e.a(2)}},e,this)})),Fn.prototype.exitFullScreen=In(Mn().m(function e(){var t,n,r;return Mn().w(function(e){for(;;)switch(e.n){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),Cn(document).off("keyup",this._fullscreenCloseHandler),r=Cn(window).width(),this.options.controls.twoPage.visible&&r<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.$(".BRnav .BRicon.full").attr("title","Go fullscreen"),this.$(".BRnav .BRicon.full .BRtooltip").text("Go fullscreen"),this.trigger(Fn.eventNames.fullscreenToggled),this.updateBrClasses(),e.n=1,new Promise(function(e){return setTimeout(e,0)});case 1:if(this.resize(),!(this.activeMode instanceof gt)){e.n=2;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),e.n=2,this.activeMode.mode1UpLit.updateComplete;case 2:null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer),this.trigger(Fn.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 3:return e.a(2)}},e,this)})),Fn.prototype.toggleSlider=function(){var e=this.refs.$BRnav.find(".toggle_slider"),t=this.refs.$br.find(".BRnavMobile");e.toggleClass("active"),t.toggleClass("docked")},Fn.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return s.qE(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},Fn.prototype.updateFirstIndex=function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==e&&(this.firstIndex=e,this.suppressFragmentChange||r||this.trigger(Fn.eventNames.fragmentChange),null!==(t=this.plugins.search)&&void 0!==t&&t.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger(Fn.eventNames.pageChanged),this.trigger(Fn.eventNames.userAction))},Fn.prototype.right=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0===r||r;this.jumpToIndex("right",{ariaLive:n,triggerStop:o})},Fn.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},Fn.prototype.left=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0===r||r;this.jumpToIndex("left",{ariaLive:n,triggerStop:o})},Fn.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},Fn.prototype.next=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t,r=e.flipSpeed,o=void 0===r?null:r,i=e.ariaLive,a=void 0===i||i;this.jumpToIndex("next",{ariaLive:a,flipSpeed:o,triggerStop:n})},Fn.prototype.prev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t,r=e.flipSpeed,o=void 0===r?null:r,i=e.ariaLive,a=void 0===i||i;this.jumpToIndex("prev",{ariaLive:a,flipSpeed:o,triggerStop:n})},Fn.prototype.first=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0!==r&&r;this.jumpToIndex(0,{ariaLive:n,triggerStop:o})},Fn.prototype.last=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0!==r&&r;this.jumpToIndex(this.book.getNumLeafs()-1,{ariaLive:n,triggerStop:o})},Fn.prototype.initNavbar=v.prototype.init,Nn(v,"_components.navbar","init","initNavbar"),Fn.prototype.buildToolbarElement=E.prototype.buildToolbarElement,Nn(E,"_components.toolbar","buildToolbarElement"),Fn.prototype.initToolbar=E.prototype.initToolbar,Nn(E,"_components.toolbar","initToolbar"),Fn.prototype.buildShareDiv=E.prototype.buildShareDiv,Nn(E,"_components.toolbar","buildShareDiv"),Fn.prototype.buildInfoDiv=E.prototype.buildInfoDiv,Nn(E,"_components.toolbar","buildInfoDiv"),Fn.prototype.getToolBarHeight=E.prototype.getToolBarHeight,Nn(E,"_components.toolbar","getToolBarHeight"),Fn.prototype.getPageURI=z.prototype.getPageURI,Nn(z,"book","getPageURI"),Fn.prototype.updateFromParams=function(e){var t,n=e.mode,r=void 0===n?0:n,o=e.init,i=void 0!==o&&o,a=e.fragmentChange,s=void 0!==a&&a;r&&this.switchMode(r,{init:i,suppressFragmentChange:!s}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),null!==(t=this.plugins.search)&&void 0!==t&&t.enabled&&void 0!==e.search&&this.plugins.search.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},Fn.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this.book.getNumLeafs()<2)},Fn.prototype._getPageURI=function(e,t,n){var r=this.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURI(t,n)):this.imagesBaseURL+"transparent.png"},Fn.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Cn(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var o=document.createElement("span");o.setAttribute("class","icon icon-close-dark"),Cn(r).append(o),r.addEventListener("click",function(){t(),n.removeProgressPopup()}),Cn(this.popup).append(r)}var i=document.createElement("div");if(Cn(i).css({height:"20px"}).prop("className","BRprogressbar"),Cn(this.popup).append(i),e){var a=document.createElement("div");a.innerHTML=e,Cn(this.popup).append(a)}Cn(this.popup).appendTo(this.refs.$br)}},Fn.prototype.removeProgressPopup=function(){Cn(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},Fn.prototype.initUIStrings=function(){var e={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Go fullscreen",".toggle_slider":"Toggle page controls",".book_left":"Flip left",".book_right":"Flip right",".play":"Play",".pause":"Pause",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var t in"rl"==this.pageProgression&&(e[".book_leftmost"]="Last page",e[".book_rightmost"]="First page"),e)this.$(t).prop("title",e[t])},Fn.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each(function(e,t){if(!t.complete||0===t.naturalHeight){var n=t.src;t.src="",setTimeout(function(){t.src=n},1e3)}})},Fn.prototype.getFooterHeight=function(){var e=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(e&&this.refs.$BRfooter){var t=e.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(t)&&!isNaN(n))return t+n}return 0},Fn.prototype.paramsFromCurrent=function(){var e,t={},n=this.currentIndex(),r=this.book.getPageNum(n);return(0===r||r)&&(t.page=r),t.index=n,t.mode=this.mode,this.isFullscreenActive&&(t.view="theater"),null!==(e=this.plugins.search)&&void 0!==e&&e.enabled&&(t.search=this.plugins.search.searchTerm),t},Fn.prototype.paramsFromFragment=function(e){var t={};"#"==e.substr(0,1)&&(e=e.substr(1));var n=parseInt(/^\d+$/.exec(e));if(!isNaN(n))return t.index=n,t;for(var r=e.split("/"),o={},i=0;i<r.length;i+=2)o[r[i]]=r[i+1];return"1up"==o.mode?t.mode=this.constMode1up:"2up"==o.mode?t.mode=this.constMode2up:"thumb"==o.mode&&(t.mode=this.constModeThumb),void 0!==o.page&&(t.page=decodeURIComponent(o.page)),null!=o.search&&(t.search=s.ow(o.search)),null!=o.theme&&(t.theme=o.theme),t},Fn.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n=[];if(void 0!==e.page?n.push("page",encodeURIComponent(e.page)):void 0!==e.index&&n.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)n.push("mode","1up");else if(e.mode==this.constMode2up)n.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;n.push("mode","thumb")}return e.search&&"hash"===t&&n.push("search",s.GF(e.search)),n.join("/")},Fn.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(t);r.delete("focus"),e.view?r.set("view",e.view):r.delete("view"),e.search&&"history"===n&&r.set("q",e.search);var o=r.toString();return o?"?".concat(o):""},Fn.prototype.requestPage=function(){var e=In(Mn().m(function e(t){var n,r,o,i;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(!t.isViewable){e.n=1;break}return e.a(2,[]);case 1:if(this.options.requestPage){e.n=2;break}return e.a(2,[]);case 2:return e.n=3,this.options.requestPage.call(this,t);case 3:n=e.v,r=jn(n);try{for(r.s();!(o=r.n()).done;)i=o.value,this.book.getPage(i).makeViewable()}catch(e){r.e(e)}finally{r.f()}if(this._modes.mode1Up.mode1UpLit.updatePages(),this.activeMode!=this._modes.mode1Up){e.n=4;break}return e.n=4,this._modes.mode1Up.mode1UpLit.updateComplete;case 4:return e.a(2,n)}},e,this)}));return function(t){return e.apply(this,arguments)}}(),Fn.prototype.$=function(e){return this.refs.$br.find(e)},window.BookReader=Fn;var Un=r(1635),Hn=(r(1415),r(744),r(9447)),Wn=r(1091);function qn(e){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(e)}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zn(r.key),r)}}function Zn(e){var t=function(e){if("object"!=qn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qn(t)?t:t+""}function Xn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xn=function(){return!!e})()}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function Kn(e,t){return Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kn(e,t)}var Jn=(0,Wn.u$)(function(e){function t(e){var n,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=Yn(t),function(e,t){if(t&&("object"==qn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xn()?Reflect.construct(t,n||[],Yn(e).constructor):t.apply(e,n))}(this,t,[e]),e.type!==Wn.OA.ATTRIBUTE||"class"!==e.name||(null===(r=e.strings)||void 0===r?void 0:r.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kn(e,t)}(t,e),function(e,t){return t&&Gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"render",value:function(e){return" "+Object.keys(e).filter(function(t){return e[t]}).join(" ")+" "}},{key:"update",value:function(e,t){var n,r,o=this,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0];if(void 0===this.it){for(var a in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(function(e){return""!==e}))),i)i[a]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(a))&&this.it.add(a);return this.render(i)}var s=e.element.classList;for(var u in this.it.forEach(function(e){e in i||(s.remove(e),o.it.delete(e))}),i){var l=!!i[u];l===this.it.has(u)||(null===(r=this.nt)||void 0===r?void 0:r.has(u))||(l?(s.add(u),this.it.add(u)):(s.remove(u),this.it.delete(u)))}return Hn.c0}}])}(Wn.WL));function Qn(e){let t,n,r;return"object"==typeof e?(t=e.hashFunction,n=e.expiring,r=e.tags):t=e,(e,o,i)=>{if(null!=i.value)i.value=tr(i.value,t,n,r);else{if(null==i.get)throw"Only put a Memoize() decorator on a method or get accessor.";i.get=tr(i.get,t,n,r)}}}const er=new Map;function tr(e,t,n=0,r){const o=Symbol("__memoized_map__");return function(...i){let a;this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:new Map});let s=this[o];if(Array.isArray(r))for(const e of r)er.has(e)?er.get(e).push(s):er.set(e,[s]);if(t||i.length>0||n>0){let r;r=!0===t?i.map(e=>e.toString()).join("!"):t?t.apply(this,i):i[0];const o=`${r}__timestamp`;let u=!1;if(n>0)if(s.has(o)){let e=s.get(o);u=Date.now()-e>n}else u=!0;s.has(r)&&!u?a=s.get(r):(a=e.apply(this,i),s.set(r,a),n>0&&s.set(o,Date.now()))}else{const t=this;s.has(t)?a=s.get(t):(a=e.apply(this,i),s.set(t,a))}return a}}class nr{parseValue(e){return("string"!=typeof e||"false"!==e&&"0"!==e)&&Boolean(e)}}nr.shared=new nr;class rr{parseValue(e){if("number"==typeof e)return e;if("boolean"==typeof e)return;const t=parseFloat(e);return Number.isNaN(t)?void 0:t}}rr.shared=new rr;class or{parseValue(e){return rr.shared.parseValue(e)}}or.shared=new or;class ir{parseValue(e){return this.parseJSDate(e)||this.parseBracketDate(e)}parseBracketDate(e){if("string"!=typeof e)return;const t=e.match(/\[([0-9]{4})\]/);return!t||t.length<2?void 0:this.parseJSDate(t[1])}parseJSDate(e){if("string"!=typeof e)return;let t=e;t.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}\s{1}[0-9]{2}:[0-9]{2}:[0-9]{2}$/)&&(t=t.replace(" ","T"));const n=Date.parse(t);if(Number.isNaN(n))return;let r=new Date(t);return(t.match(/^[0-9]{4}$/)||t.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/))&&(r=new Date(r.getTime()+1e3*r.getTimezoneOffset()*60)),r}}ir.shared=new ir;class ar{parseValue(e){if("number"==typeof e)return e;if("boolean"==typeof e)return;const t=e.split(":");let n;return n=1===t.length?this.parseNumberFormat(t[0]):this.parseColonSeparatedFormat(t),n}parseNumberFormat(e){let t=parseFloat(e);return Number.isNaN(t)&&(t=void 0),t}parseColonSeparatedFormat(e){let t=!1;const n=e.map((n,r)=>{const o=parseFloat(n);if(Number.isNaN(o))return t=!0,0;const i=60**(e.length-1-r);return o*Math.floor(i)}).reduce((e,t)=>e+t,0);return t?void 0:n}}ar.shared=new ar;class sr{parseValue(e){if("string"==typeof e)return e}}sr.shared=new sr;class ur{constructor(e,t){this.separators=[";",","],this.parser=e,t&&t.separators&&(this.separators=t.separators)}parseValue(e){const t=String(e);let n=[];for(const e of this.separators)if(n=t.split(e),n.length>1)break;return this.parseListValues(n)}parseListValues(e){const t=e.map(e=>e.trim()).map(e=>this.parser.parseValue(e)),n=[];return t.forEach(e=>{void 0!==e&&n.push(e)}),n}}class lr{parseValue(e){if("string"==typeof e)return e}}lr.shared=new lr;class cr{parseValue(e){return String(e)}}cr.shared=new cr;class dr{get name(){return this.rawValue.name}get source(){return this.rawValue.source}get btih(){return this.rawValue.btih}get md5(){return this.rawValue.md5}get format(){return this.rawValue.format}get mtime(){if(null==this.rawValue.mtime)return;const e=rr.shared.parseValue(this.rawValue.mtime);return e?new Date(1e3*e):void 0}get crc32(){return this.rawValue.crc32}get sha1(){return this.rawValue.sha1}get original(){return this.rawValue.original}get size(){return null!=this.rawValue.size?or.shared.parseValue(this.rawValue.size):void 0}get title(){return this.rawValue.title}get length(){return null!=this.rawValue.length?ar.shared.parseValue(this.rawValue.length):void 0}get height(){return null!=this.rawValue.height?rr.shared.parseValue(this.rawValue.height):void 0}get width(){return null!=this.rawValue.width?rr.shared.parseValue(this.rawValue.width):void 0}get track(){return null!=this.rawValue.track?rr.shared.parseValue(this.rawValue.track):void 0}get external_identifier(){return this.rawValue.external_identifier}get creator(){return this.rawValue.creator}get album(){return this.rawValue.album}constructor(e={}){this.rawValue=e}}(0,Un.Cg)([Qn()],dr.prototype,"mtime",null),(0,Un.Cg)([Qn()],dr.prototype,"size",null),(0,Un.Cg)([Qn()],dr.prototype,"length",null),(0,Un.Cg)([Qn()],dr.prototype,"height",null),(0,Un.Cg)([Qn()],dr.prototype,"width",null),(0,Un.Cg)([Qn()],dr.prototype,"track",null);class fr{get values(){return this.parseRawValue()}get value(){return this.values[0]}constructor(e,t){this.parser=e,this.rawValue=t}parseRawValue(){const e=Array.isArray(this.rawValue)?this.rawValue:[this.rawValue],t=[];return e.forEach(e=>{const n=this.parser.parseValue(e);Array.isArray(n)?t.push(...n):void 0!==n&&t.push(n)}),t}}(0,Un.Cg)([Qn()],fr.prototype,"values",null),(0,Un.Cg)([Qn()],fr.prototype,"value",null);class hr extends fr{constructor(e){super(nr.shared,e)}}class pr extends fr{constructor(e){super(ir.shared,e)}}class vr extends fr{constructor(e){super(ar.shared,e)}}class mr extends fr{constructor(e){super(rr.shared,e)}}class gr extends fr{constructor(e){super(cr.shared,e)}}class yr extends fr{constructor(e){super(lr.shared,e)}}class br extends fr{constructor(e){super(or.shared,e)}}class wr extends fr{constructor(e){super(sr.shared,e)}}class kr extends fr{constructor(e,t){super(t,e)}}class xr extends kr{constructor(e){super(e,new ur(cr.shared))}}class Sr{get identifier(){return this.rawMetadata.identifier}get addeddate(){return null!=this.rawMetadata.addeddate?new pr(this.rawMetadata.addeddate):void 0}get audio_codec(){return null!=this.rawMetadata.audio_codec?new gr(this.rawMetadata.audio_codec):void 0}get audio_sample_rate(){return null!=this.rawMetadata.audio_sample_rate?new mr(this.rawMetadata.audio_sample_rate):void 0}get avg_rating(){return null!=this.rawMetadata.avg_rating?new mr(this.rawMetadata.avg_rating):void 0}get collection(){return null!=this.rawMetadata.collection?new gr(this.rawMetadata.collection):void 0}get collections_raw(){return null!=this.rawMetadata.collections_raw?new gr(this.rawMetadata.collections_raw):void 0}get collection_size(){return null!=this.rawMetadata.collection_size?new br(this.rawMetadata.collection_size):void 0}get contact(){return null!=this.rawMetadata.contact?new gr(this.rawMetadata.contact):void 0}get contributor(){return null!=this.rawMetadata.contributor?new gr(this.rawMetadata.contributor):void 0}get coverage(){return null!=this.rawMetadata.coverage?new gr(this.rawMetadata.coverage):void 0}get creator(){return null!=this.rawMetadata.creator?new gr(this.rawMetadata.creator):void 0}get creator_alt_script(){return null!=this.rawMetadata["creator-alt-script"]?new gr(this.rawMetadata["creator-alt-script"]):void 0}get credits(){return null!=this.rawMetadata.credits?new gr(this.rawMetadata.credits):void 0}get collection_layout(){return null!=this.rawMetadata.collection_layout?new gr(this.rawMetadata.collection_layout):void 0}get date(){return null!=this.rawMetadata.date?new pr(this.rawMetadata.date):void 0}get description(){return null!=this.rawMetadata.description?new gr(this.rawMetadata.description):void 0}get downloads(){return null!=this.rawMetadata.downloads?new mr(this.rawMetadata.downloads):void 0}get duration(){return null!=this.rawMetadata.duration?new vr(this.rawMetadata.duration):void 0}get external_identifier(){return null!=this.rawMetadata["external-identifier"]?new gr(this.rawMetadata["external-identifier"]):void 0}get external_link(){return null!=this.rawMetadata["external-link"]?new gr(this.rawMetadata["external-link"]):void 0}get files_count(){return null!=this.rawMetadata.files_count?new mr(this.rawMetadata.files_count):void 0}get indexdate(){return null!=this.rawMetadata.indexdate?new pr(this.rawMetadata.indexdate):void 0}get isbn(){return null!=this.rawMetadata.isbn?new gr(this.rawMetadata.isbn):void 0}get issue(){return null!=this.rawMetadata.issue?new gr(this.rawMetadata.issue):void 0}get item_count(){return null!=this.rawMetadata.item_count?new mr(this.rawMetadata.item_count):void 0}get item_size(){return null!=this.rawMetadata.item_size?new br(this.rawMetadata.item_size):void 0}get language(){return null!=this.rawMetadata.language?new gr(this.rawMetadata.language):void 0}get length(){return null!=this.rawMetadata.length?new vr(this.rawMetadata.length):void 0}get licenseurl(){return null!=this.rawMetadata.licenseurl?new gr(this.rawMetadata.licenseurl):void 0}get lineage(){return null!=this.rawMetadata.lineage?new gr(this.rawMetadata.lineage):void 0}get month(){return null!=this.rawMetadata.month?new mr(this.rawMetadata.month):void 0}get mediatype(){return null!=this.rawMetadata.mediatype?new wr(this.rawMetadata.mediatype):void 0}get noindex(){return null!=this.rawMetadata.noindex?new hr(this.rawMetadata.noindex):void 0}get notes(){return null!=this.rawMetadata.notes?new gr(this.rawMetadata.notes):void 0}get num_favorites(){return null!=this.rawMetadata.num_favorites?new mr(this.rawMetadata.num_favorites):void 0}get num_reviews(){return null!=this.rawMetadata.num_reviews?new mr(this.rawMetadata.num_reviews):void 0}get openlibrary_edition(){return null!=this.rawMetadata.openlibrary_edition?new gr(this.rawMetadata.openlibrary_edition):void 0}get openlibrary_work(){return null!=this.rawMetadata.openlibrary_work?new gr(this.rawMetadata.openlibrary_work):void 0}get page_progression(){return null!=this.rawMetadata.page_progression?new yr(this.rawMetadata.page_progression):void 0}get paginated(){return null!=this.rawMetadata.paginated?new hr(this.rawMetadata.paginated):void 0}get partner(){return null!=this.rawMetadata.partner?new gr(this.rawMetadata.partner):void 0}get post_text(){return null!=this.rawMetadata.post_text?new gr(this.rawMetadata.post_text):void 0}get ppi(){return null!=this.rawMetadata.ppi?new mr(this.rawMetadata.ppi):void 0}get publicdate(){return null!=this.rawMetadata.publicdate?new pr(this.rawMetadata.publicdate):void 0}get publisher(){return null!=this.rawMetadata.publisher?new gr(this.rawMetadata.publisher):void 0}get reviewdate(){return null!=this.rawMetadata.reviewdate?new pr(this.rawMetadata.reviewdate):void 0}get rights(){return null!=this.rawMetadata.rights?new gr(this.rawMetadata.rights):void 0}get rights_holder(){var e;const t=null!==(e=this.rawMetadata["rights-holder"])&&void 0!==e?e:this.rawMetadata.rights_holder;return null!=t?new gr(t):void 0}get runtime(){return null!=this.rawMetadata.runtime?new vr(this.rawMetadata.runtime):void 0}get scanner(){return null!=this.rawMetadata.scanner?new gr(this.rawMetadata.scanner):void 0}get segments(){return null!=this.rawMetadata.segments?new gr(this.rawMetadata.segments):void 0}get shotlist(){return null!=this.rawMetadata.shotlist?new gr(this.rawMetadata.shotlist):void 0}get source(){return null!=this.rawMetadata.source?new gr(this.rawMetadata.source):void 0}get sponsor(){return null!=this.rawMetadata.sponsor?new gr(this.rawMetadata.sponsor):void 0}get start_localtime(){return null!=this.rawMetadata.start_localtime?new pr(this.rawMetadata.start_localtime):void 0}get start_time(){return null!=this.rawMetadata.start_time?new pr(this.rawMetadata.start_time):void 0}get stop_time(){return null!=this.rawMetadata.stop_time?new pr(this.rawMetadata.stop_time):void 0}get subject(){return null!=this.rawMetadata.subject?new xr(this.rawMetadata.subject):void 0}get taper(){return null!=this.rawMetadata.taper?new gr(this.rawMetadata.taper):void 0}get title(){return null!=this.rawMetadata.title?new gr(this.rawMetadata.title):void 0}get title_alt_script(){return null!=this.rawMetadata["title-alt-script"]?new gr(this.rawMetadata["title-alt-script"]):void 0}get transferer(){return null!=this.rawMetadata.transferer?new gr(this.rawMetadata.transferer):void 0}get track(){return null!=this.rawMetadata.track?new mr(this.rawMetadata.track):void 0}get type(){return null!=this.rawMetadata.type?new gr(this.rawMetadata.type):void 0}get uploader(){return null!=this.rawMetadata.uploader?new gr(this.rawMetadata.uploader):void 0}get utc_offset(){return null!=this.rawMetadata.utc_offset?new mr(this.rawMetadata.utc_offset):void 0}get venue(){return null!=this.rawMetadata.venue?new gr(this.rawMetadata.venue):void 0}get volume(){return null!=this.rawMetadata.volume?new gr(this.rawMetadata.volume):void 0}get week(){return null!=this.rawMetadata.week?new mr(this.rawMetadata.week):void 0}get year(){return null!=this.rawMetadata.year?new mr(this.rawMetadata.year):void 0}constructor(e={}){this.rawMetadata=e}}(0,Un.Cg)([Qn()],Sr.prototype,"addeddate",null),(0,Un.Cg)([Qn()],Sr.prototype,"audio_codec",null),(0,Un.Cg)([Qn()],Sr.prototype,"audio_sample_rate",null),(0,Un.Cg)([Qn()],Sr.prototype,"avg_rating",null),(0,Un.Cg)([Qn()],Sr.prototype,"collection",null),(0,Un.Cg)([Qn()],Sr.prototype,"collections_raw",null),(0,Un.Cg)([Qn()],Sr.prototype,"collection_size",null),(0,Un.Cg)([Qn()],Sr.prototype,"contact",null),(0,Un.Cg)([Qn()],Sr.prototype,"contributor",null),(0,Un.Cg)([Qn()],Sr.prototype,"coverage",null),(0,Un.Cg)([Qn()],Sr.prototype,"creator",null),(0,Un.Cg)([Qn()],Sr.prototype,"creator_alt_script",null),(0,Un.Cg)([Qn()],Sr.prototype,"credits",null),(0,Un.Cg)([Qn()],Sr.prototype,"collection_layout",null),(0,Un.Cg)([Qn()],Sr.prototype,"date",null),(0,Un.Cg)([Qn()],Sr.prototype,"description",null),(0,Un.Cg)([Qn()],Sr.prototype,"downloads",null),(0,Un.Cg)([Qn()],Sr.prototype,"duration",null),(0,Un.Cg)([Qn()],Sr.prototype,"external_identifier",null),(0,Un.Cg)([Qn()],Sr.prototype,"external_link",null),(0,Un.Cg)([Qn()],Sr.prototype,"files_count",null),(0,Un.Cg)([Qn()],Sr.prototype,"indexdate",null),(0,Un.Cg)([Qn()],Sr.prototype,"isbn",null),(0,Un.Cg)([Qn()],Sr.prototype,"issue",null),(0,Un.Cg)([Qn()],Sr.prototype,"item_count",null),(0,Un.Cg)([Qn()],Sr.prototype,"item_size",null),(0,Un.Cg)([Qn()],Sr.prototype,"language",null),(0,Un.Cg)([Qn()],Sr.prototype,"length",null),(0,Un.Cg)([Qn()],Sr.prototype,"licenseurl",null),(0,Un.Cg)([Qn()],Sr.prototype,"lineage",null),(0,Un.Cg)([Qn()],Sr.prototype,"month",null),(0,Un.Cg)([Qn()],Sr.prototype,"mediatype",null),(0,Un.Cg)([Qn()],Sr.prototype,"noindex",null),(0,Un.Cg)([Qn()],Sr.prototype,"notes",null),(0,Un.Cg)([Qn()],Sr.prototype,"num_favorites",null),(0,Un.Cg)([Qn()],Sr.prototype,"num_reviews",null),(0,Un.Cg)([Qn()],Sr.prototype,"openlibrary_edition",null),(0,Un.Cg)([Qn()],Sr.prototype,"openlibrary_work",null),(0,Un.Cg)([Qn()],Sr.prototype,"page_progression",null),(0,Un.Cg)([Qn()],Sr.prototype,"paginated",null),(0,Un.Cg)([Qn()],Sr.prototype,"partner",null),(0,Un.Cg)([Qn()],Sr.prototype,"post_text",null),(0,Un.Cg)([Qn()],Sr.prototype,"ppi",null),(0,Un.Cg)([Qn()],Sr.prototype,"publicdate",null),(0,Un.Cg)([Qn()],Sr.prototype,"publisher",null),(0,Un.Cg)([Qn()],Sr.prototype,"reviewdate",null),(0,Un.Cg)([Qn()],Sr.prototype,"rights",null),(0,Un.Cg)([Qn()],Sr.prototype,"rights_holder",null),(0,Un.Cg)([Qn()],Sr.prototype,"runtime",null),(0,Un.Cg)([Qn()],Sr.prototype,"scanner",null),(0,Un.Cg)([Qn()],Sr.prototype,"segments",null),(0,Un.Cg)([Qn()],Sr.prototype,"shotlist",null),(0,Un.Cg)([Qn()],Sr.prototype,"source",null),(0,Un.Cg)([Qn()],Sr.prototype,"sponsor",null),(0,Un.Cg)([Qn()],Sr.prototype,"start_localtime",null),(0,Un.Cg)([Qn()],Sr.prototype,"start_time",null),(0,Un.Cg)([Qn()],Sr.prototype,"stop_time",null),(0,Un.Cg)([Qn()],Sr.prototype,"subject",null),(0,Un.Cg)([Qn()],Sr.prototype,"taper",null),(0,Un.Cg)([Qn()],Sr.prototype,"title",null),(0,Un.Cg)([Qn()],Sr.prototype,"title_alt_script",null),(0,Un.Cg)([Qn()],Sr.prototype,"transferer",null),(0,Un.Cg)([Qn()],Sr.prototype,"track",null),(0,Un.Cg)([Qn()],Sr.prototype,"type",null),(0,Un.Cg)([Qn()],Sr.prototype,"uploader",null),(0,Un.Cg)([Qn()],Sr.prototype,"utc_offset",null),(0,Un.Cg)([Qn()],Sr.prototype,"venue",null),(0,Un.Cg)([Qn()],Sr.prototype,"volume",null),(0,Un.Cg)([Qn()],Sr.prototype,"week",null),(0,Un.Cg)([Qn()],Sr.prototype,"year",null);class Pr{get reviewbody(){return this.rawValue.reviewbody}get reviewtitle(){return this.rawValue.reviewtitle}get reviewer(){return this.rawValue.reviewer}get reviewer_itemname(){return this.rawValue.reviewer_itemname}get reviewdate(){return null!=this.rawValue.reviewdate?ir.shared.parseValue(this.rawValue.reviewdate):void 0}get createdate(){return null!=this.rawValue.createdate?ir.shared.parseValue(this.rawValue.createdate):void 0}get stars(){return null!=this.rawValue.stars?rr.shared.parseValue(this.rawValue.stars):void 0}constructor(e={}){this.rawValue=e}}(0,Un.Cg)([Qn()],Pr.prototype,"reviewdate",null),(0,Un.Cg)([Qn()],Pr.prototype,"createdate",null),(0,Un.Cg)([Qn()],Pr.prototype,"stars",null);class Or{constructor(e){var t,n;this.rawResponse=e,this.created=e.created,this.d1=e.d1,this.d2=e.d2,this.dir=e.dir,this.files=null===(t=e.files)||void 0===t?void 0:t.map(e=>new dr(e)),this.files_count=e.files_count,this.item_last_updated=e.item_last_updated,this.item_size=e.item_size,this.metadata=new Sr(e.metadata),this.server=e.server,this.uniq=e.uniq,this.workable_servers=e.workable_servers,this.speech_vs_music_asr=e.speech_vs_music_asr,this.reviews=null===(n=e.reviews)||void 0===n?void 0:n.map(e=>new Pr(e))}}var _r;!function(e){e.networkError="MetadataService.NetworkError",e.itemNotFound="MetadataService.ItemNotFound",e.decodingError="MetadataService.DecodingError",e.searchEngineError="MetadataService.SearchEngineError"}(_r||(_r={}));class Cr extends Error{constructor(e,t,n){super(t),this.name=e,this.type=e,this.details=n}}class Er{constructor(e){this.backend=e}async fetchMetadata(e){var t;const n=await this.backend.fetchMetadata(e);return n.error?n:void 0===(null===(t=n.success)||void 0===t?void 0:t.metadata)?{error:new Cr(_r.itemNotFound)}:{success:new Or(n.success)}}async fetchMetadataValue(e,t){var n;const r=await this.backend.fetchMetadata(e,t);return r.error?r:void 0===(null===(n=r.success)||void 0===n?void 0:n.result)?{error:new Cr(_r.itemNotFound)}:{success:r.success.result}}}Er.default=new Er(new class{constructor(e){var t;if(this.baseUrl=null!==(t=null==e?void 0:e.baseUrl)&&void 0!==t?t:"archive.org",void 0!==(null==e?void 0:e.includeCredentials)?this.includeCredentials=e.includeCredentials:this.includeCredentials=null!==window.location.href.match(/^https?:\/\/.*archive\.org(:[0-9]+)?/),void 0!==(null==e?void 0:e.scope))this.requestScope=e.scope;else{const e=new URL(window.location.href).searchParams.get("scope");e&&(this.requestScope=e)}}async fetchMetadata(e,t){const n=t?`/${t}`:"",r=`https://${this.baseUrl}/metadata/${e}${n}`;return this.fetchUrl(r,{requestOptions:{credentials:"omit"}})}async fetchUrl(e,t){var n;const r=new URL(e);let o;this.requestScope&&r.searchParams.set("scope",this.requestScope);try{const e=null!==(n=null==t?void 0:t.requestOptions)&&void 0!==n?n:{credentials:this.includeCredentials?"include":"same-origin"};o=await fetch(r.href,e)}catch(e){const t=e instanceof Error?e.message:"string"==typeof e?e:"Unknown error";return this.getErrorResult(_r.networkError,t)}try{const e=await o.json(),t=e.error;if(t){const n=e.forensics;return this.getErrorResult(_r.searchEngineError,t,n)}return{success:e}}catch(e){const t=e instanceof Error?e.message:"string"==typeof e?e:"Unknown error";return this.getErrorResult(_r.decodingError,t)}}getErrorResult(e,t,n){return{error:new Cr(e,t,n)}}}),r(6090);const jr=a.AH`42px`,Mr=a.AH`var(--menuWidth, 320px)`,Tr=a.AH`var(--animationTiming, 200ms)`;var Ar=a.AH`
198
+ `}render(){return o}}customElements.define("ia-icon-share",i)},2617:function(e){e.exports=function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||r.window},t.init=o,t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var r=void 0;function o(e){t.realWindow=n=e;var o=e.document.createTextNode("");o.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(o)===o&&(e=e.wrap(e)),t.window=r=e}t.window=r,"undefined"!=typeof window&&window&&o(window);var i={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=function(e){return!!e&&"object"===a(e)},u=function(e){return"function"==typeof e},l={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return s(e)&&11===e.nodeType},object:s,func:u,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==a(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?e instanceof Element||e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return s(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return s(e)&&void 0!==e.length&&u(e.splice)}};i.default=l;var c={};function d(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function f(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var r=n.prepared.axis;if("x"===r||"y"===r){var o="x"===r?"y":"x";t.page[o]=n.coords.start.page[o],t.client[o]=n.coords.start.client[o],t.delta[o]=0}}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var h={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.draggable=h.draggable,t.map.drag=h,t.methodDict.drag="draggable",r.actions.drag=h.defaults},listeners:{"interactions:before-action-move":d,"interactions:action-resume":d,"interactions:action-move":f,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.buttons,o=n.options.drag;if(o&&o.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(r&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===o.lockAxis?o.startAxis:o.lockAxis},!1}},draggable:function(e){return i.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):i.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:d,move:f,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},p=h;c.default=p;var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var m={init:function(e){var t=e;m.document=t.document,m.DocumentFragment=t.DocumentFragment||g,m.SVGElement=t.SVGElement||g,m.SVGSVGElement=t.SVGSVGElement||g,m.SVGElementInstance=t.SVGElementInstance||g,m.Element=t.Element||g,m.HTMLElement=t.HTMLElement||m.Element,m.Event=t.Event,m.Touch=t.Touch||g,m.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function g(){}var y=m;v.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var w={init:function(e){var t=v.default.Element,n=e.navigator||{};w.supportsTouch="ontouchstart"in e||i.default.func(e.DocumentTouch)&&v.default.document instanceof e.DocumentTouch,w.supportsPointerEvent=!1!==n.pointerEnabled&&!!v.default.PointerEvent,w.isIOS=/iP(hone|od|ad)/.test(n.platform),w.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),w.isIe9=/MSIE 9/.test(n.userAgent),w.isOperaMobile="Opera"===n.appName&&w.supportsTouch&&/Presto/.test(n.userAgent),w.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",w.pEventTypes=w.supportsPointerEvent?v.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,w.wheelEvent=v.default.document&&"onmousewheel"in v.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},k=w;b.default=k;var x={};function S(e){var t=e.parentNode;if(i.default.docFrag(t)){for(;(t=t.host)&&i.default.docFrag(t););return t}return t}function P(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[b.default.prefixedMatchesSelector](n)}Object.defineProperty(x,"__esModule",{value:!0}),x.closest=function(e,t){for(;i.default.element(e);){if(P(e,t))return e;e=S(e)}return null},x.getActualElement=function(e){return e.correspondingUseElement||e},x.getElementClientRect=E,x.getElementRect=function(e){var n=E(e);if(!b.default.isIOS7&&n){var r=C(t.getWindow(e));n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n},x.getPath=function(e){for(var t=[];e;)t.push(e),e=S(e);return t},x.getScrollXY=C,x.indexOfDeepestElement=function(e){for(var n,r=[],o=0;o<e.length;o++){var i=e[o],a=e[n];if(i&&o!==n)if(a){var s=O(i),u=O(a);if(s!==i.ownerDocument)if(u!==i.ownerDocument)if(s!==u){r=r.length?r:_(a);var l=void 0;if(a instanceof v.default.HTMLElement&&i instanceof v.default.SVGElement&&!(i instanceof v.default.SVGSVGElement)){if(i===u)continue;l=i.ownerSVGElement}else l=i;for(var c=_(l,a.ownerDocument),d=0;c[d]&&c[d]===r[d];)d++;var f=[c[d-1],c[d],r[d]];if(f[0])for(var h=f[0].lastChild;h;){if(h===f[1]){n=o,r=c;break}if(h===f[2])break;h=h.previousSibling}}else p=i,m=a,(parseInt(t.getWindow(p).getComputedStyle(p).zIndex,10)||0)>=(parseInt(t.getWindow(m).getComputedStyle(m).zIndex,10)||0)&&(n=o);else n=o}else n=o}var p,m;return n},x.matchesSelector=P,x.matchesUpTo=function(e,t,n){for(;i.default.element(e);){if(P(e,t))return!0;if((e=S(e))===n)return P(e,t)}return!1},x.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},x.parentNode=S,x.trySelector=function(e){return!!i.default.string(e)&&(v.default.document.querySelector(e),!0)};var O=function(e){return e.parentNode||e.host};function _(e,t){for(var n,r=[],o=e;(n=O(o))&&o!==t&&n!==o.ownerDocument;)r.unshift(o),o=n;return r}function C(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function E(e){var t=e instanceof v.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var j={};Object.defineProperty(j,"__esModule",{value:!0}),j.default=function(e,t){for(var n in t)e[n]=t[n];return e};var M={};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t,n){return"parent"===e?(0,x.parentNode)(n):"self"===e?t.getRect(n):(0,x.closest)(n,e)}Object.defineProperty(M,"__esModule",{value:!0}),M.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top},M.getStringOptionResult=A,M.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},M.resolveRectLike=function(e,t,n,r){var o,a=e;return i.default.string(a)?a=A(a,t,n):i.default.func(a)&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return T(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i.default.element(a)&&(a=(0,x.getElementRect)(a)),a},M.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,j.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},M.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,j.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e};var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.default=function(e,t,n){var r=e.options[n],o=r&&r.origin||e.options.origin,i=(0,M.resolveRectLike)(o,e,t,[e&&t]);return(0,M.rectToXY)(i)||{x:0,y:0}};var R={};function L(e){return e.trim().split(/ +/)}Object.defineProperty(R,"__esModule",{value:!0}),R.default=function e(t,n,r){if(r=r||{},i.default.string(t)&&-1!==t.search(" ")&&(t=L(t)),i.default.array(t))return t.reduce(function(t,o){return(0,j.default)(t,e(o,n,r))},r);if(i.default.object(t)&&(n=t,t=""),i.default.func(n))r[t]=r[t]||[],r[t].push(n);else if(i.default.array(n))for(var o=0;o<n.length;o++){var a;a=n[o],e(t,a,r)}else if(i.default.object(n))for(var s in n){var u=L(s).map(function(e){return"".concat(t).concat(e)});e(u,n[s],r)}return r};var B={};Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0,B.default=function(e,t){return Math.sqrt(e*e+t*t)};var $={};Object.defineProperty($,"__esModule",{value:!0}),$.default=function(e,t){e.__set||(e.__set={});var n=function(n){"function"!=typeof e[n]&&"__set"!==n&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var r in t)n(r);return e};var D={};function z(e){return e instanceof v.default.Event||e instanceof v.default.Touch}function F(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function N(e,t){return t=t||{x:0,y:0},b.default.isOperaMobile&&z(e)?(F("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):F("page",e,t),t}function U(e,t){return t=t||{},b.default.isOperaMobile&&z(e)?F("screen",e,t):F("client",e,t),t}function H(e){var t=[];return i.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function W(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var o in t)t[o]+=r[o]}for(var i in t)t[i]/=e.length;return t}Object.defineProperty(D,"__esModule",{value:!0}),D.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},D.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},D.getClientXY=U,D.getEventTargets=function(e){var t=i.default.func(e.composedPath)?e.composedPath():e.path;return[x.getActualElement(t?t[0]:e.target),x.getActualElement(e.currentTarget)]},D.getPageXY=N,D.getPointerId=function(e){return i.default.number(e.pointerId)?e.pointerId:e.identifier},D.getPointerType=function(e){return i.default.string(e.pointerType)?e.pointerType:i.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof v.default.Touch?"touch":"mouse"},D.getTouchPair=H,D.getXY=F,D.isNativePointer=z,D.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},D.pointerAverage=W,Object.defineProperty(D,"pointerExtend",{enumerable:!0,get:function(){return $.default}}),D.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},D.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},D.setCoords=function(e,t,n){var r=t.length>1?W(t):t[0];N(r,e.page),U(r,e.client),e.timeStamp=n},D.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},D.touchAngle=function(e,t){var n=t+"X",r=t+"Y",o=H(e),i=o[1][n]-o[0][n],a=o[1][r]-o[0][r];return 180*Math.atan2(a,i)/Math.PI},D.touchBBox=function(e){if(!e.length)return null;var t=H(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),o=Math.max(t[0].pageX,t[1].pageX),i=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,right:o,bottom:i,width:o-n,height:i-r}},D.touchDistance=function(e,t){var n=t+"X",r=t+"Y",o=H(e),i=o[0][n]-o[1][n],a=o[0][r]-o[1][r];return(0,B.default)(i,a)};var q={};function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(q,"__esModule",{value:!0}),q.BaseEvent=void 0;var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),V(this,"immediatePropagationStopped",!1),V(this,"propagationStopped",!1),this._interaction=t}var t,n;return t=e,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();q.BaseEvent=G,Object.defineProperty(G.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Z={};Object.defineProperty(Z,"__esModule",{value:!0}),Z.remove=Z.merge=Z.from=Z.findIndex=Z.find=Z.contains=void 0,Z.contains=function(e,t){return-1!==e.indexOf(t)},Z.remove=function(e,t){return e.splice(e.indexOf(t),1)};var X=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e};Z.merge=X,Z.from=function(e){return X([],e)};var Y=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};Z.findIndex=Y,Z.find=function(e,t){return e[Y(e,t)]};var K={};function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(K,"__esModule",{value:!0}),K.DropEvent=void 0;var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=te(r);if(o){var n=te(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ee(e)}(this,e)});function a(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ne(ee(r=i.call(this,t._interaction)),"dropzone",void 0),ne(ee(r),"dragEvent",void 0),ne(ee(r),"relatedTarget",void 0),ne(ee(r),"draggable",void 0),ne(ee(r),"propagationStopped",!1),ne(ee(r),"immediatePropagationStopped",!1);var o="dragleave"===n?e.prev:e.cur,s=o.element,u=o.dropzone;return r.type=n,r.target=s,r.currentTarget=s,r.dropzone=u,r.dragEvent=t,r.relatedTarget=t.target,r.draggable=t.interactable,r.timeStamp=t.timeStamp,r}return t=a,(n=[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,r=Z.findIndex(n,function(t){var n=t.dropzone,r=t.element;return n===e.dropzone&&r===e.target});t.activeDrops.splice(r,1);var o=new a(t,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new a(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(q.BaseEvent);K.DropEvent=re;var oe={};function ie(e,t){for(var n=0;n<e.slice().length;n++){var r=e.slice()[n],o=r.dropzone,i=r.element;t.dropzone=o,t.target=i,o.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function ae(e,t){for(var n=function(e,t){for(var n=e.interactables,r=[],o=0;o<n.list.length;o++){var a=n.list[o];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(i.default.element(s)&&s!==t||i.default.string(s)&&!x.matchesSelector(t,s)||i.default.func(s)&&!s({dropzone:a,draggableElement:t})))for(var u=i.default.string(a.target)?a._context.querySelectorAll(a.target):i.default.array(a.target)?a.target:[a.target],l=0;l<u.length;l++){var c=u[l];c!==t&&r.push({dropzone:a,element:c,rect:a.getRect(c)})}}}return r}(e,t),r=0;r<n.length;r++){var o=n[r];o.rect=o.dropzone.getRect(o.element)}return n}function se(e,t,n){for(var r=e.dropState,o=e.interactable,i=e.element,a=[],s=0;s<r.activeDrops.length;s++){var u=r.activeDrops[s],l=u.dropzone,c=u.element,d=u.rect;a.push(l.dropCheck(t,n,o,i,c,d)?c:null)}var f=x.indexOfDeepestElement(a);return r.activeDrops[f]||null}function ue(e,t,n){var r=e.dropState,o={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(o.activate=new K.DropEvent(r,n,"dropactivate"),o.activate.target=null,o.activate.dropzone=null),"dragend"===n.type&&(o.deactivate=new K.DropEvent(r,n,"dropdeactivate"),o.deactivate.target=null,o.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(o.leave=new K.DropEvent(r,n,"dragleave"),n.dragLeave=o.leave.target=r.prev.element,n.prevDropzone=o.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(o.enter=new K.DropEvent(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(o.drop=new K.DropEvent(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(o.move=new K.DropEvent(r,n,"dropmove"),o.move.dragmove=n,n.dropzone=r.cur.dropzone)),o}function le(e,t){var n=e.dropState,r=n.activeDrops,o=n.cur,i=n.prev;t.leave&&i.dropzone.fire(t.leave),t.enter&&o.dropzone.fire(t.enter),t.move&&o.dropzone.fire(t.move),t.drop&&o.dropzone.fire(t.drop),t.deactivate&&ie(r,t.deactivate),n.prev.dropzone=o.dropzone,n.prev.element=o.element}function ce(e,t){var n=e.interaction,r=e.iEvent,o=e.event;if("dragmove"===r.type||"dragend"===r.type){var i=n.dropState;t.dynamicDrop&&(i.activeDrops=ae(t,n.element));var a=r,s=se(n,a,o);i.rejected=i.rejected&&!!s&&s.dropzone===i.cur.dropzone&&s.element===i.cur.element,i.cur.dropzone=s&&s.dropzone,i.cur.element=s&&s.element,i.events=ue(n,0,a)}}Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;var de={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,r=e.Interactable,o=e.defaults;e.usePlugin(c.default),r.prototype.dropzone=function(e){return function(e,t){if(i.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,R.default)(t.listeners),r=Object.keys(n).reduce(function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e},{});e.off(e.options.drop.listeners),e.on(r),e.options.drop.listeners=r}return i.default.func(t.ondrop)&&e.on("drop",t.ondrop),i.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),i.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),i.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),i.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),i.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:i.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return i.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},r.prototype.dropCheck=function(e,t,n,r,o,a){return function(e,t,n,r,o,a,s){var u=!1;if(!(s=s||e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,u,e,a,r,o);var l=e.options.drop.overlap;if("pointer"===l){var c=(0,I.default)(r,o,"drag"),d=D.getPageXY(t);d.x+=c.x,d.y+=c.y;var f=d.x>s.left&&d.x<s.right,h=d.y>s.top&&d.y<s.bottom;u=f&&h}var p=r.getRect(o);if(p&&"center"===l){var v=p.left+p.width/2,m=p.top+p.height/2;u=v>=s.left&&v<=s.right&&m>=s.top&&m<=s.bottom}return p&&i.default.number(l)&&(u=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=l),e.options.drop.checker&&(u=e.options.drop.checker(t,n,u,e,a,r,o)),u}(this,e,t,n,r,o,a)},n.dynamicDrop=function(t){return i.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,j.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,o.actions.drop=de.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,r=(e.event,e.iEvent);if("drag"===n.prepared.name){var o=n.dropState;o.activeDrops=null,o.events=null,o.activeDrops=ae(t,n.element),o.events=ue(n,0,r),o.events.activate&&(ie(o.activeDrops,o.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":ce,"interactions:after-action-move":function(e,t){var n=e.interaction,r=e.iEvent;"drag"===n.prepared.name&&(le(n,n.dropState.events),t.fire("actions/drop:move",{interaction:n,dragEvent:r}),n.dropState.events={})},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,r=e.iEvent;ce(e,t),le(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:ae,getDrop:se,getDropEvents:ue,fireDropEvents:le,defaults:{enabled:!1,accept:null,overlap:"pointer"}},fe=de;oe.default=fe;var he={};function pe(e){var t=e.interaction,n=e.iEvent,r=e.phase;if("gesture"===t.prepared.name){var o=t.pointers.map(function(e){return e.pointer}),a="start"===r,s="end"===r,u=t.interactable.options.deltaSource;if(n.touches=[o[0],o[1]],a)n.distance=D.touchDistance(o,u),n.box=D.touchBBox(o),n.scale=1,n.ds=0,n.angle=D.touchAngle(o,u),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s){var l=t.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=D.touchDistance(o,u),n.box=D.touchBBox(o),n.scale=n.distance/t.gesture.startDistance,n.angle=D.touchAngle(o,u),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,i.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(he,"__esModule",{value:!0}),he.default=void 0;var ve={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.gesturable=function(e){return i.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):i.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=ve,t.methodDict.gesture="gesturable",r.actions.gesture=ve.defaults},listeners:{"interactions:action-start":pe,"interactions:action-move":pe,"interactions:action-end":pe,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},me=ve;he.default=me;var ge={};function ye(e,t,n,r,o,a,s){if(!t)return!1;if(!0===t){var u=i.default.number(a.width)?a.width:a.right-a.left,l=i.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?u:l)/2)),u<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var c=u>=0?a.left:a.right;return n.x<c+s}if("top"===e){var d=l>=0?a.top:a.bottom;return n.y<d+s}if("right"===e)return n.x>(u>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(l>=0?a.bottom:a.top)-s}return!!i.default.element(r)&&(i.default.element(t)?t===r:x.matchesUpTo(r,t,o))}function be(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var r=t;n.interactable.options.resize.square?("y"===n.resizeAxes?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,"x"===n.resizeAxes?r.delta.y=0:"y"===n.resizeAxes&&(r.delta.x=0))}}Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0;var we={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,r=e.Interactable,o=e.defaults;we.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),we.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(t){return function(e,t,n){return i.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),i.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),i.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:i.default.bool(t.square)&&(e.options.resize.square=t.square),e):i.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=we,t.methodDict.resize="resizable",o.actions.resize=we.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,o=n.rect;n._rects={start:(0,j.default)({},o),corrected:(0,j.default)({},o),previous:(0,j.default)({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}}(e),be(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,o=n.interactable.options.resize.invert,i="reposition"===o||"negate"===o,a=n.rect,s=n._rects,u=s.start,l=s.corrected,c=s.delta,d=s.previous;if((0,j.default)(d,l),i){if((0,j.default)(l,a),"reposition"===o){if(l.top>l.bottom){var f=l.top;l.top=l.bottom,l.bottom=f}if(l.left>l.right){var h=l.left;l.left=l.right,l.right=h}}}else l.top=Math.min(a.top,u.bottom),l.bottom=Math.max(a.bottom,u.top),l.left=Math.min(a.left,u.right),l.right=Math.max(a.right,u.left);for(var p in l.width=l.right-l.left,l.height=l.bottom-l.top,l)c[p]=l[p]-d[p];r.edges=n.prepared.edges,r.rect=l,r.deltaRect=c}}(e),be(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.element,o=e.rect,a=e.buttons;if(o){var s=(0,j.default)({},t.coords.cur.page),u=n.options.resize;if(u&&u.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(a&u.mouseButtons))){if(i.default.object(u.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=ye(c,u.edges[c],s,t._latestPointer.eventTarget,r,o,u.margin||we.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(e.action={name:"resize",edges:l})}else{var d="y"!==u.axis&&s.x>o.right-we.defaultMargin,f="x"!==u.axis&&s.y>o.bottom-we.defaultMargin;(d||f)&&(e.action={name:"resize",axes:(d?"x":"")+(f?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,o=we.cursors,i=null;if(n)i=o[r+n];else if(t){for(var a="",s=["top","bottom","left","right"],u=0;u<s.length;u++){var l=s[u];t[l]&&(a+=l)}i=o[a]}return i},defaultMargin:null},ke=we;ge.default=ke;var xe={};Object.defineProperty(xe,"__esModule",{value:!0}),xe.default=void 0;var Se={id:"actions",install:function(e){e.usePlugin(he.default),e.usePlugin(ge.default),e.usePlugin(c.default),e.usePlugin(oe.default)}};xe.default=Se;var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=void 0;var Oe,_e,Ce=0,Ee={request:function(e){return Oe(e)},cancel:function(e){return _e(e)},init:function(e){if(Oe=e.requestAnimationFrame,_e=e.cancelAnimationFrame,!Oe)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var r=t[n];Oe=e["".concat(r,"RequestAnimationFrame")],_e=e["".concat(r,"CancelAnimationFrame")]||e["".concat(r,"CancelRequestAnimationFrame")]}Oe=Oe&&Oe.bind(e),_e=_e&&_e.bind(e),Oe||(Oe=function(t){var n=Date.now(),r=Math.max(0,16-(n-Ce)),o=e.setTimeout(function(){t(n+r)},r);return Ce=n+r,o},_e=function(e){return clearTimeout(e)})}};Pe.default=Ee;var je={};Object.defineProperty(je,"__esModule",{value:!0}),je.default=void 0,je.getContainer=Te,je.getScroll=Ae,je.getScrollSize=function(e){return i.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},je.getScrollSizeDelta=function(e,t){var n=e.interaction,r=e.element,o=n&&n.interactable.options[n.prepared.name].autoScroll;if(!o||!o.enabled)return t(),{x:0,y:0};var i=Te(o.container,n.interactable,r),a=Ae(i);t();var s=Ae(i);return{x:s.x-a.x,y:s.y-a.y}};var Me={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Me.isScrolling=!0,Pe.default.cancel(Me.i),e.autoScroll=Me,Me.interaction=e,Me.prevTime=Me.now(),Me.i=Pe.default.request(Me.scroll)},stop:function(){Me.isScrolling=!1,Me.interaction&&(Me.interaction.autoScroll=null),Pe.default.cancel(Me.i)},scroll:function(){var e=Me.interaction,t=e.interactable,n=e.element,r=e.prepared.name,o=t.options[r].autoScroll,a=Te(o.container,t,n),s=Me.now(),u=(s-Me.prevTime)/1e3,l=o.speed*u;if(l>=1){var c={x:Me.x*l,y:Me.y*l};if(c.x||c.y){var d=Ae(a);i.default.window(a)?a.scrollBy(c.x,c.y):a&&(a.scrollLeft+=c.x,a.scrollTop+=c.y);var f=Ae(a),h={x:f.x-d.x,y:f.y-d.y};(h.x||h.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:h,interaction:e,container:a})}Me.prevTime=s}Me.isScrolling&&(Pe.default.cancel(Me.i),Me.i=Pe.default.request(Me.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Me.check(t.interactable,t.prepared.name))if(t.simulation)Me.x=Me.y=0;else{var r,o,a,s,u=t.interactable,l=t.element,c=t.prepared.name,d=u.options[c].autoScroll,f=Te(d.container,u,l);if(i.default.window(f))s=n.clientX<Me.margin,r=n.clientY<Me.margin,o=n.clientX>f.innerWidth-Me.margin,a=n.clientY>f.innerHeight-Me.margin;else{var h=x.getElementClientRect(f);s=n.clientX<h.left+Me.margin,r=n.clientY<h.top+Me.margin,o=n.clientX>h.right-Me.margin,a=n.clientY>h.bottom-Me.margin}Me.x=o?1:s?-1:0,Me.y=a?1:r?-1:0,Me.isScrolling||(Me.margin=d.margin,Me.speed=d.speed,Me.start(t))}}};function Te(e,n,r){return(i.default.string(e)?(0,M.getStringOptionResult)(e,n,r):e)||(0,t.getWindow)(r)}function Ae(e){return i.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Ie={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Me,Me.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Me.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Me.stop(),Me.interaction&&(Me.interaction=null)},"interactions:stop":Me.stop,"interactions:action-move":function(e){return Me.onInteractionMove(e)}}},Re=Ie;je.default=Re;var Le={};Object.defineProperty(Le,"__esModule",{value:!0}),Le.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Le.sign=void 0,Le.warnOnce=function(e,n){var r=!1;return function(){return r||(t.window.console.warn(n),r=!0),e.apply(this,arguments)}},Le.sign=function(e){return e>=0?1:-1};var Be={};function $e(e){return i.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function De(e){return i.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=void 0;var ze={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,r,o){var i=function(e,t,n,r,o){var i=e.getRect(r),a={action:null,interactable:e,interaction:n,element:r,rect:i,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return o.fire("auto-start:check",a),a.action}(this,n,r,o,e);return this.options.actionChecker?this.options.actionChecker(t,n,i,this,o,r):i},t.prototype.ignoreFrom=(0,Le.warnOnce)(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,Le.warnOnce)(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=De,t.prototype.styleCursor=$e}};Be.default=ze;var Fe={};function Ne(e,t,n,r,o){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&qe(t,n,e,o)?e:null}function Ue(e,t,n,r,o,i,a){for(var s=0,u=r.length;s<u;s++){var l=r[s],c=o[s],d=l.getAction(t,n,e,c);if(d){var f=Ne(d,l,c,i,a);if(f)return{action:f,interactable:l,element:c}}}return{action:null,interactable:null,element:null}}function He(e,t,n,r,o){var a=[],s=[],u=r;function l(e){a.push(e),s.push(u)}for(;i.default.element(u);){a=[],s=[],o.interactables.forEachMatch(u,l);var c=Ue(e,t,n,a,s,r,o);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;u=x.parentNode(u)}return{action:null,interactable:null,element:null}}function We(e,t,n){var r=t.action,o=t.interactable,i=t.element;r=r||{name:null},e.interactable=o,e.element=i,(0,Le.copyAction)(e.prepared,r),e.rect=o&&r.name?o.getRect(i):null,Ze(e,n),n.fire("autoStart:prepared",{interaction:e})}function qe(e,t,n,r){var o=e.options,i=o[n.name].max,a=o[n.name].maxPerElement,s=r.autoStart.maxInteractions,u=0,l=0,c=0;if(!(i&&a&&s))return!1;for(var d=0;d<r.interactions.list.length;d++){var f=r.interactions.list[d],h=f.prepared.name;if(f.interacting()){if(++u>=s)return!1;if(f.interactable===e){if((l+=h===n.name?1:0)>=i)return!1;if(f.element===t&&(c++,h===n.name&&c>=a))return!1}}}return s>0}function Ve(e,t){return i.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Ge(e,t,n){var r=n.autoStart.cursorElement;r&&r!==e&&(r.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function Ze(e,t){var n=e.interactable,r=e.element,o=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var a="";if(o.name){var s=n.options[o.name].cursorChecker;a=i.default.func(s)?s(o,n,r,e._interacting):t.actions.map[o.name].getCursor(o)}Ge(e.element,a||"",t)}else t.autoStart.cursorElement&&Ge(t.autoStart.cursorElement,"",t)}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var Xe={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(Be.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,j.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return Ve(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:qe,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.interacting()||We(n,He(n,r,o,i,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||We(n,He(n,r,o,i,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var r=n.interactable,o=n.prepared.name;o&&r&&(r.options[o].manualStart||!qe(r,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,r,n.element),Ze(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,r=n.interactable;r&&r.options.styleCursor&&Ge(n.element,"",t)}},maxInteractions:Ve,withinInteractionLimit:qe,validateAction:Ne},Ye=Xe;Fe.default=Ye;var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=void 0;var Je={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,r=e.eventTarget,o=e.dx,a=e.dy;if("drag"===n.prepared.name){var s=Math.abs(o),u=Math.abs(a),l=n.interactable.options.drag,c=l.startAxis,d=s>u?"x":s<u?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?d[0]:l.lockAxis,"xy"!==d&&"xy"!==c&&c!==d){n.prepared.name=null;for(var f=r,h=function(e){if(e!==n.interactable){var o=n.interactable.options.drag;if(!o.manualStart&&e.testIgnoreAllow(o,f,r)){var i=e.getAction(n.downPointer,n.downEvent,n,f);if(i&&"drag"===i.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(d,e)&&Fe.default.validateAction(i,e,f,r,t))return e}}};i.default.element(f);){var p=t.interactables.forEachMatch(f,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=f;break}f=(0,x.parentNode)(f)}}}}}};Ke.default=Je;var Qe={};function et(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=void 0;var tt={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(Fe.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=et(t);n>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;et(t)>0&&(t.prepared.name=null)}},getHoldDuration:et},nt=tt;Qe.default=nt;var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ot={id:"auto-start",install:function(e){e.usePlugin(Fe.default),e.usePlugin(Qe.default),e.usePlugin(Ke.default)}};rt.default=ot;var it={};function at(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):i.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function st(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function ut(e){var n=e.Interactable;n.prototype.preventDefault=at,n.prototype.checkAndPreventDefault=function(n){return function(e,n,r){var o=e.options.preventDefault;if("never"!==o)if("always"!==o){if(n.events.supportsPassive&&/^touch(start|move)$/.test(r.type)){var a=(0,t.getWindow)(r.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(r.type)||i.default.element(r.target)&&(0,x.matchesSelector)(r.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||r.preventDefault()}else r.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var r=e.interactions.list[n];if(r.element&&(r.element===t.target||(0,x.nodeContains)(r.element,t.target)))return void r.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0,it.install=ut;var lt={id:"core/interactablePreventDefault",install:ut,listeners:["down","move","up","cancel"].reduce(function(e,t){return e["interactions:".concat(t)]=st,e},{})};it.default=lt;var ct={};Object.defineProperty(ct,"__esModule",{value:!0}),ct.default=void 0,ct.default={};var dt,ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(dt||(dt={})),dt.touchAction,dt.boxSizing,dt.noListeners;ft.default={id:"dev-tools",install:function(){}};var ht={};Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=function e(t){var n={};for(var r in t){var o=t[r];i.default.plainObject(o)?n[r]=e(o):i.default.array(o)?n[r]=Z.from(o):n[r]=o}return n};var pt={};function vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=void 0,pt.getRectOffset=wt;var yt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gt(this,"states",[]),gt(this,"startOffset",{left:0,right:0,top:0,bottom:0}),gt(this,"startDelta",void 0),gt(this,"result",void 0),gt(this,"endResult",void 0),gt(this,"startEdges",void 0),gt(this,"edges",void 0),gt(this,"interaction",void 0),this.interaction=t,this.result=bt(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}var t,n;return t=e,(n=[{key:"start",value:function(e,t){var n=e.phase,r=this.interaction,o=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}}).filter(function(e){return!!e})}(r);this.prepareStates(o),this.startEdges=(0,j.default)({},r.edges),this.edges=(0,j.default)({},this.startEdges),this.startOffset=wt(r.rect,t),this.startDelta={x:0,y:0};var i=this.fillArg({phase:n,pageCoords:t,preEnd:!1});return this.result=bt(),this.startAll(i),this.result=this.setAll(i)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect||(e.rect=t.rect),e.edges||(e.edges=this.startEdges),e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,r=e.skipModifiers,o=e.rect,i=e.edges;e.coords=(0,j.default)({},e.pageCoords),e.rect=(0,j.default)({},o),e.edges=(0,j.default)({},i);for(var a=r?this.states.slice(r):this.states,s=bt(e.coords,e.rect),u=0;u<a.length;u++){var l,c=a[u],d=c.options,f=(0,j.default)({},e.coords),h=null;null!=(l=c.methods)&&l.set&&this.shouldDo(d,n,t)&&(e.state=c,h=c.methods.set(e),M.addEdges(e.edges,e.rect,{x:e.coords.x-f.x,y:e.coords.y-f.y})),s.eventProps.push(h)}(0,j.default)(this.edges,e.edges),s.delta.x=e.coords.x-e.pageCoords.x,s.delta.y=e.coords.y-e.pageCoords.y,s.rectDelta.left=e.rect.left-o.left,s.rectDelta.right=e.rect.right-o.right,s.rectDelta.top=e.rect.top-o.top,s.rectDelta.bottom=e.rect.bottom-o.bottom;var p=this.result.coords,v=this.result.rect;if(p&&v){var m=s.rect.left!==v.left||s.rect.right!==v.right||s.rect.top!==v.top||s.rect.bottom!==v.bottom;s.changed=m||p.x!==s.coords.x||p.y!==s.coords.y}return s}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,r=t.coords.cur,o=t.coords.start,i=this.result,a=this.startDelta,s=i.delta;"start"===n&&(0,j.default)(this.startDelta,i.delta);for(var u=0;u<2;u++){var l=vt([[o,a],[r,s]][u],2),c=l[0],d=l[1];c.page.x+=d.x,c.page.y+=d.y,c.client.x+=d.x,c.client.y+=d.y}var f=this.result.rectDelta,h=e.rect||t.rect;h.left+=f.left,h.right+=f.right,h.top+=f.top,h.bottom+=f.bottom,h.width=h.right-h.left,h.height=h.bottom-h.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,r=e.preEnd,o=e.skipModifiers,i=this.setAll(this.fillArg({preEnd:r,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=i,!i.changed&&(!o||o<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};i.coords.x+=s.x,i.coords.y+=s.y,i.delta.x+=s.x,i.delta.y+=s.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,r=this.states;if(r&&r.length){for(var o=!1,i=0;i<r.length;i++){var a=r[i];e.state=a;var s=a.options,u=a.methods,l=u.beforeEnd&&u.beforeEnd(e);if(l)return this.endResult=l,!1;o=o||!o&&this.shouldDo(s,!0,e.phase,!0)}o&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,j.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var r=0;r<this.states.length;r++){var o=this.states[r];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.options,o=n.methods,i=n.name;this.states.push({options:r,methods:o,index:t,name:i})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,r=t.rect,o=t.modification;if(o.result){for(var i=o.startDelta,a=o.result,s=a.delta,u=a.rectDelta,l=[[n.start,i],[n.cur,s]],c=0;c<l.length;c++){var d=vt(l[c],2),f=d[0],h=d[1];f.page.x-=h.x,f.page.y-=h.y,f.client.x-=h.x,f.client.y-=h.y}r.left-=u.left,r.right-=u.right,r.top-=u.top,r.bottom-=u.bottom}}},{key:"shouldDo",value:function(e,t,n,r){return!(!e||!1===e.enabled||r&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map(function(e){return(0,ht.default)(e)}),this.result=bt((0,j.default)({},e.result.coords),(0,j.default)({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}pt.default=yt;var kt={};function xt(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(kt,"__esModule",{value:!0}),kt.addEventModifiers=xt,kt.default=void 0,kt.makeModifier=function(e,t){var n=e.defaults,r={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},o=function(e){var o=e||{};for(var i in o.enabled=!1!==o.enabled,n)i in o||(o[i]=n[i]);var a={options:o,methods:r,name:t,enable:function(){return o.enabled=!0,a},disable:function(){return o.enabled=!1,a}};return a};return t&&"string"==typeof t&&(o._defaults=n,o._methods=r),o};var St={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new pt.default(t)},"interactions:before-action-start":function(e){var t=e.interaction,n=e.interaction.modification;n.start(e,t.coords.start.page),t.edges=n.edges,n.applyToInteraction(e)},"interactions:before-action-move":function(e){var t=e.interaction,n=t.modification,r=n.setAndApply(e);return t.edges=n.edges,r},"interactions:before-action-end":function(e){var t=e.interaction,n=t.modification,r=n.beforeEnd(e);return t.edges=n.startEdges,r},"interactions:action-start":xt,"interactions:action-move":xt,"interactions:action-end":xt,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}},Pt=St;kt.default=Pt;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.defaults=void 0,Ot.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var _t={};function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function Et(e,t){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Et(e,t)}function jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(_t,"__esModule",{value:!0}),_t.InteractEvent=void 0;var At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Mt(r);if(o){var n=Mt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jt(e)}(this,e)});function a(e,t,n,r,o,s,u){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Tt(jt(l=i.call(this,e)),"relatedTarget",null),Tt(jt(l),"screenX",void 0),Tt(jt(l),"screenY",void 0),Tt(jt(l),"button",void 0),Tt(jt(l),"buttons",void 0),Tt(jt(l),"ctrlKey",void 0),Tt(jt(l),"shiftKey",void 0),Tt(jt(l),"altKey",void 0),Tt(jt(l),"metaKey",void 0),Tt(jt(l),"page",void 0),Tt(jt(l),"client",void 0),Tt(jt(l),"delta",void 0),Tt(jt(l),"rect",void 0),Tt(jt(l),"x0",void 0),Tt(jt(l),"y0",void 0),Tt(jt(l),"t0",void 0),Tt(jt(l),"dt",void 0),Tt(jt(l),"duration",void 0),Tt(jt(l),"clientX0",void 0),Tt(jt(l),"clientY0",void 0),Tt(jt(l),"velocity",void 0),Tt(jt(l),"speed",void 0),Tt(jt(l),"swipe",void 0),Tt(jt(l),"axes",void 0),Tt(jt(l),"preEnd",void 0),o=o||e.element;var c=e.interactable,d=(c&&c.options||Ot.defaults).deltaSource,f=(0,I.default)(c,o,n),h="start"===r,p="end"===r,v=h?jt(l):e.prevEvent,m=h?e.coords.start:p?{page:v.page,client:v.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return l.page=(0,j.default)({},m.page),l.client=(0,j.default)({},m.client),l.rect=(0,j.default)({},e.rect),l.timeStamp=m.timeStamp,p||(l.page.x-=f.x,l.page.y-=f.y,l.client.x-=f.x,l.client.y-=f.y),l.ctrlKey=t.ctrlKey,l.altKey=t.altKey,l.shiftKey=t.shiftKey,l.metaKey=t.metaKey,l.button=t.button,l.buttons=t.buttons,l.target=o,l.currentTarget=o,l.preEnd=s,l.type=u||n+(r||""),l.interactable=c,l.t0=h?e.pointers[e.pointers.length-1].downTime:v.t0,l.x0=e.coords.start.page.x-f.x,l.y0=e.coords.start.page.y-f.y,l.clientX0=e.coords.start.client.x-f.x,l.clientY0=e.coords.start.client.y-f.y,l.delta=h||p?{x:0,y:0}:{x:l[d].x-v[d].x,y:l[d].y-v[d].y},l.dt=e.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,j.default)({},e.coords.velocity[d]),l.speed=(0,B.default)(l.velocity.x,l.velocity.y),l.swipe=p||"inertiastart"===r?l.getSwipe():null,l}return t=a,(n=[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5;return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(q.BaseEvent);_t.InteractEvent=At,Object.defineProperties(At.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var It={};function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(It,"__esModule",{value:!0}),It.PointerInfo=void 0;var Bt=function(e,t,n){return t&&Rt(e.prototype,t),n&&Rt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Lt(this,"id",void 0),Lt(this,"pointer",void 0),Lt(this,"event",void 0),Lt(this,"downTime",void 0),Lt(this,"downTarget",void 0),this.id=t,this.pointer=n,this.event=r,this.downTime=o,this.downTarget=i});It.PointerInfo=Bt;var $t,Dt,zt={};function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(zt,"__esModule",{value:!0}),zt.Interaction=void 0,Object.defineProperty(zt,"PointerInfo",{enumerable:!0,get:function(){return It.PointerInfo}}),zt.default=zt._ProxyValues=zt._ProxyMethods=void 0,zt._ProxyValues=$t,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}($t||(zt._ProxyValues=$t={})),zt._ProxyMethods=Dt,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(Dt||(zt._ProxyMethods=Dt={}));var Nt=0,Ut=function(){function e(t){var n=this,r=t.pointerType,o=t.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ft(this,"interactable",null),Ft(this,"element",null),Ft(this,"rect",null),Ft(this,"_rects",void 0),Ft(this,"edges",null),Ft(this,"_scopeFire",void 0),Ft(this,"prepared",{name:null,axis:null,edges:null}),Ft(this,"pointerType",void 0),Ft(this,"pointers",[]),Ft(this,"downEvent",null),Ft(this,"downPointer",{}),Ft(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),Ft(this,"prevEvent",null),Ft(this,"pointerIsDown",!1),Ft(this,"pointerWasMoved",!1),Ft(this,"_interacting",!1),Ft(this,"_ending",!1),Ft(this,"_stopped",!0),Ft(this,"_proxy",null),Ft(this,"simulation",null),Ft(this,"doMove",(0,Le.warnOnce)(function(e){this.move(e)},"The interaction.doMove() method has been renamed to interaction.move()")),Ft(this,"coords",{start:D.newCoords(),prev:D.newCoords(),cur:D.newCoords(),delta:D.newCoords(),velocity:D.newCoords()}),Ft(this,"_id",Nt++),this._scopeFire=o,this.pointerType=r;var i=this;this._proxy={};var a=function(e){Object.defineProperty(n._proxy,e,{get:function(){return i[e]}})};for(var s in $t)a(s);var u=function(e){Object.defineProperty(n._proxy,e,{value:function(){return i[e].apply(i,arguments)}})};for(var l in Dt)u(l);this._scopeFire("interactions:new",{interaction:this})}var t,n;return t=e,n=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var r=this.updatePointer(e,t,n,!0),o=this.pointers[r];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,Le.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,j.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var r,o,i=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,B.default)(r,o)>this.pointerMoveTolerance);var a=this.getPointerIndex(e),s={pointer:e,pointerIndex:a,pointerInfo:this.pointers[a],event:t,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||D.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),i||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&D.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||D.setZeroCoords(this.coords.delta),(e=(0,j.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,r){var o=this.getPointerIndex(e);-1===o&&(o=this.updatePointer(e,t,n,!1));var i=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(i),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:t,eventTarget:n,type:i,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=D.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:Z.findIndex(this.pointers,function(e){return e.id===t})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,r){var o=D.getPointerId(e),i=this.getPointerIndex(e),a=this.pointers[i];return r=!1!==r&&(r||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new It.PointerInfo(o,e,t,null,null),i=this.pointers.length,this.pointers.push(a)),D.setCoords(this.coords.cur,this.pointers.map(function(e){return e.pointer}),this._now()),D.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),r&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,D.pointerExtend(this.downPointer,e),this.interacting()||(D.copyCoords(this.coords.start,this.coords.cur),D.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:r,pointerInfo:a,pointerIndex:i,interaction:this}),i}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,r){return new _t.InteractEvent(this,e,this.prepared.name,t,this.element,n,r)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,r=e.preEnd,o=e.type,i=this.rect;if(i&&"move"===n&&(M.addEdges(this.edges,i,this.coords.delta[this.interactable.options.deltaSource]),i.width=i.right-i.left,i.height=i.bottom-i.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,r,o);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();zt.Interaction=Ut;var Ht=Ut;zt.default=Ht;var Wt={};function qt(e){e.pointerIsDown&&(Xt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function Vt(e){Gt(e.interaction)}function Gt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Xt(e.coords.cur,t),Xt(e.coords.delta,t),M.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Zt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Xt(e,t){var n=e.page,r=e.client,o=t.x,i=t.y;n.x+=o,n.y+=i,r.x+=o,r.y+=i}Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.addTotal=qt,Wt.applyPending=Gt,Wt.default=void 0,zt._ProxyMethods.offsetBy="";var Yt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Zt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return qt(e.interaction)},"interactions:before-action-start":Vt,"interactions:before-action-move":Vt,"interactions:before-action-end":function(e){var t=e.interaction;if(Gt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Kt=Yt;Wt.default=Kt;var Jt={};function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=Jt.InertiaState=void 0;var en=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qt(this,"active",!1),Qt(this,"isModified",!1),Qt(this,"smoothEnd",!1),Qt(this,"allowResume",!1),Qt(this,"modification",void 0),Qt(this,"modifierCount",0),Qt(this,"modifierArg",void 0),Qt(this,"startCoords",void 0),Qt(this,"t0",0),Qt(this,"v0",0),Qt(this,"te",0),Qt(this,"targetOffset",void 0),Qt(this,"modifiedOffset",void 0),Qt(this,"currentOffset",void 0),Qt(this,"lambda_v0",0),Qt(this,"one_ve_v0",0),Qt(this,"timeout",void 0),Qt(this,"interaction",void 0),this.interaction=t}var t,n;return t=e,(n=[{key:"start",value:function(e){var t=this.interaction,n=tn(t);if(!n||!n.enabled)return!1;var r=t.coords.velocity.client,o=(0,B.default)(r.x,r.y),i=this.modification||(this.modification=new pt.default(t));if(i.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=i.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&o>n.minSpeed&&o>n.endSpeed)this.startInertia();else{if(i.result=i.setAll(this.modifierArg),!i.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=tn(this.interaction),r=n.resistance,o=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(t.x-o)/r,y:(t.y-o)/r},this.te=o,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var i=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},i.result=i.setAll(a),i.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+i.result.delta.x,y:this.targetOffset.y+i.result.delta.y}),this.onNextFrame(function(){return e.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return e.smoothEndTick()})}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Pe.default.request(function(){t.active&&e()})}},{key:"inertiaTick",value:function(){var e,t,n,r,o,i=this,a=this.interaction,s=tn(a).resistance,u=(a._now()-this.t0)/1e3;if(u<this.te){var l,c=1-(Math.exp(-s*u)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,r=this.modifiedOffset.y,l={x:rn(o=c,0,e,n),y:rn(o,0,t,r)}):l={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var d={x:l.x-this.currentOffset.x,y:l.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,a.offsetBy(d),a.move(),this.onNextFrame(function(){return i.inertiaTick()})}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,r=tn(t).smoothEndDuration;if(n<r){var o={x:on(n,0,this.targetOffset.x,r),y:on(n,0,this.targetOffset.y,r)},i={x:o.x-this.currentOffset.x,y:o.y-this.currentOffset.y};this.currentOffset.x+=i.x,this.currentOffset.y+=i.y,t.offsetBy(i),t.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return e.smoothEndTick()})}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,r=e.eventTarget,o=this.interaction;o.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),o.updatePointer(t,n,r,!0),o._doPhase({interaction:o,event:n,phase:"resume"}),(0,D.copyCoords)(o.coords.prev,o.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Pe.default.cancel(this.timeout)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}Jt.InertiaState=en;var nn={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Wt.default),e.usePlugin(kt.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new en(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,r=t.inertia;if(r.active)for(var o=n;i.default.element(o);){if(o===t.element){r.resume(e);break}o=x.parentNode(o)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":kt.addEventModifiers,"interactions:action-inertiastart":kt.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};function rn(e,t,n,r){var o=1-e;return o*o*t+2*o*e*n+e*e*r}function on(e,t,n,r){return-n*(e/=r)*(e-2)+t}var an=nn;Jt.default=an;var sn={};function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}Object.defineProperty(sn,"__esModule",{value:!0}),sn.Eventable=void 0;var cn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),un(this,"options",void 0),un(this,"types",{}),un(this,"propagationStopped",!1),un(this,"immediatePropagationStopped",!1),un(this,"global",void 0),this.options=(0,j.default)({},t||{})}var t,n;return t=e,(n=[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&ln(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&ln(e,t)}},{key:"on",value:function(e,t){var n=(0,R.default)(e,t);for(e in n)this.types[e]=Z.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,R.default)(e,t);for(e in n){var r=this.types[e];if(r&&r.length)for(var o=0;o<n[e].length;o++){var i=n[e][o],a=r.indexOf(i);-1!==a&&r.splice(a,1)}}}},{key:"getRect",value:function(e){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();sn.Eventable=cn;var dn={};Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.createInteractStatic=function(e){var t=function t(n,r){var o=e.interactables.get(n,r);return o||((o=e.interactables.new(n,r)).events.global=t.globalEvents),o};return t.getPointerAverage=D.pointerAverage,t.getTouchBBox=D.touchBBox,t.getTouchDistance=D.touchDistance,t.getTouchAngle=D.touchAngle,t.getElementRect=x.getElementRect,t.getElementClientRect=x.getElementClientRect,t.matchesSelector=x.matchesSelector,t.closest=x.closest,t.globalEvents={},t.version="1.10.18",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=(0,Le.warnOnce)(function(e,t,n){if(i.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.default.array(e)){for(var r=0;r<e.length;r++){var o=e[r];this.on(o,t,n)}return this}if(i.default.object(e)){for(var a in e)this.on(a,e[a],t);return this}return(0,dn.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this},"The interact.on() method is being deprecated"),t.off=(0,Le.warnOnce)(function(e,t,n){if(i.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.default.array(e)){for(var r=0;r<e.length;r++){var o=e[r];this.off(o,t,n)}return this}if(i.default.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return(0,dn.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this},"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return b.default.supportsTouch},t.supportsPointerEvent=function(){return b.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return i.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var hn={};function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(hn,"__esModule",{value:!0}),hn.Interactable=void 0;var vn=function(){function e(n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pn(this,"options",void 0),pn(this,"_actions",void 0),pn(this,"target",void 0),pn(this,"events",new sn.Eventable),pn(this,"_context",void 0),pn(this,"_win",void 0),pn(this,"_doc",void 0),pn(this,"_scopeEvents",void 0),pn(this,"_rectChecker",void 0),this._actions=r.actions,this.target=n,this._context=r.context||o,this._win=(0,t.getWindow)((0,x.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=i,this.set(r)}var n,r;return n=e,(r=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return i.default.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),i.default.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),i.default.func(t.onend)&&this.on("".concat(e,"end"),t.onend),i.default.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(i.default.array(t)||i.default.object(t))&&this.off(e,t),(i.default.array(n)||i.default.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var r in t){var o=r,a=this.options[e],s=t[o];"listeners"===o&&this.updatePerActionListeners(e,a.listeners,s),i.default.array(s)?a[o]=Z.from(s):i.default.plainObject(s)?(a[o]=(0,j.default)(a[o]||{},(0,ht.default)(s)),i.default.object(n.perAction[o])&&"enabled"in n.perAction[o]&&(a[o].enabled=!1!==s.enabled)):i.default.bool(s)&&i.default.object(n.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(i.default.element(this.target)?this.target:null),i.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,x.getElementRect)(e)}},{key:"rectChecker",value:function(e){var t=this;return i.default.func(e)?(this._rectChecker=e,this.getRect=function(e){var n=(0,j.default)({},t._rectChecker(e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===e?(delete this.getRect,delete this._rectChecker,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,x.trySelector)(t)||i.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,x.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!i.default.element(n)&&(i.default.string(e)?(0,x.matchesUpTo)(n,e,t):!!i.default.element(e)&&(0,x.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!i.default.element(n))&&(i.default.string(e)?(0,x.matchesUpTo)(n,e,t):!!i.default.element(e)&&(0,x.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,r){i.default.object(t)&&!i.default.array(t)&&(r=n,n=null);var o="on"===e?"add":"remove",a=(0,R.default)(t,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var u=0;u<a[s].length;u++){var l=a[s][u];(0,dn.default)(s,this._actions)?this.events[e](s,l):i.default.string(this.target)?this._scopeEvents["".concat(o,"Delegate")](this.target,this._context,s,l,r):this._scopeEvents[o](this.target,s,l,r)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in i.default.object(e)||(e={}),this.options=(0,ht.default)(t.base),this._actions.methodDict){var r=n,o=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,(0,j.default)((0,j.default)({},t.perAction),t.actions[r])),this[o](e[r])}for(var a in e)i.default.func(this[a])&&this[a](e[a]);return this}},{key:"unset",value:function(){if(i.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var r=t[n],o=r.selector,a=r.context,s=r.listeners;o===this.target&&a===this._context&&t.splice(n,1);for(var u=s.length-1;u>=0;u--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[u][0],s[u][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();hn.Interactable=vn;var mn={};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(mn,"__esModule",{value:!0}),mn.InteractableSet=void 0;var yn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,"list",[]),gn(this,"selectorMap",{}),gn(this,"scope",void 0),this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,r=t.target,o=t._context,a=i.default.string(r)?n.selectorMap[r]:r[n.scope.id],s=Z.findIndex(a,function(e){return e.context===o});a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var t,n;return t=e,(n=[{key:"new",value:function(e,t){t=(0,j.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),i.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(e,t){var n=t&&t.context||this.scope.document,r=i.default.string(e),o=r?this.selectorMap[e]:e[this.scope.id];if(!o)return null;var a=Z.find(o,function(t){return t.context===n&&(r||t.interactable.inContext(e))});return a&&a.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var r=this.list[n],o=void 0;if((i.default.string(r.target)?i.default.element(e)&&x.matchesSelector(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();mn.InteractableSet=yn;var bn={};function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var Sn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wn(this,"currentTarget",void 0),wn(this,"originalEvent",void 0),wn(this,"type",void 0),this.originalEvent=t,(0,$.default)(this,t)}var t,n;return t=e,(n=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pn(e){if(!i.default.object(e))return{capture:!!e,passive:!1};var t=(0,j.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var On={id:"events",install:function(e){var t,n=[],r={},o=[],a={add:s,remove:u,addDelegate:function(e,t,n,i,a){var u=Pn(a);if(!r[n]){r[n]=[];for(var d=0;d<o.length;d++){var f=o[d];s(f,n,l),s(f,n,c,!0)}}var h=r[n],p=Z.find(h,function(n){return n.selector===e&&n.context===t});p||(p={selector:e,context:t,listeners:[]},h.push(p)),p.listeners.push([i,u])},removeDelegate:function(e,t,n,o,i){var a,s=Pn(i),d=r[n],f=!1;if(d)for(a=d.length-1;a>=0;a--){var h=d[a];if(h.selector===e&&h.context===t){for(var p=h.listeners,v=p.length-1;v>=0;v--){var m=kn(p[v],2),g=m[0],y=m[1],b=y.capture,w=y.passive;if(g===o&&b===s.capture&&w===s.passive){p.splice(v,1),p.length||(d.splice(a,1),u(t,n,l),u(t,n,c,!0)),f=!0;break}}if(f)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:r,documents:o,targets:n,supportsOptions:!1,supportsPassive:!1};function s(e,t,r,o){var i=Pn(o),s=Z.find(n,function(t){return t.eventTarget===e});s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),e.addEventListener&&!Z.contains(s.events[t],r)&&(e.addEventListener(t,r,a.supportsOptions?i:i.capture),s.events[t].push(r))}function u(e,t,r,o){var i=Pn(o),s=Z.findIndex(n,function(t){return t.eventTarget===e}),l=n[s];if(l&&l.events)if("all"!==t){var c=!1,d=l.events[t];if(d){if("all"===r){for(var f=d.length-1;f>=0;f--)u(e,t,d[f],i);return}for(var h=0;h<d.length;h++)if(d[h]===r){e.removeEventListener(t,r,a.supportsOptions?i:i.capture),d.splice(h,1),0===d.length&&(delete l.events[t],c=!0);break}}c&&!Object.keys(l.events).length&&n.splice(s,1)}else for(t in l.events)l.events.hasOwnProperty(t)&&u(e,t,"all")}function l(e,t){for(var n=Pn(t),o=new Sn(e),a=r[e.type],s=kn(D.getEventTargets(e),1)[0],u=s;i.default.element(u);){for(var l=0;l<a.length;l++){var c=a[l],d=c.selector,f=c.context;if(x.matchesSelector(u,d)&&x.nodeContains(f,s)&&x.nodeContains(f,u)){var h=c.listeners;o.currentTarget=u;for(var p=0;p<h.length;p++){var v=kn(h[p],2),m=v[0],g=v[1],y=g.capture,b=g.passive;y===n.capture&&b===n.passive&&m(o)}}}u=x.parentNode(u)}}function c(e){return l(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),e.events=a,a}};bn.default=On;var _n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;var Cn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<Cn.methodOrder.length;t++){var n;n=Cn.methodOrder[t];var r=Cn[n](e);if(r)return r}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,r=e.eventTarget,o=e.scope;if(!/down|start/i.test(n))return null;for(var i=0;i<o.interactions.list.length;i++){var a=o.interactions.list[i],s=r;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;s;){if(s===a.element)return a;s=x.parentNode(s)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,r=e.pointerType,o=e.eventType,i=e.scope;if("mouse"!==r&&"pen"!==r)return null;for(var a=0;a<i.interactions.list.length;a++){var s=i.interactions.list[a];if(s.pointerType===r){if(s.simulation&&!En(s,n))continue;if(s.interacting())return s;t||(t=s)}}if(t)return t;for(var u=0;u<i.interactions.list.length;u++){var l=i.interactions.list[u];if(!(l.pointerType!==r||/down/i.test(o)&&l.simulation))return l}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(En(o,t))return o}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(1===o.pointers.length){var i=o.interactable;if(i&&(!i.options.gesture||!i.options.gesture.enabled))continue}else if(o.pointers.length>=2)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};function En(e,t){return e.pointers.some(function(e){return e.id===t})}var jn=Cn;_n.default=jn;var Mn={};function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ln(e)}Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var Bn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function $n(e,t){return function(n){var r=t.interactions.list,o=D.getPointerType(n),i=An(D.getEventTargets(n),2),a=i[0],s=i[1],u=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var l=0;l<n.changedTouches.length;l++){var c=n.changedTouches[l],d={pointer:c,pointerId:D.getPointerId(c),pointerType:o,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},f=Dn(d);u.push([d.pointer,d.eventTarget,d.curEventTarget,f])}}else{var h=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var p=0;p<r.length&&!h;p++)h="mouse"!==r[p].pointerType&&r[p].pointerIsDown;h=h||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!h){var v={pointer:n,pointerId:D.getPointerId(n),pointerType:o,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},m=Dn(v);u.push([v.pointer,v.eventTarget,v.curEventTarget,m])}}for(var g=0;g<u.length;g++){var y=An(u[g],4),w=y[0],k=y[1],x=y[2];y[3][e](w,n,k,x)}}}function Dn(e){var t=e.pointerType,n=e.scope,r={interaction:_n.default.search(e),searchDetails:e};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:t})}function zn(e,t){var n=e.doc,r=e.scope,o=e.options,i=r.interactions.docEvents,a=r.events,s=a[t];for(var u in r.browser.isIOS&&!o.events&&(o.events={passive:!1}),a.delegatedEvents)s(n,u,a.delegateListener),s(n,u,a.delegateUseCapture,!0);for(var l=o&&o.events,c=0;c<i.length;c++){var d=i[c];s(n,d.type,d.listener,l)}}var Fn={id:"core/interactions",install:function(e){for(var t={},n=0;n<Bn.length;n++){var r=Bn[n];t[r]=$n(r,e)}var o,i=b.default.pEventTypes;function a(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var t=n.pointers[o];e.documents.some(function(e){var n=e.doc;return(0,x.nodeContains)(n,t.downTarget)})||n.removePointer(t.pointer,t.event)},o=0;o<n.pointers.length;o++)r()}}(o=v.default.PointerEvent?[{type:i.down,listener:a},{type:i.down,listener:t.pointerDown},{type:i.move,listener:t.pointerMove},{type:i.up,listener:t.pointerUp},{type:i.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}(s,t);var n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Ln(o);if(i){var n=Ln(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,(r=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(zt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:o,pointerMoveTolerance:1},e.usePlugin(it.default)},listeners:{"scope:add-document":function(e){return zn(e,"add")},"scope:remove-document":function(e){return zn(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,r=t.interactions.list.length-1;r>=0;r--){var o=t.interactions.list[r];o.interactable===n&&(o.stop(),t.fire("interactions:destroy",{interaction:o}),o.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(r,1))}}},onDocSignal:zn,doOnInteractions:$n,methodNames:Bn},Nn=Fn;Mn.default=Nn;var Un={};function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Wn(){return Wn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Vn(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wn.apply(this,arguments)}function qn(e,t){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qn(e,t)}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vn(e)}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xn(e,t,n){return t&&Zn(e.prototype,t),n&&Zn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Un,"__esModule",{value:!0}),Un.Scope=void 0,Un.initScope=Jn;var Kn=function(){function e(){var t=this;Gn(this,e),Yn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Yn(this,"isInitialized",!1),Yn(this,"listenerMaps",[]),Yn(this,"browser",b.default),Yn(this,"defaults",(0,ht.default)(Ot.defaults)),Yn(this,"Eventable",sn.Eventable),Yn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Yn(this,"interactStatic",(0,fn.createInteractStatic)(this)),Yn(this,"InteractEvent",_t.InteractEvent),Yn(this,"Interactable",void 0),Yn(this,"interactables",new mn.InteractableSet(this)),Yn(this,"_win",void 0),Yn(this,"document",void 0),Yn(this,"window",void 0),Yn(this,"documents",[]),Yn(this,"_plugins",{list:[],map:{}}),Yn(this,"onWindowUnload",function(e){return t.removeDocument(e.target)});var n=this;this.Interactable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qn(e,t)}(i,e);var t,r,o=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=Vn(t);if(r){var o=Vn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(){return Gn(this,i),o.apply(this,arguments)}return Xn(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return Wn(Vn(i.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){Wn(Vn(i.prototype),"unset",this).call(this);var e=n.interactables.list.indexOf(this);e<0||(Wn(Vn(i.prototype),"unset",this).call(this),n.interactables.list.splice(e,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(hn.Interactable)}return Xn(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var r=this.listenerMaps[n].map[e];if(r&&!1===r(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:Jn(this,e)}},{key:"pluginIsInstalled",value:function(e){return this._plugins.map[e.id]||-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,r=this.listenerMaps.length,o=e.before.reduce(function(e,t){return e[t]=!0,e[Qn(t)]=!0,e},{});n<r;n++){var i=this.listenerMaps[n].id;if(o[i]||o[Qn(i)])break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(-1!==this.getDocIndex(e))return!1;var r=t.getWindow(e);n=n?(0,j.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(r,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:r,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),r=t.getWindow(e),o=this.documents[n].options;this.events.remove(r,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:r,scope:this,options:o})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function Jn(e,n){return e.isInitialized=!0,i.default.window(n)&&t.init(n),v.default.init(n),b.default.init(n),Pe.default.init(n),e.window=n,e.document=n.document,e.usePlugin(Mn.default),e.usePlugin(bn.default),e}function Qn(e){return e&&e.replace(/\/.*$/,"")}Un.Scope=Kn;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var tr=new Un.Scope,nr=tr.interactStatic;er.default=nr;var rr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;tr.init(rr);var or={};Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0,or.default=function(){};var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0,ir.default=function(){};var ar={};function sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0,ar.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(t){var n=sr(t,2),r=n[0],o=n[1];return r in e||o in e}),n=function(n,r){for(var o=e.range,i=e.limits,a=void 0===i?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:i,s=e.offset,u=void 0===s?{x:0,y:0}:s,l={range:o,grid:e,x:null,y:null},c=0;c<t.length;c++){var d=sr(t[c],2),f=d[0],h=d[1],p=Math.round((n-u.x)/e[f]),v=Math.round((r-u.y)/e[h]);l[f]=Math.max(a.left,Math.min(a.right,p*e[f]+u.x)),l[h]=Math.max(a.top,Math.min(a.bottom,v*e[h]+u.y))}return l};return n.grid=e,n.coordFields=t,n};var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),Object.defineProperty(lr,"edgeTarget",{enumerable:!0,get:function(){return or.default}}),Object.defineProperty(lr,"elements",{enumerable:!0,get:function(){return ir.default}}),Object.defineProperty(lr,"grid",{enumerable:!0,get:function(){return ar.default}});var cr={};Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=void 0;var dr={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,j.default)(t.snappers||{},lr),t.createSnapGrid=t.snappers.grid}},fr=dr;cr.default=fr;var hr={};function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach(function(t){mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=hr.aspectRatio=void 0;var gr={start:function(e){var t=e.state,n=e.rect,r=e.edges,o=e.pageCoords,i=t.options,a=i.ratio,s=i.enabled,u=t.options,l=u.equalDelta,c=u.modifiers;"preserve"===a&&(a=n.width/n.height),t.startCoords=(0,j.default)({},o),t.startRect=(0,j.default)({},n),t.ratio=a,t.equalDelta=l;var d=t.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(t.xIsPrimaryAxis=!(!r.left&&!r.right),t.equalDelta){var f=(d.left?1:-1)*(d.top?1:-1);t.edgeSign={x:f,y:f}}else t.edgeSign={x:d.left?-1:1,y:d.top?-1:1};if(!1!==s&&(0,j.default)(r,d),null!=c&&c.length){var h=new pt.default(e.interaction);h.copyFrom(e.interaction.modification),h.prepareStates(c),t.subModification=h,h.startAll(vr({},e))}},set:function(e){var t=e.state,n=e.rect,r=e.coords,o=t.linkedEdges,i=(0,j.default)({},r),a=t.equalDelta?yr:br;if((0,j.default)(e.edges,o),a(t,t.xIsPrimaryAxis,r,n),!t.subModification)return null;var s=(0,j.default)({},n);(0,M.addEdges)(o,s,{x:r.x-i.x,y:r.y-i.y});var u=t.subModification.setAll(vr(vr({},e),{},{rect:s,edges:o,pageCoords:r,prevCoords:r,prevRect:s})),l=u.delta;return u.changed&&(a(t,Math.abs(l.x)>Math.abs(l.y),u.coords,u.rect),(0,j.default)(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function yr(e,t,n){var r=e.startCoords,o=e.edgeSign;t?n.y=r.y+(n.x-r.x)*o.y:n.x=r.x+(n.y-r.y)*o.x}function br(e,t,n,r){var o=e.startRect,i=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var u=r.width/a;n.y=i.y+(u-o.height)*s.y}else{var l=r.height*a;n.x=i.x+(l-o.width)*s.x}}hr.aspectRatio=gr;var wr=(0,kt.makeModifier)(gr,"aspectRatio");hr.default=wr;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var xr=function(){};xr._defaults={};var Sr=xr;kr.default=Sr;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Object.defineProperty(Pr,"default",{enumerable:!0,get:function(){return kr.default}});var Or={};function _r(e,t,n){return i.default.func(e)?M.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):M.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0,Or.getRestrictionRect=_r,Or.restrict=void 0;var Cr={start:function(e){var t=e.rect,n=e.startOffset,r=e.state,o=e.interaction,i=e.pageCoords,a=r.options,s=a.elementRect,u=(0,j.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var l=_r(a.restriction,o,i);if(l){var c=l.right-l.left-t.width,d=l.bottom-l.top-t.height;c<0&&(u.left+=c,u.right+=c),d<0&&(u.top+=d,u.bottom+=d)}u.left+=n.left-t.width*s.left,u.top+=n.top-t.height*s.top,u.right+=n.right-t.width*(1-s.right),u.bottom+=n.bottom-t.height*(1-s.bottom)}r.offset=u},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.options,i=r.offset,a=_r(o.restriction,n,t);if(a){var s=M.xywhToTlbr(a);t.x=Math.max(Math.min(s.right-i.right,t.x),s.left+i.left),t.y=Math.max(Math.min(s.bottom-i.bottom,t.y),s.top+i.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};Or.restrict=Cr;var Er=(0,kt.makeModifier)(Cr,"restrict");Or.default=Er;var jr={};Object.defineProperty(jr,"__esModule",{value:!0}),jr.restrictEdges=jr.default=void 0;var Mr={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Tr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ar(e,t){for(var n=["top","left","bottom","right"],r=0;r<n.length;r++){var o=n[r];o in e||(e[o]=t[o])}return e}var Ir={noInner:Mr,noOuter:Tr,start:function(e){var t,n=e.interaction,r=e.startOffset,o=e.state,i=o.options;if(i){var a=(0,Or.getRestrictionRect)(i.offset,n,n.coords.start.page);t=M.rectToXY(a)}t=t||{x:0,y:0},o.offset={top:t.y+r.top,left:t.x+r.left,bottom:t.y-r.bottom,right:t.x-r.right}},set:function(e){var t=e.coords,n=e.edges,r=e.interaction,o=e.state,i=o.offset,a=o.options;if(n){var s=(0,j.default)({},t),u=(0,Or.getRestrictionRect)(a.inner,r,s)||{},l=(0,Or.getRestrictionRect)(a.outer,r,s)||{};Ar(u,Mr),Ar(l,Tr),n.top?t.y=Math.min(Math.max(l.top+i.top,s.y),u.top+i.top):n.bottom&&(t.y=Math.max(Math.min(l.bottom+i.bottom,s.y),u.bottom+i.bottom)),n.left?t.x=Math.min(Math.max(l.left+i.left,s.x),u.left+i.left):n.right&&(t.x=Math.max(Math.min(l.right+i.right,s.x),u.right+i.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};jr.restrictEdges=Ir;var Rr=(0,kt.makeModifier)(Ir,"restrictEdges");jr.default=Rr;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.restrictRect=Lr.default=void 0;var Br=(0,j.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},Or.restrict.defaults),$r={start:Or.restrict.start,set:Or.restrict.set,defaults:Br};Lr.restrictRect=$r;var Dr=(0,kt.makeModifier)($r,"restrictRect");Lr.default=Dr;var zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.restrictSize=zr.default=void 0;var Fr={width:-1/0,height:-1/0},Nr={width:1/0,height:1/0},Ur={start:function(e){return jr.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,r=e.rect,o=e.edges,i=n.options;if(o){var a=M.tlbrToXywh((0,Or.getRestrictionRect)(i.min,t,e.coords))||Fr,s=M.tlbrToXywh((0,Or.getRestrictionRect)(i.max,t,e.coords))||Nr;n.options={endOnly:i.endOnly,inner:(0,j.default)({},jr.restrictEdges.noInner),outer:(0,j.default)({},jr.restrictEdges.noOuter)},o.top?(n.options.inner.top=r.bottom-a.height,n.options.outer.top=r.bottom-s.height):o.bottom&&(n.options.inner.bottom=r.top+a.height,n.options.outer.bottom=r.top+s.height),o.left?(n.options.inner.left=r.right-a.width,n.options.outer.left=r.right-s.width):o.right&&(n.options.inner.right=r.left+a.width,n.options.outer.right=r.left+s.width),jr.restrictEdges.set(e),n.options=i}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};zr.restrictSize=Ur;var Hr=(0,kt.makeModifier)(Ur,"restrictSize");zr.default=Hr;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0}),Object.defineProperty(Wr,"default",{enumerable:!0,get:function(){return kr.default}});var qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.snap=qr.default=void 0;var Vr={start:function(e){var t,n=e.interaction,r=e.interactable,o=e.element,i=e.rect,a=e.state,s=e.startOffset,u=a.options,l=u.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,M.rectToXY)((0,M.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,I.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===u.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var c=(0,M.resolveRectLike)(u.offset,r,o,[n]);(t=(0,M.rectToXY)(c)||{x:0,y:0}).x+=l.x,t.y+=l.y}var d=u.relativePoints;a.offsets=i&&d&&d.length?d.map(function(e,n){return{index:n,relativePoint:e,x:s.left-i.width*e.x+t.x,y:s.top-i.height*e.y+t.y}}):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,r=e.state,o=r.options,a=r.offsets,s=(0,I.default)(t.interactable,t.element,t.prepared.name),u=(0,j.default)({},n),l=[];o.offsetWithOrigin||(u.x-=s.x,u.y-=s.y);for(var c=0;c<a.length;c++)for(var d=a[c],f=u.x-d.x,h=u.y-d.y,p=0,v=o.targets.length;p<v;p++){var m,g=o.targets[p];(m=i.default.func(g)?g(f,h,t._proxy,d,p):g)&&l.push({x:(i.default.number(m.x)?m.x:f)+d.x,y:(i.default.number(m.y)?m.y:h)+d.y,range:i.default.number(m.range)?m.range:o.range,source:g,index:p,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var w=l[b],k=w.range,x=w.x-u.x,S=w.y-u.y,P=(0,B.default)(x,S),O=P<=k;k===1/0&&y.inRange&&y.range!==1/0&&(O=!1),y.target&&!(O?y.inRange&&k!==1/0?P/k<y.distance/y.range:k===1/0&&y.range!==1/0||P<y.distance:!y.inRange&&P<y.distance)||(y.target=w,y.distance=P,y.range=k,y.inRange=O,y.delta.x=x,y.delta.y=S)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),r.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};qr.snap=Vr;var Gr=(0,kt.makeModifier)(Vr,"snap");qr.default=Gr;var Zr={};function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.snapSize=Zr.default=void 0;var Yr={start:function(e){var t=e.state,n=e.edges,r=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],qr.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t,n=e.interaction,r=e.state,o=e.coords,a=r.options,s=r.offsets,u={x:o.x-s[0].x,y:o.y-s[0].y};r.options=(0,j.default)({},a),r.options.targets=[];for(var l=0;l<(a.targets||[]).length;l++){var c=(a.targets||[])[l],d=void 0;if(d=i.default.func(c)?c(u.x,u.y,n):c){for(var f=0;f<r.targetFields.length;f++){var h=function(e){if(Array.isArray(e))return e}(t=r.targetFields[f])||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return Xr(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Xr(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=h[0],v=h[1];if(p in d||v in d){d.x=d[p],d.y=d[v];break}}r.options.targets.push(d)}}var m=qr.snap.set(e);return r.options=a,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Zr.snapSize=Yr;var Kr=(0,kt.makeModifier)(Yr,"snapSize");Zr.default=Kr;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.snapEdges=Jr.default=void 0;var Qr={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Zr.snapSize.start(e)):null},set:Zr.snapSize.set,defaults:(0,j.default)((0,ht.default)(Zr.snapSize.defaults),{targets:null,range:null,offset:{x:0,y:0}})};Jr.snapEdges=Qr;var eo=(0,kt.makeModifier)(Qr,"snapEdges");Jr.default=eo;var to={};Object.defineProperty(to,"__esModule",{value:!0}),Object.defineProperty(to,"default",{enumerable:!0,get:function(){return kr.default}});var no={};Object.defineProperty(no,"__esModule",{value:!0}),Object.defineProperty(no,"default",{enumerable:!0,get:function(){return kr.default}});var ro={};Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var oo={aspectRatio:hr.default,restrictEdges:jr.default,restrict:Or.default,restrictRect:Lr.default,restrictSize:zr.default,snapEdges:Jr.default,snap:qr.default,snapSize:Zr.default,spring:to.default,avoid:Pr.default,transform:no.default,rubberband:Wr.default};ro.default=oo;var io={};Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var ao={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(kt.default),e.usePlugin(cr.default),t.modifiers=ro.default,ro.default){var r=ro.default[n],o=r._defaults,i=r._methods;o._methods=i,e.defaults.perAction[n]=o}}},so=ao;io.default=so;var uo={};function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function co(e,t){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},co(e,t)}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ho(e)}Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=uo.PointerEvent=void 0;var po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&co(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ho(r);if(o){var n=ho(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===lo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fo(e)}(this,e)});function a(e,t,n,r,o,s){var u;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=i.call(this,o),D.pointerExtend(fo(u),n),n!==t&&D.pointerExtend(fo(u),t),u.timeStamp=s,u.originalEvent=n,u.type=e,u.pointerId=D.getPointerId(t),u.pointerType=D.getPointerType(t),u.target=r,u.currentTarget=null,"tap"===e){var l=o.getPointerIndex(t);u.dt=u.timeStamp-o.pointers[l].downTime;var c=u.timeStamp-o.tapTime;u.double=!!o.prevTap&&"doubletap"!==o.prevTap.type&&o.prevTap.target===u.target&&c<500}else"doubletap"===e&&(u.dt=t.timeStamp-o.tapTime,u.double=!0);return u}return t=a,(n=[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(q.BaseEvent);uo.PointerEvent=uo.default=po;var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var mo={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=mo,e.defaults.actions.pointerEvents=mo.defaults,(0,j.default)(e.actions.phaselessTypes,mo.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&bo(e),go({interaction:n,pointer:r,event:o,eventTarget:i,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,u=x.getPath(i),l={interaction:n,pointer:r,event:o,eventTarget:i,type:"hold",targets:[],path:u,node:null},c=0;c<u.length;c++){var d=u[c];l.node=d,t.fire("pointerEvents:collect-targets",l)}if(l.targets.length){for(var f=1/0,h=0;h<l.targets.length;h++){var p=l.targets[h].eventable.options.holdDuration;p<f&&(f=p)}s.duration=f,s.timeout=setTimeout(function(){go({interaction:n,eventTarget:i,pointer:r,event:o,type:"hold"},t)},f)}}(e,t),go(e,t)},"interactions:up":function(e,t){bo(e),go(e,t),function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.pointerWasMoved||go({interaction:n,eventTarget:i,pointer:r,event:o,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){bo(e),go(e,t)}},PointerEvent:uo.PointerEvent,fire:go,collectEventTargets:yo,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function go(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=e.targets,u=void 0===s?yo(e,t):s,l=new uo.PointerEvent(a,r,o,i,n,t.now());t.fire("pointerEvents:new",{pointerEvent:l});for(var c={interaction:n,pointer:r,event:o,eventTarget:i,targets:u,type:a,pointerEvent:l},d=0;d<u.length;d++){var f=u[d];for(var h in f.props||{})l[h]=f.props[h];var p=(0,I.default)(f.eventable,f.node);if(l._subtractOrigin(p),l.eventable=f.eventable,l.currentTarget=f.node,f.eventable.fire(l),l._addOrigin(p),l.immediatePropagationStopped||l.propagationStopped&&d+1<u.length&&u[d+1].node!==l.currentTarget)break}if(t.fire("pointerEvents:fired",c),"tap"===a){var v=l.double?go({interaction:n,pointer:r,event:o,eventTarget:i,type:"doubletap"},t):l;n.prevTap=v,n.tapTime=v.timeStamp}return l}function yo(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=n.getPointerIndex(r),u=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!u||u.downTarget!==i))return[];for(var l=x.getPath(i),c={interaction:n,pointer:r,event:o,eventTarget:i,type:a,path:l,targets:[],node:null},d=0;d<l.length;d++){var f=l[d];c.node=f,t.fire("pointerEvents:collect-targets",c)}return"hold"===a&&(c.targets=c.targets.filter(function(e){var t;return e.eventable.options.holdDuration===(null==(t=n.pointers[s])?void 0:t.hold.duration)})),c.targets}function bo(e){var t=e.interaction,n=e.pointerIndex,r=t.pointers[n].hold;r&&r.timeout&&(clearTimeout(r.timeout),r.timeout=null)}var wo=mo;vo.default=wo;var ko={};function xo(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var So={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(vo.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(e,t){return e["pointerEvents:".concat(t)]=xo,e},{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,r=e.pointerEvent,o=e.eventTarget,i=e.targets;if("hold"===r.type&&i.length){var a=i[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:n,eventTarget:o,type:"hold",pointer:r,event:r},t)},a))}}})},Po=So;ko.default=Po;var Oo={};function _o(e){return(0,j.default)(this.events.options,e),this}Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var Co={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=_o;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var r=n.call(this,e,t);return r===this&&(this.events.options[e]=t),r}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,r=e.node,o=e.type,i=e.eventTarget;t.interactables.forEachMatch(r,function(e){var t=e.events,a=t.options;t.types[o]&&t.types[o].length&&e.testIgnoreAllow(a,r,i)&&n.push({node:r,eventable:t,props:{interactable:e}})})},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,r=e.options;(0,j.default)(n.events.options,t.pointerEvents.defaults),(0,j.default)(n.events.options,r.pointerEvents||{})}}},Eo=Co;Oo.default=Eo;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var Mo={id:"pointer-events",install:function(e){e.usePlugin(vo),e.usePlugin(ko.default),e.usePlugin(Oo.default)}},To=Mo;jo.default=To;var Ao={};function Io(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var r=i.default.string(e.target)?Z.from(e._context.querySelectorAll(e.target)):[e.target],o=n.window.Promise,a=o?[]:null,s=function(){var i=r[u],s=e.getRect(i);if(!s)return"break";var l=Z.find(n.interactions.list,function(n){return n.interacting()&&n.interactable===e&&n.element===i&&n.prepared.name===t.name}),c=void 0;if(l)l.move(),a&&(c=l._reflowPromise||new o(function(e){l._reflowResolve=e}));else{var d=(0,M.tlbrToXywh)(s),f={page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()},h=D.coordsToEvent(f);c=function(e,t,n,r,o){var i=e.interactions.new({pointerType:"reflow"}),a={interaction:i,event:o,pointer:o,eventTarget:n,phase:"reflow"};i.interactable=t,i.element=n,i.prevEvent=o,i.updatePointer(o,o,n,!0),D.setZeroCoords(i.coords.delta),(0,Le.copyAction)(i.prepared,r),i._doPhase(a);var s=e.window.Promise,u=s?new s(function(e){i._reflowResolve=e}):void 0;return i._reflowPromise=u,i.start(r,t,n),i._interacting?(i.move(a),i.end(o)):(i.stop(),i._reflowResolve()),i.removePointer(o,o),u}(n,e,i,t,h)}a&&a.push(c)},u=0;u<r.length&&"break"!==s();u++);return a&&o.all(a).then(function(){return e})}(this,t,e)}}Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=void 0,Ao.install=Io;var Ro={id:"reflow",install:Io,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),Z.remove(t.interactions.list,n))}}},Lo=Ro;Ao.default=Lo;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0,er.default.use(it.default),er.default.use(Wt.default),er.default.use(jo.default),er.default.use(Jt.default),er.default.use(io.default),er.default.use(rt.default),er.default.use(xe.default),er.default.use(je.default),er.default.use(Ao.default);var $o=er.default;Bo.default=$o,er.default.default=er.default,xe.default,je.default,rt.default,it.default,ft.default,Jt.default,er.default,io.default,Wt.default,jo.default,Ao.default;var Do={exports:{}};function zo(e){return zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zo(e)}Object.defineProperty(Do.exports,"__esModule",{value:!0}),Do.exports.default=void 0;var Fo=Bo.default;if(Do.exports.default=Fo,"object"===zo(Do)&&Do)try{Do.exports=Bo.default}catch(e){}return Bo.default.default=Bo.default,Do.exports}()},4638:function(e,t,n){!function(e,t,n){var r,o,i,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,k,x,S,P,O,_,C,E,j,M,T,A,I,R,L,B={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return e(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,n=e(this).data("cbox-img-attrs");return"object"==typeof n&&e.each(n,function(e,n){t[e]=n}),t},createIframe:function(){var n=t.createElement("iframe"),r=e(this).data("cbox-iframe-attrs");return"object"==typeof r&&e.each(r,function(e,t){n[e]=t}),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},$="colorbox",D="cbox",z=D+"Element",F=D+"_open",N=D+"_load",U=D+"_complete",H=D+"_cleanup",W=D+"_closed",q=D+"_purge",V=e("<a/>"),G="div",Z=0,X={};function Y(n,r,o){var i=t.createElement(n);return r&&(i.id=D+r),o&&(i.style.cssText=o),e(i)}function K(){return n.innerHeight?n.innerHeight:e(n).height()}function J(t,n){n!==Object(n)&&(n={}),this.cache={},this.el=t,this.value=function(t){var r;return void 0===this.cache[t]&&(void 0!==(r=e(this.el).attr("data-cbox-"+t))?this.cache[t]=r:void 0!==n[t]?this.cache[t]=n[t]:void 0!==B[t]&&(this.cache[t]=B[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function Q(e){var t=d.length,n=(E+e)%t;return n<0?t+n:n}function ee(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():K())/100:1)*parseInt(e,10))}function te(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ne(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function re(e){"contains"in o[0]&&!o[0].contains(e.target)&&e.target!==r[0]&&(e.stopPropagation(),o.focus())}function oe(e){oe.str!==e&&(o.add(r).removeClass(oe.str).addClass(e),oe.str=e)}function ie(n){e(t).trigger(n),V.triggerHandler(n)}var ae=function(){var e,t,n=D+"Slideshow_",r="click."+D;function i(){clearTimeout(t)}function a(){(S.get("loop")||d[E+1])&&(i(),t=setTimeout(R.next,S.get("slideshowSpeed")))}function s(){y.html(S.get("slideshowStop")).unbind(r).one(r,u),V.bind(U,a).bind(N,i),o.removeClass(n+"off").addClass(n+"on")}function u(){i(),V.unbind(U,a).unbind(N,i),y.html(S.get("slideshowStart")).unbind(r).one(r,function(){R.next(),s()}),o.removeClass(n+"on").addClass(n+"off")}function l(){e=!1,y.hide(),i(),V.unbind(U,a).unbind(N,i),o.removeClass(n+"off "+n+"on")}return function(){e?S.get("slideshow")||(V.unbind(H,l),l()):S.get("slideshow")&&d[1]&&(e=!0,V.one(H,l),S.get("slideshowAuto")?s():u(),y.show())}}();function se(i){var f,g;if(!A){if(f=e(i).data($),S=new J(i,f),g=S.get("rel"),E=0,g&&!1!==g&&"nofollow"!==g?(d=e("."+z).filter(function(){return new J(this,e.data(this,$)).get("rel")===g}),-1===(E=d.index(S.el))&&(d=d.add(S.el),E=d.length-1)):d=e(S.el),!M){M=T=!0,oe(S.get("className")),o.css({visibility:"hidden",display:"block",opacity:""}),h=Y(G,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(h),P=s.height()+c.height()+a.outerHeight(!0)-a.height(),O=u.width()+l.width()+a.outerWidth(!0)-a.width(),_=h.outerHeight(!0),C=h.outerWidth(!0);var y=ee(S.get("initialWidth"),"x"),b=ee(S.get("initialHeight"),"y"),w=S.get("maxWidth"),L=S.get("maxHeight");S.w=Math.max((!1!==w?Math.min(y,ee(w,"x")):y)-C-O,0),S.h=Math.max((!1!==L?Math.min(b,ee(L,"y")):b)-_-P,0),h.css({width:"",height:S.h}),R.position(),ie(F),S.get("onOpen"),x.add(m).hide(),o.focus(),S.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",re,!0),V.one(W,function(){t.removeEventListener("focus",re,!0)})),S.get("returnFocus")&&V.one(W,function(){e(S.el).focus()})}var B=parseFloat(S.get("opacity"));r.css({opacity:B==B?B:"",cursor:S.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),S.get("closeButton")?k.html(S.get("close")).appendTo(a):k.appendTo("<div/>"),function(){var t,r,o,i=R.prep,a=++Z;if(T=!0,j=!1,ie(q),ie(N),S.get("onLoad"),S.h=S.get("height")?ee(S.get("height"),"y")-_-P:S.get("innerHeight")&&ee(S.get("innerHeight"),"y"),S.w=S.get("width")?ee(S.get("width"),"x")-C-O:S.get("innerWidth")&&ee(S.get("innerWidth"),"x"),S.mw=S.w,S.mh=S.h,S.get("maxWidth")&&(S.mw=ee(S.get("maxWidth"),"x")-C-O,S.mw=S.w&&S.w<S.mw?S.w:S.mw),S.get("maxHeight")&&(S.mh=ee(S.get("maxHeight"),"y")-_-P,S.mh=S.h&&S.h<S.mh?S.h:S.mh),t=S.get("href"),I=setTimeout(function(){v.show()},100),S.get("inline")){var s=e(t).eq(0);o=e("<div>").hide().insertBefore(s),V.one(q,function(){o.replaceWith(s)}),i(s)}else S.get("iframe")?i(" "):S.get("html")?i(S.get("html")):te(S,t)?(t=ne(S,t),j=S.get("createImg"),e(j).addClass(D+"Photo").bind("error."+D,function(){i(Y(G,"Error").html(S.get("imgError")))}).one("load",function(){a===Z&&setTimeout(function(){var t;S.get("retinaImage")&&n.devicePixelRatio>1&&(j.height=j.height/n.devicePixelRatio,j.width=j.width/n.devicePixelRatio),S.get("scalePhotos")&&(r=function(){j.height-=j.height*t,j.width-=j.width*t},S.mw&&j.width>S.mw&&(t=(j.width-S.mw)/j.width,r()),S.mh&&j.height>S.mh&&(t=(j.height-S.mh)/j.height,r())),S.h&&(j.style.marginTop=Math.max(S.mh-j.height,0)/2+"px"),d[1]&&(S.get("loop")||d[E+1])&&(j.style.cursor="pointer",e(j).bind("click."+D,function(){R.next()})),j.style.width=j.width+"px",j.style.height=j.height+"px",i(j)},1)}),j.src=t):t&&p.load(t,S.get("data"),function(t,n){a===Z&&i("error"===n?Y(G,"Error").html(S.get("xhrError")):e(this).contents())})}()}}function ue(){o||(L=!1,f=e(n),o=Y(G).attr({id:$,class:!1===e.support.opacity?D+"IE":"",role:"dialog",tabindex:"-1"}).hide(),r=Y(G,"Overlay").hide(),v=e([Y(G,"LoadingOverlay")[0],Y(G,"LoadingGraphic")[0]]),i=Y(G,"Wrapper"),a=Y(G,"Content").append(m=Y(G,"Title"),g=Y(G,"Current"),w=e('<button type="button"/>').attr({id:D+"Previous"}),b=e('<button type="button"/>').attr({id:D+"Next"}),y=e('<button type="button"/>').attr({id:D+"Slideshow"}),v),k=e('<button type="button"/>').attr({id:D+"Close"}),i.append(Y(G).append(Y(G,"TopLeft"),s=Y(G,"TopCenter"),Y(G,"TopRight")),Y(G,!1,"clear:left").append(u=Y(G,"MiddleLeft"),a,l=Y(G,"MiddleRight")),Y(G,!1,"clear:left").append(Y(G,"BottomLeft"),c=Y(G,"BottomCenter"),Y(G,"BottomRight"))).find("div div").css({float:"left"}),p=Y(G,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=b.add(w).add(g).add(y)),t.body&&!o.parent().length&&e(t.body).append(r,o.append(i,p))}e[$]||(e(ue),(R=e.fn[$]=e[$]=function(n,i){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ue(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),se(this))}return!!o&&(L||(L=!0,b.click(function(){R.next()}),w.click(function(){R.prev()}),k.click(function(){R.close()}),r.click(function(){S.get("overlayClose")&&R.close()}),e(t).bind("keydown."+D,function(e){var t=e.keyCode;M&&S.get("escKey")&&27===t&&(e.preventDefault(),R.close()),M&&S.get("arrowKey")&&d[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),b.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+D,"."+z,n):e("."+z).live("click."+D,n)),!0)}()&&(i&&(n.onComplete=i),a.each(function(){var t=e.data(this,$)||{};e.data(this,$,e.extend(t,n))}).addClass(z),new J(a[0],n).get("open")&&se(a[0])),a):a}).position=function(t,n){var r,d,h,p=0,v=0,m=o.offset();function g(){s[0].style.width=c[0].style.width=a[0].style.width=parseInt(o[0].style.width,10)-O+"px",a[0].style.height=u[0].style.height=l[0].style.height=parseInt(o[0].style.height,10)-P+"px"}if(f.unbind("resize."+D),o.css({top:-9e4,left:-9e4}),d=f.scrollTop(),h=f.scrollLeft(),S.get("fixed")?(m.top-=d,m.left-=h,o.css({position:"fixed"})):(p=d,v=h,o.css({position:"absolute"})),!1!==S.get("right")?v+=Math.max(f.width()-S.w-C-O-ee(S.get("right"),"x"),0):!1!==S.get("left")?v+=ee(S.get("left"),"x"):v+=Math.round(Math.max(f.width()-S.w-C-O,0)/2),!1!==S.get("bottom")?p+=Math.max(K()-S.h-_-P-ee(S.get("bottom"),"y"),0):!1!==S.get("top")?p+=ee(S.get("top"),"y"):p+=Math.round(Math.max(K()-S.h-_-P,0)/2),o.css({top:m.top,left:m.left,visibility:"visible"}),i[0].style.width=i[0].style.height="9999px",r={width:S.w+C+O,height:S.h+_+P,top:p,left:v},t){var y=0;e.each(r,function(e){r[e]===X[e]||(y=t)}),t=y}X=r,t||o.css(r),o.dequeue().animate(r,{duration:t||0,complete:function(){g(),T=!1,i[0].style.width=S.w+C+O+"px",i[0].style.height=S.h+_+P+"px",S.get("reposition")&&setTimeout(function(){f.bind("resize."+D,R.position)},1),e.isFunction(n)&&n()},step:g})},R.resize=function(e){var t;M&&((e=e||{}).width&&(S.w=ee(e.width,"x")-C-O),e.innerWidth&&(S.w=ee(e.innerWidth,"x")),h.css({width:S.w}),e.height&&(S.h=ee(e.height,"y")-_-P),e.innerHeight&&(S.h=ee(e.innerHeight,"y")),e.innerHeight||e.height||(t=h.scrollTop(),h.css({height:"auto"}),S.h=h.height()),h.css({height:S.h}),t&&h.scrollTop(t),R.position("none"===S.get("transition")?0:S.get("speed")))},R.prep=function(n){if(M){var r,i="none"===S.get("transition")?0:S.get("speed");h.remove(),(h=Y(G,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(S.w=S.w||h.width(),S.w=S.mw&&S.mw<S.w?S.mw:S.w,S.w),overflow:S.get("scrolling")?"auto":"hidden"}).css({height:(S.h=S.h||h.height(),S.h=S.mh&&S.mh<S.h?S.mh:S.h,S.h)}).prependTo(a),p.hide(),e(j).css({float:"none"}),oe(S.get("className")),r=function(){var n,r,a=d.length;function s(){!1===e.support.opacity&&o[0].style.removeAttribute("filter")}M&&(r=function(){clearTimeout(I),v.hide(),ie(U),S.get("onComplete")},m.html(S.get("title")).show(),h.show(),a>1?("string"==typeof S.get("current")&&g.html(S.get("current").replace("{current}",E+1).replace("{total}",a)).show(),b[S.get("loop")||E<a-1?"show":"hide"]().html(S.get("next")),w[S.get("loop")||E?"show":"hide"]().html(S.get("previous")),ae(),S.get("preloading")&&e.each([Q(-1),Q(1)],function(){var n=d[this],r=new J(n,e.data(n,$)),o=r.get("href");o&&te(r,o)&&(o=ne(r,o),t.createElement("img").src=o)})):x.hide(),S.get("iframe")?(n=S.get("createIframe"),S.get("scrolling")||(n.scrolling="no"),e(n).attr({src:S.get("href"),class:D+"Iframe"}).one("load",r).appendTo(h),V.one(q,function(){n.src="//about:blank"}),S.get("fastIframe")&&e(n).trigger("load")):r(),"fade"===S.get("transition")?o.fadeTo(i,1,s):s())},"fade"===S.get("transition")?o.fadeTo(i,0,function(){R.position(0,r)}):R.position(i,r)}},R.next=function(){!T&&d[1]&&(S.get("loop")||d[E+1])&&(E=Q(1),se(d[E]))},R.prev=function(){!T&&d[1]&&(S.get("loop")||E)&&(E=Q(-1),se(d[E]))},R.close=function(){M&&!A&&(A=!0,M=!1,ie(H),S.get("onCleanup"),f.unbind("."+D),r.fadeTo(S.get("fadeOut")||0,0),o.stop().fadeTo(S.get("fadeOut")||0,0,function(){o.hide(),r.hide(),ie(q),h.remove(),setTimeout(function(){A=!1,ie(W),S.get("onClosed")},1)}))},R.remove=function(){o&&(o.stop(),e[$].close(),o.stop(!1,!0).remove(),r.remove(),A=!1,o=null,e("."+z).removeData($).removeClass(z),e(t).unbind("click."+D).unbind("keydown."+D))},R.element=function(){return e(S.el)},R.settings=B)}(n(1669),document,window)},8497:function(e,t,n){!function(e){if(e.support.touch="ontouchend"in document,e.support.touch){var t,n=e.ui.mouse.prototype,r=n._mouseInit,o=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,i(e,"mouseover"),i(e,"mousemove"),i(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,i(e,"mousemove"))},n._touchEnd=function(e){t&&(i(e,"mouseup"),i(e,"mouseout"),this._touchMoved||i(e,"click"),t=!1)},n._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),r.call(t)},n._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),o.call(t)}}function i(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(r)}}}(n(1669))},8045:function(e,t,n){var r,o,i;o=[n(1669),n(6883)],void 0===(i="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,o):r)||(e.exports=i)},1897:function(e,t,n){var r,o,i;o=[n(1669),n(6883)],void 0===(i="function"==typeof(r=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(t,o):r)||(e.exports=i)},6883:function(e,t,n){var r,o,i;o=[n(1669)],void 0===(i="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,o):r)||(e.exports=i)},9139:function(e,t,n){var r,o,i;o=[n(1669),n(6883)],r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,o,i;for(i=0;null!=(o=n[i]);i++)try{(r=e._data(o,"events"))&&r.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var o,i,a,s={},u=t.split(".")[0],l=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][l.toLowerCase()]=function(t){return!!e.data(t,l)},e[u]=e[u]||{},o=e[u][t],i=e[u][t]=function(e,t){if(!this._createWidget)return new i(e,t);arguments.length&&this._createWidget(e,t)},e.extend(i,o,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,function(t,r){e.isFunction(r)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,i=this._superApply;return this._super=e,this._superApply=o,t=r.apply(this,arguments),this._super=n,this._superApply=i,t}}():s[t]=r}),i.prototype=e.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||t},s,{constructor:i,namespace:u,widgetName:t,widgetFullName:l}),o?(e.each(o._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,i,n._proto)}),delete o._childConstructors):n._childConstructors.push(i),e.widget.bridge(t,i),i},e.widget.extend=function(t){for(var n,o,i=r.call(arguments,1),a=0,s=i.length;a<s;a++)for(n in i[a])o=i[a][n],i[a].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(i){var a="string"==typeof i,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==i?this.each(function(){var n,r=e.data(this,o);return"instance"===i?(u=r,!1):r?e.isFunction(r[i])&&"_"!==i.charAt(0)?(n=r[i].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+i+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+i+"'")}):u=void 0:(s.length&&(i=e.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=e.data(this,o);t?(t.option(i||{}),t._init&&t._init()):e.data(this,o,new n(i,this))})),u}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,o,i,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(o=a[t]=e.widget.extend({},this.options[t]),i=0;i<r.length-1;i++)o[r[i]]=o[r[i]]||{},o=o[r[i]];if(t=r.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(r=e(o.get()),this._removeClass(o,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],r=this;function o(o,i){var a,s;for(s=0;s<o.length;s++)a=r.classesElementLookup[o[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[o[s]]=a,n.push(o[s]),i&&t.classes[o[s]]&&n.push(t.classes[o[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(r,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[r]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var o="string"==typeof e||null===e,i={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:r};return i.element.toggleClass(this._classes(i),r),this},_on:function(t,n,r){var o,i=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=o=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,o=this.widget()),e.each(r,function(r,a){function s(){if(t||!0!==i.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?i[a]:a).apply(i,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),l=u[1]+i.eventNamespace,c=u[2];c?o.on(l,c,s):n.on(l,s)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var o,i,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],i=n.originalEvent)for(o in i)o in n||(n[o]=i[o]);return this.element.trigger(n,r),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(r,o,i){var a;"string"==typeof o&&(o={effect:o});var s=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),a=!e.isEmptyObject(o),o.complete=i,o.delay&&r.delay(o.delay),a&&e.effects&&e.effects.effect[s]?r[t](o):s!==t&&r[s]?r[s](o.duration,o.easing,i):r.queue(function(n){e(this)[t](),i&&i.call(r[0]),n()})}}),e.widget},void 0===(i=r.apply(t,o))||(e.exports=i)},3662:function(e,t,n){var r,o,i;o=[n(1669),n(8045),n(6883),n(9139)],void 0===(i="function"==typeof(r=function(e){var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,o=1===n.which,i=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(o&&!i&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,o):r)||(e.exports=i)},4720:function(e,t,n){var r,o,i;o=[n(1669),n(3662),n(1897),n(6883),n(9139)],r=function(e){return e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,r=this.options,o=this.element.find(".ui-slider-handle"),i=[];for(n=r.values&&r.values.length||1,o.length>n&&(o.slice(n).remove(),o=o.slice(0,n)),t=o.length;t<n;t++)i.push("<span tabindex='0'></span>");this.handles=o.add(e(i.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,r,o,i,a,s,u,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},r=this._normValueFromMouse(n),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(r-l.values(t));(o>n||o===n&&(t===l._lastChangedValue||l.values(t)===c.min))&&(o=n,i=e(this),a=t)}),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),s=i.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-i.width()/2,top:t.pageY-s.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,o,i;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/t)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),o=this._valueMax()-this._valueMin(),i=this._valueMin()+r*o,this._trimAlignValue(i)},_uiHash:function(e,t,n){var r={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==t?t:this.values(e),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var r,o=this.value(),i=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),o=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(r,n):Math.max(r,n)),i[t]=n),n!==o&&!1!==this._trigger("slide",e,this._uiHash(t,n,i))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var r,o,i;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(r=this.options.values,o=arguments[0],i=0;i<r.length;i+=1)r[i]=this._trimAlignValue(o[i]),this._change(null,i);this._refreshValue()},_setOption:function(t,n){var r,o=0;switch("range"===t&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(o=this.options.values.length),this._super(t,n),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=o-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n,r;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;return 2*Math.abs(n)>=t&&(r+=n>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,r,o,i,a=this.options.range,s=this.options,u=this,l=!this._animateOff&&s.animate,c={};this._hasMultipleValues()?this.handles.each(function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,c["horizontal"===u.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[l?"animate":"css"](c,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[l?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[l?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n}):(r=this.value(),o=this._valueMin(),i=this._valueMax(),n=i!==o?(r-o)/(i-o)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var n,r,o,i=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,i)))return}switch(o=this.options.step,n=r=this._hasMultipleValues()?this.values(i):this.value(),t.keyCode){case e.ui.keyCode.HOME:r=this._valueMin();break;case e.ui.keyCode.END:r=this._valueMax();break;case e.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-o)}this._slide(t,i,r)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}})},void 0===(i=r.apply(t,o))||(e.exports=i)},1669:function(e){"use strict";e.exports=jQuery},9306:function(e,t,n){"use strict";var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},5548:function(e,t,n){"use strict";var r=n(3517),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},3506:function(e,t,n){"use strict";var r=n(3925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469:function(e,t,n){"use strict";var r=n(8227),o=n(2360),i=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},7829:function(e,t,n){"use strict";var r=n(8183).o;e.exports=function(e,t,n){return t+(n&&r(e,t).length||1)}},679:function(e,t,n){"use strict";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},8551:function(e,t,n){"use strict";var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},5652:function(e,t,n){"use strict";var r=n(9039);e.exports=r(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},4373:function(e,t,n){"use strict";var r=n(8981),o=n(5610),i=n(6198);e.exports=[].fill||function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},235:function(e,t,n){"use strict";var r=n(9213).forEach,o=n(4598)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},7916:function(e,t,n){"use strict";var r=n(6080),o=n(9565),i=n(8981),a=n(6319),s=n(4209),u=n(3517),l=n(6198),c=n(4659),d=n(4527),f=n(8563),h=n(3085),p=n(9539),v=n(6837),m=Array;e.exports=function(e){var t=u(this),n=arguments.length,g=n>1?arguments[1]:void 0,y=void 0!==g;y&&(g=r(g,n>2?arguments[2]:void 0));var b,w,k,x,S,P,O=i(e),_=h(O),C=0;if(!_||this===m&&s(_))for(b=l(O),w=t?new this(b):m(b);b>C;C++)P=y?g(O[C],C):O[C],c(w,C,P);else for(w=t?new this:[],S=(x=f(O,_)).next;!(k=o(S,x)).done;C++){try{v(C)}catch(e){p(x,"throw",e)}P=y?a(x,g,[k.value,C],!0):k.value;try{c(w,C,P)}catch(e){p(x,"throw",e)}}return d(w,C),w}},9617:function(e,t,n){"use strict";var r=n(5397),o=n(5610),i=n(6198),a=function(e){return function(t,n,a){var s=r(t),u=i(s);if(0===u)return!e&&-1;var l,c=o(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={m:a(!0),q:a(!1)}},9213:function(e,t,n){"use strict";var r=n(6080),o=n(7055),i=n(8981),a=n(6198),s=n(1469),u=n(4659),l=function(e){var t=1===e,n=2===e,l=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,v,m){for(var g,y,b=i(p),w=o(b),k=a(w),x=r(v,m),S=0,P=0,O=t?s(p,k):n||f?s(p,0):void 0;k>S;S++)if((h||S in w)&&(y=x(g=w[S],S,b),e))if(t)u(O,S,y);else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:u(O,P++,g)}else switch(e){case 4:return!1;case 7:u(O,P++,g)}return d?-1:l||c?c:O}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},597:function(e,t,n){"use strict";var r=n(9039),o=n(8227),i=n(9519),a=o("species");e.exports=function(e){return i>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},4598:function(e,t,n){"use strict";var r=n(9039);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},926:function(e,t,n){"use strict";var r=n(9306),o=n(8981),i=n(7055),a=n(6198),s=TypeError,u="Reduce of empty array with no initial value",l=function(e){return function(t,n,l,c){var d=o(t),f=i(d),h=a(d);if(r(n),0===h&&l<2)throw new s(u);var p=e?h-1:0,v=e?-1:1;if(l<2)for(;;){if(p in f){c=f[p],p+=v;break}if(p+=v,e?p<0:h<=p)throw new s(u)}for(;e?p>=0:h>p;p+=v)p in f&&(c=n(c,f[p],p,d));return c}};e.exports={k:l(!1),right:l(!0)}},4527:function(e,t,n){"use strict";var r=n(3724),o=n(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,n){"use strict";var r=n(9504);e.exports=r([].slice)},4488:function(e,t,n){"use strict";var r=n(7680),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=e[u];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==u++&&(e[s]=a)}else for(var l=o(n/2),c=i(r(e,0,l),t),d=i(r(e,l),t),f=c.length,h=d.length,p=0,v=0;p<f||v<h;)e[p+v]=p<f&&v<h?t(c[p],d[v])<=0?c[p++]:d[v++]:p<f?c[p++]:d[v++];return e};e.exports=i},7433:function(e,t,n){"use strict";var r=n(4376),o=n(3517),i=n(34),a=n(8227)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},1469:function(e,t,n){"use strict";var r=n(7433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6319:function(e,t,n){"use strict";var r=n(8551),o=n(9539);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},4428:function(e,t,n){"use strict";var r=n(8227)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},2195:function(e,t,n){"use strict";var r=n(9504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:function(e,t,n){"use strict";var r=n(2140),o=n(4901),i=n(2195),a=n(8227)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},6938:function(e,t,n){"use strict";var r=n(2360),o=n(2106),i=n(6279),a=n(6080),s=n(679),u=n(4117),l=n(2652),c=n(1088),d=n(2529),f=n(7633),h=n(3724),p=n(3451).fastKey,v=n(1181),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e(function(e,o){s(e,f),m(e,{type:t,index:r(null),first:null,last:null,size:0}),h||(e.size=0),u(o)||l(o,e[c],{that:e,AS_ENTRIES:n})}),f=d.prototype,v=g(t),y=function(e,t,n){var r,o,i=v(e),a=b(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=a),r&&(r.next=a),h?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var n,r=v(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(f,{clear:function(){for(var e=v(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),h?e.size=0:this.size=0},delete:function(e){var t=this,n=v(t),r=b(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&o(f,"size",{configurable:!0,get:function(){return v(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);c(e,t,function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:null})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))},n?"entries":"values",!n,!0),f(t)}}},4006:function(e,t,n){"use strict";var r=n(9504),o=n(6279),i=n(3451).getWeakData,a=n(679),s=n(8551),u=n(4117),l=n(34),c=n(2652),d=n(9213),f=n(9297),h=n(1181),p=h.set,v=h.getterFor,m=d.find,g=d.findIndex,y=r([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new k)},k=function(){this.entries=[]},x=function(e,t){return m(e.entries,function(e){return e[0]===t})};k.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e(function(e,o){a(e,h),p(e,{type:t,id:b++,frozen:null}),u(o)||c(o,e[r],{that:e,AS_ENTRIES:n})}),h=d.prototype,m=v(t),g=function(e,t,n){var r=m(e),o=i(s(t),!0);return!0===o?w(r).set(t,n):o[r.id]=n,e};return o(h,{delete:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&f(n,t.id)}}),o(h,n?{get:function(e){var t=m(this);if(l(e)){var n=i(e);if(!0===n)return w(t).get(e);if(n)return n[t.id]}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},6468:function(e,t,n){"use strict";var r=n(6518),o=n(4576),i=n(9504),a=n(2796),s=n(6840),u=n(3451),l=n(2652),c=n(679),d=n(4901),f=n(4117),h=n(34),p=n(9039),v=n(4428),m=n(687),g=n(3167);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",k=o[e],x=k&&k.prototype,S=k,P={},O=function(e){var t=i(x[e]);s(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(k)||!(b||x.forEach&&!p(function(){(new k).entries().next()}))))S=n.getConstructor(t,e,y,w),u.enable();else if(a(e,!0)){var _=new S,C=_[w](b?{}:-0,1)!==_,E=p(function(){_.has(1)}),j=v(function(e){new k(e)}),M=!b&&p(function(){for(var e=new k,t=5;t--;)e[w](t,t);return!e.has(-0)});j||((S=t(function(e,t){c(e,x);var n=g(new k,e,S);return f(t)||l(t,n[w],{that:n,AS_ENTRIES:y}),n})).prototype=x,x.constructor=S),(E||M)&&(O("delete"),O("has"),y&&O("get")),(M||C)&&O(w),b&&x.clear&&delete x.clear}return P[e]=S,r({global:!0,constructor:!0,forced:S!==k},P),m(S,e),b||n.setStrong(S,e,y),S}},7740:function(e,t,n){"use strict";var r=n(9297),o=n(5031),i=n(7347),a=n(4913);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||u(e,d,l(t,d))}}},1436:function(e,t,n){"use strict";var r=n(8227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},2211:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},3640:function(e,t,n){"use strict";var r=n(8551),o=n(4270),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},2106:function(e,t,n){"use strict";var r=n(283),o=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},6840:function(e,t,n){"use strict";var r=n(4901),o=n(4913),i=n(283),a=n(9433);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&i(n,l,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,n){"use strict";var r=n(6840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},9433:function(e,t,n){"use strict";var r=n(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4606:function(e,t,n){"use strict";var r=n(6823),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},3724:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,n){"use strict";var r=n(4576),o=n(34),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},7400:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(e,t,n){"use strict";var r=n(4055)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(e,t,n){"use strict";var r=n(2839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},3763:function(e,t,n){"use strict";var r=n(2839);e.exports=/MSIE|Trident/.test(r)},4265:function(e,t,n){"use strict";var r=n(2839);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},9544:function(e,t,n){"use strict";var r=n(2839);e.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)},6193:function(e,t,n){"use strict";var r=n(4215);e.exports="NODE"===r},7860:function(e,t,n){"use strict";var r=n(2839);e.exports=/web0s(?!.*chrome)/i.test(r)},2839:function(e,t,n){"use strict";var r=n(4576).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},9519:function(e,t,n){"use strict";var r,o,i=n(4576),a=n(2839),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},3607:function(e,t,n){"use strict";var r=n(2839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},4215:function(e,t,n){"use strict";var r=n(4576),o=n(2839),i=n(2195),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},6518:function(e,t,n){"use strict";var r=n(4576),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),u=n(7740),l=n(2796);e.exports=function(e,t){var n,c,d,f,h,p=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=o(n,c))&&h.value:n[c],!l(v?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,c,f,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9228:function(e,t,n){"use strict";n(7495);var r=n(9565),o=n(6840),i=n(7323),a=n(9039),s=n(8227),u=n(6699),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!a(function(){var t={};return t[f]=function(){return 7},7!==""[e](t)}),p=h&&!a(function(){var t=!1,n=/a/;if("split"===e){var r={};r[l]=function(){return n},(n={constructor:r,flags:""})[f]=/./[f]}return n.exec=function(){return t=!0,null},n[f](""),!t});if(!h||!p||n){var v=/./[f],m=t(f,""[e],function(e,t,n,o,a){var s=t.exec;return s===i||s===c.exec?h&&!a?{done:!0,value:r(v,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}});o(String.prototype,e,m[0]),o(c,f,m[1])}d&&u(c[f],"sham",!0)}},259:function(e,t,n){"use strict";var r=n(4376),o=n(6198),i=n(6837),a=n(6080),s=n(4659),u=function(e,t,n,l,c,d,f,h){for(var p,v,m=c,g=0,y=!!f&&a(f,h);g<l;)g in n&&(p=y?y(n[g],g,t):n[g],d>0&&r(p)?(v=o(p),m=u(e,t,p,v,m,d-1)-1):(i(m+1),s(e,m,p)),m++),g++;return m};e.exports=u},2744:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},8745:function(e,t,n){"use strict";var r=n(616),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},6080:function(e,t,n){"use strict";var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},566:function(e,t,n){"use strict";var r=n(9504),o=n(9306),i=n(34),a=n(9297),s=n(7680),u=n(616),l=Function,c=r([].concat),d=r([].join),f={};e.exports=u?l.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),u=function(){var n=c(r,s(arguments));return this instanceof u?function(e,t,n){if(!a(f,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";f[t]=l("C,a","return new C("+d(r,",")+")")}return f[t](e,n)}(t,n.length,n):t.apply(e,n)};return i(n)&&(u.prototype=n),u}},9565:function(e,t,n){"use strict";var r=n(616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,n){"use strict";var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},6706:function(e,t,n){"use strict";var r=n(9504),o=n(9306);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},7476:function(e,t,n){"use strict";var r=n(2195),o=n(9504);e.exports=function(e){if("Function"===r(e))return o(e)}},9504:function(e,t,n){"use strict";var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,n){"use strict";var r=n(4576),o=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},8563:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(8551),a=n(6823),s=n(3085),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw new u(a(e)+" is not iterable")}},3085:function(e,t,n){"use strict";var r=n(2195),o=n(4117),i=n(5966),a=n(8227)("iterator"),s=Array.prototype;e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||("Arguments"===r(e)?s[a]:void 0)}},5966:function(e,t,n){"use strict";var r=n(9306),o=n(4117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},2478:function(e,t,n){"use strict";var r=n(9504),o=n(8981),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,p=r.length,v=c;return void 0!==d&&(d=o(d),v=l),s(f,v,function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":l=d[u(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var f=i(c/10);return 0===f?o:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):o}l=r[c-1]}return void 0===l?"":l})}},4576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){"use strict";var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},3138:function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},397:function(e,t,n){"use strict";var r=n(7751);e.exports=r("document","documentElement")},5917:function(e,t,n){"use strict";var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(2195),a=Object,s=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3167:function(e,t,n){"use strict";var r=n(4901),o=n(34),i=n(2967);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},3706:function(e,t,n){"use strict";var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},3451:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(421),a=n(34),s=n(9297),u=n(4913).f,l=n(8480),c=n(298),d=n(4124),f=n(3392),h=n(2744),p=!1,v=f("meta"),m=0,g=function(e){u(e,v,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=l.f,t=o([].splice),n={};n[v]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===v){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},onFreeze:function(e){return h&&p&&d(e)&&!s(e,v)&&g(e),e}};i[v]=!0},1181:function(e,t,n){"use strict";var r,o,i,a=n(8622),s=n(4576),u=n(34),l=n(6699),c=n(9297),d=n(7629),f=n(6119),h=n(421),p="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new v(p);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=f("state");h[y]=!0,r=function(e,t){if(c(e,y))throw new v(p);return t.facade=e,l(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}}}},4209:function(e,t,n){"use strict";var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4376:function(e,t,n){"use strict";var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},3517:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4901),a=n(6955),s=n(7751),u=n(3706),l=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.test(l),p=function(e){if(!i(e))return!1;try{return c(l,[],e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,u(e))}catch(e){return!0}};v.sham=!0,e.exports=!c||o(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?v:p},6575:function(e,t,n){"use strict";var r=n(9297);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},2796:function(e,t,n){"use strict";var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===c||n!==l&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},4117:function(e){"use strict";e.exports=function(e){return null==e}},34:function(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},3925:function(e,t,n){"use strict";var r=n(34);e.exports=function(e){return r(e)||null===e}},6395:function(e){"use strict";e.exports=!1},5810:function(e,t,n){"use strict";var r=n(34),o=n(1181).get;e.exports=function(e){if(!r(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},788:function(e,t,n){"use strict";var r=n(34),o=n(2195),i=n(8227)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},757:function(e,t,n){"use strict";var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},2652:function(e,t,n){"use strict";var r=n(6080),o=n(9565),i=n(8551),a=n(6823),s=n(4209),u=n(6198),l=n(1625),c=n(8563),d=n(3085),f=n(9539),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,n){var m,g,y,b,w,k,x,S=n&&n.that,P=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),_=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),E=r(t,S),j=function(e){var t=m;return m=void 0,t&&f(t,"normal"),new p(!0,e)},M=function(e){return P?(i(e),C?E(e[0],e[1],j):E(e[0],e[1])):C?E(e,j):E(e)};if(O)m=e.iterator;else if(_)m=e;else{if(!(g=d(e)))throw new h(a(e)+" is not iterable");if(s(g)){for(y=0,b=u(e);b>y;y++)if((w=M(e[y]))&&l(v,w))return w;return new p(!1)}m=c(e,g)}for(k=O?e.next:m.next;!(x=o(k,m)).done;){var T=x.value;try{w=M(T)}catch(e){if(!m)throw e;f(m,"throw",e)}if("object"==typeof w&&w&&l(v,w))return w}return new p(!1)}},9539:function(e,t,n){"use strict";var r=n(9565),o=n(8551),i=n(5966);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},3994:function(e,t,n){"use strict";var r=n(7657).IteratorPrototype,o=n(2360),i=n(6980),a=n(687),s=n(6269),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},1088:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(6395),a=n(350),s=n(4901),u=n(3994),l=n(2787),c=n(2967),d=n(687),f=n(6699),h=n(6840),p=n(8227),v=n(6269),m=n(7657),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",S="values",P="entries",O=function(){return this};e.exports=function(e,t,n,a,p,m,_){u(n,t,a);var C,E,j,M=function(e){if(e===p&&L)return L;if(!w&&e&&e in I)return I[e];switch(e){case x:case S:case P:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",A=!1,I=e.prototype,R=I[k]||I["@@iterator"]||p&&I[p],L=!w&&R||M(p),B="Array"===t&&I.entries||R;if(B&&(C=l(B.call(new e)))!==Object.prototype&&C.next&&(i||l(C)===b||(c?c(C,b):s(C[k])||h(C,k,O)),d(C,T,!0,!0),i&&(v[T]=O)),g&&p===S&&R&&R.name!==S&&(!i&&y?f(I,"name",S):(A=!0,L=function(){return o(R,this)})),p)if(E={values:M(S),keys:m?L:M(x),entries:M(P)},_)for(j in E)(w||A||!(j in I))&&h(I,j,E[j]);else r({target:t,proto:!0,forced:w||A},E);return i&&!_||I[k]===L||h(I,k,L,{name:p}),v[t]=L,E}},7657:function(e,t,n){"use strict";var r,o,i,a=n(9039),s=n(4901),u=n(34),l=n(2360),c=n(2787),d=n(6840),f=n(8227),h=n(6395),p=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0),!u(r)||a(function(){var e={};return r[p].call(e)!==e})?r={}:h&&(r=l(r)),s(r[p])||d(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},6269:function(e){"use strict";e.exports=Object.create?Object.create(null):{}},6198:function(e,t,n){"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,l=n(3706),c=n(1181),d=c.enforce,f=c.get,h=String,p=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),y=s&&!o(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===v(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&f(this).source||l(this)},"toString")},7787:function(e){"use strict";var t=Math.log,n=Math.LN2;e.exports=Math.log2||function(e){return t(e)/n}},7782:function(e){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},1955:function(e,t,n){"use strict";var r,o,i,a,s,u=n(4576),l=n(3389),c=n(6080),d=n(9225).h,f=n(8265),h=n(9544),p=n(4265),v=n(7860),m=n(6193),g=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,w=u.Promise,k=l("queueMicrotask");if(!k){var x=new f,S=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};h||m||v||!g||!y?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),r=function(){s(S)}):m?r=function(){b.nextTick(S)}:(d=c(d,u),r=function(){d(S)}):(o=!0,i=y.createTextNode(""),new g(S).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),k=function(e){x.head||r(),x.add(e)}}e.exports=k},7819:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},6043:function(e,t,n){"use strict";var r=n(9306),o=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},5749:function(e,t,n){"use strict";var r=n(788),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},3904:function(e,t,n){"use strict";var r=n(4576),o=n(9039),i=n(9504),a=n(655),s=n(3802).Bq,u=n(7452),l=i("".charAt),c=r.parseFloat,d=r.Symbol,f=d&&d.iterator,h=1/c(u+"-0")!=-1/0||f&&!o(function(){c(Object(f))});e.exports=h?function(e){var t=s(a(e)),n=c(t);return 0===n&&"-"===l(t,0)?-0:n}:c},2703:function(e,t,n){"use strict";var r=n(4576),o=n(9039),i=n(9504),a=n(655),s=n(3802).Bq,u=n(7452),l=r.parseInt,c=r.Symbol,d=c&&c.iterator,f=/^[+-]?0x/i,h=i(f.exec),p=8!==l(u+"08")||22!==l(u+"0x16")||d&&!o(function(){l(Object(d))});e.exports=p?function(e,t){var n=s(a(e));return l(n,t>>>0||(h(f,n)?16:10))}:l},4213:function(e,t,n){"use strict";var r=n(3724),o=n(9504),i=n(9565),a=n(9039),s=n(1072),u=n(3717),l=n(8773),c=n(8981),d=n(7055),f=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!f||a(function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!==f({},e)[n]||s(f({},t)).join("")!==o})?function(e,t){for(var n=c(e),o=arguments.length,a=1,f=u.f,h=l.f;o>a;)for(var v,m=d(arguments[a++]),g=f?p(s(m),f(m)):s(m),y=g.length,b=0;y>b;)v=g[b++],r&&!i(h,m,v)||(n[v]=m[v]);return n}:f},2360:function(e,t,n){"use strict";var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),u=n(397),l=n(4055),c=n(6119),d="prototype",f="script",h=c("IE_PROTO"),p=function(){},v=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?m(r):(t=l("iframe"),n="java"+f+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(r);for(var o=a.length;o--;)delete g[d][a[o]];return g()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=o(e),n=new p,p[d]=null,n[h]=e):n=g(),void 0===t?n:i.f(n,t)}},6801:function(e,t,n){"use strict";var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),u=n(1072);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),l=o.length,c=0;l>c;)i.f(e,n=o[c++],r[n]);return e}},4913:function(e,t,n){"use strict";var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){"use strict";var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),u=n(6969),l=n(9297),c=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},298:function(e,t,n){"use strict";var r=n(2195),o=n(5397),i=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8480:function(e,t,n){"use strict";var r=n(1828),o=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,n){"use strict";var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},4124:function(e,t,n){"use strict";var r=n(9039),o=n(34),i=n(2195),a=n(5652),s=Object.isExtensible,u=r(function(){s(1)});e.exports=u||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!==i(e))&&(!s||s(e))}:s},1625:function(e,t,n){"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1828:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=n(5397),a=n(9617).q,s=n(421),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},1072:function(e,t,n){"use strict";var r=n(1828),o=n(8727);e.exports=Object.keys||function(e){return r(e,o)}},8773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2967:function(e,t,n){"use strict";var r=n(6706),o=n(34),i=n(7750),a=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},2357:function(e,t,n){"use strict";var r=n(3724),o=n(9039),i=n(9504),a=n(2787),s=n(1072),u=n(5397),l=i(n(8773).f),c=i([].push),d=r&&o(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),f=function(e){return function(t){for(var n,o=u(t),i=s(o),f=d&&null===a(o),h=i.length,p=0,v=[];h>p;)n=i[p++],r&&!(f?n in o:l(o,n))||c(v,e?[n,o[n]]:o[n]);return v}};e.exports={j:f(!0),z:f(!1)}},3179:function(e,t,n){"use strict";var r=n(2140),o=n(6955);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},4270:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(34),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},5031:function(e,t,n){"use strict";var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},8235:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),l=r("".slice),c=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=u(e,t);if("\\"===p){var v=l(e,t,t+2);if(o(d,v))r+=d[v],t+=2;else{if("\\u"!==v)throw new i('Unknown escape sequence: "'+v+'"');var m=l(e,t+=2,t+4);if(!c(f,m))throw new i("Bad Unicode escape at: "+t);r+=s(a(m,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(c(h,p))throw new i("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:r,end:t}}},9167:function(e,t,n){"use strict";var r=n(4576);e.exports=r},1103:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},916:function(e,t,n){"use strict";var r=n(4576),o=n(550),i=n(4901),a=n(2796),s=n(3706),u=n(8227),l=n(4215),c=n(6395),d=n(9519),f=o&&o.prototype,h=u("species"),p=!1,v=i(r.PromiseRejectionEvent),m=a("Promise",function(){var e=s(o),t=e!==String(o);if(!t&&66===d)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[h]=r,!(p=n.then(function(){})instanceof r))return!0}return!(t||"BROWSER"!==l&&"DENO"!==l||v)});e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:p}},550:function(e,t,n){"use strict";var r=n(4576);e.exports=r.Promise},3438:function(e,t,n){"use strict";var r=n(8551),o=n(34),i=n(6043);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},537:function(e,t,n){"use strict";var r=n(550),o=n(4428),i=n(916).CONSTRUCTOR;e.exports=i||!o(function(e){r.all(e).then(void 0,function(){})})},1056:function(e,t,n){"use strict";var r=n(4913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},8265:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},6682:function(e,t,n){"use strict";var r=n(9565),o=n(8551),i=n(4901),a=n(2195),s=n(7323),u=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var l=r(n,e,t);return null!==l&&o(l),l}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},7323:function(e,t,n){"use strict";var r,o,i=n(9565),a=n(9504),s=n(655),u=n(7979),l=n(8429),c=n(5745),d=n(2360),f=n(1181).get,h=n(3635),p=n(8814),v=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,y=a("".charAt),b=a("".indexOf),w=a("".replace),k=a("".slice),x=(o=/b*/g,i(m,r=/a/,"a"),i(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=l.BROKEN_CARET,P=void 0!==/()??/.exec("")[1],O=function(e,t){for(var n=e.groups=d(null),r=0;r<t.length;r++){var o=t[r];n[o[0]]=e[o[1]]}};(x||P||S||h||p)&&(g=function(e){var t,n,r,o=this,a=f(o),l=s(e),c=a.raw;if(c)return c.lastIndex=o.lastIndex,t=i(g,c,l),o.lastIndex=c.lastIndex,t&&a.groups&&O(t,a.groups),t;var d=a.groups,h=S&&o.sticky,p=i(u,o),_=o.source,C=0,E=l;if(h){p=w(p,"y",""),-1===b(p,"g")&&(p+="g"),E=k(l,o.lastIndex);var j=o.lastIndex>0&&y(l,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==j&&"\r"!==j&&"\u2028"!==j&&"\u2029"!==j)&&(_="(?: (?:"+_+"))",E=" "+E,C++),n=new RegExp("^(?:"+_+")",p)}P&&(n=new RegExp("^"+_+"$(?!\\s)",p)),x&&(r=o.lastIndex);var M=i(m,h?n:o,E);return h?M?(M.input=l,M[0]=k(M[0],C),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:x&&M&&(o.lastIndex=o.global?M.index+M[0].length:r),P&&M&&M.length>1&&i(v,M[0],n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(M[e]=void 0)}),M&&d&&O(M,d),M}),e.exports=g},5213:function(e,t,n){"use strict";var r=n(4576),o=n(9039),i=r.RegExp,a=!o(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:a}},7979:function(e,t,n){"use strict";var r=n(8551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1034:function(e,t,n){"use strict";var r=n(9565),o=n(9297),i=n(1625),a=n(5213),s=n(7979),u=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!i(u,e)||o(e,"flags")?e.flags:r(s,e)}},8429:function(e,t,n){"use strict";var r=n(9039),o=n(4576).RegExp,i=r(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=i||r(function(){return!o("a","y").sticky}),s=i||r(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},3635:function(e,t,n){"use strict";var r=n(9039),o=n(4576).RegExp;e.exports=r(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},8814:function(e,t,n){"use strict";var r=n(9039),o=n(4576).RegExp;e.exports=r(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},7750:function(e,t,n){"use strict";var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},3389:function(e,t,n){"use strict";var r=n(4576),o=n(3724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},3470:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},7633:function(e,t,n){"use strict";var r=n(7751),o=n(2106),i=n(8227),a=n(3724),s=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},687:function(e,t,n){"use strict";var r=n(4913).f,o=n(9297),i=n(8227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},6119:function(e,t,n){"use strict";var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,n){"use strict";var r=n(6395),o=n(4576),i=n(9433),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){"use strict";var r=n(7629),o=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||o(null))}},2293:function(e,t,n){"use strict";var r=n(8551),o=n(5548),i=n(4117),a=n(8227)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},8183:function(e,t,n){"use strict";var r=n(9504),o=n(1291),i=n(655),a=n(7750),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),f=o(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=u(d,f))<55296||r>56319||f+1===h||(c=u(d,f+1))<56320||c>57343?e?s(d,f):r:e?l(d,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={L:c(!1),o:c(!0)}},3802:function(e,t,n){"use strict";var r=n(9504),o=n(7750),i=n(655),a=n(7452),s=r("".replace),u=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:c(1),end:c(2),Bq:c(3)}},4495:function(e,t,n){"use strict";var r=n(9519),o=n(9039),i=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},8242:function(e,t,n){"use strict";var r=n(9565),o=n(7751),i=n(8227),a=n(6840);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,function(e){return r(n,this)},{arity:1})}},1296:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},9225:function(e,t,n){"use strict";var r,o,i,a,s=n(4576),u=n(8745),l=n(6080),c=n(4901),d=n(9297),f=n(9039),h=n(397),p=n(7680),v=n(4055),m=n(2812),g=n(9544),y=n(6193),b=s.setImmediate,w=s.clearImmediate,k=s.process,x=s.Dispatch,S=s.Function,P=s.MessageChannel,O=s.String,_=0,C={},E="onreadystatechange";f(function(){r=s.location});var j=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},M=function(e){return function(){j(e)}},T=function(e){j(e.data)},A=function(e){s.postMessage(O(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),n=p(arguments,1);return C[++_]=function(){u(t,void 0,n)},o(_),_},w=function(e){delete C[e]},y?o=function(e){k.nextTick(M(e))}:x&&x.now?o=function(e){x.now(M(e))}:P&&!g?(a=(i=new P).port2,i.port1.onmessage=T,o=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(A)?(o=A,s.addEventListener("message",T,!1)):o=E in v("script")?function(e){h.appendChild(v("script"))[E]=function(){h.removeChild(this),j(e)}}:function(e){setTimeout(M(e),0)}),e.exports={h:b,clear:w}},1240:function(e,t,n){"use strict";var r=n(9504);e.exports=r(1.1.valueOf)},5610:function(e,t,n){"use strict";var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5397:function(e,t,n){"use strict";var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},1291:function(e,t,n){"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8014:function(e,t,n){"use strict";var r=n(1291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,n){"use strict";var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},2777:function(e,t,n){"use strict";var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){"use strict";var r=n(2777),o=n(757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},2140:function(e,t,n){"use strict";var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},655:function(e,t,n){"use strict";var r=n(6955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:function(e,t,n){"use strict";var r=n(9504),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7416:function(e,t,n){"use strict";var r=n(9039),o=n(8227),i=n(3724),a=n(6395),s=o("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),r+=n+e}),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host})},918:function(e,t,n){"use strict";n(7337);var r=n(7751),o=n(9504),i=String.fromCharCode,a=r("String","fromCodePoint"),s=encodeURIComponent,u=parseInt,l=o("".charAt),c=o([].push),d=o("".replace),f=o("".slice),h=o(/./.exec),p="�",v=/^[0-9a-f]+$/i,m=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,g=function(e,t){var n=f(e,t,t+2);return h(v,n)?u(n,16):NaN},y=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},b=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(n>3?65536:n>2?2048:n>1?128:0)?null:t},w=function(e){return 2===e.length?e:p};e.exports={decode:function(e){for(var t=e.length,n="",r=0;r<t;){var o=l(e,r);if("%"===o){if("%"===l(e,r+1)||r+3>t){n+="%",r++;continue}var s=g(e,r+1);if(s!=s){n+=o,r++;continue}r+=2;var u=y(s);if(0===u)o=i(s);else{if(1===u||u>4){n+=p,r++;continue}for(var d=[s],f=1;f<u&&!(3+ ++r>t||"%"!==l(e,r));){var h=g(e,r+1);if(h!=h||h>191||h<128)break;if(1===f){if(224===s&&h<160)break;if(237===s&&h>159)break;if(240===s&&h<144)break;if(244===s&&h>143)break}c(d,h),r+=2,f++}if(d.length!==u){n+=p;continue}var v=b(d);if(null===v){for(var m=0;m<u;m++)n+=p;r++;continue}o=a(v)}}n+=o,r++}return n},encode:function(e){try{return s(e)}catch(t){return s(d(e,m,w))}}}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){"use strict";var r=n(3724),o=n(9039);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},8622:function(e,t,n){"use strict";var r=n(4576),o=n(4901),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},511:function(e,t,n){"use strict";var r=n(9167),o=n(9297),i=n(1951),a=n(4913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},1951:function(e,t,n){"use strict";var r=n(8227);t.f=r},8227:function(e,t,n){"use strict";var r=n(4576),o=n(5745),i=n(9297),a=n(3392),s=n(4495),u=n(7040),l=r.Symbol,c=o("wks"),d=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:d("Symbol."+e)),c[e]}},7452:function(e){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},8706:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(4376),a=n(34),s=n(8981),u=n(6198),l=n(6837),c=n(4659),d=n(4527),f=n(1469),h=n(597),p=n(8227),v=n(9519),m=p("isConcatSpreadable"),g=v>=51||!o(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,n,r,o,i,a=s(this),h=f(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t]))for(o=u(i),l(p+o),n=0;n<o;n++,p++)n in i&&c(h,p,i[n]);else l(p+1),c(h,p++,i);return d(h,p),h}})},2008:function(e,t,n){"use strict";var r=n(6518),o=n(9213).filter;r({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8980:function(e,t,n){"use strict";var r=n(6518),o=n(9213).findIndex,i=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},113:function(e,t,n){"use strict";var r=n(6518),o=n(9213).find,i=n(6469),a="find",s=!0;a in[]&&Array(1)[a](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},3418:function(e,t,n){"use strict";var r=n(6518),o=n(7916);r({target:"Array",stat:!0,forced:!n(4428)(function(e){Array.from(e)})},{from:o})},4423:function(e,t,n){"use strict";var r=n(6518),o=n(9617).m,i=n(9039),a=n(6469),s=i(function(){return!Array(1).includes()}),u=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},3792:function(e,t,n){"use strict";var r=n(5397),o=n(6469),i=n(6269),a=n(1181),s=n(4913).f,u=n(1088),l=n(2529),c=n(6395),d=n(3724),f="Array Iterator",h=a.set,p=a.getterFor(f);e.exports=u(Array,"Array",function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)},"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},8598:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(7055),a=n(5397),s=n(4598),u=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return u(a(this),void 0===e?",":e)}})},2062:function(e,t,n){"use strict";var r=n(6518),o=n(9213).map;r({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2712:function(e,t,n){"use strict";var r=n(6518),o=n(926).k,i=n(4598),a=n(9519);r({target:"Array",proto:!0,forced:!n(6193)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},4490:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(4376),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},4782:function(e,t,n){"use strict";var r=n(6518),o=n(4376),i=n(3517),a=n(34),s=n(5610),u=n(6198),l=n(5397),c=n(4659),d=n(4527),f=n(8227),h=n(597),p=n(7680),v=h("slice"),m=f("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,f,h=l(this),v=u(h),b=s(e,v),w=s(void 0===t?v:t,v);if(o(h)&&(n=h.constructor,(i(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return p(h,b,w);for(r=new(void 0===n?g:n)(y(w-b,0)),f=0;b<w;b++,f++)b in h&&c(r,f,h[b]);return d(r,f),r}})},6910:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(9306),a=n(8981),s=n(6198),u=n(4606),l=n(655),c=n(9039),d=n(4488),f=n(4598),h=n(3709),p=n(3763),v=n(9519),m=n(3607),g=[],y=o(g.sort),b=o(g.push),w=c(function(){g.sort(void 0)}),k=c(function(){g.sort(null)}),x=f("sort"),S=!c(function(){if(v)return v<70;if(!(h&&h>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort(function(e,t){return t.v-e.v}),r=0;r<g.length;r++)t=g[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:w||!k||!x||!S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var n,r,o=[],c=s(t);for(r=0;r<c;r++)r in t&&b(o,t[r]);for(d(o,function(e){return function(t,n){if(void 0===n)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,n)||0;var r=l(t),o=l(n);return r===o?0:r>o?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)u(t,r++);return t}})},4554:function(e,t,n){"use strict";var r=n(6518),o=n(8981),i=n(5610),a=n(1291),s=n(6198),u=n(4527),l=n(6837),c=n(1469),d=n(4659),f=n(4606),h=n(597)("splice"),p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,h,m,g,y,b=o(this),w=s(b),k=i(e,w),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=w-k):(n=x-2,r=v(p(a(t),0),w-k)),l(w+n-r),h=c(b,r),m=0;m<r;m++)(g=k+m)in b&&d(h,m,b[g]);if(u(h,r),n<r){for(m=k;m<w-r;m++)y=m+n,(g=m+r)in b?b[y]=b[g]:f(b,y);for(m=w;m>w-r+n;m--)f(b,m-1)}else if(n>r)for(m=w-r;m>k;m--)y=m+n-1,(g=m+r-1)in b?b[y]=b[g]:f(b,y);for(m=0;m<n;m++)b[m+k]=arguments[m+2];return u(b,w-r+n),h}})},739:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(8981),a=n(2777);r({target:"Date",proto:!0,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=i(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},9572:function(e,t,n){"use strict";var r=n(9297),o=n(6840),i=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype;r(s,a)||o(s,a,i)},2010:function(e,t,n){"use strict";var r=n(3724),o=n(350).EXISTS,i=n(9504),a=n(2106),s=Function.prototype,u=i(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(l.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(e){return""}}})},3110:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(9565),a=n(9504),s=n(9039),u=n(4376),l=n(4901),c=n(34),d=n(2360),f=n(5810),h=n(757),p=n(2195),v=n(1240),m=n(9617).m,g=n(9297),y=n(655),b=n(8235),w=n(3392),k=n(4495),x=n(7819),S=String,P=TypeError,O=o("JSON","stringify"),_=o("BigInt"),C=a("".valueOf),E=a((!0).valueOf),j=_&&a(_.prototype.valueOf),M=a(/./.exec),T=a("".charAt),A=a("".charCodeAt),I=a("".replace),R=a("".slice),L=a([].push),B=a([].pop),$=a(1.1.toString),D=/[\uD800-\uDFFF]/g,z=/^[\uD800-\uDBFF]$/,F=/^[\uDC00-\uDFFF]$/,N=/^\d+$/,U=w(),H=w(),W=w(),q=U.length,V=H.length,G=!k||s(function(){var e=o("Symbol")("stringify detection");return"[null]"!==O([e])||"{}"!==O({a:e})||"{}"!==O(Object(e))}),Z=s(function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")}),X=x?o("JSON","isRawJSON"):f,Y=G?function(e,t,n){return O(e,function(e,n){var r=i(t,this,e,n);if(!h(r))return r},n)}:O,K=function(e,t,n){var r=T(n,t-1),o=T(n,t+1);return M(z,e)&&!M(F,o)||M(F,e)&&!M(z,r)?"\\u"+$(A(e,0),16):e},J=function(e,t){try{return e(t),!0}catch(e){return!1}},Q=function(e,t){return{toJSON:function(){var n=e[t];if(c(n)||"bigint"==typeof n){var r=n.toJSON;l(r)&&(n=i(r,n,t))}return n}}};O&&r({target:"JSON",stat:!0,arity:3,forced:G||Z||!x},{stringify:function(e,t,n){var r,o=l(t)?t:void 0,a=o?void 0:function(e){if(u(e)){for(var t=e.length,n=[],r=d(null),o=0;o<t;o++){var i,a=e[o];if("string"==typeof a)i=a;else{if("number"!=typeof a&&"Number"!==p(a)&&"String"!==p(a))continue;i=y(a)}g(r,i)||(r[i]=!0,L(n,i))}return n}}(t),s=a&&function(e){for(var t=0,n=e.length;t<n;t++)if(M(N,e[t]))return H;return""}(a),f=[],h=[],w=[],k=!1,O=!0,_=Y(e,function(e,t){if(e=S(e),a){if(e===W)return B(h),void(r=B(w));if(O)O=!1;else if(this!==r&&!u(this)&&!m(a,e))return}else o&&(t=i(o,this,e,t));if(X(t))return x?t:(k=!0,U+(L(f,t.rawJSON)-1));if(a&&function(e){if(!c(e)||l(e)||u(e))return!1;try{return!function(e){var t=p(e);return"Number"===t&&J(v,e)||"String"===t&&J(C,e)||"Boolean"===t&&J(E,e)||!!j&&"BigInt"===t&&J(j,e)}(e)}catch(e){return!0}}(t)){if(m(h,t))throw new P("Converting circular structure to JSON");var n=function(e,t,n){for(var r=d(null),o=0,i=t.length;o<i;o++){var a=t[o];r[n+a]=Q(e,a)}return r[W]=null,r}(t,a,s);return L(h,t),L(w,r),r=n,s&&(k=!0),n}return t},n);if("string"!=typeof _)return _;if(Z&&(_=I(_,D,K)),!k)return _;for(var A="",$=_.length,z=0;z<$;z++){var F=T(_,z);if('"'===F){var G=b(_,++z).end-1,ee=R(_,z,G);R(ee,0,q)===U?A+=f[R(ee,q)]:R(ee,0,V)===H?A+='"'+R(ee,V)+'"':A+='"'+ee+'"',z=G}else A+=F}return A}})},4731:function(e,t,n){"use strict";var r=n(4576);n(687)(r.JSON,"JSON",!0)},8523:function(e,t,n){"use strict";n(6468)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(6938))},6033:function(e,t,n){"use strict";n(8523)},479:function(e,t,n){"use strict";n(687)(Math,"Math",!0)},2892:function(e,t,n){"use strict";var r=n(6518),o=n(6395),i=n(3724),a=n(4576),s=n(9167),u=n(9504),l=n(2796),c=n(9297),d=n(3167),f=n(1625),h=n(757),p=n(2777),v=n(9039),m=n(8480).f,g=n(7347).f,y=n(4913).f,b=n(1240),w=n(3802).Bq,k="Number",x=a[k],S=s[k],P=x.prototype,O=a.TypeError,_=u("".slice),C=u("".charCodeAt),E=l(k,!x(" 0o1")||!x("0b1")||x("+0x1")),j=function(e){var t,n=arguments.length<1?0:x(function(e){var t=p(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,o,i,a,s,u,l=p(e,"number");if(h(l))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=w(l),43===(t=C(l,0))||45===t){if(88===(n=C(l,2))||120===n)return NaN}else if(48===t){switch(C(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=_(l,2)).length,s=0;s<a;s++)if((u=C(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+l}(t)}(e));return f(P,t=this)&&v(function(){b(t)})?d(Object(n),this,j):n};j.prototype=P,E&&!o&&(P.constructor=j),r({global:!0,constructor:!0,wrap:!0,forced:E},{Number:j});var M=function(e,t){for(var n,r=i?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&y(e,n,g(t,n))};o&&S&&M(s[k],S),(E||o)&&M(s[k],x)},9085:function(e,t,n){"use strict";var r=n(6518),o=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5506:function(e,t,n){"use strict";var r=n(6518),o=n(2357).j;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},2811:function(e,t,n){"use strict";var r=n(6518),o=n(2744),i=n(9039),a=n(34),s=n(3451).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i(function(){u(1)}),sham:!o},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},3851:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(5397),a=n(7347).f,s=n(3724);r({target:"Object",stat:!0,forced:!s||o(function(){a(1)}),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},1278:function(e,t,n){"use strict";var r=n(6518),o=n(3724),i=n(5031),a=n(5397),s=n(7347),u=n(4659);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),c={},d=0;l.length>d;)void 0!==(n=o(r,t=l[d++]))&&u(c,t,n);return c}})},9773:function(e,t,n){"use strict";var r=n(6518),o=n(4495),i=n(9039),a=n(3717),s=n(8981);r({target:"Object",stat:!0,forced:!o||i(function(){a.f(1)})},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},875:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(8981),a=n(2787),s=n(2211);r({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},9432:function(e,t,n){"use strict";var r=n(6518),o=n(8981),i=n(1072);r({target:"Object",stat:!0,forced:n(9039)(function(){i(1)})},{keys:function(e){return i(o(e))}})},6099:function(e,t,n){"use strict";var r=n(2140),o=n(6840),i=n(3179);r||o(Object.prototype,"toString",i,{unsafe:!0})},6034:function(e,t,n){"use strict";var r=n(6518),o=n(2357).z;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},8459:function(e,t,n){"use strict";var r=n(6518),o=n(3904);r({global:!0,forced:parseFloat!==o},{parseFloat:o})},8940:function(e,t,n){"use strict";var r=n(6518),o=n(2703);r({global:!0,forced:parseInt!==o},{parseInt:o})},6499:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,c=s(function(){var n=i(t.resolve),a=[],s=0,c=1;u(e,function(e){var i=s++,u=!1;c++,o(n,t,e).then(function(e){u||(u=!0,a[i]=e,--c||r(a))},l)}),--c||r(a)});return c.error&&l(c.value),n.promise}})},2003:function(e,t,n){"use strict";var r=n(6518),o=n(6395),i=n(916).CONSTRUCTOR,a=n(550),s=n(7751),u=n(4901),l=n(6840),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(a)){var d=s("Promise").prototype.catch;c.catch!==d&&l(c,"catch",d,{unsafe:!0})}},436:function(e,t,n){"use strict";var r,o,i,a,s=n(6518),u=n(6395),l=n(6193),c=n(4576),d=n(9167),f=n(9565),h=n(6840),p=n(2967),v=n(687),m=n(7633),g=n(9306),y=n(4901),b=n(34),w=n(679),k=n(2293),x=n(9225).h,S=n(1955),P=n(3138),O=n(1103),_=n(8265),C=n(1181),E=n(550),j=n(916),M=n(6043),T="Promise",A=j.CONSTRUCTOR,I=j.REJECTION_EVENT,R=j.SUBCLASSING,L=C.getterFor(T),B=C.set,$=E&&E.prototype,D=E,z=$,F=c.TypeError,N=c.document,U=c.process,H=M.f,W=H,q=!!(N&&N.createEvent&&c.dispatchEvent),V="unhandledrejection",G=function(e){var t;return!(!b(e)||!y(t=e.then))&&t},Z=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),o=!0)),n===e.promise?l(new F("Promise-chain cycle")):(r=G(n))?f(r,n,u,l):u(n)):l(i)}catch(e){c&&!o&&c.exit(),l(e)}},X=function(e,t){e.notified||(e.notified=!0,S(function(){for(var n,r=e.reactions;n=r.get();)Z(n,e);e.notified=!1,t&&!e.rejection&&K(e)}))},Y=function(e,t,n){var r,o;q?((r=N.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!I&&(o=c["on"+e])?o(r):e===V&&P("Unhandled promise rejection",n)},K=function(e){f(x,c,function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=O(function(){l?U.emit("unhandledRejection",r,n):Y(V,n,r)}),e.rejection=l||J(e)?2:1,t.error))throw t.value})},J=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){f(x,c,function(){var t=e.facade;l?U.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new F("Promise can't be resolved itself");var r=G(t);r?S(function(){var n={done:!1};try{f(r,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){te({done:!1},t,e)}}};if(A&&(z=(D=function(e){w(this,z),g(e),f(r,this);var t=L(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){B(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=h(z,"then",function(e,t){var n=L(this),r=H(k(this,D));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=l?U.domain:void 0,0===n.state?n.reactions.add(r):S(function(){Z(r,n)}),r.promise}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},M.f=H=function(e){return e===D||e===i?new o(e):W(e)},!u&&y(E)&&$!==Object.prototype)){a=$.then,R||h($,"then",function(e,t){var n=this;return new D(function(e,t){f(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete $.constructor}catch(e){}p&&p($,z)}s({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:D}),i=d.Promise,v(D,T,!1,!0),m(T)},3362:function(e,t,n){"use strict";n(436),n(6499),n(2003),n(7743),n(1481),n(280)},7743:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{race:function(e){var t=this,n=a.f(t),r=n.reject,l=s(function(){var a=i(t.resolve);u(e,function(e){o(a,t,e).then(n.resolve,r)})});return l.error&&r(l.value),n.promise}})},1481:function(e,t,n){"use strict";var r=n(6518),o=n(6043);r({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},280:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(6395),a=n(550),s=n(916).CONSTRUCTOR,u=n(3438),l=o("Promise"),c=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return u(c&&this===l?a:this,e)}})},825:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(8745),a=n(566),s=n(5548),u=n(8551),l=n(34),c=n(2360),d=n(9039),f=o("Reflect","construct"),h=Object.prototype,p=[].push,v=d(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),m=!d(function(){f(function(){})}),g=v||m;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e);var n=arguments.length<3?e:s(arguments[2]);if(u(t),m&&!v)return f(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(l(o)?o:h),g=i(e,d,t);return l(g)?g:d}})},888:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(34),a=n(8551),s=n(6575),u=n(7347),l=n(2787),c=n(6969),d=function(e,t,n){if(a(e)===n)return e[t];var r=u.f(e,t);if(r)return s(r)?r.value:void 0===r.get?void 0:o(r.get,n);var c=l(e);return i(c)?d(c,t,n):void 0};r({target:"Reflect",stat:!0},{get:function(e,t){return d(a(e),c(t),arguments.length<3?e:arguments[2])}})},4864:function(e,t,n){"use strict";var r=n(3724),o=n(4576),i=n(9504),a=n(2796),s=n(3167),u=n(6699),l=n(2360),c=n(8480).f,d=n(1625),f=n(788),h=n(655),p=n(1034),v=n(8429),m=n(1056),g=n(6840),y=n(9039),b=n(9297),w=n(1181).enforce,k=n(7633),x=n(8227),S=n(3635),P=n(8814),O=x("match"),_=o.RegExp,C=_.prototype,E=o.SyntaxError,j=i(C.exec),M=i("".charAt),T=i("".replace),A=i("".indexOf),I=i("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,B=/a/g,$=new _(L)!==L,D=v.MISSED_STICKY,z=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!$||D||S||P||y(function(){return B[O]=!1,_(L)!==L||_(B)===B||"/a/i"!==String(_(L,"i"))})))){for(var F=function(e,t){var n,r,o,i,a,c,v=d(C,this),m=f(e),g=void 0===t,y=[],k=e;if(!v&&m&&g&&e.constructor===F)return e;if((m||d(C,e))&&(e=e.source,g&&(t=p(k))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),k=e,S&&"dotAll"in L&&(r=!!t&&A(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,D&&"sticky"in L&&(o=!!t&&A(t,"y")>-1)&&z&&(t=T(t,/y/g,"")),P&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=l(null),s=!1,u=!1,c=0,d="";r<n;r++){if("\\"===(t=M(e,r))){if(t+=M(e,++r),!u&&"\\"===M(t,1)){o+="\\x5c";continue}}else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:o+=t,j(R,I(e,r+1))?(r+=2,u=!0,c++):"?"!==M(e,r+1)&&c++;continue;case">"===t&&u:if(""===d||b(a,d))throw new E("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],u=!1,d="";continue}u?d+=t:o+=t}for(var f=0;f<i.length;f++)for(var h="\\k<"+i[f][0]+">",p="\\"+i[f][1];A(o,h)>-1;)o=T(o,h,p);return[o,i]}(e),e=i[0],y=i[1]),a=s(_(e,t),v?this:C,F),(r||o||y.length)&&(c=w(a),r&&(c.dotAll=!0,c.raw=F(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<n;r++)"\\"!==(t=M(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+M(e,++r);return o}(e),n)),o&&(c.sticky=!0),y.length&&(c.groups=y)),e!==k)try{u(a,"source",""===k?"(?:)":k)}catch(e){}return a},N=c(_),U=0;N.length>U;)m(F,_,N[U++]);C.constructor=F,F.prototype=C,g(o,"RegExp",F,{constructor:!0})}k("RegExp")},7495:function(e,t,n){"use strict";var r=n(6518),o=n(7323);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8781:function(e,t,n){"use strict";var r=n(350).PROPER,o=n(6840),i=n(8551),a=n(655),s=n(9039),u=n(1034),l="toString",c=RegExp.prototype,d=c[l],f=s(function(){return"/a/b"!==d.call({source:"a",flags:"b"})}),h=r&&d.name!==l;(f||h)&&o(c,l,function(){var e=i(this);return"/"+a(e.source)+"/"+a(u(e))},{unsafe:!0})},2405:function(e,t,n){"use strict";n(6468)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(6938))},1415:function(e,t,n){"use strict";n(2405)},9449:function(e,t,n){"use strict";var r,o=n(6518),i=n(7476),a=n(7347).f,s=n(8014),u=n(655),l=n(5749),c=n(7750),d=n(1436),f=n(6395),h=i("".slice),p=Math.min,v=d("endsWith");o({target:"String",proto:!0,forced:!(!f&&!v&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(e){var t=u(c(this));l(e);var n=u(e),r=arguments.length>1?arguments[1]:void 0,o=t.length,i=void 0===r?o:p(s(r),o);return h(t,i-n.length,i)===n}})},7337:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(5610),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,l=o([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(i(t=+arguments[o],1114111)!==t)throw new a(t+" is not a valid code point");n[o++]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},1699:function(e,t,n){"use strict";var r=n(6518),o=n(9504),i=n(5749),a=n(7750),s=n(655),u=n(1436),l=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},7764:function(e,t,n){"use strict";var r=n(8183).o,o=n(655),i=n(1181),a=n(1088),s=n(2529),u="String Iterator",l=i.set,c=i.getterFor(u);a(String,"String",function(e){l(this,{type:u,string:o(e),index:0})},function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))})},1761:function(e,t,n){"use strict";var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(34),u=n(8014),l=n(655),c=n(7750),d=n(5966),f=n(7829),h=n(1034),p=n(6682),v=o("".indexOf);i("match",function(e,t,n){return[function(t){var n=c(this),o=s(t)?d(t,e):void 0;if(o)return r(o,t,n);var i=l(n);return new RegExp(t)[e](i)},function(e){var r=a(this),o=l(e),i=n(t,r,o);if(i.done)return i.value;var s=l(h(r));if(!~v(s,"g"))return p(r,o);var c=!!~v(s,"u")||!!~v(s,"v");r.lastIndex=0;for(var d,m=[],g=0;null!==(d=p(r,o));){var y=l(d[0]);m[g]=y,""===y&&(r.lastIndex=f(o,u(r.lastIndex),c)),g++}return 0===g?null:m}]})},5440:function(e,t,n){"use strict";var r=n(8745),o=n(9565),i=n(9504),a=n(9228),s=n(9039),u=n(8551),l=n(4901),c=n(34),d=n(1291),f=n(8014),h=n(655),p=n(7750),v=n(7829),m=n(5966),g=n(2478),y=n(1034),b=n(6682),w=n(8227)("replace"),k=Math.max,x=Math.min,S=i([].concat),P=i([].push),O=i("".indexOf),_=i("".slice),C=function(e){return void 0===e?e:String(e)},E="$0"==="a".replace(/./,"$0"),j=!!/./[w]&&""===/./[w]("a","$0");a("replace",function(e,t,n){var i=j?"$":"$0";return[function(e,n){var r=p(this),i=c(e)?m(e,w):void 0;return i?o(i,e,r,n):o(t,h(r),e,n)},function(e,o){var a=u(this),s=h(e),c=l(o);c||(o=h(o));var p=h(y(a));if("string"==typeof o&&!~O(o,i)&&!~O(o,"$<")&&!~O(p,"y")){var m=n(t,a,s,o);if(m.done)return m.value}var w,E=!!~O(p,"g");E&&(w=!!~O(p,"u")||!!~O(p,"v"),a.lastIndex=0);for(var j,M=[];null!==(j=b(a,s))&&(P(M,j),E);)""===h(j[0])&&(a.lastIndex=v(s,f(a.lastIndex),w));for(var T="",A=0,I=0;I<M.length;I++){for(var R,L=h((j=M[I])[0]),B=k(x(d(j.index),s.length),0),$=[],D=1;D<j.length;D++)P($,C(j[D]));var z=j.groups;if(c){var F=S([L],$,B,s);void 0!==z&&P(F,z),R=h(r(o,void 0,F))}else R=g(L,s,B,$,z,o);B>=A&&(T+=_(s,A,B)+R,A=B+L.length)}return T+_(s,A)}]},!!s(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!E||j)},5746:function(e,t,n){"use strict";var r=n(9565),o=n(9228),i=n(8551),a=n(34),s=n(7750),u=n(3470),l=n(655),c=n(5966),d=n(6682);o("search",function(e,t,n){return[function(t){var n=s(this),o=a(t)?c(t,e):void 0;if(o)return r(o,t,n);var i=l(n);return new RegExp(t)[e](i)},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var c=d(r,o);return u(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]})},744:function(e,t,n){"use strict";var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(34),u=n(7750),l=n(2293),c=n(7829),d=n(8014),f=n(655),h=n(5966),p=n(1034),v=n(6682),m=n(8429),g=n(9039),y=m.UNSUPPORTED_Y,b=Math.min,w=o([].push),k=o("".slice),x=o("".indexOf),S=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),P="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",function(e,t,n){var o="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var i=u(this),a=s(t)?h(t,e):void 0;return a?r(a,t,i,n):r(o,f(i),t,n)},function(e,r){var i=a(this),s=f(e);if(!P){var u=n(o,i,s,r,o!==t);if(u.done)return u.value}var h=l(i,RegExp),m=f(p(i)),g=!!~x(m,"u")||!!~x(m,"v");y?~x(m,"g")||(m+="g"):~x(m,"y")||(m+="y");var S=new h(y?"^(?:"+i.source+")":i,m),O=void 0===r?4294967295:r>>>0;if(0===O)return[];if(0===s.length)return null===v(S,s)?[s]:[];for(var _=0,C=0,E=[];C<s.length;){S.lastIndex=y?0:C;var j,M=v(S,y?k(s,C):s);if(null===M||(j=b(d(S.lastIndex+(y?C:0)),s.length))===_)C=c(s,C,g);else{if(w(E,k(s,_,C)),E.length===O)return E;for(var T=1;T<=M.length-1;T++)if(w(E,M[T]),E.length===O)return E;C=_=j}}return w(E,k(s,_)),E}]},P||!S,y)},1392:function(e,t,n){"use strict";var r,o=n(6518),i=n(7476),a=n(7347).f,s=n(8014),u=n(655),l=n(5749),c=n(7750),d=n(1436),f=n(6395),h=i("".slice),p=Math.min,v=d("startsWith");o({target:"String",proto:!0,forced:!(!f&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(e){var t=u(c(this));l(e);var n=u(e),r=s(p(arguments.length>1?arguments[1]:void 0,t.length));return h(t,r,r+n.length)===n}})},6761:function(e,t,n){"use strict";var r=n(6518),o=n(4576),i=n(9565),a=n(9504),s=n(6395),u=n(3724),l=n(4495),c=n(9039),d=n(9297),f=n(1625),h=n(8551),p=n(5397),v=n(6969),m=n(655),g=n(6980),y=n(2360),b=n(1072),w=n(8480),k=n(298),x=n(3717),S=n(7347),P=n(4913),O=n(6801),_=n(8773),C=n(6840),E=n(2106),j=n(5745),M=n(6119),T=n(421),A=n(3392),I=n(8227),R=n(1951),L=n(511),B=n(8242),$=n(687),D=n(1181),z=n(9213).forEach,F=M("hidden"),N="Symbol",U="prototype",H=D.set,W=D.getterFor(N),q=Object[U],V=o.Symbol,G=V&&V[U],Z=o.RangeError,X=o.TypeError,Y=o.QObject,K=S.f,J=P.f,Q=k.f,ee=_.f,te=a([].push),ne=j("symbols"),re=j("op-symbols"),oe=j("wks"),ie=!Y||!Y[U]||!Y[U].findChild,ae=function(e,t,n){var r=K(q,t);return r&&delete q[t],J(e,t,n),r&&e!==q&&J(q,t,r),e},se=u&&c(function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?ae:J,ue=function(e,t){var n=ne[e]=y(G);return H(n,{type:N,tag:e,description:t}),u||(n.description=t),n},le=function(e,t,n){e===q&&le(re,t,n),h(e);var r=v(t);return h(n),d(ne,r)?(("enumerable"in n?!n.enumerable:!d(e,r)||d(e,F)&&e[F][r])?(d(e,F)||J(e,F,g(1,y(null))),e[F][r]=!0):(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:g(0,!1)})),se(e,r,n)):J(e,r,n)},ce=function(e,t){h(e);var n=p(t),r=b(n).concat(pe(n));return z(r,function(t){u&&!i(de,n,t)||le(e,t,n[t])}),e},de=function(e){var t=v(e),n=i(ee,this,t);return!(this===q&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,F)&&this[F][t])||n)},fe=function(e,t){var n=p(e),r=v(t);if(n!==q||!d(ne,r)||d(re,r)){var o=K(n,r);return!o||!d(ne,r)||d(n,F)&&n[F][r]||(o.enumerable=!0),o}},he=function(e){var t=Q(p(e)),n=[];return z(t,function(e){d(ne,e)||d(T,e)||te(n,e)}),n},pe=function(e){var t=e===q,n=Q(t?re:p(e)),r=[];return z(n,function(e){!d(ne,e)||t&&!d(q,e)||te(r,ne[e])}),r};l||(V=function(){if(f(G,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=A(e),n=function(e){var r=void 0===this?o:this;r===q&&i(n,re,e),d(r,F)&&d(r[F],t)&&(r[F][t]=!1);var a=g(1,e);try{se(r,t,a)}catch(e){if(!(e instanceof Z))throw e;ae(r,t,a)}};return u&&ie&&se(q,t,{configurable:!0,set:n}),ue(t,e)},C(G=V[U],"toString",function(){return W(this).tag}),C(V,"withoutSetter",function(e){return ue(A(e),e)}),_.f=de,P.f=le,O.f=ce,S.f=fe,w.f=k.f=he,x.f=pe,R.f=function(e){return ue(I(e),e)},u&&(E(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||C(q,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),z(b(oe),function(e){L(e)}),r({target:N,stat:!0,forced:!l},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he}),B(),$(V,N),T[F]=!0},9463:function(e,t,n){"use strict";var r=n(6518),o=n(3724),i=n(4576),a=n(9565),s=n(9504),u=n(9297),l=n(4901),c=n(1625),d=n(655),f=n(2106),h=n(7740),p=i.Symbol,v=p&&p.prototype;if(o&&l(p)&&(!("description"in v)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(v,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};h(g,p);var y=g.for;g.for={for:function(e){var t=d(e),n=a(y,this,t);return""===t&&(m[n]=!0),n}}.for,g.prototype=v,v.constructor=g;var b="Symbol(description detection)"===String(p("description detection")),w=s(v.valueOf),k=s(v.toString),x=/^Symbol\((.*)\)[^)]+$/,S=s("".replace),P=s("".slice);f(v,"description",{configurable:!0,get:function(){var e=w(this);if(u(m,e))return"";var t=k(e),n=b?P(t,7,-1):S(t,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},1510:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(9297),a=n(655),s=n(5745),u=n(1296),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},2259:function(e,t,n){"use strict";n(511)("iterator")},2675:function(e,t,n){"use strict";n(6761),n(1510),n(7812),n(3110),n(9773)},7812:function(e,t,n){"use strict";var r=n(6518),o=n(9297),i=n(757),a=n(6823),s=n(5745),u=n(1296),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},5700:function(e,t,n){"use strict";var r=n(511),o=n(8242);r("toPrimitive"),o()},8125:function(e,t,n){"use strict";var r=n(7751),o=n(511),i=n(687);o("toStringTag"),i(r("Symbol"),"Symbol")},3365:function(e,t,n){"use strict";var r,o=n(2744),i=n(4576),a=n(9504),s=n(6279),u=n(3451),l=n(6468),c=n(4006),d=n(34),f=n(1181).enforce,h=n(9039),p=n(8622),v=Object,m=Array.isArray,g=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,k=v.seal,x=!i.ActiveXObject&&"ActiveXObject"in i,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},P=l("WeakMap",S,c),O=P.prototype,_=a(O.set);if(p)if(x){r=c.getConstructor(S,"WeakMap",!0),u.enable();var C=a(O.delete),E=a(O.has),j=a(O.get);s(O,{delete:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new r),C(this,e)||t.frozen.delete(e)}return C(this,e)},has:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new r),E(this,e)?j(this,e):t.frozen.get(e)}return j(this,e)},set:function(e,t){if(d(e)&&!g(e)){var n=f(this);n.frozen||(n.frozen=new r),E(this,e)?_(this,e,t):n.frozen.set(e,t)}else _(this,e,t);return this}})}else o&&h(function(){var e=w([]);return _(new P,e,1),!y(e)})&&s(O,{set:function(e,t){var n;return m(e)&&(y(e)?n=w:b(e)&&(n=k)),_(this,e,t),n&&n(e),this}})},3772:function(e,t,n){"use strict";n(3365)},3500:function(e,t,n){"use strict";var r=n(4576),o=n(7400),i=n(9296),a=n(235),s=n(6699),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},2953:function(e,t,n){"use strict";var r=n(4576),o=n(7400),i=n(9296),a=n(3792),s=n(6699),u=n(687),l=n(8227)("iterator"),c=a.values,d=function(e,t){if(e){if(e[l]!==c)try{s(e,l,c)}catch(t){e[l]=c}if(u(e,t,!0),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)d(r[f]&&r[f].prototype,f);d(i,"DOMTokenList")},8406:function(e,t,n){"use strict";n(3792);var r=n(6518),o=n(4576),i=n(3389),a=n(9565),s=n(9504),u=n(3724),l=n(7416),c=n(918),d=n(6840),f=n(2106),h=n(6279),p=n(687),v=n(3994),m=n(1181),g=n(679),y=n(4901),b=n(9297),w=n(6080),k=n(6955),x=n(8551),S=n(34),P=n(655),O=n(2360),_=n(6980),C=n(8563),E=n(3085),j=n(2529),M=n(2812),T=n(8227),A=n(4488),I=T("iterator"),R="URLSearchParams",L=R+"Iterator",B=m.set,$=m.getterFor(R),D=m.getterFor(L),z=c.decode,F=c.encode,N=i("fetch"),U=i("Request"),H=i("Headers"),W=U&&U.prototype,q=H&&H.prototype,V=o.TypeError,G=s("".charAt),Z=s([].join),X=s([].push),Y=s("".replace),K=s([].shift),J=s([].splice),Q=s("".split),ee=s("".slice),te=/\+/g,ne=function(e){return z(Y(e,te," "))},re=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ie=function(e){return oe[e]},ae=function(e){return Y(F(e),re,ie)},se=v(function(e,t){B(this,{type:L,target:$(e).entries,index:0,kind:t})},R,function(){var e=D(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,j(void 0,!0);var r=t[n];switch(e.kind){case"keys":return j(r.key,!1);case"values":return j(r.value,!1)}return j([r.key,r.value],!1)},!0),ue=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ee(e,1):e:P(e)))};ue.prototype={type:R,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,u,l=this.entries,c=E(e);if(c)for(n=(t=C(e,c)).next;!(r=a(n,t)).done;){if(i=(o=C(x(r.value))).next,(s=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new V("Expected sequence with length 2");X(l,{key:P(s.value),value:P(u.value)})}else for(var d in e)b(e,d)&&X(l,{key:d,value:P(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=Q(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(n=Q(t,"="),X(r,{key:ne(K(n)),value:ne(Z(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,ae(e.key)+"="+ae(e.value));return Z(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var le=function(){g(this,ce);var e=B(this,new ue(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},ce=le.prototype;if(h(ce,{append:function(e,t){var n=$(this);M(arguments.length,2),X(n.entries,{key:P(e),value:P(t)}),u||this.size++,n.updateURL()},delete:function(e){for(var t=$(this),n=M(arguments.length,1),r=t.entries,o=P(e),i=n<2?void 0:arguments[1],a=void 0===i?i:P(i),s=0;s<r.length;){var l=r[s];l.key!==o||void 0!==a&&l.value!==a?s++:J(r,s,1)}u||(this.size=r.length),t.updateURL()},get:function(e){var t=$(this).entries;M(arguments.length,1);for(var n=P(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=$(this).entries;M(arguments.length,1);for(var n=P(e),r=[],o=0;o<t.length;o++)t[o].key===n&&X(r,t[o].value);return r},has:function(e){for(var t=$(this).entries,n=M(arguments.length,1),r=P(e),o=n<2?void 0:arguments[1],i=void 0===o?o:P(o),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var n=$(this);M(arguments.length,2);for(var r,o=n.entries,i=!1,a=P(e),s=P(t),l=0;l<o.length;l++)(r=o[l]).key===a&&(i?J(o,l--,1):(i=!0,r.value=s));i||X(o,{key:a,value:s}),u||(this.size=o.length),n.updateURL()},sort:function(){var e=$(this);A(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=$(this).entries,r=w(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),d(ce,I,ce.entries,{name:"entries"}),d(ce,"toString",function(){return $(this).serialize()},{enumerable:!0}),u&&f(ce,"size",{get:function(){return $(this).entries.length},configurable:!0,enumerable:!0}),p(le,R),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:le}),!l&&y(H)){var de=s(q.has),fe=s(q.set),he=function(e){if(S(e)){var t,n=e.body;if(k(n)===R)return t=e.headers?new H(e.headers):new H,de(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),O(e,{body:_(0,P(n)),headers:_(0,t)})}return e};if(y(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return N(e,arguments.length>1?he(arguments[1]):{})}}),y(U)){var pe=function(e){return g(this,W),new U(e,arguments.length>1?he(arguments[1]):{})};W.constructor=pe,pe.prototype=W,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pe})}}e.exports={URLSearchParams:le,getState:$}},8408:function(e,t,n){"use strict";n(8406)},1091:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{OA:function(){return s},WL:function(){return l},u$:function(){return u}}),n(2675),n(9463),n(2259),n(5700),n(3418),n(3792),n(4782),n(9572),n(2010),n(2892),n(6099),n(7495),n(8781),n(7764),n(2953);var s={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},u=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{_$litDirective$:e,values:n}}},l=function(){return function(e,t){return t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,function(e){if(Array.isArray(e))return o(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}])}()},9447:function(e,t,n){"use strict";n.d(t,{ge:function(){return re},qy:function(){return z},c0:function(){return N},s6:function(){return U},XX:function(){return ie},JW:function(){return F}});var r,o=n.cw(function(e,t){var r=n(6518),o=n(4373),i=n(6469);r({target:"Array",proto:!0},{fill:o}),i("fill")});function i(e,t,n){return t=s(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function v(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}n(2675),n(9463),n(2259),n(5700),n(8706),o(),n(3418),n(3792),n(4782),n(9572),n(2010),n(2892),n(875),n(6099),n(825),n(4864),n(7495),n(8781),n(9449),n(7764),n(744),n(1392),n(3772),n(2953);var y=window,b=y.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,k="$lit$",x="lit$".concat((Math.random()+"").slice(9),"$"),S="?"+x,P="<".concat(S,">"),O=document,_=function(){return O.createComment("")},C=function(e){return null===e||"object"!=g(e)&&"function"!=typeof e},E=Array.isArray,j=function(e){return E(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])},M="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,I=/>/g,R=RegExp(">|".concat(M,"(?:([^\\s\"'>=/]+)(").concat(M,"*=").concat(M,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),L=/'/g,B=/"/g,$=/^(?:script|style|textarea|title)$/i,D=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return{_$litType$:e,strings:t,values:r}}},z=D(1),F=D(2),N=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),H=new WeakMap,W=O.createTreeWalker(O,129,null,!1);function q(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(t):t}var V=function(e,t){for(var n,r=e.length-1,o=[],i=2===t?"<svg>":"",a=T,s=0;s<r;s++){for(var u=e[s],l=void 0,c=void 0,d=-1,f=0;f<u.length&&(a.lastIndex=f,null!==(c=a.exec(u)));)f=a.lastIndex,a===T?"!--"===c[1]?a=A:void 0!==c[1]?a=I:void 0!==c[2]?($.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=R):void 0!==c[3]&&(a=R):a===R?">"===c[0]?(a=null!=n?n:T,d=-1):void 0===c[1]?d=-2:(d=a.lastIndex-c[2].length,l=c[1],a=void 0===c[3]?R:'"'===c[3]?B:L):a===B||a===L?a=R:a===A||a===I?a=T:(a=R,n=void 0);var h=a===R&&e[s+1].startsWith("/>")?" ":"";i+=a===T?u+P:d>=0?(o.push(l),u.slice(0,d)+k+u.slice(d)+x+h):u+x+(-2===d?(o.push(void 0),s):h)}return[q(e,i+(e[r]||"<?>")+(2===t?"</svg>":"")),o]},G=function(){return v(function e(t,n){var r,o=t.strings,i=t._$litType$;h(this,e),this.parts=[];var a=0,s=0,u=o.length-1,l=this.parts,p=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(V(o,i),2),v=p[0],m=p[1];if(this.el=e.createElement(v,n),W.currentNode=this.el.content,2===i){var g=this.el.content,y=g.firstChild;y.remove(),g.append.apply(g,function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(y.childNodes))}for(;null!==(r=W.nextNode())&&l.length<u;){if(1===r.nodeType){if(r.hasAttributes()){var w,P=[],O=c(r.getAttributeNames());try{for(O.s();!(w=O.n()).done;){var C=w.value;if(C.endsWith(k)||C.startsWith(x)){var E=m[s++];if(P.push(C),void 0!==E){var j=r.getAttribute(E.toLowerCase()+k).split(x),M=/([.?@])?(.*)/.exec(E);l.push({type:1,index:a,name:M[2],strings:j,ctor:"."===M[1]?J:"?"===M[1]?ee:"@"===M[1]?te:K})}else l.push({type:6,index:a})}}}catch(e){O.e(e)}finally{O.f()}for(var T=0,A=P;T<A.length;T++){var I=A[T];r.removeAttribute(I)}}if($.test(r.tagName)){var R=r.textContent.split(x),L=R.length-1;if(L>0){r.textContent=b?b.emptyScript:"";for(var B=0;B<L;B++)r.append(R[B],_()),W.nextNode(),l.push({type:2,index:++a});r.append(R[L],_())}}}else if(8===r.nodeType)if(r.data===S)l.push({type:2,index:a});else for(var D=-1;-1!==(D=r.data.indexOf(x,D+1));)l.push({type:7,index:a}),D+=x.length-1;a++}},null,[{key:"createElement",value:function(e,t){var n=O.createElement("template");return n.innerHTML=e,n}}])}();function Z(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===N)return t;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,l=C(t)?void 0:t._$litDirective$;return(null==u?void 0:u.constructor)!==l&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===l?u=void 0:(u=new l(e))._$AT(e,a,s),void 0!==s?(null!==(o=(i=a)._$Co)&&void 0!==o?o:i._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(t=Z(e,u._$AS(e,t.values),u,s)),t}var X=function(){return v(function e(t,n){h(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n},[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,r=n.el.content,o=n.parts,i=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:O).importNode(r,!0);W.currentNode=i;for(var a=W.nextNode(),s=0,u=0,l=o[0];void 0!==l;){if(s===l.index){var c=void 0;2===l.type?c=new Y(a,a.nextSibling,this,e):1===l.type?c=new l.ctor(a,l.name,l.strings,this,e):6===l.type&&(c=new ne(a,this,e)),this._$AV.push(c),l=o[++u]}s!==(null==l?void 0:l.index)&&(a=W.nextNode(),s++)}return W.currentNode=O,i}},{key:"v",value:function(e){var t,n=0,r=c(this._$AV);try{for(r.s();!(t=r.n()).done;){var o=t.value;void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}}catch(e){r.e(e)}finally{r.f()}}}])}(),Y=function(){function e(t,n,r,o){var i;h(this,e),this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=o,this._$Cp=null===(i=null==o?void 0:o.isConnected)||void 0===i||i}return v(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),C(e)?e===U||null==e||""===e?(this._$AH!==U&&this._$AR(),this._$AH=U):e!==this._$AH&&e!==N&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):j(e)?this.T(e):this._(e)}},{key:"k",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"$",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}},{key:"_",value:function(e){this._$AH!==U&&C(this._$AH)?this._$AA.nextSibling.data=e:this.$(O.createTextNode(e)),this._$AH=e}},{key:"g",value:function(e){var t,n=e.values,r=e._$litType$,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=G.createElement(q(r.h,r.h[0]),this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{var i=new X(o,this),a=i.u(this.options);i.v(n),this.$(a),this._$AH=i}}},{key:"_$AC",value:function(e){var t=H.get(e.strings);return void 0===t&&H.set(e.strings,t=new G(e)),t}},{key:"T",value:function(t){E(this._$AH)||(this._$AH=[],this._$AR());var n,r,o=this._$AH,i=0,a=c(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;i===o.length?o.push(n=new e(this.k(_()),this.k(_()),this,this.options)):n=o[i],n._$AI(s),i++}}catch(e){a.e(e)}finally{a.f()}i<o.length&&(this._$AR(n&&n._$AB.nextSibling,i),o.length=i)}},{key:"_$AR",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var r=t.nextSibling;t.remove(),t=r}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),K=function(){return v(function e(t,n,r,o,i){h(this,e),this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=U},[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=this.strings,i=!1;if(void 0===o)e=Z(this,e,t,0),(i=!C(e)||e!==this._$AH&&e!==N)&&(this._$AH=e);else{var a,s,u=e;for(e=o[0],a=0;a<o.length-1;a++)(s=Z(this,u[n+a],t,a))===N&&(s=this._$AH[a]),i||(i=!C(s)||s!==this._$AH[a]),s===U?e=U:e!==U&&(e+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}i&&!r&&this.j(e)}},{key:"j",value:function(e){e===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}])}(),J=function(e){function t(){var e;return h(this,t),(e=i(this,t,arguments)).type=3,e}return u(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===U?void 0:e}}])}(K),Q=b?b.emptyScript:"",ee=function(e){function t(){var e;return h(this,t),(e=i(this,t,arguments)).type=4,e}return u(t,e),v(t,[{key:"j",value:function(e){e&&e!==U?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}])}(K),te=function(e){function t(e,n,r,o,a){var s;return h(this,t),(s=i(this,t,[e,n,r,o,a])).type=5,s}return u(t,e),v(t,[{key:"_$AI",value:function(e){var t;if((e=null!==(t=Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:U)!==N){var n=this._$AH,r=e===U&&n!==U||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==U&&(n===U||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}])}(K),ne=function(){return v(function e(t,n,r){h(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){Z(this,e)}}])}(),re={O:k,P:x,A:S,C:1,M:V,L:X,R:j,D:Z,I:Y,V:K,H:ee,N:te,U:J,F:ne},oe=y.litHtmlPolyfillSupport;null==oe||oe(G,Y),(null!==(r=y.litHtmlVersions)&&void 0!==r?r:y.litHtmlVersions=[]).push("2.8.0");var ie=function(e,t,n){var r,o,i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,a=i._$litPart$;if(void 0===a){var s=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new Y(t.insertBefore(_(),s),s,void 0,null!=n?n:{})}return a._$AI(e),a}},9696:function(e,t,n){"use strict";n.d(t,{EM:function(){return r},MZ:function(){return c},P:function(){return S},wk:function(){return v}});var r=function(e){return function(t){return"function"==typeof t?function(e,t){return customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){customElements.define(e,t)}}}(e,t)}};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(2675),n(9463),n(2259),n(5700),n(2008),n(3792),n(9572),n(2892),n(3851),n(1278),n(9432),n(6099),n(7764),n(3500),n(2953);var u=function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?a(a({},t),{},{finisher:function(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(n){n.createProperty(t.key,e)}}},l=function(e,t,n){t.constructor.createProperty(n,e)};function c(e){return function(t,n){return void 0!==n?l(e,t,n):u(e,t)}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return c(h(h({},e),{},{state:!0}))}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(9085);var w,k=function(e){var t=e.finisher,n=e.descriptor;return function(e,r){var o;if(void 0===r){var i=null!==(o=e.originalKey)&&void 0!==o?o:e.key,a=null!=n?{kind:"method",placement:"prototype",key:i,descriptor:n(e.key)}:y(y({},e),{},{key:i});return null!=t&&(a.finisher=function(e){t(e,i)}),a}var s=e.constructor;void 0!==n&&Object.defineProperty(e,r,n(r)),null==t||t(s,r)}};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function S(e,t){return k({descriptor:function(n){var r={get:function(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){var o="symbol"==x(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[o]&&(this[o]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[o]}}return r}})}n(875),n(3362),null===(w=window.HTMLSlotElement)||void 0===w||w.prototype.assignedElements},4535:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(9447),o=function(e){return null!=e?e:r.s6}},8900:function(e,t,n){"use strict";n.d(t,{W:function(){return p}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3418),n(4423),n(3792),n(2712),n(4782),n(9572),n(2010),n(2892),n(875),n(9432),n(6099),n(825),n(7495),n(8781),n(1415),n(9449),n(1699),n(7764),n(5440),n(3500),n(2953);var r=n(9447),o=n(1091);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f="important",h=" !"+f,p=(0,o.u$)(function(e){function t(e){var n,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=c(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}(this,t,[e]),e.type!==o.OA.ATTRIBUTE||"style"!==e.name||(null===(r=e.strings)||void 0===r?void 0:r.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,u=[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r?t:t+"".concat(n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")},"")}},{key:"update",value:function(e,t){var n=this,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0],i=e.element.style;if(void 0===this.ht){for(var s in this.ht=new Set,o)this.ht.add(s);return this.render(o)}for(var u in this.ht.forEach(function(e){null==o[e]&&(n.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}),o){var l=o[u];if(null!=l){this.ht.add(u);var c="string"==typeof l&&l.endsWith(h);u.includes("-")||c?i.setProperty(u,c?l.slice(0,-11):l,c?f:""):i[u]=l}}return r.c0}}],u&&s(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(o.WL))},6205:function(e,t,n){"use strict";n.d(t,{WF:function(){return re},AH:function(){return b},qy:function(){return G.qy},s6:function(){return G.s6},XX:function(){return G.XX},JW:function(){return G.JW}});var r=function(){return n(6518)},o=n.cw(function(e,t){var o=r(),i=n(259),a=n(8981),s=n(6198),u=n(1291),l=n(1469);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=s(t),r=void 0===e?1:u(e),o=l(t,0);return i(o,t,t,n,0,r),o}})}),i=n.cw(function(e,t){n(6469)("flat")}),a=n.cw(function(e,t){var o=r(),i=n(4576);o({global:!0,forced:i.globalThis!==i},{globalThis:i})}),s=n.cw(function(e,t){var o=r(),i=n(9039),a=n(298).f;o({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:a})}),u=n.cw(function(e,t){a()});function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}n(2675),n(9463),n(2259),n(5700),n(8706),o(),n(3418),n(3792),n(4490),n(4782),n(4554),i(),n(739),n(9572),n(2010),n(6033),n(2892),s(),n(875),n(9432),n(6099),n(3362),n(825),n(7495),n(8781),n(1415),n(7764),n(3500),n(2953),n(2062),n(2712),n(3772);var h,p=window,v=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),g=new WeakMap,y=function(){return function(e,t){return t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,r!==m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n},[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(v&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=g.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&g.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])}(),b=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=1===e.length?e[0]:n.reduce(function(t,n,r){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+e[r+1]},e[0]);return new y(o,e,m)},w=function(e,t){v?e.adoptedStyleSheets=t.map(function(e){return e instanceof CSSStyleSheet?e:e.styleSheet}):t.forEach(function(t){var n=document.createElement("style"),r=p.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)})},k=v?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e.cssRules);try{for(r.s();!(t=r.n()).done;)n+=t.value.cssText}catch(e){r.e(e)}finally{r.f()}return function(e){return new y("string"==typeof e?e:e+"",void 0,m)}(n)}(e):e};function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=P(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function S(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function C(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return E(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(E(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,E(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,E(d,"constructor",l),E(l,"constructor",u),u.displayName="GeneratorFunction",E(l,o,"GeneratorFunction"),E(d),E(d,o,"Generator"),E(d,r,function(){return this}),E(d,"toString",function(){return"[object Generator]"}),(C=function(){return{w:i,m:f}})()}function E(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}E=function(e,t,n,r){function i(t,n){E(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},E(e,t,n,r)}function j(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T(r.key),r)}}function T(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}function A(e){var t="function"==typeof Map?new Map:void 0;return A=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(I())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&R(o,n.prototype),o}(e,arguments,L(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),R(n,e)},A(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var B=window,$=B.trustedTypes,D=$?$.emptyScript:"",z=B.reactiveElementPolyfillSupport,F={toAttribute:function(e,t){switch(t){case Boolean:e=e?D:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},N=function(e,t){return t!==e&&(t==t||e==e)},U={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:N},H="finalized",W=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=L(t),function(e,t){if(t&&("object"==_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],L(e).constructor):t.apply(e,n))}(this,t))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e._$Eu(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(t,e),function(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_$Eu",value:function(){var e,t=this;this._$E_=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var e=this;this.constructor.elementProperties.forEach(function(t,n){e.hasOwnProperty(n)&&(e._$Ei.set(n,e[n]),delete e[n])})}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return w(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$ES)||void 0===e||e.forEach(function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,o=this.constructor._$Ep(e,r);if(void 0!==o&&!0===r.reflect){var i=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:F).toAttribute(t,r.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}},{key:"_$AK",value:function(e,t){var n,r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){var i=r.getPropertyOptions(o),a="function"==typeof i.converter?{fromAttribute:i.converter}:void 0!==(null===(n=i.converter)||void 0===n?void 0:n.fromAttribute)?i.converter:F;this._$El=o,this[o]=a.fromAttribute(t,i.type),this._$El=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||N)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(n=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){j(i,r,o,a,s,"next",e)}function s(e){j(i,r,o,a,s,"throw",e)}a(void 0)})}}(C().m(function e(){var t,n;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return this.isUpdatePending=!0,e.p=1,e.n=2,this._$E_;case 2:e.n=4;break;case 3:e.p=3,n=e.v,Promise.reject(n);case 4:if(null==(t=this.scheduleUpdate())){e.n=5;break}return e.n=5,t;case 5:return e.a(2,!this.isUpdatePending)}},e,this,[[1,3]])})),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(function(e,n){return t[n]=e}),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach(function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw n=!1,this._$Ek(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach(function(e,n){return t._$EO(n,t[n],e)}),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach(function(n,r){var o=e._$Ep(r,n);void 0!==o&&(e._$Ev.set(o,r),t.push(o))}),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==_(e)?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(r){var o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||U}},{key:"finalize",value:function(){if(this.hasOwnProperty(H))return!1;this[H]=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=S(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=x([].concat(S(Object.getOwnPropertyNames(n)),S(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var o=t.value;this.createProperty(o,n[o])}}catch(e){r.e(e)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=x(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var o=n.value;t.unshift(k(o))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(k(e));return t}},{key:"_$Ep",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]);var n}(A(HTMLElement));W[H]=!0,W.elementProperties=new Map,W.elementStyles=[],W.shadowRootOptions={mode:"open"},null==z||z({ReactiveElement:W}),(null!==(h=B.reactiveElementVersions)&&void 0!==h?h:B.reactiveElementVersions=[]).push("1.6.3");var q,V,G=n(9447);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e){if("object"!=Z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}function Q(e,t,n,r){var o=ee(te(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function ee(){return ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=te(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ee.apply(null,arguments)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}n(3851),n(888),u();var re=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=te(t),function(e,t){if(t&&("object"==Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}(e,J()?Reflect.construct(t,n||[],te(e).constructor):t.apply(e,n))}(this,t,arguments)).renderOptions={host:K(e)},e._$Do=void 0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(t,e),function(e,t){return t&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createRenderRoot",value:function(){var e,n,r=Q(t,"createRenderRoot",this,3)([]);return null!==(e=(n=this.renderOptions).renderBefore)&&void 0!==e||(n.renderBefore=r.firstChild),r}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Q(t,"update",this,3)([e]),this._$Do=(0,G.XX)(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;Q(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;Q(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return G.c0}}])}(W);re.finalized=!0,re._$litElement$=!0,null===(q=globalThis.litElementHydrateSupport)||void 0===q||q.call(globalThis,{LitElement:re});var oe=globalThis.litElementPolyfillSupport;null==oe||oe({LitElement:re}),(null!==(V=globalThis.litElementVersions)&&void 0!==V?V:globalThis.litElementVersions=[]).push("3.3.3")},4907:function(e,t,n){"use strict";n.d(t,{KL:function(){return g},LN:function(){return p},Ql:function(){return v}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3418),n(3792),n(2712),n(4782),n(9572),n(2010),n(2892),n(875),n(6099),n(3362),n(7495),n(8781),n(7764),n(2953);var r=n(8004),o=n(1669);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return c(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),h=d.prototype=s.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,c(h,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,o,"GeneratorFunction"),c(h),c(h,o,"Generator"),c(h,r,function(){return this}),c(h,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:p}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function i(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},c(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}var p=function(){return e=function e(t,n){var r=n.isProtected,i=n.imageCache;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=i,this.$container=o("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide).attr("data-index",null==t?void 0:t.index).attr("data-page-num",null==t?void 0:t.getPageNum()),r&&(this.$container.append(o('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null},t=[{key:"update",value:function(e){var t,n=this,o=e.dimensions,i=void 0===o?null:o,a=e.reduce,s=void 0===a?null:a;if(i&&this.$container.css(i),null!=s&&this.page){var u=this.imageCache.getFinalReduce(this.page.index,s),c=this.page.getURI(u,0),f=this.imageCache.imageLoaded(this.page.index,u),h=this.imageCache.getBestLoadedReduce(this.page.index,s);if((null===(t=this.$img)||void 0===t?void 0:t.data("src"))==c)return this;var p=this.$img;if(this.$img=this.imageCache.image(this.page.index,u),p?this.$img.insertAfter(p):this.$img.prependTo(this.$container),f||this.$container.addClass("BRpageloading"),!f&&h){var v=this.page.getURI(h,0);p?p.data("src")==v||this.imageCache.image(this.page.index,h,p[0]):(p=this.imageCache.image(this.page.index,h)).prependTo(this.$container)}return this.$img.one("load",function(){var e,t=(e=l().m(function e(t){var o;return l().w(function(e){for(;;)switch(e.n){case 0:return n.$container.removeClass("BRpageloading"),e.n=1,(0,r.yy)(100);case 1:null===(o=p)||void 0===o||o.remove();case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}()),this}}}],t&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function v(e,t){var n=document.createElement("div");return n.style.width="".concat(e.width,"px"),n.style.height="".concat(e.height,"px"),n.setAttribute("class","BRPageLayer ".concat(t)),n}function m(e){var t=e.l,n=e.r,r=e.b,o=e.t,i=document.createElementNS("http://www.w3.org/2000/svg","rect");return i.setAttribute("x",t.toString()),i.setAttribute("y",o.toString()),i.setAttribute("width",(n-t).toString()),i.setAttribute("height",(r-o).toString()),i.setAttribute("rx","4"),i.setAttribute("ry","4"),i}function g(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=r.querySelector(".".concat(e)),l=u||function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 ".concat(e.width," ").concat(e.height)),n.setAttribute("class","BRPageLayer ".concat(t)),n.setAttribute("preserveAspectRatio","none"),n}(n,e);if(!u){var c=r.querySelector(".BRpageimage");c?o(l).insertAfter(c):o(l).prependTo(r)}var d,f=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(t.entries());try{for(f.s();!(d=f.n()).done;){var h=a(d.value,2),p=h[0],v=m(h[1]);i&&v.setAttribute("class",i[p]),l.appendChild(v)}}catch(e){f.e(e)}finally{f.f()}}},8340:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r={fragmentChange:"fragmentChange",pageChanged:"pageChanged",beforePageChanged:"beforePageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected"}},8004:function(e,t,n){"use strict";function r(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function s(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return o(c,"_invoke",function(n,r,o){var i,a,s,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,s=e,f.n=n,u}};function h(n,r){for(a=n,s=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(a=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,a=0))}if(o||n>1)return u;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),a=c,s=p;(t=a<2?e:s)||!d;){i||(a?a<3?(a>1&&(f.n=-1),h(a,s)):f.n=s:f.v=s);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==u)break}catch(t){i=e,a=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,i,a),!0),c}var u={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(o(t={},i,function(){return this}),t),h=d.prototype=l.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return c.prototype=d,o(h,"constructor",d),o(d,"constructor",c),c.displayName="GeneratorFunction",o(d,a,"GeneratorFunction"),o(h),o(h,a,"Generator"),o(h,i,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:s,m:p}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function i(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)})}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e){e.bind("mousedown",function(){return!1}),e[0].onselectstart=function(){return!1}}function l(e,t,n){return Math.min(Math.max(e,t),n)}function c(e,t){return e/t*100+"%"}function d(e,t){return!t.includes(e)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.activeElement;return t&&null!=n&&n.shadowRoot?f(n.shadowRoot,!0):n}function h(){var e=f(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document);return"INPUT"==(null==e?void 0:e.tagName)||"TEXTAREA"==(null==e?void 0:e.tagName)}function p(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function v(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function m(e){return decodeURIComponent(e).replace(/\+/g," ")}function g(e){return encodeURIComponent(e).replace(/%20/g,"+")}function y(e,t,n){var r;return function(){var o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(o,i)},t),a&&e.apply(o,i)}}function b(e,t,n){var r,o;return t||(t=250),n&&(r=+new Date),function(){var n=this,i=+new Date,a=arguments;r&&i<r+t?(clearTimeout(o),o=setTimeout(function(){r=i,e.apply(n,a)},t)):(r=i,e.apply(n,a))}}function w(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=k}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0!==n&&n,o=t.cancelable,i=void 0!==o&&o,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,r,i,s),u}function x(){var e=document.createElement("div");e.style.width="1in",document.body.appendChild(e);var t=e.offsetWidth;document.body.removeChild(e);var n=1.25*t;return 0==n?100:n}function S(e){return e.reduce(function(e,t){return e+t},0)}function P(e){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n.push(o)}}catch(e){r.e(e)}finally{r.f()}return n}function O(e,t){return e.length==t.length&&e.every(function(e,n){return e==t[n]})}function _(e,t){return e&&t&&!O(e,t)}function C(e){return E.apply(this,arguments)}function E(){return(E=a(r().m(function e(t){return r().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(e){return setTimeout(e,t)}))},e)}))).apply(this,arguments)}function j(e){return M.apply(this,arguments)}function M(){return M=a(r().m(function e(t){var n,o,i,a,s,u,l,c,d,f,h,p=arguments;return r().w(function(e){for(;;)switch(e.n){case 0:o=(n=p.length>1&&void 0!==p[1]?p[1]:{}).step,i=void 0===o?50:o,a=n.timeout,s=void 0===a?500:a,u=n.until,l=void 0===u?function(e){return Boolean(e)}:u,c=n._sleep,d=void 0===c?C:c,f=Date.now();case 1:if(!(Date.now()-f<s)){e.n=4;break}if(h=t(),!l(h)){e.n=2;break}return e.a(2,h);case 2:return e.n=3,d(i);case 3:e.n=1;break;case 4:return e.a(2)}},e)})),M.apply(this,arguments)}function T(e,t){return new Promise(function(n){var r=function(o){e.removeEventListener(t,r),n(o)};e.addEventListener(t,r)})}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e){return"slow"===e?600:"fast"===e?200:parseInt(e,10)}function R(e,t){return e.sort(function(e,n){var r=t?t(e):e,o=t?t(n):n;return r<o?-1:r>o?1:0})}n.r(t),n.d(t,{C9:function(){return p},Cq:function(){return k},DT:function(){return P},Fg:function(){return T},Fs:function(){return O},GF:function(){return g},Hs:function(){return w},KL:function(){return d},Nl:function(){return u},Nt:function(){return A},Ul:function(){return R},Ve:function(){return I},Zn:function(){return v},b_:function(){return x},bq:function(){return f},cz:function(){return S},nF:function(){return b},oB:function(){return c},ow:function(){return m},qE:function(){return l},sg:function(){return y},w1:function(){return _},wt:function(){return j},xK:function(){return h},yy:function(){return C}}),n(2675),n(9463),n(2259),n(3418),n(4423),n(3792),n(2712),n(4782),n(6910),n(2010),n(875),n(6099),n(8940),n(3362),n(7495),n(8781),n(1699),n(7764),n(5440),n(2953)},7583:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.vendor;return/chrome/i.test(e)&&/google inc/i.test(t)&&!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/chrome/i.test(e)&&/\bEdg(e|A|iOS)?\b/i.test(e)}(e)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/firefox/i.test(e)}function i(){return"ongesturestart"in window&&navigator.maxTouchPoints>0}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/android/i.test(e)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/SamsungBrowser/i.test(e)}n.d(t,{H8:function(){return r},gm:function(){return o},ij:function(){return s},m0:function(){return a},un:function(){return i}}),n(7495)},1131:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(8004);function o(e,t,n,r,o,i){var a=0;switch(i){case"start":a=e-n;break;case"end":a=t-r;break;case"center":a=(e+t)/2-(n+r)/2;break;default:e<n?a=e-n:t>r&&(a=t-r)}return o+a}function i(e,t){var n=t||{},i=n.block,a=void 0===i?"start":i,s=n.inline,u=void 0===s?"nearest":s,l=n.behavior,c=void 0===l?"auto":l,d=n.scrollContainer,f=void 0===d?function(e){for(var t=e.parentElement;t;){var n=getComputedStyle(t),r=("auto"===n.overflowY||"scroll"===n.overflowY)&&t.scrollHeight>t.clientHeight,o=("auto"===n.overflowX||"scroll"===n.overflowX)&&t.scrollWidth>t.clientWidth;if(r||o)return t;t=t.parentElement}return null}(e):d;if(f){var h=f.getBoundingClientRect(),p=e.getBoundingClientRect(),v=o(p.top,p.bottom,h.top,h.bottom,f.scrollTop,a),m=o(p.left,p.right,h.left,h.right,f.scrollLeft,u);f.scrollTo({top:(0,r.qE)(v,0,f.scrollHeight-f.clientHeight),left:(0,r.qE)(m,0,f.scrollWidth-f.clientWidth),behavior:c})}else e.scrollIntoView({block:a,inline:u,behavior:c})}},1635:function(e,t,n){"use strict";function r(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}n.d(t,{Cg:function(){return r}}),Object.create,Object.create}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,e=[],r.O=function(t,n,o){if(!n){for(var i=0;i<e.length;i++){n=e[i][0],o=e[i][1];for(var a=!0,s=0;s<n.length;s++)r.O.j(n[s])?n.splice(s--,1):a=!1;if(a){e.splice(i--,1);var u=o();void 0!==u&&(t=u)}}return t}e.push([n,o])},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.cw=function(e){var t;return function(){if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.u=function(e){return e+".js"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^https?:/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e}(),function(){r.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={119:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],s=n[1],u=n[2],l=0;if(a.some(function(t){return 0!==e[t]})){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(u)var c=u(r)}for(t&&t(n);l<a.length;l++)i=a[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o={};!function(){"use strict";var e=function(){return r(6518)},t=r.cw(function(t,n){var o=e(),i=r(259),a=r(9306),s=r(8981),u=r(6198),l=r(1469);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=s(this),r=u(n);return a(e),t=l(n,0),i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})}),n=r.cw(function(e,t){r(6469)("flatMap")}),o=r.cw(function(t,n){e()({target:"Math",stat:!0},{log2:r(7787)})}),i=r.cw(function(t,n){e()({target:"Math",stat:!0},{sign:r(7782)})}),a=(r(2675),r(9463),r(2259),r(5700),r(3418),r(3792),r(4782),r(9572),r(2010),r(2892),r(2811),r(3851),r(1278),r(875),r(825),r(888),r(8781),r(7764),r(3500),r(2953),r(8706),r(2008),r(113),r(2062),r(9085),r(5506),r(9432),r(6099),r(7495),r(1761),r(5746),r(6205)),s=(r(4423),r(8598),r(2712),r(6034),r(8940),r(3362),r(1699),r(8408),r(9139),r(3662),r(8497),r(8004)),u={};r.r(u),r.d(u,{PolyfilledCustomEvent:function(){return s.Cq},arrChanged:function(){return s.w1},arrEquals:function(){return s.Fs},calcScreenDPI:function(){return s.b_},clamp:function(){return s.qE},cssPercentage:function(){return s.oB},debounce:function(){return s.sg},decodeURIComponentPlus:function(){return s.ow},disableSelect:function(){return s.Nl},encodeURIComponentPlus:function(){return s.GF},escapeHTML:function(){return s.Zn},escapeRegExp:function(){return s.Nt},genToArray:function(){return s.DT},getActiveElement:function(){return s.bq},getIFrameDocument:function(){return s.C9},isInputActive:function(){return s.xK},notInArray:function(){return s.KL},parseAnimationSpeed:function(){return s.Ve},poll:function(){return s.wt},polyfillCustomEvent:function(){return s.Hs},promisifyEvent:function(){return s.Fg},sleep:function(){return s.yy},sortBy:function(){return s.Ul},sum:function(){return s.cz},throttle:function(){return s.nF}});var l=r(1131);r(8459),r(4720);var c=r(8340),d=r(1669);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}var v=function(){return function(e,t){return t&&h(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["toggle_slider","viewmode"],this.maximumControls=["BRnavpos","book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,s.nF)(this.updateNavIndex.bind(this),250,!1)},[{key:"controlFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.br.options.controls[e],r=Object.assign({},n,t);return r.visible?r.template?"<li>".concat(r.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(r.className,'" title="').concat(r.label,'">\n <div class="icon icon-').concat(r.iconClassName,'"></div>\n <span class="BRtooltip">').concat(r.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["toggleSlider","bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map(function(t){return e.controlFor(t)}).join("")}},{key:"_bindViewModeButton",value:function(){var e=this,t=this.br,n=t.options.controls.viewmode,r=[{mode:t.constMode1up,className:"onepg",title:"One-page view"},{mode:t.constMode2up,className:"twopg",title:"Two-page view"},{mode:t.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter(function(e){return!n.excludedModes.includes(e.mode)}),o=r.map(function(e){return e.mode});n.excludedModes.includes(t.mode)&&t.switchMode(o[0]);for(var i=o.indexOf(t.mode),a=0;a<=i;a++)o.push(o.shift());r.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(c.q.PostInit,function(){var i=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",function(n){var i=o.shift(),a=r.find(function(e){return e.mode===i}),s=r.find(function(e){return e.mode===o[0]});o.push(i),t.viewModeOrder=o,e.updateViewModeButton(d(n.currentTarget),s.className,s.title),t.switchMode(a.mode)}),a=r.find(function(e){return e.mode===o[0]});e.updateViewModeButton(i,a.className,a.title)})}},{key:"bindControlClickHandlers",value:function(){var e=this,t=this.$nav.find(".BRicon"),n={toggle_slider:function(){e.br.toggleSlider()},book_left:this.br.left.bind(this.br),book_right:this.br.right.bind(this.br),book_top:this.br.first.bind(this.br),book_bottom:this.br.last.bind(this.br),book_leftmost:this.br.leftmost.bind(this.br),book_rightmost:this.br.rightmost.bind(this.br),onepg:function(){e.br.switchMode("1up")},thumb:function(){e.br.switchMode("thumb")},twopg:function(){e.br.switchMode("2up")},zoom_in:function(){e.br.trigger(c.q.stop),e.br.zoom(1),e.br.trigger(c.q.zoomIn)},zoom_out:function(){e.br.trigger(c.q.stop),e.br.zoom(-1),e.br.trigger(c.q.zoomOut)},full:function(){if("embed"==e.br.ui){var t=e.br.$(".BRembedreturn a").attr("href");window.open(t)}else e.br.toggleFullscreen()}};this.$nav.find("nav.BRcontrols li button").on("click",function(){e.br.trigger(c.q.userAction)});var r=function(e){t.filter(".".concat(e)).on("click.bindNavigationHandlers",function(){return n[e](),!1})};for(var o in n)r(o)}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).end().find(".BRtooltip").text(n)}},{key:"switchNavbarControls",value:function(){this.$root&&"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMobileControls():this.showDesktopControls())}},{key:"showMobileControls",value:function(){var e=this;this.minimumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).removeClass("hide")}),this.maximumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).addClass("hide")}),this.$root.find(".BRnavMobile").removeClass("hide")}},{key:"showDesktopControls",value:function(){var e=this;this.maximumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).removeClass("hide")}),this.minimumControls.forEach(function(t){e.$root.find(".BRnavMain .controls .".concat(t)).addClass("hide")}),this.$root.find(".BRnavMobile").addClass("hide")}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,r="rl"===t.pageProgression,o=r?"book_flip_next":"book_flip_prev",i=r?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(o),this.br.options.controls.bookRight.className="book_right ".concat(i),t.refs.$BRfooter=this.$root=d('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=d('<div class="BRnav BRnavMobile docked">\n '.concat(n?'<div class="BRnavTitle">'.concat(n,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <div class="BRnavpos">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n </li>\n ').concat(this.controlFor("bookLeft",{visible:!0}),"\n ").concat(this.controlFor("bookRight",{visible:!0}),'\n </ul>\n </nav>\n </div>\n <div class="BRnav BRnavMain">\n ').concat(n?'<div class="BRnavTitle">'.concat(n,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <p>\n <span class="BRcurrentpage"></span>\n </p>\n <div class="BRnavpos hide">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),this.$root.append(this.$nav),t.refs.$br.append(this.$root),this.br.on(c.q.beforePageChanged,function(t,n){n.ariaLive?e.$root.find(".BRcurrentpage").attr("role","status"):e.$root.find(".BRcurrentpage").removeAttr("role")}),this.br.on(c.q.pageChanged,function(t,n){var r=n.index;return e.updateNavIndexThrottled(r)}),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex());var a=this.$root.find(".BRpager").slider({animate:!0,min:0,max:Math.max(0,t.book.getNumLeafs()-1),value:t.currentIndex(),range:"min"});return a.find(".ui-slider-handle").attr({role:"slider","aria-label":"Page navigation slider","aria-valuemin":0,"aria-valuemax":Math.max(0,t.book.getNumLeafs()-1)}),a.find(".ui-slider-handle").off("keydown").on("keydown",function(e){switch(e.keyCode||e.which){case d.ui.keyCode.LEFT:case d.ui.keyCode.RIGHT:r&&(e.keyCode===d.ui.keyCode.LEFT?e.keyCode=d.ui.keyCode.RIGHT:e.keyCode=d.ui.keyCode.LEFT),d.ui.slider.prototype._handleEvents.keydown.call(d(e.target).parent().data("ui-slider"),e),e.stopPropagation();break;default:return}}),a.on("slide",function(n,o){if(e.br.mode===e.br.constMode2up){var i=o.value>t.currentIndex(),a=e.br.book.getPage(o.value);(r?"L"===a.pageSide:"R"===a.pageSide)&&(o.value+=i?1:-1,o.value=Math.max(0,Math.min(o.value,t.book.getNumLeafs()-1)))}e.updateNavPageNum(o.value)}),a.on("slidechange",function(n,o){if(d(n.target).data("swallowchange"))d(n.target).data("swallowchange",!1);else{if(e.br.mode===e.br.constMode2up){var i=o.value>t.currentIndex(),a=e.br.book.getPage(o.value);(r?"L"===a.pageSide:"R"===a.pageSide)&&(o.value+=i?1:-1,o.value=Math.max(0,Math.min(o.value,t.book.getNumLeafs()-1)))}e.br.jumpToIndex(o.value,{ariaLive:!1})}}),this.$nav}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.book.getPageNum(e),r=(t.book.getPageProp(e,"pageType"),t.book.getNumLeafs());if(!this.maxPageNum){for(var o,i=0,a=0;a<r;a++)o=parseFloat(t.book.getPageNum(a)),!isNaN(o)&&o>i&&(i=o);this.maxPageNum=i}return function(e,t,n){"n"!=n[0]||(n="—");var r=Math.max(0,t-1);return"Page ".concat(n," (").concat(e,"/").concat(r,")")}(e,r,n,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e)),this.$root.find(".ui-slider-handle").attr({"aria-valuenow":e,"aria-valuetext":this.getNavPageNumString(e)})}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0),this.$root.find(".BRpager").slider("value",e),this.updateNavPageNum(e)}}])}();function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e){var t="function"==typeof Map?new Map:void 0;return g=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(y())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&b(o,n.prototype),o}(e,arguments,w(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,e)},g(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}r(6033);var k={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:400,showToolbar:!0,showNavbar:!0,navBarTitle:"",showLogo:!0,logoURL:"https://archive.org",imagesBaseURL:"/BookReader/images/",reduceSet:"pow2",reductionFactors:[{reduce:.25,autofit:null},{reduce:.5,autofit:null},{reduce:1,autofit:null},{reduce:2,autofit:null},{reduce:3,autofit:null},{reduce:4,autofit:null},{reduce:6,autofit:null}],onePage:{autofit:"auto"},twoPage:{coverInternalPadding:0,coverExternalPadding:0,bookSpineDivWidth:64,autofit:"auto"},onePageMinBreakpoint:800,bookTitle:"",bookUrl:null,bookUrlText:null,bookUrlTitle:null,enableBookTitleLink:!0,bookUri:null,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{archiveAnalytics:{},autoplay:{},chapters:{},experiments:{},iiif:{},resume:{},search:{},textSelection:{},translate:{},tts:{}},vars:{},data:[],table_of_contents:null,getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,requestPage:function(e){return[]},verifyTextFragment:function(e){return!0},renderPageURI:function(e,t){e.src=t},getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{toggleSlider:{visible:!0,label:"Toggle page controls",className:"toggle_slider",iconClassName:"toggle-slider"},bookLeft:{visible:!0,label:"Flip left",className:"book_left",iconClassName:"left-arrow"},bookRight:{visible:!0,label:"Flip right",className:"book_right",iconClassName:"left-arrow hflip"},onePage:{visible:!0,label:"One-page view",className:"onepg",iconClassName:"onepg"},twoPage:{visible:!0,label:"Two-page view",className:"twopg",iconClassName:"twopg"},thumbnail:{visible:!0,label:"Thumbnail view",className:"thumb",iconClassName:"thumb"},viewmode:{visible:!0,className:"viewmode",excludedModes:[]},zoomOut:{visible:!0,label:"Zoom out",className:"zoom_out",iconClassName:"magnify"},zoomIn:{visible:!0,label:"Zoom in",className:"zoom_in",iconClassName:"magnify plus"},fullScreen:{visible:!0,label:"Go fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,enableFSLogoShortcut:!1,autoResize:!0,useSrcSet:!1,unviewablePageURI:"./unviewable_page.png"},x=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=w(t),function(e,t){if(t&&("object"==m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(g(Error)),S=(r(5440),r(4638),r(1669));function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}var E=function(){return function(e,t){return t&&_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t},[{key:"buildToolbarElement",value:function(){var e=this.br,t=e.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(e.logoURL,'"></a>\n </span>'):"";e.refs.$BRtoolbar=S('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(t,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=e.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");e.bookUrl&&e.options.enableBookTitleLink?n.append(S("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle);for(var r=0,o=Object.values(e.plugins);r<o.length;r++)o[r]._configureToolbar(e.refs.$BRtoolbar);return e.refs.$BRtoolbar}},{key:"initToolbar",value:function(e,t){var n=this.br;n.refs.$br.append(this.buildToolbarElement()),n.$(".BRnavCntl").addClass("BRup"),n.$(".pause").hide(),n.refs.$BRtoolbar.append(),n.canSwitchToMode(n.constMode2up)||n.$(".two_page_mode, .play, .pause").hide(),n.canSwitchToMode(n.constModeThumb)||n.$(".thumbnail_mode").hide(),n.canSwitchToMode(n.constMode2up)||n.canSwitchToMode(n.constModeThumb)||n.$(".one_page_mode").hide(),S('<div style="display: none;"></div>').append(S('\n <div class="BRfloat BRshare">\n <div class="BRfloatHead">\n Share\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n </div>')).append(S('\n <div class="BRfloat BRinfo">\n <div class="BRfloatHead">About this book\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n <div class="BRfloatBody">\n <div class="BRfloatCover"></div>\n <div class="BRfloatMeta">\n <div class="BRfloatTitle">\n <h2><a /></h2>\n </div>\n </div>\n </div>\n <div class="BRfloatFoot">\n <a href="https://openlibrary.org/dev/docs/bookreader">About the BookReader</a>\n </div>\n </div>')).appendTo(n.refs.$br),n.$(".BRinfo .BRfloatTitle a").attr({href:n.bookUrl}).text(n.bookTitle).addClass("title"),this.buildInfoDiv(n.$(".BRinfo")),this.buildShareDiv(n.$(".BRshare")),n.$(".share").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRshare"),onLoad:function(){n.trigger(c.q.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(c.q.stop)}})}},{key:"buildShareDiv",value:function(e){var t=this,n=this.br,r=document.location+"",o=(r+"").replace(/#.*/,""),i=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(o,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=S('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(i,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(e),a.find(".fieldset-embed input").on("change",function(e){var t=S(e.target).parents("form").first(),r={};r.mode=S(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&t.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))}),a.find("input, textarea").on("focus",function(e){return e.target.select()}),a.find(".facebook-share-button").on("click",function(){j("https://www.facebook.com/sharer.php?"+S.param({u:t._getSocialShareUrl()}),600,400,"Share")}),a.find(".twitter-share-button").on("click",function(){j("https://twitter.com/intent/tweet?"+S.param({url:t._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")}),a.find(".email-share-button").on("click",function(){var e="".concat(n.bookTitle,"\n\n").concat(t._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(e))}),a.find("input[name=thispage]").trigger("change"),a.appendTo(e)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(e){var t=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=S('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(S('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,s.Zn)(t.bookTitle),'" />\n </div>')));var r,o=S('<div class="BRinfoRightCol">'),i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.metadata);try{for(i.s();!(r=i.n()).done;){var a=r.value,u=a.extraValueClass,l=void 0===u?"":u,c=a.label,d=a.value,f="Title"===c?(0,s.Zn)(d):d;o.append(S('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(c,'</div>\n <div class="BRinfoValue ').concat(l,'">').concat(f,"</div>\n </div>")))}}catch(e){i.e(e)}finally{i.f()}var h=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;h&&t.bookUrl&&o.append(S('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,s.Zn)(h),"\n </a>\n </div>\n </div>")));var p=S('<div class="BRfloatFoot BRinfoFooter"></div>'),v=S('<div class="BRinfoW mv20-lg">').append([n,o,S('<br style="clear:both"/>')]);e.append(v,p).addClass("wide")}},{key:"getToolBarHeight",value:function(){var e=this.br.refs.$BRtoolbar;return e&&"block"===e.css("display")?e.outerHeight()+parseInt(e.css("top")):0}}])}();function j(e,t,n,r){var o=null!=window.screenLeft?window.screenLeft:screen.left,i=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-t/2+o,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+i,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,r,u)}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function T(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return A(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(A(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,A(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,A(d,"constructor",l),A(l,"constructor",u),u.displayName="GeneratorFunction",A(l,o,"GeneratorFunction"),A(d),A(d,o,"Generator"),A(d,r,function(){return this}),A(d,"toString",function(){return"[object Generator]"}),(T=function(){return{w:i,m:f}})()}function A(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}A=function(e,t,n,r){function i(t,n){A(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},A(e,t,n,r)}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function $(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=function(e){if("object"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==M(t)?t:t+""}r(8980),t(),r(6910),n(),r(1392);var z=function(){return $(function e(t){var n,r,o,i;L(this,e),this.br=t,this.reduceSet=t.reduceSet,this.ppi=null!==(n=null===(r=t.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:k.ppi,this.pageProgression=null!==(o=null===(i=t.options)||void 0===i?void 0:i.pageProgression)&&void 0!==o?o:k.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null},[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],r=I(this.pagesIterator());try{for(r.s();!(e=r.n()).done;){var o=e.value;t.push(o.widthInches),n.push(o.heightInches)}}catch(e){r.e(e)}finally{r.f()}return t.sort(function(e,t){return e-t}),n.sort(function(e,t){return e-t}),this._medianPageSize={width:t[Math.floor(t.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,s.qE)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,s.qE)(e,0,this.getNumLeafs()-1);return this.getPageHeight(t)}},{key:"getPageIndex",value:function(e){var t=this.getPageIndices(e);return t.length?t[t.length-1]:void 0}},{key:"getPageIndices",value:function(e){var t=[];if("n"==e.slice(0,1))try{var n=e.slice(1,e.length),r=parseInt(n);return t.push(r),t}catch(e){}for(var o=0;o<this.getNumLeafs();o++)this.getPageNum(o)==e&&t.push(o);return t}},{key:"getPageName",value:function(e){return"Page "+this.getPageNum(e)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(e){return this.getPageProp(e,"width")}},{key:"getPageHeight",value:function(e){return this.getPageProp(e,"height")}},{key:"getPageURI",value:function(e,t,n){if(this.getPageProp(e,"viewable",!0))return this.getPageProp(e,"uri");var r=this.br.options.unviewablePageURI;return r.startsWith(".")?this.br.options.imagesBaseURL+r:r}},{key:"getPageSide",value:function(e){return this.getPageProp(e,"pageSide")||(e%2==0?"R":"L")}},{key:"getPageNum",value:function(e){var t=this.getPageProp(e,"pageNum");return void 0===t?"n".concat(e):t}},{key:"getPageProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(e,t,n)}},{key:"getSpreadIndices",value:function(e){return"rl"==this.pageProgression?"R"==this.getPageSide(e)?[e+1,e]:[e,e-1]:"L"==this.getPageSide(e)?[e,e+1]:[e-1,e]}},{key:"leafNumToIndex",value:function(e){var t=this._getDataFlattened().findIndex(function(t){return t.leafNum==e});return t>-1?t:e}},{key:"parsePageString",value:function(e){var t,n=/^leaf(\d+)/.exec(e);return n?null===(t=this.leafNumToIndex(parseInt(n[1],10)))&&(t=void 0):t=this.getPageIndex(e),t}},{key:"getPage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(t||!(e<0||e>=n))return e<0&&e>=-n&&(e+=n),new F(this,e%=n)}},{key:"pagesIterator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.start,r=void 0===n?0:n,o=t.end,i=void 0===o?1/0:o,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a;return T().m(function t(){var n,o;return T().w(function(t){for(;;)switch(t.n){case 0:r=Math.max(0,r),i=Math.min(i,e.getNumLeafs()),n=r;case 1:if(!(n<i)){t.n=4;break}if(o=e.getPage(n),!s||!o.isConsecutiveUnviewable){t.n=2;break}return t.a(3,3);case 2:return t.n=3,o;case 3:n++,t.n=1;break;case 4:return t.a(2)}},t)})()}},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var e=null,t=null,n=0,r=this.br.data.flatMap(function(r){return r.map(function(o){return o.pageSide||(o.pageSide=null===e?2===r.length?"L":"R":"L"===e?"R":"L"),e=o.pageSide,!1===o.viewable?o.unviewablesStart=null===t?t=n:t:t=null,n++,o})});return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened();return isNaN(e)||e<0||e>=r.length||void 0===r[e][t]?n:r[e][t]}}])}(),F=function(){function e(t,n){L(this,e);var r=t._getDataProp(n,"ppi",t.ppi);this.ppi=Math.max(r<10?t.ppi:r,10),this.book=t,this.index=n,this.width=t.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=t.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=t.getPageSide(n),this.leafNum=t._getDataProp(n,"leafNum",this.index),this.isViewable=t._getDataProp(n,"viewable",!0),this.unviewablesStart=t._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return $(e,[{key:"makeViewable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=e)if(e){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var t,n=I(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(e){n.e(e)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var o,i=I(this.book.pagesIterator({start:this.index+1}));try{for(i.s();!(o=i.n()).done;){var a=o.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(e){i.e(e)}finally{i.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"left",get:function(){return"lr"===this.book.pageProgression?this.prev:this.next}},{key:"right",get:function(){return"lr"===this.book.pageProgression?this.next:this.prev}},{key:"spread",get:function(){return{left:"L"===this.pageSide?this:this.left,right:"R"===this.pageSide?this:this.right}}},{key:"goLeft",value:function(e){var t="lr"===this.book.pageProgression?this.index-e:this.index+e;return this.book.getPage(t)}},{key:"goRight",value:function(e){var t="lr"===this.book.pageProgression?this.index+e:this.index-e;return this.book.getPage(t)}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getPageNum",value:function(){return this.book.getPageNum(this.index)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,o=r.floor(e),i=[],a=r.decr(o);a>=1;a=r.decr(a))i.push(a);return i.map(function(e){return"".concat(t.getURI(e,n)," ").concat(o/e,"x")}).join(", ")}},{key:"findNext",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,t=void 0!==e&&e;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:t}).next().value}},{key:"findPrev",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,n=void 0!==t&&t;if(0!=this.index){if(n){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var r=new e(this.book,this.index-1);return r.isViewable?r:r.findPrev({combineConsecutiveUnviewables:n})}return new e(this.book,this.index-1)}}},{key:"findLeft",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,t=void 0!==e&&e;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:t}):this.findNext({combineConsecutiveUnviewables:t})}},{key:"findRight",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,t=void 0!==e&&e;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:t}):this.findPrev({combineConsecutiveUnviewables:t})}}])}(),N=(r(8125),r(4554),r(4731),r(479),r(9696)),U=r(8900);i();var H=r(2617),W=r(7583);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function V(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return G(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(G(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,G(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,G(d,"constructor",l),G(l,"constructor",u),u.displayName="GeneratorFunction",G(l,o,"GeneratorFunction"),G(d),G(d,o,"Generator"),G(d,r,function(){return this}),G(d,"toString",function(){return"[object Generator]"}),(V=function(){return{w:i,m:f}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G=function(e,t,n,r){function i(t,n){G(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},G(e,t,n,r)}function Z(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function X(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Z(i,r,o,a,s,"next",e)}function s(e){Z(i,r,o,a,s,"throw",e)}a(void 0)})}}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ee(r.key),r)}}function J(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}var te=function(){return J(function e(t){var n=this;Y(this,e),Q(this,"scaleCenter",{x:.5,y:.5}),Q(this,"_preventEvent",function(e){return e.preventDefault(),!1}),Q(this,"_pinchStart",X(V().m(function e(){var t,r;return V().w(function(e){for(;;)switch(e.n){case 0:if(!n.pinching){e.n=1;break}return e.a(2);case 1:if(!(0,W.un)()){e.n=3;break}return e.n=2,(0,s.yy)(0);case 2:if(!(n.touchesMonitor.touches<2)){e.n=3;break}return e.a(2);case 3:n.pinching=!0,n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.mode.autoFit="none",n.detachCtrlZoom(),null===(t=(r=n.mode).detachScrollListeners)||void 0===t||t.call(r),n.interact.gesturable({listeners:{start:n._pinchStart,move:n._pinchMove,end:n._pinchEnd}});case 4:return e.a(2)}},e)}))),Q(this,"_pinchMove",function(){var e=X(V().m(function e(t){return V().w(function(e){for(;;)switch(e.n){case 0:if(n.pinching){e.n=1;break}return e.a(2);case 1:n.lastEvent={scale:t.scale,clientX:t.clientX,clientY:t.clientY},n.pinchMoveFrame||(n.pinchMoveFrame=n.bufferFn(n._drawPinchZoomFrame));case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),Q(this,"_pinchEnd",X(V().m(function e(){var t,r;return V().w(function(e){for(;;)switch(e.n){case 0:if(n.pinching){e.n=1;break}return e.a(2);case 1:return n.pinching=!1,n.interact.gesturable({listeners:{start:n._pinchStart,end:n._pinchEnd}}),e.n=2,n.pinchMoveFramePromise;case 2:n.scaleCenter={x:.5,y:.5},n.oldScale=1,n.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="auto",n.attachCtrlZoom(),null===(t=(r=n.mode).attachScrollListeners)||void 0===t||t.call(r);case 3:return e.a(2)}},e)}))),Q(this,"_drawPinchZoomFrame",X(V().m(function e(){var t,r;return V().w(function(e){for(;;)switch(e.n){case 0:if(n.pinching){e.n=1;break}return n.pinchMoveFrame=null,e.a(2);case 1:if(n.mode.$container.style.overflow="hidden",n.pinchMoveFramePromiseRes=null,n.pinchMoveFramePromise=new Promise(function(e){return n.pinchMoveFramePromiseRes=e}),n.updateScaleCenter({clientX:n.lastEvent.clientX,clientY:n.lastEvent.clientY}),t=n.mode.scale,r=t*n.lastEvent.scale/n.oldScale,t==r){e.n=2;break}return n.mode.scale=r,e.n=2,n.pinchMoveFramePromise;case 2:n.mode.$container.style.overflow="auto",n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null;case 3:return e.a(2)}},e)}))),Q(this,"_dragMove",function(){var e=X(V().m(function e(t){return V().w(function(e){for(;;)switch(e.n){case 0:if(!n.pinching){e.n=1;break}return e.n=1,n._pinchEnd();case 1:n.mode.$container.scrollTop-=t.dy,n.mode.$container.scrollLeft-=t.dx;case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),Q(this,"_handleCtrlWheel",function(e){if(e.ctrlKey){e.preventDefault();var t=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(e),n.mode.autoFit="none",n.mode.scale*=1-Math.sign(e.deltaY)*t}}),this.mode=t,this.pinching=!1,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window)},[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._pinchStart),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._pinchEnd),(0,W.un)()&&(this.touchesMonitor=new ne(this.mode.$container),this.touchesMonitor.attach()),this.mode.$container.style.touchAction="pan-x pan-y",this.interact=H(this.mode.$container),this.interact.gesturable({listeners:{start:this._pinchStart,end:this._pinchEnd}}),(0,W.ij)()&&(this.mode.$container.style.touchAction="none",this.interact.draggable({inertia:{resistance:2,minSpeed:100,allowResume:!0},listeners:{move:this._dragMove}})),this.attached=!0)}},{key:"detach",value:function(){var e,t;this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._pinchStart),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._pinchEnd),null===(e=this.touchesMonitor)||void 0===e||null===(t=e.detach)||void 0===t||t.call(e),this.interact.unset(),H.removeDocument(document),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(e){var t=e.clientX,n=e.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.scaleCenter={x:(t-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(e,t){var n,r=this.mode.$container,o=r.scrollTop,i=r.scrollLeft,a=this.mode.htmlDimensionsCacher.clientWidth,s=this.mode.htmlDimensionsCacher.clientHeight,u=e/t,l=this.scaleCenter.x,c=this.scaleCenter.y,d=u*(i+l*a),f=u*(o+c*s);r.scrollTop=f-c*s,r.scrollLeft=d-l*a,null===(n=this.pinchMoveFramePromiseRes)||void 0===n||n.call(this)}}])}(),ne=function(){return J(function e(t){var n=this;Y(this,e),Q(this,"_updateTouchCount",function(e){n.touches=e.touches.length}),this.container=t,this.touches=0},[{key:"attach",value:function(){this.container.addEventListener("touchstart",this._updateTouchCount),this.container.addEventListener("touchend",this._updateTouchCount)}},{key:"detach",value:function(){this.container.removeEventListener("touchstart",this._updateTouchCount),this.container.removeEventListener("touchend",this._updateTouchCount)}}])}();function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e){var t=function(e){if("object"!=re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==re(t)?t:t+""}var se=function(){return function(e,t){return t&&oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ie(this,"clientWidth",100),ie(this,"clientHeight",100),ie(this,"boundingClientRect",{top:0,left:0}),ie(this,"updateClientSizes",function(){var e=n.element.getBoundingClientRect();n.clientWidth=n.element.clientWidth,n.clientHeight=n.element.clientHeight,n.boundingClientRect.top=e.top,n.boundingClientRect.left=e.left}),ie(this,"debouncedUpdateClientSizes",(0,s.sg)(this.updateClientSizes,150,!1)),this.element=t},[{key:"attachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).removeEventListener("resize",this.debouncedUpdateClientSizes)}}])}();function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ce(r.key),r)}}function ce(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}var de=function(){return function(e,t){return t&&le(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"onScroll",function(){r.element.classList.add(r.className),clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.element.classList.remove(r.className)},600)}),this.element=t,this.className=n,this.timeout=null},[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])}();function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,me(r.key),r)}}function pe(e,t,n){return t&&he(e.prototype,t),n&&he(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ve(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e){var t=function(e){if("object"!=fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fe(t)?t:t+""}var ge,ye=pe(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ve(this,"screenDPI",(0,s.b_)()),ve(this,"worldUnitsToRenderedPixels",function(e){return e*n.screenDPI}),ve(this,"renderedPixelsToWorldUnits",function(e){return e/n.screenDPI}),ve(this,"renderedPixelsToVisiblePixels",function(e){return e*n.mode.scale}),ve(this,"visiblePixelsToRenderedPixels",function(e){return e/n.mode.scale}),ve(this,"worldUnitsToVisiblePixels",function(e){return n.renderedPixelsToVisiblePixels(n.worldUnitsToRenderedPixels(e))}),ve(this,"visiblePixelsToWorldUnits",function(e){return n.renderedPixelsToWorldUnits(n.visiblePixelsToRenderedPixels(e))}),this.mode=t});function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function we(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||Ie(e)||Te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Me(r.key),r)}}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}function Se(e,t){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Se(e,t)}function Pe(){Pe=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach(function(n){t.forEach(function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)},this)},this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach(function(r){t.forEach(function(t){var o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var i="static"===o?e:n;this.defineClassElement(i,t)}},this)},this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){this.addElementPlacement(e,o)},this),e.forEach(function(e){if(!Ce(e))return n.push(e);var t=this.decorateElement(e,o);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)},this),!t)return{elements:n,finishers:r};var i=this.decorateConstructor(n,t);return r.push.apply(r,i.finishers),i.finishers=r,i},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,o[i])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var l=u.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],t);n.push.apply(n,l)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==i.finisher&&n.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return function(e){return function(e){if(Array.isArray(e))return e}(e)||Ie(e)||Te(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e).map(function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t},this)},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=Me(e.key),r=e.placement+"";if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var i={kind:t,key:n,placement:r,descriptor:Object.assign({},o)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),i.initializer=e.initializer),i},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:je(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=je(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function Oe(e){var t,n=Me(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function _e(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function Ce(e){return e.decorators&&e.decorators.length}function Ee(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function je(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function Me(e){var t=function(e){if("object"!=be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==be(t)?t:t+""}function Te(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Re(e,t,n,r){var o=Le(Be(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Le(){return Le="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Be(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Le.apply(null,arguments)}function Be(e){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Be(e)}var $e=function(e,t,n){var r=Pe(),o=function(e,t){var n=function(t){function n(t,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o=function(e,t,n){return t=Be(t),function(e,t){if(t&&("object"==be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xe()?Reflect.construct(t,n||[],Be(e).constructor):t.apply(e,n))}(this,n),e(o),o.book=t,o.br=r,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}(n,t),function(e,t,n){return t&&ke(e.prototype,t),n&&ke(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n)}(t);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new ye(this)}},{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,N.MZ)({type:Array,hasChanged:s.w1})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,N.MZ)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,N.P)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var e=this.coordSpace.worldUnitsToRenderedPixels;return{width:e(this.worldDimensions.width)+"px",height:e(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,N.P)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new se(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new te(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new de(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).smooth,r=void 0!==n&&n;r&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[e]-this.SPACING_IN/2),r&&setTimeout(function(){return t.style.scrollBehavior=""},100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(e){Re(n,"firstUpdated",this,3)([e]),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e);this.scale=this.computeDefaultScale(t)}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&this.updatePages(),e.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),e.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),e.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map(function(e){return e.index}),this.br.updateFirstIndex(this.br.displayedIndices[0]))),e.has("scale")){var t=e.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,t),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,s.DT)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){Re(n,"connectedCallback",this,3)([]),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),Re(n,"disconnectedCallback",this,3)([])}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e=this;return(0,a.qy)(ge||(ge=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"])),(0,U.W)(this.worldStyle),this.renderedPages.map(function(t){return e.renderPage(t)}))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,o=e.coordSpace.visiblePixelsToWorldUnits(e.htmlDimensionsCacher.clientWidth),i=n(t.widthInches),a=n(t.heightInches),s=Math.max(e.SPACING_IN,(o-t.widthInches)/2),u=e.pageTops[t.index],l="translate(".concat(n(s),"px, ").concat(n(u),"px)"),c=e.createPageContainer(t).update({dimensions:{width:i,height:a,top:0,left:0},reduce:t.width/r(t.widthInches)}).$container[0];c.style.transform=l;var d=c.classList.contains("BRpage-visible");return c.classList.toggle("BRpage-visible",e.visiblePages.includes(t))&&!d&&e.br.trigger("pageVisible",{pageContainerEl:c}),c}}},{kind:"field",key:"updateVisibleRegion",value:function(){var e=this;return function(){var t=e.scrollTop,n=e.scrollLeft,r=e.htmlDimensionsCacher.clientWidth,o=e.htmlDimensionsCacher.clientHeight,i=e.coordSpace.visiblePixelsToWorldUnits;e.visibleRegion={top:i(t),height:i(o),left:i(n),width:i(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t;return[null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat(we(this.visiblePages),[null===(t=this.visiblePages[this.visiblePages.length-1])||void 0===t?void 0:t.next]).filter(function(e){return e}).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,s.nF)(function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()},100,null)}},{kind:"method",key:"computePageTops",value:function(e,t){var n,r={},o=t,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Te(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r[a.index]=o,o+=a.heightInches+t}}catch(e){i.e(e)}finally{i.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(e){var t=this.coordSpace.renderedPixelsToWorldUnits(this.clientWidth);return Math.min(1,t/(e.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,we(this.pages.map(function(e){return e.widthInches})))+2*this.SPACING_IN,height:(0,s.cz)(this.pages.map(function(e){return e.heightInches}))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var e=this;return this.pages.filter(function(t){var n=e.pageTops[t.index],r=n+t.heightInches,o=e.visibleRegion.top;return n<=o+e.visibleRegion.height&&r>=o})}},{kind:"field",key:"attachScrollListeners",value:function(){var e=this;return function(){e.addEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var e=this;return function(){e.removeEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.detach()}}}]}}(function(e){r.initializeInstanceElements(e,i.elements)},n),i=r.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===i.key&&e.placement===i.placement},r=0;r<e.length;r++){var o,i=e[r];if("method"===i.kind&&(o=t.find(n)))if(Ee(i.descriptor)||Ee(o.descriptor)){if(Ce(i)||Ce(o))throw new ReferenceError("Duplicated methods ("+i.key+") can't be decorated.");o.descriptor=i.descriptor}else{if(Ce(i)){if(Ce(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+i.key+").");o.decorators=i.decorators}_e(i,o)}else t.push(i)}return t}(o.d.map(Oe)),e);return r.initializeClassElements(o.F,i.elements),r.runClassFinishers(o.F,i.finishers)}([(0,N.EM)("br-mode-1up")],0,a.WF),De=r(1669);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ue(r.key),r)}}function Ne(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e){var t=function(e){if("object"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}function He(e,t){return e.split(" ").map(function(e){return e+t}).join(" ")}function We(e){var t,n;return void 0!==e.clientX?(t=e.clientX,n=e.clientY):void 0!==e.screenX?(t=e.screenX,n=e.screenY):void 0!==e.targetTouches?(t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY):void 0===e.originalEvent?console.error("don't understand x and y for "+e.type,e):void 0!==e.originalEvent.clientX?(t=e.originalEvent.clientX,n=e.originalEvent.clientY):void 0!==e.originalEvent.screenX?(t=e.originalEvent.screenX,n=e.originalEvent.screenY):void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches[0].pageX,n=e.originalEvent.targetTouches[0].pageY),{left:t,top:n}}var qe={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Ve=function(){return function(e,t){return t&&Fe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,"_dragStartHandler",function(e){return!!n._shouldAbort()||!(e.which>1||!n.settings.acceptPropagatedEvent&&e.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=We(e),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach(function(e){n.handling_element[0].addEventListener(e,n._dragEndHandler,!0)}),n.settings.preventDefault?(e.preventDefault(),!1):void 0)}),Ne(this,"_dragContinueHandler",function(e){if(n._shouldAbort())return!0;var t=We(e),r=t.left-n.lastCoord.left,o=t.top-n.lastCoord.top,i=n.settings.scrollWindow?De(window):n.handling_element;return i.scrollLeft(i.scrollLeft()-r),i.scrollTop(i.scrollTop()-o),n.lastCoord=t,n.settings.preventDefault?(e.preventDefault(),!1):void 0}),Ne(this,"_dragEndHandler",function(e){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach(function(e){n.handling_element[0].removeEventListener(e,n._dragEndHandler,!0)});var t={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(t.left,t.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1):void 0}),this.handling_element=De(t),this.settings=De.extend({},qe,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=He(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=He(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)},[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])}();function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ye(r.key),r)}}function Xe(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=function(e){if("object"!=Ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ge(t)?t:t+""}var Ke=function(){return function(e,t){return t&&Ze(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xe(this,"br",void 0),Xe(this,"book",void 0)},[{key:"parsePageSpecifier",value:function(e){var t="rl"==this.book.pageProgression;switch(e){case"left":return t?this.parsePageSpecifier("next"):this.parsePageSpecifier("prev");case"right":return t?this.parsePageSpecifier("prev"):this.parsePageSpecifier("next");case"next":return this.br.firstIndex<this.book.getNumLeafs()-1?this.book.getPage(this.br.firstIndex+1):void 0;case"prev":return this.br.firstIndex>=1?this.book.getPage(this.br.firstIndex-1):void 0;default:return this.book.getPage(e)}}}])}(),Je=r(1669);function Qe(e){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(e)}function et(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return tt(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(tt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,tt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,tt(d,"constructor",l),tt(l,"constructor",u),u.displayName="GeneratorFunction",tt(l,o,"GeneratorFunction"),tt(d),tt(d,o,"Generator"),tt(d,r,function(){return this}),tt(d,"toString",function(){return"[object Generator]"}),(et=function(){return{w:i,m:f}})()}function tt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tt=function(e,t,n,r){function i(t,n){tt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},tt(e,t,n,r)}function nt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function rt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){nt(i,r,o,a,s,"next",e)}function s(e){nt(i,r,o,a,s,"throw",e)}a(void 0)})}}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ut(r.key),r)}}function it(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(it=function(){return!!e})()}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function st(e,t){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},st(e,t)}function ut(e){var t=function(e){if("object"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}var lt,ct,dt,ft,ht,pt,vt,mt,gt=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(t=ut(t))in e?Object.defineProperty(e,t,{value:"1up",enumerable:!0,configurable:!0,writable:!0}):e[t]="1up"}(r=function(e,t,n){return t=at(t),function(e,t){if(t&&("object"==Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,it()?Reflect.construct(t,n||[],at(e).constructor):t.apply(e,n))}(this,t),"name"),r.br=e,r.book=n,r.mode1UpLit=new $e(n,e),r.$el=Je(r.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),r.everShown=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}(t,e),function(e,t){return t&&ot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(rt(et().m(function n(){return et().w(function(n){for(;;)switch(n.n){case 0:if(e.everShown){n.n=2;break}return e.mode1UpLit.initFirstRender(t),e.everShown=!0,e.mode1UpLit.requestUpdate(),n.n=1,e.mode1UpLit.updateComplete;case 1:new Ve(e.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 2:e.mode1UpLit.jumpToIndex(t),setTimeout(function(){e.mode1UpLit.updateVisibleRegion()});case 3:return n.a(2)}},n)}))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t.pageX,t.pageY,t.noAnimate),r=void 0!==n&&n,o=Math.abs(this.br.currentIndex()-e),i=!r&&o>0&&o<=4;this.mode1UpLit.jumpToIndex(e,{smooth:i})}},{key:"zoom",value:function(e){switch(e){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])}(Ke),yt=r(1669);function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function wt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return xt(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(xt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,xt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,xt(d,"constructor",l),xt(l,"constructor",u),u.displayName="GeneratorFunction",xt(l,o,"GeneratorFunction"),xt(d),xt(d,o,"Generator"),xt(d,r,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(kt=function(){return{w:i,m:f}})()}function xt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xt=function(e,t,n,r){function i(t,n){xt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xt(e,t,n,r)}function St(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Pt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){St(i,r,o,a,s,"next",e)}function s(e){St(i,r,o,a,s,"throw",e)}a(void 0)})}}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zt(r.key),r)}}function _t(e,t,n){return t&&Ot(e.prototype,t),n&&Ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t,n){return t=qt(t),function(e,t){if(t&&("object"==bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jt()?Reflect.construct(t,n||[],qt(e).constructor):t.apply(e,n))}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jt=function(){return!!e})()}function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function At(e,t,n,r){var o=It();if(r)for(var i=0;i<r.length;i++)o=r[i](o);var a=t(function(e){o.initializeInstanceElements(e,s.elements)},n),s=o.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===i.key&&e.placement===i.placement},r=0;r<e.length;r++){var o,i=e[r];if("method"===i.kind&&(o=t.find(n)))if($t(i.descriptor)||$t(o.descriptor)){if(Bt(i)||Bt(o))throw new ReferenceError("Duplicated methods ("+i.key+") can't be decorated.");o.descriptor=i.descriptor}else{if(Bt(i)){if(Bt(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+i.key+").");o.decorators=i.decorators}Lt(i,o)}else t.push(i)}return t}(a.d.map(Rt)),e);return o.initializeClassElements(a.F,s.elements),o.runClassFinishers(a.F,s.finishers)}function It(){It=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach(function(n){t.forEach(function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)},this)},this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach(function(r){t.forEach(function(t){var o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var i="static"===o?e:n;this.defineClassElement(i,t)}},this)},this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){this.addElementPlacement(e,o)},this),e.forEach(function(e){if(!Bt(e))return n.push(e);var t=this.decorateElement(e,o);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)},this),!t)return{elements:n,finishers:r};var i=this.decorateConstructor(n,t);return r.push.apply(r,i.finishers),i.finishers=r,i},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,o[i])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var l=u.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],t);n.push.apply(n,l)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==i.finisher&&n.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return function(e){return function(e){if(Array.isArray(e))return e}(e)||Ut(e)||Ft(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e).map(function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t},this)},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=zt(e.key),r=e.placement+"";if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var i={kind:t,key:n,placement:r,descriptor:Object.assign({},o)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),i.initializer=e.initializer),i},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:Dt(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=Dt(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function Rt(e){var t,n=zt(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function Lt(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function Bt(e){return e.decorators&&e.decorators.length}function $t(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function Dt(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function zt(e){var t=function(e){if("object"!=bt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bt(t)?t:t+""}function Ft(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ut(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ht(e,t,n,r){var o=Wt(qt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Wt(){return Wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=qt(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wt.apply(null,arguments)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}var Vt=At([(0,N.EM)("br-mode-2up")],function(e,t){var n,r,o=function(t){function n(t,r){var o;return Ct(this,n),o=Et(this,n),e(o),o.book=t,o.br=r,o}return Mt(n,t),_t(n)}(t);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new ye(this)}},{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,N.MZ)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,N.P)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,N.MZ)({type:Array,hasChanged:s.w1})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find(function(e){return"L"==e.pageSide})}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find(function(e){return"R"==e.pageSide})}},{kind:"field",decorators:[(0,N.MZ)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",key:"activeFlip",value:function(){return null}},{kind:"field",key:"_leftCoverWidth",value:function(){return 0}},{kind:"get",key:"$container",value:function(){return this}},{kind:"get",key:"$visibleWorld",value:function(){return this.$book}},{kind:"field",decorators:[(0,N.P)(".br-mode-2up__book")],key:"$book",value:void 0},{kind:"get",key:"positions",value:function(){return this.computePositions(this.pageLeft,this.pageRight)}},{kind:"method",key:"computePageHeight",value:function(e){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(e){return e.widthInches*this.computePageHeight(e)/e.heightInches}},{kind:"method",key:"computePositions",value:function(e,t){var n,r,o,i,a=this.computePageWidth.bind(this),s=this.book.getNumLeafs(),u=this.activeFlip?Math.ceil(this.activeFlip.pagesFlippingCount/2)*this.PAGE_THICKNESS_IN:0,l="lr"==this.book.pageProgression?null!==(n=null==e?void 0:e.index)&&void 0!==n?n:0:e?s-e.index:0,c=this._leftCoverWidth+l*this.PAGE_THICKNESS_IN,d=c,f=a(e||t.right),h=c-f,p=h,v="left"!=(null===(r=this.activeFlip)||void 0===r?void 0:r.direction)?0:u,m=Math.ceil(l/2)*this.PAGE_THICKNESS_IN-v,g=v+m,y=p-v,b=y-m,w=c,k=t?a(t):0,x=w+k,S="lr"==this.book.pageProgression?t?s-t.index:0:null!==(o=null==t?void 0:t.index)&&void 0!==o?o:0,P=x,O="right"!=(null===(i=this.activeFlip)||void 0===i?void 0:i.direction)?0:u,_=P+O,C=Math.ceil(S/2)*this.PAGE_THICKNESS_IN-O,E=P+C+O;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:m,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:p,leafEdgesLeftFullWidth:g,pageLeftStart:h,pageLeftWidth:f,pageLeftEnd:d,gutter:c,pageRightStart:w,pageRightWidth:k,pageRightEnd:x,leafEdgesRightStart:P,leafEdgesRightMovingWidth:O,leafEdgesRightMainStart:_,leafEdgesRightMainWidth:C,leafEdgesRightEnd:E,leafEdgesRightFullWidth:O+C,spreadWidth:x-h,bookWidth:E-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new se(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new te(this)}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"field",key:"PAGE_THICKNESS_IN",value:function(){return.002}},{kind:"method",key:"jumpToIndex",value:(r=Pt(kt().m(function e(t){var n,r,o=arguments;return kt().w(function(e){for(;;)switch(e.n){case 0:return n=(o.length>1&&void 0!==o[1]?o[1]:{}).smooth,r=void 0===n||n,e.n=1,this._flipAnimation(t,{animate:r});case 1:return e.a(2)}},e,this)})),function(e){return r.apply(this,arguments)})},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(e){Ht(o,"firstUpdated",this,3)([e]),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){Ht(o,"connectedCallback",this,3)([]),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),Ht(o,"disconnectedCallback",this,3)([])}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),e.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map(function(e){return e.index}),this.br.updateFirstIndex(this.br.displayedIndices[0])),e.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),e.has("scale")){var t=e.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,t)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e=this;return(0,a.qy)(lt||(lt=wt(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map(function(t){return e.renderPage(t)}),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e),n=t.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter(function(e){return e}),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(t),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,o=n(e.computePageWidth(t)),i=n(e.computePageHeight(t)),a=e.visiblePages.map(function(e){return e.index}).includes(t.index),s=e.computePositions(t.spread.left,t.spread.right),u=e.createPageContainer(t).update({dimensions:{width:o,height:i,top:0,left:n("L"==t.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:t.width/r(e.computePageWidth(t))}).$container[0],l=u.classList.contains("BRpage-visible");return u.classList.toggle("BRpage-visible",a)&&!l&&e.br.trigger("pageVisible",{pageContainerEl:u}),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var e=this;return function(t){var n;if(!e.visiblePages.length)return(0,a.qy)(ct||(ct=wt([""])));if(!("left"==t?e.positions.leafEdgesLeftFullWidth:e.positions.leafEdgesRightFullWidth))return(0,a.qy)(dt||(dt=wt([""])));var r=e.coordSpace.worldUnitsToRenderedPixels,o=r(e.computePageHeight(e.visiblePages[0])),i=(null===(n=e.activeFlip)||void 0===n?void 0:n.direction)==t,s=e.book.getPage("lr"==e.book.pageProgression?0:e.book.getNumLeafs()-1),u=e.book.getPage("lr"==e.book.pageProgression?e.book.getNumLeafs()-1:0),l=i?e.activeFlip.pagesFlippingCount:0,c="left"==t?[s.index,e.pageLeft.goLeft(l).index]:[e.pageRight.goRight(l).index,u.index],d={width:"".concat(r("left"==t?e.positions.leafEdgesLeftMainWidth:e.positions.leafEdgesRightMainWidth),"px"),height:"".concat(o,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftStart:e.positions.leafEdgesRightMainStart),"px")},f=(0,a.qy)(ft||(ft=wt(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n .pageClickHandler=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--','"\n style=',"\n ></br-leaf-edges>\n "])),c[0],c[1],e.book,function(t){return e.br.jumpToIndex(t,{ariaLive:!0})},t,t,(0,U.W)(d));if(i){var h=r("left"==t?e.positions.leafEdgesLeftMovingWidth:e.positions.leafEdgesRightMovingWidth),p={width:"".concat(h,"px"),height:"".concat(o,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftMovingStart:e.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==t?e.positions.pageLeftWidth:-e.positions.pageRightWidth)+h/2,"px 0")},v=(0,a.qy)(ht||(ht=wt(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--',' br-mode-2up__leafs--flipping"\n style=',"\n ></br-leaf-edges>\n "])),e.activeFlip.pagesFlipping[0],e.activeFlip.pagesFlipping[1],e.book,t,t,(0,U.W)(p));return"left"==t?(0,a.qy)(pt||(pt=wt(["","",""])),f,v):(0,a.qy)(vt||(vt=wt(["","",""])),v,f)}return f}}},{kind:"method",key:"resizeViaAutofit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(e,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],t=this.computeTranslate(e,this.scale);this.$book.style.transform="translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t,n,r;return[null===(e=this.visiblePages[0])||void 0===e||null===(e=e.prev)||void 0===e?void 0:e.prev,null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(function(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||Ut(e)||Ft(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.visiblePages),[null===(n=this.visiblePages[this.visiblePages.length-1])||void 0===n?void 0:n.next,null===(r=this.visiblePages[this.visiblePages.length-1])||void 0===r||null===(r=r.next)||void 0===r?void 0:r.next]).filter(function(e){return e}).slice(0,10)}},{kind:"method",key:"computeScale",value:function(e,t){if(!e)return 1;var n=e.spread,r=this.computePositions(n.left,n.right).bookWidth,o=this.computePageHeight(n.left||n.right),i=this.scale;this.scale=1;var a=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth-20)/r,s=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientHeight-20)/o;this.scale=i;var u=1;if("width"==t)u=a;else if("height"==t)u=s;else if("auto"==t)u=Math.min(a,s);else{if("none"!=t)throw new Error("Invalid autoFit value: ".concat(t));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!e)return{x:0,y:0};var n=e.spread,r=this.computePositions(n.left,n.right),o=r.bookWidth,i=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(o)*t,s=this.coordSpace.worldUnitsToRenderedPixels(i)*t,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*t,l=(this.htmlDimensionsCacher.clientWidth-a)/2+u,c=(this.htmlDimensionsCacher.clientHeight-s)/2;return{x:Math.max(u,l),y:Math.max(0,c)}}},{kind:"method",key:"_flipAnimation",value:(n=Pt(kt().m(function e(t){var n,r,o,i,a,u,l,c,d,f,h,p,v,m,g,y,b,w,k,x,S,P,O,_,C,E,j,M,T,A,I,R,L=this,B=arguments;return kt().w(function(e){for(;;)switch(e.n){case 0:if(l=(u=B.length>1&&void 0!==B[1]?B[1]:{}).animate,c=void 0===l||l,d=u.flipSpeed,f=void 0===d?this.flipSpeed:d,h=null===(n=this.pageLeft||this.pageRight)||void 0===n?void 0:n.spread){e.n=1;break}return e.a(2);case 1:if(f=f||this.flipSpeed,t=this.parseNextSpread(t),!this.activeFlip&&t){e.n=2;break}return e.a(2);case 2:if(p=this.book.pageProgression,v=null!==(r=null===(o=h.left)||void 0===o?void 0:o.index)&&void 0!==r?r:"lr"==p?-1:this.book.getNumLeafs(),m=null!==(i=null===(a=t.left)||void 0===a?void 0:a.index)&&void 0!==i?i:"lr"==p?-1:this.book.getNumLeafs(),v!=m){e.n=3;break}return e.a(2);case 3:g=this.renderedPages.map(function(e){return e.index}),y=[],b=0,w=[t.left,t.right];case 4:if(!(b<w.length)){e.n=7;break}if(k=w[b]){e.n=5;break}return e.a(3,6);case 5:y.push(this.createPageContainer(k)),g.includes(k.index)||this.renderedPages.push(k);case 6:b++,e.n=4;break;case 7:if(x=this.computeTranslate(h.left||h.right,this.scale),S=this.computeTranslate(t.left||t.right,this.scale),P=Math.sqrt(Math.pow(S.x-x.x,2)+Math.pow(S.y-x.y,2)),O="translate(".concat(S.x,"px, ").concat(S.y,"px)"),P<50&&(C=null===(_=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===_?void 0:_[0])&&(O=C),E="".concat(O," scale(").concat(this.scale,")"),!c||!("animate"in Element.prototype)){e.n=10;break}return j="lr"==p?m>v?"right":"left":m>v?"left":"right",this.activeFlip={direction:j,pagesFlipping:[v,m],pagesFlippingCount:Math.abs(m-v)},this.classList.add("br-mode-2up--flipping-".concat(j)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.n=8,this.updateComplete;case 8:return this.visiblePages.map(function(e){return L.pageContainerCache[e.index].$container}).forEach(function(e){return e.addClass("BRpage-exiting")}),y.forEach(function(e){return e.$container.addClass("BRpage-entering")}),M={duration:f+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},T=this.$book.animate([{transform:E}],M),A=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==j?"rotateY(-180deg)":"rotateY(180deg)"}],M),I="left"==j?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],M):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],M),R="left"==j?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],M):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],M),T.play(),A.play(),I.play(),R.play(),y.forEach(function(e){return e.$container.addClass("BRpage-visible")}),e.n=9,Promise.race([(0,s.Fg)(T,"finish"),(0,s.Fg)(A,"finish"),(0,s.Fg)(I,"finish"),(0,s.Fg)(R,"finish")]);case 9:this.classList.remove("br-mode-2up--flipping-".concat(j)),this.classList.remove("BRpageFlipping"),this.visiblePages.map(function(e){return L.pageContainerCache[e.index].$container}).forEach(function(e){return e.removeClass("BRpage-exiting BRpage-visible")}),y.forEach(function(e){return e.$container.removeClass("BRpage-entering")}),this.activeFlip=null;case 10:this.$book.style.transform=E,this.visiblePages=("lr"==p?[t.left,t.right]:[t.right,t.left]).filter(function(e){return e}),y.forEach(function(e){L.br.trigger("pageVisible",{pageContainerEl:e.$container[0]})});case 11:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(e){"next"==e?e="lr"==this.book.pageProgression?"right":"left":"prev"==e&&(e="lr"==this.book.pageProgression?"left":"right");var t,n=this.book.getPage(this.br.currentIndex()).spread;if("left"==e)e=null===(t=n.left)||void 0===t||null===(t=t.findLeft({combineConsecutiveUnviewables:!0}))||void 0===t?void 0:t.spread;else if("right"==e){var r;e=null===(r=n.right)||void 0===r||null===(r=r.findRight({combineConsecutiveUnviewables:!0}))||void 0===r?void 0:r.spread}return"number"==typeof e&&(e=this.book.getPage(e).spread),e instanceof F&&(e=e.spread),e}},{kind:"field",key:"handlePageClick",value:function(){var e=this;return function(t){if(3==t.which&&e.br.protected)return!1;if(1==t.which){var n=yt(t.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?e.br.left():"R"==n.data("side")&&e.br.right())}}}}]}},a.WF),Gt=(At([(0,N.EM)("br-leaf-edges")],function(e,t){var n=function(t){function n(){var t;Ct(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=Et(this,n,[].concat(o)),e(t),t}return Mt(n,t),_t(n)}(t);return{F:n,d:[{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,N.MZ)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,N.MZ)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,N.MZ)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,N.MZ)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,N.P)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,N.P)(".br-leaf-edges__label")],key:"$hoverLabel",value:void 0},{kind:"get",key:"pageWidthPercent",value:function(){return 100/(this.rightIndex-this.leftIndex+1)}},{kind:"method",key:"render",value:function(){return(0,a.qy)(mt||(mt=wt(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),(0,U.W)({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){Ht(n,"connectedCallback",this,3)([]),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave),this.addEventListener("click",this.onClick)}},{kind:"method",key:"disconnectedCallback",value:function(){Ht(n,"disconnectedCallback",this,3)([]),this.addEventListener("mouseenter",this.onMouseEnter),this.removeEventListener("mousemove",this.onMouseMove),this.removeEventListener("mouseleave",this.onMouseLeave)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"onMouseEnter",value:function(){var e=this;return function(t){e.addEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="block",e.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var e=this;return function(t){e.$hoverBar.style.left="".concat(t.offsetX,"px"),"right"==e.side?e.$hoverLabel.style.left="".concat(t.offsetX,"px"):e.$hoverLabel.style.right="".concat(e.offsetWidth-t.offsetX,"px"),e.$hoverLabel.style.top="".concat(t.offsetY,"px");var n=e.mouseEventToPageIndex(t);e.$hoverLabel.textContent=e.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var e=this;return function(t){e.removeEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="none",e.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var e=this;return function(t){e.pageClickHandler(e.mouseEventToPageIndex(t))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(e){return Math.floor(this.leftIndex+e.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}},a.WF),r(1669));function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function Xt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return Yt(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Yt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Yt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,Yt(d,"constructor",l),Yt(l,"constructor",u),u.displayName="GeneratorFunction",Yt(l,o,"GeneratorFunction"),Yt(d),Yt(d,o,"Generator"),Yt(d,r,function(){return this}),Yt(d,"toString",function(){return"[object Generator]"}),(Xt=function(){return{w:i,m:f}})()}function Yt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Yt=function(e,t,n,r){function i(t,n){Yt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Yt(e,t,n,r)}function Kt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Jt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Kt(i,r,o,a,s,"next",e)}function s(e){Kt(i,r,o,a,s,"throw",e)}a(void 0)})}}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rn(r.key),r)}}function en(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(en=function(){return!!e})()}function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tn(e)}function nn(e,t){return nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nn(e,t)}function rn(e){var t=function(e){if("object"!=Zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zt(t)?t:t+""}var on=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(t=rn(t))in e?Object.defineProperty(e,t,{value:"2up",enumerable:!0,configurable:!0,writable:!0}):e[t]="2up"}(r=function(e,t,n){return t=tn(t),function(e,t){if(t&&("object"==Zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,en()?Reflect.construct(t,n||[],tn(e).constructor):t.apply(e,n))}(this,t),"name"),r.br=e,r.book=n,r.mode2UpLit=new Vt(n,e),r.mode2UpLit.flipSpeed=e.flipSpeed,r.$el=Gt(r.mode2UpLit).attr("autoFit",r.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),r.everShown=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(t,e),function(e,t){return t&&Qt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(Jt(Xt().m(function n(){return Xt().w(function(n){for(;;)switch(n.n){case 0:if(e.everShown){n.n=2;break}return e.mode2UpLit.initFirstRender(t),e.everShown=!0,e.mode2UpLit.requestUpdate(),n.n=1,e.mode2UpLit.updateComplete;case 1:new Ve(e.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.n=4;break;case 2:return n.n=3,e.mode2UpLit.jumpToIndex(t,{smooth:!1});case 3:e.resizePageView();case 4:e.mode2UpLit.style.opacity="1";case 5:return n.a(2)}},n)}))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.pageX,t.pageY,t.noAnimate,this.mode2UpLit.jumpToIndex(e)}},{key:"parsePageSpecifier",value:function(e){var t,n,r="rl"==this.book.pageProgression,o=this.mode2UpLit.parseNextSpread(e),i=null!==(t=null==o||null===(n=o.left)||void 0===n?void 0:n.index)&&void 0!==t?t:r?-1:this.book.getNumLeafs();return this.book.getPage(i)}},{key:"zoom",value:function(e){switch(e){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{key:"resizePageView",value:function(){this.mode2UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode2UpLit.scale<this.mode2UpLit.initialScale&&"none"==this.mode2UpLit.autoFit&&(this.mode2UpLit.autoFit="auto"),"none"!=this.mode2UpLit.autoFit&&this.mode2UpLit.resizeViaAutofit(),this.mode2UpLit.recenter()}}])}(Ke),an=r(1669);function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function un(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ln(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pn(r.key),r)}}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dn=function(){return!!e})()}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fn(e)}function hn(e,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hn(e,t)}function pn(e){var t=function(e){if("object"!=sn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sn(t)?t:t+""}var vn=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r=function(e,t,n){return t=fn(t),function(e,t){if(t&&("object"==sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dn()?Reflect.construct(t,n||[],fn(e).constructor):t.apply(e,n))}(this,t),"name","thumb"),r.br=e,r.book=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hn(e,t)}(t,e),function(e,t){return t&&cn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"drawLeafs",value:function(e){var t,n,r,o=this,i=Math.floor,a=this.book,u=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,d=0,f=0,h=0,p=0,v=[],m=un(a.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(m.s();!(r=m.n()).done;){var g=r.value,y=this.br.thumbWidth;l+(y+this.br.thumbPadding)>u&&(h++,l=0,p=0),v[h]||(v[h]={}),v[h].leafs||(v[h].leafs=[],v[h].height=0,v[h].top=0),v[h].leafs[p]={num:g.index,left:l},(t=i(g.height*this.br.thumbWidth/g.width))>v[h].height&&(v[h].height=t),0===p&&(d+=this.br.thumbPadding+v[h].height),(l+=y+this.br.thumbPadding)>f&&(f=l),p++,g.index==e&&(n=d-this.br.thumbPadding-v[h].height)}}catch(e){m.e(e)}finally{m.f()}this.br.refs.$brPageViewEl.height(d);var b=i((this.br.refs.$brContainer.prop("scrollWidth")-f)/2)-14;void 0!==n&&this.br.refs.$brContainer.scrollTop(n);for(var w=this.br.refs.$brContainer.prop("scrollTop"),k=w+this.br.refs.$brContainer.height(),x=0,S=0,P=[],O=[],_=a.getNumLeafs()-1,C=0,E=0;E<v.length;E++)v[E]&&(S+=this.br.thumbPadding+v[E].height,(x>=w&&x<=k||S>=w&&S<=k||x<=w&&S>=k)&&(P.push(E),v[E].leafs[0].num<_&&(_=v[E].leafs[0].num),v[E].leafs[v[E].leafs.length-1].num>C&&(C=v[E].leafs[v[E].leafs.length-1].num)),x>v[E].top&&(v[E].top=x),x=S);for(var j=P[0],M=P[P.length-1],T=1;T<this.br.thumbRowBuffer+1;T++)M+T<v.length&&P.push(M+T);for(var A=1;A<this.br.thumbRowBuffer;A++)j-A>=0&&P.push(j-A);P.sort(function(e,t){return e-t});for(var I=0,R=P;I<R.length;I++){var L=R[I];if((0,s.KL)(L,this.br.displayedRows)){if(!v[L])continue;var B,$=un(v[L].leafs);try{var D=function(){var e=B.value,t=e.num,n=e.left,r=o.br.thumbWidth,s=i(a.getPageHeight(t)*o.br.thumbWidth/a.getPageWidth(t)),l=v[L].top,d=n+b;"rl"==o.br.pageProgression&&(d=u-r-d),d+=o.br.thumbPadding,O.push(t);var f=i(a.getPageWidth(t)/o.br.thumbWidth),h=2*Math.round(f/2),p=o.br._createPageContainer(t).update({dimensions:{width:r,height:s,top:l,left:d},reduce:h});p.$container.data("leaf",t).on("mouseup",function(e){o.br.updateFirstIndex(t,{suppressFragmentChange:!0}),o.br.switchMode(o.br.constMode1up,{suppressFragmentChange:!0});var n=o.br.viewModeOrder.shift();o.br.viewModeOrder.push(n),o.br._components.navbar.updateViewModeButton(an(".viewmode"),"twopg","Two-page view"),o.br.trigger(c.q.fragmentChange),e.stopPropagation()}),o.br.refs.$brPageViewEl.append(p.$container)};for($.s();!(B=$.n()).done;)D()}catch(e){$.e(e)}finally{$.f()}}}var z,F=un(this.br.displayedRows);try{for(F.s();!(z=F.n()).done;){var N=z.value;if((0,s.KL)(N,P)){var U,H,W=un(null===(U=v[N])||void 0===U?void 0:U.leafs);try{for(W.s();!(H=W.n()).done;){var q,V=H.value.num;null!=O&&O.includes(V)||null===(q=this.br.$(".pagediv".concat(V)))||void 0===q||q.remove()}}catch(e){W.e(e)}finally{W.f()}}}}catch(e){F.e(e)}finally{F.f()}var G=this.br.currentIndex();G<_?this.br.updateFirstIndex(_):G>C&&this.br.updateFirstIndex(C),this.br.displayedRows=P.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(e){var t=an(e).data("leaf"),n=an(e).data("reduce"),r=this.br.imageCache.image(t,n),o=an(e).parent();an(o).append(r),an(e).remove()}},{key:"zoom",value:function(e){var t=this.br.thumbColumns;switch(e){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(e))}this.br.thumbColumns=(0,s.qE)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=t&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(e){var t=(e+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-t)/(e+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=an("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Ve(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(n.pageX,n.pageY,n.noAnimate,Math.floor),o=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,a=this.br.thumbWidth,s=0,u=0,l=0,c=0,d=0,f=0;f<=e;f++){u+(a+this.br.thumbPadding)>i&&(u=0,c=0,d=0);var h=r(o.getPageHeight(d)*this.br.thumbWidth/o.getPageWidth(d));h>c&&(c=h),0==d&&(s=l,l+=this.br.thumbPadding+c),u+=a+this.br.thumbPadding,d++}this.br.updateFirstIndex(e),this.br.refs.$brContainer.prop("scrollTop")==s?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:s},"fast",function(){t.br.animating=!1}))}}])}(Ke);o();var mn={floor:Math.floor,decr:function(e){return e-1}},gn={floor:function(e){return Math.pow(2,Math.floor(Math.log2(Math.max(1,e))))},decr:function(e){return Math.pow(2,Math.log2(e)-1)}},yn={pow2:gn,integer:mn},bn=r(1669);function wn(e){return wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wn(e)}function kn(e){return function(e){if(Array.isArray(e))return xn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pn(r.key),r)}}function Pn(e){var t=function(e){if("object"!=wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wn(t)?t:t+""}var On=function(){return function(e,t){return t&&Sn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,o=void 0!==r&&r,i=n.reduceSet,a=void 0===i?gn:i,s=n.renderPageURI,u=void 0===s?k.renderPageURI:s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.book=t,this.useSrcSet=o,this.reduceSet=a,this.renderPageURI=u,this.cache={},this.defaultScale=8},[{key:"image",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getFinalReduce(e,t);return this._serveImageElement(e,r,n)}},{key:"getFinalReduce",value:function(e,t){var n=(this.cache[e]||[]).filter(function(e){return e.loaded&&e.reduce<=t});return n.length?Math.max.apply(Math,kn(n.map(function(e){return e.reduce}))):this.reduceSet.floor(t)}},{key:"imageLoaded",value:function(e,t){var n,r,o=null===(n=this.cache[e])||void 0===n?void 0:n.find(function(e){return e.reduce<=t});return null!==(r=null==o?void 0:o.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(t=this.cache[e])||void 0===t?void 0:t.filter(function(e){return e.loaded}))||[];if(!r.length)return null;var o=r.filter(function(e){return e.reduce>=n});if(o.length)return Math.min.apply(Math,kn(o.map(function(e){return e.reduce})));var i=r.filter(function(e){return e.reduce<n});return Math.max.apply(Math,kn(i.map(function(e){return e.reduce})))}},{key:"_serveImageElement",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null===(n=this.cache[e])||void 0===n?void 0:n.find(function(e){return e.reduce==t});o||(o={reduce:t,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(o));var i=this.book.getPage(e),a=i.getURI(t,0),s=bn(r||document.createElement("img")).addClass("BRpageimage").attr("alt","Book page image").data("reduce",t).data("src",a);return this.renderPageURI(s[0],a),this.useSrcSet&&s.attr("srcset",i.getURISrcSet(t)),o.loaded||s.one("load",function(){return o.loaded=!0}),s}}])}(),_n=r(4907),Cn=r(1669);function En(e){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(e)}function jn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Dn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Mn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,l=Object.create(u.prototype);return Tn(l,"_invoke",function(n,r,o){var i,s,u,l=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,u=e,f.n=n,a}};function h(n,r){for(s=n,u=r,t=0;!d&&l&&!o&&t<c.length;t++){var o,i=c[t],h=f.p,p=i[2];n>3?(o=p===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,u=p;(t=s<2?e:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(t){i=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,o,i),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Tn(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tn(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,Tn(d,"constructor",l),Tn(l,"constructor",u),u.displayName="GeneratorFunction",Tn(l,o,"GeneratorFunction"),Tn(d),Tn(d,o,"Generator"),Tn(d,r,function(){return this}),Tn(d,"toString",function(){return"[object Generator]"}),(Mn=function(){return{w:i,m:f}})()}function Tn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tn=function(e,t,n,r){function i(t,n){Tn(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Tn(e,t,n,r)}function An(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function In(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){An(i,r,o,a,s,"next",e)}function s(e){An(i,r,o,a,s,"throw",e)}a(void 0)})}}function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach(function(t){Bn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bn(e,t,n){return(t=function(e){var t=function(e){if("object"!=En(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=En(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==En(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||Dn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(e,t){if(e){if("string"==typeof e)return zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fn.extendOptions({},Fn.defaultOptions,e,Fn.optionOverrides);this.setup(t)}function Nn(e,t,n){var r,o,i,a,s,u,l,c;o=n,i=function(e){return e.br},a=Fn,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,u=function(e){return e._overrideable[t]},l=(r=e).prototype[o],c=function(){return l.apply(u(this),arguments)},Object.defineProperty(a.prototype,s,{get:function(){return c},set:function(e){r.prototype[o]=function(){var t=this instanceof r?i(this):this;return e.apply(t,arguments)},c=e}})}Fn.extendOptions=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<=1)return t[0];for(var r=["onePage","twoPage","vars"],o=["plugins","controls"],i=t.shift(),a=0,s=t;a<s.length;a++)for(var u=s[a],l=0,c=Object.entries(u);l<c.length;l++){var d=$n(c[l],2),f=d[0],h=d[1];if(r.includes(f))i[f]||(i[f]={}),i[f]=Object.assign(i[f],h);else if(o.includes(f)){i[f]||(i[f]={});for(var p=0,v=Object.entries(h);p<v.length;p++){var m,g=$n(v[p],2),y=g[0],b=g[1];(m=i[f])[y]||(m[y]={}),Object.assign(i[f][y],b)}}else i[f]=h}return i},Fn.version="5.0.0-121",Fn.constMode1up=1,Fn.constMode2up=2,Fn.constModeThumb=3,Fn.PLUGINS={archiveAnalytics:null,autoplay:null,chapters:null,experiments:null,iframe:null,resume:null,search:null,textSelection:null,translate:null,tts:null},Fn.registerPlugin=function(e,t){Fn.PLUGINS[e]&&console.warn("Plugin ".concat(e," already registered. Overwriting.")),Fn.PLUGINS[e]=t},Fn.imageCache=null,Fn.constNavAnimationDuration=300,Fn.constResizeAnimationDuration=100,Fn.eventNames=c.q,Fn.defaultOptions=k,Fn.optionOverrides=Fn.optionOverrides||{},Fn.prototype.setup=function(e){var t;this.options=e,this.shell,this.bookId=e.bookId,this.server=e.server,this.subPrefix=e.subPrefix,this.bookPath=e.bookPath,this.targetTextFragment=null,this.plugins={archiveAnalytics:Fn.PLUGINS.archiveAnalytics?new Fn.PLUGINS.archiveAnalytics(this):null,autoplay:Fn.PLUGINS.autoplay?new Fn.PLUGINS.autoplay(this):null,chapters:Fn.PLUGINS.chapters?new Fn.PLUGINS.chapters(this):null,experiments:Fn.PLUGINS.experiments?new Fn.PLUGINS.experiments(this):null,iframe:Fn.PLUGINS.iframe?new Fn.PLUGINS.iframe(this):null,search:Fn.PLUGINS.search?new Fn.PLUGINS.search(this):null,resume:Fn.PLUGINS.resume?new Fn.PLUGINS.resume(this):null,textSelection:Fn.PLUGINS.textSelection?new Fn.PLUGINS.textSelection(this):null,translate:Fn.PLUGINS.translate?new Fn.PLUGINS.translate(this):null,tts:Fn.PLUGINS.tts?new Fn.PLUGINS.tts(this):null};for(var n=0,r=Object.entries(this.plugins);n<r.length;n++){var o=$n(r[n],2),i=o[0];o[1]||delete this.plugins[i]}for(var a=0,u=Object.entries(Fn.PLUGINS);a<u.length;a++){var l=$n(u[a],2),c=l[0],d=l[1];!this.plugins[c]&&d&&(this.plugins[c]=new d(this))}for(var f=0,h=Object.entries(this.plugins);f<h.length;f++){var p=$n(h[f],2),m=p[0],g=p[1];try{var y,b;g.setup(null!==(y=null===(b=this.options.plugins)||void 0===b?void 0:b[m])&&void 0!==y?y:{}),this.options.plugins[m]=g.options}catch(e){console.error("Error setting up plugin ".concat(m),e)}}null!==(t=this.plugins.search)&&void 0!==t&&t.options.enabled&&(this.search=this.plugins.search.search.bind(this.plugins.search)),this.numLeafs=void 0,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=Fn.constMode1up,this.constMode2up=Fn.constMode2up,this.constModeThumb=Fn.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=yn[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=yn[k.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=e.ui,this.uiAutoHide=e.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=e.thumbRowBuffer,this.thumbColumns=e.thumbColumns,this.thumbMaxLoading=e.thumbMaxLoading,this.thumbPadding=e.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed=s.Ve(e.flipSpeed)||400,this.firstIndex=null,this.isFullscreenActive=e.startFullscreen||!1,this.lastScroll=null,this.showLogo=e.showLogo,this.logoURL=e.logoURL,this.imagesBaseURL=e.imagesBaseURL,this.reductionFactors=e.reductionFactors,this.onePage=e.onePage,this.twoPage=e.twoPage,this.onePageMinBreakpoint=e.onePageMinBreakpoint,this.bookTitle=e.bookTitle,this.bookUrl=e.bookUrl,this.bookUrlText=e.bookUrlText,this.bookUrlTitle=e.bookUrlTitle,this.titleLeaf=e.titleLeaf,this.metadata=e.metadata,this.thumbnail=e.thumbnail,this.bookUrlMoreInfo=e.bookUrlMoreInfo,this.enableExperimentalControls=e.enableExperimentalControls,this.el=e.el,this.pageProgression=e.pageProgression,this.protected=e.protected,this.getEmbedCode=e.getEmbedCode,this.popup=null,this.data=e.data,this.refs={},this.book=new z(this),e.getNumLeafs&&(this.book.getNumLeafs=e.getNumLeafs.bind(this)),e.getPageWidth&&(this.book.getPageWidth=e.getPageWidth.bind(this)),e.getPageHeight&&(this.book.getPageHeight=e.getPageHeight.bind(this)),e.getPageURI&&(this.book.getPageURI=e.getPageURI.bind(this)),e.getPageSide&&(this.book.getPageSide=e.getPageSide.bind(this)),e.getPageNum&&(this.book.getPageNum=e.getPageNum.bind(this)),e.getPageProp&&(this.book.getPageProp=e.getPageProp.bind(this)),e.getSpreadIndices&&(this.book.getSpreadIndices=e.getSpreadIndices.bind(this)),e.leafNumToIndex&&(this.book.leafNumToIndex=e.leafNumToIndex.bind(this)),this._components={navbar:new v(this),toolbar:new E(this)},this._modes={mode1Up:new gt(this,this.book),mode2Up:new on(this,this.book),modeThumb:new vn(this,this.book)},this._overrideable={book:this.book,"_components.navbar":this._components.navbar,"_components.toolbar":this._components.toolbar,"_modes.mode1Up":this._modes.mode1Up,"_modes.mode2Up":this._modes.mode2Up,"_modes.modeThumb":this._modes.modeThumb},this.imageCache=new On(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet,renderPageURI:e.renderPageURI.bind(this)}),this.hasKeyFocus=!0},Fn.prototype.initializePlugin=function(e){var t=new Fn.PLUGINS[e](this);this.plugins[e]=t;try{var n,r;t.setup(null!==(n=null===(r=this.options.plugins)||void 0===r?void 0:r[e])&&void 0!==n?n:{}),this.options.plugins[e]=t.options}catch(t){throw console.error("Error setting up plugin ".concat(e," outside of regular cycle"),t),t}try{t.init()}catch(t){throw console.error("Error initializing plugin ".concat(e," outside of regular cycle"),t),t}},Fn.prototype.getActivePageContainerElements=function(){var e=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map(function(e){return e.$container[0]}).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map(function(e){return e.$container[0]}));return this.mode==this.constModeThumb&&(e=e.concat(this.$(".BRpagecontainer").toArray())),e},Fn.prototype.getActivePageContainerElementsForIndex=function(e){var t,n;return[null===(t=this._modes.mode2Up.mode2UpLit.pageContainerCache[e])||void 0===t||null===(t=t.$container)||void 0===t?void 0:t[0],null===(n=this._modes.mode1Up.mode1UpLit.pageContainerCache[e])||void 0===n||null===(n=n.$container)||void 0===n?void 0:n[0]].concat(function(e){return function(e){if(Array.isArray(e))return zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.mode==this.constModeThumb?this.$(".pagediv".concat(e)).toArray():[])).filter(function(e){return e})},Object.defineProperty(Fn.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Fn.util=u,Fn.prototype.extendParams=function(e,t){var n=Cn.extend({},t);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Cn.extend(e,n)},Fn.prototype.initParams=function(){var e,t,n={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?n.index=this.book.leafNumToIndex(this.titleLeaf):n.index=0,this.defaults){var r=this.paramsFromFragment(this.defaults);void 0!==r.page&&(n.pageFound=!0),this.extendParams(n,r)}if(null!==(e=this.plugins.resume)&&void 0!==e&&e.options.enabled){var o=this.plugins.resume.getResumeValue();null!==o&&(n.index!==o&&(n.fragmentChange=!0),n.index=o)}if(this.options.enableUrlPlugin){var i=this.paramsFromFragment(this.urlReadFragment());!Object.keys(i).length&&this.urlReadHashFragment()&&"history"===this.options.urlMode&&(i=this.paramsFromFragment(this.urlReadHashFragment())),Object.keys(i).length&&(void 0!==i.page&&(n.pageFound=!0),this.extendParams(n,i),n.fragmentChange=!0)}if(null!==(t=this.plugins.search)&&void 0!==t&&t.options.enabled){var a=this.plugins.search;if(a.options.goToFirstResult=!n.pageFound,!a.initialSearchTerm)if(n.search)a.options.initialSearchTerm=n.search,a.searchTerm=n.search;else{var u=new URLSearchParams(this.readQueryString()).get("q");u&&(a.options.initialSearchTerm=s.ow(u))}}return this.suppressFragmentChange=!n.fragmentChange,n},Fn.prototype.getLocationSearch=function(){return window.location.search},Fn.prototype.getLocationHash=function(){return window.location.hash},Fn.prototype.readQueryString=function(){var e=this.getLocationSearch();if(e)return e;var t=this.getLocationHash(),n=t.search(/\?\w+=/);return n>-1?t.slice(n):""},Fn.prototype.getInitialMode=function(e){var t,n=Cn(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(t=e.mode?e.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),this.options.defaults)try{t=function(e){var t={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(e in t))throw new x("Invalid mode string: ".concat(e));return t[e]}(this.options.defaults)}catch(e){}return t},Fn.prototype.init=function(){var e,t;this.init.initComplete=!1,this.pageScale=this.reduce;var n=this.initParams();if(null===(e=this.urlPlugin)||void 0===e||e.pullFromAddressBar(),this.firstIndex=n.index?n.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Cn(this.el).empty().removeClass().addClass("ui-"+this.ui).addClass("br-ui-"+this.ui).addClass("BookReader"),this.isTouchDevice?this.refs.$br.addClass("touch"):this.refs.$br.addClass("no-touch"),this.refs.$brContainer=Cn("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),n.mode=this.getInitialMode(n),this.mode=n.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar)for(var r=this.initNavbar(),o=0,i=Object.values(this.plugins);o<i.length;o++)i[o].extendNavBar(r);this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(n),this.initUIStrings(),this._components.navbar.bindControlClickHandlers();for(var a=0,s=Object.values(this.plugins);a<s.length;a++)s[a]._bindNavigationHandlers();this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,function(e){e.data.lastScroll=(new Date).getTime(),e.data.constModeThumb==e.data.mode&&e.data.drawLeafsThrottled()}),this.options.autoResize&&(Cn(window).on("resize",this,function(e){e.data.resize()}),Cn(window).on("orientationchange",this,function(e){e.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),null!==(t=this.plugins.search)&&void 0!==t&&t.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0);for(var u=0,l=Object.entries(this.plugins);u<l.length;u++){var c=$n(l[u],2),d=c[0],f=c[1];try{f.init()}catch(e){console.error("Error initializing plugin ".concat(d),e)}}this.init.initComplete=!0,this.trigger(Fn.eventNames.PostInit)},Fn.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;s.Hs(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}})),Cn(document).trigger(n,t)},Fn.prototype.on=function(e,t){Cn(document).on("BookReader:"+e,t)},Fn.prototype.off=function(e,t){Cn(document).off("BookReader:"+e,t)},Fn.prototype.bind=function(e,t){return this.on(e,t)},Fn.prototype.unbind=function(e,t){return this.off(e,t)},Fn.prototype.resize=function(){this.init.initComplete&&(this.resizeBRcontainer(),this._components.navbar.switchNavbarControls(),this.constMode1up==this.mode?"none"!=this.onePage.autofit?(this._modes.mode1Up.resizePageView(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled()):this.constModeThumb==this.mode?this._modes.modeThumb.prepare():this._modes.mode2Up.resizePageView(),this.trigger(Fn.eventNames.resize))},Fn.prototype.setupKeyListeners=function(){var e=this;window.IntersectionObserver&&new IntersectionObserver(function(t){t.forEach(function(t){0===t.intersectionRatio?e.hasKeyFocus=!1:e.hasKeyFocus=!0})},{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",function(t){if(e.hasKeyFocus&&!(t.getModifierState("Control")||t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Meta")||t.getModifierState("Win")||s.xK()))switch(t.key){case"Home":t.preventDefault(),e.first();break;case"End":t.preventDefault(),e.last();break;case"PageDown":e.constMode2up===e.mode&&(t.preventDefault(),e.next());break;case"PageUp":e.constMode2up===e.mode&&(t.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(t.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(t.preventDefault(),e.right());break;case"-":case"Subtract":t.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":t.preventDefault(),e.zoom(1);break;case"F":case"f":t.preventDefault(),e.toggleFullscreen()}})},Fn.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},Fn.prototype._createPageContainer=function(e){for(var t=new _n.LN(this.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache}),n=0,r=Object.values(this.plugins);n<r.length;n++)r[n]._configurePageContainer(t);return t},Fn.prototype.bindGestures=function(e){var t=this,n=1;e.unbind("touchmove").bind("touchmove",function(e){e.originalEvent.cancelable&&(n=e.originalEvent.touches.length),e.stopPropagation()}),e.unbind("gesturechange").bind("gesturechange",function(e){e.preventDefault(),2!==n||(new Date).getTime()-t.lastScroll<500||(e.originalEvent.scale>1.5?t.zoom(1):e.originalEvent.scale<.6&&t.zoom(-1))})},Fn.prototype.drawLeafsThrottled=s.nF(Fn.prototype.drawLeafs,250),Fn.prototype.zoom=function(e){var t,n;1==e?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer)},Fn.prototype.resizeBRcontainer=function(e){e?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},Fn.prototype.scrollIntoView=function(e,t){(0,l.N)(e,Ln(Ln({},t),{},{scrollContainer:this.activeMode.scrollContainer}))},Fn.prototype.centerPageView=function(){var e=this.refs.$brContainer.prop("scrollWidth"),t=this.refs.$brContainer.prop("clientWidth");e>t&&this.refs.$brContainer.prop("scrollLeft",(e-t)/2)},Fn.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,r=Math.abs(e-n),o=1;o<t.length;o++){var i=Math.abs(e-t[o].reduce);i<r&&(r=i,n=t[o].reduce)}return n},Fn.prototype.nextReduce=function(e,t,n){if("in"===t){for(var r=0,o=1;o<n.length;o++)n[o].reduce<e&&(r=o);return n[r]}if("out"===t){for(var i=n.length-1,a=i,s=i;s>=0;s--)n[s].reduce>e&&(a=s);return n[a]}if("auto"===t){var u=n.find(function(e){return"auto"==e.autofit});if(u)return u;for(var l=n.filter(function(e){var t=e.autofit;return"height"==t||"width"==t}),c=null,d=0;d<l.length;d++)(null===c||c.reduce<l[d].reduce)&&(c=l[d]);if(c)return c}else if("height"===t||"width"===t){var f=n.find(function(e){return e.autofit==t});if(f)return f}return n[0]},Fn.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},Fn.prototype.jumpToPage=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ariaLive,n=void 0!==t&&t,r=this.book.parsePageString(e);return void 0!==r&&(this.jumpToIndex(r,{ariaLive:n}),!0)},Fn.prototype._isIndexDisplayed=function(e){return this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},Fn.prototype.jumpToIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pageX,r=void 0===n?0:n,o=t.pageY,i=void 0===o?0:o,a=t.noAnimate,u=void 0!==a&&a,l=t.flipSpeed,c=void 0===l?null:l,d=t.ariaLive,f=void 0!==d&&d,h=t.triggerStop,p=void 0===h||h,v=t.allowUnviewable,m=void 0!==v&&v,g=this.activeMode.parsePageSpecifier(e);if(c=s.Ve(c)||this.flipSpeed,g&&g.index!=this.currentIndex())if(m||g.isViewable||g.unviewablesStart==g.index)p&&this.trigger(Fn.eventNames.stop),this.trigger(Fn.eventNames.beforePageChanged,{index:g.index,ariaLive:f}),this.activeMode.jumpToIndex(g.index,{pageX:r,pageY:i,noAnimate:u,flipSpeed:c,ariaLive:f});else{var y,b=this._isIndexDisplayed(g.unviewablesStart)?null===(y=g.findNext({combineConsecutiveUnviewables:!0}))||void 0===y?void 0:y.index:g.unviewablesStart;void 0!==b&&this.jumpToIndex(b,{pageX:r,pageY:i,noAnimate:u,flipSpeed:c,ariaLive:f})}},Fn.prototype.getPrevReadMode=function(e){return e===Fn.constMode1up||e===Fn.constMode2up?e:null===this.prevReadMode?Fn.constMode1up:void 0},Fn.prototype.switchMode=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.suppressFragmentChange,s=void 0!==a&&a;if(i.init,i.pageFound,"string"==typeof e&&(e={"1up":this.constMode1up,"2up":this.constMode2up,thumb:this.constModeThumb}[e]),!e)throw new Error("Invalid mode: ".concat(e));if(this.init.initComplete){if(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(Fn.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=e&&(null===(r=(o=this.activeMode).unprepare)||void 0===r||r.call(o)),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?this._modes.mode1Up.prepare():this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||s||this.trigger(Fn.eventNames.fragmentChange);var u=e+"PageViewSelected";this.trigger(Fn.eventNames[u]),null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer)},Fn.prototype.updateBrClasses=function(){var e={};e[this.constMode1up]="BRmode1up",e[this.constMode2up]="BRmode2up",e[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(e[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),Cn(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Cn(document.body).removeClass("BRfullscreenActive"))},Fn.prototype.isFullscreen=function(){return this.isFullscreenActive},Fn.prototype.toggleFullscreen=In(Mn().m(function e(){var t,n=arguments;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){e.n=2;break}return e.n=1,this.exitFullScreen();case 1:e.n=3;break;case 2:return e.n=3,this.enterFullscreen(t);case 3:return e.a(2)}},e,this)})),Fn.prototype.enterFullscreen=In(Mn().m(function e(){var t,n,r,o,i=this,a=arguments;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(r=!(a.length>0&&void 0!==a[0])||a[0],this.refs.$br.addClass("BRfullscreenAnimation"),o=this.currentIndex(),r&&(this._fullscreenCloseHandler=function(e){27===e.keyCode&&i.toggleFullscreen()},Cn(document).on("keyup",this._fullscreenCloseHandler)),Cn(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.$(".BRnav .BRicon.full").attr("title","Exit fullscreen"),this.$(".BRnav .BRicon.full .BRtooltip").text("Exit fullscreen"),this.updateBrClasses(),!(this.activeMode instanceof gt)){e.n=1;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(o)),this.activeMode.mode1UpLit.requestUpdate(),e.n=1,this.activeMode.mode1UpLit.updateComplete;case 1:return this.jumpToIndex(o),null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer),this.trigger(Fn.eventNames.fragmentChange),this.trigger(Fn.eventNames.fullscreenToggled),e.n=2,new Promise(function(e){return setTimeout(e,0)});case 2:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 3:return e.a(2)}},e,this)})),Fn.prototype.exitFullScreen=In(Mn().m(function e(){var t,n,r;return Mn().w(function(e){for(;;)switch(e.n){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),Cn(document).off("keyup",this._fullscreenCloseHandler),r=Cn(window).width(),this.options.controls.twoPage.visible&&r<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.$(".BRnav .BRicon.full").attr("title","Go fullscreen"),this.$(".BRnav .BRicon.full .BRtooltip").text("Go fullscreen"),this.trigger(Fn.eventNames.fullscreenToggled),this.updateBrClasses(),e.n=1,new Promise(function(e){return setTimeout(e,0)});case 1:if(this.resize(),!(this.activeMode instanceof gt)){e.n=2;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),e.n=2,this.activeMode.mode1UpLit.updateComplete;case 2:null===(t=this.plugins.textSelection)||void 0===t||t.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer),this.trigger(Fn.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 3:return e.a(2)}},e,this)})),Fn.prototype.toggleSlider=function(){var e=this.refs.$BRnav.find(".toggle_slider"),t=this.refs.$br.find(".BRnavMobile");e.toggleClass("active"),t.toggleClass("docked")},Fn.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return s.qE(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},Fn.prototype.updateFirstIndex=function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==e&&(this.firstIndex=e,this.suppressFragmentChange||r||this.trigger(Fn.eventNames.fragmentChange),null!==(t=this.plugins.search)&&void 0!==t&&t.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger(Fn.eventNames.pageChanged),this.trigger(Fn.eventNames.userAction))},Fn.prototype.right=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0===r||r;this.jumpToIndex("right",{ariaLive:n,triggerStop:o})},Fn.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},Fn.prototype.left=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0===r||r;this.jumpToIndex("left",{ariaLive:n,triggerStop:o})},Fn.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},Fn.prototype.next=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t,r=e.flipSpeed,o=void 0===r?null:r,i=e.ariaLive,a=void 0===i||i;this.jumpToIndex("next",{ariaLive:a,flipSpeed:o,triggerStop:n})},Fn.prototype.prev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t,r=e.flipSpeed,o=void 0===r?null:r,i=e.ariaLive,a=void 0===i||i;this.jumpToIndex("prev",{ariaLive:a,flipSpeed:o,triggerStop:n})},Fn.prototype.first=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0!==r&&r;this.jumpToIndex(0,{ariaLive:n,triggerStop:o})},Fn.prototype.last=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ariaLive,n=void 0===t||t,r=e.triggerStop,o=void 0!==r&&r;this.jumpToIndex(this.book.getNumLeafs()-1,{ariaLive:n,triggerStop:o})},Fn.prototype.initNavbar=v.prototype.init,Nn(v,"_components.navbar","init","initNavbar"),Fn.prototype.buildToolbarElement=E.prototype.buildToolbarElement,Nn(E,"_components.toolbar","buildToolbarElement"),Fn.prototype.initToolbar=E.prototype.initToolbar,Nn(E,"_components.toolbar","initToolbar"),Fn.prototype.buildShareDiv=E.prototype.buildShareDiv,Nn(E,"_components.toolbar","buildShareDiv"),Fn.prototype.buildInfoDiv=E.prototype.buildInfoDiv,Nn(E,"_components.toolbar","buildInfoDiv"),Fn.prototype.getToolBarHeight=E.prototype.getToolBarHeight,Nn(E,"_components.toolbar","getToolBarHeight"),Fn.prototype.getPageURI=z.prototype.getPageURI,Nn(z,"book","getPageURI"),Fn.prototype.updateFromParams=function(e){var t,n=e.mode,r=void 0===n?0:n,o=e.init,i=void 0!==o&&o,a=e.fragmentChange,s=void 0!==a&&a;r&&this.switchMode(r,{init:i,suppressFragmentChange:!s}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),null!==(t=this.plugins.search)&&void 0!==t&&t.enabled&&void 0!==e.search&&this.plugins.search.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},Fn.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this.book.getNumLeafs()<2)},Fn.prototype._getPageURI=function(e,t,n){var r=this.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURI(t,n)):this.imagesBaseURL+"transparent.png"},Fn.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Cn(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var o=document.createElement("span");o.setAttribute("class","icon icon-close-dark"),Cn(r).append(o),r.addEventListener("click",function(){t(),n.removeProgressPopup()}),Cn(this.popup).append(r)}var i=document.createElement("div");if(Cn(i).css({height:"20px"}).prop("className","BRprogressbar"),Cn(this.popup).append(i),e){var a=document.createElement("div");a.innerHTML=e,Cn(this.popup).append(a)}Cn(this.popup).appendTo(this.refs.$br)}},Fn.prototype.removeProgressPopup=function(){Cn(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},Fn.prototype.initUIStrings=function(){var e={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Go fullscreen",".toggle_slider":"Toggle page controls",".book_left":"Flip left",".book_right":"Flip right",".play":"Play",".pause":"Pause",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var t in"rl"==this.pageProgression&&(e[".book_leftmost"]="Last page",e[".book_rightmost"]="First page"),e)this.$(t).prop("title",e[t])},Fn.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each(function(e,t){if(!t.complete||0===t.naturalHeight){var n=t.src;t.src="",setTimeout(function(){t.src=n},1e3)}})},Fn.prototype.getFooterHeight=function(){var e=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(e&&this.refs.$BRfooter){var t=e.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(t)&&!isNaN(n))return t+n}return 0},Fn.prototype.paramsFromCurrent=function(){var e,t={},n=this.currentIndex(),r=this.book.getPageNum(n);return(0===r||r)&&(t.page=r),t.index=n,t.mode=this.mode,this.isFullscreenActive&&(t.view="theater"),null!==(e=this.plugins.search)&&void 0!==e&&e.enabled&&(t.search=this.plugins.search.searchTerm),t},Fn.prototype.paramsFromFragment=function(e){var t={};"#"==e.substr(0,1)&&(e=e.substr(1));var n=parseInt(/^\d+$/.exec(e));if(!isNaN(n))return t.index=n,t;for(var r=e.split("/"),o={},i=0;i<r.length;i+=2)o[r[i]]=r[i+1];return"1up"==o.mode?t.mode=this.constMode1up:"2up"==o.mode?t.mode=this.constMode2up:"thumb"==o.mode&&(t.mode=this.constModeThumb),void 0!==o.page&&(t.page=decodeURIComponent(o.page)),null!=o.search&&(t.search=s.ow(o.search)),null!=o.theme&&(t.theme=o.theme),t},Fn.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n=[];if(void 0!==e.page?n.push("page",encodeURIComponent(e.page)):void 0!==e.index&&n.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)n.push("mode","1up");else if(e.mode==this.constMode2up)n.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;n.push("mode","thumb")}return e.search&&"hash"===t&&n.push("search",s.GF(e.search)),n.join("/")},Fn.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(t);r.delete("focus"),e.view?r.set("view",e.view):r.delete("view"),e.search&&"history"===n&&r.set("q",e.search);var o=r.toString();return o?"?".concat(o):""},Fn.prototype.requestPage=function(){var e=In(Mn().m(function e(t){var n,r,o,i;return Mn().w(function(e){for(;;)switch(e.n){case 0:if(!t.isViewable){e.n=1;break}return e.a(2,[]);case 1:if(this.options.requestPage){e.n=2;break}return e.a(2,[]);case 2:return e.n=3,this.options.requestPage.call(this,t);case 3:n=e.v,r=jn(n);try{for(r.s();!(o=r.n()).done;)i=o.value,this.book.getPage(i).makeViewable()}catch(e){r.e(e)}finally{r.f()}if(this._modes.mode1Up.mode1UpLit.updatePages(),this.activeMode!=this._modes.mode1Up){e.n=4;break}return e.n=4,this._modes.mode1Up.mode1UpLit.updateComplete;case 4:return e.a(2,n)}},e,this)}));return function(t){return e.apply(this,arguments)}}(),Fn.prototype.$=function(e){return this.refs.$br.find(e)},window.BookReader=Fn;var Un=r(1635),Hn=(r(1415),r(744),r(9447)),Wn=r(1091);function qn(e){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(e)}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zn(r.key),r)}}function Zn(e){var t=function(e){if("object"!=qn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qn(t)?t:t+""}function Xn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xn=function(){return!!e})()}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function Kn(e,t){return Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kn(e,t)}var Jn=(0,Wn.u$)(function(e){function t(e){var n,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=Yn(t),function(e,t){if(t&&("object"==qn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xn()?Reflect.construct(t,n||[],Yn(e).constructor):t.apply(e,n))}(this,t,[e]),e.type!==Wn.OA.ATTRIBUTE||"class"!==e.name||(null===(r=e.strings)||void 0===r?void 0:r.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kn(e,t)}(t,e),function(e,t){return t&&Gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"render",value:function(e){return" "+Object.keys(e).filter(function(t){return e[t]}).join(" ")+" "}},{key:"update",value:function(e,t){var n,r,o=this,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0];if(void 0===this.it){for(var a in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(function(e){return""!==e}))),i)i[a]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(a))&&this.it.add(a);return this.render(i)}var s=e.element.classList;for(var u in this.it.forEach(function(e){e in i||(s.remove(e),o.it.delete(e))}),i){var l=!!i[u];l===this.it.has(u)||(null===(r=this.nt)||void 0===r?void 0:r.has(u))||(l?(s.add(u),this.it.add(u)):(s.remove(u),this.it.delete(u)))}return Hn.c0}}])}(Wn.WL));function Qn(e){let t,n,r;return"object"==typeof e?(t=e.hashFunction,n=e.expiring,r=e.tags):t=e,(e,o,i)=>{if(null!=i.value)i.value=tr(i.value,t,n,r);else{if(null==i.get)throw"Only put a Memoize() decorator on a method or get accessor.";i.get=tr(i.get,t,n,r)}}}const er=new Map;function tr(e,t,n=0,r){const o=Symbol("__memoized_map__");return function(...i){let a;this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:new Map});let s=this[o];if(Array.isArray(r))for(const e of r)er.has(e)?er.get(e).push(s):er.set(e,[s]);if(t||i.length>0||n>0){let r;r=!0===t?i.map(e=>e.toString()).join("!"):t?t.apply(this,i):i[0];const o=`${r}__timestamp`;let u=!1;if(n>0)if(s.has(o)){let e=s.get(o);u=Date.now()-e>n}else u=!0;s.has(r)&&!u?a=s.get(r):(a=e.apply(this,i),s.set(r,a),n>0&&s.set(o,Date.now()))}else{const t=this;s.has(t)?a=s.get(t):(a=e.apply(this,i),s.set(t,a))}return a}}class nr{parseValue(e){return("string"!=typeof e||"false"!==e&&"0"!==e)&&Boolean(e)}}nr.shared=new nr;class rr{parseValue(e){if("number"==typeof e)return e;if("boolean"==typeof e)return;const t=parseFloat(e);return Number.isNaN(t)?void 0:t}}rr.shared=new rr;class or{parseValue(e){return rr.shared.parseValue(e)}}or.shared=new or;class ir{parseValue(e){return this.parseJSDate(e)||this.parseBracketDate(e)}parseBracketDate(e){if("string"!=typeof e)return;const t=e.match(/\[([0-9]{4})\]/);return!t||t.length<2?void 0:this.parseJSDate(t[1])}parseJSDate(e){if("string"!=typeof e)return;let t=e;t.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}\s{1}[0-9]{2}:[0-9]{2}:[0-9]{2}$/)&&(t=t.replace(" ","T"));const n=Date.parse(t);if(Number.isNaN(n))return;let r=new Date(t);return(t.match(/^[0-9]{4}$/)||t.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/))&&(r=new Date(r.getTime()+1e3*r.getTimezoneOffset()*60)),r}}ir.shared=new ir;class ar{parseValue(e){if("number"==typeof e)return e;if("boolean"==typeof e)return;const t=e.split(":");let n;return n=1===t.length?this.parseNumberFormat(t[0]):this.parseColonSeparatedFormat(t),n}parseNumberFormat(e){let t=parseFloat(e);return Number.isNaN(t)&&(t=void 0),t}parseColonSeparatedFormat(e){let t=!1;const n=e.map((n,r)=>{const o=parseFloat(n);if(Number.isNaN(o))return t=!0,0;const i=60**(e.length-1-r);return o*Math.floor(i)}).reduce((e,t)=>e+t,0);return t?void 0:n}}ar.shared=new ar;class sr{parseValue(e){if("string"==typeof e)return e}}sr.shared=new sr;class ur{constructor(e,t){this.separators=[";",","],this.parser=e,t&&t.separators&&(this.separators=t.separators)}parseValue(e){const t=String(e);let n=[];for(const e of this.separators)if(n=t.split(e),n.length>1)break;return this.parseListValues(n)}parseListValues(e){const t=e.map(e=>e.trim()).map(e=>this.parser.parseValue(e)),n=[];return t.forEach(e=>{void 0!==e&&n.push(e)}),n}}class lr{parseValue(e){if("string"==typeof e)return e}}lr.shared=new lr;class cr{parseValue(e){return String(e)}}cr.shared=new cr;class dr{get name(){return this.rawValue.name}get source(){return this.rawValue.source}get btih(){return this.rawValue.btih}get md5(){return this.rawValue.md5}get format(){return this.rawValue.format}get mtime(){if(null==this.rawValue.mtime)return;const e=rr.shared.parseValue(this.rawValue.mtime);return e?new Date(1e3*e):void 0}get crc32(){return this.rawValue.crc32}get sha1(){return this.rawValue.sha1}get original(){return this.rawValue.original}get size(){return null!=this.rawValue.size?or.shared.parseValue(this.rawValue.size):void 0}get title(){return this.rawValue.title}get length(){return null!=this.rawValue.length?ar.shared.parseValue(this.rawValue.length):void 0}get height(){return null!=this.rawValue.height?rr.shared.parseValue(this.rawValue.height):void 0}get width(){return null!=this.rawValue.width?rr.shared.parseValue(this.rawValue.width):void 0}get track(){return null!=this.rawValue.track?rr.shared.parseValue(this.rawValue.track):void 0}get external_identifier(){return this.rawValue.external_identifier}get creator(){return this.rawValue.creator}get album(){return this.rawValue.album}constructor(e={}){this.rawValue=e}}(0,Un.Cg)([Qn()],dr.prototype,"mtime",null),(0,Un.Cg)([Qn()],dr.prototype,"size",null),(0,Un.Cg)([Qn()],dr.prototype,"length",null),(0,Un.Cg)([Qn()],dr.prototype,"height",null),(0,Un.Cg)([Qn()],dr.prototype,"width",null),(0,Un.Cg)([Qn()],dr.prototype,"track",null);class fr{get values(){return this.parseRawValue()}get value(){return this.values[0]}constructor(e,t){this.parser=e,this.rawValue=t}parseRawValue(){const e=Array.isArray(this.rawValue)?this.rawValue:[this.rawValue],t=[];return e.forEach(e=>{const n=this.parser.parseValue(e);Array.isArray(n)?t.push(...n):void 0!==n&&t.push(n)}),t}}(0,Un.Cg)([Qn()],fr.prototype,"values",null),(0,Un.Cg)([Qn()],fr.prototype,"value",null);class hr extends fr{constructor(e){super(nr.shared,e)}}class pr extends fr{constructor(e){super(ir.shared,e)}}class vr extends fr{constructor(e){super(ar.shared,e)}}class mr extends fr{constructor(e){super(rr.shared,e)}}class gr extends fr{constructor(e){super(cr.shared,e)}}class yr extends fr{constructor(e){super(lr.shared,e)}}class br extends fr{constructor(e){super(or.shared,e)}}class wr extends fr{constructor(e){super(sr.shared,e)}}class kr extends fr{constructor(e,t){super(t,e)}}class xr extends kr{constructor(e){super(e,new ur(cr.shared))}}class Sr{get identifier(){return this.rawMetadata.identifier}get addeddate(){return null!=this.rawMetadata.addeddate?new pr(this.rawMetadata.addeddate):void 0}get audio_codec(){return null!=this.rawMetadata.audio_codec?new gr(this.rawMetadata.audio_codec):void 0}get audio_sample_rate(){return null!=this.rawMetadata.audio_sample_rate?new mr(this.rawMetadata.audio_sample_rate):void 0}get avg_rating(){return null!=this.rawMetadata.avg_rating?new mr(this.rawMetadata.avg_rating):void 0}get collection(){return null!=this.rawMetadata.collection?new gr(this.rawMetadata.collection):void 0}get collections_raw(){return null!=this.rawMetadata.collections_raw?new gr(this.rawMetadata.collections_raw):void 0}get collection_size(){return null!=this.rawMetadata.collection_size?new br(this.rawMetadata.collection_size):void 0}get contact(){return null!=this.rawMetadata.contact?new gr(this.rawMetadata.contact):void 0}get contributor(){return null!=this.rawMetadata.contributor?new gr(this.rawMetadata.contributor):void 0}get coverage(){return null!=this.rawMetadata.coverage?new gr(this.rawMetadata.coverage):void 0}get creator(){return null!=this.rawMetadata.creator?new gr(this.rawMetadata.creator):void 0}get creator_alt_script(){return null!=this.rawMetadata["creator-alt-script"]?new gr(this.rawMetadata["creator-alt-script"]):void 0}get credits(){return null!=this.rawMetadata.credits?new gr(this.rawMetadata.credits):void 0}get collection_layout(){return null!=this.rawMetadata.collection_layout?new gr(this.rawMetadata.collection_layout):void 0}get date(){return null!=this.rawMetadata.date?new pr(this.rawMetadata.date):void 0}get description(){return null!=this.rawMetadata.description?new gr(this.rawMetadata.description):void 0}get downloads(){return null!=this.rawMetadata.downloads?new mr(this.rawMetadata.downloads):void 0}get duration(){return null!=this.rawMetadata.duration?new vr(this.rawMetadata.duration):void 0}get external_identifier(){return null!=this.rawMetadata["external-identifier"]?new gr(this.rawMetadata["external-identifier"]):void 0}get external_link(){return null!=this.rawMetadata["external-link"]?new gr(this.rawMetadata["external-link"]):void 0}get files_count(){return null!=this.rawMetadata.files_count?new mr(this.rawMetadata.files_count):void 0}get indexdate(){return null!=this.rawMetadata.indexdate?new pr(this.rawMetadata.indexdate):void 0}get isbn(){return null!=this.rawMetadata.isbn?new gr(this.rawMetadata.isbn):void 0}get issue(){return null!=this.rawMetadata.issue?new gr(this.rawMetadata.issue):void 0}get item_count(){return null!=this.rawMetadata.item_count?new mr(this.rawMetadata.item_count):void 0}get item_size(){return null!=this.rawMetadata.item_size?new br(this.rawMetadata.item_size):void 0}get language(){return null!=this.rawMetadata.language?new gr(this.rawMetadata.language):void 0}get length(){return null!=this.rawMetadata.length?new vr(this.rawMetadata.length):void 0}get licenseurl(){return null!=this.rawMetadata.licenseurl?new gr(this.rawMetadata.licenseurl):void 0}get lineage(){return null!=this.rawMetadata.lineage?new gr(this.rawMetadata.lineage):void 0}get month(){return null!=this.rawMetadata.month?new mr(this.rawMetadata.month):void 0}get mediatype(){return null!=this.rawMetadata.mediatype?new wr(this.rawMetadata.mediatype):void 0}get noindex(){return null!=this.rawMetadata.noindex?new hr(this.rawMetadata.noindex):void 0}get notes(){return null!=this.rawMetadata.notes?new gr(this.rawMetadata.notes):void 0}get num_favorites(){return null!=this.rawMetadata.num_favorites?new mr(this.rawMetadata.num_favorites):void 0}get num_reviews(){return null!=this.rawMetadata.num_reviews?new mr(this.rawMetadata.num_reviews):void 0}get openlibrary_edition(){return null!=this.rawMetadata.openlibrary_edition?new gr(this.rawMetadata.openlibrary_edition):void 0}get openlibrary_work(){return null!=this.rawMetadata.openlibrary_work?new gr(this.rawMetadata.openlibrary_work):void 0}get page_progression(){return null!=this.rawMetadata.page_progression?new yr(this.rawMetadata.page_progression):void 0}get paginated(){return null!=this.rawMetadata.paginated?new hr(this.rawMetadata.paginated):void 0}get partner(){return null!=this.rawMetadata.partner?new gr(this.rawMetadata.partner):void 0}get post_text(){return null!=this.rawMetadata.post_text?new gr(this.rawMetadata.post_text):void 0}get ppi(){return null!=this.rawMetadata.ppi?new mr(this.rawMetadata.ppi):void 0}get publicdate(){return null!=this.rawMetadata.publicdate?new pr(this.rawMetadata.publicdate):void 0}get publisher(){return null!=this.rawMetadata.publisher?new gr(this.rawMetadata.publisher):void 0}get reviewdate(){return null!=this.rawMetadata.reviewdate?new pr(this.rawMetadata.reviewdate):void 0}get rights(){return null!=this.rawMetadata.rights?new gr(this.rawMetadata.rights):void 0}get rights_holder(){var e;const t=null!==(e=this.rawMetadata["rights-holder"])&&void 0!==e?e:this.rawMetadata.rights_holder;return null!=t?new gr(t):void 0}get runtime(){return null!=this.rawMetadata.runtime?new vr(this.rawMetadata.runtime):void 0}get scanner(){return null!=this.rawMetadata.scanner?new gr(this.rawMetadata.scanner):void 0}get segments(){return null!=this.rawMetadata.segments?new gr(this.rawMetadata.segments):void 0}get shotlist(){return null!=this.rawMetadata.shotlist?new gr(this.rawMetadata.shotlist):void 0}get source(){return null!=this.rawMetadata.source?new gr(this.rawMetadata.source):void 0}get sponsor(){return null!=this.rawMetadata.sponsor?new gr(this.rawMetadata.sponsor):void 0}get start_localtime(){return null!=this.rawMetadata.start_localtime?new pr(this.rawMetadata.start_localtime):void 0}get start_time(){return null!=this.rawMetadata.start_time?new pr(this.rawMetadata.start_time):void 0}get stop_time(){return null!=this.rawMetadata.stop_time?new pr(this.rawMetadata.stop_time):void 0}get subject(){return null!=this.rawMetadata.subject?new xr(this.rawMetadata.subject):void 0}get taper(){return null!=this.rawMetadata.taper?new gr(this.rawMetadata.taper):void 0}get title(){return null!=this.rawMetadata.title?new gr(this.rawMetadata.title):void 0}get title_alt_script(){return null!=this.rawMetadata["title-alt-script"]?new gr(this.rawMetadata["title-alt-script"]):void 0}get transferer(){return null!=this.rawMetadata.transferer?new gr(this.rawMetadata.transferer):void 0}get track(){return null!=this.rawMetadata.track?new mr(this.rawMetadata.track):void 0}get type(){return null!=this.rawMetadata.type?new gr(this.rawMetadata.type):void 0}get uploader(){return null!=this.rawMetadata.uploader?new gr(this.rawMetadata.uploader):void 0}get utc_offset(){return null!=this.rawMetadata.utc_offset?new mr(this.rawMetadata.utc_offset):void 0}get venue(){return null!=this.rawMetadata.venue?new gr(this.rawMetadata.venue):void 0}get volume(){return null!=this.rawMetadata.volume?new gr(this.rawMetadata.volume):void 0}get week(){return null!=this.rawMetadata.week?new mr(this.rawMetadata.week):void 0}get year(){return null!=this.rawMetadata.year?new mr(this.rawMetadata.year):void 0}constructor(e={}){this.rawMetadata=e}}(0,Un.Cg)([Qn()],Sr.prototype,"addeddate",null),(0,Un.Cg)([Qn()],Sr.prototype,"audio_codec",null),(0,Un.Cg)([Qn()],Sr.prototype,"audio_sample_rate",null),(0,Un.Cg)([Qn()],Sr.prototype,"avg_rating",null),(0,Un.Cg)([Qn()],Sr.prototype,"collection",null),(0,Un.Cg)([Qn()],Sr.prototype,"collections_raw",null),(0,Un.Cg)([Qn()],Sr.prototype,"collection_size",null),(0,Un.Cg)([Qn()],Sr.prototype,"contact",null),(0,Un.Cg)([Qn()],Sr.prototype,"contributor",null),(0,Un.Cg)([Qn()],Sr.prototype,"coverage",null),(0,Un.Cg)([Qn()],Sr.prototype,"creator",null),(0,Un.Cg)([Qn()],Sr.prototype,"creator_alt_script",null),(0,Un.Cg)([Qn()],Sr.prototype,"credits",null),(0,Un.Cg)([Qn()],Sr.prototype,"collection_layout",null),(0,Un.Cg)([Qn()],Sr.prototype,"date",null),(0,Un.Cg)([Qn()],Sr.prototype,"description",null),(0,Un.Cg)([Qn()],Sr.prototype,"downloads",null),(0,Un.Cg)([Qn()],Sr.prototype,"duration",null),(0,Un.Cg)([Qn()],Sr.prototype,"external_identifier",null),(0,Un.Cg)([Qn()],Sr.prototype,"external_link",null),(0,Un.Cg)([Qn()],Sr.prototype,"files_count",null),(0,Un.Cg)([Qn()],Sr.prototype,"indexdate",null),(0,Un.Cg)([Qn()],Sr.prototype,"isbn",null),(0,Un.Cg)([Qn()],Sr.prototype,"issue",null),(0,Un.Cg)([Qn()],Sr.prototype,"item_count",null),(0,Un.Cg)([Qn()],Sr.prototype,"item_size",null),(0,Un.Cg)([Qn()],Sr.prototype,"language",null),(0,Un.Cg)([Qn()],Sr.prototype,"length",null),(0,Un.Cg)([Qn()],Sr.prototype,"licenseurl",null),(0,Un.Cg)([Qn()],Sr.prototype,"lineage",null),(0,Un.Cg)([Qn()],Sr.prototype,"month",null),(0,Un.Cg)([Qn()],Sr.prototype,"mediatype",null),(0,Un.Cg)([Qn()],Sr.prototype,"noindex",null),(0,Un.Cg)([Qn()],Sr.prototype,"notes",null),(0,Un.Cg)([Qn()],Sr.prototype,"num_favorites",null),(0,Un.Cg)([Qn()],Sr.prototype,"num_reviews",null),(0,Un.Cg)([Qn()],Sr.prototype,"openlibrary_edition",null),(0,Un.Cg)([Qn()],Sr.prototype,"openlibrary_work",null),(0,Un.Cg)([Qn()],Sr.prototype,"page_progression",null),(0,Un.Cg)([Qn()],Sr.prototype,"paginated",null),(0,Un.Cg)([Qn()],Sr.prototype,"partner",null),(0,Un.Cg)([Qn()],Sr.prototype,"post_text",null),(0,Un.Cg)([Qn()],Sr.prototype,"ppi",null),(0,Un.Cg)([Qn()],Sr.prototype,"publicdate",null),(0,Un.Cg)([Qn()],Sr.prototype,"publisher",null),(0,Un.Cg)([Qn()],Sr.prototype,"reviewdate",null),(0,Un.Cg)([Qn()],Sr.prototype,"rights",null),(0,Un.Cg)([Qn()],Sr.prototype,"rights_holder",null),(0,Un.Cg)([Qn()],Sr.prototype,"runtime",null),(0,Un.Cg)([Qn()],Sr.prototype,"scanner",null),(0,Un.Cg)([Qn()],Sr.prototype,"segments",null),(0,Un.Cg)([Qn()],Sr.prototype,"shotlist",null),(0,Un.Cg)([Qn()],Sr.prototype,"source",null),(0,Un.Cg)([Qn()],Sr.prototype,"sponsor",null),(0,Un.Cg)([Qn()],Sr.prototype,"start_localtime",null),(0,Un.Cg)([Qn()],Sr.prototype,"start_time",null),(0,Un.Cg)([Qn()],Sr.prototype,"stop_time",null),(0,Un.Cg)([Qn()],Sr.prototype,"subject",null),(0,Un.Cg)([Qn()],Sr.prototype,"taper",null),(0,Un.Cg)([Qn()],Sr.prototype,"title",null),(0,Un.Cg)([Qn()],Sr.prototype,"title_alt_script",null),(0,Un.Cg)([Qn()],Sr.prototype,"transferer",null),(0,Un.Cg)([Qn()],Sr.prototype,"track",null),(0,Un.Cg)([Qn()],Sr.prototype,"type",null),(0,Un.Cg)([Qn()],Sr.prototype,"uploader",null),(0,Un.Cg)([Qn()],Sr.prototype,"utc_offset",null),(0,Un.Cg)([Qn()],Sr.prototype,"venue",null),(0,Un.Cg)([Qn()],Sr.prototype,"volume",null),(0,Un.Cg)([Qn()],Sr.prototype,"week",null),(0,Un.Cg)([Qn()],Sr.prototype,"year",null);class Pr{get reviewbody(){return this.rawValue.reviewbody}get reviewtitle(){return this.rawValue.reviewtitle}get reviewer(){return this.rawValue.reviewer}get reviewer_itemname(){return this.rawValue.reviewer_itemname}get reviewdate(){return null!=this.rawValue.reviewdate?ir.shared.parseValue(this.rawValue.reviewdate):void 0}get createdate(){return null!=this.rawValue.createdate?ir.shared.parseValue(this.rawValue.createdate):void 0}get stars(){return null!=this.rawValue.stars?rr.shared.parseValue(this.rawValue.stars):void 0}constructor(e={}){this.rawValue=e}}(0,Un.Cg)([Qn()],Pr.prototype,"reviewdate",null),(0,Un.Cg)([Qn()],Pr.prototype,"createdate",null),(0,Un.Cg)([Qn()],Pr.prototype,"stars",null);class Or{constructor(e){var t,n;this.rawResponse=e,this.created=e.created,this.d1=e.d1,this.d2=e.d2,this.dir=e.dir,this.files=null===(t=e.files)||void 0===t?void 0:t.map(e=>new dr(e)),this.files_count=e.files_count,this.item_last_updated=e.item_last_updated,this.item_size=e.item_size,this.metadata=new Sr(e.metadata),this.server=e.server,this.uniq=e.uniq,this.workable_servers=e.workable_servers,this.speech_vs_music_asr=e.speech_vs_music_asr,this.reviews=null===(n=e.reviews)||void 0===n?void 0:n.map(e=>new Pr(e))}}var _r;!function(e){e.networkError="MetadataService.NetworkError",e.itemNotFound="MetadataService.ItemNotFound",e.decodingError="MetadataService.DecodingError",e.searchEngineError="MetadataService.SearchEngineError"}(_r||(_r={}));class Cr extends Error{constructor(e,t,n){super(t),this.name=e,this.type=e,this.details=n}}class Er{constructor(e){this.backend=e}async fetchMetadata(e){var t;const n=await this.backend.fetchMetadata(e);return n.error?n:void 0===(null===(t=n.success)||void 0===t?void 0:t.metadata)?{error:new Cr(_r.itemNotFound)}:{success:new Or(n.success)}}async fetchMetadataValue(e,t){var n;const r=await this.backend.fetchMetadata(e,t);return r.error?r:void 0===(null===(n=r.success)||void 0===n?void 0:n.result)?{error:new Cr(_r.itemNotFound)}:{success:r.success.result}}}Er.default=new Er(new class{constructor(e){var t;if(this.baseUrl=null!==(t=null==e?void 0:e.baseUrl)&&void 0!==t?t:"archive.org",void 0!==(null==e?void 0:e.includeCredentials)?this.includeCredentials=e.includeCredentials:this.includeCredentials=null!==window.location.href.match(/^https?:\/\/.*archive\.org(:[0-9]+)?/),void 0!==(null==e?void 0:e.scope))this.requestScope=e.scope;else{const e=new URL(window.location.href).searchParams.get("scope");e&&(this.requestScope=e)}}async fetchMetadata(e,t){const n=t?`/${t}`:"",r=`https://${this.baseUrl}/metadata/${e}${n}`;return this.fetchUrl(r,{requestOptions:{credentials:"omit"}})}async fetchUrl(e,t){var n;const r=new URL(e);let o;this.requestScope&&r.searchParams.set("scope",this.requestScope);try{const e=null!==(n=null==t?void 0:t.requestOptions)&&void 0!==n?n:{credentials:this.includeCredentials?"include":"same-origin"};o=await fetch(r.href,e)}catch(e){const t=e instanceof Error?e.message:"string"==typeof e?e:"Unknown error";return this.getErrorResult(_r.networkError,t)}try{const e=await o.json(),t=e.error;if(t){const n=e.forensics;return this.getErrorResult(_r.searchEngineError,t,n)}return{success:e}}catch(e){const t=e instanceof Error?e.message:"string"==typeof e?e:"Unknown error";return this.getErrorResult(_r.decodingError,t)}}getErrorResult(e,t,n){return{error:new Cr(e,t,n)}}}),r(6090);const jr=a.AH`42px`,Mr=a.AH`var(--menuWidth, 320px)`,Tr=a.AH`var(--animationTiming, 200ms)`;var Ar=a.AH`
199
199
  .main {
200
200
  overflow: hidden;
201
201
  width: 100%;