@internetarchive/bookreader 5.0.0-42-a2 → 5.0.0-42

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see BookReader.js.LICENSE.txt */
2
- (function(){var __webpack_modules__={920:function(e,t,n){"use strict";n(5666),n(1539),n(9714),n(5827),n(2222),n(1249),n(6833),n(8674),n(7327),n(7941),n(4916),n(6992),n(8783),n(3948),n(1637),n(4765),n(7042),n(4747),n(9826),n(6699),n(2023),n(1058),n(3123),n(5306),n(9600),n(2526),n(1817),n(2165),n(1038),n(8309),n(3762),n(6891),n(6177),n(5557);var r=n(5685);function i(e,t,n,r,i,o){var a,s=(a=e.prototype[t],function(){return a.apply(o(this),arguments)});Object.defineProperty(r.prototype,i,{get:function(){return s},set:function(r){e.prototype[t]=function(){var t=this instanceof e?n(this):this;return r.apply(t,arguments)},s=r}})}n(6227);var o={fragmentChange:"fragmentChange",PostInit:"PostInit",stop:"stop",resize:"resize",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){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=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"]}var t,n;return t=e,(n=[{key:"controlFor",value:function(e){var t=this.br.options.controls[e];return t.visible?t.template?"<li>".concat(t.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(t.className,'" title="').concat(t.label,'">\n <div class="icon icon-').concat(t.iconClassName,'"></div>\n <span class="tooltip">').concat(t.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["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)})),i=r.map((function(e){return e.mode}));n.excludedModes.includes(t.mode)&&t.switchMode(i[0]);for(var s=i.indexOf(t.mode),u=0;u<=s;u++)i.push(i.shift());r.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(o.PostInit,(function(){var o=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=i.shift(),s=r.find((function(e){return e.mode===o})),u=r.find((function(e){return e.mode===i[0]}));i.push(o),t.viewModeOrder=i,e.updateViewModeButton(a(n.currentTarget),u.className,u.title),t.switchMode(s.mode)})),s=r.find((function(e){return e.mode===i[0]}));e.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).end().find(".tooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMinimumNavbarControls():this.showMaximumNavbarControls())}},{key:"showMinimumNavbarControls",value:function(){this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,r="rl"===t.pageProgression,i=r?"book_flip_next":"book_flip_prev",o=r?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(i),this.br.options.controls.bookRight.className="book_right ".concat(o),t.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=a('<div class="BRnav BRnavDesktop">\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 <p><span class=\'BRcurrentpage\'></span></p>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),this.$root.append(this.$nav),t.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:t.getNumLeafs()-1,value:t.currentIndex(),range:"min"});return s.on("slide",(function(t,n){return e.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return e.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):t.jumpToIndex(r.value),!0})),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.getPageNum(e),r=(t.getPageProp(e,"pageType"),t.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=t.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return c(e,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e))}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",e)}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t,n,r,i){if("n"==n[0])return"(".concat(e+1," of ").concat(t,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}var l={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:"fast",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,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{textSelection:null},vars:{},data:[],getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{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:"Toggle fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,enableFSLogoShortcut:!1,autoResize:!0,useSrcSet:!1},h=n(105),f=(n(6977),n(4581),n(3609));function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t}var t,n;return t=e,(n=[{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=f('\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");return e.bookUrl&&e.options.enableBookTitleLink?n.append(f("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle),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(),this.updateToolbarZoom(n.reduce),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(),f('<div style="display: none;"></div>').append(m()).append(v()).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(o.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(o.stop)}})}},{key:"updateToolbarZoom",value:function(e){var t,n=this.br,r=n.mode==n.constMode2up?n.twoPage.autofit:n.onePage.autofit;t=r?r.slice(0,1).toUpperCase()+r.slice(1):(100/e).toFixed(2).replace(/0+$/,"").replace(/\.$/,"")+"%",n.$(".BRzoom").text(t)}},{key:"buildShareDiv",value:function(e){var t=this,n=this.br,r=document.location+"",i=(r+"").replace(/#.*/,""),o=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(i,'"/>\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=f('\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(o,'\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=f(e.target).parents("form").first(),r={};r.mode=f(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.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(){b("https://www.facebook.com/sharer.php?"+f.param({u:t._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){b("https://twitter.com/intent/tweet?"+f.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=f('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(f('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,r.escapeHTML)(t.bookTitle),'" />\n </div>')));var i,o=f('<div class="BRinfoRightCol">'),a=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 d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,h=s.value,p="Title"===l?(0,r.escapeHTML)(h):h;o.append(f('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(p,"</div>\n </div>")))}}catch(e){a.e(e)}finally{a.f()}var g=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;g&&t.bookUrl&&o.append(f('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,r.escapeHTML)(g),"\n </a>\n </div>\n </div>")));var v=f('<div class="BRfloatFoot BRinfoFooter"></div>'),m=f('<div class="BRinfoW mv20-lg">').append([n,o,f('<br style="clear:both"/>')]);e.append(m,v).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}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function v(){return f('\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>')}function m(){return f('\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>')}function b(e,t,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-t/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,r,u)}function y(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 w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(2707),n(4553),n(6535),n(9244);var k=function(){function e(t){var n,r;_(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:l.ppi,this._medianPageSize=null,this._medianPageSizePixels=null,this._getDataFlattenedCached=null}return P(e,[{key:"getMedianPageSize",value:function(){if(this._medianPageSizePixels)return this._medianPageSizePixels;for(var e=[],t=[],n=0;n<this.getNumLeafs();n++)e.push(this.getPageWidth(n)),t.push(this.getPageHeight(n));return e.sort(),t.sort(),this._medianPageSizePixels={width:e[Math.floor(e.length/2)],height:t[Math.floor(t.length/2)]},this._medianPageSizePixels}},{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],r=y(this.pagesIterator());try{for(r.s();!(e=r.n()).done;){var i=e.value;t.push(i.widthInches),n.push(i.heightInches)}}catch(e){r.e(e)}finally{r.f()}return t.sort(),n.sort(),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,r.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,r.clamp)(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 i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==e&&t.push(i);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){return this.getPageProp(e,"viewable",!0)?this.getPageProp(e,"uri"):"/bookreader/static/preview-default.png"}},{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.br.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 C(this,e%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.start,r=void 0===n?0:n,i=t.end,o=void 0===i?1/0:i,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a,r=Math.max(0,r),o=Math.min(o,this.getNumLeafs()),u=r;case 4:if(!(u<o)){e.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){e.next=8;break}return e.abrupt("continue",10);case 8:return e.next=10,c;case 10:u++,e.next=4;break;case 13:case"end":return e.stop()}}),e,this)}))},{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(i){return i.pageSide||(i.pageSide=null===e?2===r.length?"L":"R":"L"===e?"R":"L"),e=i.pageSide,!1===i.viewable?i.unviewablesStart=null===t?t=n:t:t=null,n++,i}))}));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(),i=isNaN(e)||e<0||e>=r.length;return i||void 0===r[e][t]?n:r[e][t]}}]),e}(),C=function(){function e(t,n){_(this,e),this.ppi=t._getDataProp(n,"ppi",t.ppi),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 P(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=y(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 i,o=y(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(e){o.e(e)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(e),o=r.decr(i),a=[],s=o;s>=1;s=r.decr(s))a.push(s);return a.map((function(e){return"".concat(t.getURI(e,n)," ").concat(i/e,"x")})).join(", ")}},{key:"findNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.combineConsecutiveUnviewables,r=void 0!==n&&n;if(0!=this.index){if(r){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var i=new e(this.book,this.index-1);return i.isViewable?i:i.findPrev({combineConsecutiveUnviewables:r})}return new e(this.book,this.index-1)}}}]),e}(),S=(n(4819),n(5003),n(6649),n(6078),n(561),n(3680),n(3706),n(2703),n(9601),n(2419),n(3371),n(9653),n(489),n(9089)),T=n(871),E=(n(189),n(2385)),I=n(8150);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})(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=(0,I.XM)(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&&M(e,t)}(a,e);var t,n,r,i,o=(r=a,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=L(r);if(i){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function a(e){var t,n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),e.type!==I.pX.ATTRIBUTE||"style"!==e.name||(null===(n=e.strings)||void 0===n?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return $(t)}return t=a,(n=[{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.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(e,t){var n=this,r=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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(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)?O(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.ct){for(var o in this.ct=new Set,r)this.ct.add(o);return this.render(r)}for(var a in this.ct.forEach((function(e){null==r[e]&&(n.ct.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")})),r){var s=r[a];null!=s&&(this.ct.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return E.Jb}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(I.Xe)),D=(n(2420),n(840)),N=n.n(D);function U(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){U(o,r,i,a,s,"next",e)}function s(e){U(o,r,i,a,s,"throw",e)}a(void 0)}))}}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=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),W(this,"_preventEvent",(function(e){return e.preventDefault(),!1})),W(this,"_pinchStart",(function(){var e,t;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.detachCtrlZoom(),null===(e=(t=n.mode).detachScrollListeners)||void 0===e||e.call(t)})),W(this,"_pinchMove",function(){var e=B(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.lastEvent=t,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(e){return r=e})),n.pinchMoveFrame=n.bufferFn((function(){n.updateScaleCenter({clientX:n.lastEvent.center.x,clientY:n.lastEvent.center.y}),n.mode.scale*=n.lastEvent.scale/n.oldScale,n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null,r()})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),W(this,"_pinchEnd",B(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.pinchMoveFramePromise;case 2:n.mode.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 8:case"end":return e.stop()}}),e)})))),W(this,"_pinchCancel",B(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._pinchEnd();case 2:case"end":return e.stop()}}),e)})))),W(this,"_handleCtrlWheel",(function(e){if(e.ctrlKey){e.preventDefault();var t=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(e),n.mode.scale*=1-Math.sign(e.deltaY)*t}})),this.mode=t,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete N().defaults.cssProps.userSelect,this.hammer=new(N().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(N().Pinch))}var t,n;return t=e,(n=[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._preventEvent),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._preventEvent),this.hammer.on("pinchstart",this._pinchStart),this.hammer.on("pinchmove",this._pinchMove),this.hammer.on("pinchend",this._pinchEnd),this.hammer.on("pinchcancel",this._pinchCancel),this.attached=!0)}},{key:"detach",value:function(){this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._preventEvent),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._preventEvent),this.hammer.off("pinchstart",this._pinchStart),this.hammer.off("pinchmove",this._pinchMove),this.hammer.off("pinchend",this._pinchEnd),this.hammer.off("pinchcancel",this._pinchCancel),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.mode.scaleCenter={x:(t-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}}])&&F(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=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),V(this,"clientWidth",100),V(this,"clientHeight",100),V(this,"boundingClientRect",{top:0,left:0}),V(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})),V(this,"debouncedUpdateClientSizes",(0,r.debounce)(this.updateClientSizes,150,!1)),this.element=t}var t,n;return t=e,(n=[{key:"attachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.removeEventListener("resize",this.debouncedUpdateClientSizes)}}])&&H(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),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,r.key,r)}}var Y,G=function(){function e(t,n){var r,i,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=function(){o.element.classList.add(o.className),clearTimeout(o.timeout),o.timeout=setTimeout((function(){o.element.classList.remove(o.className)}),600)},(r="onScroll")in this?Object.defineProperty(this,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[r]=i,this.element=t,this.className=n,this.timeout=null}var t,n;return t=e,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&X(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();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})(e)}function K(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||le(e)||ue(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 J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(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 ee(e)}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(){te=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 i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,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=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ie(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},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=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,i[o])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],t);n.push.apply(n,c)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.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){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||le(t)||ue(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.")}()).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=String(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=se(e.key),r=String(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 i=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:ae(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=String(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=ae(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 ne(e){var t,n=se(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 re(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function ie(e){return e.decorators&&e.decorators.length}function oe(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function ae(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 se(e){var t=function(e,t){if("object"!==Z(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Z(t)?t:String(t)}function ue(e,t){if(e){if("string"==typeof e)return ce(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)?ce(e,t):void 0}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function le(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function he(){return(he="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=fe(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function fe(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=de(e)););return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=function(e,t,n,r){var i=te(),o=t((function(e){i.initializeInstanceElements(e,a.elements)}),n),a=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(oe(o.descriptor)||oe(i.descriptor)){if(ie(o)||ie(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(ie(o)){if(ie(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}re(o,i)}else t.push(o)}return t}(o.d.map(ne)),e);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,S.Mo)("br-mode-1up")],(function(e,t){var n=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&&J(e,t)}(a,t);var n,r,i,o=(r=a,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=de(r);if(i){var n=de(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Q(this,e)});function a(t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),e(ee(r)),r.book=t,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(t);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,S.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"screenDPI",value:function(){return(0,r.calcScreenDPI)()}},{kind:"field",key:"realWorldReduce",value:function(){return 1}},{kind:"field",decorators:[(0,S.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,S.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,S.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,S.IO)(".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.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,S.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new q(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new z(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new G(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]:{},r=n.smooth,i=void 0!==r&&r;i&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.worldUnitsToVisiblePixels(this.pageTops[e]-this.SPACING_IN/2),i&&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){he(de(n.prototype),"firstUpdated",this).call(this,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.pages=(0,r.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))),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.br.displayedIndices=this.visiblePages.map((function(e){return e.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br.updateNavIndexThrottled()),e.has("scale")){var t=e.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.updateViewportOnZoom(this.scale,t),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"connectedCallback",value:function(){he(de(n.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),he(de(n.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"worldUnitsToRenderedPixels",value:function(){var e=this;return function(t){return t*e.screenDPI/e.realWorldReduce}}},{kind:"field",key:"renderedPixelsToWorldUnits",value:function(){var e=this;return function(t){return t*e.realWorldReduce/e.screenDPI}}},{kind:"field",key:"renderedPixelsToVisiblePixels",value:function(){var e=this;return function(t){return t*e.scale}}},{kind:"field",key:"visiblePixelsToRenderedPixels",value:function(){var e=this;return function(t){return t/e.scale}}},{kind:"field",key:"worldUnitsToVisiblePixels",value:function(){var e=this;return function(t){return e.renderedPixelsToVisiblePixels(e.worldUnitsToRenderedPixels(t))}}},{kind:"field",key:"visiblePixelsToWorldUnits",value:function(){var e=this;return function(t){return e.renderedPixelsToWorldUnits(e.visiblePixelsToRenderedPixels(t))}}},{kind:"method",key:"render",value:function(){var e,t,n=this;return(0,T.dy)(Y||(e=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],t||(t=e.slice(0)),Y=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),j(this.worldStyle),this.renderedPages.map((function(e){return n.renderPage(e)})))}},{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.worldUnitsToRenderedPixels,r=e.worldUnitsToVisiblePixels,i=e.visiblePixelsToWorldUnits(e.htmlDimensionsCacher.clientWidth),o=n(t.widthInches),a=n(t.heightInches),s=Math.max(e.SPACING_IN,(i-t.widthInches)/2),u=e.pageTops[t.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=e.createPageContainer(t).update({dimensions:{width:o,height:a,top:0,left:0},reduce:t.width/r(t.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",e.visiblePages.includes(t)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var e=this;return function(){var t=e.scrollTop,n=e.scrollLeft,r=e.htmlDimensionsCacher.clientWidth,i=e.htmlDimensionsCacher.clientHeight,o=e.visiblePixelsToWorldUnits;e.visibleRegion={top:o(t),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t;return[null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat(K(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,r.throttle)((function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(e,t){var n,r={},i=t,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ue(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+t}}catch(e){o.e(e)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(e){var t=this.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.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,K(this.pages.map((function(e){return e.widthInches}))))+2*this.SPACING_IN,height:(0,r.sum)(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,i=e.visibleRegion.top;return n<=i+e.visibleRegion.height&&r>=i}))}},{kind:"method",key:"updateViewportOnZoom",value:function(e,t){var n=this,r=n.scrollTop,i=n.scrollLeft,o=this.htmlDimensionsCacher.clientWidth,a=this.htmlDimensionsCacher.clientHeight,s=e/t,u=this.scaleCenter.x,c=this.scaleCenter.y,l=s*(i+u*o),h=s*(r+c*a);n.scrollTop=h-c*a,n.scrollLeft=l-u*o,this.updateVisibleRegion()}},{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()}}}]}}),T.oi),ge=n(3609);function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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 be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(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 _e={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},xe=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ve(this,e),be(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)})),be(this,"_dragContinueHandler",(function(e){if(n._shouldAbort())return!0;var t=we(e),r=t.left-n.lastCoord.left,i=t.top-n.lastCoord.top,o=n.settings.scrollWindow?ge(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=t,n.settings.preventDefault?(e.preventDefault(),!1):void 0})),be(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=ge(t),this.settings=ge.extend({},_e,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=ye(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=ye(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var t,n;return t=e,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&me(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Pe=n(3609);function ke(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ke(o,r,i,a,s,"next",e)}function s(e){ke(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Te=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.mode1UpLit=new pe(n,t),this.$el=Pe(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var t,n;return t=e,(n=[{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(Ce(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.everShown){n.next=7;break}return e.mode1UpLit.initFirstRender(t),e.everShown=!0,e.mode1UpLit.requestUpdate(),n.next=6,e.mode1UpLit.updateComplete;case 6:new xe(e.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:e.mode1UpLit.jumpToIndex(t);case 8:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e,t,n,r){var i=Math.abs(this.br.currentIndex()-e),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(e,{smooth:o})}},{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()}}])&&Se(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ee=(n(9337),n(3609));function Ie(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Me=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.leafEdgeL=null,this.leafEdgeR=null,this.pageContainers={},this.smoothZoomer=null,this._scale=1,this.scaleCenter={x:.5,y:.5},this.scrollClassAdder=null}var t,n;return t=e,(n=[{key:"$container",get:function(){return this.br.refs.$brContainer[0]}},{key:"$visibleWorld",get:function(){var e;return null===(e=this.br.refs.$brTwoPageView)||void 0===e?void 0:e[0]}},{key:"scale",get:function(){return this._scale},set:function(e){this.$visibleWorld.style.transform="scale(".concat(e,")"),this.updateViewportOnZoom(e,this._scale),this._scale=e}},{key:"jumpToIndex",value:function(e){e<Math.min(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)?this.flipBackToIndex(e):e>Math.max(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)&&this.flipFwdToIndex(e)}},{key:"drawLeafs",value:function(){var e=this.br.refs.$brTwoPageView,t=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;this.createPageContainer(t).$container.css(this.leftLeafCss).appendTo(e),this.createPageContainer(n).$container.css(this.rightLeafCss).appendTo(e),this.displayedIndices=[this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR],this.br.displayedIndices=this.displayedIndices,this.br.updateToolbarZoom(this.br.reduce),this.br.trigger("pageChanged")}},{key:"zoom",value:function(e){this.br.stopFlipAnimations(),this.calculateReductionFactors();var t=this.br.nextReduce(this.br.reduce,e,this.br.twoPage.reductionFactors);if(this.br.reduce!=t.reduce||this.br.twoPage.autofit!=t.autofit){this.br.twoPage.autofit=t.autofit,this.br.reduce=t.reduce,this.br.pageScale=this.br.reduce;var n=this.getViewCenter();this.prepareTwoPageView(n.percentageX,n.percentageY,!0)}}},{key:"resizeSpread",value:function(){var e,t,n,r;this.br.resizeBRcontainer(!1),this.calculateSpreadSize(),null===(e=this.br.refs)||void 0===e||e.$brTwoPageView.css(this.mainContainerCss),this.centerView(),Ee(this.br.twoPage.coverDiv).css(this.spreadCoverCss);var i=this.br.refs.$brTwoPageView;null===(t=i.find(".BRleafEdgeR"))||void 0===t||t.css(this.leafEdgeRCss),null===(n=i.find(".BRleafEdgeL"))||void 0===n||n.css(this.leafEdgeLCss),null===(r=i.find(".BRgutter"))||void 0===r||r.css(this.spineCss);var o=this.br.twoPage.currentIndexL,a=this.br.twoPage.currentIndexR;this.pageContainers[o].$container.css(this.leftLeafCss),this.pageContainers[a].$container.css(this.rightLeafCss)}},{key:"prepareTwoPageView",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.br.reduce,a=this.br.displayedIndices;this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css("overflow","auto");var s=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),u=this.book.getSpreadIndices(s);this.br.twoPage.currentIndexL=u[0],this.br.twoPage.currentIndexR=u[1],this.calculateSpreadSize();var c=o==this.br.reduce,l=a==this.br.displayedIndices,h=!l||l&&!c;(i||h)&&(this.prunePageContainers(),this.prefetch()),this.br.refs.$brTwoPageView=this.br.refs.$brTwoPageView||Ee('<div class="BRtwopageview"></div>');var f=this.br.refs.$brTwoPageView;f.empty(),f[0].style.transformOrigin="0 0",this.br.refs.$brContainer.append(f),this.dragScrollable=this.dragScrollable||new xe(this.br.refs.$brContainer[0],{preventDefault:!0,dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),this.attachMouseHandlers(),null===(n=this.br.refs)||void 0===n||n.$brTwoPageView.css(this.mainContainerCss),this.br.twoPage.totalWidth<this.br.refs.$brContainer.prop("clientWidth")&&(e=.5),this.br.twoPage.totalHeight<this.br.refs.$brContainer.prop("clientHeight")&&(t=.5),this.centerView(e,t),this.br.twoPage.coverDiv=document.createElement("div"),Ee(this.br.twoPage.coverDiv).attr("class","BRbookcover").css(this.spreadCoverCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeR=document.createElement("div"),this.leafEdgeR.className="BRleafEdgeR",Ee(this.leafEdgeR).css(this.leafEdgeRCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeL=document.createElement("div"),this.leafEdgeL.className="BRleafEdgeL",Ee(this.leafEdgeL).css(this.leafEdgeLCss).appendTo(this.br.refs.$brTwoPageView);var d=document.createElement("div");Ee(d).attr("class","BRgutter").css(this.spineCss).appendTo(this.br.refs.$brTwoPageView),this.preparePopUp(),this.br.displayedIndices=[],this.drawLeafs(),this.br.updateToolbarZoom(this.br.reduce),this.br.updateBrClasses(),this.smoothZoomer=this.smoothZoomer||new z(this),this.smoothZoomer.attach(),this.scrollClassAdder||(this.scrollClassAdder=new G(this.$container,"BRscrolling-active")),this.scrollClassAdder.detach(),this.scrollClassAdder.element=this.$container,this.scrollClassAdder.attach(),this.htmlDimensionsCacher=this.htmlDimensionsCacher||new q(this.$container)}},{key:"unprepare",value:function(){this.smoothZoomer.detach(),this.scrollClassAdder.detach()}},{key:"updateViewportOnZoom",value:function(e,t){var n,r,i=this.br.refs.$brContainer[0],o=i.scrollTop,a=i.scrollLeft,s=this.htmlDimensionsCacher.clientWidth,u=this.htmlDimensionsCacher.clientHeight,c=e/t,l=this.scaleCenter.x,h=this.scaleCenter.y,f=c*(a+l*s),d=c*(o+h*u);i.scrollTop=d-h*u,i.scrollLeft=f-l*s,null===(n=this.pageContainers[this.br.twoPage.currentIndexL])||void 0===n||n.update({reduce:this.br.reduce/e}),null===(r=this.pageContainers[this.br.twoPage.currentIndexR])||void 0===r||r.update({reduce:this.br.reduce/e})}},{key:"prunePageContainers",value:function(){for(var e in this.pageContainers)e!=this.br.twoPage.currentIndexL&&e!=this.br.twoPage.currentIndexR&&Ee(this.pageContainers[e].$container).remove(),(e<this.br.twoPage.currentIndexL-4||e>this.br.twoPage.currentIndexR+4)&&delete this.pageContainers[e]}},{key:"preparePopUp",value:function(){var e=this;this.br.twoPagePopUp=document.createElement("div"),this.br.twoPagePopUp.className="BRtwoPagePopUp",Ee(this.br.twoPagePopUp).css({zIndex:"1000"}).appendTo(this.br.refs.$brContainer),Ee(this.br.twoPagePopUp).hide();for(var t=[{$leafEdge:Ee(this.leafEdgeL),jumpIndexForPageX:this.jumpIndexForLeftEdgePageX.bind(this),leftOffset:function(){return 120-Ee(e.br.twoPagePopUp).width()}},{$leafEdge:Ee(this.leafEdgeR),jumpIndexForPageX:this.jumpIndexForRightEdgePageX.bind(this),leftOffset:function(){return-120}}],n=function(){var t=a[i],n=t.$leafEdge,s=t.jumpIndexForPageX,u=t.leftOffset;n.on("mouseenter",(function(){return Ee(e.br.twoPagePopUp).show()})),n.on("mouseleave",(function(){return Ee(e.br.twoPagePopUp).hide()})),n.on("click",(function(t){e.br.trigger(o.stop),e.br.jumpToIndex(s(t.pageX))})),n.on("mousemove",(function(t){var n=(0,r.clamp)(s(t.pageX),0,e.book.getNumLeafs()-1);Ee(e.br.twoPagePopUp).text("View ".concat(e.book.getPageName(n))),Ee(e.br.twoPagePopUp).css({left:"".concat(t.pageX-e.br.refs.$brContainer.offset().left+e.br.refs.$brContainer.scrollLeft()+u(),"px"),top:"".concat(t.pageY-e.br.refs.$brContainer.offset().top+e.br.refs.$brContainer.scrollTop(),"px")})}))},i=0,a=t;i<a.length;i++)n()}},{key:"setSpreadIndices",value:function(){var e=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),t=this.book.getSpreadIndices(e);this.br.twoPage.currentIndexL=t[0],this.br.twoPage.currentIndexR=t[1]}},{key:"calculateSpreadSize",value:function(){var e,t=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;e=this.br.twoPage.autofit?this.getIdealSpreadSize(t,n):this.getSpreadSizeFromReduce(t,n,this.br.reduce),this.br.twoPage.height=e.height||0,this.br.twoPage.width=e.width||0,this.br.twoPage.scaledWL=this.getPageWidth(t)||0,this.br.twoPage.scaledWR=this.getPageWidth(n)||0,this.br.twoPage.edgeWidth=e.totalLeafEdgeWidth,this.br.twoPage.leafEdgeWidthL=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),this.br.twoPage.leafEdgeWidthR=this.br.twoPage.edgeWidth-this.br.twoPage.leafEdgeWidthL,this.br.twoPage.bookCoverDivWidth=this.coverWidth(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR),this.br.twoPage.bookCoverDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding;var r=this.gutterOffsetForIndex(t),i=this.br.twoPage.scaledWL-r+this.br.twoPage.leafEdgeWidthL,o=this.br.twoPage.scaledWR+r+this.br.twoPage.leafEdgeWidthR,a=Math.max(i,o);this.br.twoPage.totalWidth=2*(a+this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.totalHeight=this.br.twoPage.height+2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.middle=this.br.twoPage.totalWidth>>1,this.br.twoPage.gutter=this.br.twoPage.middle+this.gutterOffsetForIndex(t),this.br.twoPage.bookCoverDivLeft=this.br.twoPage.gutter-this.br.twoPage.scaledWL-this.br.twoPage.leafEdgeWidthL-this.br.twoPage.coverInternalPadding,this.br.twoPage.bookCoverDivTop=this.br.twoPage.coverExternalPadding,this.br.twoPage.bookSpineDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding,this.br.twoPage.bookSpineDivLeft=this.br.twoPage.middle-(this.br.twoPage.bookSpineDivWidth>>1),this.br.twoPage.bookSpineDivTop=this.br.twoPage.bookCoverDivTop,this.br.reduce=e.reduce<0?this.br.reduce:e.reduce}},{key:"getIdealSpreadSize",value:function(e,t){var n,r={},i=this.book._getPageHeight(e),o=this.book._getPageWidth(e),a=this.book._getPageHeight(t),s=i/o,u=a/this.book._getPageWidth(t);n=Math.abs(s-1.5)<Math.abs(u-1.5)?s:u;var c=Math.floor(.1*this.book.getNumLeafs()),l=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(c,l);var h=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding)+r.totalLeafEdgeWidth,f=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding);return r.width=this.br.refs.$brContainer.width()-h>>1,r.width=r.width>10?r.width-10:1,r.height=this.br.refs.$brContainer.height()-f,r.height=r.height>15?r.height-15:1,r.height/n<=r.width?r.width=Math.floor(r.height/n)||1:r.height=Math.floor(r.width*n)||1,r.reduce=Math.round((i+a)/2/r.height),r}},{key:"getSpreadSizeFromReduce",value:function(e,t,n){var r={},i=Math.floor(.1*this.book.getNumLeafs()),o=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(i,o);var a=this.book._getPageWidth(e)+this.book._getPageWidth(t),s=this.book._getPageHeight(e)+this.book._getPageHeight(t);return r.height=Math.floor(s/2/this.br.reduce),r.width=Math.floor(a/2/this.br.reduce),r.reduce=n,r}},{key:"getAutofitReduce",value:function(){return this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce}},{key:"isZoomedIn",value:function(){var e=!1;return"auto"!=this.br.twoPage.autofit&&this.br.reduce<this.getAutofitReduce()&&(e=!0),e}},{key:"calculateReductionFactors",value:function(){this.br.twoPage.reductionFactors=this.br.reductionFactors.concat([{reduce:this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce,autofit:"auto"}]),this.br.twoPage.reductionFactors.sort(this.br._reduceSort)}},{key:"setCursor",value:function(){console.warn("Call to deprecated method, Mode2Up.setCursor. No-op.")}},{key:"flipBackToIndex",value:function(e){if(this.br.constMode1up!=this.br.mode&&!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==e){var t=this.br.twoPage,n=t.currentIndexL,r=t.currentIndexR,i=Math.min(n,r),o=this.book.getPage(i).findPrev({combineConsecutiveUnviewables:!0});if(!o)return;e=o.index,"R"==o.pageSide&&e--}this.br.updateNavIndexThrottled(e);var a=this.book.getSpreadIndices(e);a[0]<this.br.firstDisplayableIndex()||a[1]<this.br.firstDisplayableIndex()||(this.br.animating=!0,"rl"!=this.br.pageProgression?(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1])):(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])))}else alert("error: leafEdgeTmp should be null!")}},{key:"flipLeftToRight",value:function(e,t){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.br.twoPage.currentIndexL,i=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),o=this.br.leafEdgeWidth(e),a=i-o,s=this.getPageWidth(r),u=this.getPageWidth(e),c=this.getPageWidth(t),l=this.top(),h=this.br.twoPage.middle+this.gutterOffsetForIndex(e),f=this.br.refs.$brTwoPageView,d=h-s-a;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ee(this.br.leafEdgeTmp).css({width:"".concat(a,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(d,"px"),top:"".concat(l,"px"),zIndex:1e3}).appendTo(f),Ee(this.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-s-o,"px")});var p=this.pageContainers[r].$container.offset().left,g="".concat(f.prop("clientWidth")-p-this.pageContainers[r].$container.width()+f.offset().left-2,"px");this.pageContainers[r].$container.css({right:g,left:""}),Ee(this.br.leafEdgeTmp).animate({left:h},this.br.flipSpeed,"easeInSine"),this.pageContainers[r].$container.animate({width:"0px"},this.br.flipSpeed,"easeInSine",(function(){Ee(n.br.leafEdgeTmp).animate({left:"".concat(h+c,"px")},n.br.flipSpeed,"easeOutSine"),n.br.$(".BRgutter").css({left:"".concat(h-.5*n.br.twoPage.bookSpineDivWidth,"px")}),n.pageContainers[t].$container.animate({width:"".concat(c,"px")},n.br.flipSpeed,"easeOutSine",(function(){var r;n.pageContainers[e].$container.css("zIndex",2),Ee(n.leafEdgeR).css({width:"".concat(n.br.twoPage.edgeWidth-o,"px"),left:"".concat(h+c,"px")}),Ee(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-u-o,"px")}),Ee(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(u+c),"px"),left:"".concat(h-u-o-n.br.twoPage.coverInternalPadding,"px")}),Ee(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=e,n.br.twoPage.currentIndexR=t,n.br.twoPage.scaledWL=u,n.br.twoPage.scaledWR=c,n.br.twoPage.gutter=h,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[e,t],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(e-2),n.createPageContainer(t-2),n.createPageContainer(e-3),n.createPageContainer(t-3)}))}))}},{key:"createPageContainer",value:function(e){return this.pageContainers[e]||(this.pageContainers[e]=this.br._createPageContainer(e)),this.pageContainers[e].update({reduce:this.br.reduce/this.scale}),this.pageContainers[e]}},{key:"flipFwdToIndex",value:function(e){if(!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==e){var t=this.br.twoPage,n=t.currentIndexL,r=t.currentIndexR,i=Math.max(n,r),o=this.book.getPage(i).findNext({combineConsecutiveUnviewables:!0});if(!o)return;e=o.index}if(!(e>this.br.lastDisplayableIndex())){this.br.updateNavIndexThrottled(e),this.br.animating=!0;var a=this.book.getSpreadIndices(e);"rl"!=this.br.pageProgression?(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])):(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1]))}}else alert("error: leafEdgeTmp should be null!")}},{key:"flipRightToLeft",value:function(e,t){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),i=this.br.twoPage.edgeWidth-r,o=this.br.leafEdgeWidth(e),a=this.br.twoPage.edgeWidth-o,s=i-a,u=this.top(),c=this.getPageWidth(this.br.twoPage.currentIndexR),l=this.br.twoPage.middle+this.gutterOffsetForIndex(e),h=this.br.refs.$brTwoPageView;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ee(this.br.leafEdgeTmp).css({width:"".concat(s,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(l+c,"px"),top:"".concat(u,"px"),zIndex:1e3}).appendTo(h);var f=this.getPageWidth(e),d=this.getPageWidth(t);Ee(this.leafEdgeR).css({width:"".concat(a,"px"),left:"".concat(l+d,"px")});var p=this.br.flipSpeed;Ee(this.br.leafEdgeTmp).animate({left:l},p,"easeInSine"),this.pageContainers[this.br.twoPage.currentIndexR].$container.animate({width:"0px"},p,"easeInSine",(function(){n.br.$("BRgutter").css({left:"".concat(l-.5*n.br.twoPage.bookSpineDivWidth,"px")}),Ee(n.br.leafEdgeTmp).animate({left:"".concat(l-f-s,"px")},p,"easeOutSine"),n.pageContainers[e].$container.animate({width:"".concat(f,"px")},p,"easeOutSine",(function(){var r;n.pageContainers[t].$container.css("zIndex",2),Ee(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(l-f-o,"px")}),Ee(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(f+d),"px"),left:"".concat(l-f-o-n.br.twoPage.coverInternalPadding,"px")}),Ee(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=e,n.br.twoPage.currentIndexR=t,n.br.twoPage.scaledWL=f,n.br.twoPage.scaledWR=d,n.br.twoPage.gutter=l,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[e,t],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(e+2),n.createPageContainer(t+2),n.createPageContainer(e+3),n.createPageContainer(t+3)}))}))}},{key:"attachMouseHandlers",value:function(){var e=this;this.br.refs.$brTwoPageView.off("mouseup").on("mouseup",(function(t){if(3==t.which)return!e.br.protected;var n=Ee(t.target).closest(".BRpagecontainer");"L"==n.data("side")?e.br.left():"R"==n.data("side")&&e.br.right()}))}},{key:"prepareFlipLeftToRight",value:function(e,t){this.createPageContainer(e,!0),this.createPageContainer(t,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(e),i=this.book._getPageWidth(e),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(e),c={left:"".concat(u-s,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1};this.pageContainers[e].$container.css(c).appendTo(n);var l={left:"".concat(u,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0",zIndex:2};this.pageContainers[t].$container.css(l).appendTo(n)}},{key:"prepareFlipRightToLeft",value:function(e,t){this.createPageContainer(e,!0),this.createPageContainer(t,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(t),i=this.book._getPageWidth(t),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(e);Ee(this.pageContainers[t].$container).css({left:"".concat(u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1}).appendTo(n),r=this.book._getPageHeight(e),i=this.book._getPageWidth(e),s=this.br.twoPage.height*i/r,Ee(this.pageContainers[e].$container).css({right:"".concat(n.prop("clientWidth")-u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0px",zIndex:2}).appendTo(n)}},{key:"getPageWidth",value:function(e){var t=this.book._getPageHeight(e),n=this.book._getPageWidth(e);return Math.floor(this.br.twoPage.height*n/t)}},{key:"gutter",value:function(){return this.br.twoPage.middle+this.gutterOffsetForIndex(this.br.twoPage.currentIndexL)}},{key:"top",value:function(){return this.br.twoPage.coverExternalPadding+this.br.twoPage.coverInternalPadding}},{key:"coverWidth",value:function(e){return e+this.br.twoPage.edgeWidth+2*this.br.twoPage.coverInternalPadding}},{key:"getViewCenter",value:function(){var e=this.br.refs,t=e.$brContainer,n=e.$brTwoPageView,r={},i=t.offset(),o=n.offset();return r.percentageX=(i.left-o.left+(t.prop("clientWidth")>>1))/this.br.twoPage.totalWidth,r.percentageY=(i.top-o.top+(t.prop("clientHeight")>>1))/this.br.twoPage.totalHeight,r}},{key:"centerView",value:function(e,t){void 0===e&&(e=.5),void 0===t&&(t=.5);var n=this.br.refs.$brTwoPageView.width(),r=this.br.refs.$brContainer.prop("clientWidth"),i=e*n,o=this.br.refs.$brTwoPageView.height(),a=this.br.refs.$brContainer.prop("clientHeight"),s=t*o;n<r?this.br.refs.$brTwoPageView.css("left","".concat((r>>1)-i,"px")):(this.br.refs.$brTwoPageView.css("left",0),this.br.refs.$brContainer.scrollLeft(i-(r>>1))),o<a?this.br.refs.$brTwoPageView.css("top","".concat((a>>1)-s,"px")):(this.br.refs.$brTwoPageView.css("top",0),this.br.refs.$brContainer.scrollTop(s-(a>>1)))}},{key:"flipAreaHeight",value:function(){return Math.floor(this.br.twoPage.height)}},{key:"flipAreaWidth",value:function(){var e=.15*this.br.twoPage.width;return Math.floor((0,r.clamp)(e,10,100))}},{key:"flipAreaTop",value:function(){return Math.floor(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding)}},{key:"leftFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter-this.br.twoPage.scaledWL)}},{key:"rightFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter+this.br.twoPage.scaledWR-this.flipAreaWidth())}},{key:"setHilightCss",value:function(e,t,n,r,i,o){var a,s=this.book._getPageHeight(t),u=this.book._getPageWidth(t),c=this.br.twoPage.height/s,l=Math.floor(u*c),h=this.gutter();a="L"==this.book.getPageSide(t)?h-l:h;var f=this.top();Ee(e).css({width:"".concat((r-n)*c,"px"),height:"".concat((o-i)*c,"px"),left:"".concat(a+n*c,"px"),top:"".concat(f+i*c,"px")})}},{key:"gutterOffsetForIndex",value:function(e){var t=Math.floor((e/this.book.getNumLeafs()-.5)*this.br.twoPage.edgeWidth);return"rl"==this.br.pageProgression&&(t*=-1),t}},{key:"leafEdgeWidth",value:function(e){return"L"==this.book.getPageSide(e)&&"rl"!=this.br.pageProgression?Math.floor(e/this.book.getNumLeafs()*this.br.twoPage.edgeWidth+.5):Math.floor((1-e/this.book.getNumLeafs())*this.br.twoPage.edgeWidth+.5)}},{key:"jumpIndexForLeftEdgePageX",value:function(e){var t;return"rl"!=this.br.pageProgression?(t=this.br.twoPage.currentIndexL-10*(Ee(this.leafEdgeL).offset().left+Ee(this.leafEdgeL).width()-e),t=(0,r.clamp)(Math.round(t),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2)):(t=this.br.twoPage.currentIndexL+10*(Ee(this.leafEdgeL).offset().left+Ee(this.leafEdgeL).width()-e),t=(0,r.clamp)(Math.round(t),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex()))}},{key:"jumpIndexForRightEdgePageX",value:function(e){var t;return"rl"!=this.br.pageProgression?(t=this.br.twoPage.currentIndexL+10*(e-Ee(this.leafEdgeR).offset().left),t=(0,r.clamp)(Math.round(t),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex())):(t=this.br.twoPage.currentIndexL-10*(e-Ee(this.leafEdgeR).offset().left),t=(0,r.clamp)(Math.round(t),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2))}},{key:"prefetch",value:function(){for(var e=Math.max,t=Math.min,n=this.book,r=this.br.twoPage,i=r.currentIndexL,o=r.currentIndexR,a=n.getPage(e(0,t(i,o))),s=n.getPage(e(i,o)),u=0;u<4;u++)a&&(this.createPageContainer(a.index),a=a.findPrev({combineConsecutiveUnviewables:!0})),s&&(this.createPageContainer(s.index),s=s.findNext({combineConsecutiveUnviewables:!0}))}},{key:"baseLeafCss",get:function(){return{position:"absolute",right:"",top:"".concat(this.top(),"px"),zIndex:2}}},{key:"heightCss",get:function(){return{height:"".concat(this.br.twoPage.height,"px")}}},{key:"leftLeafCss",get:function(){return Re(Re(Re({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter-this.br.twoPage.scaledWL,"px"),width:"".concat(this.br.twoPage.scaledWL,"px")})}},{key:"leafEdgeLCss",get:function(){return Re(Re({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthL,"px"),left:"".concat(this.br.twoPage.bookCoverDivLeft+this.br.twoPage.coverInternalPadding,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthL?"none":null})}},{key:"rightLeafCss",get:function(){return Re(Re(Re({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter,"px"),width:"".concat(this.br.twoPage.scaledWR,"px")})}},{key:"leafEdgeRCss",get:function(){return Re(Re({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthR,"px"),left:"".concat(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR+this.br.twoPage.leafEdgeWidthL,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthR?"none":null})}},{key:"mainContainerCss",get:function(){return{height:"".concat(this.br.twoPage.totalHeight,"px"),width:"".concat(this.br.twoPage.totalWidth,"px"),position:"absolute"}}},{key:"spreadCoverCss",get:function(){return{width:"".concat(this.br.twoPage.bookCoverDivWidth,"px"),height:"".concat(this.br.twoPage.bookCoverDivHeight,"px"),visibility:"visible"}}},{key:"spineCss",get:function(){return{width:"".concat(this.br.twoPage.bookSpineDivWidth,"px"),height:"".concat(this.br.twoPage.bookSpineDivHeight,"px"),left:"".concat(this.br.twoPage.gutter-this.br.twoPage.bookSpineDivWidth/2,"px"),top:"".concat(this.br.twoPage.bookSpineDivTop,"px")}}}])&&Ae(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$e=n(3609);function Le(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 je(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)?je(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ne=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n}var t,n;return t=e,(n=[{key:"drawLeafs",value:function(e){var t,n,i,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,h=0,f=0,d=0,p=0,g=[],v=Le(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(v.s();!(i=v.n()).done;){var m=i.value,b=this.br.thumbWidth;l+(b+this.br.thumbPadding)>c&&(d++,l=0,p=0),g[d]||(g[d]={}),g[d].leafs||(g[d].leafs=[],g[d].height=0,g[d].top=0),g[d].leafs[p]={num:m.index,left:l},(t=s(m.height*this.br.thumbWidth/m.width))>g[d].height&&(g[d].height=t),0===p&&(h+=this.br.thumbPadding+g[d].height),(l+=b+this.br.thumbPadding)>f&&(f=l),p++,m.index==e&&(n=h-this.br.thumbPadding-g[d].height)}}catch(e){v.e(e)}finally{v.f()}this.br.refs.$brPageViewEl.height(h);var y=s((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"),_=w+this.br.refs.$brContainer.height(),x=0,P=0,k=[],C=[],S=u.getNumLeafs()-1,T=0,E=0;E<g.length;E++)g[E]&&(P+=this.br.thumbPadding+g[E].height,(x>=w&&x<=_||P>=w&&P<=_||x<=w&&P>=_)&&(k.push(E),g[E].leafs[0].num<S&&(S=g[E].leafs[0].num),g[E].leafs[g[E].leafs.length-1].num>T&&(T=g[E].leafs[g[E].leafs.length-1].num)),x>g[E].top&&(g[E].top=x),x=P);for(var I=k[0],R=k[k.length-1],O=1;O<this.br.thumbRowBuffer+1;O++)R+O<g.length&&k.push(R+O);for(var A=1;A<this.br.thumbRowBuffer;A++)I-A>=0&&k.push(I-A);k.sort();for(var M=0,$=k;M<$.length;M++){var L=$[M];if((0,r.notInArray)(L,this.br.displayedRows)){if(!g[L])continue;var j,D=Le(g[L].leafs);try{var N=function(){var e=j.value,t=e.num,n=e.left,r=a.br.thumbWidth,i=s(u.getPageHeight(t)*a.br.thumbWidth/u.getPageWidth(t)),l=g[L].top,h=n+y;"rl"==a.br.pageProgression&&(h=c-r-h),h+=a.br.thumbPadding,C.push(t);var f=s(u.getPageWidth(t)/a.br.thumbWidth),d=2*Math.round(f/2),p=a.br._createPageContainer(t).update({dimensions:{width:r,height:i,top:l,left:h},reduce:d});p.$container.data("leaf",t).on("mouseup",(function(e){a.br.updateFirstIndex(t,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var n=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(n),a.br.updateViewModeButton($e(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),e.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for(D.s();!(j=D.n()).done;)N()}catch(e){D.e(e)}finally{D.f()}}}var U,B=Le(this.br.displayedRows);try{for(B.s();!(U=B.n()).done;){var F=U.value;if((0,r.notInArray)(F,k)){var W,z,H=Le(null===(W=g[F])||void 0===W?void 0:W.leafs);try{for(H.s();!(z=H.n()).done;){var V,q=z.value.num;null!=C&&C.includes(q)||null===(V=this.br.$(".pagediv".concat(q)))||void 0===V||V.remove()}}catch(e){H.e(e)}finally{H.f()}}}}catch(e){B.e(e)}finally{B.f()}var X=this.br.currentIndex();X<S?this.br.updateFirstIndex(S):X>T&&this.br.updateFirstIndex(T),this.br.displayedRows=k.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight"),this.br.updateToolbarZoom(this.br.reduce)}},{key:"lazyLoadImage",value:function(e){var t=$e(e).data("leaf"),n=$e(e).data("reduce"),r=this.br.imageCache.image(t,n),i=$e(e).parent();$e(i).append(r),$e(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,r.clamp)(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=$e("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new xe(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=Math.floor,r=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,h=0;h<=e;h++){s+(o+this.br.thumbPadding)>i&&(s=0,c=0,l=0);var f=n(r.getPageHeight(l)*this.br.thumbWidth/r.getPageWidth(l));f>c&&(c=f),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(e),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){t.br.animating=!1})))}}])&&De(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ue=(n(4914),{floor:Math.floor,decr:function(e){return e-1}}),Be={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)}},Fe={pow2:Be,integer:Ue},We=n(3609);function ze(e){return function(e){if(Array.isArray(e))return He(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 He(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)?He(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 He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Xe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?Be:o;Ve(this,e),this.book=t,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var t,n;return t=e,(n=[{key:"image",value:function(e,t){var n=(this.cache[e]||[]).filter((function(e){return e.loaded&&e.reduce<=t}));if(n.length){var r=Math.max.apply(Math,ze(n.map((function(e){return e.reduce}))));return this._serveImageElement(e,r)}return this._serveImageElement(e,t)}},{key:"imageLoaded",value:function(e,t){var n,r,i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce<=t}));return null!==(r=null==i?void 0:i.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 i=r.filter((function(e){return e.reduce>=n}));if(i.length)return Math.min.apply(Math,ze(i.map((function(e){return e.reduce}))));var o=r.filter((function(e){return e.reduce<n}));return Math.max.apply(Math,ze(o.map((function(e){return e.reduce}))))}},{key:"_serveImageElement",value:function(e,t){var n,r=this.reduceSet.floor(t),i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(i));var o=this.book.getPage(e),a=We("<img />",{class:"BRpageimage",alt:"Book page image",src:o.getURI(r,0)}).data("reduce",r);return this.useSrcSet&&a.attr("srcset",o.getURISrcSet(r)),i.loaded||a.one("load",(function(){return i.loaded=!0})),a}}])&&qe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ye=n(9860),Ge=n(3609),Ze=n(3609);function Ke(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Je(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ke(o,r,i,a,s,"next",e)}function s(e){Ke(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ze.extend(!0,{},et.defaultOptions,e,et.optionOverrides);this.setup(t)}function tt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(e){return e.br},a=function(e){return e._overrideable[t]};i(e,n,o,et,r,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&Ge((function(){return(new h.E).init()})),et.version="5.0.0-42-a2",et.constMode1up=1,et.constMode2up=2,et.constModeThumb=3,et.imageCache=null,et.constNavAnimationDuration=300,et.constResizeAnimationDuration=100,et.eventNames=o,et.defaultOptions=l,et.optionOverrides={},et.prototype.setup=function(e){this.options=e,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=et.constMode1up,this.constMode2up=et.constMode2up,this.constModeThumb=et.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=Fe[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=Fe[l.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.imgs={},this.prefetchedImgs={},this.animating=!1,this.flipSpeed=e.flipSpeed,this.flipDelay=e.flipDelay,this.twoPagePopUp=null,this.leafEdgeTmp=null,this.firstIndex=null,this.lastDisplayableIndex2up=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,e.getNumLeafs&&(et.prototype.getNumLeafs=e.getNumLeafs),e.getPageWidth&&(et.prototype.getPageWidth=e.getPageWidth),e.getPageHeight&&(et.prototype.getPageHeight=e.getPageHeight),e.getPageURI&&(et.prototype.getPageURI=e.getPageURI),e.getPageSide&&(et.prototype.getPageSide=e.getPageSide),e.getPageNum&&(et.prototype.getPageNum=e.getPageNum),e.getPageProp&&(et.prototype.getPageProp=e.getPageProp),e.getSpreadIndices&&(et.prototype.getSpreadIndices=e.getSpreadIndices),e.leafNumToIndex&&(et.prototype.leafNumToIndex=e.leafNumToIndex),this.refs={},this._models={book:new k(this)},this._components={navbar:new u(this),toolbar:new g(this)},this._modes={mode1Up:new Te(this,this._models.book),mode2Up:new Me(this,this._models.book),modeThumb:new Ne(this,this._models.book)},this._overrideable={"_models.book":this._models.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 Xe(this._models.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},et.prototype.getActivePageContainerElements=function(){var e=Object.values(this._modes.mode2Up.pageContainers).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},et.prototype.getActivePageContainerElementsForIndex=function(e){var t,n,r,i,o;return[null===(t=this._modes.mode2Up.pageContainers[e])||void 0===t||null===(n=t.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[e])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(e)).toArray():[],function(e){if(Array.isArray(e))return Qe(e)}(o)||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 Qe(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)?Qe(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.")}())).filter((function(e){return e}))},Object.defineProperty(et.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Object.defineProperty(et.prototype,"leafEdgeL",{get:function(){return this._modes.mode2Up.leafEdgeL},set:function(e){this._modes.mode2Up.leafEdgeL=e}}),Object.defineProperty(et.prototype,"leafEdgeR",{get:function(){return this._modes.mode2Up.leafEdgeR},set:function(e){this._modes.mode2Up.leafEdgeR=e}}),et.util=r,et.prototype.extendParams=function(e,t){var n=Ge.extend({},t);if(void 0!==n.page){var r=this._models.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Ge.extend(e,n)},et.prototype.initParams=function(){var e={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this._models.book.getNumLeafs()>2?e.index=this._models.book.leafNumToIndex(this.titleLeaf):e.index=0,this.defaults){var t=this.paramsFromFragment(this.defaults);void 0!==t.page&&(e.pageFound=!0),this.extendParams(e,t)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(e.index!==n&&(e.fragmentChange=!0),e.index=n)}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&&(e.pageFound=!0),this.extendParams(e,i),e.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!e.pageFound,!this.options.initialSearchTerm))if(e.search)this.options.initialSearchTerm=e.search,this.searchTerm=e.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=r.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},et.prototype.getLocationSearch=function(){return window.location.search},et.prototype.getLocationHash=function(){return window.location.hash},et.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):""},et.prototype.getInitialMode=function(e){var t,n=Ge(window).width();return t=void 0!==e.mode?e.mode:"full"==this.ui&&this.isFullscreenActive&&n<=this.onePageMinBreakpoint?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),t},et.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var e=this.initParams();this.firstIndex=e.index?e.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Ge(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=Ge("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),e.mode=this.getInitialMode(e),this.mode=e.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(e),this.initUIStrings(),this.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&&(Ge(window).on("resize",this,(function(e){e.data.resize()})),Ge(window).on("orientationchange",this,function(e){e.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0),this.init.initComplete=!0,this.trigger(et.eventNames.PostInit)},et.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;r.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}})),Ge(document).trigger(n,t)},et.prototype.bind=function(e,t){Ge(document).on("BookReader:"+e,t)},et.prototype.unbind=function(e,t){Ge(document).off("BookReader:"+e,t)},et.prototype.resize=function(){if(this.init.initComplete){if(this.resizeBRcontainer(),this.switchNavbarControls(),this.constMode1up==this.mode)"none"!=this.onePage.autofit?(this.resizePageView1up(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled());else if(this.constModeThumb==this.mode)this.prepareThumbnailView();else if(this.twoPage.autofit)this.prepareTwoPageView();else{var e=this.twoPageGetViewCenter(),t=!1;this.twoPage.totalWidth<this.refs.$brContainer.prop("clientWidth")&&(e.percentageX=.5,t=!0),this.twoPage.totalHeight<this.refs.$brContainer.prop("clientHeight")&&(e.percentageY=.5,t=!0),t&&this.twoPageCenterView(e.percentageX,e.percentageY)}this.trigger(et.eventNames.resize)}},et.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("Alt")||t.getModifierState("Meta")||t.getModifierState("Win")||r.isInputActive()))switch(t.key){case"Home":t.preventDefault(),e.first();break;case"End":t.preventDefault(),e.last();break;case"ArrowDown":case"PageDown":case"Down":e.constMode2up===e.mode&&(t.preventDefault(),e.next());break;case"ArrowUp":case"PageUp":case"Up":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()}}))},et.prototype.drawLeafs=function(){this.constMode1up==this.mode||(this.constModeThumb==this.mode?this.drawLeafsThumbnail():this.drawLeafsTwoPage())},et.prototype._createPageContainer=function(e){return new Ye._z(this._models.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},et.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))}))},et.prototype.drawLeafsThumbnail=Ne.prototype.drawLeafs,tt(Ne,"_modes.modeThumb","drawLeafs","drawLeafsThumbnail"),et.prototype.lazyLoadThumbnails=Ne.prototype.lazyLoadThumbnails,tt(Ne,"_modes.modeThumb","lazyLoadThumbnails","lazyLoadThumbnails"),et.prototype.lazyLoadImage=Ne.prototype.lazyLoadImage,tt(Ne,"_modes.modeThumb","lazyLoadImage","lazyLoadImage"),et.prototype.zoomThumb=Ne.prototype.zoom,tt(Ne,"_modes.modeThumb","zoom","zoomThumb"),et.prototype.getThumbnailWidth=Ne.prototype.getThumbnailWidth,tt(Ne,"_modes.modeThumb","getThumbnailWidth","getThumbnailWidth"),et.prototype.prepareThumbnailView=Ne.prototype.prepare,tt(Ne,"_modes.modeThumb","prepare","prepareThumbnailView"),et.prototype.drawLeafsThrottled=r.throttle(et.prototype.drawLeafs,250),et.prototype.zoom=function(e){var t;1==e?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},et.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()})},et.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)},et.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,r=Math.abs(e-n),i=1;i<t.length;i++){var o=Math.abs(e-t[i].reduce);o<r&&(r=o,n=t[i].reduce)}return n},et.prototype.nextReduce=function(e,t,n){if("in"===t){for(var r=0,i=1;i<n.length;i++)n[i].reduce<e&&(r=i);return n[r]}if("out"===t){for(var o=n.length-1,a=o,s=o;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 c=n.filter((function(e){var t=e.autofit;return"height"==t||"width"==t})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===t||"width"===t){var f=n.find((function(e){return e.autofit==t}));if(f)return f}return n[0]},et.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},et.prototype.jumpToPage=function(e){var t=this._models.book.parsePageString(e);return void 0!==t&&(this.jumpToIndex(t),!0)},et.prototype._isIndexDisplayed=function(e){return this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},et.prototype.jumpToIndex=function(e,t,n,r){var i=this._models.book.getPage(e);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,t,n,r)}this.trigger(et.eventNames.stop),this.constMode2up==this.mode?this._modes.mode2Up.jumpToIndex(e):this.constModeThumb==this.mode?this._modes.modeThumb.jumpToIndex(e):this._modes.mode1Up.jumpToIndex(e,t,n,r)},et.prototype.getPrevReadMode=function(e){return e===et.constMode1up||e===et.constMode2up?e:null===this.prevReadMode?et.constMode1up:void 0},et.prototype.switchMode=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.suppressFragmentChange,a=void 0!==o&&o,s=i.init,u=void 0!==s&&s,c=i.pageFound,l=void 0!==c&&c;if(this.init.initComplete){if(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(et.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=e&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?this.prepareOnePageView():this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this.prepareThumbnailView()):(!u&&l||this.setSpreadIndices(),this.twoPageCalculateReductionFactors(),this.prepareTwoPageView(),this.twoPageCenterView(.5,.5)),this.suppressFragmentChange||a||this.trigger(et.eventNames.fragmentChange);var h=e+"PageViewSelected";this.trigger(et.eventNames[h]),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},et.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"),Ge(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Ge(document.body).removeClass("BRfullscreenActive"))},et.prototype.isFullscreen=function(){return this.isFullscreenActive},et.prototype.toggleFullscreen=Je(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){e.next=6;break}return e.next=4,this.exitFullScreen();case 4:e.next=8;break;case 6:return e.next=8,this.enterFullscreen(t);case 8:case"end":return e.stop()}}),e,this)}))),et.prototype.enterFullscreen=Je(regeneratorRuntime.mark((function e(){var t,n,r,i=this,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!(o.length>0&&void 0!==o[0])||o[0],r=this.currentIndex(),this.refs.$brContainer.css("opacity",0),n&&(this._fullscreenCloseHandler=function(e){27===e.keyCode&&i.toggleFullscreen()},Ge(document).on("keyup",this._fullscreenCloseHandler)),Ge(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),this.animating=!0,e.next=11,new Promise((function(e){return i.refs.$brContainer.animate({opacity:1},"fast","linear",e)}));case 11:if(!(this.activeMode instanceof Te)){e.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this._models.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),e.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:this.jumpToIndex(r),this.animating=!1,null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(et.eventNames.fragmentChange),this.trigger(et.eventNames.fullscreenToggled),setTimeout((function(){i.resize()}),0);case 22:case"end":return e.stop()}}),e,this)}))),et.prototype.exitFullScreen=Je(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refs.$brContainer.css("opacity",0),Ge(document).off("keyup",this._fullscreenCloseHandler),n=Ge(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(et.eventNames.fullscreenToggled),this.updateBrClasses(),this.animating=!0,e.next=11,new Promise((function(e){return r.refs.$brContainer.animate({opacity:1},"fast","linear",e)}));case 11:if(this.resize(),!(this.activeMode instanceof Te)){e.next=17;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this._models.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),e.next=17,this.activeMode.mode1UpLit.updateComplete;case 17:this.animating=!1,null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(et.eventNames.fragmentChange);case 20:case"end":return e.stop()}}),e,this)}))),et.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return r.clamp(this.firstIndex,0,this._models.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},et.prototype.updateFirstIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==e&&(this.firstIndex=e,this.suppressFragmentChange||r||this.trigger(et.eventNames.fragmentChange),this.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger("pageChanged"),this.updateNavIndexThrottled(e))},et.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},et.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},et.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},et.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},et.prototype.next=function(){this.constMode2up==this.mode?(this.trigger(et.eventNames.stop),this.flipFwdToIndex(null)):this.firstIndex<this.lastDisplayableIndex()&&this.jumpToIndex(this.firstIndex+1)},et.prototype.prev=function(){this.firstIndex<1||(this.constMode2up==this.mode?(this.trigger(et.eventNames.stop),this.flipBackToIndex(null)):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},et.prototype.first=function(){this.jumpToIndex(this.firstDisplayableIndex())},et.prototype.last=function(){this.jumpToIndex(this.lastDisplayableIndex())},et.prototype.scrollDown=function(){return Ge.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.next():(this.refs.$brContainer.stop(!0).animate({scrollTop:"+="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},et.prototype.scrollUp=function(){return Ge.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.prev():(this.refs.$brContainer.stop(!0).animate({scrollTop:"-="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},et.prototype._scrollAmount=function(){return this.constMode1up==this.mode?parseInt(this.refs.$brContainer.prop("clientHeight")-this._models.book.getPageHeight(this.currentIndex())/this.reduce*.03):parseInt(.9*this.refs.$brContainer.prop("clientHeight"))},et.prototype.prefetchImg=function(){var e=Je(regeneratorRuntime.mark((function e(t){var n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.length>1&&void 0!==n[1]&&n[1],console.warn("Call to deprecated function: BookReader.prefetchImg. No-op.");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),et.prototype.pruneUnusedImgs=function(){console.warn("Call to deprecated function: BookReader.pruneUnused. No-op.")},et.prototype.prepareOnePageView=Te.prototype.prepare,tt(Te,"_modes.mode1Up","prepare","prepareOnePageView"),et.prototype.zoom1up=Te.prototype.zoom,tt(Te,"_modes.mode1Up","zoom","zoom1up"),et.prototype.resizePageView1up=Te.prototype.resizePageView,tt(Te,"_modes.mode1Up","resizePageView","resizePageView1up"),et.prototype.onePageCalculateViewDimensions=Te.prototype.calculateViewDimensions,tt(Te,"_modes.mode1Up","calculateViewDimensions","onePageCalculateViewDimensions"),et.prototype.zoom2up=Me.prototype.zoom,tt(Me,"_modes.mode2Up","zoom","zoom2up"),et.prototype.twoPageGetAutofitReduce=Me.prototype.getAutofitReduce,tt(Me,"_modes.mode2Up","getAutofitReduce","twoPageGetAutofitReduce"),et.prototype.flipBackToIndex=Me.prototype.flipBackToIndex,tt(Me,"_modes.mode2Up","flipBackToIndex","flipBackToIndex"),et.prototype.flipFwdToIndex=Me.prototype.flipFwdToIndex,tt(Me,"_modes.mode2Up","flipFwdToIndex","flipFwdToIndex"),et.prototype.setHilightCss2UP=Me.prototype.setHilightCss,tt(Me,"_modes.mode2Up","setHilightCss","setHilightCss2UP"),et.prototype.drawLeafsTwoPage=Me.prototype.drawLeafs,tt(Me,"_modes.mode2Up","drawLeafs","drawLeafsTwoPage"),et.prototype.prepareTwoPageView=Me.prototype.prepareTwoPageView,tt(Me,"_modes.mode2Up","prepareTwoPageView","prepareTwoPageView"),et.prototype.prepareTwoPagePopUp=Me.prototype.preparePopUp,tt(Me,"_modes.mode2Up","preparePopUp","prepareTwoPagePopUp"),et.prototype.calculateSpreadSize=Me.prototype.calculateSpreadSize,tt(Me,"_modes.mode2Up","calculateSpreadSize","calculateSpreadSize"),et.prototype.getIdealSpreadSize=Me.prototype.getIdealSpreadSize,tt(Me,"_modes.mode2Up","getIdealSpreadSize","getIdealSpreadSize"),et.prototype.getSpreadSizeFromReduce=Me.prototype.getSpreadSizeFromReduce,tt(Me,"_modes.mode2Up","getSpreadSizeFromReduce","getSpreadSizeFromReduce"),et.prototype.twoPageIsZoomedIn=Me.prototype.isZoomedIn,tt(Me,"_modes.mode2Up","isZoomedIn","twoPageIsZoomedIn"),et.prototype.twoPageCalculateReductionFactors=Me.prototype.calculateReductionFactors,tt(Me,"_modes.mode2Up","calculateReductionFactors","twoPageCalculateReductionFactors"),et.prototype.twoPageSetCursor=Me.prototype.setCursor,tt(Me,"_modes.mode2Up","setCursor","twoPageSetCursor"),et.prototype.flipLeftToRight=Me.prototype.flipLeftToRight,tt(Me,"_modes.mode2Up","flipLeftToRight","flipLeftToRight"),et.prototype.flipRightToLeft=Me.prototype.flipRightToLeft,tt(Me,"_modes.mode2Up","flipRightToLeft","flipRightToLeft"),et.prototype.prepareFlipLeftToRight=Me.prototype.prepareFlipLeftToRight,tt(Me,"_modes.mode2Up","prepareFlipLeftToRight","prepareFlipLeftToRight"),et.prototype.prepareFlipRightToLeft=Me.prototype.prepareFlipRightToLeft,tt(Me,"_modes.mode2Up","prepareFlipRightToLeft","prepareFlipRightToLeft"),et.prototype.getPageWidth2UP=Me.prototype.getPageWidth,tt(Me,"_modes.mode2Up","getPageWidth","getPageWidth2UP"),et.prototype.twoPageGutter=Me.prototype.gutter,tt(Me,"_modes.mode2Up","gutter","twoPageGutter"),et.prototype.twoPageTop=Me.prototype.top,tt(Me,"_modes.mode2Up","top","twoPageTop"),et.prototype.twoPageCoverWidth=Me.prototype.coverWidth,tt(Me,"_modes.mode2Up","coverWidth","twoPageCoverWidth"),et.prototype.twoPageGetViewCenter=Me.prototype.getViewCenter,tt(Me,"_modes.mode2Up","getViewCenter","twoPageGetViewCenter"),et.prototype.twoPageCenterView=Me.prototype.centerView,tt(Me,"_modes.mode2Up","centerView","twoPageCenterView"),et.prototype.twoPageFlipAreaHeight=Me.prototype.flipAreaHeight,tt(Me,"_modes.mode2Up","flipAreaHeight","twoPageFlipAreaHeight"),et.prototype.twoPageFlipAreaWidth=Me.prototype.flipAreaWidth,tt(Me,"_modes.mode2Up","flipAreaWidth","twoPageFlipAreaWidth"),et.prototype.twoPageFlipAreaTop=Me.prototype.flipAreaTop,tt(Me,"_modes.mode2Up","flipAreaTop","twoPageFlipAreaTop"),et.prototype.twoPageLeftFlipAreaLeft=Me.prototype.leftFlipAreaLeft,tt(Me,"_modes.mode2Up","leftFlipAreaLeft","twoPageLeftFlipAreaLeft"),et.prototype.twoPageRightFlipAreaLeft=Me.prototype.rightFlipAreaLeft,tt(Me,"_modes.mode2Up","rightFlipAreaLeft","twoPageRightFlipAreaLeft"),et.prototype.gutterOffsetForIndex=Me.prototype.gutterOffsetForIndex,tt(Me,"_modes.mode2Up","gutterOffsetForIndex","gutterOffsetForIndex"),et.prototype.leafEdgeWidth=Me.prototype.leafEdgeWidth,tt(Me,"_modes.mode2Up","leafEdgeWidth","leafEdgeWidth"),et.prototype.jumpIndexForLeftEdgePageX=Me.prototype.jumpIndexForLeftEdgePageX,tt(Me,"_modes.mode2Up","jumpIndexForLeftEdgePageX","jumpIndexForLeftEdgePageX"),et.prototype.jumpIndexForRightEdgePageX=Me.prototype.jumpIndexForRightEdgePageX,tt(Me,"_modes.mode2Up","jumpIndexForRightEdgePageX","jumpIndexForRightEdgePageX"),et.prototype.prefetch=Me.prototype.prefetch,tt(Me,"_modes.mode2Up","prefetch","prefetch"),et.prototype.setSpreadIndices=Me.prototype.setSpreadIndices,tt(Me,"_modes.mode2Up","setSpreadIndices","setSpreadIndices"),et.prototype.stopFlipAnimations=function(){this.trigger(et.eventNames.stop),this.leafEdgeTmp&&Ge(this.leafEdgeTmp).stop(!1,!0),Ze.each(this._modes.mode2Up.pageContainers,(function(){Ge(this.$container).stop(!1,!0)})),this.leafEdgeTmp&&Ge(this.leafEdgeTmp).stop(!1,!0),Ze.each(this._modes.mode2Up.pageContainers,(function(){Ge(this.$container).stop(!1,!0)}))},et.prototype.initNavbar=u.prototype.init,tt(u,"_components.navbar","init","initNavbar"),et.prototype.switchNavbarControls=u.prototype.switchNavbarControls,tt(u,"_components.navbar","switchNavbarControls"),et.prototype.updateViewModeButton=u.prototype.updateViewModeButton,tt(u,"_components.navbar","updateViewModeButton"),et.prototype.getNavPageNumString=u.prototype.getNavPageNumString,tt(u,"_components.navbar","getNavPageNumString"),et.prototype.getNavPageNumHtml=c,et.prototype.updateNavPageNum=u.prototype.updateNavPageNum,tt(u,"_components.navbar","updateNavPageNum"),et.prototype.updateNavIndex=u.prototype.updateNavIndex,tt(u,"_components.navbar","updateNavIndex"),et.prototype.updateNavIndexThrottled=r.throttle(et.prototype.updateNavIndex,250,!1),et.prototype.updateNavIndexDebounced=r.debounce(et.prototype.updateNavIndex,500,!1),et.prototype.buildToolbarElement=g.prototype.buildToolbarElement,tt(g,"_components.toolbar","buildToolbarElement"),et.prototype.initToolbar=g.prototype.initToolbar,tt(g,"_components.toolbar","initToolbar"),et.prototype.buildShareDiv=g.prototype.buildShareDiv,tt(g,"_components.toolbar","buildShareDiv"),et.prototype.buildInfoDiv=g.prototype.buildInfoDiv,tt(g,"_components.toolbar","buildInfoDiv"),et.prototype.getToolBarHeight=g.prototype.getToolBarHeight,tt(g,"_components.toolbar","getToolBarHeight"),et.prototype.updateToolbarZoom=g.prototype.updateToolbarZoom,tt(g,"_components.toolbar","updateToolbarZoom"),et.prototype.blankInfoDiv=v,et.prototype.blankShareDiv=m,et.prototype.createPopup=b,et.prototype.bindNavigationHandlers=function(){var e=this,t=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){e.trigger(et.eventNames.stop),e.left()},book_right:function(){e.trigger(et.eventNames.stop),e.right()},book_up:function(){Ge.inArray(e.mode,[e.constMode1up,e.constModeThumb])>=0?e.scrollUp():e.prev()},book_down:function(){Ge.inArray(e.mode,[e.constMode1up,e.constModeThumb])>=0?e.scrollDown():e.next()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){e.switchMode(t.constMode1up)},thumb:function(){e.switchMode(t.constModeThumb)},twopg:function(){e.switchMode(t.constMode2up)},zoom_in:function(){e.trigger(et.eventNames.stop),e.zoom(1),e.trigger(et.eventNames.zoomIn)},zoom_out:function(){e.trigger(et.eventNames.stop),e.zoom(-1),e.trigger(et.eventNames.zoomOut)},full:function(){if("embed"==e.ui){var t=e.$(".BRembedreturn a").attr("href");window.open(t)}else e.toggleFullscreen()}};n.filter(".fit").bind("fit",(function(){}));var i=function(e){n.filter(".".concat(e)).on("click.bindNavigationHandlers",(function(){return r[e](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var e=[];a.hasClass("BRdn")?(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:-1*t.getToolBarHeight()}).promise()),e.push(t.$(".BRfooter").animate({bottom:-1*t.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),t.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:0}).promise()),e.push(t.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),t.$(".BRvavCntl").animate({opacity:1})),Ge.when.apply(Ge,e).done((function(){t.mode==t.constMode2up&&null!=t.twoPage.autofit&&"none"!=t.twoPage.autofit||t.mode==t.constMode1up&&null!=t.onePage.autofit&&"none"!=t.onePage.autofit?t.resize():t.resizeBRcontainer()}))})),a.on("mouseover",(function(){Ge(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ge(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){Ge(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ge(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),Ge(document).off("mousemove.navigation",this.el),Ge(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),Ge(document).off("mousedown.swipe",".BRpageimage"),Ge(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers()},et.prototype.unbindNavigationHandlers=function(){Ge(document).off("mousemove.navigation",this.el)},et.prototype.navigationMousemoveHandler=function(e){if(e.data.br.uiAutoHide){var t=Ge(document).height()-75;e.pageY<76||e.pageY>t?e.data.br.hideNavigation():e.data.br.showNavigation()}},et.prototype.initSwipeData=function(e,t){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:e,startY:t,lastX:e,lastY:t,deltaX:0,deltaY:0,deltaT:0}},et.prototype.swipeMousedownHandler=function(e){var t=e.data.br;return 3==e.which?!t.protected:(Ge(e.target).on("mouseout.swipe",{br:t},t.swipeMouseupHandler).on("mouseup.swipe",{br:t},t.swipeMouseupHandler).on("mousemove.swipe",{br:t},t.swipeMousemoveHandler),t.initSwipeData(e.clientX,e.clientY),t._swipe.mightBeSwiping=!0,t._swipe.mightBeDragging=!0,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},et.prototype.swipeMousemoveHandler=function(e){var t=e.data.br,n=t._swipe;if(n.mightBeSwiping){n.deltaX=e.clientX-n.startX,n.deltaY=e.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var r=Math.abs(n.deltaX),i=Math.abs(n.deltaY),o=Math.min(t.refs.$br.width()/5,80);return r>i&&r>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,t.mode==t.constMode2up&&(n.deltaX<0?t.right():t.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,t.refs.$brContainer.scrollTop(t.refs.$brContainer.scrollTop()-e.clientY+n.lastY).scrollLeft(t.refs.$brContainer.scrollLeft()-e.clientX+n.lastX)),n.lastX=e.clientX,n.lastY=e.clientY,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}},et.prototype.swipeMouseupHandler=function(e){var t=e.data.br._swipe;return t.mightBeSwiping=!1,t.mightBeDragging=!1,Ge(e.target).off("mouseout.swipe").off("mouseup.swipe").off("mousemove.swipe"),!t.didSwipe&&!t.didDrag||(e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},et.prototype.bindMozTouchHandlers=function(){var e=this;this.refs.$br.on("MozTouchDown",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchMove",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchUp",(function(t){this.mode==e.constMode2up&&t.preventDefault()}))},et.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},et.prototype.setNavigationView=function(e){var t=this.constNavAnimationDuration,n="linear",r=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(et.eventNames.navToggled)}.bind(this),i=0,o=0;e?(i=-1*this.getToolBarHeight(),o=-1*this.getFooterHeight(),this.refs.$BRtoolbar.addClass("js-menu-hide"),this.refs.$BRfooter.addClass("js-menu-hide")):(this.refs.$BRtoolbar.removeClass("js-menu-hide"),this.refs.$BRfooter.removeClass("js-menu-hide")),this.refs.$BRtoolbar.animate({top:i},t,n,r),this.refs.$BRfooter.animate({bottom:o},t,n,r)},et.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},et.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},et.prototype.firstDisplayableIndex=function(){return this.mode!=this.constMode2up?0:"rl"!=this.pageProgression?"L"==this._models.book.getPageSide(0)?0:-1:"R"==this._models.book.getPageSide(0)?0:-1},et.prototype.lastDisplayableIndex=function(){var e=this._models.book.getNumLeafs()-1;return this.mode!=this.constMode2up?e:"rl"!=this.pageProgression?"R"==this._models.book.getPageSide(e)?e:e+1:"L"==this._models.book.getPageSide(e)?e:e+1},et.prototype.getMedianPageSize=k.prototype.getMedianPageSize,tt(k,"_models.book","getMedianPageSize"),et.prototype._getPageWidth=k.prototype._getPageWidth,tt(k,"_models.book","_getPageWidth"),et.prototype._getPageHeight=k.prototype._getPageHeight,tt(k,"_models.book","_getPageHeight"),et.prototype.getPageIndex=k.prototype.getPageIndex,tt(k,"_models.book","getPageIndex"),et.prototype.getPageIndices=k.prototype.getPageIndices,tt(k,"_models.book","getPageIndices"),et.prototype.getPageName=k.prototype.getPageName,tt(k,"_models.book","getPageName"),et.prototype.getNumLeafs=k.prototype.getNumLeafs,tt(k,"_models.book","getNumLeafs"),et.prototype.getPageWidth=k.prototype.getPageWidth,tt(k,"_models.book","getPageWidth"),et.prototype.getPageHeight=k.prototype.getPageHeight,tt(k,"_models.book","getPageHeight"),et.prototype.getPageURI=k.prototype.getPageURI,tt(k,"_models.book","getPageURI"),et.prototype.getPageSide=k.prototype.getPageSide,tt(k,"_models.book","getPageSide"),et.prototype.getPageNum=k.prototype.getPageNum,tt(k,"_models.book","getPageNum"),et.prototype.getPageProp=k.prototype.getPageProp,tt(k,"_models.book","getPageProp"),et.prototype.getSpreadIndices=k.prototype.getSpreadIndices,tt(k,"_models.book","getSpreadIndices"),et.prototype.leafNumToIndex=k.prototype.leafNumToIndex,tt(k,"_models.book","leafNumToIndex"),et.prototype.parsePageString=k.prototype.parsePageString,tt(k,"_models.book","parsePageString"),et.prototype._getDataFlattened=k.prototype._getDataFlattened,tt(k,"_models.book","_getDataFlattened"),et.prototype._getDataProp=k.prototype._getDataProp,tt(k,"_models.book","_getDataProp"),et.prototype.updateFromParams=function(e){var t=e.mode,n=void 0===t?0:t,r=e.init,i=void 0!==r&&r,o=e.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this._models.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),this.enableSearch&&void 0!==e.search&&this.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},et.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this._models.book.getNumLeafs()<2)},et.prototype._getPageURISrcset=function(e,t,n){var r=this._models.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURISrcSet(t,n)):""},et.prototype._getPageURI=function(e,t,n){var r=this._models.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURI(t,n)):this.imagesBaseURL+"transparent.png"},et.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Ge(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),Ge(r).append(i),r.addEventListener("click",(function(){t(),n.removeProgressPopup()})),Ge(this.popup).append(r)}var o=document.createElement("div");if(Ge(o).css({height:"20px"}).prop("className","BRprogressbar"),Ge(this.popup).append(o),e){var a=document.createElement("div");a.innerHTML=e,Ge(this.popup).append(a)}Ge(this.popup).appendTo(this.refs.$br)}},et.prototype.removeProgressPopup=function(){Ge(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},et.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":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".book_up":"Page up",".book_down":"Page down",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".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])},et.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)}}))},et.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},et.prototype.paramsFromCurrent=function(){var e={},t=this.currentIndex(),n=this._models.book.getPageNum(t);return(0===n||n)&&(e.page=n),e.index=t,e.mode=this.mode,this.isFullscreenActive&&(e.view="theater"),this.enableSearch&&(e.search=this.searchTerm),e},et.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 i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+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=o.page),null!=o.search&&(t.search=r.decodeURIComponentPlus(o.search)),null!=o.theme&&(t.theme=o.theme),t},et.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",i=[];if(void 0!==e.page?i.push("page",e.page):void 0!==e.index&&i.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)i.push("mode","1up");else if(e.mode==this.constMode2up)i.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;i.push("mode","thumb")}return e.search&&"hash"===t&&i.push("search",e.search),r.encodeURIComponentPlus(i.join(n)).replace(/%2F/g,"/")},et.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(t);e.view?r.set("view",e.view):r.delete("view"),e.search&&"history"===n&&r.set("q",e.search);var i=r.toString();return i?"?"+i:""},et.prototype.$=function(e){return this.refs.$br.find(e)},Ze.curCSS=function(e,t,n){return Ze(e).css(t,n)},window.BookReader=et},105:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return DebugConsole}});var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9826),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1539),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9600),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1249),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__),$=__webpack_require__(3609);function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var DebugConsole=function(){function DebugConsole(){_classCallCheck(this,DebugConsole),this.currentRun=0}return _createClass(DebugConsole,[{key:"init",value:function init(){var _this=this;this.$log=$('<div id="_debugLog" style="width: 100%; height: 300px; overflow: auto" />'),$(document.body).prepend(this.$log),this.$form=$('\n <form>\n <input style="width:100%; font-family: monospace;" id="_debugLogInput">\n </form>'),this.$log.append(this.$form),this.$form.on("submit",(function(ev){ev.preventDefault();var result=eval(_this.$form.find("input").val());_this.logToScreen([result])}));var _realLog=console.log.bind(console);console.log=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_realLog.apply(void 0,t),_this.logToScreen(t)},window.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _this.logToScreen(t)}}},{key:"logToScreen",value:function(e){var t=e.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==t?n.find(".count").text("(".concat(++this.currentRun,")")):(this.currentRun=1,this.$log.append($('\n <div class="log-entry">\n <code class="count"></code> <code class="entry-code">'.concat(t,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(e,t,n){"use strict";n.d(t,{_z:function(){return l},hy:function(){return h},Tm:function(){return d}}),n(5666),n(5827),n(1539),n(9600),n(2222),n(9714),n(6992),n(3948),n(8674),n(7042),n(8309),n(1038),n(8783),n(4916),n(2526),n(1817),n(2165);var r=n(3609);function i(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var t,n;return t=e,(n=[{key:"update",value:function(e){var t,n,i=e.dimensions,o=void 0===i?null:i,a=e.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var c=this.imageCache.imageLoaded(this.page.index,s),l=!c&&this.imageCache.getBestLoadedReduce(this.page.index,s),h=this.imageCache.image(this.page.index,s);if((null===(t=this.$img)||void 0===t?void 0:t[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var f=[];return c||(this.$container.addClass("BRpageloading"),f.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),l&&f.push('url("'.concat(this.page.getURI(l,0),'") center/100% 100% no-repeat')),c||this.$img.css("background",f.join(",")).one("loadend",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(t.target).css({background:""}),r(t.target).parent().removeClass("BRpageloading");case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),this}}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(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}function f(e){var t=e.l,n=e.r,r=e.b,i=e.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",t.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-t).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function d(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=a.querySelector(".".concat(e)),c=u||h(n,e);if(!u){var l=a.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(a)}var d,p=o(t.entries());try{for(p.s();!(d=p.n()).done;){var g=i(d.value,2),v=g[0],m=g[1],b=f(m);s&&b.setAttribute("class",s[v]),c.appendChild(b)}}catch(e){p.e(e)}finally{p.f()}}},5685:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){e.bind("mousedown",(function(){return!1})),e[0].onselectstart=function(){return!1}}function s(e,t,n){return Math.min(Math.max(e,t),n)}function u(e,t){return e/t*100+"%"}function c(e,t){return!t.includes(e)}function l(){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?l(n.shadowRoot,!0):n}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=l(e);return"INPUT"==(null==t?void 0:t.tagName)||"TEXTAREA"==(null==t?void 0:t.tagName)}function f(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function d(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(e){return decodeURIComponent(e).replace(/\+/g," ")}function g(e){return encodeURIComponent(e).replace(/%20/g,"+")}function v(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}function m(e,t,n){var r,i;return t||(t=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+t?(clearTimeout(i),i=setTimeout((function(){r=o,e.apply(n,a)}),t)):(r=o,e.apply(n,a))}}function b(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=y}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0!==n&&n,i=t.cancelable,o=void 0!==i&&i,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,r,o,s),u}function w(){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 _(e){return e.reduce((function(e,t){return e+t}),0)}function x(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 o(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)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function P(e,t){return e.length==t.length&&e.every((function(e,n){return e==t[n]}))}function k(e,t){return e&&t&&!P(e,t)}function C(e){return S.apply(this,arguments)}function S(){return(S=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return E.apply(this,arguments)}function E(){return(E=i(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,u,c,l,h,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.step,i=void 0===r?50:r,o=n.timeout,a=void 0===o?500:o,s=n.until,u=void 0===s?function(e){return Boolean(e)}:s,c=n._sleep,l=void 0===c?C:c,h=Date.now();case 2:if(!(Date.now()-h<a)){e.next=10;break}if(f=t(),!u(f)){e.next=6;break}return e.abrupt("return",f);case 6:return e.next=8,l(i);case 8:e.next=2;break;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n.r(t),n.d(t,{disableSelect:function(){return a},clamp:function(){return s},cssPercentage:function(){return u},notInArray:function(){return c},getActiveElement:function(){return l},isInputActive:function(){return h},getIFrameDocument:function(){return f},escapeHTML:function(){return d},decodeURIComponentPlus:function(){return p},encodeURIComponentPlus:function(){return g},debounce:function(){return v},throttle:function(){return m},polyfillCustomEvent:function(){return b},PolyfilledCustomEvent:function(){return y},calcScreenDPI:function(){return w},sum:function(){return _},genToArray:function(){return x},arrEquals:function(){return P},arrChanged:function(){return k},sleep:function(){return C},poll:function(){return T}}),n(5666),n(6699),n(2023),n(4916),n(5306),n(5827),n(1539),n(8674),n(7042),n(8309),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948)},3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,n){var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1530:function(e,t,n){"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},1285:function(e,t,n){"use strict";var r=n(7908),i=n(1400),o=n(7466);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},8533:function(e,t,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),s=n(7466),u=n(6135),c=n(1246);e.exports=function(e){var t,n,l,h,f,d,p=i(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(p),w=0;if(b&&(m=r(m,v>2?arguments[2]:void 0,2)),null==y||g==Array&&a(y))for(n=new g(t=s(p.length));t>w;w++)d=b?m(p[w],w):p[w],u(n,w,d);else for(f=(h=y.call(p)).next,n=new g;!(l=f.call(h)).done;w++)d=b?o(h,m,[l.value,w],!0):l.value,u(n,w,d);return n.length=w,n}},1318:function(e,t,n){var r=n(5656),i=n(7466),o=n(1400),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,n){var r=n(9974),i=n(8361),o=n(7908),a=n(7466),s=n(5417),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,h=6==e,f=7==e,d=5==e||h;return function(p,g,v,m){for(var b,y,w=o(p),_=i(w),x=r(g,v,3),P=a(_.length),k=0,C=m||s,S=t?C(p,P):n||f?C(p,0):void 0;P>k;k++)if((d||k in _)&&(y=x(b=_[k],k,w),e))if(t)S[k]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:u.call(S,b)}else switch(e){case 4:return!1;case 7:u.call(S,b)}return h?-1:c||l?l:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},1194:function(e,t,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},3671:function(e,t,n){var r=n(3099),i=n(7908),o=n(8361),a=n(7466),s=function(e){return function(t,n,s,u){r(n);var c=i(t),l=o(c),h=a(c.length),f=e?h-1:0,d=e?-1:1;if(s<2)for(;;){if(f in l){u=l[f],f+=d;break}if(f+=d,e?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=d)f in l&&(u=n(u,l[f],f,c));return u}};e.exports={left:s(!1),right:s(!0)}},4362:function(e){var t=Math.floor,n=function(e,o){var a=e.length,s=t(a/2);return a<8?r(e,o):i(n(e.slice(0,s),o),n(e.slice(s),o),o)},r=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},i=function(e,t,n){for(var r=e.length,i=t.length,o=0,a=0,s=[];o<r||a<i;)o<r&&a<i?s.push(n(e[o],t[a])<=0?e[o++]:t[a++]):s.push(o<r?e[o++]:t[a++]);return s};e.exports=n},7475:function(e,t,n){var r=n(111),i=n(3157),o=n(5112)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)?r(t)&&null===(t=t[o])&&(t=void 0):t=void 0),void 0===t?Array:t}},5417:function(e,t,n){var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},3411:function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},7072:function(e,t,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,n){var r=n(1694),i=n(4326),o=n(5112)("toStringTag"),a="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=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),u=n(408),c=n(654),l=n(6340),h=n(9781),f=n(2423).fastKey,d=n(9909),p=d.set,g=d.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})})),d=g(t),v=function(e,t,n){var r,i,o=d(e),a=m(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},m=function(e,t){var n,r=d(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=this,n=d(t),r=m(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=d(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),o(l.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),h&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},9320:function(e,t,n){"use strict";var r=n(2248),i=n(2423).getWeakData,o=n(9670),a=n(111),s=n(5787),u=n(408),c=n(2092),l=n(6656),h=n(9909),f=h.set,d=h.getterFor,p=c.find,g=c.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var h=e((function(e,r){s(e,h,t),f(e,{type:t,id:v++,frozen:void 0}),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})})),p=d(t),g=function(e,t,n){var r=p(e),a=i(o(t),!0);return!0===a?m(r).set(t,n):a[r.id]=n,e};return r(h.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?m(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?m(t).has(e):n&&l(n,t.id)}}),r(h.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=i(e);return!0===n?m(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),h}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),s=n(2423),u=n(408),c=n(5787),l=n(111),h=n(7293),f=n(7072),d=n(8003),p=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",b=i[e],y=b&&b.prototype,w=b,_={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof b||!(v||y.forEach&&!h((function(){(new b).entries().next()})))))w=n.getConstructor(t,e,g,m),s.enable();else if(o(e,!0)){var P=new w,k=P[m](v?{}:-0,1)!=P,C=h((function(){P.has(1)})),S=f((function(e){new b(e)})),T=!v&&h((function(){for(var e=new b,t=5;t--;)e[m](t,t);return!e.has(-0)}));S||((w=t((function(t,n){c(t,w,e);var r=p(new b,t,w);return null!=n&&u(n,r[m],{that:r,AS_ENTRIES:g}),r}))).prototype=y,y.constructor=w),(C||T)&&(x("delete"),x("has"),g&&x("get")),(T||k)&&x(m),v&&y.clear&&delete y.clear}return _[e]=w,r({global:!0,forced:w!=b},_),d(w,e),v||n.setStrong(w,e,g),w}},9920:function(e,t,n){var r=n(6656),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},4964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=u,e}},8880:function(e,t,n){var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},8709:function(e,t,n){"use strict";var r=n(9670),i=n(2140);e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return i(this,e)}},654:function(e,t,n){"use strict";var r=n(2109),i=n(4994),o=n(9518),a=n(7674),s=n(8003),u=n(8880),c=n(1320),l=n(5112),h=n(1913),f=n(7497),d=n(3383),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,l,d,_,x){i(n,t,l);var P,k,C,S=function(e){if(e===d&&O)return O;if(!g&&e in I)return I[e];switch(e){case m:case b:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",E=!1,I=e.prototype,R=I[v]||I["@@iterator"]||d&&I[d],O=!g&&R||S(d),A="Array"==t&&I.entries||R;if(A&&(P=o(A.call(new e)),p!==Object.prototype&&P.next&&(h||o(P)===p||(a?a(P,p):"function"!=typeof P[v]&&u(P,v,w)),s(P,T,!0,!0),h&&(f[T]=w))),d==b&&R&&R.name!==b&&(E=!0,O=function(){return R.call(this)}),h&&!x||I[v]===O||u(I,v,O),f[t]=O,d)if(k={values:S(b),keys:_?O:S(m),entries:S(y)},x)for(C in k)(g||E||!(C in I))&&c(I,C,k[C]);else r({target:t,proto:!0,forced:g||E},k);return k}},7235:function(e,t,n){var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8324:function(e){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}},8886:function(e,t,n){var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e){e.exports="object"==typeof window},256:function(e,t,n){var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:function(e,t,n){var r=n(8113),i=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},8334:function(e,t,n){var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(e,t,n){var r=n(4326),i=n(7854);e.exports="process"==r(i.process)},1036:function(e,t,n){var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l?i=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},8008:function(e,t,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,h,f,d,p=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],h=e.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(g?l:p+(v?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(n,l,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var r=n(1320),i=n(2261),o=n(7293),a=n(5112),s=n(8880),u=a("species"),c=RegExp.prototype;e.exports=function(e,t,n,l){var h=a(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),d=f&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!d||n){var p=/./[h],g=t(h,""[e],(function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?f&&!o?{done:!0,value:p.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(c,h,g[1])}l&&s(c[h],"sham",!0)}},6790:function(e,t,n){"use strict";var r=n(3157),i=n(7466),o=n(9974),a=function(e,t,n,s,u,c,l,h){for(var f,d=u,p=0,g=!!l&&o(l,h,3);p<s;){if(p in n){if(f=g?g(n[p],p,t):n[p],c>0&&r(f))d=a(e,t,f,i(f.length),d,c-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=f}d++}p++}return d};e.exports=a},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},7065:function(e,t,n){"use strict";var r=n(3099),i=n(111),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(a.prototype=t.prototype),a}},5005:function(e,t,n){var r=n(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:function(e,t,n){var r=n(648),i=n(7497),o=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},8554:function(e,t,n){var r=n(9670),i=n(1246);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},647:function(e,t,n){var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,c,l){var h=n+e.length,f=u.length,d=s;return void 0!==c&&(c=r(c),d=a),o.call(l,d,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(h);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var l=i(s/10);return 0===l?r:l<=f?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):r}a=u[s-1]}return void 0===a?"":a}))}},7854:function(e,t,n){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)||function(){return this}()||Function("return this")()},6656:function(e,t,n){var r=n(7908),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7293),i=n(4326),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},9587:function(e,t,n){var r=n(111),i=n(7674);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},2788:function(e,t,n){var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},2423:function(e,t,n){var r=n(2109),i=n(3501),o=n(111),a=n(6656),s=n(3070).f,u=n(8006),c=n(1156),l=n(9711),h=n(6677),f=!1,d=l("meta"),p=0,g=Object.isExtensible||function(){return!0},v=function(e){s(e,d,{value:{objectID:"O"+p++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},f=!0;var e=u.f,t=[].splice,n={};n[d]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===d){t.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,d)){if(!g(e))return"F";if(!t)return"E";v(e)}return e[d].objectID},getWeakData:function(e,t){if(!a(e,d)){if(!g(e))return!0;if(!t)return!1;v(e)}return e[d].weakData},onFreeze:function(e){return h&&f&&g(e)&&!a(e,d)&&v(e),e}};i[d]=!0},9909:function(e,t,n){var r,i,o,a=n(8536),s=n(7854),u=n(111),c=n(8880),l=n(6656),h=n(5465),f=n(6200),d=n(3501),p="Object already initialized",g=s.WeakMap;if(a||h.state){var v=h.state||(h.state=new g),m=v.get,b=v.has,y=v.set;r=function(e,t){if(b.call(v,e))throw new TypeError(p);return t.facade=e,y.call(v,e,t),t},i=function(e){return m.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var w=f("state");d[w]=!0,r=function(e,t){if(l(e,w))throw new TypeError(p);return t.facade=e,c(e,w,t),t},i=function(e){return l(e,w)?e[w]:{}},o=function(e){return l(e,w)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4705:function(e,t,n){var r=n(7293),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},7850:function(e,t,n){var r=n(111),i=n(4326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},2190:function(e,t,n){var r=n(5005),i=n(3307);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},408:function(e,t,n){var r=n(9670),i=n(7659),o=n(7466),a=n(9974),s=n(1246),u=n(9212),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,h,f,d,p,g,v,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(t,m,1+b+w),x=function(e){return l&&u(l),new c(!0,e)},P=function(e){return b?(r(e),w?_(e[0],e[1],x):_(e[0],e[1])):w?_(e,x):_(e)};if(y)l=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(i(h)){for(f=0,d=o(e.length);d>f;f++)if((p=P(e[f]))&&p instanceof c)return p;return new c(!1)}l=h.call(e)}for(g=l.next;!(v=g.call(l)).done;){try{p=P(v.value)}catch(e){throw u(l),e}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},9212:function(e,t,n){var r=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},3383:function(e,t,n){"use strict";var r,i,o,a=n(7293),s=n(9518),u=n(8880),c=n(6656),l=n(5112),h=n(1913),f=l("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var p=null==r||a((function(){var e={};return r[f].call(e)!==e}));p&&(r={}),h&&!p||c(r,f)||u(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7497:function(e){e.exports={}},4310:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},5948:function(e,t,n){var r,i,o,a,s,u,c,l,h=n(7854),f=n(1236).f,d=n(261).set,p=n(8334),g=n(1528),v=n(1036),m=n(5268),b=h.MutationObserver||h.WebKitMutationObserver,y=h.document,w=h.process,_=h.Promise,x=f(h,"queueMicrotask"),P=x&&x.value;P||(r=function(){var e,t;for(m&&(e=w.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},p||m||v||!b||!y?!g&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=c.then,a=function(){l.call(c,r)}):a=m?function(){w.nextTick(r)}:function(){d.call(h,r)}:(s=!0,u=y.createTextNode(""),new b(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=P||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3366:function(e,t,n){var r=n(7854);e.exports=r.Promise},133:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(e,t,n){var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(e,t,n){var r=n(7854),i=n(2788),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},8523:function(e,t,n){"use strict";var r=n(3099),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},3929:function(e,t,n){var r=n(7850);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},3009:function(e,t,n){var r=n(7854),i=n(1340),o=n(3111).trim,a=n(1361),s=r.parseInt,u=/^[+-]?0[Xx]/,c=8!==s(a+"08")||22!==s(a+"0x16");e.exports=c?function(e,t){var n=o(i(e));return s(n,t>>>0||(u.test(n)?16:10))}:s},1574:function(e,t,n){"use strict";var r=n(9781),i=n(7293),o=n(1956),a=n(5181),s=n(5296),u=n(7908),c=n(8361),l=Object.assign,h=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||o(l({},t)).join("")!=i}))?function(e,t){for(var n=u(e),i=arguments.length,l=1,h=a.f,f=s.f;i>l;)for(var d,p=c(arguments[l++]),g=h?o(p).concat(h(p)):o(p),v=g.length,m=0;v>m;)d=g[m++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:l},30:function(e,t,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?d(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[l]=e):n=p(),void 0===t?n:o(n,t)}},6048:function(e,t,n){var r=n(9781),i=n(3070),o=n(9670),a=n(1956);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},3070:function(e,t,n){var r=n(9781),i=n(4664),o=n(9670),a=n(4948),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(5296),o=n(9114),a=n(5656),s=n(4948),u=n(6656),c=n(4664),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},1156:function(e,t,n){var r=n(5656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},8006:function(e,t,n){var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(6656),i=n(7908),o=n(6200),a=n(8544),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},6324:function(e,t,n){var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},1956:function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},4699:function(e,t,n){var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,s=function(e){return function(t){for(var n,s=o(t),u=i(s),c=u.length,l=0,h=[];c>l;)n=u[l++],r&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},288:function(e,t,n){"use strict";var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(e,t,n){var r=n(111);e.exports=function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(8006),o=n(5181),a=n(9670);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},857:function(e,t,n){var r=n(7854);e.exports=r},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:function(e,t,n){var r=n(9670),i=n(111),o=n(8523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},2248:function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},1320:function(e,t,n){var r=n(7854),i=n(8880),o=n(6656),a=n(3505),s=n(2788),u=n(9909),c=u.get,l=u.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var u,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(u=l(n)).source||(u.source=h.join("string"==typeof t?t:""))),e!==r?(c?!d&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7651:function(e,t,n){var r=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},2261:function(e,t,n){"use strict";var r,i,o=n(1340),a=n(7066),s=n(2999),u=n(2309),c=n(30),l=n(9909).get,h=n(9441),f=n(8173),d=RegExp.prototype.exec,p=u("native-string-replace",String.prototype.replace),g=d,v=(r=/a/,i=/b*/g,d.call(r,"a"),d.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),m=s.UNSUPPORTED_Y||s.BROKEN_CARET,b=void 0!==/()??/.exec("")[1];(v||b||m||h||f)&&(g=function(e){var t,n,r,i,s,u,h,f=this,y=l(f),w=o(e),_=y.raw;if(_)return _.lastIndex=f.lastIndex,t=g.call(_,w),f.lastIndex=_.lastIndex,t;var x=y.groups,P=m&&f.sticky,k=a.call(f),C=f.source,S=0,T=w;if(P&&(-1===(k=k.replace("y","")).indexOf("g")&&(k+="g"),T=w.slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==w.charAt(f.lastIndex-1))&&(C="(?: "+C+")",T=" "+T,S++),n=new RegExp("^(?:"+C+")",k)),b&&(n=new RegExp("^"+C+"$(?!\\s)",k)),v&&(r=f.lastIndex),i=d.call(P?n:f,T),P?i?(i.input=i.input.slice(S),i[0]=i[0].slice(S),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:v&&i&&(f.lastIndex=f.global?i.index+i[0].length:r),b&&i&&i.length>1&&p.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&x)for(i.groups=u=c(null),s=0;s<x.length;s++)u[(h=x[s])[0]]=i[h[1]];return i}),e.exports=g},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,n){var r=n(7293),i=n(7854).RegExp;t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},9441:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},8173:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},1150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3505:function(e,t,n){var r=n(7854);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:function(e,t,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,n){var r=n(9670),i=n(3099),o=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},8710:function(e,t,n){var r=n(9958),i=n(1340),o=n(4488),a=function(e){return function(t,n){var a,s,u=i(o(t)),c=r(n),l=u.length;return c<0||c>=l?e?"":void 0:(a=u.charCodeAt(c))<55296||a>56319||c+1===l||(s=u.charCodeAt(c+1))<56320||s>57343?e?u.charAt(c):a:e?u.slice(c,c+2):s-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},8415:function(e,t,n){"use strict";var r=n(9958),i=n(1340),o=n(4488);e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},3111:function(e,t,n){var r=n(4488),i=n(1340),o="["+n(1361)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),u=function(e){return function(t){var n=i(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},261:function(e,t,n){var r,i,o,a,s=n(7854),u=n(7293),c=n(9974),l=n(490),h=n(317),f=n(8334),d=n(5268),p=s.setImmediate,g=s.clearImmediate,v=s.process,m=s.MessageChannel,b=s.Dispatch,y=0,w={};try{r=s.location}catch(e){}var _=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){_(e)}},P=function(e){_(e.data)},k=function(e){s.postMessage(String(e),r.protocol+"//"+r.host)};p&&g||(p=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},g=function(e){delete w[e]},d?i=function(e){v.nextTick(x(e))}:b&&b.now?i=function(e){b.now(x(e))}:m&&!f?(a=(o=new m).port2,o.port1.onmessage=P,i=c(a.postMessage,a,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(k)?(i=k,s.addEventListener("message",P,!1)):i="onreadystatechange"in h("script")?function(e){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),_(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:p,clear:g}},863:function(e,t,n){var r=n(4326);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},1400:function(e,t,n){var r=n(9958),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9958:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:function(e,t,n){var r=n(9958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488);e.exports=function(e){return Object(r(e))}},7593:function(e,t,n){var r=n(111),i=n(2190),o=n(2140),a=n(5112)("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,s=e[a];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},1694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:function(e,t,n){var r=n(2190);e.exports=function(e){if(r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},9711:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(6656),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(l,e)?c[e]=l[e]:c[e]=h("Symbol."+e)),c[e]}},1361:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2222:function(e,t,n){"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),u=n(7466),c=n(6135),l=n(5417),h=n(1194),f=n(5112),d=n(7392),p=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=d>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=h("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!b},{concat:function(e){var t,n,r,i,o,a=s(this),h=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(y(o=-1===t?a:arguments[t])){if(f+(i=u(o.length))>g)throw TypeError(v);for(n=0;n<i;n++,f++)n in o&&c(h,f,o[n])}else{if(f>=g)throw TypeError(v);c(h,f++,o)}return h.length=f,h}})},3290:function(e,t,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(e,t,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},4553:function(e,t,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(e,t,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(e,t,n){"use strict";var r=n(2109),i=n(6790),o=n(7908),a=n(7466),s=n(3099),u=n(5417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=a(n.length);return s(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},4944:function(e,t,n){"use strict";var r=n(2109),i=n(6790),o=n(7908),a=n(7466),s=n(9958),u=n(5417);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t.length),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},1038:function(e,t,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(e){Array.from(e)}))},{from:i})},6699:function(e,t,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(e,t,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(654),u="Array Iterator",c=a.set,l=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(e,t,n){"use strict";var r=n(2109),i=n(8361),o=n(5656),a=n(9341),s=[].join,u=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},1249:function(e,t,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5827:function(e,t,n){"use strict";var r=n(2109),i=n(3671).left,o=n(9341),a=n(7392),s=n(5268);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},5069:function(e,t,n){"use strict";var r=n(2109),i=n(3157),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},7042:function(e,t,n){"use strict";var r=n(2109),i=n(111),o=n(3157),a=n(1400),s=n(7466),u=n(5656),c=n(6135),l=n(5112),h=n(1194)("slice"),f=l("species"),d=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,l,h=u(this),g=s(h.length),v=a(e,g),m=a(void 0===t?g:t,g);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(h,v,m);for(r=new(void 0===n?Array:n)(p(m-v,0)),l=0;v<m;v++,l++)v in h&&c(r,l,h[v]);return r.length=l,r}})},2707:function(e,t,n){"use strict";var r=n(2109),i=n(3099),o=n(7908),a=n(7466),s=n(1340),u=n(7293),c=n(4362),l=n(9341),h=n(8886),f=n(256),d=n(7392),p=n(8008),g=[],v=g.sort,m=u((function(){g.sort(void 0)})),b=u((function(){g.sort(null)})),y=l("sort"),w=!u((function(){if(d)return d<70;if(!(h&&h>3)){if(f)return!0;if(p)return p<603;var e,t,n,r,i="";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),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:m||!b||!y||!w},{sort:function(e){void 0!==e&&i(e);var t=o(this);if(w)return void 0===e?v.call(t):v.call(t,e);var n,r,u=[],l=a(t.length);for(r=0;r<l;r++)r in t&&u.push(t[r]);for(n=(u=c(u,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e))).length,r=0;r<n;)t[r]=u[r++];for(;r<l;)delete t[r++];return t}})},561:function(e,t,n){"use strict";var r=n(2109),i=n(1400),o=n(9958),a=n(7466),s=n(7908),u=n(5417),c=n(6135),l=n(1194)("splice"),h=Math.max,f=Math.min,d=9007199254740991,p="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,l,g,v,m,b=s(this),y=a(b.length),w=i(e,y),_=arguments.length;if(0===_?n=r=0:1===_?(n=0,r=y-w):(n=_-2,r=f(h(o(t),0),y-w)),y+n-r>d)throw TypeError(p);for(l=u(b,r),g=0;g<r;g++)(v=w+g)in b&&c(l,g,b[v]);if(l.length=r,n<r){for(g=w;g<y-r;g++)m=g+n,(v=g+r)in b?b[m]=b[v]:delete b[m];for(g=y;g>y-r+n;g--)delete b[g-1]}else if(n>r)for(g=y-r;g>w;g--)m=g+n-1,(v=g+r-1)in b?b[m]=b[v]:delete b[m];for(g=0;g<n;g++)b[g+w]=arguments[g+2];return b.length=y-r+n,l}})},9244:function(e,t,n){n(1223)("flatMap")},3792:function(e,t,n){n(1223)("flat")},6078:function(e,t,n){var r=n(8880),i=n(8709),o=n(5112)("toPrimitive"),a=Date.prototype;o in a||r(a,o,i)},8309:function(e,t,n){var r=n(9781),i=n(3070).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},5837:function(e,t,n){n(2109)({global:!0},{globalThis:n(7854)})},3706:function(e,t,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},1532:function(e,t,n){"use strict";var r=n(7710),i=n(5631);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},4914:function(e,t,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},2420:function(e,t,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(e,t,n){n(8003)(Math,"Math",!0)},9653:function(e,t,n){"use strict";var r=n(9781),i=n(7854),o=n(4705),a=n(1320),s=n(6656),u=n(4326),c=n(9587),l=n(2190),h=n(7593),f=n(7293),d=n(30),p=n(8006).f,g=n(1236).f,v=n(3070).f,m=n(3111).trim,b="Number",y=i.Number,w=y.prototype,_=u(d(w))==b,x=function(e){if(l(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,r,i,o,a,s,u,c=h(e,"number");if("string"==typeof c&&c.length>2)if(43===(t=(c=m(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((u=o.charCodeAt(s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(o(b,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var P,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(_?f((function(){w.valueOf.call(n)})):u(n)!=b)?c(new y(x(t)),n,k):x(t)},C=r?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;C.length>S;S++)s(y,P=C[S])&&!s(k,P)&&v(k,P,g(y,P));k.prototype=w,w.constructor=k,a(i,b,k)}},6977:function(e,t,n){"use strict";var r=n(2109),i=n(9958),o=n(863),a=n(8415),s=n(7293),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)},h=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},f=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},d=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,r,s,u=o(this),c=i(e),p=[0,0,0,0,0,0],g="",v="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(p,0,n),r=c;r>=7;)h(p,1e7,0),r-=7;for(h(p,l(10,r,1),0),r=t-1;r>=23;)f(p,1<<23),r-=23;f(p,1<<r),h(p,1,1),f(p,2),v=d(p)}else h(p,0,n),h(p,1<<-t,0),v=d(p)+a.call("0",c);return c>0?g+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):g+v}})},9601:function(e,t,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(e,t,n){var r=n(2109),i=n(6677),o=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},5003:function(e,t,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},9337:function(e,t,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&u(l,t,n);return l}})},6210:function(e,t,n){var r=n(2109),i=n(7293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},489:function(e,t,n){var r=n(2109),i=n(7293),o=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},7941:function(e,t,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},1539:function(e,t,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(e,t,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},1058:function(e,t,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},8674:function(e,t,n){"use strict";var r,i,o,a,s=n(2109),u=n(1913),c=n(7854),l=n(5005),h=n(3366),f=n(1320),d=n(2248),p=n(7674),g=n(8003),v=n(6340),m=n(111),b=n(3099),y=n(5787),w=n(2788),_=n(408),x=n(7072),P=n(6707),k=n(261).set,C=n(5948),S=n(9478),T=n(842),E=n(8523),I=n(2534),R=n(9909),O=n(4705),A=n(5112),M=n(7871),$=n(5268),L=n(7392),j=A("species"),D="Promise",N=R.get,U=R.set,B=R.getterFor(D),F=h&&h.prototype,W=h,z=F,H=c.TypeError,V=c.document,q=c.process,X=E.f,Y=X,G=!!(V&&V.createEvent&&c.dispatchEvent),Z="function"==typeof PromiseRejectionEvent,K="unhandledrejection",J=!1,Q=O(D,(function(){var e=w(W),t=e!==String(W);if(!t&&66===L)return!0;if(u&&!z.finally)return!0;if(L>=51&&/native code/.test(e))return!1;var n=new W((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[j]=r,!(J=n.then((function(){}))instanceof r)||!t&&M&&!Z})),ee=Q||!x((function(e){W.all(e).catch((function(){}))})),te=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;C((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,u,c=n[o++],l=i?c.ok:c.fail,h=c.resolve,f=c.reject,d=c.domain;try{l?(i||(2===e.rejection&&ae(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),u=!0)),a===c.promise?f(H("Promise-chain cycle")):(s=te(a))?s.call(a,h,f):h(a)):f(r)}catch(e){d&&!u&&d.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ie(e)}))}},re=function(e,t,n){var r,i;G?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!Z&&(i=c["on"+e])?i(r):e===K&&T("Unhandled promise rejection",n)},ie=function(e){k.call(c,(function(){var t,n=e.facade,r=e.value;if(oe(e)&&(t=I((function(){$?q.emit("unhandledRejection",r,n):re(K,n,r)})),e.rejection=$||oe(e)?2:1,t.error))throw t.value}))},oe=function(e){return 1!==e.rejection&&!e.parent},ae=function(e){k.call(c,(function(){var t=e.facade;$?q.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},se=function(e,t,n){return function(r){e(t,r,n)}},ue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ne(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H("Promise can't be resolved itself");var r=te(t);r?C((function(){var n={done:!1};try{r.call(t,se(ce,n,e),se(ue,n,e))}catch(t){ue(n,t,e)}})):(e.value=t,e.state=1,ne(e,!1))}catch(t){ue({done:!1},t,e)}}};if(Q&&(z=(W=function(e){y(this,W,D),b(e),r.call(this);var t=N(this);try{e(se(ce,t),se(ue,t))}catch(e){ue(t,e)}}).prototype,(r=function(e){U(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(z,{then:function(e,t){var n=B(this),r=X(P(this,W));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ne(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=se(ce,t),this.reject=se(ue,t)},E.f=X=function(e){return e===W||e===o?new i(e):Y(e)},!u&&"function"==typeof h&&F!==Object.prototype)){a=F.then,J||(f(F,"then",(function(e,t){var n=this;return new W((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),f(F,"catch",z.catch,{unsafe:!0}));try{delete F.constructor}catch(e){}p&&p(F,z)}s({global:!0,wrap:!0,forced:Q},{Promise:W}),g(W,D,!1,!0),v(D),o=l(D),s({target:D,stat:!0,forced:Q},{reject:function(e){var t=X(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:u||Q},{resolve:function(e){return S(u&&this===o?W:this,e)}}),s({target:D,stat:!0,forced:ee},{all:function(e){var t=this,n=X(t),r=n.resolve,i=n.reject,o=I((function(){var n=b(t.resolve),o=[],a=0,s=1;_(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,i=I((function(){var i=b(t.resolve);_(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:function(e,t,n){var r=n(2109),i=n(5005),o=n(3099),a=n(9670),s=n(111),u=n(30),c=n(7065),l=n(7293),h=i("Reflect","construct"),f=l((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),d=!l((function(){h((function(){}))})),p=f||d;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var i=n.prototype,l=u(s(i)?i:Object.prototype),p=Function.apply.call(e,l,t);return s(p)?p:l}})},4819:function(e,t,n){var r=n(2109),i=n(111),o=n(9670),a=n(6656),s=n(1236),u=n(9518);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,l=arguments.length<3?t:arguments[2];return o(t)===l?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(l):i(c=u(t))?e(c,n,l):void 0}})},4603:function(e,t,n){var r=n(9781),i=n(7854),o=n(4705),a=n(9587),s=n(8880),u=n(3070).f,c=n(8006).f,l=n(7850),h=n(1340),f=n(7066),d=n(2999),p=n(1320),g=n(7293),v=n(6656),m=n(9909).enforce,b=n(6340),y=n(5112),w=n(9441),_=n(8173),x=y("match"),P=i.RegExp,k=P.prototype,C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,S=/a/g,T=/a/g,E=new P(S)!==S,I=d.UNSUPPORTED_Y;if(o("RegExp",r&&(!E||I||w||_||g((function(){return T[x]=!1,P(S)!=S||P(T)==T||"/a/i"!=P(S,"i")}))))){for(var R=function(e,t){var n,r,i,o,u,c,d=this instanceof R,p=l(e),g=void 0===t,b=[],y=e;if(!d&&p&&g&&e.constructor===R)return e;if((p||e instanceof R)&&(e=e.source,g&&(t="flags"in y?y.flags:f.call(y))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),y=e,w&&"dotAll"in S&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,I&&"sticky"in S&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),_&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:C.test(e.slice(r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===l||v(a,l))throw new SyntaxError("Invalid capture group name");a[l]=!0,o.push([l,c]),u=!1,l="";continue}u?l+=t:i+=t}return[i,o]}(e))[0],b=o[1]),u=a(P(e,t),d?this:k,R),(r||i||b.length)&&(c=m(u),r&&(c.dotAll=!0,c.raw=R(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++r);return i}(e),n)),i&&(c.sticky=!0),b.length&&(c.groups=b)),e!==y)try{s(u,"source",""===y?"(?:)":y)}catch(e){}return u},O=function(e){e in R||u(R,e,{configurable:!0,get:function(){return P[e]},set:function(t){P[e]=t}})},A=c(P),M=0;A.length>M;)O(A[M++]);k.constructor=R,R.prototype=k,p(i,"RegExp",R)}b("RegExp")},4916:function(e,t,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(e,t,n){"use strict";var r=n(1320),i=n(9670),o=n(1340),a=n(7293),s=n(7066),u="toString",c=RegExp.prototype,l=c.toString,h=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=u;(h||f)&&r(RegExp.prototype,u,(function(){var e=i(this),t=o(e.source),n=e.flags;return"/"+t+"/"+o(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n)}),{unsafe:!0})},189:function(e,t,n){"use strict";var r=n(7710),i=n(5631);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},7852:function(e,t,n){"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),u=n(3929),c=n(4488),l=n(4964),h=n(1913),f="".endsWith,d=Math.min,p=l("endsWith");i({target:"String",proto:!0,forced:!(!h&&!p&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||p)},{endsWith:function(e){var t=s(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:d(a(n),r),o=s(e);return f?f.call(t,o,i):t.slice(i-o.length,i)===o}})},2023:function(e,t,n){"use strict";var r=n(2109),i=n(3929),o=n(4488),a=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(e){return!!~a(o(this)).indexOf(a(i(e)),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(e){u(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},5306:function(e,t,n){"use strict";var r=n(7007),i=n(7293),o=n(9670),a=n(9958),s=n(7466),u=n(1340),c=n(4488),l=n(1530),h=n(647),f=n(7651),d=n(5112)("replace"),p=Math.max,g=Math.min,v="$0"==="a".replace(/./,"$0"),m=!!/./[d]&&""===/./[d]("a","$0");r("replace",(function(e,t,n){var r=m?"$":"$0";return[function(e,n){var r=c(this),i=null==e?void 0:e[d];return void 0!==i?i.call(e,r,n):t.call(u(r),e,n)},function(e,i){var c=o(this),d=u(e);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var v=n(t,c,d,i);if(v.done)return v.value}var m="function"==typeof i;m||(i=u(i));var b=c.global;if(b){var y=c.unicode;c.lastIndex=0}for(var w=[];;){var _=f(c,d);if(null===_)break;if(w.push(_),!b)break;""===u(_[0])&&(c.lastIndex=l(d,s(c.lastIndex),y))}for(var x,P="",k=0,C=0;C<w.length;C++){_=w[C];for(var S=u(_[0]),T=p(g(a(_.index),d.length),0),E=[],I=1;I<_.length;I++)E.push(void 0===(x=_[I])?x:String(x));var R=_.groups;if(m){var O=[S].concat(E,T,d);void 0!==R&&O.push(R);var A=u(i.apply(void 0,O))}else A=h(S,d,T,E,R,i);T>=k&&(P+=d.slice(k,T)+A,k=T+S.length)}return P+d.slice(k)}]}),!!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!v||m)},4765:function(e,t,n){"use strict";var r=n(7007),i=n(9670),o=n(4488),a=n(1150),s=n(1340),u=n(7651);r("search",(function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),c=n(t,r,o);if(c.done)return c.value;var l=r.lastIndex;a(l,0)||(r.lastIndex=0);var h=u(r,o);return a(r.lastIndex,l)||(r.lastIndex=l),null===h?-1:h.index}]}))},3123:function(e,t,n){"use strict";var r=n(7007),i=n(7850),o=n(9670),a=n(4488),s=n(6707),u=n(1530),c=n(7466),l=n(1340),h=n(7651),f=n(2261),d=n(2999),p=n(7293),g=d.UNSUPPORTED_Y,v=[].push,m=Math.min,b=4294967295;r("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=l(a(this)),o=void 0===n?b:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,u,c,h=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,d+"g");(s=f.call(g,r))&&!((u=g.lastIndex)>p&&(h.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&v.apply(h,s.slice(1)),c=s[0].length,p=u,h.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return p===r.length?!c&&g.test("")||h.push(""):h.push(r.slice(p)),h.length>o?h.slice(0,o):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(l(i),t,n)},function(e,i){var a=o(this),f=l(e),d=n(r,a,f,i,r!==t);if(d.done)return d.value;var p=s(a,RegExp),v=a.unicode,y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(g?"g":"y"),w=new p(g?"^(?:"+a.source+")":a,y),_=void 0===i?b:i>>>0;if(0===_)return[];if(0===f.length)return null===h(w,f)?[f]:[];for(var x=0,P=0,k=[];P<f.length;){w.lastIndex=g?0:P;var C,S=h(w,g?f.slice(P):f);if(null===S||(C=m(c(w.lastIndex+(g?P:0)),f.length))===x)P=u(f,P,v);else{if(k.push(f.slice(x,P)),k.length===_)return k;for(var T=1;T<=S.length-1;T++)if(k.push(S[T]),k.length===_)return k;P=x=C}}return k.push(f.slice(x)),k}]}),!!p((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]})),g)},6755:function(e,t,n){"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),u=n(3929),c=n(4488),l=n(4964),h=n(1913),f="".startsWith,d=Math.min,p=l("startsWith");i({target:"String",proto:!0,forced:!(!h&&!p&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=s(c(this));u(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},1817:function(e,t,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(6656),s=n(111),u=n(3070).f,c=n(9920),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new l(e):void 0===e?l():l(e);return""===e&&(h[t]=!0),t};c(f,l);var d=f.prototype=l.prototype;d.constructor=f;var p=d.toString,g="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(h,e))return"";var n=g?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},2165:function(e,t,n){n(7235)("iterator")},2526:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(1913),s=n(9781),u=n(133),c=n(7293),l=n(6656),h=n(3157),f=n(111),d=n(2190),p=n(9670),g=n(7908),v=n(5656),m=n(4948),b=n(1340),y=n(9114),w=n(30),_=n(1956),x=n(8006),P=n(1156),k=n(5181),C=n(1236),S=n(3070),T=n(5296),E=n(8880),I=n(1320),R=n(2309),O=n(6200),A=n(3501),M=n(9711),$=n(5112),L=n(6061),j=n(7235),D=n(8003),N=n(9909),U=n(2092).forEach,B=O("hidden"),F="Symbol",W=$("toPrimitive"),z=N.set,H=N.getterFor(F),V=Object.prototype,q=i.Symbol,X=o("JSON","stringify"),Y=C.f,G=S.f,Z=P.f,K=T.f,J=R("symbols"),Q=R("op-symbols"),ee=R("string-to-symbol-registry"),te=R("symbol-to-string-registry"),ne=R("wks"),re=i.QObject,ie=!re||!re.prototype||!re.prototype.findChild,oe=s&&c((function(){return 7!=w(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(V,t);r&&delete V[t],G(e,t,n),r&&e!==V&&G(V,t,r)}:G,ae=function(e,t){var n=J[e]=w(q.prototype);return z(n,{type:F,tag:e,description:t}),s||(n.description=t),n},se=function(e,t,n){e===V&&se(Q,t,n),p(e);var r=m(t);return p(n),l(J,r)?(n.enumerable?(l(e,B)&&e[B][r]&&(e[B][r]=!1),n=w(n,{enumerable:y(0,!1)})):(l(e,B)||G(e,B,y(1,{})),e[B][r]=!0),oe(e,r,n)):G(e,r,n)},ue=function(e,t){p(e);var n=v(t),r=_(n).concat(fe(n));return U(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=K.call(this,t);return!(this===V&&l(J,t)&&!l(Q,t))&&(!(n||!l(this,t)||!l(J,t)||l(this,B)&&this[B][t])||n)},le=function(e,t){var n=v(e),r=m(t);if(n!==V||!l(J,r)||l(Q,r)){var i=Y(n,r);return!i||!l(J,r)||l(n,B)&&n[B][r]||(i.enumerable=!0),i}},he=function(e){var t=Z(v(e)),n=[];return U(t,(function(e){l(J,e)||l(A,e)||n.push(e)})),n},fe=function(e){var t=e===V,n=Z(t?Q:v(e)),r=[];return U(n,(function(e){!l(J,e)||t&&!l(V,e)||r.push(J[e])})),r};u||(I((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,t=M(e),n=function(e){this===V&&n.call(Q,e),l(this,B)&&l(this[B],t)&&(this[B][t]=!1),oe(this,t,y(1,e))};return s&&ie&&oe(V,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return H(this).tag})),I(q,"withoutSetter",(function(e){return ae(M(e),e)})),T.f=ce,S.f=se,C.f=le,x.f=P.f=he,k.f=fe,L.f=function(e){return ae($(e),e)},s&&(G(q.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),a||I(V,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),U(_(ne),(function(e){j(e)})),r({target:F,stat:!0,forced:!u},{for:function(e){var t=b(e);if(l(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!d(e))throw TypeError(e+" is not a symbol");if(l(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?w(e):ue(w(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:he,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:c((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(g(e))}}),X&&r({target:"JSON",stat:!0,forced:!u||c((function(){var e=q();return"[null]"!=X([e])||"{}"!=X({a:e})||"{}"!=X(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(f(t)||void 0!==e)&&!d(e))return h(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!d(t))return t}),i[1]=t,X.apply(null,i)}}),q.prototype[W]||E(q.prototype,W,q.prototype.valueOf),D(q,F),A[B]=!0},6649:function(e,t,n){n(7235)("toPrimitive")},3680:function(e,t,n){n(7235)("toStringTag")},4129:function(e,t,n){"use strict";var r,i=n(7854),o=n(2248),a=n(2423),s=n(7710),u=n(9320),c=n(111),l=n(9909).enforce,h=n(8536),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,u);if(h&&f){r=u.getConstructor(p,"WeakMap",!0),a.enable();var v=g.prototype,m=v.delete,b=v.has,y=v.get,w=v.set;o(v,{delete:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen.delete(e)}return m.call(this,e)},has:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},5743:function(e,t,n){n(5837)},4747:function(e,t,n){var r=n(7854),i=n(8324),o=n(8533),a=n(8880);for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},3948:function(e,t,n){var r=n(7854),i=n(8324),o=n(6992),a=n(8880),s=n(5112),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(e){d[u]=l}if(d[c]||a(d,c,h),i[h])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(e){d[p]=o[p]}}}},1637:function(e,t,n){"use strict";n(6992);var r=n(2109),i=n(5005),o=n(590),a=n(1320),s=n(2248),u=n(8003),c=n(4994),l=n(9909),h=n(5787),f=n(6656),d=n(9974),p=n(648),g=n(9670),v=n(111),m=n(1340),b=n(30),y=n(9114),w=n(8554),_=n(1246),x=n(5112),P=i("fetch"),k=i("Request"),C=k&&k.prototype,S=i("Headers"),T=x("iterator"),E="URLSearchParams",I="URLSearchParamsIterator",R=l.set,O=l.getterFor(E),A=l.getterFor(I),M=/\+/g,$=Array(4),L=function(e){return $[e-1]||($[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},j=function(e){try{return decodeURIComponent(e)}catch(t){return e}},D=function(e){var t=e.replace(M," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(L(n--),j);return t}},N=/[!'()~]|%20/g,U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},B=function(e){return U[e]},F=function(e){return encodeURIComponent(e).replace(N,B)},W=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:D(r.shift()),value:D(r.join("="))}))},z=function(e){this.entries.length=0,W(this.entries,e)},H=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=c((function(e,t){R(this,{type:I,iterator:w(O(e).entries),kind:t})}),"Iterator",(function(){var e=A(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),q=function(){h(this,q,E);var e,t,n,r,i,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(R(l,{type:E,entries:d,updateURL:function(){},updateSearchParams:z}),void 0!==c)if(v(c))if("function"==typeof(e=_(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(o=(i=w(g(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:m(a.value),value:m(s.value)})}else for(u in c)f(c,u)&&d.push({key:u,value:m(c[u])});else W(d,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:m(c))},X=q.prototype;if(s(X,{append:function(e,t){H(arguments.length,2);var n=O(this);n.entries.push({key:m(e),value:m(t)}),n.updateURL()},delete:function(e){H(arguments.length,1);for(var t=O(this),n=t.entries,r=m(e),i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){H(arguments.length,1);for(var t=O(this).entries,n=m(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){H(arguments.length,1);for(var t=O(this).entries,n=m(e),r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){H(arguments.length,1);for(var t=O(this).entries,n=m(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){H(arguments.length,1);for(var n,r=O(this),i=r.entries,o=!1,a=m(e),s=m(t),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=O(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=O(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),a(X,T,X.entries),a(X,"toString",(function(){for(var e,t=O(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(F(e.key)+"="+F(e.value));return n.join("&")}),{enumerable:!0}),u(q,E),r({global:!0,forced:!o},{URLSearchParams:q}),!o&&"function"==typeof S){var Y=function(e){if(v(e)){var t,n=e.body;if(p(n)===E)return(t=e.headers?new S(e.headers):new S).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),b(e,{body:y(0,String(n)),headers:y(0,t)})}return e};if("function"==typeof P&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return P(e,arguments.length>1?Y(arguments[1]):{})}}),"function"==typeof k){var G=function(e){return h(this,G,"Request"),new k(e,arguments.length>1?Y(arguments[1]):{})};C.constructor=G,G.prototype=C,r({global:!0,forced:!0},{Request:G})}}e.exports={URLSearchParams:q,getState:O}},840:function(e,t,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(e,t,n){return setTimeout(_(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var b=m((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),y=m((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&u(r,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function P(e,t){return e===s?t:e}function k(e,t,n){v(E(t),(function(t){e.addEventListener(t,n,!1)}))}function C(e,t,n){v(E(t),(function(t){e.removeEventListener(t,n,!1)}))}function S(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function E(e){return e.trim().split(/\s+/g)}function I(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function R(e){return Array.prototype.slice.call(e,0)}function O(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];I(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function A(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:t)in e)return r;o++}return s}var M=1;function $(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var L="ontouchstart"in i,j=A(i,"PointerEvent")!==s,D=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",U="mouse",B=["x","y"],F=["clientX","clientY"];function W(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function z(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=H(t)),i>1&&!n.firstMultiple?n.firstMultiple=H(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=t.center=V(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=G(u,c),t.distance=Y(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=X(t.deltaX,t.deltaY);var l,h,p=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,t.scale=a?(l=a.pointers,Y((h=r)[0],h[1],F)/Y(l[0],l[1],F)):1,t.rotation=a?function(e,t){return G(t[1],t[0],F)+G(e[1],e[0],F)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||a.velocity===s)){var c=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,h=q(u,c,l);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=X(c,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var g=e.element;S(t.srcEvent.target,g)&&(g=t.srcEvent.target),t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:V(t),deltaX:e.deltaX,deltaY:e.deltaY}}function V(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function X(e,t){return e===t?1:f(e)>=f(t)?e<0?2:4:t<0?8:16}function Y(e,t,n){n||(n=B);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){n||(n=B);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k($(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C($(this.element),this.evWin,this.domHandler)}};var Z={mousedown:1,mousemove:2,mouseup:4},K="mousedown",J="mousemove mouseup";function Q(){this.evEl=K,this.evWin=J,this.pressed=!1,W.apply(this,arguments)}w(Q,W,{handler:function(e){var t=Z[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:U,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:N,3:"pen",4:U,5:"kinect"},ne="pointerdown",re="pointermove pointerup pointercancel";function ie(){this.evEl=ne,this.evWin=re,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ne="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,W,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ee[r],o=te[e.pointerType]||e.pointerType,a=o==N,s=I(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ue(){this.evTarget=ae,this.evWin=se,this.started=!1,W.apply(this,arguments)}function ce(e,t){var n=R(e.touches),r=R(e.changedTouches);return 12&t&&(n=O(n.concat(r),"identifier",!0)),[n,r]}w(ue,W,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},he="touchstart touchmove touchend touchcancel";function fe(){this.evTarget=he,this.targetIds={},W.apply(this,arguments)}function de(e,t){var n=R(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=R(e.changedTouches),s=[],u=this.target;if(o=n.filter((function(e){return S(e.target,u)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[O(o.concat(s),"identifier",!0),s]:void 0}function pe(){W.apply(this,arguments);var e=_(this.handler,this);this.touch=new fe(this.manager,e),this.mouse=new Q(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ge(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ve.call(this,t)):12&e&&ve.call(this,t)}function ve(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function me(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(fe,W,{handler:function(e){var t=le[e.type],n=de.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}),w(pe,W,{handler:function(e,t,n){var r=n.pointerType==N,i=n.pointerType==U;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ge.call(this,t,n);else if(i&&me.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var be=A(l.style,"touchAction"),ye=be!==s,we="compute",_e="auto",xe="manipulation",Pe="none",ke="pan-x",Ce="pan-y",Se=function(){if(!ye)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Te(e,t){this.manager=e,this.set(t)}Te.prototype={set:function(e){e==we&&(e=this.compute()),ye&&this.manager.element.style&&Se[e]&&(this.manager.element.style[be]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return v(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(T(e,Pe))return Pe;var t=T(e,ke),n=T(e,Ce);return t&&n?Pe:t||n?t?ke:Ce:T(e,xe)?xe:_e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=T(r,Pe)&&!Se.none,o=T(r,Ce)&&!Se["pan-y"],a=T(r,ke)&&!Se["pan-x"];if(i){var s=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ee=32;function Ie(e){this.options=u({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=P(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Re(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Oe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ae(e,t){var n=t.manager;return n?n.get(e):e}function Me(){Ie.apply(this,arguments)}function $e(){Me.apply(this,arguments),this.pX=null,this.pY=null}function Le(){Me.apply(this,arguments)}function je(){Ie.apply(this,arguments),this._timer=null,this._input=null}function De(){Me.apply(this,arguments)}function Ne(){Me.apply(this,arguments)}function Ue(){Ie.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Be(e,t){return(t=t||{}).recognizers=P(t.recognizers,Be.defaults.preset),new Fe(e,t)}function Fe(e,t){this.options=u({},Be.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(j?ie:D?fe:L?pe:Q))(this,z),this.touchAction=new Te(this,this.options.touchAction),We(this,!0),v(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function We(e,t){var n,r=e.element;r.style&&(v(e.options.cssProps,(function(i,o){n=A(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ie.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ae(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=Ae(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===I(t,e=Ae(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Ae(e,this);var t=I(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Re(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Re(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ee},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=Ee);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Me,Ie,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Ee}}),w($e,Me,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ce),24&e&&t.push(ke),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Me.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Oe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Le,Me,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(je,Ie,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(De,Me,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ne,Me,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return $e.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Oe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Ue,Ie,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||Y(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Ee},failTimeout:function(){return this._timer=p((function(){this.state=Ee}),this.options.interval,this),Ee},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Be.VERSION="2.0.7",Be.defaults={domEvents:!1,touchAction:we,enable:!0,inputTarget:null,inputClass:null,preset:[[De,{enable:!1}],[Le,{enable:!1},["rotate"]],[Ne,{direction:6}],[$e,{direction:6},["swipe"]],[Ue],[Ue,{event:"doubletap",taps:2},["tap"]],[je]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Fe.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Ie)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=I(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return v(E(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return v(E(e),(function(e){t?n[e]&&n[e].splice(I(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&We(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Be,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ee,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Fe,Input:W,TouchAction:Te,TouchInput:fe,MouseInput:Q,PointerEventInput:ie,TouchMouseInput:pe,SingleTouchInput:ue,Recognizer:Ie,AttrRecognizer:Me,Tap:Ue,Pan:$e,Swipe:Ne,Pinch:Le,Rotate:De,Press:je,on:k,off:C,each:v,merge:y,extend:b,assign:u,inherit:w,bindFn:_,prefixed:A}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Be,(r=function(){return Be}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},4581:function(e,t,n){!function(e,t,n){var r,i,o,a,s,u,c,l,h,f,d,p,g,v,m,b,y,w,_,x,P,k,C,S,T,E,I,R,O,A,M,$,L,j={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}},D="colorbox",N="cboxElement",U="cbox_load",B="cbox_complete",F="cbox_cleanup",W="cbox_closed",z="cbox_purge",H=e("<a/>"),V="div",q=0,X={};function Y(n,r,i){var o=t.createElement(n);return r&&(o.id="cbox"+r),i&&(o.style.cssText=i),e(o)}function G(){return n.innerHeight?n.innerHeight:e(n).height()}function Z(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!==j[t]&&(this.cache[t]=j[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function K(e){var t=h.length,n=(E+e)%t;return n<0?t+n:n}function J(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():G())/100:1)*parseInt(e,10))}function Q(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ee(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function te(e){"contains"in i[0]&&!i[0].contains(e.target)&&e.target!==r[0]&&(e.stopPropagation(),i.focus())}function ne(e){ne.str!==e&&(i.add(r).removeClass(ne.str).addClass(e),ne.str=e)}function re(n){e(t).trigger(n),H.triggerHandler(n)}var ie=function(){var e,t,n="cboxSlideshow_",r="click.cbox";function o(){clearTimeout(t)}function a(){(P.get("loop")||h[E+1])&&(o(),t=setTimeout($.next,P.get("slideshowSpeed")))}function s(){b.html(P.get("slideshowStop")).unbind(r).one(r,u),H.bind(B,a).bind(U,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),H.unbind(B,a).unbind(U,o),b.html(P.get("slideshowStart")).unbind(r).one(r,(function(){$.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){e=!1,b.hide(),o(),H.unbind(B,a).unbind(U,o),i.removeClass(n+"off "+n+"on")}return function(){e?P.get("slideshow")||(H.unbind(F,c),c()):P.get("slideshow")&&h[1]&&(e=!0,H.one(F,c),P.get("slideshowAuto")?s():u(),b.show())}}();function oe(o){var f,m;if(!A){if(f=e(o).data(D),P=new Z(o,f),m=P.get("rel"),E=0,m&&!1!==m&&"nofollow"!==m?(h=e(".cboxElement").filter((function(){return new Z(this,e.data(this,D)).get("rel")===m})),-1===(E=h.index(P.el))&&(h=h.add(P.el),E=h.length-1)):h=e(P.el),!R){R=O=!0,ne(P.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=Y(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),k=s.height()+l.height()+a.outerHeight(!0)-a.height(),C=u.width()+c.width()+a.outerWidth(!0)-a.width(),S=d.outerHeight(!0),T=d.outerWidth(!0);var b=J(P.get("initialWidth"),"x"),y=J(P.get("initialHeight"),"y"),w=P.get("maxWidth"),L=P.get("maxHeight");P.w=Math.max((!1!==w?Math.min(b,J(w,"x")):b)-T-C,0),P.h=Math.max((!1!==L?Math.min(y,J(L,"y")):y)-S-k,0),d.css({width:"",height:P.h}),$.position(),re("cbox_open"),P.get("onOpen"),x.add(v).hide(),i.focus(),P.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",te,!0),H.one(W,(function(){t.removeEventListener("focus",te,!0)}))),P.get("returnFocus")&&H.one(W,(function(){e(P.el).focus()}))}var j=parseFloat(P.get("opacity"));r.css({opacity:j==j?j:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?_.html(P.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var t,r,i,o=$.prep,a=++q;if(O=!0,I=!1,re(z),re(U),P.get("onLoad"),P.h=P.get("height")?J(P.get("height"),"y")-S-k:P.get("innerHeight")&&J(P.get("innerHeight"),"y"),P.w=P.get("width")?J(P.get("width"),"x")-T-C:P.get("innerWidth")&&J(P.get("innerWidth"),"x"),P.mw=P.w,P.mh=P.h,P.get("maxWidth")&&(P.mw=J(P.get("maxWidth"),"x")-T-C,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.get("maxHeight")&&(P.mh=J(P.get("maxHeight"),"y")-S-k,P.mh=P.h&&P.h<P.mh?P.h:P.mh),t=P.get("href"),M=setTimeout((function(){g.show()}),100),P.get("inline")){var s=e(t).eq(0);i=e("<div>").hide().insertBefore(s),H.one(z,(function(){i.replaceWith(s)})),o(s)}else P.get("iframe")?o(" "):P.get("html")?o(P.get("html")):Q(P,t)?(t=ee(P,t),I=P.get("createImg"),e(I).addClass("cboxPhoto").bind("error.cbox",(function(){o(Y(V,"Error").html(P.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var t;P.get("retinaImage")&&n.devicePixelRatio>1&&(I.height=I.height/n.devicePixelRatio,I.width=I.width/n.devicePixelRatio),P.get("scalePhotos")&&(r=function(){I.height-=I.height*t,I.width-=I.width*t},P.mw&&I.width>P.mw&&(t=(I.width-P.mw)/I.width,r()),P.mh&&I.height>P.mh&&(t=(I.height-P.mh)/I.height,r())),P.h&&(I.style.marginTop=Math.max(P.mh-I.height,0)/2+"px"),h[1]&&(P.get("loop")||h[E+1])&&(I.style.cursor="pointer",e(I).bind("click.cbox",(function(){$.next()}))),I.style.width=I.width+"px",I.style.height=I.height+"px",o(I)}),1)})),I.src=t):t&&p.load(t,P.get("data"),(function(t,n){a===q&&o("error"===n?Y(V,"Error").html(P.get("xhrError")):e(this).contents())}))}()}}function ae(){i||(L=!1,f=e(n),i=Y(V).attr({id:D,class:!1===e.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),r=Y(V,"Overlay").hide(),g=e([Y(V,"LoadingOverlay")[0],Y(V,"LoadingGraphic")[0]]),o=Y(V,"Wrapper"),a=Y(V,"Content").append(v=Y(V,"Title"),m=Y(V,"Current"),w=e('<button type="button"/>').attr({id:"cboxPrevious"}),y=e('<button type="button"/>').attr({id:"cboxNext"}),b=e('<button type="button"/>').attr({id:"cboxSlideshow"}),g),_=e('<button type="button"/>').attr({id:"cboxClose"}),o.append(Y(V).append(Y(V,"TopLeft"),s=Y(V,"TopCenter"),Y(V,"TopRight")),Y(V,!1,"clear:left").append(u=Y(V,"MiddleLeft"),a,c=Y(V,"MiddleRight")),Y(V,!1,"clear:left").append(Y(V,"BottomLeft"),l=Y(V,"BottomCenter"),Y(V,"BottomRight"))).find("div div").css({float:"left"}),p=Y(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=y.add(w).add(m).add(b)),t.body&&!i.parent().length&&e(t.body).append(r,i.append(o,p))}e.colorbox||(e(ae),($=e.fn.colorbox=e.colorbox=function(n,o){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ae(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),oe(this))}return!!i&&(L||(L=!0,y.click((function(){$.next()})),w.click((function(){$.prev()})),_.click((function(){$.close()})),r.click((function(){P.get("overlayClose")&&$.close()})),e(t).bind("keydown.cbox",(function(e){var t=e.keyCode;R&&P.get("escKey")&&27===t&&(e.preventDefault(),$.close()),R&&P.get("arrowKey")&&h[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),y.click()))})),e.isFunction(e.fn.on)?e(t).on("click.cbox",".cboxElement",n):e(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var t=e.data(this,D)||{};e.data(this,D,e.extend(t,n))})).addClass(N),new Z(a[0],n).get("open")&&oe(a[0])),a):a}).position=function(t,n){var r,h,d,p=0,g=0,v=i.offset();function m(){s[0].style.width=l[0].style.width=a[0].style.width=parseInt(i[0].style.width,10)-C+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-k+"px"}if(f.unbind("resize.cbox"),i.css({top:-9e4,left:-9e4}),h=f.scrollTop(),d=f.scrollLeft(),P.get("fixed")?(v.top-=h,v.left-=d,i.css({position:"fixed"})):(p=h,g=d,i.css({position:"absolute"})),!1!==P.get("right")?g+=Math.max(f.width()-P.w-T-C-J(P.get("right"),"x"),0):!1!==P.get("left")?g+=J(P.get("left"),"x"):g+=Math.round(Math.max(f.width()-P.w-T-C,0)/2),!1!==P.get("bottom")?p+=Math.max(G()-P.h-S-k-J(P.get("bottom"),"y"),0):!1!==P.get("top")?p+=J(P.get("top"),"y"):p+=Math.round(Math.max(G()-P.h-S-k,0)/2),i.css({top:v.top,left:v.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:P.w+T+C,height:P.h+S+k,top:p,left:g},t){var b=0;e.each(r,(function(e){r[e]===X[e]||(b=t)})),t=b}X=r,t||i.css(r),i.dequeue().animate(r,{duration:t||0,complete:function(){m(),O=!1,o[0].style.width=P.w+T+C+"px",o[0].style.height=P.h+S+k+"px",P.get("reposition")&&setTimeout((function(){f.bind("resize.cbox",$.position)}),1),e.isFunction(n)&&n()},step:m})},$.resize=function(e){var t;R&&((e=e||{}).width&&(P.w=J(e.width,"x")-T-C),e.innerWidth&&(P.w=J(e.innerWidth,"x")),d.css({width:P.w}),e.height&&(P.h=J(e.height,"y")-S-k),e.innerHeight&&(P.h=J(e.innerHeight,"y")),e.innerHeight||e.height||(t=d.scrollTop(),d.css({height:"auto"}),P.h=d.height()),d.css({height:P.h}),t&&d.scrollTop(t),$.position("none"===P.get("transition")?0:P.get("speed")))},$.prep=function(n){if(R){var r,o="none"===P.get("transition")?0:P.get("speed");d.remove(),(d=Y(V,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(P.w=P.w||d.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w),overflow:P.get("scrolling")?"auto":"hidden"}).css({height:(P.h=P.h||d.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h)}).prependTo(a),p.hide(),e(I).css({float:"none"}),ne(P.get("className")),r=function(){var n,r,a=h.length;function s(){!1===e.support.opacity&&i[0].style.removeAttribute("filter")}R&&(r=function(){clearTimeout(M),g.hide(),re(B),P.get("onComplete")},v.html(P.get("title")).show(),d.show(),a>1?("string"==typeof P.get("current")&&m.html(P.get("current").replace("{current}",E+1).replace("{total}",a)).show(),y[P.get("loop")||E<a-1?"show":"hide"]().html(P.get("next")),w[P.get("loop")||E?"show":"hide"]().html(P.get("previous")),ie(),P.get("preloading")&&e.each([K(-1),K(1)],(function(){var n=h[this],r=new Z(n,e.data(n,D)),i=r.get("href");i&&Q(r,i)&&(i=ee(r,i),t.createElement("img").src=i)}))):x.hide(),P.get("iframe")?(n=P.get("createIframe"),P.get("scrolling")||(n.scrolling="no"),e(n).attr({src:P.get("href"),class:"cboxIframe"}).one("load",r).appendTo(d),H.one(z,(function(){n.src="//about:blank"})),P.get("fastIframe")&&e(n).trigger("load")):r(),"fade"===P.get("transition")?i.fadeTo(o,1,s):s())},"fade"===P.get("transition")?i.fadeTo(o,0,(function(){$.position(0,r)})):$.position(o,r)}},$.next=function(){!O&&h[1]&&(P.get("loop")||h[E+1])&&(E=K(1),oe(h[E]))},$.prev=function(){!O&&h[1]&&(P.get("loop")||E)&&(E=K(-1),oe(h[E]))},$.close=function(){R&&!A&&(A=!0,R=!1,re(F),P.get("onCleanup"),f.unbind(".cbox"),r.fadeTo(P.get("fadeOut")||0,0),i.stop().fadeTo(P.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),re(z),d.remove(),setTimeout((function(){A=!1,re(W),P.get("onClosed")}),1)})))},$.remove=function(){i&&(i.stop(),e.colorbox.close(),i.stop(!1,!0).remove(),r.remove(),A=!1,i=null,e(".cboxElement").removeData(D).removeClass(N),e(t).unbind("click.cbox").unbind("keydown.cbox"))},$.element=function(){return e(P.el)},$.settings=j)}(n(3609),document,window)},5557: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,i=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,o(e,"mouseover"),o(e,"mousemove"),o(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,o(e,"mousemove"))},n._touchEnd=function(e){t&&(o(e,"mouseup"),o(e,"mouseout"),this._touchMoved||o(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")}),i.call(t)}}function o(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(3609))},3762:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){var t,n="ui-effects-",r="ui-effects-style",i="ui-effects-animated",o=e;return e.effects={effect:{}},function(e,t){var n,r=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],o=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},a={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=o.support={},c=e("<p>")[0],l=e.each;function h(e,t,n){var r=s[t.type]||{};return null==e?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:0>e?0:r.max<e?r.max:e)}function f(t){var r=o(),s=r._rgba=[];return t=t.toLowerCase(),l(i,(function(e,n){var i,o=n.re.exec(t),u=o&&n.parse(o),c=n.space||"rgba";if(u)return i=r[c](u),r[a[c].cache]=i[a[c].cache],s=r._rgba=i._rgba,!1})),s.length?("0,0,0,0"===s.join()&&e.extend(s,n.transparent),r):n[t]}function d(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}c.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=c.style.backgroundColor.indexOf("rgba")>-1,l(a,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),o.fn=e.extend(o.prototype,{parse:function(r,i,s,u){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(i),i=t);var c=this,d=e.type(r),p=this._rgba=[];return i!==t&&(r=[r,i,s,u],d="array"),"string"===d?this.parse(f(r)||n._default):"array"===d?(l(a.rgba.props,(function(e,t){p[t.idx]=h(r[t.idx],t)})),this):"object"===d?(l(a,r instanceof o?function(e,t){r[t.cache]&&(c[t.cache]=r[t.cache].slice())}:function(t,n){var i=n.cache;l(n.props,(function(e,t){if(!c[i]&&n.to){if("alpha"===e||null==r[e])return;c[i]=n.to(c._rgba)}c[i][t.idx]=h(r[e],t,!0)})),c[i]&&e.inArray(null,c[i].slice(0,3))<0&&(c[i][3]=1,n.from&&(c._rgba=n.from(c[i])))}),this):void 0},is:function(e){var t=o(e),n=!0,r=this;return l(a,(function(e,i){var o,a=t[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],l(i.props,(function(e,t){if(null!=a[t.idx])return n=a[t.idx]===o[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return l(a,(function(n,r){t[r.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=o(e),r=n._space(),i=a[r],u=0===this.alpha()?o("transparent"):this,c=u[i.cache]||i.to(u._rgba),f=c.slice();return n=n[i.cache],l(i.props,(function(e,r){var i=r.idx,o=c[i],a=n[i],u=s[r.type]||{};null!==a&&(null===o?f[i]=a:(u.mod&&(a-o>u.mod/2?o+=u.mod:o-a>u.mod/2&&(o-=u.mod)),f[i]=h((a-o)*t+o,r)))})),this[r](f)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=o(t)._rgba;return o(e.map(n,(function(e,t){return(1-r)*i[t]+r*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null==e?t>2?1:0:e}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,a.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(r,i,o),u=Math.min(r,i,o),c=s-u,l=s+u,h=.5*l;return t=u===s?0:r===s?60*(i-o)/c+360:i===s?60*(o-r)/c+120:60*(r-i)/c+240,n=0===c?0:h<=.5?c/l:c/(2-l),[Math.round(t)%360,n,h,null==a?1:a]},a.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*d(a,o,t+1/3)),Math.round(255*d(a,o,t)),Math.round(255*d(a,o,t-1/3)),i]},l(a,(function(n,i){var a=i.props,s=i.cache,u=i.to,c=i.from;o.fn[n]=function(n){if(u&&!this[s]&&(this[s]=u(this._rgba)),n===t)return this[s].slice();var r,i=e.type(n),f="array"===i||"object"===i?n:arguments,d=this[s].slice();return l(a,(function(e,t){var n=f["object"===i?e:t.idx];null==n&&(n=d[t.idx]),d[t.idx]=h(n,t)})),c?((r=o(c(d)))[s]=d,r):o(d)},l(a,(function(t,i){o.fn[t]||(o.fn[t]=function(o){var a,s=e.type(o),u="alpha"===t?this._hsla?"hsla":"rgba":n,c=this[u](),l=c[i.idx];return"undefined"===s?l:("function"===s&&(o=o.call(this,l),s=e.type(o)),null==o&&i.empty?this:("string"===s&&(a=r.exec(o))&&(o=l+parseFloat(a[2])*("+"===a[1]?1:-1)),c[i.idx]=o,this[u](c)))})}))})),o.hook=function(t){var n=t.split(" ");l(n,(function(t,n){e.cssHooks[n]={set:function(t,r){var i,a,s="";if("transparent"!==r&&("string"!==e.type(r)||(i=f(r)))){if(r=o(i||r),!u.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=o(t.elem,n),t.end=o(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},o.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return l(["Top","Right","Bottom","Left"],(function(n,r){t["border"+r+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(o),function(){var t,n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(t){var n,r,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(r=i.length;r--;)"string"==typeof i[n=i[r]]&&(o[e.camelCase(n)]=i[n]);else for(n in i)"string"==typeof i[n]&&(o[n]=i[n]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(o.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,o,a,s){var u=e.speed(o,a,s);return this.queue((function(){var o,a=e(this),s=a.attr("class")||"",c=u.children?a.find("*").addBack():a;c=c.map((function(){return{el:e(this),start:i(this)}})),(o=function(){e.each(n,(function(e,n){t[n]&&a[n+"Class"](t[n])}))})(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=function(t,n){var i,o,a={};for(i in n)o=n[i],t[i]!==o&&(r[i]||!e.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var t=this,n=e.Deferred(),r=e.extend({},u,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()})),e.when.apply(e,c.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),u.complete.call(a[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(n,r,i,o){return r?e.effects.animateClass.call(this,{add:n},r,i,o):t.apply(this,arguments)}),removeClass:function(t){return function(n,r,i,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},r,i,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,r,i,o,a){return"boolean"==typeof r||void 0===r?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},r,i,o)}}(e.fn.toggleClass),switchClass:function(t,n,r,i,o){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,o)}})}(),function(){var t;function o(t,n,r,i){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(i=n,r=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(i=r,r=n,n={}),e.isFunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:"number"==typeof r?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function a(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||!!e.isFunction(t)||"object"==typeof t&&!t.effect}function s(e,t){var n=t.outerWidth(),r=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=(t=e.expr.filters.animated,function(n){return!!e(n).data(i)||t(n)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var r=0,i=t.length;r<i;r++)null!==t[r]&&e.data(n+t[r],e[0].style[t[r]])},restore:function(e,t){for(var r,i=0,o=t.length;i<o;i++)null!==t[i]&&(r=e.data(n+t[i]),e.css(t[i],r))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(r),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),r=t.parent(),"static"===t.css("position")?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,r){return r||(r=n,n="effect"),e.effects.effect[t]=r,e.effects.effect[t].mode=n,r},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(t||100)/100:1,i="vertical"!==n?(t||100)/100:1;return{height:e.height()*i,width:e.width()*r,outerHeight:e.outerHeight()*i,outerWidth:e.outerWidth()*r}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var r=e.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(r,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(r)||"",e.removeData(r)},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createPlaceholder:function(t){var r,i=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(n+"placeholder",r)),t.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(e){var t=n+"placeholder",r=e.data(t);r&&(r.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,r,i){return i=i||{},e.each(n,(function(e,n){var o=t.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),n=e.effects.effect[t.effect],r=n.mode,a=t.queue,s=a||"fx",u=t.complete,c=t.mode,l=[],h=function(t){var n=e(this),o=e.effects.mode(n,c)||r;n.data(i,!0),l.push(o),r&&("show"===o||o===r&&"hide"===o)&&n.show(),r&&"none"===o||e.effects.saveStyle(n),e.isFunction(t)&&t()};if(e.fx.off||!n)return c?this[c](t.duration,u):this.each((function(){u&&u.call(this)}));function f(o){var a=e(this);function s(){e.isFunction(u)&&u.call(a[0]),e.isFunction(o)&&o()}t.mode=l.shift(),!1===e.uiBackCompat||r?"none"===t.mode?(a[c](),s()):n.call(a[0],t,(function(){a.removeData(i),e.effects.cleanUp(a),"hide"===t.mode&&a.hide(),s()})):(a.is(":hidden")?"hide"===c:"show"===c)?(a[c](),s()):n.call(a[0],t,s)}return!1===a?this.each(h).each(f):this.queue(s,h).queue(s,f)},show:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(t){if(a(t)||"boolean"==typeof t)return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],(function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])})),r},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):s(this.css("clip"),this)},transfer:function(t,n){var r=e(this),i=e(t.to),o="fixed"===i.css("position"),a=e("body"),s=o?a.scrollTop():0,u=o?a.scrollLeft():0,c=i.offset(),l={top:c.top-s,left:c.left-u,height:i.innerHeight(),width:i.innerWidth()},h=r.offset(),f=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:h.top-s,left:h.left-u,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(l,t.duration,t.easing,(function(){f.remove(),e.isFunction(n)&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=s(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,n){t[n]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects})?r.apply(t,i):r)||(e.exports=o)},1870:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},7053:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="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,i):r)||(e.exports=o)},5592:function(e,t,n){var r,i,o;i=[n(3609)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},6891:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var i,o,a,s={},u=t.split(".")[0],c=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[u]=e[u]||{},i=e[u][t],o=e[u][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{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 i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():s[t]=r})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:u,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=e.data(this,i);return"instance"===o?(u=r,!1):r?e.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,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,i,o,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(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[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,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,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 i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.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 i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,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 i,o,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],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);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,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})&&(i={duration:i}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)},6177:function(e,t,n){var r,i,o;i=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="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,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(i&&!o&&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,i):r)||(e.exports=o)},6227:function(e,t,n){var r,i,o;i=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(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,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)o.push("<span tabindex='0'></span>");this.handles=i.add(e(o.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,i,o,a,s,u,c=this,l=this.options;return!l.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),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(r-c.values(t));(i>n||i===n&&(t===c._lastChangedValue||c.values(t)===l.min))&&(i=n,o=e(this),a=t)})),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-o.width()/2,top:t.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.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,i,o;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),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_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,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),i=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(r,n):Math.max(r,n)),o[t]=n),n!==i&&!1!==this._trigger("slide",e,this._uiHash(t,n,o))&&(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,i,o;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,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(t,n){var r,i=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)&&(i=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=i-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,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var n,r,i,o=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,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):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+i);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(t,o,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"))}}})})?r.apply(t,i):r)||(e.exports=o)},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={};function v(){}function m(){}function b(){}var y={};u(y,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(I([])));_&&_!==n&&r.call(_,o)&&(y=_);var x=b.prototype=v.prototype=Object.create(y);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=b,u(x,"constructor",b),u(b,"constructor",m),m.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(k.prototype),u(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,s,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3609:function(e){"use strict";e.exports=jQuery},9089:function(e,t,n){"use strict";n.d(t,{Mo:function(){return i},Cb:function(){return u},IO:function(){return m},SB:function(){return f}});var r,i=function(e){return function(t){return"function"==typeof t?function(e,t){return window.customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){window.customElements.define(e,t)}}}(e,t)}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(t,n){return void 0!==n?function(e,t,n){t.constructor.createProperty(n,e)}(e,t,n):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)}}}(e,t)}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return u(l(l({},e),{},{state:!0}))}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="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 m(e,t){return r=(n={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 i="symbol"==v(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[i]&&(this[i]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[i]}}return r}}).finisher,i=n.descriptor,function(e,t){var n;if(void 0===t){var o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,a=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:p(p({},e),{},{key:o});return null!=r&&(a.finisher=function(e){r(e,o)}),a}var s=e.constructor;void 0!==i&&Object.defineProperty(e,t,i(t)),null==r||r(s,t)};var n,r,i}n(2526),n(1817),n(1539),n(7941),n(7327),n(5003),n(4747),n(9337),n(9601),n(2165),n(6992),n(8783),n(3948),n(8674),n(5666),null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements},871:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{oi:function(){return q},iv:function(){return h},dy:function(){return j.dy},Ld:function(){return j.Ld},sY:function(){return j.sY},YP:function(){return j.YP}}),n(5666),n(9653),n(6992),n(1532),n(1539),n(8783),n(3948),n(8674),n(4747),n(561),n(2526),n(1817),n(489),n(2222),n(6210),n(189),n(5069),n(4944),n(3792),n(5743),n(9714),n(2419),n(2165),n(1038),n(7042),n(8309),n(4916),n(5827),n(1249);var o,a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),u=new Map,c=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,n!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}var t,n;return t=e,(n=[{key:"styleSheet",get:function(){var e=u.get(this.cssText);return a&&void 0===e&&(u.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}},{key:"toString",value:function(){return this.cssText}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=function(e){return new c("string"==typeof e?e:e+"",s)},h=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 i=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 c(i,s)},f=function(e,t){a?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))},d=a?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",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 r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.cssRules);try{for(i.s();!(t=i.n()).done;)n+=t.value.cssText}catch(e){i.e(e)}finally{i.f()}return l(n)}(e):e};function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(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 v(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){var t="function"==typeof Map?new Map:void 0;return(x=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return P(e,arguments,S(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function P(e,t,n){return(P=k()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&C(i,n.prototype),i}).apply(null,arguments)}function k(){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 C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=window.trustedTypes,E=T?T.emptyScript:"",I=window.reactiveElementPolyfillSupport,R={toAttribute:function(e,t){switch(t){case Boolean:e=e?E: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}},O=function(e,t){return t!==e&&(t==t||e==e)},A={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:O},M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(c,e);var t,n,r,i,o,a,s,u=(t=c,n=k(),function(){var e,r=S(t);if(n){var i=S(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return _(this,e)});function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this))._$Et=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Ei=null,e.o(),e}return r=c,o=[{key:"addInitializer",value:function(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,r){var i=e._$Eh(r,n);void 0!==i&&(e._$Eu.set(i,r),t.push(i))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==b(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 i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||A}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=p([].concat(g(Object.getOwnPropertyNames(n)),g(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}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=p(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.unshift(d(i))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(d(e));return t}},{key:"_$Eh",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}],(i=[{key:"o",value:function(){var e,t=this;this._$Ep=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).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._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}},{key:"_$Em",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Et.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 f(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._$Eg)||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._$Eg)||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:"_$ES",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A,o=this.constructor._$Eh(e,i);if(void 0!==o&&!0===i.reflect){var a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:R.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}},{key:"_$AK",value:function(e,t){var n,r,i,o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){var s=o.getPropertyOptions(a),u=s.converter,c=null!==(i=null!==(r=null===(n=u)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof u?u:null)&&void 0!==i?i:R.fromAttribute;this._$Ei=a,this[a]=c(t,s.type),this._$Ei=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||O)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$E_())}},{key:"_$E_",value:(a=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$Ep;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=a.apply(e,t);function o(e){y(i,n,r,o,s,"next",e)}function s(e){y(i,n,r,o,s,"throw",e)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((function(e,n){return t[n]=e})),this._$Et=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$Eg)||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._$EU()}catch(e){throw n=!1,this._$EU(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$Eg)||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:"_$EU",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Ep}},{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._$ES(n,t[n],e)})),this._$EC=void 0),this._$EU()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}])&&w(r.prototype,i),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(x(HTMLElement));M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==I||I({ReactiveElement:M}),(null!==(o=globalThis.reactiveElementVersions)&&void 0!==o?o:globalThis.reactiveElementVersions=[]).push("1.3.0");var $,L,j=n(2385);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})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(){return(B="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=F(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function F(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=V(e)););return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(4819),n(5003);var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(a,e);var t,n,r,i,o=(r=a,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=V(r);if(i){var n=V(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return z(this,e)});function a(){var e;return N(this,a),(e=o.apply(this,arguments)).renderOptions={host:H(e)},e._$Dt=void 0,e}return t=a,(n=[{key:"createRenderRoot",value:function(){var e,t,n=B(V(a.prototype),"createRenderRoot",this).call(this);return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}},{key:"update",value:function(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),B(V(a.prototype),"update",this).call(this,e),this._$Dt=(0,j.sY)(t,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;B(V(a.prototype),"connectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;B(V(a.prototype),"disconnectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return j.Jb}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(M);q.finalized=!0,q._$litElement$=!0,null===($=globalThis.litElementHydrateSupport)||void 0===$||$.call(globalThis,{LitElement:q});var X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:q}),(null!==(L=globalThis.litElementVersions)&&void 0!==L?L:globalThis.litElementVersions=[]).push("3.2.0")},8150:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Xe:function(){return s},pX:function(){return o},XM:function(){return a}}),n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),n(1038),n(7042),n(8309),n(4916);var o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a=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}}},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{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 r(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 r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2385:function(e,t,n){"use strict";var r;function i(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&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(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)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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})(e)}n.d(t,{Al:function(){return J},dy:function(){return $},Jb:function(){return j},Ld:function(){return D},sY:function(){return U},YP:function(){return L}}),n(5743),n(7042),n(2165),n(6992),n(1539),n(8783),n(3948),n(2526),n(1817),n(4129),n(4916),n(4603),n(9714),n(6755),n(7852),n(3123),n(8309),n(3290),n(1038),n(489),n(2419);var v=globalThis.trustedTypes,m=v?v.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,b="lit$".concat((Math.random()+"").slice(9),"$"),y="?"+b,w="<".concat(y,">"),_=document,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.createComment(e)},P=function(e){return null===e||"object"!=g(e)&&"function"!=typeof e},k=Array.isArray,C=function(e){var t;return k(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,E=/>/g,I=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,R=/'/g,O=/"/g,A=/^(?:script|style|textarea|title)$/i,M=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:e,strings:t,values:r}}},$=M(1),L=M(2),j=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),N=new WeakMap,U=function(e,t,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new V(t.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(e),a},B=_.createTreeWalker(_,129,null,!1),F=function(e,t){for(var n,r=e.length-1,i=[],o=2===t?"<svg>":"",a=S,s=0;s<r;s++){for(var u=e[s],c=void 0,l=void 0,h=-1,f=0;f<u.length&&(a.lastIndex=f,null!==(l=a.exec(u)));)f=a.lastIndex,a===S?"!--"===l[1]?a=T:void 0!==l[1]?a=E:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=I):void 0!==l[3]&&(a=I):a===I?">"===l[0]?(a=null!=n?n:S,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?I:'"'===l[3]?O:R):a===O||a===R?a=I:a===T||a===E?a=S:(a=I,n=void 0);var d=a===I&&e[s+1].startsWith("/>")?" ":"";o+=a===S?u+w:h>=0?(i.push(c),u.slice(0,h)+"$lit$"+u.slice(h)+b+d):u+b+(-2===h?(i.push(void 0),s):d)}var p=o+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(p):p,i]},W=function(){function e(t,n){var r,i=t.strings,o=t._$litType$;f(this,e),this.parts=[];var a,s=0,u=0,d=i.length-1,p=this.parts,g=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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||l(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.")}()}(F(i,o),2),m=g[0],w=g[1];if(this.el=e.createElement(m,n),B.currentNode=this.el.content,2===o){var _=this.el.content,P=_.firstChild;P.remove(),_.append.apply(_,function(e){if(Array.isArray(e))return h(e)}(a=P.childNodes)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||l(a)||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.")}())}for(;null!==(r=B.nextNode())&&p.length<d;){if(1===r.nodeType){if(r.hasAttributes()){var k,C=[],S=c(r.getAttributeNames());try{for(S.s();!(k=S.n()).done;){var T=k.value;if(T.endsWith("$lit$")||T.startsWith(b)){var E=w[u++];if(C.push(T),void 0!==E){var I=r.getAttribute(E.toLowerCase()+"$lit$").split(b),R=/([.?@])?(.*)/.exec(E);p.push({type:1,index:s,name:R[2],strings:I,ctor:"."===R[1]?X:"?"===R[1]?G:"@"===R[1]?Z:q})}else p.push({type:6,index:s})}}}catch(e){S.e(e)}finally{S.f()}for(var O=0,M=C;O<M.length;O++){var $=M[O];r.removeAttribute($)}}if(A.test(r.tagName)){var L=r.textContent.split(b),j=L.length-1;if(j>0){r.textContent=v?v.emptyScript:"";for(var D=0;D<j;D++)r.append(L[D],x()),B.nextNode(),p.push({type:2,index:++s});r.append(L[j],x())}}}else if(8===r.nodeType)if(r.data===y)p.push({type:2,index:s});else for(var N=-1;-1!==(N=r.data.indexOf(b,N+1));)p.push({type:7,index:s}),N+=b.length-1;s++}}return p(e,null,[{key:"createElement",value:function(e,t){var n=_.createElement("template");return n.innerHTML=e,n}}]),e}();function z(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===j)return t;var u=void 0!==s?null===(n=a._$Cl)||void 0===n?void 0:n[s]:a._$Cu,c=P(t)?void 0:t._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(e))._$AT(e,a,s),void 0!==s?(null!==(i=(o=a)._$Cl)&&void 0!==i?i:o._$Cl=[])[s]=u:a._$Cu=u),void 0!==u&&(t=z(e,u._$AS(e,t.values),u,s)),t}var H=function(){function e(t,n){f(this,e),this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=n}return p(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"p",value:function(e){var t,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:_).importNode(r,!0);B.currentNode=o;for(var a=B.nextNode(),s=0,u=0,c=i[0];void 0!==c;){if(s===c.index){var l=void 0;2===c.type?l=new V(a,a.nextSibling,this,e):1===c.type?l=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(l=new K(a,this,e)),this.v.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=B.nextNode(),s++)}return o}},{key:"m",value:function(e){var t,n=0,r=c(this.v);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}catch(e){r.e(e)}finally{r.f()}}}]),e}(),V=function(){function e(t,n,r,i){var o;f(this,e),this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cg=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return p(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._$Cg}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;e=z(this,e,t),P(e)?e===D||null==e||""===e?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==j&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):C(e)?this.S(e):this.$(e)}},{key:"M",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}},{key:"k",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}},{key:"$",value:function(e){this._$AH!==D&&P(this._$AH)?this._$AA.nextSibling.data=e:this.k(_.createTextNode(e)),this._$AH=e}},{key:"T",value:function(e){var t,n=e.values,r=e._$litType$,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=W.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.m(n);else{var o=new H(i,this),a=o.p(this.options);o.m(n),this.k(a),this._$AH=o}}},{key:"_$AC",value:function(e){var t=N.get(e.strings);return void 0===t&&N.set(e.strings,t=new W(e)),t}},{key:"S",value:function(t){k(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new e(this.M(x()),this.M(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(e){a.e(e)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{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._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}]),e}(),q=function(){function e(t,n,r,i,o){f(this,e),this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=D}return p(e,[{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,i=this.strings,o=!1;if(void 0===i)e=z(this,e,t,0),(o=!P(e)||e!==this._$AH&&e!==j)&&(this._$AH=e);else{var a,s,u=e;for(e=i[0],a=0;a<i.length-1;a++)(s=z(this,u[n+a],t,a))===j&&(s=this._$AH[a]),o||(o=!P(s)||s!==this._$AH[a]),s===D?e=D:e!==D&&(e+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.C(e)}},{key:"C",value:function(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),X=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=3,e}return p(n,[{key:"C",value:function(e){this.element[this.name]=e===D?void 0:e}}]),n}(q),Y=v?v.emptyScript:"",G=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=4,e}return p(n,[{key:"C",value:function(e){e&&e!==D?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}]),n}(q),Z=function(e){i(n,e);var t=a(n);function n(e,r,i,o,a){var s;return f(this,n),(s=t.call(this,e,r,i,o,a)).type=5,s}return p(n,[{key:"_$AI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((e=null!==(t=z(this,e,n,0))&&void 0!==t?t:D)!==j){var r=this._$AH,i=e===D&&r!==D||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==D&&(r===D||i);i&&this.element.removeEventListener(this.name,this,r),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)}}]),n}(q),K=function(){function e(t,n,r){f(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return p(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){z(this,e)}}]),e}(),J={L:"$lit$",P:b,V:y,I:1,N:F,R:H,j:C,D:z,H:V,F:q,O:G,W:Z,B:X,Z:K},Q=window.litHtmlPolyfillSupport;null==Q||Q(W,V),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.2")}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(e,t,n,r){if(!t){var i=1/0;for(u=0;u<deferred.length;u++){t=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<t.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[a])}))?t.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[t,n,r]},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={898:0};__webpack_require__.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0;return __webpack_require__.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 __webpack_exports__=__webpack_require__(920);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
2
+ (function(){var __webpack_modules__={920:function(e,t,n){"use strict";n(5666),n(1539),n(9714),n(5827),n(2222),n(1249),n(6833),n(8674),n(7327),n(7941),n(4916),n(6992),n(8783),n(3948),n(1637),n(4765),n(7042),n(4747),n(9826),n(6699),n(2023),n(1058),n(3123),n(5306),n(9600),n(2526),n(1817),n(2165),n(1038),n(8309),n(3762),n(6891),n(6177),n(5557);var r=n(5685);function i(e,t,n,r,i,o){var a,s=(a=e.prototype[t],function(){return a.apply(o(this),arguments)});Object.defineProperty(r.prototype,i,{get:function(){return s},set:function(r){e.prototype[t]=function(){var t=this instanceof e?n(this):this;return r.apply(t,arguments)},s=r}})}n(6227);var o={fragmentChange:"fragmentChange",PostInit:"PostInit",stop:"stop",resize:"resize",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){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=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"]}var t,n;return t=e,(n=[{key:"controlFor",value:function(e){var t=this.br.options.controls[e];return t.visible?t.template?"<li>".concat(t.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(t.className,'" title="').concat(t.label,'">\n <div class="icon icon-').concat(t.iconClassName,'"></div>\n <span class="tooltip">').concat(t.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["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)})),i=r.map((function(e){return e.mode}));n.excludedModes.includes(t.mode)&&t.switchMode(i[0]);for(var s=i.indexOf(t.mode),u=0;u<=s;u++)i.push(i.shift());r.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(o.PostInit,(function(){var o=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=i.shift(),s=r.find((function(e){return e.mode===o})),u=r.find((function(e){return e.mode===i[0]}));i.push(o),t.viewModeOrder=i,e.updateViewModeButton(a(n.currentTarget),u.className,u.title),t.switchMode(s.mode)})),s=r.find((function(e){return e.mode===i[0]}));e.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).end().find(".tooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMinimumNavbarControls():this.showMaximumNavbarControls())}},{key:"showMinimumNavbarControls",value:function(){this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,r="rl"===t.pageProgression,i=r?"book_flip_next":"book_flip_prev",o=r?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(i),this.br.options.controls.bookRight.className="book_right ".concat(o),t.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=a('<div class="BRnav BRnavDesktop">\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 <p><span class=\'BRcurrentpage\'></span></p>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),this.$root.append(this.$nav),t.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:t.getNumLeafs()-1,value:t.currentIndex(),range:"min"});return s.on("slide",(function(t,n){return e.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return e.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):t.jumpToIndex(r.value),!0})),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.getPageNum(e),r=(t.getPageProp(e,"pageType"),t.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=t.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return c(e,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e))}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",e)}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t,n,r,i){if("n"==n[0])return"(".concat(e+1," of ").concat(t,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}var l={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:"fast",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,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{textSelection:null},vars:{},data:[],getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{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:"Toggle fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,enableFSLogoShortcut:!1,autoResize:!0,useSrcSet:!1},h=n(105),f=(n(6977),n(4581),n(3609));function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t}var t,n;return t=e,(n=[{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=f('\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");return e.bookUrl&&e.options.enableBookTitleLink?n.append(f("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle),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(),this.updateToolbarZoom(n.reduce),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(),f('<div style="display: none;"></div>').append(m()).append(v()).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(o.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(o.stop)}})}},{key:"updateToolbarZoom",value:function(e){var t,n=this.br,r=n.mode==n.constMode2up?n.twoPage.autofit:n.onePage.autofit;t=r?r.slice(0,1).toUpperCase()+r.slice(1):(100/e).toFixed(2).replace(/0+$/,"").replace(/\.$/,"")+"%",n.$(".BRzoom").text(t)}},{key:"buildShareDiv",value:function(e){var t=this,n=this.br,r=document.location+"",i=(r+"").replace(/#.*/,""),o=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(i,'"/>\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=f('\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(o,'\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=f(e.target).parents("form").first(),r={};r.mode=f(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.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(){b("https://www.facebook.com/sharer.php?"+f.param({u:t._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){b("https://twitter.com/intent/tweet?"+f.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=f('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(f('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,r.escapeHTML)(t.bookTitle),'" />\n </div>')));var i,o=f('<div class="BRinfoRightCol">'),a=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 d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,h=s.value,p="Title"===l?(0,r.escapeHTML)(h):h;o.append(f('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(p,"</div>\n </div>")))}}catch(e){a.e(e)}finally{a.f()}var g=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;g&&t.bookUrl&&o.append(f('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,r.escapeHTML)(g),"\n </a>\n </div>\n </div>")));var v=f('<div class="BRfloatFoot BRinfoFooter"></div>'),m=f('<div class="BRinfoW mv20-lg">').append([n,o,f('<br style="clear:both"/>')]);e.append(m,v).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}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function v(){return f('\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>')}function m(){return f('\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>')}function b(e,t,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-t/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,r,u)}function y(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 w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(2707),n(4553),n(6535),n(9244);var k=function(){function e(t){var n,r;_(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:l.ppi,this._medianPageSize=null,this._medianPageSizePixels=null,this._getDataFlattenedCached=null}return P(e,[{key:"getMedianPageSize",value:function(){if(this._medianPageSizePixels)return this._medianPageSizePixels;for(var e=[],t=[],n=0;n<this.getNumLeafs();n++)e.push(this.getPageWidth(n)),t.push(this.getPageHeight(n));return e.sort(),t.sort(),this._medianPageSizePixels={width:e[Math.floor(e.length/2)],height:t[Math.floor(t.length/2)]},this._medianPageSizePixels}},{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],r=y(this.pagesIterator());try{for(r.s();!(e=r.n()).done;){var i=e.value;t.push(i.widthInches),n.push(i.heightInches)}}catch(e){r.e(e)}finally{r.f()}return t.sort(),n.sort(),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,r.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,r.clamp)(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 i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==e&&t.push(i);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){return this.getPageProp(e,"viewable",!0)?this.getPageProp(e,"uri"):"/bookreader/static/preview-default.png"}},{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.br.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 C(this,e%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.start,r=void 0===n?0:n,i=t.end,o=void 0===i?1/0:i,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a,r=Math.max(0,r),o=Math.min(o,this.getNumLeafs()),u=r;case 4:if(!(u<o)){e.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){e.next=8;break}return e.abrupt("continue",10);case 8:return e.next=10,c;case 10:u++,e.next=4;break;case 13:case"end":return e.stop()}}),e,this)}))},{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(i){return i.pageSide||(i.pageSide=null===e?2===r.length?"L":"R":"L"===e?"R":"L"),e=i.pageSide,!1===i.viewable?i.unviewablesStart=null===t?t=n:t:t=null,n++,i}))}));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(),i=isNaN(e)||e<0||e>=r.length;return i||void 0===r[e][t]?n:r[e][t]}}]),e}(),C=function(){function e(t,n){_(this,e),this.ppi=t._getDataProp(n,"ppi",t.ppi),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 P(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=y(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 i,o=y(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(e){o.e(e)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(e),o=r.decr(i),a=[],s=o;s>=1;s=r.decr(s))a.push(s);return a.map((function(e){return"".concat(t.getURI(e,n)," ").concat(i/e,"x")})).join(", ")}},{key:"findNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.combineConsecutiveUnviewables,r=void 0!==n&&n;if(0!=this.index){if(r){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var i=new e(this.book,this.index-1);return i.isViewable?i:i.findPrev({combineConsecutiveUnviewables:r})}return new e(this.book,this.index-1)}}}]),e}(),S=(n(4819),n(5003),n(6649),n(6078),n(561),n(3680),n(3706),n(2703),n(9601),n(2419),n(3371),n(9653),n(489),n(9089)),T=n(871),E=(n(189),n(2385)),I=n(8150);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})(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=(0,I.XM)(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&&M(e,t)}(a,e);var t,n,r,i,o=(r=a,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=L(r);if(i){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function a(e){var t,n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),e.type!==I.pX.ATTRIBUTE||"style"!==e.name||(null===(n=e.strings)||void 0===n?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return $(t)}return t=a,(n=[{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.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(e,t){var n=this,r=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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(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)?O(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.ct){for(var o in this.ct=new Set,r)this.ct.add(o);return this.render(r)}for(var a in this.ct.forEach((function(e){null==r[e]&&(n.ct.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")})),r){var s=r[a];null!=s&&(this.ct.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return E.Jb}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(I.Xe)),D=(n(2420),n(840)),N=n.n(D);function U(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){U(o,r,i,a,s,"next",e)}function s(e){U(o,r,i,a,s,"throw",e)}a(void 0)}))}}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=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),W(this,"_preventEvent",(function(e){return e.preventDefault(),!1})),W(this,"_pinchStart",(function(){var e,t;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.detachCtrlZoom(),null===(e=(t=n.mode).detachScrollListeners)||void 0===e||e.call(t)})),W(this,"_pinchMove",function(){var e=B(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.lastEvent=t,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(e){return r=e})),n.pinchMoveFrame=n.bufferFn((function(){n.updateScaleCenter({clientX:n.lastEvent.center.x,clientY:n.lastEvent.center.y}),n.mode.scale*=n.lastEvent.scale/n.oldScale,n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null,r()})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),W(this,"_pinchEnd",B(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.pinchMoveFramePromise;case 2:n.mode.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 8:case"end":return e.stop()}}),e)})))),W(this,"_pinchCancel",B(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._pinchEnd();case 2:case"end":return e.stop()}}),e)})))),W(this,"_handleCtrlWheel",(function(e){if(e.ctrlKey){e.preventDefault();var t=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(e),n.mode.scale*=1-Math.sign(e.deltaY)*t}})),this.mode=t,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete N().defaults.cssProps.userSelect,this.hammer=new(N().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(N().Pinch))}var t,n;return t=e,(n=[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._preventEvent),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._preventEvent),this.hammer.on("pinchstart",this._pinchStart),this.hammer.on("pinchmove",this._pinchMove),this.hammer.on("pinchend",this._pinchEnd),this.hammer.on("pinchcancel",this._pinchCancel),this.attached=!0)}},{key:"detach",value:function(){this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._preventEvent),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._preventEvent),this.hammer.off("pinchstart",this._pinchStart),this.hammer.off("pinchmove",this._pinchMove),this.hammer.off("pinchend",this._pinchEnd),this.hammer.off("pinchcancel",this._pinchCancel),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.mode.scaleCenter={x:(t-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}}])&&F(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=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),V(this,"clientWidth",100),V(this,"clientHeight",100),V(this,"boundingClientRect",{top:0,left:0}),V(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})),V(this,"debouncedUpdateClientSizes",(0,r.debounce)(this.updateClientSizes,150,!1)),this.element=t}var t,n;return t=e,(n=[{key:"attachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.removeEventListener("resize",this.debouncedUpdateClientSizes)}}])&&H(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),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,r.key,r)}}var Y,G=function(){function e(t,n){var r,i,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=function(){o.element.classList.add(o.className),clearTimeout(o.timeout),o.timeout=setTimeout((function(){o.element.classList.remove(o.className)}),600)},(r="onScroll")in this?Object.defineProperty(this,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[r]=i,this.element=t,this.className=n,this.timeout=null}var t,n;return t=e,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&X(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();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})(e)}function K(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||le(e)||ue(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 J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(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 ee(e)}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(){te=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 i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,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=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ie(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},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=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,i[o])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],t);n.push.apply(n,c)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.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){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||le(t)||ue(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.")}()).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=String(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=se(e.key),r=String(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 i=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:ae(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=String(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=ae(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 ne(e){var t,n=se(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 re(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function ie(e){return e.decorators&&e.decorators.length}function oe(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function ae(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 se(e){var t=function(e,t){if("object"!==Z(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Z(t)?t:String(t)}function ue(e,t){if(e){if("string"==typeof e)return ce(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)?ce(e,t):void 0}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function le(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function he(){return(he="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=fe(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function fe(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=de(e)););return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=function(e,t,n,r){var i=te(),o=t((function(e){i.initializeInstanceElements(e,a.elements)}),n),a=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(oe(o.descriptor)||oe(i.descriptor)){if(ie(o)||ie(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(ie(o)){if(ie(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}re(o,i)}else t.push(o)}return t}(o.d.map(ne)),e);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,S.Mo)("br-mode-1up")],(function(e,t){var n=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&&J(e,t)}(a,t);var n,r,i,o=(r=a,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=de(r);if(i){var n=de(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Q(this,e)});function a(t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),e(ee(r)),r.book=t,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(t);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,S.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"screenDPI",value:function(){return(0,r.calcScreenDPI)()}},{kind:"field",key:"realWorldReduce",value:function(){return 1}},{kind:"field",decorators:[(0,S.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,S.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,S.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,S.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,S.IO)(".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.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,S.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new q(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new z(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new G(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]:{},r=n.smooth,i=void 0!==r&&r;i&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.worldUnitsToVisiblePixels(this.pageTops[e]-this.SPACING_IN/2),i&&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){he(de(n.prototype),"firstUpdated",this).call(this,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.pages=(0,r.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))),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.br.displayedIndices=this.visiblePages.map((function(e){return e.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br.updateNavIndexThrottled()),e.has("scale")){var t=e.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.updateViewportOnZoom(this.scale,t),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"connectedCallback",value:function(){he(de(n.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),he(de(n.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"worldUnitsToRenderedPixels",value:function(){var e=this;return function(t){return t*e.screenDPI/e.realWorldReduce}}},{kind:"field",key:"renderedPixelsToWorldUnits",value:function(){var e=this;return function(t){return t*e.realWorldReduce/e.screenDPI}}},{kind:"field",key:"renderedPixelsToVisiblePixels",value:function(){var e=this;return function(t){return t*e.scale}}},{kind:"field",key:"visiblePixelsToRenderedPixels",value:function(){var e=this;return function(t){return t/e.scale}}},{kind:"field",key:"worldUnitsToVisiblePixels",value:function(){var e=this;return function(t){return e.renderedPixelsToVisiblePixels(e.worldUnitsToRenderedPixels(t))}}},{kind:"field",key:"visiblePixelsToWorldUnits",value:function(){var e=this;return function(t){return e.renderedPixelsToWorldUnits(e.visiblePixelsToRenderedPixels(t))}}},{kind:"method",key:"render",value:function(){var e,t,n=this;return(0,T.dy)(Y||(e=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],t||(t=e.slice(0)),Y=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),j(this.worldStyle),this.renderedPages.map((function(e){return n.renderPage(e)})))}},{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.worldUnitsToRenderedPixels,r=e.worldUnitsToVisiblePixels,i=e.visiblePixelsToWorldUnits(e.htmlDimensionsCacher.clientWidth),o=n(t.widthInches),a=n(t.heightInches),s=Math.max(e.SPACING_IN,(i-t.widthInches)/2),u=e.pageTops[t.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=e.createPageContainer(t).update({dimensions:{width:o,height:a,top:0,left:0},reduce:t.width/r(t.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",e.visiblePages.includes(t)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var e=this;return function(){var t=e.scrollTop,n=e.scrollLeft,r=e.htmlDimensionsCacher.clientWidth,i=e.htmlDimensionsCacher.clientHeight,o=e.visiblePixelsToWorldUnits;e.visibleRegion={top:o(t),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t;return[null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat(K(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,r.throttle)((function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(e,t){var n,r={},i=t,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ue(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+t}}catch(e){o.e(e)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(e){var t=this.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.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,K(this.pages.map((function(e){return e.widthInches}))))+2*this.SPACING_IN,height:(0,r.sum)(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,i=e.visibleRegion.top;return n<=i+e.visibleRegion.height&&r>=i}))}},{kind:"method",key:"updateViewportOnZoom",value:function(e,t){var n=this,r=n.scrollTop,i=n.scrollLeft,o=this.htmlDimensionsCacher.clientWidth,a=this.htmlDimensionsCacher.clientHeight,s=e/t,u=this.scaleCenter.x,c=this.scaleCenter.y,l=s*(i+u*o),h=s*(r+c*a);n.scrollTop=h-c*a,n.scrollLeft=l-u*o,this.updateVisibleRegion()}},{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()}}}]}}),T.oi),ge=n(3609);function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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 be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(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 _e={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},xe=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ve(this,e),be(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)})),be(this,"_dragContinueHandler",(function(e){if(n._shouldAbort())return!0;var t=we(e),r=t.left-n.lastCoord.left,i=t.top-n.lastCoord.top,o=n.settings.scrollWindow?ge(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=t,n.settings.preventDefault?(e.preventDefault(),!1):void 0})),be(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=ge(t),this.settings=ge.extend({},_e,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=ye(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=ye(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var t,n;return t=e,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&me(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Pe=n(3609);function ke(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ke(o,r,i,a,s,"next",e)}function s(e){ke(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Te=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.mode1UpLit=new pe(n,t),this.$el=Pe(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var t,n;return t=e,(n=[{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(Ce(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.everShown){n.next=7;break}return e.mode1UpLit.initFirstRender(t),e.everShown=!0,e.mode1UpLit.requestUpdate(),n.next=6,e.mode1UpLit.updateComplete;case 6:new xe(e.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:e.mode1UpLit.jumpToIndex(t);case 8:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e,t,n,r){var i=Math.abs(this.br.currentIndex()-e),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(e,{smooth:o})}},{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()}}])&&Se(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ee=(n(9337),n(3609));function Ie(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Me=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.leafEdgeL=null,this.leafEdgeR=null,this.pageContainers={},this.smoothZoomer=null,this._scale=1,this.scaleCenter={x:.5,y:.5},this.scrollClassAdder=null}var t,n;return t=e,(n=[{key:"$container",get:function(){return this.br.refs.$brContainer[0]}},{key:"$visibleWorld",get:function(){var e;return null===(e=this.br.refs.$brTwoPageView)||void 0===e?void 0:e[0]}},{key:"scale",get:function(){return this._scale},set:function(e){this.$visibleWorld.style.transform="scale(".concat(e,")"),this.updateViewportOnZoom(e,this._scale),this._scale=e}},{key:"jumpToIndex",value:function(e){e<Math.min(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)?this.flipBackToIndex(e):e>Math.max(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)&&this.flipFwdToIndex(e)}},{key:"drawLeafs",value:function(){var e=this.br.refs.$brTwoPageView,t=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;this.createPageContainer(t).$container.css(this.leftLeafCss).appendTo(e),this.createPageContainer(n).$container.css(this.rightLeafCss).appendTo(e),this.displayedIndices=[this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR],this.br.displayedIndices=this.displayedIndices,this.br.updateToolbarZoom(this.br.reduce),this.br.trigger("pageChanged")}},{key:"zoom",value:function(e){this.br.stopFlipAnimations(),this.calculateReductionFactors();var t=this.br.nextReduce(this.br.reduce,e,this.br.twoPage.reductionFactors);if(this.br.reduce!=t.reduce||this.br.twoPage.autofit!=t.autofit){this.br.twoPage.autofit=t.autofit,this.br.reduce=t.reduce,this.br.pageScale=this.br.reduce;var n=this.getViewCenter();this.prepareTwoPageView(n.percentageX,n.percentageY,!0)}}},{key:"resizeSpread",value:function(){var e,t,n,r;this.br.resizeBRcontainer(!1),this.calculateSpreadSize(),null===(e=this.br.refs)||void 0===e||e.$brTwoPageView.css(this.mainContainerCss),this.centerView(),Ee(this.br.twoPage.coverDiv).css(this.spreadCoverCss);var i=this.br.refs.$brTwoPageView;null===(t=i.find(".BRleafEdgeR"))||void 0===t||t.css(this.leafEdgeRCss),null===(n=i.find(".BRleafEdgeL"))||void 0===n||n.css(this.leafEdgeLCss),null===(r=i.find(".BRgutter"))||void 0===r||r.css(this.spineCss);var o=this.br.twoPage.currentIndexL,a=this.br.twoPage.currentIndexR;this.pageContainers[o].$container.css(this.leftLeafCss),this.pageContainers[a].$container.css(this.rightLeafCss)}},{key:"prepareTwoPageView",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.br.reduce,a=this.br.displayedIndices;this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css("overflow","auto");var s=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),u=this.book.getSpreadIndices(s);this.br.twoPage.currentIndexL=u[0],this.br.twoPage.currentIndexR=u[1],this.calculateSpreadSize();var c=o==this.br.reduce,l=a==this.br.displayedIndices,h=!l||l&&!c;(i||h)&&(this.prunePageContainers(),this.prefetch()),this.br.refs.$brTwoPageView=this.br.refs.$brTwoPageView||Ee('<div class="BRtwopageview"></div>');var f=this.br.refs.$brTwoPageView;f.empty(),f[0].style.transformOrigin="0 0",this.br.refs.$brContainer.append(f),this.dragScrollable=this.dragScrollable||new xe(this.br.refs.$brContainer[0],{preventDefault:!0,dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),this.attachMouseHandlers(),null===(n=this.br.refs)||void 0===n||n.$brTwoPageView.css(this.mainContainerCss),this.br.twoPage.totalWidth<this.br.refs.$brContainer.prop("clientWidth")&&(e=.5),this.br.twoPage.totalHeight<this.br.refs.$brContainer.prop("clientHeight")&&(t=.5),this.centerView(e,t),this.br.twoPage.coverDiv=document.createElement("div"),Ee(this.br.twoPage.coverDiv).attr("class","BRbookcover").css(this.spreadCoverCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeR=document.createElement("div"),this.leafEdgeR.className="BRleafEdgeR",Ee(this.leafEdgeR).css(this.leafEdgeRCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeL=document.createElement("div"),this.leafEdgeL.className="BRleafEdgeL",Ee(this.leafEdgeL).css(this.leafEdgeLCss).appendTo(this.br.refs.$brTwoPageView);var d=document.createElement("div");Ee(d).attr("class","BRgutter").css(this.spineCss).appendTo(this.br.refs.$brTwoPageView),this.preparePopUp(),this.br.displayedIndices=[],this.drawLeafs(),this.br.updateToolbarZoom(this.br.reduce),this.br.updateBrClasses(),this.smoothZoomer=this.smoothZoomer||new z(this),this.smoothZoomer.attach(),this.scrollClassAdder||(this.scrollClassAdder=new G(this.$container,"BRscrolling-active")),this.scrollClassAdder.detach(),this.scrollClassAdder.element=this.$container,this.scrollClassAdder.attach(),this.htmlDimensionsCacher=this.htmlDimensionsCacher||new q(this.$container)}},{key:"unprepare",value:function(){this.smoothZoomer.detach(),this.scrollClassAdder.detach()}},{key:"updateViewportOnZoom",value:function(e,t){var n,r,i=this.br.refs.$brContainer[0],o=i.scrollTop,a=i.scrollLeft,s=this.htmlDimensionsCacher.clientWidth,u=this.htmlDimensionsCacher.clientHeight,c=e/t,l=this.scaleCenter.x,h=this.scaleCenter.y,f=c*(a+l*s),d=c*(o+h*u);i.scrollTop=d-h*u,i.scrollLeft=f-l*s,null===(n=this.pageContainers[this.br.twoPage.currentIndexL])||void 0===n||n.update({reduce:this.br.reduce/e}),null===(r=this.pageContainers[this.br.twoPage.currentIndexR])||void 0===r||r.update({reduce:this.br.reduce/e})}},{key:"prunePageContainers",value:function(){for(var e in this.pageContainers)e!=this.br.twoPage.currentIndexL&&e!=this.br.twoPage.currentIndexR&&Ee(this.pageContainers[e].$container).remove(),(e<this.br.twoPage.currentIndexL-4||e>this.br.twoPage.currentIndexR+4)&&delete this.pageContainers[e]}},{key:"preparePopUp",value:function(){var e=this;this.br.twoPagePopUp=document.createElement("div"),this.br.twoPagePopUp.className="BRtwoPagePopUp",Ee(this.br.twoPagePopUp).css({zIndex:"1000"}).appendTo(this.br.refs.$brContainer),Ee(this.br.twoPagePopUp).hide();for(var t=[{$leafEdge:Ee(this.leafEdgeL),jumpIndexForPageX:this.jumpIndexForLeftEdgePageX.bind(this),leftOffset:function(){return 120-Ee(e.br.twoPagePopUp).width()}},{$leafEdge:Ee(this.leafEdgeR),jumpIndexForPageX:this.jumpIndexForRightEdgePageX.bind(this),leftOffset:function(){return-120}}],n=function(){var t=a[i],n=t.$leafEdge,s=t.jumpIndexForPageX,u=t.leftOffset;n.on("mouseenter",(function(){return Ee(e.br.twoPagePopUp).show()})),n.on("mouseleave",(function(){return Ee(e.br.twoPagePopUp).hide()})),n.on("click",(function(t){e.br.trigger(o.stop),e.br.jumpToIndex(s(t.pageX))})),n.on("mousemove",(function(t){var n=(0,r.clamp)(s(t.pageX),0,e.book.getNumLeafs()-1);Ee(e.br.twoPagePopUp).text("View ".concat(e.book.getPageName(n))),Ee(e.br.twoPagePopUp).css({left:"".concat(t.pageX-e.br.refs.$brContainer.offset().left+e.br.refs.$brContainer.scrollLeft()+u(),"px"),top:"".concat(t.pageY-e.br.refs.$brContainer.offset().top+e.br.refs.$brContainer.scrollTop(),"px")})}))},i=0,a=t;i<a.length;i++)n()}},{key:"setSpreadIndices",value:function(){var e=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),t=this.book.getSpreadIndices(e);this.br.twoPage.currentIndexL=t[0],this.br.twoPage.currentIndexR=t[1]}},{key:"calculateSpreadSize",value:function(){var e,t=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;e=this.br.twoPage.autofit?this.getIdealSpreadSize(t,n):this.getSpreadSizeFromReduce(t,n,this.br.reduce),this.br.twoPage.height=e.height||0,this.br.twoPage.width=e.width||0,this.br.twoPage.scaledWL=this.getPageWidth(t)||0,this.br.twoPage.scaledWR=this.getPageWidth(n)||0,this.br.twoPage.edgeWidth=e.totalLeafEdgeWidth,this.br.twoPage.leafEdgeWidthL=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),this.br.twoPage.leafEdgeWidthR=this.br.twoPage.edgeWidth-this.br.twoPage.leafEdgeWidthL,this.br.twoPage.bookCoverDivWidth=this.coverWidth(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR),this.br.twoPage.bookCoverDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding;var r=this.gutterOffsetForIndex(t),i=this.br.twoPage.scaledWL-r+this.br.twoPage.leafEdgeWidthL,o=this.br.twoPage.scaledWR+r+this.br.twoPage.leafEdgeWidthR,a=Math.max(i,o);this.br.twoPage.totalWidth=2*(a+this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.totalHeight=this.br.twoPage.height+2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.middle=this.br.twoPage.totalWidth>>1,this.br.twoPage.gutter=this.br.twoPage.middle+this.gutterOffsetForIndex(t),this.br.twoPage.bookCoverDivLeft=this.br.twoPage.gutter-this.br.twoPage.scaledWL-this.br.twoPage.leafEdgeWidthL-this.br.twoPage.coverInternalPadding,this.br.twoPage.bookCoverDivTop=this.br.twoPage.coverExternalPadding,this.br.twoPage.bookSpineDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding,this.br.twoPage.bookSpineDivLeft=this.br.twoPage.middle-(this.br.twoPage.bookSpineDivWidth>>1),this.br.twoPage.bookSpineDivTop=this.br.twoPage.bookCoverDivTop,this.br.reduce=e.reduce<0?this.br.reduce:e.reduce}},{key:"getIdealSpreadSize",value:function(e,t){var n,r={},i=this.book._getPageHeight(e),o=this.book._getPageWidth(e),a=this.book._getPageHeight(t),s=i/o,u=a/this.book._getPageWidth(t);n=Math.abs(s-1.5)<Math.abs(u-1.5)?s:u;var c=Math.floor(.1*this.book.getNumLeafs()),l=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(c,l);var h=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding)+r.totalLeafEdgeWidth,f=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding);return r.width=this.br.refs.$brContainer.width()-h>>1,r.width=r.width>10?r.width-10:1,r.height=this.br.refs.$brContainer.height()-f,r.height=r.height>15?r.height-15:1,r.height/n<=r.width?r.width=Math.floor(r.height/n)||1:r.height=Math.floor(r.width*n)||1,r.reduce=Math.round((i+a)/2/r.height),r}},{key:"getSpreadSizeFromReduce",value:function(e,t,n){var r={},i=Math.floor(.1*this.book.getNumLeafs()),o=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(i,o);var a=this.book._getPageWidth(e)+this.book._getPageWidth(t),s=this.book._getPageHeight(e)+this.book._getPageHeight(t);return r.height=Math.floor(s/2/this.br.reduce),r.width=Math.floor(a/2/this.br.reduce),r.reduce=n,r}},{key:"getAutofitReduce",value:function(){return this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce}},{key:"isZoomedIn",value:function(){var e=!1;return"auto"!=this.br.twoPage.autofit&&this.br.reduce<this.getAutofitReduce()&&(e=!0),e}},{key:"calculateReductionFactors",value:function(){this.br.twoPage.reductionFactors=this.br.reductionFactors.concat([{reduce:this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce,autofit:"auto"}]),this.br.twoPage.reductionFactors.sort(this.br._reduceSort)}},{key:"setCursor",value:function(){console.warn("Call to deprecated method, Mode2Up.setCursor. No-op.")}},{key:"flipBackToIndex",value:function(e){if(this.br.constMode1up!=this.br.mode&&!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==e){var t=this.br.twoPage,n=t.currentIndexL,r=t.currentIndexR,i=Math.min(n,r),o=this.book.getPage(i).findPrev({combineConsecutiveUnviewables:!0});if(!o)return;e=o.index,"R"==o.pageSide&&e--}this.br.updateNavIndexThrottled(e);var a=this.book.getSpreadIndices(e);a[0]<this.br.firstDisplayableIndex()||a[1]<this.br.firstDisplayableIndex()||(this.br.animating=!0,"rl"!=this.br.pageProgression?(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1])):(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])))}else alert("error: leafEdgeTmp should be null!")}},{key:"flipLeftToRight",value:function(e,t){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.br.twoPage.currentIndexL,i=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),o=this.br.leafEdgeWidth(e),a=i-o,s=this.getPageWidth(r),u=this.getPageWidth(e),c=this.getPageWidth(t),l=this.top(),h=this.br.twoPage.middle+this.gutterOffsetForIndex(e),f=this.br.refs.$brTwoPageView,d=h-s-a;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ee(this.br.leafEdgeTmp).css({width:"".concat(a,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(d,"px"),top:"".concat(l,"px"),zIndex:1e3}).appendTo(f),Ee(this.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-s-o,"px")});var p=this.pageContainers[r].$container.offset().left,g="".concat(f.prop("clientWidth")-p-this.pageContainers[r].$container.width()+f.offset().left-2,"px");this.pageContainers[r].$container.css({right:g,left:""}),Ee(this.br.leafEdgeTmp).animate({left:h},this.br.flipSpeed,"easeInSine"),this.pageContainers[r].$container.animate({width:"0px"},this.br.flipSpeed,"easeInSine",(function(){Ee(n.br.leafEdgeTmp).animate({left:"".concat(h+c,"px")},n.br.flipSpeed,"easeOutSine"),n.br.$(".BRgutter").css({left:"".concat(h-.5*n.br.twoPage.bookSpineDivWidth,"px")}),n.pageContainers[t].$container.animate({width:"".concat(c,"px")},n.br.flipSpeed,"easeOutSine",(function(){var r;n.pageContainers[e].$container.css("zIndex",2),Ee(n.leafEdgeR).css({width:"".concat(n.br.twoPage.edgeWidth-o,"px"),left:"".concat(h+c,"px")}),Ee(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-u-o,"px")}),Ee(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(u+c),"px"),left:"".concat(h-u-o-n.br.twoPage.coverInternalPadding,"px")}),Ee(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=e,n.br.twoPage.currentIndexR=t,n.br.twoPage.scaledWL=u,n.br.twoPage.scaledWR=c,n.br.twoPage.gutter=h,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[e,t],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(e-2),n.createPageContainer(t-2),n.createPageContainer(e-3),n.createPageContainer(t-3)}))}))}},{key:"createPageContainer",value:function(e){return this.pageContainers[e]||(this.pageContainers[e]=this.br._createPageContainer(e)),this.pageContainers[e].update({reduce:this.br.reduce/this.scale}),this.pageContainers[e]}},{key:"flipFwdToIndex",value:function(e){if(!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==e){var t=this.br.twoPage,n=t.currentIndexL,r=t.currentIndexR,i=Math.max(n,r),o=this.book.getPage(i).findNext({combineConsecutiveUnviewables:!0});if(!o)return;e=o.index}if(!(e>this.br.lastDisplayableIndex())){this.br.updateNavIndexThrottled(e),this.br.animating=!0;var a=this.book.getSpreadIndices(e);"rl"!=this.br.pageProgression?(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])):(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1]))}}else alert("error: leafEdgeTmp should be null!")}},{key:"flipRightToLeft",value:function(e,t){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),i=this.br.twoPage.edgeWidth-r,o=this.br.leafEdgeWidth(e),a=this.br.twoPage.edgeWidth-o,s=i-a,u=this.top(),c=this.getPageWidth(this.br.twoPage.currentIndexR),l=this.br.twoPage.middle+this.gutterOffsetForIndex(e),h=this.br.refs.$brTwoPageView;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ee(this.br.leafEdgeTmp).css({width:"".concat(s,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(l+c,"px"),top:"".concat(u,"px"),zIndex:1e3}).appendTo(h);var f=this.getPageWidth(e),d=this.getPageWidth(t);Ee(this.leafEdgeR).css({width:"".concat(a,"px"),left:"".concat(l+d,"px")});var p=this.br.flipSpeed;Ee(this.br.leafEdgeTmp).animate({left:l},p,"easeInSine"),this.pageContainers[this.br.twoPage.currentIndexR].$container.animate({width:"0px"},p,"easeInSine",(function(){n.br.$("BRgutter").css({left:"".concat(l-.5*n.br.twoPage.bookSpineDivWidth,"px")}),Ee(n.br.leafEdgeTmp).animate({left:"".concat(l-f-s,"px")},p,"easeOutSine"),n.pageContainers[e].$container.animate({width:"".concat(f,"px")},p,"easeOutSine",(function(){var r;n.pageContainers[t].$container.css("zIndex",2),Ee(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(l-f-o,"px")}),Ee(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(f+d),"px"),left:"".concat(l-f-o-n.br.twoPage.coverInternalPadding,"px")}),Ee(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=e,n.br.twoPage.currentIndexR=t,n.br.twoPage.scaledWL=f,n.br.twoPage.scaledWR=d,n.br.twoPage.gutter=l,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[e,t],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(e+2),n.createPageContainer(t+2),n.createPageContainer(e+3),n.createPageContainer(t+3)}))}))}},{key:"attachMouseHandlers",value:function(){var e=this;this.br.refs.$brTwoPageView.off("mouseup").on("mouseup",(function(t){if(3==t.which)return!e.br.protected;var n=Ee(t.target).closest(".BRpagecontainer");"L"==n.data("side")?e.br.left():"R"==n.data("side")&&e.br.right()}))}},{key:"prepareFlipLeftToRight",value:function(e,t){this.createPageContainer(e,!0),this.createPageContainer(t,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(e),i=this.book._getPageWidth(e),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(e),c={left:"".concat(u-s,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1};this.pageContainers[e].$container.css(c).appendTo(n);var l={left:"".concat(u,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0",zIndex:2};this.pageContainers[t].$container.css(l).appendTo(n)}},{key:"prepareFlipRightToLeft",value:function(e,t){this.createPageContainer(e,!0),this.createPageContainer(t,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(t),i=this.book._getPageWidth(t),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(e);Ee(this.pageContainers[t].$container).css({left:"".concat(u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1}).appendTo(n),r=this.book._getPageHeight(e),i=this.book._getPageWidth(e),s=this.br.twoPage.height*i/r,Ee(this.pageContainers[e].$container).css({right:"".concat(n.prop("clientWidth")-u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0px",zIndex:2}).appendTo(n)}},{key:"getPageWidth",value:function(e){var t=this.book._getPageHeight(e),n=this.book._getPageWidth(e);return Math.floor(this.br.twoPage.height*n/t)}},{key:"gutter",value:function(){return this.br.twoPage.middle+this.gutterOffsetForIndex(this.br.twoPage.currentIndexL)}},{key:"top",value:function(){return this.br.twoPage.coverExternalPadding+this.br.twoPage.coverInternalPadding}},{key:"coverWidth",value:function(e){return e+this.br.twoPage.edgeWidth+2*this.br.twoPage.coverInternalPadding}},{key:"getViewCenter",value:function(){var e=this.br.refs,t=e.$brContainer,n=e.$brTwoPageView,r={},i=t.offset(),o=n.offset();return r.percentageX=(i.left-o.left+(t.prop("clientWidth")>>1))/this.br.twoPage.totalWidth,r.percentageY=(i.top-o.top+(t.prop("clientHeight")>>1))/this.br.twoPage.totalHeight,r}},{key:"centerView",value:function(e,t){void 0===e&&(e=.5),void 0===t&&(t=.5);var n=this.br.refs.$brTwoPageView.width(),r=this.br.refs.$brContainer.prop("clientWidth"),i=e*n,o=this.br.refs.$brTwoPageView.height(),a=this.br.refs.$brContainer.prop("clientHeight"),s=t*o;n<r?this.br.refs.$brTwoPageView.css("left","".concat((r>>1)-i,"px")):(this.br.refs.$brTwoPageView.css("left",0),this.br.refs.$brContainer.scrollLeft(i-(r>>1))),o<a?this.br.refs.$brTwoPageView.css("top","".concat((a>>1)-s,"px")):(this.br.refs.$brTwoPageView.css("top",0),this.br.refs.$brContainer.scrollTop(s-(a>>1)))}},{key:"flipAreaHeight",value:function(){return Math.floor(this.br.twoPage.height)}},{key:"flipAreaWidth",value:function(){var e=.15*this.br.twoPage.width;return Math.floor((0,r.clamp)(e,10,100))}},{key:"flipAreaTop",value:function(){return Math.floor(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding)}},{key:"leftFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter-this.br.twoPage.scaledWL)}},{key:"rightFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter+this.br.twoPage.scaledWR-this.flipAreaWidth())}},{key:"setHilightCss",value:function(e,t,n,r,i,o){var a,s=this.book._getPageHeight(t),u=this.book._getPageWidth(t),c=this.br.twoPage.height/s,l=Math.floor(u*c),h=this.gutter();a="L"==this.book.getPageSide(t)?h-l:h;var f=this.top();Ee(e).css({width:"".concat((r-n)*c,"px"),height:"".concat((o-i)*c,"px"),left:"".concat(a+n*c,"px"),top:"".concat(f+i*c,"px")})}},{key:"gutterOffsetForIndex",value:function(e){var t=Math.floor((e/this.book.getNumLeafs()-.5)*this.br.twoPage.edgeWidth);return"rl"==this.br.pageProgression&&(t*=-1),t}},{key:"leafEdgeWidth",value:function(e){return"L"==this.book.getPageSide(e)&&"rl"!=this.br.pageProgression?Math.floor(e/this.book.getNumLeafs()*this.br.twoPage.edgeWidth+.5):Math.floor((1-e/this.book.getNumLeafs())*this.br.twoPage.edgeWidth+.5)}},{key:"jumpIndexForLeftEdgePageX",value:function(e){var t;return"rl"!=this.br.pageProgression?(t=this.br.twoPage.currentIndexL-10*(Ee(this.leafEdgeL).offset().left+Ee(this.leafEdgeL).width()-e),t=(0,r.clamp)(Math.round(t),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2)):(t=this.br.twoPage.currentIndexL+10*(Ee(this.leafEdgeL).offset().left+Ee(this.leafEdgeL).width()-e),t=(0,r.clamp)(Math.round(t),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex()))}},{key:"jumpIndexForRightEdgePageX",value:function(e){var t;return"rl"!=this.br.pageProgression?(t=this.br.twoPage.currentIndexL+10*(e-Ee(this.leafEdgeR).offset().left),t=(0,r.clamp)(Math.round(t),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex())):(t=this.br.twoPage.currentIndexL-10*(e-Ee(this.leafEdgeR).offset().left),t=(0,r.clamp)(Math.round(t),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2))}},{key:"prefetch",value:function(){for(var e=Math.max,t=Math.min,n=this.book,r=this.br.twoPage,i=r.currentIndexL,o=r.currentIndexR,a=n.getPage(e(0,t(i,o))),s=n.getPage(e(i,o)),u=0;u<4;u++)a&&(this.createPageContainer(a.index),a=a.findPrev({combineConsecutiveUnviewables:!0})),s&&(this.createPageContainer(s.index),s=s.findNext({combineConsecutiveUnviewables:!0}))}},{key:"baseLeafCss",get:function(){return{position:"absolute",right:"",top:"".concat(this.top(),"px"),zIndex:2}}},{key:"heightCss",get:function(){return{height:"".concat(this.br.twoPage.height,"px")}}},{key:"leftLeafCss",get:function(){return Re(Re(Re({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter-this.br.twoPage.scaledWL,"px"),width:"".concat(this.br.twoPage.scaledWL,"px")})}},{key:"leafEdgeLCss",get:function(){return Re(Re({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthL,"px"),left:"".concat(this.br.twoPage.bookCoverDivLeft+this.br.twoPage.coverInternalPadding,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthL?"none":null})}},{key:"rightLeafCss",get:function(){return Re(Re(Re({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter,"px"),width:"".concat(this.br.twoPage.scaledWR,"px")})}},{key:"leafEdgeRCss",get:function(){return Re(Re({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthR,"px"),left:"".concat(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR+this.br.twoPage.leafEdgeWidthL,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthR?"none":null})}},{key:"mainContainerCss",get:function(){return{height:"".concat(this.br.twoPage.totalHeight,"px"),width:"".concat(this.br.twoPage.totalWidth,"px"),position:"absolute"}}},{key:"spreadCoverCss",get:function(){return{width:"".concat(this.br.twoPage.bookCoverDivWidth,"px"),height:"".concat(this.br.twoPage.bookCoverDivHeight,"px"),visibility:"visible"}}},{key:"spineCss",get:function(){return{width:"".concat(this.br.twoPage.bookSpineDivWidth,"px"),height:"".concat(this.br.twoPage.bookSpineDivHeight,"px"),left:"".concat(this.br.twoPage.gutter-this.br.twoPage.bookSpineDivWidth/2,"px"),top:"".concat(this.br.twoPage.bookSpineDivTop,"px")}}}])&&Ae(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$e=n(3609);function Le(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 je(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)?je(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ne=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n}var t,n;return t=e,(n=[{key:"drawLeafs",value:function(e){var t,n,i,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,h=0,f=0,d=0,p=0,g=[],v=Le(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(v.s();!(i=v.n()).done;){var m=i.value,b=this.br.thumbWidth;l+(b+this.br.thumbPadding)>c&&(d++,l=0,p=0),g[d]||(g[d]={}),g[d].leafs||(g[d].leafs=[],g[d].height=0,g[d].top=0),g[d].leafs[p]={num:m.index,left:l},(t=s(m.height*this.br.thumbWidth/m.width))>g[d].height&&(g[d].height=t),0===p&&(h+=this.br.thumbPadding+g[d].height),(l+=b+this.br.thumbPadding)>f&&(f=l),p++,m.index==e&&(n=h-this.br.thumbPadding-g[d].height)}}catch(e){v.e(e)}finally{v.f()}this.br.refs.$brPageViewEl.height(h);var y=s((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"),_=w+this.br.refs.$brContainer.height(),x=0,P=0,k=[],C=[],S=u.getNumLeafs()-1,T=0,E=0;E<g.length;E++)g[E]&&(P+=this.br.thumbPadding+g[E].height,(x>=w&&x<=_||P>=w&&P<=_||x<=w&&P>=_)&&(k.push(E),g[E].leafs[0].num<S&&(S=g[E].leafs[0].num),g[E].leafs[g[E].leafs.length-1].num>T&&(T=g[E].leafs[g[E].leafs.length-1].num)),x>g[E].top&&(g[E].top=x),x=P);for(var I=k[0],R=k[k.length-1],O=1;O<this.br.thumbRowBuffer+1;O++)R+O<g.length&&k.push(R+O);for(var A=1;A<this.br.thumbRowBuffer;A++)I-A>=0&&k.push(I-A);k.sort();for(var M=0,$=k;M<$.length;M++){var L=$[M];if((0,r.notInArray)(L,this.br.displayedRows)){if(!g[L])continue;var j,D=Le(g[L].leafs);try{var N=function(){var e=j.value,t=e.num,n=e.left,r=a.br.thumbWidth,i=s(u.getPageHeight(t)*a.br.thumbWidth/u.getPageWidth(t)),l=g[L].top,h=n+y;"rl"==a.br.pageProgression&&(h=c-r-h),h+=a.br.thumbPadding,C.push(t);var f=s(u.getPageWidth(t)/a.br.thumbWidth),d=2*Math.round(f/2),p=a.br._createPageContainer(t).update({dimensions:{width:r,height:i,top:l,left:h},reduce:d});p.$container.data("leaf",t).on("mouseup",(function(e){a.br.updateFirstIndex(t,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var n=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(n),a.br.updateViewModeButton($e(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),e.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for(D.s();!(j=D.n()).done;)N()}catch(e){D.e(e)}finally{D.f()}}}var U,B=Le(this.br.displayedRows);try{for(B.s();!(U=B.n()).done;){var F=U.value;if((0,r.notInArray)(F,k)){var W,z,H=Le(null===(W=g[F])||void 0===W?void 0:W.leafs);try{for(H.s();!(z=H.n()).done;){var V,q=z.value.num;null!=C&&C.includes(q)||null===(V=this.br.$(".pagediv".concat(q)))||void 0===V||V.remove()}}catch(e){H.e(e)}finally{H.f()}}}}catch(e){B.e(e)}finally{B.f()}var X=this.br.currentIndex();X<S?this.br.updateFirstIndex(S):X>T&&this.br.updateFirstIndex(T),this.br.displayedRows=k.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight"),this.br.updateToolbarZoom(this.br.reduce)}},{key:"lazyLoadImage",value:function(e){var t=$e(e).data("leaf"),n=$e(e).data("reduce"),r=this.br.imageCache.image(t,n),i=$e(e).parent();$e(i).append(r),$e(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,r.clamp)(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=$e("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new xe(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=Math.floor,r=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,h=0;h<=e;h++){s+(o+this.br.thumbPadding)>i&&(s=0,c=0,l=0);var f=n(r.getPageHeight(l)*this.br.thumbWidth/r.getPageWidth(l));f>c&&(c=f),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(e),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){t.br.animating=!1})))}}])&&De(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ue=(n(4914),{floor:Math.floor,decr:function(e){return e-1}}),Be={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)}},Fe={pow2:Be,integer:Ue},We=n(3609);function ze(e){return function(e){if(Array.isArray(e))return He(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 He(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)?He(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 He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Xe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?Be:o;Ve(this,e),this.book=t,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var t,n;return t=e,(n=[{key:"image",value:function(e,t){var n=(this.cache[e]||[]).filter((function(e){return e.loaded&&e.reduce<=t}));if(n.length){var r=Math.max.apply(Math,ze(n.map((function(e){return e.reduce}))));return this._serveImageElement(e,r)}return this._serveImageElement(e,t)}},{key:"imageLoaded",value:function(e,t){var n,r,i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce<=t}));return null!==(r=null==i?void 0:i.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 i=r.filter((function(e){return e.reduce>=n}));if(i.length)return Math.min.apply(Math,ze(i.map((function(e){return e.reduce}))));var o=r.filter((function(e){return e.reduce<n}));return Math.max.apply(Math,ze(o.map((function(e){return e.reduce}))))}},{key:"_serveImageElement",value:function(e,t){var n,r=this.reduceSet.floor(t),i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(i));var o=this.book.getPage(e),a=We("<img />",{class:"BRpageimage",alt:"Book page image",src:o.getURI(r,0)}).data("reduce",r);return this.useSrcSet&&a.attr("srcset",o.getURISrcSet(r)),i.loaded||a.one("load",(function(){return i.loaded=!0})),a}}])&&qe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ye=n(9860),Ge=n(3609),Ze=n(3609);function Ke(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Je(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ke(o,r,i,a,s,"next",e)}function s(e){Ke(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ze.extend(!0,{},et.defaultOptions,e,et.optionOverrides);this.setup(t)}function tt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(e){return e.br},a=function(e){return e._overrideable[t]};i(e,n,o,et,r,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&Ge((function(){return(new h.E).init()})),et.version="5.0.0-42",et.constMode1up=1,et.constMode2up=2,et.constModeThumb=3,et.imageCache=null,et.constNavAnimationDuration=300,et.constResizeAnimationDuration=100,et.eventNames=o,et.defaultOptions=l,et.optionOverrides={},et.prototype.setup=function(e){this.options=e,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=et.constMode1up,this.constMode2up=et.constMode2up,this.constModeThumb=et.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=Fe[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=Fe[l.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.imgs={},this.prefetchedImgs={},this.animating=!1,this.flipSpeed=e.flipSpeed,this.flipDelay=e.flipDelay,this.twoPagePopUp=null,this.leafEdgeTmp=null,this.firstIndex=null,this.lastDisplayableIndex2up=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,e.getNumLeafs&&(et.prototype.getNumLeafs=e.getNumLeafs),e.getPageWidth&&(et.prototype.getPageWidth=e.getPageWidth),e.getPageHeight&&(et.prototype.getPageHeight=e.getPageHeight),e.getPageURI&&(et.prototype.getPageURI=e.getPageURI),e.getPageSide&&(et.prototype.getPageSide=e.getPageSide),e.getPageNum&&(et.prototype.getPageNum=e.getPageNum),e.getPageProp&&(et.prototype.getPageProp=e.getPageProp),e.getSpreadIndices&&(et.prototype.getSpreadIndices=e.getSpreadIndices),e.leafNumToIndex&&(et.prototype.leafNumToIndex=e.leafNumToIndex),this.refs={},this._models={book:new k(this)},this._components={navbar:new u(this),toolbar:new g(this)},this._modes={mode1Up:new Te(this,this._models.book),mode2Up:new Me(this,this._models.book),modeThumb:new Ne(this,this._models.book)},this._overrideable={"_models.book":this._models.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 Xe(this._models.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},et.prototype.getActivePageContainerElements=function(){var e=Object.values(this._modes.mode2Up.pageContainers).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},et.prototype.getActivePageContainerElementsForIndex=function(e){var t,n,r,i,o;return[null===(t=this._modes.mode2Up.pageContainers[e])||void 0===t||null===(n=t.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[e])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(e)).toArray():[],function(e){if(Array.isArray(e))return Qe(e)}(o)||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 Qe(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)?Qe(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.")}())).filter((function(e){return e}))},Object.defineProperty(et.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Object.defineProperty(et.prototype,"leafEdgeL",{get:function(){return this._modes.mode2Up.leafEdgeL},set:function(e){this._modes.mode2Up.leafEdgeL=e}}),Object.defineProperty(et.prototype,"leafEdgeR",{get:function(){return this._modes.mode2Up.leafEdgeR},set:function(e){this._modes.mode2Up.leafEdgeR=e}}),et.util=r,et.prototype.extendParams=function(e,t){var n=Ge.extend({},t);if(void 0!==n.page){var r=this._models.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Ge.extend(e,n)},et.prototype.initParams=function(){var e={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this._models.book.getNumLeafs()>2?e.index=this._models.book.leafNumToIndex(this.titleLeaf):e.index=0,this.defaults){var t=this.paramsFromFragment(this.defaults);void 0!==t.page&&(e.pageFound=!0),this.extendParams(e,t)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(e.index!==n&&(e.fragmentChange=!0),e.index=n)}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&&(e.pageFound=!0),this.extendParams(e,i),e.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!e.pageFound,!this.options.initialSearchTerm))if(e.search)this.options.initialSearchTerm=e.search,this.searchTerm=e.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=r.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},et.prototype.getLocationSearch=function(){return window.location.search},et.prototype.getLocationHash=function(){return window.location.hash},et.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):""},et.prototype.getInitialMode=function(e){var t,n=Ge(window).width();return t=void 0!==e.mode?e.mode:"full"==this.ui&&this.isFullscreenActive&&n<=this.onePageMinBreakpoint?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),t},et.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var e=this.initParams();this.firstIndex=e.index?e.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Ge(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=Ge("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),e.mode=this.getInitialMode(e),this.mode=e.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(e),this.initUIStrings(),this.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&&(Ge(window).on("resize",this,(function(e){e.data.resize()})),Ge(window).on("orientationchange",this,function(e){e.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0),this.init.initComplete=!0,this.trigger(et.eventNames.PostInit)},et.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;r.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}})),Ge(document).trigger(n,t)},et.prototype.bind=function(e,t){Ge(document).on("BookReader:"+e,t)},et.prototype.unbind=function(e,t){Ge(document).off("BookReader:"+e,t)},et.prototype.resize=function(){if(this.init.initComplete){if(this.resizeBRcontainer(),this.switchNavbarControls(),this.constMode1up==this.mode)"none"!=this.onePage.autofit?(this.resizePageView1up(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled());else if(this.constModeThumb==this.mode)this.prepareThumbnailView();else if(this.twoPage.autofit)this.prepareTwoPageView();else{var e=this.twoPageGetViewCenter(),t=!1;this.twoPage.totalWidth<this.refs.$brContainer.prop("clientWidth")&&(e.percentageX=.5,t=!0),this.twoPage.totalHeight<this.refs.$brContainer.prop("clientHeight")&&(e.percentageY=.5,t=!0),t&&this.twoPageCenterView(e.percentageX,e.percentageY)}this.trigger(et.eventNames.resize)}},et.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("Alt")||t.getModifierState("Meta")||t.getModifierState("Win")||r.isInputActive()))switch(t.key){case"Home":t.preventDefault(),e.first();break;case"End":t.preventDefault(),e.last();break;case"ArrowDown":case"PageDown":case"Down":e.constMode2up===e.mode&&(t.preventDefault(),e.next());break;case"ArrowUp":case"PageUp":case"Up":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()}}))},et.prototype.drawLeafs=function(){this.constMode1up==this.mode||(this.constModeThumb==this.mode?this.drawLeafsThumbnail():this.drawLeafsTwoPage())},et.prototype._createPageContainer=function(e){return new Ye._z(this._models.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},et.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))}))},et.prototype.drawLeafsThumbnail=Ne.prototype.drawLeafs,tt(Ne,"_modes.modeThumb","drawLeafs","drawLeafsThumbnail"),et.prototype.lazyLoadThumbnails=Ne.prototype.lazyLoadThumbnails,tt(Ne,"_modes.modeThumb","lazyLoadThumbnails","lazyLoadThumbnails"),et.prototype.lazyLoadImage=Ne.prototype.lazyLoadImage,tt(Ne,"_modes.modeThumb","lazyLoadImage","lazyLoadImage"),et.prototype.zoomThumb=Ne.prototype.zoom,tt(Ne,"_modes.modeThumb","zoom","zoomThumb"),et.prototype.getThumbnailWidth=Ne.prototype.getThumbnailWidth,tt(Ne,"_modes.modeThumb","getThumbnailWidth","getThumbnailWidth"),et.prototype.prepareThumbnailView=Ne.prototype.prepare,tt(Ne,"_modes.modeThumb","prepare","prepareThumbnailView"),et.prototype.drawLeafsThrottled=r.throttle(et.prototype.drawLeafs,250),et.prototype.zoom=function(e){var t;1==e?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},et.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()})},et.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)},et.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,r=Math.abs(e-n),i=1;i<t.length;i++){var o=Math.abs(e-t[i].reduce);o<r&&(r=o,n=t[i].reduce)}return n},et.prototype.nextReduce=function(e,t,n){if("in"===t){for(var r=0,i=1;i<n.length;i++)n[i].reduce<e&&(r=i);return n[r]}if("out"===t){for(var o=n.length-1,a=o,s=o;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 c=n.filter((function(e){var t=e.autofit;return"height"==t||"width"==t})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===t||"width"===t){var f=n.find((function(e){return e.autofit==t}));if(f)return f}return n[0]},et.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},et.prototype.jumpToPage=function(e){var t=this._models.book.parsePageString(e);return void 0!==t&&(this.jumpToIndex(t),!0)},et.prototype._isIndexDisplayed=function(e){return this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},et.prototype.jumpToIndex=function(e,t,n,r){var i=this._models.book.getPage(e);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,t,n,r)}this.trigger(et.eventNames.stop),this.constMode2up==this.mode?this._modes.mode2Up.jumpToIndex(e):this.constModeThumb==this.mode?this._modes.modeThumb.jumpToIndex(e):this._modes.mode1Up.jumpToIndex(e,t,n,r)},et.prototype.getPrevReadMode=function(e){return e===et.constMode1up||e===et.constMode2up?e:null===this.prevReadMode?et.constMode1up:void 0},et.prototype.switchMode=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.suppressFragmentChange,a=void 0!==o&&o,s=i.init,u=void 0!==s&&s,c=i.pageFound,l=void 0!==c&&c;if(this.init.initComplete){if(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(et.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=e&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?this.prepareOnePageView():this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this.prepareThumbnailView()):(!u&&l||this.setSpreadIndices(),this.twoPageCalculateReductionFactors(),this.prepareTwoPageView(),this.twoPageCenterView(.5,.5)),this.suppressFragmentChange||a||this.trigger(et.eventNames.fragmentChange);var h=e+"PageViewSelected";this.trigger(et.eventNames[h]),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},et.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"),Ge(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Ge(document.body).removeClass("BRfullscreenActive"))},et.prototype.isFullscreen=function(){return this.isFullscreenActive},et.prototype.toggleFullscreen=Je(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){e.next=6;break}return e.next=4,this.exitFullScreen();case 4:e.next=8;break;case 6:return e.next=8,this.enterFullscreen(t);case 8:case"end":return e.stop()}}),e,this)}))),et.prototype.enterFullscreen=Je(regeneratorRuntime.mark((function e(){var t,n,r,i=this,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!(o.length>0&&void 0!==o[0])||o[0],r=this.currentIndex(),this.refs.$brContainer.css("opacity",0),n&&(this._fullscreenCloseHandler=function(e){27===e.keyCode&&i.toggleFullscreen()},Ge(document).on("keyup",this._fullscreenCloseHandler)),Ge(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),this.animating=!0,e.next=11,new Promise((function(e){return i.refs.$brContainer.animate({opacity:1},"fast","linear",e)}));case 11:if(!(this.activeMode instanceof Te)){e.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this._models.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),e.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:this.jumpToIndex(r),this.animating=!1,null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(et.eventNames.fragmentChange),this.trigger(et.eventNames.fullscreenToggled),setTimeout((function(){i.resize()}),0);case 22:case"end":return e.stop()}}),e,this)}))),et.prototype.exitFullScreen=Je(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refs.$brContainer.css("opacity",0),Ge(document).off("keyup",this._fullscreenCloseHandler),n=Ge(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(et.eventNames.fullscreenToggled),this.updateBrClasses(),this.animating=!0,e.next=11,new Promise((function(e){return r.refs.$brContainer.animate({opacity:1},"fast","linear",e)}));case 11:if(this.resize(),!(this.activeMode instanceof Te)){e.next=17;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this._models.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),e.next=17,this.activeMode.mode1UpLit.updateComplete;case 17:this.animating=!1,null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(et.eventNames.fragmentChange);case 20:case"end":return e.stop()}}),e,this)}))),et.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return r.clamp(this.firstIndex,0,this._models.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},et.prototype.updateFirstIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==e&&(this.firstIndex=e,this.suppressFragmentChange||r||this.trigger(et.eventNames.fragmentChange),this.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger("pageChanged"),this.updateNavIndexThrottled(e))},et.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},et.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},et.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},et.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},et.prototype.next=function(){this.constMode2up==this.mode?(this.trigger(et.eventNames.stop),this.flipFwdToIndex(null)):this.firstIndex<this.lastDisplayableIndex()&&this.jumpToIndex(this.firstIndex+1)},et.prototype.prev=function(){this.firstIndex<1||(this.constMode2up==this.mode?(this.trigger(et.eventNames.stop),this.flipBackToIndex(null)):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},et.prototype.first=function(){this.jumpToIndex(this.firstDisplayableIndex())},et.prototype.last=function(){this.jumpToIndex(this.lastDisplayableIndex())},et.prototype.scrollDown=function(){return Ge.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.next():(this.refs.$brContainer.stop(!0).animate({scrollTop:"+="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},et.prototype.scrollUp=function(){return Ge.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.prev():(this.refs.$brContainer.stop(!0).animate({scrollTop:"-="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},et.prototype._scrollAmount=function(){return this.constMode1up==this.mode?parseInt(this.refs.$brContainer.prop("clientHeight")-this._models.book.getPageHeight(this.currentIndex())/this.reduce*.03):parseInt(.9*this.refs.$brContainer.prop("clientHeight"))},et.prototype.prefetchImg=function(){var e=Je(regeneratorRuntime.mark((function e(t){var n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.length>1&&void 0!==n[1]&&n[1],console.warn("Call to deprecated function: BookReader.prefetchImg. No-op.");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),et.prototype.pruneUnusedImgs=function(){console.warn("Call to deprecated function: BookReader.pruneUnused. No-op.")},et.prototype.prepareOnePageView=Te.prototype.prepare,tt(Te,"_modes.mode1Up","prepare","prepareOnePageView"),et.prototype.zoom1up=Te.prototype.zoom,tt(Te,"_modes.mode1Up","zoom","zoom1up"),et.prototype.resizePageView1up=Te.prototype.resizePageView,tt(Te,"_modes.mode1Up","resizePageView","resizePageView1up"),et.prototype.onePageCalculateViewDimensions=Te.prototype.calculateViewDimensions,tt(Te,"_modes.mode1Up","calculateViewDimensions","onePageCalculateViewDimensions"),et.prototype.zoom2up=Me.prototype.zoom,tt(Me,"_modes.mode2Up","zoom","zoom2up"),et.prototype.twoPageGetAutofitReduce=Me.prototype.getAutofitReduce,tt(Me,"_modes.mode2Up","getAutofitReduce","twoPageGetAutofitReduce"),et.prototype.flipBackToIndex=Me.prototype.flipBackToIndex,tt(Me,"_modes.mode2Up","flipBackToIndex","flipBackToIndex"),et.prototype.flipFwdToIndex=Me.prototype.flipFwdToIndex,tt(Me,"_modes.mode2Up","flipFwdToIndex","flipFwdToIndex"),et.prototype.setHilightCss2UP=Me.prototype.setHilightCss,tt(Me,"_modes.mode2Up","setHilightCss","setHilightCss2UP"),et.prototype.drawLeafsTwoPage=Me.prototype.drawLeafs,tt(Me,"_modes.mode2Up","drawLeafs","drawLeafsTwoPage"),et.prototype.prepareTwoPageView=Me.prototype.prepareTwoPageView,tt(Me,"_modes.mode2Up","prepareTwoPageView","prepareTwoPageView"),et.prototype.prepareTwoPagePopUp=Me.prototype.preparePopUp,tt(Me,"_modes.mode2Up","preparePopUp","prepareTwoPagePopUp"),et.prototype.calculateSpreadSize=Me.prototype.calculateSpreadSize,tt(Me,"_modes.mode2Up","calculateSpreadSize","calculateSpreadSize"),et.prototype.getIdealSpreadSize=Me.prototype.getIdealSpreadSize,tt(Me,"_modes.mode2Up","getIdealSpreadSize","getIdealSpreadSize"),et.prototype.getSpreadSizeFromReduce=Me.prototype.getSpreadSizeFromReduce,tt(Me,"_modes.mode2Up","getSpreadSizeFromReduce","getSpreadSizeFromReduce"),et.prototype.twoPageIsZoomedIn=Me.prototype.isZoomedIn,tt(Me,"_modes.mode2Up","isZoomedIn","twoPageIsZoomedIn"),et.prototype.twoPageCalculateReductionFactors=Me.prototype.calculateReductionFactors,tt(Me,"_modes.mode2Up","calculateReductionFactors","twoPageCalculateReductionFactors"),et.prototype.twoPageSetCursor=Me.prototype.setCursor,tt(Me,"_modes.mode2Up","setCursor","twoPageSetCursor"),et.prototype.flipLeftToRight=Me.prototype.flipLeftToRight,tt(Me,"_modes.mode2Up","flipLeftToRight","flipLeftToRight"),et.prototype.flipRightToLeft=Me.prototype.flipRightToLeft,tt(Me,"_modes.mode2Up","flipRightToLeft","flipRightToLeft"),et.prototype.prepareFlipLeftToRight=Me.prototype.prepareFlipLeftToRight,tt(Me,"_modes.mode2Up","prepareFlipLeftToRight","prepareFlipLeftToRight"),et.prototype.prepareFlipRightToLeft=Me.prototype.prepareFlipRightToLeft,tt(Me,"_modes.mode2Up","prepareFlipRightToLeft","prepareFlipRightToLeft"),et.prototype.getPageWidth2UP=Me.prototype.getPageWidth,tt(Me,"_modes.mode2Up","getPageWidth","getPageWidth2UP"),et.prototype.twoPageGutter=Me.prototype.gutter,tt(Me,"_modes.mode2Up","gutter","twoPageGutter"),et.prototype.twoPageTop=Me.prototype.top,tt(Me,"_modes.mode2Up","top","twoPageTop"),et.prototype.twoPageCoverWidth=Me.prototype.coverWidth,tt(Me,"_modes.mode2Up","coverWidth","twoPageCoverWidth"),et.prototype.twoPageGetViewCenter=Me.prototype.getViewCenter,tt(Me,"_modes.mode2Up","getViewCenter","twoPageGetViewCenter"),et.prototype.twoPageCenterView=Me.prototype.centerView,tt(Me,"_modes.mode2Up","centerView","twoPageCenterView"),et.prototype.twoPageFlipAreaHeight=Me.prototype.flipAreaHeight,tt(Me,"_modes.mode2Up","flipAreaHeight","twoPageFlipAreaHeight"),et.prototype.twoPageFlipAreaWidth=Me.prototype.flipAreaWidth,tt(Me,"_modes.mode2Up","flipAreaWidth","twoPageFlipAreaWidth"),et.prototype.twoPageFlipAreaTop=Me.prototype.flipAreaTop,tt(Me,"_modes.mode2Up","flipAreaTop","twoPageFlipAreaTop"),et.prototype.twoPageLeftFlipAreaLeft=Me.prototype.leftFlipAreaLeft,tt(Me,"_modes.mode2Up","leftFlipAreaLeft","twoPageLeftFlipAreaLeft"),et.prototype.twoPageRightFlipAreaLeft=Me.prototype.rightFlipAreaLeft,tt(Me,"_modes.mode2Up","rightFlipAreaLeft","twoPageRightFlipAreaLeft"),et.prototype.gutterOffsetForIndex=Me.prototype.gutterOffsetForIndex,tt(Me,"_modes.mode2Up","gutterOffsetForIndex","gutterOffsetForIndex"),et.prototype.leafEdgeWidth=Me.prototype.leafEdgeWidth,tt(Me,"_modes.mode2Up","leafEdgeWidth","leafEdgeWidth"),et.prototype.jumpIndexForLeftEdgePageX=Me.prototype.jumpIndexForLeftEdgePageX,tt(Me,"_modes.mode2Up","jumpIndexForLeftEdgePageX","jumpIndexForLeftEdgePageX"),et.prototype.jumpIndexForRightEdgePageX=Me.prototype.jumpIndexForRightEdgePageX,tt(Me,"_modes.mode2Up","jumpIndexForRightEdgePageX","jumpIndexForRightEdgePageX"),et.prototype.prefetch=Me.prototype.prefetch,tt(Me,"_modes.mode2Up","prefetch","prefetch"),et.prototype.setSpreadIndices=Me.prototype.setSpreadIndices,tt(Me,"_modes.mode2Up","setSpreadIndices","setSpreadIndices"),et.prototype.stopFlipAnimations=function(){this.trigger(et.eventNames.stop),this.leafEdgeTmp&&Ge(this.leafEdgeTmp).stop(!1,!0),Ze.each(this._modes.mode2Up.pageContainers,(function(){Ge(this.$container).stop(!1,!0)})),this.leafEdgeTmp&&Ge(this.leafEdgeTmp).stop(!1,!0),Ze.each(this._modes.mode2Up.pageContainers,(function(){Ge(this.$container).stop(!1,!0)}))},et.prototype.initNavbar=u.prototype.init,tt(u,"_components.navbar","init","initNavbar"),et.prototype.switchNavbarControls=u.prototype.switchNavbarControls,tt(u,"_components.navbar","switchNavbarControls"),et.prototype.updateViewModeButton=u.prototype.updateViewModeButton,tt(u,"_components.navbar","updateViewModeButton"),et.prototype.getNavPageNumString=u.prototype.getNavPageNumString,tt(u,"_components.navbar","getNavPageNumString"),et.prototype.getNavPageNumHtml=c,et.prototype.updateNavPageNum=u.prototype.updateNavPageNum,tt(u,"_components.navbar","updateNavPageNum"),et.prototype.updateNavIndex=u.prototype.updateNavIndex,tt(u,"_components.navbar","updateNavIndex"),et.prototype.updateNavIndexThrottled=r.throttle(et.prototype.updateNavIndex,250,!1),et.prototype.updateNavIndexDebounced=r.debounce(et.prototype.updateNavIndex,500,!1),et.prototype.buildToolbarElement=g.prototype.buildToolbarElement,tt(g,"_components.toolbar","buildToolbarElement"),et.prototype.initToolbar=g.prototype.initToolbar,tt(g,"_components.toolbar","initToolbar"),et.prototype.buildShareDiv=g.prototype.buildShareDiv,tt(g,"_components.toolbar","buildShareDiv"),et.prototype.buildInfoDiv=g.prototype.buildInfoDiv,tt(g,"_components.toolbar","buildInfoDiv"),et.prototype.getToolBarHeight=g.prototype.getToolBarHeight,tt(g,"_components.toolbar","getToolBarHeight"),et.prototype.updateToolbarZoom=g.prototype.updateToolbarZoom,tt(g,"_components.toolbar","updateToolbarZoom"),et.prototype.blankInfoDiv=v,et.prototype.blankShareDiv=m,et.prototype.createPopup=b,et.prototype.bindNavigationHandlers=function(){var e=this,t=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){e.trigger(et.eventNames.stop),e.left()},book_right:function(){e.trigger(et.eventNames.stop),e.right()},book_up:function(){Ge.inArray(e.mode,[e.constMode1up,e.constModeThumb])>=0?e.scrollUp():e.prev()},book_down:function(){Ge.inArray(e.mode,[e.constMode1up,e.constModeThumb])>=0?e.scrollDown():e.next()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){e.switchMode(t.constMode1up)},thumb:function(){e.switchMode(t.constModeThumb)},twopg:function(){e.switchMode(t.constMode2up)},zoom_in:function(){e.trigger(et.eventNames.stop),e.zoom(1),e.trigger(et.eventNames.zoomIn)},zoom_out:function(){e.trigger(et.eventNames.stop),e.zoom(-1),e.trigger(et.eventNames.zoomOut)},full:function(){if("embed"==e.ui){var t=e.$(".BRembedreturn a").attr("href");window.open(t)}else e.toggleFullscreen()}};n.filter(".fit").bind("fit",(function(){}));var i=function(e){n.filter(".".concat(e)).on("click.bindNavigationHandlers",(function(){return r[e](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var e=[];a.hasClass("BRdn")?(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:-1*t.getToolBarHeight()}).promise()),e.push(t.$(".BRfooter").animate({bottom:-1*t.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),t.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:0}).promise()),e.push(t.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),t.$(".BRvavCntl").animate({opacity:1})),Ge.when.apply(Ge,e).done((function(){t.mode==t.constMode2up&&null!=t.twoPage.autofit&&"none"!=t.twoPage.autofit||t.mode==t.constMode1up&&null!=t.onePage.autofit&&"none"!=t.onePage.autofit?t.resize():t.resizeBRcontainer()}))})),a.on("mouseover",(function(){Ge(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ge(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){Ge(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ge(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),Ge(document).off("mousemove.navigation",this.el),Ge(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),Ge(document).off("mousedown.swipe",".BRpageimage"),Ge(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers()},et.prototype.unbindNavigationHandlers=function(){Ge(document).off("mousemove.navigation",this.el)},et.prototype.navigationMousemoveHandler=function(e){if(e.data.br.uiAutoHide){var t=Ge(document).height()-75;e.pageY<76||e.pageY>t?e.data.br.hideNavigation():e.data.br.showNavigation()}},et.prototype.initSwipeData=function(e,t){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:e,startY:t,lastX:e,lastY:t,deltaX:0,deltaY:0,deltaT:0}},et.prototype.swipeMousedownHandler=function(e){var t=e.data.br;return 3==e.which?!t.protected:(Ge(e.target).on("mouseout.swipe",{br:t},t.swipeMouseupHandler).on("mouseup.swipe",{br:t},t.swipeMouseupHandler).on("mousemove.swipe",{br:t},t.swipeMousemoveHandler),t.initSwipeData(e.clientX,e.clientY),t._swipe.mightBeSwiping=!0,t._swipe.mightBeDragging=!0,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},et.prototype.swipeMousemoveHandler=function(e){var t=e.data.br,n=t._swipe;if(n.mightBeSwiping){n.deltaX=e.clientX-n.startX,n.deltaY=e.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var r=Math.abs(n.deltaX),i=Math.abs(n.deltaY),o=Math.min(t.refs.$br.width()/5,80);return r>i&&r>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,t.mode==t.constMode2up&&(n.deltaX<0?t.right():t.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,t.refs.$brContainer.scrollTop(t.refs.$brContainer.scrollTop()-e.clientY+n.lastY).scrollLeft(t.refs.$brContainer.scrollLeft()-e.clientX+n.lastX)),n.lastX=e.clientX,n.lastY=e.clientY,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}},et.prototype.swipeMouseupHandler=function(e){var t=e.data.br._swipe;return t.mightBeSwiping=!1,t.mightBeDragging=!1,Ge(e.target).off("mouseout.swipe").off("mouseup.swipe").off("mousemove.swipe"),!t.didSwipe&&!t.didDrag||(e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},et.prototype.bindMozTouchHandlers=function(){var e=this;this.refs.$br.on("MozTouchDown",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchMove",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchUp",(function(t){this.mode==e.constMode2up&&t.preventDefault()}))},et.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},et.prototype.setNavigationView=function(e){var t=this.constNavAnimationDuration,n="linear",r=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(et.eventNames.navToggled)}.bind(this),i=0,o=0;e?(i=-1*this.getToolBarHeight(),o=-1*this.getFooterHeight(),this.refs.$BRtoolbar.addClass("js-menu-hide"),this.refs.$BRfooter.addClass("js-menu-hide")):(this.refs.$BRtoolbar.removeClass("js-menu-hide"),this.refs.$BRfooter.removeClass("js-menu-hide")),this.refs.$BRtoolbar.animate({top:i},t,n,r),this.refs.$BRfooter.animate({bottom:o},t,n,r)},et.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},et.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},et.prototype.firstDisplayableIndex=function(){return this.mode!=this.constMode2up?0:"rl"!=this.pageProgression?"L"==this._models.book.getPageSide(0)?0:-1:"R"==this._models.book.getPageSide(0)?0:-1},et.prototype.lastDisplayableIndex=function(){var e=this._models.book.getNumLeafs()-1;return this.mode!=this.constMode2up?e:"rl"!=this.pageProgression?"R"==this._models.book.getPageSide(e)?e:e+1:"L"==this._models.book.getPageSide(e)?e:e+1},et.prototype.getMedianPageSize=k.prototype.getMedianPageSize,tt(k,"_models.book","getMedianPageSize"),et.prototype._getPageWidth=k.prototype._getPageWidth,tt(k,"_models.book","_getPageWidth"),et.prototype._getPageHeight=k.prototype._getPageHeight,tt(k,"_models.book","_getPageHeight"),et.prototype.getPageIndex=k.prototype.getPageIndex,tt(k,"_models.book","getPageIndex"),et.prototype.getPageIndices=k.prototype.getPageIndices,tt(k,"_models.book","getPageIndices"),et.prototype.getPageName=k.prototype.getPageName,tt(k,"_models.book","getPageName"),et.prototype.getNumLeafs=k.prototype.getNumLeafs,tt(k,"_models.book","getNumLeafs"),et.prototype.getPageWidth=k.prototype.getPageWidth,tt(k,"_models.book","getPageWidth"),et.prototype.getPageHeight=k.prototype.getPageHeight,tt(k,"_models.book","getPageHeight"),et.prototype.getPageURI=k.prototype.getPageURI,tt(k,"_models.book","getPageURI"),et.prototype.getPageSide=k.prototype.getPageSide,tt(k,"_models.book","getPageSide"),et.prototype.getPageNum=k.prototype.getPageNum,tt(k,"_models.book","getPageNum"),et.prototype.getPageProp=k.prototype.getPageProp,tt(k,"_models.book","getPageProp"),et.prototype.getSpreadIndices=k.prototype.getSpreadIndices,tt(k,"_models.book","getSpreadIndices"),et.prototype.leafNumToIndex=k.prototype.leafNumToIndex,tt(k,"_models.book","leafNumToIndex"),et.prototype.parsePageString=k.prototype.parsePageString,tt(k,"_models.book","parsePageString"),et.prototype._getDataFlattened=k.prototype._getDataFlattened,tt(k,"_models.book","_getDataFlattened"),et.prototype._getDataProp=k.prototype._getDataProp,tt(k,"_models.book","_getDataProp"),et.prototype.updateFromParams=function(e){var t=e.mode,n=void 0===t?0:t,r=e.init,i=void 0!==r&&r,o=e.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this._models.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),this.enableSearch&&void 0!==e.search&&this.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},et.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this._models.book.getNumLeafs()<2)},et.prototype._getPageURISrcset=function(e,t,n){var r=this._models.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURISrcSet(t,n)):""},et.prototype._getPageURI=function(e,t,n){var r=this._models.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURI(t,n)):this.imagesBaseURL+"transparent.png"},et.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Ge(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),Ge(r).append(i),r.addEventListener("click",(function(){t(),n.removeProgressPopup()})),Ge(this.popup).append(r)}var o=document.createElement("div");if(Ge(o).css({height:"20px"}).prop("className","BRprogressbar"),Ge(this.popup).append(o),e){var a=document.createElement("div");a.innerHTML=e,Ge(this.popup).append(a)}Ge(this.popup).appendTo(this.refs.$br)}},et.prototype.removeProgressPopup=function(){Ge(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},et.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":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".book_up":"Page up",".book_down":"Page down",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".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])},et.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)}}))},et.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},et.prototype.paramsFromCurrent=function(){var e={},t=this.currentIndex(),n=this._models.book.getPageNum(t);return(0===n||n)&&(e.page=n),e.index=t,e.mode=this.mode,this.isFullscreenActive&&(e.view="theater"),this.enableSearch&&(e.search=this.searchTerm),e},et.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 i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+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=o.page),null!=o.search&&(t.search=r.decodeURIComponentPlus(o.search)),null!=o.theme&&(t.theme=o.theme),t},et.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",i=[];if(void 0!==e.page?i.push("page",e.page):void 0!==e.index&&i.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)i.push("mode","1up");else if(e.mode==this.constMode2up)i.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;i.push("mode","thumb")}return e.search&&"hash"===t&&i.push("search",e.search),r.encodeURIComponentPlus(i.join(n)).replace(/%2F/g,"/")},et.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(t);e.view?r.set("view",e.view):r.delete("view"),e.search&&"history"===n&&r.set("q",e.search);var i=r.toString();return i?"?"+i:""},et.prototype.$=function(e){return this.refs.$br.find(e)},Ze.curCSS=function(e,t,n){return Ze(e).css(t,n)},window.BookReader=et},105:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return DebugConsole}});var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9826),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1539),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9600),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1249),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__),$=__webpack_require__(3609);function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var DebugConsole=function(){function DebugConsole(){_classCallCheck(this,DebugConsole),this.currentRun=0}return _createClass(DebugConsole,[{key:"init",value:function init(){var _this=this;this.$log=$('<div id="_debugLog" style="width: 100%; height: 300px; overflow: auto" />'),$(document.body).prepend(this.$log),this.$form=$('\n <form>\n <input style="width:100%; font-family: monospace;" id="_debugLogInput">\n </form>'),this.$log.append(this.$form),this.$form.on("submit",(function(ev){ev.preventDefault();var result=eval(_this.$form.find("input").val());_this.logToScreen([result])}));var _realLog=console.log.bind(console);console.log=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_realLog.apply(void 0,t),_this.logToScreen(t)},window.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _this.logToScreen(t)}}},{key:"logToScreen",value:function(e){var t=e.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==t?n.find(".count").text("(".concat(++this.currentRun,")")):(this.currentRun=1,this.$log.append($('\n <div class="log-entry">\n <code class="count"></code> <code class="entry-code">'.concat(t,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(e,t,n){"use strict";n.d(t,{_z:function(){return l},hy:function(){return h},Tm:function(){return d}}),n(5666),n(5827),n(1539),n(9600),n(2222),n(9714),n(6992),n(3948),n(8674),n(7042),n(8309),n(1038),n(8783),n(4916),n(2526),n(1817),n(2165);var r=n(3609);function i(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var t,n;return t=e,(n=[{key:"update",value:function(e){var t,n,i=e.dimensions,o=void 0===i?null:i,a=e.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var c=this.imageCache.imageLoaded(this.page.index,s),l=!c&&this.imageCache.getBestLoadedReduce(this.page.index,s),h=this.imageCache.image(this.page.index,s);if((null===(t=this.$img)||void 0===t?void 0:t[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var f=[];return c||(this.$container.addClass("BRpageloading"),f.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),l&&f.push('url("'.concat(this.page.getURI(l,0),'") center/100% 100% no-repeat')),c||this.$img.css("background",f.join(",")).one("loadend",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(t.target).css({background:""}),r(t.target).parent().removeClass("BRpageloading");case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),this}}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(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}function f(e){var t=e.l,n=e.r,r=e.b,i=e.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",t.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-t).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function d(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=a.querySelector(".".concat(e)),c=u||h(n,e);if(!u){var l=a.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(a)}var d,p=o(t.entries());try{for(p.s();!(d=p.n()).done;){var g=i(d.value,2),v=g[0],m=g[1],b=f(m);s&&b.setAttribute("class",s[v]),c.appendChild(b)}}catch(e){p.e(e)}finally{p.f()}}},5685:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){e.bind("mousedown",(function(){return!1})),e[0].onselectstart=function(){return!1}}function s(e,t,n){return Math.min(Math.max(e,t),n)}function u(e,t){return e/t*100+"%"}function c(e,t){return!t.includes(e)}function l(){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?l(n.shadowRoot,!0):n}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=l(e);return"INPUT"==(null==t?void 0:t.tagName)||"TEXTAREA"==(null==t?void 0:t.tagName)}function f(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function d(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(e){return decodeURIComponent(e).replace(/\+/g," ")}function g(e){return encodeURIComponent(e).replace(/%20/g,"+")}function v(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}function m(e,t,n){var r,i;return t||(t=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+t?(clearTimeout(i),i=setTimeout((function(){r=o,e.apply(n,a)}),t)):(r=o,e.apply(n,a))}}function b(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=y}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0!==n&&n,i=t.cancelable,o=void 0!==i&&i,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,r,o,s),u}function w(){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 _(e){return e.reduce((function(e,t){return e+t}),0)}function x(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 o(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)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function P(e,t){return e.length==t.length&&e.every((function(e,n){return e==t[n]}))}function k(e,t){return e&&t&&!P(e,t)}function C(e){return S.apply(this,arguments)}function S(){return(S=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return E.apply(this,arguments)}function E(){return(E=i(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,u,c,l,h,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.step,i=void 0===r?50:r,o=n.timeout,a=void 0===o?500:o,s=n.until,u=void 0===s?function(e){return Boolean(e)}:s,c=n._sleep,l=void 0===c?C:c,h=Date.now();case 2:if(!(Date.now()-h<a)){e.next=10;break}if(f=t(),!u(f)){e.next=6;break}return e.abrupt("return",f);case 6:return e.next=8,l(i);case 8:e.next=2;break;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n.r(t),n.d(t,{disableSelect:function(){return a},clamp:function(){return s},cssPercentage:function(){return u},notInArray:function(){return c},getActiveElement:function(){return l},isInputActive:function(){return h},getIFrameDocument:function(){return f},escapeHTML:function(){return d},decodeURIComponentPlus:function(){return p},encodeURIComponentPlus:function(){return g},debounce:function(){return v},throttle:function(){return m},polyfillCustomEvent:function(){return b},PolyfilledCustomEvent:function(){return y},calcScreenDPI:function(){return w},sum:function(){return _},genToArray:function(){return x},arrEquals:function(){return P},arrChanged:function(){return k},sleep:function(){return C},poll:function(){return T}}),n(5666),n(6699),n(2023),n(4916),n(5306),n(5827),n(1539),n(8674),n(7042),n(8309),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948)},3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,n){var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1530:function(e,t,n){"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},1285:function(e,t,n){"use strict";var r=n(7908),i=n(1400),o=n(7466);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},8533:function(e,t,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),s=n(7466),u=n(6135),c=n(1246);e.exports=function(e){var t,n,l,h,f,d,p=i(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(p),w=0;if(b&&(m=r(m,v>2?arguments[2]:void 0,2)),null==y||g==Array&&a(y))for(n=new g(t=s(p.length));t>w;w++)d=b?m(p[w],w):p[w],u(n,w,d);else for(f=(h=y.call(p)).next,n=new g;!(l=f.call(h)).done;w++)d=b?o(h,m,[l.value,w],!0):l.value,u(n,w,d);return n.length=w,n}},1318:function(e,t,n){var r=n(5656),i=n(7466),o=n(1400),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,n){var r=n(9974),i=n(8361),o=n(7908),a=n(7466),s=n(5417),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,h=6==e,f=7==e,d=5==e||h;return function(p,g,v,m){for(var b,y,w=o(p),_=i(w),x=r(g,v,3),P=a(_.length),k=0,C=m||s,S=t?C(p,P):n||f?C(p,0):void 0;P>k;k++)if((d||k in _)&&(y=x(b=_[k],k,w),e))if(t)S[k]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:u.call(S,b)}else switch(e){case 4:return!1;case 7:u.call(S,b)}return h?-1:c||l?l:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},1194:function(e,t,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},3671:function(e,t,n){var r=n(3099),i=n(7908),o=n(8361),a=n(7466),s=function(e){return function(t,n,s,u){r(n);var c=i(t),l=o(c),h=a(c.length),f=e?h-1:0,d=e?-1:1;if(s<2)for(;;){if(f in l){u=l[f],f+=d;break}if(f+=d,e?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=d)f in l&&(u=n(u,l[f],f,c));return u}};e.exports={left:s(!1),right:s(!0)}},4362:function(e){var t=Math.floor,n=function(e,o){var a=e.length,s=t(a/2);return a<8?r(e,o):i(n(e.slice(0,s),o),n(e.slice(s),o),o)},r=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},i=function(e,t,n){for(var r=e.length,i=t.length,o=0,a=0,s=[];o<r||a<i;)o<r&&a<i?s.push(n(e[o],t[a])<=0?e[o++]:t[a++]):s.push(o<r?e[o++]:t[a++]);return s};e.exports=n},7475:function(e,t,n){var r=n(111),i=n(3157),o=n(5112)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)?r(t)&&null===(t=t[o])&&(t=void 0):t=void 0),void 0===t?Array:t}},5417:function(e,t,n){var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},3411:function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},7072:function(e,t,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,n){var r=n(1694),i=n(4326),o=n(5112)("toStringTag"),a="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=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),u=n(408),c=n(654),l=n(6340),h=n(9781),f=n(2423).fastKey,d=n(9909),p=d.set,g=d.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})})),d=g(t),v=function(e,t,n){var r,i,o=d(e),a=m(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},m=function(e,t){var n,r=d(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=this,n=d(t),r=m(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=d(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),o(l.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),h&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},9320:function(e,t,n){"use strict";var r=n(2248),i=n(2423).getWeakData,o=n(9670),a=n(111),s=n(5787),u=n(408),c=n(2092),l=n(6656),h=n(9909),f=h.set,d=h.getterFor,p=c.find,g=c.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var h=e((function(e,r){s(e,h,t),f(e,{type:t,id:v++,frozen:void 0}),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})})),p=d(t),g=function(e,t,n){var r=p(e),a=i(o(t),!0);return!0===a?m(r).set(t,n):a[r.id]=n,e};return r(h.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?m(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?m(t).has(e):n&&l(n,t.id)}}),r(h.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=i(e);return!0===n?m(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),h}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),s=n(2423),u=n(408),c=n(5787),l=n(111),h=n(7293),f=n(7072),d=n(8003),p=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",b=i[e],y=b&&b.prototype,w=b,_={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof b||!(v||y.forEach&&!h((function(){(new b).entries().next()})))))w=n.getConstructor(t,e,g,m),s.enable();else if(o(e,!0)){var P=new w,k=P[m](v?{}:-0,1)!=P,C=h((function(){P.has(1)})),S=f((function(e){new b(e)})),T=!v&&h((function(){for(var e=new b,t=5;t--;)e[m](t,t);return!e.has(-0)}));S||((w=t((function(t,n){c(t,w,e);var r=p(new b,t,w);return null!=n&&u(n,r[m],{that:r,AS_ENTRIES:g}),r}))).prototype=y,y.constructor=w),(C||T)&&(x("delete"),x("has"),g&&x("get")),(T||k)&&x(m),v&&y.clear&&delete y.clear}return _[e]=w,r({global:!0,forced:w!=b},_),d(w,e),v||n.setStrong(w,e,g),w}},9920:function(e,t,n){var r=n(6656),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},4964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=u,e}},8880:function(e,t,n){var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},8709:function(e,t,n){"use strict";var r=n(9670),i=n(2140);e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return i(this,e)}},654:function(e,t,n){"use strict";var r=n(2109),i=n(4994),o=n(9518),a=n(7674),s=n(8003),u=n(8880),c=n(1320),l=n(5112),h=n(1913),f=n(7497),d=n(3383),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,l,d,_,x){i(n,t,l);var P,k,C,S=function(e){if(e===d&&O)return O;if(!g&&e in I)return I[e];switch(e){case m:case b:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",E=!1,I=e.prototype,R=I[v]||I["@@iterator"]||d&&I[d],O=!g&&R||S(d),A="Array"==t&&I.entries||R;if(A&&(P=o(A.call(new e)),p!==Object.prototype&&P.next&&(h||o(P)===p||(a?a(P,p):"function"!=typeof P[v]&&u(P,v,w)),s(P,T,!0,!0),h&&(f[T]=w))),d==b&&R&&R.name!==b&&(E=!0,O=function(){return R.call(this)}),h&&!x||I[v]===O||u(I,v,O),f[t]=O,d)if(k={values:S(b),keys:_?O:S(m),entries:S(y)},x)for(C in k)(g||E||!(C in I))&&c(I,C,k[C]);else r({target:t,proto:!0,forced:g||E},k);return k}},7235:function(e,t,n){var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8324:function(e){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}},8886:function(e,t,n){var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e){e.exports="object"==typeof window},256:function(e,t,n){var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:function(e,t,n){var r=n(8113),i=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},8334:function(e,t,n){var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(e,t,n){var r=n(4326),i=n(7854);e.exports="process"==r(i.process)},1036:function(e,t,n){var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l?i=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},8008:function(e,t,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,h,f,d,p=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],h=e.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(g?l:p+(v?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(n,l,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var r=n(1320),i=n(2261),o=n(7293),a=n(5112),s=n(8880),u=a("species"),c=RegExp.prototype;e.exports=function(e,t,n,l){var h=a(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),d=f&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!d||n){var p=/./[h],g=t(h,""[e],(function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?f&&!o?{done:!0,value:p.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(c,h,g[1])}l&&s(c[h],"sham",!0)}},6790:function(e,t,n){"use strict";var r=n(3157),i=n(7466),o=n(9974),a=function(e,t,n,s,u,c,l,h){for(var f,d=u,p=0,g=!!l&&o(l,h,3);p<s;){if(p in n){if(f=g?g(n[p],p,t):n[p],c>0&&r(f))d=a(e,t,f,i(f.length),d,c-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=f}d++}p++}return d};e.exports=a},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},7065:function(e,t,n){"use strict";var r=n(3099),i=n(111),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(a.prototype=t.prototype),a}},5005:function(e,t,n){var r=n(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:function(e,t,n){var r=n(648),i=n(7497),o=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},8554:function(e,t,n){var r=n(9670),i=n(1246);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},647:function(e,t,n){var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,c,l){var h=n+e.length,f=u.length,d=s;return void 0!==c&&(c=r(c),d=a),o.call(l,d,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(h);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var l=i(s/10);return 0===l?r:l<=f?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):r}a=u[s-1]}return void 0===a?"":a}))}},7854:function(e,t,n){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)||function(){return this}()||Function("return this")()},6656:function(e,t,n){var r=n(7908),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7293),i=n(4326),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},9587:function(e,t,n){var r=n(111),i=n(7674);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},2788:function(e,t,n){var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},2423:function(e,t,n){var r=n(2109),i=n(3501),o=n(111),a=n(6656),s=n(3070).f,u=n(8006),c=n(1156),l=n(9711),h=n(6677),f=!1,d=l("meta"),p=0,g=Object.isExtensible||function(){return!0},v=function(e){s(e,d,{value:{objectID:"O"+p++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},f=!0;var e=u.f,t=[].splice,n={};n[d]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===d){t.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,d)){if(!g(e))return"F";if(!t)return"E";v(e)}return e[d].objectID},getWeakData:function(e,t){if(!a(e,d)){if(!g(e))return!0;if(!t)return!1;v(e)}return e[d].weakData},onFreeze:function(e){return h&&f&&g(e)&&!a(e,d)&&v(e),e}};i[d]=!0},9909:function(e,t,n){var r,i,o,a=n(8536),s=n(7854),u=n(111),c=n(8880),l=n(6656),h=n(5465),f=n(6200),d=n(3501),p="Object already initialized",g=s.WeakMap;if(a||h.state){var v=h.state||(h.state=new g),m=v.get,b=v.has,y=v.set;r=function(e,t){if(b.call(v,e))throw new TypeError(p);return t.facade=e,y.call(v,e,t),t},i=function(e){return m.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var w=f("state");d[w]=!0,r=function(e,t){if(l(e,w))throw new TypeError(p);return t.facade=e,c(e,w,t),t},i=function(e){return l(e,w)?e[w]:{}},o=function(e){return l(e,w)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4705:function(e,t,n){var r=n(7293),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},7850:function(e,t,n){var r=n(111),i=n(4326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},2190:function(e,t,n){var r=n(5005),i=n(3307);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},408:function(e,t,n){var r=n(9670),i=n(7659),o=n(7466),a=n(9974),s=n(1246),u=n(9212),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,h,f,d,p,g,v,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(t,m,1+b+w),x=function(e){return l&&u(l),new c(!0,e)},P=function(e){return b?(r(e),w?_(e[0],e[1],x):_(e[0],e[1])):w?_(e,x):_(e)};if(y)l=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(i(h)){for(f=0,d=o(e.length);d>f;f++)if((p=P(e[f]))&&p instanceof c)return p;return new c(!1)}l=h.call(e)}for(g=l.next;!(v=g.call(l)).done;){try{p=P(v.value)}catch(e){throw u(l),e}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},9212:function(e,t,n){var r=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},3383:function(e,t,n){"use strict";var r,i,o,a=n(7293),s=n(9518),u=n(8880),c=n(6656),l=n(5112),h=n(1913),f=l("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var p=null==r||a((function(){var e={};return r[f].call(e)!==e}));p&&(r={}),h&&!p||c(r,f)||u(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7497:function(e){e.exports={}},4310:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},5948:function(e,t,n){var r,i,o,a,s,u,c,l,h=n(7854),f=n(1236).f,d=n(261).set,p=n(8334),g=n(1528),v=n(1036),m=n(5268),b=h.MutationObserver||h.WebKitMutationObserver,y=h.document,w=h.process,_=h.Promise,x=f(h,"queueMicrotask"),P=x&&x.value;P||(r=function(){var e,t;for(m&&(e=w.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},p||m||v||!b||!y?!g&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=c.then,a=function(){l.call(c,r)}):a=m?function(){w.nextTick(r)}:function(){d.call(h,r)}:(s=!0,u=y.createTextNode(""),new b(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=P||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3366:function(e,t,n){var r=n(7854);e.exports=r.Promise},133:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(e,t,n){var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(e,t,n){var r=n(7854),i=n(2788),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},8523:function(e,t,n){"use strict";var r=n(3099),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},3929:function(e,t,n){var r=n(7850);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},3009:function(e,t,n){var r=n(7854),i=n(1340),o=n(3111).trim,a=n(1361),s=r.parseInt,u=/^[+-]?0[Xx]/,c=8!==s(a+"08")||22!==s(a+"0x16");e.exports=c?function(e,t){var n=o(i(e));return s(n,t>>>0||(u.test(n)?16:10))}:s},1574:function(e,t,n){"use strict";var r=n(9781),i=n(7293),o=n(1956),a=n(5181),s=n(5296),u=n(7908),c=n(8361),l=Object.assign,h=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||o(l({},t)).join("")!=i}))?function(e,t){for(var n=u(e),i=arguments.length,l=1,h=a.f,f=s.f;i>l;)for(var d,p=c(arguments[l++]),g=h?o(p).concat(h(p)):o(p),v=g.length,m=0;v>m;)d=g[m++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:l},30:function(e,t,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?d(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[l]=e):n=p(),void 0===t?n:o(n,t)}},6048:function(e,t,n){var r=n(9781),i=n(3070),o=n(9670),a=n(1956);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},3070:function(e,t,n){var r=n(9781),i=n(4664),o=n(9670),a=n(4948),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(5296),o=n(9114),a=n(5656),s=n(4948),u=n(6656),c=n(4664),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},1156:function(e,t,n){var r=n(5656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},8006:function(e,t,n){var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(6656),i=n(7908),o=n(6200),a=n(8544),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},6324:function(e,t,n){var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},1956:function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},4699:function(e,t,n){var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,s=function(e){return function(t){for(var n,s=o(t),u=i(s),c=u.length,l=0,h=[];c>l;)n=u[l++],r&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},288:function(e,t,n){"use strict";var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(e,t,n){var r=n(111);e.exports=function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(8006),o=n(5181),a=n(9670);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},857:function(e,t,n){var r=n(7854);e.exports=r},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:function(e,t,n){var r=n(9670),i=n(111),o=n(8523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},2248:function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},1320:function(e,t,n){var r=n(7854),i=n(8880),o=n(6656),a=n(3505),s=n(2788),u=n(9909),c=u.get,l=u.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var u,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(u=l(n)).source||(u.source=h.join("string"==typeof t?t:""))),e!==r?(c?!d&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7651:function(e,t,n){var r=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},2261:function(e,t,n){"use strict";var r,i,o=n(1340),a=n(7066),s=n(2999),u=n(2309),c=n(30),l=n(9909).get,h=n(9441),f=n(8173),d=RegExp.prototype.exec,p=u("native-string-replace",String.prototype.replace),g=d,v=(r=/a/,i=/b*/g,d.call(r,"a"),d.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),m=s.UNSUPPORTED_Y||s.BROKEN_CARET,b=void 0!==/()??/.exec("")[1];(v||b||m||h||f)&&(g=function(e){var t,n,r,i,s,u,h,f=this,y=l(f),w=o(e),_=y.raw;if(_)return _.lastIndex=f.lastIndex,t=g.call(_,w),f.lastIndex=_.lastIndex,t;var x=y.groups,P=m&&f.sticky,k=a.call(f),C=f.source,S=0,T=w;if(P&&(-1===(k=k.replace("y","")).indexOf("g")&&(k+="g"),T=w.slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==w.charAt(f.lastIndex-1))&&(C="(?: "+C+")",T=" "+T,S++),n=new RegExp("^(?:"+C+")",k)),b&&(n=new RegExp("^"+C+"$(?!\\s)",k)),v&&(r=f.lastIndex),i=d.call(P?n:f,T),P?i?(i.input=i.input.slice(S),i[0]=i[0].slice(S),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:v&&i&&(f.lastIndex=f.global?i.index+i[0].length:r),b&&i&&i.length>1&&p.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&x)for(i.groups=u=c(null),s=0;s<x.length;s++)u[(h=x[s])[0]]=i[h[1]];return i}),e.exports=g},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,n){var r=n(7293),i=n(7854).RegExp;t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},9441:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},8173:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},1150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3505:function(e,t,n){var r=n(7854);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:function(e,t,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,n){var r=n(9670),i=n(3099),o=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},8710:function(e,t,n){var r=n(9958),i=n(1340),o=n(4488),a=function(e){return function(t,n){var a,s,u=i(o(t)),c=r(n),l=u.length;return c<0||c>=l?e?"":void 0:(a=u.charCodeAt(c))<55296||a>56319||c+1===l||(s=u.charCodeAt(c+1))<56320||s>57343?e?u.charAt(c):a:e?u.slice(c,c+2):s-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},8415:function(e,t,n){"use strict";var r=n(9958),i=n(1340),o=n(4488);e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},3111:function(e,t,n){var r=n(4488),i=n(1340),o="["+n(1361)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),u=function(e){return function(t){var n=i(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},261:function(e,t,n){var r,i,o,a,s=n(7854),u=n(7293),c=n(9974),l=n(490),h=n(317),f=n(8334),d=n(5268),p=s.setImmediate,g=s.clearImmediate,v=s.process,m=s.MessageChannel,b=s.Dispatch,y=0,w={};try{r=s.location}catch(e){}var _=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){_(e)}},P=function(e){_(e.data)},k=function(e){s.postMessage(String(e),r.protocol+"//"+r.host)};p&&g||(p=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},g=function(e){delete w[e]},d?i=function(e){v.nextTick(x(e))}:b&&b.now?i=function(e){b.now(x(e))}:m&&!f?(a=(o=new m).port2,o.port1.onmessage=P,i=c(a.postMessage,a,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(k)?(i=k,s.addEventListener("message",P,!1)):i="onreadystatechange"in h("script")?function(e){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),_(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:p,clear:g}},863:function(e,t,n){var r=n(4326);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},1400:function(e,t,n){var r=n(9958),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9958:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:function(e,t,n){var r=n(9958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488);e.exports=function(e){return Object(r(e))}},7593:function(e,t,n){var r=n(111),i=n(2190),o=n(2140),a=n(5112)("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,s=e[a];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},1694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:function(e,t,n){var r=n(2190);e.exports=function(e){if(r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},9711:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(6656),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(l,e)?c[e]=l[e]:c[e]=h("Symbol."+e)),c[e]}},1361:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2222:function(e,t,n){"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),u=n(7466),c=n(6135),l=n(5417),h=n(1194),f=n(5112),d=n(7392),p=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=d>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=h("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!b},{concat:function(e){var t,n,r,i,o,a=s(this),h=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(y(o=-1===t?a:arguments[t])){if(f+(i=u(o.length))>g)throw TypeError(v);for(n=0;n<i;n++,f++)n in o&&c(h,f,o[n])}else{if(f>=g)throw TypeError(v);c(h,f++,o)}return h.length=f,h}})},3290:function(e,t,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(e,t,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},4553:function(e,t,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(e,t,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(e,t,n){"use strict";var r=n(2109),i=n(6790),o=n(7908),a=n(7466),s=n(3099),u=n(5417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=a(n.length);return s(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},4944:function(e,t,n){"use strict";var r=n(2109),i=n(6790),o=n(7908),a=n(7466),s=n(9958),u=n(5417);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t.length),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},1038:function(e,t,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(e){Array.from(e)}))},{from:i})},6699:function(e,t,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(e,t,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(654),u="Array Iterator",c=a.set,l=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(e,t,n){"use strict";var r=n(2109),i=n(8361),o=n(5656),a=n(9341),s=[].join,u=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},1249:function(e,t,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5827:function(e,t,n){"use strict";var r=n(2109),i=n(3671).left,o=n(9341),a=n(7392),s=n(5268);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},5069:function(e,t,n){"use strict";var r=n(2109),i=n(3157),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},7042:function(e,t,n){"use strict";var r=n(2109),i=n(111),o=n(3157),a=n(1400),s=n(7466),u=n(5656),c=n(6135),l=n(5112),h=n(1194)("slice"),f=l("species"),d=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,l,h=u(this),g=s(h.length),v=a(e,g),m=a(void 0===t?g:t,g);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(h,v,m);for(r=new(void 0===n?Array:n)(p(m-v,0)),l=0;v<m;v++,l++)v in h&&c(r,l,h[v]);return r.length=l,r}})},2707:function(e,t,n){"use strict";var r=n(2109),i=n(3099),o=n(7908),a=n(7466),s=n(1340),u=n(7293),c=n(4362),l=n(9341),h=n(8886),f=n(256),d=n(7392),p=n(8008),g=[],v=g.sort,m=u((function(){g.sort(void 0)})),b=u((function(){g.sort(null)})),y=l("sort"),w=!u((function(){if(d)return d<70;if(!(h&&h>3)){if(f)return!0;if(p)return p<603;var e,t,n,r,i="";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),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:m||!b||!y||!w},{sort:function(e){void 0!==e&&i(e);var t=o(this);if(w)return void 0===e?v.call(t):v.call(t,e);var n,r,u=[],l=a(t.length);for(r=0;r<l;r++)r in t&&u.push(t[r]);for(n=(u=c(u,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e))).length,r=0;r<n;)t[r]=u[r++];for(;r<l;)delete t[r++];return t}})},561:function(e,t,n){"use strict";var r=n(2109),i=n(1400),o=n(9958),a=n(7466),s=n(7908),u=n(5417),c=n(6135),l=n(1194)("splice"),h=Math.max,f=Math.min,d=9007199254740991,p="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,l,g,v,m,b=s(this),y=a(b.length),w=i(e,y),_=arguments.length;if(0===_?n=r=0:1===_?(n=0,r=y-w):(n=_-2,r=f(h(o(t),0),y-w)),y+n-r>d)throw TypeError(p);for(l=u(b,r),g=0;g<r;g++)(v=w+g)in b&&c(l,g,b[v]);if(l.length=r,n<r){for(g=w;g<y-r;g++)m=g+n,(v=g+r)in b?b[m]=b[v]:delete b[m];for(g=y;g>y-r+n;g--)delete b[g-1]}else if(n>r)for(g=y-r;g>w;g--)m=g+n-1,(v=g+r-1)in b?b[m]=b[v]:delete b[m];for(g=0;g<n;g++)b[g+w]=arguments[g+2];return b.length=y-r+n,l}})},9244:function(e,t,n){n(1223)("flatMap")},3792:function(e,t,n){n(1223)("flat")},6078:function(e,t,n){var r=n(8880),i=n(8709),o=n(5112)("toPrimitive"),a=Date.prototype;o in a||r(a,o,i)},8309:function(e,t,n){var r=n(9781),i=n(3070).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},5837:function(e,t,n){n(2109)({global:!0},{globalThis:n(7854)})},3706:function(e,t,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},1532:function(e,t,n){"use strict";var r=n(7710),i=n(5631);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},4914:function(e,t,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},2420:function(e,t,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(e,t,n){n(8003)(Math,"Math",!0)},9653:function(e,t,n){"use strict";var r=n(9781),i=n(7854),o=n(4705),a=n(1320),s=n(6656),u=n(4326),c=n(9587),l=n(2190),h=n(7593),f=n(7293),d=n(30),p=n(8006).f,g=n(1236).f,v=n(3070).f,m=n(3111).trim,b="Number",y=i.Number,w=y.prototype,_=u(d(w))==b,x=function(e){if(l(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,r,i,o,a,s,u,c=h(e,"number");if("string"==typeof c&&c.length>2)if(43===(t=(c=m(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((u=o.charCodeAt(s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(o(b,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var P,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(_?f((function(){w.valueOf.call(n)})):u(n)!=b)?c(new y(x(t)),n,k):x(t)},C=r?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;C.length>S;S++)s(y,P=C[S])&&!s(k,P)&&v(k,P,g(y,P));k.prototype=w,w.constructor=k,a(i,b,k)}},6977:function(e,t,n){"use strict";var r=n(2109),i=n(9958),o=n(863),a=n(8415),s=n(7293),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)},h=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},f=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},d=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,r,s,u=o(this),c=i(e),p=[0,0,0,0,0,0],g="",v="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(p,0,n),r=c;r>=7;)h(p,1e7,0),r-=7;for(h(p,l(10,r,1),0),r=t-1;r>=23;)f(p,1<<23),r-=23;f(p,1<<r),h(p,1,1),f(p,2),v=d(p)}else h(p,0,n),h(p,1<<-t,0),v=d(p)+a.call("0",c);return c>0?g+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):g+v}})},9601:function(e,t,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(e,t,n){var r=n(2109),i=n(6677),o=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},5003:function(e,t,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},9337:function(e,t,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&u(l,t,n);return l}})},6210:function(e,t,n){var r=n(2109),i=n(7293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},489:function(e,t,n){var r=n(2109),i=n(7293),o=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},7941:function(e,t,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},1539:function(e,t,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(e,t,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},1058:function(e,t,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},8674:function(e,t,n){"use strict";var r,i,o,a,s=n(2109),u=n(1913),c=n(7854),l=n(5005),h=n(3366),f=n(1320),d=n(2248),p=n(7674),g=n(8003),v=n(6340),m=n(111),b=n(3099),y=n(5787),w=n(2788),_=n(408),x=n(7072),P=n(6707),k=n(261).set,C=n(5948),S=n(9478),T=n(842),E=n(8523),I=n(2534),R=n(9909),O=n(4705),A=n(5112),M=n(7871),$=n(5268),L=n(7392),j=A("species"),D="Promise",N=R.get,U=R.set,B=R.getterFor(D),F=h&&h.prototype,W=h,z=F,H=c.TypeError,V=c.document,q=c.process,X=E.f,Y=X,G=!!(V&&V.createEvent&&c.dispatchEvent),Z="function"==typeof PromiseRejectionEvent,K="unhandledrejection",J=!1,Q=O(D,(function(){var e=w(W),t=e!==String(W);if(!t&&66===L)return!0;if(u&&!z.finally)return!0;if(L>=51&&/native code/.test(e))return!1;var n=new W((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[j]=r,!(J=n.then((function(){}))instanceof r)||!t&&M&&!Z})),ee=Q||!x((function(e){W.all(e).catch((function(){}))})),te=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;C((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,u,c=n[o++],l=i?c.ok:c.fail,h=c.resolve,f=c.reject,d=c.domain;try{l?(i||(2===e.rejection&&ae(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),u=!0)),a===c.promise?f(H("Promise-chain cycle")):(s=te(a))?s.call(a,h,f):h(a)):f(r)}catch(e){d&&!u&&d.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ie(e)}))}},re=function(e,t,n){var r,i;G?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!Z&&(i=c["on"+e])?i(r):e===K&&T("Unhandled promise rejection",n)},ie=function(e){k.call(c,(function(){var t,n=e.facade,r=e.value;if(oe(e)&&(t=I((function(){$?q.emit("unhandledRejection",r,n):re(K,n,r)})),e.rejection=$||oe(e)?2:1,t.error))throw t.value}))},oe=function(e){return 1!==e.rejection&&!e.parent},ae=function(e){k.call(c,(function(){var t=e.facade;$?q.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},se=function(e,t,n){return function(r){e(t,r,n)}},ue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ne(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H("Promise can't be resolved itself");var r=te(t);r?C((function(){var n={done:!1};try{r.call(t,se(ce,n,e),se(ue,n,e))}catch(t){ue(n,t,e)}})):(e.value=t,e.state=1,ne(e,!1))}catch(t){ue({done:!1},t,e)}}};if(Q&&(z=(W=function(e){y(this,W,D),b(e),r.call(this);var t=N(this);try{e(se(ce,t),se(ue,t))}catch(e){ue(t,e)}}).prototype,(r=function(e){U(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(z,{then:function(e,t){var n=B(this),r=X(P(this,W));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ne(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=se(ce,t),this.reject=se(ue,t)},E.f=X=function(e){return e===W||e===o?new i(e):Y(e)},!u&&"function"==typeof h&&F!==Object.prototype)){a=F.then,J||(f(F,"then",(function(e,t){var n=this;return new W((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),f(F,"catch",z.catch,{unsafe:!0}));try{delete F.constructor}catch(e){}p&&p(F,z)}s({global:!0,wrap:!0,forced:Q},{Promise:W}),g(W,D,!1,!0),v(D),o=l(D),s({target:D,stat:!0,forced:Q},{reject:function(e){var t=X(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:u||Q},{resolve:function(e){return S(u&&this===o?W:this,e)}}),s({target:D,stat:!0,forced:ee},{all:function(e){var t=this,n=X(t),r=n.resolve,i=n.reject,o=I((function(){var n=b(t.resolve),o=[],a=0,s=1;_(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,i=I((function(){var i=b(t.resolve);_(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:function(e,t,n){var r=n(2109),i=n(5005),o=n(3099),a=n(9670),s=n(111),u=n(30),c=n(7065),l=n(7293),h=i("Reflect","construct"),f=l((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),d=!l((function(){h((function(){}))})),p=f||d;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var i=n.prototype,l=u(s(i)?i:Object.prototype),p=Function.apply.call(e,l,t);return s(p)?p:l}})},4819:function(e,t,n){var r=n(2109),i=n(111),o=n(9670),a=n(6656),s=n(1236),u=n(9518);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,l=arguments.length<3?t:arguments[2];return o(t)===l?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(l):i(c=u(t))?e(c,n,l):void 0}})},4603:function(e,t,n){var r=n(9781),i=n(7854),o=n(4705),a=n(9587),s=n(8880),u=n(3070).f,c=n(8006).f,l=n(7850),h=n(1340),f=n(7066),d=n(2999),p=n(1320),g=n(7293),v=n(6656),m=n(9909).enforce,b=n(6340),y=n(5112),w=n(9441),_=n(8173),x=y("match"),P=i.RegExp,k=P.prototype,C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,S=/a/g,T=/a/g,E=new P(S)!==S,I=d.UNSUPPORTED_Y;if(o("RegExp",r&&(!E||I||w||_||g((function(){return T[x]=!1,P(S)!=S||P(T)==T||"/a/i"!=P(S,"i")}))))){for(var R=function(e,t){var n,r,i,o,u,c,d=this instanceof R,p=l(e),g=void 0===t,b=[],y=e;if(!d&&p&&g&&e.constructor===R)return e;if((p||e instanceof R)&&(e=e.source,g&&(t="flags"in y?y.flags:f.call(y))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),y=e,w&&"dotAll"in S&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,I&&"sticky"in S&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),_&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:C.test(e.slice(r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===l||v(a,l))throw new SyntaxError("Invalid capture group name");a[l]=!0,o.push([l,c]),u=!1,l="";continue}u?l+=t:i+=t}return[i,o]}(e))[0],b=o[1]),u=a(P(e,t),d?this:k,R),(r||i||b.length)&&(c=m(u),r&&(c.dotAll=!0,c.raw=R(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++r);return i}(e),n)),i&&(c.sticky=!0),b.length&&(c.groups=b)),e!==y)try{s(u,"source",""===y?"(?:)":y)}catch(e){}return u},O=function(e){e in R||u(R,e,{configurable:!0,get:function(){return P[e]},set:function(t){P[e]=t}})},A=c(P),M=0;A.length>M;)O(A[M++]);k.constructor=R,R.prototype=k,p(i,"RegExp",R)}b("RegExp")},4916:function(e,t,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(e,t,n){"use strict";var r=n(1320),i=n(9670),o=n(1340),a=n(7293),s=n(7066),u="toString",c=RegExp.prototype,l=c.toString,h=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=u;(h||f)&&r(RegExp.prototype,u,(function(){var e=i(this),t=o(e.source),n=e.flags;return"/"+t+"/"+o(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n)}),{unsafe:!0})},189:function(e,t,n){"use strict";var r=n(7710),i=n(5631);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},7852:function(e,t,n){"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),u=n(3929),c=n(4488),l=n(4964),h=n(1913),f="".endsWith,d=Math.min,p=l("endsWith");i({target:"String",proto:!0,forced:!(!h&&!p&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||p)},{endsWith:function(e){var t=s(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:d(a(n),r),o=s(e);return f?f.call(t,o,i):t.slice(i-o.length,i)===o}})},2023:function(e,t,n){"use strict";var r=n(2109),i=n(3929),o=n(4488),a=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(e){return!!~a(o(this)).indexOf(a(i(e)),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(e){u(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},5306:function(e,t,n){"use strict";var r=n(7007),i=n(7293),o=n(9670),a=n(9958),s=n(7466),u=n(1340),c=n(4488),l=n(1530),h=n(647),f=n(7651),d=n(5112)("replace"),p=Math.max,g=Math.min,v="$0"==="a".replace(/./,"$0"),m=!!/./[d]&&""===/./[d]("a","$0");r("replace",(function(e,t,n){var r=m?"$":"$0";return[function(e,n){var r=c(this),i=null==e?void 0:e[d];return void 0!==i?i.call(e,r,n):t.call(u(r),e,n)},function(e,i){var c=o(this),d=u(e);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var v=n(t,c,d,i);if(v.done)return v.value}var m="function"==typeof i;m||(i=u(i));var b=c.global;if(b){var y=c.unicode;c.lastIndex=0}for(var w=[];;){var _=f(c,d);if(null===_)break;if(w.push(_),!b)break;""===u(_[0])&&(c.lastIndex=l(d,s(c.lastIndex),y))}for(var x,P="",k=0,C=0;C<w.length;C++){_=w[C];for(var S=u(_[0]),T=p(g(a(_.index),d.length),0),E=[],I=1;I<_.length;I++)E.push(void 0===(x=_[I])?x:String(x));var R=_.groups;if(m){var O=[S].concat(E,T,d);void 0!==R&&O.push(R);var A=u(i.apply(void 0,O))}else A=h(S,d,T,E,R,i);T>=k&&(P+=d.slice(k,T)+A,k=T+S.length)}return P+d.slice(k)}]}),!!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!v||m)},4765:function(e,t,n){"use strict";var r=n(7007),i=n(9670),o=n(4488),a=n(1150),s=n(1340),u=n(7651);r("search",(function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),c=n(t,r,o);if(c.done)return c.value;var l=r.lastIndex;a(l,0)||(r.lastIndex=0);var h=u(r,o);return a(r.lastIndex,l)||(r.lastIndex=l),null===h?-1:h.index}]}))},3123:function(e,t,n){"use strict";var r=n(7007),i=n(7850),o=n(9670),a=n(4488),s=n(6707),u=n(1530),c=n(7466),l=n(1340),h=n(7651),f=n(2261),d=n(2999),p=n(7293),g=d.UNSUPPORTED_Y,v=[].push,m=Math.min,b=4294967295;r("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=l(a(this)),o=void 0===n?b:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,u,c,h=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,d+"g");(s=f.call(g,r))&&!((u=g.lastIndex)>p&&(h.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&v.apply(h,s.slice(1)),c=s[0].length,p=u,h.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return p===r.length?!c&&g.test("")||h.push(""):h.push(r.slice(p)),h.length>o?h.slice(0,o):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(l(i),t,n)},function(e,i){var a=o(this),f=l(e),d=n(r,a,f,i,r!==t);if(d.done)return d.value;var p=s(a,RegExp),v=a.unicode,y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(g?"g":"y"),w=new p(g?"^(?:"+a.source+")":a,y),_=void 0===i?b:i>>>0;if(0===_)return[];if(0===f.length)return null===h(w,f)?[f]:[];for(var x=0,P=0,k=[];P<f.length;){w.lastIndex=g?0:P;var C,S=h(w,g?f.slice(P):f);if(null===S||(C=m(c(w.lastIndex+(g?P:0)),f.length))===x)P=u(f,P,v);else{if(k.push(f.slice(x,P)),k.length===_)return k;for(var T=1;T<=S.length-1;T++)if(k.push(S[T]),k.length===_)return k;P=x=C}}return k.push(f.slice(x)),k}]}),!!p((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]})),g)},6755:function(e,t,n){"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),u=n(3929),c=n(4488),l=n(4964),h=n(1913),f="".startsWith,d=Math.min,p=l("startsWith");i({target:"String",proto:!0,forced:!(!h&&!p&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=s(c(this));u(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},1817:function(e,t,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(6656),s=n(111),u=n(3070).f,c=n(9920),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new l(e):void 0===e?l():l(e);return""===e&&(h[t]=!0),t};c(f,l);var d=f.prototype=l.prototype;d.constructor=f;var p=d.toString,g="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(h,e))return"";var n=g?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},2165:function(e,t,n){n(7235)("iterator")},2526:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(1913),s=n(9781),u=n(133),c=n(7293),l=n(6656),h=n(3157),f=n(111),d=n(2190),p=n(9670),g=n(7908),v=n(5656),m=n(4948),b=n(1340),y=n(9114),w=n(30),_=n(1956),x=n(8006),P=n(1156),k=n(5181),C=n(1236),S=n(3070),T=n(5296),E=n(8880),I=n(1320),R=n(2309),O=n(6200),A=n(3501),M=n(9711),$=n(5112),L=n(6061),j=n(7235),D=n(8003),N=n(9909),U=n(2092).forEach,B=O("hidden"),F="Symbol",W=$("toPrimitive"),z=N.set,H=N.getterFor(F),V=Object.prototype,q=i.Symbol,X=o("JSON","stringify"),Y=C.f,G=S.f,Z=P.f,K=T.f,J=R("symbols"),Q=R("op-symbols"),ee=R("string-to-symbol-registry"),te=R("symbol-to-string-registry"),ne=R("wks"),re=i.QObject,ie=!re||!re.prototype||!re.prototype.findChild,oe=s&&c((function(){return 7!=w(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(V,t);r&&delete V[t],G(e,t,n),r&&e!==V&&G(V,t,r)}:G,ae=function(e,t){var n=J[e]=w(q.prototype);return z(n,{type:F,tag:e,description:t}),s||(n.description=t),n},se=function(e,t,n){e===V&&se(Q,t,n),p(e);var r=m(t);return p(n),l(J,r)?(n.enumerable?(l(e,B)&&e[B][r]&&(e[B][r]=!1),n=w(n,{enumerable:y(0,!1)})):(l(e,B)||G(e,B,y(1,{})),e[B][r]=!0),oe(e,r,n)):G(e,r,n)},ue=function(e,t){p(e);var n=v(t),r=_(n).concat(fe(n));return U(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=K.call(this,t);return!(this===V&&l(J,t)&&!l(Q,t))&&(!(n||!l(this,t)||!l(J,t)||l(this,B)&&this[B][t])||n)},le=function(e,t){var n=v(e),r=m(t);if(n!==V||!l(J,r)||l(Q,r)){var i=Y(n,r);return!i||!l(J,r)||l(n,B)&&n[B][r]||(i.enumerable=!0),i}},he=function(e){var t=Z(v(e)),n=[];return U(t,(function(e){l(J,e)||l(A,e)||n.push(e)})),n},fe=function(e){var t=e===V,n=Z(t?Q:v(e)),r=[];return U(n,(function(e){!l(J,e)||t&&!l(V,e)||r.push(J[e])})),r};u||(I((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,t=M(e),n=function(e){this===V&&n.call(Q,e),l(this,B)&&l(this[B],t)&&(this[B][t]=!1),oe(this,t,y(1,e))};return s&&ie&&oe(V,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return H(this).tag})),I(q,"withoutSetter",(function(e){return ae(M(e),e)})),T.f=ce,S.f=se,C.f=le,x.f=P.f=he,k.f=fe,L.f=function(e){return ae($(e),e)},s&&(G(q.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),a||I(V,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),U(_(ne),(function(e){j(e)})),r({target:F,stat:!0,forced:!u},{for:function(e){var t=b(e);if(l(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!d(e))throw TypeError(e+" is not a symbol");if(l(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?w(e):ue(w(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:he,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:c((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(g(e))}}),X&&r({target:"JSON",stat:!0,forced:!u||c((function(){var e=q();return"[null]"!=X([e])||"{}"!=X({a:e})||"{}"!=X(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(f(t)||void 0!==e)&&!d(e))return h(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!d(t))return t}),i[1]=t,X.apply(null,i)}}),q.prototype[W]||E(q.prototype,W,q.prototype.valueOf),D(q,F),A[B]=!0},6649:function(e,t,n){n(7235)("toPrimitive")},3680:function(e,t,n){n(7235)("toStringTag")},4129:function(e,t,n){"use strict";var r,i=n(7854),o=n(2248),a=n(2423),s=n(7710),u=n(9320),c=n(111),l=n(9909).enforce,h=n(8536),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,u);if(h&&f){r=u.getConstructor(p,"WeakMap",!0),a.enable();var v=g.prototype,m=v.delete,b=v.has,y=v.get,w=v.set;o(v,{delete:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen.delete(e)}return m.call(this,e)},has:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},5743:function(e,t,n){n(5837)},4747:function(e,t,n){var r=n(7854),i=n(8324),o=n(8533),a=n(8880);for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},3948:function(e,t,n){var r=n(7854),i=n(8324),o=n(6992),a=n(8880),s=n(5112),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(e){d[u]=l}if(d[c]||a(d,c,h),i[h])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(e){d[p]=o[p]}}}},1637:function(e,t,n){"use strict";n(6992);var r=n(2109),i=n(5005),o=n(590),a=n(1320),s=n(2248),u=n(8003),c=n(4994),l=n(9909),h=n(5787),f=n(6656),d=n(9974),p=n(648),g=n(9670),v=n(111),m=n(1340),b=n(30),y=n(9114),w=n(8554),_=n(1246),x=n(5112),P=i("fetch"),k=i("Request"),C=k&&k.prototype,S=i("Headers"),T=x("iterator"),E="URLSearchParams",I="URLSearchParamsIterator",R=l.set,O=l.getterFor(E),A=l.getterFor(I),M=/\+/g,$=Array(4),L=function(e){return $[e-1]||($[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},j=function(e){try{return decodeURIComponent(e)}catch(t){return e}},D=function(e){var t=e.replace(M," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(L(n--),j);return t}},N=/[!'()~]|%20/g,U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},B=function(e){return U[e]},F=function(e){return encodeURIComponent(e).replace(N,B)},W=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:D(r.shift()),value:D(r.join("="))}))},z=function(e){this.entries.length=0,W(this.entries,e)},H=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=c((function(e,t){R(this,{type:I,iterator:w(O(e).entries),kind:t})}),"Iterator",(function(){var e=A(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),q=function(){h(this,q,E);var e,t,n,r,i,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(R(l,{type:E,entries:d,updateURL:function(){},updateSearchParams:z}),void 0!==c)if(v(c))if("function"==typeof(e=_(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(o=(i=w(g(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:m(a.value),value:m(s.value)})}else for(u in c)f(c,u)&&d.push({key:u,value:m(c[u])});else W(d,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:m(c))},X=q.prototype;if(s(X,{append:function(e,t){H(arguments.length,2);var n=O(this);n.entries.push({key:m(e),value:m(t)}),n.updateURL()},delete:function(e){H(arguments.length,1);for(var t=O(this),n=t.entries,r=m(e),i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){H(arguments.length,1);for(var t=O(this).entries,n=m(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){H(arguments.length,1);for(var t=O(this).entries,n=m(e),r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){H(arguments.length,1);for(var t=O(this).entries,n=m(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){H(arguments.length,1);for(var n,r=O(this),i=r.entries,o=!1,a=m(e),s=m(t),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=O(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=O(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),a(X,T,X.entries),a(X,"toString",(function(){for(var e,t=O(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(F(e.key)+"="+F(e.value));return n.join("&")}),{enumerable:!0}),u(q,E),r({global:!0,forced:!o},{URLSearchParams:q}),!o&&"function"==typeof S){var Y=function(e){if(v(e)){var t,n=e.body;if(p(n)===E)return(t=e.headers?new S(e.headers):new S).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),b(e,{body:y(0,String(n)),headers:y(0,t)})}return e};if("function"==typeof P&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return P(e,arguments.length>1?Y(arguments[1]):{})}}),"function"==typeof k){var G=function(e){return h(this,G,"Request"),new k(e,arguments.length>1?Y(arguments[1]):{})};C.constructor=G,G.prototype=C,r({global:!0,forced:!0},{Request:G})}}e.exports={URLSearchParams:q,getState:O}},840:function(e,t,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(e,t,n){return setTimeout(_(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var b=m((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),y=m((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&u(r,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function P(e,t){return e===s?t:e}function k(e,t,n){v(E(t),(function(t){e.addEventListener(t,n,!1)}))}function C(e,t,n){v(E(t),(function(t){e.removeEventListener(t,n,!1)}))}function S(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function E(e){return e.trim().split(/\s+/g)}function I(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function R(e){return Array.prototype.slice.call(e,0)}function O(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];I(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function A(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:t)in e)return r;o++}return s}var M=1;function $(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var L="ontouchstart"in i,j=A(i,"PointerEvent")!==s,D=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",U="mouse",B=["x","y"],F=["clientX","clientY"];function W(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function z(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=H(t)),i>1&&!n.firstMultiple?n.firstMultiple=H(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=t.center=V(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=G(u,c),t.distance=Y(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=X(t.deltaX,t.deltaY);var l,h,p=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,t.scale=a?(l=a.pointers,Y((h=r)[0],h[1],F)/Y(l[0],l[1],F)):1,t.rotation=a?function(e,t){return G(t[1],t[0],F)+G(e[1],e[0],F)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||a.velocity===s)){var c=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,h=q(u,c,l);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=X(c,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var g=e.element;S(t.srcEvent.target,g)&&(g=t.srcEvent.target),t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:V(t),deltaX:e.deltaX,deltaY:e.deltaY}}function V(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function X(e,t){return e===t?1:f(e)>=f(t)?e<0?2:4:t<0?8:16}function Y(e,t,n){n||(n=B);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){n||(n=B);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k($(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C($(this.element),this.evWin,this.domHandler)}};var Z={mousedown:1,mousemove:2,mouseup:4},K="mousedown",J="mousemove mouseup";function Q(){this.evEl=K,this.evWin=J,this.pressed=!1,W.apply(this,arguments)}w(Q,W,{handler:function(e){var t=Z[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:U,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:N,3:"pen",4:U,5:"kinect"},ne="pointerdown",re="pointermove pointerup pointercancel";function ie(){this.evEl=ne,this.evWin=re,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ne="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,W,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ee[r],o=te[e.pointerType]||e.pointerType,a=o==N,s=I(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ue(){this.evTarget=ae,this.evWin=se,this.started=!1,W.apply(this,arguments)}function ce(e,t){var n=R(e.touches),r=R(e.changedTouches);return 12&t&&(n=O(n.concat(r),"identifier",!0)),[n,r]}w(ue,W,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},he="touchstart touchmove touchend touchcancel";function fe(){this.evTarget=he,this.targetIds={},W.apply(this,arguments)}function de(e,t){var n=R(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=R(e.changedTouches),s=[],u=this.target;if(o=n.filter((function(e){return S(e.target,u)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[O(o.concat(s),"identifier",!0),s]:void 0}function pe(){W.apply(this,arguments);var e=_(this.handler,this);this.touch=new fe(this.manager,e),this.mouse=new Q(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ge(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ve.call(this,t)):12&e&&ve.call(this,t)}function ve(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function me(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(fe,W,{handler:function(e){var t=le[e.type],n=de.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}),w(pe,W,{handler:function(e,t,n){var r=n.pointerType==N,i=n.pointerType==U;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ge.call(this,t,n);else if(i&&me.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var be=A(l.style,"touchAction"),ye=be!==s,we="compute",_e="auto",xe="manipulation",Pe="none",ke="pan-x",Ce="pan-y",Se=function(){if(!ye)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Te(e,t){this.manager=e,this.set(t)}Te.prototype={set:function(e){e==we&&(e=this.compute()),ye&&this.manager.element.style&&Se[e]&&(this.manager.element.style[be]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return v(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(T(e,Pe))return Pe;var t=T(e,ke),n=T(e,Ce);return t&&n?Pe:t||n?t?ke:Ce:T(e,xe)?xe:_e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=T(r,Pe)&&!Se.none,o=T(r,Ce)&&!Se["pan-y"],a=T(r,ke)&&!Se["pan-x"];if(i){var s=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ee=32;function Ie(e){this.options=u({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=P(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Re(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Oe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ae(e,t){var n=t.manager;return n?n.get(e):e}function Me(){Ie.apply(this,arguments)}function $e(){Me.apply(this,arguments),this.pX=null,this.pY=null}function Le(){Me.apply(this,arguments)}function je(){Ie.apply(this,arguments),this._timer=null,this._input=null}function De(){Me.apply(this,arguments)}function Ne(){Me.apply(this,arguments)}function Ue(){Ie.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Be(e,t){return(t=t||{}).recognizers=P(t.recognizers,Be.defaults.preset),new Fe(e,t)}function Fe(e,t){this.options=u({},Be.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(j?ie:D?fe:L?pe:Q))(this,z),this.touchAction=new Te(this,this.options.touchAction),We(this,!0),v(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function We(e,t){var n,r=e.element;r.style&&(v(e.options.cssProps,(function(i,o){n=A(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ie.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ae(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=Ae(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===I(t,e=Ae(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Ae(e,this);var t=I(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Re(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Re(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ee},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=Ee);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Me,Ie,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Ee}}),w($e,Me,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ce),24&e&&t.push(ke),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Me.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Oe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Le,Me,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(je,Ie,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(De,Me,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ne,Me,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return $e.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Oe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Ue,Ie,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||Y(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Ee},failTimeout:function(){return this._timer=p((function(){this.state=Ee}),this.options.interval,this),Ee},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Be.VERSION="2.0.7",Be.defaults={domEvents:!1,touchAction:we,enable:!0,inputTarget:null,inputClass:null,preset:[[De,{enable:!1}],[Le,{enable:!1},["rotate"]],[Ne,{direction:6}],[$e,{direction:6},["swipe"]],[Ue],[Ue,{event:"doubletap",taps:2},["tap"]],[je]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Fe.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Ie)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=I(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return v(E(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return v(E(e),(function(e){t?n[e]&&n[e].splice(I(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&We(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Be,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ee,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Fe,Input:W,TouchAction:Te,TouchInput:fe,MouseInput:Q,PointerEventInput:ie,TouchMouseInput:pe,SingleTouchInput:ue,Recognizer:Ie,AttrRecognizer:Me,Tap:Ue,Pan:$e,Swipe:Ne,Pinch:Le,Rotate:De,Press:je,on:k,off:C,each:v,merge:y,extend:b,assign:u,inherit:w,bindFn:_,prefixed:A}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Be,(r=function(){return Be}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},4581:function(e,t,n){!function(e,t,n){var r,i,o,a,s,u,c,l,h,f,d,p,g,v,m,b,y,w,_,x,P,k,C,S,T,E,I,R,O,A,M,$,L,j={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}},D="colorbox",N="cboxElement",U="cbox_load",B="cbox_complete",F="cbox_cleanup",W="cbox_closed",z="cbox_purge",H=e("<a/>"),V="div",q=0,X={};function Y(n,r,i){var o=t.createElement(n);return r&&(o.id="cbox"+r),i&&(o.style.cssText=i),e(o)}function G(){return n.innerHeight?n.innerHeight:e(n).height()}function Z(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!==j[t]&&(this.cache[t]=j[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function K(e){var t=h.length,n=(E+e)%t;return n<0?t+n:n}function J(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():G())/100:1)*parseInt(e,10))}function Q(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ee(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function te(e){"contains"in i[0]&&!i[0].contains(e.target)&&e.target!==r[0]&&(e.stopPropagation(),i.focus())}function ne(e){ne.str!==e&&(i.add(r).removeClass(ne.str).addClass(e),ne.str=e)}function re(n){e(t).trigger(n),H.triggerHandler(n)}var ie=function(){var e,t,n="cboxSlideshow_",r="click.cbox";function o(){clearTimeout(t)}function a(){(P.get("loop")||h[E+1])&&(o(),t=setTimeout($.next,P.get("slideshowSpeed")))}function s(){b.html(P.get("slideshowStop")).unbind(r).one(r,u),H.bind(B,a).bind(U,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),H.unbind(B,a).unbind(U,o),b.html(P.get("slideshowStart")).unbind(r).one(r,(function(){$.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){e=!1,b.hide(),o(),H.unbind(B,a).unbind(U,o),i.removeClass(n+"off "+n+"on")}return function(){e?P.get("slideshow")||(H.unbind(F,c),c()):P.get("slideshow")&&h[1]&&(e=!0,H.one(F,c),P.get("slideshowAuto")?s():u(),b.show())}}();function oe(o){var f,m;if(!A){if(f=e(o).data(D),P=new Z(o,f),m=P.get("rel"),E=0,m&&!1!==m&&"nofollow"!==m?(h=e(".cboxElement").filter((function(){return new Z(this,e.data(this,D)).get("rel")===m})),-1===(E=h.index(P.el))&&(h=h.add(P.el),E=h.length-1)):h=e(P.el),!R){R=O=!0,ne(P.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=Y(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),k=s.height()+l.height()+a.outerHeight(!0)-a.height(),C=u.width()+c.width()+a.outerWidth(!0)-a.width(),S=d.outerHeight(!0),T=d.outerWidth(!0);var b=J(P.get("initialWidth"),"x"),y=J(P.get("initialHeight"),"y"),w=P.get("maxWidth"),L=P.get("maxHeight");P.w=Math.max((!1!==w?Math.min(b,J(w,"x")):b)-T-C,0),P.h=Math.max((!1!==L?Math.min(y,J(L,"y")):y)-S-k,0),d.css({width:"",height:P.h}),$.position(),re("cbox_open"),P.get("onOpen"),x.add(v).hide(),i.focus(),P.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",te,!0),H.one(W,(function(){t.removeEventListener("focus",te,!0)}))),P.get("returnFocus")&&H.one(W,(function(){e(P.el).focus()}))}var j=parseFloat(P.get("opacity"));r.css({opacity:j==j?j:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?_.html(P.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var t,r,i,o=$.prep,a=++q;if(O=!0,I=!1,re(z),re(U),P.get("onLoad"),P.h=P.get("height")?J(P.get("height"),"y")-S-k:P.get("innerHeight")&&J(P.get("innerHeight"),"y"),P.w=P.get("width")?J(P.get("width"),"x")-T-C:P.get("innerWidth")&&J(P.get("innerWidth"),"x"),P.mw=P.w,P.mh=P.h,P.get("maxWidth")&&(P.mw=J(P.get("maxWidth"),"x")-T-C,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.get("maxHeight")&&(P.mh=J(P.get("maxHeight"),"y")-S-k,P.mh=P.h&&P.h<P.mh?P.h:P.mh),t=P.get("href"),M=setTimeout((function(){g.show()}),100),P.get("inline")){var s=e(t).eq(0);i=e("<div>").hide().insertBefore(s),H.one(z,(function(){i.replaceWith(s)})),o(s)}else P.get("iframe")?o(" "):P.get("html")?o(P.get("html")):Q(P,t)?(t=ee(P,t),I=P.get("createImg"),e(I).addClass("cboxPhoto").bind("error.cbox",(function(){o(Y(V,"Error").html(P.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var t;P.get("retinaImage")&&n.devicePixelRatio>1&&(I.height=I.height/n.devicePixelRatio,I.width=I.width/n.devicePixelRatio),P.get("scalePhotos")&&(r=function(){I.height-=I.height*t,I.width-=I.width*t},P.mw&&I.width>P.mw&&(t=(I.width-P.mw)/I.width,r()),P.mh&&I.height>P.mh&&(t=(I.height-P.mh)/I.height,r())),P.h&&(I.style.marginTop=Math.max(P.mh-I.height,0)/2+"px"),h[1]&&(P.get("loop")||h[E+1])&&(I.style.cursor="pointer",e(I).bind("click.cbox",(function(){$.next()}))),I.style.width=I.width+"px",I.style.height=I.height+"px",o(I)}),1)})),I.src=t):t&&p.load(t,P.get("data"),(function(t,n){a===q&&o("error"===n?Y(V,"Error").html(P.get("xhrError")):e(this).contents())}))}()}}function ae(){i||(L=!1,f=e(n),i=Y(V).attr({id:D,class:!1===e.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),r=Y(V,"Overlay").hide(),g=e([Y(V,"LoadingOverlay")[0],Y(V,"LoadingGraphic")[0]]),o=Y(V,"Wrapper"),a=Y(V,"Content").append(v=Y(V,"Title"),m=Y(V,"Current"),w=e('<button type="button"/>').attr({id:"cboxPrevious"}),y=e('<button type="button"/>').attr({id:"cboxNext"}),b=e('<button type="button"/>').attr({id:"cboxSlideshow"}),g),_=e('<button type="button"/>').attr({id:"cboxClose"}),o.append(Y(V).append(Y(V,"TopLeft"),s=Y(V,"TopCenter"),Y(V,"TopRight")),Y(V,!1,"clear:left").append(u=Y(V,"MiddleLeft"),a,c=Y(V,"MiddleRight")),Y(V,!1,"clear:left").append(Y(V,"BottomLeft"),l=Y(V,"BottomCenter"),Y(V,"BottomRight"))).find("div div").css({float:"left"}),p=Y(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=y.add(w).add(m).add(b)),t.body&&!i.parent().length&&e(t.body).append(r,i.append(o,p))}e.colorbox||(e(ae),($=e.fn.colorbox=e.colorbox=function(n,o){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ae(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),oe(this))}return!!i&&(L||(L=!0,y.click((function(){$.next()})),w.click((function(){$.prev()})),_.click((function(){$.close()})),r.click((function(){P.get("overlayClose")&&$.close()})),e(t).bind("keydown.cbox",(function(e){var t=e.keyCode;R&&P.get("escKey")&&27===t&&(e.preventDefault(),$.close()),R&&P.get("arrowKey")&&h[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),y.click()))})),e.isFunction(e.fn.on)?e(t).on("click.cbox",".cboxElement",n):e(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var t=e.data(this,D)||{};e.data(this,D,e.extend(t,n))})).addClass(N),new Z(a[0],n).get("open")&&oe(a[0])),a):a}).position=function(t,n){var r,h,d,p=0,g=0,v=i.offset();function m(){s[0].style.width=l[0].style.width=a[0].style.width=parseInt(i[0].style.width,10)-C+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-k+"px"}if(f.unbind("resize.cbox"),i.css({top:-9e4,left:-9e4}),h=f.scrollTop(),d=f.scrollLeft(),P.get("fixed")?(v.top-=h,v.left-=d,i.css({position:"fixed"})):(p=h,g=d,i.css({position:"absolute"})),!1!==P.get("right")?g+=Math.max(f.width()-P.w-T-C-J(P.get("right"),"x"),0):!1!==P.get("left")?g+=J(P.get("left"),"x"):g+=Math.round(Math.max(f.width()-P.w-T-C,0)/2),!1!==P.get("bottom")?p+=Math.max(G()-P.h-S-k-J(P.get("bottom"),"y"),0):!1!==P.get("top")?p+=J(P.get("top"),"y"):p+=Math.round(Math.max(G()-P.h-S-k,0)/2),i.css({top:v.top,left:v.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:P.w+T+C,height:P.h+S+k,top:p,left:g},t){var b=0;e.each(r,(function(e){r[e]===X[e]||(b=t)})),t=b}X=r,t||i.css(r),i.dequeue().animate(r,{duration:t||0,complete:function(){m(),O=!1,o[0].style.width=P.w+T+C+"px",o[0].style.height=P.h+S+k+"px",P.get("reposition")&&setTimeout((function(){f.bind("resize.cbox",$.position)}),1),e.isFunction(n)&&n()},step:m})},$.resize=function(e){var t;R&&((e=e||{}).width&&(P.w=J(e.width,"x")-T-C),e.innerWidth&&(P.w=J(e.innerWidth,"x")),d.css({width:P.w}),e.height&&(P.h=J(e.height,"y")-S-k),e.innerHeight&&(P.h=J(e.innerHeight,"y")),e.innerHeight||e.height||(t=d.scrollTop(),d.css({height:"auto"}),P.h=d.height()),d.css({height:P.h}),t&&d.scrollTop(t),$.position("none"===P.get("transition")?0:P.get("speed")))},$.prep=function(n){if(R){var r,o="none"===P.get("transition")?0:P.get("speed");d.remove(),(d=Y(V,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(P.w=P.w||d.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w),overflow:P.get("scrolling")?"auto":"hidden"}).css({height:(P.h=P.h||d.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h)}).prependTo(a),p.hide(),e(I).css({float:"none"}),ne(P.get("className")),r=function(){var n,r,a=h.length;function s(){!1===e.support.opacity&&i[0].style.removeAttribute("filter")}R&&(r=function(){clearTimeout(M),g.hide(),re(B),P.get("onComplete")},v.html(P.get("title")).show(),d.show(),a>1?("string"==typeof P.get("current")&&m.html(P.get("current").replace("{current}",E+1).replace("{total}",a)).show(),y[P.get("loop")||E<a-1?"show":"hide"]().html(P.get("next")),w[P.get("loop")||E?"show":"hide"]().html(P.get("previous")),ie(),P.get("preloading")&&e.each([K(-1),K(1)],(function(){var n=h[this],r=new Z(n,e.data(n,D)),i=r.get("href");i&&Q(r,i)&&(i=ee(r,i),t.createElement("img").src=i)}))):x.hide(),P.get("iframe")?(n=P.get("createIframe"),P.get("scrolling")||(n.scrolling="no"),e(n).attr({src:P.get("href"),class:"cboxIframe"}).one("load",r).appendTo(d),H.one(z,(function(){n.src="//about:blank"})),P.get("fastIframe")&&e(n).trigger("load")):r(),"fade"===P.get("transition")?i.fadeTo(o,1,s):s())},"fade"===P.get("transition")?i.fadeTo(o,0,(function(){$.position(0,r)})):$.position(o,r)}},$.next=function(){!O&&h[1]&&(P.get("loop")||h[E+1])&&(E=K(1),oe(h[E]))},$.prev=function(){!O&&h[1]&&(P.get("loop")||E)&&(E=K(-1),oe(h[E]))},$.close=function(){R&&!A&&(A=!0,R=!1,re(F),P.get("onCleanup"),f.unbind(".cbox"),r.fadeTo(P.get("fadeOut")||0,0),i.stop().fadeTo(P.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),re(z),d.remove(),setTimeout((function(){A=!1,re(W),P.get("onClosed")}),1)})))},$.remove=function(){i&&(i.stop(),e.colorbox.close(),i.stop(!1,!0).remove(),r.remove(),A=!1,i=null,e(".cboxElement").removeData(D).removeClass(N),e(t).unbind("click.cbox").unbind("keydown.cbox"))},$.element=function(){return e(P.el)},$.settings=j)}(n(3609),document,window)},5557: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,i=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,o(e,"mouseover"),o(e,"mousemove"),o(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,o(e,"mousemove"))},n._touchEnd=function(e){t&&(o(e,"mouseup"),o(e,"mouseout"),this._touchMoved||o(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")}),i.call(t)}}function o(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(3609))},3762:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){var t,n="ui-effects-",r="ui-effects-style",i="ui-effects-animated",o=e;return e.effects={effect:{}},function(e,t){var n,r=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],o=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},a={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=o.support={},c=e("<p>")[0],l=e.each;function h(e,t,n){var r=s[t.type]||{};return null==e?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:0>e?0:r.max<e?r.max:e)}function f(t){var r=o(),s=r._rgba=[];return t=t.toLowerCase(),l(i,(function(e,n){var i,o=n.re.exec(t),u=o&&n.parse(o),c=n.space||"rgba";if(u)return i=r[c](u),r[a[c].cache]=i[a[c].cache],s=r._rgba=i._rgba,!1})),s.length?("0,0,0,0"===s.join()&&e.extend(s,n.transparent),r):n[t]}function d(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}c.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=c.style.backgroundColor.indexOf("rgba")>-1,l(a,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),o.fn=e.extend(o.prototype,{parse:function(r,i,s,u){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(i),i=t);var c=this,d=e.type(r),p=this._rgba=[];return i!==t&&(r=[r,i,s,u],d="array"),"string"===d?this.parse(f(r)||n._default):"array"===d?(l(a.rgba.props,(function(e,t){p[t.idx]=h(r[t.idx],t)})),this):"object"===d?(l(a,r instanceof o?function(e,t){r[t.cache]&&(c[t.cache]=r[t.cache].slice())}:function(t,n){var i=n.cache;l(n.props,(function(e,t){if(!c[i]&&n.to){if("alpha"===e||null==r[e])return;c[i]=n.to(c._rgba)}c[i][t.idx]=h(r[e],t,!0)})),c[i]&&e.inArray(null,c[i].slice(0,3))<0&&(c[i][3]=1,n.from&&(c._rgba=n.from(c[i])))}),this):void 0},is:function(e){var t=o(e),n=!0,r=this;return l(a,(function(e,i){var o,a=t[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],l(i.props,(function(e,t){if(null!=a[t.idx])return n=a[t.idx]===o[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return l(a,(function(n,r){t[r.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=o(e),r=n._space(),i=a[r],u=0===this.alpha()?o("transparent"):this,c=u[i.cache]||i.to(u._rgba),f=c.slice();return n=n[i.cache],l(i.props,(function(e,r){var i=r.idx,o=c[i],a=n[i],u=s[r.type]||{};null!==a&&(null===o?f[i]=a:(u.mod&&(a-o>u.mod/2?o+=u.mod:o-a>u.mod/2&&(o-=u.mod)),f[i]=h((a-o)*t+o,r)))})),this[r](f)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=o(t)._rgba;return o(e.map(n,(function(e,t){return(1-r)*i[t]+r*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null==e?t>2?1:0:e}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,a.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(r,i,o),u=Math.min(r,i,o),c=s-u,l=s+u,h=.5*l;return t=u===s?0:r===s?60*(i-o)/c+360:i===s?60*(o-r)/c+120:60*(r-i)/c+240,n=0===c?0:h<=.5?c/l:c/(2-l),[Math.round(t)%360,n,h,null==a?1:a]},a.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*d(a,o,t+1/3)),Math.round(255*d(a,o,t)),Math.round(255*d(a,o,t-1/3)),i]},l(a,(function(n,i){var a=i.props,s=i.cache,u=i.to,c=i.from;o.fn[n]=function(n){if(u&&!this[s]&&(this[s]=u(this._rgba)),n===t)return this[s].slice();var r,i=e.type(n),f="array"===i||"object"===i?n:arguments,d=this[s].slice();return l(a,(function(e,t){var n=f["object"===i?e:t.idx];null==n&&(n=d[t.idx]),d[t.idx]=h(n,t)})),c?((r=o(c(d)))[s]=d,r):o(d)},l(a,(function(t,i){o.fn[t]||(o.fn[t]=function(o){var a,s=e.type(o),u="alpha"===t?this._hsla?"hsla":"rgba":n,c=this[u](),l=c[i.idx];return"undefined"===s?l:("function"===s&&(o=o.call(this,l),s=e.type(o)),null==o&&i.empty?this:("string"===s&&(a=r.exec(o))&&(o=l+parseFloat(a[2])*("+"===a[1]?1:-1)),c[i.idx]=o,this[u](c)))})}))})),o.hook=function(t){var n=t.split(" ");l(n,(function(t,n){e.cssHooks[n]={set:function(t,r){var i,a,s="";if("transparent"!==r&&("string"!==e.type(r)||(i=f(r)))){if(r=o(i||r),!u.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=o(t.elem,n),t.end=o(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},o.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return l(["Top","Right","Bottom","Left"],(function(n,r){t["border"+r+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(o),function(){var t,n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(t){var n,r,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(r=i.length;r--;)"string"==typeof i[n=i[r]]&&(o[e.camelCase(n)]=i[n]);else for(n in i)"string"==typeof i[n]&&(o[n]=i[n]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(o.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,o,a,s){var u=e.speed(o,a,s);return this.queue((function(){var o,a=e(this),s=a.attr("class")||"",c=u.children?a.find("*").addBack():a;c=c.map((function(){return{el:e(this),start:i(this)}})),(o=function(){e.each(n,(function(e,n){t[n]&&a[n+"Class"](t[n])}))})(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=function(t,n){var i,o,a={};for(i in n)o=n[i],t[i]!==o&&(r[i]||!e.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var t=this,n=e.Deferred(),r=e.extend({},u,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()})),e.when.apply(e,c.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),u.complete.call(a[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(n,r,i,o){return r?e.effects.animateClass.call(this,{add:n},r,i,o):t.apply(this,arguments)}),removeClass:function(t){return function(n,r,i,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},r,i,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,r,i,o,a){return"boolean"==typeof r||void 0===r?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},r,i,o)}}(e.fn.toggleClass),switchClass:function(t,n,r,i,o){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,o)}})}(),function(){var t;function o(t,n,r,i){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(i=n,r=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(i=r,r=n,n={}),e.isFunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:"number"==typeof r?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function a(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||!!e.isFunction(t)||"object"==typeof t&&!t.effect}function s(e,t){var n=t.outerWidth(),r=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=(t=e.expr.filters.animated,function(n){return!!e(n).data(i)||t(n)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var r=0,i=t.length;r<i;r++)null!==t[r]&&e.data(n+t[r],e[0].style[t[r]])},restore:function(e,t){for(var r,i=0,o=t.length;i<o;i++)null!==t[i]&&(r=e.data(n+t[i]),e.css(t[i],r))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(r),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),r=t.parent(),"static"===t.css("position")?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,r){return r||(r=n,n="effect"),e.effects.effect[t]=r,e.effects.effect[t].mode=n,r},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(t||100)/100:1,i="vertical"!==n?(t||100)/100:1;return{height:e.height()*i,width:e.width()*r,outerHeight:e.outerHeight()*i,outerWidth:e.outerWidth()*r}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var r=e.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(r,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(r)||"",e.removeData(r)},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createPlaceholder:function(t){var r,i=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(n+"placeholder",r)),t.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(e){var t=n+"placeholder",r=e.data(t);r&&(r.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,r,i){return i=i||{},e.each(n,(function(e,n){var o=t.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),n=e.effects.effect[t.effect],r=n.mode,a=t.queue,s=a||"fx",u=t.complete,c=t.mode,l=[],h=function(t){var n=e(this),o=e.effects.mode(n,c)||r;n.data(i,!0),l.push(o),r&&("show"===o||o===r&&"hide"===o)&&n.show(),r&&"none"===o||e.effects.saveStyle(n),e.isFunction(t)&&t()};if(e.fx.off||!n)return c?this[c](t.duration,u):this.each((function(){u&&u.call(this)}));function f(o){var a=e(this);function s(){e.isFunction(u)&&u.call(a[0]),e.isFunction(o)&&o()}t.mode=l.shift(),!1===e.uiBackCompat||r?"none"===t.mode?(a[c](),s()):n.call(a[0],t,(function(){a.removeData(i),e.effects.cleanUp(a),"hide"===t.mode&&a.hide(),s()})):(a.is(":hidden")?"hide"===c:"show"===c)?(a[c](),s()):n.call(a[0],t,s)}return!1===a?this.each(h).each(f):this.queue(s,h).queue(s,f)},show:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(t){if(a(t)||"boolean"==typeof t)return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],(function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])})),r},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):s(this.css("clip"),this)},transfer:function(t,n){var r=e(this),i=e(t.to),o="fixed"===i.css("position"),a=e("body"),s=o?a.scrollTop():0,u=o?a.scrollLeft():0,c=i.offset(),l={top:c.top-s,left:c.left-u,height:i.innerHeight(),width:i.innerWidth()},h=r.offset(),f=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:h.top-s,left:h.left-u,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(l,t.duration,t.easing,(function(){f.remove(),e.isFunction(n)&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=s(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,n){t[n]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects})?r.apply(t,i):r)||(e.exports=o)},1870:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},7053:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="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,i):r)||(e.exports=o)},5592:function(e,t,n){var r,i,o;i=[n(3609)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},6891:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var i,o,a,s={},u=t.split(".")[0],c=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[u]=e[u]||{},i=e[u][t],o=e[u][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{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 i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():s[t]=r})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:u,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=e.data(this,i);return"instance"===o?(u=r,!1):r?e.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,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,i,o,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(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[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,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,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 i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.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 i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,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 i,o,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],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);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,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})&&(i={duration:i}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)},6177:function(e,t,n){var r,i,o;i=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="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,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(i&&!o&&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,i):r)||(e.exports=o)},6227:function(e,t,n){var r,i,o;i=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(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,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)o.push("<span tabindex='0'></span>");this.handles=i.add(e(o.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,i,o,a,s,u,c=this,l=this.options;return!l.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),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(r-c.values(t));(i>n||i===n&&(t===c._lastChangedValue||c.values(t)===l.min))&&(i=n,o=e(this),a=t)})),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-o.width()/2,top:t.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.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,i,o;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),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_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,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),i=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(r,n):Math.max(r,n)),o[t]=n),n!==i&&!1!==this._trigger("slide",e,this._uiHash(t,n,o))&&(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,i,o;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,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(t,n){var r,i=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)&&(i=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=i-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,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var n,r,i,o=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,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):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+i);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(t,o,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"))}}})})?r.apply(t,i):r)||(e.exports=o)},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={};function v(){}function m(){}function b(){}var y={};u(y,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(I([])));_&&_!==n&&r.call(_,o)&&(y=_);var x=b.prototype=v.prototype=Object.create(y);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=b,u(x,"constructor",b),u(b,"constructor",m),m.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(k.prototype),u(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,s,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3609:function(e){"use strict";e.exports=jQuery},9089:function(e,t,n){"use strict";n.d(t,{Mo:function(){return i},Cb:function(){return u},IO:function(){return m},SB:function(){return f}});var r,i=function(e){return function(t){return"function"==typeof t?function(e,t){return window.customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){window.customElements.define(e,t)}}}(e,t)}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(t,n){return void 0!==n?function(e,t,n){t.constructor.createProperty(n,e)}(e,t,n):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)}}}(e,t)}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return u(l(l({},e),{},{state:!0}))}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="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 m(e,t){return r=(n={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 i="symbol"==v(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[i]&&(this[i]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[i]}}return r}}).finisher,i=n.descriptor,function(e,t){var n;if(void 0===t){var o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,a=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:p(p({},e),{},{key:o});return null!=r&&(a.finisher=function(e){r(e,o)}),a}var s=e.constructor;void 0!==i&&Object.defineProperty(e,t,i(t)),null==r||r(s,t)};var n,r,i}n(2526),n(1817),n(1539),n(7941),n(7327),n(5003),n(4747),n(9337),n(9601),n(2165),n(6992),n(8783),n(3948),n(8674),n(5666),null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements},871:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{oi:function(){return q},iv:function(){return h},dy:function(){return j.dy},Ld:function(){return j.Ld},sY:function(){return j.sY},YP:function(){return j.YP}}),n(5666),n(9653),n(6992),n(1532),n(1539),n(8783),n(3948),n(8674),n(4747),n(561),n(2526),n(1817),n(489),n(2222),n(6210),n(189),n(5069),n(4944),n(3792),n(5743),n(9714),n(2419),n(2165),n(1038),n(7042),n(8309),n(4916),n(5827),n(1249);var o,a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),u=new Map,c=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,n!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}var t,n;return t=e,(n=[{key:"styleSheet",get:function(){var e=u.get(this.cssText);return a&&void 0===e&&(u.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}},{key:"toString",value:function(){return this.cssText}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=function(e){return new c("string"==typeof e?e:e+"",s)},h=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 i=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 c(i,s)},f=function(e,t){a?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))},d=a?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",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 r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.cssRules);try{for(i.s();!(t=i.n()).done;)n+=t.value.cssText}catch(e){i.e(e)}finally{i.f()}return l(n)}(e):e};function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(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 v(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){var t="function"==typeof Map?new Map:void 0;return(x=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return P(e,arguments,S(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function P(e,t,n){return(P=k()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&C(i,n.prototype),i}).apply(null,arguments)}function k(){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 C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=window.trustedTypes,E=T?T.emptyScript:"",I=window.reactiveElementPolyfillSupport,R={toAttribute:function(e,t){switch(t){case Boolean:e=e?E: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}},O=function(e,t){return t!==e&&(t==t||e==e)},A={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:O},M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(c,e);var t,n,r,i,o,a,s,u=(t=c,n=k(),function(){var e,r=S(t);if(n){var i=S(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return _(this,e)});function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this))._$Et=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Ei=null,e.o(),e}return r=c,o=[{key:"addInitializer",value:function(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,r){var i=e._$Eh(r,n);void 0!==i&&(e._$Eu.set(i,r),t.push(i))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==b(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 i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||A}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=p([].concat(g(Object.getOwnPropertyNames(n)),g(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}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=p(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.unshift(d(i))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(d(e));return t}},{key:"_$Eh",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}],(i=[{key:"o",value:function(){var e,t=this;this._$Ep=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).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._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}},{key:"_$Em",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Et.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 f(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._$Eg)||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._$Eg)||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:"_$ES",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A,o=this.constructor._$Eh(e,i);if(void 0!==o&&!0===i.reflect){var a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:R.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}},{key:"_$AK",value:function(e,t){var n,r,i,o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){var s=o.getPropertyOptions(a),u=s.converter,c=null!==(i=null!==(r=null===(n=u)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof u?u:null)&&void 0!==i?i:R.fromAttribute;this._$Ei=a,this[a]=c(t,s.type),this._$Ei=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||O)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$E_())}},{key:"_$E_",value:(a=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$Ep;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=a.apply(e,t);function o(e){y(i,n,r,o,s,"next",e)}function s(e){y(i,n,r,o,s,"throw",e)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((function(e,n){return t[n]=e})),this._$Et=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$Eg)||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._$EU()}catch(e){throw n=!1,this._$EU(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$Eg)||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:"_$EU",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Ep}},{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._$ES(n,t[n],e)})),this._$EC=void 0),this._$EU()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}])&&w(r.prototype,i),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(x(HTMLElement));M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==I||I({ReactiveElement:M}),(null!==(o=globalThis.reactiveElementVersions)&&void 0!==o?o:globalThis.reactiveElementVersions=[]).push("1.3.0");var $,L,j=n(2385);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})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(){return(B="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=F(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function F(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=V(e)););return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(4819),n(5003);var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(a,e);var t,n,r,i,o=(r=a,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=V(r);if(i){var n=V(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return z(this,e)});function a(){var e;return N(this,a),(e=o.apply(this,arguments)).renderOptions={host:H(e)},e._$Dt=void 0,e}return t=a,(n=[{key:"createRenderRoot",value:function(){var e,t,n=B(V(a.prototype),"createRenderRoot",this).call(this);return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}},{key:"update",value:function(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),B(V(a.prototype),"update",this).call(this,e),this._$Dt=(0,j.sY)(t,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;B(V(a.prototype),"connectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;B(V(a.prototype),"disconnectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return j.Jb}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(M);q.finalized=!0,q._$litElement$=!0,null===($=globalThis.litElementHydrateSupport)||void 0===$||$.call(globalThis,{LitElement:q});var X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:q}),(null!==(L=globalThis.litElementVersions)&&void 0!==L?L:globalThis.litElementVersions=[]).push("3.2.0")},8150:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Xe:function(){return s},pX:function(){return o},XM:function(){return a}}),n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),n(1038),n(7042),n(8309),n(4916);var o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a=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}}},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{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 r(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 r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2385:function(e,t,n){"use strict";var r;function i(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&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(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)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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})(e)}n.d(t,{Al:function(){return J},dy:function(){return $},Jb:function(){return j},Ld:function(){return D},sY:function(){return U},YP:function(){return L}}),n(5743),n(7042),n(2165),n(6992),n(1539),n(8783),n(3948),n(2526),n(1817),n(4129),n(4916),n(4603),n(9714),n(6755),n(7852),n(3123),n(8309),n(3290),n(1038),n(489),n(2419);var v=globalThis.trustedTypes,m=v?v.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,b="lit$".concat((Math.random()+"").slice(9),"$"),y="?"+b,w="<".concat(y,">"),_=document,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.createComment(e)},P=function(e){return null===e||"object"!=g(e)&&"function"!=typeof e},k=Array.isArray,C=function(e){var t;return k(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,E=/>/g,I=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,R=/'/g,O=/"/g,A=/^(?:script|style|textarea|title)$/i,M=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:e,strings:t,values:r}}},$=M(1),L=M(2),j=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),N=new WeakMap,U=function(e,t,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new V(t.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(e),a},B=_.createTreeWalker(_,129,null,!1),F=function(e,t){for(var n,r=e.length-1,i=[],o=2===t?"<svg>":"",a=S,s=0;s<r;s++){for(var u=e[s],c=void 0,l=void 0,h=-1,f=0;f<u.length&&(a.lastIndex=f,null!==(l=a.exec(u)));)f=a.lastIndex,a===S?"!--"===l[1]?a=T:void 0!==l[1]?a=E:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=I):void 0!==l[3]&&(a=I):a===I?">"===l[0]?(a=null!=n?n:S,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?I:'"'===l[3]?O:R):a===O||a===R?a=I:a===T||a===E?a=S:(a=I,n=void 0);var d=a===I&&e[s+1].startsWith("/>")?" ":"";o+=a===S?u+w:h>=0?(i.push(c),u.slice(0,h)+"$lit$"+u.slice(h)+b+d):u+b+(-2===h?(i.push(void 0),s):d)}var p=o+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(p):p,i]},W=function(){function e(t,n){var r,i=t.strings,o=t._$litType$;f(this,e),this.parts=[];var a,s=0,u=0,d=i.length-1,p=this.parts,g=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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||l(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.")}()}(F(i,o),2),m=g[0],w=g[1];if(this.el=e.createElement(m,n),B.currentNode=this.el.content,2===o){var _=this.el.content,P=_.firstChild;P.remove(),_.append.apply(_,function(e){if(Array.isArray(e))return h(e)}(a=P.childNodes)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||l(a)||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.")}())}for(;null!==(r=B.nextNode())&&p.length<d;){if(1===r.nodeType){if(r.hasAttributes()){var k,C=[],S=c(r.getAttributeNames());try{for(S.s();!(k=S.n()).done;){var T=k.value;if(T.endsWith("$lit$")||T.startsWith(b)){var E=w[u++];if(C.push(T),void 0!==E){var I=r.getAttribute(E.toLowerCase()+"$lit$").split(b),R=/([.?@])?(.*)/.exec(E);p.push({type:1,index:s,name:R[2],strings:I,ctor:"."===R[1]?X:"?"===R[1]?G:"@"===R[1]?Z:q})}else p.push({type:6,index:s})}}}catch(e){S.e(e)}finally{S.f()}for(var O=0,M=C;O<M.length;O++){var $=M[O];r.removeAttribute($)}}if(A.test(r.tagName)){var L=r.textContent.split(b),j=L.length-1;if(j>0){r.textContent=v?v.emptyScript:"";for(var D=0;D<j;D++)r.append(L[D],x()),B.nextNode(),p.push({type:2,index:++s});r.append(L[j],x())}}}else if(8===r.nodeType)if(r.data===y)p.push({type:2,index:s});else for(var N=-1;-1!==(N=r.data.indexOf(b,N+1));)p.push({type:7,index:s}),N+=b.length-1;s++}}return p(e,null,[{key:"createElement",value:function(e,t){var n=_.createElement("template");return n.innerHTML=e,n}}]),e}();function z(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===j)return t;var u=void 0!==s?null===(n=a._$Cl)||void 0===n?void 0:n[s]:a._$Cu,c=P(t)?void 0:t._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(e))._$AT(e,a,s),void 0!==s?(null!==(i=(o=a)._$Cl)&&void 0!==i?i:o._$Cl=[])[s]=u:a._$Cu=u),void 0!==u&&(t=z(e,u._$AS(e,t.values),u,s)),t}var H=function(){function e(t,n){f(this,e),this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=n}return p(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"p",value:function(e){var t,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:_).importNode(r,!0);B.currentNode=o;for(var a=B.nextNode(),s=0,u=0,c=i[0];void 0!==c;){if(s===c.index){var l=void 0;2===c.type?l=new V(a,a.nextSibling,this,e):1===c.type?l=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(l=new K(a,this,e)),this.v.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=B.nextNode(),s++)}return o}},{key:"m",value:function(e){var t,n=0,r=c(this.v);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}catch(e){r.e(e)}finally{r.f()}}}]),e}(),V=function(){function e(t,n,r,i){var o;f(this,e),this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cg=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return p(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._$Cg}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;e=z(this,e,t),P(e)?e===D||null==e||""===e?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==j&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):C(e)?this.S(e):this.$(e)}},{key:"M",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}},{key:"k",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}},{key:"$",value:function(e){this._$AH!==D&&P(this._$AH)?this._$AA.nextSibling.data=e:this.k(_.createTextNode(e)),this._$AH=e}},{key:"T",value:function(e){var t,n=e.values,r=e._$litType$,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=W.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.m(n);else{var o=new H(i,this),a=o.p(this.options);o.m(n),this.k(a),this._$AH=o}}},{key:"_$AC",value:function(e){var t=N.get(e.strings);return void 0===t&&N.set(e.strings,t=new W(e)),t}},{key:"S",value:function(t){k(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new e(this.M(x()),this.M(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(e){a.e(e)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{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._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}]),e}(),q=function(){function e(t,n,r,i,o){f(this,e),this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=D}return p(e,[{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,i=this.strings,o=!1;if(void 0===i)e=z(this,e,t,0),(o=!P(e)||e!==this._$AH&&e!==j)&&(this._$AH=e);else{var a,s,u=e;for(e=i[0],a=0;a<i.length-1;a++)(s=z(this,u[n+a],t,a))===j&&(s=this._$AH[a]),o||(o=!P(s)||s!==this._$AH[a]),s===D?e=D:e!==D&&(e+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.C(e)}},{key:"C",value:function(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),X=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=3,e}return p(n,[{key:"C",value:function(e){this.element[this.name]=e===D?void 0:e}}]),n}(q),Y=v?v.emptyScript:"",G=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=4,e}return p(n,[{key:"C",value:function(e){e&&e!==D?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}]),n}(q),Z=function(e){i(n,e);var t=a(n);function n(e,r,i,o,a){var s;return f(this,n),(s=t.call(this,e,r,i,o,a)).type=5,s}return p(n,[{key:"_$AI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((e=null!==(t=z(this,e,n,0))&&void 0!==t?t:D)!==j){var r=this._$AH,i=e===D&&r!==D||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==D&&(r===D||i);i&&this.element.removeEventListener(this.name,this,r),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)}}]),n}(q),K=function(){function e(t,n,r){f(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return p(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){z(this,e)}}]),e}(),J={L:"$lit$",P:b,V:y,I:1,N:F,R:H,j:C,D:z,H:V,F:q,O:G,W:Z,B:X,Z:K},Q=window.litHtmlPolyfillSupport;null==Q||Q(W,V),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.2")}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(e,t,n,r){if(!t){var i=1/0;for(u=0;u<deferred.length;u++){t=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<t.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[a])}))?t.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[t,n,r]},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={898:0};__webpack_require__.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0;return __webpack_require__.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 __webpack_exports__=__webpack_require__(920);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
3
3
  //# sourceMappingURL=BookReader.js.map