100 lines
187 KiB
Plaintext
100 lines
187 KiB
Plaintext
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0
|
|
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=64)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=window,a=(r.$,r.jQuery)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="localhost"===location.hostname||"www-"===location.host.substr(0,4)||"cat-"===location.host.substr(0,4)||"review-"===location.host.substr(0,7)||"webdev-"===location.host.substr(0,7)||"ia-petabox-"===location.host.substr(0,11)?console.log.bind(console):function(){}},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));n(31);var r="/jw/8",a=window.jwplayer},,,function(t,e,n){"use strict";function r(t,e){for(var n=e&&""===location.search?location.href.slice(1).split("&"):location.search.slice(1).split("&"),r=0;r<n.length;r++)if(n[r].slice(0,n[r].indexOf("="))===t){var a=n[r].slice(n[r].indexOf("=")+1);return a.length>0?unescape(a):""}return""}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){for(var e="".concat(t).split("."),n=e[0],r=e.length>1?".".concat(e[1]):"",a=/(\d+)(\d{3})/;a.test(n);)n=n.replace(a,"$1,$2");return n+r}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return Q}));var r=n(0);r.a.cookie=function(t,e,n){if(void 0!==e){n=n||{},null===e&&(e="",n.expires=-1);var a,i="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString))"number"==typeof n.expires?(a=new Date).setTime(a.getTime()+24*n.expires*60*60*1e3):a=n.expires,i="; expires="+a.toUTCString();var o=n.path?"; path="+n.path:"",c=n.domain?"; domain="+n.domain:"",u=n.secure?"; secure":"";return navigator.userAgent.indexOf("MSIE 9.")>0&&(c="",o=""),document.cookie=[t,"=",encodeURIComponent(e),i,o,c,u].join(""),!0}var s=null;if(document.cookie&&""!=document.cookie)for(var l=document.cookie.split(";"),f=0;f<l.length;f++){var d=r.a.trim(l[f]);if(d.substring(0,t.length+1)==t+"="){s=decodeURIComponent(d.substring(t.length+1));break}}return s};n(25),n(30),n(26);function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=window.ClipboardJS;function c(t,e){var n=t.querySelector("output");n||((n=document.createElement("output")).setAttribute("role","alert"),t.appendChild(n)),n.textContent="",n.textContent=e}function u(t){t.querySelector("input")&&(t.appendChild(function(t){var e=document.createElement("button");return e.type="button",e.textContent="Copy",e.title="Copy to clipboard",e.setAttribute("data-clipboard-target","#".concat(t.querySelector("input").id)),e}(t)),t.setAttribute("data-copyable-text-ready",""))}Object(r.a)((function(){var t,e=document.querySelectorAll("[data-copyable-text]:not([data-copyable-text-ready])");e.length<=0||o.isSupported()&&(a(e).forEach(u),(t=new o("[data-copyable-text] [data-clipboard-target]")).on("success",(function(t){var e=t.trigger.parentElement,n=e.getAttribute("data-copyable-text-success-message")||"Text copied to clipboard.";c(e,n)})),t.on("error",(function(t){var e=t.trigger.parentElement,n=e.getAttribute("data-copyable-text-error-message")||"Something went wrong.";c(e,n)})))}));var s=n(2);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=t.querySelector(e);return n?n.value:""}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object(r.a)((function(){return Object(s.a)("setUpDisabilityEligibility()"),void Array.from(document.querySelectorAll(".js-disability-eligibility")).forEach((function(t){var e=t.dataset.disabilityEligibilityType;t.addEventListener("submit",(function(n){var a=d(t,".disability-eligibility-password"),i=d(t,".disability-eligibility-token"),o={type:e,password:a,token:i},c=location.href.match(/\?.*login=([^&]+)/);if(c){var u=l(c,2);o.login=u[1]}var s=document.createElement("img");s.src="/images/loading.gif",t.querySelector('input[type="submit"]').parentNode.appendChild(s),r.a.ajax({type:"POST",url:"/services/disability_eligibility.php",dataType:"json",data:o,success:function(t){"success"!==t.status?"not logged in"!==t.message?(alert("Sorry. We could not verify your eligibility at this time."),console.log("Verification error: ".concat(t.status_code,", ").concat(t.message))):alert("Please login first."):alert("Success! Your eligibility has been verified.")},error:function(t,e,n){alert("Sorry. We could not verify your eligibility at this time."),console.log("Verification error: ".concat(e,", ").concat(n))},complete:function(){s.remove()}}),n.preventDefault()}))}))}));var v=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"setup",value:function(e,n,a,i,o){t.timechanged=!1,t.c=e,t.c.realGraphWidth=t.c.GRAPH_WIDTH-t.c.GRAPH_PADDING,t.c.maxSlide=Math.floor((o.getTime()-i.getTime())/864e5);var c=i.getTime()/1e3,u=n>0?Math.floor((n-c)/86400):0,l=a>0?Math.floor((a-c)/86400):t.c.maxSlide,f=Object(r.a)("<div />").attr({id:"slider"}).css({width:t.c.realGraphWidth,position:"absolute",top:t.c.GRAPH_HEIGHT-10,left:0,zIndex:1});Object(r.a)("#timegraf").append(f),f.append("<br />"),Object(s.a)(u,l),Object(r.a)("#slider").slider({range:!0,max:t.c.maxSlide,values:[u,l],slide:function(e,n){var a=i.getTime(),o=new Date(a),c=new Date(a);o.setDate(o.getDate()+n.values[0]),c.setDate(c.getDate()+n.values[1]),Object(r.a)("#from ").html(r.a.datepicker.formatDate("M d",o)),Object(r.a)("#to ").html(r.a.datepicker.formatDate("M d",c)),Object(r.a)("#fromB").html(r.a.datepicker.formatDate("yymmdd",o)),Object(r.a)("#toB ").html(r.a.datepicker.formatDate("yymmdd",c)),Object(r.a)("#datepickL").val(r.a.datepicker.formatDate("mm/dd/yy",o)),Object(r.a)("#datepickR").val(r.a.datepicker.formatDate("mm/dd/yy",c)),clearTimeout(t.hideL),clearTimeout(t.hideR);var u={left:Object(r.a)("#slider .ptrL").offset().left-Object(r.a)("#from").width()+10},s={left:Object(r.a)("#slider .ptrR").offset().left};Object(r.a)("#from").offset(u).show(0,(function(){t.hideL=setTimeout((function(){return Object(r.a)("#from").hide("slow")}),2e3)})),Object(r.a)("#to ").offset(s).show(0,(function(){t.hideR=setTimeout((function(){return Object(r.a)("#to ").hide("slow")}),2e3)})),t.pinkme(n.values[0],n.values[1])},stop:function(e,n){t.adjust(n.values[0],n.values[1]),t.timechanged=!0;var a=location.href.replace(/^http[s]*:/,""),i="//".concat(location.host).concat(t.c.q).concat(t.args());a!==i&&(Object(s.a)(a),Object(s.a)(i),Object(r.a)("#opscreen1M").remove(),Object(r.a)("body").append(Object(r.a)('<div id="opscreen1M"/>')),Object(r.a)("#opscreen1M").show("slow",(function(){location.href=i})))}}),(u>0||l>0)&&t.pinkme(u,l)}},{key:"pinkme",value:function(e,n){var a=Math.round(t.c.GRAPH_PADDING/2),i=Math.round(e/t.c.maxSlide*t.c.realGraphWidth)+2,o=Math.round(n/t.c.maxSlide*t.c.realGraphWidth)-2+a,c="rect(0px,".concat(o,"px,").concat(t.c.GRAPH_HEIGHT,"px,").concat(i,"px)");Object(s.a)(c),Object(r.a)("#timegraf-clip").css("clip",c);var u={"data-title":"click and drag this to change time period","data-toggle":"tooltip","data-placement":"bottom"};Object(r.a)(Object(r.a)("#slider a").get(0)).attr(u).removeClass("ui-state-default").addClass("ptrL"),Object(r.a)(Object(r.a)("#slider a").get(1)).attr(u).removeClass("ui-state-default").addClass("ptrR"),t.adjust(e,n)}},{key:"adjust",value:function(t,e){var n=e-t<2;Object(s.a)("left:",t,"rite:",e),Object(r.a)("#slider .ui-widget-header").css("borderColor","#d33682"),n?(Object(r.a)("#to").hide(),Object(r.a)("#slider .ui-widget-header").css("border-left-width",0)):Object(r.a)("#slider .ui-widget-header").css("border-left-width",2)}},{key:"args",value:function(){if(!t.timechanged)return"";var e=Object(r.a)("#fromB").text().trim(),n=Object(r.a)("#toB ").text().trim(),a=e===n?"":"-".concat(n);return"&time=".concat(e).concat(a)}}],(n=null)&&b(e.prototype,n),a&&b(e,a),t}();Object(r.a)((function(){Object(r.a)(".js-timegraf").each((function(t,e){var n=p(JSON.parse(Object(r.a)(e).val()),7),a=n[0],i=n[1],o=n[2],c=n[3],u=n[4],s=n[5],l=n[6];v.setup(a,i,o,new Date(c,0,1),new Date(u,s,l))}))}));var m=n(23);function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$relatedTable=e,this.itemIdentifier=this.$relatedTable.data("item_identifier"),this.scrollProximityHandler=new m.a("related_music",this.$relatedTable,this.startFetch.bind(this))}var e,n,a;return e=t,(n=[{key:"startListener",value:function(){this.scrollProximityHandler.startListener()}},{key:"startFetch",value:function(){var t=this;return new Promise((function(e){t.$relatedTable.find("tbody tr").each((function(e,n){var a=Object(r.a)(n).data("filename");t.fetchRelatedMusic(a)})),e()}))}},{key:"fetchRelatedMusic",value:function(t){var e=this,n="/services/related-music/?item_identifier=".concat(this.itemIdentifier,"&file_name=").concat(t);r.a.ajax({url:n,type:"GET",dataType:"json",crossDomain:!0}).then((function(n){e.handleResponse(t,"versions",n.result.versions),e.handleResponse(t,"compilations",n.result.compilations),e.handleResponse(t,"covers",n.result.covers)}))}},{key:"handleResponse",value:function(t,e,n){var r=this.$relatedTable.find('tr[data-filename="'.concat(t,'"] .track-').concat(e)),a=r.find(".related-image"),i=r.find(".badge"),o=r.find(".related-album-image"),c=r.find(".img-container");a.removeClass("loading");var u=n?n.length:0,s=u>=50?"50<sup>+</sup>":u;i.html(s),0!==u&&(a.removeClass("empty"),o.attr("src","/services/img/".concat(n[0])),o.load((function(){4==o.width()/o.height()&&c.addClass("is-waveform")})))}}])&&g(e.prototype,n),a&&g(e,a),t}();Object(r.a)((function(){var t=Object(r.a)(".related-music-table");if(t.length){var e=new y(t);setTimeout((function(){e.startListener()}),5e3)}Object(r.a)("#related-music-more-info-btn").on("click",(function(){return Object(r.a)("#related-music-more-info-content").toggle(),!1}))}));var j=n(16);function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var w=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"css",value:function(){var t=document.getElementsByTagName("head")[0],e=document.createElement("link");e.media="screen",e.href="/components/manage/manage.css",e.type="text/css",e.rel="stylesheet",t.appendChild(e)}},{key:"manage_items",value:function(e){Object(r.a)("body").hasClass("lists")&&Object(r.a)(".tiles-button:visible").click();var n=Q.inTab(),a=Object(r.a)("body").hasClass("search-results-page"),i="collection"===n,o=/^(uploads|collections)$/.test(n),c=i?"to un-favorite":"to remove",u=o?(location.href.match(/@[^&/#?]+/)||[""])[0].substring(1):"";if(i||o||a)if(Object(r.a)(".item-ia.new-item\n ".concat(o&&!i?", .item-ia.account-ia":"","\n ").concat(""!==u?', .item-ia[data-id="fav-'.concat(u,'"]'):"","\n ")).toggleClass("hidden-tiles"),Object(r.a)(".columns-facets").toggleClass("opac30"),Object(r.a)(".item-ia .manage-check").length)Object(r.a)(".item-ia").removeClass("manage-item").unbind("click"),Object(r.a)(".columns-items .co-top-row > div").toggle(),Object(r.a)(".item-ia .manage-check, #manage-help").remove(),Object(r.a)(".item-ia").off("contextmenu");else{if(Object(r.a)("#manage-help").length&&!Object(r.a)(".item-ia .hov").length)return Object(r.a)(".item-ia").removeClass("manage-item").unbind("click"),Object(r.a)(".columns-items .co-top-row > div").toggle(),Object(r.a)(".item-ia .manage-check, #manage-help").remove(),void Object(r.a)(".item-ia").off("contextmenu");Object(r.a)(".columns-items .co-top-row").prepend('\n<div id="manage-help" style="display:none">\n <div>\n Select items '.concat(a?"":c,'\n </div>\n <div class="topinblock">\n <button class="btn btn-small btn-info"\n onclick="Manage.manage_items()">Cancel</button>\n <button class="btn btn-small btn-danger"\n onclick="Manage.remove_items_modal(').concat(i?"true":"false",')">Remove selected items</button>\n ').concat(e&&a?'\n <button class="btn btn-small btn-warning"\n onclick="Manage.to_item_manager()">Item Manager the items</button>\n ':"","\n </div>\n ").concat(e?'\n <p class="topinblock">\n <a href="#" onclick="return Manage.toggle_checkboxes()">\n Toggle</br>all\n </a>\n </p>\n ':"","\n</div>")),Object(r.a)(".columns-items .co-top-row > div").toggle(),Object(r.a)(".item-ia.task-pending").bind("click",t.tile_clicked),Object(r.a)(".item-ia:not(.mobile-header):not(.new-item):not(.new-list):not(.task-pending)".concat(o&&!i?":not(.account-ia)":"").concat(""!==u?':not([data-id="fav-'.concat(u,'"])'):"")).addClass("manage-item").bind("click",t.tile_clicked).append(t.checkbox(a?"include item for item management":"remove this item from list")),Object(r.a)(".item-ia").on("contextmenu",(function(t){var e=Object(r.a)(t.target).find("a:first").attr("href")||Object(r.a)(t.target).parents("a").attr("href");Object(s.a)("right-click",e),window.open(e,"_blank")}))}else alert("removal feature only works for favorites and uploads")}},{key:"remove_favorite_item",value:function(e){var n=Object(r.a)(e),a=n.data("id"),i=n.data("fav-collection"),o=location.protocol.concat("//",location.host,"/details/",i).concat("?remove_item=".concat(encodeURIComponent(a),"&kind=favorite"));return n.removeClass("favorited"),r.a.get(o,(function(){var e=n.data().target;n.attr({"data-original-title":"Favorite"}),t.toggle_favorite_icon(n);var a={title:"Unfavorited",body:'<center><span style="font-size:100px;" class="iconochive-No_Favorite"></span></center>'};Q.modal_add(e,a),Object(r.a)(e).modal("show"),Object(r.a)(e.concat(" .modal-dialog")).center(),setTimeout((function(){return Object(r.a)(e).modal("hide")}),Q.modalInterval),Object(r.a)(e).on("hidden.bs.modal",(function(){Object(r.a)(e).remove()}))})),!1}},{key:"checkbox",value:function(t){return'\n<div class="manage-check">\n <input\n type="checkbox"\n alt="'.concat(t,'"\n title="').concat(t,'"/>\n</div>')}},{key:"tile_clicked",value:function(t){var e=Object(r.a)(t.target);if("checkbox"===e.attr("type"))return!0;t.stopPropagation(),t.preventDefault();var n=e.parents(".item-ia").find(".manage-check input");return n.prop("checked",!n.prop("checked")),!1}},{key:"toggle_checkboxes",value:function(){return Object(r.a)(".manage-check input").prop("checked",(function(t,e){return!e})),!1}},{key:"remove_items_modal",value:function(e){var n="";Object(r.a)(".item-ia[data-id]:has(:checked)").each((function(t,e){var a=Object(r.a)(e),i=a.find(".C2 a").text().trim();n+='\n <div>\n <div class="pull-right">\n '.concat(a.find(".pubdate > :first").text(),"\n </div>\n <div>\n ").concat(i.length?i:"[untitled]","\n </div>\n <hr/>\n </div>\n ")}));var a=""===n?"No items selected":"Are you sure you want to remove these items?";""===n?n='\n <div class="alert alert-danger">\n Please select some items using checkboxes from the prior screen to remove.\n </div>':n+='\n <button class="btn btn-small btn-danger"\n onclick="Manage.'.concat(e?"confirmed_remove_favorites":"confirmed_dark_items",'()">\n Remove items\n </button>'),Q.modal_add(t.modalID,{title:a,body:n,headerClass:""}).modal("show")}},{key:"checked_ids",value:function(){return Object(r.a)(".item-ia[data-id]:has(:checked)").toArray().reduce((function(t,e){var n=Object(r.a)(e).data().id;return t.concat(t?",":"",n)}),"")}},{key:"to_item_manager",value:function(){var e=t.checked_ids();if(Object(s.a)("to_item_manager:",e),""!==e){var n=Object(r.a)('\n <form id="manage-ids" method="POST" action="/manage/">\n <input type="text" name="identifier" value="'.concat(e,'"/>\n </form>'));Object(r.a)("body").append(n),n.submit()}return!1}},{key:"confirmed_dark_items",value:function(){var e={identifier:t.checked_ids(),admin:"make_dark","curation[state]":"dark","curation[comment]":"from ".concat(location.pathname)};r.a.post("/manage/",e,t.update_tiles)}},{key:"confirmed_remove_favorites",value:function(){var e=t.checked_ids(),n=location.href.replace(/#.*$/,"").concat("?kind=favorite&remove_item=".concat(encodeURIComponent(e)));return r.a.get(n,t.update_tiles),!1}},{key:"update_tiles",value:function(){Object(r.a)(".item-ia[data-id]:has(:checked)").remove(),Q.tiler(),Object(r.a)(t.modalID).modal("hide")}},{key:"decorate_pendings",value:function(t){t.length&&(Object(s.a)("pending",t),t.forEach((function(t){return Object(r.a)(".item-ia[data-id=".concat(t,"]")).addClass("task-pending")})))}},{key:"toggle_list_status",value:function(e){return Object(r.a)(e).hasClass("favorited")?t.remove_favorite_item(e,!0):Q.modal_go(e,{favorite:1}),!1}},{key:"toggle_favorite_icon",value:function(t){t.length&&t.find("span:eq(0)").toggleClass("iconochive-No_Favorite iconochive-favorite")}}],(n=null)&&O(e.prototype,n),a&&O(e,a),t}();Object(r.a)((function(){if("web.archive.org"!==window.location.hostname){w.modalID="#confirm-remove-items",w.css(),Object(r.a)("body").hasClass("manage")&&w.manage_items(1);var t=Object(r.a)(".js-manage-toggle_list_status");t.length&&t.bind("click",(function(e){e.preventDefault(),w.toggle_list_status(t[0])}))}})),window.Manage=w;var k=n(22),_=function(){$(document.body).on("click",(function(t){var e=$(".dropdown-ia"),n=t.target;e.is(n)||0!==e.has(n).length||0!==$(".".concat("open")).has(n).length||e.removeClass("open")}))},x=function(t){t.on("click",(function(){return t.parent().toggleClass("open"),!1}))};function C(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}(t)||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 T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var S={namespace:"banners",action:"ia-banner-close",selector:".ia-banner",dismiss:function(t){t.preventDefault();var e=$(t.currentTarget).closest(this.selector);e.slideUp(200,(function(){return e.remove()})),this.isLocalStorageAvailable()&&this.writeStorage(e.attr("data-campaign"))},readStorage:function(){return JSON.parse(localStorage.getItem(this.namespace))||[]},writeStorage:function(t){var e=this.readStorage();localStorage.setItem(this.namespace,JSON.stringify([].concat(C(e),[t])))},bindEvents:function(){$(this.selector).on("submit.".concat(this.namespace),"[data-action=".concat(this.action,"]"),this.dismiss.bind(this))},checkVisibility:function(){var t=this.isLocalStorageAvailable()?this.readStorage():[];$(this.selector).each((function(e,n){$(n).toggleClass("visible",!t.includes(n.dataset.campaign))}))},isLocalStorageAvailable:function(){try{return Object.keys(localStorage).length>=0}catch(t){return!1}},init:function(){this.bindEvents(),this.checkVisibility()}},P=n(12),E=n(13),A=n(15),I=n(9);function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F=n(18);function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t,e,n){return e&&D(t.prototype,e),n&&D(t,n),t}var V=function(){function t(){N(this,t)}return z(t,null,[{key:"RegionsTable",value:function(t){var e=t.caption,n=void 0===e?"Regions":e,r=t.captionClass,a=void 0===r?"":r,i=t.counts,o=void 0===i?[]:i;return'\n <table class="stats-table">\n <caption class="'.concat(a,'">').concat(n,'</caption>\n\n <thead>\n <tr>\n <th scope="col">Region</th>\n <th scope="col">Country</th>\n <th class="stats-table__numeric-column" scope="col">Views</th>\n </tr>\n </thead>\n\n <tbody>\n ').concat(o.map((function(t){return'\n <tr key="'.concat(t.state.code,"_").concat(t.country.code,"_").concat(t.count,'">\n <td>').concat(t.state.formattedName,"</td>\n <td>").concat(t.country.formattedName,'</td>\n <td class="stats-table__numeric-column">').concat(t.formattedCount,"</td>\n </tr>")})).join(""),"\n </tbody>\n </table>")}},{key:"setUpTopRegionsTable",value:function(){var e=Object(r.a)(".js-top-regions-table"),n=e.find(".js-top-regions-message"),a=n.text();if(e&&n){n.html(F.a.LoadingMessage({message:"loading data"}));var i={uaKinds:["non_robot","unrecognized"]};e.data("days")&&(i.days=parseInt(e.data("days"),10)),e.data("limit")&&(i.limit=parseInt(e.data("limit"),10)),t.StatsApiClient.getGeoCounts(e.data("identifier"),i).then((function(n){e.html(t.RegionsTable({caption:e.data("caption"),captionClass:e.data("captionClass"),counts:n}))}),(function(){n.text(a)}))}}}]),t}();function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}!function(){var t=function(){function t(e){var n=e.code,r=e.name;N(this,t),this.code=n,this.name=r}return z(t,[{key:"formattedName",get:function(){return(t=this.name).charAt(0).toUpperCase()+t.slice(1);var t}}]),t}(),e=function(){function t(e){var n=e.count,r=e.country,a=e.state;N(this,t),this.count=parseInt(n,10),this.country=r,this.state=a}return z(t,[{key:"formattedCount",get:function(){return Object(E.a)(this.count)}}]),t}();function n(n){return new e({count:n.sum_count_value,country:new t({code:n.geo_country,name:n.country}),state:new t({code:n.geo_state,name:n.state})})}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.uaKinds,a=void 0===r?["robot","non_robot","unrecognized"]:r;if(!t.counts_geo)throw new RangeError("API response doesn't contain property 'counts_geo'.");function i(t){return-1!==a.indexOf(t)}for(var o={},c=0;c<t.counts_geo.length;c++){var u=t.counts_geo[c];if(i(u.ua_kind)&&"unknown"!==u.country){var s="".concat(u.geo_country,"_").concat(u.geo_state);o[s]?o[s].count+=u.sum_count_value:o[s]=n(u)}}return Object.keys(o).map((function(t){return o[t]}))}var i="https://be-api.us.archive.org/views/v1";V.StatsApiClient=function(){function t(){N(this,t)}return z(t,null,[{key:"getGeoCounts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.days,o=void 0===n?30:n,c=e.limit,u=void 0===c?100:c,s=e.uaKinds,l=void 0===s?["robot","non_robot","unrecognized"]:s,f="".concat(i,"/detail/collection/").concat(t,"/").concat(o);return r.a.get(f).then((function(t){try{return a(t,{uaKinds:l}).sort((function(t,e){return t.count<e.count?1:-1})).slice(0,u)}catch(t){return r.a.Deferred().reject(t)}}))}}]),t}()}();var q=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"setup",value:function(){Object(r.a)(".js-search-bar").each((function(){var t=Object(r.a)(this),e=t.data("autocompleteFormat");if("off"!==e){var n={minLength:3,source:function(t,e){r.a.ajax({url:"https://be-api.us.archive.org/searches/complete",data:{q:t.term,limit:15},dataType:"json",success:e,error:function(t,n,r){Object(s.a)("".concat(n,": ").concat(r)),e([])}})},open:function(){var t=Object(r.a)(this).autocomplete("widget"),e=t.offset();e.left<0&&(t.width(t.width()-e.left),t.offset({top:e.top,left:0}))},classes:{"ui-autocomplete":"truncate"}};"inline"===e?(n.appendTo=t.data("autocompleteAppendTo"),n.position={using:r.a.noop}):(n.classes["ui-autocomplete"]+=" z-above-top-nav","right"===e&&(n.position={my:"right top",at:"right bottom"})),t.autocomplete(n)}}))}}],(n=null)&&B(e.prototype,n),a&&B(e,a),t}();function W(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=X(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){c=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||X(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||X(t)||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 X(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object(r.a)((function(){Object(r.a)(".js-facets-xhr").each((function(){var t=location.href.concat("&headless=1&facets_xhr=facets");r.a.get(t,(function(t){var e=Object(r.a)(t).find(".columns-facets").get(0).innerHTML;Object(r.a)(".columns-facets").html(e)}))}))}));var Q=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"tvAD",value:function(t){var e,n,a,i=Object(r.a)(t).parents(".shows");if(i.length){var o=Object(r.a)(t).parent().find(".shows");if(o.length)return o.toggle(),!1;n=i.attr("data-chan"),a=Object(r.a)(t).text()}else{n=Object(r.a)(t).text(),e="menu-chan-".concat(n);var c=Object(r.a)("#".concat(e));if(c.length)return c.toggle(),!1}var u="".concat(location.href,"?channel=").concat(n);return i.length&&(u+="&program=".concat(encodeURIComponent(a))),Object(s.a)(u),r.a.get(u,(function(a){i.length?Object(r.a)(t).parent().append('<div data-chan="'.concat(n,'" class="shows"><h5>Air date</h5><div>').concat(a,"</div></div>")):Object(r.a)(t).parent().append('<div id="'.concat(e,'" data-chan="').concat(n,'" class="shows"><h4>Show</h4><div>').concat(a,"</div></div>"))})),!1}},{key:"paramsToJSON",value:function(){return Object(j.a)()}},{key:"nav_tophat_setup",value:function(){Object(r.a)("#nav-tophat").length&&(t.isTouchDevice()&&Object(r.a)("body").addClass("touch"),Object(r.a)("#nav-tophat").on("show.bs.collapse",(function(){return Object(r.a)("#navwrap1").addClass("hatted")})).on("hide.bs.collapse",(function(){return Object(r.a)("#navwrap1").removeClass("hatted")})),Object(r.a)(".navbar a[data-top-kind]").on("click",(function(t){var e=!Object(r.a)("#nav-tophat-helper:visible").length,n=Object(r.a)("#nav-tophat").hasClass("in"),a=this,i=Object(r.a)(t.target).attr("data-top-kind")||Object(r.a)(t.currentTarget).attr("data-top-kind"),o=Object(r.a)(".navbar .dropdown-ia.hatted a").attr("data-top-kind");return e&&n&&o!==i||(Object(r.a)(".toprow").hide(),Object(r.a)(".toprow.".concat(i)).show()),n||Object(r.a)("#nav-tophat").collapse("show"),void 0!==o&&Object(s.a)("isnow",o),Object(s.a)("shouldB",i),o===i?(Object(r.a)("#nav-tophat").collapse("hide"),!1):e&&n&&o!==i&&void 0!==o?(Object(r.a)("#nav-tophat").one("hidden.bs.collapse",(function(){setTimeout((function(){return Object(r.a)(a).click()}),100)})),Object(r.a)("#nav-tophat").collapse("hide"),!1):(window.archive_analytics&&archive_analytics.send_event("TopNav","MediaIcon-".concat(i)),Object(r.a)(".navbar .dropdown-ia").removeClass("hatted").has(".".concat(i)).addClass("hatted"),Object(r.a)("#nav-tophat").on("hidden.bs.collapse",(function(){return Object(r.a)(".navbar .dropdown-ia").removeClass("hatted")})),!1)})),Object(r.a)(document).on("click.tophat.nixer",(function(t){var e,n=Object(r.a)(t.target);"nav-wb-url"===n.attr("id")||(e=t.target,Object(r.a)(e).parents("#navwrap1").length)||n.is("a")||n.hasClass("item-img")||n.hasClass("item-ia")||Object(r.a)("#nav-tophat.in").collapse("hide")})))}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}},{key:"footer",value:function(){t.isTouchDevice()||void 0===r.a.fn.tooltip||Object(r.a)('.navbar [data-toggle="tooltip"], .container-ia [data-toggle="tooltip"], #cols [data-toggle="tooltip"], #tvbanner [data-toggle="tooltip"]').tooltip({})}},{key:"wrapdark_watcher",value:function(){if(t.$sharedown||(t.$sharedown=Object(r.a)("#sharedown"),t.$wrapdark=Object(r.a)("#wrapdark")),t.wrapdark_watcher_ptr||(t.wrapdark_watcher_ptr=setInterval(t.wrapdark_watcher,1e3)),t.$sharedown.length&&t.$wrapdark.length){var e=t.$sharedown.offset().top+t.$sharedown.find(".panel-heading").innerHeight();parseInt(t.$wrapdark.css("height"),10)!==e&&(t.$wrapdark.css({height:e}).show(),Object(s.a)(" WRAPDARK-ED to ",e))}else clearInterval(t.wrapdark_watcher_ptr)}},{key:"mute_click",value:function(){var e=!r.a.cookie("unmute");if(this.emulator)this.emulator.setMute(!e);else{var n=Object(I.b)("jw6");if(n){var a=n.getVolume();a?(t.mute_click_prior_volume=a,n.setVolume(0)):n.setVolume(void 0===t.mute_click_prior_volume?100:t.mute_click_prior_volume)}}return Object(r.a)("#theatre-ia .iconochive-mute, #theatre-ia .iconochive-unmute").toggle(),e?r.a.cookie("unmute",1,{path:"/details",expires:30}):r.a.cookie("unmute",null,{path:"/details"}),!1}},{key:"emulate_setup",value:function(e){e.toString=function(){return e.identifier},t.emulator=new IALoader(Object(r.a)("#canvas").get(0),e,null),Object(r.a)("#theatre-ia .iconochive-unmute, #theatre-ia .iconochive-mute").hide(),r.a.cookie("unmute")?(Object(r.a)("#theatre-ia .iconochive-unmute").show(),t.emulator.unmute()):(Object(r.a)("#theatre-ia .iconochive-mute").show(),t.emulator.mute()),t.theatre_controls_position(),Object(r.a)(window).on("resize orientationchange",(function(){clearTimeout(t.theatre_controls_position_throttler),t.theatre_controls_position_throttler=setTimeout(t.theatre_controls_position,250)}))}},{key:"emulate",value:function(){return Object(r.a)(".ui-keyboard").prepend('\n <button style="position:relative;top:-5px;right:-8px;" type="button" class="close"\n onclick="$(\'.ui-keyboard\').removeClass(\'showing\').hide()" aria-hidden="true">\n <span class="iconochive-remove-circle"></span></button>').appendTo(Object(r.a)("#emulate .posrel")).addClass("showing"),Object(r.a)("#jsmessSS").fadeOut("slow"),Object(r.a)("#canvasholder").css("visibility","visible"),t.emulator.start({hasCustomCSS:!0}),Object(r.a)("#gofullscreen").on("click",t.emulator.requestFullScreen),setTimeout(t.theatre_controls_position,100),setTimeout(t.theatre_controls_position,500),setTimeout(t.theatre_controls_position,3e3),setTimeout(t.theatre_controls_position,1e4),!1}},{key:"theatre_controls_position",value:function(t,e,n,a){var i=t,o=a&&!t;if(o||(t||(i=Object(r.a)("#canvas")),i.length)){var c=o?a:i.height(),u=o?n:i.width();o||void 0===e||Object(r.a)("#theatre-controls").offset({top:e});var l=Math.round((Object(r.a)("#theatre-ia-wrap").width()-Object(r.a)("#theatre-controls").width()-u)/2);Object(s.a)("width",u),Object(s.a)("right_gutter_width",l),Object(r.a)("#theatre-controls").css({height:c,visibility:"visible",right:Math.max(20,l/2)})}}},{key:"booksize",value:function(){if(Object(r.a)("#texty").length){t.theatresize();var e=Object(r.a)("#texty iframe"),n=function(){var t=Object(r.a)(e.get(0).contentDocument);return t.find("#BookReader").length>0&&(t.find("body, #BookReader").css("background-color","transparent"),!0)};if(!n())var a=setInterval((function(){n()&&clearInterval(a)}),200);if(void 0===Object(r.a)("#texty").data("lendable-book")&&!t.booksize_controls_hidden){t.booksize_controls();var i=setInterval((function(){t.booksize_controls_hidden?clearInterval(i):t.booksize_controls()}),200)}}}},{key:"booksize_controls",value:function(){var e=Object(r.a)("iframe:first");if(e.length){var n=Object(r.a)(e.get(0).contentDocument);if(n.length){if(!t.booksize_controls_hidden){if(!n.find("#BRnav").length)return void Object(s.a)("BOOK NOT READY YET");n.find("#BRtwopageview").length>0&&n.find("#BRnav").hide(),t.booksize_controls_hidden=!0,Object(r.a)("#texty iframe").css("visibility","visible"),Object(s.a)("BOOK CONTROLS HIDDEN!")}n.find("body, #BookReader").css("background-color","transparent");var a=n.find("#BRtwopageview, #BRpageview"),i=Object(r.a)(".navbar"),o=i.offset().top+i.height()+parseInt(Object(r.a)("#texty").css("padding-top"),10);t.theatre_controls_position(a,o),Object(s.a)("book top",e.offset().top+a.offset().top," -v- pegTop",o),Object(r.a)("#theatre-ia").css({overflow:"hidden"})}}}},{key:"popcornsize",value:function(){var e=function(){var t=Object(r.a)(window).height()-Object(r.a)("iframe:first").offset().top-100,e=Object(r.a)("#theatre-ia .row").outerWidth(),n={width:e,height:Math.min(t,9*e/16+43)};Object(s.a)("popcorn resize: ",n),Object(r.a)("iframe:first").css(n)};e(),Object(r.a)(window).on("resize orientationchange",(function(){clearTimeout(t.popcorn_throttler),t.popcorn_throttler=setTimeout(e,250)}))}},{key:"theatresize",value:function(e){t.theatresize_maxheight||(t.theatresize_maxheight=null);var n=function(){var n=Math.min(Object(r.a)(window).width(),400),a=Object(r.a)(window).height()-Object(r.a)("#navwrap1").height()-100;t.theatresize_maxheight&&(a=Math.min(a,t.theatresize_maxheight)),a=Math.max(a,n);var i=Math.min(a,1e3);Object(r.a)("#theatre-ia-wrap").addClass("resized").css("height",i),e&&e(Object(r.a)("#theatre-ia-wrap").height())};n(),Object(r.a)(window).on("resize orientationchange",(function(){clearTimeout(t.theatresize_throttler),t.theatresize_throttler=setTimeout(n,250)}))}},{key:"carouselsize",value:function(e,n){var a=Object(r.a)(e),i=a.find("img.carousel-image").map((function(t,e){var n,a=r.a.Deferred();return e.complete?n=a.resolve(e.naturalHeight).promise():(e.addEventListener("load",(function(){a.resolve(e.naturalHeight)})),n=a),n})).get();r.a.when.apply(r.a,H(i)).then((function(){var e=a.height(),i=Math.max.apply(Math,arguments);e>i&&(a.css("maxHeight",i),n&&(t.theatresize_maxheight=i,Object(r.a)(window).trigger("resize")))}))}},{key:"pause",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"jw6",e=Object(I.b)(t);e&&e.getState&&"playing"===e.getState().toLowerCase()&&e.pause()}},{key:"add2list",value:function(e){var n=Object(r.a)(e).attr("href");return r.a.get("".concat(n,"&headless=1&titlelist=").concat(Object(r.a)(e).text()),(function(n){t.modal_go(e,{title:"Add To List",headerClass:"modal-header-new-list",ignore_lnk:!0,auto_remove:!0,body:n})})),!1}},{key:"newlist",value:function(e){var n=Object(r.a)(e).attr("href");return r.a.get(n.concat("&headless=1"),(function(n){t.modal_go(e,{title:"Create New List",headerClass:"modal-header-new-list",ignore_lnk:!0,add_modal:!0,body:n})})),!1}},{key:"newlist_submit",value:function(){var t=Object(r.a)("#new-list-form input[name=title]").val();if(!t.length)return alert("Please enter a title for your List"),!1;var e=t.replace(/[^a-zA-Z0-9_\-.]/g,"").replace(/^[_\-.]+/,"");return Object(s.a)(e),!!e.length||(alert("Please try another title that contains more alphanumeric characters"),!1)}},{key:"popover_menu",value:function(t,e){var n={trigger:"hover focus click",container:t,content:e.content,html:!0};e.title&&(n.title=e.title),e.placement&&(n.placement=e.placement),e.trigger&&(n.trigger=e.trigger),Object(r.a)(t).popover(n)}},{key:"date_switcher",value:function(t){var e="#date_switcher";Object(r.a)(e).tooltip({html:!0,trigger:"manual",placement:"bottom",title:t}).on("mouseenter focusin",(function(){Object(r.a)(e).parent().find(".tooltip").length||Object(r.a)(this).tooltip("show")})),Object(r.a)(".sortbar").on("mouseleave",(function(){Object(s.a)("not hovering sortbar anymore"),Object(r.a)(e).tooltip("hide")})),Object(r.a)(e).on("shown.bs.tooltip",(function(){Object(r.a)(e).parent().find(".date_switcher").on("click",(function(){Object(r.a)(this).parents(".tooltip").find(".date_switcher.in").removeClass("in"),Object(r.a)(this).addClass("in")}))}))}},{key:"tiles_to_list",value:function(){var e=t.selector(),n=Object(r.a)(e).first();Object(s.a)("lister() SELECTOR",e);var a=n.find(".results .item-ia:first .C3").outerWidth(),i=n.find(".results .item-ia:first .C234").outerWidth(),o=i-a-20,c=Math.max(80,Math.round(.6*o)),u=Math.max(80,Math.round(.4*o));Object(s.a)("C3 ",a),Object(s.a)("C234",i),Object(s.a)("C2 ",c),Object(s.a)("C4 ",u),Object(s.a)(" ==> availWidth: ",o,"(",c,"+",u,")"),n.find(".results .item-ia .C2").css({width:c,"max-width":c}),n.find(".results .item-ia .C4").css({width:u,"max-width":u})}},{key:"lists_v_tiles_setup",value:function(t){var e=r.a.cookie("view-".concat(t)),n=r.a.cookie("showdetails-".concat(t)),a="showdetails"===n||null===n&&!1;if("lists"===e){if(a)return;Object(r.a)("body").removeClass("showdetails")}else Object(r.a)("body").removeClass("lists".concat(a?"":" showdetails")).addClass("tiles")}},{key:"showdetails_toggle",value:function(t,e){var n=Object(r.a)("body"),a=n.hasClass("showdetails")?"":"showdetails";Object(s.a)("showdetails_toggle() going to: ",a),r.a.cookie("showdetails-".concat(e),a,{path:"/",expires:30,domain:".archive.org"}),n.toggleClass("showdetails")}},{key:"tiles_toggle",value:function(e,n){var a=Object(r.a)("body"),i=a.hasClass("tiles")?"lists":"tiles";return Object(s.a)("tiles_toggle() going to",i),a.removeClass("lists tiles").addClass(i),t.tiler(),r.a.cookie("view-".concat(n),i,{path:"/",expires:30,domain:".archive.org"}),!1}},{key:"inTab",value:function(){return Object(r.a)(".welcome .tabby.in .tabby-text").first().text().toLowerCase().trim()}},{key:"selector",value:function(){var e=t.inTab();if("forum"===e||"posts"===e||"about"===e)return!1;var n=!1;if(e){Object(s.a)("inTab",e);var a="#tabby-".concat(e.replace(" ","-"));if("collection"===e||"collections"===e||"uploads"===e||"reviews"===e||"web archives"===e)n="#".concat(Object(r.a)(a.concat(" div.ikind.in:first")).attr("id"));else{var i=Object(r.a)(a.concat(" .ikind.stealth.in:first")).text().toLowerCase().replace(/ /,"-");n="#ikind-".concat(e).concat(""===i?"":"-").concat(i)}}else n="#ikind-".concat(Object(r.a)(".ikind.stealth.in:first").text().toLowerCase().replace(/ /,"-")),Object(r.a)(n).length||(n="#ikind-search");return Object(s.a)("SELECTOR",n),n}},{key:"parent_hover",value:function(t){t.find(".item-ia:not(.hov):not(.collection-ia):not(.account-ia)").addClass("hov").mouseover((function(t){return Object(r.a)(t.currentTarget).find(".item-parent").addClass("hoverin")})).mouseout((function(t){return Object(r.a)(t.currentTarget).find(".item-parent").removeClass("hoverin")}))}},{key:"tiler",value:function(e,n){Object(r.a)("body").hasClass("tiles")||Object(r.a)("body").hasClass("showdetails")&&Object(r.a)(".sortbar input[name=showdetails]").prop("checked",!0);var a=e||t.selector();if(!1!==a){var i=Object(r.a)(a).first(),o=i.attr("id"),c=i.parents(".row"),u=Object(r.a)(window).width()<568;if(Object(r.a)("body").hasClass("tiles")){if(t.tilerPREV||(t.tilerPREV={winW:0,pad:0,nPerRow:1,gutter:17,tileWidth:180,unsourced:{},firstLeft:0},t.parent_hover(i)),Object(r.a)(window).width()!==t.tilerPREV.winW){c.css({"padding-left":"","padding-right":""}),t.tilerPREV.firstLeft=0;var l=c.find(".columns-facets:visible"),f=l.outerWidth()||0;f&&(f+=1+parseInt(l.css("padding-right"),10));var d=u?Object(r.a)(window).width():c.width()-f,p=u?(d-i.width())/2:17,h=Object(r.a)(".item-ia:first").outerWidth()>=180?180:150,b=Math.max(1,Math.floor((d+p)/(h+p))),v=u?0:Math.max(0,d-b*(h+p)+p);Object(s.a)("tiling",o,"parentRowW",c.width(),"facetsWidth",f,"availWidth: ",d,"number per row",b,". ","With gutter margin",p,"had ",v,"extra pixels"),t.tilerPREV.pad=Math.round(v/2),t.tilerPREV.winW=Object(r.a)(window).width(),t.tilerPREV.nPerRow=b,t.tilerPREV.gutter=p,t.tilerPREV.tileWidth=h}t.tilerPREV.nPerRow>1?c.css({"padding-left":t.tilerPREV.pad,"padding-right":t.tilerPREV.pad}):t.tilerPREV.firstLeft=t.tilerPREV.pad;for(var m=0,g=[],y=0,j={0:0},O={0:t.tilerPREV.firstLeft},w=1;w<t.tilerPREV.nPerRow;w++)O[w]=O[w-1]+t.tilerPREV.gutter+t.tilerPREV.tileWidth,j[w]=0;t.tilerPREV.unsourced[o]||(Object(s.a)("unsourcing",o),i.find(".item-ia img[source]").each((function(t,e){Object(r.a)(e).attr({src:Object(r.a)(e).attr("source"),alt:"Image Not Found!",onError:'$(this).attr("src","/images/notfound.png")'}).removeAttr("source")})),t.tilerPREV.unsourced[o]=1),t.colPREV=-1,i.find(".item-ia").not(".mobile-header").css("visibility","hidden").each((function(e,n){var a=Object(r.a)(n),i=a.innerHeight(),o={},c=0;if(t.tilerPREV.nPerRow>1&&e>=t.tilerPREV.nPerRow){var u=(t.colPREV+1)%t.tilerPREV.nPerRow;c=u;for(var s=j[u]-i,l=0;l<t.tilerPREV.nPerRow;l++)if(l!==u&&s>j[l]){c=l;break}}else c=e%t.tilerPREV.nPerRow;t.colPREV=c,o.visibility="visible",o.top=j[c],o.left=O[c],j[c]+=i+30,y=Math.max(y,j[c]),a.css(o);var f=a.find(".item-img");f.length&&!a.find(".item-img").height()&&(m+=1,(f=a.attr("data-id"))&&g.push(f))})),Object(s.a)("maxtop",y),i.find(".results").css({height:y}),m&&!n&&(Object(s.a)(m," img (still w/o height); recall tiler(",a,")...",g.join(",")),clearTimeout(t.tiler_throttler),t.tiler_throttler=setTimeout((function(){return t.tiler(a,0)}),1500))}else c.css({"padding-left":"","padding-right":""})}}},{key:"ikind",value:function(e,n){var a="#".concat(n);Object(s.a)("ikind",n),Object(r.a)(a).parent().find("div.ikind.in").hide(),Object(r.a)(a).removeClass("hidden").addClass("in").show(),Object(r.a)(a).parents(".tabby-data").find("a.ikind").removeClass("in"),Object(r.a)(e).addClass("in"),t.tiler(a);var i=Object(r.a)(a).parents(".tabby-data").find("select.ikind-mobile"),o=i.find("option:contains(".concat(Object(r.a)(e).text(),")")),c=i.find("option:selected");return o.text().trim()!==c.text().trim()&&(Object(s.a)("changing ikind mobile now to ",o.text()),t.ikind_mobile_change_ignore_next=!0,o.attr("selected","selected")),!1}},{key:"ikind_mobile_change",value:function(e){if(t.ikind_mobile_change_ignore_next)t.ikind_mobile_change_ignore_next=!1;else{var n=Object(r.a)(e).find("option:selected");Object(s.a)("ikind mobile changed to: ",n.text());var a=Object(r.a)(e).parents(".tabby-data").find("a.ikind");if(a.length||(a=Object(r.a)("body").find("a.ikind")),a.length){var i=a.filter((function(t,e){return Object(r.a)(e).text()===n.text()})).attr("href");Object(s.a)("goto",i),i&&("#"===i.substr(0,1)?Object(r.a)("a.ikind[data-id=".concat(i.substr(1),"]")).click():location.href=i)}}}},{key:"popState",value:function(e){if(t.pushState=void 0!==history.pushState,Object(s.a)("popState(",e,") called, modern browser: ",t.pushState?"y":"n"),!e){var n=function(e){var n=Object(P.a)("tab",!0);n=n?"#tabby-".concat(n,"-finder"):e?"#tabby-".concat(e,"-finder"):".tabby-default-finder",t.pushState&&Object(s.a)("goto tab: ",n," ################################################### STATE"),t.tabby_no_pushState_next_click=!0,Object(r.a)(n).click()};t.pushState&&Object(r.a)(window).on("popstate",(function(){return n()})),n()}}},{key:"tabby",value:function(e,n){Object(s.a)("AJS.tabby()",n);var a=n.replace(/tabby-/,"").trim();if("uploads"===a||"reviews"===a||"collections"===a||"loans"===a||"web archives"===a)return!0;if(Object(r.a)(".tabby-data.in").removeClass("in").hide(),Object(r.a)("#".concat(n)).removeClass("hidden").addClass("in").show(),Object(r.a)(".tabby").removeClass("in"),Object(r.a)(e).parents(".tabby").addClass("in"),t.tabby_no_pushState_next_click)delete t.tabby_no_pushState_next_click;else if(t.pushState&&void 0!==history.pushState){var i=Object(r.a)(e).attr("href"),o=location.href,c=location.protocol.concat("//",location.host,i);o!==c&&(Object(s.a)("pushState: ",i," ################################################### STATE"),history.pushState({},"",c))}return"collection"!==a&&"about"!==a||("about"===a&&t.grafs(),t.tiler()),!t.pushState}},{key:"colclick",value:function(t){var e=Object(r.a)(t),n=e.attr("data-id");n&&Object(r.a)("body").hasClass("tiles")&&!e.hasClass("manage-item")&&(location.href="/details/".concat(n))}},{key:"head_img_dragdrop_setup",value:function(e){t.head_img_dragdrop_setup_done||(Object(s.a)("head_img_dragdrop_setup"),t.head_img_dragdrop_setup_done=!0,Object(r.a)("#file-dropper-wrap").bind("mouseenter",(function(){Object(s.a)("enter"),t.head_img_replaceable(e),Object(r.a)("#file-dropper").show()})).bind("mouseleave",(function(){Object(s.a)("ouddie"),t.file_picked||Object(r.a)("#file-dropper").hide()})),Object(r.a)("body").bind("dragover",(function(n){return Object(s.a)("dragover"),n.stopPropagation(),n.preventDefault(),t.head_img_replaceable(e),Object(r.a)("#file-dropper").addClass("drag_over").show(),!1})),Object(r.a)("body").bind("dragleave",(function(t){Object(s.a)("dragleave");var e=Object(r.a)("#file-dropper-wrap").is(":hover")||Object(r.a)("#file-dropper ").is(":hover")||Object(r.a)("#file-dropper-img ").is(":hover"),n=t.pageX||t.originalEvent.pageX,a=t.pageY||t.originalEvent.pageY;if(!e){var i=Object(r.a)("#file-dropper-wrap"),o=i.offset(),c=o.left,u=o.top;n>=c&&n<=c+i.outerWidth()&&a>=u&&a<=u+i.outerHeight()&&(e=!0)}if(!e){var l=Object(r.a)("#file-dropper"),f=l.offset(),d=f.left,p=f.top;n>=d&&n<=d+l.outerWidth()&&a>=p&&a<=p+l.outerHeight()&&(e=!0)}e||Object(r.a)("#file-dropper").removeClass("drag_over").hide()})))}},{key:"head_img_replaceable",value:function(e){if(""===Object(r.a)("#file-dropper").html().trim()){Object(r.a)("#file-dropper").show().html('\n<div>\n<button id="file-cancel" type="button" class="close" data-dismiss="alert" aria-hidden="true"\n title="cancel file upload" alt="cancel file upload">\n ×\n</button>\n<b>\n <span style="font-size:40px; color:#aaa" class="iconochive-plus-circle" />\n</b><br/>\n<b>\n Drag & Drop an image file here or\n</b>\n<button type="button" class="btn btn-info btn-xs" onclick="$(\'#file-selector\').click();">\n Pick image to upload\n</button>\n<form method="POST" action="/services/post-file.php?submit=1&identifier='.concat(e,'"\n enctype="multipart/form-data" id="poster">\n <div class="hidden">\n <input id="file-selector" name="file" type="file" accept="image/*"/>\n </div>\n <input type="hidden" name="identifier" value="').concat(e,'"/>\n <input id="file-submit" type="submit" name="submit" value="SUBMIT" class="btn btn-success"/>\n <div id="file-uploading">\n Uploading your file..\n </div>\n</form>\n</div>')),Object(r.a)("#file-cancel").bind("click",(function(e){return t.cancelFile(),e.stopPropagation(),e.preventDefault(),!1})),r.a.event.props.push("dataTransfer"),Object(r.a)("#file-selector").bind("click",(function(){t.file_picked="selected"})).bind("change",(function(e){if(Object(s.a)("file dropdown selected!"),Object(r.a)("#file-submit, #file-cancel").show(),Object(s.a)(e),e.target&&e.target.files&&e.target.files.length){var n=U(e.target.files,1);t.file2post=n[0],t.previewFile()}})),Object(r.a)("#file-dropper").bind("drop",(function(e){if(e.stopPropagation(),e.preventDefault(),Object(s.a)(e.dataTransfer.files),Object(r.a)("#file-dropper").removeClass("drag_over"),Object(r.a)("#file-submit, #file-cancel").show(),e.dataTransfer.files.length){t.file_picked="dropped";var n=U(e.dataTransfer.files,1);t.file2post=n[0],t.previewFile(),Object(r.a)("#file-selector").files=e.dataTransfer.files}})),Object(r.a)("#poster").bind("focusin",(function(t){Object(s.a)(t.type),Object(r.a)("#file-uploading").show()})).bind("submit",(function(n){Object(s.a)("submit!"),Object(r.a)("#file-uploading").show();var a=function(){var n=!1;"undefined"==typeof XMLHttpRequest&&(n="browser appears to not have HTML5 functionality"),n||(n=t.badFile());var a=new XMLHttpRequest;if(n||(Object(s.a)(t.file2post),a.upload||(n="browser submit setup failed")),n)return n;Object(s.a)("post");var i=Math.round(Date.now()/1e3);a.open("POST",location.protocol.concat("//",location.host,"/services/post-file.php?submit=1&identifier=",e,"&fname=",encodeURIComponent(t.file2post.name))),a.setRequestHeader("Content-Type","multipart/form-data; charset=UTF-8"),a.send(t.file2post),Object(s.a)("posted in background"),Object(r.a)("#file-dropper").html("waiting for your tasks to queue");var o=!1;return o=setInterval((function(){Object(s.a)("STALKING..."),r.a.getJSON("/metadata/".concat(e,"?rand=").concat(Math.random()),(function(t){var e=t.pending_tasks&&t.tasks?t.tasks.length:0;e?t.tasks.filter((function(t){return 2===t.wait_admin})).length?(Object(r.a)("#file-dropper").html('\n <div class="alert alert-danger">\n status task failure -- an admin will need to resolve\n </div>'),clearInterval(o)):Object(r.a)("#file-dropper").html("waiting for your ".concat(e," tasks to finish")):(Object(s.a)("last update",t.item_last_updated,"vs now",i),t.item_last_updated<i?Object(r.a)("#file-dropper").html("waiting for your tasks to queue"):(Object(s.a)("task(s) done!"),clearInterval(o),Object(r.a)("#file-dropper").html("reloading page with your image"),window.location.reload()))}))}),2e3),""}();return""===a?(Object(s.a)("success!"),n.stopPropagation(),n.preventDefault(),!1):"dropped"!==t.file_picked||(t.cancelFile(),alert("Failure: ".concat(a)),n.stopPropagation(),n.preventDefault(),!1)}));var n=Object(r.a)("#file-dropper-img").outerWidth(),a=Object(r.a)("#file-dropper-img").outerHeight(),i=Object(r.a)("#file-dropper").outerWidth(),o=Object(r.a)("#file-dropper").outerHeight();Object(r.a)("#file-dropper").css({left:Math.round((n-i)/2),top:Math.round((a-o)/2)}),A.a&&(Object(r.a)("#file-dropper > form > div.hidden").removeClass("hidden"),Object(r.a)("#file-dropper > button").addClass("hidden"))}}},{key:"previewFile",value:function(){if(Object(r.a)("#file-dropper .uppreview").remove(),t.badFile())return t.cancelFile(),!1;if("undefined"==typeof FileReader)return!1;var e=new FileReader;return e.onload=function(t){Object(s.a)(t.target);var e=new Image;e.src=t.target.result,Object(r.a)("#file-dropper").append(e),Object(r.a)(e).addClass("uppreview")},Object(s.a)(t.file2post),e.readAsDataURL(t.file2post),!0}},{key:"cancelFile",value:function(){Object(r.a)("#file-dropper .uppreview").remove(),Object(r.a)("#file-dropper, file-submit, #file-cancel, #file-uploading").hide(),t.file_picked&&delete t.file_picked,t.file2post&&delete t.file2post}},{key:"badFile",value:function(){var e=!1;if(e||t.file2post||(e="file is missing"),!e&&t.file2post.size>8e6&&(e="file is over 8MB in size"),!e){var n=t.file2post.type.toLowerCase();"image/jpeg"!==n&&"image/png"!==n&&"image/gif"!==n&&(e="file not required format of JPEG or PNG or GIF")}return e&&alert(e),e}},{key:"drawPDF",value:function(t,e){var n="/download/".concat(t,"/",t,"_pdf.zip/",t,"_pdf/",t,"_"),a=!1,i=!1;for(var o in e){var c=o.substr(0,4);if(!1===i&&(i=c),i!==c){a=!0;break}}var u="",s=666;for(var l in e){var f=e[l].split(","),d=l.substr(0,4),p=parseInt(l.substr(4,2),10),h=parseInt(l.substr(6,2),10),b=d.concat("-",p),v=!1,m="";b!==s&&(m=1===p?"January":2===p?"February":3===p?"March":4===p?"April":5===p?"May":6===p?"June":7===p?"July":8===p?"August":9===p?"September":10===p?"October":11===p?"November":12===p?"December":void 0===p?"Single Page PDFs":"Unknown_".concat(p),a&&(m=d.concat(" ",m)),u+=u?"</div>\x3c!--mo--\x3e<br/>":"",u+='\n<a href="#'.concat(m,",").concat(d,'" onclick="$(\'#m').concat(b,'\').toggle(); return false">\n<span class="iconochive-folder" /> ').concat(m,'\n</a>\n<div class="mo" id="m').concat(b,'">')),void 0!==h&&""!==h||(v=!0),u+=v?'<div class="day">':'\n<div class="day">\n<a href="#'.concat(b,"-").concat(h,'"\n onclick="$(\'#m').concat(b,"d").concat(h,'\').toggle();return false;">\n <span class="iconochive-folder" /> ').concat(h,'\n</a>\n<div class="pages" id="m').concat(b,"d").concat(h,'">');for(var g=1,y=void 0,j=void 0,O=0;O<f.length;O++)if(y=f[O]){g>0&&(g=1-y),j=parseInt(y,10)+g,y=(y="0000".concat(y)).substr(y.length-4,4);var w=n.concat(y,".pdf");u+='<a href="'.concat(w,'">[').concat(j,"]</a> ")}u+=v?"</div>":"</div>\x3c!--pages--\x3e</div>\x3c!--day--\x3e",s=b}u+="</div>\x3c!--mo--\x3e",Object(r.a)("#pdfs .replaced").html(u)}},{key:"grafs",value:function(){var t=Object(r.a)("#grafs_views_api"),e=Object(r.a)("#grafs1"),n=Object(r.a)("#grafs2");if(e.length&&void 0!==e.attr("data-id")){var a=e.attr("data-id");e.attr("data-id",null),Object(s.a)("loading grafs"),t.html('<i><small>loading graph <img src="/images/loading.gif"/></small></i>').show(),e.html('<i><small>loading graph <img src="/images/loading.gif"/></small></i>').show(),n.html('<i><small>loading graph <img src="/images/loading.gif"/></small></i>').show();var i="<h2>";r.a.get("/details/".concat(a,"&grafs=1&v=3"),(function(a){var o=a.split(i);o.length>=3&&(Object(r.a)("#activity-reviewsN").html(o[1]).parents(".activity-box").show(),Object(r.a)("#activity-forumN ").html(o[2]).parents(".activity-box").show()),6===o.length?(t.html(i+o[3]),e.html(i+o[4]),n.html(i+o[5])):(t.html("(graph data not available)"),e.html("(graph data not available)"),n.html("(graph data not available)"))})),V.setUpTopRegionsTable()}}},{key:"quick_down",value:function(t,e){var n="#".concat(t);if(Object(r.a)(".format-group.in").length)Object(r.a)(".format-group").slideDown(400),setTimeout((function(){Object(r.a)(".format-group.in").removeClass("in"),Object(r.a)(".download-button").html("DOWNLOAD OPTIONS")}),400),Object(r.a)(n).slideUp();else{var a=Object(r.a)(e).text(),i=Object(r.a)(n).parents(".format-group");Object(r.a)(".download-button").html(a.concat(" FILES")),i.addClass("in"),Object(r.a)(".format-group:not(.in)").slideUp(),Object(r.a)(n).slideDown()}return!1}},{key:"arg",value:function(t,e){for(var n=e&&""===location.search?location.href.slice(1).split("&"):location.search.slice(1).split("&"),r=0;r<n.length;r++)if(n[r].slice(0,n[r].indexOf("="))===t){var a=n[r].slice(n[r].indexOf("=")+1);return a.length>0?unescape(a):""}return""}},{key:"scrolled",value:function(){var e=Object(r.a)(window).scrollTop(),n=Object(r.a)(".more_search:visible");if(n.length){var a=n.offset().top+n.outerHeight()-Object(r.a)(window).height()-40;e>a&&(Object(s.a)("hit rock bottom > ",a),t.more_searching||Object(r.a)(".more_search:visible".concat(" > a")).get(0).click())}}},{key:"more_search",value:function(e,n,a){var i=t.selector();if(!1===i)return!1;var o=i.replace(/#ikind-/,""),c=Object(r.a)(i.concat(" .more_search")),u=i;if(void 0===t.page_map&&(t.page_map={}),void 0===t.page_map[u]&&(t.page_map[u]=a||1),t.page_map[u]<0)return!1;t.page_map[u]+=1;var l=t.page_map[u];c.find(".more-search-fetching").show(),t.more_searching=!0;var f=n+l,d=location.protocol.concat("//",location.host,f);return f+="&scroll=1",Object(s.a)("url: ",f),Object(s.a)("urlreplace",d),Object(s.a)("more_search(selector=",i,"sort=",o,"page=",l,"url=",f,")"),r.a.get(f,(function(e){if(e.length<100&&Object(r.a)(e).find("div.no-results"))return c.find(".more-search-fetching, a.btn").hide(),t.page_map[u]=-1,void(t.more_searching=!1);t.pushState&&void 0!==history.replaceState&&history.replaceState({},"",d);var n=Object(r.a)(i).attr("id");t.tilerPREV&&t.tilerPREV.unsourced&&t.tilerPREV.unsourced[n]&&delete t.tilerPREV.unsourced[n];var a=Object(r.a)(i.concat(" .results"));a.append(t.addNotes(t.addingNotesKind,e)),t.tiler(i),c.find(".more-search-fetching").hide(),t.more_searching=!1,t.parent_hover(a),Object(r.a)(i.concat(" img")).on("load",(function(){clearTimeout(t.more_search_throttler),t.more_search_throttler=setTimeout(t.tiler,1e3)})),"undefined"!=typeof archive_analytics&&archive_analytics.send_scroll_fetch_event(l)})),!1}},{key:"embed_codes_adjust",value:function(){Object(s.a)("showing embeds!");for(var t=0,e=["embedcodehere","embedcodehereWP"];t<e.length;t++){var n=e[t],a=Object(r.a)("#".concat(n));a.removeAttr("rows").css("height","");var i=a.text();Object(r.a)("body").prepend(Object(r.a)("<div/>").attr({id:"".concat(n,"Shadow"),class:"textarea-invert-readonly roundbox5"}).css({position:"absolute",visibility:"hidden",top:60,left:10,padding:"5px 15px 5px 15px",width:a.width(),"font-size":a.css("font-size")}).text(i));var o=Object(r.a)("#".concat(n,"Shadow")).outerHeight()+15;Object(s.a)(n,"bestie height",o,"for current width",a.width()),Object(r.a)("#".concat(n,"Shadow")).remove(),a.height(o)}}},{key:"modal_add",value:function(t,e){Object(r.a)(t).length&&Object(r.a)(t).remove();var n=t.replace(/#/,""),a=e.prepended_el,i=void 0===a?document.body:a;return Object(r.a)(i).prepend('\n<div id="'.concat(n,'" class="modal fade" role="dialog" aria-hidden="true">\n<div class="modal-dialog modal-lg">\n <div class="modal-content">\n <div class="modal-header ').concat(void 0!==e.headerClass?e.headerClass:"modal-header-std",'">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n <span class="iconochive-remove-circle"></span>\n </button>\n <h2 class="modal-title">\n ').concat(void 0===e.title?"Confirmed":e.title,'\n </h2>\n </div>\n <div id="').concat(n,'-body">\n ').concat(void 0===e.body?"":e.body,"\n </div>\n </div>\n</div>\n</div>")),Object(r.a)(t)}},{key:"isFavoriteSuccessful",value:function(t){return-1!==t.indexOf('<meta name="ia-favorite-success" content="1">')}},{key:"modal_go",value:function(e,n){var a=n,i=Object(r.a)(e);a.favorite&&(i.addClass("favorited"),a.center=!0,a.auto_close=!0,a.title="Favorited",a.body='<center><span style="font-size:100px;" class="iconochive-favorite"></span></center>',a.login=!0);var o=i.attr("data-target"),c=a.favorite?i.attr("data-href"):i.attr("href");if(a.ignore_lnk&&!a.add_modal||t.modal_add(o,a),a.shown&&Object(r.a)(o).on("shown.bs.modal",(function(){a.shown()})),a.follow_link_on_dismiss&&Object(r.a)(o).on("hidden.bs.modal",(function(){Object(s.a)("modal hidden, going to ",c,".."),Object(r.a)("body").removeClass("blurry"),location.href=c})),a.login&&null===r.a.cookie("logged-in-user")){if("https:"!==location.protocol)return location.href="https://archive.org/account/login",!1;var u="/account/login";return r.a.get(u,(function(n){var c=Object(r.a)(n).find(".container-ia > div").length?Object(r.a)(n).find(".container-ia > div").get(0):n;Object(r.a)(o).addClass("login-modal"),Object(r.a)(o.concat("-body")).html(c),Object(r.a)(o).modal("show");var s=Object(r.a)(o.concat("-body form:has(input[type=submit])"));if(s.length){i.removeClass("favorited");var l=Object(r.a)(".password_icon")[0];!0===navigator.cookieEnabled?(Object(r.a)(".cookie-warning").addClass("hidden"),Object(r.a)(".login-form :input").prop("disabled",!1),l.src="/images/eye-crossed.svg",l.alt="Show text",Object(r.a)(".password_icon").on("click",(function(){var t=Object(r.a)(".input-password")[0];"password"===t.type?(t.type="text",l.src="/images/eye.svg",l.alt="Hide text"):(t.type="password",l.src="/images/eye-crossed.svg",l.alt="Show text")})),Object(r.a)(".input-email, .input-password").on("focus",(function(){Object(r.a)(".password-error").html(""),Object(r.a)(".reset-password").show()}))):(Object(r.a)(".cookie-warning").removeClass("hidden"),Object(r.a)(".login-form :input").prop("disabled",!0)),function(t){var e=t.$form,n=t.url,r=t.selector,a=t.AJS,i=t.element,o=t.conf,c=function(t){null!==$.cookie("logged-in-user")?($(r).on("hidden.bs.modal",(function(){$(r).remove(),a.modal_go(i,M(M({},o),{},{postLogin:!0}))})),$(document.body).removeClass("blurry"),$(r).modal("hide")):"ok"!==t.status&&("bad_login"===t.status&&$(".reset-password").hide(),$(".password-error").html(t.message))},u=function(t){var e=t.responseJSON;$(".reset-password").hide(),e?$(".password-error").html(e.message):$(".password-error").text("Whoops! Something didn't work quite right. Please try again in a bit.")};e.on("submit",(function(){var t={},r=c,a=u;return e.find("input").each((function(e,n){$(n).attr("name").length&&(t[$(n).attr("name")]=$(n).val())})),t.submit_by_js="true",e.find(".alert").remove(),$.ajax(n,{type:"POST",data:t,success:r,error:a}),!1}))}({$form:s,url:u,selector:o,AJS:t,element:e,conf:a})}})),!1}return a.auto_remove&&(a.auto_close=!0,Object(r.a)(o).on("hidden.bs.modal",(function(){Object(r.a)(o).remove(),Object(r.a)("body").removeClass("blurry")}))),a.ignore_lnk?Object(r.a)(o).modal("show"):(r.a.get(c,(function(e){if(a.favorite)if("undefined"!=typeof archive_analytics&&archive_analytics.send_ping({kind:"event",ec:"page_action",ea:"favorite",el:location.pathname,cache_bust:Math.random()}),t.isFavoriteSuccessful(e))i.attr({"data-original-title":"Unfavorite"}),w.toggle_favorite_icon(i),setTimeout((function(){a.postLogin?location.reload(!0):Object(r.a)(o).modal("hide")}),t.modalInterval);else{i.removeClass("favorited");var n=Object(r.a)(o);n.find(".modal-title").html("Failed"),n.find("".concat(o,"-body")).html('\n <center>\n <p class="favorite-failure-message">\n There was an error adding the favorite. If the problem persists, please contact support.\n </p>\n </center>\n ')}Object(r.a)(o).modal("show"),a.auto_close&&setTimeout((function(){return Object(r.a)(o).modal("hide")}),t.modalInterval)})),Object(r.a)(o).on("hidden.bs.modal",(function(){Object(r.a)(o).remove()}))),a.center&&Object(r.a)(o.concat(" .modal-dialog")).center(),a.auto_close&&a.ignore_lnk&&setTimeout((function(){return Object(r.a)(o).modal("hide")}),t.modalInterval),!1}},{key:"check1",value:function(t,e){t.checked&&((e?Object(r.a)(e):Object(r.a)(t).parents("form")).find("input[type=checkbox]").attr("checked",!1),t.checked=!0)}},{key:"suffixFmt",value:function(t,e){return e.min>=0&&e.max<=5?Math.round(10*t,1)/10:t>=1e6?(t/1e6).toFixed(0).concat(" M"):t>=1e3?(t/1e3).toFixed(0).concat(" K"):t.toFixed(0)}},{key:"suffixFmtPercent",value:function(e,n){return t.suffixFmt(e,n).concat("%")}},{key:"pluralize",value:function(t,e,n){return 1===t?e:n}},{key:"viewMessage",value:function(e,n,r){var a=n.length,i="<table><tr>";i+='<th class="tt-date" rowspan="'.concat(a,'">').concat(e[2]," ").concat(e[3],"</th>"),i+='<td class="tt-number">'.concat(Object(E.a)(n[0]),"</td>"),i+="<td>".concat(t.pluralize(n[0],"View","Views")," ").concat(r[0],"</td></tr>");for(var o=1;o<a;o++)i+='<tr><td class="tt-number">'.concat(Object(E.a)(n[o]),"</td>"),i+="<td>".concat(t.pluralize(n[o],"View","Views")," ").concat(r[o],"</td></tr>");return i+="<table>"}},{key:"statsTooltip",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;switch(e){case"main":n=function(t){var e=t.y,n=t.t;return"".concat(Object(E.a)(e)," total items in <strong>").concat(n[2]," ").concat(n[3],"</strong>")};break;case"item":n=function(e){var n=e.t,r=e.item;return"<strong>".concat(n[2]," ").concat(n[3],"</strong>: ").concat(Object(E.a)(r.datapoint[1])," ").concat(t.pluralize(r.datapoint[1],"Item","Items"))};break;case"download":n=function(e){var n=e.t,r=e.item;return"<strong>".concat(n[2]," ").concat(n[3],"</strong>: ").concat(Object(E.a)(r.datapoint[1])," ").concat(t.pluralize(r.datapoint[1],"Download","Downloads"))};break;case"view":n=function(e){var n=e.t,r=e.values,a=e.labels;return t.viewMessage(n,r,a)}}var a=function(t,e,a,i,o){var c=new Date(t-r).toUTCString().split(" ");return'<span style="white-space: nowrap;">'.concat(n({x:t,y:e,item:a,t:c,values:i,labels:o}),"</span>")};return a}},{key:"plotter",value:function(e){if(void 0===t.plotters&&(t.plotters=[]),e)t.plotters.push(e),e();else{Object(s.a)("plotter() resize/orient change",t.plotters.length,"graphs to resize");for(var n=0;n<t.plotters.length;n++)t.plotters[n]()}}},{key:"plot",value:function(t,e,n,a,i){var o,c=e;c.xaxis||(c.xaxis={mode:"time",color:c.dark?"#ccc":"#545454"}),c.yaxis||(c.yaxis={color:c.dark?"#ccc":"#545454"}),o=i&&c.barWidth?1*c.barWidth:c.barWidth?86400*c.barWidth*1e3:86400*(c.dayBarsNoPoints?1:7)*1e3,c.color||(c.color="#385C74"),c.stack?c.series={stack:!0,bars:{show:!0,barWidth:o,fill:!0},legend:{show:!0}}:c.series={bars:{show:!0,barWidth:o,fill:.6,color:c.color},color:c.color,points:{show:!c.dayBarsNoPoints}},void 0===c.grid&&(c.grid={borderColor:c.dark?"#333":"#aaa",hoverable:!0}),c.dark&&(c.grid.backgroundColor="#002b36"),c.tip||(c.tip={}),c.tip.id||(c.tip.id=t),void 0===window.GraphPriorIndex&&(window.GraphPriorIndex={});var u=[];c.series.stack?u=a:(u=i?a:void 0===a.data?[{data:a}]:[a],c.dayBarsNoPoints&&!c.noLabel&&(u[0].label=t));var l="#".concat(t),f=r.a.plot(Object(r.a)(l),u,c);n&&Object(r.a)(l).bind("plothover",(function(t,e,a){if(!a)return window.GraphPriorDatapoint=[0,0,0],void Object(r.a)("#gtip").remove();if(window.GraphPriorDatapoint!==a.datapoint){window.GraphPriorDatapoint=a.datapoint,Object(r.a)("#gtip").remove();var i=[],o=[];if(c.stack)for(var u=f.getData(),d=0;d<u.length;d++){var p=u[d];o[d]=p.label;for(var h=0;h<p.data.length;h++)if(p.data[h][0]===a.datapoint[0]){i[d]=p.data[h][1];break}}var b=n(a.datapoint[0],a.datapoint[1],a,i,o),v=Object(r.a)(l),m=v.offset(),g=c.tip.pegTo;g||(g=e.pageX-m.left>v.width()/2?"right":"left");var y="right"===g?v.width()-(e.pageX-m.left-20):e.pageX-m.left+20;Object(s.a)(g,y),Object(r.a)("#".concat(c.tip.id)).append('<div id="gtip" class="roundbox5 grafs-tooltip" style="top:'.concat(e.pageY-m.top,"px; ").concat(g,":").concat(y,'px">').concat(b,"</div>")).fadeIn(200)}}))}},{key:"welcome_recolor",value:function(e){if("undefined"!=typeof ColorThief&&e.length&&!t.welcome_recolored){t.welcome_recolored=!0;var n=Object(r.a)(e)[0];Object(s.a)("welcome_recolor",n.src);var a=(new ColorThief).getPalette(n,5);if(Object(s.a)(a),a){var i=a[0];if(i){Object(s.a)(i);var o=Math.round(Object(r.a)(i).map((function(t,e){return e})).toArray().reduce((function(t,e){return t+e}))/i.length),c=o>=128?"black":"white";Object(s.a)("avgVal",o),Object(r.a)(".welcome").css({color:c,"background-color":"rgb(".concat(i.join(","),")")}),Object(r.a)(".welcome .stealth:not(.tabby .stealth)").css({color:c})}}}}},{key:"makeMouseElementAccessible",value:function(t){Object(r.a)(t).attr("tabindex","0").on("keypress keydown",(function(t){if("click"!==t.type){var e=t.keyCode||t.which;-1!==[32,13].indexOf(e)&&Object(r.a)(this).click()}}))}},{key:"autocomplete",value:function(t,e,n){Object(r.a)(t).autocomplete({appendTo:"#autocompletee",minLength:0,source:function(t,n){n(r.a.ui.autocomplete.filter(e,t.term.split(/,\s*/).pop()))},focus:function(){return!1},select:function(t,e){if(n){var r=this.value.split(/,\s*/);r.pop(),r.push(e.item.value),r.push(""),this.value=r.join(", ")}else this.value=e.item.value;return!1}})}},{key:"addNotes",value:function(e,n){if("favorite"!==e&&"list"!==e)return n;if(!n&&Object(r.a)("body").hasClass("editable")&&(t.addingNotesKind=e),!t.addingNotesKind)return n;if(t.addNoteHTM=Object(r.a)('\n<div class="note">\n <span class="edit">\n <a href="#" onclick="return AJS.editNote(this)">Add a Note</a>\n </span>\n</div>'),Object(s.a)("addNotes"),n){var a=Object(r.a)("<div>".concat(n,"</div>"));return a.find('.details-ia .C234:not(:has(".note"))').append(t.addNoteHTM),a.html()}return Object(r.a)('.details-ia .C234:not(:has(".note"))').append(t.addNoteHTM)}},{key:"editNote",value:function(t){var e=Object(r.a)(t);if(!e.parents(".details-ia").prev().attr("data-id"))return!1;var n=e.parents(".note"),a="";return"edit"===e.text()&&(a=(a=n.find("span:first").text()).replace(/</g,"<").replace(/>/g,">")),n.hide(),n.parent().append(Object(r.a)('\n<form class="form form-horizontal note" role="form" onsubmit="AJS.editedNote(this);return false">\n <div class="form-group">\n <div class="col-xs-2 col-md-1 col-lg-1">\n <b>Note:</b>\n </div>\n <div class="col-xs-10 col-md-6 col-lg-7">\n <textarea class="form-control" name="comments">'.concat(a,'</textarea>\n <div class="clearfix visible-xs-block"></div>\n </div>\n <div class="clearfix visible-xs-block"></div>\n <div class="col-xs-12 col-md-5 col-lg-4 btns">\n <button type="button" onclick="AJS.editedNote(this)" class="btn btn-success btn-xs">Save</button>\n <button type="button" onclick="AJS.editedNote(this)" class="btn btn-info btn-cancel btn-xs">Cancel</button>\n <button type="button" onclick="AJS.editedNote(this)" class="btn btn-danger btn-xs ').concat(a?"":"hidden",'">Remove</button>\n </div>\n </div>\n</form>'))),!1}},{key:"editedNote",value:function(e){var n=Object(r.a)(e),a=n.parents(".details-ia").prev().attr("data-id");if(a){n.is("form")&&(n=n.find('button:contains("Save")'));var i=n.text(),o=n.parents(".note"),c=o.prev();if("Save"===i||"Remove"===i){var u="Save"===i?o.find("textarea").val():"",l="/bookmarks.php?identifier=".concat(a,"&kind=",t.addingNotesKind,"&add_comment=",encodeURIComponent(u));return Object(s.a)("get ",l),void r.a.get(l,(function(){var e=u?'Note: "<span>'.concat(u.replace(/</g,"<").replace(/>/g,">"),'</span>"\n <span class="edit">(<a href="#" onclick="return AJS.editNote(this)">edit</a>)</span>'):t.addNoteHTM.html();c.html(e).show(),o.remove()}))}c.show(),o.remove()}}},{key:"thumbzilla",value:function(t){var e=Object(r.a)("body").hasClass("tv");e&&TV2.unplay("thumbzilla");var n="",a=function(){Object(r.a)("#opscreen1M").remove(),Object(r.a)("body").prepend(Object(r.a)("<div />").attr({id:"opscreen1M"})),Object(r.a)("<div/>").attr({id:"thumbzilla"}).html("<div>".concat(n,"</div>")).appendTo("#opscreen1M"),Object(r.a)("#opscreen1M").css("visibility","hidden").show();for(var t=Object(r.a)(window).height()+(A.a?60:0),e=720;e>=10;e-=10){var a=Math.round(.6875*e);if(Object(s.a)("TRYING",e,"x",a),Object(r.a)("#thumbzilla img").css({width:e,height:a}),Object(r.a)("#thumbzilla img:last").offset().top+a<=t)break}Object(r.a)("#thumbzilla div").center(),Object(r.a)("#opscreen1M").hide().css("visibility","visible").fadeIn("slow").one("click.opscreen1M.nixer",(function(){return Object(r.a)("#opscreen1M").fadeOut("slow")}))};return e&&TV3?(Object(r.a)(TV3.thumbzillas).each((function(r,a){var i=parseInt(a,10);if(e){var o="/start/".concat(i,"/end/").concat(i+TV3.CLIP_SEC_MAX2);n+="<a onclick=\"$('#opscreen1M').fadeOut('slow'); TV2.seekURL('".concat(o,'\')" href="').concat(o,'">')}else{var c="/details/".concat(t,"&start=").concat(i);n+="<a onclick=\"$('#opscreen1M').fadeOut('slow'); return Play.seek(this)\" href=\"".concat(c,'">')}n+='<img src="/download/'.concat(t,"/").concat(t,".thumbs/").concat(t,"_").concat(a,'.jpg"/></a>')})),a()):r.a.getJSON("/metadata/".concat(t,"/files"),(function(e){var r,i=W(e.result);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.name.match(/\.thumbs\/(.*\.jpg)$/)&&(n+='\n <a href="/download/'.concat(t,"/").concat(o.name,'"><img src="/download/').concat(t,"/").concat(o.name,'"></a>\n '))}}catch(t){i.e(t)}finally{i.f()}n&&a()})),!1}},{key:"nav_tophat_wb_setup",value:function(){var t="https://web.archive.org",e="".concat(t,"/__wb/search/host?q="),n="".concat(t,"/__wb/search/anchor?q="),a="".concat(t,"/web/*/"),i="".concat(t,"/web/*/"),o=!1,c=Object(r.a)("#nav-wb-url"),u=c.parent("form");u.submit((function(t){return"undefined"==typeof archive_analytics||o||(archive_analytics.send_event("TopNav","WaybackSearchForm-Submit"),o=!0),function(t){0===t.indexOf("http://")||0===t.indexOf("https://")||t.match(/[\w.]{2,256}\.[a-z]{2,4}/gi)?document.location.href=a+t:document.location.href=i+encodeURIComponent(t)}(c.val()),t.preventDefault(),t.stopPropagation(),!1})),c.on("focus input paste",(function(){void 0===c.typeahead&&r.a.ajax({url:"/includes/build/npm/bootstrap-3-typeahead/bootstrap3-typeahead.min.js",dataType:"script",cache:!0}).done((function(){c.typeahead({source:function(t,a){return c.focus(),r.a.get(e+encodeURIComponent(t),(function(e){return void 0!==e.hosts&&e.hosts.length>0?a(e.hosts):void 0!==e.isUrl&&!0===e.isUrl&&void 0===e.excluded?a([{display_name:t}]):r.a.get(n+encodeURIComponent(t),(function(t){if(void 0!==t&&t.length>0)return a(t.slice(0,5))}))}))},matcher:function(){return!0},displayText:function(t){return t.display_name},autoSelect:!1,delay:400,fitToElement:!1,minLength:3,items:8}).change((function(){var t=c.typeahead("getActive");t&&t.display_name===c.val()&&u.submit()}))}))}))}},{key:"setUpSearchForms",value:function(){var t=Object(r.a)(document.body);function e(e){var n=Object(r.a)(e),a=n.find(".js-search-bar"),i=n.find(".js-search-options"),o=i.data("keepOpenWhenChanged"),c=!1;function u(t){!t||n[0].contains(t)||o&&c||Object(r.a)(t).parents(".ui-autocomplete").length||i.removeClass("is-open").attr("aria-expanded",!1)}n.length&&(n.on("submit",(function(t){var e=this.dataset.waybackMachineSearchUrl,n=Object(r.a)(this.elements),a=n.filter('[name="sin"]:checked'),i=n.filter('[name="search"]'),o=a.length?a[0].value:"",c=i.length?i[0].value:"";e&&"WEB"===o&&(t.preventDefault(),window.location=[e.replace(/\/$/,""),c].join("/"))})),i.hasClass("is-open")||(t.on("click",(function(t){u(t.target)})),n.on("change",(function(){c=!0})).on("focusout",(function(t){u(t.relatedTarget)})),a.on("focusin",(function(){i.addClass("is-open").attr("aria-expanded",!0)}))))}Object(r.a)(".js-search-form").each((function(t,n){return e(n)}))}},{key:"setUpBookReaderIframe",value:function(){var t=document.querySelector("#texty iframe");t&&t.hasAttribute("data-book-reader-sync-urls")&&window.addEventListener("message",(function(t){t.data&&"bookReaderFragmentChange"===t.data.type&&function(t){if("history"in window){var e,n,r,a=(e=window.location.pathname,n=t,r=/(\/((page|mode|search)\/[^/?$]+))+\/?(?=\?|$)/g,(e.match(r)?e.replace(r,"/".concat(n)):"".concat(e,"/").concat(n).replace(/\/+/g,"/"))+window.location.search+window.location.hash);window.history.replaceState({fragment:t},window.title,a)}}(t.data.fragment)}))}},{key:"setUpAccordions",value:function(){Array.from(document.querySelectorAll("[data-accordion]")).forEach((function(t){function e(e){var n,a;e.target.open&&(n=t.querySelectorAll("details"),a=e.target,Array.from(n).forEach((function(t){t!==a&&(t.open=!1)})),Object(r.a)("html, body").animate({scrollTop:Object(r.a)(e.target).offset().top},400))}Array.from(t.querySelectorAll("details")).forEach((function(t){t.addEventListener("toggle",e)})),t.setAttribute("data-accordion-ready","")}))}},{key:"advanced_search",value:function(e){if(!t.is_advanced_TV_search(e))return!0;t.adv||(t.adv={mapping:!1});var n=(new Date).toISOString().substr(0,10);r.a.ajaxSetup({cache:!0});var a="https://".concat(location.host,"/includes/");return r.a.when("undefined"!=typeof TVSearch||r.a.getScript(a.concat("build/js/tvsearch.min.js?",n)),t.adv.mapping||r.a.getJSON("/details/tv?mappings&output=json&".concat(n),(function(e){t.adv.mapping=e}))).then((function(){2===t.adv.mapping.length?TVSearch.proPick(t.adv.mapping,e):alert("failed to get network and program mappings!")})),!1}},{key:"is_advanced_TV_search",value:function(t){if("web.archive.org"===location.hostname)return!1;if(Object(r.a)(document.body).hasClass("top"))return!1;var e=Object(r.a)(t).parents("form");return!!e.find(".js-search-options input[value=TV]").is(":checked")&&e}},{key:"createTrackingImage",value:function(t){"undefined"!=typeof archive_analytics&&archive_analytics.send_ping_via_image({cache_bust:Math.random(),kind:"track_js",track_js_case:t})}}],(n=null)&&J(e.prototype,n),a&&J(e,a),t}();Object(r.a)((function(){Q.makeMouseElementAccessible(".accessible-link"),"undefined"!=typeof archive_analytics&&archive_analytics.set_up_event_tracking(),Q.nav_tophat_setup(),Q.nav_tophat_wb_setup(),Q.setUpSearchForms(),Q.setUpBookReaderIframe(),Q.setUpAccordions(),"undefined"!=typeof archive_setup&&Object(r.a)((function(){var t,e=W(archive_setup);try{for(e.s();!(t=e.n()).done;){(0,t.value)()}}catch(t){e.e(t)}finally{e.f()}})),Q.footer(),Q.createTrackingImage("external_executes"),Q.modalInterval=2e3,_(),x(Object(r.a)("[data-handler=dropdown]")),S.init(),q.setup()})),Q.tilebars=k.a.tilebars,Q.addCommas=E.a,window.AJS=Q},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=navigator.userAgent.indexOf("iPhone")>0||navigator.userAgent.indexOf("iPad")>0||navigator.userAgent.indexOf("iPod")>0},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.a=function(){var t=window.location.search.substring(1),e={};return t.length>0&&t.split("&").forEach((function(t){var n=r(t.split("="),2),a=n[0],i=n[1];e[a]=decodeURIComponent(i)})),e}},,function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",(function(){return a}));var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"LoadingMessage",value:function(t){var e=t.message;return'<small class="loading-message">'.concat(void 0===e?"Loading":e,"</small>")}},{key:"ErrorMessage",value:function(t){var e=t.errorMessage;return"<small>".concat(e,"</small>")}}],(n=null)&&r(e.prototype,n),a&&r(e,a),t}()},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",(function(){return a}));var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"tilebars",value:function(){$(".row .tilebars").find(".results").parents(".row").each((function(t,e){var n=!1;$(e).find(".results").each((function(t,e){$(e).show().css({visibility:"hidden"}),n||(n=$(e).offset()),$(e).offset().top!==n.top?$(e).hide():$(e).css({visibility:"visible"})}))}))}}],(n=null)&&r(e.prototype,n),a&&r(e,a),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;a(this,t),this.callback=e,this.threshhold=n,this.context=r,this.last=void 0,this.deferTimeout=void 0}var e,n,r;return e=t,(n=[{key:"execute",value:function(){var t=+new Date;this.last&&t<this.last+this.threshhold?(clearTimeout(this.deferTimeout),this.deferTimeout=setTimeout(this.executeCallback.bind(this),this.threshhold)):this.executeCallback.call(this)}},{key:"executeCallback",value:function(){this.last=+new Date,this.callback.apply(this.context)}}])&&i(e.prototype,n),r&&i(e,r),t}();function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.identifier=e,this.$targetElement=n,this.callback=a,this.$window=Object(r.a)(window),this.throttler=new o(this.scrollListener,100,this)}var e,n,a;return e=t,(n=[{key:"startListener",value:function(){this.$window.on("scroll.".concat(this.identifier),this.throttledListener.bind(this)),this.scrollListener()}},{key:"throttledListener",value:function(){return this.throttler.execute()}},{key:"getTargetScrollOffset",value:function(){return this.$targetElement.offset().top-this.$window.height()/2}},{key:"scrollListener",value:function(){var t=this.getTargetScrollOffset();this.$window.scrollTop()+this.$window.height()>=t&&(this.$window.off(".".concat(this.identifier)),this.callback())}}])&&c(e.prototype,n),a&&c(e,a),t}()},,function(t,e,n){"use strict";var r=n(0),a=n(2),i=n(15);r.a.fn.center=function(){var t,e,n=Object(r.a)(this).innerHeight();if(Object(a.a)("myheight",n),Object(a.a)("mywidth",this.width()),Object(a.a)("w.height",Object(r.a)(window).height(),"w.width",Object(r.a)(window).width(),"w.scrollTop",Object(r.a)(window).scrollTop(),"w.scrollLeft",Object(r.a)(window).scrollLeft()),i.a){var o=window.innerWidth,c=window.innerHeight;Object(a.a)("vpH",c),Object(a.a)("vpW",o),t=(c-n)/2+Object(r.a)(window).scrollTop(),e=(o-this.width())/2+Object(r.a)(window).scrollLeft()}else t=(Object(r.a)(window).height()-n)/2,e=(Object(r.a)(window).width()-this.width())/2;return t=Math.max(20,t),e=Math.max(20,e),this.css({position:i.a?"absolute":"fixed",display:"block",top:t,left:e}),this}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(18),i=n(22),o=n(23);function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,u;return e=t,u=[{key:"setup",value:function(){var e=Object(r.a)("#js-related");if(e.length){var n=Object(r.a)("#also-found");this.scrollProximityHandler=new o.a("related_items",n,(function(){if(!e.text())return n.find(".tilebars").show(),e.html(a.a.LoadingMessage({message:"Fetching items"})),t.doWhenScrolledToRelatedSection()})),this.scrollProximityHandler.startListener()}}},{key:"doWhenScrolledToRelatedSection",value:function(){var e=Object(r.a)("#also-found").data("identifier"),n=Object(r.a)("#js-related");return t.getRelatedItems(e).then((function(t){n.html(t),i.a.tilebars()})).catch((function(t){Object(r.a)("#playplayset").hide(),n.html(a.a.ErrorMessage({errorMessage:t.message})).show()}))}},{key:"getRelatedItems",value:function(t,e){return new Promise((function(n,a){var i="/details/".concat(encodeURIComponent(t),"?RelatedItemsGet=").concat(e?"json":1);r.a.get(i,(function(t){""===t&&a(new Error("No similar items found.")),n(t)})).error((function(){a(new Error("Temporarily unable to access similar items. Please try again later."))}))}))}}],(n=null)&&c(e.prototype,n),u&&c(e,u),t}();Object(r.a)((function(){return u.setup()}))},,,function(t,e){var n,r,a=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,s=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!l){var t=c(d);l=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function b(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new h(t,e)),1!==s.length||l||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=b,a.addListener=b,a.once=b,a.off=b,a.removeListener=b,a.removeAllListeners=b,a.emit=b,a.prependListener=b,a.prependOnceListener=b,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),a=n(2);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,o=[{key:"params",value:function(t,e){var n={height:e,width:t,scrollbars:"yes",resizable:"yes",toolbar:"no",directories:"no",location:"yes",menubar:"no",status:"yes"};return Object.keys(n).filter((function(t){return n[t]})).reduce((function(t,e){return t.concat("".concat(e,"=").concat(n[e]))}),[]).join(",")}},{key:"renderPopupLink",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.linkText,r=e.href,a=e.height,i=e.width,o=e.title;return'\n <a href="'.concat(r,'" title="').concat(o,'"\n onclick="window.open(\'').concat(r,"', 'popup', '").concat(t.params(i,a),"'); return false\"\n >").concat(n,"</a>")}},{key:"setupPopupLink",value:function(){Object(a.a)("popup setup"),Object(r.a)(document.body).off("click.PopupLink").on("click.PopupLink","[data-".concat("popup-link","]"),(function(e){e.preventDefault();var n=Object(r.a)(e.currentTarget),a=n.data("popup-link-width")||500,i=n.data("popup-link-height")||500;window.open(e.currentTarget.href,"popup",t.params(a,i))}))}}],(n=null)&&i(e.prototype,n),o&&i(e,o),t}();Object(r.a)(o.setupPopupLink)},function(t,e,n){(function(t){
|
|
/*!
|
|
JW Player version 8.8.2
|
|
Copyright (c) 2019, JW Player, All Rights Reserved
|
|
https://github.com/jwplayer/jwplayer/blob/v8.8.2/README.md
|
|
|
|
This source code and its use and distribution is subject to the terms and conditions of the applicable license agreement.
|
|
https://www.jwplayer.com/tos/
|
|
|
|
This product includes portions of other software. For the full text of licenses, see below:
|
|
|
|
JW Player Third Party Software Notices and/or Additional Terms and Conditions
|
|
|
|
**************************************************************************************************
|
|
The following software is used under Apache License 2.0
|
|
**************************************************************************************************
|
|
|
|
vtt.js v0.13.0
|
|
Copyright (c) 2019 Mozilla (http://mozilla.org)
|
|
https://github.com/mozilla/vtt.js/blob/v0.13.0/LICENSE
|
|
|
|
* * *
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
**************************************************************************************************
|
|
The following software is used under MIT license
|
|
**************************************************************************************************
|
|
|
|
Underscore.js v1.6.0
|
|
Copyright (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative
|
|
https://github.com/jashkenas/underscore/blob/1.6.0/LICENSE
|
|
|
|
Backbone backbone.events.js v1.1.2
|
|
Copyright (c) 2010-2014 Jeremy Ashkenas, DocumentCloud
|
|
https://github.com/jashkenas/backbone/blob/1.1.2/LICENSE
|
|
|
|
Promise Polyfill v7.1.1
|
|
Copyright (c) 2014 Taylor Hakes and Forbes Lindesay
|
|
https://github.com/taylorhakes/promise-polyfill/blob/v7.1.1/LICENSE
|
|
|
|
can-autoplay.js v3.0.0
|
|
Copyright (c) 2017 video-dev
|
|
https://github.com/video-dev/can-autoplay/blob/v3.0.0/LICENSE
|
|
|
|
* * *
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
**************************************************************************************************
|
|
The following software is used under W3C license
|
|
**************************************************************************************************
|
|
|
|
Intersection Observer v0.5.0
|
|
Copyright (c) 2016 Google Inc. (http://google.com)
|
|
https://github.com/w3c/IntersectionObserver/blob/v0.5.0/LICENSE.md
|
|
|
|
* * *
|
|
|
|
W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE
|
|
Status: This license takes effect 13 May, 2015.
|
|
|
|
This work is being provided by the copyright holders under the following license.
|
|
|
|
License
|
|
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
|
|
|
|
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
|
|
|
|
The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
|
|
|
|
Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
|
|
|
|
Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."
|
|
|
|
Disclaimers
|
|
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
|
|
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
|
|
|
|
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.
|
|
*/
|
|
window.jwplayer=function(t){function e(e){for(var n,a,i=e[0],o=e[1],c=0,s=[];c<i.length;c++)a=i[c],r[a]&&s.push(r[a][0]),r[a]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(u&&u(e);s.length;)s.shift()()}var n={},r={0:0};function a(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var i=new Promise((function(e,a){n=r[t]=[e,a]}));e.push(n[2]=i);var o,c=document.createElement("script");c.charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.src=function(t){return a.p+""+({1:"jwplayer.controls",2:"jwplayer.core",3:"jwplayer.core.controls",4:"jwplayer.core.controls.html5",5:"jwplayer.core.controls.polyfills",6:"jwplayer.core.controls.polyfills.html5",7:"polyfills.intersection-observer",8:"polyfills.webvtt",9:"provider.html5",10:"vttparser"}[t]||t)+".js"}(t),o=function(e){c.onerror=c.onload=null,clearTimeout(u);var n=r[t];if(0!==n){if(n){var a=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src,o=new Error("Loading chunk "+t+" failed.\n("+a+": "+i+")");o.type=a,o.request=i,n[1](o)}r[t]=void 0}};var u=setTimeout((function(){o({type:"timeout",target:c})}),12e4);c.onerror=c.onload=o,document.head.appendChild(c)}return Promise.all(e)},a.m=t,a.c=n,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a.oe=function(t){throw console.error(t),t};var i=window.webpackJsonpjwplayer=window.webpackJsonpjwplayer||[],o=i.push.bind(i);i.push=e,i=i.slice();for(var c=0;c<i.length;c++)e(i[c]);var u=o;return a(a.s=50)}([function(t,e,n){"use strict";n.d(e,"g",(function(){return k})),n.d(e,"w",(function(){return x})),n.d(e,"j",(function(){return E})),n.d(e,"i",(function(){return I})),n.d(e,"a",(function(){return F})),n.d(e,"B",(function(){return D})),n.d(e,"C",(function(){return W})),n.d(e,"c",(function(){return U})),n.d(e,"k",(function(){return X})),n.d(e,"f",(function(){return G})),n.d(e,"m",(function(){return J})),n.d(e,"b",(function(){return Y})),n.d(e,"y",(function(){return tt})),n.d(e,"D",(function(){return rt})),n.d(e,"n",(function(){return ot})),n.d(e,"e",(function(){return ct})),n.d(e,"h",(function(){return ut})),n.d(e,"z",(function(){return st})),n.d(e,"q",(function(){return bt})),n.d(e,"s",(function(){return vt})),n.d(e,"t",(function(){return mt})),n.d(e,"p",(function(){return gt})),n.d(e,"r",(function(){return yt})),n.d(e,"o",(function(){return jt})),n.d(e,"u",(function(){return Ot})),n.d(e,"l",(function(){return kt})),n.d(e,"A",(function(){return _t})),n.d(e,"x",(function(){return xt})),n.d(e,"v",(function(){return Tt}));var r=n(14),a={},i=Array.prototype,o=Object.prototype,c=Function.prototype,u=i.slice,s=i.concat,l=o.toString,f=o.hasOwnProperty,d=i.map,p=i.reduce,h=i.forEach,b=i.filter,v=i.every,m=i.some,g=i.indexOf,y=Array.isArray,j=Object.keys,O=c.bind,w=window.isFinite,k=function(t,e,n){var r,i;if(null==t)return t;if(h&&t.forEach===h)t.forEach(e,n);else if(t.length===+t.length){for(r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t)===a)return}else{var o=at(t);for(r=0,i=o.length;r<i;r++)if(e.call(n,t[o[r]],o[r],t)===a)return}return t},_=k,x=function(t,e,n){var r=[];return null==t?r:d&&t.map===d?t.map(e,n):(k(t,(function(t,a,i){r.push(e.call(n,t,a,i))})),r)},C=x,T=function(t,e,n,r){var a=arguments.length>2;if(null==t&&(t=[]),p&&t.reduce===p)return r&&(e=Y(e,r)),a?t.reduce(e,n):t.reduce(e);if(k(t,(function(t,i,o){a?n=e.call(r,n,t,i,o):(n=t,a=!0)})),!a)throw new TypeError("Reduce of empty array with no initial value");return n},S=T,P=T,E=function(t,e,n){var r;return F(t,(function(t,a,i){if(e.call(n,t,a,i))return r=t,!0})),r},A=E,I=function(t,e,n){var r=[];return null==t?r:b&&t.filter===b?t.filter(e,n):(k(t,(function(t,a,i){e.call(n,t,a,i)&&r.push(t)})),r)},R=I,M=function(t,e,n){e||(e=kt);var r=!0;return null==t?r:v&&t.every===v?t.every(e,n):(k(t,(function(t,i,o){if(!(r=r&&e.call(n,t,i,o)))return a})),!!r)},L=M,F=function(t,e,n){e||(e=kt);var r=!1;return null==t?r:m&&t.some===m?t.some(e,n):(k(t,(function(t,i,o){if(r||(r=e.call(n,t,i,o)))return a})),!!r)},N=F,D=function(t){return null==t?0:t.length===+t.length?t.length:at(t).length},z=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},V=function(t){return null==t?kt:bt(t)?t:_t(t)},$=function(t){return function(e,n,r){var a={};return n=V(n),k(e,(function(i,o){var c=n.call(r,i,o,e);t(a,c,i)})),a}},B=$((function(t,e,n){wt(t,e)?t[e].push(n):t[e]=[n]})),q=$((function(t,e,n){t[e]=n})),W=function(t,e,n,r){for(var a=(n=V(n)).call(r,e),i=0,o=t.length;i<o;){var c=i+o>>>1;n.call(r,t[c])<a?i=c+1:o=c}return i},U=function(t,e){return null!=t&&(t.length!==+t.length&&(t=it(t)),J(t,e)>=0)},H=U,X=function(t,e){return E(t,xt(e))},G=function(t){var e=s.apply(i,u.call(arguments,1));return I(t,(function(t){return!U(e,t)}))},J=function(t,e,n){if(null==t)return-1;var r=0,a=t.length;if(n){if("number"!=typeof n)return t[r=W(t,e)]===e?r:-1;r=n<0?Math.max(0,a+n):n}if(g&&t.indexOf===g)return t.indexOf(e,n);for(;r<a;r++)if(t[r]===e)return r;return-1},Q=function(){},Y=function(t,e){var n,r;if(O&&t.bind===O)return O.apply(t,u.call(arguments,1));if(!bt(t))throw new TypeError;return n=u.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(u.call(arguments)));Q.prototype=t.prototype;var a=new Q;Q.prototype=null;var i=t.apply(a,n.concat(u.call(arguments)));return Object(i)===i?i:a}},K=function(t){var e=u.call(arguments,1);return function(){for(var n=0,r=e.slice(),a=0,i=r.length;a<i;a++)wt(r[a],"partial")&&(r[a]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return t.apply(this,r)}},Z=K(z,2),tt=function(t,e){var n={};return e||(e=kt),function(){var r=e.apply(this,arguments);return wt(n,r)?n[r]:n[r]=t.apply(this,arguments)}},et=function(t,e){var n=u.call(arguments,2);return setTimeout((function(){return t.apply(null,n)}),e)},nt=K(et,{partial:K},1),rt=function(t,e,n){var r,a,i,o=null,c=0;n||(n={});var u=function(){c=!1===n.leading?0:Ct(),o=null,i=t.apply(r,a),r=a=null};return function(){c||!1!==n.leading||(c=Ct);var s=e-(Ct-c);return r=this,a=arguments,s<=0?(clearTimeout(o),o=null,c=Ct,i=t.apply(r,a),r=a=null):o||!1===n.trailing||(o=setTimeout(u,s)),i}},at=function(t){if(!ft(t))return[];if(j)return j(t);var e=[];for(var n in t)wt(t,n)&&e.push(n);return e},it=function(t){for(var e=at(t),n=at.length,r=Array(n),a=0;a<n;a++)r[a]=t[e[a]];return r},ot=function(t){for(var e={},n=at(t),r=0,a=n.length;r<a;r++)e[t[n[r]]]=n[r];return e},ct=function(t){return k(u.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t},ut=Object.assign||function(t){return k(u.call(arguments,1),(function(e){if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t},st=function(t){var e={},n=s.apply(i,u.call(arguments,1));return k(n,(function(n){n in t&&(e[n]=t[n])})),e},lt=y||function(t){return"[object Array]"==l.call(t)},ft=function(t){return t===Object(t)},dt=[];k(["Function","String","Number","Date","RegExp"],(function(t){dt[t]=function(e){return l.call(e)=="[object "+t+"]"}})),dt.Function=function(t){return"function"==typeof t};var pt=dt.Date,ht=dt.RegExp,bt=dt.Function,vt=dt.Number,mt=dt.String,gt=function(t){return w(t)&&!yt(parseFloat(t))},yt=function(t){return vt(t)&&t!=+t},jt=function(t){return!0===t||!1===t||"[object Boolean]"==l.call(t)},Ot=function(t){return void 0===t},wt=function(t,e){return f.call(t,e)},kt=function(t){return t},_t=function(t){return function(e){return e[t]}},xt=function(t){return function(e){if(e===t)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0}},Ct=r.a,Tt=function(t){return vt(t)&&!yt(t)};e.d={after:function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},all:M,any:F,before:z,bind:Y,clone:function(t){return ft(t)?lt(t)?t.slice():ut({},t):t},collect:C,compact:function(t){return I(t,kt)},constant:function(t){return function(){return t}},contains:U,defaults:ct,defer:nt,delay:et,detect:A,difference:G,each:k,every:L,extend:ut,filter:I,find:E,findWhere:X,foldl:S,forEach:_,groupBy:B,has:wt,identity:kt,include:H,indexBy:q,indexOf:J,inject:P,invert:ot,isArray:lt,isBoolean:jt,isDate:pt,isFinite:gt,isFunction:bt,isNaN:yt,isNull:function(t){return null===t},isNumber:vt,isObject:ft,isRegExp:ht,isString:mt,isUndefined:Ot,isValidNumber:Tt,keys:at,last:function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:u.call(t,Math.max(t.length-e,0))},map:x,matches:xt,max:function(t,e,n){if(!e&<(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var r=-1/0,a=-1/0;return k(t,(function(t,i,o){var c=e?e.call(n,t,i,o):t;c>a&&(r=t,a=c)})),r},memoize:tt,now:Ct,omit:function(t){var e={},n=s.apply(i,u.call(arguments,1));for(var r in t)U(n,r)||(e[r]=t[r]);return e},once:Z,partial:K,pick:st,pluck:function(t,e){return x(t,_t(e))},property:_t,propertyOf:function(t){return null==t?function(){}:function(e){return t[e]}},reduce:T,reject:function(t,e,n){return I(t,(function(t,r,a){return!e.call(n,t,r,a)}),n)},result:function(t,e){if(null!=t){var n=t[e];return bt(n)?n.call(t):n}},select:R,size:D,some:N,sortedIndex:W,throttle:rt,where:function(t,e){return I(t,xt(e))},without:function(t){return G(t,u.call(arguments,1))}}},function(t,e,n){"use strict";n.d(e,"t",(function(){return i})),n.d(e,"s",(function(){return o})),n.d(e,"r",(function(){return c})),n.d(e,"o",(function(){return u})),n.d(e,"p",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"q",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"e",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"i",(function(){return j})),n.d(e,"j",(function(){return O})),n.d(e,"l",(function(){return w})),n.d(e,"m",(function(){return k})),n.d(e,"n",(function(){return _})),n.d(e,"v",(function(){return x})),n.d(e,"u",(function(){return C})),n.d(e,"w",(function(){return T}));var r=n(0);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=1e5,o=100001,c=100002,u=101e3,s=102e3,l=200001,f=202e3,d=104e3,p=203e3,h=203640,b=204e3,v=306e3,m=308e3,g=308640,y="cantPlayVideo",j="badConnection",O="cantLoadPlayer",w="liveStreamDown",k="technicalError",_=function(){function t(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.code=Object(r.v)(n)?n:0,this.sourceError=a,e&&(this.key=e)}var e,n;return e=t,n=[{key:"logMessage",value:function(t){var e=t%1e3,n=Math.floor((t-e)/1e3),r=t;return e>=400&&e<600&&(r="".concat(n,"400-").concat(n,"599")),"JW Player ".concat(t>299999&&t<4e5?"Warning":"Error"," ").concat(t,". For more information see https://developer.jwplayer.com/jw-player/docs/developer-guide/api/errors-reference#").concat(r)}}],null&&a(e.prototype,null),n&&a(e,n),t}();function x(t,e,n){return n instanceof _&&n.code?n:new _(t,e,n)}function C(t,e){var n=x(k,e,t);return n.code=(t&&t.code||0)+e,n}function T(t){var e=t.name,n=t.message;switch(e){case"AbortError":return/pause/.test(n)?303213:/load/.test(n)?303212:303210;case"NotAllowedError":return 303220;case"NotSupportedError":return 303230;default:return 303200}}},function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"i",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"g",(function(){return p}));var r=n(0),a=window.parseFloat;function i(t){return t.replace(/^\s+|\s+$/g,"")}function o(t,e,n){for(t=""+t,n=n||"0";t.length<e;)t=n+t;return t}function c(t,e){for(var n=t.attributes,r=0;r<n.length;r++)if(n[r].name&&n[r].name.toLowerCase()===e.toLowerCase())return n[r].value.toString();return""}function u(t){if(!t||"rtmp"===t.substr(0,4))return"";var e=/[(,]format=(m3u8|mpd)-/i.exec(t);return e?e[1]:(t=t.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?t.substr(t.lastIndexOf(".")+1,t.length).toLowerCase():void 0}function s(t){var e=(t/60|0)%60,n=t%60;return o(t/3600|0,2)+":"+o(e,2)+":"+o(n.toFixed(3),6)}function l(t,e){if(!t)return 0;if(Object(r.v)(t))return t;var n=t.replace(",","."),i=n.slice(-1),o=n.split(":"),c=o.length,u=0;if("s"===i)u=a(n);else if("m"===i)u=60*a(n);else if("h"===i)u=3600*a(n);else if(c>1){var s=c-1;4===c&&(e&&(u=a(o[s])/e),s-=1),u+=a(o[s]),u+=60*a(o[s-1]),c>=3&&(u+=3600*a(o[s-2]))}else u=a(n);return Object(r.v)(u)?u:0}function f(t,e,n){if(Object(r.t)(t)&&"%"===t.slice(-1)){var i=a(t);return e&&Object(r.v)(e)&&Object(r.v)(i)?e*i/100:null}return l(t,n)}function d(t,e){return t.map((function(t){return e+t}))}function p(t,e){return t.map((function(t){return t+e}))}},function(t,e,n){"use strict";n.d(e,"ib",(function(){return r})),n.d(e,"lb",(function(){return a})),n.d(e,"jb",(function(){return i})),n.d(e,"nb",(function(){return o})),n.d(e,"ob",(function(){return c})),n.d(e,"kb",(function(){return u})),n.d(e,"mb",(function(){return s})),n.d(e,"pb",(function(){return l})),n.d(e,"s",(function(){return f})),n.d(e,"u",(function(){return d})),n.d(e,"t",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"q",(function(){return b})),n.d(e,"qb",(function(){return v})),n.d(e,"r",(function(){return m})),n.d(e,"Y",(function(){return g})),n.d(e,"V",(function(){return y})),n.d(e,"v",(function(){return j})),n.d(e,"X",(function(){return O})),n.d(e,"w",(function(){return w})),n.d(e,"sb",(function(){return k})),n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return C})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return S})),n.d(e,"h",(function(){return P})),n.d(e,"F",(function(){return E})),n.d(e,"fb",(function(){return A})),n.d(e,"P",(function(){return I})),n.d(e,"C",(function(){return R})),n.d(e,"B",(function(){return M})),n.d(e,"E",(function(){return L})),n.d(e,"p",(function(){return F})),n.d(e,"bb",(function(){return N})),n.d(e,"m",(function(){return D})),n.d(e,"G",(function(){return z})),n.d(e,"H",(function(){return V})),n.d(e,"M",(function(){return $})),n.d(e,"N",(function(){return B})),n.d(e,"Q",(function(){return q})),n.d(e,"hb",(function(){return W})),n.d(e,"ab",(function(){return U})),n.d(e,"D",(function(){return H})),n.d(e,"R",(function(){return X})),n.d(e,"O",(function(){return G})),n.d(e,"S",(function(){return J})),n.d(e,"U",(function(){return Q})),n.d(e,"L",(function(){return Y})),n.d(e,"K",(function(){return K})),n.d(e,"I",(function(){return Z})),n.d(e,"J",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"o",(function(){return nt})),n.d(e,"y",(function(){return rt})),n.d(e,"gb",(function(){return at})),n.d(e,"cb",(function(){return it})),n.d(e,"db",(function(){return ot})),n.d(e,"f",(function(){return ct})),n.d(e,"g",(function(){return ut})),n.d(e,"Z",(function(){return st})),n.d(e,"A",(function(){return lt})),n.d(e,"l",(function(){return ft})),n.d(e,"k",(function(){return dt})),n.d(e,"eb",(function(){return pt})),n.d(e,"rb",(function(){return ht})),n.d(e,"z",(function(){return bt})),n.d(e,"j",(function(){return vt})),n.d(e,"W",(function(){return mt})),n.d(e,"i",(function(){return gt})),n.d(e,"x",(function(){return yt}));var r="buffering",a="idle",i="complete",o="paused",c="playing",u="error",s="loading",l="stalled",f="drag",d="dragStart",p="dragEnd",h="click",b="doubleClick",v="tap",m="doubleTap",g="over",y="move",j="enter",O="out",w=u,k="warning",_="adClick",x="adPause",C="adPlay",T="adSkipped",S="adTime",P="autostartNotAllowed",E=i,A="ready",I="seek",R="beforePlay",M="beforeComplete",L="bufferFull",F="displayClick",N="playlistComplete",D="cast",z="mediaError",V="firstFrame",$="playAttempt",B="playAttemptFailed",q="seeked",W="setupError",U="state",H="bufferChange",X="time",G="ratechange",J="mediaType",Q="volume",Y="mute",K="meta",Z="levels",tt="levelsChanged",et="visualQuality",nt="controls",rt="fullscreen",at="resize",it="playlistItem",ot="playlist",ct="audioTracks",ut="audioTrackChanged",st="playbackRateChanged",lt="logoClick",ft="captionsList",dt="captionsChanged",pt="providerFirstFrame",ht="userAction",bt="instreamClick",vt="breakpoint",mt="fullscreenchange",gt="bandwidthEstimate",yt="float"},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c}));var r=n(2);function a(t){var e="";return t&&(t.localName?e=t.localName:t.baseName&&(e=t.baseName)),e}function i(t){var e="";return t&&(t.textContent?e=Object(r.h)(t.textContent):t.text&&(e=Object(r.h)(t.text))),e}function o(t,e){return t.childNodes[e]}function c(t){return t.childNodes?t.childNodes.length:0}},function(t,e,n){"use strict";n.d(e,"h",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"p",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"d",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"q",(function(){return m})),n.d(e,"j",(function(){return g})),n.d(e,"c",(function(){return y})),n.d(e,"b",(function(){return j})),n.d(e,"o",(function(){return O})),n.d(e,"m",(function(){return w})),n.d(e,"a",(function(){return k}));var r=navigator.userAgent;function a(t){return null!==r.match(t)}function i(t){return function(){return a(t)}}function o(){var t=k();return!!(t&&t>=18)}var c=i(/gecko\//i),u=i(/trident\/.+rv:\s*11/i),s=i(/iP(hone|od)/i),l=i(/iPad/i),f=i(/Macintosh/i),d=i(/FBAV/i);function p(){return a(/\sEdge\/\d+/i)}function h(){return a(/msie/i)}function b(){return a(/\s(?:(?:Headless)?Chrome|CriOS)\//i)&&!p()&&!a(/UCBrowser/i)}function v(){return p()||u()||h()}function m(){return a(/safari/i)&&!a(/(?:Chrome|CriOS|chromium|android|phantom)/i)}function g(){return a(/iP(hone|ad|od)/i)}function y(){return!(a(/chrome\/[123456789]/i)&&!a(/chrome\/18/i)&&!c())&&j()}function j(){return a(/Android/i)&&!a(/Windows Phone/i)}function O(){return g()||j()||a(/Windows Phone/i)}function w(){try{return window.self!==window.top}catch(t){return!0}}function k(){if(j())return 0;var t,e=navigator.plugins;if(e&&(t=e["Shockwave Flash"])&&t.description)return parseFloat(t.description.replace(/\D+(\d+\.?\d*).*/,"$1"));if(void 0!==window.ActiveXObject){try{if(t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return parseFloat(t.GetVariable("$version").split(" ")[1].replace(/\s*,\s*/,"."))}catch(t){return 0}return t}return 0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return f}));var i=[].slice,o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"on",value:function(t,e,n){if(!p(this,"on",t,[e,n])||!e)return this;var r=this._events||(this._events={});return(r[t]||(r[t]=[])).push({callback:e,context:n}),this}},{key:"once",value:function(t,e,n){if(!p(this,"once",t,[e,n])||!e)return this;var r=0,a=this,i=function n(){r++||(a.off(t,n),e.apply(this,arguments))};return i._callback=e,this.on(t,i,n)}},{key:"off",value:function(t,e,n){if(!this._events||!p(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return delete this._events,this;for(var r=t?[t]:Object.keys(this._events),a=0,i=r.length;a<i;a++){t=r[a];var o=this._events[t];if(o){var c=this._events[t]=[];if(e||n)for(var u=0,s=o.length;u<s;u++){var l=o[u];(e&&e!==l.callback&&e!==l.callback._callback||n&&n!==l.context)&&c.push(l)}c.length||delete this._events[t]}}return this}},{key:"trigger",value:function(t){if(!this._events)return this;var e=i.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&h(n,e,this),r&&h(r,arguments,this),this}},{key:"triggerSafe",value:function(t){if(!this._events)return this;var e=i.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&h(n,e,this,t),r&&h(r,arguments,this,t),this}}])&&a(e.prototype,n),t}(),c=o.prototype.on,u=o.prototype.once,s=o.prototype.off,l=o.prototype.trigger,f=o.prototype.triggerSafe;o.on=c,o.once=u,o.off=s,o.trigger=l;var d=/\s+/;function p(t,e,n,a){if(!n)return!0;if("object"===r(n)){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t[e].apply(t,[i,n[i]].concat(a));return!1}if(d.test(n)){for(var o=n.split(d),c=0,u=o.length;c<u;c++)t[e].apply(t,[o[c]].concat(a));return!1}return!0}function h(t,e,n,r){for(var a=-1,i=t.length;++a<i;){var o=t[a];if(r)try{o.callback.apply(o.context||n,e)}catch(t){console.log('Error in "'+r+'" event handler:',t)}else o.callback.apply(o.context||n,e)}}},function(t,e,n){"use strict";n.d(e,"h",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"p",(function(){return u})),n.d(e,"i",(function(){return s})),n.d(e,"r",(function(){return l})),n.d(e,"q",(function(){return f})),n.d(e,"t",(function(){return d})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return v})),n.d(e,"n",(function(){return m})),n.d(e,"o",(function(){return g})),n.d(e,"u",(function(){return y})),n.d(e,"s",(function(){return j})),n.d(e,"g",(function(){return O})),n.d(e,"b",(function(){return w})),n.d(e,"f",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"l",(function(){return x})),n.d(e,"j",(function(){return C})),n.d(e,"m",(function(){return T})),n.d(e,"k",(function(){return S}));var r,a=n(0),i=n(2);function o(t,e){return t.classList.contains(e)}function c(t){return s(t).firstChild}function u(t,e){O(t),function(t,e){if(e){for(var n=document.createDocumentFragment(),r=s(e).childNodes,a=0;a<r.length;a++)n.appendChild(r[a].cloneNode());t.appendChild(n)}}(t,e)}function s(t){r||(r=new DOMParser);var e=r.parseFromString(t,"text/html").body;l(e);for(var n=e.querySelectorAll("img,svg"),a=n.length;a--;)f(n[a]);return e}function l(t){for(var e=t.querySelectorAll("script,object,iframe"),n=e.length;n--;){var r=e[n];r.parentNode.removeChild(r)}return t}function f(t){for(var e=t.attributes,n=e.length;n--;){var r=e[n].name;/^on/.test(r)&&t.removeAttribute(r)}return t}function d(t){return t+(t.toString().indexOf("%")>0?"":"px")}function p(t){return Object(a.t)(t.className)?t.className.split(" "):[]}function h(t,e){e=Object(i.h)(e),t.className!==e&&(t.className=e)}function b(t){return t.classList?t.classList:p(t)}function v(t,e){var n=p(t);(Array.isArray(e)?e:e.split(" ")).forEach((function(t){Object(a.c)(n,t)||n.push(t)})),h(t,n.join(" "))}function m(t,e){var n=p(t),r=Array.isArray(e)?e:e.split(" ");h(t,Object(a.f)(n,r).join(" "))}function g(t,e,n){var r=t.className||"";e.test(r)?r=r.replace(e,n):n&&(r+=" "+n),h(t,r)}function y(t,e,n){var r=o(t,e);(n=Object(a.o)(n)?n:!r)!==r&&(n?v(t,e):m(t,e))}function j(t,e,n){t.setAttribute(e,n)}function O(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function w(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.getElementsByTagName("head")[0].appendChild(e)}function k(t){t&&O(t)}function _(t){var e={left:0,right:0,width:0,height:0,top:0,bottom:0};if(!t||!document.body.contains(t))return e;var n=t.getBoundingClientRect(),r=window.pageYOffset,a=window.pageXOffset;return n.width||n.height||n.left||n.top?(e.left=n.left+a,e.right=n.right+a,e.top=n.top+r,e.bottom=n.bottom+r,e.width=n.right-n.left,e.height=n.bottom-n.top,e):e}function x(t,e){t.insertBefore(e,t.firstChild)}function C(t){return t.nextElementSibling}function T(t){return t.previousElementSibling}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement("a");r.href=t,r.target=e,(r=Object(a.h)(r,n)).click()}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"exists",(function(){return i})),n.d(e,"isHTTPS",(function(){return o})),n.d(e,"isFileProtocol",(function(){return c})),n.d(e,"isRtmp",(function(){return u})),n.d(e,"isYouTube",(function(){return s})),n.d(e,"typeOf",(function(){return l})),n.d(e,"isDeepKeyCompliant",(function(){return f}));var a=window.location.protocol;function i(t){switch(r(t)){case"string":return t.length>0;case"object":return null!==t;case"undefined":return!1;default:return!0}}function o(){return"https:"===a}function c(){return"file:"===a}function u(t,e){return 0===t.indexOf("rtmp:")||"rtmp"===e}function s(t,e){return"youtube"===e||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(t)}function l(t){if(null===t)return"null";var e=r(t);return"object"===e&&Array.isArray(t)?"array":e}function f(t,e,n){var a=Object.keys(t);return Object.keys(e).length>=a.length&&a.every((function(a){var i=t[a],o=e[a];return i&&"object"===r(i)?!(!o||"object"!==r(o))&&f(i,o,n):n(a,t)}))}},function(t,e,n){"use strict";n.r(e);var r=n(5);function a(t,e){if(t&&t.length>e)return t[e]}var i=n(0);n.d(e,"Browser",(function(){return c})),n.d(e,"OS",(function(){return u})),n.d(e,"Features",(function(){return s}));var o=navigator.userAgent,c={},u={},s={};Object.defineProperties(c,{androidNative:{get:Object(i.y)(r.c),enumerable:!0},chrome:{get:Object(i.y)(r.d),enumerable:!0},edge:{get:Object(i.y)(r.e),enumerable:!0},facebook:{get:Object(i.y)(r.g),enumerable:!0},firefox:{get:Object(i.y)(r.f),enumerable:!0},ie:{get:Object(i.y)(r.i),enumerable:!0},msie:{get:Object(i.y)(r.n),enumerable:!0},safari:{get:Object(i.y)(r.q),enumerable:!0},version:{get:Object(i.y)(function(t,e){var n,r,a,i;return t.chrome?n=-1!==e.indexOf("Chrome")?e.substring(e.indexOf("Chrome")+7):e.substring(e.indexOf("CriOS")+6):t.safari?n=e.substring(e.indexOf("Version")+8):t.firefox?n=e.substring(e.indexOf("Firefox")+8):t.edge?n=e.substring(e.indexOf("Edge")+5):t.ie&&(-1!==e.indexOf("rv:")?n=e.substring(e.indexOf("rv:")+3):-1!==e.indexOf("MSIE")&&(n=e.substring(e.indexOf("MSIE")+5))),n&&(-1!==(i=n.indexOf(";"))&&(n=n.substring(0,i)),-1!==(i=n.indexOf(" "))&&(n=n.substring(0,i)),-1!==(i=n.indexOf(")"))&&(n=n.substring(0,i)),r=parseInt(n,10),a=parseInt(n.split(".")[1],10)),{version:n,major:r,minor:a}}.bind(void 0,c,o)),enumerable:!0}}),Object.defineProperties(u,{android:{get:Object(i.y)(r.b),enumerable:!0},iOS:{get:Object(i.y)(r.j),enumerable:!0},mobile:{get:Object(i.y)(r.o),enumerable:!0},mac:{get:Object(i.y)(r.p),enumerable:!0},iPad:{get:Object(i.y)(r.k),enumerable:!0},iPhone:{get:Object(i.y)(r.l),enumerable:!0},windows:{get:Object(i.y)((function(){return o.indexOf("Windows")>-1})),enumerable:!0},version:{get:Object(i.y)(function(t,e){var n,r,i;if(t.windows)switch(n=a(/Windows(?: NT|)? ([._\d]+)/.exec(e),1)){case"6.1":n="7.0";break;case"6.2":n="8.0";break;case"6.3":n="8.1"}else t.android?n=a(/Android ([._\d]+)/.exec(e),1):t.iOS?n=a(/OS ([._\d]+)/.exec(e),1):t.mac&&(n=a(/Mac OS X (10[._\d]+)/.exec(e),1));if(n){r=parseInt(n,10);var o=n.split(/[._]/);o&&(i=parseInt(o[1],10))}return{version:n,major:r,minor:i}}.bind(void 0,u,o)),enumerable:!0}}),Object.defineProperties(s,{flash:{get:Object(i.y)(r.h),enumerable:!0},flashVersion:{get:Object(i.y)(r.a),enumerable:!0},iframe:{get:Object(i.y)(r.m),enumerable:!0},passiveEvents:{get:Object(i.y)((function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}return t})),enumerable:!0},backgroundLoading:{get:Object(i.y)((function(){return!(u.iOS||c.safari)})),enumerable:!0}})},function(t,e,n){"use strict";n.r(e),n.d(e,"getAbsolutePath",(function(){return i})),n.d(e,"isAbsolutePath",(function(){return o})),n.d(e,"parseXML",(function(){return u})),n.d(e,"serialize",(function(){return s})),n.d(e,"parseDimension",(function(){return l})),n.d(e,"timeFormat",(function(){return f}));var r=n(8),a=n(0);function i(t,e){if(Object(r.exists)(e)||(e=document.location.href),Object(r.exists)(t)){if(o(t))return t;var n,a=e.substring(0,e.indexOf("://")+3),i=e.substring(a.length,e.indexOf("/",a.length+1));if(0===t.indexOf("/"))n=t.split("/");else{var c=e.split("?")[0];n=(c=c.substring(a.length+i.length+1,c.lastIndexOf("/"))).split("/").concat(t.split("/"))}for(var u=[],s=0;s<n.length;s++)n[s]&&Object(r.exists)(n[s])&&"."!==n[s]&&(".."===n[s]?u.pop():u.push(n[s]));return a+i+"/"+u.join("/")}}function o(t){return/^(?:(?:https?|file):)?\/\//.test(t)}function c(t){return Object(a.a)(t,(function(t){return"parsererror"===t.nodeName}))}function u(t){var e=null;try{(c((e=(new window.DOMParser).parseFromString(t,"text/xml")).childNodes)||e.childNodes&&c(e.childNodes[0].childNodes))&&(e=null)}catch(t){}return e}function s(t){if(void 0===t)return null;if("string"==typeof t&&t.length<6){var e=t.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if(!Object(a.r)(Number(t))&&!Object(a.r)(parseFloat(t)))return Number(t)}return t}function l(t){return"string"==typeof t?""===t?0:t.lastIndexOf("%")>-1?t:parseInt(t.replace("px",""),10):t}function f(t,e){if(t<=0&&!e||Object(a.r)(parseInt(t)))return"00:00";var n=t<0?"-":"";t=Math.abs(t);var r=Math.floor(t/3600),i=Math.floor((t-3600*r)/60),o=Math.floor(t%60);return n+(r?r+":":"")+(i<10?"0":"")+i+":"+(o<10?"0":"")+o}},function(t,e,n){"use strict";e.a=[]},function(t,e,n){"use strict";n.d(e,"h",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return b})),n.d(e,"f",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"d",(function(){return y})),n.d(e,"g",(function(){return j})),n.d(e,"a",(function(){return O}));var r=n(0),a=n(5),i=n(22),o=n(8),c=n(33),u={};function s(t){var e=l(t),n=e.indexOf("_");return-1===n?e:e.substring(0,n)}function l(t){return t.toLowerCase().replace("-","_")}function f(t){return t?Object.keys(t).reduce((function(e,n){return e[l(n)]=t[n],e}),{}):{}}function d(t){var e=t.querySelector("html");return e?e.getAttribute("lang"):null}function p(){var t=d(document);if(!t&&Object(a.m)())try{t=d(window.top.document)}catch(t){}return t||navigator.language||"en"}Object(r.n)({zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish",el:"Greek",fi:"Finnish",id:"Indonesian",ko:"Korean",th:"Thai",vi:"Vietnamese"});var h=["ar","da","de","es","fi","fr","he","id","it","ja","ko","nl","no","pt","ro","ru","sv","th","tr","vi","zh"];function b(t){return 8207===t.charCodeAt(0)||/^[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)}function v(t){return h.indexOf(s(t))>=0}function m(t,e,n){return Object(r.h)({},function(t){var e=t.advertising,n=t.related,a=t.sharing,i=t.abouttext,o=Object(r.h)({},t.localization);e&&(o.advertising=o.advertising||{},g(o.advertising,e,"admessage"),g(o.advertising,e,"cuetext"),g(o.advertising,e,"loadingAd"),g(o.advertising,e,"podmessage"),g(o.advertising,e,"skipmessage"),g(o.advertising,e,"skiptext")),"string"==typeof o.related?o.related={heading:o.related}:o.related=o.related||{},n&&g(o.related,n,"autoplaymessage"),a&&(o.sharing=o.sharing||{},g(o.sharing,a,"heading"),g(o.sharing,a,"copied")),i&&g(o,t,"abouttext");var c=o.close||o.nextUpClose;return c&&(o.close=c),o}(t),e[s(n)],e[l(n)])}function g(t,e,n){var r=t[n]||e[n];r&&(t[n]=r)}function y(t){return Object(o.isDeepKeyCompliant)(c.a,t,(function(t,e){return"string"==typeof e[t]}))}function j(t,e){var n=u[e];if(!n){var r="".concat(t,"translations/").concat(s(e),".json");u[e]=n=new Promise((function(t,n){Object(i.a)({url:r,oncomplete:t,onerror:function(t,r,a,i){u[e]=null,n(i)},responseType:"json"})}))}return n}function O(t,e){var n=Object(r.h)({},t,e);return w(n,"errors",t,e),w(n,"related",t,e),w(n,"sharing",t,e),w(n,"advertising",t,e),n}function w(t,e,n,a){t[e]=Object(r.h)({},n[e],a[e])}},function(t,e,n){"use strict";var r=n(48),a=n(8),i=document.createElement("video"),o={aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"},c=[{name:"html5",supports:function(t){if(!1===Object(r.a)(t))return!1;if(!i.canPlayType)return!1;var e=t.file,n=t.type;if(Object(a.isRtmp)(e,n))return!1;var c=t.mimeType||o[n];if(!c)return!1;var u=t.mediaTypes;return u&&u.length&&(c=[c].concat(u.slice()).join("; ")),!!i.canPlayType(c)}}];e.a=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Date.now||function(){return(new Date).getTime()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return p}));var r=n(25),a=n(26),i=n(13),o=n(21),c=n(32),u=n(1),s=null,l={};function f(t){return s||(s=function(t){var e,s=t.get("controls"),f=h(),p=function(t,e){var n=t.get("playlist");if(Array.isArray(n)&&n.length)for(var o=Object(a.c)(Object(r.a)(n[0]),t),c=0;c<o.length;c++)for(var u=o[c],s=t.getProviders(),l=0;l<i.a.length;l++){var f=i.a[l];if(s.providerSupports(f,u))return"html5"===f.name}return!1}(t);return s&&f&&p?(e=n.e(6).then(function(t){n(30);var e=n(17).default;return c.a.controls=n(16).default,Object(o.a)(n(31).default),e}.bind(null,n)).catch(d(u.o+105)),l.html5=e,e):s&&p?function(){var t=n.e(4).then(function(t){var e=n(17).default;return c.a.controls=n(16).default,Object(o.a)(n(31).default),e}.bind(null,n)).catch(d(u.o+104));return l.html5=t,t}():s&&f?n.e(5).then(function(t){n(30);var e=n(17).default;return c.a.controls=n(16).default,e}.bind(null,n)).catch(d(u.o+103)):s?n.e(3).then(function(t){var e=n(17).default;return c.a.controls=n(16).default,e}.bind(null,n)).catch(d(u.o+102)):(h()?n.e(7).then(function(t){return n(30)}.bind(null,n)).catch(d(u.o+120)):Promise.resolve()).then((function(){return n.e(2).then(function(t){return n(17).default}.bind(null,n)).catch(d(u.o+101))}))}(t)),s}function d(t,e){return function(){throw new u.n(u.j,t,e)}}function p(t,e){return function(){throw new u.n(null,t,e)}}function h(){var t=window.IntersectionObserverEntry;return!(t&&"IntersectionObserver"in window&&"intersectionRatio"in t.prototype)}},,,function(t,e,n){"use strict";e.a={debug:!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return p})),n.d(e,"c",(function(){return h}));var r=n(2),a=n(35),i=n.n(a);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c,u=i.a.clear;function s(t,e,n,r){n=n||"all-players";var a="";if("object"===o(e)){var c=document.createElement("div");l(c,e);var u=c.style.cssText;Object.prototype.hasOwnProperty.call(e,"content")&&u&&(u="".concat(u,' content: "').concat(e.content,'";')),r&&u&&(u=u.replace(/;/g," !important;")),a="{"+u+"}"}else"string"==typeof e&&(a=e);""!==a&&"{}"!==a?i.a.style([[t,t+a]],n):i.a.clear(n,t)}function l(t,e){if(null!=t){var n;void 0===t.length&&(t=[t]);var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=d(n,e[n]));for(var a=0;a<t.length;a++){var i=t[a],o=void 0;if(null!=i)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o=f(n),i.style[o]!==r[n]&&(i.style[o]=r[n]))}}}function f(t){t=t.split("-");for(var e=1;e<t.length;e++)t[e]=t[e].charAt(0).toUpperCase()+t[e].slice(1);return t.join("")}function d(t,e){return""===e||null==e?"":"string"==typeof e&&isNaN(e)?/png|gif|jpe?g/i.test(e)&&e.indexOf("url")<0?"url("+e+")":e:0===e||"z-index"===t||"opacity"===t?""+e:/color/i.test(t)?"#"+Object(r.d)(e.toString(16).replace(/^0x/i,""),6):Math.ceil(e)+"px"}function p(t,e){l(t,{transform:e,webkitTransform:e,msTransform:e,mozTransform:e,oTransform:e})}function h(t,e){var n="rgb",r=void 0!==e&&100!==e;if(r&&(n+="a"),!c){var a=document.createElement("canvas");a.height=1,a.width=1,c=a.getContext("2d")}t?isNaN(parseInt(t,16))||(t="#"+t):t="#000000",c.clearRect(0,0,1,1),c.fillStyle=t,c.fillRect(0,0,1,1);var i=c.getImageData(0,0,1,1).data;return n+="("+i[0]+", "+i[1]+", "+i[2],r&&(n+=", "+e/100),n+")"}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScriptPath",(function(){return a})),n.d(e,"repo",(function(){return i})),n.d(e,"versionCheck",(function(){return o})),n.d(e,"loadFrom",(function(){return c}));var r=n(23),a=(n(8),function(t){for(var e=document.getElementsByTagName("script"),n=0;n<e.length;n++){var r=e[n].src;if(r){var a=r.lastIndexOf("/"+t);if(a>=0)return r.substr(0,a+1)}}return""}),i=function(){return a("jwplayer.js")},o=function(t){var e=("0"+t).split(/\W/),n=r.a.split(/\W/),a=parseFloat(e[0]),i=parseFloat(n[0]);return!(a>i||a===i&&parseFloat("0"+e[1])>parseFloat(n[1]))},c=function(){return a("jwplayer.js")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(28),a=n(13),i=n(49),o=n(0);function c(t){var e=t.getName().name;if(!r.a[e]){if(!Object(o.j)(a.a,Object(o.x)({name:e}))){if(!Object(o.q)(t.supports))throw new Error("Tried to register a provider with an invalid object");a.a.unshift({name:e,supports:t.supports})}Object(o.e)(t.prototype,i.a),r.a[e]=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(10),i=n(8),o=n(1),c=function(){};function u(t,e,n,d){var p;t===Object(t)&&(t=(d=t).url);var h=Object(r.h)({xhr:null,url:t,withCredentials:!1,retryWithoutCredentials:!1,timeout:6e4,timeoutId:-1,oncomplete:e||c,onerror:n||c,mimeType:d&&!d.responseType?"text/xml":"",requireValidXML:!1,responseType:d&&d.plainText?"text":"",useDomParser:!1,requestFilter:null},d),b=function(t,e){return function(t,n){var a=t.currentTarget||e.xhr;(clearTimeout(e.timeoutId),e.retryWithoutCredentials&&e.xhr.withCredentials)?(s(a),u(Object(r.h)({},e,{xhr:null,withCredentials:!1,retryWithoutCredentials:!1}))):(!n&&a.status>=400&&a.status<600&&(n=a.status),l(e,n?o.k:o.m,n||6,t))}}(0,h);if("XMLHttpRequest"in window){if(p=h.xhr=h.xhr||new window.XMLHttpRequest,"function"==typeof h.requestFilter){var v;try{v=h.requestFilter({url:t,xhr:p})}catch(t){return b(t,5),p}v&&"open"in v&&"send"in v&&(p=h.xhr=v)}p.onreadystatechange=function(t){return function(e){var n=e.currentTarget||t.xhr;if(4===n.readyState){clearTimeout(t.timeoutId);var c=n.status;if(c>=400)return void l(t,o.k,c<600?c:6);if(200===c)return function(t){return function(e){var n=e.currentTarget||t.xhr;if(clearTimeout(t.timeoutId),t.responseType){if("json"===t.responseType)return function(t,e){if(!t.response||"string"==typeof t.response&&'"'!==t.responseText.substr(1))try{t=Object(r.h)({},t,{response:JSON.parse(t.responseText)})}catch(t){return void l(e,o.k,611,t)}return e.oncomplete(t)}(n,t)}else{var i,c=n.responseXML;if(c)try{i=c.firstChild}catch(t){}if(c&&i)return f(n,c,t);if(t.useDomParser&&n.responseText&&!c&&(c=Object(a.parseXML)(n.responseText))&&c.firstChild)return f(n,c,t);if(t.requireValidXML)return void l(t,o.k,602)}t.oncomplete(n)}}(t)(e);0===c&&Object(i.isFileProtocol)()&&!/^[a-z][a-z0-9+.-]*:/.test(t.url)&&l(t,o.k,7)}}}(h),p.onerror=b,"overrideMimeType"in p?h.mimeType&&p.overrideMimeType(h.mimeType):h.useDomParser=!0;try{t=t.replace(/#.*$/,""),p.open("GET",t,!0)}catch(t){return b(t,3),p}if(h.responseType)try{p.responseType=h.responseType}catch(t){}h.timeout&&(h.timeoutId=setTimeout((function(){s(p),l(h,o.m,1)}),h.timeout),p.onabort=function(){clearTimeout(h.timeoutId)});try{h.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0),p.send()}catch(t){b(t,4)}return p}l(h,o.m,2)}function s(t){t.onload=null,t.onprogress=null,t.onreadystatechange=null,t.onerror=null,"abort"in t&&t.abort()}function l(t,e,n,r){t.onerror(e,t.url,t.xhr,new o.n(e,n,r))}function f(t,e,n){var a=e.documentElement;if(!n.requireValidXML||"parsererror"!==a.nodeName&&!a.getElementsByTagName("parsererror").length)return t.responseXML||(t=Object(r.h)({},t,{responseXML:e})),n.oncomplete(t);l(n,o.k,601)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="8.8.2+local.2019-04-14-10-10-00-755"},function(t,e,n){"use strict";var r=n(0),a=n(14),i=window.performance||{timing:{}},o=i.timing.navigationStart||Object(a.a)();function c(){return o+i.now()}"now"in i||(i.now=function(){return Object(a.a)()-o}),e.a=function(){var t={},e={},n={},a={};return{start:function(e){t[e]=c(),n[e]=n[e]+1||1},end:function(n){if(t[n]){var r=c()-t[n];delete t[n],e[n]=e[n]+r||r}},dump:function(){var i=Object(r.h)({},e);for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var u=c()-t[o];i[o]=i[o]+u||u}return{counts:Object(r.h)({},n),sums:i,events:Object(r.h)({},a)}},tick:function(t){a[t]=c()},clear:function(t){delete a[t]},between:function(t,e){return a[e]&&a[t]?a[e]-a[t]:null}}}},function(t,e,n){"use strict";var r=n(0),a=n(29),i=function(t){if(t&&t.file)return Object(r.h)({},{kind:"captions",default:!1},t)},o=Array.isArray;e.a=function(t){o((t=t||{}).tracks)||delete t.tracks;var e=Object(r.h)({},{sources:[],tracks:[],minDvrWindow:120,dvrSeekLimit:25},t);e.dvrSeekLimit<5&&(e.dvrSeekLimit=5),e.sources!==Object(e.sources)||o(e.sources)||(e.sources=[Object(a.a)(e.sources)]),o(e.sources)&&0!==e.sources.length||(t.levels?e.sources=t.levels:e.sources=[Object(a.a)(t)]);for(var n=0;n<e.sources.length;n++){var c=e.sources[n];if(c){var u=c.default;c.default=!!u&&"true"===u.toString(),e.sources[n].label||(e.sources[n].label=n.toString()),e.sources[n]=Object(a.a)(e.sources[n])}}return e.sources=e.sources.filter((function(t){return!!t})),o(e.tracks)||(e.tracks=[]),o(e.captions)&&(e.tracks=e.tracks.concat(e.captions),delete e.captions),e.tracks=e.tracks.map(i).filter((function(t){return!!t})),e}},function(t,e,n){"use strict";var r=n(0),a={none:!0,metadata:!0,auto:!0};function i(t,e){return a[t]?t:a[e]?e:"metadata"}var o=n(25),c=n(29),u=n(34),s=n(1);function l(t,e,n){return delete Object(r.h)({},n).playlist,t.map((function(t){return d(e,t,n)})).filter((function(t){return!!t}))}function f(t){if(!Array.isArray(t)||0===t.length)throw new s.n(s.k,630)}function d(t,e,n){var a=t.getProviders(),o=t.get("preload"),c=Object(r.h)({},e);if(c.preload=i(e.preload,o),c.allSources=h(e,t),c.sources=b(c.allSources,a),c.sources.length)return c.file=c.sources[0].file,c.feedData=n,c}n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"c",(function(){return p}));var p=function(t,e){return b(h(t,e),e.getProviders())};function h(t,e){var n=e.attributes,r=t.sources,a=t.allSources,o=t.preload,u=t.drm,s=v(t.withCredentials,n.withCredentials);return(a||r).map((function(t){if(t!==Object(t))return null;m(t,n,"androidhls"),m(t,n,"hlsjsdefault"),m(t,n,"safarihlsjs"),t.preload=i(t.preload,o);var e=t.drm||u||n.drm;e&&(t.drm=e);var r=v(t.withCredentials,s);return void 0!==r&&(t.withCredentials=r),Object(c.a)(t)})).filter((function(t){return!!t}))}function b(t,e){e&&e.choose||(e=new u.a);var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],a=e.choose(r).providerToCheck;if(a)return{type:r.type,provider:a}}return null}(t,e);if(!n)return[];var r=n.provider,a=n.type;return t.filter((function(t){return t.type===a&&e.providerSupports(r,t)}))}function v(t,e){return void 0===t?e:t}function m(t,e,n){n in e&&(t[n]=e[n])}e.a=function(t){return(Array.isArray(t)?t:[t]).map(o.a)}},function(t,e,n){"use strict";var r=n(1),a=n(0),i=function(t){return t.replace(/^(.*\/)?([^-]*)-?.*\.(js)$/,"$2")};function o(t){var e=305e3;if(!t)return e;switch(i(t)){case"jwpsrv":e=305001;break;case"googima":e=305002;break;case"vast":e=305003;break;case"freewheel":e=305004;break;case"dai":e=305005;break;case"gapro":e=305006}return e}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=function(){this.load=function(t,e,n,i){return n&&"object"===c(n)?Promise.all(Object.keys(n).filter((function(t){return t})).map((function(c){var u=n[c];return e.setupPlugin(c).then((function(e){if(!i.attributes._destroyed)return function(t,e,n){var r=t.name,i=document.createElement("div");i.id=n.id+"_"+r,i.className="jw-plugin jw-reset";var o=Object(a.h)({},e),c=t.getNewInstance(n,o,i);return n.addPlugin(r,c),c}(e,u,t)})).catch((function(t){return e.removePlugin(c),t.code?t:new r.n(null,o(c),t)}))}))):Promise.resolve()}},s=n(37),l=n(10),f=n(2),d=function(t){if("string"==typeof t){var e=(t=t.split("?")[0]).indexOf("://");if(e>0)return 0;var n=t.indexOf("/"),r=Object(f.a)(t);return!(e<0&&n<0)||r&&isNaN(r)?1:2}},p=function(t){this.url=t,this.promise_=null};Object.defineProperties(p.prototype,{promise:{get:function(){return this.promise_||this.load()},set:function(){}}}),Object(a.h)(p.prototype,{load:function(){var t=this,e=this.promise_;if(!e){if(2===d(this.url))e=Promise.resolve(this);else{var n=new s.a(function(t){switch(d(t)){case 0:return t;case 1:return Object(l.getAbsolutePath)(t,window.location.href)}}(this.url));this.loader=n,e=n.load().then((function(){return t}))}this.promise_=e}return e},registerPlugin:function(t,e,n){this.name=t,this.target=e,this.js=n},getNewInstance:function(t,e,n){var a=this.js;if("function"!=typeof a)throw new r.n(null,o(this.url)+100);var i=new a(t,e,n);return i.addToPlayer=function(){var e=t.getContainer().querySelector(".jw-overlays");e&&(n.left=e.style.left,n.top=e.style.top,e.appendChild(n),i.displayArea=e)},i.resizeHandler=function(){var t=i.displayArea;t&&i.resize(t.clientWidth,t.clientHeight)},i}});var h=p,b=n(38),v={},m=function(){},g=m.prototype;g.setupPlugin=function(t){var e=this.getPlugin(t);return e?(e.url!==t&&Object(b.a)('JW Plugin "'.concat(i(t),'" already loaded from "').concat(e.url,'". Ignoring "').concat(t,'."')),e.promise):this.addPlugin(t).load()},g.addPlugin=function(t){var e=i(t),n=v[e];return n||(n=new h(t),v[e]=n),n},g.getPlugin=function(t){return v[i(t)]},g.removePlugin=function(t){delete v[i(t)]},g.getPlugins=function(){return v};var y=m;n.d(e,"b",(function(){return O})),n.d(e,"a",(function(){return w}));var j=new y,O=function(t,e,n){var r=j.addPlugin(t);r.js||r.registerPlugin(t,e,n)};function w(t,e){var n=t.get("plugins");return window.jwplayerPluginJsonp=O,(t.pluginLoader=t.pluginLoader||new u).load(e,j,n,t).then((function(e){if(!t.attributes._destroyed)return delete window.jwplayerPluginJsonp,e}))}},function(t,e,n){"use strict";e.a={}},function(t,e,n){"use strict";var r=n(0),a=n(8),i=n(2);e.a=function(t){if(t&&t.file){var e=Object(r.h)({},{default:!1},t);e.file=Object(i.h)(""+e.file);var n=/^[^\/]+\/(?:x-)?([^\/]+)$/;if(n.test(e.type)&&(e.mimeType=e.type,e.type=e.type.replace(n,"$1")),Object(a.isYouTube)(e.file)?e.type="youtube":Object(a.isRtmp)(e.file)?e.type="rtmp":e.type||(e.type=Object(i.a)(e.file)),e.type){switch(e.type){case"m3u8":case"vnd.apple.mpegurl":e.type="hls";break;case"dash+xml":e.type="dash";break;case"m4a":e.type="aac";break;case"smil":e.type="rtmp"}return Object.keys(e).forEach((function(t){""===e[t]&&delete e[t]})),e}}}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(15),a=null,i={};function o(){return a||(a=n.e(1).then(function(t){var e=n(16).default;return i.controls=e,e}.bind(null,n)).catch((function(){a=null,Object(r.c)(301130)()}))),a}},function(t,e,n){"use strict";e.a={advertising:{admessage:"This ad will end in xx",cuetext:"Advertisement",displayHeading:"Advertisement",loadingAd:"Loading ad",podmessage:"Ad __AD_POD_CURRENT__ of __AD_POD_LENGTH__.",skipmessage:"Skip ad in xx",skiptext:"Skip"},airplay:"AirPlay",audioTracks:"Audio Tracks",auto:"Auto",buffer:"Loading",cast:"Chromecast",cc:"Closed Captions",close:"Close",errors:{badConnection:"This video cannot be played because of a problem with your internet connection.",cantLoadPlayer:"Sorry, the video player failed to load.",cantPlayInBrowser:"The video cannot be played in this browser.",cantPlayVideo:"This video file cannot be played.",errorCode:"Error Code",liveStreamDown:"The live stream is either down or has ended.",protectedContent:"There was a problem providing access to protected content.",technicalError:"This video cannot be played because of a technical error."},exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",hd:"Quality",liveBroadcast:"Live",logo:"Logo",mute:"Mute",next:"Next",nextUp:"Next Up",notLive:"Not Live",off:"Off",pause:"Pause",play:"Play",playback:"Play",playbackRates:"Playback Rates",player:"Video Player",poweredBy:"Powered by",prev:"Previous",related:{autoplaymessage:"Next up in xx",heading:"More Videos"},replay:"Replay",rewind:"Rewind 10 Seconds",settings:"Settings",sharing:{copied:"Copied",email:"Email",embed:"Embed",heading:"Share",link:"Link"},slider:"Seek",stop:"Stop",unmute:"Unmute",videoInfo:"About This Video",volume:"Volume",volumeSlider:"Volume"}},function(t,e,n){"use strict";var r=n(0),a=n(13),i=n(21),o=n(28),c=n(15);function u(t){this.config=t||{}}var s={html5:function(){return n.e(9).then(function(t){var e=n(31).default;return Object(i.a)(e),e}.bind(null,n)).catch(Object(c.b)(152))}};Object(r.h)(u.prototype,{load:function(t){var e=s[t],n=function(){return Promise.reject(new Error("Failed to load media"))};return e?e().then((function(){return o.a[t]||n()})):n()},providerSupports:function(t,e){return t.supports(e)},choose:function(t){if(t===Object(t))for(var e=a.a.length,n=0;n<e;n++){var r=a.a[n];if(this.providerSupports(r,t))return{priority:e-n-1,name:r.name,type:t.type,providerToCheck:r,provider:o.a[r.name]}}return{}}}),e.a=u},function(t,e){var n,r,a={},i={},o=(n=function(){return document.head||document.getElementsByTagName("head")[0]},function(){return void 0===r&&(r=n.apply(this,arguments)),r});function c(t){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-jwplayer-id",t),function(t){o().appendChild(t)}(e),e}function u(t,e){var n,r,a,o=i[t];o||(o=i[t]={element:c(t),counter:0});var u=o.counter++;return n=o.element,a=function(){f(n,u,"")},(r=function(t){f(n,u,t)})(e.css),function(t){if(t){if(t.css===e.css&&t.media===e.media)return;r((e=t).css)}else a()}}t.exports={style:function(t,e){!function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=(a[t]||{})[r.id];if(i){for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(t,r.parts[o]))}else{var c=[];for(o=0;o<r.parts.length;o++)c.push(u(t,r.parts[o]));a[t]=a[t]||{},a[t][r.id]={id:r.id,parts:c}}}}(e,function(t){for(var e=[],n={},r=0;r<t.length;r++){var a=t[r],i=a[0],o={css:a[1],media:a[2]};n[i]?n[i].parts.push(o):e.push(n[i]={id:i,parts:[o]})}return e}(t))},clear:function(t,e){var n=a[t];if(n)if(e){var r=n[e];if(r)for(var i=0;i<r.parts.length;i+=1)r.parts[i]()}else{for(var o=Object.keys(n),c=0;c<o.length;c+=1)for(var u=n[o[c]],s=0;s<u.parts.length;s+=1)u.parts[s]();delete a[t]}}};var s,l=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function f(t,e,n){if(t.styleSheet)t.styleSheet.cssText=l(e,n);else{var r=document.createTextNode(n),a=t.childNodes[e];a?t.replaceChild(r,a):t.appendChild(r)}}},function(t,e,n){"use strict";var r=n(7),a=n(19);function i(t,e){var n=e.message,i=e.code,o=function(t,e,n,r){var a=r?"(".concat(n,": ").concat(r,")").replace(/\s+/g," "):"";return'<div id="'.concat(t,'" class="jw-error jw-reset">')+'<div class="jw-error-msg jw-info-overlay jw-reset"><style>'+'[id="'.concat(t,'"].jw-error{background:#000;overflow:hidden;position:relative}')+'[id="'.concat(t,'"] .jw-error-msg{top:50%;left:50%;position:absolute;transform:translate(-50%,-50%)}')+'[id="'.concat(t,'"] .jw-error-text{text-align:start;color:#FFF;font:14px/1.35 Arial,Helvetica,sans-serif}')+'</style><div class="jw-icon jw-reset"></div><div class="jw-info-container jw-reset">'+'<div class="jw-error-text jw-reset-text" dir="auto">'.concat(e||"",'<span class="jw-break jw-reset"></span>').concat(a,"</div>")+"</div></div></div>"}(t.get("id"),n,t.get("localization").errors.errorCode,i),c=t.get("width"),u=t.get("height"),s=Object(r.e)(o);return Object(a.d)(s,{width:c.toString().indexOf("%")>0?c:"".concat(c,"px"),height:u.toString().indexOf("%")>0?u:"".concat(u,"px")}),s}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var r=n(0),a=n(6),i=n(3),o={};function c(t){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=t,e}function u(t){var e=document.createElement("script");return e.type="text/javascript",e.charset="utf-8",e.async=!0,e.timeout=45e3,e.src=t,e}var s=function(t,e){var n=this,r=0;function a(t){r=2,n.trigger(i.w,t).off()}function s(t){r=3,n.trigger(i.jb,t).off()}this.getStatus=function(){return r},this.load=function(){var n=o[t];return 0!==r||(n&&n.then(s).catch(a),r=1,n=new Promise((function(n,r){var i=(e?c:u)(t),o=function(){i.onerror=i.onload=null,clearTimeout(f)},l=function(t){o(),a(t),r(t)},f=setTimeout((function(){l(new Error("Network timeout ".concat(t)))}),45e3);i.onerror=function(){l(new Error("Failed to load ".concat(t)))},i.onload=function(t){o(),s(t),n(t)};var d=document.getElementsByTagName("head")[0]||document.documentElement;d.insertBefore(i,d.firstChild)})),o[t]=n),n}};Object(r.h)(s.prototype,a.a),e.a=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof console.log?console.log.bind(console):function(){}},function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return T}));var r=n(9),a=n(3),i=n(6),o=n(14),c=n(7);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var p,h,b="ontouchstart"in window,v="PointerEvent"in window&&!r.OS.android,m=!(v||b&&r.OS.mobile),g="window",y="keydown",j=r.Features.passiveEvents,O=!!j&&{passive:!0},w=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,f(e).call(this));var a=!(n=n||{}).preventScrolling;return r.directSelect=!!n.directSelect,r.dragged=!1,r.enableDoubleTap=!1,r.el=t,r.handlers={},r.options={},r.lastClick=0,r.lastStart=0,r.passive=a,r.pointerId=null,r.startX=0,r.startY=0,r.event=null,r}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,i.a),n=e,(r=[{key:"on",value:function(t,n,r){return _(t)&&(this.handlers[t]||C[t](this)),l(f(e.prototype),"on",this).call(this,t,n,r)}},{key:"off",value:function(t,n,r){var a=this;if(_(t))P(this,t);else if(!t){var i=this.handlers;Object.keys(i).forEach((function(t){P(a,t)}))}return l(f(e.prototype),"off",this).call(this,t,n,r)}},{key:"destroy",value:function(){this.off(),v&&E(this),this.el=null}}])&&s(n.prototype,r),e}(),k=/\s+/;function _(t){return t&&!(k.test(t)||"object"===u(t))}function x(t){if(!t.handlers.init){var e=t.el,n=t.passive,r=!!j&&{passive:n},i=function(a){if(Object(c.n)(e,"jw-tab-focus"),!function(t){return"which"in t?3===t.which:"button"in t&&2===t.button}(a)){var i=a.target,l=a.type;if(!t.directSelect||i===e){var f=R(a),d=f.pageX,p=f.pageY;if(t.dragged=!1,t.lastStart=Object(o.a)(),t.startX=d,t.startY=p,P(t,g),"pointerdown"===l&&a.isPrimary){if(!n){var h=a.pointerId;t.pointerId=h,e.setPointerCapture(h)}S(t,g,"pointermove",u,r),S(t,g,"pointercancel",s),S(t,g,"pointerup",s),"BUTTON"===e.tagName&&e.focus()}else"mousedown"===l?(S(t,g,"mousemove",u,r),S(t,g,"mouseup",s)):"touchstart"===l&&(S(t,g,"touchmove",u,r),S(t,g,"touchcancel",s),S(t,g,"touchend",s),n||M(a))}}},u=function(e){if(t.dragged)I(t,a.s,e);else{var r=R(e),i=r.pageX,o=r.pageY,c=i-t.startX,u=o-t.startY;c*c+u*u>36&&(I(t,a.u,e),t.dragged=!0,I(t,a.s,e))}n||"touchmove"!==e.type||M(e)},s=function(n){if(clearTimeout(p),t.el)if(E(t),P(t,g),t.dragged)t.dragged=!1,I(t,a.t,n);else if(-1===n.type.indexOf("cancel")&&e.contains(n.target)){if(Object(o.a)()-t.lastStart>500)return;var r="pointerup"===n.type||"pointercancel"===n.type,i="mouseup"===n.type||r&&"mouse"===n.pointerType;!function(t,e,n){if(t.enableDoubleTap)if(Object(o.a)()-t.lastClick<300){I(t,n?a.q:a.r,e),t.lastClick=0}else t.lastClick=Object(o.a)()}(t,n,i),i?I(t,a.n,n):(I(t,a.qb,n),"touchend"!==n.type||j||M(n))}};v?S(t,"init","pointerdown",i,r):(m&&S(t,"init","mousedown",i,r),S(t,"init","touchstart",i,r)),h||(h=new w(document).on("interaction")),S(t,"init","blur",(function(){Object(c.n)(e,"jw-tab-focus")})),S(t,"init","focus",(function(){h.event&&h.event.type===y&&Object(c.a)(e,"jw-tab-focus")}))}}var C={drag:function(t){x(t)},dragStart:function(t){x(t)},dragEnd:function(t){x(t)},click:function(t){x(t)},tap:function(t){x(t)},doubleTap:function(t){t.enableDoubleTap=!0,x(t)},doubleClick:function(t){t.enableDoubleTap=!0,x(t)},longPress:function(t){if(r.OS.iOS){var e=function(){clearTimeout(p)};S(t,"longPress","touchstart",(function(n){e(),p=setTimeout((function(){I(t,"longPress",n)}),500)})),S(t,"longPress","touchmove",e),S(t,"longPress","touchcancel",e),S(t,"longPress","touchend",e)}else t.el.oncontextmenu=function(e){return I(t,"longPress",e),!1}},focus:function(t){S(t,"focus","focus",(function(e){A(t,"focus",e)}))},blur:function(t){S(t,"blur","blur",(function(e){A(t,"blur",e)}))},over:function(t){(v||m)&&S(t,a.Y,v?"pointerover":"mouseover",(function(e){"touch"!==e.pointerType&&I(t,a.Y,e)}))},out:function(t){if(v){var e=t.el;S(t,a.X,"pointerout",(function(n){if("touch"!==n.pointerType&&"x"in n){var r=document.elementFromPoint(n.x,n.y);e.contains(r)||I(t,a.X,n)}}))}else m&&S(t,a.X,"mouseout",(function(e){I(t,a.X,e)}))},move:function(t){(v||m)&&S(t,a.V,v?"pointermove":"mousemove",(function(e){"touch"!==e.pointerType&&I(t,a.V,e)}))},enter:function(t){S(t,a.v,y,(function(e){"Enter"!==e.key&&13!==e.keyCode||(e.stopPropagation(),A(t,a.v,e))}))},keydown:function(t){S(t,y,y,(function(e){A(t,y,e)}),!1)},gesture:function(t){var e=function(e){return I(t,"gesture",e)};S(t,"gesture","click",e),S(t,"gesture",y,e)},interaction:function(t){var e=function(e){t.event=e};S(t,"interaction","mousedown",e,!0),S(t,"interaction",y,e,!0)}};function T(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function S(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:O,i=t.handlers[e],o=t.options[e];if(i||(i=t.handlers[e]={},o=t.options[e]={}),i[n])throw new Error("".concat(e," ").concat(n," already registered"));i[n]=r,o[n]=a;var c=t.el;(e===g?T(c):c).addEventListener(n,r,a)}function P(t,e){var n=t.el,r=t.handlers,a=t.options,i=e===g?T(n):n,o=r[e],c=a[e];o&&(Object.keys(o).forEach((function(t){var e=c[t];"boolean"==typeof e?i.removeEventListener(t,o[t],e):i.removeEventListener(t,o[t])})),r[e]=null,a[e]=null)}function E(t){var e=t.el;null!==t.pointerId&&(e.releasePointerCapture(t.pointerId),t.pointerId=null)}function A(t,e,n){var r=t.el,a=n.target;t.trigger(e,{type:e,sourceEvent:n,currentTarget:r,target:a})}function I(t,e,n){var r=function(t,e,n){var r,a=e.target,i=e.touches,o=e.changedTouches,c=e.pointerType;i||o?(r=i&&i.length?i[0]:o[0],c=c||"touch"):(r=e,c=c||"mouse");var u=r;return{type:t,pointerType:c,pageX:u.pageX,pageY:u.pageY,sourceEvent:e,currentTarget:n,target:a}}(e,n,t.el);t.trigger(e,r)}function R(t){return 0===t.type.indexOf("touch")?(t.originalEvent||t).changedTouches[0]:t}function M(t){t.preventDefault&&t.preventDefault()}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var r={audioMode:!1,flashBlocked:!1,item:0,itemMeta:{},playbackRate:1,playRejected:!1,state:n(3).lb,itemReady:!1,controlsEnabled:!1},a={position:0,duration:0,buffer:0,currentTime:0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e,n){return Math.max(Math.min(t,n),e)}},function(t,e,n){"use strict";function r(t,e,n){var r=[],a={};function i(){for(;r.length>0;){var e=r.shift(),n=e.command,i=e.args;(a[n]||t[n]).apply(t,i)}}e.forEach((function(e){var o=t[e];a[e]=o,t[e]=function(){var t=Array.prototype.slice.call(arguments,0);n()?r.push({command:e,args:t}):(i(),o&&o.apply(this,t))}})),Object.defineProperty(this,"queue",{enumerable:!0,get:function(){return r}}),this.flush=i,this.empty=function(){r.length=0},this.off=function(){e.forEach((function(e){var n=a[e];n&&(t[e]=n,delete a[e])}))},this.destroy=function(){this.off(),this.empty()}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(6);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=o(this,c(e).call(this))).attributes=Object.create(null),t}var n,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,r.a),n=e,(a=[{key:"addAttributes",value:function(t){var e=this;Object.keys(t).forEach((function(n){e.add(n,t[n])}))}},{key:"add",value:function(t,e){var n=this;Object.defineProperty(this,t,{get:function(){return n.attributes[t]},set:function(e){return n.set(t,e)},enumerable:!1}),this.attributes[t]=e}},{key:"get",value:function(t){return this.attributes[t]}},{key:"set",value:function(t,e){if(this.attributes[t]!==e){var n=this.attributes[t];this.attributes[t]=e,this.trigger("change:"+t,this,e,n)}}},{key:"clone",value:function(){var t={},e=this.attributes;if(e)for(var n in e)t[n]=e[n];return t}},{key:"change",value:function(t,e,n){this.on("change:"+t,e,n);var r=this.get(t);return e.call(n,this,r,r),this}}])&&i(n.prototype,a),e}()},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return i}));var r=4,a=2,i=1},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0);function a(t,e){return Object(r.h)({},e,{prime:function(){t.src||t.load()},getPrimedElement:function(){return t},clean:function(){e.clean(t)},recycle:function(){e.clean(t)}})}},function(t,e,n){"use strict";var r=n(0),a=n(42),i=n(20),o=n(10),c=n(9),u=n(33),s=n(12),l={autoPause:{viewability:!1},autostart:!1,bandwidthEstimate:null,bitrateSelection:null,castAvailable:!1,controls:!0,cues:[],defaultPlaybackRate:1,displaydescription:!0,displaytitle:!0,displayPlaybackLabel:!1,height:360,intl:{},language:"en",liveTimeout:null,localization:u.a,mute:!1,nextUpDisplay:!0,playbackRateControls:!1,playbackRates:[.5,1,1.25,1.5,2],renderCaptionsNatively:!1,repeat:!1,stretching:"uniform",volume:90,width:640};function f(t){return t.slice&&"px"===t.slice(-2)&&(t=t.slice(0,-2)),t}var d=function(t,e){var a=Object(r.h)({},(window.jwplayer||{}).defaults,e,t);!function(t){Object.keys(t).forEach((function(e){"id"!==e&&(t[e]=Object(o.serialize)(t[e]))}))}(a);var d=a.forceLocalizationDefaults?l.language:Object(s.c)(),p=Object(s.h)(a.intl);a.localization=Object(s.a)(u.a,Object(s.b)(a,p,d));var h=Object(r.h)({},l,a);"."===h.base&&(h.base=Object(i.getScriptPath)("jwplayer.js")),h.base=(h.base||Object(i.loadFrom)()).replace(/\/?$/,"/"),n.p=h.base,h.width=f(h.width),h.height=f(h.height),h.aspectratio=function(t,e){if(-1===e.toString().indexOf("%"))return 0;if("string"!=typeof t||!t)return 0;if(/^\d*\.?\d+%$/.test(t))return t;var n=t.indexOf(":");if(-1===n)return 0;var r=parseFloat(t.substr(0,n)),a=parseFloat(t.substr(n+1));return r<=0||a<=0?0:a/r*100+"%"}(h.aspectratio,h.width),h.volume=Object(r.v)(h.volume)?Math.min(Math.max(0,h.volume),100):l.volume,h.mute=!!h.mute,h.language=d,h.intl=p;var b=a.autoPause;b&&(h.autoPause.viewability=!("viewability"in b&&!b.viewability));var v=h.playbackRateControls;if(v){var m=h.playbackRates;Array.isArray(v)&&(m=v),(m=m.filter((function(t){return Object(r.s)(t)&&t>=.25&&t<=4})).map((function(t){return Math.round(100*t)/100}))).indexOf(1)<0&&m.push(1),m.sort(),h.playbackRateControls=!0,h.playbackRates=m}(!h.playbackRateControls||h.playbackRates.indexOf(h.defaultPlaybackRate)<0)&&(h.defaultPlaybackRate=1),h.playbackRate=h.defaultPlaybackRate,h.aspectratio||delete h.aspectratio;var g=h.playlist;if(g)Array.isArray(g.playlist)&&(h.feedData=g,h.playlist=g.playlist);else{var y=Object(r.z)(h,["title","description","type","mediaid","image","file","sources","tracks","preload","duration"]);h.playlist=[y]}h.qualityLabels=h.qualityLabels||h.hlslabels,delete h.duration;var j=h.liveTimeout;null!==j&&(Object(r.v)(j)?0!==j&&(j=Math.max(30,j)):j=null,h.liveTimeout=j);var O,w,k=parseFloat(h.bandwidthEstimate),_=parseFloat(h.bitrateSelection);return h.bandwidthEstimate=Object(r.v)(k)?k:(O=h.defaultBandwidthEstimate,w=parseFloat(O),Object(r.v)(w)?Math.max(w,1):l.bandwidthEstimate),h.bitrateSelection=Object(r.v)(_)?_:l.bitrateSelection,h.backgroundLoading=Object(r.o)(h.backgroundLoading)?h.backgroundLoading:c.Features.backgroundLoading,h},p=n(15),h=n(27),b=n(3),v=n(47),m=n(26),g=n(37),y=n(1);function j(t,e,n){var r=t.attributes;r.playlist=Object(m.a)(e),r.feedData=n}function O(t){return function(t){var e=t.get("playlist");return new Promise((function(n,r){if("string"!=typeof e){var a=t.get("feedData")||{};return j(t,e,a),n()}var i=new v.a;i.on(b.db,(function(e){var r=e.playlist;delete e.playlist,j(t,r,e),n()})),i.on(b.w,(function(e){j(t,[],{}),r(Object(y.u)(e,y.p))})),i.load(e)}))}(t).then((function(){if(!_(t)){var e=Object(m.b)(t.get("playlist"),t);t.attributes.playlist=e;try{Object(m.e)(e)}catch(t){throw t.code+=y.p,t}var n=t.getProviders(),r=n.choose(e[0].sources[0]),a=r.provider,i=r.name;return"function"==typeof a?a:p.a.html5&&"html5"===i?p.a.html5:n.load(i).catch((function(t){throw Object(y.u)(t,y.q)}))}}))}function w(t){var e=t.get("skin")?t.get("skin").url:void 0;return"string"!=typeof e||function(t){for(var e=document.styleSheets,n=0,r=e.length;n<r;n++)if(e[n].href===t)return!0;return!1}(e)?Promise.resolve():new g.a(e,!0).load().catch((function(t){return t}))}function k(t){var e=t.attributes,n=e.language,r=e.base,a=e.setupConfig,i=e.intl,o=Object(s.b)(a,i,n);return!Object(s.f)(n)||Object(s.d)(o)?Promise.resolve():new Promise((function(a){return Object(s.g)(r,n).then((function(n){var r=n.response;if(!_(t)){if(!r)throw new y.n(null,y.g);e.localization=Object(s.a)(r,o),a()}})).catch((function(t){a(t.code===y.g?t:Object(y.u)(t,y.f))}))}))}function _(t){return t.attributes._destroyed}var x=function(t){var e;this.start=function(n){var r=Object(h.a)(t,n),a=Promise.all([Object(p.d)(t),r,O(t),Promise.resolve(),w(t),k(t)]),i=new Promise((function(t,n){e=setTimeout((function(){n(new y.n(y.j,y.s))}),6e4);var r=function(){clearTimeout(e),setTimeout(t,6e4)};a.then(r).catch(r)}));return Promise.race([a,i]).catch((function(t){var e=function(){throw t};return r.then(e).catch(e)})).then((function(t){return function(t){if(!t||!t.length)return{core:null,warnings:[]};var e=t.reduce((function(t,e){return t.concat(e)}),[]).filter((function(t){return t&&t.code}));return{core:t[0],warnings:e}}(t)}))},this.destroy=function(){clearTimeout(e),t.set("_destroyed",!0),t=null}},C=n(34),T=n(24),S=n(18),P={removeItem:function(){}};try{P=window.localStorage||P}catch(t){}function E(t,e){this.namespace=t,this.items=e}Object(r.h)(E.prototype,{getAllItems:function(){var t=this;return this.items.reduce((function(e,n){var r=P["".concat(t.namespace,".").concat(n)];return r&&(e[n]=Object(o.serialize)(r)),e}),{})},track:function(t){var e=this;this.items.forEach((function(n){t.on("change:".concat(n),(function(t,r){try{P["".concat(e.namespace,".").concat(n)]=r}catch(t){S.a.debug&&console.error(t)}}))}))},clear:function(){var t=this;this.items.forEach((function(e){P.removeItem("".concat(t.namespace,".").concat(e))}))}});var A=E,I=n(43),R=n(40),M=n(6),L=n(36),F=n(44);function N(t){t.src||t.load()}function D(){var t=document.createElement("video");return t.className="jw-video jw-reset",t.setAttribute("tabindex","-1"),t.setAttribute("disableRemotePlayback",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("playsinline",""),t}var z=n(45),V=n(39);n.d(e,"b",(function(){return W}));var $=function(t){this._events={},this.modelShim=new I.a,this.modelShim._qoeItem=new T.a,this.mediaShim={},this.setup=new x(this.modelShim),this.currentContainer=this.originalContainer=t,this.apiQueue=new a.a(this,["load","play","pause","seek","stop","playlistItem","playlistNext","playlistPrev","next","preload","setConfig","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality","setFullscreen","addButton","removeButton","castToggle","setMute","setVolume","setPlaybackRate","addCues","setCues","setPlaylistItem","resize","setCaptions","setControls"],(function(){return!0}))};function B(t,e){e&&e.code&&(e.sourceError&&console.error(e.sourceError),console.error(y.n.logMessage(e.code)))}function q(t){t&&t.code&&console.warn(y.n.logMessage(t.code))}function W(t,e){if(!document.body.contains(t.currentContainer)){var n=document.getElementById(t.get("id"));n&&(t.currentContainer=n)}t.currentContainer.parentElement&&t.currentContainer.parentElement.replaceChild(e,t.currentContainer),t.currentContainer=e}Object(r.h)($.prototype,{on:M.a.on,once:M.a.once,off:M.a.off,trigger:M.a.trigger,init:function(t,e){var n=this,a=this.modelShim,i=new A("jwplayer",["volume","mute","captionLabel","bandwidthEstimate","bitrateSelection","qualityLabel"]),o=i&&i.getAllItems();a.attributes=a.attributes||{},Object(r.h)(this.mediaShim,R.a);var c=t,u=d(Object(r.h)({},t),o);u.id=e.id,u.setupConfig=c,Object(r.h)(a.attributes,u,R.b),a.getProviders=function(){return new C.a(u)},a.setProvider=function(){};var s=function(){for(var t=F.c,e=[],n=[],r=0;r<t;r++){var a=D();e.push(a),n.push(a),N(a)}var i=n.shift(),o=n.shift(),c=!1;return{primed:function(){return c},prime:function(){e.forEach(N),c=!0},played:function(){c=!0},getPrimedElement:function(){return n.length?n.shift():null},getAdElement:function(){return i},getTestElement:function(){return o},clean:function(t){if(t.src){t.removeAttribute("src");try{t.load()}catch(t){}}},recycle:function(t){t&&!n.some((function(e){return e===t}))&&(this.clean(t),n.push(t))},syncVolume:function(t){var n=Math.min(Math.max(0,t/100),1);e.forEach((function(t){t.volume=n}))},syncMute:function(t){e.forEach((function(e){e.muted=t}))}}}();a.get("backgroundLoading")||(s=Object(z.a)(s.getPrimedElement(),s));var l=new V.a(Object(V.b)(this.originalContainer)).once("gesture",(function(){s.prime(),n.preload(),l.destroy()}));return a.on("change:errorEvent",B),this.setup.start(e).then((function(t){var o=t.core;if(!o)throw Object(y.u)(null,y.r);if(n.setup){n.on(b.sb,q),t.warnings.forEach((function(t){n.trigger(b.sb,t)}));var c=n.modelShim.clone();if(c.error)throw c.error;var u=n.apiQueue.queue.slice(0);n.apiQueue.destroy(),Object(r.h)(n,o.prototype),n.setup(c,e,n.originalContainer,n._events,u,s);var l=n._model;return a.off("change:errorEvent",B),l.on("change:errorEvent",B),i.track(l),n.updatePlaylist(l.get("playlist"),l.get("feedData")).catch((function(t){throw Object(y.u)(t,y.p)}))}})).then((function(){n.setup&&n.playerReady()})).catch((function(t){n.setup&&function(t,e,n){Promise.resolve().then((function(){var r=Object(y.v)(y.m,y.t,n),a=t._model||t.modelShim;r.message=r.message||a.get("localization").errors[r.key],delete r.key;var i=a.get("contextual");if(!i){var o=Object(L.a)(t,r);L.a.cloneIcon&&o.querySelector(".jw-icon").appendChild(L.a.cloneIcon("error")),W(t,o)}a.set("errorEvent",r),a.set("state",b.kb),t.trigger(b.hb,r),i&&e.remove()}))}(n,e,t)}))},playerDestroy:function(){this.apiQueue&&this.apiQueue.destroy(),this.setup&&this.setup.destroy(),this.currentContainer!==this.originalContainer&&W(this,this.originalContainer),this.off(),this._events=this._model=this.modelShim=this.apiQueue=this.setup=null},getContainer:function(){return this.currentContainer},get:function(t){if(this.modelShim)return t in this.mediaShim?this.mediaShim[t]:this.modelShim.get(t)},getItemQoe:function(){return this.modelShim._qoeItem},getConfig:function(){return Object(r.h)({},this.modelShim.attributes,this.mediaShim)},getCurrentCaptions:function(){return this.get("captionsIndex")},getWidth:function(){return this.get("containerWidth")},getHeight:function(){return this.get("containerHeight")},getMute:function(){return this.get("mute")},getProvider:function(){return this.get("provider")},getState:function(){return this.get("state")},getAudioTracks:function(){return null},getCaptionsList:function(){return null},getQualityLevels:function(){return null},getVisualQuality:function(){return null},getCurrentQuality:function(){return-1},getCurrentAudioTrack:function(){return-1},getSafeRegion:function(){return{x:0,y:0,width:0,height:0}},isBeforeComplete:function(){return!1},isBeforePlay:function(){return!1},createInstream:function(){return null},skipAd:function(){},attachMedia:function(){},detachMedia:function(){return null}}),e.a=$},function(t,e,n){"use strict";var r=n(0),a=n(3),i=n(4),o=n(2);function c(t){for(var e=[],n=0;n<Object(i.c)(t);n++){var r=t.childNodes[n];"jwplayer"===r.prefix&&"mediatypes"===Object(i.b)(r).toLowerCase()&&e.push(Object(i.d)(r))}return e}var u=n(10),s=n(25);function l(t){for(var e={},n=0;n<t.childNodes.length;n++){var r=t.childNodes[n],a=Object(i.b)(r);if(a)switch(a.toLowerCase()){case"enclosure":e.file=Object(o.i)(r,"url");break;case"title":e.title=Object(i.d)(r);break;case"guid":e.mediaid=Object(i.d)(r);break;case"pubdate":e.date=Object(i.d)(r);break;case"description":e.description=Object(i.d)(r);break;case"link":e.link=Object(i.d)(r);break;case"category":e.tags?e.tags+=Object(i.d)(r):e.tags=Object(i.d)(r)}}return new s.a(function(t,e){for(var n="default",r=[],a=[],c=0;c<t.childNodes.length;c++){var s=t.childNodes[c];if("jwplayer"===s.prefix){var l=Object(i.b)(s);"source"===l?(delete e.sources,r.push({file:Object(o.i)(s,"file"),default:Object(o.i)(s,n),label:Object(o.i)(s,"label"),type:Object(o.i)(s,"type")})):"track"===l?(delete e.tracks,a.push({file:Object(o.i)(s,"file"),default:Object(o.i)(s,n),kind:Object(o.i)(s,"kind"),label:Object(o.i)(s,"label")})):(e[l]=Object(u.serialize)(Object(i.d)(s)),"file"===l&&e.sources&&delete e.sources)}e.file||(e.file=e.link)}if(r.length){e.sources=[];for(var f=0;f<r.length;f++)r[f].file.length>0&&(r[f][n]="true"===r[f][n],r[f].label.length||delete r[f].label,e.sources.push(r[f]))}if(a.length){e.tracks=[];for(var d=0;d<a.length;d++)a[d].file.length>0&&(a[d][n]="true"===a[d][n],a[d].kind=a[d].kind.length?a[d].kind:"captions",a[d].label.length||delete a[d].label,e.tracks.push(a[d]))}return e}(t,function t(e,n){for(var r,a,u=[],s=0;s<Object(i.c)(e);s++){var l=e.childNodes[s];if("media"===l.prefix){if(!Object(i.b)(l))continue;switch(Object(i.b)(l).toLowerCase()){case"content":if(Object(o.i)(l,"duration")&&(n.duration=Object(o.f)(Object(o.i)(l,"duration"))),Object(o.i)(l,"url")){n.sources||(n.sources=[]);var f={file:Object(o.i)(l,"url"),type:Object(o.i)(l,"type"),width:Object(o.i)(l,"width"),label:Object(o.i)(l,"label")},d=c(l);d.length&&(f.mediaTypes=d),n.sources.push(f)}Object(i.c)(l)>0&&(n=t(l,n));break;case"title":n.title=Object(i.d)(l);break;case"description":n.description=Object(i.d)(l);break;case"guid":n.mediaid=Object(i.d)(l);break;case"thumbnail":n.image||(n.image=Object(o.i)(l,"url"));break;case"group":t(l,n);break;case"subtitle":var p={};p.file=Object(o.i)(l,"url"),p.kind="captions",Object(o.i)(l,"lang").length>0&&(p.label=(void 0,(a={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"})[r=Object(o.i)(l,"lang")]?a[r]:r)),u.push(p)}}}n.hasOwnProperty("tracks")||(n.tracks=[]);for(var h=0;h<u.length;h++)n.tracks.push(u[h]);return n}(t,e)))}var f=n(22),d=n(6),p=n(1);e.a=function(){var t=Object(r.h)(this,d.a);function e(e){try{var o,c=e.responseXML?e.responseXML.childNodes:null,u="";if(c){for(var s=0;s<c.length&&8===(u=c[s]).nodeType;s++);if("xml"===Object(i.b)(u)&&(u=u.nextSibling),"rss"===Object(i.b)(u)){var f=function(t){var e=[];e.feedData={};for(var n=0;n<Object(i.c)(t);n++){var r=Object(i.a)(t,n);if("channel"===Object(i.b)(r).toLowerCase())for(var a=0;a<Object(i.c)(r);a++){var o=Object(i.a)(r,a),c=Object(i.b)(o).toLowerCase();"item"===c?e.push(l(o)):c&&(e.feedData[c]=Object(i.d)(o))}}return e}(u);o=Object(r.h)({playlist:f},f.feedData)}}if(!o)try{var d=JSON.parse(e.responseText);if(Array.isArray(d))o={playlist:d};else{if(!Array.isArray(d.playlist))throw Error("Playlist is not an array");o=d}}catch(t){throw new p.n(p.k,621,t)}t.trigger(a.db,o)}catch(t){n(t)}}function n(e){e.code||(e=new p.n(p.k,0)),t.trigger(a.w,e)}this.load=function(t){Object(f.a)(t,e,(function(t,e,r,a){n(a)}))},this.destroy=function(){this.off()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(9);function a(t){return"hls"===t.type&&r.OS.android?!1!==t.androidhls&&!r.Browser.firefox&&parseFloat(r.OS.version.version)>=4.4:null}},function(t,e,n){"use strict";var r=n(3),a=function(){},i=function(){return!1},o={name:"default"},c={supports:i,play:a,pause:a,preload:a,load:a,stop:a,volume:a,mute:a,seek:a,resize:a,remove:a,destroy:a,eventsOn_:a,eventsOff_:a,setVisibility:a,setFullscreen:a,getFullscreen:i,supportsFullscreen:i,getContainer:a,setContainer:a,getName:function(){return o},getQualityLevels:a,getCurrentQuality:a,setCurrentQuality:a,getAudioTracks:a,getCurrentAudioTrack:a,setCurrentAudioTrack:a,getSeekRange:function(){return{start:0,end:this.getDuration()}},setPlaybackRate:a,getPlaybackRate:function(){return 1},getBandwidthEstimate:function(){return null},setControls:a,attachMedia:a,detachMedia:a,init:a,setState:function(t){this.state=t,this.trigger(r.ab,{newstate:t})},sendMediaType:function(t){var e=t[0],n=e.type,a=e.mimeType,i="aac"===n||"mp3"===n||"mpeg"===n||a&&0===a.indexOf("audio/");this.trigger(r.S,{mediaType:i?"audio":"video"})}};e.a=c},function(e,n,r){"use strict";r.r(n);var a=setTimeout;function i(){}function o(t){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function c(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,o._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}u(e.promise,r)}else(1===t._state?u:s)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void d((r=n,a=e,function(){r.apply(a,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var r,a}function s(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&o._immediateFn((function(){t._handled||o._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)c(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,u(e,t))}),(function(t){n||(n=!0,s(e,t))}))}catch(t){if(n)return;n=!0,s(e,t)}}o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(i);return c(this,new f(t,e,n)),n},o.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))},o.all=function(t){return new o((function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var a=r.length;function i(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var c=o.then;if("function"==typeof c)return void c.call(o,(function(e){i(t,e)}),n)}r[t]=o,0==--a&&e(r)}catch(t){n(t)}}for(var o=0;o<r.length;o++)i(o,r[o])}))},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o((function(e){e(t)}))},o.reject=function(t){return new o((function(e,n){n(t)}))},o.race=function(t){return new o((function(e,n){for(var r=0,a=t.length;r<a;r++)t[r].then(e,n)}))},o._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){a(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var p=o;window.Promise||(window.Promise=p);var h=r(20),b=r(11),v=r(13),m=r(21),g={availableProviders:v.a,registerProvider:m.a},y=r(27),j=r(23),O=r(0),w=r(18),k=r(9),_=r(46),x=r(3),C=r(24),T=r(6),S=r(8),P=r(10),E=r(2);function A(t,e){this.name=t,this.message=e.message||e.toString(),this.error=e}var I=r(5),R=r(7),M=r(19),L=r(22),F=r(41),N=r(38),D=Object(O.h)({},P,S,h,{addClass:R.a,hasClass:R.h,removeClass:R.n,replaceClass:R.o,toggleClass:R.u,classList:R.d,styleDimension:R.t,createElement:R.e,emptyElement:R.g,addStyleSheet:R.b,bounds:R.c,openLink:R.k,css:M.b,clearCss:M.a,style:M.d,transform:M.e,getRgba:M.c,ajax:L.a,crossdomain:function(t){var e=document.createElement("a"),n=document.createElement("a");e.href=location.href;try{return n.href=t,n.href=n.href,e.protocol+"//"+e.host!=n.protocol+"//"+n.host}catch(t){}return!0},tryCatch:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(w.a.debug)return t.apply(e||this,n);try{return t.apply(e||this,n)}catch(e){return new A(t.name,e)}},Error:A,Timer:C.a,log:N.a,between:F.a,foreach:function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])},flashVersion:I.a,isIframe:I.m,indexOf:O.m,trim:E.h,pad:E.d,extension:E.a,hms:E.b,seconds:E.f,prefix:E.e,suffix:E.g,noop:function(){}}),z=0;function V(t,e){var n=new _.a(e);return n.on(x.fb,(function(e){t._qoe.tick("ready"),e.setupTime=t._qoe.between("setup","ready")})),n.on("all",(function(e,n){t.trigger(e,n)})),n}function $(t,e){var n=t.plugins;Object.keys(n).forEach((function(t){delete n[t]})),e.get("setupConfig")&&t.trigger("remove"),t.off(),e.playerDestroy(),e.getContainer().removeAttribute("data-jwplayer-id")}function B(t){var e=++z,n=t.id||"player-".concat(e),r=new C.a,a={},i=V(this,t);r.tick("init"),t.setAttribute("data-jwplayer-id",n),Object.defineProperties(this,{id:{get:function(){return n}},uniqueId:{get:function(){return e}},plugins:{get:function(){return a}},_qoe:{get:function(){return r}},version:{get:function(){return j.a}},Events:{get:function(){return T.a}},utils:{get:function(){return D}},_:{get:function(){return O.d}}}),Object(O.h)(this,{_events:{},setup:function(e){return r.clear("ready"),r.tick("setup"),$(this,i),(i=V(this,t)).init(e,this),this.on(e.events,null,this)},remove:function(){return function(t){for(var e=b.a.length;e--;)if(b.a[e].uniqueId===t.uniqueId){b.a.splice(e,1);break}}(this),$(this,i),this},qoe:function(){var t=i.getItemQoe();return{setupTime:this._qoe.between("setup","ready"),firstFrame:t.getFirstFrame?t.getFirstFrame():null,player:this._qoe.dump(),item:t.dump()}},addCues:function(t){return Array.isArray(t)&&i.addCues(t),this},getAudioTracks:function(){return i.getAudioTracks()},getBuffer:function(){return i.get("buffer")},getCaptions:function(){return i.get("captions")},getCaptionsList:function(){return i.getCaptionsList()},getConfig:function(){return i.getConfig()},getContainer:function(){return i.getContainer()},getControls:function(){return i.get("controls")},getCues:function(){return i.get("cues")},getCurrentAudioTrack:function(){return i.getCurrentAudioTrack()},getCurrentCaptions:function(){return i.getCurrentCaptions()},getCurrentQuality:function(){return i.getCurrentQuality()},getCurrentTime:function(){return i.get("currentTime")},getDuration:function(){return i.get("duration")},getEnvironment:function(){return k},getFullscreen:function(){return i.get("fullscreen")},getHeight:function(){return i.getHeight()},getItemMeta:function(){return i.get("itemMeta")||{}},getMute:function(){return i.getMute()},getPlaybackRate:function(){return i.get("playbackRate")},getPlaylist:function(){return i.get("playlist")},getPlaylistIndex:function(){return i.get("item")},getPlaylistItem:function(t){if(!D.exists(t))return i.get("playlistItem");var e=this.getPlaylist();return e?e[t]:null},getPosition:function(){return i.get("position")},getProvider:function(){return i.getProvider()},getQualityLevels:function(){return i.getQualityLevels()},getSafeRegion:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return i.getSafeRegion(t)},getState:function(){return i.getState()},getStretching:function(){return i.get("stretching")},getViewable:function(){return i.get("viewable")},getVisualQuality:function(){return i.getVisualQuality()},getVolume:function(){return i.get("volume")},getWidth:function(){return i.getWidth()},setCaptions:function(t){return i.setCaptions(t),this},setConfig:function(t){return i.setConfig(t),this},setControls:function(t){return i.setControls(t),this},setCurrentAudioTrack:function(t){i.setCurrentAudioTrack(t)},setCurrentCaptions:function(t){i.setCurrentCaptions(t)},setCurrentQuality:function(t){i.setCurrentQuality(t)},setFullscreen:function(t){return i.setFullscreen(t),this},setMute:function(t){return i.setMute(t),this},setPlaybackRate:function(t){return i.setPlaybackRate(t),this},setPlaylistItem:function(t,e){return i.setPlaylistItem(t,e),this},setCues:function(t){return Array.isArray(t)&&i.setCues(t),this},setVolume:function(t){return i.setVolume(t),this},load:function(t,e){return i.load(t,e),this},play:function(t){return i.play(t),this},pause:function(t){return i.pause(t),this},playToggle:function(t){switch(this.getState()){case x.ob:case x.ib:return this.pause(t);default:return this.play(t)}},seek:function(t,e){return i.seek(t,e),this},playlistItem:function(t,e){return i.playlistItem(t,e),this},playlistNext:function(t){return i.playlistNext(t),this},playlistPrev:function(t){return i.playlistPrev(t),this},next:function(t){return i.next(t),this},castToggle:function(){return i.castToggle(),this},createInstream:function(){return i.createInstream()},skipAd:function(){return i.skipAd(),this},stop:function(){return i.stop(),this},resize:function(t,e){return i.resize(t,e),this},addButton:function(t,e,n,r,a){return i.addButton(t,e,n,r,a),this},removeButton:function(t){return i.removeButton(t),this},attachMedia:function(){return i.attachMedia(),this},detachMedia:function(){return i.detachMedia(),this},isBeforeComplete:function(){return i.isBeforeComplete()},isBeforePlay:function(){return i.isBeforePlay()}})}Object(O.h)(B.prototype,{on:function(t,e,n){return T.c.call(this,t,e,n)},once:function(t,e,n){return T.d.call(this,t,e,n)},off:function(t,e,n){return T.b.call(this,t,e,n)},trigger:function(t,e){return(e=O.d.isObject(e)?Object(O.h)({},e):{}).type=t,w.a.debug?T.e.call(this,t,e):T.f.call(this,t,e)},getPlugin:function(t){return this.plugins[t]},addPlugin:function(t,e){this.plugins[t]=e,this.on("ready",e.addToPlayer),e.resize&&this.on("resize",e.resizeHandler)},registerPlugin:function(t,e,n){Object(y.b)(t,e,n)},getAdBlock:function(){return!1},playAd:function(t){},pauseAd:function(t){}}),r.p=Object(h.loadFrom)();var q=function(t){var e,n;if(t?"string"==typeof t?(e=W(t))||(n=document.getElementById(t)):"number"==typeof t?e=b.a[t]:t.nodeType&&(e=W((n=t).id||n.getAttribute("data-jwplayer-id"))):e=b.a[0],e)return e;if(n){var r=new B(n);return b.a.push(r),r}return{registerPlugin:y.b}};function W(t){for(var e=0;e<b.a.length;e++)if(b.a[e].id===t)return b.a[e];return null}Object.defineProperties(q,{api:{get:function(){return g},set:function(){}},version:{get:function(){return j.a},set:function(){}},debug:{get:function(){return w.a.debug},set:function(t){w.a.debug=!!t}}}),n.default=q}]).default}).call(this,n(32).setImmediate)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(a.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(a.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(33),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(20))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,a,i,o,c,u=1,s={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(a=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(o="setImmediate$"+Math.random()+"$",c=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&h(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",c,!1):t.attachEvent("onmessage",c),r=function(e){t.postMessage(o+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return s[u]=a,r(u),u++},d.clearImmediate=p}function p(t){delete s[t]}function h(t){if(l)setTimeout(h,0,t);else{var e=s[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(20),n(29))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){n(14),t.exports=n(65)},function(t,e,n){t.exports=n.p+"css/archive.min.css"}]);
|
|
//# sourceMappingURL=archive.min.js.map
|
|
// @license-end
|